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

📄 configure

📁 《CODE READING》配套书源代码 《CODE READING》配套书源代码
💻
📖 第 1 页 / 共 4 页
字号:
  socketxx_cv_siglist=sys_siglistfirm -f conftest* ficat >> confdefs.h <<EOF#define SYS_SIGLIST $socketxx_cv_siglistEOFecho "$ac_t""$socketxx_cv_siglist" 1>&6echo $ac_n "checking for sys_errlist""... $ac_c" 1>&6if eval "test \"`echo '$''{'socketxx_cv_errlist'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1637 "configure"#include "confdefs.h"# include <errno.h># include <unistd.h>int main() { return 0; }int t() {#ifndef _sys_errlist  extern char* _sys_errlist[];#endif  puts(*_sys_errlist);; return 0; }EOFif { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then  rm -rf conftest*  socketxx_cv_errlist=_sys_errlistelse  rm -rf conftest*  socketxx_cv_errlist=sys_errlistfirm -f conftest* ficat >> confdefs.h <<EOF#define SYS_ERRLIST $socketxx_cv_errlistEOFecho "$ac_t""$socketxx_cv_errlist" 1>&6echo $ac_n "checking for sys_errlist prototype""... $ac_c" 1>&6if eval "test \"`echo '$''{'socketxx_cv_errlist_proto'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_ext=C# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CXXCPP $CPPFLAGS'ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cat > conftest.$ac_ext <<EOF#line 1683 "configure"#include "confdefs.h"#include <errno.h>#include <unistd.h>#include <stdlib.h>#include <stdio.h>int main() { return 0; }int t() {  puts (*$socketxx_cv_errlist);; return 0; }EOFif { (eval echo configure:1698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  socketxx_cv_errlist_proto=yeselse  rm -rf conftest*  socketxx_cv_errlist_proto=nofirm -f conftest* fiac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'if test $socketxx_cv_errlist_proto = yes; then  cat >> confdefs.h <<\EOF#define SYS_ERRLIST_DECLARED 1EOFfiecho "$ac_t""$socketxx_cv_errlist_proto" 1>&6echo $ac_n "checking for signal handler arg type""... $ac_c" 1>&6if eval "test \"`echo '$''{'socketxx_cv_sighnd_argtype'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_ext=C# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CXXCPP $CPPFLAGS'ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cat > conftest.$ac_ext <<EOF#line 1736 "configure"#include "confdefs.h"# include <unistd.h># include <sys/signal.h>  void sigh (int s, int c, void* p, void* a) {}  int main() { return 0; }int t() {  typedef RETSIGTYPE (*funcptr) (...);  struct sigaction sa;  sa.sa_handler = funcptr (&sigh);  ; return 0; }EOFif { (eval echo configure:1753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  socketxx_cv_sighnd_argtype=...else  rm -rf conftest*  cat > conftest.$ac_ext <<EOF#line 1759 "configure"#include "confdefs.h"#   include <unistd.h>#   include <sys/signal.h>    void sigh (int s, int c, void* p, void* a);    int main() { return 0; }int t() {    typedef RETSIGTYPE (*funcptr) (int);    struct sigaction sa;    sa.sa_handler = funcptr (&sigh);    ; return 0; }EOFif { (eval echo configure:1776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  socketxx_cv_sighnd_argtype=intelse  rm -rf conftest*  socketxx_cv_sighnd_argtype=voidfirm -f conftest*firm -f conftest* fiac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cat >> confdefs.h <<EOF#define SIGHND_ARGTYPE $socketxx_cv_sighnd_argtypeEOFecho "$ac_t""$socketxx_cv_sighnd_argtype" 1>&6echo $ac_n "checking if extern \"C\" wrappers are needed""... $ac_c" 1>&6if eval "test \"`echo '$''{'bz_cv_cplusplus_needexternCwrapper'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_ext=C# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CXXCPP $CPPFLAGS'ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cat > conftest.$ac_ext <<EOF#line 1815 "configure"#include "confdefs.h"# include <string.h># include <stdio.h>int main() { return 0; }int t() {  char buf[100];  strcpy(buf, "Hello world\n");; return 0; }EOFif { (eval echo configure:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then  rm -rf conftest*  bz_cv_cplusplus_needexternCwrapper=noelse  rm -rf conftest*  bz_cv_cplusplus_needexternCwrapper=yesfirm -f conftest*fiac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'if test $bz_cv_cplusplus_needexternCwrapper = no; then  cat >> confdefs.h <<\EOF#define EXTERN_C_BEGIN EOF  cat >> confdefs.h <<\EOF#define EXTERN_C_END EOFelse  cat >> confdefs.h <<\EOF#define EXTERN_C_BEGIN extern "C" {EOF  cat >> confdefs.h <<\EOF#define EXTERN_C_END }EOFfiecho "$ac_t""$bz_cv_cplusplus_needexternCwrapper" 1>&6trap '' 1 2 15cat > confcache <<\EOF# This file is a shell script that caches the results of configure# tests run on this system so they can be shared between configure# scripts and configure runs.  It is not useful on other systems.# If it contains results you don't want to keep, you may remove or edit it.## By default, configure uses ./config.cache as the cache file,# creating it if it does not exist already.  You can give configure# the --cache-file=FILE option to use a different cache file; that is# what configure does when it calls configure scripts in# subdirectories, so they share the cache.# Giving --cache-file=/dev/null disables caching, for debugging configure.# config.status only pays attention to the cache file if you give it the# --recheck option to rerun configure.#EOF# Ultrix sh set writes to stderr and can't be redirected directly,# and sets the high bit in the cache file unless we assign to the vars.(set) 2>&1 |  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \  >> confcacheif cmp -s $cache_file confcache; then  :else  if test -w $cache_file; then    echo "updating cache $cache_file"    cat confcache > $cache_file  else    echo "not updating unwritable cache $cache_file"  fifirm -f confcachetrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15test "x$prefix" = xNONE && prefix=$ac_default_prefix# Let make expand exec_prefix.test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'# Any assignment to VPATH causes Sun make to only execute# the first set of double-colon rules, so remove it if not needed.# If there is a colon in the path, we need to keep it.if test "x$srcdir" = x.; then  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'fitrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15DEFS=-DHAVE_CONFIG_H# Without the "./", some shells look in PATH for config.status.: ${CONFIG_STATUS=./config.status}echo creating $CONFIG_STATUSrm -f $CONFIG_STATUScat > $CONFIG_STATUS <<EOF#! /bin/sh# Generated automatically by configure.# Run this file to recreate the current configuration.# This directory was configured as follows,# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:## $0 $ac_configure_args## Compiler output produced by configure, useful for debugging# configure, is in ./config.log if it exists.ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"for ac_optiondo  case "\$ac_option" in  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)    echo "$CONFIG_STATUS generated by autoconf version 2.9"    exit 0 ;;  -help | --help | --hel | --he | --h)    echo "\$ac_cs_usage"; exit 0 ;;  *) echo "\$ac_cs_usage"; exit 1 ;;  esacdoneac_given_srcdir=$srcdirtrap 'rm -fr `echo "Makefile test/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15EOFcat >> $CONFIG_STATUS <<EOF# Protect against being on the right side of a sed subst in config.status.sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF$ac_vpsub$extrasubs%@CFLAGS@%$CFLAGS%gs%@CPPFLAGS@%$CPPFLAGS%gs%@CXXFLAGS@%$CXXFLAGS%gs%@DEFS@%$DEFS%gs%@LDFLAGS@%$LDFLAGS%gs%@LIBS@%$LIBS%gs%@exec_prefix@%$exec_prefix%gs%@prefix@%$prefix%gs%@program_transform_name@%$program_transform_name%gs%@bindir@%$bindir%gs%@sbindir@%$sbindir%gs%@libexecdir@%$libexecdir%gs%@datadir@%$datadir%gs%@sysconfdir@%$sysconfdir%gs%@sharedstatedir@%$sharedstatedir%gs%@localstatedir@%$localstatedir%gs%@libdir@%$libdir%gs%@includedir@%$includedir%gs%@oldincludedir@%$oldincludedir%gs%@infodir@%$infodir%gs%@mandir@%$mandir%gs%@SET_MAKE@%$SET_MAKE%gs%@CC@%$CC%gs%@CXX@%$CXX%gs%@RANLIB@%$RANLIB%gs%@MAKEDEPEND@%$MAKEDEPEND%gs%@CPP@%$CPP%gs%@CXXCPP@%$CXXCPP%gs%@NETWORK_LIBS@%$NETWORK_LIBS%gs%@CXX_INCLUDE_PATH@%$CXX_INCLUDE_PATH%gCEOFEOFcat >> $CONFIG_STATUS <<EOFCONFIG_FILES=\${CONFIG_FILES-"Makefile test/Makefile"}EOFcat >> $CONFIG_STATUS <<\EOFfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then  # Support "outfile[:infile]", defaulting infile="outfile.in".  case "$ac_file" in  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;  *) ac_file_in="${ac_file}.in" ;;  esac  # Adjust relative srcdir, etc. for subdirectories.  # Remove last slash and all that follows it.  Not all systems have dirname.  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then    # The file is in a subdirectory.    test ! -d "$ac_dir" && mkdir "$ac_dir"    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"    # A "../" for each directory in $ac_dir_suffix.    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`  else    ac_dir_suffix= ac_dots=  fi  case "$ac_given_srcdir" in  .)  srcdir=.      if test -z "$ac_dots"; then top_srcdir=.      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;  *) # Relative path.    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"    top_srcdir="$ac_dots$ac_given_srcdir" ;;  esac  echo creating "$ac_file"  rm -f "$ac_file"  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."  case "$ac_file" in  *Makefile*) ac_comsub="1i\\# $configure_input" ;;  *) ac_comsub= ;;  esac  sed -e "$ac_comsubs%@configure_input@%$configure_input%gs%@srcdir@%$srcdir%gs%@top_srcdir@%$top_srcdir%g" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_filefi; donerm -f conftest.subs# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where# NAME is the cpp macro being defined and VALUE is the value it is being given.## ac_d sets the value in "#define NAME VALUE" lines.ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'ac_dC='\3'ac_dD='%g'# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'ac_uB='\([ 	]\)%\1#\2define\3'ac_uC=' 'ac_uD='\4%g'# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'ac_eB='$%\1#\2define\3'ac_eC=' 'ac_eD='%g'CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then  # Support "outfile[:infile]", defaulting infile="outfile.in".  case "$ac_file" in  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;  *) ac_file_in="${ac_file}.in" ;;  esac  echo creating $ac_file  rm -f conftest.frag conftest.in conftest.out  cp $ac_given_srcdir/$ac_file_in conftest.inEOF# Transform confdefs.h into a sed script conftest.vals that substitutes# the proper values into config.h.in to produce config.h.  And first:# Protect against being on the right side of a sed subst in config.status.# Protect against being in an unquoted here document in config.status.rm -f conftest.valscat > conftest.hdr <<\EOFs/[\\&%]/\\&/gs%[\\$`]%\\&%gs%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gps%ac_d%ac_u%gps%ac_u%ac_e%gpEOFsed -n -f conftest.hdr confdefs.h > conftest.valsrm -f conftest.hdr# This sed command replaces #undef with comments.  This is necessary, for# example, in the case of _POSIX_SOURCE, which is predefined and required# on some systems where configure will not decide to define it.cat >> conftest.vals <<\EOFs%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%EOF# Break up conftest.vals because some shells have a limit on# the size of here documents, and old seds have small limits too.# Maximum number of lines to put in a single here document.ac_max_here_lines=12rm -f conftest.tailwhile :do  ac_lines=`grep -c . conftest.vals`  # grep -c gives empty output for an empty file on some AIX systems.  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi  # Write a limited-size here document to conftest.frag.  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS  echo 'CEOF  sed -f conftest.frag conftest.in > conftest.out  rm -f conftest.in  mv conftest.out conftest.in' >> $CONFIG_STATUS  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail  rm -f conftest.vals  mv conftest.tail conftest.valsdonerm -f conftest.valscat >> $CONFIG_STATUS <<\EOF  rm -f conftest.frag conftest.h  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h  cat conftest.in >> conftest.h  rm -f conftest.in  if cmp -s $ac_file conftest.h 2>/dev/null; then    echo "$ac_file is unchanged"    rm -f conftest.h  else    rm -f $ac_file    mv conftest.h $ac_file  fifi; doneexit 0EOFchmod +x $CONFIG_STATUSrm -fr confdefs* $ac_clean_filestest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1

⌨️ 快捷键说明

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