--- apr-util-1.2.7/configure.orig Mon Sep 26 18:28:49 2005 +++ apr-util-1.2.7/configure Fri Dec 23 15:06:09 2005 @@ -13806,6 +13806,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 " @@ -14064,6 +14066,9 @@ fi fi + + CPPFLAGS="$saved_cppflags" + LIBS="$saved_libs" fi else