summaryrefslogtreecommitdiff
path: root/source3/configure
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2001-10-23 17:12:30 +0000
committerJim McDonough <jmcd@samba.org>2001-10-23 17:12:30 +0000
commit053f21feda024bbe6dd41de481794966008b6b0e (patch)
tree3d45a5a0258044675f1f37c84ca38552f43c3265 /source3/configure
parentb955d94d5cd7ca575d5fabd5d85c7c523d2a5e58 (diff)
downloadsamba-053f21feda024bbe6dd41de481794966008b6b0e.tar.gz
samba-053f21feda024bbe6dd41de481794966008b6b0e.tar.bz2
samba-053f21feda024bbe6dd41de481794966008b6b0e.zip
Fix popt library checking
(This used to be commit 2cd33e88eb5ed88da90ddfd50a1ec96a2053479a)
Diffstat (limited to 'source3/configure')
-rwxr-xr-xsource3/configure15
1 files changed, 4 insertions, 11 deletions
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 <<EOF
-#define $ac_tr_lib 1
-EOF
-
- LIBS="-lpopt $LIBS"
-
+ INCLUDED_POPT=no
else
echo "$ac_t""no" 1>&6
INCLUDED_POPT=yes
@@ -12935,11 +12928,11 @@ if test "$cross_compiling" = yes; then
:
else
cat > conftest.$ac_ext <<EOF
-#line 12939 "configure"
+#line 12932 "configure"
#include "confdefs.h"
#include "${srcdir-.}/tests/summary.c"
EOF
-if { (eval echo configure:12943: \"$ac_link\") 1>&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