Changeset 4840 for branches/r9/configure


Ignore:
Timestamp:
Dec 11, 2014 11:11:42 AM (9 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/r9/configure

    r4213 r4840  
    626626LIBOBJS
    627627subdirs
     628WORDSIZE
     629X_LIBRARIES
     630X_INCLUDES
     631STATSDIR
    628632VTK_VERSION
    629633VTK_TCL_DIR
     
    726730MEX
    727731MATLAB
    728 TCLSH
    729732INSTALL_STUB_LIB
    730733INSTALL_LIB
     
    751754AR
    752755CXXCPP
     756XMKMF
    753757EGREP
    754758GREP
     
    815819ac_user_opts='
    816820enable_option_checking
     821with_x
    817822with_install
     823with_statsdir
    818824enable_64bit
    819825enable_64bit_vis
     
    823829enable_gui
    824830with_ffmpeg
    825 with_tclsh
    826831with_vtk
    827832enable_vtkdicom
     
    853858FFLAGS
    854859CPP
     860XMKMF
    855861CXXCPP'
    856862ac_subdirs_all='packages/optimizer/src '
     
    14511457  cat <<\_ACEOF
    14521458
     1459X features:
     1460  --x-includes=DIR    X include files are in DIR
     1461  --x-libraries=DIR   X library files are in DIR
     1462
    14531463System types:
    14541464  --build=BUILD     configure for building on BUILD [guessed]
     
    14811491  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    14821492  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     1493  --with-x                use the X Window System
    14831494  --with-install=DIR      location of installation [default=yes]
     1495  --with-statsdir=DIR     Write statistics in DIR
    14841496  --with-ffmpeg=DIR       location of ffmpeg [default=yes]
    1485   --with-tclsh=DIR        location of tclsh [default=yes]
    14861497  --with-vtk=version      VTK library version [default=6.1]
    14871498  --with-matlab=DIR       location of matlab and mex compiler [default=yes]
     
    15111522  FFLAGS      Fortran 77 compiler flags
    15121523  CPP         C preprocessor
     1524  XMKMF       Path to xmkmf, Makefile generator for X Window System
    15131525  CXXCPP      C++ preprocessor
    15141526
     
    18991911} # ac_fn_c_check_func
    19001912
     1913# ac_fn_cxx_try_cpp LINENO
     1914# ------------------------
     1915# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
     1916ac_fn_cxx_try_cpp ()
     1917{
     1918  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1919  if { { ac_try="$ac_cpp conftest.$ac_ext"
     1920case "(($ac_try" in
     1921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1922  *) ac_try_echo=$ac_try;;
     1923esac
     1924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1925$as_echo "$ac_try_echo"; } >&5
     1926  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
     1927  ac_status=$?
     1928  if test -s conftest.err; then
     1929    grep -v '^ *+' conftest.err >conftest.er1
     1930    cat conftest.er1 >&5
     1931    mv -f conftest.er1 conftest.err
     1932  fi
     1933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1934  test $ac_status = 0; } > conftest.i && {
     1935         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     1936         test ! -s conftest.err
     1937       }; then :
     1938  ac_retval=0
     1939else
     1940  $as_echo "$as_me: failed program was:" >&5
     1941sed 's/^/| /' conftest.$ac_ext >&5
     1942
     1943    ac_retval=1
     1944fi
     1945  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1946  as_fn_set_status $ac_retval
     1947
     1948} # ac_fn_cxx_try_cpp
     1949
    19011950# ac_fn_cxx_try_link LINENO
    19021951# -------------------------
     
    20112060
    20122061} # ac_fn_cxx_check_func
    2013 
    2014 # ac_fn_cxx_try_cpp LINENO
    2015 # ------------------------
    2016 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
    2017 ac_fn_cxx_try_cpp ()
    2018 {
    2019   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2020   if { { ac_try="$ac_cpp conftest.$ac_ext"
    2021 case "(($ac_try" in
    2022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2023   *) ac_try_echo=$ac_try;;
    2024 esac
    2025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2026 $as_echo "$ac_try_echo"; } >&5
    2027   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
    2028   ac_status=$?
    2029   if test -s conftest.err; then
    2030     grep -v '^ *+' conftest.err >conftest.er1
    2031     cat conftest.er1 >&5
    2032     mv -f conftest.er1 conftest.err
    2033   fi
    2034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2035   test $ac_status = 0; } > conftest.i && {
    2036          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    2037          test ! -s conftest.err
    2038        }; then :
    2039   ac_retval=0
    2040 else
    2041   $as_echo "$as_me: failed program was:" >&5
    2042 sed 's/^/| /' conftest.$ac_ext >&5
    2043 
    2044     ac_retval=1
    2045 fi
    2046   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2047   as_fn_set_status $ac_retval
    2048 
    2049 } # ac_fn_cxx_try_cpp
    20502062
    20512063# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
     
    27902802fi
    27912803
    2792 
    2793 # Check whether --with-install was given.
    2794 if test "${with_install+set}" = set; then :
    2795   withval=$with_install;
    2796 else
    2797   with_install=yes
    2798 fi
    2799 
    2800 
    2801 if test "$with_install" != "yes"; then
    2802     INSTALL_PREFIX=$with_install
    2803 else
    2804     INSTALL_PREFIX=$prefix
    2805 fi
    2806 
    2807 
    2808 if test "${libdir}" != "${prefix}/lib"; then
    2809     LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
    2810 else
    2811     LIB_SEARCH_DIRS="-L${libdir}"
    2812 fi
    2813 
    2814 
    28152804# Find a good install program.  We prefer a C program (faster),
    28162805# so one script is as good as another.  But avoid the broken or
     
    47474736
    47484737
    4749 
    4750 for ac_func in sysinfo
    4751 do :
    4752   ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo"
    4753 if test "x$ac_cv_func_sysinfo" = xyes; then :
    4754   cat >>confdefs.h <<_ACEOF
    4755 #define HAVE_SYSINFO 1
    4756 _ACEOF
    4757 
    4758 fi
    4759 done
    4760 
    4761 for ac_func in gettimeofday
    4762 do :
    4763   ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
    4764 if test "x$ac_cv_func_gettimeofday" = xyes; then :
    4765   cat >>confdefs.h <<_ACEOF
    4766 #define HAVE_GETTIMEOFDAY 1
    4767 _ACEOF
    4768 
    4769 fi
    4770 done
    4771 
    4772 ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime"
    4773 if test "x$ac_cv_func_localtime" = xyes; then :
    4774 
    4775 else
    4776   as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5
    4777 fi
    4778 
    4779 ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
    4780 if test "x$ac_cv_func_getenv" = xyes; then :
    4781 
    4782 else
    4783   as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5
    4784 fi
    4785 
    4786 
    47874738ac_ext=cpp
    47884739ac_cpp='$CXXCPP $CPPFLAGS'
     
    49174868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    49184869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     4870
     4871
     4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
     4873$as_echo_n "checking for X... " >&6; }
     4874
     4875
     4876# Check whether --with-x was given.
     4877if test "${with_x+set}" = set; then :
     4878  withval=$with_x;
     4879fi
     4880
     4881# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
     4882if test "x$with_x" = xno; then
     4883  # The user explicitly disabled X.
     4884  have_x=disabled
     4885else
     4886  case $x_includes,$x_libraries in #(
     4887    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
     4888    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
     4889  $as_echo_n "(cached) " >&6
     4890else
     4891  # One or both of the vars are not set, and there is no cached value.
     4892ac_x_includes=no ac_x_libraries=no
     4893rm -f -r conftest.dir
     4894if mkdir conftest.dir; then
     4895  cd conftest.dir
     4896  cat >Imakefile <<'_ACEOF'
     4897incroot:
     4898        @echo incroot='${INCROOT}'
     4899usrlibdir:
     4900        @echo usrlibdir='${USRLIBDIR}'
     4901libdir:
     4902        @echo libdir='${LIBDIR}'
     4903_ACEOF
     4904  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
     4905    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
     4906    for ac_var in incroot usrlibdir libdir; do
     4907      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
     4908    done
     4909    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
     4910    for ac_extension in a so sl dylib la dll; do
     4911      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
     4912         test -f "$ac_im_libdir/libX11.$ac_extension"; then
     4913        ac_im_usrlibdir=$ac_im_libdir; break
     4914      fi
     4915    done
     4916    # Screen out bogus values from the imake configuration.  They are
     4917    # bogus both because they are the default anyway, and because
     4918    # using them would break gcc on systems where it needs fixed includes.
     4919    case $ac_im_incroot in
     4920        /usr/include) ac_x_includes= ;;
     4921        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
     4922    esac
     4923    case $ac_im_usrlibdir in
     4924        /usr/lib | /usr/lib64 | /lib | /lib64) ;;
     4925        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
     4926    esac
     4927  fi
     4928  cd ..
     4929  rm -f -r conftest.dir
     4930fi
     4931
     4932# Standard set of common directories for X headers.
     4933# Check X11 before X11Rn because it is often a symlink to the current release.
     4934ac_x_header_dirs='
     4935/usr/X11/include
     4936/usr/X11R7/include
     4937/usr/X11R6/include
     4938/usr/X11R5/include
     4939/usr/X11R4/include
     4940
     4941/usr/include/X11
     4942/usr/include/X11R7
     4943/usr/include/X11R6
     4944/usr/include/X11R5
     4945/usr/include/X11R4
     4946
     4947/usr/local/X11/include
     4948/usr/local/X11R7/include
     4949/usr/local/X11R6/include
     4950/usr/local/X11R5/include
     4951/usr/local/X11R4/include
     4952
     4953/usr/local/include/X11
     4954/usr/local/include/X11R7
     4955/usr/local/include/X11R6
     4956/usr/local/include/X11R5
     4957/usr/local/include/X11R4
     4958
     4959/usr/X386/include
     4960/usr/x386/include
     4961/usr/XFree86/include/X11
     4962
     4963/usr/include
     4964/usr/local/include
     4965/usr/unsupported/include
     4966/usr/athena/include
     4967/usr/local/x11r5/include
     4968/usr/lpp/Xamples/include
     4969
     4970/usr/openwin/include
     4971/usr/openwin/share/include'
     4972
     4973if test "$ac_x_includes" = no; then
     4974  # Guess where to find include files, by looking for Xlib.h.
     4975  # First, try using that file with no special directory specified.
     4976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4977/* end confdefs.h.  */
     4978#include <X11/Xlib.h>
     4979_ACEOF
     4980if ac_fn_cxx_try_cpp "$LINENO"; then :
     4981  # We can compile using X headers with no special include directory.
     4982ac_x_includes=
     4983else
     4984  for ac_dir in $ac_x_header_dirs; do
     4985  if test -r "$ac_dir/X11/Xlib.h"; then
     4986    ac_x_includes=$ac_dir
     4987    break
     4988  fi
     4989done
     4990fi
     4991rm -f conftest.err conftest.i conftest.$ac_ext
     4992fi # $ac_x_includes = no
     4993
     4994if test "$ac_x_libraries" = no; then
     4995  # Check for the libraries.
     4996  # See if we find them without any special options.
     4997  # Don't add to $LIBS permanently.
     4998  ac_save_LIBS=$LIBS
     4999  LIBS="-lX11 $LIBS"
     5000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5001/* end confdefs.h.  */
     5002#include <X11/Xlib.h>
     5003int
     5004main ()
     5005{
     5006XrmInitialize ()
     5007  ;
     5008  return 0;
     5009}
     5010_ACEOF
     5011if ac_fn_cxx_try_link "$LINENO"; then :
     5012  LIBS=$ac_save_LIBS
     5013# We can link X programs with no special library path.
     5014ac_x_libraries=
     5015else
     5016  LIBS=$ac_save_LIBS
     5017for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
     5018do
     5019  # Don't even attempt the hair of trying to link an X program!
     5020  for ac_extension in a so sl dylib la dll; do
     5021    if test -r "$ac_dir/libX11.$ac_extension"; then
     5022      ac_x_libraries=$ac_dir
     5023      break 2
     5024    fi
     5025  done
     5026done
     5027fi
     5028rm -f core conftest.err conftest.$ac_objext \
     5029    conftest$ac_exeext conftest.$ac_ext
     5030fi # $ac_x_libraries = no
     5031
     5032case $ac_x_includes,$ac_x_libraries in #(
     5033  no,* | *,no | *\'*)
     5034    # Didn't find X, or a directory has "'" in its name.
     5035    ac_cv_have_x="have_x=no";; #(
     5036  *)
     5037    # Record where we found X for the cache.
     5038    ac_cv_have_x="have_x=yes\
     5039        ac_x_includes='$ac_x_includes'\
     5040        ac_x_libraries='$ac_x_libraries'"
     5041esac
     5042fi
     5043;; #(
     5044    *) have_x=yes;;
     5045  esac
     5046  eval "$ac_cv_have_x"
     5047fi # $with_x != no
     5048
     5049if test "$have_x" != yes; then
     5050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
     5051$as_echo "$have_x" >&6; }
     5052  no_x=yes
     5053else
     5054  # If each of the values was on the command line, it overrides each guess.
     5055  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
     5056  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
     5057  # Update the cache value to reflect the command line values.
     5058  ac_cv_have_x="have_x=yes\
     5059        ac_x_includes='$x_includes'\
     5060        ac_x_libraries='$x_libraries'"
     5061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
     5062$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
     5063fi
     5064
     5065
     5066
     5067# Check whether --with-install was given.
     5068if test "${with_install+set}" = set; then :
     5069  withval=$with_install;
     5070else
     5071  with_install=yes
     5072fi
     5073
     5074
     5075if test "$with_install" != "yes"; then
     5076    INSTALL_PREFIX=$with_install
     5077else
     5078    INSTALL_PREFIX=$prefix
     5079fi
     5080
     5081if test "${libdir}" != "${prefix}/lib"; then
     5082    LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
     5083else
     5084    LIB_SEARCH_DIRS="-L${libdir}"
     5085fi
     5086
     5087
     5088# Check whether --with-statsdir was given.
     5089if test "${with_statsdir+set}" = set; then :
     5090  withval=$with_statsdir; STATSDIR=$withval
     5091else
     5092  STATSDIR="/var/tmp/visservers"
     5093fi
     5094
     5095
     5096
     5097for ac_func in sysinfo
     5098do :
     5099  ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo"
     5100if test "x$ac_cv_func_sysinfo" = xyes; then :
     5101  cat >>confdefs.h <<_ACEOF
     5102#define HAVE_SYSINFO 1
     5103_ACEOF
     5104
     5105fi
     5106done
     5107
     5108for ac_func in gettimeofday
     5109do :
     5110  ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
     5111if test "x$ac_cv_func_gettimeofday" = xyes; then :
     5112  cat >>confdefs.h <<_ACEOF
     5113#define HAVE_GETTIMEOFDAY 1
     5114_ACEOF
     5115
     5116fi
     5117done
     5118
     5119ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime"
     5120if test "x$ac_cv_func_localtime" = xyes; then :
     5121
     5122else
     5123  as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5
     5124fi
     5125
     5126ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
     5127if test "x$ac_cv_func_getenv" = xyes; then :
     5128
     5129else
     5130  as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5
     5131fi
    49195132
    49205133
     
    73567569
    73577570
    7358 
    7359 # Check whether --with-tclsh was given.
    7360 if test "${with_tclsh+set}" = set; then :
    7361   withval=$with_tclsh;
    7362 else
    7363   with_tclsh=yes
    7364 fi
    7365 
    7366 
    7367 TCLSH=""
    7368 if test "${with_tclsh}" != "no" ; then
    7369   tclsh="tclsh${TCL_VERSION}"
    7370   if test "${with_tclsh}" = "yes" ; then
    7371     # Extract the first word of "${tclsh}", so it can be a program name with args.
    7372 set dummy ${tclsh}; ac_word=$2
    7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7374 $as_echo_n "checking for $ac_word... " >&6; }
    7375 if ${ac_cv_path_TCLSH+:} false; then :
    7376   $as_echo_n "(cached) " >&6
    7377 else
    7378   case $TCLSH in
    7379   [\\/]* | ?:[\\/]*)
    7380   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
    7381   ;;
    7382   *)
    7383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7384 as_dummy="${exec_prefix}/bin:${PATH}"
    7385 for as_dir in $as_dummy
    7386 do
    7387   IFS=$as_save_IFS
    7388   test -z "$as_dir" && as_dir=.
    7389     for ac_exec_ext in '' $ac_executable_extensions; do
    7390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7391     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
    7392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7393     break 2
    7394   fi
    7395 done
    7396   done
    7397 IFS=$as_save_IFS
    7398 
    7399   ;;
    7400 esac
    7401 fi
    7402 TCLSH=$ac_cv_path_TCLSH
    7403 if test -n "$TCLSH"; then
    7404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
    7405 $as_echo "$TCLSH" >&6; }
    7406 else
    7407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7408 $as_echo "no" >&6; }
    7409 fi
    7410 
    7411 
    7412   else
    7413     # Extract the first word of "${tclsh}", so it can be a program name with args.
    7414 set dummy ${tclsh}; ac_word=$2
    7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7416 $as_echo_n "checking for $ac_word... " >&6; }
    7417 if ${ac_cv_path_TCLSH+:} false; then :
    7418   $as_echo_n "(cached) " >&6
    7419 else
    7420   case $TCLSH in
    7421   [\\/]* | ?:[\\/]*)
    7422   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
    7423   ;;
    7424   *)
    7425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7426 as_dummy="${with_tclsh}/bin:${with_tclsh}"
    7427 for as_dir in $as_dummy
    7428 do
    7429   IFS=$as_save_IFS
    7430   test -z "$as_dir" && as_dir=.
    7431     for ac_exec_ext in '' $ac_executable_extensions; do
    7432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7433     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
    7434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7435     break 2
    7436   fi
    7437 done
    7438   done
    7439 IFS=$as_save_IFS
    7440 
    7441   ;;
    7442 esac
    7443 fi
    7444 TCLSH=$ac_cv_path_TCLSH
    7445 if test -n "$TCLSH"; then
    7446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
    7447 $as_echo "$TCLSH" >&6; }
    7448 else
    7449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7450 $as_echo "no" >&6; }
    7451 fi
    7452 
    7453 
    7454   fi
    7455   if test "x${TCLSH}" = "x" ; then
    7456     as_fn_error $? "can't find tclsh" "$LINENO" 5
    7457   fi
    7458 fi
    7459 
    7460 
    74617571TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
    74627572
     
    1013510245
    1013610246MAKE=${make_command}
     10247
     10248
     10249
    1013710250
    1013810251
Note: See TracChangeset for help on using the changeset viewer.