?? configure.in
字號(hào):
dnldnl Process this file with autoconf to produce a configure script.dnlAC_INIT(lib/ping.h)AM_CONFIG_HEADER(include/config.h)VERSION=`sed -e 's/^.*"\(.*\)";$/\1/' ${srcdir}/src/version.c`AM_INIT_AUTOMAKE(libping, $VERSION)DATE=2001-07-05AC_SUBST(DATE)dnl dnl Check for AIXdnlAC_AIXdnldnl Define the utils directorydnlAC_CONFIG_AUX_DIR(utils)AM_PROG_LIBTOOLAC_PROG_MAKE_SETAC_PROG_INSTALLdnldnl Get the compilerdnlAC_PROG_CCif test -n "$auto_cflags"; then if test -n "$GCC"; then CFLAGS="$CFLAGS -g -O2 -Wall -Wno-implicit" else case "$host_os" in *hpux*) CFLAGS="$CFLAGS +O3" ;; *ultrix* | *osf*) CFLAGS="$CFLAGS -O -Olimit 2000" ;; *) CFLAGS="$CFLAGS -O" ;; esac fifidnldnl with debuggingdnldebugging="no"AC_ARG_WITH(debugging,dnl[ --with-debugging compile with program debugging],[ debugging="$withval" ])if test "$debugging" != "no"; then AC_MSG_RESULT(checking for debugging level... one) AC_DEFINE(DEBUG)else AC_MSG_RESULT(checking for debugging level... zero)fidnldnl with SSL supportdnlMYSSL=offsslfound=locateSSL_INCLUDE=SSL_LDFLAGS=SSL_LIBS=AC_ARG_WITH(ssl,dnl[ --with-ssl compile with ssl support],[ MYSSL="$withval" ])if test X"$MYSSL" = Xoffthen AC_MSG_RESULT(checking for ssl support... no)else AC_MSG_RESULT(checking for ssl support... yes)fidnldnl Check for ssl librariesdnlif test X"$MYSSL" = Xnothen AC_MSG_RESULT(HTTPS/ssl support disabled)else AC_CHECK_HEADER($MYSSL/include/openssl/opensslv.h, sslfound=yes, sslfound=locate) if test $sslfound = "locate"; then dnl the user probably misunderstood the option.... for dir in /usr /usr/local /usr/local/ssl /usr/pkg /usr/lib/ssl /usr/include/ssl /usr/include; do AC_CHECK_HEADER($dir/include/openssl/opensslv.h, sslfound=yes, sslfound=no) if test $sslfound = yes ; then SSL_LDFLAGS="-L$dir/lib" SSL_INCLUDE="-I$dir/include/openssl -I$dir/include" SSL_LIBS="-lssl -lcrypto" AC_SUBST(SSL_INCLUDE) AC_SUBST(SSL_LDFLAGS) AC_SUBST(SSL_LIBS) AC_DEFINE(HAVE_SSL) fi done else echo "found ssl in $MYSSL" SSL_LDFLAGS="-L$MYSSL/lib" SSL_INCLUDE="-I$MYSSL/include/openssl -I$MYSSL/include" SSL_LIBS="-lssl -lcrypto" AC_SUBST(SSL_INCLUDE) AC_SUBST(SSL_LDFLAGS) AC_SUBST(SSL_LIBS) AC_DEFINE(HAVE_SSL) fifidnl Checks for header files.AC_HEADER_STDCAC_HEADER_SYS_WAITAC_CHECK_HEADERS(fcntl.h)AC_CHECK_HEADERS(unistd.h)AC_CHECK_HEADERS(signal.h)AC_CHECK_HEADERS(sys/socket.h)AC_CHECK_HEADERS(sys/select.h)AC_CHECK_HEADERS(netdb.h)AC_CHECK_HEADERS(sys/time.h sys/times.h)AC_CHECK_HEADERS(sys/types.h)AC_CHECK_HEADERS(sys/resource.h)AC_CHECK_HEADERS(errno.h)AC_CHECK_HEADERS(arpa/inet.h)AC_CHECK_HEADERS(netinet/in.h)AC_CHECK_HEADERS(netdb.h)dnldnl checks for typedefs, structures, and compiler characteristics.dnlAC_C_CONSTAC_TYPE_SIZE_TAC_HEADER_TIMEdnldnl Check library functions.dnlAC_CHECK_FUNCS(socket, , AC_CHECK_LIB(socket, socket))AC_CHECK_FUNCS(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname))AC_CHECK_FUNCS(strchr memcpy strstr strcmp strncmp strncpy strlen)AC_CHECK_FUNCS(strncasecmp strcasecmp strncmp)dnldnl Check for librariesdnlAC_CHECK_LIB(socket, socket)AC_CHECK_LIB(resolv, res_search)dnldnl create the libping headerdnlAC_OUTPUT_COMMANDS([ infile=include/ping.h.in outfile=include/ping.h rm -f $outfile sed -e "s|%_VERSION%|$VERSION|" \ -e "s|%_DATE%|$DATE|" \ < $infile > $outfile], [ VERSION=$VERSION DATE="$DATE" ])AC_OUTPUT(Makefile doc/Makefile include/Makefile lib/Makefile src/Makefile utils/Makefile) echoecho "----------------------------------------------------------------"echo "The LIBPING configuration is complete!!"echoecho "To finish the compilation/installation type the following cmds:"echo "make"echo "su"echo "make install"echoecho "NOTE: It's important to install as root to set the appropriate"echo " file permissions. To utilize the library, try ding, the"echo " program. To learn more, man ding."echo "----------------------------------------------------------------"
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -