don't check for a database driver until after the openssl check is
authorNathan Bryant <loanshark@uncensored.citadel.org>
Tue, 26 Mar 2002 05:58:35 +0000 (05:58 +0000)
committerNathan Bryant <loanshark@uncensored.citadel.org>
Tue, 26 Mar 2002 05:58:35 +0000 (05:58 +0000)
complete. if the ld paths aren't set up for the db installation this
can interfere with the openssl check because it tries to run a program
linked against the libraries we've been finding.

citadel/ChangeLog
citadel/configure.ac

index 0032b978e0feecdb5baef3432592841fbae804cf..5042e2e1fbd5d966b44c08284d3605a9ce20c9cc 100644 (file)
@@ -1,4 +1,10 @@
  $Log$
+ Revision 590.166  2002/03/26 05:58:35  nbryant
+ don't check for a database driver until after the openssl check is
+ complete. if the ld paths aren't set up for the db installation this
+ can interfere with the openssl check because it tries to run a program
+ linked against the libraries we've been finding.
+
  Revision 590.165  2002/03/26 05:20:46  nbryant
  removed last vestiges of "#ifdef CIT_CLIENT" conditional compilation,
  which has been rendered unusable by the build system simplifications
@@ -3556,3 +3562,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
+
index a13c6342eaa649460ee076e2fa7390c3ac4ecb59..2463dc0462efd8aa1b1821d9d0f74b6afef18479 100644 (file)
@@ -145,7 +145,7 @@ if test "$ac_cv_func_dlopen" = no; then
                test "$with_pam" = yes && chkpwd_LIBS="-ldl $chkpwd_LIBS"])
 fi
 
-dnl Check for HP/UX dyanmic loader. This should only be in -ldld.
+dnl Check for HP/UX dynamic loader. This should only be in -ldld.
 AC_CHECK_LIB(dld, shl_load, LIBS="-ldld $LIBS")
 
 dnl Check for Solaris realtime support
@@ -187,46 +187,6 @@ if test "$enable_autologin" != no; then
        fi
 fi
 
-if test "x$with_db" != xno -a "x$with_gdbm" != xyes; then
-       test "$db_dir" && LDFLAGS="$LDFLAGS -L$db_dir/lib"
-
-       dblib=""
-
-       if test -d "$db_dir/include/db4"; then
-               CPPFLAGS="$CPPFLAGS -I$db_dir/include/db4"
-               dblib="db4"
-       elif test -d "$db_dir/include/db3"; then
-               CPPFLAGS="$CPPFLAGS -I$db_dir/include/db3"
-               dblib="db3"
-       elif test "$db_dir"; then
-               CPPFLAGS="$CPPFLAGS -I$db_dir/include"
-       elif test -d /usr/include/db4; then
-               CPPFLAGS="$CPPFLAGS -I/usr/include/db4"
-               dblib="db4"
-       elif test -d /usr/include/db3; then
-               CPPFLAGS="$CPPFLAGS -I/usr/include/db3"
-               dblib="db3"
-       fi
-
-       AC_SEARCH_LIBS(db_env_create, [$dblib db db4 db3], [
-               DATABASE=database_sleepycat.c
-               with_gdbm=no
-       ])
-
-fi
-
-if test "x$with_gdbm" != xno -a "x$with_db" != xyes; then
-       test -f /usr/local/lib/libgdbm.a -o -f /usr/local/lib/libgdbm.so && db_dir=/usr/local
-       test "$db_dir" && LDFLAGS="$LDFLAGS -L$db_dir/lib"
-
-       test "$db_dir" && CPPFLAGS="$CPPFLAGS -I$db_dir/include"
-
-        AC_CHECK_LIB(gdbm, gdbm_open,
-                [LIBS="-lgdbm $LIBS"
-                DATABASE=database.c
-                with_db=no])
-fi
-
 test -f /usr/local/lib/libresolv.a && LDFLAGS="$LDFLAGS -L/usr/local/lib"
 AC_CHECK_LIB(resolv, res_query, RESOLV="$RESOLV -lresolv")
 
@@ -350,7 +310,47 @@ if test "$with_ssl" != "no"; then
                fi
        fi
 fi
-       
+
+if test "x$with_db" != xno -a "x$with_gdbm" != xyes; then
+       test "$db_dir" && LDFLAGS="$LDFLAGS -L$db_dir/lib"
+
+       dblib=""
+
+       if test -d "$db_dir/include/db4"; then
+               CPPFLAGS="$CPPFLAGS -I$db_dir/include/db4"
+               dblib="db4"
+       elif test -d "$db_dir/include/db3"; then
+               CPPFLAGS="$CPPFLAGS -I$db_dir/include/db3"
+               dblib="db3"
+       elif test "$db_dir"; then
+               CPPFLAGS="$CPPFLAGS -I$db_dir/include"
+       elif test -d /usr/include/db4; then
+               CPPFLAGS="$CPPFLAGS -I/usr/include/db4"
+               dblib="db4"
+       elif test -d /usr/include/db3; then
+               CPPFLAGS="$CPPFLAGS -I/usr/include/db3"
+               dblib="db3"
+       fi
+
+       AC_SEARCH_LIBS(db_env_create, [$dblib db db4 db3], [
+               DATABASE=database_sleepycat.c
+               with_gdbm=no
+       ])
+
+fi
+
+if test "x$with_gdbm" != xno -a "x$with_db" != xyes; then
+       test -f /usr/local/lib/libgdbm.a -o -f /usr/local/lib/libgdbm.so && db_dir=/usr/local
+       test "$db_dir" && LDFLAGS="$LDFLAGS -L$db_dir/lib"
+
+       test "$db_dir" && CPPFLAGS="$CPPFLAGS -I$db_dir/include"
+
+        AC_CHECK_LIB(gdbm, gdbm_open,
+                [LIBS="-lgdbm $LIBS"
+                DATABASE=database.c
+                with_db=no])
+fi
+
 dnl Checks for header files.
 AC_HEADER_DIRENT
 AC_HEADER_STDC