]> arthur.barton.de Git - netatalk.git/commitdiff
MFH: Fix the BDB bin directory.
authorjmarcus <jmarcus>
Sun, 16 Feb 2003 02:14:07 +0000 (02:14 +0000)
committerjmarcus <jmarcus>
Sun, 16 Feb 2003 02:14:07 +0000 (02:14 +0000)
bin/cnid/cnid_maint.in
macros/db3-check.m4

index ecbc24b5990347dacf78c62d13b7d23811e231c5..83a0eeec6db2fde8e08145371f1c1b8bbb18254f 100755 (executable)
@@ -3,7 +3,7 @@
 #
 # cnid_maint: A script to maintain the consistency of CNID databases.
 #
-# $Id: cnid_maint.in,v 1.12.2.1 2003-02-11 04:31:39 jmarcus Exp $
+# $Id: cnid_maint.in,v 1.12.2.2 2003-02-16 02:14:07 jmarcus Exp $
 #
 
 use strict;
@@ -32,9 +32,9 @@ $START_CMD = '/usr/local/etc/rc.d/netatalk.sh start';
 # Below is the example of a BSD ps.  A SYSV example is:
 # /bin/ps -eflouid,pid,ppid,comm
 $PS_CMD             = '@PS@ -axouser,pid,ppid,command';
-$DB_STAT            = '@BDB_PATH@bin/db_stat';
-$DB_RECOVER         = '@BDB_PATH@bin/db_recover';
-$DB_VERIFY          = '@BDB_PATH@bin/db_verify';
+$DB_STAT            = '@BDB_BIN@bin/db_stat';
+$DB_RECOVER         = '@BDB_BIN@bin/db_recover';
+$DB_VERIFY          = '@BDB_BIN@bin/db_verify';
 $APPLE_VOLUMES_FILE = '@PKGCONFDIR@/AppleVolumes.default';
 ## End edit section
 
index 06c79fb705fd57c6bd44dbad836b2556d4548b3b..deb4e68f375c222b434a7d958a27b51664d2e55f 100644 (file)
@@ -1,4 +1,4 @@
-dnl $Id: db3-check.m4,v 1.7.4.1 2003-02-08 03:16:53 jmarcus Exp $
+dnl $Id: db3-check.m4,v 1.7.4.2 2003-02-16 02:14:07 jmarcus Exp $
 dnl Autoconf macro to check for the Berkeley DB library
 
 AC_DEFUN([AC_PATH_BDB], [
@@ -15,6 +15,8 @@ AC_DEFUN([AC_PATH_BDB], [
                if test -f "$bdbdir/db.h" ; then
                        bdblibdir="`echo $bdbdir | sed 's/include\/db3$/lib/'`"
                        bdblibdir="`echo $bdblibdir | sed 's/include$/lib/'`"
+                       bdbbindir="`echo $bdbdir | sed 's/include\/db3$/bin/'`"
+                       bdbbindir="`echo $bdbbindir | sed 's/include$/bin/'`"
 
                        savedcflags="$CFLAGS"
                        savedldflags="$LDFLAGS"
@@ -24,6 +26,7 @@ AC_DEFUN([AC_PATH_BDB], [
                                bdbfound=yes
                                BDB_CFLAGS="-I$bdbdir"
                                BDB_LIBS="-L$bdblibdir -ldb"
+                               BDB_BIN=$bdbbindir
                                BDB_PATH="`echo $bdbdir | sed 's,include/db3$,,'`"
                        ])
                        CFLAGS="$savedcflags"
@@ -40,5 +43,6 @@ AC_DEFUN([AC_PATH_BDB], [
 
        AC_SUBST(BDB_CFLAGS)
        AC_SUBST(BDB_LIBS)
+       AC_SUBST(BDB_BIN)
        AC_SUBST(BDB_PATH)
 ])