configure
changeset 4094 a83fac319c4e
parent 4009 16c7ad34af62
child 4827 e79ca4952307
equal deleted inserted replaced
4093:a507fc64d74b 4094:a83fac319c4e
    15 	echo " --dedicated        Make a dedicated build              [no]"
    15 	echo " --dedicated        Make a dedicated build              [no]"
    16 	echo " --revision         Set the revision of the compilation [detected]"
    16 	echo " --revision         Set the revision of the compilation [detected]"
    17 	echo " --target-cc        Sets the target-compiler            [\$CC]"
    17 	echo " --target-cc        Sets the target-compiler            [\$CC]"
    18 	echo " --target-cxx       Sets the C++ target-compiler        []"
    18 	echo " --target-cxx       Sets the C++ target-compiler        []"
    19 	echo " --host-cc          Sets the host-compiler              [\$CC]"
    19 	echo " --host-cc          Sets the host-compiler              [\$CC]"
       
    20 	echo " --host-cxx         Sets the C++ host-compiler          []"
    20 	echo " --os               Sets the OS. Listens to:            [detected]"
    21 	echo " --os               Sets the OS. Listens to:            [detected]"
    21 	echo "                       UNIX, OSX, FREEBSD, MORPHOS"
    22 	echo "                       UNIX, OSX, FREEBSD, MORPHOS"
    22 	echo "                       BEOS, SUNOS, CYGWIN, MINGW"
    23 	echo "                       BEOS, SUNOS, CYGWIN, MINGW"
    23 	echo " --windres          Sets the windres (Windows)          [windres]"
    24 	echo " --windres          Sets the windres (Windows)          [windres]"
    24 	echo " --force-le         Force LE platform                   [no]"
    25 	echo " --force-le         Force LE platform                   [no]"
    83 			;;
    84 			;;
    84 		--target-cc)
    85 		--target-cc)
    85 			ITEM="CC_TARGET"
    86 			ITEM="CC_TARGET"
    86 			;;
    87 			;;
    87 		--target-cxx=*)
    88 		--target-cxx=*)
    88 			TARGET_CXX=`awk 'BEGIN { FS="="; $0="'"$n"'"; print $2;}'`
    89 			handle "CXX_TARGET" "$n"
    89 			;;
    90 			;;
    90 		--target-cxx)
    91 		--target-cxx)
    91 			SITEM="TARGET_CXX"
    92 			SITEM="CXX_TARGET"
    92 			;;
    93 			;;
    93 		--host-cc=*)
    94 		--host-cc=*)
    94 			handle CC_HOST "$n"
    95 			handle "CC_HOST" "$n"
    95 			;;
    96 			;;
    96 		--host-cc)
    97 		--host-cc)
    97 			ITEM="CC_HOST"
    98 			ITEM="CC_HOST"
       
    99 			;;
       
   100 		--host-cxx=*)
       
   101 			handle "CXX_HOST" "$n"
       
   102 			;;
       
   103 		--host-cxx)
       
   104 			ITEM="CXX_HOST"
    98 			;;
   105 			;;
    99 		--host-cflags=*)
   106 		--host-cflags=*)
   100 			handle CFLAGS_HOST "$n"
   107 			handle CFLAGS_HOST "$n"
   101 			;;
   108 			;;
   102 		--host-cflags)
   109 		--host-cflags)
   180 			ITEM="SDL_CONFIG"
   187 			ITEM="SDL_CONFIG"
   181 			;;
   188 			;;
   182 		--libpng-config=*)
   189 		--libpng-config=*)
   183 			handle LIBPNG_CONFIG "$n"
   190 			handle LIBPNG_CONFIG "$n"
   184 			;;
   191 			;;
   185 		--lib-png-config)
   192 		--libpng-config)
   186 			ITEM="LIBPNG_CONFIG"
   193 			ITEM="LIBPNG_CONFIG"
   187 			;;
   194 			;;
   188 
   195 
   189 		--*=*)
   196 		--*=*)
   190 			echo -n "Unknown switch "
   197 			echo -n "Unknown switch "
   266 
   273 
   267 echo "make upgradeconf $PARAM" > Makefile.run
   274 echo "make upgradeconf $PARAM" > Makefile.run
   268 . Makefile.run
   275 . Makefile.run
   269 rm -f Makefile.run
   276 rm -f Makefile.run
   270 
   277 
   271 # Makefile.config currently doesn't support custom CXX, so, we add the line
   278 # Makefile.config currently doesn't support custom RELEASE (revision), so, we add the line
   272 #  ourself!
   279 # yourself!
   273 
       
   274 if ! test -z "$TARGET_CXX"
       
   275 then
       
   276 	echo "CXX=$TARGET_CXX" >> Makefile.config
       
   277 fi
       
   278 
       
   279 # Same for RELEASE (read: REVISION)
       
   280 
   280 
   281 if ! test -z "$RELEASE"
   281 if ! test -z "$RELEASE"
   282 then
   282 then
   283 	echo "RELEASE=$RELEASE" >> Makefile.config
   283 	echo "RELEASE=$RELEASE" >> Makefile.config
   284 fi
   284 fi