$NetBSD: patch-ai,v 1.31 2014/02/09 05:34:13 taca Exp $ Make this pkgsrc friendly. --- makedefs.orig 2014-01-05 17:18:56.000000000 +0000 +++ makedefs @@ -239,13 +239,6 @@ case "$SYSTEM.$RELEASE" in esac ;; ULTRIX.4*) SYSTYPE=ULTRIX4 - if [ -f /usr/local/lib/libdb.a ]; then - SYSLIBS="$SYSLIBS -ldb" - CCARGS="$CCARGS -DHAS_DB" - if [ -d /usr/local/include/db ]; then - CCARGS="$CCARGS -I/usr/local/include/db" - fi - fi for l in syslog resolv; do if [ -f /usr/local/lib/lib$l.a ]; then SYSLIBS="$SYSLIBS -l$l" @@ -283,33 +276,8 @@ case "$SYSTEM.$RELEASE" in esac;; # Tested with RedHat 3.03 on 20020729. Linux.1*) SYSTYPE=LINUX1 - case "$CCARGS" in - *-DNO_DB*) ;; - *-DHAS_DB*) ;; - *) SYSLIBS="-ldb";; - esac ;; Linux.2*) SYSTYPE=LINUX2 - case "$CCARGS" in - *-DNO_DB*) ;; - *-DHAS_DB*) ;; - *) if [ -f /usr/include/db.h ] - then - : we are all set - elif [ -f /usr/include/db/db.h ] - then - CCARGS="$CCARGS -I/usr/include/db" - else - # No, we're not going to try db1 db2 db3 etc. - # On a properly installed system, Postfix builds - # by including and by linking with -ldb - echo "No include file found." 1>&2 - echo "Install the appropriate db*-devel package first." 1>&2 - exit 1 - fi - SYSLIBS="-ldb" - ;; - esac for name in nsl resolv $GDBM_LIBS do for lib in /usr/lib64 /lib64 /usr/lib /lib @@ -363,25 +331,6 @@ EOF esac ;; Linux.3*) SYSTYPE=LINUX3 - case "$CCARGS" in - *-DNO_DB*) ;; - *-DHAS_DB*) ;; - *) if [ -f /usr/include/db.h ] - then - : we are all set - elif [ -f /usr/include/db/db.h ] - then - CCARGS="$CCARGS -I/usr/include/db" - else - # On a properly installed system, Postfix builds - # by including and by linking with -ldb - echo "No include file found." 1>&2 - echo "Install the appropriate db*-devel package first." 1>&2 - exit 1 - fi - SYSLIBS="-ldb" - ;; - esac for name in nsl resolv do for lib in /usr/lib64 /lib64 /usr/lib /usr/lib/* /lib /lib/* @@ -395,24 +344,6 @@ EOF ;; GNU.0*|GNU/kFreeBSD.[567]*) SYSTYPE=GNU0 - case "$CCARGS" in - *-DNO_DB*) ;; - *) if [ -f /usr/include/db.h ] - then - : we are all set - elif [ -f /usr/include/db/db.h ] - then - CCARGS="$CCARGS -I/usr/include/db" - else - # On a properly installed system, Postfix builds - # by including and by linking with -ldb - echo "No include file found." 1>&2 - echo "Install the appropriate db*-devel package first." 1>&2 - exit 1 - fi - SYSLIBS="-ldb" - ;; - esac for name in nsl resolv do for lib in /usr/lib64 /lib64 /usr/lib /lib @@ -443,25 +374,13 @@ EOF HP-UX.A.09.*) SYSTYPE=HPUX9 SYSLIBS=-ldbm CCARGS="$CCARGS -DMISSING_USLEEP" - if [ -f /usr/lib/libdb.a ]; then - CCARGS="$CCARGS -DHAS_DB" - SYSLIBS="$SYSLIBS -ldb" - fi ;; HP-UX.B.10.*) SYSTYPE=HPUX10 CCARGS="$CCARGS `nm /usr/lib/libc.a 2>/dev/null | (grep usleep >/dev/null || echo '-DMISSING_USLEEP')`" - if [ -f /usr/lib/libdb.a ]; then - CCARGS="$CCARGS -DHAS_DB" - SYSLIBS=-ldb - fi ;; HP-UX.B.11.*) SYSTYPE=HPUX11 SYSLIBS=-lnsl - if [ -f /usr/lib/libdb.a ]; then - CCARGS="$CCARGS -DHAS_DB" - SYSLIBS="$SYSLIBS -ldb" - fi ;; ReliantUNIX-?.5.43) SYSTYPE=ReliantUnix543 RANLIB=echo