⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure

📁 Modem通讯程序包
💻
📖 第 1 页 / 共 5 页
字号:
#include "confdefs.h"#include <$x_direct_test_include>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1392: \"$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 1459 "configure"#include "confdefs.h"int main() { return 0; }int t() {${x_direct_test_function}(); return 0; }EOFif { (eval echo configure:1467: \"$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 = NOif test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then  # Didn't find X anywhere.  Cache the known absence of X.  ac_cv_have_x="have_x=no"else  # Record where we found X for the cache.  ac_cv_have_x="have_x=yes \	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"fifi  fi  eval "$ac_cv_have_x"fi # $with_x != noif test "$have_x" != yes; then  echo "$ac_t""$have_x" 1>&6  no_x=yeselse  # If each of the values was on the command line, it overrides each guess.  test "x$x_includes" = xNONE && x_includes=$ac_x_includes  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries  # Update the cache value to reflect the command line values.  ac_cv_have_x="have_x=yes \		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6fiif test "$no_x" = yes; then  # Not all programs may use this symbol, but it does not hurt to define it.  X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"else  if test -n "$x_includes"; then    X_CFLAGS="$X_CFLAGS -I$x_includes"  fi  # It would be nice to have a more robust check for the -R ld option than  # just checking for Solaris.  # It would also be nice to do this for all -L options, not just this one.  if test -n "$x_libraries"; then    X_LIBS="$X_LIBS -L$x_libraries"    if test "`(uname) 2>/dev/null`" = SunOS &&      uname -r | grep '^5' >/dev/null; then      X_LIBS="$X_LIBS -R $x_libraries"    fi  fi  # Check for libraries that X11R6 Xt/Xaw programs need.  ac_save_LDFLAGS="$LDFLAGS"  LDFLAGS="$LDFLAGS -L$x_libraries"  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to  # check for ICE first), but we must link in the order -lSM -lICE or  # we get undefined symbols.  So assume we have SM if we have ICE.  # These have to be linked with before -lX11, unlike the other  # libraries we check for below, so use a different variable.  #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.  echo $ac_n "checking for -lICE""... $ac_c" 1>&6ac_lib_var=`echo ICE'_'IceConnectionNumber | tr './+\055' '__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="-lICE  $LIBS"cat > conftest.$ac_ext <<EOF#line 1588 "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 IceConnectionNumber();int main() { return 0; }int t() {IceConnectionNumber(); return 0; }EOFif { (eval echo configure:1600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  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  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"else  echo "$ac_t""no" 1>&6fi  LDFLAGS="$ac_save_LDFLAGS"  # Check for system-dependent libraries X programs must link with.  if test "$ISC" = yes; then    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"  else    # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X    # libraries were built with DECnet support.  And karl@cs.umb.edu says    # the Alpha needs dnet_stub (dnet does not exist).    echo $ac_n "checking for -ldnet""... $ac_c" 1>&6ac_lib_var=`echo dnet'_'dnet_ntoa | tr './+\055' '__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="-ldnet  $LIBS"cat > conftest.$ac_ext <<EOF#line 1636 "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 dnet_ntoa();int main() { return 0; }int t() {dnet_ntoa(); return 0; }EOFif { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  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  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"else  echo "$ac_t""no" 1>&6fi    if test $ac_cv_lib_dnet_dnet_ntoa = no; then      echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6ac_lib_var=`echo dnet_stub'_'dnet_ntoa | tr './+\055' '__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="-ldnet_stub  $LIBS"cat > conftest.$ac_ext <<EOF#line 1675 "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 dnet_ntoa();int main() { return 0; }int t() {dnet_ntoa(); return 0; }EOFif { (eval echo configure:1687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  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  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"else  echo "$ac_t""no" 1>&6fi    fi    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,    # to get the SysV transport functions.    # Not sure which flavor of 386 UNIX this is, but it seems harmless to    # check for it.    echo $ac_n "checking for -lnsl""... $ac_c" 1>&6ac_lib_var=`echo nsl'_'t_accept | tr './+\055' '__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 1719 "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 t_accept();int main() { return 0; }int t() {t_accept(); return 0; }EOFif { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  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  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"else  echo "$ac_t""no" 1>&6fi    # lieder@skyler.mavd.honeywell.com says without -lsocket,    # socket/setsockopt and other routines are undefined under SCO ODT 2.0.    # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.    if test "`(uname) 2>/dev/null`" != IRIX; then      echo $ac_n "checking for -lsocket""... $ac_c" 1>&6ac_lib_var=`echo socket'_'socket | tr './+\055' '__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 1762 "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 socket();int main() { return 0; }int t() {socket(); return 0; }EOFif { (eval echo configure:1774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  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  X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"else  echo "$ac_t""no" 1>&6fi    fi  fifi# If we cannot run a trivial program, we must be cross compiling.echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test "$cross_compiling" = yes; then  ac_cv_c_cross=yeselsecat > conftest.$ac_ext <<EOF#line 1807 "configure"#include "confdefs.h"main(){return(0);}EOF{ (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }if test -s conftest && (./conftest; exit) 2>/dev/null; then  ac_cv_c_cross=noelse  ac_cv_c_cross=yesfifirm -fr conftest*fiecho "$ac_t""$ac_cv_c_cross" 1>&6cross_compiling=$ac_cv_c_crossecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1829 "configure"#include "confdefs.h"#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <float.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`if test -z "$ac_err"; then  rm -rf conftest*  ac_cv_header_stdc=yeselse  echo "$ac_err" >&5  rm -rf conftest*  ac_cv_header_stdc=nofirm -f conftest*if test $ac_cv_header_stdc = yes; then

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -