📄 configure
字号:
#include <string.h>#include <float.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:944: \"$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 961 "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 979 "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 1000 "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:1011: \"$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 UNIX-98 compliant inttypes.h""... $ac_c" 1>&6echo "configure:1035: checking for UNIX-98 compliant inttypes.h" >&5if eval "test \"`echo '$''{'ac_cv_header_inttypes'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1040 "configure"#include "confdefs.h"#include <inttypes.h>int main() {int8_t c; uint8_t uc; int16_t s; uint16_t us; int32_t i; uint32_t ui;int64_t ll; uint64_t ull;intptr_t ip; uintptr_t uip;; return 0; }EOFif { (eval echo configure:1049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_inttypes=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_inttypes=nofirm -f conftest*fiecho "$ac_t""$ac_cv_header_inttypes" 1>&6if test $ac_cv_header_inttypes = yes; then cat >> confdefs.h <<\EOF#define HAVE_INTTYPES_H 1EOFfiac_header_dirent=nofor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6echo "configure:1073: checking for $ac_hdr that defines DIR" >&5if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1078 "configure"#include "confdefs.h"#include <sys/types.h>#include <$ac_hdr>int main() {DIR *dirp = 0;; return 0; }EOFif { (eval echo configure:1086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_header_dirent_$ac_safe=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_dirent_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOF ac_header_dirent=$ac_hdr; breakelse echo "$ac_t""no" 1>&6fidone# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.if test $ac_header_dirent = dirent.h; thenecho $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6echo "configure:1111: checking for opendir in -ldir" >&5ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-ldir $LIBS"cat > conftest.$ac_ext <<EOF#line 1119 "configure"#include "confdefs.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 opendir();int main() {opendir(); return 0; }EOFif { (eval echo configure:1130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBS="$LIBS -ldir"else echo "$ac_t""no" 1>&6fielseecho $ac_n "checking for opendir in -lx""... $ac_c" 1>&6echo "configure:1152: checking for opendir in -lx" >&5ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lx $LIBS"cat > conftest.$ac_ext <<EOF#line 1160 "configure"#include "confdefs.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 opendir();int main() {opendir(); return 0; }EOFif { (eval echo configure:1171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBS="$LIBS -lx"else echo "$ac_t""no" 1>&6fifiecho $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6echo "configure:1194: checking whether stat file-mode macros are broken" >&5if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1199 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/stat.h>#if defined(S_ISBLK) && defined(S_IFDIR)# if S_ISBLK (S_IFDIR)You lose.# endif#endif#if defined(S_ISBLK) && defined(S_IFCHR)# if S_ISBLK (S_IFCHR)You lose.# endif#endif#if defined(S_ISLNK) && defined(S_IFREG)# if S_ISLNK (S_IFREG)You lose.# endif#endif#if defined(S_ISSOCK) && defined(S_IFREG)# if S_ISSOCK (S_IFREG)You lose.# endif#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "You lose" >/dev/null 2>&1; then rm -rf conftest* ac_cv_header_stat_broken=yeselse rm -rf conftest* ac_cv_header_stat_broken=nofirm -f conftest*fiecho "$ac_t""$ac_cv_header_stat_broken" 1>&6if test $ac_cv_header_stat_broken = yes; then cat >> confdefs.h <<\EOF#define STAT_MACROS_BROKEN 1EOFfiecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6echo "configure:1250: checking whether time.h and sys/time.h may both be included" >&5if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1255 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/time.h>#include <time.h>int main() {struct tm *tp;; return 0; }EOFif { (eval echo configure:1264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 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 for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6echo "configure:1285: checking for sys/wait.h that is POSIX.1 compatible" >&5if 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 1290 "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() {int s;wait (&s);s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;; return 0; }EOFif { (eval echo configure:1306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_sys_wait_h=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 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 1EOFfiecho $ac_n "checking if select needs nonstd include files""... $ac_c" 1>&6echo "configure:1327: checking if select needs nonstd include files" >&5if eval "test \"`echo '$''{'ac_cv_header_slect_nonstd_hdr'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1332 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/time.h>int main() {fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0);; return 0; }EOFif { (eval echo configure:1340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_slect_nonstd_hdr=noelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_slect_nonstd_hdr=yesfirm -f conftest*fiecho "$ac_t""$ac_cv_header_slect_nonstd_hdr" 1>&6if test $ac_cv_header_slect_nonstd_hdr = yes; then cat >> confdefs.h <<\EOF#define SELECT_NONSTD_HDR 1EOFfiecho $ac_n "checking if sys/select.h is needed for select""... $ac_c" 1>&6echo "configure:1360: checking if sys/select.h is needed for select" >&5if eval "test \"`echo '$''{'ac_cv_header_need_sys_select_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1365 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/time.h>#include <sys/select.h>#ifndef SELECT_NONSTD_HDRdo not compile if we do not need nonstandard headers#endifint main() {fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0);; return 0; }EOFif { (eval echo configure:1377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_need_sys_select_h=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_need_sys_select_h=nofirm -f conftest*fiecho "$ac_t""$ac_cv_header_need_sys_select_h" 1>&6if test $ac_cv_header_need_sys_select_h = yes; then cat >> confdefs.h <<\EOF#define NEED_SYS_SELECT_H 1EOFfifor ac_hdr in varargs.h stdarg.h stdlib.h string.h strings.h unistd.h fcntl.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1400: checking for $ac_hdr" >&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 1405 "configure"#include "confdefs.h"#include <$ac_hdr>EOF
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -