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_DEFINE_UNQUOTED(ARCH_DEP_FLAGS, $ARCH_DEP_FLAGS)
AC_SUBST(ARCH_DEP_FLAGS)


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 bcmp fsync])
AC_REPLACE_FUNCS(getopt)
AC_TYPE_OFF_T
AC_CHECK_MEMBERS([struct stat.st_blksize])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
