$Log$
+ Revision 590.8 2001/12/14 21:33:18 nbryant
+ finally changed configure to complain if there's no database driver ;)
+
Revision 590.7 2001/12/14 08:29:30 error
* Security: trace file is now only readable by owner, since it contains
plain text passwords.
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
dnl On some platforms, AC_CHECK_FUNC[S] doesn't work for pthreads programs;
dnl we need to include pthread.h
-dnl AC_CHECK_FUNCS(pthread_cancel)
AC_CACHE_CHECK([for pthread_cancel], ac_cv_func_pthread_cancel,
[AC_TRY_LINK([#include <pthread.h>],
AC_DEFINE(HAVE_PTHREAD_CANCEL)
fi
-dnl AC_CHECK_FUNC(pthread_create, TARGETS="client server utils serv_modules")
-
AC_CACHE_CHECK([for pthread_create], ac_cv_func_pthread_create,
[AC_TRY_LINK([#include <pthread.h>],
[ /* The GNU C library defines this for functions which it implements
#endif],
ac_cv_func_pthread_create=yes, ac_cv_func_pthread_create=no)])
if test "$ac_cv_func_pthread_create" = yes; then
- TARGETS="client server utils serv_modules"
+ test "$DATABASE" && TARGETS="client server utils serv_modules"
if test "x$enable_threaded_client" != xno; then
AC_DEFINE(THREADED_CLIENT)
CLIENT_PTLIBS=$PTHREAD_LIBS
AC_CONFIG_HEADER(sysdep.h)
AC_CONFIG_FILES([Makefile weekly])
AC_OUTPUT
+
+if test -z "$DATABASE"; then
+ AC_MSG_WARN([No database driver was found. Please install Berkeley DB.])
+fi