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

📄 configure

📁 一个开放源代码的 AT&T 的 Korn Shell 的复制品, 支持大多数 ksh89 的特性。
💻
📖 第 1 页 / 共 5 页
字号:
    ;;  esacdoneif test -n "$ac_prev"; then  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }fitrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15# File descriptor usage:# 0 standard input# 1 file creation# 2 errors and warnings# 3 some systems may open it to /dev/tty# 4 used on the Kubota Titan# 6 checking for... messages and results# 5 compiler messages saved in config.logif test "$silent" = yes; then  exec 6>/dev/nullelse  exec 6>&1fiexec 5>./config.logecho "\This file contains any messages produced by compilers whilerunning configure, to aid debugging if configure makes a mistake." 1>&5# Strip out --no-create and --no-recursion so they do not pile up.# Also quote any args containing shell metacharacters.ac_configure_args=for ac_argdo  case "$ac_arg" in  -no-create | --no-create | --no-creat | --no-crea | --no-cre \  | --no-cr | --no-c) ;;  -no-recursion | --no-recursion | --no-recursio | --no-recursi \  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)  ac_configure_args="$ac_configure_args '$ac_arg'" ;;  *) ac_configure_args="$ac_configure_args $ac_arg" ;;  esacdone# NLS nuisances.# Only set these to C if already set.  These must not be set unconditionally# because not all systems understand e.g. LANG=C (notably SCO).# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!# Non-C LC_CTYPE values break the ctype check.if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fiif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fiif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fiif test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi# confdefs.h avoids OS command line length limits that DEFS can exceed.rm -rf conftest* confdefs.h# AIX cpp loses on an empty file, so make sure it contains at least a newline.echo > confdefs.h# A filename unique to this package, relative to the directory that# configure is in, which we can look for to find out if srcdir is correct.ac_unique_file=c_ksh.c# Find the source files, if location was not specified.if test -z "$srcdir"; then  ac_srcdir_defaulted=yes  # Try the directory containing this script, then its parent.  ac_prog=$0  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`  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%'`# Prefer explicitly selected file to automatically selected ones.if test -z "$CONFIG_SITE"; then  if test "x$prefix" != xNONE; then    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"  else    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"  fififor ac_site_file in $CONFIG_SITE; do  if test -r "$ac_site_file"; then    echo "loading site script $ac_site_file"    . "$ac_site_file"  fidoneif test -r "$cache_file"; then  echo "loading cache $cache_file"  . $cache_fileelse  echo "creating cache $cache_file"  > $cache_filefiac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='echo $CPP $CPPFLAGS 1>&5;$CPP $CPPFLAGS'ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'ac_link='echo ${CC-cc} -o conftest$ac_exe_suffix $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;${CC-cc} -o conftest$ac_exe_suffix $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'if (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=fidef_path_unix="/bin:/usr/bin:/usr/ucb"def_path_os2="c:/usr/bin;c:/os2;/os2"# Check whether --enable-path or --disable-path was given.if test "${enable_path+set}" = set; then  enableval="$enable_path"  :else  enable_path=defaultficase $enable_path:$ksh_cv_os_type in default:OS2_EMX) enable_path="$def_path_os2" ;; default:*) enable_path="$def_path_unix" ;;esaccase $enable_path in  \"*\") ;;  *)    enable_path="\"$enable_path\""    ;;esaccat >> confdefs.h <<EOF#define DEFAULT_PATH $enable_pathEOF# Check whether --enable-shell or --disable-shell was given.if test "${enable_shell+set}" = set; then  enableval="$enable_shell"  :else  enable_shell=kshficase $enable_shell in  ksh) cat >> confdefs.h <<\EOF#define KSH 1EOF ;;  sh) ;;  *)    { echo "configure: error: bad --enable-shell: must be one of sh or ksh" 1>&2; exit 1; }esacSHELL_PROG=$enable_shell# Check whether --enable-emacs or --disable-emacs was given.if test "${enable_emacs+set}" = set; then  enableval="$enable_emacs"  :ficase $enable_emacs:$enable_shell in  yes:*|:ksh) enable_emacs=yes; cat >> confdefs.h <<\EOF#define EMACS 1EOF ;;  no:*|:sh) enable_emacs=no;;  *) { echo "configure: error: bad --enable-emacs argument" 1>&2; exit 1; }esac# Check whether --enable-vi or --disable-vi was given.if test "${enable_vi+set}" = set; then  enableval="$enable_vi"  :ficase $enable_vi:$enable_shell in  yes:*|:ksh) enable_vi=yes; cat >> confdefs.h <<\EOF#define VI 1EOF ;;  no:*|:sh) enable_vi=no;;  *) { echo "configure: error: bad --enable-vi argument" 1>&2; exit 1; }esac# Check whether --enable-jobs or --disable-jobs was given.if test "${enable_jobs+set}" = set; then  enableval="$enable_jobs"  :ficase $enable_jobs in  yes|'') enable_jobs=yes; cat >> confdefs.h <<\EOF#define JOBS 1EOF ;;  no) enable_jobs=no;;  *) { echo "configure: error: bad --enable-jobs argument" 1>&2; exit 1; }esac# Check whether --enable-brace-expand or --disable-brace-expand was given.if test "${enable_brace_expand+set}" = set; then  enableval="$enable_brace_expand"  :ficase $enable_brace_expand:$enable_shell in  yes:*|:ksh) enable_brace_expand=yes; cat >> confdefs.h <<\EOF#define BRACE_EXPAND 1EOF ;;  no:*|:sh) enable_brace_expand=no;;  *) { echo "configure: error: bad --enable-brace-expand argument" 1>&2; exit 1; }esac# Check whether --enable-history or --disable-history was given.if test "${enable_history+set}" = set; then  enableval="$enable_history"  :ficase $enable_history:$enable_shell in  simple:*|:ksh) enable_history=simple; ;;  complex:*) enable_history=complex; cat >> confdefs.h <<\EOF#define COMPLEX_HISTORY 1EOF ;;  no:*|:sh)    case $enable_history:$enable_vi:$enable_emacs in    no:yes:*|no:*:yes)      { echo "configure: error: can't disable history when vi or emacs is enabled" 1>&2; exit 1; } ;;    :yes:*|:*:yes)      enable_history=yes;;    *)      enable_history=no;;    esac    ;;  *) { echo "configure: error: bad --enable-history argument" 1>&2; exit 1; }esactest X"$enable_history" != Xno && cat >> confdefs.h <<\EOF#define HISTORY 1EOF# Check whether --enable-posixly_correct or --disable-posixly_correct was given.if test "${enable_posixly_correct+set}" = set; then  enableval="$enable_posixly_correct"  :ficase $enable_posixly_correct:$enable_shell in  yes:*) enable_posixly_correct=yes; cat >> confdefs.h <<\EOF#define POSIXLY_CORRECT 1EOF ;;  no:*|:*) enable_posixly_correct=no;;  *) { echo "configure: error: bad --enable-posixly_correct argument" 1>&2; exit 1; }esac# Check whether --enable-default-env or --disable-default-env was given.if test "${enable_default_env+set}" = set; then  enableval="$enable_default_env"  :else  enable_default_env=nofiif test X"$enable_default_env" != Xno; then  # The [a-zA-Z]:/ is for os2 types...  case $enable_default_env in    /*|[a-zA-Z]:/*)      enable_default_env="\"$enable_default_env\""      ;;    \"/*\"|\"[a-zA-Z]:/*\")      ;;    *)      { echo "configure: error: --enable-default-env argument must be an absolute path (was $enable_default_env)" 1>&2; exit 1; }      ;;  esac  cat >> confdefs.h <<EOF#define DEFAULT_ENV $enable_default_envEOFfi# Check whether --enable-silly or --disable-silly was given.if test "${enable_silly+set}" = set; then  enableval="$enable_silly"  :ficase $enable_silly:$enable_shell in  yes:*) enable_silly=yes; cat >> confdefs.h <<\EOF#define SILLY 1EOF ;;  no:*|:*) enable_silly=no;;  *) { echo "configure: error: bad --enable-silly argument" 1>&2; exit 1; }esac# Check whether --enable-swtch or --disable-swtch was given.if test "${enable_swtch+set}" = set; then  enableval="$enable_swtch"  :ficase $enable_swtch:$enable_shell in  yes:*) enable_swtch=yes; cat >> confdefs.h <<\EOF#define SWTCH 1EOF ;;  no:*|:*) enable_swtch=no;;  *) { echo "configure: error: bad --enable-swtch argument" 1>&2; exit 1; }esac# 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:791: 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="${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>&6echo "configure:819: 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 ${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>&6echo "configure:840: checking whether ${CC-cc} accepts -g" >&5if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  echo 'int main(){ return 0; }' > conftest.cif test -z "`${CC-cc} -g 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 how to run the C preprocessor""... $ac_c" 1>&6echo "configure:867: checking how to run the C preprocessor" >&5# 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 882 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then  :else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  CPP="${CC-cc} -E -traditional-cpp"  cat > conftest.$ac_ext <<EOF#line 899 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then  :else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  CPP=/lib/cppfi

⌨️ 快捷键说明

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