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 1373 by gezelter, Tue Oct 20 13:13:45 2009 UTC vs.
branches/development/configure (file contents), Revision 1632 by gezelter, Wed Sep 14 21:44:08 2011 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by GNU Autoconf 2.64 for OOPSE 4.0.
3 > # Generated by GNU Autoconf 2.68 for OpenMD 2.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7 + #
8   # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 < # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 > # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10   # Foundation, Inc.
11   #
12 + #
13   # This configure script is free software; the Free Software Foundation
14   # gives unlimited permission to copy, distribute and modify it.
15   ## -------------------- ##
# Line 89 | Line 91 | IFS=" ""       $as_nl"
91   IFS=" ""        $as_nl"
92  
93   # Find who we are.  Look in the path if we contain no directory separator.
94 + as_myself=
95   case $0 in #((
96    *[\\/]* ) as_myself=$0 ;;
97    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 214 | Line 217 | IFS=$as_save_IFS
217    # We cannot yet assume a decent shell, so we have to provide a
218          # neutralization value for shells without unset; and this also
219          # works around shells that cannot unset nonexistent variables.
220 +        # Preserve -v and -x to the replacement shell.
221          BASH_ENV=/dev/null
222          ENV=/dev/null
223          (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224          export CONFIG_SHELL
225 <        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 >        case $- in # ((((
226 >          *v*x* | *x*v* ) as_opts=-vx ;;
227 >          *v* ) as_opts=-v ;;
228 >          *x* ) as_opts=-x ;;
229 >          * ) as_opts= ;;
230 >        esac
231 >        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232   fi
233  
234      if test x$as_have_required = xno; then :
# Line 317 | Line 327 | $as_echo X"$as_dir" |
327        test -d "$as_dir" && break
328      done
329      test -z "$as_dirs" || eval "mkdir $as_dirs"
330 <  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
330 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331  
332  
333   } # as_fn_mkdir_p
# Line 357 | Line 367 | fi # as_fn_arith
367   fi # as_fn_arith
368  
369  
370 < # as_fn_error ERROR [LINENO LOG_FD]
371 < # ---------------------------------
370 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 > # ----------------------------------------
372   # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373   # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 < # script with status $?, using 1 if that was 0.
374 > # script with STATUS, using 1 if that was 0.
375   as_fn_error ()
376   {
377 <  as_status=$?; test $as_status -eq 0 && as_status=1
378 <  if test "$3"; then
379 <    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 <    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 >  as_status=$1; test $as_status -eq 0 && as_status=1
378 >  if test "$4"; then
379 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381    fi
382 <  $as_echo "$as_me: error: $1" >&2
382 >  $as_echo "$as_me: error: $2" >&2
383    as_fn_exit $as_status
384   } # as_fn_error
385  
# Line 527 | Line 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537   as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538  
539  
540 < exec 7<&0 </dev/null 6>&1
540 > test -n "$DJDIR" || exec 7<&0 </dev/null
541 > exec 6>&1
542  
543   # Name of the host.
544 < # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 > # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545   # so uname gets run too.
546   ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547  
# Line 547 | Line 558 | MAKEFLAGS=
558   MAKEFLAGS=
559  
560   # Identity of this package.
561 < PACKAGE_NAME='OOPSE'
562 < PACKAGE_TARNAME='oopse'
563 < PACKAGE_VERSION='4.0'
564 < PACKAGE_STRING='OOPSE 4.0'
561 > PACKAGE_NAME='OpenMD'
562 > PACKAGE_TARNAME='openmd'
563 > PACKAGE_VERSION='2.0'
564 > PACKAGE_STRING='OpenMD 2.0'
565   PACKAGE_BUGREPORT='gezelter@nd.edu'
566   PACKAGE_URL=''
567  
568 < ac_unique_file="src/applications/oopse/oopse.cpp"
568 > ac_unique_file="src/applications/openmd/openmd.cpp"
569   ac_default_prefix="/usr/local"
570   # Factoring default headers for most tests.
571   ac_includes_default="\
# Line 594 | Line 605 | SUBDIRS
605  
606   ac_subst_vars='LTLIBOBJS
607   SUBDIRS
608 < OOPSE_HOME
609 < OOPSE
608 > OPENMD_HOME
609 > OPENMD
610   MKINSTALLDIRS
611   BATEXT
612   enable_latex_docs
# Line 604 | Line 615 | DOXYGEN
615   DOC
616   DOT
617   DOXYGEN
607 USE_CGAL
608 CGAL_LIBS
609 CGAL_LDFLAGS
610 CGAL_CPPFLAGS
611 CGAL_CXXFLAGS
612 CGAL_MAKEFILE
618   POW_LIB
619   LIBOBJS
620   USE_OPENBABEL
# Line 627 | Line 632 | ZLIB_INC_DIR
632   ZLIB
633   ZLIB_LIB_DIR
634   ZLIB_INC_DIR
630 F90_MODULE_NAMES
631 F90MODINCSPEC
632 MODDIRFLAG
633 F90_WORK_FILES_ARG
634 MOD
635 FC_FUNC_
636 FC_FUNC
637 FCLIBS
638 PREPDEFFLAG
639 FCFLAGS_SRCEXT
640 FCFLAGS_F90
641 PS
635   AR
636   INSTALL_DATA
637   INSTALL_SCRIPT
# Line 652 | Line 645 | USE_MPI
645   GREP
646   CPP
647   USE_MPI
655 MPIFC
656 ac_ct_FC
657 FCFLAGS
658 FC
648   MPICC
649 + MPILIBS
650 + MPICXX
651 + LIBDL
652   ac_ct_CC
653   CFLAGS
654   CC
663 MPILIBS
664 MPICXX
655   OBJEXT
656   EXEEXT
657   ac_ct_CXX
# Line 669 | Line 659 | CXX
659   LDFLAGS
660   CXXFLAGS
661   CXX
672 ac_fc_path
673 ac_fc_set
674 ac_cxx_path
675 ac_cxx_set
676 ac_cc_path
677 ac_cc_set
662   USE_SINGLE_PRECISION
663   debug
664   PROGNAME
# Line 727 | Line 711 | enable_option_checking
711   ac_subst_files=''
712   ac_user_opts='
713   enable_option_checking
714 < enable_oopse_home
714 > enable_openmd_home
715   enable_debug
716   enable_single
717   enable_float
# Line 736 | Line 720 | with_openbabel
720   with_fftw
721   with_qhull
722   with_openbabel
739 with_cgalmakefile
723   enable_doxygen
724   enable_dot
725   enable_html_docs
# Line 751 | Line 734 | CCC
734   LIBS
735   CPPFLAGS
736   CCC
754 MPICXX
737   CC
738   CFLAGS
739 + MPICXX
740   MPICC
758 FC
759 FCFLAGS
760 MPIFC
741   CPP
742   CXXCPP'
743  
# Line 822 | Line 802 | do
802    fi
803  
804    case $ac_option in
805 <  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 <  *)    ac_optarg=yes ;;
805 >  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 >  *=)   ac_optarg= ;;
807 >  *)    ac_optarg=yes ;;
808    esac
809  
810    # Accept the important Cygnus configure options, so we can diagnose typos.
# Line 868 | Line 849 | do
849      ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850      # Reject names that are not valid shell variable names.
851      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 <      as_fn_error "invalid feature name: $ac_useropt"
852 >      as_fn_error $? "invalid feature name: $ac_useropt"
853      ac_useropt_orig=$ac_useropt
854      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855      case $ac_user_opts in
# Line 894 | Line 875 | do
875      ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876      # Reject names that are not valid shell variable names.
877      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 <      as_fn_error "invalid feature name: $ac_useropt"
878 >      as_fn_error $? "invalid feature name: $ac_useropt"
879      ac_useropt_orig=$ac_useropt
880      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881      case $ac_user_opts in
# Line 1098 | Line 1079 | do
1079      ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1080      # Reject names that are not valid shell variable names.
1081      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 <      as_fn_error "invalid package name: $ac_useropt"
1082 >      as_fn_error $? "invalid package name: $ac_useropt"
1083      ac_useropt_orig=$ac_useropt
1084      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085      case $ac_user_opts in
# Line 1114 | Line 1095 | do
1095      ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096      # Reject names that are not valid shell variable names.
1097      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 <      as_fn_error "invalid package name: $ac_useropt"
1098 >      as_fn_error $? "invalid package name: $ac_useropt"
1099      ac_useropt_orig=$ac_useropt
1100      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101      case $ac_user_opts in
# Line 1144 | Line 1125 | do
1125    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126      x_libraries=$ac_optarg ;;
1127  
1128 <  -*) as_fn_error "unrecognized option: \`$ac_option'
1129 < Try \`$0 --help' for more information."
1128 >  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1129 > Try \`$0 --help' for more information"
1130      ;;
1131  
1132    *=*)
# Line 1153 | Line 1134 | Try \`$0 --help' for more information."
1134      # Reject names that are not valid shell variable names.
1135      case $ac_envvar in #(
1136        '' | [0-9]* | *[!_$as_cr_alnum]* )
1137 <      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1137 >      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1138      esac
1139      eval $ac_envvar=\$ac_optarg
1140      export $ac_envvar ;;
# Line 1163 | Line 1144 | Try \`$0 --help' for more information."
1144      $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146        $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147 <    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1147 >    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1148      ;;
1149  
1150    esac
# Line 1171 | Line 1152 | if test -n "$ac_prev"; then
1152  
1153   if test -n "$ac_prev"; then
1154    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155 <  as_fn_error "missing argument to $ac_option"
1155 >  as_fn_error $? "missing argument to $ac_option"
1156   fi
1157  
1158   if test -n "$ac_unrecognized_opts"; then
1159    case $enable_option_checking in
1160      no) ;;
1161 <    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1161 >    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1162      *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163    esac
1164   fi
# Line 1200 | Line 1181 | do
1181      [\\/$]* | ?:[\\/]* )  continue;;
1182      NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183    esac
1184 <  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1184 >  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1185   done
1186  
1187   # There might be people who depend on the old broken behavior: `$host'
# Line 1214 | Line 1195 | if test "x$host_alias" != x; then
1195   if test "x$host_alias" != x; then
1196    if test "x$build_alias" = x; then
1197      cross_compiling=maybe
1198 <    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1199 <    If a cross compiler is detected then cross compile mode will be used." >&2
1198 >    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1199 >    If a cross compiler is detected then cross compile mode will be used" >&2
1200    elif test "x$build_alias" != "x$host_alias"; then
1201      cross_compiling=yes
1202    fi
# Line 1230 | Line 1211 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1211   ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212   ac_ls_di=`ls -di .` &&
1213   ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214 <  as_fn_error "working directory cannot be determined"
1214 >  as_fn_error $? "working directory cannot be determined"
1215   test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216 <  as_fn_error "pwd does not report name of working directory"
1216 >  as_fn_error $? "pwd does not report name of working directory"
1217  
1218  
1219   # Find the source files, if location was not specified.
# Line 1271 | Line 1252 | if test ! -r "$srcdir/$ac_unique_file"; then
1252   fi
1253   if test ! -r "$srcdir/$ac_unique_file"; then
1254    test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255 <  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1255 >  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1256   fi
1257   ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258   ac_abs_confdir=`(
1259 <        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1259 >        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1260          pwd)`
1261   # When building in place, set srcdir=.
1262   if test "$ac_abs_confdir" = "$ac_pwd"; then
# Line 1301 | Line 1282 | if test "$ac_init_help" = "long"; then
1282    # Omit some internal or obsolete options to make the list less imposing.
1283    # This message is too long to be a string in the A/UX 3.1 sh.
1284    cat <<_ACEOF
1285 < \`configure' configures OOPSE 4.0 to adapt to many kinds of systems.
1285 > \`configure' configures OpenMD 2.0 to adapt to many kinds of systems.
1286  
1287   Usage: $0 [OPTION]... [VAR=VALUE]...
1288  
# Line 1315 | Line 1296 | Configuration:
1296        --help=short        display options specific to this package
1297        --help=recursive    display the short help of all the included packages
1298    -V, --version           display version information and exit
1299 <  -q, --quiet, --silent   do not print \`checking...' messages
1299 >  -q, --quiet, --silent   do not print \`checking ...' messages
1300        --cache-file=FILE   cache test results in FILE [disabled]
1301    -C, --config-cache      alias for \`--cache-file=config.cache'
1302    -n, --no-create         do not create output files
# Line 1349 | Line 1330 | Fine tuning of the installation directories:
1330    --infodir=DIR           info documentation [DATAROOTDIR/info]
1331    --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1332    --mandir=DIR            man documentation [DATAROOTDIR/man]
1333 <  --docdir=DIR            documentation root [DATAROOTDIR/doc/oopse]
1333 >  --docdir=DIR            documentation root [DATAROOTDIR/doc/openmd]
1334    --htmldir=DIR           html documentation [DOCDIR]
1335    --dvidir=DIR            dvi documentation [DOCDIR]
1336    --pdfdir=DIR            pdf documentation [DOCDIR]
# Line 1366 | Line 1347 | if test -n "$ac_init_help"; then
1347  
1348   if test -n "$ac_init_help"; then
1349    case $ac_init_help in
1350 <     short | recursive ) echo "Configuration of OOPSE 4.0:";;
1350 >     short | recursive ) echo "Configuration of OpenMD 2.0:";;
1351     esac
1352    cat <<\_ACEOF
1353  
# Line 1374 | Line 1355 | Optional Features:
1355    --disable-option-checking  ignore unrecognized --enable/--with options
1356    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1357    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1358 <  --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse
1359 <  --enable-debug          Compile OOPSE in debug mode
1360 <  --enable-single         compile OOPSE in single precision
1358 >  --enable-openmd-home=DIR      define OpenMD home dir PREFIX/openmd
1359 >  --enable-debug          Compile OpenMD in debug mode
1360 >  --enable-single         compile OpenMD in single precision
1361    --enable-float          synonym for --enable-single
1362    --enable-doxygen        enable documentation generation with doxygen (auto)
1363    --enable-dot            use 'dot' to generate graphs in doxygen (auto)
# Line 1397 | Line 1378 | Optional Packages:
1378    --with-openbabel=DIR    root directory path of openbabel-2.x installation
1379                            (defaults to /usr/local or /usr if not found in
1380                            /usr/local)
1400  --with-cgalmakefile=makefile
1401                          Use the following CGAL makefile
1381  
1382   Some influential environment variables:
1383    CXX         C++ compiler command
# Line 1406 | Line 1385 | Some influential environment variables:
1385    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1386                nonstandard directory <lib dir>
1387    LIBS        libraries to pass to the linker, e.g. -l<library>
1388 <  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1388 >  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1389                you have headers in a nonstandard directory <include dir>
1411  MPICXX      MPI C++ compiler command
1390    CC          C compiler command
1391    CFLAGS      C compiler flags
1392 +  MPICXX      MPI C++ compiler command
1393    MPICC       MPI C compiler command
1415  FC          Fortran compiler command
1416  FCFLAGS     Fortran compiler flags
1417  MPIFC       MPI Fortran compiler command
1394    CPP         C preprocessor
1395    CXXCPP      C++ preprocessor
1396  
# Line 1484 | Line 1460 | if $ac_init_version; then
1460   test -n "$ac_init_help" && exit $ac_status
1461   if $ac_init_version; then
1462    cat <<\_ACEOF
1463 < OOPSE configure 4.0
1464 < generated by GNU Autoconf 2.64
1463 > OpenMD configure 2.0
1464 > generated by GNU Autoconf 2.68
1465  
1466 < Copyright (C) 2009 Free Software Foundation, Inc.
1466 > Copyright (C) 2010 Free Software Foundation, Inc.
1467   This configure script is free software; the Free Software Foundation
1468   gives unlimited permission to copy, distribute and modify it.
1469   _ACEOF
# Line 1531 | Line 1507 | fi
1507  
1508          ac_retval=1
1509   fi
1510 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1511 <  return $ac_retval
1510 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1511 >  as_fn_set_status $ac_retval
1512  
1513   } # ac_fn_cxx_try_compile
1514  
1515 + # ac_fn_c_try_compile LINENO
1516 + # --------------------------
1517 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 + ac_fn_c_try_compile ()
1519 + {
1520 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 +  rm -f conftest.$ac_objext
1522 +  if { { ac_try="$ac_compile"
1523 + case "(($ac_try" in
1524 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 +  *) ac_try_echo=$ac_try;;
1526 + esac
1527 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 + $as_echo "$ac_try_echo"; } >&5
1529 +  (eval "$ac_compile") 2>conftest.err
1530 +  ac_status=$?
1531 +  if test -s conftest.err; then
1532 +    grep -v '^ *+' conftest.err >conftest.er1
1533 +    cat conftest.er1 >&5
1534 +    mv -f conftest.er1 conftest.err
1535 +  fi
1536 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 +  test $ac_status = 0; } && {
1538 +         test -z "$ac_c_werror_flag" ||
1539 +         test ! -s conftest.err
1540 +       } && test -s conftest.$ac_objext; then :
1541 +  ac_retval=0
1542 + else
1543 +  $as_echo "$as_me: failed program was:" >&5
1544 + sed 's/^/| /' conftest.$ac_ext >&5
1545 +
1546 +        ac_retval=1
1547 + fi
1548 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 +  as_fn_set_status $ac_retval
1550 +
1551 + } # ac_fn_c_try_compile
1552 +
1553   # ac_fn_cxx_try_link LINENO
1554   # -------------------------
1555   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1577 | Line 1591 | fi
1591    # interfere with the next link command; also delete a directory that is
1592    # left behind by Apple's compiler.  We do this before executing the actions.
1593    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1594 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1595 <  return $ac_retval
1594 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 >  as_fn_set_status $ac_retval
1596  
1597   } # ac_fn_cxx_try_link
1598  
# Line 1590 | Line 1604 | $as_echo_n "checking for $2... " >&6; }
1604    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606   $as_echo_n "checking for $2... " >&6; }
1607 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1607 > if eval \${$3+:} false; then :
1608    $as_echo_n "(cached) " >&6
1609   else
1610    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1645 | Line 1659 | $as_echo "$ac_res" >&6; }
1659   eval ac_res=\$$3
1660                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661   $as_echo "$ac_res" >&6; }
1662 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1662 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663  
1664   } # ac_fn_cxx_check_func
1665  
1652 # ac_fn_c_try_compile LINENO
1653 # --------------------------
1654 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_compile ()
1656 {
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  rm -f conftest.$ac_objext
1659  if { { ac_try="$ac_compile"
1660 case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666  (eval "$ac_compile") 2>conftest.err
1667  ac_status=$?
1668  if test -s conftest.err; then
1669    grep -v '^ *+' conftest.err >conftest.er1
1670    cat conftest.er1 >&5
1671    mv -f conftest.er1 conftest.err
1672  fi
1673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674  test $ac_status = 0; } && {
1675         test -z "$ac_c_werror_flag" ||
1676         test ! -s conftest.err
1677       } && test -s conftest.$ac_objext; then :
1678  ac_retval=0
1679 else
1680  $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683        ac_retval=1
1684 fi
1685  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686  return $ac_retval
1687
1688 } # ac_fn_c_try_compile
1689
1666   # ac_fn_c_try_link LINENO
1667   # -----------------------
1668   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1728 | Line 1704 | fi
1704    # interfere with the next link command; also delete a directory that is
1705    # left behind by Apple's compiler.  We do this before executing the actions.
1706    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708 <  return $ac_retval
1707 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 >  as_fn_set_status $ac_retval
1709  
1710   } # ac_fn_c_try_link
1711  
# Line 1741 | Line 1717 | $as_echo_n "checking for $2... " >&6; }
1717    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719   $as_echo_n "checking for $2... " >&6; }
1720 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720 > if eval \${$3+:} false; then :
1721    $as_echo_n "(cached) " >&6
1722   else
1723    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1796 | Line 1772 | $as_echo "$ac_res" >&6; }
1772   eval ac_res=\$$3
1773                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774   $as_echo "$ac_res" >&6; }
1775 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776  
1777   } # ac_fn_c_check_func
1802
1803 # ac_fn_fc_try_compile LINENO
1804 # ---------------------------
1805 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_fc_try_compile ()
1807 {
1808  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809  rm -f conftest.$ac_objext
1810  if { { ac_try="$ac_compile"
1811 case "(($ac_try" in
1812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813  *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817  (eval "$ac_compile") 2>conftest.err
1818  ac_status=$?
1819  if test -s conftest.err; then
1820    grep -v '^ *+' conftest.err >conftest.er1
1821    cat conftest.er1 >&5
1822    mv -f conftest.er1 conftest.err
1823  fi
1824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825  test $ac_status = 0; } && {
1826         test -z "$ac_fc_werror_flag" ||
1827         test ! -s conftest.err
1828       } && test -s conftest.$ac_objext; then :
1829  ac_retval=0
1830 else
1831  $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834        ac_retval=1
1835 fi
1836  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837  return $ac_retval
1838
1839 } # ac_fn_fc_try_compile
1840
1841 # ac_fn_fc_try_link LINENO
1842 # ------------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_fc_try_link ()
1845 {
1846  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847  rm -f conftest.$ac_objext conftest$ac_exeext
1848  if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851  *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855  (eval "$ac_link") 2>conftest.err
1856  ac_status=$?
1857  if test -s conftest.err; then
1858    grep -v '^ *+' conftest.err >conftest.er1
1859    cat conftest.er1 >&5
1860    mv -f conftest.er1 conftest.err
1861  fi
1862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863  test $ac_status = 0; } && {
1864         test -z "$ac_fc_werror_flag" ||
1865         test ! -s conftest.err
1866       } && test -s conftest$ac_exeext && {
1867         test "$cross_compiling" = yes ||
1868         $as_test_x conftest$ac_exeext
1869       }; then :
1870  ac_retval=0
1871 else
1872  $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1874
1875        ac_retval=1
1876 fi
1877  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1878  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1879  # interfere with the next link command; also delete a directory that is
1880  # left behind by Apple's compiler.  We do this before executing the actions.
1881  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883  return $ac_retval
1778  
1885 } # ac_fn_fc_try_link
1886
1779   # ac_fn_c_try_cpp LINENO
1780   # ----------------------
1781   # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
# Line 1905 | Line 1797 | $as_echo "$ac_try_echo"; } >&5
1797      mv -f conftest.er1 conftest.err
1798    fi
1799    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 <  test $ac_status = 0; } >/dev/null && {
1800 >  test $ac_status = 0; } > conftest.i && {
1801           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1802           test ! -s conftest.err
1803         }; then :
# Line 1916 | Line 1808 | fi
1808  
1809      ac_retval=1
1810   fi
1811 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 <  return $ac_retval
1811 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 >  as_fn_set_status $ac_retval
1813  
1814   } # ac_fn_c_try_cpp
1815  
# Line 1929 | Line 1821 | ac_fn_c_check_header_mongrel ()
1821   ac_fn_c_check_header_mongrel ()
1822   {
1823    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824 >  if eval \${$3+:} false; then :
1825    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826   $as_echo_n "checking for $2... " >&6; }
1827 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1827 > if eval \${$3+:} false; then :
1828    $as_echo_n "(cached) " >&6
1829   fi
1830   eval ac_res=\$$3
# Line 1968 | Line 1860 | fi
1860   else
1861    ac_header_preproc=no
1862   fi
1863 < rm -f conftest.err conftest.$ac_ext
1863 > rm -f conftest.err conftest.i conftest.$ac_ext
1864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1865   $as_echo "$ac_header_preproc" >&6; }
1866  
# Line 1991 | Line 1883 | $as_echo "$as_me: WARNING: $2: proceeding with the com
1883   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1884      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1886 < ( cat <<\_ASBOX
1995 < ## ------------------------------ ##
1886 > ( $as_echo "## ------------------------------ ##
1887   ## Report this to gezelter@nd.edu ##
1888 < ## ------------------------------ ##
1998 < _ASBOX
1888 > ## ------------------------------ ##"
1889       ) | sed "s/^/$as_me: WARNING:     /" >&2
1890      ;;
1891   esac
1892    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893   $as_echo_n "checking for $2... " >&6; }
1894 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 > if eval \${$3+:} false; then :
1895    $as_echo_n "(cached) " >&6
1896   else
1897    eval "$3=\$ac_header_compiler"
# Line 2010 | Line 1900 | fi
1900                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901   $as_echo "$ac_res" >&6; }
1902   fi
1903 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904  
1905   } # ac_fn_c_check_header_mongrel
1906  
# Line 2051 | Line 1941 | fi
1941         ac_retval=$ac_status
1942   fi
1943    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1944 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945 <  return $ac_retval
1944 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 >  as_fn_set_status $ac_retval
1946  
1947   } # ac_fn_c_try_run
1948  
# Line 2065 | Line 1955 | $as_echo_n "checking for $2... " >&6; }
1955    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957   $as_echo_n "checking for $2... " >&6; }
1958 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1958 > if eval \${$3+:} false; then :
1959    $as_echo_n "(cached) " >&6
1960   else
1961    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 2083 | Line 1973 | $as_echo "$ac_res" >&6; }
1973   eval ac_res=\$$3
1974                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975   $as_echo "$ac_res" >&6; }
1976 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977  
1978   } # ac_fn_c_check_header_compile
1979  
# Line 2108 | Line 1998 | $as_echo "$ac_try_echo"; } >&5
1998      mv -f conftest.er1 conftest.err
1999    fi
2000    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 <  test $ac_status = 0; } >/dev/null && {
2001 >  test $ac_status = 0; } > conftest.i && {
2002           test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2003           test ! -s conftest.err
2004         }; then :
# Line 2119 | Line 2009 | fi
2009  
2010      ac_retval=1
2011   fi
2012 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 <  return $ac_retval
2012 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 >  as_fn_set_status $ac_retval
2014  
2015   } # ac_fn_cxx_try_cpp
2016  
# Line 2132 | Line 2022 | ac_fn_cxx_check_header_mongrel ()
2022   ac_fn_cxx_check_header_mongrel ()
2023   {
2024    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 >  if eval \${$3+:} false; then :
2026    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027   $as_echo_n "checking for $2... " >&6; }
2028 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 > if eval \${$3+:} false; then :
2029    $as_echo_n "(cached) " >&6
2030   fi
2031   eval ac_res=\$$3
# Line 2171 | Line 2061 | fi
2061   else
2062    ac_header_preproc=no
2063   fi
2064 < rm -f conftest.err conftest.$ac_ext
2064 > rm -f conftest.err conftest.i conftest.$ac_ext
2065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2066   $as_echo "$ac_header_preproc" >&6; }
2067  
# Line 2194 | Line 2084 | $as_echo "$as_me: WARNING: $2: proceeding with the com
2084   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2085      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2086   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2087 < ( cat <<\_ASBOX
2198 < ## ------------------------------ ##
2087 > ( $as_echo "## ------------------------------ ##
2088   ## Report this to gezelter@nd.edu ##
2089 < ## ------------------------------ ##
2201 < _ASBOX
2089 > ## ------------------------------ ##"
2090       ) | sed "s/^/$as_me: WARNING:     /" >&2
2091      ;;
2092   esac
2093    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094   $as_echo_n "checking for $2... " >&6; }
2095 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2095 > if eval \${$3+:} false; then :
2096    $as_echo_n "(cached) " >&6
2097   else
2098    eval "$3=\$ac_header_compiler"
# Line 2213 | Line 2101 | fi
2101                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102   $as_echo "$ac_res" >&6; }
2103   fi
2104 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105  
2106   } # ac_fn_cxx_check_header_mongrel
2107  
# Line 2226 | Line 2114 | $as_echo_n "checking for $2... " >&6; }
2114    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116   $as_echo_n "checking for $2... " >&6; }
2117 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2117 > if eval \${$3+:} false; then :
2118    $as_echo_n "(cached) " >&6
2119   else
2120    eval "$3=no"
2121    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122   /* end confdefs.h.  */
2123   $4
2236 #ifdef FC_DUMMY_MAIN
2237 #ifndef FC_DUMMY_MAIN_EQ_F77
2238 #  ifdef __cplusplus
2239     extern "C"
2240 #  endif
2241   int FC_DUMMY_MAIN() { return 1; }
2242 #endif
2243 #endif
2124   int
2125   main ()
2126   {
# Line 2254 | Line 2134 | $4
2134    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135   /* end confdefs.h.  */
2136   $4
2257 #ifdef FC_DUMMY_MAIN
2258 #ifndef FC_DUMMY_MAIN_EQ_F77
2259 #  ifdef __cplusplus
2260     extern "C"
2261 #  endif
2262   int FC_DUMMY_MAIN() { return 1; }
2263 #endif
2264 #endif
2137   int
2138   main ()
2139   {
# Line 2283 | Line 2155 | $as_echo "$ac_res" >&6; }
2155   eval ac_res=\$$3
2156                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157   $as_echo "$ac_res" >&6; }
2158 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2158 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159  
2160   } # ac_fn_c_check_type
2161   cat >config.log <<_ACEOF
2162   This file contains any messages produced by compilers while
2163   running configure, to aid debugging if configure makes a mistake.
2164  
2165 < It was created by OOPSE $as_me 4.0, which was
2166 < generated by GNU Autoconf 2.64.  Invocation command line was
2165 > It was created by OpenMD $as_me 2.0, which was
2166 > generated by GNU Autoconf 2.68.  Invocation command line was
2167  
2168    $ $0 $@
2169  
# Line 2401 | Line 2273 | trap 'exit_status=$?
2273    {
2274      echo
2275  
2276 <    cat <<\_ASBOX
2405 < ## ---------------- ##
2276 >    $as_echo "## ---------------- ##
2277   ## Cache variables. ##
2278 < ## ---------------- ##
2408 < _ASBOX
2278 > ## ---------------- ##"
2279      echo
2280      # The following way of writing the cache mishandles newlines in values,
2281   (
# Line 2439 | Line 2309 | $as_echo "$as_me: WARNING: cache variable $ac_var cont
2309   )
2310      echo
2311  
2312 <    cat <<\_ASBOX
2443 < ## ----------------- ##
2312 >    $as_echo "## ----------------- ##
2313   ## Output variables. ##
2314 < ## ----------------- ##
2446 < _ASBOX
2314 > ## ----------------- ##"
2315      echo
2316      for ac_var in $ac_subst_vars
2317      do
# Line 2456 | Line 2324 | _ASBOX
2324      echo
2325  
2326      if test -n "$ac_subst_files"; then
2327 <      cat <<\_ASBOX
2460 < ## ------------------- ##
2327 >      $as_echo "## ------------------- ##
2328   ## File substitutions. ##
2329 < ## ------------------- ##
2463 < _ASBOX
2329 > ## ------------------- ##"
2330        echo
2331        for ac_var in $ac_subst_files
2332        do
# Line 2474 | Line 2340 | _ASBOX
2340      fi
2341  
2342      if test -s confdefs.h; then
2343 <      cat <<\_ASBOX
2478 < ## ----------- ##
2343 >      $as_echo "## ----------- ##
2344   ## confdefs.h. ##
2345 < ## ----------- ##
2481 < _ASBOX
2345 > ## ----------- ##"
2346        echo
2347        cat confdefs.h
2348        echo
# Line 2533 | Line 2397 | if test -n "$CONFIG_SITE"; then
2397   ac_site_file1=NONE
2398   ac_site_file2=NONE
2399   if test -n "$CONFIG_SITE"; then
2400 <  ac_site_file1=$CONFIG_SITE
2400 >  # We do not want a PATH search for config.site.
2401 >  case $CONFIG_SITE in #((
2402 >    -*)  ac_site_file1=./$CONFIG_SITE;;
2403 >    */*) ac_site_file1=$CONFIG_SITE;;
2404 >    *)   ac_site_file1=./$CONFIG_SITE;;
2405 >  esac
2406   elif test "x$prefix" != xNONE; then
2407    ac_site_file1=$prefix/share/config.site
2408    ac_site_file2=$prefix/etc/config.site
# Line 2544 | Line 2413 | do
2413   for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2414   do
2415    test "x$ac_site_file" = xNONE && continue
2416 <  if test -r "$ac_site_file"; then
2416 >  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2417      { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2418   $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2419      sed 's/^/| /' "$ac_site_file" >&5
2420 <    . "$ac_site_file"
2420 >    . "$ac_site_file" \
2421 >      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2422 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2423 > as_fn_error $? "failed to load site script $ac_site_file
2424 > See \`config.log' for more details" "$LINENO" 5; }
2425    fi
2426   done
2427  
2428   if test -r "$cache_file"; then
2429 <  # Some versions of bash will fail to source /dev/null (special
2430 <  # files actually), so we avoid doing that.
2431 <  if test -f "$cache_file"; then
2429 >  # Some versions of bash will fail to source /dev/null (special files
2430 >  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2431 >  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2432      { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2433   $as_echo "$as_me: loading cache $cache_file" >&6;}
2434      case $cache_file in
# Line 2624 | Line 2497 | $as_echo "$as_me: error: changes in the environment ca
2497   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2498    { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2499   $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2500 <  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2500 >  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2501   fi
2502   ## -------------------- ##
2503   ## Main body of script. ##
# Line 2639 | Line 2512 | for ac_dir in ac-tools "$srcdir"/ac-tools; do
2512  
2513   ac_aux_dir=
2514   for ac_dir in ac-tools "$srcdir"/ac-tools; do
2515 <  for ac_t in install-sh install.sh shtool; do
2516 <    if test -f "$ac_dir/$ac_t"; then
2517 <      ac_aux_dir=$ac_dir
2518 <      ac_install_sh="$ac_aux_dir/$ac_t -c"
2519 <      break 2
2520 <    fi
2521 <  done
2515 >  if test -f "$ac_dir/install-sh"; then
2516 >    ac_aux_dir=$ac_dir
2517 >    ac_install_sh="$ac_aux_dir/install-sh -c"
2518 >    break
2519 >  elif test -f "$ac_dir/install.sh"; then
2520 >    ac_aux_dir=$ac_dir
2521 >    ac_install_sh="$ac_aux_dir/install.sh -c"
2522 >    break
2523 >  elif test -f "$ac_dir/shtool"; then
2524 >    ac_aux_dir=$ac_dir
2525 >    ac_install_sh="$ac_aux_dir/shtool install -c"
2526 >    break
2527 >  fi
2528   done
2529   if test -z "$ac_aux_dir"; then
2530 <  as_fn_error "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2530 >  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2531   fi
2532  
2533   # These three variables are undocumented and unsupported,
# Line 2662 | Line 2541 | ac_config_headers="$ac_config_headers src/config.h"
2541  
2542  
2543   ac_config_headers="$ac_config_headers src/config.h"
2665
2666
2667
2668
2544  
2545  
2546  
# Line 2692 | Line 2567 | ac_config_headers="$ac_config_headers src/config.h"
2567  
2568  
2569  
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2570   #
2571   #
2572   #
# Line 2719 | Line 2580 | ac_config_headers="$ac_config_headers src/config.h"
2580  
2581  
2582  
2722 # AC_F90_MODULE_NAMES
2723 # -------------------
2724 #
2725 # Figure out how the Fortran 90 compiler constructs module file names
2726 #
2727 # AC_F90_MODULE_NAMES
2583  
2584  
2585  
# Line 2902 | Line 2757 | ac_config_headers="$ac_config_headers src/config.h"
2757  
2758  
2759  
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926 # This is taken from http://autoqt.sourceforge.net/
2927 # Copyright (c) 2002, Geoffrey Wossum
2928 # All rights reserved.
2929
2930 # Redistribution and use in source and binary forms, with or without
2931 # modification, are permitted provided that the following conditions are
2932 # met:
2933
2934 #  - Redistributions of source code must retain the above copyright notice,
2935 #    this list of conditions and the following disclaimer.
2936
2937 #  - Redistributions in binary form must reproduce the above copyright
2938 #    notice, this list of conditions and the following disclaimer in the
2939 #    documentation and/or other materials provided with the distribution.
2940
2941 #  - Neither the name of Geoffrey Wossum nor the names of its
2942 #    contributors may be used to endorse or promote products derived from
2943 #    this software without specific prior written permission.
2944
2945
2946 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2947 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2948 # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2949 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
2950 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
2951 # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
2952 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
2953 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
2954 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
2955 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
2956 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2957
2958
2959 # Check for Qt compiler flags, linker flags, and binary packages
2960
2961
2962
2760   # who am i
2761   # Make sure we can run config.sub.
2762   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2763 <  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2763 >  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2764  
2765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2766   $as_echo_n "checking build system type... " >&6; }
2767 < if test "${ac_cv_build+set}" = set; then :
2767 > if ${ac_cv_build+:} false; then :
2768    $as_echo_n "(cached) " >&6
2769   else
2770    ac_build_alias=$build_alias
2771   test "x$ac_build_alias" = x &&
2772    ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2773   test "x$ac_build_alias" = x &&
2774 <  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2774 >  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2775   ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2776 <  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2776 >  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2777  
2778   fi
2779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2780   $as_echo "$ac_cv_build" >&6; }
2781   case $ac_cv_build in
2782   *-*-*) ;;
2783 < *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2783 > *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2784   esac
2785   build=$ac_cv_build
2786   ac_save_IFS=$IFS; IFS='-'
# Line 3001 | Line 2798 | $as_echo_n "checking host system type... " >&6; }
2798  
2799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2800   $as_echo_n "checking host system type... " >&6; }
2801 < if test "${ac_cv_host+set}" = set; then :
2801 > if ${ac_cv_host+:} false; then :
2802    $as_echo_n "(cached) " >&6
2803   else
2804    if test "x$host_alias" = x; then
2805    ac_cv_host=$ac_cv_build
2806   else
2807    ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2808 <    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2808 >    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2809   fi
2810  
2811   fi
# Line 3016 | Line 2813 | case $ac_cv_host in
2813   $as_echo "$ac_cv_host" >&6; }
2814   case $ac_cv_host in
2815   *-*-*) ;;
2816 < *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2816 > *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2817   esac
2818   host=$ac_cv_host
2819   ac_save_IFS=$IFS; IFS='-'
# Line 3036 | Line 2833 | case $host_os in *\ *) host_os=`echo "$host_os" | sed
2833  
2834  
2835   # set program name
2836 < PROGNAME="oopse"
2836 > PROGNAME="openmd"
2837  
2838  
2839  
2840  
2841   OBJEXT=".$OBJEXT"
2842  
2843 < OOPSE=oopse
2843 > OPENMD=openmd
2844  
2845   if test "x${prefix}" = "xNONE"
2846   then
2847 <  OOPSE_HOME=${ac_default_prefix}/oopse
2847 >  OPENMD_HOME=${ac_default_prefix}/openmd
2848   else
2849 <  OOPSE_HOME=${prefix}/oopse
2849 >  OPENMD_HOME=${prefix}/openmd
2850   fi
2851 < # Check whether --enable-oopse-home was given.
2852 < if test "${enable_oopse_home+set}" = set; then :
2853 <  enableval=$enable_oopse_home; OOPSE_HOME="${enableval}"
2851 > # Check whether --enable-openmd-home was given.
2852 > if test "${enable_openmd_home+set}" = set; then :
2853 >  enableval=$enable_openmd_home; OPENMD_HOME="${enableval}"
2854   fi
2855  
2856  
# Line 3091 | Line 2888 | $as_echo "#define SINGLE_PRECISION 1" >>confdefs.h
2888   $as_echo "#define SINGLE_PRECISION 1" >>confdefs.h
2889  
2890          USE_SINGLE_PRECISION=yes
3094
3095 fi
3096
3097 if test x"$CC" != x; then
3098   for ac_prog in $CC
3099 do
3100  # Extract the first word of "$ac_prog", so it can be a program name with args.
3101 set dummy $ac_prog; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if test "${ac_cv_prog_ac_cc_set+set}" = set; then :
3105  $as_echo_n "(cached) " >&6
3106 else
3107  if test -n "$ac_cc_set"; then
3108  ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113  IFS=$as_save_IFS
3114  test -z "$as_dir" && as_dir=.
3115    for ac_exec_ext in '' $ac_executable_extensions; do
3116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117    ac_cv_prog_ac_cc_set="$ac_prog"
3118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119    break 2
3120  fi
3121 done
3122  done
3123 IFS=$as_save_IFS
3124
3125 fi
3126 fi
3127 ac_cc_set=$ac_cv_prog_ac_cc_set
3128 if test -n "$ac_cc_set"; then
3129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_set" >&5
3130 $as_echo "$ac_cc_set" >&6; }
3131 else
3132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3134 fi
3135
3136
3137  test -n "$ac_cc_set" && break
3138 done
3139 test -n "$ac_cc_set" || ac_cc_set="no"
3140
3141   if test $ac_cc_set != no; then :
3142
3143     # Extract the first word of "$ac_cc_set", so it can be a program name with args.
3144 set dummy $ac_cc_set; ac_word=$2
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if test "${ac_cv_path_ac_cc_path+set}" = set; then :
3148  $as_echo_n "(cached) " >&6
3149 else
3150  case $ac_cc_path in
3151  [\\/]* | ?:[\\/]*)
3152  ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path.
3153  ;;
3154  *)
3155  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3157 do
3158  IFS=$as_save_IFS
3159  test -z "$as_dir" && as_dir=.
3160    for ac_exec_ext in '' $ac_executable_extensions; do
3161  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162    ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext"
3163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164    break 2
3165  fi
3166 done
3167  done
3168 IFS=$as_save_IFS
3169
3170  test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no"
3171  ;;
3172 esac
3173 fi
3174 ac_cc_path=$ac_cv_path_ac_cc_path
3175 if test -n "$ac_cc_path"; then
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_path" >&5
3177 $as_echo "$ac_cc_path" >&6; }
3178 else
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182
3183
3184 else
3185
3186     as_fn_error "Specified C compiler $CC doesn't seem to exist!" "$LINENO" 5
3187 fi
3188
3189   if test $ac_cc_path != no; then :
3190
3191     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CC as C compiler" >&5
3192 $as_echo "$as_me: Will attempt to use $CC as C compiler" >&6;}
3193     MPICC=$CC
3194
3195 else
3196
3197     as_fn_error "Can't find path to user-specified C compiler $CC" "$LINENO" 5
3198 fi
3199 fi
3200
3201 if test x"$CXX" != x; then
3202   for ac_prog in $CXX
3203 do
3204  # Extract the first word of "$ac_prog", so it can be a program name with args.
3205 set dummy $ac_prog; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if test "${ac_cv_prog_ac_cxx_set+set}" = set; then :
3209  $as_echo_n "(cached) " >&6
3210 else
3211  if test -n "$ac_cxx_set"; then
3212  ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test.
3213 else
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH
3216 do
3217  IFS=$as_save_IFS
3218  test -z "$as_dir" && as_dir=.
3219    for ac_exec_ext in '' $ac_executable_extensions; do
3220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3221    ac_cv_prog_ac_cxx_set="$ac_prog"
3222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223    break 2
3224  fi
3225 done
3226  done
3227 IFS=$as_save_IFS
3228
3229 fi
3230 fi
3231 ac_cxx_set=$ac_cv_prog_ac_cxx_set
3232 if test -n "$ac_cxx_set"; then
3233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_set" >&5
3234 $as_echo "$ac_cxx_set" >&6; }
3235 else
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 fi
3239
3240
3241  test -n "$ac_cxx_set" && break
3242 done
3243 test -n "$ac_cxx_set" || ac_cxx_set="no"
3244
3245   if test $ac_cxx_set != no; then :
3246
3247     # Extract the first word of "$ac_cxx_set", so it can be a program name with args.
3248 set dummy $ac_cxx_set; ac_word=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if test "${ac_cv_path_ac_cxx_path+set}" = set; then :
3252  $as_echo_n "(cached) " >&6
3253 else
3254  case $ac_cxx_path in
3255  [\\/]* | ?:[\\/]*)
3256  ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path.
3257  ;;
3258  *)
3259  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262  IFS=$as_save_IFS
3263  test -z "$as_dir" && as_dir=.
3264    for ac_exec_ext in '' $ac_executable_extensions; do
3265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266    ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext"
3267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268    break 2
3269  fi
3270 done
3271  done
3272 IFS=$as_save_IFS
3273
3274  test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no"
3275  ;;
3276 esac
3277 fi
3278 ac_cxx_path=$ac_cv_path_ac_cxx_path
3279 if test -n "$ac_cxx_path"; then
3280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_path" >&5
3281 $as_echo "$ac_cxx_path" >&6; }
3282 else
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 fi
3286
3287
3288 else
3289
3290     as_fn_error "Specified C++ compiler $CXX doesn't seem to exist!" "$LINENO" 5
3291 fi
3292
3293   if test $ac_cxx_path != no; then :
3294
3295     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CXX as C++ compiler" >&5
3296 $as_echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;}
3297     MPICXX=$CXX
3298
3299 else
3300
3301     as_fn_error "Can't find path to user-specified C++ compiler $CXX" "$LINENO" 5
3302 fi
3303 fi
3304
3305 if test x"$FC" != x; then
3306   for ac_prog in $FC
3307 do
3308  # Extract the first word of "$ac_prog", so it can be a program name with args.
3309 set dummy $ac_prog; ac_word=$2
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 $as_echo_n "checking for $ac_word... " >&6; }
3312 if test "${ac_cv_prog_ac_fc_set+set}" = set; then :
3313  $as_echo_n "(cached) " >&6
3314 else
3315  if test -n "$ac_fc_set"; then
3316  ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321  IFS=$as_save_IFS
3322  test -z "$as_dir" && as_dir=.
3323    for ac_exec_ext in '' $ac_executable_extensions; do
3324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3325    ac_cv_prog_ac_fc_set="$ac_prog"
3326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327    break 2
3328  fi
3329 done
3330  done
3331 IFS=$as_save_IFS
3332
3333 fi
3334 fi
3335 ac_fc_set=$ac_cv_prog_ac_fc_set
3336 if test -n "$ac_fc_set"; then
3337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_set" >&5
3338 $as_echo "$ac_fc_set" >&6; }
3339 else
3340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 fi
3343
3344
3345  test -n "$ac_fc_set" && break
3346 done
3347 test -n "$ac_fc_set" || ac_fc_set="no"
3348
3349   if test $ac_fc_set != no; then :
3350
3351     # Extract the first word of "$ac_fc_set", so it can be a program name with args.
3352 set dummy $ac_fc_set; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if test "${ac_cv_path_ac_fc_path+set}" = set; then :
3356  $as_echo_n "(cached) " >&6
3357 else
3358  case $ac_fc_path in
3359  [\\/]* | ?:[\\/]*)
3360  ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path.
3361  ;;
3362  *)
3363  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366  IFS=$as_save_IFS
3367  test -z "$as_dir" && as_dir=.
3368    for ac_exec_ext in '' $ac_executable_extensions; do
3369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370    ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext"
3371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372    break 2
3373  fi
3374 done
3375  done
3376 IFS=$as_save_IFS
3377
3378  test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no"
3379  ;;
3380 esac
3381 fi
3382 ac_fc_path=$ac_cv_path_ac_fc_path
3383 if test -n "$ac_fc_path"; then
3384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_path" >&5
3385 $as_echo "$ac_fc_path" >&6; }
3386 else
3387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 fi
3390
3391
3392 else
3393
3394     as_fn_error "Specified Fortran compiler $FC doesn't seem to exist!" "$LINENO" 5
3395 fi
3396
3397   if test $ac_fc_path != no; then :
3398
3399     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $FC as Fortran compiler" >&5
3400 $as_echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;}
3401     MPIFC=$FC
3402
3403 else
2891  
3405     as_fn_error "Can't find path to user-specified Fortran compiler $FC" "$LINENO" 5
2892   fi
3407 fi
2893  
3409
2894   ac_ext=cpp
2895   ac_cpp='$CXXCPP $CPPFLAGS'
2896   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3415
3416 ac_ext=cpp
3417 ac_cpp='$CXXCPP $CPPFLAGS'
3418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2899   if test -z "$CXX"; then
2900    if test -n "$CCC"; then
2901      CXX=$CCC
2902    else
2903      if test -n "$ac_tool_prefix"; then
2904 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2904 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
2905    do
2906      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2907   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909   $as_echo_n "checking for $ac_word... " >&6; }
2910 < if test "${ac_cv_prog_CXX+set}" = set; then :
2910 > if ${ac_cv_prog_CXX+:} false; then :
2911    $as_echo_n "(cached) " >&6
2912   else
2913    if test -n "$CXX"; then
# Line 3467 | Line 2945 | if test -z "$CXX"; then
2945   fi
2946   if test -z "$CXX"; then
2947    ac_ct_CXX=$CXX
2948 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2948 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
2949   do
2950    # Extract the first word of "$ac_prog", so it can be a program name with args.
2951   set dummy $ac_prog; ac_word=$2
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953   $as_echo_n "checking for $ac_word... " >&6; }
2954 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2954 > if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2955    $as_echo_n "(cached) " >&6
2956   else
2957    if test -n "$ac_ct_CXX"; then
# Line 3543 | Line 3021 | $as_echo "$ac_try_echo"; } >&5
3021   ... rest of stderr output deleted ...
3022           10q' conftest.err >conftest.er1
3023      cat conftest.er1 >&5
3546    rm -f conftest.er1 conftest.err
3024    fi
3025 +  rm -f conftest.er1 conftest.err
3026    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027    test $ac_status = 0; }
3028   done
3029  
3030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031   /* end confdefs.h.  */
3032 < #include <stdio.h>
3032 >
3033   int
3034   main ()
3035   {
3558 FILE *f = fopen ("conftest.out", "w");
3559 return ferror (f) || fclose (f) != 0;
3036  
3037    ;
3038    return 0;
3039   }
3040   _ACEOF
3041   ac_clean_files_save=$ac_clean_files
3042 < ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3042 > ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3043   # Try to create an executable without -o first, disregard a.out.
3044   # It will help us diagnose broken compilers, and finding out an intuition
3045   # of exeext.
3046 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3047 < $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3046 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3047 > $as_echo_n "checking whether the C++ compiler works... " >&6; }
3048   ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3049  
3050   # The possible output files:
# Line 3630 | Line 3106 | fi
3106   else
3107    ac_file=''
3108   fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3634 $as_echo "$ac_file" >&6; }
3109   if test -z "$ac_file"; then :
3110 <  $as_echo "$as_me: failed program was:" >&5
3110 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 > $as_echo "no" >&6; }
3112 > $as_echo "$as_me: failed program was:" >&5
3113   sed 's/^/| /' conftest.$ac_ext >&5
3114  
3115   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3116   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3117 < { as_fn_set_status 77
3118 < as_fn_error "C++ compiler cannot create executables
3119 < See \`config.log' for more details." "$LINENO" 5; }; }
3117 > as_fn_error 77 "C++ compiler cannot create executables
3118 > See \`config.log' for more details" "$LINENO" 5; }
3119 > else
3120 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3121 > $as_echo "yes" >&6; }
3122   fi
3123 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3124 + $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3125 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3126 + $as_echo "$ac_file" >&6; }
3127   ac_exeext=$ac_cv_exeext
3128  
3129 < # Check that the compiler produces executables we can run.  If not, either
3648 < # the compiler is broken, or we cross compile.
3649 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3650 < $as_echo_n "checking whether the C++ compiler works... " >&6; }
3651 < # If not cross compiling, check that we can run a simple program.
3652 < if test "$cross_compiling" != yes; then
3653 <  if { ac_try='./$ac_file'
3654 <  { { case "(($ac_try" in
3655 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 <  *) ac_try_echo=$ac_try;;
3657 < esac
3658 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 < $as_echo "$ac_try_echo"; } >&5
3660 <  (eval "$ac_try") 2>&5
3661 <  ac_status=$?
3662 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 <  test $ac_status = 0; }; }; then
3664 <    cross_compiling=no
3665 <  else
3666 <    if test "$cross_compiling" = maybe; then
3667 <        cross_compiling=yes
3668 <    else
3669 <        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 < as_fn_error "cannot run C++ compiled programs.
3672 < If you meant to cross compile, use \`--host'.
3673 < See \`config.log' for more details." "$LINENO" 5; }
3674 <    fi
3675 <  fi
3676 < fi
3677 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3678 < $as_echo "yes" >&6; }
3679 <
3680 < rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3129 > rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3130   ac_clean_files=$ac_clean_files_save
3682 # Check that the compiler produces executables we can run.  If not, either
3683 # the compiler is broken, or we cross compile.
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3685 $as_echo_n "checking whether we are cross compiling... " >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3687 $as_echo "$cross_compiling" >&6; }
3688
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3132   $as_echo_n "checking for suffix of executables... " >&6; }
3133   if { { ac_try="$ac_link"
# Line 3715 | Line 3157 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157   else
3158    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 < as_fn_error "cannot compute suffix of executables: cannot compile and link
3161 < See \`config.log' for more details." "$LINENO" 5; }
3160 > as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3161 > See \`config.log' for more details" "$LINENO" 5; }
3162   fi
3163 < rm -f conftest$ac_cv_exeext
3163 > rm -f conftest conftest$ac_cv_exeext
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3165   $as_echo "$ac_cv_exeext" >&6; }
3166  
3167   rm -f conftest.$ac_ext
3168   EXEEXT=$ac_cv_exeext
3169   ac_exeext=$EXEEXT
3170 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3729 < $as_echo_n "checking for suffix of object files... " >&6; }
3730 < if test "${ac_cv_objext+set}" = set; then :
3731 <  $as_echo_n "(cached) " >&6
3732 < else
3733 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171   /* end confdefs.h.  */
3172 <
3172 > #include <stdio.h>
3173   int
3174   main ()
3175   {
3176 + FILE *f = fopen ("conftest.out", "w");
3177 + return ferror (f) || fclose (f) != 0;
3178  
3179    ;
3180    return 0;
3181   }
3182   _ACEOF
3183 < rm -f conftest.o conftest.obj
3184 < if { { ac_try="$ac_compile"
3183 > ac_clean_files="$ac_clean_files conftest.out"
3184 > # Check that the compiler produces executables we can run.  If not, either
3185 > # the compiler is broken, or we cross compile.
3186 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3187 > $as_echo_n "checking whether we are cross compiling... " >&6; }
3188 > if test "$cross_compiling" != yes; then
3189 >  { { ac_try="$ac_link"
3190   case "(($ac_try" in
3191    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192    *) ac_try_echo=$ac_try;;
3193   esac
3194   eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195   $as_echo "$ac_try_echo"; } >&5
3196 <  (eval "$ac_compile") 2>&5
3196 >  (eval "$ac_link") 2>&5
3197    ac_status=$?
3198    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 +  test $ac_status = 0; }
3200 +  if { ac_try='./conftest$ac_cv_exeext'
3201 +  { { case "(($ac_try" in
3202 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 +  *) ac_try_echo=$ac_try;;
3204 + esac
3205 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 + $as_echo "$ac_try_echo"; } >&5
3207 +  (eval "$ac_try") 2>&5
3208 +  ac_status=$?
3209 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 +  test $ac_status = 0; }; }; then
3211 +    cross_compiling=no
3212 +  else
3213 +    if test "$cross_compiling" = maybe; then
3214 +        cross_compiling=yes
3215 +    else
3216 +        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 + as_fn_error $? "cannot run C++ compiled programs.
3219 + If you meant to cross compile, use \`--host'.
3220 + See \`config.log' for more details" "$LINENO" 5; }
3221 +    fi
3222 +  fi
3223 + fi
3224 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3225 + $as_echo "$cross_compiling" >&6; }
3226 +
3227 + rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3228 + ac_clean_files=$ac_clean_files_save
3229 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3230 + $as_echo_n "checking for suffix of object files... " >&6; }
3231 + if ${ac_cv_objext+:} false; then :
3232 +  $as_echo_n "(cached) " >&6
3233 + else
3234 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 + /* end confdefs.h.  */
3236 +
3237 + int
3238 + main ()
3239 + {
3240 +
3241 +  ;
3242 +  return 0;
3243 + }
3244 + _ACEOF
3245 + rm -f conftest.o conftest.obj
3246 + if { { ac_try="$ac_compile"
3247 + case "(($ac_try" in
3248 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 +  *) ac_try_echo=$ac_try;;
3250 + esac
3251 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 + $as_echo "$ac_try_echo"; } >&5
3253 +  (eval "$ac_compile") 2>&5
3254 +  ac_status=$?
3255 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256    test $ac_status = 0; }; then :
3257    for ac_file in conftest.o conftest.obj conftest.*; do
3258    test -f "$ac_file" || continue;
# Line 3767 | Line 3268 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268  
3269   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271 < as_fn_error "cannot compute suffix of object files: cannot compile
3272 < See \`config.log' for more details." "$LINENO" 5; }
3271 > as_fn_error $? "cannot compute suffix of object files: cannot compile
3272 > See \`config.log' for more details" "$LINENO" 5; }
3273   fi
3274   rm -f conftest.$ac_cv_objext conftest.$ac_ext
3275   fi
# Line 3778 | Line 3279 | $as_echo_n "checking whether we are using the GNU C++
3279   ac_objext=$OBJEXT
3280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3281   $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3282 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3282 > if ${ac_cv_cxx_compiler_gnu+:} false; then :
3283    $as_echo_n "(cached) " >&6
3284   else
3285    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3815 | Line 3316 | $as_echo_n "checking whether $CXX accepts -g... " >&6;
3316   ac_save_CXXFLAGS=$CXXFLAGS
3317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3318   $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3319 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
3319 > if ${ac_cv_prog_cxx_g+:} false; then :
3320    $as_echo_n "(cached) " >&6
3321   else
3322    ac_save_cxx_werror_flag=$ac_cxx_werror_flag
# Line 3890 | Line 3391 | else
3391    else
3392      CXXFLAGS=
3393    fi
3893 fi
3894 ac_ext=cpp
3895 ac_cpp='$CXXCPP $CPPFLAGS'
3896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3899
3900
3901
3902
3903
3904
3905
3906        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3907 do
3908  # Extract the first word of "$ac_prog", so it can be a program name with args.
3909 set dummy $ac_prog; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if test "${ac_cv_prog_MPICXX+set}" = set; then :
3913  $as_echo_n "(cached) " >&6
3914 else
3915  if test -n "$MPICXX"; then
3916  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3920 do
3921  IFS=$as_save_IFS
3922  test -z "$as_dir" && as_dir=.
3923    for ac_exec_ext in '' $ac_executable_extensions; do
3924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3925    ac_cv_prog_MPICXX="$ac_prog"
3926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927    break 2
3928  fi
3929 done
3930  done
3931 IFS=$as_save_IFS
3932
3933 fi
3934 fi
3935 MPICXX=$ac_cv_prog_MPICXX
3936 if test -n "$MPICXX"; then
3937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3938 $as_echo "$MPICXX" >&6; }
3939 else
3940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3942 fi
3943
3944
3945  test -n "$MPICXX" && break
3946 done
3947 test -n "$MPICXX" || MPICXX="$CXX"
3948
3949        ax_mpi_save_CXX="$CXX"
3950        CXX="$MPICXX"
3951
3952
3953
3954 if test x = x"$MPILIBS"; then
3955        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3956 if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3957  MPILIBS=" "
3394   fi
3395 <
3396 < fi
3397 <
3398 < if test x = x"$MPILIBS"; then
3399 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3964 < $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3965 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
3966 <  $as_echo_n "(cached) " >&6
3967 < else
3968 <  ac_check_lib_save_LIBS=$LIBS
3969 < LIBS="-lmpi  $LIBS"
3970 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 < /* end confdefs.h.  */
3972 <
3973 < /* Override any GCC internal prototype to avoid an error.
3974 <   Use char because int might match the return type of a GCC
3975 <   builtin and then its argument prototype would still apply.  */
3976 < #ifdef __cplusplus
3977 < extern "C"
3978 < #endif
3979 < char MPI_Init ();
3980 < int
3981 < main ()
3982 < {
3983 < return MPI_Init ();
3984 <  ;
3985 <  return 0;
3986 < }
3987 < _ACEOF
3988 < if ac_fn_cxx_try_link "$LINENO"; then :
3989 <  ac_cv_lib_mpi_MPI_Init=yes
3990 < else
3991 <  ac_cv_lib_mpi_MPI_Init=no
3992 < fi
3993 < rm -f core conftest.err conftest.$ac_objext \
3994 <    conftest$ac_exeext conftest.$ac_ext
3995 < LIBS=$ac_check_lib_save_LIBS
3996 < fi
3997 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3998 < $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3999 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4000 <  MPILIBS="-lmpi"
4001 < fi
4002 <
4003 < fi
4004 < if test x = x"$MPILIBS"; then
4005 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4006 < $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4007 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4008 <  $as_echo_n "(cached) " >&6
4009 < else
4010 <  ac_check_lib_save_LIBS=$LIBS
4011 < LIBS="-lmpich  $LIBS"
4012 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 < /* end confdefs.h.  */
4014 <
4015 < /* Override any GCC internal prototype to avoid an error.
4016 <   Use char because int might match the return type of a GCC
4017 <   builtin and then its argument prototype would still apply.  */
4018 < #ifdef __cplusplus
4019 < extern "C"
4020 < #endif
4021 < char MPI_Init ();
4022 < int
4023 < main ()
4024 < {
4025 < return MPI_Init ();
4026 <  ;
4027 <  return 0;
4028 < }
4029 < _ACEOF
4030 < if ac_fn_cxx_try_link "$LINENO"; then :
4031 <  ac_cv_lib_mpich_MPI_Init=yes
4032 < else
4033 <  ac_cv_lib_mpich_MPI_Init=no
4034 < fi
4035 < rm -f core conftest.err conftest.$ac_objext \
4036 <    conftest$ac_exeext conftest.$ac_ext
4037 < LIBS=$ac_check_lib_save_LIBS
4038 < fi
4039 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4040 < $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4041 < if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4042 <  MPILIBS="-lmpich"
4043 < fi
4044 <
4045 < fi
4046 <
4047 < if test x != x"$MPILIBS"; then
4048 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4049 < $as_echo_n "checking for mpi.h... " >&6; }
4050 <        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 < /* end confdefs.h.  */
4052 < #include <mpi.h>
4053 < int
4054 < main ()
4055 < {
4056 <
4057 <  ;
4058 <  return 0;
4059 < }
4060 < _ACEOF
4061 < if ac_fn_cxx_try_compile "$LINENO"; then :
4062 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4063 < $as_echo "yes" >&6; }
4064 < else
4065 <  MPILIBS=""
4066 <                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 < $as_echo "no" >&6; }
4068 < fi
4069 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 < fi
4071 <
4072 < CXX="$ax_mpi_save_CXX"
4073 <
4074 <
4075 <
4076 < # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4077 < if test x = x"$MPILIBS"; then
4078 <        USE_MPI="no"
4079 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&5
4080 < $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&2;}
4081 <        :
4082 < else
4083 <        USE_MPI="yes"
4084 <        :
4085 < fi
3395 > ac_ext=c
3396 > ac_cpp='$CPP $CPPFLAGS'
3397 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400  
3401   ac_ext=c
3402   ac_cpp='$CPP $CPPFLAGS'
# Line 4090 | Line 3404 | if test -n "$ac_tool_prefix"; then
3404   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406   if test -n "$ac_tool_prefix"; then
3407 <  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4094 < set dummy ${ac_tool_prefix}gcc; ac_word=$2
4095 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 < $as_echo_n "checking for $ac_word... " >&6; }
4097 < if test "${ac_cv_prog_CC+set}" = set; then :
4098 <  $as_echo_n "(cached) " >&6
4099 < else
4100 <  if test -n "$CC"; then
4101 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4102 < else
4103 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 < for as_dir in $PATH
4105 < do
4106 <  IFS=$as_save_IFS
4107 <  test -z "$as_dir" && as_dir=.
4108 <    for ac_exec_ext in '' $ac_executable_extensions; do
4109 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4110 <    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4111 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 <    break 2
4113 <  fi
4114 < done
4115 <  done
4116 < IFS=$as_save_IFS
4117 <
4118 < fi
4119 < fi
4120 < CC=$ac_cv_prog_CC
4121 < if test -n "$CC"; then
4122 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4123 < $as_echo "$CC" >&6; }
4124 < else
4125 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 < $as_echo "no" >&6; }
4127 < fi
4128 <
4129 <
4130 < fi
4131 < if test -z "$ac_cv_prog_CC"; then
4132 <  ac_ct_CC=$CC
4133 <  # Extract the first word of "gcc", so it can be a program name with args.
4134 < set dummy gcc; ac_word=$2
4135 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136 < $as_echo_n "checking for $ac_word... " >&6; }
4137 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4138 <  $as_echo_n "(cached) " >&6
4139 < else
4140 <  if test -n "$ac_ct_CC"; then
4141 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4142 < else
4143 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 < for as_dir in $PATH
4145 < do
4146 <  IFS=$as_save_IFS
4147 <  test -z "$as_dir" && as_dir=.
4148 <    for ac_exec_ext in '' $ac_executable_extensions; do
4149 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4150 <    ac_cv_prog_ac_ct_CC="gcc"
4151 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 <    break 2
4153 <  fi
4154 < done
4155 <  done
4156 < IFS=$as_save_IFS
4157 <
4158 < fi
4159 < fi
4160 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
4161 < if test -n "$ac_ct_CC"; then
4162 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4163 < $as_echo "$ac_ct_CC" >&6; }
4164 < else
4165 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 < $as_echo "no" >&6; }
4167 < fi
4168 <
4169 <  if test "x$ac_ct_CC" = x; then
4170 <    CC=""
4171 <  else
4172 <    case $cross_compiling:$ac_tool_warned in
4173 < yes:)
4174 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4175 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4176 < ac_tool_warned=yes ;;
4177 < esac
4178 <    CC=$ac_ct_CC
4179 <  fi
4180 < else
4181 <  CC="$ac_cv_prog_CC"
4182 < fi
4183 <
4184 < if test -z "$CC"; then
4185 <          if test -n "$ac_tool_prefix"; then
4186 <    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4187 < set dummy ${ac_tool_prefix}cc; ac_word=$2
4188 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 < $as_echo_n "checking for $ac_word... " >&6; }
4190 < if test "${ac_cv_prog_CC+set}" = set; then :
4191 <  $as_echo_n "(cached) " >&6
4192 < else
4193 <  if test -n "$CC"; then
4194 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4195 < else
4196 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 < for as_dir in $PATH
4198 < do
4199 <  IFS=$as_save_IFS
4200 <  test -z "$as_dir" && as_dir=.
4201 <    for ac_exec_ext in '' $ac_executable_extensions; do
4202 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203 <    ac_cv_prog_CC="${ac_tool_prefix}cc"
4204 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 <    break 2
4206 <  fi
4207 < done
4208 <  done
4209 < IFS=$as_save_IFS
4210 <
4211 < fi
4212 < fi
4213 < CC=$ac_cv_prog_CC
4214 < if test -n "$CC"; then
4215 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216 < $as_echo "$CC" >&6; }
4217 < else
4218 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 < $as_echo "no" >&6; }
4220 < fi
4221 <
4222 <
4223 <  fi
4224 < fi
4225 < if test -z "$CC"; then
4226 <  # Extract the first word of "cc", so it can be a program name with args.
4227 < set dummy cc; ac_word=$2
4228 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 < $as_echo_n "checking for $ac_word... " >&6; }
4230 < if test "${ac_cv_prog_CC+set}" = set; then :
4231 <  $as_echo_n "(cached) " >&6
4232 < else
4233 <  if test -n "$CC"; then
4234 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4235 < else
4236 <  ac_prog_rejected=no
4237 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 < for as_dir in $PATH
4239 < do
4240 <  IFS=$as_save_IFS
4241 <  test -z "$as_dir" && as_dir=.
4242 <    for ac_exec_ext in '' $ac_executable_extensions; do
4243 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244 <    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4245 <       ac_prog_rejected=yes
4246 <       continue
4247 <     fi
4248 <    ac_cv_prog_CC="cc"
4249 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 <    break 2
4251 <  fi
4252 < done
4253 <  done
4254 < IFS=$as_save_IFS
4255 <
4256 < if test $ac_prog_rejected = yes; then
4257 <  # We found a bogon in the path, so make sure we never use it.
4258 <  set dummy $ac_cv_prog_CC
4259 <  shift
4260 <  if test $# != 0; then
4261 <    # We chose a different compiler from the bogus one.
4262 <    # However, it has the same basename, so the bogon will be chosen
4263 <    # first if we set CC to just the basename; use the full file name.
4264 <    shift
4265 <    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4266 <  fi
4267 < fi
4268 < fi
4269 < fi
4270 < CC=$ac_cv_prog_CC
4271 < if test -n "$CC"; then
4272 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4273 < $as_echo "$CC" >&6; }
4274 < else
4275 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 < $as_echo "no" >&6; }
4277 < fi
4278 <
4279 <
4280 < fi
4281 < if test -z "$CC"; then
4282 <  if test -n "$ac_tool_prefix"; then
4283 <  for ac_prog in cl.exe
3407 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3408    do
3409      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3410   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412   $as_echo_n "checking for $ac_word... " >&6; }
3413 < if test "${ac_cv_prog_CC+set}" = set; then :
3413 > if ${ac_cv_prog_CC+:} false; then :
3414    $as_echo_n "(cached) " >&6
3415   else
3416    if test -n "$CC"; then
# Line 4324 | Line 3448 | if test -z "$CC"; then
3448   fi
3449   if test -z "$CC"; then
3450    ac_ct_CC=$CC
3451 <  for ac_prog in cl.exe
3451 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3452   do
3453    # Extract the first word of "$ac_prog", so it can be a program name with args.
3454   set dummy $ac_prog; ac_word=$2
3455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456   $as_echo_n "checking for $ac_word... " >&6; }
3457 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3457 > if ${ac_cv_prog_ac_ct_CC+:} false; then :
3458    $as_echo_n "(cached) " >&6
3459   else
3460    if test -n "$ac_ct_CC"; then
# Line 4379 | Line 3503 | fi
3503    fi
3504   fi
3505  
4382 fi
3506  
4384
3507   test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509 < as_fn_error "no acceptable C compiler found in \$PATH
3510 < See \`config.log' for more details." "$LINENO" 5; }
3509 > as_fn_error $? "no acceptable C compiler found in \$PATH
3510 > See \`config.log' for more details" "$LINENO" 5; }
3511  
3512   # Provide some information about the compiler.
3513   $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
# Line 4406 | Line 3528 | $as_echo "$ac_try_echo"; } >&5
3528   ... rest of stderr output deleted ...
3529           10q' conftest.err >conftest.er1
3530      cat conftest.er1 >&5
4409    rm -f conftest.er1 conftest.err
3531    fi
3532 +  rm -f conftest.er1 conftest.err
3533    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534    test $ac_status = 0; }
3535   done
3536  
3537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3538   $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3539 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3539 > if ${ac_cv_c_compiler_gnu+:} false; then :
3540    $as_echo_n "(cached) " >&6
3541   else
3542    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 4451 | Line 3573 | $as_echo_n "checking whether $CC accepts -g... " >&6;
3573   ac_save_CFLAGS=$CFLAGS
3574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3575   $as_echo_n "checking whether $CC accepts -g... " >&6; }
3576 < if test "${ac_cv_prog_cc_g+set}" = set; then :
3576 > if ${ac_cv_prog_cc_g+:} false; then :
3577    $as_echo_n "(cached) " >&6
3578   else
3579    ac_save_c_werror_flag=$ac_c_werror_flag
# Line 4529 | Line 3651 | $as_echo_n "checking for $CC option to accept ISO C89.
3651   fi
3652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3653   $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3654 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
3654 > if ${ac_cv_prog_cc_c89+:} false; then :
3655    $as_echo_n "(cached) " >&6
3656   else
3657    ac_cv_prog_cc_c89=no
# Line 4625 | Line 3747 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748  
3749  
3750 < if test $USE_MPI != no; then :
3750 > save_CXX=$CXX
3751 > save_CC=$CC
3752 > save_LIBS=$LIBS
3753  
3754 < ac_ext=c
3755 < ac_cpp='$CPP $CPPFLAGS'
3756 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 > ac_ext=cpp
3755 > ac_cpp='$CXXCPP $CPPFLAGS'
3756 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3759  
3760  
3761 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
3762 + $as_echo_n "checking for dlopen in -lc... " >&6; }
3763 + if ${ac_cv_lib_c_dlopen+:} false; then :
3764 +  $as_echo_n "(cached) " >&6
3765 + else
3766 +  ac_check_lib_save_LIBS=$LIBS
3767 + LIBS="-lc  $LIBS"
3768 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 + /* end confdefs.h.  */
3770  
3771 + /* Override any GCC internal prototype to avoid an error.
3772 +   Use char because int might match the return type of a GCC
3773 +   builtin and then its argument prototype would still apply.  */
3774 + #ifdef __cplusplus
3775 + extern "C"
3776 + #endif
3777 + char dlopen ();
3778 + int
3779 + main ()
3780 + {
3781 + return dlopen ();
3782 +  ;
3783 +  return 0;
3784 + }
3785 + _ACEOF
3786 + if ac_fn_cxx_try_link "$LINENO"; then :
3787 +  ac_cv_lib_c_dlopen=yes
3788 + else
3789 +  ac_cv_lib_c_dlopen=no
3790 + fi
3791 + rm -f core conftest.err conftest.$ac_objext \
3792 +    conftest$ac_exeext conftest.$ac_ext
3793 + LIBS=$ac_check_lib_save_LIBS
3794 + fi
3795 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
3796 + $as_echo "$ac_cv_lib_c_dlopen" >&6; }
3797 + if test "x$ac_cv_lib_c_dlopen" = xyes; then :
3798 +  LIBDL=""
3799 + else
3800 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3801 + $as_echo_n "checking for dlopen in -ldl... " >&6; }
3802 + if ${ac_cv_lib_dl_dlopen+:} false; then :
3803 +  $as_echo_n "(cached) " >&6
3804 + else
3805 +  ac_check_lib_save_LIBS=$LIBS
3806 + LIBS="-ldl  $LIBS"
3807 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 + /* end confdefs.h.  */
3809  
3810 + /* Override any GCC internal prototype to avoid an error.
3811 +   Use char because int might match the return type of a GCC
3812 +   builtin and then its argument prototype would still apply.  */
3813 + #ifdef __cplusplus
3814 + extern "C"
3815 + #endif
3816 + char dlopen ();
3817 + int
3818 + main ()
3819 + {
3820 + return dlopen ();
3821 +  ;
3822 +  return 0;
3823 + }
3824 + _ACEOF
3825 + if ac_fn_cxx_try_link "$LINENO"; then :
3826 +  ac_cv_lib_dl_dlopen=yes
3827 + else
3828 +  ac_cv_lib_dl_dlopen=no
3829 + fi
3830 + rm -f core conftest.err conftest.$ac_objext \
3831 +    conftest$ac_exeext conftest.$ac_ext
3832 + LIBS=$ac_check_lib_save_LIBS
3833 + fi
3834 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3835 + $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3836 + if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3837 +  LIBDL="-ldl"
3838 + fi
3839  
3840 + fi
3841  
3842 <        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
3842 >
3843 >
3844 >
3845 >
3846 >
3847 >
3848 >        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3849   do
3850    # Extract the first word of "$ac_prog", so it can be a program name with args.
3851   set dummy $ac_prog; ac_word=$2
3852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853   $as_echo_n "checking for $ac_word... " >&6; }
3854 < if test "${ac_cv_prog_MPICC+set}" = set; then :
3854 > if ${ac_cv_prog_MPICXX+:} false; then :
3855    $as_echo_n "(cached) " >&6
3856   else
3857 <  if test -n "$MPICC"; then
3858 <  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
3857 >  if test -n "$MPICXX"; then
3858 >  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3859   else
3860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861   for as_dir in $PATH
# Line 4657 | Line 3864 | do
3864    test -z "$as_dir" && as_dir=.
3865      for ac_exec_ext in '' $ac_executable_extensions; do
3866    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3867 <    ac_cv_prog_MPICC="$ac_prog"
3867 >    ac_cv_prog_MPICXX="$ac_prog"
3868      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3869      break 2
3870    fi
# Line 4667 | Line 3874 | fi
3874  
3875   fi
3876   fi
3877 < MPICC=$ac_cv_prog_MPICC
3878 < if test -n "$MPICC"; then
3879 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
3880 < $as_echo "$MPICC" >&6; }
3877 > MPICXX=$ac_cv_prog_MPICXX
3878 > if test -n "$MPICXX"; then
3879 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3880 > $as_echo "$MPICXX" >&6; }
3881   else
3882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883   $as_echo "no" >&6; }
3884   fi
3885  
3886  
3887 <  test -n "$MPICC" && break
3887 >  test -n "$MPICXX" && break
3888   done
3889 < test -n "$MPICC" || MPICC="$CC"
3889 > test -n "$MPICXX" || MPICXX="$CXX"
3890  
3891 <        ax_mpi_save_CC="$CC"
3892 <        CC="$MPICC"
3891 >        ax_mpi_save_CXX="$CXX"
3892 >        CXX="$MPICXX"
3893  
3894  
3895  
3896   if test x = x"$MPILIBS"; then
3897 <        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3898 < if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3897 >        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3898 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
3899    MPILIBS=" "
3900   fi
3901  
# Line 4697 | Line 3904 | $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3904   if test x = x"$MPILIBS"; then
3905          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3906   $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3907 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
3907 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
3908    $as_echo_n "(cached) " >&6
3909   else
3910    ac_check_lib_save_LIBS=$LIBS
# Line 4720 | Line 3927 | _ACEOF
3927    return 0;
3928   }
3929   _ACEOF
3930 < if ac_fn_c_try_link "$LINENO"; then :
3930 > if ac_fn_cxx_try_link "$LINENO"; then :
3931    ac_cv_lib_mpi_MPI_Init=yes
3932   else
3933    ac_cv_lib_mpi_MPI_Init=no
# Line 4731 | Line 3938 | $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3938   fi
3939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3940   $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3941 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
3941 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
3942    MPILIBS="-lmpi"
3943   fi
3944  
# Line 4739 | Line 3946 | $as_echo_n "checking for MPI_Init in -lmpich... " >&6;
3946   if test x = x"$MPILIBS"; then
3947          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
3948   $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
3949 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
3949 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
3950    $as_echo_n "(cached) " >&6
3951   else
3952    ac_check_lib_save_LIBS=$LIBS
# Line 4762 | Line 3969 | _ACEOF
3969    return 0;
3970   }
3971   _ACEOF
3972 < if ac_fn_c_try_link "$LINENO"; then :
3972 > if ac_fn_cxx_try_link "$LINENO"; then :
3973    ac_cv_lib_mpich_MPI_Init=yes
3974   else
3975    ac_cv_lib_mpich_MPI_Init=no
# Line 4773 | Line 3980 | $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3980   fi
3981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
3982   $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3983 < if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
3983 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
3984    MPILIBS="-lmpich"
3985   fi
3986  
# Line 4793 | Line 4000 | _ACEOF
4000    return 0;
4001   }
4002   _ACEOF
4003 < if ac_fn_c_try_compile "$LINENO"; then :
4003 > if ac_fn_cxx_try_compile "$LINENO"; then :
4004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4005   $as_echo "yes" >&6; }
4006   else
# Line 4804 | Line 4011 | fi
4011   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012   fi
4013  
4014 < CC="$ax_mpi_save_CC"
4014 > CXX="$ax_mpi_save_CXX"
4015  
4016  
4017  
4018   # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4019   if test x = x"$MPILIBS"; then
4020          USE_MPI="no"
4021 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&5
4022 < $as_echo "$as_me: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&2;}
4021 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5
4022 > $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;}
4023          :
4024   else
4025          USE_MPI="yes"
4026          :
4820 fi
4821
4822
4823 fi
4824 ac_ext=${ac_fc_srcext-f}
4825 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4826 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4827 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4828 if test -n "$ac_tool_prefix"; then
4829  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
4830  do
4831    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4834 $as_echo_n "checking for $ac_word... " >&6; }
4835 if test "${ac_cv_prog_FC+set}" = set; then :
4836  $as_echo_n "(cached) " >&6
4837 else
4838  if test -n "$FC"; then
4839  ac_cv_prog_FC="$FC" # Let the user override the test.
4840 else
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH
4843 do
4844  IFS=$as_save_IFS
4845  test -z "$as_dir" && as_dir=.
4846    for ac_exec_ext in '' $ac_executable_extensions; do
4847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4848    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850    break 2
4851  fi
4852 done
4853  done
4854 IFS=$as_save_IFS
4855
4856 fi
4857 fi
4858 FC=$ac_cv_prog_FC
4859 if test -n "$FC"; then
4860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4861 $as_echo "$FC" >&6; }
4862 else
4863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864 $as_echo "no" >&6; }
4865 fi
4866
4867
4868    test -n "$FC" && break
4869  done
4870 fi
4871 if test -z "$FC"; then
4872  ac_ct_FC=$FC
4873  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
4874 do
4875  # Extract the first word of "$ac_prog", so it can be a program name with args.
4876 set dummy $ac_prog; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4880  $as_echo_n "(cached) " >&6
4881 else
4882  if test -n "$ac_ct_FC"; then
4883  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4887 do
4888  IFS=$as_save_IFS
4889  test -z "$as_dir" && as_dir=.
4890    for ac_exec_ext in '' $ac_executable_extensions; do
4891  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892    ac_cv_prog_ac_ct_FC="$ac_prog"
4893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894    break 2
4895  fi
4896 done
4897  done
4898 IFS=$as_save_IFS
4899
4900 fi
4901 fi
4902 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4903 if test -n "$ac_ct_FC"; then
4904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4905 $as_echo "$ac_ct_FC" >&6; }
4906 else
4907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4909 fi
4910
4911
4912  test -n "$ac_ct_FC" && break
4913 done
4914
4915  if test "x$ac_ct_FC" = x; then
4916    FC=""
4917  else
4918    case $cross_compiling:$ac_tool_warned in
4919 yes:)
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4922 ac_tool_warned=yes ;;
4923 esac
4924    FC=$ac_ct_FC
4925  fi
4926 fi
4927
4928
4929 # Provide some information about the compiler.
4930 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4931 set X $ac_compile
4932 ac_compiler=$2
4933 for ac_option in --version -v -V -qversion; do
4934  { { ac_try="$ac_compiler $ac_option >&5"
4935 case "(($ac_try" in
4936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937  *) ac_try_echo=$ac_try;;
4938 esac
4939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4940 $as_echo "$ac_try_echo"; } >&5
4941  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4942  ac_status=$?
4943  if test -s conftest.err; then
4944    sed '10a\
4945 ... rest of stderr output deleted ...
4946         10q' conftest.err >conftest.er1
4947    cat conftest.er1 >&5
4948    rm -f conftest.er1 conftest.err
4949  fi
4950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4951  test $ac_status = 0; }
4952 done
4953 rm -f a.out
4954
4955 # If we don't use `.F' as extension, the preprocessor is not run on the
4956 # input file.  (Note that this only needs to work for GNU compilers.)
4957 ac_save_ext=$ac_ext
4958 ac_ext=F
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4960 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4961 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4962  $as_echo_n "(cached) " >&6
4963 else
4964  cat > conftest.$ac_ext <<_ACEOF
4965      program main
4966 #ifndef __GNUC__
4967       choke me
4968 #endif
4969
4970      end
4971 _ACEOF
4972 if ac_fn_fc_try_compile "$LINENO"; then :
4973  ac_compiler_gnu=yes
4974 else
4975  ac_compiler_gnu=no
4976 fi
4977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4978 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4979
4027   fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4982 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4983 ac_ext=$ac_save_ext
4984 ac_test_FCFLAGS=${FCFLAGS+set}
4985 ac_save_FCFLAGS=$FCFLAGS
4986 FCFLAGS=
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4988 $as_echo_n "checking whether $FC accepts -g... " >&6; }
4989 if test "${ac_cv_prog_fc_g+set}" = set; then :
4990  $as_echo_n "(cached) " >&6
4991 else
4992  FCFLAGS=-g
4993 cat > conftest.$ac_ext <<_ACEOF
4994      program main
4028  
4996      end
4997 _ACEOF
4998 if ac_fn_fc_try_compile "$LINENO"; then :
4999  ac_cv_prog_fc_g=yes
5000 else
5001  ac_cv_prog_fc_g=no
5002 fi
5003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029  
5005 fi
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
5007 $as_echo "$ac_cv_prog_fc_g" >&6; }
5008 if test "$ac_test_FCFLAGS" = set; then
5009  FCFLAGS=$ac_save_FCFLAGS
5010 elif test $ac_cv_prog_fc_g = yes; then
5011  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5012    FCFLAGS="-g -O2"
5013  else
5014    FCFLAGS="-g"
5015  fi
5016 else
5017  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5018    FCFLAGS="-O2"
5019  else
5020    FCFLAGS=
5021  fi
5022 fi
5023
5024 ac_ext=${ac_fc_srcext-f}
5025 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5026 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5027 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5028
5029
4030   if test $USE_MPI != no; then :
4031  
4032 < ac_ext=${ac_fc_srcext-f}
4033 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4034 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4035 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4032 > ac_ext=c
4033 > ac_cpp='$CPP $CPPFLAGS'
4034 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037  
4038  
4039  
4040  
4041  
4042  
4043 <        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4043 >        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4044   do
4045    # Extract the first word of "$ac_prog", so it can be a program name with args.
4046   set dummy $ac_prog; ac_word=$2
4047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048   $as_echo_n "checking for $ac_word... " >&6; }
4049 < if test "${ac_cv_prog_MPIFC+set}" = set; then :
4049 > if ${ac_cv_prog_MPICC+:} false; then :
4050    $as_echo_n "(cached) " >&6
4051   else
4052 <  if test -n "$MPIFC"; then
4053 <  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4052 >  if test -n "$MPICC"; then
4053 >  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4054   else
4055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056   for as_dir in $PATH
# Line 5058 | Line 4059 | do
4059    test -z "$as_dir" && as_dir=.
4060      for ac_exec_ext in '' $ac_executable_extensions; do
4061    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4062 <    ac_cv_prog_MPIFC="$ac_prog"
4062 >    ac_cv_prog_MPICC="$ac_prog"
4063      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064      break 2
4065    fi
# Line 5068 | Line 4069 | fi
4069  
4070   fi
4071   fi
4072 < MPIFC=$ac_cv_prog_MPIFC
4073 < if test -n "$MPIFC"; then
4074 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4075 < $as_echo "$MPIFC" >&6; }
4072 > MPICC=$ac_cv_prog_MPICC
4073 > if test -n "$MPICC"; then
4074 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4075 > $as_echo "$MPICC" >&6; }
4076   else
4077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078   $as_echo "no" >&6; }
4079   fi
4080  
4081  
4082 <  test -n "$MPIFC" && break
4082 >  test -n "$MPICC" && break
4083   done
4084 < test -n "$MPIFC" || MPIFC="$FC"
4084 > test -n "$MPICC" || MPICC="$CC"
4085  
4086 <        ax_mpi_save_FC="$FC"
4087 <        FC="$MPIFC"
4086 >        ax_mpi_save_CC="$CC"
4087 >        CC="$MPICC"
4088  
4089  
4090  
4091   if test x = x"$MPILIBS"; then
4092 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4093 < $as_echo_n "checking for MPI_Init... " >&6; }
5093 <                        cat > conftest.$ac_ext <<_ACEOF
5094 <      program main
5095 <      call MPI_Init
5096 <      end
5097 < _ACEOF
5098 < if ac_fn_fc_try_link "$LINENO"; then :
4092 >        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4093 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
4094    MPILIBS=" "
5100                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5101 $as_echo "yes" >&6; }
5102 else
5103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
4095   fi
5106 rm -f core conftest.err conftest.$ac_objext \
5107    conftest$ac_exeext conftest.$ac_ext
5108 fi
4096  
5110        if test x = x"$MPILIBS"; then
5111                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
5112 $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
5113 if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then :
5114  $as_echo_n "(cached) " >&6
5115 else
5116  ac_check_lib_save_LIBS=$LIBS
5117 LIBS="-lfmpi  $LIBS"
5118 cat > conftest.$ac_ext <<_ACEOF
5119      program main
5120      call MPI_Init
5121      end
5122 _ACEOF
5123 if ac_fn_fc_try_link "$LINENO"; then :
5124  ac_cv_lib_fmpi_MPI_Init=yes
5125 else
5126  ac_cv_lib_fmpi_MPI_Init=no
4097   fi
5128 rm -f core conftest.err conftest.$ac_objext \
5129    conftest$ac_exeext conftest.$ac_ext
5130 LIBS=$ac_check_lib_save_LIBS
5131 fi
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
5133 $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
5134 if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then :
5135  MPILIBS="-lfmpi"
5136 fi
4098  
5138        fi
5139        if test x = x"$MPILIBS"; then
5140                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
5141 $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
5142 if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then :
5143  $as_echo_n "(cached) " >&6
5144 else
5145  ac_check_lib_save_LIBS=$LIBS
5146 LIBS="-lmpichf90  $LIBS"
5147 cat > conftest.$ac_ext <<_ACEOF
5148      program main
5149      call MPI_Init
5150      end
5151 _ACEOF
5152 if ac_fn_fc_try_link "$LINENO"; then :
5153  ac_cv_lib_mpichf90_MPI_Init=yes
5154 else
5155  ac_cv_lib_mpichf90_MPI_Init=no
5156 fi
5157 rm -f core conftest.err conftest.$ac_objext \
5158    conftest$ac_exeext conftest.$ac_ext
5159 LIBS=$ac_check_lib_save_LIBS
5160 fi
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
5162 $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
5163 if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then :
5164  MPILIBS="-lmpichf90"
5165 fi
5166
5167        fi
5168
4099   if test x = x"$MPILIBS"; then
4100          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4101   $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4102 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4102 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4103    $as_echo_n "(cached) " >&6
4104   else
4105    ac_check_lib_save_LIBS=$LIBS
4106   LIBS="-lmpi  $LIBS"
4107 < cat > conftest.$ac_ext <<_ACEOF
4108 <      program main
4109 <      call MPI_Init
4110 <      end
4107 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 > /* end confdefs.h.  */
4109 >
4110 > /* Override any GCC internal prototype to avoid an error.
4111 >   Use char because int might match the return type of a GCC
4112 >   builtin and then its argument prototype would still apply.  */
4113 > #ifdef __cplusplus
4114 > extern "C"
4115 > #endif
4116 > char MPI_Init ();
4117 > int
4118 > main ()
4119 > {
4120 > return MPI_Init ();
4121 >  ;
4122 >  return 0;
4123 > }
4124   _ACEOF
4125 < if ac_fn_fc_try_link "$LINENO"; then :
4125 > if ac_fn_c_try_link "$LINENO"; then :
4126    ac_cv_lib_mpi_MPI_Init=yes
4127   else
4128    ac_cv_lib_mpi_MPI_Init=no
# Line 5190 | Line 4133 | $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4133   fi
4134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4135   $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4136 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4136 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4137    MPILIBS="-lmpi"
4138   fi
4139  
# Line 5198 | Line 4141 | $as_echo_n "checking for MPI_Init in -lmpich... " >&6;
4141   if test x = x"$MPILIBS"; then
4142          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4143   $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4144 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4144 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4145    $as_echo_n "(cached) " >&6
4146   else
4147    ac_check_lib_save_LIBS=$LIBS
4148   LIBS="-lmpich  $LIBS"
4149 < cat > conftest.$ac_ext <<_ACEOF
4150 <      program main
4151 <      call MPI_Init
4152 <      end
4149 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 > /* end confdefs.h.  */
4151 >
4152 > /* Override any GCC internal prototype to avoid an error.
4153 >   Use char because int might match the return type of a GCC
4154 >   builtin and then its argument prototype would still apply.  */
4155 > #ifdef __cplusplus
4156 > extern "C"
4157 > #endif
4158 > char MPI_Init ();
4159 > int
4160 > main ()
4161 > {
4162 > return MPI_Init ();
4163 >  ;
4164 >  return 0;
4165 > }
4166   _ACEOF
4167 < if ac_fn_fc_try_link "$LINENO"; then :
4167 > if ac_fn_c_try_link "$LINENO"; then :
4168    ac_cv_lib_mpich_MPI_Init=yes
4169   else
4170    ac_cv_lib_mpich_MPI_Init=no
# Line 5219 | Line 4175 | $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4175   fi
4176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4177   $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4178 < if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4178 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4179    MPILIBS="-lmpich"
4180   fi
4181  
4182   fi
4183  
4184   if test x != x"$MPILIBS"; then
4185 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4186 < $as_echo_n "checking for mpif.h... " >&6; }
4187 <        cat > conftest.$ac_ext <<_ACEOF
4188 <      program main
4189 <      include 'mpif.h'
4190 <      end
4185 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4186 > $as_echo_n "checking for mpi.h... " >&6; }
4187 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 > /* end confdefs.h.  */
4189 > #include <mpi.h>
4190 > int
4191 > main ()
4192 > {
4193 >
4194 >  ;
4195 >  return 0;
4196 > }
4197   _ACEOF
4198 < if ac_fn_fc_try_compile "$LINENO"; then :
4198 > if ac_fn_c_try_compile "$LINENO"; then :
4199    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4200   $as_echo "yes" >&6; }
4201   else
# Line 5244 | Line 4206 | fi
4206   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207   fi
4208  
4209 < FC="$ax_mpi_save_FC"
4209 > CC="$ax_mpi_save_CC"
4210  
4211  
4212  
4213   # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4214   if test x = x"$MPILIBS"; then
4215          USE_MPI="no"
4216 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&5
4217 < $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&2;}
4216 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5
4217 > $as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;}
4218          :
4219   else
4220          USE_MPI="yes"
# Line 5265 | Line 4227 | if test $USE_MPI != no; then :
4227  
4228          CXX=$MPICXX
4229          CC=$MPICC
4230 <        FC=$MPIFC
4230 >        LIBS="$MPILIBS $LIBS"
4231  
4232 < fi
4232 > else
4233  
4234 <
4235 < # Checks for programs.
4236 < ac_ext=cpp
4237 < ac_cpp='$CXXCPP $CPPFLAGS'
4238 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4241 < if test -z "$CXX"; then
4242 <  if test -n "$CCC"; then
4243 <    CXX=$CCC
4244 <  else
4245 <    if test -n "$ac_tool_prefix"; then
4246 <  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
4247 <  do
4248 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4249 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4250 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4251 < $as_echo_n "checking for $ac_word... " >&6; }
4252 < if test "${ac_cv_prog_CXX+set}" = set; then :
4253 <  $as_echo_n "(cached) " >&6
4254 < else
4255 <  if test -n "$CXX"; then
4256 <  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4257 < else
4258 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 < for as_dir in $PATH
4260 < do
4261 <  IFS=$as_save_IFS
4262 <  test -z "$as_dir" && as_dir=.
4263 <    for ac_exec_ext in '' $ac_executable_extensions; do
4264 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4265 <    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4266 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 <    break 2
4268 <  fi
4269 < done
4270 <  done
4271 < IFS=$as_save_IFS
4272 <
4273 < fi
4274 < fi
4275 < CXX=$ac_cv_prog_CXX
4276 < if test -n "$CXX"; then
4277 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4278 < $as_echo "$CXX" >&6; }
4279 < else
4280 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281 < $as_echo "no" >&6; }
4282 < fi
4283 <
4284 <
4285 <    test -n "$CXX" && break
4286 <  done
4287 < fi
4288 < if test -z "$CXX"; then
4289 <  ac_ct_CXX=$CXX
4290 <  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
4291 < do
4292 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4293 < set dummy $ac_prog; ac_word=$2
4294 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295 < $as_echo_n "checking for $ac_word... " >&6; }
4296 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4297 <  $as_echo_n "(cached) " >&6
4298 < else
4299 <  if test -n "$ac_ct_CXX"; then
4300 <  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4301 < else
4302 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 < for as_dir in $PATH
4304 < do
4305 <  IFS=$as_save_IFS
4306 <  test -z "$as_dir" && as_dir=.
4307 <    for ac_exec_ext in '' $ac_executable_extensions; do
4308 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4309 <    ac_cv_prog_ac_ct_CXX="$ac_prog"
4310 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 <    break 2
4312 <  fi
4313 < done
4314 <  done
4315 < IFS=$as_save_IFS
4316 <
4317 < fi
4318 < fi
4319 < ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4320 < if test -n "$ac_ct_CXX"; then
4321 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4322 < $as_echo "$ac_ct_CXX" >&6; }
4323 < else
4324 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325 < $as_echo "no" >&6; }
4326 < fi
4327 <
4328 <
4329 <  test -n "$ac_ct_CXX" && break
4330 < done
4331 <
4332 <  if test "x$ac_ct_CXX" = x; then
4333 <    CXX="g++"
4334 <  else
4335 <    case $cross_compiling:$ac_tool_warned in
4336 < yes:)
4337 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4338 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4339 < ac_tool_warned=yes ;;
4340 < esac
4341 <    CXX=$ac_ct_CXX
4342 <  fi
4343 < fi
4344 <
4345 <  fi
4346 < fi
4347 < # Provide some information about the compiler.
4348 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4349 < set X $ac_compile
4350 < ac_compiler=$2
4351 < for ac_option in --version -v -V -qversion; do
4352 <  { { ac_try="$ac_compiler $ac_option >&5"
4353 < case "(($ac_try" in
4354 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 <  *) ac_try_echo=$ac_try;;
4356 < esac
4357 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4358 < $as_echo "$ac_try_echo"; } >&5
4359 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4360 <  ac_status=$?
4361 <  if test -s conftest.err; then
4362 <    sed '10a\
4363 < ... rest of stderr output deleted ...
4364 <         10q' conftest.err >conftest.er1
4365 <    cat conftest.er1 >&5
4366 <    rm -f conftest.er1 conftest.err
4367 <  fi
4368 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369 <  test $ac_status = 0; }
4370 < done
4371 <
4372 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4373 < $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4374 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4375 <  $as_echo_n "(cached) " >&6
4376 < else
4377 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 < /* end confdefs.h.  */
4379 <
4380 < int
4381 < main ()
4382 < {
4383 < #ifndef __GNUC__
4384 <       choke me
4385 < #endif
4386 <
4387 <  ;
4388 <  return 0;
4389 < }
4390 < _ACEOF
4391 < if ac_fn_cxx_try_compile "$LINENO"; then :
4392 <  ac_compiler_gnu=yes
4393 < else
4394 <  ac_compiler_gnu=no
4395 < fi
4396 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 < ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4398 <
4399 < fi
4400 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4401 < $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4402 < if test $ac_compiler_gnu = yes; then
4403 <  GXX=yes
4404 < else
4405 <  GXX=
4406 < fi
4407 < ac_test_CXXFLAGS=${CXXFLAGS+set}
4408 < ac_save_CXXFLAGS=$CXXFLAGS
4409 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4410 < $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4411 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
4412 <  $as_echo_n "(cached) " >&6
4413 < else
4414 <  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4415 <   ac_cxx_werror_flag=yes
4416 <   ac_cv_prog_cxx_g=no
4417 <   CXXFLAGS="-g"
4418 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 < /* end confdefs.h.  */
4420 <
4421 < int
4422 < main ()
4423 < {
4424 <
4425 <  ;
4426 <  return 0;
4427 < }
4428 < _ACEOF
4429 < if ac_fn_cxx_try_compile "$LINENO"; then :
4430 <  ac_cv_prog_cxx_g=yes
4431 < else
4432 <  CXXFLAGS=""
4433 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 < /* end confdefs.h.  */
4435 <
4436 < int
4437 < main ()
4438 < {
4439 <
4440 <  ;
4441 <  return 0;
4442 < }
4443 < _ACEOF
4444 < if ac_fn_cxx_try_compile "$LINENO"; then :
4445 <
4446 < else
4447 <  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4448 <         CXXFLAGS="-g"
4449 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 < /* end confdefs.h.  */
4451 <
4452 < int
4453 < main ()
4454 < {
4455 <
4456 <  ;
4457 <  return 0;
4458 < }
4459 < _ACEOF
4460 < if ac_fn_cxx_try_compile "$LINENO"; then :
4461 <  ac_cv_prog_cxx_g=yes
4462 < fi
4463 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4464 < fi
4465 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466 < fi
4467 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468 <   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4469 < fi
4470 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4471 < $as_echo "$ac_cv_prog_cxx_g" >&6; }
4472 < if test "$ac_test_CXXFLAGS" = set; then
4473 <  CXXFLAGS=$ac_save_CXXFLAGS
4474 < elif test $ac_cv_prog_cxx_g = yes; then
4475 <  if test "$GXX" = yes; then
4476 <    CXXFLAGS="-g -O2"
4477 <  else
4478 <    CXXFLAGS="-g"
4479 <  fi
4480 < else
4481 <  if test "$GXX" = yes; then
4482 <    CXXFLAGS="-O2"
4483 <  else
4484 <    CXXFLAGS=
4485 <  fi
4486 < fi
4487 < ac_ext=${ac_fc_srcext-f}
4488 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4489 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4490 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4491 <
4492 < ac_ext=c
4493 < ac_cpp='$CPP $CPPFLAGS'
4494 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4497 < if test -n "$ac_tool_prefix"; then
4498 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
4499 <  do
4500 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4501 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4502 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 < $as_echo_n "checking for $ac_word... " >&6; }
4504 < if test "${ac_cv_prog_CC+set}" = set; then :
4505 <  $as_echo_n "(cached) " >&6
4506 < else
4507 <  if test -n "$CC"; then
4508 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4509 < else
4510 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 < for as_dir in $PATH
4512 < do
4513 <  IFS=$as_save_IFS
4514 <  test -z "$as_dir" && as_dir=.
4515 <    for ac_exec_ext in '' $ac_executable_extensions; do
4516 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517 <    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4518 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 <    break 2
4520 <  fi
4521 < done
4522 <  done
4523 < IFS=$as_save_IFS
4524 <
4525 < fi
4526 < fi
4527 < CC=$ac_cv_prog_CC
4528 < if test -n "$CC"; then
4529 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4530 < $as_echo "$CC" >&6; }
4531 < else
4532 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 < $as_echo "no" >&6; }
4534 < fi
4535 <
4536 <
4537 <    test -n "$CC" && break
4538 <  done
4539 < fi
4540 < if test -z "$CC"; then
4541 <  ac_ct_CC=$CC
4542 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
4543 < do
4544 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4545 < set dummy $ac_prog; ac_word=$2
4546 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 < $as_echo_n "checking for $ac_word... " >&6; }
4548 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4549 <  $as_echo_n "(cached) " >&6
4550 < else
4551 <  if test -n "$ac_ct_CC"; then
4552 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4553 < else
4554 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 < for as_dir in $PATH
4556 < do
4557 <  IFS=$as_save_IFS
4558 <  test -z "$as_dir" && as_dir=.
4559 <    for ac_exec_ext in '' $ac_executable_extensions; do
4560 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 <    ac_cv_prog_ac_ct_CC="$ac_prog"
4562 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 <    break 2
4564 <  fi
4565 < done
4566 <  done
4567 < IFS=$as_save_IFS
4568 <
4569 < fi
4570 < fi
4571 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
4572 < if test -n "$ac_ct_CC"; then
4573 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4574 < $as_echo "$ac_ct_CC" >&6; }
4575 < else
4576 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 < $as_echo "no" >&6; }
4578 < fi
4579 <
4580 <
4581 <  test -n "$ac_ct_CC" && break
4582 < done
4583 <
4584 <  if test "x$ac_ct_CC" = x; then
4585 <    CC=""
4586 <  else
4587 <    case $cross_compiling:$ac_tool_warned in
4588 < yes:)
4589 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4590 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4591 < ac_tool_warned=yes ;;
4592 < esac
4593 <    CC=$ac_ct_CC
4594 <  fi
4595 < fi
4596 <
4597 <
4598 < test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4599 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4600 < as_fn_error "no acceptable C compiler found in \$PATH
4601 < See \`config.log' for more details." "$LINENO" 5; }
4602 <
4603 < # Provide some information about the compiler.
4604 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4605 < set X $ac_compile
4606 < ac_compiler=$2
4607 < for ac_option in --version -v -V -qversion; do
4608 <  { { ac_try="$ac_compiler $ac_option >&5"
4609 < case "(($ac_try" in
4610 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 <  *) ac_try_echo=$ac_try;;
4612 < esac
4613 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614 < $as_echo "$ac_try_echo"; } >&5
4615 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4616 <  ac_status=$?
4617 <  if test -s conftest.err; then
4618 <    sed '10a\
4619 < ... rest of stderr output deleted ...
4620 <         10q' conftest.err >conftest.er1
4621 <    cat conftest.er1 >&5
4622 <    rm -f conftest.er1 conftest.err
4623 <  fi
4624 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4625 <  test $ac_status = 0; }
4626 < done
4627 <
4628 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4629 < $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4630 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4631 <  $as_echo_n "(cached) " >&6
4632 < else
4633 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 < /* end confdefs.h.  */
4635 <
4636 < int
4637 < main ()
4638 < {
4639 < #ifndef __GNUC__
4640 <       choke me
4641 < #endif
4642 <
4643 <  ;
4644 <  return 0;
4645 < }
4646 < _ACEOF
4647 < if ac_fn_c_try_compile "$LINENO"; then :
4648 <  ac_compiler_gnu=yes
4649 < else
4650 <  ac_compiler_gnu=no
4651 < fi
4652 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653 < ac_cv_c_compiler_gnu=$ac_compiler_gnu
4654 <
4655 < fi
4656 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4657 < $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4658 < if test $ac_compiler_gnu = yes; then
4659 <  GCC=yes
4660 < else
4661 <  GCC=
4662 < fi
4663 < ac_test_CFLAGS=${CFLAGS+set}
4664 < ac_save_CFLAGS=$CFLAGS
4665 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4666 < $as_echo_n "checking whether $CC accepts -g... " >&6; }
4667 < if test "${ac_cv_prog_cc_g+set}" = set; then :
4668 <  $as_echo_n "(cached) " >&6
4669 < else
4670 <  ac_save_c_werror_flag=$ac_c_werror_flag
4671 <   ac_c_werror_flag=yes
4672 <   ac_cv_prog_cc_g=no
4673 <   CFLAGS="-g"
4674 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 < /* end confdefs.h.  */
4676 <
4677 < int
4678 < main ()
4679 < {
4680 <
4681 <  ;
4682 <  return 0;
4683 < }
4684 < _ACEOF
4685 < if ac_fn_c_try_compile "$LINENO"; then :
4686 <  ac_cv_prog_cc_g=yes
4687 < else
4688 <  CFLAGS=""
4689 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 < /* end confdefs.h.  */
4691 <
4692 < int
4693 < main ()
4694 < {
4695 <
4696 <  ;
4697 <  return 0;
4698 < }
4699 < _ACEOF
4700 < if ac_fn_c_try_compile "$LINENO"; then :
4701 <
4702 < else
4703 <  ac_c_werror_flag=$ac_save_c_werror_flag
4704 <         CFLAGS="-g"
4705 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 < /* end confdefs.h.  */
4707 <
4708 < int
4709 < main ()
4710 < {
4711 <
4712 <  ;
4713 <  return 0;
4714 < }
4715 < _ACEOF
4716 < if ac_fn_c_try_compile "$LINENO"; then :
4717 <  ac_cv_prog_cc_g=yes
4718 < fi
4719 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 < fi
4721 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 < fi
4723 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 <   ac_c_werror_flag=$ac_save_c_werror_flag
4725 < fi
4726 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4727 < $as_echo "$ac_cv_prog_cc_g" >&6; }
4728 < if test "$ac_test_CFLAGS" = set; then
4729 <  CFLAGS=$ac_save_CFLAGS
4730 < elif test $ac_cv_prog_cc_g = yes; then
4731 <  if test "$GCC" = yes; then
4732 <    CFLAGS="-g -O2"
4733 <  else
4734 <    CFLAGS="-g"
4735 <  fi
4736 < else
4737 <  if test "$GCC" = yes; then
4738 <    CFLAGS="-O2"
4739 <  else
4740 <    CFLAGS=
4741 <  fi
4742 < fi
4743 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4744 < $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4745 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
4746 <  $as_echo_n "(cached) " >&6
4747 < else
4748 <  ac_cv_prog_cc_c89=no
4749 < ac_save_CC=$CC
4750 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 < /* end confdefs.h.  */
4752 < #include <stdarg.h>
4753 < #include <stdio.h>
4754 < #include <sys/types.h>
4755 < #include <sys/stat.h>
4756 < /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4757 < struct buf { int x; };
4758 < FILE * (*rcsopen) (struct buf *, struct stat *, int);
4759 < static char *e (p, i)
4760 <     char **p;
4761 <     int i;
4762 < {
4763 <  return p[i];
4764 < }
4765 < static char *f (char * (*g) (char **, int), char **p, ...)
4766 < {
4767 <  char *s;
4768 <  va_list v;
4769 <  va_start (v,p);
4770 <  s = g (p, va_arg (v,int));
4771 <  va_end (v);
4772 <  return s;
4773 < }
4774 <
4775 < /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4776 <   function prototypes and stuff, but not '\xHH' hex character constants.
4777 <   These don't provoke an error unfortunately, instead are silently treated
4778 <   as 'x'.  The following induces an error, until -std is added to get
4779 <   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4780 <   array size at least.  It's necessary to write '\x00'==0 to get something
4781 <   that's true only with -std.  */
4782 < int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4783 <
4784 < /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4785 <   inside strings and character constants.  */
4786 < #define FOO(x) 'x'
4787 < int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4788 <
4789 < int test (int i, double x);
4790 < struct s1 {int (*f) (int a);};
4791 < struct s2 {int (*f) (double a);};
4792 < int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4793 < int argc;
4794 < char **argv;
4795 < int
4796 < main ()
4797 < {
4798 < return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4799 <  ;
4800 <  return 0;
4801 < }
4802 < _ACEOF
4803 < for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4804 <        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4805 < do
4806 <  CC="$ac_save_CC $ac_arg"
4807 <  if ac_fn_c_try_compile "$LINENO"; then :
4808 <  ac_cv_prog_cc_c89=$ac_arg
4809 < fi
4810 < rm -f core conftest.err conftest.$ac_objext
4811 <  test "x$ac_cv_prog_cc_c89" != "xno" && break
4812 < done
4813 < rm -f conftest.$ac_ext
4814 < CC=$ac_save_CC
4815 <
4816 < fi
4817 < # AC_CACHE_VAL
4818 < case "x$ac_cv_prog_cc_c89" in
4819 <  x)
4820 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4821 < $as_echo "none needed" >&6; } ;;
4822 <  xno)
4823 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4824 < $as_echo "unsupported" >&6; } ;;
4825 <  *)
4826 <    CC="$CC $ac_cv_prog_cc_c89"
4827 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5866 < $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5867 < esac
5868 < if test "x$ac_cv_prog_cc_c89" != xno; then :
5869 <
5870 < fi
5871 <
5872 < ac_ext=${ac_fc_srcext-f}
5873 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5874 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5875 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5876 <
5877 < ac_ext=${ac_fc_srcext-f}
5878 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5879 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5880 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5881 < if test -n "$ac_tool_prefix"; then
5882 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
5883 <  do
5884 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5885 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5886 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 < $as_echo_n "checking for $ac_word... " >&6; }
5888 < if test "${ac_cv_prog_FC+set}" = set; then :
5889 <  $as_echo_n "(cached) " >&6
5890 < else
5891 <  if test -n "$FC"; then
5892 <  ac_cv_prog_FC="$FC" # Let the user override the test.
5893 < else
5894 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 < for as_dir in $PATH
5896 < do
5897 <  IFS=$as_save_IFS
5898 <  test -z "$as_dir" && as_dir=.
5899 <    for ac_exec_ext in '' $ac_executable_extensions; do
5900 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901 <    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5902 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 <    break 2
5904 <  fi
5905 < done
5906 <  done
5907 < IFS=$as_save_IFS
5908 <
5909 < fi
5910 < fi
5911 < FC=$ac_cv_prog_FC
5912 < if test -n "$FC"; then
5913 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
5914 < $as_echo "$FC" >&6; }
5915 < else
5916 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 < $as_echo "no" >&6; }
5918 < fi
5919 <
5920 <
5921 <    test -n "$FC" && break
5922 <  done
5923 < fi
5924 < if test -z "$FC"; then
5925 <  ac_ct_FC=$FC
5926 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
5927 < do
5928 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
5929 < set dummy $ac_prog; ac_word=$2
5930 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931 < $as_echo_n "checking for $ac_word... " >&6; }
5932 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
5933 <  $as_echo_n "(cached) " >&6
5934 < else
5935 <  if test -n "$ac_ct_FC"; then
5936 <  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
5937 < else
5938 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 < for as_dir in $PATH
5940 < do
5941 <  IFS=$as_save_IFS
5942 <  test -z "$as_dir" && as_dir=.
5943 <    for ac_exec_ext in '' $ac_executable_extensions; do
5944 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5945 <    ac_cv_prog_ac_ct_FC="$ac_prog"
5946 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 <    break 2
5948 <  fi
5949 < done
5950 <  done
5951 < IFS=$as_save_IFS
5952 <
5953 < fi
5954 < fi
5955 < ac_ct_FC=$ac_cv_prog_ac_ct_FC
5956 < if test -n "$ac_ct_FC"; then
5957 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
5958 < $as_echo "$ac_ct_FC" >&6; }
5959 < else
5960 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961 < $as_echo "no" >&6; }
5962 < fi
5963 <
5964 <
5965 <  test -n "$ac_ct_FC" && break
5966 < done
5967 <
5968 <  if test "x$ac_ct_FC" = x; then
5969 <    FC=""
5970 <  else
5971 <    case $cross_compiling:$ac_tool_warned in
5972 < yes:)
5973 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975 < ac_tool_warned=yes ;;
5976 < esac
5977 <    FC=$ac_ct_FC
5978 <  fi
5979 < fi
5980 <
5981 <
5982 < # Provide some information about the compiler.
5983 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
5984 < set X $ac_compile
5985 < ac_compiler=$2
5986 < for ac_option in --version -v -V -qversion; do
5987 <  { { ac_try="$ac_compiler $ac_option >&5"
5988 < case "(($ac_try" in
5989 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 <  *) ac_try_echo=$ac_try;;
5991 < esac
5992 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5993 < $as_echo "$ac_try_echo"; } >&5
5994 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5995 <  ac_status=$?
5996 <  if test -s conftest.err; then
5997 <    sed '10a\
5998 < ... rest of stderr output deleted ...
5999 <         10q' conftest.err >conftest.er1
6000 <    cat conftest.er1 >&5
6001 <    rm -f conftest.er1 conftest.err
6002 <  fi
6003 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6004 <  test $ac_status = 0; }
6005 < done
6006 < rm -f a.out
6007 <
6008 < # If we don't use `.F' as extension, the preprocessor is not run on the
6009 < # input file.  (Note that this only needs to work for GNU compilers.)
6010 < ac_save_ext=$ac_ext
6011 < ac_ext=F
6012 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
6013 < $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
6014 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
6015 <  $as_echo_n "(cached) " >&6
6016 < else
6017 <  cat > conftest.$ac_ext <<_ACEOF
6018 <      program main
6019 < #ifndef __GNUC__
6020 <       choke me
6021 < #endif
6022 <
6023 <      end
6024 < _ACEOF
6025 < if ac_fn_fc_try_compile "$LINENO"; then :
6026 <  ac_compiler_gnu=yes
6027 < else
6028 <  ac_compiler_gnu=no
6029 < fi
6030 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 < ac_cv_fc_compiler_gnu=$ac_compiler_gnu
6032 <
6033 < fi
6034 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
6035 < $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
6036 < ac_ext=$ac_save_ext
6037 < ac_test_FCFLAGS=${FCFLAGS+set}
6038 < ac_save_FCFLAGS=$FCFLAGS
6039 < FCFLAGS=
6040 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
6041 < $as_echo_n "checking whether $FC accepts -g... " >&6; }
6042 < if test "${ac_cv_prog_fc_g+set}" = set; then :
6043 <  $as_echo_n "(cached) " >&6
6044 < else
6045 <  FCFLAGS=-g
6046 < cat > conftest.$ac_ext <<_ACEOF
6047 <      program main
6048 <
6049 <      end
6050 < _ACEOF
6051 < if ac_fn_fc_try_compile "$LINENO"; then :
6052 <  ac_cv_prog_fc_g=yes
6053 < else
6054 <  ac_cv_prog_fc_g=no
6055 < fi
6056 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 <
6058 < fi
6059 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
6060 < $as_echo "$ac_cv_prog_fc_g" >&6; }
6061 < if test "$ac_test_FCFLAGS" = set; then
6062 <  FCFLAGS=$ac_save_FCFLAGS
6063 < elif test $ac_cv_prog_fc_g = yes; then
6064 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
6065 <    FCFLAGS="-g -O2"
6066 <  else
6067 <    FCFLAGS="-g"
6068 <  fi
6069 < else
6070 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
6071 <    FCFLAGS="-O2"
6072 <  else
6073 <    FCFLAGS=
6074 <  fi
6075 < fi
6076 <
6077 < ac_ext=${ac_fc_srcext-f}
6078 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6079 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6080 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6081 <
6082 < ac_ext=c
6083 < ac_cpp='$CPP $CPPFLAGS'
6084 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6085 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6086 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
6087 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6088 < $as_echo_n "checking how to run the C preprocessor... " >&6; }
6089 < # On Suns, sometimes $CPP names a directory.
6090 < if test -n "$CPP" && test -d "$CPP"; then
6091 <  CPP=
6092 < fi
6093 < if test -z "$CPP"; then
6094 <  if test "${ac_cv_prog_CPP+set}" = set; then :
6095 <  $as_echo_n "(cached) " >&6
6096 < else
6097 <      # Double quotes because CPP needs to be expanded
6098 <    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6099 <    do
6100 <      ac_preproc_ok=false
6101 < for ac_c_preproc_warn_flag in '' yes
6102 < do
6103 <  # Use a header file that comes with gcc, so configuring glibc
6104 <  # with a fresh cross-compiler works.
6105 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6106 <  # <limits.h> exists even on freestanding compilers.
6107 <  # On the NeXT, cc -E runs the code through the compiler's parser,
6108 <  # not just through cpp. "Syntax error" is here to catch this case.
6109 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 < /* end confdefs.h.  */
6111 < #ifdef __STDC__
6112 < # include <limits.h>
6113 < #else
6114 < # include <assert.h>
6115 < #endif
6116 <                     Syntax error
6117 < _ACEOF
6118 < if ac_fn_c_try_cpp "$LINENO"; then :
6119 <
6120 < else
6121 <  # Broken: fails on valid input.
6122 < continue
6123 < fi
6124 < rm -f conftest.err conftest.$ac_ext
6125 <
6126 <  # OK, works on sane cases.  Now check whether nonexistent headers
6127 <  # can be detected and how.
6128 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 < /* end confdefs.h.  */
6130 < #include <ac_nonexistent.h>
6131 < _ACEOF
6132 < if ac_fn_c_try_cpp "$LINENO"; then :
6133 <  # Broken: success on invalid input.
6134 < continue
6135 < else
6136 <  # Passes both tests.
6137 < ac_preproc_ok=:
6138 < break
6139 < fi
6140 < rm -f conftest.err conftest.$ac_ext
6141 <
6142 < done
6143 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6144 < rm -f conftest.err conftest.$ac_ext
6145 < if $ac_preproc_ok; then :
6146 <  break
6147 < fi
6148 <
6149 <    done
6150 <    ac_cv_prog_CPP=$CPP
6151 <
6152 < fi
6153 <  CPP=$ac_cv_prog_CPP
6154 < else
6155 <  ac_cv_prog_CPP=$CPP
6156 < fi
6157 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6158 < $as_echo "$CPP" >&6; }
6159 < ac_preproc_ok=false
6160 < for ac_c_preproc_warn_flag in '' yes
6161 < do
6162 <  # Use a header file that comes with gcc, so configuring glibc
6163 <  # with a fresh cross-compiler works.
6164 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6165 <  # <limits.h> exists even on freestanding compilers.
6166 <  # On the NeXT, cc -E runs the code through the compiler's parser,
6167 <  # not just through cpp. "Syntax error" is here to catch this case.
6168 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 < /* end confdefs.h.  */
6170 < #ifdef __STDC__
6171 < # include <limits.h>
6172 < #else
6173 < # include <assert.h>
6174 < #endif
6175 <                     Syntax error
6176 < _ACEOF
6177 < if ac_fn_c_try_cpp "$LINENO"; then :
6178 <
6179 < else
6180 <  # Broken: fails on valid input.
6181 < continue
6182 < fi
6183 < rm -f conftest.err conftest.$ac_ext
6184 <
6185 <  # OK, works on sane cases.  Now check whether nonexistent headers
6186 <  # can be detected and how.
6187 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 < /* end confdefs.h.  */
6189 < #include <ac_nonexistent.h>
6190 < _ACEOF
6191 < if ac_fn_c_try_cpp "$LINENO"; then :
6192 <  # Broken: success on invalid input.
6193 < continue
6194 < else
6195 <  # Passes both tests.
6196 < ac_preproc_ok=:
6197 < break
6198 < fi
6199 < rm -f conftest.err conftest.$ac_ext
6200 <
6201 < done
6202 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6203 < rm -f conftest.err conftest.$ac_ext
6204 < if $ac_preproc_ok; then :
6205 <
6206 < else
6207 <  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6208 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6209 < as_fn_error "C preprocessor \"$CPP\" fails sanity check
6210 < See \`config.log' for more details." "$LINENO" 5; }
6211 < fi
6212 <
6213 < ac_ext=${ac_fc_srcext-f}
6214 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6215 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6216 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6217 <
6218 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6219 < $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6220 < if test "${ac_cv_path_GREP+set}" = set; then :
6221 <  $as_echo_n "(cached) " >&6
6222 < else
6223 <  if test -z "$GREP"; then
6224 <  ac_path_GREP_found=false
6225 <  # Loop through the user's path and test for each of PROGNAME-LIST
6226 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 < for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6228 < do
6229 <  IFS=$as_save_IFS
6230 <  test -z "$as_dir" && as_dir=.
6231 <    for ac_prog in grep ggrep; do
6232 <    for ac_exec_ext in '' $ac_executable_extensions; do
6233 <      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6234 <      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6235 < # Check for GNU ac_path_GREP and select it if it is found.
6236 <  # Check for GNU $ac_path_GREP
6237 < case `"$ac_path_GREP" --version 2>&1` in
6238 < *GNU*)
6239 <  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6240 < *)
6241 <  ac_count=0
6242 <  $as_echo_n 0123456789 >"conftest.in"
6243 <  while :
6244 <  do
6245 <    cat "conftest.in" "conftest.in" >"conftest.tmp"
6246 <    mv "conftest.tmp" "conftest.in"
6247 <    cp "conftest.in" "conftest.nl"
6248 <    $as_echo 'GREP' >> "conftest.nl"
6249 <    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6250 <    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6251 <    as_fn_arith $ac_count + 1 && ac_count=$as_val
6252 <    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6253 <      # Best one so far, save it but keep looking for a better one
6254 <      ac_cv_path_GREP="$ac_path_GREP"
6255 <      ac_path_GREP_max=$ac_count
6256 <    fi
6257 <    # 10*(2^10) chars as input seems more than enough
6258 <    test $ac_count -gt 10 && break
6259 <  done
6260 <  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6261 < esac
6262 <
6263 <      $ac_path_GREP_found && break 3
6264 <    done
6265 <  done
6266 <  done
6267 < IFS=$as_save_IFS
6268 <  if test -z "$ac_cv_path_GREP"; then
6269 <    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6270 <  fi
6271 < else
6272 <  ac_cv_path_GREP=$GREP
6273 < fi
6274 <
6275 < fi
6276 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6277 < $as_echo "$ac_cv_path_GREP" >&6; }
6278 < GREP="$ac_cv_path_GREP"
6279 <
6280 <
6281 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6282 < $as_echo_n "checking for egrep... " >&6; }
6283 < if test "${ac_cv_path_EGREP+set}" = set; then :
6284 <  $as_echo_n "(cached) " >&6
6285 < else
6286 <  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6287 <   then ac_cv_path_EGREP="$GREP -E"
6288 <   else
6289 <     if test -z "$EGREP"; then
6290 <  ac_path_EGREP_found=false
6291 <  # Loop through the user's path and test for each of PROGNAME-LIST
6292 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 < for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6294 < do
6295 <  IFS=$as_save_IFS
6296 <  test -z "$as_dir" && as_dir=.
6297 <    for ac_prog in egrep; do
6298 <    for ac_exec_ext in '' $ac_executable_extensions; do
6299 <      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6300 <      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6301 < # Check for GNU ac_path_EGREP and select it if it is found.
6302 <  # Check for GNU $ac_path_EGREP
6303 < case `"$ac_path_EGREP" --version 2>&1` in
6304 < *GNU*)
6305 <  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6306 < *)
6307 <  ac_count=0
6308 <  $as_echo_n 0123456789 >"conftest.in"
6309 <  while :
6310 <  do
6311 <    cat "conftest.in" "conftest.in" >"conftest.tmp"
6312 <    mv "conftest.tmp" "conftest.in"
6313 <    cp "conftest.in" "conftest.nl"
6314 <    $as_echo 'EGREP' >> "conftest.nl"
6315 <    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6316 <    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6317 <    as_fn_arith $ac_count + 1 && ac_count=$as_val
6318 <    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6319 <      # Best one so far, save it but keep looking for a better one
6320 <      ac_cv_path_EGREP="$ac_path_EGREP"
6321 <      ac_path_EGREP_max=$ac_count
6322 <    fi
6323 <    # 10*(2^10) chars as input seems more than enough
6324 <    test $ac_count -gt 10 && break
6325 <  done
6326 <  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6327 < esac
6328 <
6329 <      $ac_path_EGREP_found && break 3
6330 <    done
6331 <  done
6332 <  done
6333 < IFS=$as_save_IFS
6334 <  if test -z "$ac_cv_path_EGREP"; then
6335 <    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6336 <  fi
6337 < else
6338 <  ac_cv_path_EGREP=$EGREP
6339 < fi
6340 <
6341 <   fi
6342 < fi
6343 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6344 < $as_echo "$ac_cv_path_EGREP" >&6; }
6345 < EGREP="$ac_cv_path_EGREP"
6346 <
6347 <
6348 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6349 < $as_echo_n "checking whether ln -s works... " >&6; }
6350 < LN_S=$as_ln_s
6351 < if test "$LN_S" = "ln -s"; then
6352 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6353 < $as_echo "yes" >&6; }
6354 < else
6355 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6356 < $as_echo "no, using $LN_S" >&6; }
6357 < fi
6358 <
6359 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6360 < $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6361 < set x ${MAKE-make}
6362 < ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6363 < if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6364 <  $as_echo_n "(cached) " >&6
6365 < else
6366 <  cat >conftest.make <<\_ACEOF
6367 < SHELL = /bin/sh
6368 < all:
6369 <        @echo '@@@%%%=$(MAKE)=@@@%%%'
6370 < _ACEOF
6371 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6372 < case `${MAKE-make} -f conftest.make 2>/dev/null` in
6373 <  *@@@%%%=?*=@@@%%%*)
6374 <    eval ac_cv_prog_make_${ac_make}_set=yes;;
6375 <  *)
6376 <    eval ac_cv_prog_make_${ac_make}_set=no;;
6377 < esac
6378 < rm -f conftest.make
6379 < fi
6380 < if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6381 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6382 < $as_echo "yes" >&6; }
6383 <  SET_MAKE=
6384 < else
6385 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 < $as_echo "no" >&6; }
6387 <  SET_MAKE="MAKE=${MAKE-make}"
6388 < fi
6389 <
6390 < if test -n "$ac_tool_prefix"; then
6391 <  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6392 < set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6393 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 < $as_echo_n "checking for $ac_word... " >&6; }
6395 < if test "${ac_cv_prog_RANLIB+set}" = set; then :
6396 <  $as_echo_n "(cached) " >&6
6397 < else
6398 <  if test -n "$RANLIB"; then
6399 <  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6400 < else
6401 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 < for as_dir in $PATH
6403 < do
6404 <  IFS=$as_save_IFS
6405 <  test -z "$as_dir" && as_dir=.
6406 <    for ac_exec_ext in '' $ac_executable_extensions; do
6407 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 <    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6409 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 <    break 2
6411 <  fi
6412 < done
6413 <  done
6414 < IFS=$as_save_IFS
6415 <
6416 < fi
6417 < fi
6418 < RANLIB=$ac_cv_prog_RANLIB
6419 < if test -n "$RANLIB"; then
6420 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6421 < $as_echo "$RANLIB" >&6; }
6422 < else
6423 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 < $as_echo "no" >&6; }
6425 < fi
6426 <
6427 <
6428 < fi
6429 < if test -z "$ac_cv_prog_RANLIB"; then
6430 <  ac_ct_RANLIB=$RANLIB
6431 <  # Extract the first word of "ranlib", so it can be a program name with args.
6432 < set dummy ranlib; ac_word=$2
6433 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 < $as_echo_n "checking for $ac_word... " >&6; }
6435 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6436 <  $as_echo_n "(cached) " >&6
6437 < else
6438 <  if test -n "$ac_ct_RANLIB"; then
6439 <  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6440 < else
6441 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 < for as_dir in $PATH
6443 < do
6444 <  IFS=$as_save_IFS
6445 <  test -z "$as_dir" && as_dir=.
6446 <    for ac_exec_ext in '' $ac_executable_extensions; do
6447 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448 <    ac_cv_prog_ac_ct_RANLIB="ranlib"
6449 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 <    break 2
6451 <  fi
6452 < done
6453 <  done
6454 < IFS=$as_save_IFS
6455 <
6456 < fi
6457 < fi
6458 < ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6459 < if test -n "$ac_ct_RANLIB"; then
6460 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6461 < $as_echo "$ac_ct_RANLIB" >&6; }
6462 < else
6463 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 < $as_echo "no" >&6; }
6465 < fi
6466 <
6467 <  if test "x$ac_ct_RANLIB" = x; then
6468 <    RANLIB=":"
6469 <  else
6470 <    case $cross_compiling:$ac_tool_warned in
6471 < yes:)
6472 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6473 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6474 < ac_tool_warned=yes ;;
6475 < esac
6476 <    RANLIB=$ac_ct_RANLIB
6477 <  fi
6478 < else
6479 <  RANLIB="$ac_cv_prog_RANLIB"
6480 < fi
6481 <
6482 <
6483 <   # Extract the first word of "perl", so it can be a program name with args.
6484 < set dummy perl; ac_word=$2
6485 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 < $as_echo_n "checking for $ac_word... " >&6; }
6487 < if test "${ac_cv_path_PERLINTERP+set}" = set; then :
6488 <  $as_echo_n "(cached) " >&6
6489 < else
6490 <  case $PERLINTERP in
6491 <  [\\/]* | ?:[\\/]*)
6492 <  ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
6493 <  ;;
6494 <  *)
6495 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 < for as_dir in $PATH
6497 < do
6498 <  IFS=$as_save_IFS
6499 <  test -z "$as_dir" && as_dir=.
6500 <    for ac_exec_ext in '' $ac_executable_extensions; do
6501 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 <    ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
6503 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 <    break 2
6505 <  fi
6506 < done
6507 <  done
6508 < IFS=$as_save_IFS
6509 <
6510 <  test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
6511 <  ;;
6512 < esac
6513 < fi
6514 < PERLINTERP=$ac_cv_path_PERLINTERP
6515 < if test -n "$PERLINTERP"; then
6516 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLINTERP" >&5
6517 < $as_echo "$PERLINTERP" >&6; }
6518 < else
6519 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 < $as_echo "no" >&6; }
6521 < fi
6522 <
6523 <
6524 <   ac_cv_path_perlinterp="$PERLINTERP"
6525 <   _sHpB='#!'
6526 <
6527 <
6528 < # Check whether --with-perl-shebang was given.
6529 < if test "${with_perl_shebang+set}" = set; then :
6530 <  withval=$with_perl_shebang; opt_perl_shebang="$withval"
6531 < else
6532 <                opt_perl_shebang="not_set"
6533 < fi
6534 <
6535 <   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5
6536 < $as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; }
6537 < if test "${ax_cv_opt_perl_shebang+set}" = set; then :
6538 <  $as_echo_n "(cached) " >&6
6539 < else
6540 <   case "$opt_perl_shebang" in
6541 <                      not_set  ) ax_cv_opt_perl_shebang=''
6542 <                               ;;
6543 <                         *     )
6544 <        ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
6545 <                    esac
6546 <
6547 < fi
6548 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_opt_perl_shebang" >&5
6549 < $as_echo "$ax_cv_opt_perl_shebang" >&6; }
6550 <   if test "A$ax_cv_opt_perl_shebang" != "A"
6551 <     then
6552 <       ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
6553 <       PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
6554 <              { $as_echo "$as_me:${as_lineno-$LINENO}: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
6555 < $as_echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
6556 <
6557 < # Automatic detection of sharpbang formula starts here
6558 <     else
6559 <   _somian_shbangperl=`$PERLINTERP -V:startperl`
6560 <   negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
6561 <   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5
6562 < $as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; }
6563 < if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then :
6564 <  $as_echo_n "(cached) " >&6
6565 < else
6566 <  _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
6567 <        if test "x$_somian_kspb_perl" == x
6568 <          then _somian_ksbp_warn_empty='durnit'
6569 <          else
6570 <          case "A$_somian_kspb_perl" in
6571 <                 A#!*perl* )
6572 <           ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
6573 <                        ;;
6574 <                     A*    )  _somian_ksbp_warn_defau='trouble'
6575 <                              ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
6576 <          esac
6577 <        fi
6578 <
6579 < fi
6580 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_kernshrpbang_perl" >&5
6581 < $as_echo "$ac_cv_sys_kernshrpbang_perl" >&6; }
6582 < # The above prints Checking ... result message to user.
6583 <   PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
6584 <
6585 <    if test A${_somian_ksbp_warn_empty+set} == Aset
6586 <      then   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
6587 < $as_echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
6588 <    fi
6589 < # Inform user after printing result value
6590 <    if test A${_somian_ksbp_warn_defau+set} == Aset
6591 <      then { $as_echo "$as_me:${as_lineno-$LINENO}: Maybe Not good -" >&5
6592 < $as_echo "$as_me: Maybe Not good -" >&6;}
6593 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
6594 < $as_echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
6595 <      else { $as_echo "$as_me:${as_lineno-$LINENO}: OK Good result - " >&5
6596 < $as_echo "$as_me: OK Good result - " >&6;}
6597 <           { $as_echo "$as_me:${as_lineno-$LINENO}: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
6598 < $as_echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
6599 <    fi
6600 <  fi
6601 <
6602 < # Find a good install program.  We prefer a C program (faster),
6603 < # so one script is as good as another.  But avoid the broken or
6604 < # incompatible versions:
6605 < # SysV /etc/install, /usr/sbin/install
6606 < # SunOS /usr/etc/install
6607 < # IRIX /sbin/install
6608 < # AIX /bin/install
6609 < # AmigaOS /C/install, which installs bootblocks on floppy discs
6610 < # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6611 < # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6612 < # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6613 < # OS/2's system install, which has a completely different semantic
6614 < # ./install, which can be erroneously created by make from ./install.sh.
6615 < # Reject install programs that cannot install multiple files.
6616 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6617 < $as_echo_n "checking for a BSD-compatible install... " >&6; }
6618 < if test -z "$INSTALL"; then
6619 < if test "${ac_cv_path_install+set}" = set; then :
6620 <  $as_echo_n "(cached) " >&6
6621 < else
6622 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 < for as_dir in $PATH
6624 < do
6625 <  IFS=$as_save_IFS
6626 <  test -z "$as_dir" && as_dir=.
6627 <    # Account for people who put trailing slashes in PATH elements.
6628 < case $as_dir/ in #((
6629 <  ./ | .// | /[cC]/* | \
6630 <  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6631 <  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6632 <  /usr/ucb/* ) ;;
6633 <  *)
6634 <    # OSF1 and SCO ODT 3.0 have their own names for install.
6635 <    # Don't use installbsd from OSF since it installs stuff as root
6636 <    # by default.
6637 <    for ac_prog in ginstall scoinst install; do
6638 <      for ac_exec_ext in '' $ac_executable_extensions; do
6639 <        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6640 <          if test $ac_prog = install &&
6641 <            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6642 <            # AIX install.  It has an incompatible calling convention.
6643 <            :
6644 <          elif test $ac_prog = install &&
6645 <            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6646 <            # program-specific install script used by HP pwplus--don't use.
6647 <            :
6648 <          else
6649 <            rm -rf conftest.one conftest.two conftest.dir
6650 <            echo one > conftest.one
6651 <            echo two > conftest.two
6652 <            mkdir conftest.dir
6653 <            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6654 <              test -s conftest.one && test -s conftest.two &&
6655 <              test -s conftest.dir/conftest.one &&
6656 <              test -s conftest.dir/conftest.two
6657 <            then
6658 <              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6659 <              break 3
6660 <            fi
6661 <          fi
6662 <        fi
6663 <      done
6664 <    done
6665 <    ;;
6666 < esac
6667 <
6668 <  done
6669 < IFS=$as_save_IFS
6670 <
6671 < rm -rf conftest.one conftest.two conftest.dir
6672 <
6673 < fi
6674 <  if test "${ac_cv_path_install+set}" = set; then
6675 <    INSTALL=$ac_cv_path_install
6676 <  else
6677 <    # As a last resort, use the slow shell script.  Don't cache a
6678 <    # value for INSTALL within a source directory, because that will
6679 <    # break other packages using the cache if that directory is
6680 <    # removed, or if the value is a relative name.
6681 <    INSTALL=$ac_install_sh
6682 <  fi
6683 < fi
6684 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6685 < $as_echo "$INSTALL" >&6; }
6686 <
6687 < # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6688 < # It thinks the first close brace ends the variable substitution.
6689 < test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6690 <
6691 < test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6692 <
6693 < test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6694 <
6695 < case "x$INSTALL" in
6696 <   x/*) ;;
6697 <   *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
6698 < esac
6699 < MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
6700 < # Extract the first word of "ar", so it can be a program name with args.
6701 < set dummy ar; ac_word=$2
6702 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 < $as_echo_n "checking for $ac_word... " >&6; }
6704 < if test "${ac_cv_prog_AR+set}" = set; then :
6705 <  $as_echo_n "(cached) " >&6
6706 < else
6707 <  if test -n "$AR"; then
6708 <  ac_cv_prog_AR="$AR" # Let the user override the test.
6709 < else
6710 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 < for as_dir in $PATH
6712 < do
6713 <  IFS=$as_save_IFS
6714 <  test -z "$as_dir" && as_dir=.
6715 <    for ac_exec_ext in '' $ac_executable_extensions; do
6716 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 <    ac_cv_prog_AR="ar"
6718 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 <    break 2
6720 <  fi
6721 < done
6722 <  done
6723 < IFS=$as_save_IFS
6724 <
6725 <  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
6726 < fi
6727 < fi
6728 < AR=$ac_cv_prog_AR
6729 < if test -n "$AR"; then
6730 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6731 < $as_echo "$AR" >&6; }
6732 < else
6733 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 < $as_echo "no" >&6; }
6735 < fi
6736 <
6737 <
6738 < if test "$AR" = "NONE"; then
6739 <  cat >confcache <<\_ACEOF
6740 < # This file is a shell script that caches the results of configure
6741 < # tests run on this system so they can be shared between configure
6742 < # scripts and configure runs, see configure's option --config-cache.
6743 < # It is not useful on other systems.  If it contains results you don't
6744 < # want to keep, you may remove or edit it.
6745 < #
6746 < # config.status only pays attention to the cache file if you give it
6747 < # the --recheck option to rerun configure.
6748 < #
6749 < # `ac_cv_env_foo' variables (set or unset) will be overridden when
6750 < # loading this file, other *unset* `ac_cv_foo' will be assigned the
6751 < # following values.
6752 <
6753 < _ACEOF
6754 <
6755 < # The following way of writing the cache mishandles newlines in values,
6756 < # but we know of no workaround that is simple, portable, and efficient.
6757 < # So, we kill variables containing newlines.
6758 < # Ultrix sh set writes to stderr and can't be redirected directly,
6759 < # and sets the high bit in the cache file unless we assign to the vars.
6760 < (
6761 <  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6762 <    eval ac_val=\$$ac_var
6763 <    case $ac_val in #(
6764 <    *${as_nl}*)
6765 <      case $ac_var in #(
6766 <      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6767 < $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6768 <      esac
6769 <      case $ac_var in #(
6770 <      _ | IFS | as_nl) ;; #(
6771 <      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6772 <      *) { eval $ac_var=; unset $ac_var;} ;;
6773 <      esac ;;
6774 <    esac
6775 <  done
6776 <
6777 <  (set) 2>&1 |
6778 <    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6779 <    *${as_nl}ac_space=\ *)
6780 <      # `set' does not quote correctly, so add quotes: double-quote
6781 <      # substitution turns \\\\ into \\, and sed turns \\ into \.
6782 <      sed -n \
6783 <        "s/'/'\\\\''/g;
6784 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6785 <      ;; #(
6786 <    *)
6787 <      # `set' quotes correctly as required by POSIX, so do not add quotes.
6788 <      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6789 <      ;;
6790 <    esac |
6791 <    sort
6792 < ) |
6793 <  sed '
6794 <     /^ac_cv_env_/b end
6795 <     t clear
6796 <     :clear
6797 <     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6798 <     t end
6799 <     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6800 <     :end' >>confcache
6801 < if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6802 <  if test -w "$cache_file"; then
6803 <    test "x$cache_file" != "x/dev/null" &&
6804 <      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6805 < $as_echo "$as_me: updating cache $cache_file" >&6;}
6806 <    cat confcache >$cache_file
6807 <  else
6808 <    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6809 < $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6810 <  fi
6811 < fi
6812 < rm -f confcache
6813 <  exit 1
6814 < fi
6815 < # Extract the first word of "ps", so it can be a program name with args.
6816 < set dummy ps; ac_word=$2
6817 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 < $as_echo_n "checking for $ac_word... " >&6; }
6819 < if test "${ac_cv_path_PS+set}" = set; then :
6820 <  $as_echo_n "(cached) " >&6
6821 < else
6822 <  case $PS in
6823 <  [\\/]* | ?:[\\/]*)
6824 <  ac_cv_path_PS="$PS" # Let the user override the test with a path.
6825 <  ;;
6826 <  *)
6827 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 < for as_dir in $PATH
6829 < do
6830 <  IFS=$as_save_IFS
6831 <  test -z "$as_dir" && as_dir=.
6832 <    for ac_exec_ext in '' $ac_executable_extensions; do
6833 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 <    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
6835 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 <    break 2
6837 <  fi
6838 < done
6839 <  done
6840 < IFS=$as_save_IFS
6841 <
6842 <  ;;
6843 < esac
6844 < fi
6845 < PS=$ac_cv_path_PS
6846 < if test -n "$PS"; then
6847 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
6848 < $as_echo "$PS" >&6; }
6849 < else
6850 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 < $as_echo "no" >&6; }
6852 < fi
6853 <
6854 <
6855 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX or BSD ps syntax" >&5
6856 < $as_echo_n "checking for POSIX or BSD ps syntax... " >&6; }
6857 < if test "${ac_cv_prog_ps_syntax+set}" = set; then :
6858 <  $as_echo_n "(cached) " >&6
6859 < else
6860 <
6861 <        if $PS ax -o rss > /dev/null 2>&1; then
6862 <                ac_cv_prog_ps_ax=yes
6863 <        else
6864 <                ac_cv_prog_ps_ax=no
6865 <        fi
6866 <        if $PS -ef -o rss > /dev/null 2>&1; then
6867 <                ac_cv_prog_ps_ef=yes
6868 <        else
6869 <                ac_cv_prog_ps_ef=no
6870 <        fi
6871 <        if test "$ac_cv_prog_ps_ax" = yes; then
6872 <                ac_cv_prog_ps_syntax=BSD
6873 <        else
6874 <                if test "$ac_cv_prog_ps_ef" = yes; then
6875 <                        ac_cv_prog_ps_syntax=POSIX
6876 <                else
6877 <                        as_fn_error "Could not determine ps syntax" "$LINENO" 5
6878 <                fi
6879 <        fi
6880 <
6881 < fi
6882 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_ps_syntax" >&5
6883 < $as_echo "$ac_cv_prog_ps_syntax" >&6; }
6884 <
6885 < cat >>confdefs.h <<_ACEOF
6886 < #define PSCOMMAND $PS
6887 < _ACEOF
6888 <
6889 < if test "$ac_cv_prog_ps_syntax" = BSD; then
6890 <
6891 < $as_echo "#define PSTYPE_IS_BSD 1" >>confdefs.h
6892 <
6893 < else
6894 <   if test "$ac_cv_prog_ps_syntax" = POSIX; then
6895 <
6896 < $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
6897 <
6898 <   else
6899 <       as_fn_error "Unknown ps syntax type!" "$LINENO" 5
6900 <   fi
6901 < fi
6902 <
6903 < ac_ext=${ac_fc_srcext-f}
6904 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6905 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6906 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6907 <
6908 < ac_ext=${ac_fc_srcext-f}
6909 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6910 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6911 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6912 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5
6913 < $as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; }
6914 < if test "${ac_cv_fc_srcext_F90+set}" = set; then :
6915 <  $as_echo_n "(cached) " >&6
6916 < else
6917 <  ac_ext=F90
6918 < ac_fcflags_srcext_save=$ac_fcflags_srcext
6919 < ac_fcflags_srcext=
6920 < ac_cv_fc_srcext_F90=unknown
6921 < for ac_flag in none -qsuffix=f=F90 -Tf; do
6922 <  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
6923 <  cat > conftest.$ac_ext <<_ACEOF
6924 <      program main
6925 <
6926 <      end
6927 < _ACEOF
6928 < if ac_fn_fc_try_compile "$LINENO"; then :
6929 <  ac_cv_fc_srcext_F90=$ac_flag; break
6930 < fi
6931 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932 < done
6933 < rm -f conftest.$ac_objext conftest.F90
6934 < ac_fcflags_srcext=$ac_fcflags_srcext_save
6935 <
6936 < fi
6937 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5
6938 < $as_echo "$ac_cv_fc_srcext_F90" >&6; }
6939 < if test "x$ac_cv_fc_srcext_F90" = xunknown; then
6940 <  as_fn_error "Fortran could not compile .F90 files" "$LINENO" 5
6941 < else
6942 <  ac_fc_srcext=F90
6943 <  if test "x$ac_cv_fc_srcext_F90" = xnone; then
6944 <    ac_fcflags_srcext=""
6945 <    FCFLAGS_F90=""
6946 <  else
6947 <    ac_fcflags_srcext=$ac_cv_fc_srcext_F90
6948 <    FCFLAGS_F90=$ac_cv_fc_srcext_F90
6949 <  fi
6950 <
6951 <
6952 < fi
6953 < ac_ext=${ac_fc_srcext-f}
6954 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6955 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6956 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6957 <
6958 <
6959 <
6960 <
6961 <
6962 < # Try to determine native compiler flags that allow us to use F90 suffix
6963 < # for preprocessed f90 source.
6964 <
6965 < if test "$ac_test_PREPFLAG" != "set"; then
6966 <  PREPFLAG=""
6967 <  case "${host_cpu}-${host_os}" in
6968 <
6969 <  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
6970 <                    PREPFLAG="-fpp1 "
6971 <                fi;;
6972 <  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
6973 <                    PREPFLAG="-qsuffix=cpp=F90 "
6974 <                fi;;
6975 <  *darwin*)
6976 <        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
6977 <                PREPFLAG="-qsuffix=cpp=F90 "
6978 <        fi;;
6979 <  esac
6980 <
6981 <  if test -z "$PREPFLAG"; then
6982 <        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPFLAG\"" >&5
6983 < $as_echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
6984 <        PREPFLAG=""
6985 <  fi
6986 <
6987 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor flag works" >&5
6988 < $as_echo_n "checking to make sure F90 preprocessor flag works... " >&6; }
6989 <
6990 <  ac_ext=${ac_fc_srcext-f}
6991 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6992 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6993 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6994 <
6995 <  ac_save_ext=$ac_ext
6996 <  ac_ext=F90
6997 <  ac_save_FCFLAGS_SRCEXT=$FCFLAGS_SRCEXT
6998 <
6999 <  if test "$PREPFLAG"; then :
7000 <  FCFLAGS_SRCEXT="${PREPFLAG}"
7001 < fi
7002 <    cat > conftest.$ac_ext <<_ACEOF
7003 <
7004 <
7005 < program conftest
7006 <  integer :: i
7007 <  i = 1
7008 < end program conftest
7009 <
7010 < _ACEOF
7011 < if ac_fn_fc_try_compile "$LINENO"; then :
7012 <  prepflagworks=1
7013 < else
7014 <  prepflagworks=0
7015 < fi
7016 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017 <
7018 <  FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT
7019 <  ac_ext=$ac_save_ext
7020 <  ac_ext=${ac_fc_srcext-f}
7021 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7022 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7023 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7024 <
7025 <
7026 <  if test "$prepflagworks" = 1; then
7027 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7028 < $as_echo "yes" >&6; }
7029 <    FCFLAGS_SRCEXT="${PREPFLAG}"
7030 <
7031 <  else
7032 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 < $as_echo "no" >&6; }
7034 <    as_fn_error "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5
7035 <  fi
7036 < fi
7037 <
7038 <
7039 <
7040 <
7041 <
7042 < # Try to determine native compiler flags that allow us to use F90 suffix
7043 < # for preprocessed f90 source with -D type defines
7044 <
7045 < if test "$ac_test_PREPDEFFLAG" != "set"; then
7046 <  PREPDEFFLAG=""
7047 <  case "${host_cpu}-${host_os}" in
7048 <
7049 <  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
7050 <                    PREPDEFFLAG=" "
7051 <                fi;;
7052 <  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
7053 <                    PREPDEFFLAG="-WF,"
7054 <                fi;;
7055 <  *darwin*)
7056 <        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
7057 <                PREPDEFFLAG="-WF,"
7058 <        fi;;
7059 <  esac
7060 <
7061 <  if test -z "$PREPDEFFLAG"; then
7062 <        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPDEFFLAG\"" >&5
7063 < $as_echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
7064 <        PREPDEFFLAG=" "
7065 <  fi
7066 <
7067 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor define flag works" >&5
7068 < $as_echo_n "checking to make sure F90 preprocessor define flag works... " >&6; }
7069 <
7070 <  ac_ext=${ac_fc_srcext-f}
7071 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7072 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7073 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7074 <
7075 <  ac_save_ext=$ac_ext
7076 <  ac_ext=F90
7077 <  ac_save_FCFLAGS=$FCFLAGS
7078 <
7079 <  if test "$PREPDEFFLAG"; then :
7080 <  FCFLAGS="${FCFLAGS} ${PREPDEFFLAG}-DTEST"
7081 < fi
7082 <    cat > conftest.$ac_ext <<_ACEOF
7083 <
7084 <
7085 < program conftest
7086 <  integer :: i
7087 < #ifdef TEST
7088 <  i = 1
7089 < #else
7090 <  choke me
7091 < #endif
7092 < end program conftest
7093 <
7094 < _ACEOF
7095 < if ac_fn_fc_try_compile "$LINENO"; then :
7096 <  prepdefflagworks=1
7097 < else
7098 <  prepdefflagworks=0
7099 < fi
7100 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101 <
7102 <  FCFLAGS=$ac_save_FCFLAGS
7103 <  ac_ext=$ac_save_ext
7104 <  ac_ext=${ac_fc_srcext-f}
7105 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7106 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7107 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7108 <
7109 <
7110 <  if test "$prepdefflagworks" = 1; then
7111 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7112 < $as_echo "yes" >&6; }
7113 <
7114 <  else
7115 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 < $as_echo "no" >&6; }
7117 <    as_fn_error "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5
7118 <  fi
7119 < fi
7120 <
7121 < ac_ext=${ac_fc_srcext-f}
7122 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7123 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7124 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7125 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
7126 < $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
7127 < if test "${ac_cv_prog_fc_v+set}" = set; then :
7128 <  $as_echo_n "(cached) " >&6
7129 < else
7130 <  cat > conftest.$ac_ext <<_ACEOF
7131 <      program main
7132 <
7133 <      end
7134 < _ACEOF
7135 < if ac_fn_fc_try_compile "$LINENO"; then :
7136 <  ac_cv_prog_fc_v=
7137 < # Try some options frequently used verbose output
7138 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
7139 <  cat > conftest.$ac_ext <<_ACEOF
7140 <      program main
7141 <
7142 <      end
7143 < _ACEOF
7144 <
7145 < # Compile and link our simple test program by passing a flag (argument
7146 < # 1 to this macro) to the Fortran compiler in order to get
7147 < # "verbose" output that we can then parse for the Fortran linker
7148 < # flags.
7149 < ac_save_FCFLAGS=$FCFLAGS
7150 < FCFLAGS="$FCFLAGS $ac_verb"
7151 < eval "set x $ac_link"
7152 < shift
7153 < $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7154 < # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7155 < # LIBRARY_PATH; skip all such settings.
7156 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7157 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7158 < $as_echo "$ac_fc_v_output" >&5
7159 < FCFLAGS=$ac_save_FCFLAGS
7160 <
7161 < rm -rf conftest*
7162 <
7163 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7164 < # /foo, /bar, and /baz are search directories for the Fortran linker.
7165 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7166 < ac_fc_v_output="`echo $ac_fc_v_output |
7167 <        grep 'LPATH is:' |
7168 <        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7169 <
7170 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
7171 < #        that detects unbalanced quotes in FLIBS should be implemented
7172 < #        and (ugh) tested at some point.
7173 < case $ac_fc_v_output in
7174 <  # If we are using xlf then replace all the commas with spaces.
7175 <  *xlfentry*)
7176 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7177 <
7178 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7179 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
7180 <  *mGLOB_options_string*)
7181 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7182 <
7183 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7184 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7185 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7186 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
7187 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7188 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7189 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7190 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7191 <
7192 <  # If we are using Cray Fortran then delete quotes.
7193 <  *cft90*)
7194 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7195 < esac
7196 <
7197 <
7198 <  # look for -l* and *.a constructs in the output
7199 <  for ac_arg in $ac_fc_v_output; do
7200 <     case $ac_arg in
7201 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
7202 <          ac_cv_prog_fc_v=$ac_verb
7203 <          break 2 ;;
7204 <     esac
7205 <  done
7206 < done
7207 < if test -z "$ac_cv_prog_fc_v"; then
7208 <   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
7209 < $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
7210 < fi
7211 < else
7212 <  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
7213 < $as_echo "$as_me: WARNING: compilation failed" >&2;}
7214 < fi
7215 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216 <
7217 < fi
7218 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
7219 < $as_echo "$ac_cv_prog_fc_v" >&6; }
7220 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
7221 < $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
7222 < if test "${ac_cv_fc_libs+set}" = set; then :
7223 <  $as_echo_n "(cached) " >&6
7224 < else
7225 <  if test "x$FCLIBS" != "x"; then
7226 <  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
7227 < else
7228 <
7229 < cat > conftest.$ac_ext <<_ACEOF
7230 <      program main
7231 <
7232 <      end
7233 < _ACEOF
7234 <
7235 < # Compile and link our simple test program by passing a flag (argument
7236 < # 1 to this macro) to the Fortran compiler in order to get
7237 < # "verbose" output that we can then parse for the Fortran linker
7238 < # flags.
7239 < ac_save_FCFLAGS=$FCFLAGS
7240 < FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
7241 < eval "set x $ac_link"
7242 < shift
7243 < $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7244 < # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7245 < # LIBRARY_PATH; skip all such settings.
7246 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7247 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7248 < $as_echo "$ac_fc_v_output" >&5
7249 < FCFLAGS=$ac_save_FCFLAGS
7250 <
7251 < rm -rf conftest*
7252 <
7253 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7254 < # /foo, /bar, and /baz are search directories for the Fortran linker.
7255 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7256 < ac_fc_v_output="`echo $ac_fc_v_output |
7257 <        grep 'LPATH is:' |
7258 <        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7259 <
7260 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
7261 < #        that detects unbalanced quotes in FLIBS should be implemented
7262 < #        and (ugh) tested at some point.
7263 < case $ac_fc_v_output in
7264 <  # If we are using xlf then replace all the commas with spaces.
7265 <  *xlfentry*)
7266 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7267 <
7268 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7269 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
7270 <  *mGLOB_options_string*)
7271 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7272 <
7273 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7274 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7275 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7276 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
7277 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7278 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7279 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7280 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7281 <
7282 <  # If we are using Cray Fortran then delete quotes.
7283 <  *cft90*)
7284 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7285 < esac
7286 <
7287 <
7288 <
7289 < ac_cv_fc_libs=
7290 <
7291 < # Save positional arguments (if any)
7292 < ac_save_positional="$@"
7293 <
7294 < set X $ac_fc_v_output
7295 < while test $# != 1; do
7296 <  shift
7297 <  ac_arg=$1
7298 <  case $ac_arg in
7299 <        [\\/]*.a | ?:[\\/]*.a)
7300 <            ac_exists=false
7301 <  for ac_i in $ac_cv_fc_libs; do
7302 <    if test x"$ac_arg" = x"$ac_i"; then
7303 <      ac_exists=true
7304 <      break
7305 <    fi
7306 <  done
7307 <
7308 <  if test x"$ac_exists" = xtrue; then :
7309 <
7310 < else
7311 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7312 < fi
7313 <          ;;
7314 <        -bI:*)
7315 <            ac_exists=false
7316 <  for ac_i in $ac_cv_fc_libs; do
7317 <    if test x"$ac_arg" = x"$ac_i"; then
7318 <      ac_exists=true
7319 <      break
7320 <    fi
7321 <  done
7322 <
7323 <  if test x"$ac_exists" = xtrue; then :
7324 <
7325 < else
7326 <  if test "$ac_compiler_gnu" = yes; then
7327 <  for ac_link_opt in $ac_arg; do
7328 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7329 <  done
7330 < else
7331 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7332 < fi
7333 < fi
7334 <          ;;
7335 <          # Ignore these flags.
7336 <        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
7337 <          |-LANG:=* | -LIST:* | -LNO:*)
7338 <          ;;
7339 <        -lkernel32)
7340 <          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7341 <          ;;
7342 <        -[LRuYz])
7343 <          # These flags, when seen by themselves, take an argument.
7344 <          # We remove the space between option and argument and re-iterate
7345 <          # unless we find an empty arg or a new option (starting with -)
7346 <          case $2 in
7347 <             "" | -*);;
7348 <             *)
7349 <                ac_arg="$ac_arg$2"
7350 <                shift; shift
7351 <                set X $ac_arg "$@"
7352 <                ;;
7353 <          esac
7354 <          ;;
7355 <        -YP,*)
7356 <          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
7357 <              ac_exists=false
7358 <  for ac_i in $ac_cv_fc_libs; do
7359 <    if test x"$ac_j" = x"$ac_i"; then
7360 <      ac_exists=true
7361 <      break
7362 <    fi
7363 <  done
7364 <
7365 <  if test x"$ac_exists" = xtrue; then :
7366 <
7367 < else
7368 <  ac_arg="$ac_arg $ac_j"
7369 <                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
7370 < fi
7371 <          done
7372 <          ;;
7373 <        -[lLR]*)
7374 <            ac_exists=false
7375 <  for ac_i in $ac_cv_fc_libs; do
7376 <    if test x"$ac_arg" = x"$ac_i"; then
7377 <      ac_exists=true
7378 <      break
7379 <    fi
7380 <  done
7381 <
7382 <  if test x"$ac_exists" = xtrue; then :
7383 <
7384 < else
7385 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7386 < fi
7387 <          ;;
7388 <        -zallextract*| -zdefaultextract)
7389 <          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7390 <          ;;
7391 <          # Ignore everything else.
7392 <  esac
7393 < done
7394 < # restore positional arguments
7395 < set X $ac_save_positional; shift
7396 <
7397 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
7398 < # then we insist that the "run path" must be an absolute path (i.e. it
7399 < # must begin with a "/").
7400 < case `(uname -sr) 2>/dev/null` in
7401 <   "SunOS 5"*)
7402 <      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
7403 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
7404 <      test "x$ac_ld_run_path" != x &&
7405 <        if test "$ac_compiler_gnu" = yes; then
7406 <  for ac_link_opt in $ac_ld_run_path; do
7407 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7408 <  done
7409 < else
7410 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
7411 < fi
7412 <      ;;
7413 < esac
7414 < fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
7415 <
7416 < fi
7417 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
7418 < $as_echo "$ac_cv_fc_libs" >&6; }
7419 < FCLIBS="$ac_cv_fc_libs"
7420 <
7421 <
7422 < ac_ext=${ac_fc_srcext-f}
7423 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7424 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7425 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7426 <
7427 < ac_ext=${ac_fc_srcext-f}
7428 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7429 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7430 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7431 <
7432 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
7433 < $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
7434 < if test "${ac_cv_fc_dummy_main+set}" = set; then :
7435 <  $as_echo_n "(cached) " >&6
7436 < else
7437 <  ac_fc_dm_save_LIBS=$LIBS
7438 < LIBS="$LIBS $FCLIBS"
7439 < ac_fortran_dm_var=FC_DUMMY_MAIN
7440 < ac_ext=c
7441 < ac_cpp='$CPP $CPPFLAGS'
7442 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7443 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7444 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7445 <
7446 < # First, try linking without a dummy main:
7447 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 < /* end confdefs.h.  */
7449 <
7450 < #ifdef FC_DUMMY_MAIN
7451 < #ifndef FC_DUMMY_MAIN_EQ_F77
7452 < #  ifdef __cplusplus
7453 <     extern "C"
7454 < #  endif
7455 <   int FC_DUMMY_MAIN() { return 1; }
7456 < #endif
7457 < #endif
7458 < int
7459 < main ()
7460 < {
7461 <
7462 <  ;
7463 <  return 0;
7464 < }
7465 < _ACEOF
7466 < if ac_fn_c_try_link "$LINENO"; then :
7467 <  ac_cv_fortran_dummy_main=none
7468 < else
7469 <  ac_cv_fortran_dummy_main=unknown
7470 < fi
7471 < rm -f core conftest.err conftest.$ac_objext \
7472 <    conftest$ac_exeext conftest.$ac_ext
7473 <
7474 < if test $ac_cv_fortran_dummy_main = unknown; then
7475 <   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
7476 <     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 < /* end confdefs.h.  */
7478 < #define $ac_fortran_dm_var $ac_func
7479 < #ifdef FC_DUMMY_MAIN
7480 < #ifndef FC_DUMMY_MAIN_EQ_F77
7481 < #  ifdef __cplusplus
7482 <     extern "C"
7483 < #  endif
7484 <   int FC_DUMMY_MAIN() { return 1; }
7485 < #endif
7486 < #endif
7487 < int
7488 < main ()
7489 < {
7490 <
7491 <  ;
7492 <  return 0;
7493 < }
7494 < _ACEOF
7495 < if ac_fn_c_try_link "$LINENO"; then :
7496 <  ac_cv_fortran_dummy_main=$ac_func; break
7497 < fi
7498 < rm -f core conftest.err conftest.$ac_objext \
7499 <    conftest$ac_exeext conftest.$ac_ext
7500 <   done
7501 < fi
7502 < ac_ext=${ac_fc_srcext-f}
7503 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7504 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7505 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7506 < ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
7507 < rm -rf conftest*
7508 < LIBS=$ac_fc_dm_save_LIBS
7509 <
7510 < fi
7511 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5
7512 < $as_echo "$ac_cv_fc_dummy_main" >&6; }
7513 < FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
7514 < if test "$FC_DUMMY_MAIN" != unknown; then :
7515 <  if test $FC_DUMMY_MAIN != none; then
7516 <
7517 < cat >>confdefs.h <<_ACEOF
7518 < #define FC_DUMMY_MAIN $FC_DUMMY_MAIN
7519 < _ACEOF
7520 <
7521 <  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
7522 <
7523 < $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
7524 <
7525 <  fi
7526 < fi
7527 < else
7528 <  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7529 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7530 < as_fn_error "linking to Fortran libraries from C fails
7531 < See \`config.log' for more details." "$LINENO" 5; }
7532 < fi
7533 <
7534 < ac_ext=${ac_fc_srcext-f}
7535 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7536 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7537 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7538 <
7539 < ac_ext=${ac_fc_srcext-f}
7540 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7541 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7542 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7543 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
7544 < $as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
7545 < if test "${ac_cv_fc_mangling+set}" = set; then :
7546 <  $as_echo_n "(cached) " >&6
7547 < else
7548 <  cat > conftest.$ac_ext <<_ACEOF
7549 <      subroutine foobar()
7550 <      return
7551 <      end
7552 <      subroutine foo_bar()
7553 <      return
7554 <      end
7555 < _ACEOF
7556 < if ac_fn_fc_try_compile "$LINENO"; then :
7557 <  mv conftest.$ac_objext cfortran_test.$ac_objext
7558 <
7559 <  ac_save_LIBS=$LIBS
7560 <  LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"
7561 <
7562 <  ac_ext=c
7563 < ac_cpp='$CPP $CPPFLAGS'
7564 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7565 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7566 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7567 <  ac_success=no
7568 <  for ac_foobar in foobar FOOBAR; do
7569 <    for ac_underscore in "" "_"; do
7570 <      ac_func="$ac_foobar$ac_underscore"
7571 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 < /* end confdefs.h.  */
7573 <
7574 < /* Override any GCC internal prototype to avoid an error.
7575 <   Use char because int might match the return type of a GCC
7576 <   builtin and then its argument prototype would still apply.  */
7577 < #ifdef __cplusplus
7578 < extern "C"
7579 < #endif
7580 < char $ac_func ();
7581 < #ifdef FC_DUMMY_MAIN
7582 < #ifndef FC_DUMMY_MAIN_EQ_F77
7583 < #  ifdef __cplusplus
7584 <     extern "C"
7585 < #  endif
7586 <   int FC_DUMMY_MAIN() { return 1; }
7587 < #endif
7588 < #endif
7589 < int
7590 < main ()
7591 < {
7592 < return $ac_func ();
7593 <  ;
7594 <  return 0;
7595 < }
7596 < _ACEOF
7597 < if ac_fn_c_try_link "$LINENO"; then :
7598 <  ac_success=yes; break 2
7599 < fi
7600 < rm -f core conftest.err conftest.$ac_objext \
7601 <    conftest$ac_exeext conftest.$ac_ext
7602 <    done
7603 <  done
7604 <  ac_ext=${ac_fc_srcext-f}
7605 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7606 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7607 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7608 <
7609 <  if test "$ac_success" = "yes"; then
7610 <     case $ac_foobar in
7611 <        foobar)
7612 <           ac_case=lower
7613 <           ac_foo_bar=foo_bar
7614 <           ;;
7615 <        FOOBAR)
7616 <           ac_case=upper
7617 <           ac_foo_bar=FOO_BAR
7618 <           ;;
7619 <     esac
7620 <
7621 <     ac_ext=c
7622 < ac_cpp='$CPP $CPPFLAGS'
7623 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7626 <     ac_success_extra=no
7627 <     for ac_extra in "" "_"; do
7628 <        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
7629 <        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 < /* end confdefs.h.  */
7631 <
7632 < /* Override any GCC internal prototype to avoid an error.
7633 <   Use char because int might match the return type of a GCC
7634 <   builtin and then its argument prototype would still apply.  */
7635 < #ifdef __cplusplus
7636 < extern "C"
7637 < #endif
7638 < char $ac_func ();
7639 < #ifdef FC_DUMMY_MAIN
7640 < #ifndef FC_DUMMY_MAIN_EQ_F77
7641 < #  ifdef __cplusplus
7642 <     extern "C"
7643 < #  endif
7644 <   int FC_DUMMY_MAIN() { return 1; }
7645 < #endif
7646 < #endif
7647 < int
7648 < main ()
7649 < {
7650 < return $ac_func ();
7651 <  ;
7652 <  return 0;
7653 < }
7654 < _ACEOF
7655 < if ac_fn_c_try_link "$LINENO"; then :
7656 <  ac_success_extra=yes; break
7657 < fi
7658 < rm -f core conftest.err conftest.$ac_objext \
7659 <    conftest$ac_exeext conftest.$ac_ext
7660 <     done
7661 <     ac_ext=${ac_fc_srcext-f}
7662 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7663 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7664 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7665 <
7666 <     if test "$ac_success_extra" = "yes"; then
7667 <        ac_cv_fc_mangling="$ac_case case"
7668 <        if test -z "$ac_underscore"; then
7669 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
7670 <        else
7671 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
7672 <        fi
7673 <        if test -z "$ac_extra"; then
7674 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
7675 <        else
7676 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
7677 <        fi
7678 <      else
7679 <        ac_cv_fc_mangling="unknown"
7680 <      fi
7681 <  else
7682 <     ac_cv_fc_mangling="unknown"
7683 <  fi
7684 <
7685 <  LIBS=$ac_save_LIBS
7686 <  rm -rf conftest*
7687 <  rm -f cfortran_test*
7688 < else
7689 <  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7690 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7691 < as_fn_error "cannot compile a simple Fortran program
7692 < See \`config.log' for more details." "$LINENO" 5; }
7693 < fi
7694 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 <
7696 < fi
7697 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5
7698 < $as_echo "$ac_cv_fc_mangling" >&6; }
7699 <
7700 < ac_ext=${ac_fc_srcext-f}
7701 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7702 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7703 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7704 <
7705 < ac_ext=${ac_fc_srcext-f}
7706 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7707 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7708 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7709 < case $ac_cv_fc_mangling in
7710 <  "lower case, no underscore, no extra underscore")
7711 <          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
7712 <
7713 <          $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h
7714 < ;;
7715 <  "lower case, no underscore, extra underscore")
7716 <          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
7717 <
7718 <          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
7719 < ;;
7720 <  "lower case, underscore, no extra underscore")
7721 <          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
7722 <
7723 <          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
7724 < ;;
7725 <  "lower case, underscore, extra underscore")
7726 <          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
7727 <
7728 <          $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h
7729 < ;;
7730 <  "upper case, no underscore, no extra underscore")
7731 <          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
7732 <
7733 <          $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h
7734 < ;;
7735 <  "upper case, no underscore, extra underscore")
7736 <          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
7737 <
7738 <          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
7739 < ;;
7740 <  "upper case, underscore, no extra underscore")
7741 <          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
7742 <
7743 <          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
7744 < ;;
7745 <  "upper case, underscore, extra underscore")
7746 <          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
7747 <
7748 <          $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h
7749 < ;;
7750 <  *)
7751 <          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
7752 < $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
7753 <          ;;
7754 < esac
7755 <
7756 < ac_ext=${ac_fc_srcext-f}
7757 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7758 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7759 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7760 <
7761 <
7762 <
7763 < ac_ext=${ac_fc_srcext-f}
7764 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7765 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7766 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7767 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
7768 < $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
7769 < if test "${ac_cv_prog_fc_v+set}" = set; then :
7770 <  $as_echo_n "(cached) " >&6
7771 < else
7772 <  cat > conftest.$ac_ext <<_ACEOF
7773 <      program main
7774 <
7775 <      end
7776 < _ACEOF
7777 < if ac_fn_fc_try_compile "$LINENO"; then :
7778 <  ac_cv_prog_fc_v=
7779 < # Try some options frequently used verbose output
7780 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
7781 <  cat > conftest.$ac_ext <<_ACEOF
7782 <      program main
7783 <
7784 <      end
7785 < _ACEOF
7786 <
7787 < # Compile and link our simple test program by passing a flag (argument
7788 < # 1 to this macro) to the Fortran compiler in order to get
7789 < # "verbose" output that we can then parse for the Fortran linker
7790 < # flags.
7791 < ac_save_FCFLAGS=$FCFLAGS
7792 < FCFLAGS="$FCFLAGS $ac_verb"
7793 < eval "set x $ac_link"
7794 < shift
7795 < $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7796 < # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7797 < # LIBRARY_PATH; skip all such settings.
7798 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7799 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7800 < $as_echo "$ac_fc_v_output" >&5
7801 < FCFLAGS=$ac_save_FCFLAGS
7802 <
7803 < rm -rf conftest*
7804 <
7805 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7806 < # /foo, /bar, and /baz are search directories for the Fortran linker.
7807 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7808 < ac_fc_v_output="`echo $ac_fc_v_output |
7809 <        grep 'LPATH is:' |
7810 <        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7811 <
7812 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
7813 < #        that detects unbalanced quotes in FLIBS should be implemented
7814 < #        and (ugh) tested at some point.
7815 < case $ac_fc_v_output in
7816 <  # If we are using xlf then replace all the commas with spaces.
7817 <  *xlfentry*)
7818 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7819 <
7820 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7821 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
7822 <  *mGLOB_options_string*)
7823 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7824 <
7825 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7826 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7827 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7828 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
7829 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7830 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7831 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7832 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7833 <
7834 <  # If we are using Cray Fortran then delete quotes.
7835 <  *cft90*)
7836 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7837 < esac
7838 <
7839 <
7840 <  # look for -l* and *.a constructs in the output
7841 <  for ac_arg in $ac_fc_v_output; do
7842 <     case $ac_arg in
7843 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
7844 <          ac_cv_prog_fc_v=$ac_verb
7845 <          break 2 ;;
7846 <     esac
7847 <  done
7848 < done
7849 < if test -z "$ac_cv_prog_fc_v"; then
7850 <   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
7851 < $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
7852 < fi
7853 < else
7854 <  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
7855 < $as_echo "$as_me: WARNING: compilation failed" >&2;}
7856 < fi
7857 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858 <
7859 < fi
7860 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
7861 < $as_echo "$ac_cv_prog_fc_v" >&6; }
7862 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
7863 < $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
7864 < if test "${ac_cv_fc_libs+set}" = set; then :
7865 <  $as_echo_n "(cached) " >&6
7866 < else
7867 <  if test "x$FCLIBS" != "x"; then
7868 <  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
7869 < else
7870 <
7871 < cat > conftest.$ac_ext <<_ACEOF
7872 <      program main
7873 <
7874 <      end
7875 < _ACEOF
7876 <
7877 < # Compile and link our simple test program by passing a flag (argument
7878 < # 1 to this macro) to the Fortran compiler in order to get
7879 < # "verbose" output that we can then parse for the Fortran linker
7880 < # flags.
7881 < ac_save_FCFLAGS=$FCFLAGS
7882 < FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
7883 < eval "set x $ac_link"
7884 < shift
7885 < $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7886 < # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7887 < # LIBRARY_PATH; skip all such settings.
7888 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7889 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7890 < $as_echo "$ac_fc_v_output" >&5
7891 < FCFLAGS=$ac_save_FCFLAGS
7892 <
7893 < rm -rf conftest*
7894 <
7895 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7896 < # /foo, /bar, and /baz are search directories for the Fortran linker.
7897 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7898 < ac_fc_v_output="`echo $ac_fc_v_output |
7899 <        grep 'LPATH is:' |
7900 <        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7901 <
7902 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
7903 < #        that detects unbalanced quotes in FLIBS should be implemented
7904 < #        and (ugh) tested at some point.
7905 < case $ac_fc_v_output in
7906 <  # If we are using xlf then replace all the commas with spaces.
7907 <  *xlfentry*)
7908 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7909 <
7910 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7911 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
7912 <  *mGLOB_options_string*)
7913 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7914 <
7915 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7916 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7917 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7918 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
7919 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7920 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7921 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7922 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7923 <
7924 <  # If we are using Cray Fortran then delete quotes.
7925 <  *cft90*)
7926 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
4234 >        CXX=$save_CXX
4235 >        CC=$save_CC
4236 >        LIBS=$save_LIBS
4237 >
4238 >
4239 > fi
4240 >
4241 >
4242 > # Checks for programs.
4243 > ac_ext=c
4244 > ac_cpp='$CPP $CPPFLAGS'
4245 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4248 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4249 > $as_echo_n "checking how to run the C preprocessor... " >&6; }
4250 > # On Suns, sometimes $CPP names a directory.
4251 > if test -n "$CPP" && test -d "$CPP"; then
4252 >  CPP=
4253 > fi
4254 > if test -z "$CPP"; then
4255 >  if ${ac_cv_prog_CPP+:} false; then :
4256 >  $as_echo_n "(cached) " >&6
4257 > else
4258 >      # Double quotes because CPP needs to be expanded
4259 >    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4260 >    do
4261 >      ac_preproc_ok=false
4262 > for ac_c_preproc_warn_flag in '' yes
4263 > do
4264 >  # Use a header file that comes with gcc, so configuring glibc
4265 >  # with a fresh cross-compiler works.
4266 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4267 >  # <limits.h> exists even on freestanding compilers.
4268 >  # On the NeXT, cc -E runs the code through the compiler's parser,
4269 >  # not just through cpp. "Syntax error" is here to catch this case.
4270 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 > /* end confdefs.h.  */
4272 > #ifdef __STDC__
4273 > # include <limits.h>
4274 > #else
4275 > # include <assert.h>
4276 > #endif
4277 >                     Syntax error
4278 > _ACEOF
4279 > if ac_fn_c_try_cpp "$LINENO"; then :
4280 >
4281 > else
4282 >  # Broken: fails on valid input.
4283 > continue
4284 > fi
4285 > rm -f conftest.err conftest.i conftest.$ac_ext
4286 >
4287 >  # OK, works on sane cases.  Now check whether nonexistent headers
4288 >  # can be detected and how.
4289 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 > /* end confdefs.h.  */
4291 > #include <ac_nonexistent.h>
4292 > _ACEOF
4293 > if ac_fn_c_try_cpp "$LINENO"; then :
4294 >  # Broken: success on invalid input.
4295 > continue
4296 > else
4297 >  # Passes both tests.
4298 > ac_preproc_ok=:
4299 > break
4300 > fi
4301 > rm -f conftest.err conftest.i conftest.$ac_ext
4302 >
4303 > done
4304 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4305 > rm -f conftest.i conftest.err conftest.$ac_ext
4306 > if $ac_preproc_ok; then :
4307 >  break
4308 > fi
4309 >
4310 >    done
4311 >    ac_cv_prog_CPP=$CPP
4312 >
4313 > fi
4314 >  CPP=$ac_cv_prog_CPP
4315 > else
4316 >  ac_cv_prog_CPP=$CPP
4317 > fi
4318 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4319 > $as_echo "$CPP" >&6; }
4320 > ac_preproc_ok=false
4321 > for ac_c_preproc_warn_flag in '' yes
4322 > do
4323 >  # Use a header file that comes with gcc, so configuring glibc
4324 >  # with a fresh cross-compiler works.
4325 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4326 >  # <limits.h> exists even on freestanding compilers.
4327 >  # On the NeXT, cc -E runs the code through the compiler's parser,
4328 >  # not just through cpp. "Syntax error" is here to catch this case.
4329 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 > /* end confdefs.h.  */
4331 > #ifdef __STDC__
4332 > # include <limits.h>
4333 > #else
4334 > # include <assert.h>
4335 > #endif
4336 >                     Syntax error
4337 > _ACEOF
4338 > if ac_fn_c_try_cpp "$LINENO"; then :
4339 >
4340 > else
4341 >  # Broken: fails on valid input.
4342 > continue
4343 > fi
4344 > rm -f conftest.err conftest.i conftest.$ac_ext
4345 >
4346 >  # OK, works on sane cases.  Now check whether nonexistent headers
4347 >  # can be detected and how.
4348 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 > /* end confdefs.h.  */
4350 > #include <ac_nonexistent.h>
4351 > _ACEOF
4352 > if ac_fn_c_try_cpp "$LINENO"; then :
4353 >  # Broken: success on invalid input.
4354 > continue
4355 > else
4356 >  # Passes both tests.
4357 > ac_preproc_ok=:
4358 > break
4359 > fi
4360 > rm -f conftest.err conftest.i conftest.$ac_ext
4361 >
4362 > done
4363 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4364 > rm -f conftest.i conftest.err conftest.$ac_ext
4365 > if $ac_preproc_ok; then :
4366 >
4367 > else
4368 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4369 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4370 > as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4371 > See \`config.log' for more details" "$LINENO" 5; }
4372 > fi
4373 >
4374 > ac_ext=c
4375 > ac_cpp='$CPP $CPPFLAGS'
4376 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379 >
4380 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4381 > $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4382 > if ${ac_cv_path_GREP+:} false; then :
4383 >  $as_echo_n "(cached) " >&6
4384 > else
4385 >  if test -z "$GREP"; then
4386 >  ac_path_GREP_found=false
4387 >  # Loop through the user's path and test for each of PROGNAME-LIST
4388 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 > for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4390 > do
4391 >  IFS=$as_save_IFS
4392 >  test -z "$as_dir" && as_dir=.
4393 >    for ac_prog in grep ggrep; do
4394 >    for ac_exec_ext in '' $ac_executable_extensions; do
4395 >      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4396 >      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4397 > # Check for GNU ac_path_GREP and select it if it is found.
4398 >  # Check for GNU $ac_path_GREP
4399 > case `"$ac_path_GREP" --version 2>&1` in
4400 > *GNU*)
4401 >  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4402 > *)
4403 >  ac_count=0
4404 >  $as_echo_n 0123456789 >"conftest.in"
4405 >  while :
4406 >  do
4407 >    cat "conftest.in" "conftest.in" >"conftest.tmp"
4408 >    mv "conftest.tmp" "conftest.in"
4409 >    cp "conftest.in" "conftest.nl"
4410 >    $as_echo 'GREP' >> "conftest.nl"
4411 >    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4412 >    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4413 >    as_fn_arith $ac_count + 1 && ac_count=$as_val
4414 >    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4415 >      # Best one so far, save it but keep looking for a better one
4416 >      ac_cv_path_GREP="$ac_path_GREP"
4417 >      ac_path_GREP_max=$ac_count
4418 >    fi
4419 >    # 10*(2^10) chars as input seems more than enough
4420 >    test $ac_count -gt 10 && break
4421 >  done
4422 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4423 > esac
4424 >
4425 >      $ac_path_GREP_found && break 3
4426 >    done
4427 >  done
4428 >  done
4429 > IFS=$as_save_IFS
4430 >  if test -z "$ac_cv_path_GREP"; then
4431 >    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4432 >  fi
4433 > else
4434 >  ac_cv_path_GREP=$GREP
4435 > fi
4436 >
4437 > fi
4438 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4439 > $as_echo "$ac_cv_path_GREP" >&6; }
4440 > GREP="$ac_cv_path_GREP"
4441 >
4442 >
4443 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4444 > $as_echo_n "checking for egrep... " >&6; }
4445 > if ${ac_cv_path_EGREP+:} false; then :
4446 >  $as_echo_n "(cached) " >&6
4447 > else
4448 >  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4449 >   then ac_cv_path_EGREP="$GREP -E"
4450 >   else
4451 >     if test -z "$EGREP"; then
4452 >  ac_path_EGREP_found=false
4453 >  # Loop through the user's path and test for each of PROGNAME-LIST
4454 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 > for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4456 > do
4457 >  IFS=$as_save_IFS
4458 >  test -z "$as_dir" && as_dir=.
4459 >    for ac_prog in egrep; do
4460 >    for ac_exec_ext in '' $ac_executable_extensions; do
4461 >      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4462 >      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4463 > # Check for GNU ac_path_EGREP and select it if it is found.
4464 >  # Check for GNU $ac_path_EGREP
4465 > case `"$ac_path_EGREP" --version 2>&1` in
4466 > *GNU*)
4467 >  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4468 > *)
4469 >  ac_count=0
4470 >  $as_echo_n 0123456789 >"conftest.in"
4471 >  while :
4472 >  do
4473 >    cat "conftest.in" "conftest.in" >"conftest.tmp"
4474 >    mv "conftest.tmp" "conftest.in"
4475 >    cp "conftest.in" "conftest.nl"
4476 >    $as_echo 'EGREP' >> "conftest.nl"
4477 >    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4478 >    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4479 >    as_fn_arith $ac_count + 1 && ac_count=$as_val
4480 >    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4481 >      # Best one so far, save it but keep looking for a better one
4482 >      ac_cv_path_EGREP="$ac_path_EGREP"
4483 >      ac_path_EGREP_max=$ac_count
4484 >    fi
4485 >    # 10*(2^10) chars as input seems more than enough
4486 >    test $ac_count -gt 10 && break
4487 >  done
4488 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4489 > esac
4490 >
4491 >      $ac_path_EGREP_found && break 3
4492 >    done
4493 >  done
4494 >  done
4495 > IFS=$as_save_IFS
4496 >  if test -z "$ac_cv_path_EGREP"; then
4497 >    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4498 >  fi
4499 > else
4500 >  ac_cv_path_EGREP=$EGREP
4501 > fi
4502 >
4503 >   fi
4504 > fi
4505 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4506 > $as_echo "$ac_cv_path_EGREP" >&6; }
4507 > EGREP="$ac_cv_path_EGREP"
4508 >
4509 >
4510 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4511 > $as_echo_n "checking whether ln -s works... " >&6; }
4512 > LN_S=$as_ln_s
4513 > if test "$LN_S" = "ln -s"; then
4514 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4515 > $as_echo "yes" >&6; }
4516 > else
4517 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4518 > $as_echo "no, using $LN_S" >&6; }
4519 > fi
4520 >
4521 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4522 > $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4523 > set x ${MAKE-make}
4524 > ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4525 > if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4526 >  $as_echo_n "(cached) " >&6
4527 > else
4528 >  cat >conftest.make <<\_ACEOF
4529 > SHELL = /bin/sh
4530 > all:
4531 >        @echo '@@@%%%=$(MAKE)=@@@%%%'
4532 > _ACEOF
4533 > # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4534 > case `${MAKE-make} -f conftest.make 2>/dev/null` in
4535 >  *@@@%%%=?*=@@@%%%*)
4536 >    eval ac_cv_prog_make_${ac_make}_set=yes;;
4537 >  *)
4538 >    eval ac_cv_prog_make_${ac_make}_set=no;;
4539 > esac
4540 > rm -f conftest.make
4541 > fi
4542 > if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4543 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4544 > $as_echo "yes" >&6; }
4545 >  SET_MAKE=
4546 > else
4547 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 > $as_echo "no" >&6; }
4549 >  SET_MAKE="MAKE=${MAKE-make}"
4550 > fi
4551 >
4552 > if test -n "$ac_tool_prefix"; then
4553 >  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4554 > set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4555 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 > $as_echo_n "checking for $ac_word... " >&6; }
4557 > if ${ac_cv_prog_RANLIB+:} false; then :
4558 >  $as_echo_n "(cached) " >&6
4559 > else
4560 >  if test -n "$RANLIB"; then
4561 >  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4562 > else
4563 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 > for as_dir in $PATH
4565 > do
4566 >  IFS=$as_save_IFS
4567 >  test -z "$as_dir" && as_dir=.
4568 >    for ac_exec_ext in '' $ac_executable_extensions; do
4569 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4571 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 >    break 2
4573 >  fi
4574 > done
4575 >  done
4576 > IFS=$as_save_IFS
4577 >
4578 > fi
4579 > fi
4580 > RANLIB=$ac_cv_prog_RANLIB
4581 > if test -n "$RANLIB"; then
4582 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4583 > $as_echo "$RANLIB" >&6; }
4584 > else
4585 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 > $as_echo "no" >&6; }
4587 > fi
4588 >
4589 >
4590 > fi
4591 > if test -z "$ac_cv_prog_RANLIB"; then
4592 >  ac_ct_RANLIB=$RANLIB
4593 >  # Extract the first word of "ranlib", so it can be a program name with args.
4594 > set dummy ranlib; ac_word=$2
4595 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 > $as_echo_n "checking for $ac_word... " >&6; }
4597 > if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4598 >  $as_echo_n "(cached) " >&6
4599 > else
4600 >  if test -n "$ac_ct_RANLIB"; then
4601 >  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4602 > else
4603 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 > for as_dir in $PATH
4605 > do
4606 >  IFS=$as_save_IFS
4607 >  test -z "$as_dir" && as_dir=.
4608 >    for ac_exec_ext in '' $ac_executable_extensions; do
4609 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
4611 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 >    break 2
4613 >  fi
4614 > done
4615 >  done
4616 > IFS=$as_save_IFS
4617 >
4618 > fi
4619 > fi
4620 > ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4621 > if test -n "$ac_ct_RANLIB"; then
4622 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4623 > $as_echo "$ac_ct_RANLIB" >&6; }
4624 > else
4625 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 > $as_echo "no" >&6; }
4627 > fi
4628 >
4629 >  if test "x$ac_ct_RANLIB" = x; then
4630 >    RANLIB=":"
4631 >  else
4632 >    case $cross_compiling:$ac_tool_warned in
4633 > yes:)
4634 > { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 > $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636 > ac_tool_warned=yes ;;
4637 > esac
4638 >    RANLIB=$ac_ct_RANLIB
4639 >  fi
4640 > else
4641 >  RANLIB="$ac_cv_prog_RANLIB"
4642 > fi
4643 >
4644 >
4645 >   # Extract the first word of "perl", so it can be a program name with args.
4646 > set dummy perl; ac_word=$2
4647 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 > $as_echo_n "checking for $ac_word... " >&6; }
4649 > if ${ac_cv_path_PERLINTERP+:} false; then :
4650 >  $as_echo_n "(cached) " >&6
4651 > else
4652 >  case $PERLINTERP in
4653 >  [\\/]* | ?:[\\/]*)
4654 >  ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
4655 >  ;;
4656 >  *)
4657 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 > for as_dir in $PATH
4659 > do
4660 >  IFS=$as_save_IFS
4661 >  test -z "$as_dir" && as_dir=.
4662 >    for ac_exec_ext in '' $ac_executable_extensions; do
4663 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 >    ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
4665 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 >    break 2
4667 >  fi
4668 > done
4669 >  done
4670 > IFS=$as_save_IFS
4671 >
4672 >  test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
4673 >  ;;
4674 > esac
4675 > fi
4676 > PERLINTERP=$ac_cv_path_PERLINTERP
4677 > if test -n "$PERLINTERP"; then
4678 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLINTERP" >&5
4679 > $as_echo "$PERLINTERP" >&6; }
4680 > else
4681 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 > $as_echo "no" >&6; }
4683 > fi
4684 >
4685 >
4686 >   ac_cv_path_perlinterp="$PERLINTERP"
4687 >   _sHpB='#!'
4688 >
4689 >
4690 > # Check whether --with-perl-shebang was given.
4691 > if test "${with_perl_shebang+set}" = set; then :
4692 >  withval=$with_perl_shebang; opt_perl_shebang="$withval"
4693 > else
4694 >                opt_perl_shebang="not_set"
4695 > fi
4696 >
4697 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5
4698 > $as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; }
4699 > if ${ax_cv_opt_perl_shebang+:} false; then :
4700 >  $as_echo_n "(cached) " >&6
4701 > else
4702 >   case "$opt_perl_shebang" in
4703 >                      not_set  ) ax_cv_opt_perl_shebang=''
4704 >                               ;;
4705 >                         *     )
4706 >        ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
4707 >                    esac
4708 >
4709 > fi
4710 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_opt_perl_shebang" >&5
4711 > $as_echo "$ax_cv_opt_perl_shebang" >&6; }
4712 >   if test "A$ax_cv_opt_perl_shebang" != "A"
4713 >     then
4714 >       ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
4715 >       PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
4716 >              { $as_echo "$as_me:${as_lineno-$LINENO}: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
4717 > $as_echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
4718 >
4719 > # Automatic detection of sharpbang formula starts here
4720 >     else
4721 >   _somian_shbangperl=`$PERLINTERP -V:startperl`
4722 >   negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
4723 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5
4724 > $as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; }
4725 > if ${ac_cv_sys_kernshrpbang_perl+:} false; then :
4726 >  $as_echo_n "(cached) " >&6
4727 > else
4728 >  _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
4729 >        if test "x$_somian_kspb_perl" == x
4730 >          then _somian_ksbp_warn_empty='durnit'
4731 >          else
4732 >          case "A$_somian_kspb_perl" in
4733 >                 A#!*perl* )
4734 >           ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
4735 >                        ;;
4736 >                     A*    )  _somian_ksbp_warn_defau='trouble'
4737 >                              ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
4738 >          esac
4739 >        fi
4740 >
4741 > fi
4742 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_kernshrpbang_perl" >&5
4743 > $as_echo "$ac_cv_sys_kernshrpbang_perl" >&6; }
4744 > # The above prints Checking ... result message to user.
4745 >   PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
4746 >
4747 >    if test A${_somian_ksbp_warn_empty+set} == Aset
4748 >      then   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
4749 > $as_echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
4750 >    fi
4751 > # Inform user after printing result value
4752 >    if test A${_somian_ksbp_warn_defau+set} == Aset
4753 >      then { $as_echo "$as_me:${as_lineno-$LINENO}: Maybe Not good -" >&5
4754 > $as_echo "$as_me: Maybe Not good -" >&6;}
4755 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
4756 > $as_echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
4757 >      else { $as_echo "$as_me:${as_lineno-$LINENO}: OK Good result - " >&5
4758 > $as_echo "$as_me: OK Good result - " >&6;}
4759 >           { $as_echo "$as_me:${as_lineno-$LINENO}: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
4760 > $as_echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
4761 >    fi
4762 >  fi
4763 >
4764 > # Find a good install program.  We prefer a C program (faster),
4765 > # so one script is as good as another.  But avoid the broken or
4766 > # incompatible versions:
4767 > # SysV /etc/install, /usr/sbin/install
4768 > # SunOS /usr/etc/install
4769 > # IRIX /sbin/install
4770 > # AIX /bin/install
4771 > # AmigaOS /C/install, which installs bootblocks on floppy discs
4772 > # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4773 > # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4774 > # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4775 > # OS/2's system install, which has a completely different semantic
4776 > # ./install, which can be erroneously created by make from ./install.sh.
4777 > # Reject install programs that cannot install multiple files.
4778 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4779 > $as_echo_n "checking for a BSD-compatible install... " >&6; }
4780 > if test -z "$INSTALL"; then
4781 > if ${ac_cv_path_install+:} false; then :
4782 >  $as_echo_n "(cached) " >&6
4783 > else
4784 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 > for as_dir in $PATH
4786 > do
4787 >  IFS=$as_save_IFS
4788 >  test -z "$as_dir" && as_dir=.
4789 >    # Account for people who put trailing slashes in PATH elements.
4790 > case $as_dir/ in #((
4791 >  ./ | .// | /[cC]/* | \
4792 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4793 >  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4794 >  /usr/ucb/* ) ;;
4795 >  *)
4796 >    # OSF1 and SCO ODT 3.0 have their own names for install.
4797 >    # Don't use installbsd from OSF since it installs stuff as root
4798 >    # by default.
4799 >    for ac_prog in ginstall scoinst install; do
4800 >      for ac_exec_ext in '' $ac_executable_extensions; do
4801 >        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4802 >          if test $ac_prog = install &&
4803 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4804 >            # AIX install.  It has an incompatible calling convention.
4805 >            :
4806 >          elif test $ac_prog = install &&
4807 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4808 >            # program-specific install script used by HP pwplus--don't use.
4809 >            :
4810 >          else
4811 >            rm -rf conftest.one conftest.two conftest.dir
4812 >            echo one > conftest.one
4813 >            echo two > conftest.two
4814 >            mkdir conftest.dir
4815 >            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4816 >              test -s conftest.one && test -s conftest.two &&
4817 >              test -s conftest.dir/conftest.one &&
4818 >              test -s conftest.dir/conftest.two
4819 >            then
4820 >              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4821 >              break 3
4822 >            fi
4823 >          fi
4824 >        fi
4825 >      done
4826 >    done
4827 >    ;;
4828   esac
4829  
7929
7930
7931 ac_cv_fc_libs=
7932
7933 # Save positional arguments (if any)
7934 ac_save_positional="$@"
7935
7936 set X $ac_fc_v_output
7937 while test $# != 1; do
7938  shift
7939  ac_arg=$1
7940  case $ac_arg in
7941        [\\/]*.a | ?:[\\/]*.a)
7942            ac_exists=false
7943  for ac_i in $ac_cv_fc_libs; do
7944    if test x"$ac_arg" = x"$ac_i"; then
7945      ac_exists=true
7946      break
7947    fi
4830    done
4831 + IFS=$as_save_IFS
4832  
4833 <  if test x"$ac_exists" = xtrue; then :
4833 > rm -rf conftest.one conftest.two conftest.dir
4834  
7952 else
7953  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4835   fi
4836 <          ;;
4837 <        -bI:*)
4838 <            ac_exists=false
4839 <  for ac_i in $ac_cv_fc_libs; do
4840 <    if test x"$ac_arg" = x"$ac_i"; then
4841 <      ac_exists=true
4842 <      break
4843 <    fi
4844 <  done
7964 <
7965 <  if test x"$ac_exists" = xtrue; then :
7966 <
7967 < else
7968 <  if test "$ac_compiler_gnu" = yes; then
7969 <  for ac_link_opt in $ac_arg; do
7970 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7971 <  done
7972 < else
7973 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4836 >  if test "${ac_cv_path_install+set}" = set; then
4837 >    INSTALL=$ac_cv_path_install
4838 >  else
4839 >    # As a last resort, use the slow shell script.  Don't cache a
4840 >    # value for INSTALL within a source directory, because that will
4841 >    # break other packages using the cache if that directory is
4842 >    # removed, or if the value is a relative name.
4843 >    INSTALL=$ac_install_sh
4844 >  fi
4845   fi
4846 < fi
4847 <          ;;
7977 <          # Ignore these flags.
7978 <        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
7979 <          |-LANG:=* | -LIST:* | -LNO:*)
7980 <          ;;
7981 <        -lkernel32)
7982 <          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7983 <          ;;
7984 <        -[LRuYz])
7985 <          # These flags, when seen by themselves, take an argument.
7986 <          # We remove the space between option and argument and re-iterate
7987 <          # unless we find an empty arg or a new option (starting with -)
7988 <          case $2 in
7989 <             "" | -*);;
7990 <             *)
7991 <                ac_arg="$ac_arg$2"
7992 <                shift; shift
7993 <                set X $ac_arg "$@"
7994 <                ;;
7995 <          esac
7996 <          ;;
7997 <        -YP,*)
7998 <          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
7999 <              ac_exists=false
8000 <  for ac_i in $ac_cv_fc_libs; do
8001 <    if test x"$ac_j" = x"$ac_i"; then
8002 <      ac_exists=true
8003 <      break
8004 <    fi
8005 <  done
4846 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4847 > $as_echo "$INSTALL" >&6; }
4848  
4849 <  if test x"$ac_exists" = xtrue; then :
4849 > # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4850 > # It thinks the first close brace ends the variable substitution.
4851 > test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4852  
4853 < else
8010 <  ac_arg="$ac_arg $ac_j"
8011 <                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
8012 < fi
8013 <          done
8014 <          ;;
8015 <        -[lLR]*)
8016 <            ac_exists=false
8017 <  for ac_i in $ac_cv_fc_libs; do
8018 <    if test x"$ac_arg" = x"$ac_i"; then
8019 <      ac_exists=true
8020 <      break
8021 <    fi
8022 <  done
4853 > test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4854  
4855 <  if test x"$ac_exists" = xtrue; then :
4855 > test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4856  
4857 + case "x$INSTALL" in
4858 +   x/*) ;;
4859 +   *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
4860 + esac
4861 + MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f -m 755"
4862 + # Extract the first word of "ar", so it can be a program name with args.
4863 + set dummy ar; ac_word=$2
4864 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 + $as_echo_n "checking for $ac_word... " >&6; }
4866 + if ${ac_cv_prog_AR+:} false; then :
4867 +  $as_echo_n "(cached) " >&6
4868   else
4869 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4870 < fi
4871 <          ;;
4872 <        -zallextract*| -zdefaultextract)
4873 <          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4874 <          ;;
4875 <          # Ignore everything else.
4876 <  esac
4869 >  if test -n "$AR"; then
4870 >  ac_cv_prog_AR="$AR" # Let the user override the test.
4871 > else
4872 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 > for as_dir in $PATH
4874 > do
4875 >  IFS=$as_save_IFS
4876 >  test -z "$as_dir" && as_dir=.
4877 >    for ac_exec_ext in '' $ac_executable_extensions; do
4878 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 >    ac_cv_prog_AR="ar"
4880 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 >    break 2
4882 >  fi
4883   done
8036 # restore positional arguments
8037 set X $ac_save_positional; shift
8038
8039 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
8040 # then we insist that the "run path" must be an absolute path (i.e. it
8041 # must begin with a "/").
8042 case `(uname -sr) 2>/dev/null` in
8043   "SunOS 5"*)
8044      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
8045                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
8046      test "x$ac_ld_run_path" != x &&
8047        if test "$ac_compiler_gnu" = yes; then
8048  for ac_link_opt in $ac_ld_run_path; do
8049    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
4884    done
4885 < else
8052 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
8053 < fi
8054 <      ;;
8055 < esac
8056 < fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4885 > IFS=$as_save_IFS
4886  
4887 +  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
4888   fi
4889 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
4890 < $as_echo "$ac_cv_fc_libs" >&6; }
4891 < FCLIBS="$ac_cv_fc_libs"
4892 <
4893 <
8064 < ac_ext=${ac_fc_srcext-f}
8065 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8066 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8067 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8068 <
8069 <
8070 <
8071 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module suffix" >&5
8072 < $as_echo_n "checking for module suffix... " >&6; }
8073 < rm -f conftest*
8074 < # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
8075 < rm -f work*
8076 < cat >conftest.$ac_ext <<EOF
8077 <        module conftest
8078 <        integer n
8079 <        parameter (n=1)
8080 <        end module conftest
8081 < EOF
8082 < # SGI and absoft compilers generates module name in upper case!
8083 < testname="conftest"
8084 < modcase="lower"
8085 < if (eval $ac_compile) 2>/dev/null ; then
8086 <    MOD=`ls conftest* | grep -v conftest.$ac_ext | grep -v conftest.o`
8087 <    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
8088 <    if test -z "$MOD" ; then
8089 <        MOD=`ls CONFTEST* 2>/dev/null \
8090 <                | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
8091 <        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
8092 <        if test -n "$MOD" ; then
8093 <            testname="CONFTEST"
8094 <            modcase="upper"
8095 <        fi
8096 <    fi
8097 <    if test -z "$MOD" ; then
8098 <        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
8099 < $as_echo "unknown" >&6; }
8100 <        # Use mod if we can't figure it out
8101 <        MOD="mod"
8102 <    else
8103 <        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOD" >&5
8104 < $as_echo "$MOD" >&6; }
8105 <    fi
8106 <    if test -s work.pcl ; then
8107 <        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler generates auxillery files!" >&5
8108 < $as_echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
8109 <    fi
4889 > fi
4890 > AR=$ac_cv_prog_AR
4891 > if test -n "$AR"; then
4892 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4893 > $as_echo "$AR" >&6; }
4894   else
4895 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
4896 < $as_echo "unknown" >&6; }
4895 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 > $as_echo "no" >&6; }
4897   fi
4898  
4899  
4900 + if test "$AR" = "NONE"; then
4901 +  cat >confcache <<\_ACEOF
4902 + # This file is a shell script that caches the results of configure
4903 + # tests run on this system so they can be shared between configure
4904 + # scripts and configure runs, see configure's option --config-cache.
4905 + # It is not useful on other systems.  If it contains results you don't
4906 + # want to keep, you may remove or edit it.
4907 + #
4908 + # config.status only pays attention to the cache file if you give it
4909 + # the --recheck option to rerun configure.
4910 + #
4911 + # `ac_cv_env_foo' variables (set or unset) will be overridden when
4912 + # loading this file, other *unset* `ac_cv_foo' will be assigned the
4913 + # following values.
4914  
4915 + _ACEOF
4916  
4917 <
4918 < # Check for module include path (some use -I, some (Solaris) use -M, some
4919 < # (absoft) use -p).
4920 < # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
4921 < # specified, work.pcl and work.pc are created.  However, if you specify
4922 < # a file, it must contain a the name of a file ending in .pc .  Ugh!
4923 < # Use the module made above
4924 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module directory path flag" >&5
4925 < $as_echo_n "checking for module directory path flag... " >&6; }
4926 < rm -f conftest*
4927 < # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4928 < rm -f work*
4929 < cat >conftest.$ac_ext <<EOF
4930 <        module conftest
4931 <        integer n
4932 <        parameter (n=1)
4933 <        end module conftest
4934 < EOF
4935 < # SGI and absoft compilers generates module name in upper case!
4936 < testname="conftest"
8138 < if (eval $ac_compile) 2>/dev/null ; then
8139 <   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
8140 <   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
8141 <   if test -n "$mod" ; then
8142 <      testname="CONFTEST"
8143 <   fi
8144 <   madedir=0
8145 <   if test ! -d conf ; then mkdir conf ; madedir=1; fi
8146 <   cp $testname.$MOD conf
8147 <   rm -f conftest* CONFTEST*
8148 <   cat >conftest1.$ac_ext <<EOF
8149 <        program main
8150 <        use conftest
8151 <        print *, n
8152 <        end
8153 < EOF
8154 <   F90_WORK_FILES_ARG=""
8155 <   F90MODINCSPEC=""
8156 <   if $FC -c -Iconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext > conftest.out 2>&1 ; then
8157 <       MODDIRFLAG="-I"
8158 <       F90MODINCSPEC="-I<dir>"
8159 <       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -I" >&5
8160 < $as_echo "-I" >&6; }
8161 <   elif $FC -c -Mconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
8162 <       MODDIRFLAG="-M"
8163 <       F90MODINCSPEC="-M<dir>"
8164 <       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -M" >&5
8165 < $as_echo "-M" >&6; }
8166 <   elif $FC -c -pconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
8167 <       MODDIRFLAG="-p"
8168 <       F90MODINCSPEC="-p<dir>"
8169 <       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -p" >&5
8170 < $as_echo "-p" >&6; }
8171 <   elif test -s work.pc ; then
8172 <        cp work.pc conf/mpimod.pc
8173 <        echo "mpimod.pc" > conf/mpimod.pcl
8174 <        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
8175 <        if $FC -c -cl,conf/mpimod.pcl $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >>conftest.out 2>&1 ; then
8176 <            MODDIRFLAG='-cl,mpimod.pcl'
8177 <            { $as_echo "$as_me:${as_lineno-$LINENO}: result: -cl,filename where filename contains a list of files and directories" >&5
8178 < $as_echo "-cl,filename where filename contains a list of files and directories" >&6; }
8179 <            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
8180 <            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
8181 <
8182 <        else
8183 <            # The version of the Intel compiler that I have refuses to let
8184 <            # you put the "work catalog" list anywhere but the current
8185 <            # directory. For example, you cannot in
8186 <         :
8187 <        fi
8188 <   fi
8189 <   if test -z "MODDIRFLAG" ; then
8190 <       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
8191 < $as_echo "unknown" >&6; }
8192 <   fi
8193 <
8194 <
8195 <   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
8196 <   if test $madedir = 1 ; then rmdir conf ; fi
8197 < fi
8198 <
8199 <
8200 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module file names" >&5
8201 < $as_echo_n "checking for Fortran 90 module file names... " >&6; }
8202 < if test "${ac_cv_f90_module_names+set}" = set; then :
8203 <  $as_echo_n "(cached) " >&6
8204 < else
8205 <  ac_ext=${ac_fc_srcext-f}
8206 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8207 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8208 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8209 <
8210 < # carry out the test in a new directory, so that we don't miss anything
8211 < mkdir conftest
8212 < cd conftest
8213 < cat > conftest.$ac_ext <<_ACEOF
8214 < MODULE Bar
8215 < END MODULE Bar
8216 < _ACEOF
8217 < if ac_fn_fc_try_compile "$LINENO"; then :
8218 <  ac_cv_f90_module_names=
8219 < ac_file_list=*
8220 < for ac_file in $ac_file_list; do
8221 <   case $ac_file in
8222 <      # don't care for original source and object files
8223 <      conftest.$ac_ext | conftest.$ac_objext | conftest.err )
8224 <          :
8225 <          ;;
8226 <      # look for new files derived from the file name
8227 <      *conftest*)
8228 <          ac_pat=`echo $ac_file | sed s/conftest/%FILE%/`
8229 <            ac_exists=false
8230 <  for ac_i in $ac_cv_f90_module_names; do
8231 <    if test x"$ac_pat" = x"$ac_i"; then
8232 <      ac_exists=true
8233 <      break
8234 <    fi
4917 > # The following way of writing the cache mishandles newlines in values,
4918 > # but we know of no workaround that is simple, portable, and efficient.
4919 > # So, we kill variables containing newlines.
4920 > # Ultrix sh set writes to stderr and can't be redirected directly,
4921 > # and sets the high bit in the cache file unless we assign to the vars.
4922 > (
4923 >  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4924 >    eval ac_val=\$$ac_var
4925 >    case $ac_val in #(
4926 >    *${as_nl}*)
4927 >      case $ac_var in #(
4928 >      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4929 > $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4930 >      esac
4931 >      case $ac_var in #(
4932 >      _ | IFS | as_nl) ;; #(
4933 >      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4934 >      *) { eval $ac_var=; unset $ac_var;} ;;
4935 >      esac ;;
4936 >    esac
4937    done
4938  
4939 <  if test x"$ac_exists" = xtrue; then :
4940 <
4941 < else
4942 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4943 < fi
4944 <          ;;
4945 <      # look for new files derived from the module name,
4946 <      # with different case translation schemes
4947 <      *Bar*)
4948 <          ac_pat=`echo $ac_file | sed s/Bar/%Module%/`
4949 <            ac_exists=false
4950 <  for ac_i in $ac_cv_f90_module_names; do
4951 <    if test x"$ac_pat" = x"$ac_i"; then
4952 <      ac_exists=true
4953 <      break
4954 <    fi
4955 <  done
4956 <
4957 <  if test x"$ac_exists" = xtrue; then :
4958 <
4959 < else
4960 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4961 < fi
4962 <          ;;
4963 <      *bar*)
4964 <          ac_pat=`echo $ac_file | sed s/bar/%module%/`
4965 <            ac_exists=false
4966 <  for ac_i in $ac_cv_f90_module_names; do
4967 <    if test x"$ac_pat" = x"$ac_i"; then
4968 <      ac_exists=true
4969 <      break
4970 <    fi
4971 <  done
4972 <
4973 <  if test x"$ac_exists" = xtrue; then :
4974 <
4975 < else
4976 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4977 < fi
4978 <          ;;
4979 <      *BAR*)
4980 <          ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
4981 <            ac_exists=false
4982 <  for ac_i in $ac_cv_f90_module_names; do
4983 <    if test x"$ac_pat" = x"$ac_i"; then
8282 <      ac_exists=true
8283 <      break
8284 <    fi
8285 <  done
8286 <
8287 <  if test x"$ac_exists" = xtrue; then :
8288 <
8289 < else
8290 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8291 < fi
8292 <          ;;
8293 <       # Other files - we have no idea how they are generated
8294 <       *)
8295 <          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bogus file found: $ac_file" >&5
8296 < $as_echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
8297 <          ;;
8298 <   esac
8299 < done
8300 < if test "x$ac_cv_f90_module_names" = "x"; then
8301 <  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
8302 < $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
8303 < fi
8304 <
8305 < else
8306 <  ac_cv_f90_module_names=
8307 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
8308 < $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
8309 < fi
8310 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 < cd ..
8312 < # cleanup
8313 < rm -rf conftest
8314 < ac_ext=${ac_fc_srcext-f}
8315 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8316 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8317 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8318 <
8319 < fi
8320 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f90_module_names" >&5
8321 < $as_echo "$ac_cv_f90_module_names" >&6; } # AC_CACHE_CHECK
8322 <
8323 < # We now generate a shell script that will help us to figure out the correct
8324 < # module file names, using the value of ac_cv_f90_module_names
8325 <
8326 < echo "Generating shell script modnam"
8327 <
8328 < cat > scripts/modnam << EOF
8329 < #! /bin/sh
8330 < # This script is auto-generated by configure
8331 < #
8332 < usage="\\
8333 < Usage: \$0 [FILES]
8334 <
8335 < [FILES] are Fortran 90 source files.
8336 < The output is a list of module file names that the Fortran 90 compiler
8337 < generates when compiling [FILES]."
8338 <
8339 < list=
8340 < empty=
8341 <
8342 < if test \$# -eq 0; then
8343 <   echo "\$usage"; exit 0
8344 < fi
8345 <
8346 < while test \$# != 0; do
8347 <
8348 <  file=\$1
8349 <  shift
8350 <
8351 < # strip suffix
8352 <  base=\`echo \$file | sed 's/[.][^.]*$//'\`
8353 <
8354 <  test ! -f \$file && continue
8355 <
8356 < # Look for module definitions and transform them to upper / lower case
8357 <  mods=\`cat \$file | sed '/^ *[mM][oO][dD][uU][lL][eE]/!d;s/^ *[mM][oO][dD][uU][lL][eE] *\([A-Za-z_][A-Za-z0-9_]*\).*\$/\1/'\`
8358 <  upper=\`echo \$mods | tr a-z A-Z\`
8359 <  lower=\`echo \$mods | tr A-Z a-z\`
8360 <
8361 < # Here, the patterns for generating module file names were inserted by configure
8362 <  for trans in $ac_cv_f90_module_names; do
8363 <
8364 <    pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
8365 <    var=empty
8366 <    case \$pat in
8367 <       %MODULE%)
8368 <          var=upper ;;
8369 <       %Module%)
8370 <          var=mods ;;
8371 <       %module%)
8372 <          var=lower ;;
8373 <       %FILE%)
8374 <          test -n "\$mods" && var=base ;;
8375 <    esac
8376 <    new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
8377 <    list="\$list \$new"
8378 <  done
8379 < done
8380 <
8381 < echo \$list
8382 < # end of configure-generated script
8383 < EOF
8384 < chmod 755 scripts/modnam
8385 <
8386 < pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
8387 < F90_MODULE_NAMES=empty
8388 < case $pat in
8389 <       %MODULE%)
8390 <          F90_MODULE_NAMES=UPPER ;;
8391 <       %Module%)
8392 <          F90_MODULE_NAMES=Mixed ;;
8393 <       %module%)
8394 <          F90_MODULE_NAMES=lower ;;
8395 <       *)
8396 <          F90_MODULE_NAMES=unknown ;;
8397 < esac
8398 <
8399 < ac_ext=${ac_fc_srcext-f}
8400 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8401 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8402 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8403 <
8404 <
8405 < ac_ext=c
8406 < ac_cpp='$CPP $CPPFLAGS'
8407 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8408 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8409 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
8410 <
8411 <
8412 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
8413 < $as_echo_n "checking for asin in -lm... " >&6; }
8414 < if test "${ac_cv_lib_m_asin+set}" = set; then :
8415 <  $as_echo_n "(cached) " >&6
8416 < else
8417 <  ac_check_lib_save_LIBS=$LIBS
8418 < LIBS="-lm  $LIBS"
8419 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 < /* end confdefs.h.  */
8421 <
8422 < /* Override any GCC internal prototype to avoid an error.
8423 <   Use char because int might match the return type of a GCC
8424 <   builtin and then its argument prototype would still apply.  */
8425 < #ifdef __cplusplus
8426 < extern "C"
8427 < #endif
8428 < char asin ();
8429 < #ifdef FC_DUMMY_MAIN
8430 < #ifndef FC_DUMMY_MAIN_EQ_F77
8431 < #  ifdef __cplusplus
8432 <     extern "C"
8433 < #  endif
8434 <   int FC_DUMMY_MAIN() { return 1; }
8435 < #endif
8436 < #endif
8437 < int
8438 < main ()
8439 < {
8440 < return asin ();
8441 <  ;
8442 <  return 0;
8443 < }
8444 < _ACEOF
8445 < if ac_fn_c_try_link "$LINENO"; then :
8446 <  ac_cv_lib_m_asin=yes
8447 < else
8448 <  ac_cv_lib_m_asin=no
8449 < fi
8450 < rm -f core conftest.err conftest.$ac_objext \
8451 <    conftest$ac_exeext conftest.$ac_ext
8452 < LIBS=$ac_check_lib_save_LIBS
4939 >  (set) 2>&1 |
4940 >    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4941 >    *${as_nl}ac_space=\ *)
4942 >      # `set' does not quote correctly, so add quotes: double-quote
4943 >      # substitution turns \\\\ into \\, and sed turns \\ into \.
4944 >      sed -n \
4945 >        "s/'/'\\\\''/g;
4946 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4947 >      ;; #(
4948 >    *)
4949 >      # `set' quotes correctly as required by POSIX, so do not add quotes.
4950 >      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4951 >      ;;
4952 >    esac |
4953 >    sort
4954 > ) |
4955 >  sed '
4956 >     /^ac_cv_env_/b end
4957 >     t clear
4958 >     :clear
4959 >     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4960 >     t end
4961 >     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4962 >     :end' >>confcache
4963 > if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4964 >  if test -w "$cache_file"; then
4965 >    if test "x$cache_file" != "x/dev/null"; then
4966 >      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4967 > $as_echo "$as_me: updating cache $cache_file" >&6;}
4968 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
4969 >        cat confcache >"$cache_file"
4970 >      else
4971 >        case $cache_file in #(
4972 >        */* | ?:*)
4973 >          mv -f confcache "$cache_file"$$ &&
4974 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
4975 >        *)
4976 >          mv -f confcache "$cache_file" ;;
4977 >        esac
4978 >      fi
4979 >    fi
4980 >  else
4981 >    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4982 > $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4983 >  fi
4984   fi
4985 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
4986 < $as_echo "$ac_cv_lib_m_asin" >&6; }
8456 < if test "x$ac_cv_lib_m_asin" = x""yes; then :
8457 <  cat >>confdefs.h <<_ACEOF
8458 < #define HAVE_LIBM 1
8459 < _ACEOF
8460 <
8461 <  LIBS="-lm $LIBS"
8462 <
8463 < else
8464 <  exit
4985 > rm -f confcache
4986 >  exit 1
4987   fi
4988  
4989  
4990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4991   $as_echo_n "checking for ANSI C header files... " >&6; }
4992 < if test "${ac_cv_header_stdc+set}" = set; then :
4992 > if ${ac_cv_header_stdc+:} false; then :
4993    $as_echo_n "(cached) " >&6
4994   else
4995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 8477 | Line 4999 | else
4999   #include <string.h>
5000   #include <float.h>
5001  
8480 #ifdef FC_DUMMY_MAIN
8481 #ifndef FC_DUMMY_MAIN_EQ_F77
8482 #  ifdef __cplusplus
8483     extern "C"
8484 #  endif
8485   int FC_DUMMY_MAIN() { return 1; }
8486 #endif
8487 #endif
5002   int
5003   main ()
5004   {
# Line 8592 | Line 5106 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$
5106    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5107   ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5108   "
5109 < eval as_val=\$$as_ac_Header
8596 <   if test "x$as_val" = x""yes; then :
5109 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5110    cat >>confdefs.h <<_ACEOF
5111   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5112   _ACEOF
# Line 8648 | Line 5161 | $as_echo_n "checking for inflateEnd in -lz... " >&6; }
5161  
5162          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
5163   $as_echo_n "checking for inflateEnd in -lz... " >&6; }
5164 < if test "${ac_cv_lib_z_inflateEnd+set}" = set; then :
5164 > if ${ac_cv_lib_z_inflateEnd+:} false; then :
5165    $as_echo_n "(cached) " >&6
5166   else
5167    ac_check_lib_save_LIBS=$LIBS
# Line 8663 | Line 5176 | char inflateEnd ();
5176   extern "C"
5177   #endif
5178   char inflateEnd ();
8666 #ifdef FC_DUMMY_MAIN
8667 #ifndef FC_DUMMY_MAIN_EQ_F77
8668 #  ifdef __cplusplus
8669     extern "C"
8670 #  endif
8671   int FC_DUMMY_MAIN() { return 1; }
8672 #endif
8673 #endif
5179   int
5180   main ()
5181   {
# Line 8690 | Line 5195 | $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
5195   fi
5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
5197   $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
5198 < if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
5198 > if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
5199    zlib_cv_libz=yes
5200   else
5201    zlib_cv_libz=no
5202   fi
5203  
5204          ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5205 < if test "x$ac_cv_header_zlib_h" = x""yes; then :
5205 > if test "x$ac_cv_header_zlib_h" = xyes; then :
5206    zlib_cv_zlib_h=yes
5207   else
5208    zlib_cv_zlib_h=no
# Line 8734 | Line 5239 | $as_echo "failed" >&6; }
5239                  echo ""
5240                  echo "*********************************************************"
5241                  echo "* WARNING: Could not find a working zlib installation   *"
5242 <                echo "* If you need OOPSE to be able to deal with compressed  *"
5242 >                echo "* If you need OpenMD to be able to deal with compressed *"
5243                  echo "* trajectory dump files be sure to specify a valid zlib *"
5244                  echo "* installation with --with-zlib=DIR                     *"
5245                  echo "*                                                       *"
5246 <                echo "* OOPSE will still work without zlib installed.         *"
5246 >                echo "* OpenMD will still work without zlib installed.        *"
5247                  echo "*********************************************************"
5248                  echo ""
5249          fi
# Line 8788 | Line 5293 | $as_echo_n "checking for fftw_execute in -lfftw3... "
5293  
5294        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
5295   $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
5296 < if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
5296 > if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
5297    $as_echo_n "(cached) " >&6
5298   else
5299    ac_check_lib_save_LIBS=$LIBS
# Line 8803 | Line 5308 | char fftw_execute ();
5308   extern "C"
5309   #endif
5310   char fftw_execute ();
8806 #ifdef FC_DUMMY_MAIN
8807 #ifndef FC_DUMMY_MAIN_EQ_F77
8808 #  ifdef __cplusplus
8809     extern "C"
8810 #  endif
8811   int FC_DUMMY_MAIN() { return 1; }
8812 #endif
8813 #endif
5311   int
5312   main ()
5313   {
# Line 8830 | Line 5327 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
5327   fi
5328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
5329   $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
5330 < if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
5330 > if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
5331    fftw_cv_libfftw3=yes
5332   else
5333    fftw_cv_libfftw3=no
5334   fi
5335  
5336        ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
5337 < if test "x$ac_cv_header_fftw3_h" = x""yes; then :
5337 > if test "x$ac_cv_header_fftw3_h" = xyes; then :
5338    fftw_cv_fftw3_h=yes
5339   else
5340    fftw_cv_fftw3_h=no
# Line 8847 | Line 5344 | $as_echo_n "checking for fftwnd_one in -lfftw... " >&6
5344        if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then
5345          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -lfftw" >&5
5346   $as_echo_n "checking for fftwnd_one in -lfftw... " >&6; }
5347 < if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then :
5347 > if ${ac_cv_lib_fftw_fftwnd_one+:} false; then :
5348    $as_echo_n "(cached) " >&6
5349   else
5350    ac_check_lib_save_LIBS=$LIBS
# Line 8862 | Line 5359 | char fftwnd_one ();
5359   extern "C"
5360   #endif
5361   char fftwnd_one ();
8865 #ifdef FC_DUMMY_MAIN
8866 #ifndef FC_DUMMY_MAIN_EQ_F77
8867 #  ifdef __cplusplus
8868     extern "C"
8869 #  endif
8870   int FC_DUMMY_MAIN() { return 1; }
8871 #endif
8872 #endif
5362   int
5363   main ()
5364   {
# Line 8889 | Line 5378 | $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
5378   fi
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_fftwnd_one" >&5
5380   $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
5381 < if test "x$ac_cv_lib_fftw_fftwnd_one" = x""yes; then :
5381 > if test "x$ac_cv_lib_fftw_fftwnd_one" = xyes; then :
5382    fftw_cv_libfftw=yes
5383   else
5384    fftw_cv_libfftw=no
5385   fi
5386  
5387          ac_fn_c_check_header_mongrel "$LINENO" "fftw.h" "ac_cv_header_fftw_h" "$ac_includes_default"
5388 < if test "x$ac_cv_header_fftw_h" = x""yes; then :
5388 > if test "x$ac_cv_header_fftw_h" = xyes; then :
5389    fftw_cv_fftw_h=yes
5390   else
5391    fftw_cv_fftw_h=no
# Line 8906 | Line 5395 | $as_echo_n "checking for fftwnd_one in -ldfftw... " >&
5395          if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
5396            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -ldfftw" >&5
5397   $as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; }
5398 < if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then :
5398 > if ${ac_cv_lib_dfftw_fftwnd_one+:} false; then :
5399    $as_echo_n "(cached) " >&6
5400   else
5401    ac_check_lib_save_LIBS=$LIBS
# Line 8921 | Line 5410 | char fftwnd_one ();
5410   extern "C"
5411   #endif
5412   char fftwnd_one ();
8924 #ifdef FC_DUMMY_MAIN
8925 #ifndef FC_DUMMY_MAIN_EQ_F77
8926 #  ifdef __cplusplus
8927     extern "C"
8928 #  endif
8929   int FC_DUMMY_MAIN() { return 1; }
8930 #endif
8931 #endif
5413   int
5414   main ()
5415   {
# Line 8948 | Line 5429 | $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
5429   fi
5430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
5431   $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
5432 < if test "x$ac_cv_lib_dfftw_fftwnd_one" = x""yes; then :
5432 > if test "x$ac_cv_lib_dfftw_fftwnd_one" = xyes; then :
5433    fftw_cv_libdfftw=yes
5434   else
5435    fftw_cv_libdfftw=no
5436   fi
5437  
5438            ac_fn_c_check_header_mongrel "$LINENO" "dfftw.h" "ac_cv_header_dfftw_h" "$ac_includes_default"
5439 < if test "x$ac_cv_header_dfftw_h" = x""yes; then :
5439 > if test "x$ac_cv_header_dfftw_h" = xyes; then :
5440    fftw_cv_dfftw_h=yes
5441   else
5442    fftw_cv_dfftw_h=no
# Line 9010 | Line 5491 | $as_echo "failed" >&6; }
5491              echo "* compute undulation spectra, be sure to specify a      *"
5492              echo "* valid fftw installation with --with-fftw=DIR          *"
5493              echo "*                                                       *"
5494 <            echo "* OOPSE will still work without fftw installed.         *"
5494 >            echo "* OpenMD will still work without fftw installed.        *"
5495              echo "*********************************************************"
5496              echo ""
5497            fi
# Line 9047 | Line 5528 | $as_echo "$as_me: WARNING: Sorry, $qhull_dir does not
5528         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5
5529   $as_echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;}
5530         QHULL_HOME=/usr/local
5531 <       if test ! -f "${QHULL_HOME}/include/qhull/qhull.h"; then
5531 >       if test ! -f "${QHULL_HOME}/include/qhull/libqhull.h"; then
5532            QHULL_HOME=/usr
5533         fi
5534       fi
# Line 9071 | Line 5552 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552          LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
5553          CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
5554          CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include"
5555 <        ac_fn_c_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default"
5556 < if test "x$ac_cv_header_qhull_qhull_h" = x""yes; then :
5557 <  qhull_cv_qhull_h=yes
5555 >        ac_fn_c_check_header_mongrel "$LINENO" "qhull/libqhull.h" "ac_cv_header_qhull_libqhull_h" "$ac_includes_default"
5556 > if test "x$ac_cv_header_qhull_libqhull_h" = xyes; then :
5557 >  qhull_cv_libqhull_h=yes
5558   else
5559 <  qhull_cv_qhull_h=no
5559 >  qhull_cv_libqhull_h=no
5560   fi
5561  
5562  
5563          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull" >&5
5564   $as_echo_n "checking for qh_qhull in -lqhull... " >&6; }
5565 < if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then :
5565 > if ${ac_cv_lib_qhull_qh_qhull+:} false; then :
5566    $as_echo_n "(cached) " >&6
5567   else
5568    ac_check_lib_save_LIBS=$LIBS
# Line 9096 | Line 5577 | char qh_qhull ();
5577   extern "C"
5578   #endif
5579   char qh_qhull ();
9099 #ifdef FC_DUMMY_MAIN
9100 #ifndef FC_DUMMY_MAIN_EQ_F77
9101 #  ifdef __cplusplus
9102     extern "C"
9103 #  endif
9104   int FC_DUMMY_MAIN() { return 1; }
9105 #endif
9106 #endif
5580   int
5581   main ()
5582   {
# Line 9123 | Line 5596 | $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
5596   fi
5597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull_qh_qhull" >&5
5598   $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
5599 < if test "x$ac_cv_lib_qhull_qh_qhull" = x""yes; then :
5599 > if test "x$ac_cv_lib_qhull_qh_qhull" = xyes; then :
5600    qhull_cv_libqhull=yes
5601   else
5602    qhull_cv_libqhull=no
5603   fi
5604  
5605 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull6" >&5
5606 + $as_echo_n "checking for qh_qhull in -lqhull6... " >&6; }
5607 + if ${ac_cv_lib_qhull6_qh_qhull+:} false; then :
5608 +  $as_echo_n "(cached) " >&6
5609 + else
5610 +  ac_check_lib_save_LIBS=$LIBS
5611 + LIBS="-lqhull6  $LIBS"
5612 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 + /* end confdefs.h.  */
5614 +
5615 + /* Override any GCC internal prototype to avoid an error.
5616 +   Use char because int might match the return type of a GCC
5617 +   builtin and then its argument prototype would still apply.  */
5618 + #ifdef __cplusplus
5619 + extern "C"
5620 + #endif
5621 + char qh_qhull ();
5622 + int
5623 + main ()
5624 + {
5625 + return qh_qhull ();
5626 +  ;
5627 +  return 0;
5628 + }
5629 + _ACEOF
5630 + if ac_fn_c_try_link "$LINENO"; then :
5631 +  ac_cv_lib_qhull6_qh_qhull=yes
5632 + else
5633 +  ac_cv_lib_qhull6_qh_qhull=no
5634 + fi
5635 + rm -f core conftest.err conftest.$ac_objext \
5636 +    conftest$ac_exeext conftest.$ac_ext
5637 + LIBS=$ac_check_lib_save_LIBS
5638 + fi
5639 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull6_qh_qhull" >&5
5640 + $as_echo "$ac_cv_lib_qhull6_qh_qhull" >&6; }
5641 + if test "x$ac_cv_lib_qhull6_qh_qhull" = xyes; then :
5642 +  qhull_cv_libqhull6=yes
5643 + else
5644 +  qhull_cv_libqhull6=no
5645 + fi
5646 +
5647          LDFLAGS="$QHULL_OLD_LDFLAGS"
5648          CFLAGS="$QHULL_OLD_CFLAGS"
5649          CPPFLAGS="$QHULL_OLD_CPPFLAGS"
# Line 9139 | Line 5654 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654   ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655  
5656  
5657 <        if test "$qhull_cv_libqhull" = "yes" -a "$qhull_cv_qhull_h" = "yes"; then
5657 >        if test "$qhull_cv_libqhull_h" = "yes" -a "$qhull_cv_libqhull" = "yes" -o "$qhull_cv_libqhull6" = "yes"; then
5658  
5659 < $as_echo "#define HAVE_QHULL_H 1" >>confdefs.h
5659 > $as_echo "#define HAVE_LIBQHULL_H 1" >>confdefs.h
5660  
5661 +           if test "$qhull_cv_libqhull" = "yes"; then
5662  
5663   $as_echo "#define HAVE_QHULL 1" >>confdefs.h
5664  
5665 +                QHULL="-lqhull"
5666 +           fi
5667 +           if test "$qhull_cv_libqhull6" = "yes"; then
5668 +
5669 + $as_echo "#define HAVE_QHULL 1" >>confdefs.h
5670 +
5671 +                QHULL="-lqhull6"
5672 +           fi
5673             USE_QHULL=yes
5674             QHULL_INC_DIR="${QHULL_HOME}/include"
5675             QHULL_LIB_DIR="${QHULL_HOME}/lib"
9152           QHULL="-lqhull"
5676             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Working qhull found, will proceed." >&5
5677   $as_echo "Working qhull found, will proceed." >&6; }
5678          else
# Line 9157 | Line 5680 | $as_echo "$as_me: WARNING: Could not find a working qh
5680   $as_echo "$as_me: WARNING: " >&2;}
5681             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a working qhull installation" >&5
5682   $as_echo "$as_me: WARNING: Could not find a working qhull installation" >&2;}
5683 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OOPSE to be able to deal with convex    " >&5
5684 < $as_echo "$as_me: WARNING: If you need OOPSE to be able to deal with convex    " >&2;}
5683 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OpenMD to be able to deal with convex    " >&5
5684 > $as_echo "$as_me: WARNING: If you need OpenMD to be able to deal with convex    " >&2;}
5685             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hulls be sure to specify a valid qhull installation " >&5
5686   $as_echo "$as_me: WARNING: hulls be sure to specify a valid qhull installation " >&2;}
5687             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with --with-qhull=DIR                               " >&5
5688   $as_echo "$as_me: WARNING: with --with-qhull=DIR                               " >&2;}
5689             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
5690   $as_echo "$as_me: WARNING: " >&2;}
5691 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OOPSE will still work without qhull installed.      " >&5
5692 < $as_echo "$as_me: WARNING: OOPSE will still work without qhull installed.      " >&2;}
5691 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMD will still work without qhull installed.      " >&5
5692 > $as_echo "$as_me: WARNING: OpenMD will still work without qhull installed.      " >&2;}
5693             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
5694   $as_echo "$as_me: WARNING: " >&2;}
5695          fi
# Line 9185 | Line 5708 | if test -z "$CXXCPP"; then
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5709   $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5710   if test -z "$CXXCPP"; then
5711 <  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5711 >  if ${ac_cv_prog_CXXCPP+:} false; then :
5712    $as_echo_n "(cached) " >&6
5713   else
5714        # Double quotes because CXXCPP needs to be expanded
# Line 9215 | Line 5738 | fi
5738    # Broken: fails on valid input.
5739   continue
5740   fi
5741 < rm -f conftest.err conftest.$ac_ext
5741 > rm -f conftest.err conftest.i conftest.$ac_ext
5742  
5743    # OK, works on sane cases.  Now check whether nonexistent headers
5744    # can be detected and how.
# Line 9231 | Line 5754 | fi
5754   ac_preproc_ok=:
5755   break
5756   fi
5757 < rm -f conftest.err conftest.$ac_ext
5757 > rm -f conftest.err conftest.i conftest.$ac_ext
5758  
5759   done
5760   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5761 < rm -f conftest.err conftest.$ac_ext
5761 > rm -f conftest.i conftest.err conftest.$ac_ext
5762   if $ac_preproc_ok; then :
5763    break
5764   fi
# Line 9274 | Line 5797 | fi
5797    # Broken: fails on valid input.
5798   continue
5799   fi
5800 < rm -f conftest.err conftest.$ac_ext
5800 > rm -f conftest.err conftest.i conftest.$ac_ext
5801  
5802    # OK, works on sane cases.  Now check whether nonexistent headers
5803    # can be detected and how.
# Line 9290 | Line 5813 | fi
5813   ac_preproc_ok=:
5814   break
5815   fi
5816 < rm -f conftest.err conftest.$ac_ext
5816 > rm -f conftest.err conftest.i conftest.$ac_ext
5817  
5818   done
5819   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5820 < rm -f conftest.err conftest.$ac_ext
5820 > rm -f conftest.i conftest.err conftest.$ac_ext
5821   if $ac_preproc_ok; then :
5822  
5823   else
5824    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5825   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5826 < as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5827 < See \`config.log' for more details." "$LINENO" 5; }
5826 > as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5827 > See \`config.log' for more details" "$LINENO" 5; }
5828   fi
5829  
5830   ac_ext=cpp
# Line 9355 | Line 5878 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5878          LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel"
5879          CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0"
5880          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/babelconfig.h" "ac_cv_header_openbabel_babelconfig_h" "$ac_includes_default"
5881 < if test "x$ac_cv_header_openbabel_babelconfig_h" = x""yes; then :
5881 > if test "x$ac_cv_header_openbabel_babelconfig_h" = xyes; then :
5882    openbabel_cv_openbabel_h=yes
5883   else
5884    openbabel_cv_openbabel_h=no
# Line 9363 | Line 5886 | fi
5886  
5887  
5888          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/obconversion.h" "ac_cv_header_openbabel_obconversion_h" "$ac_includes_default"
5889 < if test "x$ac_cv_header_openbabel_obconversion_h" = x""yes; then :
5889 > if test "x$ac_cv_header_openbabel_obconversion_h" = xyes; then :
5890    openbabel_cv_obconversion_h=yes
5891   else
5892    openbabel_cv_obconversion_h=no
# Line 9379 | Line 5902 | using namespace OpenBabel;
5902   using namespace std;
5903   using namespace OpenBabel;
5904  
9382 #ifdef FC_DUMMY_MAIN
9383 #ifndef FC_DUMMY_MAIN_EQ_F77
9384 #  ifdef __cplusplus
9385     extern "C"
9386 #  endif
9387   int FC_DUMMY_MAIN() { return 1; }
9388 #endif
9389 #endif
5905   int
5906   main ()
5907   {
# Line 9440 | Line 5955 | $as_echo "failed" >&6; }
5955                  echo ""
5956                  echo "*********************************************************"
5957                  echo "* WARNING: Could not find a working openbabel-2.x       *"
5958 <                echo "* installation If you need OOPSE to be able to convert  *"
5958 >                echo "* installation If you need OpenMD to be able to convert *"
5959                  echo "* xyz or pdb files you need to specify a valid          *"
5960                  echo "* openbabel-2.x installation with --with-openbabel=DIR  *"
5961                  echo "*                                                       *"
5962 <                echo "* OOPSE will still work without openbabel installed.    *"
5962 >                echo "* OpenMD will still work without openbabel installed.   *"
5963                  echo "*********************************************************"
5964                  echo ""
5965          fi
# Line 9457 | Line 5972 | fi
5972  
5973  
5974   # Checks for header files.
5975 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9461 < $as_echo_n "checking for ANSI C header files... " >&6; }
9462 < if test "${ac_cv_header_stdc+set}" = set; then :
9463 <  $as_echo_n "(cached) " >&6
9464 < else
9465 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9466 < /* end confdefs.h.  */
9467 < #include <stdlib.h>
9468 < #include <stdarg.h>
9469 < #include <string.h>
9470 < #include <float.h>
9471 <
9472 < #ifdef FC_DUMMY_MAIN
9473 < #ifndef FC_DUMMY_MAIN_EQ_F77
9474 < #  ifdef __cplusplus
9475 <     extern "C"
9476 < #  endif
9477 <   int FC_DUMMY_MAIN() { return 1; }
9478 < #endif
9479 < #endif
9480 < int
9481 < main ()
9482 < {
9483 <
9484 <  ;
9485 <  return 0;
9486 < }
9487 < _ACEOF
9488 < if ac_fn_c_try_compile "$LINENO"; then :
9489 <  ac_cv_header_stdc=yes
9490 < else
9491 <  ac_cv_header_stdc=no
9492 < fi
9493 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9494 <
9495 < if test $ac_cv_header_stdc = yes; then
9496 <  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9497 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 < /* end confdefs.h.  */
9499 < #include <string.h>
9500 <
9501 < _ACEOF
9502 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9503 <  $EGREP "memchr" >/dev/null 2>&1; then :
9504 <
9505 < else
9506 <  ac_cv_header_stdc=no
9507 < fi
9508 < rm -f conftest*
9509 <
9510 < fi
9511 <
9512 < if test $ac_cv_header_stdc = yes; then
9513 <  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9514 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515 < /* end confdefs.h.  */
9516 < #include <stdlib.h>
9517 <
9518 < _ACEOF
9519 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9520 <  $EGREP "free" >/dev/null 2>&1; then :
9521 <
9522 < else
9523 <  ac_cv_header_stdc=no
9524 < fi
9525 < rm -f conftest*
9526 <
9527 < fi
9528 <
9529 < if test $ac_cv_header_stdc = yes; then
9530 <  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9531 <  if test "$cross_compiling" = yes; then :
9532 <  :
9533 < else
9534 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 < /* end confdefs.h.  */
9536 < #include <ctype.h>
9537 < #include <stdlib.h>
9538 < #if ((' ' & 0x0FF) == 0x020)
9539 < # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9540 < # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9541 < #else
9542 < # define ISLOWER(c) \
9543 <                   (('a' <= (c) && (c) <= 'i') \
9544 <                     || ('j' <= (c) && (c) <= 'r') \
9545 <                     || ('s' <= (c) && (c) <= 'z'))
9546 < # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9547 < #endif
9548 <
9549 < #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9550 < int
9551 < main ()
9552 < {
9553 <  int i;
9554 <  for (i = 0; i < 256; i++)
9555 <    if (XOR (islower (i), ISLOWER (i))
9556 <        || toupper (i) != TOUPPER (i))
9557 <      return 2;
9558 <  return 0;
9559 < }
9560 < _ACEOF
9561 < if ac_fn_c_try_run "$LINENO"; then :
9562 <
9563 < else
9564 <  ac_cv_header_stdc=no
9565 < fi
9566 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9567 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
9568 < fi
9569 <
9570 < fi
9571 < fi
9572 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9573 < $as_echo "$ac_cv_header_stdc" >&6; }
9574 < if test $ac_cv_header_stdc = yes; then
9575 <
9576 < $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9577 <
9578 < fi
9579 <
9580 < for ac_header in libintl.h limits.h machine/hal_sysinfo.h stdlib.h string.h strings.h sys/param.h sys/pstat.h sys/sysctl.h sys/sysinfo.h sys/sysmp.h sys/systemcfg.h sys/table.h sys/time.h unistd.h
5975 > for ac_header in limits.h stdlib.h string.h sys/ioctl.h unistd.h
5976   do :
5977    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5978   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5979 < eval as_val=\$$as_ac_Header
9585 <   if test "x$as_val" = x""yes; then :
5979 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5980    cat >>confdefs.h <<_ACEOF
5981   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5982   _ACEOF
# Line 9595 | Line 5989 | $as_echo_n "checking for stdbool.h that conforms to C9
5989   # Checks for typedefs, structures, and compiler characteristics.
5990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5991   $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
5992 < if test "${ac_cv_header_stdbool_h+set}" = set; then :
5992 > if ${ac_cv_header_stdbool_h+:} false; then :
5993    $as_echo_n "(cached) " >&6
5994   else
5995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9627 | Line 6021 | else
6021          char b[false == 0 ? 1 : -1];
6022          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6023          char d[(bool) 0.5 == true ? 1 : -1];
6024 <        bool e = &s;
6024 >        /* See body of main program for 'e'.  */
6025          char f[(_Bool) 0.0 == false ? 1 : -1];
6026          char g[true];
6027          char h[sizeof (_Bool)];
# Line 9638 | Line 6032 | else
6032          _Bool n[m];
6033          char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6034          char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9641 #       if defined __xlc__ || defined __GNUC__
9642         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9643            reported by James Lemley on 2005-10-05; see
9644            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9645            This test is not quite right, since xlc is allowed to
9646            reject this program, as the initializer for xlcbug is
9647            not one of the forms that C requires support for.
9648            However, doing the test right would require a runtime
9649            test, and that would make cross-compilation harder.
9650            Let us hope that IBM fixes the xlc bug, and also adds
9651            support for this kind of constant expression.  In the
9652            meantime, this test will reject xlc, which is OK, since
9653            our stdbool.h substitute should suffice.  We also test
9654            this with GCC, where it should work, to detect more
9655            quickly whether someone messes up the test in the
9656            future.  */
9657         char digs[] = "0123456789";
9658         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9659 #       endif
6035          /* Catch a bug in an HP-UX C compiler.  See
6036             http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6037             http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
# Line 9664 | Line 6039 | else
6039          _Bool q = true;
6040          _Bool *pq = &q;
6041  
9667 #ifdef FC_DUMMY_MAIN
9668 #ifndef FC_DUMMY_MAIN_EQ_F77
9669 #  ifdef __cplusplus
9670     extern "C"
9671 #  endif
9672   int FC_DUMMY_MAIN() { return 1; }
9673 #endif
9674 #endif
6042   int
6043   main ()
6044   {
6045  
6046 +        bool e = &s;
6047          *pq |= q;
6048          *pq |= ! q;
6049          /* Refer to every declared value, to avoid compiler optimizations.  */
# Line 9696 | Line 6064 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool
6064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6065   $as_echo "$ac_cv_header_stdbool_h" >&6; }
6066   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6067 < if test "x$ac_cv_type__Bool" = x""yes; then :
6067 > if test "x$ac_cv_type__Bool" = xyes; then :
6068  
6069   cat >>confdefs.h <<_ACEOF
6070   #define HAVE__BOOL 1
# Line 9711 | Line 6079 | fi
6079  
6080   fi
6081  
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9715 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9716 if test "${ac_cv_c_const+set}" = set; then :
9717  $as_echo_n "(cached) " >&6
9718 else
9719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h.  */
9721
9722 #ifdef FC_DUMMY_MAIN
9723 #ifndef FC_DUMMY_MAIN_EQ_F77
9724 #  ifdef __cplusplus
9725     extern "C"
9726 #  endif
9727   int FC_DUMMY_MAIN() { return 1; }
9728 #endif
9729 #endif
9730 int
9731 main ()
9732 {
9733 /* FIXME: Include the comments suggested by Paul. */
9734 #ifndef __cplusplus
9735  /* Ultrix mips cc rejects this.  */
9736  typedef int charset[2];
9737  const charset cs;
9738  /* SunOS 4.1.1 cc rejects this.  */
9739  char const *const *pcpcc;
9740  char **ppc;
9741  /* NEC SVR4.0.2 mips cc rejects this.  */
9742  struct point {int x, y;};
9743  static struct point const zero = {0,0};
9744  /* AIX XL C 1.02.0.0 rejects this.
9745     It does not let you subtract one const X* pointer from another in
9746     an arm of an if-expression whose if-part is not a constant
9747     expression */
9748  const char *g = "string";
9749  pcpcc = &g + (g ? g-g : 0);
9750  /* HPUX 7.0 cc rejects these. */
9751  ++pcpcc;
9752  ppc = (char**) pcpcc;
9753  pcpcc = (char const *const *) ppc;
9754  { /* SCO 3.2v4 cc rejects this.  */
9755    char *t;
9756    char const *s = 0 ? (char *) 0 : (char const *) 0;
9757
9758    *t++ = 0;
9759    if (s) return 0;
9760  }
9761  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9762    int x[] = {25, 17};
9763    const int *foo = &x[0];
9764    ++foo;
9765  }
9766  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9767    typedef const int *iptr;
9768    iptr p = 0;
9769    ++p;
9770  }
9771  { /* AIX XL C 1.02.0.0 rejects this saying
9772       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9773    struct s { int j; const int *ap[3]; };
9774    struct s *b; b->j = 5;
9775  }
9776  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9777    const int foo = 10;
9778    if (!foo) return 0;
9779  }
9780  return !cs[0] && !zero.x;
9781 #endif
9782
9783  ;
9784  return 0;
9785 }
9786 _ACEOF
9787 if ac_fn_c_try_compile "$LINENO"; then :
9788  ac_cv_c_const=yes
9789 else
9790  ac_cv_c_const=no
9791 fi
9792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9793 fi
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9795 $as_echo "$ac_cv_c_const" >&6; }
9796 if test $ac_cv_c_const = no; then
9797
9798 $as_echo "#define const /**/" >>confdefs.h
9799
9800 fi
9801
6082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6083   $as_echo_n "checking for inline... " >&6; }
6084 < if test "${ac_cv_c_inline+set}" = set; then :
6084 > if ${ac_cv_c_inline+:} false; then :
6085    $as_echo_n "(cached) " >&6
6086   else
6087    ac_cv_c_inline=no
# Line 9842 | Line 6122 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size
6122   esac
6123  
6124   ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6125 < if test "x$ac_cv_type_size_t" = x""yes; then :
6125 > if test "x$ac_cv_type_size_t" = xyes; then :
6126  
6127   else
6128  
6129   cat >>confdefs.h <<_ACEOF
6130   #define size_t unsigned int
9851 _ACEOF
9852
9853 fi
9854
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9856 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9857 if test "${ac_cv_header_time+set}" = set; then :
9858  $as_echo_n "(cached) " >&6
9859 else
9860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h.  */
9862 #include <sys/types.h>
9863 #include <sys/time.h>
9864 #include <time.h>
9865
9866 #ifdef FC_DUMMY_MAIN
9867 #ifndef FC_DUMMY_MAIN_EQ_F77
9868 #  ifdef __cplusplus
9869     extern "C"
9870 #  endif
9871   int FC_DUMMY_MAIN() { return 1; }
9872 #endif
9873 #endif
9874 int
9875 main ()
9876 {
9877 if ((struct tm *) 0)
9878 return 0;
9879  ;
9880  return 0;
9881 }
6131   _ACEOF
9883 if ac_fn_c_try_compile "$LINENO"; then :
9884  ac_cv_header_time=yes
9885 else
9886  ac_cv_header_time=no
9887 fi
9888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9889 fi
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9891 $as_echo "$ac_cv_header_time" >&6; }
9892 if test $ac_cv_header_time = yes; then
6132  
9894 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9895
6133   fi
6134  
6135  
# Line 9900 | Line 6137 | do :
6137   for ac_header in stdlib.h
6138   do :
6139    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6140 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6140 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
6141    cat >>confdefs.h <<_ACEOF
6142   #define HAVE_STDLIB_H 1
6143   _ACEOF
# Line 9911 | Line 6148 | $as_echo_n "checking for GNU libc compatible malloc...
6148  
6149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6150   $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6151 < if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6151 > if ${ac_cv_func_malloc_0_nonnull+:} false; then :
6152    $as_echo_n "(cached) " >&6
6153   else
6154    if test "$cross_compiling" = yes; then :
# Line 9925 | Line 6162 | char *malloc ();
6162   char *malloc ();
6163   #endif
6164  
9928 #ifdef FC_DUMMY_MAIN
9929 #ifndef FC_DUMMY_MAIN_EQ_F77
9930 #  ifdef __cplusplus
9931     extern "C"
9932 #  endif
9933   int FC_DUMMY_MAIN() { return 1; }
9934 #endif
9935 #endif
6165   int
6166   main ()
6167   {
# Line 9975 | Line 6204 | do :
6204   for ac_header in stdlib.h
6205   do :
6206    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6207 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6207 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
6208    cat >>confdefs.h <<_ACEOF
6209   #define HAVE_STDLIB_H 1
6210   _ACEOF
# Line 9986 | Line 6215 | $as_echo_n "checking for GNU libc compatible realloc..
6215  
6216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6217   $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6218 < if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6218 > if ${ac_cv_func_realloc_0_nonnull+:} false; then :
6219    $as_echo_n "(cached) " >&6
6220   else
6221    if test "$cross_compiling" = yes; then :
# Line 10000 | Line 6229 | char *realloc ();
6229   char *realloc ();
6230   #endif
6231  
10003 #ifdef FC_DUMMY_MAIN
10004 #ifndef FC_DUMMY_MAIN_EQ_F77
10005 #  ifdef __cplusplus
10006     extern "C"
10007 #  endif
10008   int FC_DUMMY_MAIN() { return 1; }
10009 #endif
10010 #endif
6232   int
6233   main ()
6234   {
# Line 10046 | Line 6267 | fi
6267  
6268   fi
6269  
10049
10050 for ac_header in sys/select.h sys/socket.h
10051 do :
10052  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10053 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10054 eval as_val=\$$as_ac_Header
10055   if test "x$as_val" = x""yes; then :
10056  cat >>confdefs.h <<_ACEOF
10057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10058 _ACEOF
10059
10060 fi
10061
10062 done
10063
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
10065 $as_echo_n "checking types of arguments for select... " >&6; }
10066 if test "${ac_cv_func_select_args+set}" = set; then :
10067  $as_echo_n "(cached) " >&6
10068 else
10069  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10070 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10071  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h.  */
10074 $ac_includes_default
10075 #ifdef HAVE_SYS_SELECT_H
10076 # include <sys/select.h>
10077 #endif
10078 #ifdef HAVE_SYS_SOCKET_H
10079 # include <sys/socket.h>
10080 #endif
10081
10082 #ifdef FC_DUMMY_MAIN
10083 #ifndef FC_DUMMY_MAIN_EQ_F77
10084 #  ifdef __cplusplus
10085     extern "C"
10086 #  endif
10087   int FC_DUMMY_MAIN() { return 1; }
10088 #endif
10089 #endif
10090 int
10091 main ()
10092 {
10093 extern int select ($ac_arg1,
10094                                            $ac_arg234, $ac_arg234, $ac_arg234,
10095                                            $ac_arg5);
10096  ;
10097  return 0;
10098 }
10099 _ACEOF
10100 if ac_fn_c_try_compile "$LINENO"; then :
10101  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10102 fi
10103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10104  done
10105 done
10106 done
10107 # Provide a safe default value.
10108 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10109
10110 fi
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10112 $as_echo "$ac_cv_func_select_args" >&6; }
10113 ac_save_IFS=$IFS; IFS=','
10114 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10115 IFS=$ac_save_IFS
10116 shift
10117
10118 cat >>confdefs.h <<_ACEOF
10119 #define SELECT_TYPE_ARG1 $1
10120 _ACEOF
10121
10122
10123 cat >>confdefs.h <<_ACEOF
10124 #define SELECT_TYPE_ARG234 ($2)
10125 _ACEOF
10126
10127
10128 cat >>confdefs.h <<_ACEOF
10129 #define SELECT_TYPE_ARG5 ($3)
10130 _ACEOF
10131
10132 rm -f conftest*
6270  
6271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6272   $as_echo_n "checking for working strtod... " >&6; }
6273 < if test "${ac_cv_func_strtod+set}" = set; then :
6273 > if ${ac_cv_func_strtod+:} false; then :
6274    $as_echo_n "(cached) " >&6
6275   else
6276    if test "$cross_compiling" = yes; then :
# Line 10192 | Line 6329 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6329   esac
6330  
6331   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6332 < if test "x$ac_cv_func_pow" = x""yes; then :
6332 > if test "x$ac_cv_func_pow" = xyes; then :
6333  
6334   fi
6335  
6336   if test $ac_cv_func_pow = no; then
6337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6338   $as_echo_n "checking for pow in -lm... " >&6; }
6339 < if test "${ac_cv_lib_m_pow+set}" = set; then :
6339 > if ${ac_cv_lib_m_pow+:} false; then :
6340    $as_echo_n "(cached) " >&6
6341   else
6342    ac_check_lib_save_LIBS=$LIBS
# Line 10214 | Line 6351 | char pow ();
6351   extern "C"
6352   #endif
6353   char pow ();
10217 #ifdef FC_DUMMY_MAIN
10218 #ifndef FC_DUMMY_MAIN_EQ_F77
10219 #  ifdef __cplusplus
10220     extern "C"
10221 #  endif
10222   int FC_DUMMY_MAIN() { return 1; }
10223 #endif
10224 #endif
6354   int
6355   main ()
6356   {
# Line 10241 | Line 6370 | $as_echo "$ac_cv_lib_m_pow" >&6; }
6370   fi
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6372   $as_echo "$ac_cv_lib_m_pow" >&6; }
6373 < if test "x$ac_cv_lib_m_pow" = x""yes; then :
6373 > if test "x$ac_cv_lib_m_pow" = xyes; then :
6374    POW_LIB=-lm
6375   else
6376    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
# Line 10252 | Line 6381 | fi
6381  
6382   fi
6383  
6384 < for ac_func in floor getpagesize gettimeofday memset pow pstat_getdynamic pstat_getstatic select sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strstr strtol sysmp getsysinfo sysctl table
6384 > for ac_func in atexit floor pow select sqrt strcasecmp strchr strdup strncasecmp strstr strtol strtoull
6385   do :
6386    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6387   ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6388 < eval as_val=\$$as_ac_var
10260 <   if test "x$as_val" = x""yes; then :
6388 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6389    cat >>confdefs.h <<_ACEOF
6390   #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6391   _ACEOF
# Line 10266 | Line 6394 | done
6394   done
6395  
6396  
10269 # special check for _system_configuration because AIX <4.3.2 do not
10270 # contain the `physmem' member.
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
10272 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h.  */
10275 #include <sys/systemcfg.h>
10276 #ifdef FC_DUMMY_MAIN
10277 #ifndef FC_DUMMY_MAIN_EQ_F77
10278 #  ifdef __cplusplus
10279     extern "C"
10280 #  endif
10281   int FC_DUMMY_MAIN() { return 1; }
10282 #endif
10283 #endif
10284 int
10285 main ()
10286 {
10287 double x = _system_configuration.physmem;
10288  ;
10289  return 0;
10290 }
10291 _ACEOF
10292 if ac_fn_c_try_compile "$LINENO"; then :
10293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10294 $as_echo "yes" >&6; }
6397  
10296 $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
10297
10298 else
10299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10300 $as_echo "no" >&6; }
10301 fi
10302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10303
10304
6398   case $debug in
6399    1)
6400       ;;
6401    *)
10309
10310
10311
10312
10313
10314 # Try to determine "good" native compiler flags if none specified on command
10315 # line
10316
10317 if test "$ac_test_FFLAGS" != "set"; then
10318  FCFLAGS=""
10319  case "${host_cpu}-${host_os}" in
10320
10321  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
10322                    FCFLAGS="-O2"
10323                fi;;
10324   rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
10325                    FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
10326                fi;;
10327   powerpc*-aix*)
10328        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
10329                FCFLAGS="-O3 -qarch=ppc -qansialias -w"
10330                echo "*******************************************************"
10331                echo "*  You have AIX on an unknown powerpc system.  It is  *"
10332                echo "*  recommended that you use                           *"
10333                echo "*                                                     *"
10334                echo "*   FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
10335                echo "*                                 ^^^                 *"
10336                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
10337                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
10338                echo "*******************************************************"
10339        fi;;
10340   *darwin*)
10341        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
10342                FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
10343        fi
10344        if test "$FC" = ifort; then
10345                FCFLAGS="-O2"
10346        fi
10347        if test "$FC" = gfortran; then
10348                FCFLAGS="-Os"
10349        fi;;
10350  esac
10351
10352  if test -z "$FCFLAGS"; then
10353        echo ""
10354        echo "*********************************************************"
10355        echo "* WARNING: Don't know the best FCFLAGS for this system  *"
10356        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
10357        echo "* (otherwise, a default of FCFLAGS=-O will be used)     *"
10358        echo "*********************************************************"
10359        echo ""
10360        FCFLAGS="-O"
10361  fi
10362
10363
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} accepts ${FCFLAGS}" >&5
10365 $as_echo_n "checking whether ${FC} accepts ${FCFLAGS}... " >&6; }
10366 if test "${ac_cv_ac_cv_guessed_f90flags+set}" = set; then :
10367  $as_echo_n "(cached) " >&6
10368 else
10369
10370
10371 ac_ext=${ac_fc_srcext-f}
10372 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
10373 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
10374 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10375
10376 echo 'program main' > conftest.$ac_ext
10377 echo 'end program main' >> conftest.$ac_ext
10378 ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5'
10379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10380  (eval $ac_compile) 2>&5
10381  ac_status=$?
10382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10383  test $ac_status = 0; }; then
10384        ac_cv_ac_cv_guessed_f90flags=yes
10385 else
10386        ac_cv_ac_cv_guessed_f90flags=no
10387 fi
10388 rm -f conftest*
10389 ac_ext=c
10390 ac_cpp='$CPP $CPPFLAGS'
10391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6402  
6403  
10396 fi
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ac_cv_guessed_f90flags" >&5
10398 $as_echo "$ac_cv_ac_cv_guessed_f90flags" >&6; }
10399 if test "$ac_cv_ac_cv_guessed_f90flags" = yes; then
10400        :
6404  
10402 else
10403        :
6405  
10405        echo ""
10406        echo "**********************************************************"
10407        echo "* WARNING: The guessed FCFLAGS don't seem to work with  *"
10408        echo "* your compiler.                                        *"
10409        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
10410        echo "*********************************************************"
10411        echo ""
10412        FCFLAGS=""
6406  
10414 fi
6407  
10416
10417 fi
10418
10419
10420
10421
10422
10423
10424
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU cc" >&5
6409   $as_echo_n "checking whether we are *really* using GNU cc... " >&6; }
6410 < if test "${ac_cv_prog_really_gcc+set}" = set; then :
6410 > if ${ac_cv_prog_really_gcc+:} false; then :
6411    $as_echo_n "(cached) " >&6
6412   else
6413  
# Line 10529 | Line 6512 | $as_echo_n "checking whether ${CC} accepts ${CFLAGS}..
6512  
6513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${CFLAGS}" >&5
6514   $as_echo_n "checking whether ${CC} accepts ${CFLAGS}... " >&6; }
6515 < if test "${ac_cv_ac_cv_guessed_cflags+set}" = set; then :
6515 > if ${ac_cv_ac_cv_guessed_cflags+:} false; then :
6516    $as_echo_n "(cached) " >&6
6517   else
6518    echo 'void f(){}' > conftest.c
# Line 10571 | Line 6554 | $as_echo_n "checking whether we are *really* using GNU
6554  
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU c++" >&5
6556   $as_echo_n "checking whether we are *really* using GNU c++... " >&6; }
6557 < if test "${ac_cv_prog_really_gxx+set}" = set; then :
6557 > if ${ac_cv_prog_really_gxx+:} false; then :
6558    $as_echo_n "(cached) " >&6
6559   else
6560  
# Line 10667 | Line 6650 | $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS
6650  
6651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${CXXFLAGS}" >&5
6652   $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS}... " >&6; }
6653 < if test "${ac_cv_ac_cv_guessed_cxxflags+set}" = set; then :
6653 > if ${ac_cv_ac_cv_guessed_cxxflags+:} false; then :
6654    $as_echo_n "(cached) " >&6
6655   else
6656    echo 'void f(){}' > conftest.cpp
# Line 10705 | Line 6688 | esac
6688   esac
6689  
6690  
10708 acx_cgal_found=no
10709
10710 # Check whether --with-cgalmakefile was given.
10711 if test "${with_cgalmakefile+set}" = set; then :
10712  withval=$with_cgalmakefile;
10713 fi
10714
10715 case $with_cgalmakefile in
10716        yes | "") ;;
10717        no) acx_cgal_found=disable ;;
10718        -* | */* | *.a | *.so | *.so.* | *.o) CGAL_MAKEFILE="$with_cgalmakefile" ;;
10719        *) CGAL_MAKEFILE="$with_cgalmakefile" ;;
10720 esac
10721
10722 if test "$acx_cgal_found" == no; then
10723    { $as_echo "$as_me:${as_lineno-$LINENO}: checking CGAL_MAKEFILE" >&5
10724 $as_echo_n "checking CGAL_MAKEFILE... " >&6; }
10725
10726    if test \! -z "$CGAL_MAKEFILE"; then
10727
10728        if test -e "$CGAL_MAKEFILE"; then
10729            tname=`mktemp /tmp/cgal_makefile_dsrXXXXXX`
10730
10731 cat > $tname << _ACEOF
10732 include $CGAL_MAKEFILE
10733
10734 cppflags:
10735        @echo \$(CGAL_CXXFLAGS)
10736
10737 cxxflags:
10738        @echo
10739 ldflags:
10740        @echo \$(CGAL_LDFLAGS)
10741 _ACEOF
10742            CGAL_CPPFLAGS="`make -s -f $tname cppflags`"
10743            CGAL_CXXFLAGS="`make -s -f $tname cxxflags`"
10744            CGAL_LDFLAGST="`make -s -f $tname ldflags`"
10745            for i in $CGAL_LDFLAGST; do
10746                if test `echo $i| grep -c ^-l`; then
10747                    CGAL_LIBS="$CGAL_LIBS $i"
10748                else
10749                    CGAL_LDFLAGS="$CGAL_LDFLAGS $i"
10750                fi
10751            done
10752            rm -f $tname
10753            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10754 $as_echo "yes" >&6; }
10755            acx_cgal_found=yes
10756                                   else
10757            { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
10758 $as_echo "invalid" >&6; }
10759            as_fn_error "CGAL_MAKEFILE defined, but the makefile does not exist." "$LINENO" 5
10760        fi
10761    else
10762        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not defined" >&5
10763 $as_echo "not defined" >&6; }
10764    fi
10765 fi
10766
10767 if test "$acx_cgal_found" == no; then
10768        ac_fn_c_check_header_mongrel "$LINENO" "CGAL/Exact_predicates_inexact_constructions_kernel.h" "ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" "$ac_includes_default"
10769 if test "x$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" = x""yes; then :
10770  cgal_have_header=yes
10771 else
10772  cgal_have_header=no
10773 fi
10774
10775
10776        if test "$cgal_have_header" == yes; then
10777                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCGAL" >&5
10778 $as_echo_n "checking for main in -lCGAL... " >&6; }
10779 if test "${ac_cv_lib_CGAL_main+set}" = set; then :
10780  $as_echo_n "(cached) " >&6
10781 else
10782  ac_check_lib_save_LIBS=$LIBS
10783 LIBS="-lCGAL  $LIBS"
10784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h.  */
10786
10787
10788 #ifdef FC_DUMMY_MAIN
10789 #ifndef FC_DUMMY_MAIN_EQ_F77
10790 #  ifdef __cplusplus
10791     extern "C"
10792 #  endif
10793   int FC_DUMMY_MAIN() { return 1; }
10794 #endif
10795 #endif
10796 int
10797 main ()
10798 {
10799 return main ();
10800  ;
10801  return 0;
10802 }
10803 _ACEOF
10804 if ac_fn_c_try_link "$LINENO"; then :
10805  ac_cv_lib_CGAL_main=yes
10806 else
10807  ac_cv_lib_CGAL_main=no
10808 fi
10809 rm -f core conftest.err conftest.$ac_objext \
10810    conftest$ac_exeext conftest.$ac_ext
10811 LIBS=$ac_check_lib_save_LIBS
10812 fi
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CGAL_main" >&5
10814 $as_echo "$ac_cv_lib_CGAL_main" >&6; }
10815 if test "x$ac_cv_lib_CGAL_main" = x""yes; then :
10816  cgal_have_lib=yes
10817 else
10818  cgal_have_lib=no
10819 fi
10820
10821                if test "$cgal_have_lib" == no; then
10822                        save_LIBS="$LIBS"; LIBS="$LIBS -lgmp -lmpfr -lm"
10823                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCGAL" >&5
10824 $as_echo_n "checking for main in -lCGAL... " >&6; }
10825 if test "${ac_cv_lib_CGAL_main+set}" = set; then :
10826  $as_echo_n "(cached) " >&6
10827 else
10828  ac_check_lib_save_LIBS=$LIBS
10829 LIBS="-lCGAL  $LIBS"
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h.  */
10832
10833
10834 #ifdef FC_DUMMY_MAIN
10835 #ifndef FC_DUMMY_MAIN_EQ_F77
10836 #  ifdef __cplusplus
10837     extern "C"
10838 #  endif
10839   int FC_DUMMY_MAIN() { return 1; }
10840 #endif
10841 #endif
10842 int
10843 main ()
10844 {
10845 return main ();
10846  ;
10847  return 0;
10848 }
10849 _ACEOF
10850 if ac_fn_c_try_link "$LINENO"; then :
10851  ac_cv_lib_CGAL_main=yes
10852 else
10853  ac_cv_lib_CGAL_main=no
10854 fi
10855 rm -f core conftest.err conftest.$ac_objext \
10856    conftest$ac_exeext conftest.$ac_ext
10857 LIBS=$ac_check_lib_save_LIBS
10858 fi
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CGAL_main" >&5
10860 $as_echo "$ac_cv_lib_CGAL_main" >&6; }
10861 if test "x$ac_cv_lib_CGAL_main" = x""yes; then :
10862  CGAL_LIBS="-lCGAL -lgmp -lmpfr"
10863                                                  cgal_have_lib=yes
10864 else
10865  cgal_have_lib=no
10866 fi
10867
10868                        LIBS="$save_LIBS"
10869                else
10870                        CGAL_LIBS="-lCGAL"
10871                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmpfr" >&5
10872 $as_echo_n "checking for main in -lmpfr... " >&6; }
10873 if test "${ac_cv_lib_mpfr_main+set}" = set; then :
10874  $as_echo_n "(cached) " >&6
10875 else
10876  ac_check_lib_save_LIBS=$LIBS
10877 LIBS="-lmpfr  $LIBS"
10878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879 /* end confdefs.h.  */
10880
10881
10882 #ifdef FC_DUMMY_MAIN
10883 #ifndef FC_DUMMY_MAIN_EQ_F77
10884 #  ifdef __cplusplus
10885     extern "C"
10886 #  endif
10887   int FC_DUMMY_MAIN() { return 1; }
10888 #endif
10889 #endif
10890 int
10891 main ()
10892 {
10893 return main ();
10894  ;
10895  return 0;
10896 }
10897 _ACEOF
10898 if ac_fn_c_try_link "$LINENO"; then :
10899  ac_cv_lib_mpfr_main=yes
10900 else
10901  ac_cv_lib_mpfr_main=no
10902 fi
10903 rm -f core conftest.err conftest.$ac_objext \
10904    conftest$ac_exeext conftest.$ac_ext
10905 LIBS=$ac_check_lib_save_LIBS
10906 fi
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_main" >&5
10908 $as_echo "$ac_cv_lib_mpfr_main" >&6; }
10909 if test "x$ac_cv_lib_mpfr_main" = x""yes; then :
10910  CGAL_LIBS="$CGAL_LIBS -lmpfr"
10911 fi
10912
10913                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmp" >&5
10914 $as_echo_n "checking for main in -lgmp... " >&6; }
10915 if test "${ac_cv_lib_gmp_main+set}" = set; then :
10916  $as_echo_n "(cached) " >&6
10917 else
10918  ac_check_lib_save_LIBS=$LIBS
10919 LIBS="-lgmp  $LIBS"
10920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921 /* end confdefs.h.  */
10922
10923
10924 #ifdef FC_DUMMY_MAIN
10925 #ifndef FC_DUMMY_MAIN_EQ_F77
10926 #  ifdef __cplusplus
10927     extern "C"
10928 #  endif
10929   int FC_DUMMY_MAIN() { return 1; }
10930 #endif
10931 #endif
10932 int
10933 main ()
10934 {
10935 return main ();
10936  ;
10937  return 0;
10938 }
10939 _ACEOF
10940 if ac_fn_c_try_link "$LINENO"; then :
10941  ac_cv_lib_gmp_main=yes
10942 else
10943  ac_cv_lib_gmp_main=no
10944 fi
10945 rm -f core conftest.err conftest.$ac_objext \
10946    conftest$ac_exeext conftest.$ac_ext
10947 LIBS=$ac_check_lib_save_LIBS
10948 fi
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_main" >&5
10950 $as_echo "$ac_cv_lib_gmp_main" >&6; }
10951 if test "x$ac_cv_lib_gmp_main" = x""yes; then :
10952  CGAL_LIBS="$CGAL_LIBS -lgmp"
10953 fi
10954
10955                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmpxx" >&5
10956 $as_echo_n "checking for main in -lgmpxx... " >&6; }
10957 if test "${ac_cv_lib_gmpxx_main+set}" = set; then :
10958  $as_echo_n "(cached) " >&6
10959 else
10960  ac_check_lib_save_LIBS=$LIBS
10961 LIBS="-lgmpxx  $LIBS"
10962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h.  */
10964
10965
10966 #ifdef FC_DUMMY_MAIN
10967 #ifndef FC_DUMMY_MAIN_EQ_F77
10968 #  ifdef __cplusplus
10969     extern "C"
10970 #  endif
10971   int FC_DUMMY_MAIN() { return 1; }
10972 #endif
10973 #endif
10974 int
10975 main ()
10976 {
10977 return main ();
10978  ;
10979  return 0;
10980 }
10981 _ACEOF
10982 if ac_fn_c_try_link "$LINENO"; then :
10983  ac_cv_lib_gmpxx_main=yes
10984 else
10985  ac_cv_lib_gmpxx_main=no
10986 fi
10987 rm -f core conftest.err conftest.$ac_objext \
10988    conftest$ac_exeext conftest.$ac_ext
10989 LIBS=$ac_check_lib_save_LIBS
10990 fi
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmpxx_main" >&5
10992 $as_echo "$ac_cv_lib_gmpxx_main" >&6; }
10993 if test "x$ac_cv_lib_gmpxx_main" = x""yes; then :
10994  CGAL_LIBS="$CGAL_LIBS -lgmpxx"
10995 fi
10996
10997                fi
10998
10999                if test "$cgal_have_lib" == yes; then
11000                        acx_cgal_found=yes
11001                fi
11002        fi
11003        if test "$acx_cgal_found" == yes; then
11004                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCore" >&5
11005 $as_echo_n "checking for main in -lCore... " >&6; }
11006 if test "${ac_cv_lib_Core_main+set}" = set; then :
11007  $as_echo_n "(cached) " >&6
11008 else
11009  ac_check_lib_save_LIBS=$LIBS
11010 LIBS="-lCore  $LIBS"
11011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h.  */
11013
11014
11015 #ifdef FC_DUMMY_MAIN
11016 #ifndef FC_DUMMY_MAIN_EQ_F77
11017 #  ifdef __cplusplus
11018     extern "C"
11019 #  endif
11020   int FC_DUMMY_MAIN() { return 1; }
11021 #endif
11022 #endif
11023 int
11024 main ()
11025 {
11026 return main ();
11027  ;
11028  return 0;
11029 }
11030 _ACEOF
11031 if ac_fn_c_try_link "$LINENO"; then :
11032  ac_cv_lib_Core_main=yes
11033 else
11034  ac_cv_lib_Core_main=no
11035 fi
11036 rm -f core conftest.err conftest.$ac_objext \
11037    conftest$ac_exeext conftest.$ac_ext
11038 LIBS=$ac_check_lib_save_LIBS
11039 fi
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Core_main" >&5
11041 $as_echo "$ac_cv_lib_Core_main" >&6; }
11042 if test "x$ac_cv_lib_Core_main" = x""yes; then :
11043  CGAL_LIBS="$CGAL_LIBS -lCore"
11044 fi
11045
11046        fi
11047 fi
11048
11049
11050
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CGAL" >&5
11052 $as_echo_n "checking CGAL... " >&6; }
11053
11054
11055
11056
11057
11058 if test "$acx_cgal_found" == yes; then
11059        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11060 $as_echo "yes" >&6; }
11061
11062 else
11063        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11065
11066 fi
11067 USE_CGAL=no
11068 if test "$acx_cgal_found" == yes; then
11069        USE_CGAL=yes
11070
11071 $as_echo "#define HAVE_CGAL 1" >>confdefs.h
11072
11073
11074
11075
11076
11077 fi
11078
11079
11080
11081
6691   # Check whether --enable-doxygen was given.
6692   if test "${enable_doxygen+set}" = set; then :
6693    enableval=$enable_doxygen;
# Line 11110 | Line 6719 | $as_echo_n "checking for $ac_word... " >&6; }
6719   set dummy doxygen; ac_word=$2
6720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721   $as_echo_n "checking for $ac_word... " >&6; }
6722 < if test "${ac_cv_path_DOXYGEN+set}" = set; then :
6722 > if ${ac_cv_path_DOXYGEN+:} false; then :
6723    $as_echo_n "(cached) " >&6
6724   else
6725    case $DOXYGEN in
# Line 11148 | Line 6757 | fi
6757  
6758          if test "x$DOXYGEN" = x; then
6759                  if test "x$enable_doxygen" = xyes; then
6760 <                        as_fn_error "could not find doxygen" "$LINENO" 5
6760 >                        as_fn_error $? "could not find doxygen" "$LINENO" 5
6761                  fi
6762                  enable_doc=no
6763          else
# Line 11157 | Line 6766 | $as_echo_n "checking for $ac_word... " >&6; }
6766   set dummy dot; ac_word=$2
6767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768   $as_echo_n "checking for $ac_word... " >&6; }
6769 < if test "${ac_cv_path_DOT+set}" = set; then :
6769 > if ${ac_cv_path_DOT+:} false; then :
6770    $as_echo_n "(cached) " >&6
6771   else
6772    case $DOT in
# Line 11205 | Line 6814 | if test x$DOT = x; then
6814  
6815   if test x$DOT = x; then
6816          if test "x$enable_dot" = xyes; then
6817 <                as_fn_error "could not find dot" "$LINENO" 5
6817 >                as_fn_error $? "could not find dot" "$LINENO" 5
6818          fi
6819          enable_dot=no
6820   else
# Line 11227 | Line 6836 | fi
6836  
6837  
6838  
11230
11231
11232
6839   ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/integrators/Makefile src/applications/atom2md/Makefile scripts/filepp"
6840  
6841  
# Line 11297 | Line 6903 | if diff "$cache_file" confcache >/dev/null 2>&1; then
6903       :end' >>confcache
6904   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6905    if test -w "$cache_file"; then
6906 <    test "x$cache_file" != "x/dev/null" &&
6906 >    if test "x$cache_file" != "x/dev/null"; then
6907        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6908   $as_echo "$as_me: updating cache $cache_file" >&6;}
6909 <    cat confcache >$cache_file
6909 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
6910 >        cat confcache >"$cache_file"
6911 >      else
6912 >        case $cache_file in #(
6913 >        */* | ?:*)
6914 >          mv -f confcache "$cache_file"$$ &&
6915 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
6916 >        *)
6917 >          mv -f confcache "$cache_file" ;;
6918 >        esac
6919 >      fi
6920 >    fi
6921    else
6922      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6923   $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
# Line 11316 | Line 6933 | ac_ltlibobjs=
6933  
6934   ac_libobjs=
6935   ac_ltlibobjs=
6936 + U=
6937   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6938    # 1. Remove the extension, and $U if already installed.
6939    ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
# Line 11331 | Line 6949 | LTLIBOBJS=$ac_ltlibobjs
6949  
6950  
6951  
6952 < : ${CONFIG_STATUS=./config.status}
6952 > : "${CONFIG_STATUS=./config.status}"
6953   ac_write_fail=0
6954   ac_clean_files_save=$ac_clean_files
6955   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
# Line 11432 | Line 7050 | IFS=" ""       $as_nl"
7050   IFS=" ""        $as_nl"
7051  
7052   # Find who we are.  Look in the path if we contain no directory separator.
7053 + as_myself=
7054   case $0 in #((
7055    *[\\/]* ) as_myself=$0 ;;
7056    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 11477 | Line 7096 | export LANGUAGE
7096   (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7097  
7098  
7099 < # as_fn_error ERROR [LINENO LOG_FD]
7100 < # ---------------------------------
7099 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
7100 > # ----------------------------------------
7101   # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7102   # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7103 < # script with status $?, using 1 if that was 0.
7103 > # script with STATUS, using 1 if that was 0.
7104   as_fn_error ()
7105   {
7106 <  as_status=$?; test $as_status -eq 0 && as_status=1
7107 <  if test "$3"; then
7108 <    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7109 <    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7106 >  as_status=$1; test $as_status -eq 0 && as_status=1
7107 >  if test "$4"; then
7108 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7109 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7110    fi
7111 <  $as_echo "$as_me: error: $1" >&2
7111 >  $as_echo "$as_me: error: $2" >&2
7112    as_fn_exit $as_status
7113   } # as_fn_error
7114  
# Line 11685 | Line 7304 | $as_echo X"$as_dir" |
7304        test -d "$as_dir" && break
7305      done
7306      test -z "$as_dirs" || eval "mkdir $as_dirs"
7307 <  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7307 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7308  
7309  
7310   } # as_fn_mkdir_p
# Line 11738 | Line 7357 | ac_log="
7357   # report actual input values of CONFIG_FILES etc. instead of their
7358   # values after options handling.
7359   ac_log="
7360 < This file was extended by OOPSE $as_me 4.0, which was
7361 < generated by GNU Autoconf 2.64.  Invocation command line was
7360 > This file was extended by OpenMD $as_me 2.0, which was
7361 > generated by GNU Autoconf 2.68.  Invocation command line was
7362  
7363    CONFIG_FILES    = $CONFIG_FILES
7364    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 11778 | Line 7397 | Usage: $0 [OPTION]... [TAG]...
7397  
7398    -h, --help       print this help, then exit
7399    -V, --version    print version number and configuration settings, then exit
7400 +      --config     print configuration, then exit
7401    -q, --quiet, --silent
7402                     do not print progress messages
7403    -d, --debug      don't remove temporary files
# Line 11797 | Line 7417 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7417  
7418   _ACEOF
7419   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7420 + ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7421   ac_cs_version="\\
7422 < OOPSE config.status 4.0
7423 < configured by $0, generated by GNU Autoconf 2.64,
7424 <  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7422 > OpenMD config.status 2.0
7423 > configured by $0, generated by GNU Autoconf 2.68,
7424 >  with options \\"\$ac_cs_config\\"
7425  
7426 < Copyright (C) 2009 Free Software Foundation, Inc.
7426 > Copyright (C) 2010 Free Software Foundation, Inc.
7427   This config.status script is free software; the Free Software Foundation
7428   gives unlimited permission to copy, distribute and modify it."
7429  
# Line 11818 | Line 7439 | do
7439   while test $# != 0
7440   do
7441    case $1 in
7442 <  --*=*)
7442 >  --*=?*)
7443      ac_option=`expr "X$1" : 'X\([^=]*\)='`
7444      ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7445      ac_shift=:
7446      ;;
7447 +  --*=)
7448 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7449 +    ac_optarg=
7450 +    ac_shift=:
7451 +    ;;
7452    *)
7453      ac_option=$1
7454      ac_optarg=$2
# Line 11836 | Line 7462 | do
7462      ac_cs_recheck=: ;;
7463    --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7464      $as_echo "$ac_cs_version"; exit ;;
7465 +  --config | --confi | --conf | --con | --co | --c )
7466 +    $as_echo "$ac_cs_config"; exit ;;
7467    --debug | --debu | --deb | --de | --d | -d )
7468      debug=: ;;
7469    --file | --fil | --fi | --f )
7470      $ac_shift
7471      case $ac_optarg in
7472      *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7473 +    '') as_fn_error $? "missing file argument" ;;
7474      esac
7475      as_fn_append CONFIG_FILES " '$ac_optarg'"
7476      ac_need_defaults=false;;
# Line 11854 | Line 7483 | do
7483      ac_need_defaults=false;;
7484    --he | --h)
7485      # Conflict between --help and --header
7486 <    as_fn_error "ambiguous option: \`$1'
7486 >    as_fn_error $? "ambiguous option: \`$1'
7487   Try \`$0 --help' for more information.";;
7488    --help | --hel | -h )
7489      $as_echo "$ac_cs_usage"; exit ;;
# Line 11863 | Line 7492 | Try \`$0 --help' for more information.";;
7492      ac_cs_silent=: ;;
7493  
7494    # This is an error.
7495 <  -*) as_fn_error "unrecognized option: \`$1'
7495 >  -*) as_fn_error $? "unrecognized option: \`$1'
7496   Try \`$0 --help' for more information." ;;
7497  
7498    *) as_fn_append ac_config_targets " $1"
# Line 11920 | Line 7549 | do
7549      "src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;;
7550      "scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
7551  
7552 <  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7552 >  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7553    esac
7554   done
7555  
# Line 11942 | Line 7571 | $debug ||
7571   # after its creation but before its name has been assigned to `$tmp'.
7572   $debug ||
7573   {
7574 <  tmp=
7574 >  tmp= ac_tmp=
7575    trap 'exit_status=$?
7576 <  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7576 >  : "${ac_tmp:=$tmp}"
7577 >  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7578   ' 0
7579    trap 'as_fn_exit 1' 1 2 13 15
7580   }
# Line 11952 | Line 7582 | $debug ||
7582  
7583   {
7584    tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7585 <  test -n "$tmp" && test -d "$tmp"
7585 >  test -d "$tmp"
7586   }  ||
7587   {
7588    tmp=./conf$$-$RANDOM
7589    (umask 077 && mkdir "$tmp")
7590 < } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7590 > } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7591 > ac_tmp=$tmp
7592  
7593   # Set up the scripts for CONFIG_FILES section.
7594   # No need to generate them if there are no CONFIG_FILES.
# Line 11974 | Line 7605 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7605   fi
7606   ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7607   if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7608 <  ac_cs_awk_cr='\r'
7608 >  ac_cs_awk_cr='\\r'
7609   else
7610    ac_cs_awk_cr=$ac_cr
7611   fi
7612  
7613 < echo 'BEGIN {' >"$tmp/subs1.awk" &&
7613 > echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7614   _ACEOF
7615  
7616  
# Line 11988 | Line 7619 | _ACEOF
7619    echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7620    echo "_ACEOF"
7621   } >conf$$subs.sh ||
7622 <  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7623 < ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7622 >  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7623 > ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7624   ac_delim='%!_!# '
7625   for ac_last_try in false false false false false :; do
7626    . ./conf$$subs.sh ||
7627 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7627 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7628  
7629    ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7630    if test $ac_delim_n = $ac_delim_num; then
7631      break
7632    elif $ac_last_try; then
7633 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7633 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7634    else
7635      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7636    fi
# Line 12007 | Line 7638 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7638   rm -f conf$$subs.sh
7639  
7640   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7641 < cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7641 > cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7642   _ACEOF
7643   sed -n '
7644   h
# Line 12021 | Line 7652 | h
7652   t delim
7653   :nl
7654   h
7655 < s/\(.\{148\}\).*/\1/
7655 > s/\(.\{148\}\)..*/\1/
7656   t more1
7657   s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7658   p
# Line 12035 | Line 7666 | h
7666   t nl
7667   :delim
7668   h
7669 < s/\(.\{148\}\).*/\1/
7669 > s/\(.\{148\}\)..*/\1/
7670   t more2
7671   s/["\\]/\\&/g; s/^/"/; s/$/"/
7672   p
# Line 12055 | Line 7686 | _ACAWK
7686   rm -f conf$$subs.awk
7687   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7688   _ACAWK
7689 < cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7689 > cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7690    for (key in S) S_is_set[key] = 1
7691    FS = ""
7692  
# Line 12087 | Line 7718 | else
7718    sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7719   else
7720    cat
7721 < fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7722 <  || as_fn_error "could not setup config files machinery" "$LINENO" 5
7721 > fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7722 >  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7723   _ACEOF
7724  
7725 < # VPATH may cause trouble with some makes, so we remove $(srcdir),
7726 < # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7725 > # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7726 > # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7727   # trailing colons and then remove the whole line if VPATH becomes empty
7728   # (actually we leave an empty line to preserve line numbers).
7729   if test "x$srcdir" = x.; then
7730 <  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7731 < s/:*\$(srcdir):*/:/
7732 < s/:*\${srcdir}:*/:/
7733 < s/:*@srcdir@:*/:/
7734 < s/^\([^=]*=[     ]*\):*/\1/
7730 >  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
7731 > h
7732 > s///
7733 > s/^/:/
7734 > s/[      ]*$/:/
7735 > s/:\$(srcdir):/:/g
7736 > s/:\${srcdir}:/:/g
7737 > s/:@srcdir@:/:/g
7738 > s/^:*//
7739   s/:*$//
7740 + x
7741 + s/\(=[   ]*\).*/\1/
7742 + G
7743 + s/\n//
7744   s/^[^=]*=[       ]*$//
7745   }'
7746   fi
# Line 12113 | Line 7752 | if test -n "$CONFIG_HEADERS"; then
7752   # No need to generate them if there are no CONFIG_HEADERS.
7753   # This happens for instance with `./config.status Makefile'.
7754   if test -n "$CONFIG_HEADERS"; then
7755 < cat >"$tmp/defines.awk" <<\_ACAWK ||
7755 > cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7756   BEGIN {
7757   _ACEOF
7758  
# Line 12125 | Line 7764 | for ac_last_try in false false :; do
7764   # handling of long lines.
7765   ac_delim='%!_!# '
7766   for ac_last_try in false false :; do
7767 <  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7768 <  if test -z "$ac_t"; then
7767 >  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7768 >  if test -z "$ac_tt"; then
7769      break
7770    elif $ac_last_try; then
7771 <    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7771 >    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7772    else
7773      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7774    fi
# Line 12214 | Line 7853 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7853   _ACAWK
7854   _ACEOF
7855   cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7856 <  as_fn_error "could not setup config headers machinery" "$LINENO" 5
7856 >  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7857   fi # test -n "$CONFIG_HEADERS"
7858  
7859  
# Line 12227 | Line 7866 | do
7866    esac
7867    case $ac_mode$ac_tag in
7868    :[FHL]*:*);;
7869 <  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7869 >  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7870    :[FH]-) ac_tag=-:-;;
7871    :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7872    esac
# Line 12246 | Line 7885 | do
7885      for ac_f
7886      do
7887        case $ac_f in
7888 <      -) ac_f="$tmp/stdin";;
7888 >      -) ac_f="$ac_tmp/stdin";;
7889        *) # Look for the file first in the build tree, then in the source tree
7890           # (if the path is not absolute).  The absolute path cannot be DOS-style,
7891           # because $ac_f cannot contain `:'.
# Line 12255 | Line 7894 | do
7894             [\\/$]*) false;;
7895             *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7896             esac ||
7897 <           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7897 >           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7898        esac
7899        case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7900        as_fn_append ac_file_inputs " '$ac_f'"
# Line 12281 | Line 7920 | $as_echo "$as_me: creating $ac_file" >&6;}
7920      esac
7921  
7922      case $ac_tag in
7923 <    *:-:* | *:-) cat >"$tmp/stdin" \
7924 <      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7923 >    *:-:* | *:-) cat >"$ac_tmp/stdin" \
7924 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7925      esac
7926      ;;
7927    esac
# Line 12412 | Line 8051 | $ac_datarootdir_hack
8051   s&@INSTALL@&$ac_INSTALL&;t t
8052   $ac_datarootdir_hack
8053   "
8054 < eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8055 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
8054 > eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8055 >  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8056  
8057   test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8058 <  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8059 <  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8058 >  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8059 >  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
8060 >      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8061    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8062 < which seems to be undefined.  Please make sure it is defined." >&5
8062 > which seems to be undefined.  Please make sure it is defined" >&5
8063   $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8064 < which seems to be undefined.  Please make sure it is defined." >&2;}
8064 > which seems to be undefined.  Please make sure it is defined" >&2;}
8065  
8066 <  rm -f "$tmp/stdin"
8066 >  rm -f "$ac_tmp/stdin"
8067    case $ac_file in
8068 <  -) cat "$tmp/out" && rm -f "$tmp/out";;
8069 <  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8068 >  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8069 >  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8070    esac \
8071 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
8071 >  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8072   ;;
8073    :H)
8074    #
# Line 12437 | Line 8077 | which seems to be undefined.  Please make sure it is d
8077    if test x"$ac_file" != x-; then
8078      {
8079        $as_echo "/* $configure_input  */" \
8080 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8081 <    } >"$tmp/config.h" \
8082 <      || as_fn_error "could not create $ac_file" "$LINENO" 5
8083 <    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8080 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8081 >    } >"$ac_tmp/config.h" \
8082 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8083 >    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8084        { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8085   $as_echo "$as_me: $ac_file is unchanged" >&6;}
8086      else
8087        rm -f "$ac_file"
8088 <      mv "$tmp/config.h" "$ac_file" \
8089 <        || as_fn_error "could not create $ac_file" "$LINENO" 5
8088 >      mv "$ac_tmp/config.h" "$ac_file" \
8089 >        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8090      fi
8091    else
8092      $as_echo "/* $configure_input  */" \
8093 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8094 <      || as_fn_error "could not create -" "$LINENO" 5
8093 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8094 >      || as_fn_error $? "could not create -" "$LINENO" 5
8095    fi
8096   ;;
8097  
# Line 12476 | Line 8116 | test $ac_write_fail = 0 ||
8116   ac_clean_files=$ac_clean_files_save
8117  
8118   test $ac_write_fail = 0 ||
8119 <  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8119 >  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8120  
8121  
8122   # configure is writing to config.log, and then calls config.status.
# Line 12497 | Line 8137 | if test "$no_create" != yes; then
8137    exec 5>>config.log
8138    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8139    # would make configure fail if this is the last instruction.
8140 <  $ac_cs_success || as_fn_exit $?
8140 >  $ac_cs_success || as_fn_exit 1
8141   fi
8142   if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8143    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines