$Log$
+ Revision 590.127 2002/03/05 22:45:40 error
+ * Autoconf fixes for DB4 support
+
Revision 590.126 2002/03/05 04:47:49 ajc
* vcard.c: another API update
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS(curses.h dl.h fcntl.h limits.h termios.h sys/ioctl.h sys/select.h sys/time.h syslog.h unistd.h utmp.h utmpx.h paths.h db.h db3/db.h)
+AC_CHECK_HEADERS(curses.h dl.h fcntl.h limits.h termios.h sys/ioctl.h sys/select.h sys/time.h syslog.h unistd.h utmp.h utmpx.h paths.h db.h db3/db.h db4/db.h)
AC_CHECK_HEADER(resolv.h, [SMTP=modules/libsmtp.la; DOMAIN=domain.c])
AC_SUBST(SMTP)
#include <sys/stat.h>
#include <dirent.h>
-#ifdef HAVE_DB_H
-#include <db.h>
+#ifdef HAVE_DB4_DB_H
+#include <db4/db.h>
#elif defined(HAVE_DB3_DB_H)
#include <db3/db.h>
+#elif defined(HAVE_DB_H)
+#include <db.h>
#else
#error Neither <db.h> nor <db3/db.h> was found by configure. Install db3-devel.
#endif