Hi,

Our Linux compile environment has changed so that db.h is not in a
standard place any more.

However makedefs seem to insist that is should be in /usr/include

My initial make reads something like so:

make -f Makefile.init makefiles CCARGS="-DHAS_DB -I$db/include" \
        AUXLIBS="-L$db/lib -ldb"

Like http://www.postfix.org/DB_README.html tells me.

Attached patch detects '-DHAS_DB' and just skips further tests.

Would that be acceptable for future releases?


-- 
Leo Baltus, internetbeheerder                         /\
NPO ICT Internet Services                            /NPO/\
Sumatralaan 45, 1217 GP Hilversum, Filmcentrum, west \  /\/
serviced...@omroep.nl, 035-6773555                    \/
--- postfix-2.10.1/makedefs.orig        2013-08-01 15:07:56.000000000 +0200
+++ postfix-2.10.1/makedefs     2013-08-01 15:09:01.000000000 +0200
@@ -278,6 +278,7 @@
     Linux.2*)  SYSTYPE=LINUX2
                case "$CCARGS" in
                 *-DNO_DB*) ;;
+                *-DHAS_DB*) ;;
                 *) if [ -f /usr/include/db.h ]
                    then
                        : we are all set
@@ -350,6 +351,7 @@
     Linux.3*)  SYSTYPE=LINUX3
                case "$CCARGS" in
                 *-DNO_DB*) ;;
+                *-DHAS_DB*) ;;
                 *) if [ -f /usr/include/db.h ]
                    then
                        : we are all set

Reply via email to