configure
来自「siproxd is a proxy/masquerading for the 」· 代码 · 共 2,055 行 · 第 1/5 页
TXT
2,055 行
# IRIX /sbin/install# AIX /bin/install# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag# AFS /usr/afsws/bin/install, which mishandles nonexistent args# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"# ./install, which can be erroneously created by make from ./install.sh.echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6echo "configure:1242: checking for a BSD compatible install" >&5if test -z "$INSTALL"; thenif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" for ac_dir in $PATH; do # Account for people who put trailing slashes in PATH elements. case "$ac_dir/" in /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do if test -f $ac_dir/$ac_prog; then if test $ac_prog = install && grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : else ac_cv_path_install="$ac_dir/$ac_prog -c" break 2 fi fi done ;; esac done IFS="$ac_save_IFS"fi if test "${ac_cv_path_install+set}" = set; then INSTALL="$ac_cv_path_install" else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL="$ac_install_sh" fifiecho "$ac_t""$INSTALL" 1>&6# Use test -z because SunOS4 sh mishandles braces in ${var-val}.# It thinks the first close brace ends the variable substitution.test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6echo "configure:1295: checking whether ln -s works" >&5if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else rm -f conftestdataif ln -s X conftestdata 2>/dev/nullthen rm -f conftestdata ac_cv_prog_LN_S="ln -s"else ac_cv_prog_LN_S=lnfifiLN_S="$ac_cv_prog_LN_S"if test "$ac_cv_prog_LN_S" = "ln -s"; then echo "$ac_t""yes" 1>&6else echo "$ac_t""no" 1>&6fi# Check whether --with-extra-includes or --without-extra-includes was given.if test "${with_extra_includes+set}" = set; then withval="$with_extra_includes" extra_includes="$withval" fiecho $ac_n "checking "extra includes"""... $ac_c" 1>&6echo "configure:1324: checking "extra includes"" >&5echo "$ac_t""$extra_includes" 1>&6# Check whether --with-extra-libs or --without-extra-libs was given.if test "${with_extra_libs+set}" = set; then withval="$with_extra_libs" extra_libs="$withval" fiecho $ac_n "checking "extra libs"""... $ac_c" 1>&6echo "configure:1335: checking "extra libs"" >&5echo "$ac_t""$extra_libs" 1>&6for each in $extra_includes; do CPPFLAGS="$CPPFLAGS -I$each";donefor each in $extra_libs; do LIBS="$LIBS -L$each";done echo $ac_n "checking build statically linked executable""... $ac_c" 1>&6echo "configure:1347: checking build statically linked executable" >&5 # Check whether --enable-static or --disable-static was given.if test "${enable_static+set}" = set; then enableval="$enable_static" LDFLAGS="$LDFLAGS -static"; echo "$ac_t""yes" 1>&6else echo "$ac_t""no" 1>&6fi echo $ac_n "checking building with DMALLOC support""... $ac_c" 1>&6echo "configure:1359: checking building with DMALLOC support" >&5 # Check whether --enable-dmalloc or --disable-dmalloc was given.if test "${enable_dmalloc+set}" = set; then enableval="$enable_dmalloc" CFLAGS="$CFLAGS -DDMALLOC ";LIBS="-ldmallocth $LIBS"; echo "$ac_t""yes" 1>&6else echo "$ac_t""no" 1>&6fiCFLAGS="$CFLAGS -D_POSIX_THREAD_SAFE_FUNCTIONS"echo $ac_n "checking target platform""... $ac_c" 1>&6echo "configure:1374: checking target platform" >&5case "$target" in *-*-linux*) echo "$ac_t""Linux" 1>&6 cat >> confdefs.h <<\EOF#define _LINUX EOF for ac_hdr in linux/ip_masq.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1386: 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 1391 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1396: \"$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 linux/netfilter.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1426: 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 1431 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1436: \"$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 ;; *-*-freebsd*) echo "$ac_t""FreeBSD" 1>&6 cat >> confdefs.h <<\EOF#define _BSD EOF cat >> confdefs.h <<\EOF#define _FREEBSD EOF CPPFLAGS="$CPPFLAGS -I/usr/local/include/" LIBS="$LIBS -L/usr/local/lib/ -lgnugetopt" ;; *-*-openbsd*) echo "$ac_t""OpenBSD" 1>&6 cat >> confdefs.h <<\EOF#define _BSD EOF cat >> confdefs.h <<\EOF#define _OPENBSD EOF CPPFLAGS="$CPPFLAGS -I/usr/local/include/" LIBS="$LIBS -L/usr/local/lib/" ;; *-*-netbsd*) echo "$ac_t""NetBSD" 1>&6 cat >> confdefs.h <<\EOF#define _BSD EOF cat >> confdefs.h <<\EOF#define _NETBSD EOF CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" LIBS="$LIBS -L/usr/pkg/lib" ;; *-*-bsdi* | *-*-bsdos*) echo "$ac_t""BSD/OS" 1>&6 cat >> confdefs.h <<\EOF#define _BSD EOF cat >> confdefs.h <<\EOF#define _BSDOS EOF ;; *-*-solaris2*) # It's easier to do this here, rather than AC_CHECK_LIBS for all of the # things that are/might be in libsocket or libnsl... echo "$ac_t""Solaris 2.x" 1>&6 cat >> confdefs.h <<\EOF#define _SOLARIS2 EOF LIBS="$LIBS -lsocket -lnsl" ;; *) ;;esacbuild_fli4l_uclibc="no"echo $ac_n "checking whether build for FLI4L uClibc""... $ac_c" 1>&6echo "configure:1530: checking whether build for FLI4L uClibc" >&5case "$target" in *-*-linux*) # Check whether --enable-fli4l-uclibc or --disable-fli4l-uclibc was given.if test "${enable_fli4l_uclibc+set}" = set; then enableval="$enable_fli4l_uclibc" build_fli4l_uclibc=$enablevalfi echo "$ac_t""$build_fli4l_uclibc" 1>&6 ;; *) echo "$ac_t""fli4l-uclibc not available on this platform" 1>&6 ;;esacbuild_fli4l_libc5="no"echo $ac_n "checking building for FLI4L libc5""... $ac_c" 1>&6echo "configure:1549: checking building for FLI4L libc5" >&5case "$target" in *-*-linux*) # Check whether --enable-fli4l-libc5 or --disable-fli4l-libc5 was given.if test "${enable_fli4l_libc5+set}" = set; then enableval="$enable_fli4l_libc5" build_fli4l_libc5=$enablevalfi echo "$ac_t""$build_fli4l_libc5" 1>&6 ;; *) echo "$ac_t""fli4l-libc5 not available on this platform" 1>&6 ;;esacif test "x$build_fli4l_uclibc" = "xyes"; then build_static_libosip="yes" build_static_pthread="no"elif test "x$build_fli4l_libc5" = "xyes"; then build_static_libosip="yes" build_static_pthread="yes"else build_static_libosip="no" build_static_pthread="no"fiacx_pthread_ok=no# We used to check for pthread.h first, but this fails if pthread.h# requires special compiler flags (e.g. on True64 or Sequent).# It gets checked for in the link test anyway.# First of all, check if the user has set any of the PTHREAD_LIBS,# etcetera environment variables, and if threads linking works using# them:if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" save_LIBS="$LIBS" LIBS="$PTHREAD_LIBS $LIBS" echo $ac_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS""... $ac_c" 1>&6echo "configure:1595: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 cat > conftest.$ac_ext <<EOF#line 1597 "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 pthread_join();int main() {pthread_join(); return 0; }EOFif { (eval echo configure:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* acx_pthread_ok=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest* echo "$ac_t""$acx_pthread_ok" 1>&6 if test x"$acx_pthread_ok" = xno; then PTHREAD_LIBS="" PTHREAD_CFLAGS="" fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS"fi# We must check for the threads library under a number of different# names; the ordering is very important because some systems# (e.g. DEC) have both -lpthread and -lpthreads, where one of the# libraries is broken (non-POSIX).# Create a list of thread flags to try. Items starting with a "-" are# C compiler flags, and other items are library names, except for "none"# which indicates that we try without any flags at all.acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"# The ordering *is* (sometimes) important. Some notes on the# individual items follow:# pthreads: AIX (must check this before -lpthread)# none: in case threads are in libc; should be tried before -Kthread and# other compiler flags to prevent continual compiler warnings# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?