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

📄 configure

📁 linux 下的源代码分析阅读器 red hat公司新版
💻
📖 第 1 页 / 共 4 页
字号:
  ac_cv_c_cross=yesfifirm -fr conftest*ficross_compiling=$ac_cv_c_crossecho "$ac_t""$ac_cv_c_cross" 1>&4echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&4else  cat > conftest.$ac_ext <<EOF#line 909 "configure"#include "confdefs.h"#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <float.h>EOFeval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then  rm -rf conftest*  ac_cv_header_stdc=yeselse  echo "$ac_err" >&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 931 "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 949 "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  ac_cv_header_stdc=noelsecat > conftest.$ac_ext <<EOF#line 970 "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); }EOFeval $ac_linkif test -s conftest && (./conftest; exit) 2>/dev/null; then  :else  ac_cv_header_stdc=nofifirm -fr conftest*fifiecho "$ac_t""$ac_cv_header_stdc" 1>&4if test $ac_cv_header_stdc = yes; then  cat >> confdefs.h <<\EOF#define STDC_HEADERS 1EOFfiecho $ac_n "checking for pid_t""... $ac_c" 1>&4if eval "test \"`echo '${'ac_cv_type_pid_t'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&4else  cat > conftest.$ac_ext <<EOF#line 1004 "configure"#include "confdefs.h"#include <sys/types.h>#if STDC_HEADERS#include <stdlib.h>#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "pid_t" >/dev/null 2>&1; then  rm -rf conftest*  ac_cv_type_pid_t=yeselse  rm -rf conftest*  ac_cv_type_pid_t=nofirm -f conftest*fiecho "$ac_t""$ac_cv_type_pid_t" 1>&4if test $ac_cv_type_pid_t = no; then  cat >> confdefs.h <<\EOF#define pid_t intEOFfiecho $ac_n "checking for malloc_t""... $ac_c" 1>&4if eval "test \"`echo '${'ac_cv_type_malloc_t'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&4else  cat > conftest.$ac_ext <<EOF#line 1035 "configure"#include "confdefs.h"#include <sys/types.h>#if STDC_HEADERS#include <stdlib.h>#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "malloc_t" >/dev/null 2>&1; then  rm -rf conftest*  ac_cv_type_malloc_t=yeselse  rm -rf conftest*  ac_cv_type_malloc_t=nofirm -f conftest*fiecho "$ac_t""$ac_cv_type_malloc_t" 1>&4if test $ac_cv_type_malloc_t = no; then  cat >> confdefs.h <<\EOF#define malloc_t void*EOFfiecho $ac_n "checking for -lbsd""... $ac_c" 1>&4if eval "test \"`echo '${'ac_cv_lib_bsd'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&4else  ac_save_LIBS="$LIBS"LIBS="$LIBS -lbsd "cat > conftest.$ac_ext <<EOF#line 1069 "configure"#include "confdefs.h"int main() { return 0; }int t() {main(); return 0; }EOFif eval $ac_link; then  rm -rf conftest*  eval "ac_cv_lib_bsd=yes"else  rm -rf conftest*  eval "ac_cv_lib_bsd=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'bsd`\" = yes"; then  echo "$ac_t""yes" 1>&4    ac_tr_lib=HAVE_LIB`echo bsd | tr '[a-z]' '[A-Z]'`  cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF  LIBS="$LIBS -lbsd"else  echo "$ac_t""no" 1>&4fiecho $ac_n "checking for -lsocket""... $ac_c" 1>&4if eval "test \"`echo '${'ac_cv_lib_socket'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&4else  ac_save_LIBS="$LIBS"LIBS="$LIBS -lsocket "cat > conftest.$ac_ext <<EOF#line 1108 "configure"#include "confdefs.h"int main() { return 0; }int t() {main(); return 0; }EOFif eval $ac_link; then  rm -rf conftest*  eval "ac_cv_lib_socket=yes"else  rm -rf conftest*  eval "ac_cv_lib_socket=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then  echo "$ac_t""yes" 1>&4    ac_tr_lib=HAVE_LIB`echo socket | tr '[a-z]' '[A-Z]'`  cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF  LIBS="$LIBS -lsocket"else  echo "$ac_t""no" 1>&4fiecho $ac_n "checking for -linet""... $ac_c" 1>&4if eval "test \"`echo '${'ac_cv_lib_inet'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&4else  ac_save_LIBS="$LIBS"LIBS="$LIBS -linet "cat > conftest.$ac_ext <<EOF#line 1147 "configure"#include "confdefs.h"int main() { return 0; }int t() {main(); return 0; }EOFif eval $ac_link; then  rm -rf conftest*  eval "ac_cv_lib_inet=yes"else  rm -rf conftest*  eval "ac_cv_lib_inet=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'inet`\" = yes"; then  echo "$ac_t""yes" 1>&4    ac_tr_lib=HAVE_LIB`echo inet | tr '[a-z]' '[A-Z]'`  cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF  LIBS="$LIBS -linet"else  echo "$ac_t""no" 1>&4fiecho $ac_n "checking for -lnsl""... $ac_c" 1>&4if eval "test \"`echo '${'ac_cv_lib_nsl'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&4else  ac_save_LIBS="$LIBS"LIBS="$LIBS -lnsl "cat > conftest.$ac_ext <<EOF#line 1186 "configure"#include "confdefs.h"int main() { return 0; }int t() {main(); return 0; }EOFif eval $ac_link; then  rm -rf conftest*  eval "ac_cv_lib_nsl=yes"else  rm -rf conftest*  eval "ac_cv_lib_nsl=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then  echo "$ac_t""yes" 1>&4    ac_tr_lib=HAVE_LIB`echo nsl | tr '[a-z]' '[A-Z]'`  cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF  LIBS="$LIBS -lnsl"else  echo "$ac_t""no" 1>&4fiecho $ac_n "checking return type of signal handlers""... $ac_c" 1>&4if eval "test \"`echo '${'ac_cv_type_signal'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&4else  cat > conftest.$ac_ext <<EOF#line 1223 "configure"#include "confdefs.h"#include <sys/types.h>#include <signal.h>#ifdef signal#undef signal#endifextern void (*signal ()) ();int main() { return 0; }int t() {int i;; return 0; }EOFif eval $ac_compile; then  rm -rf conftest*  ac_cv_type_signal=voidelse  rm -rf conftest*  ac_cv_type_signal=intfirm -f conftest*fiecho "$ac_t""$ac_cv_type_signal" 1>&4cat >> confdefs.h <<EOF#define RETSIGTYPE $ac_cv_type_signalEOFac_safe=`echo "vfork.h" | tr './\055' '___'`echo $ac_n "checking for vfork.h""... $ac_c" 1>&4if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&4else  cat > conftest.$ac_ext <<EOF#line 1258 "configure"#include "confdefs.h"#include <vfork.h>EOFeval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"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  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>&4  cat >> confdefs.h <<\EOF#define HAVE_VFORK_H 1EOFelse  echo "$ac_t""no" 1>&4fiecho $ac_n "checking for working vfork""... $ac_c" 1>&4if eval "test \"`echo '${'ac_cv_func_vfork'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&4else  if test "$cross_compiling" = yes; then  ac_cv_func_vfork=noelsecat > conftest.$ac_ext <<EOF#line 1293 "configure"#include "confdefs.h"/* Thanks to Paul Eggert for this test.  */#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <signal.h>#ifdef HAVE_UNISTD_H#include <unistd.h>#endif#ifdef HAVE_VFORK_H#include <vfork.h>#endif/* On sparc systems, changes by the child to local and incoming   argument registers are propagated back to the parent.   The compiler is told about this with #include <vfork.h>,   but some compilers (e.g. gcc -O) don't grok <vfork.h>.   Test for this by using a static variable whose address   is put into a register that is clobbered by the vfork.  */static#ifdef __cplusplussparc_address_test (int arg)#elsesparc_address_test (arg) int arg;#endif{  static pid_t child;  if (!child) {    child = vfork ();    if (child < 0)      perror ("vfork");    if (!child) {      arg = getpid();      write(-1, "", 0);      _exit (arg);    }  }}static int signalled;static RETSIGTYPE catch (s) int s; { signalled = 1; }main() {  pid_t parent = getpid ();  pid_t child;  sparc_address_test ();  signal (SIGINT, catch);  child = vfork ();

⌨️ 快捷键说明

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