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

📄 configure

📁 pathrate是pathload的改进型
💻
📖 第 1 页 / 共 4 页
字号:
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.  srcdir=$ac_confdir  if test ! -r $srcdir/$ac_unique_file; then    srcdir=..  fielse  ac_srcdir_defaulted=nofiif test ! -r $srcdir/$ac_unique_file; then  if test "$ac_srcdir_defaulted" = yes; then    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }  else    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }  fifisrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`ac_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${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crossac_exeext=ac_objext=oif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then    ac_n= ac_c='' ac_t='	'  else    ac_n=-n ac_c= ac_t=  fielse  ac_n= ac_c='\c' ac_t=fi# Extract the first word of "gcc", so it can be a program name with args.set dummy gcc; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:529: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -n "$CC"; then  ac_cv_prog_CC="$CC" # Let the user override the test.else  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"  ac_dummy="$PATH"  for ac_dir in $ac_dummy; do    test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      ac_cv_prog_CC="gcc"      break    fi  done  IFS="$ac_save_ifs"fifiCC="$ac_cv_prog_CC"if test -n "$CC"; then  echo "$ac_t""$CC" 1>&6else  echo "$ac_t""no" 1>&6fiif test -z "$CC"; then  # Extract the first word of "cc", so it can be a program name with args.set dummy cc; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:559: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -n "$CC"; then  ac_cv_prog_CC="$CC" # Let the user override the test.else  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"  ac_prog_rejected=no  ac_dummy="$PATH"  for ac_dir in $ac_dummy; do    test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then        ac_prog_rejected=yes	continue      fi      ac_cv_prog_CC="cc"      break    fi  done  IFS="$ac_save_ifs"if test $ac_prog_rejected = yes; then  # We found a bogon in the path, so make sure we never use it.  set dummy $ac_cv_prog_CC  shift  if test $# -gt 0; then    # We chose a different compiler from the bogus one.    # However, it has the same basename, so the bogon will be chosen    # first if we set CC to just the basename; use the full file name.    shift    set dummy "$ac_dir/$ac_word" "$@"    shift    ac_cv_prog_CC="$@"  fifififiCC="$ac_cv_prog_CC"if test -n "$CC"; then  echo "$ac_t""$CC" 1>&6else  echo "$ac_t""no" 1>&6fi  if test -z "$CC"; then    case "`uname -s`" in    *win32* | *WIN32*)      # Extract the first word of "cl", so it can be a program name with args.set dummy cl; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:610: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -n "$CC"; then  ac_cv_prog_CC="$CC" # Let the user override the test.else  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"  ac_dummy="$PATH"  for ac_dir in $ac_dummy; do    test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      ac_cv_prog_CC="cl"      break    fi  done  IFS="$ac_save_ifs"fifiCC="$ac_cv_prog_CC"if test -n "$CC"; then  echo "$ac_t""$CC" 1>&6else  echo "$ac_t""no" 1>&6fi ;;    esac  fi  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }fiecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6echo "configure:642: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5ac_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${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crosscat > conftest.$ac_ext << EOF#line 653 "configure"#include "confdefs.h"main(){return(0);}EOFif { (eval echo configure:658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  ac_cv_prog_cc_works=yes  # If we can't run a trivial program, we are probably using a cross compiler.  if (./conftest; exit) 2>/dev/null; then    ac_cv_prog_cc_cross=no  else    ac_cv_prog_cc_cross=yes  fielse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  ac_cv_prog_cc_works=nofirm -fr conftest*ac_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${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crossecho "$ac_t""$ac_cv_prog_cc_works" 1>&6if test $ac_cv_prog_cc_works = no; then  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }fiecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6echo "configure:684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6cross_compiling=$ac_cv_prog_cc_crossecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6echo "configure:689: checking whether we are using GNU C" >&5if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.c <<EOF#ifdef __GNUC__  yes;#endifEOFif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  ac_cv_prog_gcc=yeselse  ac_cv_prog_gcc=nofifiecho "$ac_t""$ac_cv_prog_gcc" 1>&6if test $ac_cv_prog_gcc = yes; then  GCC=yeselse  GCC=fiac_test_CFLAGS="${CFLAGS+set}"ac_save_CFLAGS="$CFLAGS"CFLAGS=echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6echo "configure:717: checking whether ${CC-cc} accepts -g" >&5if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  echo 'void f(){}' > conftest.cif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then  ac_cv_prog_cc_g=yeselse  ac_cv_prog_cc_g=nofirm -f conftest*fiecho "$ac_t""$ac_cv_prog_cc_g" 1>&6if test "$ac_test_CFLAGS" = set; then  CFLAGS="$ac_save_CFLAGS"elif test $ac_cv_prog_cc_g = yes; then  if test "$GCC" = yes; then    CFLAGS="-g -O2"  else    CFLAGS="-g"  fielse  if test "$GCC" = yes; then    CFLAGS="-O2"  else    CFLAGS=  fifiac_aux_dir=for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do  if test -f $ac_dir/README; then    ac_aux_dir=$ac_dir    ac_install_sh="$ac_aux_dir/install-sh -c"    break  fidoneif test -z "$ac_aux_dir"; then  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }fiac_config_guess=$ac_aux_dir/config.guessac_config_sub=$ac_aux_dir/config.subac_configure=$ac_aux_dir/configure # This should be Cygnus configure.# Make sure we can run config.sub.if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }fiecho $ac_n "checking host system type""... $ac_c" 1>&6echo "configure:775: checking host system type" >&5host_alias=$hostcase "$host_alias" inNONE)  case $nonopt in  NONE)    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }    fi ;;  *) host_alias=$nonopt ;;  esac ;;esachost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`echo "$ac_t""$host" 1>&6ac_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${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crossacx_pthread_ok=no# We used to check for pthread.h first, but this fails if pthread.h# requires special compiler flags (e.g. on True64 or Sequent).# It gets checked for in the link test anyway.# First of all, check if the user has set any of the PTHREAD_LIBS,# etcetera environment variables, and if threads linking works using# them:if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then        save_CFLAGS="$CFLAGS"        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"        save_LIBS="$LIBS"        LIBS="$PTHREAD_LIBS $LIBS"        echo $ac_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS""... $ac_c" 1>&6echo "configure:820: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5        cat > conftest.$ac_ext <<EOF#line 822 "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 pthread_join();int main() {pthread_join(); return 0; }EOFif { (eval echo configure:833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  acx_pthread_ok=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5firm -f conftest*        echo "$ac_t""$acx_pthread_ok" 1>&6        if test x"$acx_pthread_ok" = xno; then                PTHREAD_LIBS=""                PTHREAD_CFLAGS=""        fi        LIBS="$save_LIBS"        CFLAGS="$save_CFLAGS"fi# We must check for the threads library under a number of different# names; the ordering is very important because some systems# (e.g. DEC) have both -lpthread and -lpthreads, where one of the# libraries is broken (non-POSIX).# Create a list of thread flags to try.  Items starting with a "-" are# C compiler flags, and other items are library names, except for "none"# which indicates that we try without any flags at all.acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"# The ordering *is* (sometimes) important.  Some notes on the# individual items follow:# pthreads: AIX (must check this before -lpthread)# none: in case threads are in libc; should be tried before -Kthread and#       other compiler flags to prevent continual compiler warnings# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)# -pthreads: Solaris/gcc# -mthreads: Mingw32/gcc, Lynx/gcc# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it#      doesn't hurt to check since this sometimes defines pthreads too;#      also defines -D_REENTRANT)# pthread: Linux, etcetera# --thread-safe: KAI C++case "${host_cpu}-${host_os}" in        *solaris*)        # On Solaris (at least, for some versions), libc contains stubbed        # (non-functional) versions of the pthreads routines, so link-based        # tests will erroneously succeed.  (We need to link with -pthread or        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather        # a function called by this macro, so we could check for that, but        # who knows whether they'll stub that too in a future libc.)  So,        # we'll just look for -pthreads and -lpthread first:        acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"        ;;esacif test x"$acx_pthread_ok" = xno; thenfor flag in $acx_pthread_flags; do        case $flag in                none)                echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6echo "configure:900: checking whether pthreads work without any flags" >&5                ;;                -*)                echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6echo "configure:905: checking whether pthreads work with $flag" >&5                PTHREAD_CFLAGS="$flag"                ;;                *)                echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6echo "configure:911: checking for the pthreads library -l$flag" >&5                PTHREAD_LIBS="-l$flag"                ;;        esac        save_LIBS="$LIBS"        save_CFLAGS="$CFLAGS"        LIBS="$PTHREAD_LIBS $LIBS"        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"        # Check for various functions.  We must include pthread.h,        # since some functions may be macros.  (On the Sequent, we        # need a special flag -Kthread to make this header compile.)        # We check for pthread_join because it is in -lpthread on IRIX        # while pthread_create is in libc.  We check for pthread_attr_init        # due to DEC craziness with -lpthreads.  We check for        # pthread_cleanup_push because it is one of the few pthread        # functions on Solaris that doesn't have a non-functional libc stub.        # We try pthread_create on general principles.        cat > conftest.$ac_ext <<EOF#line 931 "configure"#include "confdefs.h"#include <pthread.h>int main() {pthread_t th; pthread_join(th, 0);                     pthread_attr_init(0); pthread_cleanup_push(0, 0);                     pthread_create(0,0,0,0); pthread_cleanup_pop(0); ; return 0; }EOFif { (eval echo configure:940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*

⌨️ 快捷键说明

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