diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/configure.ac b/configure.ac index ac257f98..bb81f800 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,7 @@ dnl dnl Process this file with autoconf to produce a configure script. -AC_INIT([GNU Awk], 4.0.1a, bug-gawk@gnu.org, gawk) +AC_INIT([GNU Awk], 4.0.70, bug-gawk@gnu.org, gawk) # This is a hack. Different versions of install on different systems # are just too different. Chuck it and use install-sh. @@ -95,10 +95,16 @@ then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) + CFLAGS="$CFLAGS -DNDEBUG" # turn off assertions fi AC_SUBST(CFLAGS) +# shared library suffix for dynamic loading: +AC_SUBST(acl_shlibext) +# default shared library location +AC_SUBST([pkgextensiondir], ['${pkglibdir}']) + dnl checks for systems AC_ZOS_USS AC_ISC_POSIX @@ -280,17 +286,6 @@ dnl check for dynamic linking dnl This is known to be very primitive AC_CHECK_HEADER(dlfcn.h, [AC_DEFINE([DYNAMIC], 1, [dynamic loading is possible]) - if test "$GCC" = yes - then - # Add others here as appropriate, - # one day use GNU libtool. - # 3/2010: Used to have cygwin here but removed since - # we get complaints that -export-dynamic doesn't work. - if uname | $EGREP -i 'linux|freebsd' > /dev/null - then - LDFLAGS="$LDFLAGS -export-dynamic" - fi - fi # Check this separately. Some systems have dlopen # in libc. Notably freebsd and cygwin. @@ -343,6 +338,9 @@ GAWK_AC_LIB_SOCKETS dnl check for readline support GNUPG_CHECK_READLINE +dnl check for mpfr support +GNUPG_CHECK_MPFR + dnl checks for structure members AC_STRUCT_ST_BLKSIZE AC_HEADER_TIME @@ -359,9 +357,19 @@ AC_C_STRINGIZE AC_CONFIG_HEADERS([config.h:configh.in]) AH_BOTTOM([#include "custom.h"]) +dnl Crude but small hack to make plug-ins work on Mac OS X +dnl We should really use the libtool value for shrext_cmds, but that +dnl is not available here, since we do not use libtool at the top level. +case $acl_shlibext in +dylib) GAWKLIBEXT=so ;; # MacOS uses .dylib for shared libraries, but libtool uses .so for modules +*) GAWKLIBEXT=$acl_shlibext ;; +esac +AC_SUBST(GAWKLIBEXT) + AC_CONFIG_FILES(Makefile awklib/Makefile doc/Makefile po/Makefile.in test/Makefile) +AC_CONFIG_SUBDIRS(extension) AC_OUTPUT |