[Scummvm-cvs-logs] CVS: scummvm configure,1.4,1.5

Max Horn fingolfin at users.sourceforge.net
Wed Oct 23 05:03:04 CEST 2002


Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv26836

Modified Files:
	configure 
Log Message:
tweaked the configure script a bit

Index: configure
===================================================================
RCS file: /cvsroot/scummvm/scummvm/configure,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- configure	24 Aug 2002 23:35:29 -0000	1.4
+++ configure	23 Oct 2002 12:02:43 -0000	1.5
@@ -82,8 +82,14 @@
 #
 # 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 @@
 #
 # 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 @@
 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 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





More information about the Scummvm-git-logs mailing list