📄 configure
字号:
if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<EOF#define $ac_uc_define 1EOFelse echo "$ac_t""no" 1>&6fiif test "$ac_cv_struct_tm_has_tm_zone" = "yes"; then cat >> confdefs.h <<\EOF#define HAVE_TM_ZONE 1EOFfiac_safe_struct=`echo "sockaddr_in" | sed 'y%./+-%__p_%'`ac_safe_member=`echo "sin_len" | sed 'y%./+-%__p_%'`ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}" ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`echo $ac_n "checking for sockaddr_in.sin_len""... $ac_c" 1>&6echo "configure:1881: checking for sockaddr_in.sin_len" >&5if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "x" = "x"; then defineit="= 0"elif test "x" = "xno"; then defineit=""else defineit=""ficat > conftest.$ac_ext <<EOF#line 1894 "configure"#include "confdefs.h"#include <sys/types.h>#include <netinet/in.h>int main() {struct sockaddr_in testit;testit.sin_len $defineit;; return 0; }EOFif { (eval echo configure:1909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "${ac_safe_all}=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "${ac_safe_all}=no" firm -f conftest*fiif eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<EOF#define $ac_uc_define 1EOFelse echo "$ac_t""no" 1>&6fiif test "$ac_cv_struct_sockaddr_in_has_sin_len" = "yes"; then cat >> confdefs.h <<\EOF#define HAVE_SIN_LEN 1EOFfiif test $ac_cv_func_socket = no; then # socket is not in the default libraries. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6echo "configure:1944: checking for socket in -lsocket" >&5ac_lib_var=`echo socket'_'socket | 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="-lsocket $LIBS"cat > conftest.$ac_ext <<EOF#line 1952 "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 socket();int main() {socket(); return 0; }EOFif { (eval echo configure:1963: \"$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 MYLIBS="$MYLIBS -lsocket" else echo "$ac_t""no" 1>&6fifiif test $ac_cv_func_inet_aton = no; then # inet_aton is not in the default libraries. echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6echo "configure:1988: checking for inet_aton in -lresolv" >&5ac_lib_var=`echo resolv'_'inet_aton | 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="-lresolv $LIBS"cat > conftest.$ac_ext <<EOF#line 1996 "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 inet_aton();int main() {inet_aton(); return 0; }EOFif { (eval echo configure:2007: \"$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 MYLIBS="$MYLIBS -lresolv"else echo "$ac_t""no" 1>&6fifiif test $ac_cv_func_gethostname = no; then echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6echo "configure:2031: checking for gethostname in -lnsl" >&5ac_lib_var=`echo nsl'_'gethostname | 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="-lnsl $LIBS"cat > conftest.$ac_ext <<EOF#line 2039 "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 gethostname();int main() {gethostname(); return 0; }EOFif { (eval echo configure:2050: \"$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 MYLIBS="$MYLIBS -lnsl"else echo "$ac_t""no" 1>&6fifiif test $ac_cv_func_gethostbyname = no; then echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6echo "configure:2074: checking for gethostbyname in -lnsl" >&5ac_lib_var=`echo nsl'_'gethostbyname | 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="-lnsl $LIBS"cat > conftest.$ac_ext <<EOF#line 2082 "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 gethostbyname();int main() {gethostbyname(); return 0; }EOFif { (eval echo configure:2093: \"$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 MYLIBS="$MYLIBS -lnsl"else echo "$ac_t""no" 1>&6fifiLIBS="$LIBS $MYLIBS"if test $ac_cv_func_scandir = no; then # scandir not defined, add it SCANDIR="scandir.o"fiif test $ac_cv_func_alphasort = no; then # alphasort not defined, add it ALPHASORT="alphasort.o"fiif test $ac_cv_func_strdup = no -o $ac_cv_func_strstr = no; then # strdup or strstr not defined STRUTIL="strutil.o"fiif test -n "$GCC"; then test -n "$GCC" && CFLAGS="$CFLAGS -pipe" echo $ac_n "checking compile and link profiling code""... $ac_c" 1>&6echo "configure:2136: checking compile and link profiling code" >&5 # Check whether --enable-profiling or --disable-profiling was given.if test "${enable_profiling+set}" = set; then enableval="$enable_profiling" if test "$enableval" = "yes" ; then echo "$ac_t""yes" 1>&6 CFLAGS="$CFLAGS -pg" LDFLAGS="$LDFLAGS -g -pg" else echo "$ac_t""no" 1>&6 fi else echo "$ac_t""no" 1>&6 fifiecho $ac_n "checking whether to compile and link debugging code""... $ac_c" 1>&6echo "configure:2158: checking whether to compile and link debugging code" >&5# Check whether --enable-debug or --disable-debug was given.if test "${enable_debug+set}" = set; then enableval="$enable_debug" if test "$enableval" = "yes" ; then echo "$ac_t""yes" 1>&6 LDFLAGS="$LDFLAGS -g" test -n "$GCC" && CFLAGS="$CFLAGS -Wall" else echo "$ac_t""no" 1>&6 fielse echo "$ac_t""yes" 1>&6 LDFLAGS="$LDFLAGS -g" test -n "$GCC" && CFLAGS="$CFLAGS -Wall"fiecho $ac_n "checking whether to link with the Dmalloc memory debugger/profiler""... $ac_c" 1>&6echo "configure:2181: checking whether to link with the Dmalloc memory debugger/profiler" >&5# Check whether --with-dmalloc or --without-dmalloc was given.if test "${with_dmalloc+set}" = set; then withval="$with_dmalloc" if test "$withval" = "yes"; then echo "$ac_t""trying" 1>&6 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6echo "configure:2189: checking for dmalloc_shutdown in -ldmalloc" >&5ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | 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="-ldmalloc $LIBS"cat > conftest.$ac_ext <<EOF#line 2197 "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 dmalloc_shutdown();int main() {dmalloc_shutdown(); return 0; }EOFif { (eval echo configure:2208: \"$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 dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF LIBS="-ldmalloc $LIBS"else echo "$ac_t""no" 1>&6fi else echo "$ac_t""no" 1>&6 fielse echo "$ac_t""no" 1>&6fiecho $ac_n "checking whether to link with the Electric Fence memory debugger""... $ac_c" 1>&6echo "configure:2247: checking whether to link with the Electric Fence memory debugger" >&5# Check whether --with-efence or --without-efence was given.if test "${with_efence+set}" = set; then withval="$with_efence" if test "$withval" = "yes"; then echo "$ac_t""trying" 1>&6 echo $ac_n "checking for main in -lefence""... $ac_c" 1>&6echo "configure:2255: checking for main in -lefence" >&5ac_lib_var=`echo efence'_'main | 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="-lefence $LIBS"cat > conftest.$ac_ext <<EOF#line 2263 "configure"#include "confdefs.h"int main() {main(); return 0; }EOFif { (eval echo configure:2270: \"$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 efence | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF LIBS="-lefence $LIBS"else echo "$ac_t""no" 1>&6fi else echo "$ac_t""no" 1>&6 fielse echo "$ac_t""no" 1>&6fitrap '' 1 2 15cat > confcache <<\EOF# This file is
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -