diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/configure.in b/configure.in index e4618f58a91..5e19a65bc17 100644 --- a/configure.in +++ b/configure.in @@ -22,7 +22,7 @@ AC_CANONICAL_SYSTEM AM_INIT_AUTOMAKE([1.9 tar-ustar]) AC_PROG_LIBTOOL -AM_CONFIG_HEADER([include/config.h]) +AC_CONFIG_HEADERS([include/config.h]) # Request support for automake silent-rules if available. # Default to verbose output. One can use the configure-time @@ -269,6 +269,31 @@ AC_SUBST(LIBTOOL)dnl AC_SUBST(NM)dnl +############################################################################## +# In automake 1.12, the extension on generated yacc/bison header files changed +############################################################################## + +YACC_HEXT="h" +MAKEFILE_1ST=`head -1 "$srcdir/Makefile.in"` +AMAKE_MAJOR=`expr "$MAKEFILE_1ST" : '.*generated by automake \([[0-9]]*\).*'` +if test $? -eq "0" ; then + if test "$AMAKE_MAJOR" -gt "1" ; then + YACC_HEXT="hh" + CXXFLAGS="$CXXFLAGS -DYACC_HEXT_HH" + elif test "$AMAKE_MAJOR" -eq "1" ; then + AMAKE_MINOR=`expr "$MAKEFILE_1ST" : '.*generated by automake 1.\([[0-9]]*\).*'` + if test $? -eq "0" ; then + if test "$AMAKE_MINOR" -ge "12" ; then + YACC_HEXT="hh" + CXXFLAGS="$CXXFLAGS -DYACC_HEXT_HH" + fi + fi + fi +fi +AC_SUBST(YACC_HEXT) + +############################################################################## + # NM= "$NM -X64" #archive_expsym_cmds= `echo "$archive_expsym_cmds" | sed -e '/"$(CC)"//'` #archive_expsym_cmds= "$CC -q64 $archive_expsym_cmds" |