📄 configure
字号:
else echo "$ac_err" >&5 rm -rf conftest* CPP=/lib/cppfirm -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>&6for ac_hdr in stdarg.h sys/bitypes.h sys/select.h sys/types.h varargs.hdoac_safe=`echo "$ac_hdr" | tr './\055' '___'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6if 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 918 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_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`if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes"else echo "$ac_err" >&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 | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOF else echo "$ac_t""no" 1>&6fidoneecho $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6if test -z "$CXXCPP"; thenif eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_ext=C# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CXXCPP $CPPFLAGS'ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' CXXCPP="${CXX-g++} -E" cat > conftest.$ac_ext <<EOF#line 959 "configure"#include "confdefs.h"#include <stdlib.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then :else echo "$ac_err" >&5 rm -rf conftest* CXXCPP=/lib/cppfirm -f conftest* ac_cv_prog_CXXCPP="$CXXCPP"ac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'fifiCXXCPP="$ac_cv_prog_CXXCPP"echo "$ac_t""$CXXCPP" 1>&6 ac_ext=C# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CXXCPP $CPPFLAGS'ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' echo $ac_n "checking for struct ip_mreq in netinet/in.h for C++""... $ac_c" 1>&6 cat > conftest.$ac_ext <<EOF#line 996 "configure"#include "confdefs.h"#include <netinet/in.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "struct ip_mreq" >/dev/null 2>&1; then rm -rf conftest* echo "$ac_t""yes" 1>&6else rm -rf conftest* echo "$ac_t""no" 1>&6 { echo "configure: error: installation or configuration problem: C++ compiler cannotfind multicast-patched include files" 1>&2; exit 1; } firm -f conftest* ac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'#----------------------------------------# See if we have snprintf()#----------------------------------------found_snprintf="no"echo $ac_n "checking for snprintf""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1030 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char snprintf(); 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 snprintf();int main() { return 0; }int t() {/* 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_snprintf) || defined (__stub___snprintf)choke me#elsesnprintf();#endif; return 0; }EOFif { (eval echo configure:1054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* eval "ac_cv_func_snprintf=yes"else rm -rf conftest* eval "ac_cv_func_snprintf=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then echo "$ac_t""yes" 1>&6 found_snprintf="yes"else echo "$ac_t""no" 1>&6fiif test "$found_snprintf" = "no" ; then # an undocumented solaris 2.5 feature... echo $ac_n "checking for _snprintf""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_func__snprintf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1078 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char _snprintf(); 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 _snprintf();int main() { return 0; }int t() {/* 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__snprintf) || defined (__stub____snprintf)choke me#else_snprintf();#endif; return 0; }EOFif { (eval echo configure:1102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* eval "ac_cv_func__snprintf=yes"else rm -rf conftest* eval "ac_cv_func__snprintf=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then echo "$ac_t""yes" 1>&6 found_snprintf="yes"else echo "$ac_t""no" 1>&6fi if test "$found_snprintf" = "yes" ; then cat >> confdefs.h <<\EOF#define snprintf _snprintfEOF else COMPAT_OBJS="${COMPAT_OBJS} snprintf.o" fifiif test "$found_snprintf" = "yes" ; then cat >> confdefs.h <<\EOF#define HAVE_SNPRINTF 1EOFfi#----------------------------------------# Find X11 header files and libraries#----------------------------------------# If we find X, set shell vars x_includes and x_libraries to the# paths, otherwise set no_x=yes.# Uses ac_ vars as temps to allow command line to override cache and checks.# --without-x overrides everything else, but does not touch the cache.echo $ac_n "checking for X""... $ac_c" 1>&6# Check whether --with-x or --without-x was given.if test "${with_x+set}" = set; then withval="$with_x" :fi# $have_x is `yes', `no', `disabled', or empty when we do not yet know.if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabledelse if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then # Both variables are already set. have_x=yes elseif eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else # One or both of the vars are not set, and there is no cached value.ac_x_includes=NO ac_x_libraries=NOrm -fr conftestdirif mkdir conftestdir; then cd conftestdir # Make sure to not put "make" in the Imakefile rules, since we grep it out. cat > Imakefile <<'EOF'acfindx: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'EOF if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl; do if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && test -f $ac_im_libdir/libX11.$ac_extension; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. case "$ac_im_incroot" in /usr/include) ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; esac case "$ac_im_usrlibdir" in /usr/lib | /lib) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; esac fi cd .. rm -fr conftestdirfiif test "$ac_x_includes" = NO; then # Guess where to find include files, by looking for this one X11 .h file. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h # First, try using that file with no special directory specified.cat > conftest.$ac_ext <<EOF#line 1203 "configure"#include "confdefs.h"#include <$x_direct_test_include>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then rm -rf conftest* # We can compile using X headers with no special include directory.ac_x_includes=else echo "$ac_err" >&5 rm -rf conftest* # Look for the header file in a standard set of common directories. for ac_dir in \ /usr/X11R6/include \ /usr/X11R5/include \ /usr/X11R4/include \ \ /usr/include/X11R6 \ /usr/include/X11R5 \ /usr/include/X11R4 \ \ /usr/local/X11R6/include \ /usr/local/X11R5/include \ /usr/local/X11R4/include \ \ /usr/local/include/X11R6 \ /usr/local/include/X11R5 \ /usr/local/include/X11R4 \ \ /usr/X11/include \ /usr/include/X11 \ /usr/local/X11/include \ /usr/local/include/X11 \ \ /usr/X386/include \ /usr/x386/include \ /usr/XFree86/include/X11 \ \ /usr/include \ /usr/local/include \ /usr/unsupported/include \ /usr/athena/include \ /usr/local/x11r5/include \ /usr/lpp/Xamples/include \ \ /usr/openwin/include \ /usr/openwin/share/include \ ; \ do if test -r "$ac_dir/$x_direct_test_include"; then ac_x_includes=$ac_dir break fi donefirm -f conftest*fi # $ac_x_includes = NOif test "$ac_x_libraries" = NO; then # Check for the libraries. test -z "$x_direct_test_library" && x_direct_test_library=Xt test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS="$LIBS" LIBS="-l$x_direct_test_library $LIBS"cat > conftest.$ac_ext <<EOF#line 1275 "configure"#include "confdefs.h"int main() { return 0; }int t() {${x_direct_test_function}(); return 0; }EOFif { (eval echo configure:1283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then rm -rf conftest* LIBS="$ac_save_LIBS"# We can link X programs with no special library path.ac_x_libraries=else rm -rf conftest* LIBS="$ac_save_LIBS"# First see if replacing the include by lib works.for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ /usr/X11R6/lib \ /usr/X11R5/lib \ /usr/X11R4/lib \ \ /usr/lib/X11R6 \ /usr/lib/X11R5 \ /usr/lib/X11R4 \ \ /usr/local/X11R6/lib \ /usr/local/X11R5/lib \ /usr/local/X11R4/lib \ \ /usr/local/lib/X11R6 \ /usr/local/lib/X11R5 \ /usr/local/lib/X11R4 \ \ /usr/X11/lib \ /usr/lib/X11 \ /usr/local/X11/lib \ /usr/local/lib/X11 \ \ /usr/X386/lib \ /usr/x386/lib \ /usr/XFree86/lib/X11 \ \ /usr/lib \ /usr/local/lib \ /usr/unsupported/lib \ /usr/athena/lib \ /usr/local/x11r5/lib \ /usr/lpp/Xamples/lib \ \ /usr/openwin/lib \ /usr/openwin/share/lib \ ; \do for ac_extension in a so sl; do if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then ac_x_libraries=$ac_dir break 2 fi donedonefirm -f conftest*fi # $ac_x_libraries = NO
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -