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

📄 configure

📁 gcc-2.95.3 Linux下最常用的C编译器
💻
📖 第 1 页 / 共 4 页
字号:
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  :else  echo "$ac_t""no" 1>&6{ echo "configure: error: Can't find stdio.h.You must have a usable C system for the target already installed, at leastincluding headers and, preferably, the library, before you can configurethe G77 runtime system.  If necessary, install gcc now with \`LANGUAGES=c',then the target library, then build with \`LANGUAGES=f77'." 1>&2; exit 1; }fiecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6echo "configure:903: checking for ANSI C header files" >&5if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 908 "configure"#include "confdefs.h"#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <float.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then  rm -rf conftest*  ac_cv_header_stdc=yeselse  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ac_cv_header_stdc=nofirm -f conftest*if test $ac_cv_header_stdc = yes; then  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.cat > conftest.$ac_ext <<EOF#line 933 "configure"#include "confdefs.h"#include <string.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "memchr" >/dev/null 2>&1; then  :else  rm -rf conftest*  ac_cv_header_stdc=nofirm -f conftest*fiif test $ac_cv_header_stdc = yes; then  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.cat > conftest.$ac_ext <<EOF#line 951 "configure"#include "confdefs.h"#include <stdlib.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "free" >/dev/null 2>&1; then  :else  rm -rf conftest*  ac_cv_header_stdc=nofirm -f conftest*fiif test $ac_cv_header_stdc = yes; then  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.if test "$cross_compiling" = yes; then  :else  cat > conftest.$ac_ext <<EOF#line 972 "configure"#include "confdefs.h"#include <ctype.h>#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))int main () { int i; for (i = 0; i < 256; i++)if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);exit (0); }EOFif { (eval echo configure:983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen  :else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -fr conftest*  ac_cv_header_stdc=nofirm -fr conftest*fififiecho "$ac_t""$ac_cv_header_stdc" 1>&6if test $ac_cv_header_stdc = yes; then  cat >> confdefs.h <<\EOF#define STDC_HEADERS 1EOFfiecho $ac_n "checking for posix""... $ac_c" 1>&6echo "configure:1008: checking for posix" >&5if eval "test \"`echo '$''{'g77_cv_header_posix'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1013 "configure"#include "confdefs.h"#include <sys/types.h>#include <unistd.h>#ifdef _POSIX_VERSION  yes#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  g77_cv_header_posix=yeselse  rm -rf conftest*  g77_cv_header_posix=nofirm -f conftest*fiecho "$ac_t""$g77_cv_header_posix" 1>&6# We can rely on the GNU library being posix-ish.  I guess checking the # header isn't actually like checking the functions, though...echo $ac_n "checking for GNU library""... $ac_c" 1>&6echo "configure:1039: checking for GNU library" >&5if eval "test \"`echo '$''{'g77_cv_lib_gnu'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1044 "configure"#include "confdefs.h"#include <stdio.h>#ifdef __GNU_LIBRARY__  yes#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  g77_cv_lib_gnu=yeselse  rm -rf conftest*  g77_cv_lib_gnu=nofirm -f conftest*fiecho "$ac_t""$g77_cv_lib_gnu" 1>&6# Apparently cygwin needs to be special-cased.echo $ac_n "checking for cyg\`win'32""... $ac_c" 1>&6echo "configure:1068: checking for cyg\`win'32" >&5if eval "test \"`echo '$''{'g77_cv_sys_cygwin32'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1073 "configure"#include "confdefs.h"#ifdef __CYGWIN32__  yes#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  g77_cv_sys_cygwin32=yeselse  rm -rf conftest*  g77_cv_sys_cygwin32=nofirm -f conftest*fiecho "$ac_t""$g77_cv_sys_cygwin32" 1>&6# ditto for mingw32.echo $ac_n "checking for mingw32""... $ac_c" 1>&6echo "configure:1096: checking for mingw32" >&5if eval "test \"`echo '$''{'g77_cv_sys_mingw32'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1101 "configure"#include "confdefs.h"#ifdef __MINGW32__  yes#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  g77_cv_sys_mingw32=yeselse  rm -rf conftest*  g77_cv_sys_mingw32=nofirm -f conftest*fiecho "$ac_t""$g77_cv_sys_mingw32" 1>&6ac_safe=`echo "fcntl.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6echo "configure:1125: checking for fcntl.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 1130 "configure"#include "confdefs.h"#include <fcntl.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`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  test $g77_cv_header_posix = yes && cat >> confdefs.h <<\EOF#define _POSIX_SOURCE 1EOFelse  echo "$ac_t""no" 1>&6cat >> confdefs.h <<\EOF#define NO_FCNTL 1EOF cat >> confdefs.h <<\EOF#define OPEN_DECL 1EOFfiecho $ac_n "checking for working const""... $ac_c" 1>&6echo "configure:1168: checking for working const" >&5if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1173 "configure"#include "confdefs.h"int main() {/* Ultrix mips cc rejects this.  */typedef int charset[2]; const charset x;/* SunOS 4.1.1 cc rejects this.  */char const *const *ccp;char **p;/* NEC SVR4.0.2 mips cc rejects this.  */struct point {int x, y;};static struct point const zero = {0,0};/* AIX XL C 1.02.0.0 rejects this.   It does not let you subtract one const X* pointer from another in an arm   of an if-expression whose if-part is not a constant expression */const char *g = "string";ccp = &g + (g ? g-g : 0);/* HPUX 7.0 cc rejects these. */++ccp;p = (char**) ccp;ccp = (char const *const *) p;{ /* SCO 3.2v4 cc rejects this.  */  char *t;  char const *s = 0 ? (char *) 0 : (char const *) 0;  *t++ = 0;}{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */  int x[] = {25, 17};  const int *foo = &x[0];  ++foo;}{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */  typedef const int *iptr;  iptr p = 0;  ++p;}{ /* AIX XL C 1.02.0.0 rejects this saying     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */  struct s { int j; const int *ap[3]; };  struct s *b; b->j = 5;}{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */  const int foo = 10;}; return 0; }EOFif { (eval echo configure:1222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  ac_cv_c_const=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ac_cv_c_const=nofirm -f conftest*fiecho "$ac_t""$ac_cv_c_const" 1>&6if test $ac_cv_c_const = no; then  cat >> confdefs.h <<\EOF#define const EOFfiecho $ac_n "checking for size_t""... $ac_c" 1>&6echo "configure:1243: checking for size_t" >&5if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1248 "configure"#include "confdefs.h"#include <sys/types.h>#if STDC_HEADERS#include <stdlib.h>#include <stddef.h>#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then  rm -rf conftest*  ac_cv_type_size_t=yeselse  rm -rf conftest*  ac_cv_type_size_t=nofirm -f conftest*fiecho "$ac_t""$ac_cv_type_size_t" 1>&6if test $ac_cv_type_size_t = no; then  cat >> confdefs.h <<\EOF#define size_t unsignedEOFfi# This should always succeed on unix.# Apparently positive result on cygwin loses re. NON_UNIX_STDIO# (as of cygwin b18). Likewise on mingw.echo $ac_n "checking for fstat""... $ac_c" 1>&6echo "configure:1281: checking for fstat" >&5if eval "test \"`echo '$''{'ac_cv_func_fstat'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1286 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,    which can conflict with char fstat(); below.  */#include <assert.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 fstat();int main() {/* The GNU C library defines this for functions which it implements    to always fail with ENOSYS.  Some functions are actually named    something starting with __ and the normal name is an alias.  */#if defined (__stub_fstat) || defined (__stub___fstat)choke me#elsefstat();#endif; return 0; }EOFif { (eval echo configure:1309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_func_fstat=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_func_fstat=no"firm -f conftest*

⌨️ 快捷键说明

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