📄 configure
字号:
' ac_t=' ' else ac_n=-n ac_c= ac_t= fielse ac_n= ac_c='\c' ac_t=fiac_echo_test=`echo foo 1>&1`if test -z "$ac_echo_test" ; then print_error "Your sh shell does not handle the output redirection" print_error "1>&1 correctly. Configure will work around this problem," print_error "but you should report the problem to your vendor."fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho $ac_n "checking for -lXbsd""... $ac_c"elseecho $ac_n "checking for -lXbsd""... $ac_c" 1>&1fiif test ! -f confdefs.h ; then if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t"""!! SHELL ERROR !!""elseecho "$ac_t"""!! SHELL ERROR !!"" 1>&1fi echo "The file confdefs.h created by configure has been removed" echo "This may be a problem with your shell; some versions of LINUX" echo "have this problem. See the Installation guide for more" echo "information." exit 1ficat > conftest.c <<EOF#include "confdefs.h"int main() { exit(0); }int t() { main(); }EOFif eval $compile; then if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""yes"elseecho "$ac_t""yes" 1>&1fi have_lib="1" else if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fi expandcompile=`echo "$compile" | sed -e 's/>.*//'` eval echo "configure:$expandcompile" >> config.log echo "configure: failed program was:" >>config.log cat confdefs.h >> config.log cat conftest.c >> config.log if test -s conftest.out ; then cat conftest.out >> config.log else ${CC-cc} $CFLAGS conftest.c -o conftest $LDFLAGS $LIBS >> config.log 2>&1 fifirm -f conftest*LIBS="${LIBS_save}"if test -n "${have_lib}"; then :; LIBS="$LIBS -lXbsd"else :; fiLIBS_save="${LIBS}"LIBS="${LIBS} -lsocket"have_lib=""if test -z "$ac_echo_n" ; thenac_echo_n=yesif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c='' ac_t=' ' else ac_n=-n ac_c= ac_t= fielse ac_n= ac_c='\c' ac_t=fiac_echo_test=`echo foo 1>&1`if test -z "$ac_echo_test" ; then print_error "Your sh shell does not handle the output redirection" print_error "1>&1 correctly. Configure will work around this problem," print_error "but you should report the problem to your vendor."fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho $ac_n "checking for -lsocket""... $ac_c"elseecho $ac_n "checking for -lsocket""... $ac_c" 1>&1fiif test ! -f confdefs.h ; then if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t"""!! SHELL ERROR !!""elseecho "$ac_t"""!! SHELL ERROR !!"" 1>&1fi echo "The file confdefs.h created by configure has been removed" echo "This may be a problem with your shell; some versions of LINUX" echo "have this problem. See the Installation guide for more" echo "information." exit 1ficat > conftest.c <<EOF#include "confdefs.h"int main() { exit(0); }int t() { main(); }EOFif eval $compile; then if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""yes"elseecho "$ac_t""yes" 1>&1fi have_lib="1" else if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fi expandcompile=`echo "$compile" | sed -e 's/>.*//'` eval echo "configure:$expandcompile" >> config.log echo "configure: failed program was:" >>config.log cat confdefs.h >> config.log cat conftest.c >> config.log if test -s conftest.out ; then cat conftest.out >> config.log else ${CC-cc} $CFLAGS conftest.c -o conftest $LDFLAGS $LIBS >> config.log 2>&1 fifirm -f conftest*LIBS="${LIBS_save}"if test -n "${have_lib}"; then :; LIBS="$LIBS -lsocket"else :; fiLIBS_save="${LIBS}"LIBS="${LIBS} -lnsl"have_lib=""if test -z "$ac_echo_n" ; thenac_echo_n=yesif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c='' ac_t=' ' else ac_n=-n ac_c= ac_t= fielse ac_n= ac_c='\c' ac_t=fiac_echo_test=`echo foo 1>&1`if test -z "$ac_echo_test" ; then print_error "Your sh shell does not handle the output redirection" print_error "1>&1 correctly. Configure will work around this problem," print_error "but you should report the problem to your vendor."fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho $ac_n "checking for -lnsl""... $ac_c"elseecho $ac_n "checking for -lnsl""... $ac_c" 1>&1fiif test ! -f confdefs.h ; then if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t"""!! SHELL ERROR !!""elseecho "$ac_t"""!! SHELL ERROR !!"" 1>&1fi echo "The file confdefs.h created by configure has been removed" echo "This may be a problem with your shell; some versions of LINUX" echo "have this problem. See the Installation guide for more" echo "information." exit 1ficat > conftest.c <<EOF#include "confdefs.h"int main() { exit(0); }int t() { main(); }EOFif eval $compile; then if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""yes"elseecho "$ac_t""yes" 1>&1fi have_lib="1" else if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fi expandcompile=`echo "$compile" | sed -e 's/>.*//'` eval echo "configure:$expandcompile" >> config.log echo "configure: failed program was:" >>config.log cat confdefs.h >> config.log cat conftest.c >> config.log if test -s conftest.out ; then cat conftest.out >> config.log else ${CC-cc} $CFLAGS conftest.c -o conftest $LDFLAGS $LIBS >> config.log 2>&1 fifirm -f conftest*LIBS="${LIBS_save}"if test -n "${have_lib}"; then :; LIBS="$LIBS -lnsl"else :; fi# Look for Tclif test -z "$TCL_DIR" ; then # Look for Tcl. Prefer the TCL73TK36_DIR version if it existsif test -z "$TCL_DIR" ; then# See if tclsh is in the path# If there is a tclsh, it MAY provide tk.# Extract the first word of "tclsh", so it can be a program name with args.set dummy tclsh; ac_word=$2if test -z "$ac_echo_n" ; thenac_echo_n=yesif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c='' ac_t=' ' else ac_n=-n ac_c= ac_t= fielse ac_n= ac_c='\c' ac_t=fiac_echo_test=`echo foo 1>&1`if test -z "$ac_echo_test" ; then print_error "Your sh shell does not handle the output redirection" print_error "1>&1 correctly. Configure will work around this problem," print_error "but you should report the problem to your vendor."fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho $ac_n "checking for $ac_word""... $ac_c"elseecho $ac_n "checking for $ac_word""... $ac_c" 1>&1fiac_prog_where=""if test -n "$TCLSH"; then ac_pg_TCLSH="$TCLSH" # Let the user override the test.else ac_first_char=`expr "tclsh" : "\(.\)"` # Use ac_word instead of tclsh in case the command has options on it. if test "$ac_first_char" = "/" -a -x "$ac_word" ; then ac_pg_TCLSH="1" ac_prog_where=tclsh 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_pg_TCLSH="1" ac_prog_where=$ac_dir/$ac_word break fi done IFS="$ac_save_ifs" fifi;TCLSH="$ac_pg_TCLSH"if test -n "$ac_prog_where" ; then if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""found $ac_prog_where ($TCLSH)"elseecho "$ac_t""found $ac_prog_where ($TCLSH)" 1>&1fi tclshloc=$ac_prog_where else if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fifiif test -z "$ac_echo_n" ; thenac_echo_n=yesif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c='' ac_t=' ' else ac_n=-n ac_c= ac_t= fielse ac_n= ac_c='\c' ac_t=fiac_echo_test=`echo foo 1>&1`if test -z "$ac_echo_test" ; then print_error "Your sh shell does not handle the output redirection" print_error "1>&1 correctly. Configure will work around this problem," print_error "but you should report the problem to your vendor."fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho $ac_n "checking for Tcl""... $ac_c"elseecho $ac_n "checking for Tcl""... $ac_c" 1>&1fiif test -n "$tclshloc" ; then cat >conftest <<EOFputs stdout \$tcl_libraryEOF tcllibloc=`$tclshloc conftest 2>/dev/null` # The tcllibloc is the directory containing the .tcl files. # The .a files may be one directory up if test -n "$tcllibloc" ; then tcllibloc=`dirname $tcllibloc` # and the lib directory one above that tcllibs="$tcllibloc `dirname $tcllibloc`" fi /bin/rm -f conftest fifoundversion=""# At ANL, the software is in a common tree; we need to pick the# correct architecture# ? is host correct?if test "$host" = "irix" ; then archdir="irix-6"elif test "$host" = "linux" ; then archdir="linux"elif test "$host" = "solaris" ; then archdir="solaris-2" elif test "$host" = "sun4" ; then archdir="sun4"else archdir="."fi#for dir in $TCL73TK36_DIR $tcllibs \ /usr \ /usr/local \ /usr/local/tcl7.5 \ /usr/local/tcl7.3 \ /usr/local/tcl7.3-tk3.6 \ /usr/local/tcl7.0 \ /usr/local/tcl7.0-tk3.3 \ /usr/local/tcl7.* \ /usr/contrib \ /usr/contrib/tk3.6 \ /usr/contrib/tcl7.3-tk3.6 \ /usr/contrib/tk3.3 \ /usr/contrib/tcl7.0-tk3.3 \ $HOME/tcl \ $HOME/tcl7.3 \ $HOME/tcl7.5 \ /opt/Tcl \ /opt/local \ /opt/local/tcl7.5 \ /opt/local/tcl7.* \ /usr/bin \ /Tools/tcl \ /usr/sgitcl \ /usr/pgk \ /software/$archdir/apps/packages/tcl-7* \ /local/encap/tcl-7.1 ; do # In some cases, the tck/tk name comes *after* the include. for fileloc in $dir/include $dir/include/tcl* ; do if test -r $fileloc/tcl.h ; then # Check for correct version tclversion=`grep 'TCL_MAJOR_VERSION' $fileloc/tcl.h | \ sed -e 's/^.*TCL_MAJOR_VERSION[^0-9]*\([0-9]*\).*$/\1/'` if test "$tclversion" != "7" ; then # Skip if it is the wrong version foundversion=$tclversion continue fi if test -r $dir/lib/libtcl.a -o -r $dir/lib/libtcl.so ; then TCL_DIR=$dir break fi for libdir in $dir/lib $dir/lib/tcl* ; do if test -r $libdir/libtcl.a -o -r $libdir/libtcl.so ; then # Not used yet TCL_LIB_DIR=$libdir break fi done for file in $dir/lib/libtcl*.a $dir/lib/tcl*/libtcl*.a ; do if test -r $file ; then TCL_DIR_W="$TCL_DIR_W $file" fi done fi if test -n "$TCL_DIR" ; then break ; fi done if test -n "$TCL_DIR" ; then break ; fidonefiif test -n "$TCL_DIR" ; then if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""found $TCL_DIR/include/tcl.h and $TCL_DIR/lib/libtcl"elseecho "$ac_t""found $TCL_DIR/include/tcl.h and $TCL_DIR/lib/libtcl" 1>&1fielse if test -n "$TCL_DIR_W" ; then if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""found $TCL_DIR_W but need libtcl.a"elseecho "$ac_t""found $TCL_DIR_W but need libtcl.a" 1>&1fi else if test -z "$foundversion" ; then if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fi else if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no: found version $foundversion but need version 7"elseecho "$ac_t""no: found version $foundversion but need version 7" 1>&1fi fi fifi# Look for Tk (look in tcl dir if the code is nowhere else)if test -z "$TK_DIR" ; thenif test -z "$ac_echo_n" ; thenac_echo_n=yesif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c='' ac_t=' ' else ac_n=-n ac_c= ac_t= fielse ac_n= ac_c='\c' ac_t=fiac_echo_test=`echo foo 1>&1`if test -z "$ac_echo_test" ; then print_error "Your sh shell does not handle the output redirection" print_error "1>&1 correctly. Configure will work around this problem," print_error "but you should report the problem to your vendor."fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho $ac_n "checking for Tk""... $ac_c"elseecho $ac_n "checking for Tk""... $ac_c" 1>&1fiif test -n "$wishloc" ; then # Originally, we tried to run wish and get the tkversion from it # unfortunately, this sometimes hung, probably waiting to get a display# cat >conftest <<EOF#puts stdout [\$]tk_library#exit#EOF# tklibloc=`$wishloc -file conftest 2>/dev/null` tklibloc=`strings $wishloc | grep 'lib/tk'` # The tklibloc is the directory containing the .tclk files. # The .a files may be one directory up # There may be multiple lines in tklibloc now. Make sure that we only # test actual directories if test -n "$tklibloc" ; then for tkdirname in $tklibloc ; do if test -d $tkdirname ; then tkdirname=`dirname $tkdirname` # and the lib directory one above that tklibs="$tkdirname `dirname $tkdirname`" fi done fi /bin/rm -f conftest fifoundversion=""TK_UPDIR=""TK_UPVERSION=""for dir in $TCL73TK36_DIR $tklibs \ /usr \ /usr/local \ /usr/local/tk3.6 \ /usr/local/tcl7.3-tk3.6 \
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -