ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/configure
(Generate patch)

Comparing trunk/OOPSE-3.0/configure (file contents):
Revision 1490 by gezelter, Fri Sep 24 04:16:43 2004 UTC vs.
Revision 2453 by gezelter, Thu Nov 17 20:39:59 2005 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by GNU Autoconf 2.59 for OOPSE 1.0.
3 > # Generated by GNU Autoconf 2.59 for OOPSE 2.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
# Line 269 | Line 269 | PACKAGE_VERSION='1.0'
269   # Identity of this package.
270   PACKAGE_NAME='OOPSE'
271   PACKAGE_TARNAME='oopse'
272 < PACKAGE_VERSION='1.0'
273 < PACKAGE_STRING='OOPSE 1.0'
272 > PACKAGE_VERSION='2.0'
273 > PACKAGE_STRING='OOPSE 2.0'
274   PACKAGE_BUGREPORT='gezelter@nd.edu'
275  
276 < ac_unique_file="src/oopse.cpp"
276 > ac_unique_file="src/applications/oopse/oopse.cpp"
277   ac_default_prefix="/usr/local"
278   # Factoring default headers for most tests.
279   ac_includes_default="\
# Line 312 | Line 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKA
312   # include <unistd.h>
313   #endif"
314  
315 < ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC CPP EGREP LIBOBJS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI SPRNG_LIB_DIR SPRNG_INC_DIR SPRNG_LIB USE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LTLIBOBJS'
315 > ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES CPP EGREP CXXCPP LIBOBJS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT PERLINTERP PERL_SHEBANG AR PS MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI USE_CGAL CGAL_INC_DIR CGAL_LIB_DIR CGAL_RLIB_DIR CGAL_DEFINES CGAL_CXXFLAGS CGAL_LIBS DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LTLIBOBJS'
316   ac_subst_files=''
317  
318   # Initialize some variables set by options.
# Line 789 | Line 789 | ac_cv_env_CPP_value=$CPP
789   ac_env_CPP_value=$CPP
790   ac_cv_env_CPP_set=${CPP+set}
791   ac_cv_env_CPP_value=$CPP
792 + ac_env_CXXCPP_set=${CXXCPP+set}
793 + ac_env_CXXCPP_value=$CXXCPP
794 + ac_cv_env_CXXCPP_set=${CXXCPP+set}
795 + ac_cv_env_CXXCPP_value=$CXXCPP
796  
797   #
798   # Report the --help message.
# Line 797 | Line 801 | if test "$ac_init_help" = "long"; then
801    # Omit some internal or obsolete options to make the list less imposing.
802    # This message is too long to be a string in the A/UX 3.1 sh.
803    cat <<_ACEOF
804 < \`configure' configures OOPSE 1.0 to adapt to many kinds of systems.
804 > \`configure' configures OOPSE 2.0 to adapt to many kinds of systems.
805  
806   Usage: $0 [OPTION]... [VAR=VALUE]...
807  
# Line 858 | Line 862 | if test -n "$ac_init_help"; then
862  
863   if test -n "$ac_init_help"; then
864    case $ac_init_help in
865 <     short | recursive ) echo "Configuration of OOPSE 1.0:";;
865 >     short | recursive ) echo "Configuration of OOPSE 2.0:";;
866     esac
867    cat <<\_ACEOF
868  
# Line 866 | Line 870 | Optional Features:
870    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
871    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
872    --enable-debug          Compile OOPSE in debug mode
873 +  --enable-doxygen        enable documentation generation with doxygen (auto)
874 +  --enable-dot            use 'dot' to generate graphs in doxygen (auto)
875 +  --enable-html-docs      enable HTML generation with doxygen (yes)
876 +  --enable-latex-docs     enable LaTeX documentation generation with doxygen (no)
877    --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse
878  
879   Optional Packages:
880    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
881    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
882 +  --with-zlib=DIR root directory path of zlib installation defaults to
883 +                    /usr/local or /usr if not found in /usr/local
884 +  --without-zlib to disable zlib usage completely
885 +  --with-perl-shebang     override what perl thinks is the way for the kernel
886 +                          to start it (seldom needed)
887    --with-mpi=<prefix>     compile with MPI installed in <prefix> [default=no]
888 <  --with-sprng=<prefix>   compile with SPRNG installed in <prefix>
876 <                          [default=/usr/local]
877 <  --with-mkl              Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61
888 >  --with-cgal-makefile=FILE  CGAL makefile that should be used
889  
890   Some influential environment variables:
891    CC          C compiler command
# Line 888 | Line 899 | Some influential environment variables:
899    F90         Fortran 90 compiler command
900    F90FLAGS    Fortran 90 compiler flags
901    CPP         C preprocessor
902 +  CXXCPP      C++ preprocessor
903  
904   Use these variables to override the choices made by `configure' or to help
905   it to find libraries and programs with nonstandard names/locations.
# Line 988 | Line 1000 | OOPSE configure 1.0
1000   test -n "$ac_init_help" && exit 0
1001   if $ac_init_version; then
1002    cat <<\_ACEOF
1003 < OOPSE configure 1.0
1003 > OOPSE configure 2.0
1004   generated by GNU Autoconf 2.59
1005  
1006   Copyright (C) 2003 Free Software Foundation, Inc.
# Line 1002 | Line 1014 | It was created by OOPSE $as_me 1.0, which was
1014   This file contains any messages produced by compilers while
1015   running configure, to aid debugging if configure makes a mistake.
1016  
1017 < It was created by OOPSE $as_me 1.0, which was
1017 > It was created by OOPSE $as_me 2.0, which was
1018   generated by GNU Autoconf 2.59.  Invocation command line was
1019  
1020    $ $0 $@
# Line 1813 | Line 1825 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1825   # $SHELLVAR to the Fortran 95 mangled name.  If the SHELLVAR
1826   # argument is not supplied, it defaults to NAME.
1827   # AC_F95_FUNC
1828 +
1829 + # AC_F90_MODULE_NAMES
1830 + # -------------------
1831 + #
1832 + # Figure out how the Fortran 90 compiler constructs module file names
1833 + #
1834 + # AC_F90_MODULE_NAMES
1835  
1836  
1837  
# Line 1860 | Line 1879 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1879  
1880  
1881  
1882 +
1883 +
1884 +
1885 +
1886 +
1887 +
1888 + #
1889 + #
1890 + #
1891  
1892  
1893  
# Line 1947 | Line 1975 | ac_ext=c
1975  
1976  
1977  
1978 +
1979 +
1980   ac_ext=c
1981   ac_cpp='$CPP $CPPFLAGS'
1982   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 3525 | Line 3555 | F90FLAGS="$F90FLAGS $ac_verb"
3555   ac_save_F90FLAGS=$F90FLAGS
3556   F90FLAGS="$F90FLAGS $ac_verb"
3557  
3558 < (eval echo $as_me:3528: \"$ac_link\") >&5
3558 > (eval echo $as_me:3558: \"$ac_link\") >&5
3559   ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3560   echo "$ac_f90_v_output" >&5
3561   F90FLAGS=$ac_save_F90FLAGS
# Line 3602 | Line 3632 | F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3632   ac_save_F90FLAGS=$F90FLAGS
3633   F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3634  
3635 < (eval echo $as_me:3605: \"$ac_link\") >&5
3635 > (eval echo $as_me:3635: \"$ac_link\") >&5
3636   ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3637   echo "$ac_f90_v_output" >&5
3638   F90FLAGS=$ac_save_F90FLAGS
# Line 4200 | Line 4230 | ac_ext=c
4230   fi
4231  
4232  
4233 + echo "$as_me:$LINENO: checking for Fortran 90 module file names" >&5
4234 + echo $ECHO_N "checking for Fortran 90 module file names... $ECHO_C" >&6
4235 + if test "${ac_cv_f90_module_names+set}" = set; then
4236 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4237 + else
4238 +  ac_ext=f90
4239 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4240 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4242 +
4243 + # carry out the test in a new directory, so that we don't miss anything
4244 + mkdir conftest
4245 + cd conftest
4246 + cat >conftest.$ac_ext <<_ACEOF
4247 + MODULE Bar
4248 + END MODULE Bar
4249 + _ACEOF
4250 + rm -f conftest.$ac_objext
4251 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4252 +  (eval $ac_compile) 2>conftest.er1
4253 +  ac_status=$?
4254 +  grep -v '^ *+' conftest.er1 >conftest.err
4255 +  rm -f conftest.er1
4256 +  cat conftest.err >&5
4257 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 +  (exit $ac_status); } &&
4259 +         { ac_try='test -z "$ac_f90_werror_flag"
4260 +                         || test ! -s conftest.err'
4261 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 +  (eval $ac_try) 2>&5
4263 +  ac_status=$?
4264 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 +  (exit $ac_status); }; } &&
4266 +         { ac_try='test -s conftest.$ac_objext'
4267 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 +  (eval $ac_try) 2>&5
4269 +  ac_status=$?
4270 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 +  (exit $ac_status); }; }; then
4272 +  ac_cv_f90_module_names=
4273 + ac_file_list=*
4274 + for ac_file in $ac_file_list; do
4275 +   case $ac_file in
4276 +      # don't care for original source and object files
4277 +      conftest.$ac_ext | conftest.$ac_objext | conftest.err )
4278 +          :
4279 +          ;;
4280 +      # look for new files derived from the file name
4281 +      *conftest*)
4282 +          ac_pat=`echo $ac_file | sed s/conftest/%FILE%/`
4283 +            ac_exists=false
4284 +  for ac_i in $ac_cv_f90_module_names; do
4285 +    if test x"$ac_pat" = x"$ac_i"; then
4286 +      ac_exists=true
4287 +      break
4288 +    fi
4289 +  done
4290 +
4291 +  if test x"$ac_exists" = xtrue; then
4292 +  :
4293 + else
4294 +  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4295 + fi
4296 +
4297 +          ;;
4298 +      # look for new files derived from the module name,
4299 +      # with different case translation schemes
4300 +      *Bar*)
4301 +          ac_pat=`echo $ac_file | sed s/Bar/%Module%/`
4302 +            ac_exists=false
4303 +  for ac_i in $ac_cv_f90_module_names; do
4304 +    if test x"$ac_pat" = x"$ac_i"; then
4305 +      ac_exists=true
4306 +      break
4307 +    fi
4308 +  done
4309 +
4310 +  if test x"$ac_exists" = xtrue; then
4311 +  :
4312 + else
4313 +  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4314 + fi
4315 +
4316 +          ;;
4317 +      *bar*)
4318 +          ac_pat=`echo $ac_file | sed s/bar/%module%/`
4319 +            ac_exists=false
4320 +  for ac_i in $ac_cv_f90_module_names; do
4321 +    if test x"$ac_pat" = x"$ac_i"; then
4322 +      ac_exists=true
4323 +      break
4324 +    fi
4325 +  done
4326 +
4327 +  if test x"$ac_exists" = xtrue; then
4328 +  :
4329 + else
4330 +  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4331 + fi
4332 +
4333 +          ;;
4334 +      *BAR*)
4335 +          ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
4336 +            ac_exists=false
4337 +  for ac_i in $ac_cv_f90_module_names; do
4338 +    if test x"$ac_pat" = x"$ac_i"; then
4339 +      ac_exists=true
4340 +      break
4341 +    fi
4342 +  done
4343 +
4344 +  if test x"$ac_exists" = xtrue; then
4345 +  :
4346 + else
4347 +  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4348 + fi
4349 +
4350 +          ;;
4351 +       # Other files - we have no idea how they are generated
4352 +       *)
4353 +          { echo "$as_me:$LINENO: WARNING: Bogus file found: $ac_file" >&5
4354 + echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
4355 +          ;;
4356 +   esac
4357 + done
4358 + if test "x$ac_cv_f90_module_names" = "x"; then
4359 +  { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
4360 + echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
4361 + fi
4362 +
4363 + else
4364 +  echo "$as_me: failed program was:" >&5
4365 + sed 's/^/| /' conftest.$ac_ext >&5
4366 +
4367 + ac_cv_f90_module_names=
4368 + { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
4369 + echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
4370 + fi
4371 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4372 + cd ..
4373 + # cleanup
4374 + rm -rf conftest
4375 + ac_ext=f90
4376 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4377 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4379 +
4380 + fi
4381 + echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5
4382 + echo "${ECHO_T}$ac_cv_f90_module_names" >&6 # AC_CACHE_CHECK
4383 +
4384 + # We now generate a shell script that will help us to figure out the correct
4385 + # module file names, using the value of ac_cv_f90_module_names
4386 +
4387 + echo "Generating shell script modnam"
4388 +
4389 + cat > scripts/modnam << EOF
4390 + #! /bin/sh
4391 + # This script is auto-generated by configure
4392 + #
4393 + usage="\\
4394 + Usage: \$0 [FILES]
4395 +
4396 + [FILES] are Fortran 90 source files.
4397 + The output is a list of module file names that the Fortran 90 compiler
4398 + generates when compiling [FILES]."
4399 +
4400 + list=
4401 + empty=
4402 +
4403 + if test \$# -eq 0; then
4404 +   echo "\$usage"; exit 0
4405 + fi
4406 +
4407 + while test \$# != 0; do
4408 +
4409 +  file=\$1
4410 +  shift
4411 +
4412 + # strip suffix
4413 +  base=\`echo \$file | sed 's/[.][^.]*$//'\`
4414 +
4415 +  test ! -f \$file && continue
4416 +
4417 + # Look for module definitions and transform them to upper / lower case
4418 +  mods=\`cat \$file | sed '/^ *[mM][oO][dD][uU][lL][eE]/!d;s/^ *[mM][oO][dD][uU][lL][eE] *\([A-Za-z_][A-Za-z0-9_]*\).*\$/\1/'\`
4419 +  upper=\`echo \$mods | tr a-z A-Z\`
4420 +  lower=\`echo \$mods | tr A-Z a-z\`
4421 +
4422 + # Here, the patterns for generating module file names were inserted by configure
4423 +  for trans in $ac_cv_f90_module_names; do
4424 +
4425 +    pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
4426 +    var=empty
4427 +    case \$pat in
4428 +       %MODULE%)
4429 +          var=upper ;;
4430 +       %Module%)
4431 +          var=mods ;;
4432 +       %module%)
4433 +          var=lower ;;
4434 +       %FILE%)
4435 +          test -n "\$mods" && var=base ;;
4436 +    esac
4437 +    new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
4438 +    list="\$list \$new"
4439 +  done
4440 + done
4441 +
4442 + echo \$list
4443 + # end of configure-generated script
4444 + EOF
4445 + chmod 755 scripts/modnam
4446 +
4447 + pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
4448 + F90_MODULE_NAMES=empty
4449 + case $pat in
4450 +       %MODULE%)
4451 +          F90_MODULE_NAMES=UPPER ;;
4452 +       %Module%)
4453 +          F90_MODULE_NAMES=Mixed ;;
4454 +       %module%)
4455 +          F90_MODULE_NAMES=lower ;;
4456 +       *)
4457 +          F90_MODULE_NAMES=unknown ;;
4458 + esac
4459 +
4460   ac_ext=c
4461   ac_cpp='$CPP $CPPFLAGS'
4462   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464   ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465 +
4466 +
4467 + ac_ext=cc
4468 + ac_cpp='$CXXCPP $CPPFLAGS'
4469 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4472 +
4473 +
4474 +
4475 + echo "$as_me:$LINENO: checking for asin in -lm" >&5
4476 + echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6
4477 + if test "${ac_cv_lib_m_asin+set}" = set; then
4478 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4479 + else
4480 +  ac_check_lib_save_LIBS=$LIBS
4481 + LIBS="-lm  $LIBS"
4482 + cat >conftest.$ac_ext <<_ACEOF
4483 + /* confdefs.h.  */
4484 + _ACEOF
4485 + cat confdefs.h >>conftest.$ac_ext
4486 + cat >>conftest.$ac_ext <<_ACEOF
4487 + /* end confdefs.h.  */
4488 +
4489 + /* Override any gcc2 internal prototype to avoid an error.  */
4490 + #ifdef __cplusplus
4491 + extern "C"
4492 + #endif
4493 + /* We use char because int might match the return type of a gcc2
4494 +   builtin and then its argument prototype would still apply.  */
4495 + char asin ();
4496 + int
4497 + main ()
4498 + {
4499 + asin ();
4500 +  ;
4501 +  return 0;
4502 + }
4503 + _ACEOF
4504 + rm -f conftest.$ac_objext conftest$ac_exeext
4505 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4506 +  (eval $ac_link) 2>conftest.er1
4507 +  ac_status=$?
4508 +  grep -v '^ *+' conftest.er1 >conftest.err
4509 +  rm -f conftest.er1
4510 +  cat conftest.err >&5
4511 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 +  (exit $ac_status); } &&
4513 +         { ac_try='test -z "$ac_cxx_werror_flag"
4514 +                         || test ! -s conftest.err'
4515 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 +  (eval $ac_try) 2>&5
4517 +  ac_status=$?
4518 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 +  (exit $ac_status); }; } &&
4520 +         { ac_try='test -s conftest$ac_exeext'
4521 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 +  (eval $ac_try) 2>&5
4523 +  ac_status=$?
4524 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 +  (exit $ac_status); }; }; then
4526 +  ac_cv_lib_m_asin=yes
4527 + else
4528 +  echo "$as_me: failed program was:" >&5
4529 + sed 's/^/| /' conftest.$ac_ext >&5
4530 +
4531 + ac_cv_lib_m_asin=no
4532 + fi
4533 + rm -f conftest.err conftest.$ac_objext \
4534 +      conftest$ac_exeext conftest.$ac_ext
4535 + LIBS=$ac_check_lib_save_LIBS
4536 + fi
4537 + echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5
4538 + echo "${ECHO_T}$ac_cv_lib_m_asin" >&6
4539 + if test $ac_cv_lib_m_asin = yes; then
4540 +  cat >>confdefs.h <<_ACEOF
4541 + #define HAVE_LIBM 1
4542 + _ACEOF
4543 +
4544 +  LIBS="-lm $LIBS"
4545 +
4546 + else
4547 +  exit
4548 + fi
4549  
4550  
4551   ac_ext=c
# Line 4701 | Line 5042 | done
5042   done
5043  
5044  
5045 <  # clean out junk possibly left behind by a previous configuration
5046 <  rm -f utils/getopt.h
5047 <  # Check for getopt_long support
5045 > #
5046 > # Handle user hints
5047 > #
5048 > echo "$as_me:$LINENO: checking if zlib is wanted" >&5
5049 > echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6
5050  
5051 < for ac_header in getopt.h
5052 < do
5053 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5054 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
5055 <  echo "$as_me:$LINENO: checking for $ac_header" >&5
5056 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5057 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
5051 > # Check whether --with-zlib or --without-zlib was given.
5052 > if test "${with_zlib+set}" = set; then
5053 >  withval="$with_zlib"
5054 >  if test "$withval" != no ; then
5055 >  echo "$as_me:$LINENO: result: yes" >&5
5056 > echo "${ECHO_T}yes" >&6
5057 >  if test -d "$withval"
5058 >  then
5059 >    ZLIB_HOME="$withval"
5060 >  else
5061 >    { echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5
5062 > echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;}
5063 >  fi
5064 > else
5065 >  echo "$as_me:$LINENO: result: no" >&5
5066 > echo "${ECHO_T}no" >&6
5067 > fi
5068 > fi;
5069 >
5070 > ZLIB_HOME=/usr/local
5071 > if test ! -f "${ZLIB_HOME}/include/zlib.h"
5072 > then
5073 >        ZLIB_HOME=/usr
5074 > fi
5075 >
5076 > #
5077 > # Locate zlib, if wanted
5078 > #
5079 > if test -n "${ZLIB_HOME}"
5080 > then
5081 >        ZLIB_OLD_LDFLAGS=$LDFLAGS
5082 >        ZLIB_OLD_CPPFLAGS=$LDFLAGS
5083 >        LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
5084 >        CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
5085 >
5086 >
5087 >        ac_ext=c
5088 > ac_cpp='$CPP $CPPFLAGS'
5089 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
5092 >
5093 >        echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
5094 > echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
5095 > if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
5096    echo $ECHO_N "(cached) $ECHO_C" >&6
5097 + else
5098 +  ac_check_lib_save_LIBS=$LIBS
5099 + LIBS="-lz  $LIBS"
5100 + cat >conftest.$ac_ext <<_ACEOF
5101 + /* confdefs.h.  */
5102 + _ACEOF
5103 + cat confdefs.h >>conftest.$ac_ext
5104 + cat >>conftest.$ac_ext <<_ACEOF
5105 + /* end confdefs.h.  */
5106 +
5107 + /* Override any gcc2 internal prototype to avoid an error.  */
5108 + #ifdef __cplusplus
5109 + extern "C"
5110 + #endif
5111 + /* We use char because int might match the return type of a gcc2
5112 +   builtin and then its argument prototype would still apply.  */
5113 + char inflateEnd ();
5114 + int
5115 + main ()
5116 + {
5117 + inflateEnd ();
5118 +  ;
5119 +  return 0;
5120 + }
5121 + _ACEOF
5122 + rm -f conftest.$ac_objext conftest$ac_exeext
5123 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124 +  (eval $ac_link) 2>conftest.er1
5125 +  ac_status=$?
5126 +  grep -v '^ *+' conftest.er1 >conftest.err
5127 +  rm -f conftest.er1
5128 +  cat conftest.err >&5
5129 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 +  (exit $ac_status); } &&
5131 +         { ac_try='test -z "$ac_c_werror_flag"
5132 +                         || test ! -s conftest.err'
5133 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 +  (eval $ac_try) 2>&5
5135 +  ac_status=$?
5136 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 +  (exit $ac_status); }; } &&
5138 +         { ac_try='test -s conftest$ac_exeext'
5139 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 +  (eval $ac_try) 2>&5
5141 +  ac_status=$?
5142 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 +  (exit $ac_status); }; }; then
5144 +  ac_cv_lib_z_inflateEnd=yes
5145 + else
5146 +  echo "$as_me: failed program was:" >&5
5147 + sed 's/^/| /' conftest.$ac_ext >&5
5148 +
5149 + ac_cv_lib_z_inflateEnd=no
5150   fi
5151 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5152 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5151 > rm -f conftest.err conftest.$ac_objext \
5152 >      conftest$ac_exeext conftest.$ac_ext
5153 > LIBS=$ac_check_lib_save_LIBS
5154 > fi
5155 > echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
5156 > echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
5157 > if test $ac_cv_lib_z_inflateEnd = yes; then
5158 >  zlib_cv_libz=yes
5159   else
5160 +  zlib_cv_libz=no
5161 + fi
5162 +
5163 +        if test "${ac_cv_header_zlib_h+set}" = set; then
5164 +  echo "$as_me:$LINENO: checking for zlib.h" >&5
5165 + echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5166 + if test "${ac_cv_header_zlib_h+set}" = set; then
5167 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5168 + fi
5169 + echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5170 + echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5171 + else
5172    # Is the header compilable?
5173 < echo "$as_me:$LINENO: checking $ac_header usability" >&5
5174 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5173 > echo "$as_me:$LINENO: checking zlib.h usability" >&5
5174 > echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
5175   cat >conftest.$ac_ext <<_ACEOF
5176   /* confdefs.h.  */
5177   _ACEOF
# Line 4727 | Line 5179 | $ac_includes_default
5179   cat >>conftest.$ac_ext <<_ACEOF
5180   /* end confdefs.h.  */
5181   $ac_includes_default
5182 < #include <$ac_header>
5182 > #include <zlib.h>
5183   _ACEOF
5184   rm -f conftest.$ac_objext
5185   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 4763 | Line 5215 | echo "$as_me:$LINENO: checking $ac_header presence" >&
5215   echo "${ECHO_T}$ac_header_compiler" >&6
5216  
5217   # Is the header present?
5218 < echo "$as_me:$LINENO: checking $ac_header presence" >&5
5219 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5218 > echo "$as_me:$LINENO: checking zlib.h presence" >&5
5219 > echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
5220   cat >conftest.$ac_ext <<_ACEOF
5221   /* confdefs.h.  */
5222   _ACEOF
5223   cat confdefs.h >>conftest.$ac_ext
5224   cat >>conftest.$ac_ext <<_ACEOF
5225   /* end confdefs.h.  */
5226 < #include <$ac_header>
5226 > #include <zlib.h>
5227   _ACEOF
5228   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5229    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 4805 | Line 5257 | case $ac_header_compiler:$ac_header_preproc:$ac_c_prep
5257   # So?  What about this header?
5258   case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5259    yes:no: )
5260 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5261 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5262 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5263 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5260 >    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5261 > echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5262 >    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
5263 > echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
5264      ac_header_preproc=yes
5265      ;;
5266    no:yes:* )
5267 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5268 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5269 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5270 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5271 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5272 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5273 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5274 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5275 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5276 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5277 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5278 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5267 >    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
5268 > echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
5269 >    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
5270 > echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
5271 >    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
5272 > echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
5273 >    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
5274 > echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5275 >    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
5276 > echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
5277 >    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
5278 > echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
5279      (
5280        cat <<\_ASBOX
5281   ## ------------------------------ ##
# Line 4834 | Line 5286 | echo "$as_me:$LINENO: checking for $ac_header" >&5
5286        sed "s/^/$as_me: WARNING:     /" >&2
5287      ;;
5288   esac
5289 < echo "$as_me:$LINENO: checking for $ac_header" >&5
5290 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5291 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
5289 > echo "$as_me:$LINENO: checking for zlib.h" >&5
5290 > echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5291 > if test "${ac_cv_header_zlib_h+set}" = set; then
5292    echo $ECHO_N "(cached) $ECHO_C" >&6
5293   else
5294 <  eval "$as_ac_Header=\$ac_header_preproc"
5294 >  ac_cv_header_zlib_h=$ac_header_preproc
5295   fi
5296 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5297 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5296 > echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5297 > echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5298  
5299   fi
5300 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
5301 <  cat >>confdefs.h <<_ACEOF
5302 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5303 < _ACEOF
4852 <
5300 > if test $ac_cv_header_zlib_h = yes; then
5301 >  zlib_cv_zlib_h=yes
5302 > else
5303 >  zlib_cv_zlib_h=no
5304   fi
5305  
4855 done
5306  
5307 +        ac_ext=c
5308 + ac_cpp='$CPP $CPPFLAGS'
5309 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
5312  
5313 < for ac_func in getopt_long
5314 < do
5315 < as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5316 < echo "$as_me:$LINENO: checking for $ac_func" >&5
5317 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5318 < if eval "test \"\${$as_ac_var+set}\" = set"; then
5313 >        if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"
5314 >        then
5315 >                #
5316 >                # If both library and header were found, use them
5317 >                #
5318 >
5319 > echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
5320 > echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
5321 > if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
5322    echo $ECHO_N "(cached) $ECHO_C" >&6
5323   else
5324 <  cat >conftest.$ac_ext <<_ACEOF
5324 >  ac_check_lib_save_LIBS=$LIBS
5325 > LIBS="-lz  $LIBS"
5326 > cat >conftest.$ac_ext <<_ACEOF
5327   /* confdefs.h.  */
5328   _ACEOF
5329   cat confdefs.h >>conftest.$ac_ext
5330   cat >>conftest.$ac_ext <<_ACEOF
5331   /* end confdefs.h.  */
4872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4873   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4874 #define $ac_func innocuous_$ac_func
5332  
4876 /* System header to define __stub macros and hopefully few prototypes,
4877    which can conflict with char $ac_func (); below.
4878    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4879    <limits.h> exists even on freestanding compilers.  */
4880
4881 #ifdef __STDC__
4882 # include <limits.h>
4883 #else
4884 # include <assert.h>
4885 #endif
4886
4887 #undef $ac_func
4888
5333   /* Override any gcc2 internal prototype to avoid an error.  */
5334   #ifdef __cplusplus
5335   extern "C"
4892 {
5336   #endif
5337   /* We use char because int might match the return type of a gcc2
5338     builtin and then its argument prototype would still apply.  */
5339 < char $ac_func ();
4897 < /* The GNU C library defines this for functions which it implements
4898 <    to always fail with ENOSYS.  Some functions are actually named
4899 <    something starting with __ and the normal name is an alias.  */
4900 < #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4901 < choke me
4902 < #else
4903 < char (*f) () = $ac_func;
4904 < #endif
4905 < #ifdef __cplusplus
4906 < }
4907 < #endif
4908 <
5339 > char inflateEnd ();
5340   int
5341   main ()
5342   {
5343 < return f != $ac_func;
5343 > inflateEnd ();
5344    ;
5345    return 0;
5346   }
# Line 4936 | Line 5367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5367    ac_status=$?
5368    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369    (exit $ac_status); }; }; then
5370 <  eval "$as_ac_var=yes"
5370 >  ac_cv_lib_z_inflateEnd=yes
5371   else
5372    echo "$as_me: failed program was:" >&5
5373   sed 's/^/| /' conftest.$ac_ext >&5
5374  
5375 < eval "$as_ac_var=no"
5375 > ac_cv_lib_z_inflateEnd=no
5376   fi
5377   rm -f conftest.err conftest.$ac_objext \
5378        conftest$ac_exeext conftest.$ac_ext
5379 + LIBS=$ac_check_lib_save_LIBS
5380   fi
5381 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5382 < echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5383 < if test `eval echo '${'$as_ac_var'}'` = yes; then
5381 > echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
5382 > echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
5383 > if test $ac_cv_lib_z_inflateEnd = yes; then
5384    cat >>confdefs.h <<_ACEOF
5385 < #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5385 > #define HAVE_LIBZ 1
5386   _ACEOF
5387  
5388 < else
5389 <  # FreeBSD has a gnugetopt library for this
5390 <    echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
5391 < echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
5392 < if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
5388 >  LIBS="-lz $LIBS"
5389 >
5390 > fi
5391 >
5392 >                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
5393 > echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
5394 >                echo "$as_me:$LINENO: result: ok" >&5
5395 > echo "${ECHO_T}ok" >&6
5396 >        else
5397 >                #
5398 >                # If either header or library was not found, revert and bomb
5399 >                #
5400 >                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
5401 > echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
5402 >                LDFLAGS="$ZLIB_OLD_LDFLAGS"
5403 >                CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
5404 >                echo "$as_me:$LINENO: result: failed" >&5
5405 > echo "${ECHO_T}failed" >&6
5406 >                { { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5
5407 > echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;}
5408 >   { (exit 1); exit 1; }; }
5409 >        fi
5410 > fi
5411 >
5412 >
5413 >
5414 >
5415 >
5416 >
5417 >
5418 >
5419 > for ac_header in sys/time.h unistd.h stdlib.h stdio.h conio.h string.h
5420 > do
5421 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5422 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5423 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
5424 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5425 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5426    echo $ECHO_N "(cached) $ECHO_C" >&6
5427 + fi
5428 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5429 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5430   else
5431 <  ac_check_lib_save_LIBS=$LIBS
5432 < LIBS="-lgnugetopt  $LIBS"
5431 >  # Is the header compilable?
5432 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
5433 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5434   cat >conftest.$ac_ext <<_ACEOF
5435   /* confdefs.h.  */
5436   _ACEOF
5437   cat confdefs.h >>conftest.$ac_ext
5438   cat >>conftest.$ac_ext <<_ACEOF
5439   /* end confdefs.h.  */
5440 <
5441 < /* Override any gcc2 internal prototype to avoid an error.  */
4973 < #ifdef __cplusplus
4974 < extern "C"
4975 < #endif
4976 < /* We use char because int might match the return type of a gcc2
4977 <   builtin and then its argument prototype would still apply.  */
4978 < char getopt_long ();
4979 < int
4980 < main ()
4981 < {
4982 < getopt_long ();
4983 <  ;
4984 <  return 0;
4985 < }
5440 > $ac_includes_default
5441 > #include <$ac_header>
5442   _ACEOF
5443 < rm -f conftest.$ac_objext conftest$ac_exeext
5444 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5445 <  (eval $ac_link) 2>conftest.er1
5443 > rm -f conftest.$ac_objext
5444 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5445 >  (eval $ac_compile) 2>conftest.er1
5446    ac_status=$?
5447    grep -v '^ *+' conftest.er1 >conftest.err
5448    rm -f conftest.er1
# Line 5000 | Line 5456 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5456    ac_status=$?
5457    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458    (exit $ac_status); }; } &&
5459 <         { ac_try='test -s conftest$ac_exeext'
5459 >         { ac_try='test -s conftest.$ac_objext'
5460    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461    (eval $ac_try) 2>&5
5462    ac_status=$?
5463    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464    (exit $ac_status); }; }; then
5465 <  ac_cv_lib_gnugetopt_getopt_long=yes
5465 >  ac_header_compiler=yes
5466   else
5467    echo "$as_me: failed program was:" >&5
5468   sed 's/^/| /' conftest.$ac_ext >&5
5469  
5470 < ac_cv_lib_gnugetopt_getopt_long=no
5470 > ac_header_compiler=no
5471   fi
5472 < rm -f conftest.err conftest.$ac_objext \
5473 <      conftest$ac_exeext conftest.$ac_ext
5474 < LIBS=$ac_check_lib_save_LIBS
5019 < fi
5020 < echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
5021 < echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
5022 < if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
5023 <  cat >>confdefs.h <<\_ACEOF
5024 < #define HAVE_GETOPT_LONG 1
5025 < _ACEOF
5472 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5473 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5474 > echo "${ECHO_T}$ac_header_compiler" >&6
5475  
5476 + # Is the header present?
5477 + echo "$as_me:$LINENO: checking $ac_header presence" >&5
5478 + echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5479 + cat >conftest.$ac_ext <<_ACEOF
5480 + /* confdefs.h.  */
5481 + _ACEOF
5482 + cat confdefs.h >>conftest.$ac_ext
5483 + cat >>conftest.$ac_ext <<_ACEOF
5484 + /* end confdefs.h.  */
5485 + #include <$ac_header>
5486 + _ACEOF
5487 + if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5488 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5489 +  ac_status=$?
5490 +  grep -v '^ *+' conftest.er1 >conftest.err
5491 +  rm -f conftest.er1
5492 +  cat conftest.err >&5
5493 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 +  (exit $ac_status); } >/dev/null; then
5495 +  if test -s conftest.err; then
5496 +    ac_cpp_err=$ac_c_preproc_warn_flag
5497 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5498 +  else
5499 +    ac_cpp_err=
5500 +  fi
5501   else
5502 <  # use the GNU replacement
5503 <      case $LIBOBJS in
5504 <    "getopt.$ac_objext"   | \
5505 <  *" getopt.$ac_objext"   | \
5506 <    "getopt.$ac_objext "* | \
5507 <  *" getopt.$ac_objext "* ) ;;
5508 <  *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
5035 < esac
5502 >  ac_cpp_err=yes
5503 > fi
5504 > if test -z "$ac_cpp_err"; then
5505 >  ac_header_preproc=yes
5506 > else
5507 >  echo "$as_me: failed program was:" >&5
5508 > sed 's/^/| /' conftest.$ac_ext >&5
5509  
5510 <      case $LIBOBJS in
5511 <    "getopt1.$ac_objext"   | \
5512 <  *" getopt1.$ac_objext"   | \
5513 <    "getopt1.$ac_objext "* | \
5514 <  *" getopt1.$ac_objext "* ) ;;
5042 <  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
5043 < esac
5510 >  ac_header_preproc=no
5511 > fi
5512 > rm -f conftest.err conftest.$ac_ext
5513 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5514 > echo "${ECHO_T}$ac_header_preproc" >&6
5515  
5516 <                ac_config_links="$ac_config_links utils/getopt.h:utils/gnugetopt.h"
5516 > # So?  What about this header?
5517 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5518 >  yes:no: )
5519 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5520 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5521 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5522 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5523 >    ac_header_preproc=yes
5524 >    ;;
5525 >  no:yes:* )
5526 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5527 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5528 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5529 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5530 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5531 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5532 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5533 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5534 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5535 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5536 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5537 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5538 >    (
5539 >      cat <<\_ASBOX
5540 > ## ------------------------------ ##
5541 > ## Report this to gezelter@nd.edu ##
5542 > ## ------------------------------ ##
5543 > _ASBOX
5544 >    ) |
5545 >      sed "s/^/$as_me: WARNING:     /" >&2
5546 >    ;;
5547 > esac
5548 > echo "$as_me:$LINENO: checking for $ac_header" >&5
5549 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5550 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5551 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5552 > else
5553 >  eval "$as_ac_Header=\$ac_header_preproc"
5554 > fi
5555 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5556 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5557  
5558   fi
5559 + if test `eval echo '${'$as_ac_Header'}'` = yes; then
5560 +  cat >>confdefs.h <<_ACEOF
5561 + #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5562 + _ACEOF
5563  
5564   fi
5565 +
5566   done
5567  
5568  
5569  
5054 case $debug in
5055  1)
5056     ;;
5057  *)
5570  
5571  
5572  
5573 <
5574 <
5575 <
5576 < echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
5577 < echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
5578 < if test "${ac_cv_prog_really_gcc+set}" = set; then
5573 > for ac_header in strstream.h iostream.h fstream.h math.h time.h
5574 > do
5575 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5576 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5577 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
5578 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5579 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5580    echo $ECHO_N "(cached) $ECHO_C" >&6
5581 + fi
5582 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5583 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5584   else
5585 <
5586 < cat > conftest.c <<EOF
5587 < #ifdef __GNUC__
5588 <  #ifndef __INTEL_COMPILER
5589 <     yes;
5590 <  #endif
5591 < #endif
5592 < EOF
5593 < if { ac_try='${CC-cc} -E conftest.c'
5585 >  # Is the header compilable?
5586 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
5587 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5588 > cat >conftest.$ac_ext <<_ACEOF
5589 > /* confdefs.h.  */
5590 > _ACEOF
5591 > cat confdefs.h >>conftest.$ac_ext
5592 > cat >>conftest.$ac_ext <<_ACEOF
5593 > /* end confdefs.h.  */
5594 > $ac_includes_default
5595 > #include <$ac_header>
5596 > _ACEOF
5597 > rm -f conftest.$ac_objext
5598 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5599 >  (eval $ac_compile) 2>conftest.er1
5600 >  ac_status=$?
5601 >  grep -v '^ *+' conftest.er1 >conftest.err
5602 >  rm -f conftest.er1
5603 >  cat conftest.err >&5
5604 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 >  (exit $ac_status); } &&
5606 >         { ac_try='test -z "$ac_c_werror_flag"
5607 >                         || test ! -s conftest.err'
5608    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609    (eval $ac_try) 2>&5
5610    ac_status=$?
5611    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
5613 <  ac_cv_prog_really_gcc=yes
5612 >  (exit $ac_status); }; } &&
5613 >         { ac_try='test -s conftest.$ac_objext'
5614 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 >  (eval $ac_try) 2>&5
5616 >  ac_status=$?
5617 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 >  (exit $ac_status); }; }; then
5619 >  ac_header_compiler=yes
5620   else
5621 <  ac_cv_prog_really_gcc=no
5622 < fi
5621 >  echo "$as_me: failed program was:" >&5
5622 > sed 's/^/| /' conftest.$ac_ext >&5
5623  
5624 + ac_header_compiler=no
5625   fi
5626 < echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
5627 < echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
5628 < if test "$ac_cv_prog_really_gcc" = yes; then
5092 <        :
5626 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5627 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5628 > echo "${ECHO_T}$ac_header_compiler" >&6
5629  
5630 + # Is the header present?
5631 + echo "$as_me:$LINENO: checking $ac_header presence" >&5
5632 + echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5633 + cat >conftest.$ac_ext <<_ACEOF
5634 + /* confdefs.h.  */
5635 + _ACEOF
5636 + cat confdefs.h >>conftest.$ac_ext
5637 + cat >>conftest.$ac_ext <<_ACEOF
5638 + /* end confdefs.h.  */
5639 + #include <$ac_header>
5640 + _ACEOF
5641 + if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5642 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5643 +  ac_status=$?
5644 +  grep -v '^ *+' conftest.er1 >conftest.err
5645 +  rm -f conftest.er1
5646 +  cat conftest.err >&5
5647 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 +  (exit $ac_status); } >/dev/null; then
5649 +  if test -s conftest.err; then
5650 +    ac_cpp_err=$ac_c_preproc_warn_flag
5651 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5652 +  else
5653 +    ac_cpp_err=
5654 +  fi
5655   else
5656 <        :
5656 >  ac_cpp_err=yes
5657 > fi
5658 > if test -z "$ac_cpp_err"; then
5659 >  ac_header_preproc=yes
5660 > else
5661 >  echo "$as_me: failed program was:" >&5
5662 > sed 's/^/| /' conftest.$ac_ext >&5
5663  
5664 +  ac_header_preproc=no
5665   fi
5666 + rm -f conftest.err conftest.$ac_ext
5667 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5668 + echo "${ECHO_T}$ac_header_preproc" >&6
5669  
5670 + # So?  What about this header?
5671 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5672 +  yes:no: )
5673 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5674 + echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5675 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5676 + echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5677 +    ac_header_preproc=yes
5678 +    ;;
5679 +  no:yes:* )
5680 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5681 + echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5682 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5683 + echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5684 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5685 + echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5686 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5687 + echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5688 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5689 + echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5690 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5691 + echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5692 +    (
5693 +      cat <<\_ASBOX
5694 + ## ------------------------------ ##
5695 + ## Report this to gezelter@nd.edu ##
5696 + ## ------------------------------ ##
5697 + _ASBOX
5698 +    ) |
5699 +      sed "s/^/$as_me: WARNING:     /" >&2
5700 +    ;;
5701 + esac
5702 + echo "$as_me:$LINENO: checking for $ac_header" >&5
5703 + echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5704 + if eval "test \"\${$as_ac_Header+set}\" = set"; then
5705 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5706 + else
5707 +  eval "$as_ac_Header=\$ac_header_preproc"
5708 + fi
5709 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5710 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5711  
5712 < # Try to determine "good" native compiler flags if none specified on command
5713 < # line
5714 < if test "$ac_test_CFLAGS" != "set"; then
5715 <  CFLAGS=""
5716 <  case "${host_cpu}-${host_os}" in
5712 > fi
5713 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
5714 >  cat >>confdefs.h <<_ACEOF
5715 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5716 > _ACEOF
5717  
5718 <  *linux*) if test "$CC" = icc; then
5107 <                    CFLAGS="-O"
5108 <                fi;;
5109 <  sparc-solaris2*) if test "$CC" = cc; then
5110 <                    CFLAGS="-native -fast -xO5 -dalign"
5111 <                 fi;;
5718 > fi
5719  
5720 <  alpha*-osf*)  if test "$CC" = cc; then
5114 <                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
5115 <                fi;;
5720 > done
5721  
5722 <  hppa*-hpux*)  if test "$CC" = cc; then
5723 <                    CFLAGS="-Ae +O3 +Oall"
5724 <                fi;;
5722 > ac_ext=cc
5723 > ac_cpp='$CXXCPP $CPPFLAGS'
5724 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5727  
5728 <   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
5729 <                    CFLAGS="-O3 -qtune=auto -qansialias -w"
5730 <                fi;;
5731 <   powerpc*-aix*)
5732 <        if test "$CC" = cc -o "$CC" = xlc; then
5733 <                CFLAGS="-O3 -qtune=auto -qansialias -w"
5734 <                echo "*******************************************************"
5735 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
5736 <                echo "*  recommended that you use                           *"
5737 <                echo "*                                                     *"
5738 <                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
5739 <                echo "*                                 ^^^                 *"
5728 > ac_ext=cc
5729 > ac_cpp='$CXXCPP $CPPFLAGS'
5730 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5733 > echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5734 > echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5735 > if test -z "$CXXCPP"; then
5736 >  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5737 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5738 > else
5739 >      # Double quotes because CXXCPP needs to be expanded
5740 >    for CXXCPP in "$CXX -E" "/lib/cpp"
5741 >    do
5742 >      ac_preproc_ok=false
5743 > for ac_cxx_preproc_warn_flag in '' yes
5744 > do
5745 >  # Use a header file that comes with gcc, so configuring glibc
5746 >  # with a fresh cross-compiler works.
5747 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5748 >  # <limits.h> exists even on freestanding compilers.
5749 >  # On the NeXT, cc -E runs the code through the compiler's parser,
5750 >  # not just through cpp. "Syntax error" is here to catch this case.
5751 >  cat >conftest.$ac_ext <<_ACEOF
5752 > /* confdefs.h.  */
5753 > _ACEOF
5754 > cat confdefs.h >>conftest.$ac_ext
5755 > cat >>conftest.$ac_ext <<_ACEOF
5756 > /* end confdefs.h.  */
5757 > #ifdef __STDC__
5758 > # include <limits.h>
5759 > #else
5760 > # include <assert.h>
5761 > #endif
5762 >                     Syntax error
5763 > _ACEOF
5764 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5765 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5766 >  ac_status=$?
5767 >  grep -v '^ *+' conftest.er1 >conftest.err
5768 >  rm -f conftest.er1
5769 >  cat conftest.err >&5
5770 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 >  (exit $ac_status); } >/dev/null; then
5772 >  if test -s conftest.err; then
5773 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
5774 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5775 >  else
5776 >    ac_cpp_err=
5777 >  fi
5778 > else
5779 >  ac_cpp_err=yes
5780 > fi
5781 > if test -z "$ac_cpp_err"; then
5782 >  :
5783 > else
5784 >  echo "$as_me: failed program was:" >&5
5785 > sed 's/^/| /' conftest.$ac_ext >&5
5786 >
5787 >  # Broken: fails on valid input.
5788 > continue
5789 > fi
5790 > rm -f conftest.err conftest.$ac_ext
5791 >
5792 >  # OK, works on sane cases.  Now check whether non-existent headers
5793 >  # can be detected and how.
5794 >  cat >conftest.$ac_ext <<_ACEOF
5795 > /* confdefs.h.  */
5796 > _ACEOF
5797 > cat confdefs.h >>conftest.$ac_ext
5798 > cat >>conftest.$ac_ext <<_ACEOF
5799 > /* end confdefs.h.  */
5800 > #include <ac_nonexistent.h>
5801 > _ACEOF
5802 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5803 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5804 >  ac_status=$?
5805 >  grep -v '^ *+' conftest.er1 >conftest.err
5806 >  rm -f conftest.er1
5807 >  cat conftest.err >&5
5808 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 >  (exit $ac_status); } >/dev/null; then
5810 >  if test -s conftest.err; then
5811 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
5812 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5813 >  else
5814 >    ac_cpp_err=
5815 >  fi
5816 > else
5817 >  ac_cpp_err=yes
5818 > fi
5819 > if test -z "$ac_cpp_err"; then
5820 >  # Broken: success on invalid input.
5821 > continue
5822 > else
5823 >  echo "$as_me: failed program was:" >&5
5824 > sed 's/^/| /' conftest.$ac_ext >&5
5825 >
5826 >  # Passes both tests.
5827 > ac_preproc_ok=:
5828 > break
5829 > fi
5830 > rm -f conftest.err conftest.$ac_ext
5831 >
5832 > done
5833 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5834 > rm -f conftest.err conftest.$ac_ext
5835 > if $ac_preproc_ok; then
5836 >  break
5837 > fi
5838 >
5839 >    done
5840 >    ac_cv_prog_CXXCPP=$CXXCPP
5841 >
5842 > fi
5843 >  CXXCPP=$ac_cv_prog_CXXCPP
5844 > else
5845 >  ac_cv_prog_CXXCPP=$CXXCPP
5846 > fi
5847 > echo "$as_me:$LINENO: result: $CXXCPP" >&5
5848 > echo "${ECHO_T}$CXXCPP" >&6
5849 > ac_preproc_ok=false
5850 > for ac_cxx_preproc_warn_flag in '' yes
5851 > do
5852 >  # Use a header file that comes with gcc, so configuring glibc
5853 >  # with a fresh cross-compiler works.
5854 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5855 >  # <limits.h> exists even on freestanding compilers.
5856 >  # On the NeXT, cc -E runs the code through the compiler's parser,
5857 >  # not just through cpp. "Syntax error" is here to catch this case.
5858 >  cat >conftest.$ac_ext <<_ACEOF
5859 > /* confdefs.h.  */
5860 > _ACEOF
5861 > cat confdefs.h >>conftest.$ac_ext
5862 > cat >>conftest.$ac_ext <<_ACEOF
5863 > /* end confdefs.h.  */
5864 > #ifdef __STDC__
5865 > # include <limits.h>
5866 > #else
5867 > # include <assert.h>
5868 > #endif
5869 >                     Syntax error
5870 > _ACEOF
5871 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5872 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5873 >  ac_status=$?
5874 >  grep -v '^ *+' conftest.er1 >conftest.err
5875 >  rm -f conftest.er1
5876 >  cat conftest.err >&5
5877 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 >  (exit $ac_status); } >/dev/null; then
5879 >  if test -s conftest.err; then
5880 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
5881 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5882 >  else
5883 >    ac_cpp_err=
5884 >  fi
5885 > else
5886 >  ac_cpp_err=yes
5887 > fi
5888 > if test -z "$ac_cpp_err"; then
5889 >  :
5890 > else
5891 >  echo "$as_me: failed program was:" >&5
5892 > sed 's/^/| /' conftest.$ac_ext >&5
5893 >
5894 >  # Broken: fails on valid input.
5895 > continue
5896 > fi
5897 > rm -f conftest.err conftest.$ac_ext
5898 >
5899 >  # OK, works on sane cases.  Now check whether non-existent headers
5900 >  # can be detected and how.
5901 >  cat >conftest.$ac_ext <<_ACEOF
5902 > /* confdefs.h.  */
5903 > _ACEOF
5904 > cat confdefs.h >>conftest.$ac_ext
5905 > cat >>conftest.$ac_ext <<_ACEOF
5906 > /* end confdefs.h.  */
5907 > #include <ac_nonexistent.h>
5908 > _ACEOF
5909 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5910 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5911 >  ac_status=$?
5912 >  grep -v '^ *+' conftest.er1 >conftest.err
5913 >  rm -f conftest.er1
5914 >  cat conftest.err >&5
5915 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 >  (exit $ac_status); } >/dev/null; then
5917 >  if test -s conftest.err; then
5918 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
5919 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5920 >  else
5921 >    ac_cpp_err=
5922 >  fi
5923 > else
5924 >  ac_cpp_err=yes
5925 > fi
5926 > if test -z "$ac_cpp_err"; then
5927 >  # Broken: success on invalid input.
5928 > continue
5929 > else
5930 >  echo "$as_me: failed program was:" >&5
5931 > sed 's/^/| /' conftest.$ac_ext >&5
5932 >
5933 >  # Passes both tests.
5934 > ac_preproc_ok=:
5935 > break
5936 > fi
5937 > rm -f conftest.err conftest.$ac_ext
5938 >
5939 > done
5940 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5941 > rm -f conftest.err conftest.$ac_ext
5942 > if $ac_preproc_ok; then
5943 >  :
5944 > else
5945 >  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5946 > See \`config.log' for more details." >&5
5947 > echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5948 > See \`config.log' for more details." >&2;}
5949 >   { (exit 1); exit 1; }; }
5950 > fi
5951 >
5952 > ac_ext=cc
5953 > ac_cpp='$CXXCPP $CPPFLAGS'
5954 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5955 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5956 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5957 >
5958 >
5959 >
5960 >
5961 >
5962 >
5963 >
5964 > for ac_header in ctype.h iostream fstream sstream strstream
5965 > do
5966 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5967 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5968 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
5969 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5970 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5971 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5972 > fi
5973 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5974 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5975 > else
5976 >  # Is the header compilable?
5977 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
5978 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5979 > cat >conftest.$ac_ext <<_ACEOF
5980 > /* confdefs.h.  */
5981 > _ACEOF
5982 > cat confdefs.h >>conftest.$ac_ext
5983 > cat >>conftest.$ac_ext <<_ACEOF
5984 > /* end confdefs.h.  */
5985 > $ac_includes_default
5986 > #include <$ac_header>
5987 > _ACEOF
5988 > rm -f conftest.$ac_objext
5989 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5990 >  (eval $ac_compile) 2>conftest.er1
5991 >  ac_status=$?
5992 >  grep -v '^ *+' conftest.er1 >conftest.err
5993 >  rm -f conftest.er1
5994 >  cat conftest.err >&5
5995 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 >  (exit $ac_status); } &&
5997 >         { ac_try='test -z "$ac_cxx_werror_flag"
5998 >                         || test ! -s conftest.err'
5999 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 >  (eval $ac_try) 2>&5
6001 >  ac_status=$?
6002 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 >  (exit $ac_status); }; } &&
6004 >         { ac_try='test -s conftest.$ac_objext'
6005 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 >  (eval $ac_try) 2>&5
6007 >  ac_status=$?
6008 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 >  (exit $ac_status); }; }; then
6010 >  ac_header_compiler=yes
6011 > else
6012 >  echo "$as_me: failed program was:" >&5
6013 > sed 's/^/| /' conftest.$ac_ext >&5
6014 >
6015 > ac_header_compiler=no
6016 > fi
6017 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6018 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6019 > echo "${ECHO_T}$ac_header_compiler" >&6
6020 >
6021 > # Is the header present?
6022 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
6023 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6024 > cat >conftest.$ac_ext <<_ACEOF
6025 > /* confdefs.h.  */
6026 > _ACEOF
6027 > cat confdefs.h >>conftest.$ac_ext
6028 > cat >>conftest.$ac_ext <<_ACEOF
6029 > /* end confdefs.h.  */
6030 > #include <$ac_header>
6031 > _ACEOF
6032 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6033 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6034 >  ac_status=$?
6035 >  grep -v '^ *+' conftest.er1 >conftest.err
6036 >  rm -f conftest.er1
6037 >  cat conftest.err >&5
6038 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 >  (exit $ac_status); } >/dev/null; then
6040 >  if test -s conftest.err; then
6041 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
6042 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6043 >  else
6044 >    ac_cpp_err=
6045 >  fi
6046 > else
6047 >  ac_cpp_err=yes
6048 > fi
6049 > if test -z "$ac_cpp_err"; then
6050 >  ac_header_preproc=yes
6051 > else
6052 >  echo "$as_me: failed program was:" >&5
6053 > sed 's/^/| /' conftest.$ac_ext >&5
6054 >
6055 >  ac_header_preproc=no
6056 > fi
6057 > rm -f conftest.err conftest.$ac_ext
6058 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6059 > echo "${ECHO_T}$ac_header_preproc" >&6
6060 >
6061 > # So?  What about this header?
6062 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6063 >  yes:no: )
6064 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6065 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6066 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6067 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6068 >    ac_header_preproc=yes
6069 >    ;;
6070 >  no:yes:* )
6071 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6072 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6073 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6074 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6075 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6076 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6077 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6078 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6079 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6080 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6081 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6082 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6083 >    (
6084 >      cat <<\_ASBOX
6085 > ## ------------------------------ ##
6086 > ## Report this to gezelter@nd.edu ##
6087 > ## ------------------------------ ##
6088 > _ASBOX
6089 >    ) |
6090 >      sed "s/^/$as_me: WARNING:     /" >&2
6091 >    ;;
6092 > esac
6093 > echo "$as_me:$LINENO: checking for $ac_header" >&5
6094 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6095 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6096 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6097 > else
6098 >  eval "$as_ac_Header=\$ac_header_preproc"
6099 > fi
6100 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6101 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6102 >
6103 > fi
6104 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
6105 >  cat >>confdefs.h <<_ACEOF
6106 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6107 > _ACEOF
6108 >
6109 > fi
6110 >
6111 > done
6112 >
6113 > ac_ext=c
6114 > ac_cpp='$CPP $CPPFLAGS'
6115 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6116 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6117 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6118 >
6119 >
6120 >
6121 >
6122 > for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h
6123 > do
6124 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6125 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6126 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
6127 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6128 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6129 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6130 > fi
6131 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6132 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6133 > else
6134 >  # Is the header compilable?
6135 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
6136 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6137 > cat >conftest.$ac_ext <<_ACEOF
6138 > /* confdefs.h.  */
6139 > _ACEOF
6140 > cat confdefs.h >>conftest.$ac_ext
6141 > cat >>conftest.$ac_ext <<_ACEOF
6142 > /* end confdefs.h.  */
6143 > $ac_includes_default
6144 > #include <$ac_header>
6145 > _ACEOF
6146 > rm -f conftest.$ac_objext
6147 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148 >  (eval $ac_compile) 2>conftest.er1
6149 >  ac_status=$?
6150 >  grep -v '^ *+' conftest.er1 >conftest.err
6151 >  rm -f conftest.er1
6152 >  cat conftest.err >&5
6153 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 >  (exit $ac_status); } &&
6155 >         { ac_try='test -z "$ac_c_werror_flag"
6156 >                         || test ! -s conftest.err'
6157 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 >  (eval $ac_try) 2>&5
6159 >  ac_status=$?
6160 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 >  (exit $ac_status); }; } &&
6162 >         { ac_try='test -s conftest.$ac_objext'
6163 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 >  (eval $ac_try) 2>&5
6165 >  ac_status=$?
6166 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 >  (exit $ac_status); }; }; then
6168 >  ac_header_compiler=yes
6169 > else
6170 >  echo "$as_me: failed program was:" >&5
6171 > sed 's/^/| /' conftest.$ac_ext >&5
6172 >
6173 > ac_header_compiler=no
6174 > fi
6175 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6176 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6177 > echo "${ECHO_T}$ac_header_compiler" >&6
6178 >
6179 > # Is the header present?
6180 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
6181 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6182 > cat >conftest.$ac_ext <<_ACEOF
6183 > /* confdefs.h.  */
6184 > _ACEOF
6185 > cat confdefs.h >>conftest.$ac_ext
6186 > cat >>conftest.$ac_ext <<_ACEOF
6187 > /* end confdefs.h.  */
6188 > #include <$ac_header>
6189 > _ACEOF
6190 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6191 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6192 >  ac_status=$?
6193 >  grep -v '^ *+' conftest.er1 >conftest.err
6194 >  rm -f conftest.er1
6195 >  cat conftest.err >&5
6196 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 >  (exit $ac_status); } >/dev/null; then
6198 >  if test -s conftest.err; then
6199 >    ac_cpp_err=$ac_c_preproc_warn_flag
6200 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6201 >  else
6202 >    ac_cpp_err=
6203 >  fi
6204 > else
6205 >  ac_cpp_err=yes
6206 > fi
6207 > if test -z "$ac_cpp_err"; then
6208 >  ac_header_preproc=yes
6209 > else
6210 >  echo "$as_me: failed program was:" >&5
6211 > sed 's/^/| /' conftest.$ac_ext >&5
6212 >
6213 >  ac_header_preproc=no
6214 > fi
6215 > rm -f conftest.err conftest.$ac_ext
6216 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6217 > echo "${ECHO_T}$ac_header_preproc" >&6
6218 >
6219 > # So?  What about this header?
6220 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6221 >  yes:no: )
6222 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6223 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6224 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6225 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6226 >    ac_header_preproc=yes
6227 >    ;;
6228 >  no:yes:* )
6229 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6230 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6231 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6232 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6233 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6234 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6235 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6236 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6237 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6238 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6239 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6240 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6241 >    (
6242 >      cat <<\_ASBOX
6243 > ## ------------------------------ ##
6244 > ## Report this to gezelter@nd.edu ##
6245 > ## ------------------------------ ##
6246 > _ASBOX
6247 >    ) |
6248 >      sed "s/^/$as_me: WARNING:     /" >&2
6249 >    ;;
6250 > esac
6251 > echo "$as_me:$LINENO: checking for $ac_header" >&5
6252 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6253 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6254 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6255 > else
6256 >  eval "$as_ac_Header=\$ac_header_preproc"
6257 > fi
6258 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6259 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6260 >
6261 > fi
6262 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
6263 >  cat >>confdefs.h <<_ACEOF
6264 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6265 > _ACEOF
6266 >
6267 > fi
6268 >
6269 > done
6270 >
6271 >
6272 >
6273 >
6274 >
6275 > for ac_header in sys/table.h sys/param.h sys/sysctl.h sys/sytemcfg.h
6276 > do
6277 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6278 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6279 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
6280 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6281 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6282 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6283 > fi
6284 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6285 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6286 > else
6287 >  # Is the header compilable?
6288 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
6289 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6290 > cat >conftest.$ac_ext <<_ACEOF
6291 > /* confdefs.h.  */
6292 > _ACEOF
6293 > cat confdefs.h >>conftest.$ac_ext
6294 > cat >>conftest.$ac_ext <<_ACEOF
6295 > /* end confdefs.h.  */
6296 > $ac_includes_default
6297 > #include <$ac_header>
6298 > _ACEOF
6299 > rm -f conftest.$ac_objext
6300 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301 >  (eval $ac_compile) 2>conftest.er1
6302 >  ac_status=$?
6303 >  grep -v '^ *+' conftest.er1 >conftest.err
6304 >  rm -f conftest.er1
6305 >  cat conftest.err >&5
6306 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 >  (exit $ac_status); } &&
6308 >         { ac_try='test -z "$ac_c_werror_flag"
6309 >                         || test ! -s conftest.err'
6310 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 >  (eval $ac_try) 2>&5
6312 >  ac_status=$?
6313 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 >  (exit $ac_status); }; } &&
6315 >         { ac_try='test -s conftest.$ac_objext'
6316 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 >  (eval $ac_try) 2>&5
6318 >  ac_status=$?
6319 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 >  (exit $ac_status); }; }; then
6321 >  ac_header_compiler=yes
6322 > else
6323 >  echo "$as_me: failed program was:" >&5
6324 > sed 's/^/| /' conftest.$ac_ext >&5
6325 >
6326 > ac_header_compiler=no
6327 > fi
6328 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6329 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6330 > echo "${ECHO_T}$ac_header_compiler" >&6
6331 >
6332 > # Is the header present?
6333 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
6334 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6335 > cat >conftest.$ac_ext <<_ACEOF
6336 > /* confdefs.h.  */
6337 > _ACEOF
6338 > cat confdefs.h >>conftest.$ac_ext
6339 > cat >>conftest.$ac_ext <<_ACEOF
6340 > /* end confdefs.h.  */
6341 > #include <$ac_header>
6342 > _ACEOF
6343 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6344 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6345 >  ac_status=$?
6346 >  grep -v '^ *+' conftest.er1 >conftest.err
6347 >  rm -f conftest.er1
6348 >  cat conftest.err >&5
6349 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 >  (exit $ac_status); } >/dev/null; then
6351 >  if test -s conftest.err; then
6352 >    ac_cpp_err=$ac_c_preproc_warn_flag
6353 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6354 >  else
6355 >    ac_cpp_err=
6356 >  fi
6357 > else
6358 >  ac_cpp_err=yes
6359 > fi
6360 > if test -z "$ac_cpp_err"; then
6361 >  ac_header_preproc=yes
6362 > else
6363 >  echo "$as_me: failed program was:" >&5
6364 > sed 's/^/| /' conftest.$ac_ext >&5
6365 >
6366 >  ac_header_preproc=no
6367 > fi
6368 > rm -f conftest.err conftest.$ac_ext
6369 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6370 > echo "${ECHO_T}$ac_header_preproc" >&6
6371 >
6372 > # So?  What about this header?
6373 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6374 >  yes:no: )
6375 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6376 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6377 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6378 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6379 >    ac_header_preproc=yes
6380 >    ;;
6381 >  no:yes:* )
6382 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6383 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6384 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6385 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6386 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6387 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6388 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6389 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6390 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6391 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6392 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6393 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6394 >    (
6395 >      cat <<\_ASBOX
6396 > ## ------------------------------ ##
6397 > ## Report this to gezelter@nd.edu ##
6398 > ## ------------------------------ ##
6399 > _ASBOX
6400 >    ) |
6401 >      sed "s/^/$as_me: WARNING:     /" >&2
6402 >    ;;
6403 > esac
6404 > echo "$as_me:$LINENO: checking for $ac_header" >&5
6405 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6406 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6408 > else
6409 >  eval "$as_ac_Header=\$ac_header_preproc"
6410 > fi
6411 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6412 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6413 >
6414 > fi
6415 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
6416 >  cat >>confdefs.h <<_ACEOF
6417 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6418 > _ACEOF
6419 >
6420 > fi
6421 >
6422 > done
6423 >
6424 >
6425 > for ac_header in machine/hal_sysinfo.h
6426 > do
6427 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6428 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6429 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
6430 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6431 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6432 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6433 > fi
6434 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6435 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6436 > else
6437 >  # Is the header compilable?
6438 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
6439 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6440 > cat >conftest.$ac_ext <<_ACEOF
6441 > /* confdefs.h.  */
6442 > _ACEOF
6443 > cat confdefs.h >>conftest.$ac_ext
6444 > cat >>conftest.$ac_ext <<_ACEOF
6445 > /* end confdefs.h.  */
6446 > $ac_includes_default
6447 > #include <$ac_header>
6448 > _ACEOF
6449 > rm -f conftest.$ac_objext
6450 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6451 >  (eval $ac_compile) 2>conftest.er1
6452 >  ac_status=$?
6453 >  grep -v '^ *+' conftest.er1 >conftest.err
6454 >  rm -f conftest.er1
6455 >  cat conftest.err >&5
6456 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 >  (exit $ac_status); } &&
6458 >         { ac_try='test -z "$ac_c_werror_flag"
6459 >                         || test ! -s conftest.err'
6460 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 >  (eval $ac_try) 2>&5
6462 >  ac_status=$?
6463 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 >  (exit $ac_status); }; } &&
6465 >         { ac_try='test -s conftest.$ac_objext'
6466 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 >  (eval $ac_try) 2>&5
6468 >  ac_status=$?
6469 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 >  (exit $ac_status); }; }; then
6471 >  ac_header_compiler=yes
6472 > else
6473 >  echo "$as_me: failed program was:" >&5
6474 > sed 's/^/| /' conftest.$ac_ext >&5
6475 >
6476 > ac_header_compiler=no
6477 > fi
6478 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6479 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6480 > echo "${ECHO_T}$ac_header_compiler" >&6
6481 >
6482 > # Is the header present?
6483 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
6484 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6485 > cat >conftest.$ac_ext <<_ACEOF
6486 > /* confdefs.h.  */
6487 > _ACEOF
6488 > cat confdefs.h >>conftest.$ac_ext
6489 > cat >>conftest.$ac_ext <<_ACEOF
6490 > /* end confdefs.h.  */
6491 > #include <$ac_header>
6492 > _ACEOF
6493 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6494 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6495 >  ac_status=$?
6496 >  grep -v '^ *+' conftest.er1 >conftest.err
6497 >  rm -f conftest.er1
6498 >  cat conftest.err >&5
6499 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 >  (exit $ac_status); } >/dev/null; then
6501 >  if test -s conftest.err; then
6502 >    ac_cpp_err=$ac_c_preproc_warn_flag
6503 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6504 >  else
6505 >    ac_cpp_err=
6506 >  fi
6507 > else
6508 >  ac_cpp_err=yes
6509 > fi
6510 > if test -z "$ac_cpp_err"; then
6511 >  ac_header_preproc=yes
6512 > else
6513 >  echo "$as_me: failed program was:" >&5
6514 > sed 's/^/| /' conftest.$ac_ext >&5
6515 >
6516 >  ac_header_preproc=no
6517 > fi
6518 > rm -f conftest.err conftest.$ac_ext
6519 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6520 > echo "${ECHO_T}$ac_header_preproc" >&6
6521 >
6522 > # So?  What about this header?
6523 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6524 >  yes:no: )
6525 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6526 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6527 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6528 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6529 >    ac_header_preproc=yes
6530 >    ;;
6531 >  no:yes:* )
6532 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6533 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6534 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6535 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6536 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6537 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6538 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6539 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6540 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6541 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6542 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6543 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6544 >    (
6545 >      cat <<\_ASBOX
6546 > ## ------------------------------ ##
6547 > ## Report this to gezelter@nd.edu ##
6548 > ## ------------------------------ ##
6549 > _ASBOX
6550 >    ) |
6551 >      sed "s/^/$as_me: WARNING:     /" >&2
6552 >    ;;
6553 > esac
6554 > echo "$as_me:$LINENO: checking for $ac_header" >&5
6555 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6556 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6557 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6558 > else
6559 >  eval "$as_ac_Header=\$ac_header_preproc"
6560 > fi
6561 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6562 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6563 >
6564 > fi
6565 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
6566 >  cat >>confdefs.h <<_ACEOF
6567 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6568 > _ACEOF
6569 >
6570 > fi
6571 >
6572 > done
6573 >
6574 >
6575 >
6576 >
6577 >
6578 >
6579 > for ac_func in pstat_getstatic sysmp getsysinfo sysctl table
6580 > do
6581 > as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6582 > echo "$as_me:$LINENO: checking for $ac_func" >&5
6583 > echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6584 > if eval "test \"\${$as_ac_var+set}\" = set"; then
6585 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6586 > else
6587 >  cat >conftest.$ac_ext <<_ACEOF
6588 > /* confdefs.h.  */
6589 > _ACEOF
6590 > cat confdefs.h >>conftest.$ac_ext
6591 > cat >>conftest.$ac_ext <<_ACEOF
6592 > /* end confdefs.h.  */
6593 > /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6594 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6595 > #define $ac_func innocuous_$ac_func
6596 >
6597 > /* System header to define __stub macros and hopefully few prototypes,
6598 >    which can conflict with char $ac_func (); below.
6599 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6600 >    <limits.h> exists even on freestanding compilers.  */
6601 >
6602 > #ifdef __STDC__
6603 > # include <limits.h>
6604 > #else
6605 > # include <assert.h>
6606 > #endif
6607 >
6608 > #undef $ac_func
6609 >
6610 > /* Override any gcc2 internal prototype to avoid an error.  */
6611 > #ifdef __cplusplus
6612 > extern "C"
6613 > {
6614 > #endif
6615 > /* We use char because int might match the return type of a gcc2
6616 >   builtin and then its argument prototype would still apply.  */
6617 > char $ac_func ();
6618 > /* The GNU C library defines this for functions which it implements
6619 >    to always fail with ENOSYS.  Some functions are actually named
6620 >    something starting with __ and the normal name is an alias.  */
6621 > #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6622 > choke me
6623 > #else
6624 > char (*f) () = $ac_func;
6625 > #endif
6626 > #ifdef __cplusplus
6627 > }
6628 > #endif
6629 >
6630 > int
6631 > main ()
6632 > {
6633 > return f != $ac_func;
6634 >  ;
6635 >  return 0;
6636 > }
6637 > _ACEOF
6638 > rm -f conftest.$ac_objext conftest$ac_exeext
6639 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6640 >  (eval $ac_link) 2>conftest.er1
6641 >  ac_status=$?
6642 >  grep -v '^ *+' conftest.er1 >conftest.err
6643 >  rm -f conftest.er1
6644 >  cat conftest.err >&5
6645 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 >  (exit $ac_status); } &&
6647 >         { ac_try='test -z "$ac_c_werror_flag"
6648 >                         || test ! -s conftest.err'
6649 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650 >  (eval $ac_try) 2>&5
6651 >  ac_status=$?
6652 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 >  (exit $ac_status); }; } &&
6654 >         { ac_try='test -s conftest$ac_exeext'
6655 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 >  (eval $ac_try) 2>&5
6657 >  ac_status=$?
6658 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 >  (exit $ac_status); }; }; then
6660 >  eval "$as_ac_var=yes"
6661 > else
6662 >  echo "$as_me: failed program was:" >&5
6663 > sed 's/^/| /' conftest.$ac_ext >&5
6664 >
6665 > eval "$as_ac_var=no"
6666 > fi
6667 > rm -f conftest.err conftest.$ac_objext \
6668 >      conftest$ac_exeext conftest.$ac_ext
6669 > fi
6670 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6671 > echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6672 > if test `eval echo '${'$as_ac_var'}'` = yes; then
6673 >  cat >>confdefs.h <<_ACEOF
6674 > #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6675 > _ACEOF
6676 >
6677 > fi
6678 > done
6679 >
6680 > # special check for _system_configuration because AIX <4.3.2 do not
6681 > # contain the `physmem' member.
6682 > echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
6683 > echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
6684 > cat >conftest.$ac_ext <<_ACEOF
6685 > /* confdefs.h.  */
6686 > _ACEOF
6687 > cat confdefs.h >>conftest.$ac_ext
6688 > cat >>conftest.$ac_ext <<_ACEOF
6689 > /* end confdefs.h.  */
6690 > #include <sys/systemcfg.h>
6691 > int
6692 > main ()
6693 > {
6694 > double x = _system_configuration.physmem;
6695 >  ;
6696 >  return 0;
6697 > }
6698 > _ACEOF
6699 > rm -f conftest.$ac_objext
6700 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6701 >  (eval $ac_compile) 2>conftest.er1
6702 >  ac_status=$?
6703 >  grep -v '^ *+' conftest.er1 >conftest.err
6704 >  rm -f conftest.er1
6705 >  cat conftest.err >&5
6706 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 >  (exit $ac_status); } &&
6708 >         { ac_try='test -z "$ac_c_werror_flag"
6709 >                         || test ! -s conftest.err'
6710 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 >  (eval $ac_try) 2>&5
6712 >  ac_status=$?
6713 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 >  (exit $ac_status); }; } &&
6715 >         { ac_try='test -s conftest.$ac_objext'
6716 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 >  (eval $ac_try) 2>&5
6718 >  ac_status=$?
6719 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 >  (exit $ac_status); }; }; then
6721 >  echo "$as_me:$LINENO: result: yes" >&5
6722 > echo "${ECHO_T}yes" >&6
6723 >
6724 > cat >>confdefs.h <<\_ACEOF
6725 > #define HAVE__SYSTEM_CONFIGURATION 1
6726 > _ACEOF
6727 >
6728 > else
6729 >  echo "$as_me: failed program was:" >&5
6730 > sed 's/^/| /' conftest.$ac_ext >&5
6731 >
6732 > echo "$as_me:$LINENO: result: no" >&5
6733 > echo "${ECHO_T}no" >&6
6734 > fi
6735 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6736 > echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6737 > echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6738 > if test "${ac_cv_header_time+set}" = set; then
6739 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6740 > else
6741 >  cat >conftest.$ac_ext <<_ACEOF
6742 > /* confdefs.h.  */
6743 > _ACEOF
6744 > cat confdefs.h >>conftest.$ac_ext
6745 > cat >>conftest.$ac_ext <<_ACEOF
6746 > /* end confdefs.h.  */
6747 > #include <sys/types.h>
6748 > #include <sys/time.h>
6749 > #include <time.h>
6750 >
6751 > int
6752 > main ()
6753 > {
6754 > if ((struct tm *) 0)
6755 > return 0;
6756 >  ;
6757 >  return 0;
6758 > }
6759 > _ACEOF
6760 > rm -f conftest.$ac_objext
6761 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6762 >  (eval $ac_compile) 2>conftest.er1
6763 >  ac_status=$?
6764 >  grep -v '^ *+' conftest.er1 >conftest.err
6765 >  rm -f conftest.er1
6766 >  cat conftest.err >&5
6767 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 >  (exit $ac_status); } &&
6769 >         { ac_try='test -z "$ac_c_werror_flag"
6770 >                         || test ! -s conftest.err'
6771 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 >  (eval $ac_try) 2>&5
6773 >  ac_status=$?
6774 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 >  (exit $ac_status); }; } &&
6776 >         { ac_try='test -s conftest.$ac_objext'
6777 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 >  (eval $ac_try) 2>&5
6779 >  ac_status=$?
6780 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 >  (exit $ac_status); }; }; then
6782 >  ac_cv_header_time=yes
6783 > else
6784 >  echo "$as_me: failed program was:" >&5
6785 > sed 's/^/| /' conftest.$ac_ext >&5
6786 >
6787 > ac_cv_header_time=no
6788 > fi
6789 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6790 > fi
6791 > echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6792 > echo "${ECHO_T}$ac_cv_header_time" >&6
6793 > if test $ac_cv_header_time = yes; then
6794 >
6795 > cat >>confdefs.h <<\_ACEOF
6796 > #define TIME_WITH_SYS_TIME 1
6797 > _ACEOF
6798 >
6799 > fi
6800 >
6801 >
6802 > echo "$as_me:$LINENO: checking for clock_t" >&5
6803 > echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
6804 > if test "${ac_cv_type_clock_t+set}" = set; then
6805 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6806 > else
6807 >  cat >conftest.$ac_ext <<_ACEOF
6808 > /* confdefs.h.  */
6809 > _ACEOF
6810 > cat confdefs.h >>conftest.$ac_ext
6811 > cat >>conftest.$ac_ext <<_ACEOF
6812 > /* end confdefs.h.  */
6813 > $ac_includes_default
6814 > int
6815 > main ()
6816 > {
6817 > if ((clock_t *) 0)
6818 >  return 0;
6819 > if (sizeof (clock_t))
6820 >  return 0;
6821 >  ;
6822 >  return 0;
6823 > }
6824 > _ACEOF
6825 > rm -f conftest.$ac_objext
6826 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6827 >  (eval $ac_compile) 2>conftest.er1
6828 >  ac_status=$?
6829 >  grep -v '^ *+' conftest.er1 >conftest.err
6830 >  rm -f conftest.er1
6831 >  cat conftest.err >&5
6832 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 >  (exit $ac_status); } &&
6834 >         { ac_try='test -z "$ac_c_werror_flag"
6835 >                         || test ! -s conftest.err'
6836 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 >  (eval $ac_try) 2>&5
6838 >  ac_status=$?
6839 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 >  (exit $ac_status); }; } &&
6841 >         { ac_try='test -s conftest.$ac_objext'
6842 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843 >  (eval $ac_try) 2>&5
6844 >  ac_status=$?
6845 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 >  (exit $ac_status); }; }; then
6847 >  ac_cv_type_clock_t=yes
6848 > else
6849 >  echo "$as_me: failed program was:" >&5
6850 > sed 's/^/| /' conftest.$ac_ext >&5
6851 >
6852 > ac_cv_type_clock_t=no
6853 > fi
6854 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6855 > fi
6856 > echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5
6857 > echo "${ECHO_T}$ac_cv_type_clock_t" >&6
6858 > if test $ac_cv_type_clock_t = yes; then
6859 >
6860 > cat >>confdefs.h <<_ACEOF
6861 > #define HAVE_CLOCK_T 1
6862 > _ACEOF
6863 >
6864 >
6865 > fi
6866 >
6867 > echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6868 > echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6869 > if test "${ac_cv_c_const+set}" = set; then
6870 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6871 > else
6872 >  cat >conftest.$ac_ext <<_ACEOF
6873 > /* confdefs.h.  */
6874 > _ACEOF
6875 > cat confdefs.h >>conftest.$ac_ext
6876 > cat >>conftest.$ac_ext <<_ACEOF
6877 > /* end confdefs.h.  */
6878 >
6879 > int
6880 > main ()
6881 > {
6882 > /* FIXME: Include the comments suggested by Paul. */
6883 > #ifndef __cplusplus
6884 >  /* Ultrix mips cc rejects this.  */
6885 >  typedef int charset[2];
6886 >  const charset x;
6887 >  /* SunOS 4.1.1 cc rejects this.  */
6888 >  char const *const *ccp;
6889 >  char **p;
6890 >  /* NEC SVR4.0.2 mips cc rejects this.  */
6891 >  struct point {int x, y;};
6892 >  static struct point const zero = {0,0};
6893 >  /* AIX XL C 1.02.0.0 rejects this.
6894 >     It does not let you subtract one const X* pointer from another in
6895 >     an arm of an if-expression whose if-part is not a constant
6896 >     expression */
6897 >  const char *g = "string";
6898 >  ccp = &g + (g ? g-g : 0);
6899 >  /* HPUX 7.0 cc rejects these. */
6900 >  ++ccp;
6901 >  p = (char**) ccp;
6902 >  ccp = (char const *const *) p;
6903 >  { /* SCO 3.2v4 cc rejects this.  */
6904 >    char *t;
6905 >    char const *s = 0 ? (char *) 0 : (char const *) 0;
6906 >
6907 >    *t++ = 0;
6908 >  }
6909 >  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6910 >    int x[] = {25, 17};
6911 >    const int *foo = &x[0];
6912 >    ++foo;
6913 >  }
6914 >  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6915 >    typedef const int *iptr;
6916 >    iptr p = 0;
6917 >    ++p;
6918 >  }
6919 >  { /* AIX XL C 1.02.0.0 rejects this saying
6920 >       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6921 >    struct s { int j; const int *ap[3]; };
6922 >    struct s *b; b->j = 5;
6923 >  }
6924 >  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6925 >    const int foo = 10;
6926 >  }
6927 > #endif
6928 >
6929 >  ;
6930 >  return 0;
6931 > }
6932 > _ACEOF
6933 > rm -f conftest.$ac_objext
6934 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6935 >  (eval $ac_compile) 2>conftest.er1
6936 >  ac_status=$?
6937 >  grep -v '^ *+' conftest.er1 >conftest.err
6938 >  rm -f conftest.er1
6939 >  cat conftest.err >&5
6940 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 >  (exit $ac_status); } &&
6942 >         { ac_try='test -z "$ac_c_werror_flag"
6943 >                         || test ! -s conftest.err'
6944 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 >  (eval $ac_try) 2>&5
6946 >  ac_status=$?
6947 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 >  (exit $ac_status); }; } &&
6949 >         { ac_try='test -s conftest.$ac_objext'
6950 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 >  (eval $ac_try) 2>&5
6952 >  ac_status=$?
6953 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 >  (exit $ac_status); }; }; then
6955 >  ac_cv_c_const=yes
6956 > else
6957 >  echo "$as_me: failed program was:" >&5
6958 > sed 's/^/| /' conftest.$ac_ext >&5
6959 >
6960 > ac_cv_c_const=no
6961 > fi
6962 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6963 > fi
6964 > echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6965 > echo "${ECHO_T}$ac_cv_c_const" >&6
6966 > if test $ac_cv_c_const = no; then
6967 >
6968 > cat >>confdefs.h <<\_ACEOF
6969 > #define const
6970 > _ACEOF
6971 >
6972 > fi
6973 >
6974 > echo "$as_me:$LINENO: checking for inline" >&5
6975 > echo $ECHO_N "checking for inline... $ECHO_C" >&6
6976 > if test "${ac_cv_c_inline+set}" = set; then
6977 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6978 > else
6979 >  ac_cv_c_inline=no
6980 > for ac_kw in inline __inline__ __inline; do
6981 >  cat >conftest.$ac_ext <<_ACEOF
6982 > /* confdefs.h.  */
6983 > _ACEOF
6984 > cat confdefs.h >>conftest.$ac_ext
6985 > cat >>conftest.$ac_ext <<_ACEOF
6986 > /* end confdefs.h.  */
6987 > #ifndef __cplusplus
6988 > typedef int foo_t;
6989 > static $ac_kw foo_t static_foo () {return 0; }
6990 > $ac_kw foo_t foo () {return 0; }
6991 > #endif
6992 >
6993 > _ACEOF
6994 > rm -f conftest.$ac_objext
6995 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996 >  (eval $ac_compile) 2>conftest.er1
6997 >  ac_status=$?
6998 >  grep -v '^ *+' conftest.er1 >conftest.err
6999 >  rm -f conftest.er1
7000 >  cat conftest.err >&5
7001 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 >  (exit $ac_status); } &&
7003 >         { ac_try='test -z "$ac_c_werror_flag"
7004 >                         || test ! -s conftest.err'
7005 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 >  (eval $ac_try) 2>&5
7007 >  ac_status=$?
7008 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 >  (exit $ac_status); }; } &&
7010 >         { ac_try='test -s conftest.$ac_objext'
7011 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 >  (eval $ac_try) 2>&5
7013 >  ac_status=$?
7014 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 >  (exit $ac_status); }; }; then
7016 >  ac_cv_c_inline=$ac_kw; break
7017 > else
7018 >  echo "$as_me: failed program was:" >&5
7019 > sed 's/^/| /' conftest.$ac_ext >&5
7020 >
7021 > fi
7022 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7023 > done
7024 >
7025 > fi
7026 > echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7027 > echo "${ECHO_T}$ac_cv_c_inline" >&6
7028 >
7029 >
7030 > case $ac_cv_c_inline in
7031 >  inline | yes) ;;
7032 >  *)
7033 >    case $ac_cv_c_inline in
7034 >      no) ac_val=;;
7035 >      *) ac_val=$ac_cv_c_inline;;
7036 >    esac
7037 >    cat >>confdefs.h <<_ACEOF
7038 > #ifndef __cplusplus
7039 > #define inline $ac_val
7040 > #endif
7041 > _ACEOF
7042 >    ;;
7043 > esac
7044 >
7045 >
7046 >
7047 >
7048 > for ac_func in rint sranddev
7049 > do
7050 > as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7051 > echo "$as_me:$LINENO: checking for $ac_func" >&5
7052 > echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7053 > if eval "test \"\${$as_ac_var+set}\" = set"; then
7054 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7055 > else
7056 >  cat >conftest.$ac_ext <<_ACEOF
7057 > /* confdefs.h.  */
7058 > _ACEOF
7059 > cat confdefs.h >>conftest.$ac_ext
7060 > cat >>conftest.$ac_ext <<_ACEOF
7061 > /* end confdefs.h.  */
7062 > /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7063 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7064 > #define $ac_func innocuous_$ac_func
7065 >
7066 > /* System header to define __stub macros and hopefully few prototypes,
7067 >    which can conflict with char $ac_func (); below.
7068 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7069 >    <limits.h> exists even on freestanding compilers.  */
7070 >
7071 > #ifdef __STDC__
7072 > # include <limits.h>
7073 > #else
7074 > # include <assert.h>
7075 > #endif
7076 >
7077 > #undef $ac_func
7078 >
7079 > /* Override any gcc2 internal prototype to avoid an error.  */
7080 > #ifdef __cplusplus
7081 > extern "C"
7082 > {
7083 > #endif
7084 > /* We use char because int might match the return type of a gcc2
7085 >   builtin and then its argument prototype would still apply.  */
7086 > char $ac_func ();
7087 > /* The GNU C library defines this for functions which it implements
7088 >    to always fail with ENOSYS.  Some functions are actually named
7089 >    something starting with __ and the normal name is an alias.  */
7090 > #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7091 > choke me
7092 > #else
7093 > char (*f) () = $ac_func;
7094 > #endif
7095 > #ifdef __cplusplus
7096 > }
7097 > #endif
7098 >
7099 > int
7100 > main ()
7101 > {
7102 > return f != $ac_func;
7103 >  ;
7104 >  return 0;
7105 > }
7106 > _ACEOF
7107 > rm -f conftest.$ac_objext conftest$ac_exeext
7108 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109 >  (eval $ac_link) 2>conftest.er1
7110 >  ac_status=$?
7111 >  grep -v '^ *+' conftest.er1 >conftest.err
7112 >  rm -f conftest.er1
7113 >  cat conftest.err >&5
7114 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 >  (exit $ac_status); } &&
7116 >         { ac_try='test -z "$ac_c_werror_flag"
7117 >                         || test ! -s conftest.err'
7118 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 >  (eval $ac_try) 2>&5
7120 >  ac_status=$?
7121 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 >  (exit $ac_status); }; } &&
7123 >         { ac_try='test -s conftest$ac_exeext'
7124 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 >  (eval $ac_try) 2>&5
7126 >  ac_status=$?
7127 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 >  (exit $ac_status); }; }; then
7129 >  eval "$as_ac_var=yes"
7130 > else
7131 >  echo "$as_me: failed program was:" >&5
7132 > sed 's/^/| /' conftest.$ac_ext >&5
7133 >
7134 > eval "$as_ac_var=no"
7135 > fi
7136 > rm -f conftest.err conftest.$ac_objext \
7137 >      conftest$ac_exeext conftest.$ac_ext
7138 > fi
7139 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7140 > echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7141 > if test `eval echo '${'$as_ac_var'}'` = yes; then
7142 >  cat >>confdefs.h <<_ACEOF
7143 > #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7144 > _ACEOF
7145 >
7146 > fi
7147 > done
7148 >
7149 >
7150 >  # clean out junk possibly left behind by a previous configuration
7151 >  rm -f src/getopt.h
7152 >  # Check for getopt_long support
7153 >
7154 > for ac_header in getopt.h
7155 > do
7156 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7157 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
7158 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
7159 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7160 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
7161 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7162 > fi
7163 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7164 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7165 > else
7166 >  # Is the header compilable?
7167 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
7168 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7169 > cat >conftest.$ac_ext <<_ACEOF
7170 > /* confdefs.h.  */
7171 > _ACEOF
7172 > cat confdefs.h >>conftest.$ac_ext
7173 > cat >>conftest.$ac_ext <<_ACEOF
7174 > /* end confdefs.h.  */
7175 > $ac_includes_default
7176 > #include <$ac_header>
7177 > _ACEOF
7178 > rm -f conftest.$ac_objext
7179 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7180 >  (eval $ac_compile) 2>conftest.er1
7181 >  ac_status=$?
7182 >  grep -v '^ *+' conftest.er1 >conftest.err
7183 >  rm -f conftest.er1
7184 >  cat conftest.err >&5
7185 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 >  (exit $ac_status); } &&
7187 >         { ac_try='test -z "$ac_c_werror_flag"
7188 >                         || test ! -s conftest.err'
7189 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 >  (eval $ac_try) 2>&5
7191 >  ac_status=$?
7192 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 >  (exit $ac_status); }; } &&
7194 >         { ac_try='test -s conftest.$ac_objext'
7195 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 >  (eval $ac_try) 2>&5
7197 >  ac_status=$?
7198 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 >  (exit $ac_status); }; }; then
7200 >  ac_header_compiler=yes
7201 > else
7202 >  echo "$as_me: failed program was:" >&5
7203 > sed 's/^/| /' conftest.$ac_ext >&5
7204 >
7205 > ac_header_compiler=no
7206 > fi
7207 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7208 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7209 > echo "${ECHO_T}$ac_header_compiler" >&6
7210 >
7211 > # Is the header present?
7212 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
7213 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7214 > cat >conftest.$ac_ext <<_ACEOF
7215 > /* confdefs.h.  */
7216 > _ACEOF
7217 > cat confdefs.h >>conftest.$ac_ext
7218 > cat >>conftest.$ac_ext <<_ACEOF
7219 > /* end confdefs.h.  */
7220 > #include <$ac_header>
7221 > _ACEOF
7222 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7223 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7224 >  ac_status=$?
7225 >  grep -v '^ *+' conftest.er1 >conftest.err
7226 >  rm -f conftest.er1
7227 >  cat conftest.err >&5
7228 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 >  (exit $ac_status); } >/dev/null; then
7230 >  if test -s conftest.err; then
7231 >    ac_cpp_err=$ac_c_preproc_warn_flag
7232 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7233 >  else
7234 >    ac_cpp_err=
7235 >  fi
7236 > else
7237 >  ac_cpp_err=yes
7238 > fi
7239 > if test -z "$ac_cpp_err"; then
7240 >  ac_header_preproc=yes
7241 > else
7242 >  echo "$as_me: failed program was:" >&5
7243 > sed 's/^/| /' conftest.$ac_ext >&5
7244 >
7245 >  ac_header_preproc=no
7246 > fi
7247 > rm -f conftest.err conftest.$ac_ext
7248 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7249 > echo "${ECHO_T}$ac_header_preproc" >&6
7250 >
7251 > # So?  What about this header?
7252 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7253 >  yes:no: )
7254 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7255 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7256 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7257 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7258 >    ac_header_preproc=yes
7259 >    ;;
7260 >  no:yes:* )
7261 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7262 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7263 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7264 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7265 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7266 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7267 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7268 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7269 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7270 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7271 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7272 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7273 >    (
7274 >      cat <<\_ASBOX
7275 > ## ------------------------------ ##
7276 > ## Report this to gezelter@nd.edu ##
7277 > ## ------------------------------ ##
7278 > _ASBOX
7279 >    ) |
7280 >      sed "s/^/$as_me: WARNING:     /" >&2
7281 >    ;;
7282 > esac
7283 > echo "$as_me:$LINENO: checking for $ac_header" >&5
7284 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7285 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
7286 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7287 > else
7288 >  eval "$as_ac_Header=\$ac_header_preproc"
7289 > fi
7290 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7291 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7292 >
7293 > fi
7294 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
7295 >  cat >>confdefs.h <<_ACEOF
7296 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7297 > _ACEOF
7298 >
7299 > fi
7300 >
7301 > done
7302 >
7303 >
7304 > for ac_func in getopt_long
7305 > do
7306 > as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7307 > echo "$as_me:$LINENO: checking for $ac_func" >&5
7308 > echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7309 > if eval "test \"\${$as_ac_var+set}\" = set"; then
7310 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7311 > else
7312 >  cat >conftest.$ac_ext <<_ACEOF
7313 > /* confdefs.h.  */
7314 > _ACEOF
7315 > cat confdefs.h >>conftest.$ac_ext
7316 > cat >>conftest.$ac_ext <<_ACEOF
7317 > /* end confdefs.h.  */
7318 > /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7319 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7320 > #define $ac_func innocuous_$ac_func
7321 >
7322 > /* System header to define __stub macros and hopefully few prototypes,
7323 >    which can conflict with char $ac_func (); below.
7324 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7325 >    <limits.h> exists even on freestanding compilers.  */
7326 >
7327 > #ifdef __STDC__
7328 > # include <limits.h>
7329 > #else
7330 > # include <assert.h>
7331 > #endif
7332 >
7333 > #undef $ac_func
7334 >
7335 > /* Override any gcc2 internal prototype to avoid an error.  */
7336 > #ifdef __cplusplus
7337 > extern "C"
7338 > {
7339 > #endif
7340 > /* We use char because int might match the return type of a gcc2
7341 >   builtin and then its argument prototype would still apply.  */
7342 > char $ac_func ();
7343 > /* The GNU C library defines this for functions which it implements
7344 >    to always fail with ENOSYS.  Some functions are actually named
7345 >    something starting with __ and the normal name is an alias.  */
7346 > #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7347 > choke me
7348 > #else
7349 > char (*f) () = $ac_func;
7350 > #endif
7351 > #ifdef __cplusplus
7352 > }
7353 > #endif
7354 >
7355 > int
7356 > main ()
7357 > {
7358 > return f != $ac_func;
7359 >  ;
7360 >  return 0;
7361 > }
7362 > _ACEOF
7363 > rm -f conftest.$ac_objext conftest$ac_exeext
7364 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7365 >  (eval $ac_link) 2>conftest.er1
7366 >  ac_status=$?
7367 >  grep -v '^ *+' conftest.er1 >conftest.err
7368 >  rm -f conftest.er1
7369 >  cat conftest.err >&5
7370 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 >  (exit $ac_status); } &&
7372 >         { ac_try='test -z "$ac_c_werror_flag"
7373 >                         || test ! -s conftest.err'
7374 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 >  (eval $ac_try) 2>&5
7376 >  ac_status=$?
7377 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 >  (exit $ac_status); }; } &&
7379 >         { ac_try='test -s conftest$ac_exeext'
7380 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 >  (eval $ac_try) 2>&5
7382 >  ac_status=$?
7383 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 >  (exit $ac_status); }; }; then
7385 >  eval "$as_ac_var=yes"
7386 > else
7387 >  echo "$as_me: failed program was:" >&5
7388 > sed 's/^/| /' conftest.$ac_ext >&5
7389 >
7390 > eval "$as_ac_var=no"
7391 > fi
7392 > rm -f conftest.err conftest.$ac_objext \
7393 >      conftest$ac_exeext conftest.$ac_ext
7394 > fi
7395 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7396 > echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7397 > if test `eval echo '${'$as_ac_var'}'` = yes; then
7398 >  cat >>confdefs.h <<_ACEOF
7399 > #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7400 > _ACEOF
7401 >
7402 > else
7403 >  # FreeBSD has a gnugetopt library for this
7404 >    echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
7405 > echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
7406 > if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
7407 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7408 > else
7409 >  ac_check_lib_save_LIBS=$LIBS
7410 > LIBS="-lgnugetopt  $LIBS"
7411 > cat >conftest.$ac_ext <<_ACEOF
7412 > /* confdefs.h.  */
7413 > _ACEOF
7414 > cat confdefs.h >>conftest.$ac_ext
7415 > cat >>conftest.$ac_ext <<_ACEOF
7416 > /* end confdefs.h.  */
7417 >
7418 > /* Override any gcc2 internal prototype to avoid an error.  */
7419 > #ifdef __cplusplus
7420 > extern "C"
7421 > #endif
7422 > /* We use char because int might match the return type of a gcc2
7423 >   builtin and then its argument prototype would still apply.  */
7424 > char getopt_long ();
7425 > int
7426 > main ()
7427 > {
7428 > getopt_long ();
7429 >  ;
7430 >  return 0;
7431 > }
7432 > _ACEOF
7433 > rm -f conftest.$ac_objext conftest$ac_exeext
7434 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7435 >  (eval $ac_link) 2>conftest.er1
7436 >  ac_status=$?
7437 >  grep -v '^ *+' conftest.er1 >conftest.err
7438 >  rm -f conftest.er1
7439 >  cat conftest.err >&5
7440 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 >  (exit $ac_status); } &&
7442 >         { ac_try='test -z "$ac_c_werror_flag"
7443 >                         || test ! -s conftest.err'
7444 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 >  (eval $ac_try) 2>&5
7446 >  ac_status=$?
7447 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 >  (exit $ac_status); }; } &&
7449 >         { ac_try='test -s conftest$ac_exeext'
7450 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 >  (eval $ac_try) 2>&5
7452 >  ac_status=$?
7453 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 >  (exit $ac_status); }; }; then
7455 >  ac_cv_lib_gnugetopt_getopt_long=yes
7456 > else
7457 >  echo "$as_me: failed program was:" >&5
7458 > sed 's/^/| /' conftest.$ac_ext >&5
7459 >
7460 > ac_cv_lib_gnugetopt_getopt_long=no
7461 > fi
7462 > rm -f conftest.err conftest.$ac_objext \
7463 >      conftest$ac_exeext conftest.$ac_ext
7464 > LIBS=$ac_check_lib_save_LIBS
7465 > fi
7466 > echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
7467 > echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
7468 > if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
7469 >  cat >>confdefs.h <<\_ACEOF
7470 > #define HAVE_GETOPT_LONG 1
7471 > _ACEOF
7472 >
7473 > else
7474 >  # use the GNU replacement
7475 >      case $LIBOBJS in
7476 >    "getopt.$ac_objext"   | \
7477 >  *" getopt.$ac_objext"   | \
7478 >    "getopt.$ac_objext "* | \
7479 >  *" getopt.$ac_objext "* ) ;;
7480 >  *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
7481 > esac
7482 >
7483 >      case $LIBOBJS in
7484 >    "getopt1.$ac_objext"   | \
7485 >  *" getopt1.$ac_objext"   | \
7486 >    "getopt1.$ac_objext "* | \
7487 >  *" getopt1.$ac_objext "* ) ;;
7488 >  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
7489 > esac
7490 >
7491 >                ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h"
7492 >
7493 > fi
7494 >
7495 > fi
7496 > done
7497 >
7498 >
7499 >
7500 > case $debug in
7501 >  1)
7502 >     ;;
7503 >  *)
7504 >
7505 >
7506 >
7507 >
7508 >
7509 >
7510 > echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
7511 > echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
7512 > if test "${ac_cv_prog_really_gcc+set}" = set; then
7513 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7514 > else
7515 >
7516 > cat > conftest.c <<EOF
7517 > #ifdef __GNUC__
7518 >  #ifndef __INTEL_COMPILER
7519 >     yes;
7520 >  #endif
7521 > #endif
7522 > EOF
7523 > if { ac_try='${CC-cc} -E conftest.c'
7524 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 >  (eval $ac_try) 2>&5
7526 >  ac_status=$?
7527 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
7529 >  ac_cv_prog_really_gcc=yes
7530 > else
7531 >  ac_cv_prog_really_gcc=no
7532 > fi
7533 >
7534 > fi
7535 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
7536 > echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
7537 > if test "$ac_cv_prog_really_gcc" = yes; then
7538 >        :
7539 >
7540 > else
7541 >        :
7542 >
7543 > fi
7544 >
7545 >
7546 > # Try to determine "good" native compiler flags if none specified on command
7547 > # line
7548 > if test "$ac_test_CFLAGS" != "set"; then
7549 >  CFLAGS=""
7550 >  case "${host_cpu}-${host_os}" in
7551 >
7552 >  *linux*) if test "$CC" = icc; then
7553 >                    CFLAGS="-O"
7554 >                fi;;
7555 >  sparc-solaris2*) if test "$CC" = cc; then
7556 >                    CFLAGS="-native -fast -xO5 -dalign"
7557 >                 fi;;
7558 >
7559 >  alpha*-osf*)  if test "$CC" = cc; then
7560 >                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
7561 >                fi;;
7562 >
7563 >  hppa*-hpux*)  if test "$CC" = cc; then
7564 >                    CFLAGS="-Ae +O3 +Oall"
7565 >                fi;;
7566 >
7567 >   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
7568 >                    CFLAGS="-O3 -qtune=auto -qansialias -w"
7569 >                fi;;
7570 >   powerpc*-aix*)
7571 >        if test "$CC" = cc -o "$CC" = xlc; then
7572 >                CFLAGS="-O3 -qtune=auto -qansialias -w"
7573 >                echo "*******************************************************"
7574 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
7575 >                echo "*  recommended that you use                           *"
7576 >                echo "*                                                     *"
7577 >                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
7578 >                echo "*                                 ^^^                 *"
7579                  echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
7580                  echo "*  PowerPC CPU you have.   For more info, man cc.     *"
7581                  echo "*******************************************************"
7582          fi;;
7583     *darwin*)
7584          if test "$CC" = xlc -o "$CC" = cc; then
7585 <                CFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
7585 >                CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
7586          fi;;
7587    esac
7588  
# Line 5587 | Line 8033 | if test "$ac_test_CXXFLAGS" != "set"; then
8033                  echo "*******************************************************"
8034          fi;;
8035     *darwin*)
8036 <        if test "$CXX" = xlc++; then
8037 <                CXXFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
8036 >        if test "$CXX" = xlc++ -o "$CXX" = xlC ; then
8037 >                CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
8038          fi;;
8039    esac
8040  
# Line 6000 | Line 8446 | if test x"$F90FLAGS" = x ; then
8446          fi;;
8447     *darwin*)
8448          if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then
8449 <                F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto"
8449 >                F90FLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
8450          fi;;
8451    esac
8452  
# Line 6593 | Line 9039 | fi
9039   fi
9040  
9041   fi
9042 +
9043 +   # Extract the first word of "perl", so it can be a program name with args.
9044 + set dummy perl; ac_word=$2
9045 + echo "$as_me:$LINENO: checking for $ac_word" >&5
9046 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9047 + if test "${ac_cv_path_PERLINTERP+set}" = set; then
9048 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9049 + else
9050 +  case $PERLINTERP in
9051 +  [\\/]* | ?:[\\/]*)
9052 +  ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
9053 +  ;;
9054 +  *)
9055 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 + for as_dir in $PATH
9057 + do
9058 +  IFS=$as_save_IFS
9059 +  test -z "$as_dir" && as_dir=.
9060 +  for ac_exec_ext in '' $ac_executable_extensions; do
9061 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9062 +    ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
9063 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9064 +    break 2
9065 +  fi
9066 + done
9067 + done
9068 +
9069 +  test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
9070 +  ;;
9071 + esac
9072 + fi
9073 + PERLINTERP=$ac_cv_path_PERLINTERP
9074 +
9075 + if test -n "$PERLINTERP"; then
9076 +  echo "$as_me:$LINENO: result: $PERLINTERP" >&5
9077 + echo "${ECHO_T}$PERLINTERP" >&6
9078 + else
9079 +  echo "$as_me:$LINENO: result: no" >&5
9080 + echo "${ECHO_T}no" >&6
9081 + fi
9082 +
9083 +   ac_cv_path_perlinterp="$PERLINTERP"
9084 +   _sHpB='#!'
9085 +
9086 +
9087 + # Check whether --with-perl-shebang or --without-perl-shebang was given.
9088 + if test "${with_perl_shebang+set}" = set; then
9089 +  withval="$with_perl_shebang"
9090 +  opt_perl_shebang="$withval"
9091 + else
9092 +                opt_perl_shebang="not_set"
9093 + fi;
9094 +   echo "$as_me:$LINENO: checking whether explicit instead of detected sharpbang is to be used" >&5
9095 + echo $ECHO_N "checking whether explicit instead of detected sharpbang is to be used... $ECHO_C" >&6
9096 + if test "${ax_cv_opt_perl_shebang+set}" = set; then
9097 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9098 + else
9099 +   case "$opt_perl_shebang" in
9100 +                      not_set  ) ax_cv_opt_perl_shebang=''
9101 +                               ;;
9102 +                         *     )
9103 +        ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
9104 +                    esac
9105 +
9106 + fi
9107 + echo "$as_me:$LINENO: result: $ax_cv_opt_perl_shebang" >&5
9108 + echo "${ECHO_T}$ax_cv_opt_perl_shebang" >&6
9109 +   if test "A$ax_cv_opt_perl_shebang" != "A"
9110 +     then
9111 +       ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
9112 +       PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
9113 +              { echo "$as_me:$LINENO: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
9114 + echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
9115 +
9116 + # Automatic detection of sharpbang formula starts here
9117 +     else
9118 +   _somian_shbangperl=`$PERLINTERP -V:startperl`
9119 +   negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
9120 +   echo "$as_me:$LINENO: checking for kernel sharpbang invocation to start perl" >&5
9121 + echo $ECHO_N "checking for kernel sharpbang invocation to start perl... $ECHO_C" >&6
9122 + if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then
9123 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9124 + else
9125 +  _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
9126 +        if test "x$_somian_kspb_perl" == x
9127 +          then _somian_ksbp_warn_empty='durnit'
9128 +          else
9129 +          case "A$_somian_kspb_perl" in
9130 +                 A#!*perl* )
9131 +           ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
9132 +                        ;;
9133 +                     A*    )  _somian_ksbp_warn_defau='trouble'
9134 +                              ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
9135 +          esac
9136 +        fi
9137 +
9138 + fi
9139 + echo "$as_me:$LINENO: result: $ac_cv_sys_kernshrpbang_perl" >&5
9140 + echo "${ECHO_T}$ac_cv_sys_kernshrpbang_perl" >&6
9141 + # The above prints Checking ... result message to user.
9142 +   PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
9143 +
9144 +    if test A${_somian_ksbp_warn_empty+set} == Aset
9145 +      then   { echo "$as_me:$LINENO: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
9146 + echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
9147 +    fi
9148 + # Inform user after printing result value
9149 +    if test A${_somian_ksbp_warn_defau+set} == Aset
9150 +      then { echo "$as_me:$LINENO: Maybe Not good -" >&5
9151 + echo "$as_me: Maybe Not good -" >&6;}
9152 +           { echo "$as_me:$LINENO: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
9153 + echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
9154 +      else { echo "$as_me:$LINENO: OK Good result - " >&5
9155 + echo "$as_me: OK Good result - " >&6;}
9156 +           { echo "$as_me:$LINENO: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
9157 + echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
9158 +    fi
9159 +  fi
9160 +
9161   # Extract the first word of "ar", so it can be a program name with args.
9162   set dummy ar; ac_word=$2
9163   echo "$as_me:$LINENO: checking for $ac_word" >&5
# Line 6690 | Line 9255 | fi
9255    exit 1
9256   fi
9257  
9258 + # Extract the first word of "ps", so it can be a program name with args.
9259 + set dummy ps; ac_word=$2
9260 + echo "$as_me:$LINENO: checking for $ac_word" >&5
9261 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9262 + if test "${ac_cv_path_PS+set}" = set; then
9263 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9264 + else
9265 +  case $PS in
9266 +  [\\/]* | ?:[\\/]*)
9267 +  ac_cv_path_PS="$PS" # Let the user override the test with a path.
9268 +  ;;
9269 +  *)
9270 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271 + for as_dir in $PATH
9272 + do
9273 +  IFS=$as_save_IFS
9274 +  test -z "$as_dir" && as_dir=.
9275 +  for ac_exec_ext in '' $ac_executable_extensions; do
9276 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9277 +    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
9278 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9279 +    break 2
9280 +  fi
9281 + done
9282 + done
9283  
9284 +  ;;
9285 + esac
9286 + fi
9287 + PS=$ac_cv_path_PS
9288  
9289 + if test -n "$PS"; then
9290 +  echo "$as_me:$LINENO: result: $PS" >&5
9291 + echo "${ECHO_T}$PS" >&6
9292 + else
9293 +  echo "$as_me:$LINENO: result: no" >&5
9294 + echo "${ECHO_T}no" >&6
9295 + fi
9296 +
9297 + echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5
9298 + echo $ECHO_N "checking for POSIX or BSD ps syntax... $ECHO_C" >&6
9299 + if test "${ac_cv_prog_ps_syntax+set}" = set; then
9300 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9301 + else
9302 +
9303 +        if $PS ax -o rss > /dev/null 2>&1; then
9304 +                ac_cv_prog_ps_ax=yes
9305 +        else
9306 +                ac_cv_prog_ps_ax=no
9307 +        fi
9308 +        if $PS -ef -o rss > /dev/null 2>&1; then
9309 +                ac_cv_prog_ps_ef=yes
9310 +        else
9311 +                ac_cv_prog_ps_ef=no
9312 +        fi
9313 +        if test "$ac_cv_prog_ps_ax" = yes; then
9314 +                ac_cv_prog_ps_syntax=BSD
9315 +        else
9316 +                if test "$ac_cv_prog_ps_ef" = yes; then
9317 +                        ac_cv_prog_ps_syntax=POSIX
9318 +                else
9319 +                        { { echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5
9320 + echo "$as_me: error: Could not determine ps syntax" >&2;}
9321 +   { (exit 1); exit 1; }; }
9322 +                fi
9323 +        fi
9324 +
9325 + fi
9326 + echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5
9327 + echo "${ECHO_T}$ac_cv_prog_ps_syntax" >&6
9328 +
9329 +
9330 + cat >>confdefs.h <<_ACEOF
9331 + #define PSCOMMAND $PS
9332 + _ACEOF
9333 +
9334 +
9335 + cat >>confdefs.h <<\_ACEOF
9336 + #define OBAPI
9337 + _ACEOF
9338 +
9339 +
9340 +
9341 + if test "$ac_cv_prog_ps_syntax" = BSD; then
9342 +  cat >>confdefs.h <<\_ACEOF
9343 + #define PSTYPE_IS_BSD 1
9344 + _ACEOF
9345 +
9346 + else
9347 +   if test "$ac_cv_prog_ps_syntax" = POSIX; then
9348 +       cat >>confdefs.h <<\_ACEOF
9349 + #define PSTYPE_IS_POSIX 1
9350 + _ACEOF
9351 +
9352 +   else
9353 +       { { echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5
9354 + echo "$as_me: error: Unknown ps syntax type!" >&2;}
9355 +   { (exit 1); exit 1; }; }
9356 +   fi
9357 + fi
9358 +
9359 +
9360   # Check whether --with-mpi or --without-mpi was given.
9361   if test "${with_mpi+set}" = set; then
9362    withval="$with_mpi"
# Line 6720 | Line 9385 | echo '#include <mpi.h>' > conftest.cc
9385   echo "$as_me:$LINENO: checking for mpi.h" >&5
9386   echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
9387   have_mpi_h=0
9388 + rm -f conftest*
9389   echo '#include <mpi.h>' > conftest.cc
9390 < if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then
9390 > if ${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1 ; then
9391          echo "$as_me:$LINENO: result: yes" >&5
9392   echo "${ECHO_T}yes" >&6
9393          have_mpi_h=1
9394   else
9395 +        if test -s conftest.out ; then
9396 +                cat conftest.out >> config.log
9397 +        fi
9398          echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
9399   echo "${ECHO_T}no! Check MPI include paths" >&6
9400          USE_MPI="no"
# Line 6991 | Line 9660 | fi
9660   fi
9661  
9662   fi
9663 <
6995 < $as_unset ac_cv_lib_mpi_MPI_Init
9663 > $as_unset ac_cv_lib_mpich_MPI_Init
9664   if test x = x"$MPI_LIB"; then
9665 < echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
9666 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
9667 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
9665 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
9666 > echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
9667 > if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
9668    echo $ECHO_N "(cached) $ECHO_C" >&6
9669   else
9670    ac_check_lib_save_LIBS=$LIBS
9671 < LIBS="-lmpi -llam -lpthread $LIBS"
9671 > LIBS="-lmpich "-lpmpich" $LIBS"
9672   cat >conftest.$ac_ext <<_ACEOF
9673   /* confdefs.h.  */
9674   _ACEOF
# Line 7045 | Line 9713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9713    ac_status=$?
9714    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715    (exit $ac_status); }; }; then
9716 <  ac_cv_lib_mpi_MPI_Init=yes
9716 >  ac_cv_lib_mpich_MPI_Init=yes
9717   else
9718    echo "$as_me: failed program was:" >&5
9719   sed 's/^/| /' conftest.$ac_ext >&5
9720  
9721 < ac_cv_lib_mpi_MPI_Init=no
9721 > ac_cv_lib_mpich_MPI_Init=no
9722   fi
9723   rm -f conftest.err conftest.$ac_objext \
9724        conftest$ac_exeext conftest.$ac_ext
9725   LIBS=$ac_check_lib_save_LIBS
9726   fi
9727 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
9728 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
9729 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
9730 <  MPI_LIB="-lmpi -llam -lpthread"
7063 < else
7064 <
7065 <             { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
7066 < echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
7067 <   { (exit 1); exit 1; }; }
7068 <             USE_MPI="no"
7069 <
7070 < fi
7071 <
7072 < fi
7073 <
7074 <
7075 <
7076 < echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
7077 < echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
7078 < MPI_F90_LIB=""
7079 < if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
7080 <        MPI_F90_LIB="-lfmpich"
7081 < elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
7082 <        MPI_F90_LIB="-llamf77mpi"
7083 < else
7084 <                        MPI_F90_LIB="  "
9727 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
9728 > echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
9729 > if test $ac_cv_lib_mpich_MPI_Init = yes; then
9730 >  MPI_LIB="-lmpich -lpmpich"
9731   fi
7086 echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
7087 echo "${ECHO_T}found $MPI_F90_LIB" >&6
9732  
7089
9733   fi
9734  
9735 <
9736 <
9737 < # Check whether --with-sprng or --without-sprng was given.
9738 < if test "${with_sprng+set}" = set; then
9739 <  withval="$with_sprng"
7097 <  with_sprng=$withval
7098 < else
7099 <  with_sprng="/usr/local"
7100 < fi;
7101 <
7102 < case "x$with_sprng" in
7103 <        xyes | "x")  USE_SPRNG=yes;;
7104 <        xno) USE_SPRNG=no ;;
7105 <        *) SPRNG="$with_sprng"; USE_SPRNG=yes ;;
7106 < esac
7107 < if test "$USE_SPRNG" = "yes" -a -z "$with_sprng"; then
7108 <        SPRNG="/usr/local"
7109 < fi
7110 < if test "$USE_SPRNG" = "yes"; then
7111 <
7112 <
7113 < # Set variables...
7114 < SPRNG_LIB_DIR="$SPRNG/lib"
7115 < SPRNG_INC_DIR="$SPRNG/include"
7116 <
7117 <
7118 <
7119 < echo "$as_me:$LINENO: checking for sprng.h" >&5
7120 < echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
7121 < have_sprng_h=0
7122 < echo '#include <sprng.h>' > conftest.cc
7123 < if test -z "`${CXX} -I${SPRNG_INC_DIR} -c conftest.cc 2>&1`"; then
7124 <        echo "$as_me:$LINENO: result: yes" >&5
7125 < echo "${ECHO_T}yes" >&6
7126 <        have_sprng_h=1
7127 < else
7128 <        echo "$as_me:$LINENO: result: no! Check SPRNG include path!" >&5
7129 < echo "${ECHO_T}no! Check SPRNG include path!" >&6
7130 <        USE_SPRNG="no"
7131 < fi
7132 < rm -f conftest*
7133 < if test "$have_sprng_h" = 1; then
7134 <
7135 < cat >>confdefs.h <<\_ACEOF
7136 < #define HAVE_SPRNG_H 1
7137 < _ACEOF
7138 <
7139 < fi
7140 <
7141 < ac_ext=c
7142 < ac_cpp='$CPP $CPPFLAGS'
7143 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7146 <
7147 < ac_save_LDFLAGS=$LDFLAGS
7148 < LDFLAGS="${LDFLAGS} -L${SPRNG_LIB_DIR} "
7149 <
7150 < echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5
7151 < echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6
7152 < if test "${ac_cv_lib_sprng_init_rng+set}" = set; then
9735 > $as_unset ac_cv_lib_mpi_MPI_Init
9736 > if test x = x"$MPI_LIB"; then
9737 > echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
9738 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
9739 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
9740    echo $ECHO_N "(cached) $ECHO_C" >&6
9741   else
9742    ac_check_lib_save_LIBS=$LIBS
9743 < LIBS="-lsprng  $LIBS"
9743 > LIBS="-lmpi -llam -lpthread $LIBS"
9744   cat >conftest.$ac_ext <<_ACEOF
9745   /* confdefs.h.  */
9746   _ACEOF
# Line 7167 | Line 9754 | char init_rng ();
9754   #endif
9755   /* We use char because int might match the return type of a gcc2
9756     builtin and then its argument prototype would still apply.  */
9757 < char init_rng ();
9757 > char MPI_Init ();
9758   int
9759   main ()
9760   {
9761 < init_rng ();
9761 > MPI_Init ();
9762    ;
9763    return 0;
9764   }
# Line 7198 | Line 9785 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9785    ac_status=$?
9786    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787    (exit $ac_status); }; }; then
9788 <  ac_cv_lib_sprng_init_rng=yes
9788 >  ac_cv_lib_mpi_MPI_Init=yes
9789   else
9790    echo "$as_me: failed program was:" >&5
9791   sed 's/^/| /' conftest.$ac_ext >&5
9792  
9793 < ac_cv_lib_sprng_init_rng=no
9793 > ac_cv_lib_mpi_MPI_Init=no
9794   fi
9795   rm -f conftest.err conftest.$ac_objext \
9796        conftest$ac_exeext conftest.$ac_ext
9797   LIBS=$ac_check_lib_save_LIBS
9798   fi
9799 < echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
9800 < echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
9801 < if test $ac_cv_lib_sprng_init_rng = yes; then
9802 <  SPRNG_LIB="-lsprng"
9799 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
9800 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
9801 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
9802 >  MPI_LIB="-lmpi -llam -lpthread"
9803   else
9804  
9805 <             { { echo "$as_me:$LINENO: error: Didn't find libsprng; check path for SPRNG package first..." >&5
9806 < echo "$as_me: error: Didn't find libsprng; check path for SPRNG package first..." >&2;}
9805 >             { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
9806 > echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
9807     { (exit 1); exit 1; }; }
9808 <             USE_SPRNG="no"
9808 >             USE_MPI="no"
9809  
9810   fi
9811  
9812 + fi
9813  
9814 < if test "$USE_SPRNG" = "no"; then
9815 <  { { echo "$as_me:$LINENO: error: No working SPRNG library found" >&5
9816 < echo "$as_me: error: No working SPRNG library found" >&2;}
9817 <   { (exit 1); exit 1; }; }
9814 >
9815 >
9816 > echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
9817 > echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
9818 > MPI_F90_LIB=""
9819 > if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
9820 >        MPI_F90_LIB="-lfmpich"
9821 > elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
9822 >        MPI_F90_LIB="-llamf77mpi"
9823 > else
9824 >                        MPI_F90_LIB="  "
9825   fi
9826 + echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
9827 + echo "${ECHO_T}found $MPI_F90_LIB" >&6
9828  
9829  
9830   fi
9831  
9832  
9833  
7237 echo "$as_me:$LINENO: checking if MKL is wanted" >&5
7238 echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6
9834  
9835 < # Check whether --with-mkl or --without-mkl was given.
9836 < if test "${with_mkl+set}" = set; then
9837 <  withval="$with_mkl"
9838 <     echo "$as_me:$LINENO: result: yes" >&5
9839 < echo "${ECHO_T}yes" >&6
9840 <    for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do
9841 <        mkldir="$dir"
9842 <        if test -f "$dir/include/mkl.h"; then
9843 <            found_mkl="yes";
9844 <            break;
9845 <        fi
9846 <    done
9847 <    if test x_$found_mkl != x_yes; then
9848 <        { { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5
9849 < echo "$as_me: error: Cannot find MKL includes" >&2;}
9850 <   { (exit 1); exit 1; }; }
9851 <    else
9852 <        printf "MKL includes found in $mkldir/include\n";
9835 > USE_CGAL=no
9836 > cgal_makefile=auto
9837 >
9838 > # Check whether --with-cgal-makefile or --without-cgal-makefile was given.
9839 > if test "${with_cgal_makefile+set}" = set; then
9840 >  withval="$with_cgal_makefile"
9841 >  cgal_makefile="$withval"
9842 > fi;
9843 >
9844 > if test "x$cgal_makefile" != xno; then
9845 >
9846 >  if test "x$cgal_makefile" = xauto -a "x$CGAL_MAKEFILE" != x; then
9847 >    cgal_makefile="$CGAL_MAKEFILE"
9848 >  fi
9849 >
9850 >  echo "$as_me:$LINENO: checking for cgal_makefile: $cgal_makefile" >&5
9851 > echo $ECHO_N "checking for cgal_makefile: $cgal_makefile... $ECHO_C" >&6
9852 >
9853 >  if test -f "$cgal_makefile"; then
9854 >
9855 >    cat >config.tmp.Makefile <<EOF
9856 > include $cgal_makefile
9857 > default:
9858 >        @echo CGAL_OS_COMPILER=\"\${CGAL_OS_COMPILER}\" >config.tmp.cgalvariables
9859 >        @echo CGAL_INCLDIR=\"\${CGAL_INCL_DIR}\" >>config.tmp.cgalvariables
9860 >        @echo CGAL_INCLCONFDIR=\"\${CGAL_INCL_CONF_DIR}\" >>config.tmp.cgalvariables
9861 >        @echo CGAL_LIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
9862 >        @echo CGAL_RLIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
9863 >        @echo CGAL_CXXFLAGS=\"\${CGAL_CXXFLAGS}\" >>config.tmp.cgalvariables
9864 >        @echo GMP_INCLDIR=\"\${GMP_INCL_DIR}\" >>config.tmp.cgalvariables
9865 >        @echo GMP_LIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
9866 >        @echo GMP_RLIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
9867 >        @echo LEDA_INCLDIR=\"\${LEDA_INCL_DIR}\" >>config.tmp.cgalvariables
9868 >        @echo LEDA_LIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
9869 >        @echo LEDA_RLIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
9870 > EOF
9871 >
9872 >    make -s -f config.tmp.Makefile
9873 >    . config.tmp.cgalvariables
9874 >
9875 >    rm -f config.tmp.Makefile config.tmp.cgalvariables
9876 >
9877 >    if test "x$CGAL_INCLDIR" = "x"; then
9878 >      CGAL_INCLDIR=""
9879      fi
9880  
9881 +    if test "x$CGAL_LIBDIR" = "x"; then
9882 +      CGAL_LIBDIR=""
9883 +    fi
9884  
9885 +    if test "x$CGAL_RLIBDIR" = "x"; then
9886 +      CGAL_RLIBDIR=""
9887 +    fi
9888  
9889 <  ac_ext=c
9890 < ac_cpp='$CPP $CPPFLAGS'
9891 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
9889 >    if test "x$LEDA_INCLDIR" = "x"; then
9890 >      LEDA_INCLDIR=""
9891 >    fi
9892  
9893 <  ac_save_CPPFLAGS=$CPPFLAGS
9894 <  CPPFLAGS="${CPPFLAGS} -I${mkldir}/include"
9895 <  ac_save_LDFLAGS=$LDFLAGS
9896 <  LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide"
9897 <  if test "${ac_cv_header_mkl_h+set}" = set; then
9898 <  echo "$as_me:$LINENO: checking for mkl.h" >&5
9899 < echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
9900 < if test "${ac_cv_header_mkl_h+set}" = set; then
9893 >    if test "x$LEDA_LIBDIR" = "x"; then
9894 >      LEDA_LIBDIR=""
9895 >    fi
9896 >
9897 >    if test "x$LEDA_RLIBDIR" = "x"; then
9898 >      LEDA_RLIBDIR=""
9899 >    fi
9900 >
9901 >    if test "x$GMP_INCLDIR" = "x"; then
9902 >      GMP_INCLDIR=""
9903 >    fi
9904 >
9905 >    if test "x$GMP_LIBDIR" = "x"; then
9906 >      GMP_LIBDIR=""
9907 >    fi
9908 >
9909 >    if test "x$GMP_RLIBDIR" = "x"; then
9910 >      GMP_RLIBDIR=""
9911 >    fi
9912 >
9913 >    echo "$as_me:$LINENO: result: CGAL_OS_COMPILER=   $CGAL_OS_COMPILER" >&5
9914 > echo "${ECHO_T}CGAL_OS_COMPILER=   $CGAL_OS_COMPILER" >&6
9915 >    echo "$as_me:$LINENO: result: CGAL_INCLDIR=       $CGAL_INCLDIR" >&5
9916 > echo "${ECHO_T}CGAL_INCLDIR=       $CGAL_INCLDIR" >&6
9917 >    echo "$as_me:$LINENO: result: CGAL_INCLCONFDIR=   $CGAL_INCLCONFDIR" >&5
9918 > echo "${ECHO_T}CGAL_INCLCONFDIR=   $CGAL_INCLCONFDIR" >&6
9919 >    echo "$as_me:$LINENO: result: CGAL_LIBDIR=        $CGAL_LIBDIR" >&5
9920 > echo "${ECHO_T}CGAL_LIBDIR=        $CGAL_LIBDIR" >&6
9921 >    echo "$as_me:$LINENO: result: CGAL_CXXFLAGS=      $CGAL_CXXFLAGS" >&5
9922 > echo "${ECHO_T}CGAL_CXXFLAGS=      $CGAL_CXXFLAGS" >&6
9923 >    echo "$as_me:$LINENO: result: LEDA_INCLDIR=       $LEDA_INCLDIR" >&5
9924 > echo "${ECHO_T}LEDA_INCLDIR=       $LEDA_INCLDIR" >&6
9925 >    echo "$as_me:$LINENO: result: LEDA_LIBDIR=        $LEDA_LIBDIR" >&5
9926 > echo "${ECHO_T}LEDA_LIBDIR=        $LEDA_LIBDIR" >&6
9927 >    echo "$as_me:$LINENO: result: GMP_INCLDIR=        $GMP_INCLDIR" >&5
9928 > echo "${ECHO_T}GMP_INCLDIR=        $GMP_INCLDIR" >&6
9929 >    echo "$as_me:$LINENO: result: GMP_LIBDIR=         $GMP_LIBDIR" >&5
9930 > echo "${ECHO_T}GMP_LIBDIR=         $GMP_LIBDIR" >&6
9931 >
9932 >    ac_ext=cc
9933 > ac_cpp='$CXXCPP $CPPFLAGS'
9934 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9935 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9936 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9937 >
9938 >    save_CXXFLAGS="$CXXFLAGS"
9939 >    CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
9940 >    if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
9941 >  echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
9942 > echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
9943 > if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
9944    echo $ECHO_N "(cached) $ECHO_C" >&6
9945   fi
9946 < echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
9947 < echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
9946 > echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
9947 > echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
9948   else
9949    # Is the header compilable?
9950 < echo "$as_me:$LINENO: checking mkl.h usability" >&5
9951 < echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
9950 > echo "$as_me:$LINENO: checking CGAL/Cartesian.h usability" >&5
9951 > echo $ECHO_N "checking CGAL/Cartesian.h usability... $ECHO_C" >&6
9952   cat >conftest.$ac_ext <<_ACEOF
9953   /* confdefs.h.  */
9954   _ACEOF
# Line 7288 | Line 9956 | $ac_includes_default
9956   cat >>conftest.$ac_ext <<_ACEOF
9957   /* end confdefs.h.  */
9958   $ac_includes_default
9959 < #include <mkl.h>
9959 > #include <CGAL/Cartesian.h>
9960   _ACEOF
9961   rm -f conftest.$ac_objext
9962   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 7299 | Line 9967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9967    cat conftest.err >&5
9968    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969    (exit $ac_status); } &&
9970 <         { ac_try='test -z "$ac_c_werror_flag"
9970 >         { ac_try='test -z "$ac_cxx_werror_flag"
9971                           || test ! -s conftest.err'
9972    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973    (eval $ac_try) 2>&5
# Line 7324 | Line 9992 | echo "$as_me:$LINENO: checking mkl.h presence" >&5
9992   echo "${ECHO_T}$ac_header_compiler" >&6
9993  
9994   # Is the header present?
9995 < echo "$as_me:$LINENO: checking mkl.h presence" >&5
9996 < echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
9995 > echo "$as_me:$LINENO: checking CGAL/Cartesian.h presence" >&5
9996 > echo $ECHO_N "checking CGAL/Cartesian.h presence... $ECHO_C" >&6
9997   cat >conftest.$ac_ext <<_ACEOF
9998   /* confdefs.h.  */
9999   _ACEOF
10000   cat confdefs.h >>conftest.$ac_ext
10001   cat >>conftest.$ac_ext <<_ACEOF
10002   /* end confdefs.h.  */
10003 < #include <mkl.h>
10003 > #include <CGAL/Cartesian.h>
10004   _ACEOF
10005   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10006    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 7343 | Line 10011 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
10011    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012    (exit $ac_status); } >/dev/null; then
10013    if test -s conftest.err; then
10014 <    ac_cpp_err=$ac_c_preproc_warn_flag
10015 <    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10014 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
10015 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10016    else
10017      ac_cpp_err=
10018    fi
# Line 7364 | Line 10032 | case $ac_header_compiler:$ac_header_preproc:$ac_c_prep
10032   echo "${ECHO_T}$ac_header_preproc" >&6
10033  
10034   # So?  What about this header?
10035 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10035 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10036    yes:no: )
10037 <    { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10038 < echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10039 <    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5
10040 < echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;}
10037 >    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&5
10038 > echo "$as_me: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10039 >    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&5
10040 > echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&2;}
10041      ac_header_preproc=yes
10042      ;;
10043    no:yes:* )
10044 <    { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
10045 < echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
10046 <    { echo "$as_me:$LINENO: WARNING: mkl.h:     check for missing prerequisite headers?" >&5
10047 < echo "$as_me: WARNING: mkl.h:     check for missing prerequisite headers?" >&2;}
10048 <    { echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5
10049 < echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;}
10050 <    { echo "$as_me:$LINENO: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&5
10051 < echo "$as_me: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10052 <    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
10053 < echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
10054 <    { echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5
10055 < echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;}
10044 >    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&5
10045 > echo "$as_me: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&2;}
10046 >    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h:     check for missing prerequisite headers?" >&5
10047 > echo "$as_me: WARNING: CGAL/Cartesian.h:     check for missing prerequisite headers?" >&2;}
10048 >    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&5
10049 > echo "$as_me: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&2;}
10050 >    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h:     section \"Present But Cannot Be Compiled\"" >&5
10051 > echo "$as_me: WARNING: CGAL/Cartesian.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10052 >    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&5
10053 > echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&2;}
10054 >    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&5
10055 > echo "$as_me: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&2;}
10056      (
10057        cat <<\_ASBOX
10058   ## ------------------------------ ##
# Line 7395 | Line 10063 | echo "$as_me:$LINENO: checking for mkl.h" >&5
10063        sed "s/^/$as_me: WARNING:     /" >&2
10064      ;;
10065   esac
10066 < echo "$as_me:$LINENO: checking for mkl.h" >&5
10067 < echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
10068 < if test "${ac_cv_header_mkl_h+set}" = set; then
10066 > echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
10067 > echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
10068 > if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
10069    echo $ECHO_N "(cached) $ECHO_C" >&6
10070   else
10071 <  ac_cv_header_mkl_h=$ac_header_preproc
10071 >  ac_cv_header_CGAL_Cartesian_h=$ac_header_preproc
10072   fi
10073 < echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
10074 < echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
10073 > echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
10074 > echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
10075  
10076   fi
10077 < if test $ac_cv_header_mkl_h = yes; then
10078 <
7411 <    echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5
7412 < echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6
7413 < if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then
7414 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10077 > if test $ac_cv_header_CGAL_Cartesian_h = yes; then
10078 >  cgal=yes
10079   else
10080 <  ac_check_lib_save_LIBS=$LIBS
10081 < LIBS="-lmkl  $LIBS"
10080 >  cgal=no
10081 > fi
10082 >
10083 >
10084 >    CXXFLAGS="$save_CXXFLAGS"
10085 >
10086 >    if test "x$cgal" = xyes; then
10087 >      echo "$as_me:$LINENO: checking for CGAL version" >&5
10088 > echo $ECHO_N "checking for CGAL version... $ECHO_C" >&6
10089 >      LOCATION=${CGAL_INCLDIR}
10090 >      LOCATION=${LOCATION:-/usr/include}
10091 >      if test -f $LOCATION/CGAL/version.h; then
10092 >        CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/version.h | sed 's/[^0-9\.]*//g'`
10093 >      else
10094 >        CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/config.h | sed 's/[^0-9\.]*//g'`
10095 >      fi
10096 >      if echo $CGAL_VERSION | grep -q "^[3456789]"; then
10097 >        echo "$as_me:$LINENO: result: ($CGAL_VERSION) yes" >&5
10098 > echo "${ECHO_T}($CGAL_VERSION) yes" >&6
10099 >      else
10100 >        echo "$as_me:$LINENO: result: ($CGAL_VERSION) no" >&5
10101 > echo "${ECHO_T}($CGAL_VERSION) no" >&6
10102 >        cgal=no
10103 >      fi
10104 >    fi
10105 >
10106 >    if test "x$cgal" = xyes; then
10107 >      CGAL_LIBS="-lCGAL"
10108 >      echo "$as_me:$LINENO: checking whether CGAL uses LEDA" >&5
10109 > echo $ECHO_N "checking whether CGAL uses LEDA... $ECHO_C" >&6
10110 >      if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_LEDA; then
10111 >        CGAL_USES_LEDA=yes
10112 >        echo "$as_me:$LINENO: result: yes" >&5
10113 > echo "${ECHO_T}yes" >&6
10114 >        CGAL_DEFINES="-DCGAL_USE_LEDA -DLEDA_PREFIX"
10115 >      else
10116 >        echo "$as_me:$LINENO: result: no" >&5
10117 > echo "${ECHO_T}no" >&6
10118 >        CGAL_USES_LEDA=no
10119 >      fi
10120 >
10121 >      echo "$as_me:$LINENO: checking whether CGAL uses GMP" >&5
10122 > echo $ECHO_N "checking whether CGAL uses GMP... $ECHO_C" >&6
10123 >      if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_GMP; then
10124 >        CGAL_USES_GMP=yes
10125 >        echo "$as_me:$LINENO: result: yes" >&5
10126 > echo "${ECHO_T}yes" >&6
10127 >        CGAL_DEFINES="-DCGAL_USE_GMP $CGAL_DEFINES"
10128 >      else
10129 >        echo "$as_me:$LINENO: result: no" >&5
10130 > echo "${ECHO_T}no" >&6
10131 >        CGAL_USES_GMP=no
10132 >      fi
10133 >
10134 >      CGAL_LIBS="$CGAL_LIBS -lm"
10135 >
10136 >      CGAL_CXXFLAGS="-ftemplate-depth-50"
10137 >
10138 >      echo "$as_me:$LINENO: result: CGAL_USES_LEDA=     $CGAL_USES_LEDA" >&5
10139 > echo "${ECHO_T}CGAL_USES_LEDA=     $CGAL_USES_LEDA" >&6
10140 >      echo "$as_me:$LINENO: result: CGAL_USES_GMP =     $CGAL_USES_GMP" >&5
10141 > echo "${ECHO_T}CGAL_USES_GMP =     $CGAL_USES_GMP" >&6
10142 >      echo "$as_me:$LINENO: result: CGAL_INCLDIR  =     $CGAL_INCLDIR" >&5
10143 > echo "${ECHO_T}CGAL_INCLDIR  =     $CGAL_INCLDIR" >&6
10144 >      echo "$as_me:$LINENO: result: CGAL_LIBDIR   =     $CGAL_LIBDIR" >&5
10145 > echo "${ECHO_T}CGAL_LIBDIR   =     $CGAL_LIBDIR" >&6
10146 >      echo "$as_me:$LINENO: result: CGAL_DEFINES  =     $CGAL_DEFINES" >&5
10147 > echo "${ECHO_T}CGAL_DEFINES  =     $CGAL_DEFINES" >&6
10148 >      echo "$as_me:$LINENO: result: CGAL_CXXFLAGS =     $CGAL_CXXFLAGS" >&5
10149 > echo "${ECHO_T}CGAL_CXXFLAGS =     $CGAL_CXXFLAGS" >&6
10150 >      echo "$as_me:$LINENO: result: CGAL_LIBS     =     $CGAL_LIBS" >&5
10151 > echo "${ECHO_T}CGAL_LIBS     =     $CGAL_LIBS" >&6
10152 >    fi
10153 >
10154 >    if test "x$cgal" = xyes; then
10155 >      save_LIBS="$LIBS"
10156 >      LIBS="$LIBS -L$CGAL_LIBDIR"
10157 >      if test "x$CGAL_USES_LEDA" = xyes; then
10158 >        LIBS="-lL $LIBS -L$LEDA_LIBDIR"
10159 >      fi
10160 >      # if test "x$CGAL_USES_GMP" = xyes; then
10161 >      #   LIBS="-lgmp $LIBS $GMP_LIBDIR"
10162 >      # fi
10163 >      echo "$as_me:$LINENO: checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL" >&5
10164 > echo $ECHO_N "checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL... $ECHO_C" >&6
10165 > save_CXXFLAGS_CHECK_CXX_LIB="$CXXFLAGS"
10166 > CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
10167 > save_LIBS_CHECK_CXX_LIB="$LIBS"
10168 > LIBS="-lCGAL  $LIBS"
10169   cat >conftest.$ac_ext <<_ACEOF
10170   /* confdefs.h.  */
10171   _ACEOF
10172   cat confdefs.h >>conftest.$ac_ext
10173   cat >>conftest.$ac_ext <<_ACEOF
10174   /* end confdefs.h.  */
10175 <
7425 < /* Override any gcc2 internal prototype to avoid an error.  */
7426 < #ifdef __cplusplus
7427 < extern "C"
7428 < #endif
7429 < /* We use char because int might match the return type of a gcc2
7430 <   builtin and then its argument prototype would still apply.  */
7431 < char vslNewStream ();
10175 > #include <CGAL/Cartesian.h>
10176   int
10177   main ()
10178   {
10179 < vslNewStream ();
10179 > ::CGAL::Cartesian<int>::Point_2 P
10180    ;
10181    return 0;
10182   }
# Line 7446 | Line 10190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10190    cat conftest.err >&5
10191    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192    (exit $ac_status); } &&
10193 <         { ac_try='test -z "$ac_c_werror_flag"
10193 >         { ac_try='test -z "$ac_cxx_werror_flag"
10194                           || test ! -s conftest.err'
10195    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196    (eval $ac_try) 2>&5
# Line 7459 | Line 10203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10203    ac_status=$?
10204    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205    (exit $ac_status); }; }; then
10206 <  ac_cv_lib_mkl_vslNewStream=yes
10206 >  echo "$as_me:$LINENO: result: yes" >&5
10207 > echo "${ECHO_T}yes" >&6
10208 > cgal=yes
10209   else
10210    echo "$as_me: failed program was:" >&5
10211   sed 's/^/| /' conftest.$ac_ext >&5
10212  
10213 < ac_cv_lib_mkl_vslNewStream=no
10213 > echo "$as_me:$LINENO: result: no" >&5
10214 > echo "${ECHO_T}no" >&6
10215 > cgal=no
10216   fi
10217   rm -f conftest.err conftest.$ac_objext \
10218        conftest$ac_exeext conftest.$ac_ext
10219 < LIBS=$ac_check_lib_save_LIBS
10220 < fi
10221 < echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
10222 < echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6
7475 < if test $ac_cv_lib_mkl_vslNewStream = yes; then
7476 <  MKL_LIBDIR="${mkldir}/lib/32",
7477 <                     MKL_LIB="-lmkl -lvml -lguide",
7478 <                     HAVE_MKL="yes"
7479 < fi
10219 > CXXFLAGS="$save_CXXFLAGS_CHECK_CXX_LIB"
10220 > LIBS="$save_LIBS_CHECK_CXX_LIB"
10221 >      LIBS="$save_LIBS"
10222 >    fi
10223  
10224 <
7482 < else
7483 <  MKL_INC="-I${mkldir}/include"
7484 < fi
7485 <
7486 <
7487 <  CPPFLAGS=$ac_save_CPPFLAGS
7488 <  LDFLAGS=$ac_save_LDFLAGS
10224 >  fi
10225    ac_ext=c
10226   ac_cpp='$CPP $CPPFLAGS'
10227   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 7493 | Line 10229 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
10229   ac_compiler_gnu=$ac_cv_c_compiler_gnu
10230  
10231  
10232 <  if test x_$HAVE_MKL != x_yes; then
10233 <        { { echo "$as_me:$LINENO: error: Can't build with MKL" >&5
10234 < echo "$as_me: error: Can't build with MKL" >&2;}
10235 <   { (exit 1); exit 1; }; }
10232 > fi
10233 >
10234 > if test "x$cgal" = xyes; then
10235 >  USE_CGAL=yes
10236 >
10237 > cat >>confdefs.h <<\_ACEOF
10238 > #define HAVE_CGAL 1
10239 > _ACEOF
10240 >
10241 >
10242 > cat >>confdefs.h <<_ACEOF
10243 > #define CGAL_VERSION $CGAL_VERSION
10244 > _ACEOF
10245 >
10246 >  if ! echo $CGAL_VERSION | grep -q "^3.0"; then
10247 >    { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
10248 > echo "$as_me: WARNING: *****************************************************" >&2;}
10249 >    { echo "$as_me:$LINENO: WARNING: *** Warning: Your CGAL version is newer than the  ***" >&5
10250 > echo "$as_me: WARNING: *** Warning: Your CGAL version is newer than the  ***" >&2;}
10251 >    { echo "$as_me:$LINENO: WARNING: *** supported versions. It may still work though. ***" >&5
10252 > echo "$as_me: WARNING: *** supported versions. It may still work though. ***" >&2;}
10253 >    { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
10254 > echo "$as_me: WARNING: *****************************************************" >&2;}
10255    fi
10256 + else
10257 +   if test "x$cgal_makefile" != xno; then
10258 +    echo "$as_me:$LINENO: result: No CGAL support. These are not the droids you want." >&5
10259 + echo "${ECHO_T}No CGAL support. These are not the droids you want." >&6
10260 +  fi
10261 +  CGAL_INCLDIR=
10262 +  CGAL_LIBDIR=
10263 +  CGAL_RLIBDIR=
10264 +  CGAL_DEFINES=
10265 +  CGAL_CXXFLAGS=
10266 +  CGAL_LIBS=
10267 + fi
10268  
10269  
10270 + CGAL_INC_DIR="${CGAL_INCLDIR} ${CGAL_INCLCONFDIR}"
10271  
10272 + CGAL_LIB_DIR=${CGAL_LIBDIR}
10273  
10274 + CGAL_RLIB_DIR=${CGAL_RLIBDIR}
10275  
10276 +
10277 +
10278 +
10279 +
10280 +
10281 +
10282 + # Check whether --enable-doxygen or --disable-doxygen was given.
10283 + if test "${enable_doxygen+set}" = set; then
10284 +  enableval="$enable_doxygen"
10285 +
10286 + fi;
10287 + # Check whether --enable-dot or --disable-dot was given.
10288 + if test "${enable_dot+set}" = set; then
10289 +  enableval="$enable_dot"
10290 +
10291 + fi;
10292 + # Check whether --enable-html-docs or --disable-html-docs was given.
10293 + if test "${enable_html_docs+set}" = set; then
10294 +  enableval="$enable_html_docs"
10295 +
10296   else
10297 +   enable_html_docs=yes
10298 + fi;
10299 + # Check whether --enable-latex-docs or --disable-latex-docs was given.
10300 + if test "${enable_latex_docs+set}" = set; then
10301 +  enableval="$enable_latex_docs"
10302  
10303 <    echo "$as_me:$LINENO: result: no" >&5
10303 > else
10304 >   enable_latex_docs=no
10305 > fi;
10306 > if test "x$enable_doxygen" = xno; then
10307 >        enable_doc=no
10308 > else
10309 >        # Extract the first word of "doxygen", so it can be a program name with args.
10310 > set dummy doxygen; ac_word=$2
10311 > echo "$as_me:$LINENO: checking for $ac_word" >&5
10312 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10313 > if test "${ac_cv_path_DOXYGEN+set}" = set; then
10314 >  echo $ECHO_N "(cached) $ECHO_C" >&6
10315 > else
10316 >  case $DOXYGEN in
10317 >  [\\/]* | ?:[\\/]*)
10318 >  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
10319 >  ;;
10320 >  *)
10321 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 > for as_dir in $PATH
10323 > do
10324 >  IFS=$as_save_IFS
10325 >  test -z "$as_dir" && as_dir=.
10326 >  for ac_exec_ext in '' $ac_executable_extensions; do
10327 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10328 >    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
10329 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 >    break 2
10331 >  fi
10332 > done
10333 > done
10334 >
10335 >  ;;
10336 > esac
10337 > fi
10338 > DOXYGEN=$ac_cv_path_DOXYGEN
10339 >
10340 > if test -n "$DOXYGEN"; then
10341 >  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
10342 > echo "${ECHO_T}$DOXYGEN" >&6
10343 > else
10344 >  echo "$as_me:$LINENO: result: no" >&5
10345   echo "${ECHO_T}no" >&6
10346 + fi
10347  
10348 < fi;
10348 >        if test "x$DOXYGEN" = x; then
10349 >                if test "x$enable_doxygen" = xyes; then
10350 >                        { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
10351 > echo "$as_me: error: could not find doxygen" >&2;}
10352 >   { (exit 1); exit 1; }; }
10353 >                fi
10354 >                enable_doc=no
10355 >        else
10356 >                enable_doc=yes
10357 >                # Extract the first word of "dot", so it can be a program name with args.
10358 > set dummy dot; ac_word=$2
10359 > echo "$as_me:$LINENO: checking for $ac_word" >&5
10360 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10361 > if test "${ac_cv_path_DOT+set}" = set; then
10362 >  echo $ECHO_N "(cached) $ECHO_C" >&6
10363 > else
10364 >  case $DOT in
10365 >  [\\/]* | ?:[\\/]*)
10366 >  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
10367 >  ;;
10368 >  *)
10369 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370 > for as_dir in $PATH
10371 > do
10372 >  IFS=$as_save_IFS
10373 >  test -z "$as_dir" && as_dir=.
10374 >  for ac_exec_ext in '' $ac_executable_extensions; do
10375 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10376 >    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
10377 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10378 >    break 2
10379 >  fi
10380 > done
10381 > done
10382  
10383 +  ;;
10384 + esac
10385 + fi
10386 + DOT=$ac_cv_path_DOT
10387  
10388 + if test -n "$DOT"; then
10389 +  echo "$as_me:$LINENO: result: $DOT" >&5
10390 + echo "${ECHO_T}$DOT" >&6
10391 + else
10392 +  echo "$as_me:$LINENO: result: no" >&5
10393 + echo "${ECHO_T}no" >&6
10394 + fi
10395  
10396 +        fi
10397 + fi
10398  
10399 + if test "x$enable_doc" = xyes; then
10400 +  DOC=1
10401 + else
10402 +  DOC=0
10403 + fi
10404  
10405 +
10406 + if test x$DOT = x; then
10407 +        if test "x$enable_dot" = xyes; then
10408 +                { { echo "$as_me:$LINENO: error: could not find dot" >&5
10409 + echo "$as_me: error: could not find dot" >&2;}
10410 +   { (exit 1); exit 1; }; }
10411 +        fi
10412 +        enable_dot=no
10413 + else
10414 +        enable_dot=yes
10415 + fi
10416 +
10417 +
10418 +
10419 +
10420 +
10421 +
10422 +
10423   OBJEXT=".$OBJEXT"
10424  
10425   OOPSE=oopse
# Line 7536 | Line 10442 | MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
10442   esac
10443  
10444   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
7539
7540 SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder third-party "
10445  
10446   CFLAGS=${CFLAGS-""}
10447   CXXFLAGS=${CXXFLAGS-""}
# Line 7572 | Line 10476 | esac
10476  
10477  
10478  
7575                    ac_config_headers="$ac_config_headers libBASS/config.h libmdtools/config.h"
10479  
10480 <                                                                                                                                                                                                                            ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile third-party/Makefile samples/alkane/Makefile samples/argon/Makefile samples/lipid/Makefile samples/minimizer/Makefile samples/metals/Makefile samples/water/Makefile samples/water/dimer/Makefile samples/water/spce/Makefile samples/water/ssd/Makefile samples/water/ssde/Makefile samples/water/tip4p/Makefile samples/water/tip3p_ice/Makefile samples/zcons/Makefile"
10480 >          ac_config_headers="$ac_config_headers src/config.h"
10481  
10482 +                                        ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/applications/nanoRodBuilder/Makefile scripts/filepp"
10483  
10484 +
10485   cat >confcache <<\_ACEOF
10486   # This file is a shell script that caches the results of configure
10487   # tests run on this system so they can be shared between configure
# Line 7939 | Line 10844 | This file was extended by OOPSE $as_me 1.0, which was
10844   } >&5
10845   cat >&5 <<_CSEOF
10846  
10847 < This file was extended by OOPSE $as_me 1.0, which was
10847 > This file was extended by OOPSE $as_me 2.0, which was
10848   generated by GNU Autoconf 2.59.  Invocation command line was
10849  
10850    CONFIG_FILES    = $CONFIG_FILES
# Line 8002 | Line 10907 | OOPSE config.status 1.0
10907  
10908   cat >>$CONFIG_STATUS <<_ACEOF
10909   ac_cs_version="\\
10910 < OOPSE config.status 1.0
10910 > OOPSE config.status 2.0
10911   configured by $0, generated by GNU Autoconf 2.59,
10912    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10913  
# Line 8105 | Line 11010 | do
11010   do
11011    case "$ac_config_target" in
11012    # Handling of arguments.
11013 <  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11014 <  "libBASS/Makefile" ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;;
11015 <  "libmdtools/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;;
11016 <  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11017 <  "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
11018 <  "utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
8114 <  "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
8115 <  "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
8116 <  "third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
8117 <  "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
8118 <  "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
8119 <  "samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
8120 <  "samples/minimizer/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/minimizer/Makefile" ;;
8121 <  "samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
8122 <  "samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
8123 <  "samples/water/dimer/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/dimer/Makefile" ;;
8124 <  "samples/water/spce/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/spce/Makefile" ;;
8125 <  "samples/water/ssd/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/ssd/Makefile" ;;
8126 <  "samples/water/ssde/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/ssde/Makefile" ;;
8127 <  "samples/water/tip4p/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/tip4p/Makefile" ;;
8128 <  "samples/water/tip3p_ice/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/tip3p_ice/Makefile" ;;
8129 <  "samples/zcons/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/zcons/Makefile" ;;
8130 <  "utils/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS utils/getopt.h:utils/gnugetopt.h" ;;
8131 <  "libBASS/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libBASS/config.h" ;;
8132 <  "libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
11013 >  "make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
11014 >  "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
11015 >  "src/applications/nanoRodBuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/applications/nanoRodBuilder/Makefile" ;;
11016 >  "scripts/filepp" ) CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
11017 >  "src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
11018 >  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
11019    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11020   echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11021     { (exit 1); exit 1; }; };;
# Line 8249 | Line 11135 | s,@CPP@,$CPP,;t t
11135   s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
11136   s,@MODDIRFLAG@,$MODDIRFLAG,;t t
11137   s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
11138 + s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
11139   s,@CPP@,$CPP,;t t
11140   s,@EGREP@,$EGREP,;t t
11141 + s,@CXXCPP@,$CXXCPP,;t t
11142   s,@LIBOBJS@,$LIBOBJS,;t t
11143   s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11144   s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
# Line 8263 | Line 11151 | s,@AR@,$AR,;t t
11151   s,@LEX@,$LEX,;t t
11152   s,@LEXLIB@,$LEXLIB,;t t
11153   s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11154 + s,@PERLINTERP@,$PERLINTERP,;t t
11155 + s,@PERL_SHEBANG@,$PERL_SHEBANG,;t t
11156   s,@AR@,$AR,;t t
11157 + s,@PS@,$PS,;t t
11158   s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t
11159   s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t
11160   s,@MPI_F90_INC@,$MPI_F90_INC,;t t
11161   s,@MPI_LIB@,$MPI_LIB,;t t
11162   s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
11163   s,@USE_MPI@,$USE_MPI,;t t
11164 < s,@SPRNG_LIB_DIR@,$SPRNG_LIB_DIR,;t t
11165 < s,@SPRNG_INC_DIR@,$SPRNG_INC_DIR,;t t
11166 < s,@SPRNG_LIB@,$SPRNG_LIB,;t t
11167 < s,@USE_SPRNG@,$USE_SPRNG,;t t
11168 < s,@MKL_LIBDIR@,$MKL_LIBDIR,;t t
11169 < s,@MKL_LIB@,$MKL_LIB,;t t
11170 < s,@MKL_INC@,$MKL_INC,;t t
11171 < s,@HAVE_MKL@,$HAVE_MKL,;t t
11164 > s,@USE_CGAL@,$USE_CGAL,;t t
11165 > s,@CGAL_INC_DIR@,$CGAL_INC_DIR,;t t
11166 > s,@CGAL_LIB_DIR@,$CGAL_LIB_DIR,;t t
11167 > s,@CGAL_RLIB_DIR@,$CGAL_RLIB_DIR,;t t
11168 > s,@CGAL_DEFINES@,$CGAL_DEFINES,;t t
11169 > s,@CGAL_CXXFLAGS@,$CGAL_CXXFLAGS,;t t
11170 > s,@CGAL_LIBS@,$CGAL_LIBS,;t t
11171 > s,@DOXYGEN@,$DOXYGEN,;t t
11172 > s,@DOT@,$DOT,;t t
11173 > s,@DOC@,$DOC,;t t
11174 > s,@enable_dot@,$enable_dot,;t t
11175 > s,@enable_html_docs@,$enable_html_docs,;t t
11176 > s,@enable_latex_docs@,$enable_latex_docs,;t t
11177   s,@BATEXT@,$BATEXT,;t t
11178   s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11179   s,@OOPSE@,$OOPSE,;t t
# Line 8521 | Line 11417 | done
11417      rm -f $tmp/out
11418    fi
11419  
11420 +  # Run the commands associated with the file.
11421 +  case $ac_file in
11422 +    make/Makefile ) chmod 0755 scripts/* ;;
11423 +    src/utils/Makefile ) chmod 0755 scripts/* ;;
11424 +    src/applications/nanoRodBuilder/Makefile ) chmod 0755 scripts/* ;;
11425 +    scripts/filepp ) chmod 0755 scripts/* ;;
11426 +  esac
11427   done
11428   _ACEOF
11429   cat >>$CONFIG_STATUS <<\_ACEOF

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines