ab6f442011-04-25Martin Stjernholm # $Id$
a80a9c1997-02-11Fredrik Hübinette (Hubbe) AC_INIT(gdbmmod.c) AC_CONFIG_HEADER(gdbm_machine.h) AC_ARG_WITH(gdbm, [ --with(out)-gdbm GNU database manager support ],[],[with_gdbm=yes])
e269811998-09-20Fredrik Hübinette (Hubbe) AC_MODULE_INIT()
a80a9c1997-02-11Fredrik Hübinette (Hubbe) 
2d3c852001-07-10Martin Stjernholm PIKE_FEATURE_WITHOUT(Gdbm)
a80a9c1997-02-11Fredrik Hübinette (Hubbe) if test x$with_gdbm = xyes; then
2d3c852001-07-10Martin Stjernholm  PIKE_FEATURE_NODEP(Gdbm)
a80a9c1997-02-11Fredrik Hübinette (Hubbe)  AC_CHECK_HEADERS(gdbm.h)
56e7332008-07-18Martin Stjernholm  AC_SEARCH_LIBS(gdbm_open, gdbm libgdbm, [ if test x$ac_cv_header_gdbm_h = xyes; then AC_DEFINE(HAVE_LIBGDBM, [], [Defined if the gdbm library is found.]) PIKE_FEATURE_OK(Gdbm) fi ])
a80a9c1997-02-11Fredrik Hübinette (Hubbe) fi AC_OUTPUT(Makefile,echo FOO >stamp-h )