📄 configure
字号:
char htonl();int main() {htonl(); return 0; }EOFif { (eval echo configure:1310: \"$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 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF LIBS="-lsocket $LIBS"else echo "$ac_t""no" 1>&6fifidoneecho $ac_n "checking size of unsigned short""... $ac_c" 1>&6echo "configure:1341: checking size of unsigned short" >&5if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then ac_cv_sizeof_unsigned_short=2else cat > conftest.$ac_ext <<EOF#line 1349 "configure"#include "confdefs.h"#include <stdio.h>main(){ FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(unsigned short)); exit(0);}EOFif { (eval echo configure:1360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_sizeof_unsigned_short=`cat conftestval`else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_unsigned_short=0firm -fr conftest*fifiecho "$ac_t""$ac_cv_sizeof_unsigned_short" 1>&6cat >> confdefs.h <<EOF#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_shortEOFecho $ac_n "checking size of unsigned int""... $ac_c" 1>&6echo "configure:1380: checking size of unsigned int" >&5if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then ac_cv_sizeof_unsigned_int=4else cat > conftest.$ac_ext <<EOF#line 1388 "configure"#include "confdefs.h"#include <stdio.h>main(){ FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(unsigned int)); exit(0);}EOFif { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_sizeof_unsigned_int=`cat conftestval`else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_unsigned_int=0firm -fr conftest*fifiecho "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6cat >> confdefs.h <<EOF#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_intEOFecho $ac_n "checking size of unsigned long""... $ac_c" 1>&6echo "configure:1419: checking size of unsigned long" >&5if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then ac_cv_sizeof_unsigned_long=4else cat > conftest.$ac_ext <<EOF#line 1427 "configure"#include "confdefs.h"#include <stdio.h>main(){ FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(unsigned long)); exit(0);}EOFif { (eval echo configure:1438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_sizeof_unsigned_long=`cat conftestval`else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_unsigned_long=0firm -fr conftest*fifiecho "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6cat >> confdefs.h <<EOF#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_longEOFecho $ac_n "checking size of unsigned long long""... $ac_c" 1>&6echo "configure:1458: checking size of unsigned long long" >&5if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then ac_cv_sizeof_unsigned_long_long=8else cat > conftest.$ac_ext <<EOF#line 1466 "configure"#include "confdefs.h"#include <stdio.h>main(){ FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(unsigned long long)); exit(0);}EOFif { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_sizeof_unsigned_long_long=`cat conftestval`else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_unsigned_long_long=0firm -fr conftest*fifiecho "$ac_t""$ac_cv_sizeof_unsigned_long_long" 1>&6cat >> confdefs.h <<EOF#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_longEOFif test "$ac_cv_sizeof_unsigned_short" = "2"; then SQD_UINT16="unsigned short "else SQD_UINT16="FIXME" echo "configure: warning: " 1>&2 "No 16-bit int? Manually edit config file to typedef sqd_uint16."fiif test "$ac_cv_sizeof_unsigned_int" = "4"; then SQD_UINT32="unsigned int "elif test "$ac_cv_sizeof_unsigned_long" = "4"; then SQD_UINT32="unsigned long "else SQD_UINT32="FIXME" echo "configure: warning: " 1>&2 "No 32-bit int? Manually edit config file to typedef sqd_uint32."fiif test "$ac_cv_sizeof_unsigned_long" = "8"; then SQD_UINT64="unsigned long "elif test "$ac_cv_sizeof_unsigned_long_long" = "8"; then SQD_UINT64="unsigned long long"else SQD_UINT64="FIXME" echo "configure: warning: " 1>&2 "No 64-bit int? Manually edit config file to typedef sqd_uint64."fi echo $ac_n "checking whether fpos_t is an arithmetic datatype""... $ac_c" 1>&6echo "configure:1526: checking whether fpos_t is an arithmetic datatype" >&5 fpos_arithmetic="no." cat > conftest.$ac_ext <<EOF#line 1529 "configure"#include "confdefs.h"#include <stdio.h>int main() {int main(void) { fpos_t f1, f2; if (f1 == f2) f1 = 0;}; return 0; }EOFif { (eval echo configure:1536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<\EOF#define ARITHMETIC_FPOS_T 1EOF fpos_arithmetic="yes."else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest* echo "$ac_t""$fpos_arithmetic" 1>&6for ac_func in ftello fseekodoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:1554: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1559 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */#include <assert.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 $ac_func();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF else echo "$ac_t""no" 1>&6fidonefor ac_func in ftello64 fseeko64doecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:1609: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1614 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */#include <assert.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 $ac_func();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:1637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF else echo "$ac_t""no" 1>&6fidonefor ac_func in ftell64 fseek64doecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:1664: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1669 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */#include <assert.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 $ac_func();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF else echo "$ac_t""no" 1>&6fidoneecho $ac_n "checking for stat64""... $ac_c" 1>&6echo "configure:1717: checking for stat64" >&5if eval "test \"`echo '$''{'ac_cv_func_stat64'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1722 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char stat64(); below. */#include <assert.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 stat64();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub_stat64) || defined (__stub___stat64)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -