Ticket #724: patch_configure

File patch_configure, 1.4 KB (added by ole_guldberg@…, 21 years ago)

to be put in files/

Line 
1--- configure.org       Wed Jul 23 15:11:42 2003
2+++ configure   Wed Jul 23 15:13:51 2003
3@@ -3560,7 +3560,7 @@
4     ;;
5 
6   darwin* | rhapsody*)
7-    allow_undefined_flag='-undefined suppress'
8+    allow_undefined_flag='-undefined suppress -flat_namespace'
9     # FIXME: Relying on posixy $() will cause problems for
10     #        cross-compilation, but unfortunately the echo tests do not
11     #        yet detect zsh echo's removal of \ escapes.
12@@ -10676,17 +10676,17 @@
13 saveLDFLAGS="$LDFLAGS"
14 if test "x$with_db3" != "x"; then
15        LDFLAGS="-L$with_db3/lib $LDFLAGS"
16-       CFLAGS="-I$with_db3/include $CFLAGS"
17+       CFLAGS="-I$with_db3/include/db3 $CFLAGS"
18 fi;
19 
20-echo $ac_n "checking for db_create in -ldb""... $ac_c" 1>&6
21-echo "configure:10684: checking for db_create in -ldb" >&5
22+echo $ac_n "checking for db_create in -ldb-3.1""... $ac_c" 1>&6
23+echo "configure:10684: checking for db_create in -ldb-3.1" >&5
24 ac_lib_var=`echo db'_'db_create | sed 'y%./+-%__p_%'`
25 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
26   echo $ac_n "(cached) $ac_c" 1>&6
27 else
28   ac_save_LIBS="$LIBS"
29-LIBS="-ldb  $LIBS"
30+LIBS="-ldb-3.1  $LIBS"
31 cat > conftest.$ac_ext <<EOF
32 #line 10692 "configure"
33 #include "confdefs.h"
34@@ -10835,7 +10835,7 @@
35        dl_src=../common/dldb.c
36        LIBS="-ldl $LIBS"
37 else
38-       LIBS="-ldb $LIBS"
39+       LIBS="-ldb-3.1 $LIBS"
40        if test "X$with_db3" != "X"; then
41                LDFLAGS="`echo $with_db3/lib | sed "$LRscript"` $LDFLAGS"
42        fi