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

📄 configure

📁 一个开放源代码的 AT&T 的 Korn Shell 的复制品, 支持大多数 ksh89 的特性。
💻
📖 第 1 页 / 共 5 页
字号:
rm -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>&6if test $ac_cv_prog_gcc = yes; then    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6echo "configure:929: checking whether ${CC-cc} needs -traditional" >&5if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else    ac_pattern="Autoconf.*'x'"  cat > conftest.$ac_ext <<EOF#line 935 "configure"#include "confdefs.h"#include <sgtty.h>Autoconf TIOCGETPEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "$ac_pattern" >/dev/null 2>&1; then  rm -rf conftest*  ac_cv_prog_gcc_traditional=yeselse  rm -rf conftest*  ac_cv_prog_gcc_traditional=nofirm -f conftest*  if test $ac_cv_prog_gcc_traditional = no; then    cat > conftest.$ac_ext <<EOF#line 953 "configure"#include "confdefs.h"#include <termio.h>Autoconf TCGETAEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "$ac_pattern" >/dev/null 2>&1; then  rm -rf conftest*  ac_cv_prog_gcc_traditional=yesfirm -f conftest*  fifiecho "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6  if test $ac_cv_prog_gcc_traditional = yes; then    CC="$CC -traditional"  fifiif test X"$GCC" = Xyes && test -f $srcdir/Warn-flags; then  CFLAGS="${CFLAGS+$CFLAGS }`cat $srcdir/Warn-flags`"fiLDSTATIC=${LDSTATIC-}test X"$LDSTATIC" != X && LDFLAGS="${LDFLAGS+$LDFLAGS }$LDSTATIC"      echo $ac_n "checking if this is a problematic os""... $ac_c" 1>&6echo "configure:982: checking if this is a problematic os" >&5if eval "test \"`echo '$''{'ksh_cv_os_type'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else   ksh_cv_os_type=no      # Some tests below add -C to CPPFLAGS      saveCPPFLAGS="$CPPFLAGS"      for i in AIX ISC MINIX SCO OS2_EMX TITANOS NEXT HPUX; do	case $i in	#((	  AIX)	    cat > conftest.$ac_ext <<EOF#line 993 "configure"#include "confdefs.h"#ifdef _AIXyes#endif	       EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  ksh_cv_os_type=$ifirm -f conftest*	    ;;	#(	  ISC)	    # Both native ISC cpp and gcc understand this (leave comments in)	    CPPFLAGS="$CPPFLAGS -C"	    #XXX grep part won't work if cross-compiling...	    cat > conftest.$ac_ext <<EOF#line 1014 "configure"#include "confdefs.h"#include <unistd.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "INTERACTIVE Systems Corporation" >/dev/null 2>&1; then  rm -rf conftest*  if grep _POSIX_VERSION /usr/include/sys/unistd.h > /dev/null 2>&1; then		  ksh_cv_os_type="$i-posix"		else		  ksh_cv_os_type=$i		fifirm -f conftest*	    CPPFLAGS="$saveCPPFLAGS"	    ;;	#(	  MINIX)	    ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6echo "configure:1033: checking for minix/config.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1038 "configure"#include "confdefs.h"#include <minix/config.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then  rm -rf conftest*  eval "ac_cv_header_$ac_safe=yes"else  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "$ac_t""yes" 1>&6  ksh_cv_os_type=$ielse  echo "$ac_t""no" 1>&6fi	    ;;	#(	  SCO)	    # Both native SCO cpp and gcc understand this (leave comments in)	    CPPFLAGS="$CPPFLAGS -C"	    cat > conftest.$ac_ext <<EOF#line 1068 "configure"#include "confdefs.h"#include <unistd.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "The Santa Cruz Operation" >/dev/null 2>&1; then  rm -rf conftest*  ksh_cv_os_type=$ifirm -f conftest*	    CPPFLAGS="$saveCPPFLAGS"	    ;;	#(	  OS2_EMX)	    cat > conftest.$ac_ext <<EOF#line 1082 "configure"#include "confdefs.h"#ifdef __EMX__yes#endif	       EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  ksh_cv_os_type=$ifirm -f conftest*	    ;;	#(	  TITANOS)	    cat > conftest.$ac_ext <<EOF#line 1099 "configure"#include "confdefs.h"#if defined(titan) || defined(_titan) || defined(__titan)YesTitan#endif	       EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "YesTitan" >/dev/null 2>&1; then  rm -rf conftest*  ksh_cv_os_type=$ifirm -f conftest*	    ;;	#(	  NEXT)	    #	    # NeXT 3.2 (other versions?) - cc -E doesn't work and /lib/cpp	    # doesn't define things that need defining, so tests that rely	    # on $CPP will break.	    #	    # Hmmm - can't safely use CPP to test for NeXT defines, so have	    # to use a program that won't compile on a NeXT and one that will	    # only compile on a NeXT...	    cat > conftest.$ac_ext <<EOF#line 1124 "configure"#include "confdefs.h"int main() {	        #if defined(__NeXT) || defined(NeXT)		  this is a NeXT box and the compile should fail	        #endif	      ; return 0; }EOFif { (eval echo configure:1135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  :else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  cat > conftest.$ac_ext <<EOF#line 1142 "configure"#include "confdefs.h"int main() {		  #if !defined(__NeXT) && !defined(NeXT)		    this is NOT a NeXT box and the compile should fail		  #endif		; return 0; }EOFif { (eval echo configure:1153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  ksh_cv_os_type=$ielse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5firm -f conftest*firm -f conftest*	    ;;	#(	  HPUX)	    cat > conftest.$ac_ext <<EOF#line 1165 "configure"#include "confdefs.h"#ifdef __hpuxyes#endif	       EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  ksh_cv_os_type=$ifirm -f conftest*	    ;;	#(	esac		#))	test $ksh_cv_os_type != no && break      done    fiecho "$ac_t""$ksh_cv_os_type" 1>&6  case $ksh_cv_os_type in	#((    AIX)      cat >> confdefs.h <<\EOF#define _ALL_SOURCE 1EOF      ;;			#(    ISC)      cat >> confdefs.h <<\EOF#define OS_ISC 1EOF      ;;			#(    ISC-posix)      cat >> confdefs.h <<\EOF#define OS_ISC 1EOF      cat >> confdefs.h <<\EOF#define _POSIX_SOURCE 1EOF      if test "$GCC" = yes; then	CC="$CC -posix"      else	CC="$CC -Xp"      fi      ;;			#(    MINIX)      cat >> confdefs.h <<\EOF#define _POSIX_SOURCE 1EOF      cat >> confdefs.h <<\EOF#define _POSIX_1_SOURCE 2EOF      cat >> confdefs.h <<\EOF#define _MINIX 1EOF      ;;			#(    SCO)      cat >> confdefs.h <<\EOF#define OS_SCO 1EOF      ;;			#(    OS2_EMX)      # XXX change this to OS_OS2 or OS_OS2_EMX?      cat >> confdefs.h <<\EOF#define OS2 1EOF      ac_exe_suffix=.exe      ;;			#(    TITANOS)      # Need to use cc -43 to get a shell with job control      case "$CC" in		#((        *-43*)  			# Already have -43 option?	  ;;			#(	*/cc|*/cc' '|*/cc'	'|cc|cc' '|cc'	') # Using stock compiler?	  CC="$CC -43"	  ;;			#(      esac			#))      #      # Force dirent check to find the right thing.  There is a dirent.h      # (and a sys/dirent.h) file which compiles, but generates garbage...      #       ac_cv_header_dirent_dirent_h=no      ac_cv_header_dirent_sys_ndir_h=no      ac_cv_header_dirent_sys_dir_h=yes      ;;			#(    NEXT)      #      # NeXT 3.2 (other versions?) - cc -E doesn't work and /lib/cpp      # doesn't define things that need defining, so tests that rely      # on $CPP will break.      #      cat > conftest.$ac_ext <<EOF#line 1259 "configure"#include "confdefs.h"#include <signal.h>	#if !defined(SIGINT) || !defined(SIGQUIT)	    Bad NeXT	#endif	EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "Bad NeXT" >/dev/null 2>&1; then  rm -rf conftest*  { echo "configure: error: There is a problem on NeXT boxes resulting in a bad siglist.out file beinggenerated (which breaks the trap and kill commands) and probably resultingin many configuration tests not working correctly.You appear to have this problem - see the comments on NeXT in the pdkshREADME file for work arounds." 1>&2; exit 1; }firm -f conftest*      ;;			#(    HPUX)      #      # In some versions of hpux (eg, 10.2), getwd & getcwd will dump core      # if directory is not readble.      #      # name is used in test program      echo $ac_n "checking for bug in getwd""... $ac_c" 1>&6echo "configure:1287: checking for bug in getwd" >&5if eval "test \"`echo '$''{'ksh_cv_hpux_getwd_bug'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else   tmpdir=conftest.dir	  if mkdir $tmpdir ; then	    if test "$cross_compiling" = yes; then  echo "configure: warning: assuming getwd broken" 1>&2; ksh_cv_hpux_getwd_bug=yeselsecat > conftest.$ac_ext <<EOF#line 1297 "configure"#include "confdefs.h"		int		main()		{		  char buf[8 * 1024];		  char *dirname = "conftest.dir";		  int ok = 0;		  if (chdir(dirname) < 0)		    exit(2);		  if (chmod(".", 0) < 0)		    exit(3);		  /* Test won't work if run as root - so don't be root */		  if (getuid() == 0 || geteuid() == 0)		    setresuid(1, 1, 1);	/* hpux has this */#ifdef HAVE_GETWD /* silly since HAVE_* tests haven't been done yet */		  {		      extern char *getwd();		      ok = getwd(buf) == 0;		  }#else		  {		      extern char *getcwd();		      ok = getcwd(buf, sizeof(buf)) == 0;		  }#endif		  exit(ok ? 0 : 10);		  return ok ? 0 : 10;		}EOFeval $ac_linkif test -s conftest$ac_exe_suffix && (./conftest; exit) 2>/dev/null; then  ksh_cv_hpux_getwd_bug=noelse  ksh_cv_hpux_getwd_bug=yesfifirm -fr conftest*	       test -d $tmpdir && rmdir $tmpdir	  else	     { echo "configure: error: could not make temp directory for test" 1>&2; exit 1; }; ksh_cv_hpux_getwd_bug=yes	  fifiecho "$ac_t""$ksh_cv_hpux_getwd_bug" 1>&6      if test $ksh_cv_hpux_getwd_bug = yes; then	cat >> confdefs.h <<\EOF#define HPUX_GETWD_BUG 1EOF      fi      ;;			#(  esac				#)) if test "$program_transform_name" = s,x,x,; then  program_transform_name=else  # Double any \ or $.  echo might interpret backslashes.  cat <<\EOF_SED > conftestseds,\\,\\\\,g; s,\$,$$,gEOF_SED  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"  rm -f conftestsedfitest "$program_prefix" != NONE &&  program_transform_name="s,^,${program_prefix},; $program_transform_name"# Use a double $ so make ignores it.test "$program_suffix" != NONE &&  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"# sed with no file args requires a program.test "$program_transform_name" = "" && program_transform_name="s,x,x,"ac_header_dirent=nofor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h

⌨️ 快捷键说明

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