$NetBSD: patch-ae,v 1.3 2002/03/09 21:48:12 fredb Exp $ --- configure.orig Thu Jan 31 17:47:14 2002 +++ configure @@ -1761,6 +1761,53 @@ +echo $ac_n "checking for db_appinit in -ldb2""... $ac_c" 1>&6 +echo "configure:1766: checking for db_appinit in -ldb2" >&5 +ac_lib_var=`echo db2'_'db_appinit | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-ldb2 $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo db2 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <&6 +fi + echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 echo "configure:1766: checking for socket in -lsocket" >&5 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` @@ -2633,10 +2680,10 @@ cross_compiling=$ac_cv_prog_cc_cross -if test ! -d "./db"; then - mkdir db -fi -subdirs="db/dist" +#if test ! -d "./db"; then +# mkdir db +#fi +#subdirs="db/dist" trap '' 1 2 15 @@ -2807,7 +2854,7 @@ s%@CPP@%$CPP%g s%@CXXCPP@%$CXXCPP%g s%@LIBOBJS@%$LIBOBJS%g -s%@subdirs@%$subdirs%g +#s%@subdirs@%$subdirs%g CEOF EOF @@ -3027,7 +3074,7 @@ rm -fr confdefs* $ac_clean_files test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 -if test "$no_recursion" != yes; then +if false; then # Remove --cache-file and --srcdir arguments so they do not pile up. ac_sub_configure_args=