aboutsummaryrefslogtreecommitdiffstats
path: root/devel/apr0/files/patch-apr-util_build_dbm.m4
blob: f70a65798ad4088e2166f8854ed6d496c8cc98ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- apr-util-1.2.12/build/dbm.m4-orig   Wed Dec  7 09:02:23 2005
+++ apr-util-1.2.12/build/dbm.m4    Wed Dec 23 09:07:34 2005
@@ -588,6 +588,8 @@
     elif test "$withval" = "no"; then
       apu_have_gdbm=0
     else
+      saved_cppflags="$CPPFLAGS"
+      saved_libs="$LIBS"
       CPPFLAGS="-I$withval/include"
       LIBS="-L$withval/lib "
 
@@ -597,6 +599,9 @@
         APR_ADDTO(APRUTIL_LDFLAGS, [-L$withval/lib])
         APR_ADDTO(APRUTIL_INCLUDES, [-I$withval/include])
       fi
+
+      CPPFLAGS="$saved_cppflags"
+      LIBS="$saved_libs"
     fi
   ], [
     apu_have_gdbm=0