From 053f21feda024bbe6dd41de481794966008b6b0e Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Tue, 23 Oct 2001 17:12:30 +0000 Subject: Fix popt library checking (This used to be commit 2cd33e88eb5ed88da90ddfd50a1ec96a2053479a) --- source3/configure | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'source3/configure') diff --git a/source3/configure b/source3/configure index f640a43885..c851f13ebf 100755 --- a/source3/configure +++ b/source3/configure @@ -12866,7 +12866,7 @@ if test "${with_included_popt+set}" = set; then esac fi -if test x"$INCLUDED_POPT" = x"no"; then +if test x"$INCLUDED_POPT" != x"yes"; then echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6 echo "configure:12872: checking for poptGetContext in -lpopt" >&5 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'` @@ -12902,14 +12902,7 @@ 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 popt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 INCLUDED_POPT=yes @@ -12935,11 +12928,11 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:12936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then echo "configure OK"; else -- cgit