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

📄 configure

📁 ACE自适配通信环境(ADAPTIVE Communication Environment)是可以自由使用、开放源码的面向对象(OO)框架(Framework)
💻
📖 第 1 页 / 共 4 页
字号:
ac_aux_dir=for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do  if test -f $ac_dir/install-sh; then    ac_aux_dir=$ac_dir    ac_install_sh="$ac_aux_dir/install-sh -c"    break  elif test -f $ac_dir/install.sh; 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.# Do some error checking and defaulting for the host and target type.# The inputs are:#    configure --host=HOST --target=TARGET --build=BUILD NONOPT## The rules are:# 1. You are not allowed to specify --host, --target, and nonopt at the#    same time.# 2. Host defaults to nonopt.# 3. If nonopt is not specified, then host defaults to the current host,#    as determined by config.guess.# 4. Target and build default to nonopt.# 5. If nonopt is not specified, then target and build default to host.# The aliases save the names the user supplied, while $host etc.# will get canonicalized.case $host---$target---$nonopt inNONE---*---* | *---NONE---* | *---*---NONE) ;;*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;esac# Make sure we can run config.sub.if $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>&6host_alias=$hostcase "$host_alias" inNONE)  case $nonopt in  NONE)    if host_alias=`$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=`$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>&6echo $ac_n "checking target system type""... $ac_c" 1>&6target_alias=$targetcase "$target_alias" inNONE)  case $nonopt in  NONE) target_alias=$host_alias ;;  *) target_alias=$nonopt ;;  esac ;;esactarget=`$ac_config_sub $target_alias`target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`echo "$ac_t""$target" 1>&6echo $ac_n "checking build system type""... $ac_c" 1>&6build_alias=$buildcase "$build_alias" inNONE)  case $nonopt in  NONE) build_alias=$host_alias ;;  *) build_alias=$nonopt ;;  esac ;;esacbuild=`$ac_config_sub $build_alias`build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`echo "$ac_t""$build" 1>&6test "$host_alias" != "$target_alias" &&  test "$program_prefix$program_suffix$program_transform_name" = \    NONENONEs,x,x, &&  program_prefix=${target_alias}-## checks for programs## 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>&6if 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="${IFS}:"  for ac_dir in $PATH; 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"  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"fifiCC="$ac_cv_prog_CC"if test -n "$CC"; then  echo "$ac_t""$CC" 1>&6else  echo "$ac_t""no" 1>&6fiecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6if 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 ${CC-cc} -E conftest.c 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=yes  if test "${CFLAGS+set}" != set; then    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_prog_gcc_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_gcc_g=yeselse  ac_cv_prog_gcc_g=nofirm -f conftest*fiecho "$ac_t""$ac_cv_prog_gcc_g" 1>&6    if test $ac_cv_prog_gcc_g = yes; then      CFLAGS="-g -O"    else      CFLAGS="-O"    fi  fielse  GCC=  test "${CFLAGS+set}" = set || CFLAGS="-g"fiecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6set dummy ${MAKE-make}; ac_make=$2if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftestmake <<\EOFall:	@echo 'ac_maketemp="${MAKE}"'EOF# GNU make sometimes prints "make[1]: Entering...", which would confuse us.eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`if test -n "$ac_maketemp"; then  eval ac_cv_prog_make_${ac_make}_set=yeselse  eval ac_cv_prog_make_${ac_make}_set=nofirm -f conftestmakefiif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then  echo "$ac_t""yes" 1>&6  SET_MAKE=else  echo "$ac_t""no" 1>&6  SET_MAKE="MAKE=${MAKE-make}"fifor ac_prog in mawk gawk nawk awkdo# Extract the first word of "$ac_prog", so it can be a program name with args.set dummy $ac_prog; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -n "$AWK"; then  ac_cv_prog_AWK="$AWK" # Let the user override the test.else  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"  for ac_dir in $PATH; do    test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      ac_cv_prog_AWK="$ac_prog"      break    fi  done  IFS="$ac_save_ifs"fifiAWK="$ac_cv_prog_AWK"if test -n "$AWK"; then  echo "$ac_t""$AWK" 1>&6else  echo "$ac_t""no" 1>&6fitest -n "$AWK" && breakdone# We use a path for perl so the #! line in bin/wscollect.pl will work.# Extract the first word of "perl", so it can be a program name with args.set dummy perl; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  case "$PERL" in  /*)  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.  ;;  *)  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"  for ac_dir in $PATH; do    test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      ac_cv_path_PERL="$ac_dir/$ac_word"      break    fi  done  IFS="$ac_save_ifs"  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"  ;;esacfiPERL="$ac_cv_path_PERL"if test -n "$PERL"; then  echo "$ac_t""$PERL" 1>&6else  echo "$ac_t""no" 1>&6fiif test "$PERL" != no; then  PERL_SCRIPTS="bin/wscollect.pl"else  echo "configure: warning: Some functions may work correctly" 1>&2fi## checks for libraries## Replace `main' with a function in -lm:echo $ac_n "checking for -lm""... $ac_c" 1>&6ac_lib_var=`echo m | tr '.-/+' '___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="-lm  $LIBS"cat > conftest.$ac_ext <<EOF#line 832 "configure"#include "confdefs.h"int main() { return 0; }int t() {floor(); return 0; }EOFif eval $ac_link; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  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 m | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF  LIBS="-lm $LIBS"else  echo "$ac_t""no" 1>&6fiecho $ac_n "checking for -lcompat""... $ac_c" 1>&6ac_lib_var=`echo compat | tr '.-/+' '___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="-lcompat  $LIBS"cat > conftest.$ac_ext <<EOF#line 872 "configure"#include "confdefs.h"int main() { return 0; }int t() {rexec(); return 0; }EOFif eval $ac_link; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  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 compat | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF  LIBS="-lcompat $LIBS"else  echo "$ac_t""no" 1>&6fiecho $ac_n "checking for -lucb""... $ac_c" 1>&6ac_lib_var=`echo ucb | tr '.-/+' '___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="-lucb  $LIBS"cat > conftest.$ac_ext <<EOF#line 912 "configure"#include "confdefs.h"int main() { return 0; }int t() {wait3(); return 0; }EOFif eval $ac_link; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  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 ucb | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF  LIBS="-lucb $LIBS"else  echo "$ac_t""no" 1>&6fiecho $ac_n "checking for -lsocket""... $ac_c" 1>&6ac_lib_var=`echo socket | tr '.-/+' '___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 -lnsl $LIBS"cat > conftest.$ac_ext <<EOF#line 952 "configure"#include "confdefs.h"int main() { return 0; }int t() {connect(); return 0; }EOFif eval $ac_link; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  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 socket | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF  LIBS="-lsocket $LIBS"else  echo "$ac_t""no" 1>&6fi## checks for header files#echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6# On Suns, sometimes $CPP names a directory.if test -n "$CPP" && test -d "$CPP"; then  CPP=fiif test -z "$CPP"; thenif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else    # This must be in double quotes, not single quotes, because CPP may get  # substituted into the Makefile and "${CC-cc}" will confuse make.  CPP="${CC-cc} -E"  # On the NeXT, cc -E runs the code through the compiler's parser,  # not just through cpp.  cat > conftest.$ac_ext <<EOF#line 1003 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFeval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then  :else  echo "$ac_err" >&5  rm -rf conftest*  CPP="${CC-cc} -E -traditional-cpp"  cat > conftest.$ac_ext <<EOF#line 1017 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFeval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then  :else  echo "$ac_err" >&5  rm -rf conftest*  CPP=/lib/cppfirm -f conftest*firm -f conftest*  ac_cv_prog_CPP="$CPP"fi  CPP="$ac_cv_prog_CPP"else  ac_cv_prog_CPP="$CPP"fiecho "$ac_t""$CPP" 1>&6# If we cannot run a trivial program, we must be cross compiling.echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test "$cross_compiling" = yes; then  ac_cv_c_cross=yeselsecat > conftest.$ac_ext <<EOF#line 1051 "configure"#include "confdefs.h"main(){return(0);}EOFeval $ac_linkif test -s conftest && (./conftest; exit) 2>/dev/null; then  ac_cv_c_cross=noelse  ac_cv_c_cross=yesfifirm -fr conftest*fiecho "$ac_t""$ac_cv_c_cross" 1>&6cross_compiling=$ac_cv_c_crossecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then

⌨️ 快捷键说明

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