📄 configure
字号:
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6echo "configure:885: checking how to run the C preprocessor" >&5# On Suns, sometimes $CPP names a directory.if test -n "$CPP" && test -d "$CPP"; then CPP=fiif test -z "$CPP"; thenif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext <<EOF#line 900 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:906: \"$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 :else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF#line 917 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:923: \"$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 :else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext <<EOF#line 934 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:940: \"$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 :else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP=/lib/cppfirm -f conftest*firm -f conftest*firm -f conftest* ac_cv_prog_CPP="$CPP"fi CPP="$ac_cv_prog_CPP"else ac_cv_prog_CPP="$CPP"fiecho "$ac_t""$CPP" 1>&6echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6echo "configure:965: checking whether char is unsigned" >&5if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$GCC" = yes; then # GCC predefines this symbol on systems where it applies.cat > conftest.$ac_ext <<EOF#line 972 "configure"#include "confdefs.h"#ifdef __CHAR_UNSIGNED__ yes#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "yes" >/dev/null 2>&1; then rm -rf conftest* ac_cv_c_char_unsigned=yeselse rm -rf conftest* ac_cv_c_char_unsigned=nofirm -f conftest*elseif 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 994 "configure"#include "confdefs.h"/* volatile prevents gcc2 from optimizing the test away on sparcs. */#if !defined(__STDC__) || __STDC__ != 1#define volatile#endifmain() { volatile char c = 255; exit(c < 0);}EOFif { (eval echo configure:1004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_c_char_unsigned=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_c_char_unsigned=nofirm -fr conftest*fififiecho "$ac_t""$ac_cv_c_char_unsigned" 1>&6if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then cat >> confdefs.h <<\EOF#define __CHAR_UNSIGNED__ 1EOFfiif test "$GCC" = "yes"; then # Check whether --enable-static or --disable-static was given.if test "${enable_static+set}" = set; then enableval="$enable_static" LDFLAGS="--static ${LDFLAGS}"fi if test "$IN_CFLAGS" = ""; then CFLAGS="-Wall -O2" fi if test "$ac_cv_c_char_unsigned" = "yes"; then CFLAGS="-fsigned-char ${CFLAGS}" fi # Check whether --enable-debug or --disable-debug was given.if test "${enable_debug+set}" = set; then enableval="$enable_debug" CFLAGS="-g ${CFLAGS}"fielse if test "$IN_CFLAGS" = ""; then CFLAGS="-g" fifi# Check whether --with-etcdir or --without-etcdir was given.if test "${with_etcdir+set}" = set; then withval="$with_etcdir" ETCDIR="${withval}"else CACHE_ETC="yes"fi# Check whether --with-gdlib or --without-gdlib was given.if test "${with_gdlib+set}" = set; then withval="$with_gdlib" EXTRA_GDLIB="${withval}"else EXTRA_GDLIB=""fi# Check whether --with-gd or --without-gd was given.if test "${with_gd+set}" = set; then withval="$with_gd" EXTRA_GD="${withval}"; CFLAGS="-I${withval} ${CFLAGS}"else EXTRA_GD=""fi# Check whether --with-z-inc or --without-z-inc was given.if test "${with_z_inc+set}" = set; then withval="$with_z_inc" CFLAGS="-I${withval} ${CFLAGS}"fi# Check whether --with-zlib or --without-zlib was given.if test "${with_zlib+set}" = set; then withval="$with_zlib" LDFLAGS="-L${withval} ${LDFLAGS}"fi# Check whether --with-png-inc or --without-png-inc was given.if test "${with_png_inc+set}" = set; then withval="$with_png_inc" CFLAGS="-I${withval} ${CFLAGS}"fi# Check whether --with-png or --without-png was given.if test "${with_png+set}" = set; then withval="$with_png" LDFLAGS="-L${withval} ${LDFLAGS}"fi# Check whether --with-db or --without-db was given.if test "${with_db+set}" = set; then withval="$with_db" CFLAGS="-I${withval} ${CFLAGS}"fi# Check whether --with-dblib or --without-dblib was given.if test "${with_dblib+set}" = set; then withval="$with_dblib" LDFLAGS="-L${withval} ${LDFLAGS}"; HAVE_DB="yes"else HAVE_DB=""fi# Check whether --enable-dns or --disable-dns was given.if test "${enable_dns+set}" = set; then enableval="$enable_dns" USE_DNS="yes"fiif test "$USE_DNS" = "yes"; then if test "$HAVE_DB" = ""; then for ac_func in dbopendoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:1139: 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 1144 "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:1167: \"$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>&6fidone if test $ac_cv_func_dbopen = no; then echo $ac_n "checking for library containing dbopen""... $ac_c" 1>&6echo "configure:1194: checking for library containing dbopen" >&5if eval "test \"`echo '$''{'ac_cv_search_dbopen'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_func_search_save_LIBS="$LIBS"ac_cv_search_dbopen="no"cat > conftest.$ac_ext <<EOF#line 1201 "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 dbopen();int main() {dbopen(); return 0; }EOFif { (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_dbopen="none required"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*test "$ac_cv_search_dbopen" = "no" && for i in db db1; doLIBS="-l$i $ac_func_search_save_LIBS"cat > conftest.$ac_ext <<EOF#line 1223 "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 dbopen();int main() {dbopen(); return 0; }EOFif { (eval echo configure:1234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_dbopen="-l$i"breakelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*doneLIBS="$ac_func_search_save_LIBS"fiecho "$ac_t""$ac_cv_search_dbopen" 1>&6if test "$ac_cv_search_dbopen" != "no"; then test "$ac_cv_search_dbopen" = "none required" || LIBS="$ac_cv_search_dbopen $LIBS" OPTS="-DUSE_DNS ${OPTS}"; HAVE_DB="yes"else : fi if test "$HAVE_DB" = ""; then echo "configure: warning: You must have a V1.85 compatable DB library!" 1>&2 echo "configure: warning: DNS lookup code will be disabled..." 1>&2 fi else OPTS="-DUSE_DNS ${OPTS}"; HAVE_DB="yes" fi else OPTS="-DUSE_DNS ${OPTS}"; LIBS="-ldb ${LIBS}"; HAVE_DB="yes" fi if test "$HAVE_DB" = "yes"; then for ac_hdr in db_185.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1269: 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 1274 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1279: \"$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>&6fidone for ac_hdr in errno.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1309: 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 1314 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1319: \"$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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -