📄 configure
字号:
echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1073 "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 1095 "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 1113 "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 :elsecat > conftest.$ac_ext <<EOF#line 1134 "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>&6if test $ac_cv_header_stdc = yes; then cat >> confdefs.h <<\EOF#define STDC_HEADERS 1EOFfiecho $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1169 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/wait.h>#ifndef WEXITSTATUS#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)#endif#ifndef WIFEXITED#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)#endifint main() { return 0; }int t() {int s;wait (&s);s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;; return 0; }EOFif eval $ac_compile; then rm -rf conftest* ac_cv_header_sys_wait_h=yeselse rm -rf conftest* ac_cv_header_sys_wait_h=nofirm -f conftest*fiecho "$ac_t""$ac_cv_header_sys_wait_h" 1>&6if test $ac_cv_header_sys_wait_h = yes; then cat >> confdefs.h <<\EOF#define HAVE_SYS_WAIT_H 1EOFfifor ac_hdr in fcntl.h limits.h sgtty.h sys/time.h unistd.hdoac_safe=`echo "$ac_hdr" | tr './\055' '___'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6if 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 1213 "configure"#include "confdefs.h"#include <$ac_hdr>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>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOF else echo "$ac_t""no" 1>&6fidone## checks for typedefs, structures, and compiler characteristics#echo $ac_n "checking for working const""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1250 "configure"#include "confdefs.h"int main() { return 0; }int t() {/* 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 $ac_compile; then rm -rf conftest* ac_cv_c_const=yeselse 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>&6if 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 1324 "configure"#include "confdefs.h"#include <sys/types.h>#if STDC_HEADERS#include <stdlib.h>#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "size_t" >/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 unsignedEOFfiecho $ac_n "checking return type of signal handlers""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1355 "configure"#include "confdefs.h"#include <sys/types.h>#include <signal.h>#ifdef signal#undef signal#endif#ifdef __cplusplusextern "C" void (*signal (int, void (*)(int)))(int);#elsevoid (*signal ()) ();#endifint 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>&6cat >> confdefs.h <<EOF#define RETSIGTYPE $ac_cv_type_signalEOFecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1395 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/time.h>#include <time.h>int main() { return 0; }int t() {struct tm *tp;; return 0; }EOFif eval $ac_compile; then rm -rf conftest* ac_cv_header_time=yeselse rm -rf conftest* ac_cv_header_time=nofirm -f conftest*fiecho "$ac_t""$ac_cv_header_time" 1>&6if test $ac_cv_header_time = yes; then cat >> confdefs.h <<\EOF#define TIME_WITH_SYS_TIME 1EOFfiecho $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1429 "configure"#include "confdefs.h"#include <sys/types.h>#include <time.h>int main() { return 0; }int t() {struct tm *tp; tp->tm_sec;; return 0; }EOFif eval $ac_compile; then rm -rf conftest* ac_cv_struct_tm=time.helse rm -rf conftest* ac_cv_struct_tm=sys/time.hfirm -f conftest*fiecho "$ac_t""$ac_cv_struct_tm" 1>&6if test $ac_cv_struct_tm = sys/time.h; then cat >> confdefs.h <<\EOF#define TM_IN_SYS_TIME 1EOFfiecho $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1462 "configure"#include "confdefs.h"#include <sys/types.h>#include <$ac_cv_struct_tm>int main() { return 0; }int t() {struct tm tm; tm.tm_zone;; return 0; }EOFif eval $ac_compile; then rm -rf conftest* ac_cv_struct_tm_zone=yeselse rm -rf conftest* ac_cv_struct_tm_zone=nofirm -f conftest*fiecho "$ac_t""$ac_cv_struct_tm_zone" 1>&6if test "$ac_cv_struct_tm_zone" = yes; then cat >> confdefs.h <<\EOF#define HAVE_TM_ZONE 1EOFelse echo $ac_n "checking for tzname""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1494 "configure"#include "confdefs.h"#include <time.h>#ifndef tzname /* For SGI. */extern char *tzname[]; /* RS6000 and others reject char **tzname. */#endifint main() { return 0; }int t() {atoi(*tzname);; return 0; }EOFif eval $ac_link; then rm -rf conftest* ac_cv_var_tzname=yeselse rm -rf conftest* ac_cv_var_tzname=nofirm -f conftest*fiecho "$ac_t""$ac_cv_var_tzname" 1>&6 if test $ac_cv_var_tzname = yes; then cat >> confdefs.h <<\EOF#define HAVE_TZNAME 1EOF fificat > conftest.$ac_ext <<EOF#line 1526 "configure"#include "confdefs.h"#include <sys/time.h>int main() { return 0; }int t() {struct timeval thetime; struct timezone thezone; gettimeofday(&thetime, &thezone); ; return 0; }EOFif eval $ac_compile; then rm -rf conftest* cat >> confdefs.h <<\EOF#define USE_TIMEZONE 1EOFfirm -f conftest*## checks for library functions#echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_func_memcmp'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then ac_cv_func_memcmp=noelsecat > conftest.$ac_ext <<EOF#line 1556 "configure"#include "confdefs.h"main(){ char c0 = 0x40, c1 = 0x80, c2 = 0x81; exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);}EOFeval $ac_linkif test -s conftest && (./conftest; exit) 2>/dev/null; then ac_cv_func_memcmp=yeselse ac_cv_func_memcmp=nofifirm -fr conftest*fiecho "$ac_t""$ac_cv_func_memcmp" 1>&6test $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o"echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1584 "configure"#include "confdefs.h"#include <sys/types.h>#include <signal.h>#ifdef signal#undef signal#endif#ifdef __cplusplusextern "C" void (*signal (int, void (*)(int)))(int);#elsevoid (*signal ()) ();#endifint main() { return 0; }int t() {int i;; return 0; }EOFif eval $ac_compile; then rm -rf conftest*
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -