ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/configure
(Generate patch)

Comparing trunk/configure (file contents):
Revision 958 by gezelter, Wed May 17 03:03:03 2006 UTC vs.
Revision 1200 by chuckv, Fri Dec 7 00:00:05 2007 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 3.0.
3 > # Generated by GNU Autoconf 2.59 for OOPSE 4.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
# Line 269 | Line 269 | PACKAGE_TARNAME='oopse'
269   # Identity of this package.
270   PACKAGE_NAME='OOPSE'
271   PACKAGE_TARNAME='oopse'
272 < PACKAGE_VERSION='3.0'
273 < PACKAGE_STRING='OOPSE 3.0'
272 > PACKAGE_VERSION='4.0'
273 > PACKAGE_STRING='OOPSE 4.0'
274   PACKAGE_BUGREPORT='gezelter@nd.edu'
275  
276   ac_unique_file="src/applications/oopse/oopse.cpp"
# Line 312 | Line 312 | ac_includes_default="\
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os PROGNAME debug CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC FC FCFLAGS ac_ct_FC CPP EGREP LN_S SET_MAKE RANLIB ac_ct_RANLIB PERLINTERP PERL_SHEBANG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR PS FCFLAGS_F90 FCFLAGS_SRCEXT PREPDEFFLAG FCLIBS FC_FUNC FC_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES ZLIB_INC_DIR ZLIB_LIB_DIR ZLIB FFTW_INC_DIR FFTW_LIB_DIR FFTW_LIBS LIBOBJS POW_LIB CXXCPP __func__ 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 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os PROGNAME debug USE_SINGLE_PRECISION CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC FC FCFLAGS ac_ct_FC CPP EGREP LN_S SET_MAKE RANLIB ac_ct_RANLIB PERLINTERP PERL_SHEBANG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR PS FCFLAGS_F90 FCFLAGS_SRCEXT PREPDEFFLAG FCLIBS FC_FUNC FC_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES ZLIB_INC_DIR ZLIB_LIB_DIR ZLIB FFTW_INC_DIR FFTW_LIB_DIR FFTW_LIBS QHULL_INC_DIR QHULL_LIB_DIR QHULL LIBOBJS POW_LIB CXXCPP __func__ MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI USE_CGAL CGAL_CXXFLAGS CGAL_LDFLAGS CGAL_CPPFLAGS CGAL_LIBS DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS LTLIBOBJS'
316   ac_subst_files=''
317  
318   # Initialize some variables set by options.
# Line 801 | 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 3.0 to adapt to many kinds of systems.
804 > \`configure' configures OOPSE 4.0 to adapt to many kinds of systems.
805  
806   Usage: $0 [OPTION]... [VAR=VALUE]...
807  
# Line 862 | 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 3.0:";;
865 >     short | recursive ) echo "Configuration of OOPSE 4.0:";;
866     esac
867    cat <<\_ACEOF
868  
# Line 871 | Line 871 | Optional Features:
871    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
872    --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse
873    --enable-debug          Compile OOPSE in debug mode
874 +  --enable-single         compile OOPSE in single precision
875 +  --enable-float          synonym for --enable-single
876    --enable-doxygen        enable documentation generation with doxygen (auto)
877    --enable-dot            use 'dot' to generate graphs in doxygen (auto)
878    --enable-html-docs      enable HTML generation with doxygen (yes)
# Line 885 | Line 887 | Optional Packages:
887                            to /usr/local or /usr if not found in /usr/local)
888    --with-fftw=DIR         root directory path of fftw installation (defaults
889                            to /usr/local or /usr if not found in /usr/local)
890 +  --with-qhull=DIR        root directory path of qhull installation (defaults
891 +                          to /usr/local or /usr if not found in /usr/local)
892    --with-mpi=<prefix>     compile with MPI installed in <prefix> [default=no]
893 <  --with-cgal-makefile=FILE  CGAL makefile that should be used
893 >  --with-cgalmakefile=makefile
894 >                          Use the following CGAL makefile
895  
896   Some influential environment variables:
897    CXX         C++ compiler command
# Line 1001 | Line 1006 | if $ac_init_version; then
1006   test -n "$ac_init_help" && exit 0
1007   if $ac_init_version; then
1008    cat <<\_ACEOF
1009 < OOPSE configure 3.0
1009 > OOPSE configure 4.0
1010   generated by GNU Autoconf 2.59
1011  
1012   Copyright (C) 2003 Free Software Foundation, Inc.
# Line 1015 | Line 1020 | running configure, to aid debugging if configure makes
1020   This file contains any messages produced by compilers while
1021   running configure, to aid debugging if configure makes a mistake.
1022  
1023 < It was created by OOPSE $as_me 3.0, which was
1023 > It was created by OOPSE $as_me 4.0, which was
1024   generated by GNU Autoconf 2.59.  Invocation command line was
1025  
1026    $ $0 $@
# Line 1425 | Line 1430 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1430   #
1431   #
1432   #
1433 +
1434 +
1435  
1436  
1437  
# Line 1437 | Line 1444 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1444   # Figure out how the Fortran 90 compiler constructs module file names
1445   #
1446   # AC_F90_MODULE_NAMES
1447 +
1448 +
1449 +
1450 +
1451 +
1452 +
1453 +
1454 +
1455 +
1456 +
1457 +
1458 +
1459 +
1460 +
1461 +
1462 +
1463 +
1464 +
1465 +
1466 +
1467 +
1468 +
1469 +
1470 +
1471 +
1472  
1473  
1474  
# Line 1521 | Line 1553 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1553  
1554  
1555  
1556 + # This is taken from http://autoqt.sourceforge.net/
1557 + # Copyright (c) 2002, Geoffrey Wossum
1558 + # All rights reserved.
1559  
1560 + # Redistribution and use in source and binary forms, with or without
1561 + # modification, are permitted provided that the following conditions are
1562 + # met:
1563  
1564 + #  - Redistributions of source code must retain the above copyright notice,
1565 + #    this list of conditions and the following disclaimer.
1566  
1567 + #  - Redistributions in binary form must reproduce the above copyright
1568 + #    notice, this list of conditions and the following disclaimer in the
1569 + #    documentation and/or other materials provided with the distribution.
1570  
1571 + #  - Neither the name of Geoffrey Wossum nor the names of its
1572 + #    contributors may be used to endorse or promote products derived from
1573 + #    this software without specific prior written permission.
1574 +
1575 +
1576 + # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1577 + # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
1578 + # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1579 + # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
1580 + # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
1581 + # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
1582 + # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
1583 + # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
1584 + # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
1585 + # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
1586 + # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1587 +
1588 +
1589 + # Check for Qt compiler flags, linker flags, and binary packages
1590 +
1591 +
1592 +
1593   # who am i
1594   # Make sure we can run config.sub.
1595   $ac_config_sub sun4 >/dev/null 2>&1 ||
# Line 1624 | Line 1689 | fi
1689   fi
1690  
1691  
1692 + # Check whether --enable-single or --disable-single was given.
1693 + if test "${enable_single+set}" = set; then
1694 +  enableval="$enable_single"
1695 +  ok=$enableval
1696 + else
1697 +  ok=no
1698 + fi;
1699 + # Check whether --enable-float or --disable-float was given.
1700 + if test "${enable_float+set}" = set; then
1701 +  enableval="$enable_float"
1702 +  ok=$enableval
1703 + fi;
1704 + if test "$ok" = "yes"; then
1705 +
1706 + cat >>confdefs.h <<\_ACEOF
1707 + #define SINGLE_PRECISION 1
1708 + _ACEOF
1709 +
1710 +        USE_SINGLE_PRECISION=yes
1711 +
1712 + fi
1713 +
1714   # Checks for programs.
1715   ac_ext=cc
1716   ac_cpp='$CXXCPP $CPPFLAGS'
# Line 1631 | Line 1718 | if test -n "$ac_tool_prefix"; then
1718   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1719   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1720   if test -n "$ac_tool_prefix"; then
1721 <  for ac_prog in $CCC icpc icc pgCC pathCC c++ xlc++ xlC g++ CC
1721 >  for ac_prog in $CCC mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
1722    do
1723      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1724   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 1673 | Line 1760 | if test -z "$CXX"; then
1760   fi
1761   if test -z "$CXX"; then
1762    ac_ct_CXX=$CXX
1763 <  for ac_prog in $CCC icpc icc pgCC pathCC c++ xlc++ xlC g++ CC
1763 >  for ac_prog in $CCC mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
1764   do
1765    # Extract the first word of "$ac_prog", so it can be a program name with args.
1766   set dummy $ac_prog; ac_word=$2
# Line 2187 | Line 2274 | if test -n "$ac_tool_prefix"; then
2274   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2275   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2276   if test -n "$ac_tool_prefix"; then
2277 <  for ac_prog in icc pgcc pathcc cc xlc gcc
2277 >  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
2278    do
2279      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2280   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 2229 | Line 2316 | if test -z "$CC"; then
2316   fi
2317   if test -z "$CC"; then
2318    ac_ct_CC=$CC
2319 <  for ac_prog in icc pgcc pathcc cc xlc gcc
2319 >  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
2320   do
2321    # Extract the first word of "$ac_prog", so it can be a program name with args.
2322   set dummy $ac_prog; ac_word=$2
# Line 2698 | Line 2785 | if test -n "$ac_tool_prefix"; then
2785   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
2786   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
2787   if test -n "$ac_tool_prefix"; then
2788 <  for ac_prog in ifort ifc pgf95 pathf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
2788 >  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
2789    do
2790      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 2740 | Line 2827 | if test -z "$FC"; then
2827   fi
2828   if test -z "$FC"; then
2829    ac_ct_FC=$FC
2830 <  for ac_prog in ifort ifc pgf95 pathf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
2830 >  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
2831   do
2832    # Extract the first word of "$ac_prog", so it can be a program name with args.
2833   set dummy $ac_prog; ac_word=$2
# Line 2785 | Line 2872 | fi
2872  
2873  
2874   # Provide some information about the compiler.
2875 < echo "$as_me:2788:" \
2875 > echo "$as_me:2875:" \
2876       "checking for Fortran compiler version" >&5
2877   ac_compiler=`set X $ac_compile; echo $2`
2878   { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
# Line 4033 | Line 4120 | FCFLAGS="$FCFLAGS $ac_verb"
4120   # flags.
4121   ac_save_FFLAGS=$FCFLAGS
4122   FCFLAGS="$FCFLAGS $ac_verb"
4123 < (eval echo $as_me:4036: \"$ac_link\") >&5
4123 > (eval echo $as_me:4123: \"$ac_link\") >&5
4124   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4125   echo "$ac_fc_v_output" >&5
4126   FCFLAGS=$ac_save_FFLAGS
# Line 4111 | Line 4198 | FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4198   # flags.
4199   ac_save_FFLAGS=$FCFLAGS
4200   FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4201 < (eval echo $as_me:4114: \"$ac_link\") >&5
4201 > (eval echo $as_me:4201: \"$ac_link\") >&5
4202   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4203   echo "$ac_fc_v_output" >&5
4204   FCFLAGS=$ac_save_FFLAGS
# Line 4847 | Line 4934 | FCFLAGS="$FCFLAGS $ac_verb"
4934   # flags.
4935   ac_save_FFLAGS=$FCFLAGS
4936   FCFLAGS="$FCFLAGS $ac_verb"
4937 < (eval echo $as_me:4850: \"$ac_link\") >&5
4937 > (eval echo $as_me:4937: \"$ac_link\") >&5
4938   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4939   echo "$ac_fc_v_output" >&5
4940   FCFLAGS=$ac_save_FFLAGS
# Line 4925 | Line 5012 | FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
5012   # flags.
5013   ac_save_FFLAGS=$FCFLAGS
5014   FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
5015 < (eval echo $as_me:4928: \"$ac_link\") >&5
5015 > (eval echo $as_me:5015: \"$ac_link\") >&5
5016   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
5017   echo "$ac_fc_v_output" >&5
5018   FCFLAGS=$ac_save_FFLAGS
# Line 5819 | Line 5906 | echo "$as_me: WARNING: Sorry, $zlib_dir does not exist
5906    else
5907      { echo "$as_me:$LINENO: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5
5908   echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;}
5909 +        ZLIB_HOME=/usr/local
5910 +        if test ! -f "${ZLIB_HOME}/include/zlib.h"
5911 +        then
5912 +                ZLIB_HOME=/usr
5913 +        fi
5914    fi
5823 fi
5824
5825 ZLIB_HOME=/usr/local
5826 if test ! -f "${ZLIB_HOME}/include/zlib.h"
5827 then
5828        ZLIB_HOME=/usr
5915   fi
5830
5916   #
5917   # Locate zlib, if wanted
5918   #
5919   if test -n "${ZLIB_HOME}"
5920   then
5921          ZLIB_OLD_LDFLAGS=$LDFLAGS
5922 <        ZLIB_OLD_CPPFLAGS=$LDFLAGS
5922 >        ZLIB_OLD_CFLAGS=$CFLAGS
5923          LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
5924 <        CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
5924 >        CFLAGS="$CFLAGS -I${ZLIB_HOME}/include"
5925  
5926  
5927          ac_ext=c
# Line 6095 | Line 6180 | echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C
6180                  ZLIB_LIB_DIR=
6181                  ZLIB=
6182                  LDFLAGS="$ZLIB_OLD_LDFLAGS"
6183 <                CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
6183 >                CFLAGS="$ZLIB_OLD_CFLAGS"
6184                  echo "$as_me:$LINENO: result: failed" >&5
6185   echo "${ECHO_T}failed" >&6
6186                  echo ""
# Line 6124 | Line 6209 | else
6209    withval="$with_fftw"
6210    fftw_dir="$withval"
6211   else
6212 <                fftw_dir="not_set"
6212 >             fftw_dir="not_set"
6213   fi;
6214   if test "$fftw_dir" != "no"; then
6215 <
6216 < if test "$fftw_dir" != "not_set" ; then
6217 <  if test -d "$fftw_dir"
6218 <  then
6219 <    FFTW_HOME="$fftw_dir"
6135 <  else
6136 <    { echo "$as_me:$LINENO: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&5
6215 >  if test "$fftw_dir" != "not_set" ; then
6216 >    if test -d "$fftw_dir"; then
6217 >      FFTW_HOME="$fftw_dir"
6218 >    else
6219 >      { echo "$as_me:$LINENO: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&5
6220   echo "$as_me: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&2;}
6221 <  fi
6222 < fi
6140 <
6141 < FFTW_HOME=/usr/local
6142 < if test ! -f "${FFTW_HOME}/include/fftw3.h" -o -f "${FFTW_HOME}/include/fftw.h" -o  -f "${FFTW_HOME}/include/dfftw.h"
6143 < then
6221 >      FFTW_HOME=/usr/local
6222 >      if test ! -f "${FFTW_HOME}/include/fftw3.h" -o -f "${FFTW_HOME}/include/fftw.h" -o  -f "${FFTW_HOME}/include/dfftw.h"; then
6223          FFTW_HOME=/usr
6224 < fi
6224 >      fi
6225 >    fi
6226 >    #
6227 >    # Locate fftw, if wanted
6228 >    #
6229 >    if test -n "${FFTW_HOME}"; then
6230 >      FFTW_OLD_LDFLAGS=$LDFLAGS
6231 >      FFTW_OLD_CFLAGS=$CFLAGS
6232 >      LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib"
6233 >      CFLAGS="$CFLAGS -I${FFTW_HOME}/include"
6234  
6147 #
6148 # Locate fftw, if wanted
6149 #
6150 if test -n "${FFTW_HOME}"
6151 then
6152        FFTW_OLD_LDFLAGS=$LDFLAGS
6153        FFTW_OLD_CPPFLAGS=$LDFLAGS
6154        LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib"
6155        CPPFLAGS="$CPPFLAGS -I${FFTW_HOME}/include"
6235  
6236 <
6158 <        ac_ext=c
6236 >      ac_ext=c
6237   ac_cpp='$CPP $CPPFLAGS'
6238   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6239   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6240   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6241  
6242 <        echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
6242 >      echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
6243   echo $ECHO_N "checking for fftw_execute in -lfftw3... $ECHO_C" >&6
6244   if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
6245    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 6239 | Line 6317 | fi
6317    fftw_cv_libfftw3=no
6318   fi
6319  
6320 <        if test "${ac_cv_header_fftw3_h+set}" = set; then
6320 >      if test "${ac_cv_header_fftw3_h+set}" = set; then
6321    echo "$as_me:$LINENO: checking for fftw3.h" >&5
6322   echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6
6323   if test "${ac_cv_header_fftw3_h+set}" = set; then
# Line 6383 | Line 6461 | fi
6461   fi
6462  
6463  
6464 <        if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"
6465 <        then
6388 <                echo "$as_me:$LINENO: checking for fftwnd_one in -lfftw" >&5
6464 >      if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then
6465 >        echo "$as_me:$LINENO: checking for fftwnd_one in -lfftw" >&5
6466   echo $ECHO_N "checking for fftwnd_one in -lfftw... $ECHO_C" >&6
6467   if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then
6468    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 6463 | Line 6540 | fi
6540    fftw_cv_libfftw=no
6541   fi
6542  
6543 <                if test "${ac_cv_header_fftw_h+set}" = set; then
6543 >        if test "${ac_cv_header_fftw_h+set}" = set; then
6544    echo "$as_me:$LINENO: checking for fftw.h" >&5
6545   echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6
6546   if test "${ac_cv_header_fftw_h+set}" = set; then
# Line 6607 | Line 6684 | fi
6684   fi
6685  
6686  
6687 <                if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"
6688 <                then
6612 <                        echo "$as_me:$LINENO: checking for fftwnd_one in -ldfftw" >&5
6687 >        if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
6688 >          echo "$as_me:$LINENO: checking for fftwnd_one in -ldfftw" >&5
6689   echo $ECHO_N "checking for fftwnd_one in -ldfftw... $ECHO_C" >&6
6690   if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then
6691    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 6687 | Line 6763 | fi
6763    fftw_cv_libdfftw=no
6764   fi
6765  
6766 <                        if test "${ac_cv_header_dfftw_h+set}" = set; then
6766 >          if test "${ac_cv_header_dfftw_h+set}" = set; then
6767    echo "$as_me:$LINENO: checking for dfftw.h" >&5
6768   echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6
6769   if test "${ac_cv_header_dfftw_h+set}" = set; then
# Line 6831 | Line 6907 | fi
6907   fi
6908  
6909  
6834                fi
6910          fi
6911 <        ac_ext=c
6911 >      fi
6912 >      ac_ext=c
6913   ac_cpp='$CPP $CPPFLAGS'
6914   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6915   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6916   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6917  
6918 +      if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"; then
6919  
6843        if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"
6844        then
6845
6920   cat >>confdefs.h <<\_ACEOF
6921   #define HAVE_FFTW3_H 1
6922   _ACEOF
6923  
6924 <                FFTW_INC_DIR="${FFTW_HOME}/include"
6925 <                FFTW_LIB_DIR="${FFTW_HOME}/lib"
6926 <                FFTW_LIBS="-lfftw3"
6927 <        else
6928 <        if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"
6855 <        then
6924 >        FFTW_INC_DIR="${FFTW_HOME}/include"
6925 >        FFTW_LIB_DIR="${FFTW_HOME}/lib"
6926 >        FFTW_LIBS="-lfftw3"
6927 >      else
6928 >        if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"; then
6929  
6930   cat >>confdefs.h <<\_ACEOF
6931   #define HAVE_FFTW_H 1
6932   _ACEOF
6933  
6934 <                FFTW_INC_DIR="${FFTW_HOME}/include"
6935 <                FFTW_LIB_DIR="${FFTW_HOME}/lib"
6936 <                FFTW_LIBS="-lfftw"
6934 >          FFTW_INC_DIR="${FFTW_HOME}/include"
6935 >          FFTW_LIB_DIR="${FFTW_HOME}/lib"
6936 >          FFTW_LIBS="-lfftw"
6937          else
6938 <        if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"
6866 <        then
6938 >          if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"; then
6939  
6940   cat >>confdefs.h <<\_ACEOF
6941   #define HAVE_DFFTW_H 1
6942   _ACEOF
6943  
6944 <                FFTW_INC_DIR="${FFTW_HOME}/include"
6945 <                FFTW_LIB_DIR="${FFTW_HOME}/lib"
6946 <                FFTW_LIBS="-ldfftw"
6947 <        else
6948 <                echo "$as_me:$LINENO: checking fftw in ${FFTW_HOME}" >&5
6944 >            FFTW_INC_DIR="${FFTW_HOME}/include"
6945 >            FFTW_LIB_DIR="${FFTW_HOME}/lib"
6946 >            FFTW_LIBS="-ldfftw"
6947 >          else
6948 >            echo "$as_me:$LINENO: checking fftw in ${FFTW_HOME}" >&5
6949   echo $ECHO_N "checking fftw in ${FFTW_HOME}... $ECHO_C" >&6
6950 <                FFTW_INC_DIR=
6951 <                FFTW_LIB_DIR=
6952 <                FFTW_LIBS=
6953 <                LDFLAGS="$FFTW_OLD_LDFLAGS"
6954 <                CPPFLAGS="$FFTW_OLD_CPPFLAGS"
6955 <                echo "$as_me:$LINENO: result: failed" >&5
6950 >            FFTW_INC_DIR=
6951 >            FFTW_LIB_DIR=
6952 >            FFTW_LIBS=
6953 >            LDFLAGS="$FFTW_OLD_LDFLAGS"
6954 >            CFLAGS="$FFTW_OLD_CFLAGS"
6955 >            echo "$as_me:$LINENO: result: failed" >&5
6956   echo "${ECHO_T}failed" >&6
6957 <        echo ""
6958 <        echo "*********************************************************"
6959 <        echo "* WARNING: Could not find a working FFTW installation   *"
6960 <        echo "* If you need the staticProps program to be able to     *"
6961 <        echo "* compute undulation spectra, be sure to specify a      *"
6962 <        echo "* valid fftw installation with --with-fftw=DIR          *"
6963 <        echo "*                                                       *"
6964 <        echo "* OOPSE will still work without fftw installed.         *"
6965 <        echo "*********************************************************"
6966 <        echo ""
6957 >            echo ""
6958 >            echo "*********************************************************"
6959 >            echo "* WARNING: Could not find a working FFTW installation   *"
6960 >            echo "* If you need the staticProps program to be able to     *"
6961 >            echo "* compute undulation spectra, be sure to specify a      *"
6962 >            echo "* valid fftw installation with --with-fftw=DIR          *"
6963 >            echo "*                                                       *"
6964 >            echo "* OOPSE will still work without fftw installed.         *"
6965 >            echo "*********************************************************"
6966 >            echo ""
6967 >          fi
6968          fi
6969 <        fi
6897 <        fi
6969 >      fi
6970  
6971  
6972  
6973 +    fi
6974 +  fi
6975   fi
6976 +
6977 + #
6978 + # Handle user hints
6979 + #
6980 +
6981 + # Check whether --with-qhull or --without-qhull was given.
6982 + if test "${with_qhull+set}" = set; then
6983 +  withval="$with_qhull"
6984 +  qhull_dir="$withval"
6985 + else
6986 +                qhull_dir="not_set"
6987 + fi;
6988 + if test "$qhull_dir" != "no"; then
6989 +
6990 + if test "$qhull_dir" != "not_set" ; then
6991 +  if test -d "$qhull_dir"
6992 +  then
6993 +    QHULL_HOME="$qhull_dir"
6994 +  else
6995 +    { echo "$as_me:$LINENO: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5
6996 + echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;}
6997 +        QHULL_HOME=/usr/local
6998 +        if test ! -f "${QHULL_HOME}/include/qhull/qhull.h"
6999 +        then
7000 +                QHULL_HOME=/usr
7001 +        fi
7002 +  fi
7003   fi
7004 + #
7005 + # Locate qhull, if wanted
7006 + #
7007 + if test -n "${QHULL_HOME}"
7008 + then
7009 +        QHULL_OLD_LDFLAGS=$LDFLAGS
7010 +        QHULL_OLD_CFLAGS=$CFLAGS
7011 +        LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
7012 +        CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
7013  
7014  
7015 +        ac_ext=c
7016 + ac_cpp='$CPP $CPPFLAGS'
7017 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
7020  
7021 +        echo "$as_me:$LINENO: checking for qh_qhull in -lqhull" >&5
7022 + echo $ECHO_N "checking for qh_qhull in -lqhull... $ECHO_C" >&6
7023 + if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then
7024 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7025 + else
7026 +  ac_check_lib_save_LIBS=$LIBS
7027 + LIBS="-lqhull  $LIBS"
7028 + cat >conftest.$ac_ext <<_ACEOF
7029 + /* confdefs.h.  */
7030 + _ACEOF
7031 + cat confdefs.h >>conftest.$ac_ext
7032 + cat >>conftest.$ac_ext <<_ACEOF
7033 + /* end confdefs.h.  */
7034 +
7035 + /* Override any gcc2 internal prototype to avoid an error.  */
7036 + #ifdef __cplusplus
7037 + extern "C"
7038 + #endif
7039 + /* We use char because int might match the return type of a gcc2
7040 +   builtin and then its argument prototype would still apply.  */
7041 + char qh_qhull ();
7042 + #ifdef FC_DUMMY_MAIN
7043 + #ifndef FC_DUMMY_MAIN_EQ_F77
7044 + #  ifdef __cplusplus
7045 +     extern "C"
7046 + #  endif
7047 +   int FC_DUMMY_MAIN() { return 1; }
7048 + #endif
7049 + #endif
7050 + int
7051 + main ()
7052 + {
7053 + qh_qhull ();
7054 +  ;
7055 +  return 0;
7056 + }
7057 + _ACEOF
7058 + rm -f conftest.$ac_objext conftest$ac_exeext
7059 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7060 +  (eval $ac_link) 2>conftest.er1
7061 +  ac_status=$?
7062 +  grep -v '^ *+' conftest.er1 >conftest.err
7063 +  rm -f conftest.er1
7064 +  cat conftest.err >&5
7065 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 +  (exit $ac_status); } &&
7067 +         { ac_try='test -z "$ac_c_werror_flag"
7068 +                         || test ! -s conftest.err'
7069 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 +  (eval $ac_try) 2>&5
7071 +  ac_status=$?
7072 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 +  (exit $ac_status); }; } &&
7074 +         { ac_try='test -s conftest$ac_exeext'
7075 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 +  (eval $ac_try) 2>&5
7077 +  ac_status=$?
7078 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 +  (exit $ac_status); }; }; then
7080 +  ac_cv_lib_qhull_qh_qhull=yes
7081 + else
7082 +  echo "$as_me: failed program was:" >&5
7083 + sed 's/^/| /' conftest.$ac_ext >&5
7084 +
7085 + ac_cv_lib_qhull_qh_qhull=no
7086 + fi
7087 + rm -f conftest.err conftest.$ac_objext \
7088 +      conftest$ac_exeext conftest.$ac_ext
7089 + LIBS=$ac_check_lib_save_LIBS
7090 + fi
7091 + echo "$as_me:$LINENO: result: $ac_cv_lib_qhull_qh_qhull" >&5
7092 + echo "${ECHO_T}$ac_cv_lib_qhull_qh_qhull" >&6
7093 + if test $ac_cv_lib_qhull_qh_qhull = yes; then
7094 +  qhull_cv_libqhull=yes
7095 + else
7096 +  qhull_cv_libqhull=no
7097 + fi
7098 +
7099 +        if test "${ac_cv_header_qhull_qhull_h+set}" = set; then
7100 +  echo "$as_me:$LINENO: checking for qhull/qhull.h" >&5
7101 + echo $ECHO_N "checking for qhull/qhull.h... $ECHO_C" >&6
7102 + if test "${ac_cv_header_qhull_qhull_h+set}" = set; then
7103 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7104 + fi
7105 + echo "$as_me:$LINENO: result: $ac_cv_header_qhull_qhull_h" >&5
7106 + echo "${ECHO_T}$ac_cv_header_qhull_qhull_h" >&6
7107 + else
7108 +  # Is the header compilable?
7109 + echo "$as_me:$LINENO: checking qhull/qhull.h usability" >&5
7110 + echo $ECHO_N "checking qhull/qhull.h usability... $ECHO_C" >&6
7111 + cat >conftest.$ac_ext <<_ACEOF
7112 + /* confdefs.h.  */
7113 + _ACEOF
7114 + cat confdefs.h >>conftest.$ac_ext
7115 + cat >>conftest.$ac_ext <<_ACEOF
7116 + /* end confdefs.h.  */
7117 + $ac_includes_default
7118 + #include <qhull/qhull.h>
7119 + _ACEOF
7120 + rm -f conftest.$ac_objext
7121 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7122 +  (eval $ac_compile) 2>conftest.er1
7123 +  ac_status=$?
7124 +  grep -v '^ *+' conftest.er1 >conftest.err
7125 +  rm -f conftest.er1
7126 +  cat conftest.err >&5
7127 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 +  (exit $ac_status); } &&
7129 +         { ac_try='test -z "$ac_c_werror_flag"
7130 +                         || test ! -s conftest.err'
7131 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 +  (eval $ac_try) 2>&5
7133 +  ac_status=$?
7134 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 +  (exit $ac_status); }; } &&
7136 +         { ac_try='test -s conftest.$ac_objext'
7137 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 +  (eval $ac_try) 2>&5
7139 +  ac_status=$?
7140 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 +  (exit $ac_status); }; }; then
7142 +  ac_header_compiler=yes
7143 + else
7144 +  echo "$as_me: failed program was:" >&5
7145 + sed 's/^/| /' conftest.$ac_ext >&5
7146 +
7147 + ac_header_compiler=no
7148 + fi
7149 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7150 + echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7151 + echo "${ECHO_T}$ac_header_compiler" >&6
7152 +
7153 + # Is the header present?
7154 + echo "$as_me:$LINENO: checking qhull/qhull.h presence" >&5
7155 + echo $ECHO_N "checking qhull/qhull.h presence... $ECHO_C" >&6
7156 + cat >conftest.$ac_ext <<_ACEOF
7157 + /* confdefs.h.  */
7158 + _ACEOF
7159 + cat confdefs.h >>conftest.$ac_ext
7160 + cat >>conftest.$ac_ext <<_ACEOF
7161 + /* end confdefs.h.  */
7162 + #include <qhull/qhull.h>
7163 + _ACEOF
7164 + if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7165 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7166 +  ac_status=$?
7167 +  grep -v '^ *+' conftest.er1 >conftest.err
7168 +  rm -f conftest.er1
7169 +  cat conftest.err >&5
7170 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 +  (exit $ac_status); } >/dev/null; then
7172 +  if test -s conftest.err; then
7173 +    ac_cpp_err=$ac_c_preproc_warn_flag
7174 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7175 +  else
7176 +    ac_cpp_err=
7177 +  fi
7178 + else
7179 +  ac_cpp_err=yes
7180 + fi
7181 + if test -z "$ac_cpp_err"; then
7182 +  ac_header_preproc=yes
7183 + else
7184 +  echo "$as_me: failed program was:" >&5
7185 + sed 's/^/| /' conftest.$ac_ext >&5
7186 +
7187 +  ac_header_preproc=no
7188 + fi
7189 + rm -f conftest.err conftest.$ac_ext
7190 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7191 + echo "${ECHO_T}$ac_header_preproc" >&6
7192 +
7193 + # So?  What about this header?
7194 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7195 +  yes:no: )
7196 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: accepted by the compiler, rejected by the preprocessor!" >&5
7197 + echo "$as_me: WARNING: qhull/qhull.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7198 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: proceeding with the compiler's result" >&5
7199 + echo "$as_me: WARNING: qhull/qhull.h: proceeding with the compiler's result" >&2;}
7200 +    ac_header_preproc=yes
7201 +    ;;
7202 +  no:yes:* )
7203 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: present but cannot be compiled" >&5
7204 + echo "$as_me: WARNING: qhull/qhull.h: present but cannot be compiled" >&2;}
7205 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h:     check for missing prerequisite headers?" >&5
7206 + echo "$as_me: WARNING: qhull/qhull.h:     check for missing prerequisite headers?" >&2;}
7207 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: see the Autoconf documentation" >&5
7208 + echo "$as_me: WARNING: qhull/qhull.h: see the Autoconf documentation" >&2;}
7209 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h:     section \"Present But Cannot Be Compiled\"" >&5
7210 + echo "$as_me: WARNING: qhull/qhull.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7211 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: proceeding with the preprocessor's result" >&5
7212 + echo "$as_me: WARNING: qhull/qhull.h: proceeding with the preprocessor's result" >&2;}
7213 +    { echo "$as_me:$LINENO: WARNING: qhull/qhull.h: in the future, the compiler will take precedence" >&5
7214 + echo "$as_me: WARNING: qhull/qhull.h: in the future, the compiler will take precedence" >&2;}
7215 +    (
7216 +      cat <<\_ASBOX
7217 + ## ------------------------------ ##
7218 + ## Report this to gezelter@nd.edu ##
7219 + ## ------------------------------ ##
7220 + _ASBOX
7221 +    ) |
7222 +      sed "s/^/$as_me: WARNING:     /" >&2
7223 +    ;;
7224 + esac
7225 + echo "$as_me:$LINENO: checking for qhull/qhull.h" >&5
7226 + echo $ECHO_N "checking for qhull/qhull.h... $ECHO_C" >&6
7227 + if test "${ac_cv_header_qhull_qhull_h+set}" = set; then
7228 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7229 + else
7230 +  ac_cv_header_qhull_qhull_h=$ac_header_preproc
7231 + fi
7232 + echo "$as_me:$LINENO: result: $ac_cv_header_qhull_qhull_h" >&5
7233 + echo "${ECHO_T}$ac_cv_header_qhull_qhull_h" >&6
7234 +
7235 + fi
7236 + if test $ac_cv_header_qhull_qhull_h = yes; then
7237 +  qhull_cv_qhull_h=yes
7238 + else
7239 +  qhull_cv_qhull_h=no
7240 + fi
7241 +
7242 +
7243 +        ac_ext=c
7244 + ac_cpp='$CPP $CPPFLAGS'
7245 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7246 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7247 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
7248 +
7249 +
7250 +        if test "$qhull_cv_libqhull" = "yes" -a "$qhull_cv_qhull_h" = "yes"; then
7251 +
7252 + cat >>confdefs.h <<\_ACEOF
7253 + #define HAVE_QHULL_H 1
7254 + _ACEOF
7255 +
7256 +
7257 + cat >>confdefs.h <<\_ACEOF
7258 + #define HAVE_QHULL 1
7259 + _ACEOF
7260 +
7261 +                QHULL_INC_DIR="${QHULL_HOME}/include"
7262 +                QHULL_LIB_DIR="${QHULL_HOME}/lib"
7263 +                QHULL="-lqhull"
7264 +        else
7265 +                echo "$as_me:$LINENO: checking qhull in ${QHULL_HOME}" >&5
7266 + echo $ECHO_N "checking qhull in ${QHULL_HOME}... $ECHO_C" >&6
7267 +                QHULL_INC_DIR=
7268 +                QHULL_LIB_DIR=
7269 +                QHULL=
7270 +                LDFLAGS="$QHULL_OLD_LDFLAGS"
7271 +                CFLAGS="$QHULL_OLD_CFLAGS"
7272 +                echo "$as_me:$LINENO: result: failed" >&5
7273 + echo "${ECHO_T}failed" >&6
7274 +                echo ""
7275 +                echo "*********************************************************"
7276 +                echo "* WARNING: Could not find a working qhull installation  *"
7277 +                echo "* If you need OOPSE to be able to deal with convex      *"
7278 +                echo "* hulls be sure to specify a valid qhull installation   *"
7279 +                echo "* with --with-qhull=DIR                                 *"
7280 +                echo "*                                                       *"
7281 +                echo "* OOPSE will still work without qhull installed.        *"
7282 +                echo "*********************************************************"
7283 +                echo ""
7284 +        fi
7285 +
7286 +
7287 +
7288 + fi
7289 + fi
7290 +
7291 +
7292   # Checks for header files.
7293   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7294   echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
# Line 11917 | Line 12303 | if test "$ac_test_FFLAGS" != "set"; then
12303    case "${host_cpu}-${host_os}" in
12304  
12305    *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
12306 <                    FCFLAGS="-O3 -ip -no-prec-div -cxxlib-icc"
12306 >                    FCFLAGS="-O3 -ip -no-prec-div"
12307                  fi;;
12308     rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
12309                      FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
# Line 12975 | Line 13361 | MPI_INC_DIR="$MPI/include"
13361  
13362  
13363  
13364 + ac_ext=c
13365 + ac_cpp='$CPP $CPPFLAGS'
13366 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13367 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13368 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
13369 +
13370   echo "$as_me:$LINENO: checking for mpi.h" >&5
13371   echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
13372   have_mpi_h=0
13373   rm -f conftest*
13374 < echo '#include <mpi.h>' > conftest.cc
13375 < if ${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1 ; then
13374 > echo '#include <mpi.h>' > conftest.c
13375 > if ${CC} -I${MPI_INC_DIR} -c conftest.c 2>&1 ; then
13376          echo "$as_me:$LINENO: result: yes" >&5
13377   echo "${ECHO_T}yes" >&6
13378          have_mpi_h=1
# Line 13003 | Line 13395 | echo $ECHO_N "checking whether mpif.h is usable... $EC
13395  
13396   echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
13397   echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
13398 +
13399 +
13400 + ac_ext=${FC_SRCEXT-f}
13401 + ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
13402 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
13403 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13404 +
13405 + ac_save_ext=$ac_ext
13406 + ac_ext=F90
13407 + ac_save_FCFLAGS=$FCFLAGS
13408   have_mpif_h=0
13409   rm -f conftest*
13410   cat >conftest.$ac_ext <<EOF
# Line 13032 | Line 13434 | fi
13434   _ACEOF
13435  
13436   fi
13437 + FCFLAGS=$ac_save_FCFLAGS
13438 + ac_ext=$ac_save_ext
13439 + ac_ext=c
13440 + ac_cpp='$CPP $CPPFLAGS'
13441 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13442 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13443 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
13444  
13445 +
13446   ac_ext=c
13447   ac_cpp='$CPP $CPPFLAGS'
13448   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 13040 | Line 13450 | ac_save_LDFLAGS=$LDFLAGS
13450   ac_compiler_gnu=$ac_cv_c_compiler_gnu
13451  
13452   ac_save_LDFLAGS=$LDFLAGS
13453 < LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
13453 > LDFLAGS="-L${MPI_LIB_DIR} ${LDFLAGS} "
13454  
13455   if test x = x"$MPI_LIB"; then
13456          echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
# Line 13120 | Line 13530 | fi
13530   fi
13531  
13532   fi
13533 + $as_unset ac_cv_lib_mpich_MPI_Init
13534   if test x = x"$MPI_LIB"; then
13535 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13536 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
13537 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
13535 >        echo "$as_me:$LINENO: checking for MPI_Init in -lpmpich" >&5
13536 > echo $ECHO_N "checking for MPI_Init in -lpmpich... $ECHO_C" >&6
13537 > if test "${ac_cv_lib_pmpich_MPI_Init+set}" = set; then
13538    echo $ECHO_N "(cached) $ECHO_C" >&6
13539   else
13540    ac_check_lib_save_LIBS=$LIBS
13541 < LIBS="-lmpi  $LIBS"
13541 > LIBS="-lpmpich -lmpich -lpmpich -lmpich $LIBS"
13542   cat >conftest.$ac_ext <<_ACEOF
13543   /* confdefs.h.  */
13544   _ACEOF
# Line 13180 | Line 13591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13591    ac_status=$?
13592    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593    (exit $ac_status); }; }; then
13594 <  ac_cv_lib_mpi_MPI_Init=yes
13594 >  ac_cv_lib_pmpich_MPI_Init=yes
13595   else
13596    echo "$as_me: failed program was:" >&5
13597   sed 's/^/| /' conftest.$ac_ext >&5
13598  
13599 < ac_cv_lib_mpi_MPI_Init=no
13599 > ac_cv_lib_pmpich_MPI_Init=no
13600   fi
13601   rm -f conftest.err conftest.$ac_objext \
13602        conftest$ac_exeext conftest.$ac_ext
13603   LIBS=$ac_check_lib_save_LIBS
13604   fi
13605 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13606 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13607 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
13608 <  MPI_LIB="-lmpi"
13605 > echo "$as_me:$LINENO: result: $ac_cv_lib_pmpich_MPI_Init" >&5
13606 > echo "${ECHO_T}$ac_cv_lib_pmpich_MPI_Init" >&6
13607 > if test $ac_cv_lib_pmpich_MPI_Init = yes; then
13608 >  MPI_LIB="-lpmpich -lmpich -lpmpich -lmpich"
13609   fi
13610  
13611   fi
13201 $as_unset ac_cv_lib_mpi_MPI_Init
13612   if test x = x"$MPI_LIB"; then
13613          echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13614   echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
# Line 13206 | Line 13616 | else
13616    echo $ECHO_N "(cached) $ECHO_C" >&6
13617   else
13618    ac_check_lib_save_LIBS=$LIBS
13619 < LIBS="-lmpi "-llam" $LIBS"
13619 > LIBS="-lmpi  $LIBS"
13620   cat >conftest.$ac_ext <<_ACEOF
13621   /* confdefs.h.  */
13622   _ACEOF
# Line 13273 | Line 13683 | if test $ac_cv_lib_mpi_MPI_Init = yes; then
13683   echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13684   echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13685   if test $ac_cv_lib_mpi_MPI_Init = yes; then
13686 <  MPI_LIB="-lmpi -llam"
13686 >  MPI_LIB="-lmpi"
13687   fi
13688  
13689   fi
13690 < $as_unset ac_cv_lib_mpich_MPI_Init
13690 > $as_unset ac_cv_lib_mpi_MPI_Init
13691   if test x = x"$MPI_LIB"; then
13692 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
13693 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
13694 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
13692 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13693 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
13694 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
13695    echo $ECHO_N "(cached) $ECHO_C" >&6
13696   else
13697    ac_check_lib_save_LIBS=$LIBS
13698 < LIBS="-lmpich "-lpmpich" $LIBS"
13698 > LIBS="-lmpi -llam $LIBS"
13699   cat >conftest.$ac_ext <<_ACEOF
13700   /* confdefs.h.  */
13701   _ACEOF
# Line 13338 | Line 13748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13748    ac_status=$?
13749    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750    (exit $ac_status); }; }; then
13751 <  ac_cv_lib_mpich_MPI_Init=yes
13751 >  ac_cv_lib_mpi_MPI_Init=yes
13752   else
13753    echo "$as_me: failed program was:" >&5
13754   sed 's/^/| /' conftest.$ac_ext >&5
13755  
13756 < ac_cv_lib_mpich_MPI_Init=no
13756 > ac_cv_lib_mpi_MPI_Init=no
13757   fi
13758   rm -f conftest.err conftest.$ac_objext \
13759        conftest$ac_exeext conftest.$ac_ext
13760   LIBS=$ac_check_lib_save_LIBS
13761   fi
13762 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
13763 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
13764 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
13765 <  MPI_LIB="-lpmpich -lmpich"
13762 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13763 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13764 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
13765 >  MPI_LIB="-lmpi -llam"
13766   fi
13767  
13768   fi
13359
13769   $as_unset ac_cv_lib_mpi_MPI_Init
13770   if test x = x"$MPI_LIB"; then
13771   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
# Line 13464 | Line 13873 | fi
13873  
13874  
13875  
13876 < USE_CGAL=no
13468 < cgal_makefile=auto
13876 > acx_cgal_found=no
13877  
13878 < # Check whether --with-cgal-makefile or --without-cgal-makefile was given.
13879 < if test "${with_cgal_makefile+set}" = set; then
13880 <  withval="$with_cgal_makefile"
13881 <  cgal_makefile="$withval"
13878 > # Check whether --with-cgalmakefile or --without-cgalmakefile was given.
13879 > if test "${with_cgalmakefile+set}" = set; then
13880 >  withval="$with_cgalmakefile"
13881 >
13882   fi;
13883 + case $with_cgalmakefile in
13884 +        yes | "") ;;
13885 +        no) acx_cgal_found=disable ;;
13886 +        -* | */* | *.a | *.so | *.so.* | *.o) CGAL_MAKEFILE="$with_cgalmakefile" ;;
13887 +        *) CGAL_MAKEFILE="$with_cgalmakefile" ;;
13888 + esac
13889  
13890 < if test "x$cgal_makefile" != xno; then
13890 > if test "$acx_cgal_found" == no; then
13891 >    echo "$as_me:$LINENO: checking CGAL_MAKEFILE" >&5
13892 > echo $ECHO_N "checking CGAL_MAKEFILE... $ECHO_C" >&6
13893  
13894 <  if test "x$cgal_makefile" = xauto -a "x$CGAL_MAKEFILE" != x; then
13479 <    cgal_makefile="$CGAL_MAKEFILE"
13480 <  fi
13894 >    if test \! -z "$CGAL_MAKEFILE"; then
13895  
13896 <  echo "$as_me:$LINENO: checking for cgal_makefile: $cgal_makefile" >&5
13897 < echo $ECHO_N "checking for cgal_makefile: $cgal_makefile... $ECHO_C" >&6
13896 >        if test -e "$CGAL_MAKEFILE"; then
13897 >            tname=`mktemp /tmp/cgal_makefile_dsrXXXXXX`
13898  
13899 <  if test -f "$cgal_makefile"; then
13899 > cat > $tname << _ACEOF
13900 > include $CGAL_MAKEFILE
13901  
13902 <    cat >config.tmp.Makefile <<EOF
13903 < include $cgal_makefile
13489 < default:
13490 <        @echo CGAL_OS_COMPILER=\"\${CGAL_OS_COMPILER}\" >config.tmp.cgalvariables
13491 <        @echo CGAL_INCLDIR=\"\${CGAL_INCL_DIR}\" >>config.tmp.cgalvariables
13492 <        @echo CGAL_INCLCONFDIR=\"\${CGAL_INCL_CONF_DIR}\" >>config.tmp.cgalvariables
13493 <        @echo CGAL_LIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
13494 <        @echo CGAL_RLIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
13495 <        @echo CGAL_CXXFLAGS=\"\${CGAL_CXXFLAGS}\" >>config.tmp.cgalvariables
13496 <        @echo GMP_INCLDIR=\"\${GMP_INCL_DIR}\" >>config.tmp.cgalvariables
13497 <        @echo GMP_LIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
13498 <        @echo GMP_RLIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
13499 <        @echo LEDA_INCLDIR=\"\${LEDA_INCL_DIR}\" >>config.tmp.cgalvariables
13500 <        @echo LEDA_LIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
13501 <        @echo LEDA_RLIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
13502 < EOF
13503 <
13504 <    make -s -f config.tmp.Makefile
13505 <    . config.tmp.cgalvariables
13506 <
13507 <    rm -f config.tmp.Makefile config.tmp.cgalvariables
13508 <
13509 <    if test "x$CGAL_INCLDIR" = "x"; then
13510 <      CGAL_INCLDIR=""
13511 <    fi
13512 <
13513 <    if test "x$CGAL_LIBDIR" = "x"; then
13514 <      CGAL_LIBDIR=""
13515 <    fi
13516 <
13517 <    if test "x$CGAL_RLIBDIR" = "x"; then
13518 <      CGAL_RLIBDIR=""
13519 <    fi
13902 > cppflags:
13903 >        @echo \$(CGAL_CXXFLAGS)
13904  
13905 <    if test "x$LEDA_INCLDIR" = "x"; then
13906 <      LEDA_INCLDIR=""
13905 > cxxflags:
13906 >        @echo
13907 > ldflags:
13908 >        @echo \$(CGAL_LDFLAGS)
13909 > _ACEOF
13910 >            CGAL_CPPFLAGS="`make -s -f $tname cppflags`"
13911 >            CGAL_CXXFLAGS="`make -s -f $tname cxxflags`"
13912 >            CGAL_LDFLAGST="`make -s -f $tname ldflags`"
13913 >            for i in $CGAL_LDFLAGST; do
13914 >                if test `echo $i| grep -c ^-l`; then
13915 >                    CGAL_LIBS="$CGAL_LIBS $i"
13916 >                else
13917 >                    CGAL_LDFLAGS="$CGAL_LDFLAGS $i"
13918 >                fi
13919 >            done
13920 >            rm -f $tname
13921 >            echo "$as_me:$LINENO: result: yes" >&5
13922 > echo "${ECHO_T}yes" >&6
13923 >            acx_cgal_found=yes
13924 >                                   else
13925 >            echo "$as_me:$LINENO: result: invalid" >&5
13926 > echo "${ECHO_T}invalid" >&6
13927 >            { { echo "$as_me:$LINENO: error: CGAL_MAKEFILE defined, but the makefile does not exist." >&5
13928 > echo "$as_me: error: CGAL_MAKEFILE defined, but the makefile does not exist." >&2;}
13929 >   { (exit 1); exit 1; }; }
13930 >        fi
13931 >    else
13932 >        echo "$as_me:$LINENO: result: not defined" >&5
13933 > echo "${ECHO_T}not defined" >&6
13934      fi
13935 + fi
13936  
13937 <    if test "x$LEDA_LIBDIR" = "x"; then
13938 <      LEDA_LIBDIR=""
13939 <    fi
13940 <
13941 <    if test "x$LEDA_RLIBDIR" = "x"; then
13530 <      LEDA_RLIBDIR=""
13531 <    fi
13532 <
13533 <    if test "x$GMP_INCLDIR" = "x"; then
13534 <      GMP_INCLDIR=""
13535 <    fi
13536 <
13537 <    if test "x$GMP_LIBDIR" = "x"; then
13538 <      GMP_LIBDIR=""
13539 <    fi
13540 <
13541 <    if test "x$GMP_RLIBDIR" = "x"; then
13542 <      GMP_RLIBDIR=""
13543 <    fi
13544 <
13545 <    echo "$as_me:$LINENO: result: CGAL_OS_COMPILER=   $CGAL_OS_COMPILER" >&5
13546 < echo "${ECHO_T}CGAL_OS_COMPILER=   $CGAL_OS_COMPILER" >&6
13547 <    echo "$as_me:$LINENO: result: CGAL_INCLDIR=       $CGAL_INCLDIR" >&5
13548 < echo "${ECHO_T}CGAL_INCLDIR=       $CGAL_INCLDIR" >&6
13549 <    echo "$as_me:$LINENO: result: CGAL_INCLCONFDIR=   $CGAL_INCLCONFDIR" >&5
13550 < echo "${ECHO_T}CGAL_INCLCONFDIR=   $CGAL_INCLCONFDIR" >&6
13551 <    echo "$as_me:$LINENO: result: CGAL_LIBDIR=        $CGAL_LIBDIR" >&5
13552 < echo "${ECHO_T}CGAL_LIBDIR=        $CGAL_LIBDIR" >&6
13553 <    echo "$as_me:$LINENO: result: CGAL_CXXFLAGS=      $CGAL_CXXFLAGS" >&5
13554 < echo "${ECHO_T}CGAL_CXXFLAGS=      $CGAL_CXXFLAGS" >&6
13555 <    echo "$as_me:$LINENO: result: LEDA_INCLDIR=       $LEDA_INCLDIR" >&5
13556 < echo "${ECHO_T}LEDA_INCLDIR=       $LEDA_INCLDIR" >&6
13557 <    echo "$as_me:$LINENO: result: LEDA_LIBDIR=        $LEDA_LIBDIR" >&5
13558 < echo "${ECHO_T}LEDA_LIBDIR=        $LEDA_LIBDIR" >&6
13559 <    echo "$as_me:$LINENO: result: GMP_INCLDIR=        $GMP_INCLDIR" >&5
13560 < echo "${ECHO_T}GMP_INCLDIR=        $GMP_INCLDIR" >&6
13561 <    echo "$as_me:$LINENO: result: GMP_LIBDIR=         $GMP_LIBDIR" >&5
13562 < echo "${ECHO_T}GMP_LIBDIR=         $GMP_LIBDIR" >&6
13563 <
13564 <    ac_ext=cc
13565 < ac_cpp='$CXXCPP $CPPFLAGS'
13566 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13567 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13568 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13569 <
13570 <    save_CXXFLAGS="$CXXFLAGS"
13571 <    CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
13572 <    if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
13573 <  echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
13574 < echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
13575 < if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
13937 > if test "$acx_cgal_found" == no; then
13938 >        if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
13939 >  echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5
13940 > echo $ECHO_N "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... $ECHO_C" >&6
13941 > if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
13942    echo $ECHO_N "(cached) $ECHO_C" >&6
13943   fi
13944 < echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
13945 < echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
13944 > echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5
13945 > echo "${ECHO_T}$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6
13946   else
13947    # Is the header compilable?
13948 < echo "$as_me:$LINENO: checking CGAL/Cartesian.h usability" >&5
13949 < echo $ECHO_N "checking CGAL/Cartesian.h usability... $ECHO_C" >&6
13948 > echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability" >&5
13949 > echo $ECHO_N "checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability... $ECHO_C" >&6
13950   cat >conftest.$ac_ext <<_ACEOF
13951   /* confdefs.h.  */
13952   _ACEOF
# Line 13588 | Line 13954 | $ac_includes_default
13954   cat >>conftest.$ac_ext <<_ACEOF
13955   /* end confdefs.h.  */
13956   $ac_includes_default
13957 < #include <CGAL/Cartesian.h>
13957 > #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
13958   _ACEOF
13959   rm -f conftest.$ac_objext
13960   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 13599 | Line 13965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13965    cat conftest.err >&5
13966    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967    (exit $ac_status); } &&
13968 <         { ac_try='test -z "$ac_cxx_werror_flag"
13968 >         { ac_try='test -z "$ac_c_werror_flag"
13969                           || test ! -s conftest.err'
13970    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971    (eval $ac_try) 2>&5
# Line 13624 | Line 13990 | echo "${ECHO_T}$ac_header_compiler" >&6
13990   echo "${ECHO_T}$ac_header_compiler" >&6
13991  
13992   # Is the header present?
13993 < echo "$as_me:$LINENO: checking CGAL/Cartesian.h presence" >&5
13994 < echo $ECHO_N "checking CGAL/Cartesian.h presence... $ECHO_C" >&6
13993 > echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence" >&5
13994 > echo $ECHO_N "checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence... $ECHO_C" >&6
13995   cat >conftest.$ac_ext <<_ACEOF
13996   /* confdefs.h.  */
13997   _ACEOF
13998   cat confdefs.h >>conftest.$ac_ext
13999   cat >>conftest.$ac_ext <<_ACEOF
14000   /* end confdefs.h.  */
14001 < #include <CGAL/Cartesian.h>
14001 > #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
14002   _ACEOF
14003   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14004    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 13643 | Line 14009 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
14009    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010    (exit $ac_status); } >/dev/null; then
14011    if test -s conftest.err; then
14012 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
14013 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14012 >    ac_cpp_err=$ac_c_preproc_warn_flag
14013 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14014    else
14015      ac_cpp_err=
14016    fi
# Line 13664 | Line 14030 | echo "${ECHO_T}$ac_header_preproc" >&6
14030   echo "${ECHO_T}$ac_header_preproc" >&6
14031  
14032   # So?  What about this header?
14033 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14033 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14034    yes:no: )
14035 <    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&5
14036 < echo "$as_me: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14037 <    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&5
14038 < echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&2;}
14035 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&5
14036 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14037 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&5
14038 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&2;}
14039      ac_header_preproc=yes
14040      ;;
14041    no:yes:* )
14042 <    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&5
14043 < echo "$as_me: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&2;}
14044 <    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h:     check for missing prerequisite headers?" >&5
14045 < echo "$as_me: WARNING: CGAL/Cartesian.h:     check for missing prerequisite headers?" >&2;}
14046 <    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&5
14047 < echo "$as_me: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&2;}
14048 <    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h:     section \"Present But Cannot Be Compiled\"" >&5
14049 < echo "$as_me: WARNING: CGAL/Cartesian.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14050 <    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&5
14051 < echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&2;}
14052 <    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&5
14053 < echo "$as_me: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&2;}
14042 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&5
14043 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&2;}
14044 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     check for missing prerequisite headers?" >&5
14045 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     check for missing prerequisite headers?" >&2;}
14046 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&5
14047 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&2;}
14048 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     section \"Present But Cannot Be Compiled\"" >&5
14049 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14050 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&5
14051 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&2;}
14052 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&5
14053 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&2;}
14054      (
14055        cat <<\_ASBOX
14056   ## ------------------------------ ##
# Line 13695 | Line 14061 | esac
14061        sed "s/^/$as_me: WARNING:     /" >&2
14062      ;;
14063   esac
14064 < echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
14065 < echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
14066 < if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
14064 > echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5
14065 > echo $ECHO_N "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... $ECHO_C" >&6
14066 > if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
14067    echo $ECHO_N "(cached) $ECHO_C" >&6
14068   else
14069 <  ac_cv_header_CGAL_Cartesian_h=$ac_header_preproc
14069 >  ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h=$ac_header_preproc
14070   fi
14071 < echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
14072 < echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
14071 > echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5
14072 > echo "${ECHO_T}$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6
14073  
14074   fi
14075 < if test $ac_cv_header_CGAL_Cartesian_h = yes; then
14076 <  cgal=yes
14075 > if test $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h = yes; then
14076 >  cgal_have_header=yes
14077   else
14078 <  cgal=no
14078 >  cgal_have_header=no
14079   fi
14080  
14081  
14082 <    CXXFLAGS="$save_CXXFLAGS"
14082 >        if test "$cgal_have_header" == yes; then
14083 >                echo "$as_me:$LINENO: checking for main in -lCGAL" >&5
14084 > echo $ECHO_N "checking for main in -lCGAL... $ECHO_C" >&6
14085 > if test "${ac_cv_lib_CGAL_main+set}" = set; then
14086 >  echo $ECHO_N "(cached) $ECHO_C" >&6
14087 > else
14088 >  ac_check_lib_save_LIBS=$LIBS
14089 > LIBS="-lCGAL  $LIBS"
14090 > cat >conftest.$ac_ext <<_ACEOF
14091 > /* confdefs.h.  */
14092 > _ACEOF
14093 > cat confdefs.h >>conftest.$ac_ext
14094 > cat >>conftest.$ac_ext <<_ACEOF
14095 > /* end confdefs.h.  */
14096  
14097 <    if test "x$cgal" = xyes; then
14098 <      echo "$as_me:$LINENO: checking for CGAL version" >&5
14099 < echo $ECHO_N "checking for CGAL version... $ECHO_C" >&6
14100 <      LOCATION=${CGAL_INCLDIR}
14101 <      LOCATION=${LOCATION:-/usr/include}
14102 <      if test -f $LOCATION/CGAL/version.h; then
14103 <        CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/version.h | sed 's/[^0-9\.]*//g'`
14104 <      else
14105 <        CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/config.h | sed 's/[^0-9\.]*//g'`
14106 <      fi
14107 <      if echo $CGAL_VERSION | grep -q "^[3456789]"; then
14108 <        echo "$as_me:$LINENO: result: ($CGAL_VERSION) yes" >&5
14109 < echo "${ECHO_T}($CGAL_VERSION) yes" >&6
14110 <      else
14111 <        echo "$as_me:$LINENO: result: ($CGAL_VERSION) no" >&5
14112 < echo "${ECHO_T}($CGAL_VERSION) no" >&6
14113 <        cgal=no
14114 <      fi
14115 <    fi
14097 >
14098 > #ifdef FC_DUMMY_MAIN
14099 > #ifndef FC_DUMMY_MAIN_EQ_F77
14100 > #  ifdef __cplusplus
14101 >     extern "C"
14102 > #  endif
14103 >   int FC_DUMMY_MAIN() { return 1; }
14104 > #endif
14105 > #endif
14106 > int
14107 > main ()
14108 > {
14109 > main ();
14110 >  ;
14111 >  return 0;
14112 > }
14113 > _ACEOF
14114 > rm -f conftest.$ac_objext conftest$ac_exeext
14115 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14116 >  (eval $ac_link) 2>conftest.er1
14117 >  ac_status=$?
14118 >  grep -v '^ *+' conftest.er1 >conftest.err
14119 >  rm -f conftest.er1
14120 >  cat conftest.err >&5
14121 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 >  (exit $ac_status); } &&
14123 >         { ac_try='test -z "$ac_c_werror_flag"
14124 >                         || test ! -s conftest.err'
14125 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 >  (eval $ac_try) 2>&5
14127 >  ac_status=$?
14128 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 >  (exit $ac_status); }; } &&
14130 >         { ac_try='test -s conftest$ac_exeext'
14131 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 >  (eval $ac_try) 2>&5
14133 >  ac_status=$?
14134 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 >  (exit $ac_status); }; }; then
14136 >  ac_cv_lib_CGAL_main=yes
14137 > else
14138 >  echo "$as_me: failed program was:" >&5
14139 > sed 's/^/| /' conftest.$ac_ext >&5
14140  
14141 <    if test "x$cgal" = xyes; then
14142 <      CGAL_LIBS="-lCGAL"
14143 <      echo "$as_me:$LINENO: checking whether CGAL uses LEDA" >&5
14144 < echo $ECHO_N "checking whether CGAL uses LEDA... $ECHO_C" >&6
14145 <      if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_LEDA; then
14146 <        CGAL_USES_LEDA=yes
14147 <        echo "$as_me:$LINENO: result: yes" >&5
14148 < echo "${ECHO_T}yes" >&6
14149 <        CGAL_DEFINES="-DCGAL_USE_LEDA -DLEDA_PREFIX"
14150 <      else
14151 <        echo "$as_me:$LINENO: result: no" >&5
14152 < echo "${ECHO_T}no" >&6
14153 <        CGAL_USES_LEDA=no
13751 <      fi
14141 > ac_cv_lib_CGAL_main=no
14142 > fi
14143 > rm -f conftest.err conftest.$ac_objext \
14144 >      conftest$ac_exeext conftest.$ac_ext
14145 > LIBS=$ac_check_lib_save_LIBS
14146 > fi
14147 > echo "$as_me:$LINENO: result: $ac_cv_lib_CGAL_main" >&5
14148 > echo "${ECHO_T}$ac_cv_lib_CGAL_main" >&6
14149 > if test $ac_cv_lib_CGAL_main = yes; then
14150 >  cgal_have_lib=yes
14151 > else
14152 >  cgal_have_lib=no
14153 > fi
14154  
14155 <      echo "$as_me:$LINENO: checking whether CGAL uses GMP" >&5
14156 < echo $ECHO_N "checking whether CGAL uses GMP... $ECHO_C" >&6
14157 <      if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_GMP; then
14158 <        CGAL_USES_GMP=yes
14159 <        echo "$as_me:$LINENO: result: yes" >&5
14160 < echo "${ECHO_T}yes" >&6
14161 <        CGAL_DEFINES="-DCGAL_USE_GMP $CGAL_DEFINES"
14162 <      else
13761 <        echo "$as_me:$LINENO: result: no" >&5
13762 < echo "${ECHO_T}no" >&6
13763 <        CGAL_USES_GMP=no
13764 <      fi
13765 <
13766 <      CGAL_LIBS="$CGAL_LIBS -lm"
13767 <
13768 <      CGAL_CXXFLAGS="-ftemplate-depth-50"
13769 <
13770 <      echo "$as_me:$LINENO: result: CGAL_USES_LEDA=     $CGAL_USES_LEDA" >&5
13771 < echo "${ECHO_T}CGAL_USES_LEDA=     $CGAL_USES_LEDA" >&6
13772 <      echo "$as_me:$LINENO: result: CGAL_USES_GMP =     $CGAL_USES_GMP" >&5
13773 < echo "${ECHO_T}CGAL_USES_GMP =     $CGAL_USES_GMP" >&6
13774 <      echo "$as_me:$LINENO: result: CGAL_INCLDIR  =     $CGAL_INCLDIR" >&5
13775 < echo "${ECHO_T}CGAL_INCLDIR  =     $CGAL_INCLDIR" >&6
13776 <      echo "$as_me:$LINENO: result: CGAL_LIBDIR   =     $CGAL_LIBDIR" >&5
13777 < echo "${ECHO_T}CGAL_LIBDIR   =     $CGAL_LIBDIR" >&6
13778 <      echo "$as_me:$LINENO: result: CGAL_DEFINES  =     $CGAL_DEFINES" >&5
13779 < echo "${ECHO_T}CGAL_DEFINES  =     $CGAL_DEFINES" >&6
13780 <      echo "$as_me:$LINENO: result: CGAL_CXXFLAGS =     $CGAL_CXXFLAGS" >&5
13781 < echo "${ECHO_T}CGAL_CXXFLAGS =     $CGAL_CXXFLAGS" >&6
13782 <      echo "$as_me:$LINENO: result: CGAL_LIBS     =     $CGAL_LIBS" >&5
13783 < echo "${ECHO_T}CGAL_LIBS     =     $CGAL_LIBS" >&6
13784 <    fi
13785 <
13786 <    if test "x$cgal" = xyes; then
13787 <      save_LIBS="$LIBS"
13788 <      LIBS="$LIBS -L$CGAL_LIBDIR"
13789 <      if test "x$CGAL_USES_LEDA" = xyes; then
13790 <        LIBS="-lL $LIBS -L$LEDA_LIBDIR"
13791 <      fi
13792 <      # if test "x$CGAL_USES_GMP" = xyes; then
13793 <      #   LIBS="-lgmp $LIBS $GMP_LIBDIR"
13794 <      # fi
13795 <      echo "$as_me:$LINENO: checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL" >&5
13796 < echo $ECHO_N "checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL... $ECHO_C" >&6
13797 < save_CXXFLAGS_CHECK_CXX_LIB="$CXXFLAGS"
13798 < CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
13799 < save_LIBS_CHECK_CXX_LIB="$LIBS"
14155 >                if test "$cgal_have_lib" == no; then
14156 >                        save_LIBS="$LIBS"; LIBS="$LIBS -lgmp -lmpfr -lm"
14157 >                        echo "$as_me:$LINENO: checking for main in -lCGAL" >&5
14158 > echo $ECHO_N "checking for main in -lCGAL... $ECHO_C" >&6
14159 > if test "${ac_cv_lib_CGAL_main+set}" = set; then
14160 >  echo $ECHO_N "(cached) $ECHO_C" >&6
14161 > else
14162 >  ac_check_lib_save_LIBS=$LIBS
14163   LIBS="-lCGAL  $LIBS"
14164   cat >conftest.$ac_ext <<_ACEOF
14165   /* confdefs.h.  */
# Line 13804 | Line 14167 | cat >>conftest.$ac_ext <<_ACEOF
14167   cat confdefs.h >>conftest.$ac_ext
14168   cat >>conftest.$ac_ext <<_ACEOF
14169   /* end confdefs.h.  */
14170 < #include <CGAL/Cartesian.h>
14170 >
14171 >
14172   #ifdef FC_DUMMY_MAIN
14173   #ifndef FC_DUMMY_MAIN_EQ_F77
14174   #  ifdef __cplusplus
# Line 13816 | Line 14180 | main ()
14180   int
14181   main ()
14182   {
14183 < ::CGAL::Cartesian<int>::Point_2 P
14183 > main ();
14184    ;
14185    return 0;
14186   }
# Line 13830 | Line 14194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14194    cat conftest.err >&5
14195    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196    (exit $ac_status); } &&
14197 <         { ac_try='test -z "$ac_cxx_werror_flag"
14197 >         { ac_try='test -z "$ac_c_werror_flag"
14198                           || test ! -s conftest.err'
14199    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200    (eval $ac_try) 2>&5
# Line 13843 | Line 14207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14207    ac_status=$?
14208    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209    (exit $ac_status); }; }; then
14210 <  echo "$as_me:$LINENO: result: yes" >&5
13847 < echo "${ECHO_T}yes" >&6
13848 < cgal=yes
14210 >  ac_cv_lib_CGAL_main=yes
14211   else
14212    echo "$as_me: failed program was:" >&5
14213   sed 's/^/| /' conftest.$ac_ext >&5
14214  
14215 < echo "$as_me:$LINENO: result: no" >&5
13854 < echo "${ECHO_T}no" >&6
13855 < cgal=no
14215 > ac_cv_lib_CGAL_main=no
14216   fi
14217   rm -f conftest.err conftest.$ac_objext \
14218        conftest$ac_exeext conftest.$ac_ext
14219 < CXXFLAGS="$save_CXXFLAGS_CHECK_CXX_LIB"
14220 < LIBS="$save_LIBS_CHECK_CXX_LIB"
14221 <      LIBS="$save_LIBS"
14222 <    fi
14219 > LIBS=$ac_check_lib_save_LIBS
14220 > fi
14221 > echo "$as_me:$LINENO: result: $ac_cv_lib_CGAL_main" >&5
14222 > echo "${ECHO_T}$ac_cv_lib_CGAL_main" >&6
14223 > if test $ac_cv_lib_CGAL_main = yes; then
14224 >  CGAL_LIBS="-lCGAL -lgmp -lmpfr"
14225 >                                                  cgal_have_lib=yes
14226 > else
14227 >  cgal_have_lib=no
14228 > fi
14229  
14230 <  fi
14231 <  ac_ext=c
14232 < ac_cpp='$CPP $CPPFLAGS'
14233 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14234 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14235 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
14230 >                        LIBS="$save_LIBS"
14231 >                else
14232 >                        CGAL_LIBS="-lCGAL"
14233 >                        echo "$as_me:$LINENO: checking for main in -lmpfr" >&5
14234 > echo $ECHO_N "checking for main in -lmpfr... $ECHO_C" >&6
14235 > if test "${ac_cv_lib_mpfr_main+set}" = set; then
14236 >  echo $ECHO_N "(cached) $ECHO_C" >&6
14237 > else
14238 >  ac_check_lib_save_LIBS=$LIBS
14239 > LIBS="-lmpfr  $LIBS"
14240 > cat >conftest.$ac_ext <<_ACEOF
14241 > /* confdefs.h.  */
14242 > _ACEOF
14243 > cat confdefs.h >>conftest.$ac_ext
14244 > cat >>conftest.$ac_ext <<_ACEOF
14245 > /* end confdefs.h.  */
14246  
14247  
14248 + #ifdef FC_DUMMY_MAIN
14249 + #ifndef FC_DUMMY_MAIN_EQ_F77
14250 + #  ifdef __cplusplus
14251 +     extern "C"
14252 + #  endif
14253 +   int FC_DUMMY_MAIN() { return 1; }
14254 + #endif
14255 + #endif
14256 + int
14257 + main ()
14258 + {
14259 + main ();
14260 +  ;
14261 +  return 0;
14262 + }
14263 + _ACEOF
14264 + rm -f conftest.$ac_objext conftest$ac_exeext
14265 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14266 +  (eval $ac_link) 2>conftest.er1
14267 +  ac_status=$?
14268 +  grep -v '^ *+' conftest.er1 >conftest.err
14269 +  rm -f conftest.er1
14270 +  cat conftest.err >&5
14271 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 +  (exit $ac_status); } &&
14273 +         { ac_try='test -z "$ac_c_werror_flag"
14274 +                         || test ! -s conftest.err'
14275 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 +  (eval $ac_try) 2>&5
14277 +  ac_status=$?
14278 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 +  (exit $ac_status); }; } &&
14280 +         { ac_try='test -s conftest$ac_exeext'
14281 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 +  (eval $ac_try) 2>&5
14283 +  ac_status=$?
14284 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 +  (exit $ac_status); }; }; then
14286 +  ac_cv_lib_mpfr_main=yes
14287 + else
14288 +  echo "$as_me: failed program was:" >&5
14289 + sed 's/^/| /' conftest.$ac_ext >&5
14290 +
14291 + ac_cv_lib_mpfr_main=no
14292   fi
14293 + rm -f conftest.err conftest.$ac_objext \
14294 +      conftest$ac_exeext conftest.$ac_ext
14295 + LIBS=$ac_check_lib_save_LIBS
14296 + fi
14297 + echo "$as_me:$LINENO: result: $ac_cv_lib_mpfr_main" >&5
14298 + echo "${ECHO_T}$ac_cv_lib_mpfr_main" >&6
14299 + if test $ac_cv_lib_mpfr_main = yes; then
14300 +  CGAL_LIBS="$CGAL_LIBS -lmpfr"
14301 + fi
14302  
14303 < if test "x$cgal" = xyes; then
14304 <  USE_CGAL=yes
14305 <
14306 < cat >>confdefs.h <<\_ACEOF
14307 < #define HAVE_CGAL 1
14303 >                        echo "$as_me:$LINENO: checking for main in -lgmp" >&5
14304 > echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6
14305 > if test "${ac_cv_lib_gmp_main+set}" = set; then
14306 >  echo $ECHO_N "(cached) $ECHO_C" >&6
14307 > else
14308 >  ac_check_lib_save_LIBS=$LIBS
14309 > LIBS="-lgmp  $LIBS"
14310 > cat >conftest.$ac_ext <<_ACEOF
14311 > /* confdefs.h.  */
14312   _ACEOF
14313 + cat confdefs.h >>conftest.$ac_ext
14314 + cat >>conftest.$ac_ext <<_ACEOF
14315 + /* end confdefs.h.  */
14316  
14317  
14318 < cat >>confdefs.h <<_ACEOF
14319 < #define CGAL_VERSION $CGAL_VERSION
14318 > #ifdef FC_DUMMY_MAIN
14319 > #ifndef FC_DUMMY_MAIN_EQ_F77
14320 > #  ifdef __cplusplus
14321 >     extern "C"
14322 > #  endif
14323 >   int FC_DUMMY_MAIN() { return 1; }
14324 > #endif
14325 > #endif
14326 > int
14327 > main ()
14328 > {
14329 > main ();
14330 >  ;
14331 >  return 0;
14332 > }
14333   _ACEOF
14334 + rm -f conftest.$ac_objext conftest$ac_exeext
14335 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14336 +  (eval $ac_link) 2>conftest.er1
14337 +  ac_status=$?
14338 +  grep -v '^ *+' conftest.er1 >conftest.err
14339 +  rm -f conftest.er1
14340 +  cat conftest.err >&5
14341 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 +  (exit $ac_status); } &&
14343 +         { ac_try='test -z "$ac_c_werror_flag"
14344 +                         || test ! -s conftest.err'
14345 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 +  (eval $ac_try) 2>&5
14347 +  ac_status=$?
14348 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 +  (exit $ac_status); }; } &&
14350 +         { ac_try='test -s conftest$ac_exeext'
14351 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352 +  (eval $ac_try) 2>&5
14353 +  ac_status=$?
14354 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 +  (exit $ac_status); }; }; then
14356 +  ac_cv_lib_gmp_main=yes
14357 + else
14358 +  echo "$as_me: failed program was:" >&5
14359 + sed 's/^/| /' conftest.$ac_ext >&5
14360  
14361 <  if ! echo $CGAL_VERSION | grep -q "^3.0"; then
14362 <    { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
14363 < echo "$as_me: WARNING: *****************************************************" >&2;}
14364 <    { echo "$as_me:$LINENO: WARNING: *** Warning: Your CGAL version is newer than the  ***" >&5
14365 < echo "$as_me: WARNING: *** Warning: Your CGAL version is newer than the  ***" >&2;}
14366 <    { echo "$as_me:$LINENO: WARNING: *** supported versions. It may still work though. ***" >&5
14367 < echo "$as_me: WARNING: *** supported versions. It may still work though. ***" >&2;}
14368 <    { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
14369 < echo "$as_me: WARNING: *****************************************************" >&2;}
14370 <  fi
14361 > ac_cv_lib_gmp_main=no
14362 > fi
14363 > rm -f conftest.err conftest.$ac_objext \
14364 >      conftest$ac_exeext conftest.$ac_ext
14365 > LIBS=$ac_check_lib_save_LIBS
14366 > fi
14367 > echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5
14368 > echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6
14369 > if test $ac_cv_lib_gmp_main = yes; then
14370 >  CGAL_LIBS="$CGAL_LIBS -lgmp"
14371 > fi
14372 >
14373 >                        echo "$as_me:$LINENO: checking for main in -lgmpxx" >&5
14374 > echo $ECHO_N "checking for main in -lgmpxx... $ECHO_C" >&6
14375 > if test "${ac_cv_lib_gmpxx_main+set}" = set; then
14376 >  echo $ECHO_N "(cached) $ECHO_C" >&6
14377   else
14378 <   if test "x$cgal_makefile" != xno; then
14379 <    echo "$as_me:$LINENO: result: No CGAL support. These are not the droids you want." >&5
14380 < echo "${ECHO_T}No CGAL support. These are not the droids you want." >&6
14381 <  fi
14382 <  CGAL_INCLDIR=
14383 <  CGAL_LIBDIR=
14384 <  CGAL_RLIBDIR=
14385 <  CGAL_DEFINES=
14386 <  CGAL_CXXFLAGS=
14387 <  CGAL_LIBS=
14378 >  ac_check_lib_save_LIBS=$LIBS
14379 > LIBS="-lgmpxx  $LIBS"
14380 > cat >conftest.$ac_ext <<_ACEOF
14381 > /* confdefs.h.  */
14382 > _ACEOF
14383 > cat confdefs.h >>conftest.$ac_ext
14384 > cat >>conftest.$ac_ext <<_ACEOF
14385 > /* end confdefs.h.  */
14386 >
14387 >
14388 > #ifdef FC_DUMMY_MAIN
14389 > #ifndef FC_DUMMY_MAIN_EQ_F77
14390 > #  ifdef __cplusplus
14391 >     extern "C"
14392 > #  endif
14393 >   int FC_DUMMY_MAIN() { return 1; }
14394 > #endif
14395 > #endif
14396 > int
14397 > main ()
14398 > {
14399 > main ();
14400 >  ;
14401 >  return 0;
14402 > }
14403 > _ACEOF
14404 > rm -f conftest.$ac_objext conftest$ac_exeext
14405 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14406 >  (eval $ac_link) 2>conftest.er1
14407 >  ac_status=$?
14408 >  grep -v '^ *+' conftest.er1 >conftest.err
14409 >  rm -f conftest.er1
14410 >  cat conftest.err >&5
14411 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 >  (exit $ac_status); } &&
14413 >         { ac_try='test -z "$ac_c_werror_flag"
14414 >                         || test ! -s conftest.err'
14415 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 >  (eval $ac_try) 2>&5
14417 >  ac_status=$?
14418 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 >  (exit $ac_status); }; } &&
14420 >         { ac_try='test -s conftest$ac_exeext'
14421 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 >  (eval $ac_try) 2>&5
14423 >  ac_status=$?
14424 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 >  (exit $ac_status); }; }; then
14426 >  ac_cv_lib_gmpxx_main=yes
14427 > else
14428 >  echo "$as_me: failed program was:" >&5
14429 > sed 's/^/| /' conftest.$ac_ext >&5
14430 >
14431 > ac_cv_lib_gmpxx_main=no
14432   fi
14433 + rm -f conftest.err conftest.$ac_objext \
14434 +      conftest$ac_exeext conftest.$ac_ext
14435 + LIBS=$ac_check_lib_save_LIBS
14436 + fi
14437 + echo "$as_me:$LINENO: result: $ac_cv_lib_gmpxx_main" >&5
14438 + echo "${ECHO_T}$ac_cv_lib_gmpxx_main" >&6
14439 + if test $ac_cv_lib_gmpxx_main = yes; then
14440 +  CGAL_LIBS="$CGAL_LIBS -lgmpxx"
14441 + fi
14442  
14443 +                fi
14444  
14445 < CGAL_INC_DIR="${CGAL_INCLDIR} ${CGAL_INCLCONFDIR}"
14445 >                if test "$cgal_have_lib" == yes; then
14446 >                        acx_cgal_found=yes
14447 >                fi
14448 >        fi
14449 >        if test "$acx_cgal_found" == yes; then
14450 >                echo "$as_me:$LINENO: checking for main in -lCore" >&5
14451 > echo $ECHO_N "checking for main in -lCore... $ECHO_C" >&6
14452 > if test "${ac_cv_lib_Core_main+set}" = set; then
14453 >  echo $ECHO_N "(cached) $ECHO_C" >&6
14454 > else
14455 >  ac_check_lib_save_LIBS=$LIBS
14456 > LIBS="-lCore  $LIBS"
14457 > cat >conftest.$ac_ext <<_ACEOF
14458 > /* confdefs.h.  */
14459 > _ACEOF
14460 > cat confdefs.h >>conftest.$ac_ext
14461 > cat >>conftest.$ac_ext <<_ACEOF
14462 > /* end confdefs.h.  */
14463  
13912 CGAL_LIB_DIR=${CGAL_LIBDIR}
14464  
14465 < CGAL_RLIB_DIR=${CGAL_RLIBDIR}
14465 > #ifdef FC_DUMMY_MAIN
14466 > #ifndef FC_DUMMY_MAIN_EQ_F77
14467 > #  ifdef __cplusplus
14468 >     extern "C"
14469 > #  endif
14470 >   int FC_DUMMY_MAIN() { return 1; }
14471 > #endif
14472 > #endif
14473 > int
14474 > main ()
14475 > {
14476 > main ();
14477 >  ;
14478 >  return 0;
14479 > }
14480 > _ACEOF
14481 > rm -f conftest.$ac_objext conftest$ac_exeext
14482 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14483 >  (eval $ac_link) 2>conftest.er1
14484 >  ac_status=$?
14485 >  grep -v '^ *+' conftest.er1 >conftest.err
14486 >  rm -f conftest.er1
14487 >  cat conftest.err >&5
14488 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 >  (exit $ac_status); } &&
14490 >         { ac_try='test -z "$ac_c_werror_flag"
14491 >                         || test ! -s conftest.err'
14492 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 >  (eval $ac_try) 2>&5
14494 >  ac_status=$?
14495 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 >  (exit $ac_status); }; } &&
14497 >         { ac_try='test -s conftest$ac_exeext'
14498 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 >  (eval $ac_try) 2>&5
14500 >  ac_status=$?
14501 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 >  (exit $ac_status); }; }; then
14503 >  ac_cv_lib_Core_main=yes
14504 > else
14505 >  echo "$as_me: failed program was:" >&5
14506 > sed 's/^/| /' conftest.$ac_ext >&5
14507  
14508 + ac_cv_lib_Core_main=no
14509 + fi
14510 + rm -f conftest.err conftest.$ac_objext \
14511 +      conftest$ac_exeext conftest.$ac_ext
14512 + LIBS=$ac_check_lib_save_LIBS
14513 + fi
14514 + echo "$as_me:$LINENO: result: $ac_cv_lib_Core_main" >&5
14515 + echo "${ECHO_T}$ac_cv_lib_Core_main" >&6
14516 + if test $ac_cv_lib_Core_main = yes; then
14517 +  CGAL_LIBS="$CGAL_LIBS -lCore"
14518 + fi
14519  
14520 +        fi
14521 + fi
14522  
14523  
14524  
14525 + echo "$as_me:$LINENO: checking CGAL" >&5
14526 + echo $ECHO_N "checking CGAL... $ECHO_C" >&6
14527 + if test "$acx_cgal_found" == yes; then
14528 +        echo "$as_me:$LINENO: result: yes" >&5
14529 + echo "${ECHO_T}yes" >&6;
14530  
14531 + else
14532 +        echo "$as_me:$LINENO: result: no" >&5
14533 + echo "${ECHO_T}no" >&6
14534 +
14535 + fi
14536 +
14537 + if test "$acx_cgal_found" == yes; then
14538 +        USE_CGAL=yes
14539 +
14540 + cat >>confdefs.h <<\_ACEOF
14541 + #define HAVE_CGAL 1
14542 + _ACEOF
14543 +
14544 +
14545 +
14546 +
14547 +
14548 +
14549 + fi
14550 +
14551 +
14552 +
14553 +
14554   # Check whether --enable-doxygen or --disable-doxygen was given.
14555   if test "${enable_doxygen+set}" = set; then
14556    enableval="$enable_doxygen"
# Line 14071 | Line 14704 | fi
14704  
14705  
14706  
14707 <                                        ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/applications/nanoRodBuilder/Makefile scripts/filepp"
14707 >                                        ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile scripts/filepp"
14708  
14709  
14710   cat >confcache <<\_ACEOF
# Line 14436 | Line 15069 | cat >&5 <<_CSEOF
15069   } >&5
15070   cat >&5 <<_CSEOF
15071  
15072 < This file was extended by OOPSE $as_me 3.0, which was
15072 > This file was extended by OOPSE $as_me 4.0, which was
15073   generated by GNU Autoconf 2.59.  Invocation command line was
15074  
15075    CONFIG_FILES    = $CONFIG_FILES
# Line 14499 | Line 15132 | ac_cs_version="\\
15132  
15133   cat >>$CONFIG_STATUS <<_ACEOF
15134   ac_cs_version="\\
15135 < OOPSE config.status 3.0
15135 > OOPSE config.status 4.0
15136   configured by $0, generated by GNU Autoconf 2.59,
15137    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15138  
# Line 14604 | Line 15237 | do
15237    # Handling of arguments.
15238    "make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
15239    "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
15240 <  "src/applications/nanoRodBuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/applications/nanoRodBuilder/Makefile" ;;
15240 >  "src/math/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/math/Makefile" ;;
15241    "scripts/filepp" ) CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
15242    "src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
15243    "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
# Line 14703 | Line 15336 | s,@debug@,$debug,;t t
15336   s,@host_os@,$host_os,;t t
15337   s,@PROGNAME@,$PROGNAME,;t t
15338   s,@debug@,$debug,;t t
15339 + s,@USE_SINGLE_PRECISION@,$USE_SINGLE_PRECISION,;t t
15340   s,@CXX@,$CXX,;t t
15341   s,@CXXFLAGS@,$CXXFLAGS,;t t
15342   s,@LDFLAGS@,$LDFLAGS,;t t
# Line 14746 | Line 15380 | s,@FFTW_LIBS@,$FFTW_LIBS,;t t
15380   s,@FFTW_INC_DIR@,$FFTW_INC_DIR,;t t
15381   s,@FFTW_LIB_DIR@,$FFTW_LIB_DIR,;t t
15382   s,@FFTW_LIBS@,$FFTW_LIBS,;t t
15383 + s,@QHULL_INC_DIR@,$QHULL_INC_DIR,;t t
15384 + s,@QHULL_LIB_DIR@,$QHULL_LIB_DIR,;t t
15385 + s,@QHULL@,$QHULL,;t t
15386   s,@LIBOBJS@,$LIBOBJS,;t t
15387   s,@POW_LIB@,$POW_LIB,;t t
15388   s,@CXXCPP@,$CXXCPP,;t t
# Line 14757 | Line 15394 | s,@USE_CGAL@,$USE_CGAL,;t t
15394   s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
15395   s,@USE_MPI@,$USE_MPI,;t t
15396   s,@USE_CGAL@,$USE_CGAL,;t t
14760 s,@CGAL_INC_DIR@,$CGAL_INC_DIR,;t t
14761 s,@CGAL_LIB_DIR@,$CGAL_LIB_DIR,;t t
14762 s,@CGAL_RLIB_DIR@,$CGAL_RLIB_DIR,;t t
14763 s,@CGAL_DEFINES@,$CGAL_DEFINES,;t t
15397   s,@CGAL_CXXFLAGS@,$CGAL_CXXFLAGS,;t t
15398 + s,@CGAL_LDFLAGS@,$CGAL_LDFLAGS,;t t
15399 + s,@CGAL_CPPFLAGS@,$CGAL_CPPFLAGS,;t t
15400   s,@CGAL_LIBS@,$CGAL_LIBS,;t t
15401   s,@DOXYGEN@,$DOXYGEN,;t t
15402   s,@DOT@,$DOT,;t t
# Line 15015 | Line 15650 | s,@INSTALL@,$ac_INSTALL,;t t
15650    case $ac_file in
15651      make/Makefile ) chmod 0755 scripts/* ;;
15652      src/utils/Makefile ) chmod 0755 scripts/* ;;
15653 <    src/applications/nanoRodBuilder/Makefile ) chmod 0755 scripts/* ;;
15653 >    src/math/Makefile ) chmod 0755 scripts/* ;;
15654      scripts/filepp ) chmod 0755 scripts/* ;;
15655    esac
15656   done

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines