From: Adam Dickmeiss Date: Thu, 22 Apr 1999 14:26:38 +0000 (+0000) Subject: Added check for -lwrap. X-Git-Tag: ZEBRA.1.0~121 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=3180c4ff61c4e475ba6db7a00b1750f0a02f33ac Added check for -lwrap. --- diff --git a/configure b/configure index 5833d1c..7cb4b3b 100755 --- a/configure +++ b/configure @@ -1083,13 +1083,49 @@ fi fi +echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6 +echo "configure:1088: checking for main in -lwrap" >&5 +ac_lib_var=`echo wrap'_'main | 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="-lwrap $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; 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 + LIBS="$LIBS -lwrap" +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:1088: checking for ANSI C header files" >&5 +echo "configure:1124: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -1097,7 +1133,7 @@ else #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -1114,7 +1150,7 @@ rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -1132,7 +1168,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -1153,7 +1189,7 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -1164,7 +1200,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF -if { (eval echo configure:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:1204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then : else diff --git a/configure.in b/configure.in index 5994e45..4923260 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ -dnl YAZ/Zebra Toolkit -dnl (c) Index Data 1994-1998 +dnl Zebra Toolkit +dnl (c) Index Data 1994-1999 dnl See the file LICENSE for details. -dnl $Id: configure.in,v 1.3 1998-10-28 15:20:42 adam Exp $ +dnl $Id: configure.in,v 1.4 1999-04-22 14:26:38 adam Exp $ AC_INIT(include/zebraver.h) dnl ------ Substitutions AC_SUBST(ODEFS) @@ -25,6 +25,9 @@ if test "$checkBoth" = "1"; then fi AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])) dnl +dnl ------ tcpd +AC_CHECK_LIB(wrap, main, [LIBS="$LIBS -lwrap"]) +dnl dnl ------ Headers AC_STDC_HEADERS if test "$ac_cv_header_stdc" = "no"; then