📄 configure
字号:
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1880: 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 1885 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1890: \"$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 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOF else echo "$ac_t""no" 1>&6fidonefor ac_hdr in ieeefp.h fp.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1920: 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 1925 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1930: \"$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 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOF else echo "$ac_t""no" 1>&6fidonefor ac_hdr in values.h float.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1960: 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 1965 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1970: \"$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 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOF else echo "$ac_t""no" 1>&6fidoneecho $ac_n "checking for header file containing major(), minor() and makedev()""... $ac_c" 1>&6echo "configure:1998: checking for header file containing major(), minor() and makedev()" >&5if eval "test \"`echo '$''{'ac_cv_header_makedev'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_cv_header_makedev=nonecat > conftest.$ac_ext <<EOF#line 2004 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/mkdev.h>int main() {int i = major(0); i = minor(0); i = makedev(0,0);; return 0; }EOFif { (eval echo configure:2012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_makedev=sys/mkdev.helse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*if test $ac_cv_header_makedev = none; then cat > conftest.$ac_ext <<EOF#line 2022 "configure"#include "confdefs.h"#include <sys/types.h>#include <sys/sysmacros.h>int main() {int i = major(0); i = minor(0); i = makedev(0,0);; return 0; }EOFif { (eval echo configure:2030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_makedev=sys/sysmacros.helse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*fifiecho "$ac_t""$ac_cv_header_makedev" 1>&6if test $ac_cv_header_makedev = sys/mkdev.h; then cat >> confdefs.h <<\EOF#define MAJOR_IN_MKDEV 1EOFfiif test $ac_cv_header_makedev = sys/sysmacros.h; then cat >> confdefs.h <<\EOF#define MAJOR_IN_SYSMACROS 1EOFfiecho $ac_n "checking bits in minor device number""... $ac_c" 1>&6echo "configure:2057: checking bits in minor device number" >&5if eval "test \"`echo '$''{'ac_cv_dev_minor_bits'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }else cat > conftest.$ac_ext <<EOF#line 2065 "configure"#include "confdefs.h"#include <stdio.h>#include <sys/types.h>#ifdef major# define _FOUND_MAJOR_#endif#ifdef MAJOR_IN_MKDEV# include <sys/mkdev.h># define _FOUND_MAJOR_#endif#ifndef _FOUND_MAJOR_# ifdef MAJOR_IN_SYSMACROS# include <sys/sysmacros.h># define _FOUND_MAJOR_# endif#endif#ifndef _FOUND_MAJOR_# if defined(hpux) || defined(__hpux__) || defined(__hpux)# include <sys/mknod.h># define _FOUND_MAJOR_# endif#endif#ifndef _FOUND_MAJOR_# define major(dev) (((dev) >> 8) & 0xFF)# define minor(dev) ((dev) & 0xFF)# define makedev(majo, mino) (((majo) << 8) | (mino))#endifmain(){ long l = 1; int i; int m; int c = 0; FILE *f=fopen("conftestval", "w"); if (!f) exit(1); for (i=1, m=0; i <= 32; i++, l<<=1) { if (minor(l) == 0 && c == 0) c = m; if (minor(l) != 0) m = i; } fprintf(f, "%d\n", m); exit(0);}EOFif { (eval echo configure:2117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_dev_minor_bits=`cat conftestval`else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_dev_minor_bits=0firm -fr conftest*fifiecho "$ac_t""$ac_cv_dev_minor_bits" 1>&6cat >> confdefs.h <<EOF#define DEV_MINOR_BITS $ac_cv_dev_minor_bitsEOFecho $ac_n "checking whether bits in minor device numbers are non contiguous""... $ac_c" 1>&6echo "configure:2137: checking whether bits in minor device numbers are non contiguous" >&5if eval "test \"`echo '$''{'ac_cv_dev_minor_noncontig'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }else cat > conftest.$ac_ext <<EOF#line 2145 "configure"#include "confdefs.h"#include <sys/types.h>#ifdef major# define _FOUND_MAJOR_#endif#ifdef MAJOR_IN_MKDEV# include <sys/mkdev.h># define _FOUND_MAJOR_#endif#ifndef _FOUND_MAJOR_# ifdef MAJOR_IN_SYSMACROS# include <sys/sysmacros.h># define _FOUND_MAJOR_# endif#endif#ifndef _FOUND_MAJOR_# if defined(hpux) || defined(__hpux__) || defined(__hpux)# include <sys/mknod.h># define _FOUND_MAJOR_# endif#endif#ifndef _FOUND_MAJOR_# define major(dev) (((dev) >> 8) & 0xFF)# define minor(dev) ((dev) & 0xFF)# define makedev(majo, mino) (((majo) << 8) | (mino))#endifmain(){ long l = 1; int i; int m; int c = 0; for (i=1, m=0; i <= 32; i++, l<<=1) { if (minor(l) == 0 && c == 0) c = m; if (minor(l) != 0) m = i; }exit (m == c);}EOFif { (eval echo configure:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_dev_minor_noncontig=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_dev_minor_noncontig=nofirm -fr conftest*fifiecho "$ac_t""$ac_cv_dev_minor_noncontig" 1>&6if test $ac_cv_dev_minor_noncontig = yes; then cat >> confdefs.h <<\EOF#define DEV_MINOR_NONCONTIG 1EOFfiecho $ac_n "checking for USG derived STDIO""... $ac_c" 1>&6echo "configure:2215: checking for USG derived STDIO" >&5if eval "test \"`echo '$''{'ac_cv_header_usg_stdio'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 2220 "configure"#include "confdefs.h"#include <stdio.h>int main() {FILE *f;int flag;int count;char *ptr;f = fopen("confdefs.h", "r");_filbuf(f); /* HP-UX-11.x has __filbuf() */flag = f->_flag & _IONBF;flag |= f->_flag & _IOERR;flag |= f->_flag & _IOEOF;count = f->_cnt;ptr = (char *)f->_ptr;fclose(f);; return 0; }EOFif { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_header_usg_stdio=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_usg_stdio=nofirm -f conftest*fiecho "$ac_t""$ac_cv_header_usg_stdio" 1>&6if test $ac_cv_header_usg_stdio = yes; then cat >> confdefs.h <<\EOF#define HAVE_USG_STDIO 1EOFfiecho $ac_n "checking for errno definition in errno.h""... $ac_c" 1>&6echo "configure:2258: checking for errno definition in errno.h" >&5if eval "test \"`echo '$''{'ac_cv_header_errno_def'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 2263 "configure"#include "confdefs.h"#include <errno.h>int main() {errno = 0;; return 0; }EOFif { (eval echo configure:2270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_errno_def=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_errno_def=nofirm -f conftest*fiecho "$ac_t""$ac_cv_header_errno_def" 1>&6if test $ac_cv_header_errno_def = yes; then cat >> confdefs.h <<\EOF#define HAVE_ERRNO_DEF 1EOFfiecho $ac_n "checking for working const""... $ac_c" 1>&6echo "configure:2291: 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 2296 "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 e
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -