dnl Process this file with autoconf to produce a configure script. AC_INIT([gdbm], [1.8.3]) AC_PREREQ(2.54) AC_CONFIG_SRCDIR([gdbmdefs.h]) AC_CONFIG_HEADERS([autoconf.h]) dnl get $target_cpu, $target_vendor, and $target_os dnl (as well as host_*) AC_CANONICAL_SYSTEM AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL AM_PROG_LIBTOOL dnl AC_PROG_RANLIB dnl AC_C_BIGENDIAN([]) AC_MSG_CHECKING(to see if architecture is 64-bit) arch_64bit=no case "$host_cpu" in x86_64) arch_64bit=yes ;; esac if test "$arch_64bit" = yes; then AC_MSG_RESULT(yes) if test -z "$COMPAT32BITFLAGS" ; then COMPAT32BITFLAGS="-m32" LIBTOOLCOMPAT32BITFLAGS="-Wl,-m32" fi else AC_MSG_RESULT(no) if test -z "$COMPAT32BITFLAGS" ; then COMPAT32BITFLAGS= LIBTOOLCOMPAT32BITFLAGS= fi fi export COMPAT32BITFLAGS AC_SUBST(COMPAT32BITFLAGS) AC_C_CONST AC_CHECK_HEADERS([stdlib.h string.h sys/file.h unistd.h fcntl.h sys/types.h memory.y]) AC_CHECK_LIB(dbm, main) AC_CHECK_LIB(ndbm, main) AC_CHECK_FUNCS([rename ftruncate flock bcopy fsync]) AC_REPLACE_FUNCS(getopt) AC_TYPE_OFF_T AC_CHECK_MEMBERS([struct stat.st_blksize]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT