From 09e9143725955299baf0d3bea7f96c7f6263c9dd Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 23 Oct 2002 12:02:43 +0000 Subject: tweaked the configure script a bit svn-id: r5283 --- configure | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 5967ff303b..5211d8748f 100755 --- a/configure +++ b/configure @@ -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 -- cgit v1.2.3