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

📄 configure

📁 一个Megaco实现源代码
💻
📖 第 1 页 / 共 3 页
字号:
CFLAGS="-O2 $OTP_EXTRA_FLAGS"case $host_os in  darwin*)	CFLAGS="$CFLAGS -no-cpp-precomp"	;;esacDED_CFLAGS="$CFLAGS"# Extract the first word of "ld", so it can be a program name with args.set dummy ld; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:902: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_DED_LD'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -n "$DED_LD"; then  ac_cv_prog_DED_LD="$DED_LD" # 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_DED_LD="ld"      break    fi  done  IFS="$ac_save_ifs"  test -z "$ac_cv_prog_DED_LD" && ac_cv_prog_DED_LD="no_ld"fifiDED_LD="$ac_cv_prog_DED_LD"if test -n "$DED_LD"; then  echo "$ac_t""$DED_LD" 1>&6else  echo "$ac_t""no" 1>&6fiif test "$PERL" = no_perl; then  { echo "configure: error: ld is required to build the flex scanner!" 1>&2; exit 1; }fiecho $ac_n "checking for gethostbyaddr in -lnsl""... $ac_c" 1>&6echo "configure:934: checking for gethostbyaddr in -lnsl" >&5ac_lib_var=`echo nsl'_'gethostbyaddr | sed 'y%./+-%__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="-lnsl  $LIBS"cat > conftest.$ac_ext <<EOF#line 942 "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 gethostbyaddr();int main() {gethostbyaddr(); return 0; }EOFif { (eval echo configure:953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  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  LIBS="$LIBS -lnsl"else  echo "$ac_t""no" 1>&6fiecho $ac_n "checking for accept in -lsocket""... $ac_c" 1>&6echo "configure:974: checking for accept in -lsocket" >&5ac_lib_var=`echo socket'_'accept | sed 'y%./+-%__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  $LIBS"cat > conftest.$ac_ext <<EOF#line 982 "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 accept();int main() {accept(); return 0; }EOFif { (eval echo configure:993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  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  LIBS="$LIBS -lsocket"else  echo "$ac_t""no" 1>&6fiecho $ac_n "checking for res_gethostbyaddr in -lresolv""... $ac_c" 1>&6echo "configure:1014: checking for res_gethostbyaddr in -lresolv" >&5ac_lib_var=`echo resolv'_'res_gethostbyaddr | sed 'y%./+-%__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="-lresolv  $LIBS"cat > conftest.$ac_ext <<EOF#line 1022 "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 res_gethostbyaddr();int main() {res_gethostbyaddr(); return 0; }EOFif { (eval echo configure:1033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  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  LIBS="$LIBS -lresolv"else  echo "$ac_t""no" 1>&6ficat >> confdefs.h <<\EOF#define THREAD_LIBS 1EOFecho $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6echo "configure:1059: checking for pthread_create in -lpthread" >&5ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__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="-lpthread  $LIBS"cat > conftest.$ac_ext <<EOF#line 1067 "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_create();int main() {pthread_create(); return 0; }EOFif { (eval echo configure:1078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  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  THREAD_LIBS="$THREAD_LIBS -lpthread"else  echo "$ac_t""no" 1>&6fiERLANG_OSTYPE=unix         trap '' 1 2 15trap '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 15# Transform confdefs.h into DEFS.# Protect against shell expansion while executing Makefile rules.# Protect against Makefile macro expansion.cat > conftest.defs <<\EOFs%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%gs%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%gs%\[%\\&%gs%\]%\\&%gs%\$%$$%gEOFDEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`rm -f conftest.defs# 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.13"    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 "src/$host/Makefile:src/Makefile.in	examples/simple_MG/$host/Makefile:examples/simple_MG/Makefile.in	examples/simple_MGC/$host/Makefile:examples/simple_MGC/Makefile.in	" | 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%@SHELL@%$SHELL%gs%@CFLAGS@%$CFLAGS%gs%@CPPFLAGS@%$CPPFLAGS%gs%@CXXFLAGS@%$CXXFLAGS%gs%@FFLAGS@%$FFLAGS%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%@host@%$host%gs%@host_alias@%$host_alias%gs%@host_cpu@%$host_cpu%gs%@host_vendor@%$host_vendor%gs%@host_os@%$host_os%gs%@AR@%$AR%gs%@RANLIB@%$RANLIB%gs%@CC@%$CC%gs%@DED_CFLAGS@%$DED_CFLAGS%gs%@DED_LD@%$DED_LD%gs%@THREAD_LIBS@%$THREAD_LIBS%gs%@ERLANG_OSTYPE@%$ERLANG_OSTYPE%gCEOFEOFcat >> $CONFIG_STATUS <<\EOF# Split the substitutions into bite-sized pieces for seds with# small command number limits, like on Digital OSF/1 and HP-UX.ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.ac_file=1 # Number of current file.ac_beg=1 # First line for current file.ac_end=$ac_max_sed_cmds # Line after last line for current file.ac_more_lines=:ac_sed_cmds=""while $ac_more_lines; do  if test $ac_beg -gt 1; then    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file  else    sed "${ac_end}q" conftest.subs > conftest.s$ac_file  fi  if test ! -s conftest.s$ac_file; then    ac_more_lines=false    rm -f conftest.s$ac_file  else    if test -z "$ac_sed_cmds"; then      ac_sed_cmds="sed -f conftest.s$ac_file"    else      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"    fi    ac_file=`expr $ac_file + 1`    ac_beg=$ac_end    ac_end=`expr $ac_end + $ac_max_sed_cmds`  fidoneif test -z "$ac_sed_cmds"; then  ac_sed_cmds=catfiEOFcat >> $CONFIG_STATUS <<EOFCONFIG_FILES=\${CONFIG_FILES-"src/$host/Makefile:src/Makefile.in	examples/simple_MG/$host/Makefile:examples/simple_MG/Makefile.in	examples/simple_MGC/$host/Makefile:examples/simple_MGC/Makefile.in	"}EOFcat >> $CONFIG_STATUS <<\EOFfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then  # Support "outfile[:infile[: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 a relative srcdir, top_srcdir, and INSTALL 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  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`  sed -e "$ac_comsubs%@configure_input@%$configure_input%gs%@srcdir@%$srcdir%gs%@top_srcdir@%$top_srcdir%g" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_filefi; donerm -f conftest.s*EOFcat >> $CONFIG_STATUS <<EOFEOFcat >> $CONFIG_STATUS <<\EOFexit 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 + -