diff options
author | Max Horn | 2002-10-23 12:02:43 +0000 |
---|---|---|
committer | Max Horn | 2002-10-23 12:02:43 +0000 |
commit | 09e9143725955299baf0d3bea7f96c7f6263c9dd (patch) | |
tree | 3c455d0b2665fa363ff5baffbf8ddca86502c285 | |
parent | f0e6f8ebf80727da1bc45aceef03e1bf29e7173d (diff) | |
download | scummvm-rg350-09e9143725955299baf0d3bea7f96c7f6263c9dd.tar.gz scummvm-rg350-09e9143725955299baf0d3bea7f96c7f6263c9dd.tar.bz2 scummvm-rg350-09e9143725955299baf0d3bea7f96c7f6263c9dd.zip |
tweaked the configure script a bit
svn-id: r5283
-rwxr-xr-x | configure | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -82,8 +82,14 @@ echo $datatype # # Greet user # + echo "Running ScummVM configure..." -printf "" > config.h +echo "/* This file is automatically generated by configure */" > config.h +echo "/* DO NOT EDIT MANUALLY */" >> config.h +echo "" >> config.h +echo "#ifndef CONFIG_H" >> config.h +echo "#define CONFIG_H" >> config.h +echo "" >> config.h # @@ -129,7 +135,8 @@ fi # # Determine hosttype # -# TODO - also add an command line option to override this +# TODO - also add an command line option to override this?!? +# TODO - recognize more systems, e.g. *BSD printf "Checking hosttype... " hosttype=`uname -s` echo $hosttype @@ -196,7 +203,7 @@ type_4_byte=`find_type_with_size 4` echo "$type_4_byte" echo >> config.h -echo "// Data types" >> config.h +echo "/* Data types */" >> config.h echo "typedef unsigned $type_1_byte byte;" >> config.h echo "typedef unsigned int uint;" >> config.h echo "typedef unsigned $type_1_byte uint8;" >> config.h @@ -205,3 +212,9 @@ echo "typedef unsigned $type_3_byte uint32;" >> config.h echo "typedef signed $type_1_byte int8;" >> config.h echo "typedef signed $type_2_byte int16;" >> config.h echo "typedef signed $type_4_byte int32;" >> config.h + +# +# End of config.h +# +echo "" >> config.h +echo "#endif /* CONFIG_H */" >> config.h |