📄 configure
字号:
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 -lrpc""... $ac_c"elseecho $ac_n "checking for -lrpc""... $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 {test -n "$verbose" && \echo " defining HAVE_LIBRPC"echo "#define" HAVE_LIBRPC 1 >> confdefs.hDEFS="$DEFS -DHAVE_LIBRPC=1"} LIBS="${LIBS} -lrpc"fifi# Sun running Solarisif test -n "$p4arch_SUN_SOLARIS"; then # We've had so many problems with the threaded listener that we are # leaving the default as off. #if test $userSet_threaded_listener = 0 -a -z "$p4comm_shared" ; then # threaded_listener=1 #fi P4ARCH=SUN_SOLARIS AR="ar ruv" RANLIB=true # We might want to choose pthreads instead because of the listener.... if test -n "$p4comm_shared"; then DEFINE_VENDOR_IPC="#define VENDOR_IPC" LIBS_save="${LIBS}"LIBS="${LIBS} -lthread"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 -lthread""... $ac_c"elseecho $ac_n "checking for -lthread""... $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 {test -n "$verbose" && \echo " defining HAVE_LIBTHREAD"echo "#define" HAVE_LIBTHREAD 1 >> confdefs.hDEFS="$DEFS -DHAVE_LIBTHREAD=1"} LIBS="${LIBS} -lthread"fi fi LIBS_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 {test -n "$verbose" && \echo " defining HAVE_LIBSOCKET"echo "#define" HAVE_LIBSOCKET 1 >> confdefs.hDEFS="$DEFS -DHAVE_LIBSOCKET=1"} LIBS="${LIBS} -lsocket"fi LIBS_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 {test -n "$verbose" && \echo " defining HAVE_LIBNSL"echo "#define" HAVE_LIBNSL 1 >> confdefs.hDEFS="$DEFS -DHAVE_LIBNSL=1"} LIBS="${LIBS} -lnsl"fi 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 how many arguments gettimeofday takes""... $ac_c"elseecho $ac_n "checking for how many arguments gettimeofday takes""... $ac_c" 1>&1fi cat > conftest.c <<EOF#include "confdefs.h"#include <sys/time.h>main() {struct timeval tp;gettimeofday(&tp);return 0;}EOFeval $compileif test -s conftest && (./conftest; exit) 2>/dev/null; then MDEP_CFLAGS="$MDEP_CFLAGS -DUSE_WIERDGETTIMEOFDAY"if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""one!"elseecho "$ac_t""one!" 1>&1fielse if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""two - whew"elseecho "$ac_t""two - whew" 1>&1fifirm -fr conftest* fi# Intel x86 running Solarisif test -n "$p4arch_I86_SOLARIS"; then P4ARCH=I86_SOLARIS AR="ar ruv" RANLIB=true if test -n "$p4comm_shared"; then DEFINE_VENDOR_IPC="#define VENDOR_IPC" LIBS_save="${LIBS}"LIBS="${LIBS} -lthread"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 -lthread""... $ac_c"elseecho $ac_n "checking for -lthread""... $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 {test -n "$verbose" && \echo " defining HAVE_LIBTHREAD"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -