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 974 by gezelter, Thu May 25 15:19:34 2006 UTC

# 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 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'
316   ac_subst_files=''
317  
318   # Initialize some variables set by options.
# 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 1624 | Line 1626 | fi
1626   fi
1627  
1628  
1629 + # Check whether --enable-single or --disable-single was given.
1630 + if test "${enable_single+set}" = set; then
1631 +  enableval="$enable_single"
1632 +  ok=$enableval
1633 + else
1634 +  ok=no
1635 + fi;
1636 + # Check whether --enable-float or --disable-float was given.
1637 + if test "${enable_float+set}" = set; then
1638 +  enableval="$enable_float"
1639 +  ok=$enableval
1640 + fi;
1641 + if test "$ok" = "yes"; then
1642 +
1643 + cat >>confdefs.h <<\_ACEOF
1644 + #define SINGLE_PRECISION 1
1645 + _ACEOF
1646 +
1647 +        USE_SINGLE_PRECISION=yes
1648 +
1649 + fi
1650 +
1651   # Checks for programs.
1652   ac_ext=cc
1653   ac_cpp='$CXXCPP $CPPFLAGS'
# Line 2785 | Line 2809 | fi
2809  
2810  
2811   # Provide some information about the compiler.
2812 < echo "$as_me:2788:" \
2812 > echo "$as_me:2812:" \
2813       "checking for Fortran compiler version" >&5
2814   ac_compiler=`set X $ac_compile; echo $2`
2815   { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
# Line 4033 | Line 4057 | FCFLAGS="$FCFLAGS $ac_verb"
4057   # flags.
4058   ac_save_FFLAGS=$FCFLAGS
4059   FCFLAGS="$FCFLAGS $ac_verb"
4060 < (eval echo $as_me:4036: \"$ac_link\") >&5
4060 > (eval echo $as_me:4060: \"$ac_link\") >&5
4061   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4062   echo "$ac_fc_v_output" >&5
4063   FCFLAGS=$ac_save_FFLAGS
# Line 4111 | Line 4135 | FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4135   # flags.
4136   ac_save_FFLAGS=$FCFLAGS
4137   FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4138 < (eval echo $as_me:4114: \"$ac_link\") >&5
4138 > (eval echo $as_me:4138: \"$ac_link\") >&5
4139   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4140   echo "$ac_fc_v_output" >&5
4141   FCFLAGS=$ac_save_FFLAGS
# Line 4847 | Line 4871 | FCFLAGS="$FCFLAGS $ac_verb"
4871   # flags.
4872   ac_save_FFLAGS=$FCFLAGS
4873   FCFLAGS="$FCFLAGS $ac_verb"
4874 < (eval echo $as_me:4850: \"$ac_link\") >&5
4874 > (eval echo $as_me:4874: \"$ac_link\") >&5
4875   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4876   echo "$ac_fc_v_output" >&5
4877   FCFLAGS=$ac_save_FFLAGS
# Line 4925 | Line 4949 | FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4949   # flags.
4950   ac_save_FFLAGS=$FCFLAGS
4951   FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4952 < (eval echo $as_me:4928: \"$ac_link\") >&5
4952 > (eval echo $as_me:4952: \"$ac_link\") >&5
4953   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4954   echo "$ac_fc_v_output" >&5
4955   FCFLAGS=$ac_save_FFLAGS
# Line 13003 | Line 13027 | echo $ECHO_N "checking whether mpif.h is usable... $EC
13027  
13028   echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
13029   echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
13030 +
13031 +
13032 + ac_ext=${FC_SRCEXT-f}
13033 + ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
13034 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
13035 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13036 +
13037 + ac_save_ext=$ac_ext
13038 + ac_ext=F90
13039 + ac_save_FCFLAGS=$FCFLAGS
13040   have_mpif_h=0
13041   rm -f conftest*
13042   cat >conftest.$ac_ext <<EOF
# Line 13032 | Line 13066 | fi
13066   _ACEOF
13067  
13068   fi
13069 + FCFLAGS=$ac_save_FCFLAGS
13070 + ac_ext=$ac_save_ext
13071 + ac_ext=cc
13072 + ac_cpp='$CXXCPP $CPPFLAGS'
13073 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13074 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13075 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13076  
13077 +
13078   ac_ext=c
13079   ac_cpp='$CPP $CPPFLAGS'
13080   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 13040 | Line 13082 | ac_save_LDFLAGS=$LDFLAGS
13082   ac_compiler_gnu=$ac_cv_c_compiler_gnu
13083  
13084   ac_save_LDFLAGS=$LDFLAGS
13085 < LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
13085 > LDFLAGS="-L${MPI_LIB_DIR} ${LDFLAGS} "
13086  
13087   if test x = x"$MPI_LIB"; then
13088          echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
# Line 13120 | Line 13162 | fi
13162   fi
13163  
13164   fi
13165 + $as_unset ac_cv_lib_mpich_MPI_Init
13166   if test x = x"$MPI_LIB"; then
13167 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13168 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
13169 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
13167 >        # absolute insanity if profiling libraries are required to get mpich to work
13168 >        echo "$as_me:$LINENO: checking for MPI_Init in -lpmpich" >&5
13169 > echo $ECHO_N "checking for MPI_Init in -lpmpich... $ECHO_C" >&6
13170 > if test "${ac_cv_lib_pmpich_MPI_Init+set}" = set; then
13171    echo $ECHO_N "(cached) $ECHO_C" >&6
13172   else
13173    ac_check_lib_save_LIBS=$LIBS
13174 < LIBS="-lmpi  $LIBS"
13174 > LIBS="-lpmpich "-lmpich -lpmpich -lmpich" $LIBS"
13175   cat >conftest.$ac_ext <<_ACEOF
13176   /* confdefs.h.  */
13177   _ACEOF
# Line 13180 | Line 13224 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13224    ac_status=$?
13225    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226    (exit $ac_status); }; }; then
13227 <  ac_cv_lib_mpi_MPI_Init=yes
13227 >  ac_cv_lib_pmpich_MPI_Init=yes
13228   else
13229    echo "$as_me: failed program was:" >&5
13230   sed 's/^/| /' conftest.$ac_ext >&5
13231  
13232 < ac_cv_lib_mpi_MPI_Init=no
13232 > ac_cv_lib_pmpich_MPI_Init=no
13233   fi
13234   rm -f conftest.err conftest.$ac_objext \
13235        conftest$ac_exeext conftest.$ac_ext
13236   LIBS=$ac_check_lib_save_LIBS
13237   fi
13238 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13239 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13240 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
13241 <  MPI_LIB="-lmpi"
13238 > echo "$as_me:$LINENO: result: $ac_cv_lib_pmpich_MPI_Init" >&5
13239 > echo "${ECHO_T}$ac_cv_lib_pmpich_MPI_Init" >&6
13240 > if test $ac_cv_lib_pmpich_MPI_Init = yes; then
13241 >  MPI_LIB="-lpmpich -lmpich -lpmpich -lmpich"
13242   fi
13243  
13244   fi
13201 $as_unset ac_cv_lib_mpi_MPI_Init
13245   if test x = x"$MPI_LIB"; then
13246          echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13247   echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
# Line 13206 | Line 13249 | else
13249    echo $ECHO_N "(cached) $ECHO_C" >&6
13250   else
13251    ac_check_lib_save_LIBS=$LIBS
13252 < LIBS="-lmpi "-llam" $LIBS"
13252 > LIBS="-lmpi  $LIBS"
13253   cat >conftest.$ac_ext <<_ACEOF
13254   /* confdefs.h.  */
13255   _ACEOF
# Line 13273 | Line 13316 | if test $ac_cv_lib_mpi_MPI_Init = yes; then
13316   echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13317   echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13318   if test $ac_cv_lib_mpi_MPI_Init = yes; then
13319 <  MPI_LIB="-lmpi -llam"
13319 >  MPI_LIB="-lmpi"
13320   fi
13321  
13322   fi
13323 < $as_unset ac_cv_lib_mpich_MPI_Init
13323 > $as_unset ac_cv_lib_mpi_MPI_Init
13324   if test x = x"$MPI_LIB"; then
13325 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
13326 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
13327 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
13325 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13326 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
13327 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
13328    echo $ECHO_N "(cached) $ECHO_C" >&6
13329   else
13330    ac_check_lib_save_LIBS=$LIBS
13331 < LIBS="-lmpich "-lpmpich" $LIBS"
13331 > LIBS="-lmpi "-llam" $LIBS"
13332   cat >conftest.$ac_ext <<_ACEOF
13333   /* confdefs.h.  */
13334   _ACEOF
# Line 13338 | Line 13381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13381    ac_status=$?
13382    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383    (exit $ac_status); }; }; then
13384 <  ac_cv_lib_mpich_MPI_Init=yes
13384 >  ac_cv_lib_mpi_MPI_Init=yes
13385   else
13386    echo "$as_me: failed program was:" >&5
13387   sed 's/^/| /' conftest.$ac_ext >&5
13388  
13389 < ac_cv_lib_mpich_MPI_Init=no
13389 > ac_cv_lib_mpi_MPI_Init=no
13390   fi
13391   rm -f conftest.err conftest.$ac_objext \
13392        conftest$ac_exeext conftest.$ac_ext
13393   LIBS=$ac_check_lib_save_LIBS
13394   fi
13395 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
13396 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
13397 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
13398 <  MPI_LIB="-lpmpich -lmpich"
13395 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13396 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13397 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
13398 >  MPI_LIB="-lmpi -llam"
13399   fi
13400  
13401   fi
13359
13402   $as_unset ac_cv_lib_mpi_MPI_Init
13403   if test x = x"$MPI_LIB"; then
13404   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
# Line 14703 | Line 14745 | s,@debug@,$debug,;t t
14745   s,@host_os@,$host_os,;t t
14746   s,@PROGNAME@,$PROGNAME,;t t
14747   s,@debug@,$debug,;t t
14748 + s,@USE_SINGLE_PRECISION@,$USE_SINGLE_PRECISION,;t t
14749   s,@CXX@,$CXX,;t t
14750   s,@CXXFLAGS@,$CXXFLAGS,;t t
14751   s,@LDFLAGS@,$LDFLAGS,;t t

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines