On Tue, 2009-06-09 at 17:29 +1000, Bojan Smojver wrote:
> PS. We do have a workaround for ldap along these lines, where we
> report ldap in --libs, unless --avoid-ldap is passed to the config
> script. Maybe we should do this here, to avoid breaking compilation
> compatibility. Opinions?

Quick and dirty...

-- 
Bojan
Index: apu-config.in
===================================================================
--- apu-config.in	(revision 782876)
+++ apu-config.in	(working copy)
@@ -31,6 +31,7 @@
 INCLUDES="@APRUTIL_INCLUDES@"
 LDFLAGS="@APRUTIL_LDFLAGS@"
 LDAP_LIBS="@LDADD_ldap@"
+DBM_LIBS="@LDADD_dbm_db@ @LDADD_dbm_gdbm@ @LDADD_dbm_ndbm@"
 
 APRUTIL_LIBNAME="@APRUTIL_LIBNAME@"
 
@@ -56,6 +57,8 @@
   --libs            print library information
   --avoid-ldap      do not include ldap library information with --libs
   --ldap-libs       print additional library information to link with ldap
+  --avoid-dbm       do not include DBM library information with --libs
+  --dbm-libs        print additional library information to link with DBM
   --srcdir          print APR-util source directory
   --link-ld         print link switch(es) for linking to APR-util
   --link-libtool    print the libtool inputs for linking to APR-util
@@ -115,12 +118,18 @@
     --avoid-ldap)
     LDAP_LIBS=""
     ;;
+    --avoid-dbm)
+    DBM_LIBS=""
+    ;;
     --libs)
-    flags="$flags $LDAP_LIBS $LIBS"
+    flags="$flags $DBM_LIBS $LDAP_LIBS $LIBS"
     ;;
     --ldap-libs)
     flags="$flags $LDAP_LIBS"
     ;;
+    --dbm-libs)
+    flags="$flags $DBM_LIBS"
+    ;;
     --includedir)
     if test "$location" = "installed"; then
         flags="$includedir"

Reply via email to