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

📄 configure

📁 蒙特卡罗模拟光子成像C语言版,代码简洁专业
💻
📖 第 1 页 / 共 5 页
字号:
    /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
  done
fi
rm -f conftest*
fi # $ac_x_includes = NO

if 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 1748 "configure"
#include "confdefs.h"

int main() {
${x_direct_test_function}()
; return 0; }
EOF
if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
# We can link X programs with no special library path.
ac_x_libraries=
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
# First see if replacing the include by lib works.
# Check X11 before X11Rn because it is often a symlink to the current release.
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
    /usr/X11/lib          \
    /usr/X11R6/lib        \
    /usr/X11R5/lib        \
    /usr/X11R4/lib        \
                          \
    /usr/lib/X11          \
    /usr/lib/X11R6        \
    /usr/lib/X11R5        \
    /usr/lib/X11R4        \
                          \
    /usr/local/X11/lib    \
    /usr/local/X11R6/lib  \
    /usr/local/X11R5/lib  \
    /usr/local/X11R4/lib  \
                          \
    /usr/local/lib/X11    \
    /usr/local/lib/X11R6  \
    /usr/local/lib/X11R5  \
    /usr/local/lib/X11R4  \
                          \
    /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  \
    /lib/usr/lib/X11	  \
                          \
    /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
  done
done
fi
rm -f conftest*
fi # $ac_x_libraries = NO

if 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"
fi
fi
  fi
  eval "$ac_cv_have_x"
fi # $with_x != no

if test "$have_x" != yes; then
  echo "$ac_t""$have_x" 1>&6
  no_x=yes
else
  # 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>&6
fi

  
if test "${no_x}" != "yes" ; then
  X11CFLAGS="-I${x_includes}"
  X11LDFLAGS="-L${x_libraries}"

   acl_save_CFLAGS="${CFLAGS}"
  acl_save_LDFLAGS="${LDFLAGS}"

  X11CFLAGS="-I${x_includes}"
  X11LDFLAGS="-L${x_libraries}"
  X11LIBS=""

  CFLAGS="$CFLAGS $X11CFLAGS"
  LDFLAGS="$LDFLAGS $X11LDFLAGS"

  
     ac_save_LIBS="$LIBS"
  LIBS="$LIBS -lX11 "$X11LIBS" "	
    
  ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`

    
  echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6
echo "configure:1864: checking for main in -lX11" >&5
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
   cat > conftest.$ac_ext <<EOF
#line 1869 "configure"
#include "confdefs.h"

int main() {
 main()
; return 0; }
EOF
if { (eval echo configure:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no" 
fi
rm -f conftest* 
fi

echo "$ac_t""$ac_cv_lib_$ac_lib_var" 1>&6

  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    
        ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
      -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    
    cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  fi

  LIBS="$ac_save_LIBS"

  if test "$ac_cv_lib_X11_main" == "yes"; then
    X11LIBS="-lX11 $X11LIBS"
  fi

     ac_save_LIBS="$LIBS"
  LIBS="$LIBS -lXi "$X11LIBS" "	
    
  ac_lib_var=`echo Xi'_'main | sed 'y%./+-%__p_%'`

    
  echo $ac_n "checking for main in -lXi""... $ac_c" 1>&6
echo "configure:1914: checking for main in -lXi" >&5
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
   cat > conftest.$ac_ext <<EOF
#line 1919 "configure"
#include "confdefs.h"

int main() {
 main()
; return 0; }
EOF
if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no" 
fi
rm -f conftest* 
fi

echo "$ac_t""$ac_cv_lib_$ac_lib_var" 1>&6

  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    
        ac_tr_lib=HAVE_LIB`echo Xi | sed -e 's/[^a-zA-Z0-9_]/_/g' \
      -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    
    cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  fi

  LIBS="$ac_save_LIBS"

  if test "$ac_cv_lib_Xi_main" == "yes"; then
    X11LIBS="-lXi $X11LIBS"
  fi

     ac_save_LIBS="$LIBS"
  LIBS="$LIBS -lXext "$X11LIBS" "	
    
  ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`

    
  echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6
echo "configure:1964: checking for main in -lXext" >&5
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
   cat > conftest.$ac_ext <<EOF
#line 1969 "configure"
#include "confdefs.h"

int main() {
 main()
; return 0; }
EOF
if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no" 
fi
rm -f conftest* 
fi

echo "$ac_t""$ac_cv_lib_$ac_lib_var" 1>&6

  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    
        ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
      -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    
    cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  fi

  LIBS="$ac_save_LIBS"

  if test "$ac_cv_lib_Xext_main" == "yes"; then
    X11LIBS="-lXext $X11LIBS"
  fi

     ac_save_LIBS="$LIBS"
  LIBS="$LIBS -lXmu "$X11LIBS" "	
    
  ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`

    
  echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6
echo "configure:2014: checking for main in -lXmu" >&5
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
   cat > conftest.$ac_ext <<EOF
#line 2019 "configure"
#include "confdefs.h"

int main() {
 main()
; return 0; }
EOF
if { (eval echo configure:2026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no" 
fi
rm -f conftest* 
fi

echo "$ac_t""$ac_cv_lib_$ac_lib_var" 1>&6

  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    
        ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
      -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    
    cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  fi

  LIBS="$ac_save_LIBS"

  if test "$ac_cv_lib_Xmu_main" == "yes"; then
    X11LIBS="-lXmu $X11LIBS"
  fi

  echo $ac_n "checking for installed X11 components""... $ac_c" 1>&6
echo "configure:2058: checking for installed X11 components" >&5

  if test "$ac_cv_lib_X11_main" == "yes" ; then
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
#define HAVE_X11 1
EOF


    
    
    
  else
    echo "$ac_t""no" 1>&6
  fi

   acl_save_CFLAGS="${CFLAGS}"
  acl_save_LDFLAGS="${LDFLAGS}"

  CFLAGS="${CFLAGS} ${X11CFLAGS}"
  LDFLAGS="${LDFLAGS} ${X11LDFLAGS}"
  GLLIBS=""

  
     ac_save_LIBS="$LIBS"
  LIBS="$LIBS -lGL "$GLLIBS" "	
    
  ac_lib_var=`echo GL'_'main | sed 'y%./+-%__p_%'`

    
  echo $ac_n "checking for main in -lGL""... $ac_c" 1>&6
echo "configure:2089: checking for main in -lGL" >&5
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
   cat > conftest.$ac_ext <<EOF
#line 2094 "configure"
#include "confdefs.h"

int main() {
 main()
; return 0; }
EOF
if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no" 
fi
rm -f conftest* 
fi

echo "$ac_t""$ac_cv_lib_$ac_lib_var" 1>&6

  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    
        ac_tr_lib=HAVE_LIB`echo GL | sed -e 's/[^a-zA-Z0-9_]/_/g' \
      -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    
    cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  fi

  LIBS="$ac_save_LIBS"

  if test "$ac_cv_lib_GL_main" == "yes"; then
    GLLIBS="-lGL $GLLIBS"
  fi

     ac_save_LIBS="$LIBS"
  LIBS="$LIBS -lGLU "$GLLIBS" "	
    
  ac_lib_var=`echo GLU'_'main | sed 'y%./+-%__p_%'`

    
  echo $ac_n "checking for main in -lGLU""... $ac_c" 1>&6
echo "configure:2139: checking for main in -lGLU" >&5
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
   cat > conftest.$ac_ext <<EOF
#line 2144 "configure"
#include "confdefs.h"

int main() {
 main()
; return 0; }
EOF
if { (eval echo configure:2151: \"$ac_link\") 1>&5; (eval $ac_link

⌨️ 快捷键说明

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