⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.ac-dist

📁 harvest是一个下载html网页得机器人
💻 AC-DIST
📖 第 1 页 / 共 2 页
字号:
dnl $Id: configure.ac,v 1.25 2003/10/30 07:31:02 bagder Exp $dnl Process this file with autoconf to produce a configure script.AC_PREREQ(2.57)dnl We don't know the version number "staticly" so we use a dash hereAC_INIT(curl, [-], [curl-bug@haxx.se])dnl configure script copyrightAC_COPYRIGHT([Copyright (c) 1998 - 2003 Daniel Stenberg, <daniel@haxx.se>This configure script may be copied, distributed and modified under the terms of the curl license; see COPYING for more details])AC_CONFIG_SRCDIR([lib/urldata.h])AM_CONFIG_HEADER(lib/config.h src/config.h)AM_MAINTAINER_MODEdnl SED is needed by some of the toolsAC_PATH_PROG( SED, sed, , $PATH:/usr/bin:/usr/local/bin)AC_SUBST(SED)dnl AR is used by libtool, and try the odd Solaris path tooAC_PATH_PROG( AR, ar, , $PATH:/usr/bin:/usr/local/bin:/usr/ccs/bin)AC_SUBST(AR)dnl figure out the libcurl versionVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curl.h`AM_INIT_AUTOMAKE(curl,$VERSION)AC_MSG_CHECKING([curl version])AC_MSG_RESULT($VERSION)dnldnl we extract the numerical version for curl-config onlyVERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curl.h`AC_SUBST(VERSIONNUM)dnl Solaris pkgadd support definitionsPKGADD_PKG="HAXXcurl"PKGADD_NAME="cURL - a client that groks URLs"PKGADD_VENDOR="curl.haxx.se"AC_SUBST(PKGADD_PKG)AC_SUBST(PKGADD_NAME)AC_SUBST(PKGADD_VENDOR)dnldnl Detect the canonical host and target build environmentdnlAC_CANONICAL_HOSTdnl Get system canonical nameAC_DEFINE_UNQUOTED(OS, "${host}", [cpu-machine-OS])dnl Check for AIX weirdosAC_AIXdnl Checks for programs.AC_PROG_CCdnl check for how to do large filesAC_SYS_LARGEFILEdnl check for cygwin stuffAC_LIBTOOL_WIN32_DLLdnl libtool setupAM_PROG_LIBTOOLAC_MSG_CHECKING([if we need -no-undefined])case $host in  *-*-cygwin | *-*-mingw* | *-*-pw32*)    need_no_undefined=yes    ;;  *)    need_no_undefined=no    ;;esacAC_MSG_RESULT($need_no_undefined)AM_CONDITIONAL(NO_UNDEFINED, test x$need_no_undefined = xyes)AC_MSG_CHECKING([if we need -mimpure-text])case $host in  *-*-solaris2*)    if test "$GCC" = "yes"; then      mimpure="yes"    fi    ;;  *)    mimpure=no    ;;esacAC_MSG_RESULT($mimpure)AM_CONDITIONAL(MIMPURE, test x$mimpure = xyes)dnl The install stuff has already been taken care of by the automake stuffdnl AC_PROG_INSTALLAC_PROG_MAKE_SETdnl ************************************************************dnl switch off particular protocolsdnlAC_MSG_CHECKING([whether to support http])AC_ARG_ENABLE(http,AC_HELP_STRING([--enable-http],[Enable HTTP support])AC_HELP_STRING([--disable-http],[Disable HTTP support]),[ case "$enableval" in  no)       AC_MSG_RESULT(no)       AC_DEFINE(CURL_DISABLE_HTTP, 1, [to disable HTTP])       AC_MSG_WARN([disable HTTP disables FTP over proxy and GOPHER too])       AC_DEFINE(CURL_DISABLE_GOPHER, 1, [to disable GOPHER])       AC_SUBST(CURL_DISABLE_HTTP)       AC_SUBST(CURL_DISABLE_GOPHER)       ;;  *)   AC_MSG_RESULT(yes)       ;;  esac ],       AC_MSG_RESULT(yes))AC_MSG_CHECKING([whether to support ftp])AC_ARG_ENABLE(ftp,AC_HELP_STRING([--enable-ftp],[Enable FTP support])AC_HELP_STRING([--disable-ftp],[Disable FTP support]),[ case "$enableval" in  no)       AC_MSG_RESULT(no)       AC_DEFINE(CURL_DISABLE_FTP, 1, [to disable FTP])       AC_SUBST(CURL_DISABLE_FTP)       ;;  *)   AC_MSG_RESULT(yes)       ;;  esac ],       AC_MSG_RESULT(yes))AC_MSG_CHECKING([whether to support gopher])AC_ARG_ENABLE(gopher,AC_HELP_STRING([--enable-gopher],[Enable GOPHER support])AC_HELP_STRING([--disable-gopher],[Disable GOPHER support]),[ case "$enableval" in  no)       AC_MSG_RESULT(no)       AC_DEFINE(CURL_DISABLE_GOPHER, 1, [to disable GOPHER])       AC_SUBST(CURL_DISABLE_GOPHER)       ;;  *)   AC_MSG_RESULT(yes)       ;;  esac ],       AC_MSG_RESULT(yes))AC_MSG_CHECKING([whether to support file])AC_ARG_ENABLE(file,AC_HELP_STRING([--enable-file],[Enable FILE support])AC_HELP_STRING([--disable-file],[Disable FILE support]),[ case "$enableval" in  no)       AC_MSG_RESULT(no)       AC_DEFINE(CURL_DISABLE_FILE, 1, [to disable FILE])       AC_SUBST(CURL_DISABLE_FILE)       ;;  *)   AC_MSG_RESULT(yes)       ;;  esac ],       AC_MSG_RESULT(yes))AC_MSG_CHECKING([whether to support ldap])AC_ARG_ENABLE(ldap,AC_HELP_STRING([--enable-ldap],[Enable LDAP support])AC_HELP_STRING([--disable-ldap],[Disable LDAP support]),[ case "$enableval" in  no)       AC_MSG_RESULT(no)       AC_DEFINE(CURL_DISABLE_LDAP, 1, [to disable LDAP])       AC_SUBST(CURL_DISABLE_LDAP)       ;;  *)   AC_MSG_RESULT(yes)       ;;  esac ],       AC_MSG_RESULT(yes))AC_MSG_CHECKING([whether to support dict])AC_ARG_ENABLE(dict,AC_HELP_STRING([--enable-dict],[Enable DICT support])AC_HELP_STRING([--disable-dict],[Disable DICT support]),[ case "$enableval" in  no)       AC_MSG_RESULT(no)       AC_DEFINE(CURL_DISABLE_DICT, 1, [to disable DICT])       AC_SUBST(CURL_DISABLE_DICT)       ;;  *)   AC_MSG_RESULT(yes)       ;;  esac ],       AC_MSG_RESULT(yes))AC_MSG_CHECKING([whether to support telnet])AC_ARG_ENABLE(telnet,AC_HELP_STRING([--enable-telnet],[Enable TELNET support])AC_HELP_STRING([--disable-telnet],[Disable TELNET support]),[ case "$enableval" in  no)       AC_MSG_RESULT(no)       AC_DEFINE(CURL_DISABLE_TELNET, 1, [to disable TELNET])       AC_SUBST(CURL_DISABLE_TELNET)       ;;  *)   AC_MSG_RESULT(yes)       ;;  esac ],       AC_MSG_RESULT(yes))dnl **********************************************************************dnl Checks for libraries.dnl **********************************************************************dnl gethostbyname in the nsl lib?AC_CHECK_FUNC(gethostbyname, , [ AC_CHECK_LIB(nsl, gethostbyname) ])if test "$ac_cv_lib_nsl_gethostbyname" != "yes" -a "$ac_cv_func_gethostbyname" != "yes"; then  dnl gethostbyname in the socket lib?  AC_CHECK_FUNC(gethostbyname, , [ AC_CHECK_LIB(socket, gethostbyname) ])fidnl At least one system has been identified to require BOTH nsl anddnl socket libs to link properly.if test "$ac_cv_lib_nsl_gethostbyname" != "yes" -a "$ac_cv_lib_socket_gethostbyname" != "yes" -a "$ac_cv_func_gethostbyname" != "yes"; then  AC_MSG_CHECKING([trying both nsl and socket libs])  my_ac_save_LIBS=$LIBS  LIBS="-lnsl -lsocket $LIBS"  AC_TRY_LINK( ,             [gethostbyname();],             my_ac_link_result=success,             my_ac_link_result=failure )  if test "$my_ac_link_result" = "failure"; then    AC_MSG_RESULT([no])    AC_MSG_ERROR([couldn't find libraries for gethostbyname()])    dnl restore LIBS    LIBS=$my_ac_save_LIBS  else    AC_MSG_RESULT([yes])  fifidnl resolve lib?AC_CHECK_FUNC(strcasecmp, , [ AC_CHECK_LIB(resolve, strcasecmp) ])if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then  AC_CHECK_LIB(resolve, strcasecmp,              [LIBS="-lresolve $LIBS"],               ,               -lnsl)fidnl socket lib?AC_CHECK_FUNC(connect, , [ AC_CHECK_LIB(socket, connect) ])dnl dl lib?AC_CHECK_FUNC(dlclose, , [ AC_CHECK_LIB(dl, dlopen) ])AC_MSG_CHECKING([whether to use libgcc])AC_ARG_ENABLE(libgcc,AC_HELP_STRING([--enable-libgcc],[use libgcc when linking]),[ case "$enableval" in  yes)        LIBS="$LIBS -lgcc"       AC_MSG_RESULT(yes)       ;;  *)   AC_MSG_RESULT(no)       ;;  esac ],       AC_MSG_RESULT(no))dnl **********************************************************************dnl Checks for IPv6dnl **********************************************************************AC_MSG_CHECKING([whether to enable ipv6])AC_ARG_ENABLE(ipv6,AC_HELP_STRING([--enable-ipv6],[Enable ipv6 (with ipv4) support])AC_HELP_STRING([--disable-ipv6],[Disable ipv6 support]),[ case "$enableval" in  no)       AC_MSG_RESULT(no)       ipv6=no       ;;  *)   AC_MSG_RESULT(yes)       ipv6=yes       ;;  esac ],  AC_TRY_RUN([ /* is AF_INET6 available? */#include <sys/types.h>#include <sys/socket.h>main(){ if (socket(AF_INET6, SOCK_STREAM, 0) < 0)   exit(1); else   exit(0);}],  AC_MSG_RESULT(yes)  ipv6=yes,  AC_MSG_RESULT(no)  ipv6=no,  AC_MSG_RESULT(no)  ipv6=no))if test "$ipv6" = "yes"; then  CURL_CHECK_WORKING_GETADDRINFOfidnl **********************************************************************dnl Check how non-blocking sockets are setdnl **********************************************************************AC_ARG_ENABLE(nonblocking,AC_HELP_STRING([--enable-nonblocking],[Enable detecting how to do it])AC_HELP_STRING([--disable-nonblocking],[Disable non-blocking socket detection]),[  if test "$enableval" = "no" ; then    AC_MSG_WARN([non-blocking sockets disabled])    AC_DEFINE(HAVE_DISABLED_NONBLOCKING, 1,    [to disable NON-BLOCKING connections])  else    CURL_CHECK_NONBLOCKING_SOCKET  fi],[  CURL_CHECK_NONBLOCKING_SOCKET])dnl **********************************************************************dnl Check for the random seed preferences dnl **********************************************************************AC_ARG_WITH(egd-socket,AC_HELP_STRING([--with-egd-socket=FILE],               [Entropy Gathering Daemon socket pathname]),    [ EGD_SOCKET="$withval" ])if test -n "$EGD_SOCKET" ; then	AC_DEFINE_UNQUOTED(EGD_SOCKET, "$EGD_SOCKET",        [your Entropy Gathering Daemon socket pathname] )fidnl Check for user-specified random deviceAC_ARG_WITH(random,AC_HELP_STRING([--with-random=FILE],[read randomness from FILE (default=/dev/urandom)]),    [ RANDOM_FILE="$withval" ],    [        dnl Check for random device        AC_CHECK_FILE("/dev/urandom", [ RANDOM_FILE="/dev/urandom"] )    ])if test -n "$RANDOM_FILE" ; then	AC_SUBST(RANDOM_FILE)	AC_DEFINE_UNQUOTED(RANDOM_FILE, "$RANDOM_FILE",        [a suitable file to read random data from])fidnl **********************************************************************dnl Check if the operating system allows programs to write to their own argv[]dnl **********************************************************************AC_MSG_CHECKING([if argv can be written to])AC_RUN_IFELSE([[int main(int argc, char ** argv) {	argv[0][0] = ' ';	return (argv[0][0] == ' ')?0:1;}	]],	AC_DEFINE(HAVE_WRITABLE_ARGV, 1, [Define this symbol if your OS supports changing the contents of argv])	AC_MSG_RESULT(yes),	AC_MSG_RESULT(no),        AC_MSG_RESULT(no)        AC_MSG_WARN([the previous check could not be made default was used]))dnl **********************************************************************dnl Check for the presence of Kerberos4 libraries and headersdnl **********************************************************************AC_ARG_WITH(krb4-includes,AC_HELP_STRING([--with-krb4-includes=DIR],               [Specify location of kerberos4 headers]),[ CPPFLAGS="$CPPFLAGS -I$withval" KRB4INC="$withval" want_krb4=yes ])AC_ARG_WITH(krb4-libs,AC_HELP_STRING([--with-krb4-libs=DIR],[Specify location of kerberos4 libs]),[ LDFLAGS="$LDFLAGS -L$withval" KRB4LIB="$withval" want_krb4=yes ])OPT_KRB4=offAC_ARG_WITH(krb4,dnlAC_HELP_STRING([--with-krb4=DIR],[where to look for Kerberos4]),[  OPT_KRB4="$withval"  if test X"$OPT_KRB4" != Xyes  then    LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib"    KRB4LIB="$OPT_KRB4/lib"    CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"    KRB4INC="$OPT_KRB4/include"  fi  want_krb4="yes" ])AC_MSG_CHECKING([if Kerberos4 support is requested])if test "$want_krb4" = yesthen  if test "$ipv6" = "yes"; then    echo krb4 is not compatible with IPv6    exit 1  fi  AC_MSG_RESULT(yes)  dnl Check for & handle argument to --with-krb4  AC_MSG_CHECKING(where to look for Kerberos4)  if test X"$OPT_KRB4" = Xyes  then    AC_MSG_RESULT([defaults])  else    AC_MSG_RESULT([libs in $KRB4LIB, headers in $KRB4INC])  fi  dnl Check for DES library  AC_CHECK_LIB(des, des_pcbc_encrypt,  [    AC_CHECK_HEADERS(des.h)    dnl resolv lib?    AC_CHECK_FUNC(res_search, , [AC_CHECK_LIB(resolv, res_search)])    dnl Check for the Kerberos4 library    AC_CHECK_LIB(krb, krb_net_read,    [      dnl Check for header files      AC_CHECK_HEADERS(krb.h)      dnl we found the required libraries, add to LIBS      LIBS="-lkrb -ldes $LIBS"      dnl Check for function krb_get_our_ip_for_realm      dnl this is needed for NAT networks      AC_CHECK_FUNCS(krb_get_our_ip_for_realm)      dnl add define KRB4      AC_DEFINE(KRB4, 1,      [if you have the Kerberos4 libraries (including -ldes)])      dnl substitute it too!      KRB4_ENABLED=1      AC_SUBST(KRB4_ENABLED)      dnl the krb4 stuff needs a strlcpy()      AC_CHECK_FUNCS(strlcpy)    ])  ])else  AC_MSG_RESULT(no)fidnl **********************************************************************dnl Check for FBopenssl(SPNEGO) librariesdnl **********************************************************************AC_ARG_WITH(spnego,  AC_HELP_STRING([--with-spnego=DIR],                 [Specify location of SPNEGO library fbopenssl]),  [ SPNEGO_ROOT="$withval"    want_spnego="yes" ])AC_MSG_CHECKING([if SPNEGO support is requested])if test x"$want_spnego" = xyes; then   if test -z "$SPNEGO_LIB_DIR"; then     LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT $(wl)-R$SPNEGO_ROOT -lfbopenssl"  else     LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"  fi   AC_DEFINE(HAVE_SPNEGO, 1, [Define this if you have the SPNEGO library fbopenssl])  AC_MSG_RESULT(yes)else  AC_MSG_RESULT(no)fidnl **********************************************************************dnl Check for GSS-API librariesdnl **********************************************************************AC_ARG_WITH(gssapi-includes,  AC_HELP_STRING([--with-gssapi-includes=DIR],                 [Specify location of GSSAPI header]),  [ GSSAPI_INCS="-I$withval"     want_gss="yes" ])AC_ARG_WITH(gssapi-libs,  AC_HELP_STRING([--with-gssapi-libs=DIR],  		 [Specify location of GSSAPI libs]),  [ GSSAPI_LIBS="-L$withval -lgssapi"    want_gss="yes" ])AC_ARG_WITH(gssapi,  AC_HELP_STRING([--with-gssapi=DIR],                 [Where to look for GSSAPI]),  [ GSSAPI_ROOT="$withval"    want_gss="yes" ])AC_MSG_CHECKING([if GSSAPI support is requested])if test x"$want_gss" = xyes; then  if test -z "$GSSAPI_INCS"; then     if test -f "$GSSAPI_ROOT/bin/krb5-config"; then        GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`     else        GSSAPI_INCS=="-I$GSSAPI_ROOT/include"     fi  fi  CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -