📄 configure
字号:
eval $ff_name= eval ${ff_name}_dir= ff_file= ff_file_dir= for ff_dir in $tklibpath $TK_PREFIX $TK_EXEC_PREFIX $TK_SRC_DIR $have_tcl $have_tk $more_libs $base_libs $base_dirs ; do if test -f $ff_dir/$tklibfile ; then ff_file_dir=$ff_dir ff_file=$ff_dir/$tklibfile break fi for ff_subdir in lib unix ; do if test -f $ff_dir/$ff_subdir/$tklibfile ; then ff_file_dir=$ff_dir/$ff_subdir ff_file=$ff_dir/$ff_subdir/$tklibfile break fi done if test "x$ff_file" != "x" ; then break fi done eval ${ff_name}_dir="$ff_file_dir" eval $ff_name="$ff_file" if test "x$tk_lib_dir" = "x" ; then echo "$ac_t""not found" 1>&6 echo "configure: warning: Tk parts disabled" 1>&2 echo "configure: warning: use --enable-tk to locate $tklibfile" 1>&2 have_tk="no" else echo "$ac_t""found in $tk_lib_dir" 1>&6 fifi## Tk setup complete#if test "x$have_tk" != "xno" ; then tklibflag=`eval echo $TK_LIB_FLAG` TCL_CPPFLAGS="-I$tk_h_dir $TK_XINCLUDES $TCL_CPPFLAGS" TCL_LDFLAGS="-L$tk_lib_dir $TCL_LDFLAGS" TCL_LIBS="$tklibflag $TCL_LIBS" cat >> confdefs.h <<\EOF#define HAVE_TK 1EOFfi## we might need various libraries if we decide to go for TCL/TK#echo $ac_n "checking for sin""... $ac_c" 1>&6echo "configure:1439: checking for sin" >&5if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1444 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char sin(); 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 sin();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_sin) || defined (__stub___sin)choke me#elsesin();#endif; return 0; }EOFif { (eval echo configure:1467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_sin=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_sin=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then echo "$ac_t""yes" 1>&6 :else echo "$ac_t""no" 1>&6LIBS="$LIBS -lm"fi## these libs are needed for both TK and minews (from tk's configure.in)# and in some cases -lsocket features gettimeofday, needed for TCL#tk_checkBoth=0echo $ac_n "checking for connect""... $ac_c" 1>&6echo "configure:1495: checking for connect" >&5if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1500 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char connect(); 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 connect();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_connect) || defined (__stub___connect)choke me#elseconnect();#endif; return 0; }EOFif { (eval echo configure:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_connect=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_connect=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then echo "$ac_t""yes" 1>&6 tk_checkSocket=0else echo "$ac_t""no" 1>&6tk_checkSocket=1fiif test "$tk_checkSocket" = 1; then echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6echo "configure:1545: checking for connect in -lsocket" >&5ac_lib_var=`echo socket'_'connect | 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 1553 "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 connect();int main() {connect(); return 0; }EOFif { (eval echo configure:1564: \"$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 LIBS="$LIBS -lsocket"else echo "$ac_t""no" 1>&6tk_checkBoth=1fifiif test "$tk_checkBoth" = 1; then tk_oldLibs=$LIBS LIBS="$LIBS -lsocket -lnsl" echo $ac_n "checking for accept""... $ac_c" 1>&6echo "configure:1590: checking for accept" >&5if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1595 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char accept(); 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 accept();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_accept) || defined (__stub___accept)choke me#elseaccept();#endif; return 0; }EOFif { (eval echo configure:1618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_accept=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_accept=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then echo "$ac_t""yes" 1>&6 tk_checkNsl=0else echo "$ac_t""no" 1>&6LIBS=$tk_oldLibsfifiecho $ac_n "checking for gethostbyname""... $ac_c" 1>&6echo "configure:1640: checking for gethostbyname" >&5if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1645 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char gethostbyname(); 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 gethostbyname();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_gethostbyname) || defined (__stub___gethostbyname)choke me#elsegethostbyname();#endif; return 0; }EOFif { (eval echo configure:1668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_gethostbyname=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_gethostbyname=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then echo "$ac_t""yes" 1>&6 :else echo "$ac_t""no" 1>&6echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6echo "configure:1686: 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 1694 "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:1705: \"$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 LIBS="$LIBS -lnsl"else echo "$ac_t""no" 1>&6fifi## Look for a mailing program to be used by uuenview#case "x$have_sendmail" inxno*) MAILER="" ;;x|xyes*) # Extract the first word of "sendmail", so it can be a program name with args.set dummy sendmail; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1740: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_MAILER'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else case "$MAILER" in /*) ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_MAILER="$MAILER" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH:/sbin:/usr/lib:/usr/sbin:/usr/etc" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_MAILER="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;;esacfiMAILER="$ac_cv_path_MAILER"if test -n "$MAILER"; then echo "$ac_t""$MAILER" 1>&6else echo "$ac_t""no" 1>&6fi if test "x$MAILER" = "x" ; then # Extract the first word of "mailx", so it can be a program name with args.set dummy mailx; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1776: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_MAILER'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else case "$MAILER" in /*) ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_MAILER="$MAILER" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH:/sbin:/usr/lib:/usr/sbin:/usr/etc" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_MAILER="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;;esacfiMAILER="$ac_cv_path_MAILER"if test -n "$MAILER"; then echo "$ac_t""$MAILER" 1>&6else echo "$ac_t""no" 1>&6fi if test "x$MAILER" != "x" ; then cat >> confdefs.h <<\EOF#define MAILER_NEEDS_SUBJECT 1EOF # mailx wants -s "subject" else # Extract the first word of "elm", so it can be a program name with args.set dummy elm; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1817: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_MAILER'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else case "$MAILER" in /*) ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_MAILER="$MAILER" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_MAILER="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;;esacfiMAILER="$ac_cv_path_MAILER"if test -n "$MAILER"; then echo "$ac_t""$MAILER" 1>&6else
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -