📄 configure
字号:
EOFelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""no" 1>&6firm -f conftest*echo $ac_n "checking for type unsigned short""... $ac_c" 1>&6echo "configure:1018: checking for type unsigned short" >&5cat > conftest.$ac_ext <<EOF#line 1020 "configure"#include "confdefs.h"int main() { unsigned short un_short; ; return 0; }EOFif { (eval echo configure:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6cat >> confdefs.h <<\EOF#define HAVE_UNSIGNED_SHORT EOFelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""no" 1>&6firm -f conftest*echo $ac_n "checking for type void""... $ac_c" 1>&6echo "configure:1042: checking for type void" >&5cat > conftest.$ac_ext <<EOF#line 1044 "configure"#include "confdefs.h"/* Caution: a C++ compiler will insist on valid prototypes */typedef void * void_ptr; /* check void * */#ifdef HAVE_PROTOTYPES /* check ptr to function returning void */typedef void (*void_func) (int a, int b);#elsetypedef void (*void_func) ();#endif#ifdef HAVE_PROTOTYPES /* check void function result */void test3function (void_ptr arg1, void_func arg2)#elsevoid test3function (arg1, arg2) void_ptr arg1; void_func arg2;#endif{ char * locptr = (char *) arg1; /* check casting to and from void * */ arg1 = (void *) locptr; (*arg2) (1, 2); /* check call of fcn returning void */}int main() { ; return 0; }EOFif { (eval echo configure:1072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""no" 1>&6cat >> confdefs.h <<\EOF#define void charEOFfirm -f conftest*echo $ac_n "checking for working const""... $ac_c" 1>&6echo "configure:1088: 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 1093 "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:1142: \"$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 inline""... $ac_c" 1>&6echo "configure:1163: checking for inline" >&5ijg_cv_inline=""cat > conftest.$ac_ext <<EOF#line 1166 "configure"#include "confdefs.h"int main() {} __inline__ int foo() { return 0; }int bar() { return foo();; return 0; }EOFif { (eval echo configure:1174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ijg_cv_inline="__inline__"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext <<EOF#line 1182 "configure"#include "confdefs.h"int main() {} __inline int foo() { return 0; }int bar() { return foo();; return 0; }EOFif { (eval echo configure:1190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ijg_cv_inline="__inline"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext <<EOF#line 1198 "configure"#include "confdefs.h"int main() {} inline int foo() { return 0; }int bar() { return foo();; return 0; }EOFif { (eval echo configure:1206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ijg_cv_inline="inline"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*firm -f conftest*firm -f conftest*echo "$ac_t""$ijg_cv_inline" 1>&6cat >> confdefs.h <<EOF#define INLINE $ijg_cv_inlineEOFecho $ac_n "checking for broken incomplete types""... $ac_c" 1>&6echo "configure:1224: checking for broken incomplete types" >&5cat > conftest.$ac_ext <<EOF#line 1226 "configure"#include "confdefs.h" typedef struct undefined_structure * undef_struct_ptr; int main() {; return 0; }EOFif { (eval echo configure:1233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""ok" 1>&6else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""broken" 1>&6cat >> confdefs.h <<\EOF#define INCOMPLETE_TYPES_BROKEN EOFfirm -f conftest*echo $ac_n "checking for short external names""... $ac_c" 1>&6echo "configure:1248: checking for short external names" >&5cat > conftest.$ac_ext <<EOF#line 1250 "configure"#include "confdefs.h"int possibly_duplicate_function () { return 0; }int possibly_dupli_function () { return 1; }int main() { ; return 0; }EOFif { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* echo "$ac_t""ok" 1>&6else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""short" 1>&6cat >> confdefs.h <<\EOF#define NEED_SHORT_EXTERNAL_NAMES EOFfirm -f conftest*echo $ac_n "checking to see if char is signed""... $ac_c" 1>&6echo "configure:1275: checking to see if char is signed" >&5if test "$cross_compiling" = yes; then echo Assuming that char is signed on target machine.echo If it is unsigned, this will be a little bit inefficient.else cat > conftest.$ac_ext <<EOF#line 1282 "configure"#include "confdefs.h"#ifdef HAVE_PROTOTYPESint is_char_signed (int arg)#elseint is_char_signed (arg) int arg;#endif{ if (arg == 189) { /* expected result for unsigned char */ return 0; /* type char is unsigned */ } else if (arg != -67) { /* expected result for signed char */ printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n"); printf("I fear the JPEG software will not work at all.\n\n"); } return 1; /* assume char is signed otherwise */}char signed_char_check = (char) (-67);main() { exit(is_char_signed((int) signed_char_check));}EOFif { (eval echo configure:1306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/nullthen echo "$ac_t""no" 1>&6cat >> confdefs.h <<\EOF#define CHAR_IS_UNSIGNED EOFelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* echo "$ac_t""yes" 1>&6firm -fr conftest*fiecho $ac_n "checking to see if right shift is signed""... $ac_c" 1>&6echo "configure:1323: checking to see if right shift is signed" >&5if test "$cross_compiling" = yes; then echo "$ac_t""Assuming that right shift is signed on target machine." 1>&6else cat > conftest.$ac_ext <<EOF#line 1328 "configure"#include "confdefs.h"#ifdef HAVE_PROTOTYPESint is_shifting_signed (long arg)#elseint is_shifting_signed (arg) long arg;#endif/* See whether right-shift on a long is signed or not. */{ long res = arg >> 4; if (res == -0x7F7E80CL) { /* expected result for signed shift */ return 1; /* right shift is signed */ } /* see if unsigned-shift hack will fix it. */ /* we can't just test exact value since it depends on width of long... */ res |= (~0L) << (32-4); if (res == -0x7F7E80CL) { /* expected result now? */ return 0; /* right shift is unsigned */ } printf("Right shift isn't acting as I expect it to.\n"); printf("I fear the JPEG software will not work at all.\n\n"); return 0; /* try it with unsigned anyway */}main() { exit(is_shifting_signed(-0x7F7E80B1L));}EOFif { (eval echo configure:1358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/nullthen echo "$ac_t""no" 1>&6cat >> confdefs.h <<\EOF#define RIGHT_SHIFT_IS_UNSIGNED EOFelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* echo "$ac_t""yes" 1>&6firm -fr conftest*fiecho $ac_n "checking to see if fopen accepts b spec""... $ac_c" 1>&6echo "configure:1375: checking to see if fopen accepts b spec" >&5if test "$cross_compiling" = yes; then echo "$ac_t""Assuming that it does." 1>&6else cat > conftest.$ac_ext <<EOF#line 1380 "configure"#include "confdefs.h"#include <stdio.h>main() { if (fopen("conftestdata", "wb") != NULL) exit(0); exit(1);}EOFif { (eval echo configure:1390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/nullthen echo "$ac_t""yes" 1>&6else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* echo "$ac_t""no" 1>&6cat >> confdefs.h <<\EOF#define DONT_USE_B_MODE EOFfirm -fr conftest*fiac_aux_dir=for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f $ac_dir/install.sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break fidoneif test -z "$ac_aux_dir"; then { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }fiac_config_guess=$ac_aux_dir/config.guessac_config_sub=$ac_aux_dir/config.subac_configure=$ac_aux_dir/configure # This should be Cygnus configure.# Find a good install program. We prefer a C program (faster),# so one script is as good as another. But avoid the broken or# incompatible versions:# SysV /etc/install, /usr/sbin/install# SunOS /usr/etc/install# IRIX /sbin/install# AIX /bin/install# AFS /usr/afsws/bin/install, which mishandles nonexistent args# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"# ./install, which can be erroneously created by make from ./install.sh.echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6echo "configure:1436: checking for a BSD compatible install" >&5if test -z "$INSTALL"; thenif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do # Account for people who put trailing slashes in PATH elements. case "$ac_dir/" in /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. for ac_prog in ginstall installbsd scoinst install; do if test -f $ac_dir/$ac_prog; then if test $ac_prog = install && grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. # OSF/1 installbsd also uses dspmsg, but is usable. : else ac_cv_path_install="$ac_dir/$ac_prog -c" break 2 fi fi done ;; esac done IFS="$ac_save_IFS"fi if test "${ac_cv_path_install+set}" = set; then INSTALL="$ac_cv_path_install" else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL="$ac_install_sh" fifiecho "$ac_t""$INSTALL" 1>&6# Use test -z because SunOS4 sh mishandles braces in ${var-val}.# It thinks the first close brace ends the variable substitution.test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'# Extract the first word of "ranlib", so it can be a program name with args.set dummy ranlib; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1488: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_RANLIB="ranlib" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"fifiRANLIB="$ac_cv_prog_RANLIB"if test -n "$RANLIB"; then echo "$ac_t""$RANLIB" 1>&6else
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -