📄 configure
字号:
main() { exit (fnmatch ("a*", "abc", 0) != 0); }EOFif { (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_func_fnmatch_works=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_func_fnmatch_works=nofirm -fr conftest*fifiecho "$ac_t""$ac_cv_func_fnmatch_works" 1>&6if test $ac_cv_func_fnmatch_works = yes; then cat >> confdefs.h <<\EOF#define HAVE_FNMATCH 1EOFfiif test $ac_cv_func_fnmatch_works = no; then LIBOBJS="$LIBOBJS fnmatch.o"else cat >> confdefs.h <<\EOF#define HAVE_SYS_FNMATCH 1EOFfiecho $ac_n "checking for socket""... $ac_c" 1>&6echo "configure:1365: checking for socket" >&5if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1370 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char socket(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char socket();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub_socket) || defined (__stub___socket)choke me#elsesocket();#endif; return 0; }EOFif { (eval echo configure:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_socket=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_socket=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then echo "$ac_t""yes" 1>&6 echo "$ac_t""using libc's socket" 1>&6else echo "$ac_t""no" 1>&6echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6echo "configure:1411: checking for socket in -lsocket" >&5ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lsocket $LIBS"cat > conftest.$ac_ext <<EOF#line 1419 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char socket();int main() {socket(); return 0; }EOFif { (eval echo configure:1430: \"$ac_link\") 1>&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"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBS="$LIBS -lsocket"else echo "$ac_t""no" 1>&6echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6echo "configure:1449: checking for socket in -linet" >&5ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-linet $LIBS"cat > conftest.$ac_ext <<EOF#line 1457 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char socket();int main() {socket(); return 0; }EOFif { (eval echo configure:1468: \"$ac_link\") 1>&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"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF LIBS="-linet $LIBS"else echo "$ac_t""no" 1>&6fi fifi# from fetchmail 4.7.8# joe: we don't actually USE the resolver functions.# but I think we need link with -lresolv in some cases.# Under Red Hat 4.0 (and many other Linuxes) -lresolv is seriously flaky# and breaks gethostbyname(2). It's better to use the bind stuff in the C# library. So don't add -lresolv to the link list unless it's necessary# (It will be necessary when using GNU libc6).echo $ac_n "checking for res_search""... $ac_c" 1>&6echo "configure:1512: checking for res_search" >&5if eval "test \"`echo '$''{'ac_cv_func_res_search'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1517 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char res_search(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char res_search();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub_res_search) || defined (__stub___res_search)choke me#elseres_search();#endif; return 0; }EOFif { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_res_search=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_res_search=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then echo "$ac_t""yes" 1>&6 echo "$ac_t""using libc's resolver functions" 1>&6else echo "$ac_t""no" 1>&6echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6echo "configure:1558: checking for res_search in -lresolv" >&5ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lresolv $LIBS"cat > conftest.$ac_ext <<EOF#line 1566 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char res_search();int main() {res_search(); return 0; }EOFif { (eval echo configure:1577: \"$ac_link\") 1>&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"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF#define HAVE_RES_SEARCH 1EOF echo "$ac_t""found resolver functions in libresolv" 1>&6; LIBS="$LIBS -lresolv"else echo "$ac_t""no" 1>&6echo "$ac_t""no resolver calls found" 1>&6fifiecho $ac_n "checking for XML_Parse in -lexpat""... $ac_c" 1>&6echo "configure:1605: checking for XML_Parse in -lexpat" >&5ac_lib_var=`echo expat'_'XML_Parse | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lexpat $LIBS"cat > conftest.$ac_ext <<EOF#line 1613 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char XML_Parse();int main() {XML_Parse(); return 0; }EOFif { (eval echo configure:1624: \"$ac_link\") 1>&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"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 expat_libs="-lexpat" found_expatlibs="yes"else echo "$ac_t""no" 1>&6echo $ac_n "checking for XML_Parse in -lxmlparse""... $ac_c" 1>&6echo "configure:1643: checking for XML_Parse in -lxmlparse" >&5ac_lib_var=`echo xmlparse'_'XML_Parse | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lxmlparse -lxmltok $LIBS"cat > conftest.$ac_ext <<EOF#line 1651 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char XML_Parse();int main() {XML_Parse(); return 0; }EOFif { (eval echo configure:1662: \"$ac_link\") 1>&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"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 expat_libs="-lxmltok -lxmlparse" found_expatlibs="yes"else echo "$ac_t""no" 1>&6found_expatlibs="no"fi fiif test "$found_expatlibs" = "yes"; then # This is crap. Maybe just use AC_CHECK_HEADERS and use the # right file by ifdef'ing is best ac_safe=`echo "xmlparse.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for xmlparse.h""... $ac_c" 1>&6echo "configure:1693: checking for xmlparse.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1698 "configure"#include "confdefs.h"#include <xmlparse.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes"else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 expat_incs="" found_expatincs="yes"else echo "$ac_t""no" 1>&6ac_safe=`echo "xmltok/xmlparse.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for xmltok/xmlparse.h""... $ac_c" 1>&6echo "configure:1724: checking for xmltok/xmlparse.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1729 "configure"#include "confdefs.h"#include <xmltok/xmlparse.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes"else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 expat_incs="-I/usr/include/xmltok" found_expatincs="yes"else echo "$ac_t""no" 1>&6fifi if test "$found_expatincs" = "yes"; then cat >> confdefs.h <<\EOF#define HAVE_LIBEXPAT 1EOF if test "$expat_incs"; then CFLAGS="$CFLAGS $expat_incs" fi LIBS="$LIBS $expat_libs" else echo "configure: warning: "found expat library but could not find xmlparse.h"" 1>&2 fifiecho $ac_n "checking for getopt_long""... $ac_c" 1>&6echo "configure:1772: checking for getopt_long" >&5if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -