X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=autogen.sh;h=c8fcac7337037cbea70af4e2a2afd17e3ad00da7;hb=112f01454123c94f5627200c6819b219026f0af0;hp=f9a92f0d6f9e80fed4c63f260b44a54bace33bd1;hpb=5a5b108ccc6a10c3daaa6803772802e8a9995329;p=supertux.git diff --git a/autogen.sh b/autogen.sh index f9a92f0d6..c8fcac733 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,10 +1,30 @@ #!/bin/sh -# we need a minimum of automake 1.6 and automake 1.8 seems to be buggy -export WANT_AUTOMAKE=1.6 +# Correct working directory? +if test ! -f configure.ac ; then + echo "*** Please invoke this script from directory containing configure.ac." + exit 1 +fi aclocal -I mk/autoconf -automake --copy --add-missing +autoheader + +# generate Jamconfig.in +cat > Jamconfig.in << __EOF__ +# the following unsets some stuff from Jambase +CC = ; +CFLAGS = ; +LINK = ; +LINKFLAGS = ; +AR = ; +# Configuration part (you can customize this) +__EOF__ +autoconf --trace=AC_SUBST \ + | sed -e 's/configure.ac:[0-9]*:AC_SUBST:\([^:]*\).*/\1 ?= "@\1@" ;/g' \ + | sed -e 's/.*BACKSLASH.*//' \ + >> Jamconfig.in +echo 'INSTALL ?= "@INSTALL@" ;' >> Jamconfig.in +echo 'JAMCONFIG_READ = yes ;' >> Jamconfig.in + autoconf -# EOF #