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 1603 by gezelter, Thu Aug 4 21:02:06 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 1.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='1.0'
564 > PACKAGE_STRING='OpenMD 1.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
635   PS
636   AR
637   INSTALL_DATA
# Line 652 | Line 646 | USE_MPI
646   GREP
647   CPP
648   USE_MPI
655 MPIFC
656 ac_ct_FC
657 FCFLAGS
658 FC
649   MPICC
650 + MPILIBS
651 + MPICXX
652 + LIBDL
653   ac_ct_CC
654   CFLAGS
655   CC
663 MPILIBS
664 MPICXX
656   OBJEXT
657   EXEEXT
658   ac_ct_CXX
# Line 669 | Line 660 | CXX
660   LDFLAGS
661   CXXFLAGS
662   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
663   USE_SINGLE_PRECISION
664   debug
665   PROGNAME
# Line 727 | Line 712 | enable_option_checking
712   ac_subst_files=''
713   ac_user_opts='
714   enable_option_checking
715 < enable_oopse_home
715 > enable_openmd_home
716   enable_debug
717   enable_single
718   enable_float
# Line 736 | Line 721 | with_openbabel
721   with_fftw
722   with_qhull
723   with_openbabel
739 with_cgalmakefile
724   enable_doxygen
725   enable_dot
726   enable_html_docs
# Line 751 | Line 735 | CCC
735   LIBS
736   CPPFLAGS
737   CCC
754 MPICXX
738   CC
739   CFLAGS
740 + MPICXX
741   MPICC
758 FC
759 FCFLAGS
760 MPIFC
742   CPP
743   CXXCPP'
744  
# Line 822 | Line 803 | do
803    fi
804  
805    case $ac_option in
806 <  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 <  *)    ac_optarg=yes ;;
806 >  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 >  *=)   ac_optarg= ;;
808 >  *)    ac_optarg=yes ;;
809    esac
810  
811    # Accept the important Cygnus configure options, so we can diagnose typos.
# Line 868 | Line 850 | do
850      ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851      # Reject names that are not valid shell variable names.
852      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 <      as_fn_error "invalid feature name: $ac_useropt"
853 >      as_fn_error $? "invalid feature name: $ac_useropt"
854      ac_useropt_orig=$ac_useropt
855      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856      case $ac_user_opts in
# Line 894 | Line 876 | do
876      ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877      # Reject names that are not valid shell variable names.
878      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 <      as_fn_error "invalid feature name: $ac_useropt"
879 >      as_fn_error $? "invalid feature name: $ac_useropt"
880      ac_useropt_orig=$ac_useropt
881      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882      case $ac_user_opts in
# Line 1098 | Line 1080 | do
1080      ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081      # Reject names that are not valid shell variable names.
1082      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 <      as_fn_error "invalid package name: $ac_useropt"
1083 >      as_fn_error $? "invalid package name: $ac_useropt"
1084      ac_useropt_orig=$ac_useropt
1085      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086      case $ac_user_opts in
# Line 1114 | Line 1096 | do
1096      ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1097      # Reject names that are not valid shell variable names.
1098      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 <      as_fn_error "invalid package name: $ac_useropt"
1099 >      as_fn_error $? "invalid package name: $ac_useropt"
1100      ac_useropt_orig=$ac_useropt
1101      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102      case $ac_user_opts in
# Line 1144 | Line 1126 | do
1126    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1127      x_libraries=$ac_optarg ;;
1128  
1129 <  -*) as_fn_error "unrecognized option: \`$ac_option'
1130 < Try \`$0 --help' for more information."
1129 >  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1130 > Try \`$0 --help' for more information"
1131      ;;
1132  
1133    *=*)
# Line 1153 | Line 1135 | Try \`$0 --help' for more information."
1135      # Reject names that are not valid shell variable names.
1136      case $ac_envvar in #(
1137        '' | [0-9]* | *[!_$as_cr_alnum]* )
1138 <      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1138 >      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1139      esac
1140      eval $ac_envvar=\$ac_optarg
1141      export $ac_envvar ;;
# Line 1163 | Line 1145 | Try \`$0 --help' for more information."
1145      $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1146      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1147        $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1148 <    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1148 >    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1149      ;;
1150  
1151    esac
# Line 1171 | Line 1153 | if test -n "$ac_prev"; then
1153  
1154   if test -n "$ac_prev"; then
1155    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1156 <  as_fn_error "missing argument to $ac_option"
1156 >  as_fn_error $? "missing argument to $ac_option"
1157   fi
1158  
1159   if test -n "$ac_unrecognized_opts"; then
1160    case $enable_option_checking in
1161      no) ;;
1162 <    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1162 >    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1163      *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1164    esac
1165   fi
# Line 1200 | Line 1182 | do
1182      [\\/$]* | ?:[\\/]* )  continue;;
1183      NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1184    esac
1185 <  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1185 >  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1186   done
1187  
1188   # There might be people who depend on the old broken behavior: `$host'
# Line 1214 | Line 1196 | if test "x$host_alias" != x; then
1196   if test "x$host_alias" != x; then
1197    if test "x$build_alias" = x; then
1198      cross_compiling=maybe
1199 <    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1200 <    If a cross compiler is detected then cross compile mode will be used." >&2
1199 >    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1200 >    If a cross compiler is detected then cross compile mode will be used" >&2
1201    elif test "x$build_alias" != "x$host_alias"; then
1202      cross_compiling=yes
1203    fi
# Line 1230 | Line 1212 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1212   ac_pwd=`pwd` && test -n "$ac_pwd" &&
1213   ac_ls_di=`ls -di .` &&
1214   ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1215 <  as_fn_error "working directory cannot be determined"
1215 >  as_fn_error $? "working directory cannot be determined"
1216   test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1217 <  as_fn_error "pwd does not report name of working directory"
1217 >  as_fn_error $? "pwd does not report name of working directory"
1218  
1219  
1220   # Find the source files, if location was not specified.
# Line 1271 | Line 1253 | if test ! -r "$srcdir/$ac_unique_file"; then
1253   fi
1254   if test ! -r "$srcdir/$ac_unique_file"; then
1255    test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1256 <  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1256 >  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1257   fi
1258   ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1259   ac_abs_confdir=`(
1260 <        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1260 >        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1261          pwd)`
1262   # When building in place, set srcdir=.
1263   if test "$ac_abs_confdir" = "$ac_pwd"; then
# Line 1301 | Line 1283 | if test "$ac_init_help" = "long"; then
1283    # Omit some internal or obsolete options to make the list less imposing.
1284    # This message is too long to be a string in the A/UX 3.1 sh.
1285    cat <<_ACEOF
1286 < \`configure' configures OOPSE 4.0 to adapt to many kinds of systems.
1286 > \`configure' configures OpenMD 1.0 to adapt to many kinds of systems.
1287  
1288   Usage: $0 [OPTION]... [VAR=VALUE]...
1289  
# Line 1315 | Line 1297 | Configuration:
1297        --help=short        display options specific to this package
1298        --help=recursive    display the short help of all the included packages
1299    -V, --version           display version information and exit
1300 <  -q, --quiet, --silent   do not print \`checking...' messages
1300 >  -q, --quiet, --silent   do not print \`checking ...' messages
1301        --cache-file=FILE   cache test results in FILE [disabled]
1302    -C, --config-cache      alias for \`--cache-file=config.cache'
1303    -n, --no-create         do not create output files
# Line 1349 | Line 1331 | Fine tuning of the installation directories:
1331    --infodir=DIR           info documentation [DATAROOTDIR/info]
1332    --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1333    --mandir=DIR            man documentation [DATAROOTDIR/man]
1334 <  --docdir=DIR            documentation root [DATAROOTDIR/doc/oopse]
1334 >  --docdir=DIR            documentation root [DATAROOTDIR/doc/openmd]
1335    --htmldir=DIR           html documentation [DOCDIR]
1336    --dvidir=DIR            dvi documentation [DOCDIR]
1337    --pdfdir=DIR            pdf documentation [DOCDIR]
# Line 1366 | Line 1348 | if test -n "$ac_init_help"; then
1348  
1349   if test -n "$ac_init_help"; then
1350    case $ac_init_help in
1351 <     short | recursive ) echo "Configuration of OOPSE 4.0:";;
1351 >     short | recursive ) echo "Configuration of OpenMD 1.0:";;
1352     esac
1353    cat <<\_ACEOF
1354  
# Line 1374 | Line 1356 | Optional Features:
1356    --disable-option-checking  ignore unrecognized --enable/--with options
1357    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1358    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1359 <  --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse
1360 <  --enable-debug          Compile OOPSE in debug mode
1361 <  --enable-single         compile OOPSE in single precision
1359 >  --enable-openmd-home=DIR      define OpenMD home dir PREFIX/openmd
1360 >  --enable-debug          Compile OpenMD in debug mode
1361 >  --enable-single         compile OpenMD in single precision
1362    --enable-float          synonym for --enable-single
1363    --enable-doxygen        enable documentation generation with doxygen (auto)
1364    --enable-dot            use 'dot' to generate graphs in doxygen (auto)
# Line 1397 | Line 1379 | Optional Packages:
1379    --with-openbabel=DIR    root directory path of openbabel-2.x installation
1380                            (defaults to /usr/local or /usr if not found in
1381                            /usr/local)
1400  --with-cgalmakefile=makefile
1401                          Use the following CGAL makefile
1382  
1383   Some influential environment variables:
1384    CXX         C++ compiler command
# Line 1406 | Line 1386 | Some influential environment variables:
1386    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1387                nonstandard directory <lib dir>
1388    LIBS        libraries to pass to the linker, e.g. -l<library>
1389 <  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1389 >  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1390                you have headers in a nonstandard directory <include dir>
1411  MPICXX      MPI C++ compiler command
1391    CC          C compiler command
1392    CFLAGS      C compiler flags
1393 +  MPICXX      MPI C++ compiler command
1394    MPICC       MPI C compiler command
1415  FC          Fortran compiler command
1416  FCFLAGS     Fortran compiler flags
1417  MPIFC       MPI Fortran compiler command
1395    CPP         C preprocessor
1396    CXXCPP      C++ preprocessor
1397  
# Line 1484 | Line 1461 | if $ac_init_version; then
1461   test -n "$ac_init_help" && exit $ac_status
1462   if $ac_init_version; then
1463    cat <<\_ACEOF
1464 < OOPSE configure 4.0
1465 < generated by GNU Autoconf 2.64
1464 > OpenMD configure 1.0
1465 > generated by GNU Autoconf 2.68
1466  
1467 < Copyright (C) 2009 Free Software Foundation, Inc.
1467 > Copyright (C) 2010 Free Software Foundation, Inc.
1468   This configure script is free software; the Free Software Foundation
1469   gives unlimited permission to copy, distribute and modify it.
1470   _ACEOF
# Line 1531 | Line 1508 | fi
1508  
1509          ac_retval=1
1510   fi
1511 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1512 <  return $ac_retval
1511 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1512 >  as_fn_set_status $ac_retval
1513  
1514   } # ac_fn_cxx_try_compile
1515 +
1516 + # ac_fn_c_try_compile LINENO
1517 + # --------------------------
1518 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1519 + ac_fn_c_try_compile ()
1520 + {
1521 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 +  rm -f conftest.$ac_objext
1523 +  if { { ac_try="$ac_compile"
1524 + case "(($ac_try" in
1525 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 +  *) ac_try_echo=$ac_try;;
1527 + esac
1528 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529 + $as_echo "$ac_try_echo"; } >&5
1530 +  (eval "$ac_compile") 2>conftest.err
1531 +  ac_status=$?
1532 +  if test -s conftest.err; then
1533 +    grep -v '^ *+' conftest.err >conftest.er1
1534 +    cat conftest.er1 >&5
1535 +    mv -f conftest.er1 conftest.err
1536 +  fi
1537 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 +  test $ac_status = 0; } && {
1539 +         test -z "$ac_c_werror_flag" ||
1540 +         test ! -s conftest.err
1541 +       } && test -s conftest.$ac_objext; then :
1542 +  ac_retval=0
1543 + else
1544 +  $as_echo "$as_me: failed program was:" >&5
1545 + sed 's/^/| /' conftest.$ac_ext >&5
1546 +
1547 +        ac_retval=1
1548 + fi
1549 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550 +  as_fn_set_status $ac_retval
1551 +
1552 + } # ac_fn_c_try_compile
1553  
1554   # ac_fn_cxx_try_link LINENO
1555   # -------------------------
# Line 1577 | Line 1592 | fi
1592    # interfere with the next link command; also delete a directory that is
1593    # left behind by Apple's compiler.  We do this before executing the actions.
1594    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1595 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1596 <  return $ac_retval
1595 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 >  as_fn_set_status $ac_retval
1597  
1598   } # ac_fn_cxx_try_link
1599  
# Line 1590 | Line 1605 | $as_echo_n "checking for $2... " >&6; }
1605    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607   $as_echo_n "checking for $2... " >&6; }
1608 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1608 > if eval \${$3+:} false; then :
1609    $as_echo_n "(cached) " >&6
1610   else
1611    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1645 | Line 1660 | $as_echo "$ac_res" >&6; }
1660   eval ac_res=\$$3
1661                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662   $as_echo "$ac_res" >&6; }
1663 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664  
1665   } # ac_fn_cxx_check_func
1666  
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
1667   # ac_fn_c_try_link LINENO
1668   # -----------------------
1669   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1728 | Line 1705 | fi
1705    # interfere with the next link command; also delete a directory that is
1706    # left behind by Apple's compiler.  We do this before executing the actions.
1707    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 <  return $ac_retval
1708 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 >  as_fn_set_status $ac_retval
1710  
1711   } # ac_fn_c_try_link
1712  
# Line 1741 | Line 1718 | $as_echo_n "checking for $2... " >&6; }
1718    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720   $as_echo_n "checking for $2... " >&6; }
1721 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1721 > if eval \${$3+:} false; then :
1722    $as_echo_n "(cached) " >&6
1723   else
1724    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1796 | Line 1773 | $as_echo "$ac_res" >&6; }
1773   eval ac_res=\$$3
1774                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775   $as_echo "$ac_res" >&6; }
1776 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777  
1778   } # 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
1779  
1885 } # ac_fn_fc_try_link
1886
1780   # ac_fn_c_try_cpp LINENO
1781   # ----------------------
1782   # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
# Line 1905 | Line 1798 | $as_echo "$ac_try_echo"; } >&5
1798      mv -f conftest.er1 conftest.err
1799    fi
1800    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 <  test $ac_status = 0; } >/dev/null && {
1801 >  test $ac_status = 0; } > conftest.i && {
1802           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1803           test ! -s conftest.err
1804         }; then :
# Line 1916 | Line 1809 | fi
1809  
1810      ac_retval=1
1811   fi
1812 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813 <  return $ac_retval
1812 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 >  as_fn_set_status $ac_retval
1814  
1815   } # ac_fn_c_try_cpp
1816  
# Line 1929 | Line 1822 | ac_fn_c_check_header_mongrel ()
1822   ac_fn_c_check_header_mongrel ()
1823   {
1824    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825 >  if eval \${$3+:} false; then :
1826    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827   $as_echo_n "checking for $2... " >&6; }
1828 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1828 > if eval \${$3+:} false; then :
1829    $as_echo_n "(cached) " >&6
1830   fi
1831   eval ac_res=\$$3
# Line 1968 | Line 1861 | fi
1861   else
1862    ac_header_preproc=no
1863   fi
1864 < rm -f conftest.err conftest.$ac_ext
1864 > rm -f conftest.err conftest.i conftest.$ac_ext
1865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1866   $as_echo "$ac_header_preproc" >&6; }
1867  
# Line 1991 | Line 1884 | $as_echo "$as_me: WARNING: $2: proceeding with the com
1884   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1885      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1886   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887 < ( cat <<\_ASBOX
1995 < ## ------------------------------ ##
1887 > ( $as_echo "## ------------------------------ ##
1888   ## Report this to gezelter@nd.edu ##
1889 < ## ------------------------------ ##
1998 < _ASBOX
1889 > ## ------------------------------ ##"
1890       ) | sed "s/^/$as_me: WARNING:     /" >&2
1891      ;;
1892   esac
1893    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894   $as_echo_n "checking for $2... " >&6; }
1895 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 > if eval \${$3+:} false; then :
1896    $as_echo_n "(cached) " >&6
1897   else
1898    eval "$3=\$ac_header_compiler"
# Line 2010 | Line 1901 | fi
1901                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902   $as_echo "$ac_res" >&6; }
1903   fi
1904 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905  
1906   } # ac_fn_c_check_header_mongrel
1907  
# Line 2051 | Line 1942 | fi
1942         ac_retval=$ac_status
1943   fi
1944    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946 <  return $ac_retval
1945 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 >  as_fn_set_status $ac_retval
1947  
1948   } # ac_fn_c_try_run
1949  
# Line 2065 | Line 1956 | $as_echo_n "checking for $2... " >&6; }
1956    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958   $as_echo_n "checking for $2... " >&6; }
1959 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1959 > if eval \${$3+:} false; then :
1960    $as_echo_n "(cached) " >&6
1961   else
1962    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 2083 | Line 1974 | $as_echo "$ac_res" >&6; }
1974   eval ac_res=\$$3
1975                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976   $as_echo "$ac_res" >&6; }
1977 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978  
1979   } # ac_fn_c_check_header_compile
1980  
# Line 2108 | Line 1999 | $as_echo "$ac_try_echo"; } >&5
1999      mv -f conftest.er1 conftest.err
2000    fi
2001    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 <  test $ac_status = 0; } >/dev/null && {
2002 >  test $ac_status = 0; } > conftest.i && {
2003           test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2004           test ! -s conftest.err
2005         }; then :
# Line 2119 | Line 2010 | fi
2010  
2011      ac_retval=1
2012   fi
2013 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014 <  return $ac_retval
2013 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014 >  as_fn_set_status $ac_retval
2015  
2016   } # ac_fn_cxx_try_cpp
2017  
# Line 2132 | Line 2023 | ac_fn_cxx_check_header_mongrel ()
2023   ac_fn_cxx_check_header_mongrel ()
2024   {
2025    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026 >  if eval \${$3+:} false; then :
2027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028   $as_echo_n "checking for $2... " >&6; }
2029 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2029 > if eval \${$3+:} false; then :
2030    $as_echo_n "(cached) " >&6
2031   fi
2032   eval ac_res=\$$3
# Line 2171 | Line 2062 | fi
2062   else
2063    ac_header_preproc=no
2064   fi
2065 < rm -f conftest.err conftest.$ac_ext
2065 > rm -f conftest.err conftest.i conftest.$ac_ext
2066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2067   $as_echo "$ac_header_preproc" >&6; }
2068  
# Line 2194 | Line 2085 | $as_echo "$as_me: WARNING: $2: proceeding with the com
2085   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2086      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2087   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2088 < ( cat <<\_ASBOX
2198 < ## ------------------------------ ##
2088 > ( $as_echo "## ------------------------------ ##
2089   ## Report this to gezelter@nd.edu ##
2090 < ## ------------------------------ ##
2201 < _ASBOX
2090 > ## ------------------------------ ##"
2091       ) | sed "s/^/$as_me: WARNING:     /" >&2
2092      ;;
2093   esac
2094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095   $as_echo_n "checking for $2... " >&6; }
2096 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2096 > if eval \${$3+:} false; then :
2097    $as_echo_n "(cached) " >&6
2098   else
2099    eval "$3=\$ac_header_compiler"
# Line 2213 | Line 2102 | fi
2102                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103   $as_echo "$ac_res" >&6; }
2104   fi
2105 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106  
2107   } # ac_fn_cxx_check_header_mongrel
2108  
# Line 2226 | Line 2115 | $as_echo_n "checking for $2... " >&6; }
2115    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117   $as_echo_n "checking for $2... " >&6; }
2118 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2118 > if eval \${$3+:} false; then :
2119    $as_echo_n "(cached) " >&6
2120   else
2121    eval "$3=no"
2122    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123   /* end confdefs.h.  */
2124   $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
2125   int
2126   main ()
2127   {
# Line 2254 | Line 2135 | $4
2135    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136   /* end confdefs.h.  */
2137   $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
2138   int
2139   main ()
2140   {
# Line 2283 | Line 2156 | $as_echo "$ac_res" >&6; }
2156   eval ac_res=\$$3
2157                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158   $as_echo "$ac_res" >&6; }
2159 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160  
2161   } # ac_fn_c_check_type
2162   cat >config.log <<_ACEOF
2163   This file contains any messages produced by compilers while
2164   running configure, to aid debugging if configure makes a mistake.
2165  
2166 < It was created by OOPSE $as_me 4.0, which was
2167 < generated by GNU Autoconf 2.64.  Invocation command line was
2166 > It was created by OpenMD $as_me 1.0, which was
2167 > generated by GNU Autoconf 2.68.  Invocation command line was
2168  
2169    $ $0 $@
2170  
# Line 2401 | Line 2274 | trap 'exit_status=$?
2274    {
2275      echo
2276  
2277 <    cat <<\_ASBOX
2405 < ## ---------------- ##
2277 >    $as_echo "## ---------------- ##
2278   ## Cache variables. ##
2279 < ## ---------------- ##
2408 < _ASBOX
2279 > ## ---------------- ##"
2280      echo
2281      # The following way of writing the cache mishandles newlines in values,
2282   (
# Line 2439 | Line 2310 | $as_echo "$as_me: WARNING: cache variable $ac_var cont
2310   )
2311      echo
2312  
2313 <    cat <<\_ASBOX
2443 < ## ----------------- ##
2313 >    $as_echo "## ----------------- ##
2314   ## Output variables. ##
2315 < ## ----------------- ##
2446 < _ASBOX
2315 > ## ----------------- ##"
2316      echo
2317      for ac_var in $ac_subst_vars
2318      do
# Line 2456 | Line 2325 | _ASBOX
2325      echo
2326  
2327      if test -n "$ac_subst_files"; then
2328 <      cat <<\_ASBOX
2460 < ## ------------------- ##
2328 >      $as_echo "## ------------------- ##
2329   ## File substitutions. ##
2330 < ## ------------------- ##
2463 < _ASBOX
2330 > ## ------------------- ##"
2331        echo
2332        for ac_var in $ac_subst_files
2333        do
# Line 2474 | Line 2341 | _ASBOX
2341      fi
2342  
2343      if test -s confdefs.h; then
2344 <      cat <<\_ASBOX
2478 < ## ----------- ##
2344 >      $as_echo "## ----------- ##
2345   ## confdefs.h. ##
2346 < ## ----------- ##
2481 < _ASBOX
2346 > ## ----------- ##"
2347        echo
2348        cat confdefs.h
2349        echo
# Line 2533 | Line 2398 | if test -n "$CONFIG_SITE"; then
2398   ac_site_file1=NONE
2399   ac_site_file2=NONE
2400   if test -n "$CONFIG_SITE"; then
2401 <  ac_site_file1=$CONFIG_SITE
2401 >  # We do not want a PATH search for config.site.
2402 >  case $CONFIG_SITE in #((
2403 >    -*)  ac_site_file1=./$CONFIG_SITE;;
2404 >    */*) ac_site_file1=$CONFIG_SITE;;
2405 >    *)   ac_site_file1=./$CONFIG_SITE;;
2406 >  esac
2407   elif test "x$prefix" != xNONE; then
2408    ac_site_file1=$prefix/share/config.site
2409    ac_site_file2=$prefix/etc/config.site
# Line 2544 | Line 2414 | do
2414   for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2415   do
2416    test "x$ac_site_file" = xNONE && continue
2417 <  if test -r "$ac_site_file"; then
2417 >  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2418      { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419   $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420      sed 's/^/| /' "$ac_site_file" >&5
2421 <    . "$ac_site_file"
2421 >    . "$ac_site_file" \
2422 >      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424 > as_fn_error $? "failed to load site script $ac_site_file
2425 > See \`config.log' for more details" "$LINENO" 5; }
2426    fi
2427   done
2428  
2429   if test -r "$cache_file"; then
2430 <  # Some versions of bash will fail to source /dev/null (special
2431 <  # files actually), so we avoid doing that.
2432 <  if test -f "$cache_file"; then
2430 >  # Some versions of bash will fail to source /dev/null (special files
2431 >  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2432 >  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2433      { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2434   $as_echo "$as_me: loading cache $cache_file" >&6;}
2435      case $cache_file in
# Line 2624 | Line 2498 | $as_echo "$as_me: error: changes in the environment ca
2498   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499    { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2500   $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2501 <  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2501 >  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2502   fi
2503   ## -------------------- ##
2504   ## Main body of script. ##
# Line 2639 | Line 2513 | for ac_dir in ac-tools "$srcdir"/ac-tools; do
2513  
2514   ac_aux_dir=
2515   for ac_dir in ac-tools "$srcdir"/ac-tools; do
2516 <  for ac_t in install-sh install.sh shtool; do
2517 <    if test -f "$ac_dir/$ac_t"; then
2518 <      ac_aux_dir=$ac_dir
2519 <      ac_install_sh="$ac_aux_dir/$ac_t -c"
2520 <      break 2
2521 <    fi
2522 <  done
2516 >  if test -f "$ac_dir/install-sh"; then
2517 >    ac_aux_dir=$ac_dir
2518 >    ac_install_sh="$ac_aux_dir/install-sh -c"
2519 >    break
2520 >  elif test -f "$ac_dir/install.sh"; then
2521 >    ac_aux_dir=$ac_dir
2522 >    ac_install_sh="$ac_aux_dir/install.sh -c"
2523 >    break
2524 >  elif test -f "$ac_dir/shtool"; then
2525 >    ac_aux_dir=$ac_dir
2526 >    ac_install_sh="$ac_aux_dir/shtool install -c"
2527 >    break
2528 >  fi
2529   done
2530   if test -z "$ac_aux_dir"; then
2531 <  as_fn_error "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2531 >  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2532   fi
2533  
2534   # These three variables are undocumented and unsupported,
# Line 2662 | Line 2542 | ac_config_headers="$ac_config_headers src/config.h"
2542  
2543  
2544   ac_config_headers="$ac_config_headers src/config.h"
2665
2666
2667
2668
2669
2545  
2546  
2547  
# Line 2696 | Line 2571 | ac_config_headers="$ac_config_headers src/config.h"
2571  
2572  
2573  
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2574   #
2575   #
2576   #
# Line 2719 | Line 2584 | ac_config_headers="$ac_config_headers src/config.h"
2584  
2585  
2586  
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
2587  
2588  
2589  
# Line 2902 | Line 2761 | ac_config_headers="$ac_config_headers src/config.h"
2761  
2762  
2763  
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
2764   # who am i
2765   # Make sure we can run config.sub.
2766   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2767 <  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2767 >  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2768  
2769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2770   $as_echo_n "checking build system type... " >&6; }
2771 < if test "${ac_cv_build+set}" = set; then :
2771 > if ${ac_cv_build+:} false; then :
2772    $as_echo_n "(cached) " >&6
2773   else
2774    ac_build_alias=$build_alias
2775   test "x$ac_build_alias" = x &&
2776    ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2777   test "x$ac_build_alias" = x &&
2778 <  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2778 >  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2779   ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2780 <  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2780 >  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2781  
2782   fi
2783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2784   $as_echo "$ac_cv_build" >&6; }
2785   case $ac_cv_build in
2786   *-*-*) ;;
2787 < *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2787 > *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2788   esac
2789   build=$ac_cv_build
2790   ac_save_IFS=$IFS; IFS='-'
# Line 3001 | Line 2802 | $as_echo_n "checking host system type... " >&6; }
2802  
2803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2804   $as_echo_n "checking host system type... " >&6; }
2805 < if test "${ac_cv_host+set}" = set; then :
2805 > if ${ac_cv_host+:} false; then :
2806    $as_echo_n "(cached) " >&6
2807   else
2808    if test "x$host_alias" = x; then
2809    ac_cv_host=$ac_cv_build
2810   else
2811    ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2812 <    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2812 >    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2813   fi
2814  
2815   fi
# Line 3016 | Line 2817 | case $ac_cv_host in
2817   $as_echo "$ac_cv_host" >&6; }
2818   case $ac_cv_host in
2819   *-*-*) ;;
2820 < *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2820 > *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2821   esac
2822   host=$ac_cv_host
2823   ac_save_IFS=$IFS; IFS='-'
# Line 3036 | Line 2837 | case $host_os in *\ *) host_os=`echo "$host_os" | sed
2837  
2838  
2839   # set program name
2840 < PROGNAME="oopse"
2840 > PROGNAME="openmd"
2841  
2842  
2843  
2844  
2845   OBJEXT=".$OBJEXT"
2846  
2847 < OOPSE=oopse
2847 > OPENMD=openmd
2848  
2849   if test "x${prefix}" = "xNONE"
2850   then
2851 <  OOPSE_HOME=${ac_default_prefix}/oopse
2851 >  OPENMD_HOME=${ac_default_prefix}/openmd
2852   else
2853 <  OOPSE_HOME=${prefix}/oopse
2853 >  OPENMD_HOME=${prefix}/openmd
2854   fi
2855 < # Check whether --enable-oopse-home was given.
2856 < if test "${enable_oopse_home+set}" = set; then :
2857 <  enableval=$enable_oopse_home; OOPSE_HOME="${enableval}"
2855 > # Check whether --enable-openmd-home was given.
2856 > if test "${enable_openmd_home+set}" = set; then :
2857 >  enableval=$enable_openmd_home; OPENMD_HOME="${enableval}"
2858   fi
2859  
2860  
# Line 3091 | Line 2892 | $as_echo "#define SINGLE_PRECISION 1" >>confdefs.h
2892   $as_echo "#define SINGLE_PRECISION 1" >>confdefs.h
2893  
2894          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
2895  
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
3404
3405     as_fn_error "Can't find path to user-specified Fortran compiler $FC" "$LINENO" 5
3406 fi
2896   fi
2897  
3409
2898   ac_ext=cpp
2899   ac_cpp='$CXXCPP $CPPFLAGS'
2900   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902   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
2903   if test -z "$CXX"; then
2904    if test -n "$CCC"; then
2905      CXX=$CCC
2906    else
2907      if test -n "$ac_tool_prefix"; then
2908 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2908 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
2909    do
2910      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2911   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913   $as_echo_n "checking for $ac_word... " >&6; }
2914 < if test "${ac_cv_prog_CXX+set}" = set; then :
2914 > if ${ac_cv_prog_CXX+:} false; then :
2915    $as_echo_n "(cached) " >&6
2916   else
2917    if test -n "$CXX"; then
# Line 3467 | Line 2949 | if test -z "$CXX"; then
2949   fi
2950   if test -z "$CXX"; then
2951    ac_ct_CXX=$CXX
2952 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2952 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
2953   do
2954    # Extract the first word of "$ac_prog", so it can be a program name with args.
2955   set dummy $ac_prog; ac_word=$2
2956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957   $as_echo_n "checking for $ac_word... " >&6; }
2958 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2958 > if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2959    $as_echo_n "(cached) " >&6
2960   else
2961    if test -n "$ac_ct_CXX"; then
# Line 3543 | Line 3025 | $as_echo "$ac_try_echo"; } >&5
3025   ... rest of stderr output deleted ...
3026           10q' conftest.err >conftest.er1
3027      cat conftest.er1 >&5
3546    rm -f conftest.er1 conftest.err
3028    fi
3029 +  rm -f conftest.er1 conftest.err
3030    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3031    test $ac_status = 0; }
3032   done
3033  
3034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3035   /* end confdefs.h.  */
3036 < #include <stdio.h>
3036 >
3037   int
3038   main ()
3039   {
3558 FILE *f = fopen ("conftest.out", "w");
3559 return ferror (f) || fclose (f) != 0;
3040  
3041    ;
3042    return 0;
3043   }
3044   _ACEOF
3045   ac_clean_files_save=$ac_clean_files
3046 < ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3046 > ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3047   # Try to create an executable without -o first, disregard a.out.
3048   # It will help us diagnose broken compilers, and finding out an intuition
3049   # of exeext.
3050 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3051 < $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3050 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3051 > $as_echo_n "checking whether the C++ compiler works... " >&6; }
3052   ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3053  
3054   # The possible output files:
# Line 3630 | Line 3110 | fi
3110   else
3111    ac_file=''
3112   fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3634 $as_echo "$ac_file" >&6; }
3113   if test -z "$ac_file"; then :
3114 <  $as_echo "$as_me: failed program was:" >&5
3114 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 > $as_echo "no" >&6; }
3116 > $as_echo "$as_me: failed program was:" >&5
3117   sed 's/^/| /' conftest.$ac_ext >&5
3118  
3119   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3120   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3121 < { as_fn_set_status 77
3122 < as_fn_error "C++ compiler cannot create executables
3123 < See \`config.log' for more details." "$LINENO" 5; }; }
3121 > as_fn_error 77 "C++ compiler cannot create executables
3122 > See \`config.log' for more details" "$LINENO" 5; }
3123 > else
3124 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3125 > $as_echo "yes" >&6; }
3126   fi
3127 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3128 + $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3129 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3130 + $as_echo "$ac_file" >&6; }
3131   ac_exeext=$ac_cv_exeext
3132  
3133 < # 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
3133 > rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3134   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
3135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3136   $as_echo_n "checking for suffix of executables... " >&6; }
3137   if { { ac_try="$ac_link"
# Line 3715 | Line 3161 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161   else
3162    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164 < as_fn_error "cannot compute suffix of executables: cannot compile and link
3165 < See \`config.log' for more details." "$LINENO" 5; }
3164 > as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3165 > See \`config.log' for more details" "$LINENO" 5; }
3166   fi
3167 < rm -f conftest$ac_cv_exeext
3167 > rm -f conftest conftest$ac_cv_exeext
3168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3169   $as_echo "$ac_cv_exeext" >&6; }
3170  
3171   rm -f conftest.$ac_ext
3172   EXEEXT=$ac_cv_exeext
3173   ac_exeext=$EXEEXT
3174 < { $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
3174 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175   /* end confdefs.h.  */
3176 <
3176 > #include <stdio.h>
3177   int
3178   main ()
3179   {
3180 + FILE *f = fopen ("conftest.out", "w");
3181 + return ferror (f) || fclose (f) != 0;
3182  
3183    ;
3184    return 0;
3185   }
3186   _ACEOF
3187 < rm -f conftest.o conftest.obj
3188 < if { { ac_try="$ac_compile"
3187 > ac_clean_files="$ac_clean_files conftest.out"
3188 > # Check that the compiler produces executables we can run.  If not, either
3189 > # the compiler is broken, or we cross compile.
3190 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3191 > $as_echo_n "checking whether we are cross compiling... " >&6; }
3192 > if test "$cross_compiling" != yes; then
3193 >  { { ac_try="$ac_link"
3194   case "(($ac_try" in
3195    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196    *) ac_try_echo=$ac_try;;
3197   esac
3198   eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199   $as_echo "$ac_try_echo"; } >&5
3200 <  (eval "$ac_compile") 2>&5
3200 >  (eval "$ac_link") 2>&5
3201    ac_status=$?
3202    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 <  test $ac_status = 0; }; then :
3204 <  for ac_file in conftest.o conftest.obj conftest.*; do
3205 <  test -f "$ac_file" || continue;
3203 >  test $ac_status = 0; }
3204 >  if { ac_try='./conftest$ac_cv_exeext'
3205 >  { { case "(($ac_try" in
3206 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 >  *) ac_try_echo=$ac_try;;
3208 > esac
3209 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 > $as_echo "$ac_try_echo"; } >&5
3211 >  (eval "$ac_try") 2>&5
3212 >  ac_status=$?
3213 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 >  test $ac_status = 0; }; }; then
3215 >    cross_compiling=no
3216 >  else
3217 >    if test "$cross_compiling" = maybe; then
3218 >        cross_compiling=yes
3219 >    else
3220 >        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3221 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222 > as_fn_error $? "cannot run C++ compiled programs.
3223 > If you meant to cross compile, use \`--host'.
3224 > See \`config.log' for more details" "$LINENO" 5; }
3225 >    fi
3226 >  fi
3227 > fi
3228 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3229 > $as_echo "$cross_compiling" >&6; }
3230 >
3231 > rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3232 > ac_clean_files=$ac_clean_files_save
3233 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3234 > $as_echo_n "checking for suffix of object files... " >&6; }
3235 > if ${ac_cv_objext+:} false; then :
3236 >  $as_echo_n "(cached) " >&6
3237 > else
3238 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 > /* end confdefs.h.  */
3240 >
3241 > int
3242 > main ()
3243 > {
3244 >
3245 >  ;
3246 >  return 0;
3247 > }
3248 > _ACEOF
3249 > rm -f conftest.o conftest.obj
3250 > if { { ac_try="$ac_compile"
3251 > case "(($ac_try" in
3252 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 >  *) ac_try_echo=$ac_try;;
3254 > esac
3255 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256 > $as_echo "$ac_try_echo"; } >&5
3257 >  (eval "$ac_compile") 2>&5
3258 >  ac_status=$?
3259 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 >  test $ac_status = 0; }; then :
3261 >  for ac_file in conftest.o conftest.obj conftest.*; do
3262 >  test -f "$ac_file" || continue;
3263    case $ac_file in
3264      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3265      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
# Line 3767 | Line 3272 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272  
3273   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 < as_fn_error "cannot compute suffix of object files: cannot compile
3276 < See \`config.log' for more details." "$LINENO" 5; }
3275 > as_fn_error $? "cannot compute suffix of object files: cannot compile
3276 > See \`config.log' for more details" "$LINENO" 5; }
3277   fi
3278   rm -f conftest.$ac_cv_objext conftest.$ac_ext
3279   fi
# Line 3778 | Line 3283 | $as_echo_n "checking whether we are using the GNU C++
3283   ac_objext=$OBJEXT
3284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3285   $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3286 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3286 > if ${ac_cv_cxx_compiler_gnu+:} false; then :
3287    $as_echo_n "(cached) " >&6
3288   else
3289    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3815 | Line 3320 | $as_echo_n "checking whether $CXX accepts -g... " >&6;
3320   ac_save_CXXFLAGS=$CXXFLAGS
3321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3322   $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3323 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
3323 > if ${ac_cv_prog_cxx_g+:} false; then :
3324    $as_echo_n "(cached) " >&6
3325   else
3326    ac_save_cxx_werror_flag=$ac_cxx_werror_flag
# Line 3891 | Line 3396 | fi
3396      CXXFLAGS=
3397    fi
3398   fi
3399 < ac_ext=cpp
3400 < ac_cpp='$CXXCPP $CPPFLAGS'
3401 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 < 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=" "
3958 < fi
3959 <
3960 < fi
3961 <
3962 < if test x = x"$MPILIBS"; then
3963 <        { $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
3399 > ac_ext=c
3400 > ac_cpp='$CPP $CPPFLAGS'
3401 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404  
3405   ac_ext=c
3406   ac_cpp='$CPP $CPPFLAGS'
# Line 4090 | Line 3408 | if test -n "$ac_tool_prefix"; then
3408   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410   if test -n "$ac_tool_prefix"; then
3411 <  # 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
3411 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3412    do
3413      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3414   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416   $as_echo_n "checking for $ac_word... " >&6; }
3417 < if test "${ac_cv_prog_CC+set}" = set; then :
3417 > if ${ac_cv_prog_CC+:} false; then :
3418    $as_echo_n "(cached) " >&6
3419   else
3420    if test -n "$CC"; then
# Line 4324 | Line 3452 | if test -z "$CC"; then
3452   fi
3453   if test -z "$CC"; then
3454    ac_ct_CC=$CC
3455 <  for ac_prog in cl.exe
3455 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3456   do
3457    # Extract the first word of "$ac_prog", so it can be a program name with args.
3458   set dummy $ac_prog; ac_word=$2
3459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460   $as_echo_n "checking for $ac_word... " >&6; }
3461 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3461 > if ${ac_cv_prog_ac_ct_CC+:} false; then :
3462    $as_echo_n "(cached) " >&6
3463   else
3464    if test -n "$ac_ct_CC"; then
# Line 4379 | Line 3507 | fi
3507    fi
3508   fi
3509  
4382 fi
3510  
4384
3511   test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513 < as_fn_error "no acceptable C compiler found in \$PATH
3514 < See \`config.log' for more details." "$LINENO" 5; }
3513 > as_fn_error $? "no acceptable C compiler found in \$PATH
3514 > See \`config.log' for more details" "$LINENO" 5; }
3515  
3516   # Provide some information about the compiler.
3517   $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
# Line 4406 | Line 3532 | $as_echo "$ac_try_echo"; } >&5
3532   ... rest of stderr output deleted ...
3533           10q' conftest.err >conftest.er1
3534      cat conftest.er1 >&5
4409    rm -f conftest.er1 conftest.err
3535    fi
3536 +  rm -f conftest.er1 conftest.err
3537    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538    test $ac_status = 0; }
3539   done
3540  
3541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3542   $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3543 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3543 > if ${ac_cv_c_compiler_gnu+:} false; then :
3544    $as_echo_n "(cached) " >&6
3545   else
3546    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 4451 | Line 3577 | $as_echo_n "checking whether $CC accepts -g... " >&6;
3577   ac_save_CFLAGS=$CFLAGS
3578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3579   $as_echo_n "checking whether $CC accepts -g... " >&6; }
3580 < if test "${ac_cv_prog_cc_g+set}" = set; then :
3580 > if ${ac_cv_prog_cc_g+:} false; then :
3581    $as_echo_n "(cached) " >&6
3582   else
3583    ac_save_c_werror_flag=$ac_c_werror_flag
# Line 4529 | Line 3655 | $as_echo_n "checking for $CC option to accept ISO C89.
3655   fi
3656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3657   $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3658 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
3658 > if ${ac_cv_prog_cc_c89+:} false; then :
3659    $as_echo_n "(cached) " >&6
3660   else
3661    ac_cv_prog_cc_c89=no
# Line 4625 | Line 3751 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752  
3753  
3754 < if test $USE_MPI != no; then :
3754 > save_CXX=$CXX
3755 > save_CC=$CC
3756 > save_LIBS=$LIBS
3757  
3758 < ac_ext=c
3759 < ac_cpp='$CPP $CPPFLAGS'
3760 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758 > ac_ext=cpp
3759 > ac_cpp='$CXXCPP $CPPFLAGS'
3760 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3763  
3764  
3765 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
3766 + $as_echo_n "checking for dlopen in -lc... " >&6; }
3767 + if ${ac_cv_lib_c_dlopen+:} false; then :
3768 +  $as_echo_n "(cached) " >&6
3769 + else
3770 +  ac_check_lib_save_LIBS=$LIBS
3771 + LIBS="-lc  $LIBS"
3772 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 + /* end confdefs.h.  */
3774  
3775 + /* Override any GCC internal prototype to avoid an error.
3776 +   Use char because int might match the return type of a GCC
3777 +   builtin and then its argument prototype would still apply.  */
3778 + #ifdef __cplusplus
3779 + extern "C"
3780 + #endif
3781 + char dlopen ();
3782 + int
3783 + main ()
3784 + {
3785 + return dlopen ();
3786 +  ;
3787 +  return 0;
3788 + }
3789 + _ACEOF
3790 + if ac_fn_cxx_try_link "$LINENO"; then :
3791 +  ac_cv_lib_c_dlopen=yes
3792 + else
3793 +  ac_cv_lib_c_dlopen=no
3794 + fi
3795 + rm -f core conftest.err conftest.$ac_objext \
3796 +    conftest$ac_exeext conftest.$ac_ext
3797 + LIBS=$ac_check_lib_save_LIBS
3798 + fi
3799 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
3800 + $as_echo "$ac_cv_lib_c_dlopen" >&6; }
3801 + if test "x$ac_cv_lib_c_dlopen" = xyes; then :
3802 +  LIBDL=""
3803 + else
3804 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3805 + $as_echo_n "checking for dlopen in -ldl... " >&6; }
3806 + if ${ac_cv_lib_dl_dlopen+:} false; then :
3807 +  $as_echo_n "(cached) " >&6
3808 + else
3809 +  ac_check_lib_save_LIBS=$LIBS
3810 + LIBS="-ldl  $LIBS"
3811 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 + /* end confdefs.h.  */
3813  
3814 + /* Override any GCC internal prototype to avoid an error.
3815 +   Use char because int might match the return type of a GCC
3816 +   builtin and then its argument prototype would still apply.  */
3817 + #ifdef __cplusplus
3818 + extern "C"
3819 + #endif
3820 + char dlopen ();
3821 + int
3822 + main ()
3823 + {
3824 + return dlopen ();
3825 +  ;
3826 +  return 0;
3827 + }
3828 + _ACEOF
3829 + if ac_fn_cxx_try_link "$LINENO"; then :
3830 +  ac_cv_lib_dl_dlopen=yes
3831 + else
3832 +  ac_cv_lib_dl_dlopen=no
3833 + fi
3834 + rm -f core conftest.err conftest.$ac_objext \
3835 +    conftest$ac_exeext conftest.$ac_ext
3836 + LIBS=$ac_check_lib_save_LIBS
3837 + fi
3838 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3839 + $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3840 + if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3841 +  LIBDL="-ldl"
3842 + fi
3843  
3844 + fi
3845  
3846 <        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
3846 >
3847 >
3848 >
3849 >
3850 >
3851 >
3852 >        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3853   do
3854    # Extract the first word of "$ac_prog", so it can be a program name with args.
3855   set dummy $ac_prog; ac_word=$2
3856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857   $as_echo_n "checking for $ac_word... " >&6; }
3858 < if test "${ac_cv_prog_MPICC+set}" = set; then :
3858 > if ${ac_cv_prog_MPICXX+:} false; then :
3859    $as_echo_n "(cached) " >&6
3860   else
3861 <  if test -n "$MPICC"; then
3862 <  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
3861 >  if test -n "$MPICXX"; then
3862 >  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3863   else
3864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865   for as_dir in $PATH
# Line 4657 | Line 3868 | do
3868    test -z "$as_dir" && as_dir=.
3869      for ac_exec_ext in '' $ac_executable_extensions; do
3870    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871 <    ac_cv_prog_MPICC="$ac_prog"
3871 >    ac_cv_prog_MPICXX="$ac_prog"
3872      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873      break 2
3874    fi
# Line 4667 | Line 3878 | fi
3878  
3879   fi
3880   fi
3881 < MPICC=$ac_cv_prog_MPICC
3882 < if test -n "$MPICC"; then
3883 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
3884 < $as_echo "$MPICC" >&6; }
3881 > MPICXX=$ac_cv_prog_MPICXX
3882 > if test -n "$MPICXX"; then
3883 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3884 > $as_echo "$MPICXX" >&6; }
3885   else
3886    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887   $as_echo "no" >&6; }
3888   fi
3889  
3890  
3891 <  test -n "$MPICC" && break
3891 >  test -n "$MPICXX" && break
3892   done
3893 < test -n "$MPICC" || MPICC="$CC"
3893 > test -n "$MPICXX" || MPICXX="$CXX"
3894  
3895 <        ax_mpi_save_CC="$CC"
3896 <        CC="$MPICC"
3895 >        ax_mpi_save_CXX="$CXX"
3896 >        CXX="$MPICXX"
3897  
3898  
3899  
3900   if test x = x"$MPILIBS"; then
3901 <        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3902 < if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3901 >        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3902 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
3903    MPILIBS=" "
3904   fi
3905  
# Line 4697 | Line 3908 | $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3908   if test x = x"$MPILIBS"; then
3909          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3910   $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3911 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
3911 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
3912    $as_echo_n "(cached) " >&6
3913   else
3914    ac_check_lib_save_LIBS=$LIBS
# Line 4720 | Line 3931 | _ACEOF
3931    return 0;
3932   }
3933   _ACEOF
3934 < if ac_fn_c_try_link "$LINENO"; then :
3934 > if ac_fn_cxx_try_link "$LINENO"; then :
3935    ac_cv_lib_mpi_MPI_Init=yes
3936   else
3937    ac_cv_lib_mpi_MPI_Init=no
# Line 4731 | Line 3942 | $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3942   fi
3943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3944   $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3945 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
3945 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
3946    MPILIBS="-lmpi"
3947   fi
3948  
# Line 4739 | Line 3950 | $as_echo_n "checking for MPI_Init in -lmpich... " >&6;
3950   if test x = x"$MPILIBS"; then
3951          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
3952   $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
3953 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
3953 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
3954    $as_echo_n "(cached) " >&6
3955   else
3956    ac_check_lib_save_LIBS=$LIBS
# Line 4762 | Line 3973 | _ACEOF
3973    return 0;
3974   }
3975   _ACEOF
3976 < if ac_fn_c_try_link "$LINENO"; then :
3976 > if ac_fn_cxx_try_link "$LINENO"; then :
3977    ac_cv_lib_mpich_MPI_Init=yes
3978   else
3979    ac_cv_lib_mpich_MPI_Init=no
# Line 4773 | Line 3984 | $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3984   fi
3985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
3986   $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3987 < if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
3987 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
3988    MPILIBS="-lmpich"
3989   fi
3990  
# Line 4793 | Line 4004 | _ACEOF
4004    return 0;
4005   }
4006   _ACEOF
4007 < if ac_fn_c_try_compile "$LINENO"; then :
4007 > if ac_fn_cxx_try_compile "$LINENO"; then :
4008    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4009   $as_echo "yes" >&6; }
4010   else
# Line 4804 | Line 4015 | fi
4015   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016   fi
4017  
4018 < CC="$ax_mpi_save_CC"
4018 > CXX="$ax_mpi_save_CXX"
4019  
4020  
4021  
4022   # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4023   if test x = x"$MPILIBS"; then
4024          USE_MPI="no"
4025 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&5
4026 < $as_echo "$as_me: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&2;}
4025 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5
4026 > $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;}
4027          :
4028   else
4029          USE_MPI="yes"
4030          :
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
4031   fi
4977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4978 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4032  
4980 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
4033  
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
5004
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
4034   if test $USE_MPI != no; then :
4035  
4036 < ac_ext=${ac_fc_srcext-f}
4037 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4038 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4039 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4036 > ac_ext=c
4037 > ac_cpp='$CPP $CPPFLAGS'
4038 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041  
4042  
4043  
4044  
4045  
4046  
4047 <        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4047 >        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4048   do
4049    # Extract the first word of "$ac_prog", so it can be a program name with args.
4050   set dummy $ac_prog; ac_word=$2
4051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4052   $as_echo_n "checking for $ac_word... " >&6; }
4053 < if test "${ac_cv_prog_MPIFC+set}" = set; then :
4053 > if ${ac_cv_prog_MPICC+:} false; then :
4054    $as_echo_n "(cached) " >&6
4055   else
4056 <  if test -n "$MPIFC"; then
4057 <  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4056 >  if test -n "$MPICC"; then
4057 >  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4058   else
4059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060   for as_dir in $PATH
# Line 5058 | Line 4063 | do
4063    test -z "$as_dir" && as_dir=.
4064      for ac_exec_ext in '' $ac_executable_extensions; do
4065    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4066 <    ac_cv_prog_MPIFC="$ac_prog"
4066 >    ac_cv_prog_MPICC="$ac_prog"
4067      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4068      break 2
4069    fi
# Line 5068 | Line 4073 | fi
4073  
4074   fi
4075   fi
4076 < MPIFC=$ac_cv_prog_MPIFC
4077 < if test -n "$MPIFC"; then
4078 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4079 < $as_echo "$MPIFC" >&6; }
4076 > MPICC=$ac_cv_prog_MPICC
4077 > if test -n "$MPICC"; then
4078 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4079 > $as_echo "$MPICC" >&6; }
4080   else
4081    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082   $as_echo "no" >&6; }
4083   fi
4084  
4085  
4086 <  test -n "$MPIFC" && break
4086 >  test -n "$MPICC" && break
4087   done
4088 < test -n "$MPIFC" || MPIFC="$FC"
4088 > test -n "$MPICC" || MPICC="$CC"
4089  
4090 <        ax_mpi_save_FC="$FC"
4091 <        FC="$MPIFC"
4090 >        ax_mpi_save_CC="$CC"
4091 >        CC="$MPICC"
4092  
4093  
4094  
4095   if test x = x"$MPILIBS"; then
4096 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4097 < $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 :
4096 >        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4097 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
4098    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; }
4099   fi
5106 rm -f core conftest.err conftest.$ac_objext \
5107    conftest$ac_exeext conftest.$ac_ext
5108 fi
4100  
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
4101   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
4102  
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
4103   if test x = x"$MPILIBS"; then
4104          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4105   $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4106 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4106 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4107    $as_echo_n "(cached) " >&6
4108   else
4109    ac_check_lib_save_LIBS=$LIBS
4110   LIBS="-lmpi  $LIBS"
4111 < cat > conftest.$ac_ext <<_ACEOF
4112 <      program main
4113 <      call MPI_Init
4114 <      end
4111 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 > /* end confdefs.h.  */
4113 >
4114 > /* Override any GCC internal prototype to avoid an error.
4115 >   Use char because int might match the return type of a GCC
4116 >   builtin and then its argument prototype would still apply.  */
4117 > #ifdef __cplusplus
4118 > extern "C"
4119 > #endif
4120 > char MPI_Init ();
4121 > int
4122 > main ()
4123 > {
4124 > return MPI_Init ();
4125 >  ;
4126 >  return 0;
4127 > }
4128   _ACEOF
4129 < if ac_fn_fc_try_link "$LINENO"; then :
4129 > if ac_fn_c_try_link "$LINENO"; then :
4130    ac_cv_lib_mpi_MPI_Init=yes
4131   else
4132    ac_cv_lib_mpi_MPI_Init=no
# Line 5190 | Line 4137 | $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4137   fi
4138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4139   $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4140 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4140 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4141    MPILIBS="-lmpi"
4142   fi
4143  
# Line 5198 | Line 4145 | $as_echo_n "checking for MPI_Init in -lmpich... " >&6;
4145   if test x = x"$MPILIBS"; then
4146          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4147   $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4148 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4148 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4149    $as_echo_n "(cached) " >&6
4150   else
4151    ac_check_lib_save_LIBS=$LIBS
4152   LIBS="-lmpich  $LIBS"
4153 < cat > conftest.$ac_ext <<_ACEOF
4154 <      program main
4155 <      call MPI_Init
4156 <      end
4153 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 > /* end confdefs.h.  */
4155 >
4156 > /* Override any GCC internal prototype to avoid an error.
4157 >   Use char because int might match the return type of a GCC
4158 >   builtin and then its argument prototype would still apply.  */
4159 > #ifdef __cplusplus
4160 > extern "C"
4161 > #endif
4162 > char MPI_Init ();
4163 > int
4164 > main ()
4165 > {
4166 > return MPI_Init ();
4167 >  ;
4168 >  return 0;
4169 > }
4170   _ACEOF
4171 < if ac_fn_fc_try_link "$LINENO"; then :
4171 > if ac_fn_c_try_link "$LINENO"; then :
4172    ac_cv_lib_mpich_MPI_Init=yes
4173   else
4174    ac_cv_lib_mpich_MPI_Init=no
# Line 5219 | Line 4179 | $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4179   fi
4180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4181   $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4182 < if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4182 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4183    MPILIBS="-lmpich"
4184   fi
4185  
4186   fi
4187  
4188   if test x != x"$MPILIBS"; then
4189 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4190 < $as_echo_n "checking for mpif.h... " >&6; }
4191 <        cat > conftest.$ac_ext <<_ACEOF
4192 <      program main
4193 <      include 'mpif.h'
4194 <      end
4189 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4190 > $as_echo_n "checking for mpi.h... " >&6; }
4191 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 > /* end confdefs.h.  */
4193 > #include <mpi.h>
4194 > int
4195 > main ()
4196 > {
4197 >
4198 >  ;
4199 >  return 0;
4200 > }
4201   _ACEOF
4202 < if ac_fn_fc_try_compile "$LINENO"; then :
4202 > if ac_fn_c_try_compile "$LINENO"; then :
4203    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4204   $as_echo "yes" >&6; }
4205   else
# Line 5244 | Line 4210 | fi
4210   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211   fi
4212  
4213 < FC="$ax_mpi_save_FC"
4213 > CC="$ax_mpi_save_CC"
4214  
4215  
4216  
4217   # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4218   if test x = x"$MPILIBS"; then
4219          USE_MPI="no"
4220 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&5
4221 < $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&2;}
4220 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5
4221 > $as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;}
4222          :
4223   else
4224          USE_MPI="yes"
# Line 5265 | Line 4231 | if test $USE_MPI != no; then :
4231  
4232          CXX=$MPICXX
4233          CC=$MPICC
4234 <        FC=$MPIFC
4234 >        LIBS="$MPILIBS $LIBS"
4235  
4236 < fi
4236 > else
4237  
4238 <
4239 < # Checks for programs.
4240 < ac_ext=cpp
4241 < ac_cpp='$CXXCPP $CPPFLAGS'
4242 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4245 < if test -z "$CXX"; then
4246 <  if test -n "$CCC"; then
4247 <    CXX=$CCC
4248 <  else
4249 <    if test -n "$ac_tool_prefix"; then
4250 <  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
4251 <  do
4252 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4253 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4254 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255 < $as_echo_n "checking for $ac_word... " >&6; }
4256 < if test "${ac_cv_prog_CXX+set}" = set; then :
4257 <  $as_echo_n "(cached) " >&6
4258 < else
4259 <  if test -n "$CXX"; then
4260 <  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4261 < else
4262 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 < for as_dir in $PATH
4264 < do
4265 <  IFS=$as_save_IFS
4266 <  test -z "$as_dir" && as_dir=.
4267 <    for ac_exec_ext in '' $ac_executable_extensions; do
4268 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4269 <    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4270 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 <    break 2
4272 <  fi
4273 < done
4274 <  done
4275 < IFS=$as_save_IFS
4276 <
4277 < fi
4278 < fi
4279 < CXX=$ac_cv_prog_CXX
4280 < if test -n "$CXX"; then
4281 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4282 < $as_echo "$CXX" >&6; }
4283 < else
4284 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 < $as_echo "no" >&6; }
4286 < fi
4287 <
4288 <
4289 <    test -n "$CXX" && break
4290 <  done
4291 < fi
4292 < if test -z "$CXX"; then
4293 <  ac_ct_CXX=$CXX
4294 <  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
4295 < do
4296 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4297 < set dummy $ac_prog; ac_word=$2
4298 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299 < $as_echo_n "checking for $ac_word... " >&6; }
4300 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4301 <  $as_echo_n "(cached) " >&6
4302 < else
4303 <  if test -n "$ac_ct_CXX"; then
4304 <  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4305 < else
4306 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 < for as_dir in $PATH
4308 < do
4309 <  IFS=$as_save_IFS
4310 <  test -z "$as_dir" && as_dir=.
4311 <    for ac_exec_ext in '' $ac_executable_extensions; do
4312 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4313 <    ac_cv_prog_ac_ct_CXX="$ac_prog"
4314 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 <    break 2
4316 <  fi
4317 < done
4318 <  done
4319 < IFS=$as_save_IFS
4320 <
4321 < fi
4322 < fi
4323 < ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4324 < if test -n "$ac_ct_CXX"; then
4325 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4326 < $as_echo "$ac_ct_CXX" >&6; }
4327 < else
4328 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 < $as_echo "no" >&6; }
4330 < fi
4331 <
4332 <
4333 <  test -n "$ac_ct_CXX" && break
4334 < done
4335 <
4336 <  if test "x$ac_ct_CXX" = x; then
4337 <    CXX="g++"
4338 <  else
4339 <    case $cross_compiling:$ac_tool_warned in
4340 < yes:)
4341 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4342 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4343 < ac_tool_warned=yes ;;
4344 < esac
4345 <    CXX=$ac_ct_CXX
4346 <  fi
4347 < fi
4348 <
4349 <  fi
4350 < fi
4351 < # Provide some information about the compiler.
4352 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4353 < set X $ac_compile
4354 < ac_compiler=$2
4355 < for ac_option in --version -v -V -qversion; do
4356 <  { { ac_try="$ac_compiler $ac_option >&5"
4357 < case "(($ac_try" in
4358 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 <  *) ac_try_echo=$ac_try;;
4360 < esac
4361 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4362 < $as_echo "$ac_try_echo"; } >&5
4363 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4364 <  ac_status=$?
4365 <  if test -s conftest.err; then
4366 <    sed '10a\
4367 < ... rest of stderr output deleted ...
4368 <         10q' conftest.err >conftest.er1
4369 <    cat conftest.er1 >&5
4370 <    rm -f conftest.er1 conftest.err
4371 <  fi
4372 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4373 <  test $ac_status = 0; }
4374 < done
4375 <
4376 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4377 < $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4378 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4379 <  $as_echo_n "(cached) " >&6
4380 < else
4381 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 < /* end confdefs.h.  */
4383 <
4384 < int
4385 < main ()
4386 < {
4387 < #ifndef __GNUC__
4388 <       choke me
4389 < #endif
4390 <
4391 <  ;
4392 <  return 0;
4393 < }
4394 < _ACEOF
4395 < if ac_fn_cxx_try_compile "$LINENO"; then :
4396 <  ac_compiler_gnu=yes
4397 < else
4398 <  ac_compiler_gnu=no
4399 < fi
4400 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401 < ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4402 <
4403 < fi
4404 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4405 < $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4406 < if test $ac_compiler_gnu = yes; then
4407 <  GXX=yes
4408 < else
4409 <  GXX=
4410 < fi
4411 < ac_test_CXXFLAGS=${CXXFLAGS+set}
4412 < ac_save_CXXFLAGS=$CXXFLAGS
4413 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4414 < $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4415 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
4416 <  $as_echo_n "(cached) " >&6
4417 < else
4418 <  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4419 <   ac_cxx_werror_flag=yes
4420 <   ac_cv_prog_cxx_g=no
4421 <   CXXFLAGS="-g"
4422 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423 < /* end confdefs.h.  */
4424 <
4425 < int
4426 < main ()
4427 < {
4428 <
4429 <  ;
4430 <  return 0;
4431 < }
4432 < _ACEOF
4433 < if ac_fn_cxx_try_compile "$LINENO"; then :
4434 <  ac_cv_prog_cxx_g=yes
4435 < else
4436 <  CXXFLAGS=""
4437 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 < /* end confdefs.h.  */
4439 <
4440 < int
4441 < main ()
4442 < {
4443 <
4444 <  ;
4445 <  return 0;
4446 < }
4447 < _ACEOF
4448 < if ac_fn_cxx_try_compile "$LINENO"; then :
4449 <
4450 < else
4451 <  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4452 <         CXXFLAGS="-g"
4453 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 < /* end confdefs.h.  */
4455 <
4456 < int
4457 < main ()
4458 < {
4459 <
4460 <  ;
4461 <  return 0;
4462 < }
4463 < _ACEOF
4464 < if ac_fn_cxx_try_compile "$LINENO"; then :
4465 <  ac_cv_prog_cxx_g=yes
4466 < fi
4467 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468 < fi
4469 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 < fi
4471 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 <   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4473 < fi
4474 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4475 < $as_echo "$ac_cv_prog_cxx_g" >&6; }
4476 < if test "$ac_test_CXXFLAGS" = set; then
4477 <  CXXFLAGS=$ac_save_CXXFLAGS
4478 < elif test $ac_cv_prog_cxx_g = yes; then
4479 <  if test "$GXX" = yes; then
4480 <    CXXFLAGS="-g -O2"
4481 <  else
4482 <    CXXFLAGS="-g"
4483 <  fi
4484 < else
4485 <  if test "$GXX" = yes; then
4486 <    CXXFLAGS="-O2"
4487 <  else
4488 <    CXXFLAGS=
4489 <  fi
4490 < fi
4491 < ac_ext=${ac_fc_srcext-f}
4492 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4493 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4494 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4495 <
4496 < ac_ext=c
4497 < ac_cpp='$CPP $CPPFLAGS'
4498 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501 < if test -n "$ac_tool_prefix"; then
4502 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
4503 <  do
4504 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4505 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4506 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507 < $as_echo_n "checking for $ac_word... " >&6; }
4508 < if test "${ac_cv_prog_CC+set}" = set; then :
4509 <  $as_echo_n "(cached) " >&6
4510 < else
4511 <  if test -n "$CC"; then
4512 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4513 < else
4514 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 < for as_dir in $PATH
4516 < do
4517 <  IFS=$as_save_IFS
4518 <  test -z "$as_dir" && as_dir=.
4519 <    for ac_exec_ext in '' $ac_executable_extensions; do
4520 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4521 <    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4522 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 <    break 2
4524 <  fi
4525 < done
4526 <  done
4527 < IFS=$as_save_IFS
4528 <
4529 < fi
4530 < fi
4531 < CC=$ac_cv_prog_CC
4532 < if test -n "$CC"; then
4533 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4534 < $as_echo "$CC" >&6; }
4535 < else
4536 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 < $as_echo "no" >&6; }
4538 < fi
4539 <
4540 <
4541 <    test -n "$CC" && break
4542 <  done
4543 < fi
4544 < if test -z "$CC"; then
4545 <  ac_ct_CC=$CC
4546 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
4547 < do
4548 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 < set dummy $ac_prog; ac_word=$2
4550 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551 < $as_echo_n "checking for $ac_word... " >&6; }
4552 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4553 <  $as_echo_n "(cached) " >&6
4554 < else
4555 <  if test -n "$ac_ct_CC"; then
4556 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4557 < else
4558 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 < for as_dir in $PATH
4560 < do
4561 <  IFS=$as_save_IFS
4562 <  test -z "$as_dir" && as_dir=.
4563 <    for ac_exec_ext in '' $ac_executable_extensions; do
4564 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4565 <    ac_cv_prog_ac_ct_CC="$ac_prog"
4566 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 <    break 2
4568 <  fi
4569 < done
4570 <  done
4571 < IFS=$as_save_IFS
4572 <
4573 < fi
4574 < fi
4575 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
4576 < if test -n "$ac_ct_CC"; then
4577 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4578 < $as_echo "$ac_ct_CC" >&6; }
4579 < else
4580 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 < $as_echo "no" >&6; }
4582 < fi
4583 <
4584 <
4585 <  test -n "$ac_ct_CC" && break
4586 < done
4587 <
4588 <  if test "x$ac_ct_CC" = x; then
4589 <    CC=""
4590 <  else
4591 <    case $cross_compiling:$ac_tool_warned in
4592 < yes:)
4593 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4594 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4595 < ac_tool_warned=yes ;;
4596 < esac
4597 <    CC=$ac_ct_CC
4598 <  fi
4599 < fi
4600 <
4601 <
4602 < test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 < as_fn_error "no acceptable C compiler found in \$PATH
4605 < See \`config.log' for more details." "$LINENO" 5; }
4606 <
4607 < # Provide some information about the compiler.
4608 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4609 < set X $ac_compile
4610 < ac_compiler=$2
4611 < for ac_option in --version -v -V -qversion; do
4612 <  { { ac_try="$ac_compiler $ac_option >&5"
4613 < case "(($ac_try" in
4614 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 <  *) ac_try_echo=$ac_try;;
4616 < esac
4617 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4618 < $as_echo "$ac_try_echo"; } >&5
4619 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4620 <  ac_status=$?
4621 <  if test -s conftest.err; then
4622 <    sed '10a\
4623 < ... rest of stderr output deleted ...
4624 <         10q' conftest.err >conftest.er1
4625 <    cat conftest.er1 >&5
4626 <    rm -f conftest.er1 conftest.err
4627 <  fi
4628 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 <  test $ac_status = 0; }
4630 < done
4631 <
4632 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4633 < $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4634 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4635 <  $as_echo_n "(cached) " >&6
4636 < else
4637 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 < /* end confdefs.h.  */
4639 <
4640 < int
4641 < main ()
4642 < {
4643 < #ifndef __GNUC__
4644 <       choke me
4645 < #endif
4646 <
4647 <  ;
4648 <  return 0;
4649 < }
4650 < _ACEOF
4651 < if ac_fn_c_try_compile "$LINENO"; then :
4652 <  ac_compiler_gnu=yes
4653 < else
4654 <  ac_compiler_gnu=no
4655 < fi
4656 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657 < ac_cv_c_compiler_gnu=$ac_compiler_gnu
4658 <
4659 < fi
4660 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4661 < $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4662 < if test $ac_compiler_gnu = yes; then
4663 <  GCC=yes
4664 < else
4665 <  GCC=
4666 < fi
4667 < ac_test_CFLAGS=${CFLAGS+set}
4668 < ac_save_CFLAGS=$CFLAGS
4669 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4670 < $as_echo_n "checking whether $CC accepts -g... " >&6; }
4671 < if test "${ac_cv_prog_cc_g+set}" = set; then :
4672 <  $as_echo_n "(cached) " >&6
4673 < else
4674 <  ac_save_c_werror_flag=$ac_c_werror_flag
4675 <   ac_c_werror_flag=yes
4676 <   ac_cv_prog_cc_g=no
4677 <   CFLAGS="-g"
4678 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 < /* end confdefs.h.  */
4680 <
4681 < int
4682 < main ()
4683 < {
4684 <
4685 <  ;
4686 <  return 0;
4687 < }
4688 < _ACEOF
4689 < if ac_fn_c_try_compile "$LINENO"; then :
4690 <  ac_cv_prog_cc_g=yes
4691 < else
4692 <  CFLAGS=""
4693 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 < /* end confdefs.h.  */
4695 <
4696 < int
4697 < main ()
4698 < {
4699 <
4700 <  ;
4701 <  return 0;
4702 < }
4703 < _ACEOF
4704 < if ac_fn_c_try_compile "$LINENO"; then :
4705 <
4706 < else
4707 <  ac_c_werror_flag=$ac_save_c_werror_flag
4708 <         CFLAGS="-g"
4709 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 < /* end confdefs.h.  */
4711 <
4712 < int
4713 < main ()
4714 < {
4715 <
4716 <  ;
4717 <  return 0;
4718 < }
4719 < _ACEOF
4720 < if ac_fn_c_try_compile "$LINENO"; then :
4721 <  ac_cv_prog_cc_g=yes
4722 < fi
4723 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 < fi
4725 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 < fi
4727 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 <   ac_c_werror_flag=$ac_save_c_werror_flag
4729 < fi
4730 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4731 < $as_echo "$ac_cv_prog_cc_g" >&6; }
4732 < if test "$ac_test_CFLAGS" = set; then
4733 <  CFLAGS=$ac_save_CFLAGS
4734 < elif test $ac_cv_prog_cc_g = yes; then
4735 <  if test "$GCC" = yes; then
4736 <    CFLAGS="-g -O2"
4737 <  else
4738 <    CFLAGS="-g"
4739 <  fi
4740 < else
4741 <  if test "$GCC" = yes; then
4742 <    CFLAGS="-O2"
4743 <  else
4744 <    CFLAGS=
4745 <  fi
4746 < fi
4747 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4748 < $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4749 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
4750 <  $as_echo_n "(cached) " >&6
4751 < else
4752 <  ac_cv_prog_cc_c89=no
4753 < ac_save_CC=$CC
4754 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 < /* end confdefs.h.  */
4756 < #include <stdarg.h>
4757 < #include <stdio.h>
4758 < #include <sys/types.h>
4759 < #include <sys/stat.h>
4760 < /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4761 < struct buf { int x; };
4762 < FILE * (*rcsopen) (struct buf *, struct stat *, int);
4763 < static char *e (p, i)
4764 <     char **p;
4765 <     int i;
4766 < {
4767 <  return p[i];
4768 < }
4769 < static char *f (char * (*g) (char **, int), char **p, ...)
4770 < {
4771 <  char *s;
4772 <  va_list v;
4773 <  va_start (v,p);
4774 <  s = g (p, va_arg (v,int));
4775 <  va_end (v);
4776 <  return s;
4777 < }
4778 <
4779 < /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4780 <   function prototypes and stuff, but not '\xHH' hex character constants.
4781 <   These don't provoke an error unfortunately, instead are silently treated
4782 <   as 'x'.  The following induces an error, until -std is added to get
4783 <   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4784 <   array size at least.  It's necessary to write '\x00'==0 to get something
4785 <   that's true only with -std.  */
4786 < int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4787 <
4788 < /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4789 <   inside strings and character constants.  */
4790 < #define FOO(x) 'x'
4791 < int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4792 <
4793 < int test (int i, double x);
4794 < struct s1 {int (*f) (int a);};
4795 < struct s2 {int (*f) (double a);};
4796 < int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4797 < int argc;
4798 < char **argv;
4799 < int
4800 < main ()
4801 < {
4802 < return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4803 <  ;
4804 <  return 0;
4805 < }
4806 < _ACEOF
4807 < for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4808 <        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4809 < do
4810 <  CC="$ac_save_CC $ac_arg"
4811 <  if ac_fn_c_try_compile "$LINENO"; then :
4812 <  ac_cv_prog_cc_c89=$ac_arg
4813 < fi
4814 < rm -f core conftest.err conftest.$ac_objext
4815 <  test "x$ac_cv_prog_cc_c89" != "xno" && break
4816 < done
4817 < rm -f conftest.$ac_ext
4818 < CC=$ac_save_CC
4819 <
4820 < fi
4821 < # AC_CACHE_VAL
4822 < case "x$ac_cv_prog_cc_c89" in
4823 <  x)
4824 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4825 < $as_echo "none needed" >&6; } ;;
4826 <  xno)
4827 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4828 < $as_echo "unsupported" >&6; } ;;
4829 <  *)
4830 <    CC="$CC $ac_cv_prog_cc_c89"
4831 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4832 < $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4833 < esac
4834 < if test "x$ac_cv_prog_cc_c89" != xno; then :
4835 <
4836 < fi
4837 <
4838 < ac_ext=${ac_fc_srcext-f}
4839 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4840 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4841 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4842 <
4843 < ac_ext=${ac_fc_srcext-f}
4844 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4845 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4846 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4847 < if test -n "$ac_tool_prefix"; then
4848 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4849 <  do
4850 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4851 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4852 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 < $as_echo_n "checking for $ac_word... " >&6; }
4854 < if test "${ac_cv_prog_FC+set}" = set; then :
4855 <  $as_echo_n "(cached) " >&6
4856 < else
4857 <  if test -n "$FC"; then
4858 <  ac_cv_prog_FC="$FC" # Let the user override the test.
4859 < else
4860 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 < for as_dir in $PATH
4862 < do
4863 <  IFS=$as_save_IFS
4864 <  test -z "$as_dir" && as_dir=.
4865 <    for ac_exec_ext in '' $ac_executable_extensions; do
4866 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867 <    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4868 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 <    break 2
4870 <  fi
4871 < done
4872 <  done
4873 < IFS=$as_save_IFS
4874 <
4875 < fi
4876 < fi
4877 < FC=$ac_cv_prog_FC
4878 < if test -n "$FC"; then
4879 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4880 < $as_echo "$FC" >&6; }
4881 < else
4882 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 < $as_echo "no" >&6; }
4884 < fi
4885 <
4886 <
4887 <    test -n "$FC" && break
4888 <  done
4889 < fi
4890 < if test -z "$FC"; then
4891 <  ac_ct_FC=$FC
4892 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4893 < do
4894 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4895 < set dummy $ac_prog; ac_word=$2
4896 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 < $as_echo_n "checking for $ac_word... " >&6; }
4898 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4899 <  $as_echo_n "(cached) " >&6
4900 < else
4901 <  if test -n "$ac_ct_FC"; then
4902 <  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4903 < else
4904 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 < for as_dir in $PATH
4906 < do
4907 <  IFS=$as_save_IFS
4908 <  test -z "$as_dir" && as_dir=.
4909 <    for ac_exec_ext in '' $ac_executable_extensions; do
4910 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911 <    ac_cv_prog_ac_ct_FC="$ac_prog"
4912 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 <    break 2
4914 <  fi
4915 < done
4916 <  done
4917 < IFS=$as_save_IFS
4918 <
4919 < fi
4920 < fi
4921 < ac_ct_FC=$ac_cv_prog_ac_ct_FC
4922 < if test -n "$ac_ct_FC"; then
4923 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4924 < $as_echo "$ac_ct_FC" >&6; }
4925 < else
4926 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 < $as_echo "no" >&6; }
4928 < fi
4929 <
4930 <
4931 <  test -n "$ac_ct_FC" && break
4932 < done
4933 <
4934 <  if test "x$ac_ct_FC" = x; then
4935 <    FC=""
4936 <  else
4937 <    case $cross_compiling:$ac_tool_warned in
4938 < yes:)
4939 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4940 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4941 < ac_tool_warned=yes ;;
4942 < esac
4943 <    FC=$ac_ct_FC
4944 <  fi
4945 < fi
4946 <
4947 <
4948 < # Provide some information about the compiler.
4949 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4950 < set X $ac_compile
4951 < ac_compiler=$2
4952 < for ac_option in --version -v -V -qversion; do
4953 <  { { ac_try="$ac_compiler $ac_option >&5"
4954 < case "(($ac_try" in
4955 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 <  *) ac_try_echo=$ac_try;;
4957 < esac
4958 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4959 < $as_echo "$ac_try_echo"; } >&5
4960 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4961 <  ac_status=$?
4962 <  if test -s conftest.err; then
4963 <    sed '10a\
4964 < ... rest of stderr output deleted ...
4965 <         10q' conftest.err >conftest.er1
4966 <    cat conftest.er1 >&5
4967 <    rm -f conftest.er1 conftest.err
4968 <  fi
4969 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4970 <  test $ac_status = 0; }
4971 < done
4972 < rm -f a.out
4973 <
4974 < # If we don't use `.F' as extension, the preprocessor is not run on the
4975 < # input file.  (Note that this only needs to work for GNU compilers.)
4976 < ac_save_ext=$ac_ext
4977 < ac_ext=F
4978 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4979 < $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4980 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4981 <  $as_echo_n "(cached) " >&6
4982 < else
4983 <  cat > conftest.$ac_ext <<_ACEOF
4984 <      program main
4985 < #ifndef __GNUC__
4986 <       choke me
4987 < #endif
4988 <
4989 <      end
4990 < _ACEOF
4991 < if ac_fn_fc_try_compile "$LINENO"; then :
4992 <  ac_compiler_gnu=yes
4993 < else
4994 <  ac_compiler_gnu=no
4995 < fi
4996 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 < ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4998 <
4999 < fi
5000 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
5001 < $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
5002 < ac_ext=$ac_save_ext
5003 < ac_test_FCFLAGS=${FCFLAGS+set}
5004 < ac_save_FCFLAGS=$FCFLAGS
5005 < FCFLAGS=
5006 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
5007 < $as_echo_n "checking whether $FC accepts -g... " >&6; }
5008 < if test "${ac_cv_prog_fc_g+set}" = set; then :
5009 <  $as_echo_n "(cached) " >&6
5010 < else
5011 <  FCFLAGS=-g
5012 < cat > conftest.$ac_ext <<_ACEOF
5013 <      program main
5014 <
5015 <      end
5016 < _ACEOF
5017 < if ac_fn_fc_try_compile "$LINENO"; then :
5018 <  ac_cv_prog_fc_g=yes
5019 < else
5020 <  ac_cv_prog_fc_g=no
5021 < fi
5022 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 <
5024 < fi
5025 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
5026 < $as_echo "$ac_cv_prog_fc_g" >&6; }
5027 < if test "$ac_test_FCFLAGS" = set; then
5028 <  FCFLAGS=$ac_save_FCFLAGS
5029 < elif test $ac_cv_prog_fc_g = yes; then
5030 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5031 <    FCFLAGS="-g -O2"
5032 <  else
5033 <    FCFLAGS="-g"
5034 <  fi
5035 < else
5036 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5037 <    FCFLAGS="-O2"
5038 <  else
5039 <    FCFLAGS=
5040 <  fi
5041 < fi
5042 <
5043 < ac_ext=${ac_fc_srcext-f}
5044 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5045 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5046 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5047 <
5048 < ac_ext=c
5049 < ac_cpp='$CPP $CPPFLAGS'
5050 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
5053 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5054 < $as_echo_n "checking how to run the C preprocessor... " >&6; }
5055 < # On Suns, sometimes $CPP names a directory.
5056 < if test -n "$CPP" && test -d "$CPP"; then
5057 <  CPP=
5058 < fi
5059 < if test -z "$CPP"; then
5060 <  if test "${ac_cv_prog_CPP+set}" = set; then :
5061 <  $as_echo_n "(cached) " >&6
5062 < else
5063 <      # Double quotes because CPP needs to be expanded
5064 <    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5065 <    do
5066 <      ac_preproc_ok=false
5067 < for ac_c_preproc_warn_flag in '' yes
5068 < 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'` ;;
7927 < esac
7928 <
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
7948 <  done
7949 <
7950 <  if test x"$ac_exists" = xtrue; then :
7951 <
7952 < else
7953 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7954 < fi
7955 <          ;;
7956 <        -bI:*)
7957 <            ac_exists=false
7958 <  for ac_i in $ac_cv_fc_libs; do
7959 <    if test x"$ac_arg" = x"$ac_i"; then
7960 <      ac_exists=true
7961 <      break
7962 <    fi
7963 <  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"
7974 < fi
7975 < fi
7976 <          ;;
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
8006 <
8007 <  if test x"$ac_exists" = xtrue; then :
8008 <
8009 < 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
8023 <
8024 <  if test x"$ac_exists" = xtrue; then :
8025 <
8026 < else
8027 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
8028 < fi
8029 <          ;;
8030 <        -zallextract*| -zdefaultextract)
8031 <          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
8032 <          ;;
8033 <          # Ignore everything else.
8034 <  esac
8035 < 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"
8050 <  done
8051 < 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"
8057 <
8058 < fi
8059 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
8060 < $as_echo "$ac_cv_fc_libs" >&6; }
8061 < FCLIBS="$ac_cv_fc_libs"
8062 <
8063 <
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
8110 < else
8111 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
8112 < $as_echo "unknown" >&6; }
8113 < fi
8114 <
8115 <
8116 <
8117 <
8118 <
8119 < # Check for module include path (some use -I, some (Solaris) use -M, some
8120 < # (absoft) use -p).
8121 < # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
8122 < # specified, work.pcl and work.pc are created.  However, if you specify
8123 < # a file, it must contain a the name of a file ending in .pc .  Ugh!
8124 < # Use the module made above
8125 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module directory path flag" >&5
8126 < $as_echo_n "checking for module directory path flag... " >&6; }
8127 < rm -f conftest*
8128 < # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
8129 < rm -f work*
8130 < cat >conftest.$ac_ext <<EOF
8131 <        module conftest
8132 <        integer n
8133 <        parameter (n=1)
8134 <        end module conftest
8135 < EOF
8136 < # SGI and absoft compilers generates module name in upper case!
8137 < 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
8235 <  done
8236 <
8237 <  if test x"$ac_exists" = xtrue; then :
8238 <
8239 < else
8240 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8241 < fi
8242 <          ;;
8243 <      # look for new files derived from the module name,
8244 <      # with different case translation schemes
8245 <      *Bar*)
8246 <          ac_pat=`echo $ac_file | sed s/Bar/%Module%/`
8247 <            ac_exists=false
8248 <  for ac_i in $ac_cv_f90_module_names; do
8249 <    if test x"$ac_pat" = x"$ac_i"; then
8250 <      ac_exists=true
8251 <      break
8252 <    fi
8253 <  done
8254 <
8255 <  if test x"$ac_exists" = xtrue; then :
8256 <
8257 < else
8258 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8259 < fi
8260 <          ;;
8261 <      *bar*)
8262 <          ac_pat=`echo $ac_file | sed s/bar/%module%/`
8263 <            ac_exists=false
8264 <  for ac_i in $ac_cv_f90_module_names; do
8265 <    if test x"$ac_pat" = x"$ac_i"; then
8266 <      ac_exists=true
8267 <      break
8268 <    fi
8269 <  done
8270 <
8271 <  if test x"$ac_exists" = xtrue; then :
8272 <
8273 < else
8274 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8275 < fi
8276 <          ;;
8277 <      *BAR*)
8278 <          ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
8279 <            ac_exists=false
8280 <  for ac_i in $ac_cv_f90_module_names; do
8281 <    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
4238 >        CXX=$save_CXX
4239 >        CC=$save_CC
4240 >        LIBS=$save_LIBS
4241 >
4242 >
4243 > fi
4244 >
4245 >
4246 > # Checks for programs.
4247 > ac_ext=c
4248 > ac_cpp='$CPP $CPPFLAGS'
4249 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4253 > $as_echo_n "checking how to run the C preprocessor... " >&6; }
4254 > # On Suns, sometimes $CPP names a directory.
4255 > if test -n "$CPP" && test -d "$CPP"; then
4256 >  CPP=
4257 > fi
4258 > if test -z "$CPP"; then
4259 >  if ${ac_cv_prog_CPP+:} false; then :
4260 >  $as_echo_n "(cached) " >&6
4261 > else
4262 >      # Double quotes because CPP needs to be expanded
4263 >    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4264 >    do
4265 >      ac_preproc_ok=false
4266 > for ac_c_preproc_warn_flag in '' yes
4267 > do
4268 >  # Use a header file that comes with gcc, so configuring glibc
4269 >  # with a fresh cross-compiler works.
4270 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4271 >  # <limits.h> exists even on freestanding compilers.
4272 >  # On the NeXT, cc -E runs the code through the compiler's parser,
4273 >  # not just through cpp. "Syntax error" is here to catch this case.
4274 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 > /* end confdefs.h.  */
4276 > #ifdef __STDC__
4277 > # include <limits.h>
4278 > #else
4279 > # include <assert.h>
4280 > #endif
4281 >                     Syntax error
4282 > _ACEOF
4283 > if ac_fn_c_try_cpp "$LINENO"; then :
4284 >
4285 > else
4286 >  # Broken: fails on valid input.
4287 > continue
4288 > fi
4289 > rm -f conftest.err conftest.i conftest.$ac_ext
4290 >
4291 >  # OK, works on sane cases.  Now check whether nonexistent headers
4292 >  # can be detected and how.
4293 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 > /* end confdefs.h.  */
4295 > #include <ac_nonexistent.h>
4296 > _ACEOF
4297 > if ac_fn_c_try_cpp "$LINENO"; then :
4298 >  # Broken: success on invalid input.
4299 > continue
4300 > else
4301 >  # Passes both tests.
4302 > ac_preproc_ok=:
4303 > break
4304 > fi
4305 > rm -f conftest.err conftest.i conftest.$ac_ext
4306 >
4307 > done
4308 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4309 > rm -f conftest.i conftest.err conftest.$ac_ext
4310 > if $ac_preproc_ok; then :
4311 >  break
4312 > fi
4313 >
4314 >    done
4315 >    ac_cv_prog_CPP=$CPP
4316 >
4317 > fi
4318 >  CPP=$ac_cv_prog_CPP
4319 > else
4320 >  ac_cv_prog_CPP=$CPP
4321 > fi
4322 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4323 > $as_echo "$CPP" >&6; }
4324 > ac_preproc_ok=false
4325 > for ac_c_preproc_warn_flag in '' yes
4326 > do
4327 >  # Use a header file that comes with gcc, so configuring glibc
4328 >  # with a fresh cross-compiler works.
4329 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4330 >  # <limits.h> exists even on freestanding compilers.
4331 >  # On the NeXT, cc -E runs the code through the compiler's parser,
4332 >  # not just through cpp. "Syntax error" is here to catch this case.
4333 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 > /* end confdefs.h.  */
4335 > #ifdef __STDC__
4336 > # include <limits.h>
4337 > #else
4338 > # include <assert.h>
4339 > #endif
4340 >                     Syntax error
4341 > _ACEOF
4342 > if ac_fn_c_try_cpp "$LINENO"; then :
4343 >
4344 > else
4345 >  # Broken: fails on valid input.
4346 > continue
4347 > fi
4348 > rm -f conftest.err conftest.i conftest.$ac_ext
4349 >
4350 >  # OK, works on sane cases.  Now check whether nonexistent headers
4351 >  # can be detected and how.
4352 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 > /* end confdefs.h.  */
4354 > #include <ac_nonexistent.h>
4355 > _ACEOF
4356 > if ac_fn_c_try_cpp "$LINENO"; then :
4357 >  # Broken: success on invalid input.
4358 > continue
4359 > else
4360 >  # Passes both tests.
4361 > ac_preproc_ok=:
4362 > break
4363 > fi
4364 > rm -f conftest.err conftest.i conftest.$ac_ext
4365 >
4366 > done
4367 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4368 > rm -f conftest.i conftest.err conftest.$ac_ext
4369 > if $ac_preproc_ok; then :
4370 >
4371 > else
4372 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4373 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4374 > as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4375 > See \`config.log' for more details" "$LINENO" 5; }
4376 > fi
4377 >
4378 > ac_ext=c
4379 > ac_cpp='$CPP $CPPFLAGS'
4380 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383 >
4384 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4385 > $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4386 > if ${ac_cv_path_GREP+:} false; then :
4387 >  $as_echo_n "(cached) " >&6
4388 > else
4389 >  if test -z "$GREP"; then
4390 >  ac_path_GREP_found=false
4391 >  # Loop through the user's path and test for each of PROGNAME-LIST
4392 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 > for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4394 > do
4395 >  IFS=$as_save_IFS
4396 >  test -z "$as_dir" && as_dir=.
4397 >    for ac_prog in grep ggrep; do
4398 >    for ac_exec_ext in '' $ac_executable_extensions; do
4399 >      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4400 >      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4401 > # Check for GNU ac_path_GREP and select it if it is found.
4402 >  # Check for GNU $ac_path_GREP
4403 > case `"$ac_path_GREP" --version 2>&1` in
4404 > *GNU*)
4405 >  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4406 > *)
4407 >  ac_count=0
4408 >  $as_echo_n 0123456789 >"conftest.in"
4409 >  while :
4410 >  do
4411 >    cat "conftest.in" "conftest.in" >"conftest.tmp"
4412 >    mv "conftest.tmp" "conftest.in"
4413 >    cp "conftest.in" "conftest.nl"
4414 >    $as_echo 'GREP' >> "conftest.nl"
4415 >    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4416 >    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4417 >    as_fn_arith $ac_count + 1 && ac_count=$as_val
4418 >    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4419 >      # Best one so far, save it but keep looking for a better one
4420 >      ac_cv_path_GREP="$ac_path_GREP"
4421 >      ac_path_GREP_max=$ac_count
4422 >    fi
4423 >    # 10*(2^10) chars as input seems more than enough
4424 >    test $ac_count -gt 10 && break
4425 >  done
4426 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4427 > esac
4428 >
4429 >      $ac_path_GREP_found && break 3
4430 >    done
4431 >  done
4432 >  done
4433 > IFS=$as_save_IFS
4434 >  if test -z "$ac_cv_path_GREP"; then
4435 >    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4436 >  fi
4437 > else
4438 >  ac_cv_path_GREP=$GREP
4439 > fi
4440 >
4441 > fi
4442 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4443 > $as_echo "$ac_cv_path_GREP" >&6; }
4444 > GREP="$ac_cv_path_GREP"
4445 >
4446 >
4447 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4448 > $as_echo_n "checking for egrep... " >&6; }
4449 > if ${ac_cv_path_EGREP+:} false; then :
4450 >  $as_echo_n "(cached) " >&6
4451 > else
4452 >  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4453 >   then ac_cv_path_EGREP="$GREP -E"
4454 >   else
4455 >     if test -z "$EGREP"; then
4456 >  ac_path_EGREP_found=false
4457 >  # Loop through the user's path and test for each of PROGNAME-LIST
4458 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 > for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4460 > do
4461 >  IFS=$as_save_IFS
4462 >  test -z "$as_dir" && as_dir=.
4463 >    for ac_prog in egrep; do
4464 >    for ac_exec_ext in '' $ac_executable_extensions; do
4465 >      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4466 >      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4467 > # Check for GNU ac_path_EGREP and select it if it is found.
4468 >  # Check for GNU $ac_path_EGREP
4469 > case `"$ac_path_EGREP" --version 2>&1` in
4470 > *GNU*)
4471 >  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4472 > *)
4473 >  ac_count=0
4474 >  $as_echo_n 0123456789 >"conftest.in"
4475 >  while :
4476 >  do
4477 >    cat "conftest.in" "conftest.in" >"conftest.tmp"
4478 >    mv "conftest.tmp" "conftest.in"
4479 >    cp "conftest.in" "conftest.nl"
4480 >    $as_echo 'EGREP' >> "conftest.nl"
4481 >    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4482 >    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4483 >    as_fn_arith $ac_count + 1 && ac_count=$as_val
4484 >    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4485 >      # Best one so far, save it but keep looking for a better one
4486 >      ac_cv_path_EGREP="$ac_path_EGREP"
4487 >      ac_path_EGREP_max=$ac_count
4488 >    fi
4489 >    # 10*(2^10) chars as input seems more than enough
4490 >    test $ac_count -gt 10 && break
4491 >  done
4492 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4493 > esac
4494 >
4495 >      $ac_path_EGREP_found && break 3
4496 >    done
4497 >  done
4498 >  done
4499 > IFS=$as_save_IFS
4500 >  if test -z "$ac_cv_path_EGREP"; then
4501 >    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4502 >  fi
4503 > else
4504 >  ac_cv_path_EGREP=$EGREP
4505 > fi
4506 >
4507 >   fi
4508 > fi
4509 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4510 > $as_echo "$ac_cv_path_EGREP" >&6; }
4511 > EGREP="$ac_cv_path_EGREP"
4512 >
4513 >
4514 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4515 > $as_echo_n "checking whether ln -s works... " >&6; }
4516 > LN_S=$as_ln_s
4517 > if test "$LN_S" = "ln -s"; then
4518 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4519 > $as_echo "yes" >&6; }
4520 > else
4521 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4522 > $as_echo "no, using $LN_S" >&6; }
4523 > fi
4524 >
4525 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4526 > $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4527 > set x ${MAKE-make}
4528 > ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4529 > if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4530 >  $as_echo_n "(cached) " >&6
4531 > else
4532 >  cat >conftest.make <<\_ACEOF
4533 > SHELL = /bin/sh
4534 > all:
4535 >        @echo '@@@%%%=$(MAKE)=@@@%%%'
4536 > _ACEOF
4537 > # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4538 > case `${MAKE-make} -f conftest.make 2>/dev/null` in
4539 >  *@@@%%%=?*=@@@%%%*)
4540 >    eval ac_cv_prog_make_${ac_make}_set=yes;;
4541 >  *)
4542 >    eval ac_cv_prog_make_${ac_make}_set=no;;
4543 > esac
4544 > rm -f conftest.make
4545 > fi
4546 > if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4547 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4548 > $as_echo "yes" >&6; }
4549 >  SET_MAKE=
4550 > else
4551 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 > $as_echo "no" >&6; }
4553 >  SET_MAKE="MAKE=${MAKE-make}"
4554 > fi
4555 >
4556 > if test -n "$ac_tool_prefix"; then
4557 >  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4558 > set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4559 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 > $as_echo_n "checking for $ac_word... " >&6; }
4561 > if ${ac_cv_prog_RANLIB+:} false; then :
4562 >  $as_echo_n "(cached) " >&6
4563 > else
4564 >  if test -n "$RANLIB"; then
4565 >  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4566 > else
4567 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 > for as_dir in $PATH
4569 > do
4570 >  IFS=$as_save_IFS
4571 >  test -z "$as_dir" && as_dir=.
4572 >    for ac_exec_ext in '' $ac_executable_extensions; do
4573 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4574 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4575 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 >    break 2
4577 >  fi
4578 > done
4579 >  done
4580 > IFS=$as_save_IFS
4581 >
4582 > fi
4583 > fi
4584 > RANLIB=$ac_cv_prog_RANLIB
4585 > if test -n "$RANLIB"; then
4586 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4587 > $as_echo "$RANLIB" >&6; }
4588 > else
4589 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 > $as_echo "no" >&6; }
4591 > fi
4592 >
4593 >
4594 > fi
4595 > if test -z "$ac_cv_prog_RANLIB"; then
4596 >  ac_ct_RANLIB=$RANLIB
4597 >  # Extract the first word of "ranlib", so it can be a program name with args.
4598 > set dummy ranlib; ac_word=$2
4599 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 > $as_echo_n "checking for $ac_word... " >&6; }
4601 > if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4602 >  $as_echo_n "(cached) " >&6
4603 > else
4604 >  if test -n "$ac_ct_RANLIB"; then
4605 >  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4606 > else
4607 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 > for as_dir in $PATH
4609 > do
4610 >  IFS=$as_save_IFS
4611 >  test -z "$as_dir" && as_dir=.
4612 >    for ac_exec_ext in '' $ac_executable_extensions; do
4613 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
4615 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 >    break 2
4617 >  fi
4618 > done
4619 >  done
4620 > IFS=$as_save_IFS
4621 >
4622 > fi
4623 > fi
4624 > ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4625 > if test -n "$ac_ct_RANLIB"; then
4626 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4627 > $as_echo "$ac_ct_RANLIB" >&6; }
4628 > else
4629 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 > $as_echo "no" >&6; }
4631 > fi
4632 >
4633 >  if test "x$ac_ct_RANLIB" = x; then
4634 >    RANLIB=":"
4635 >  else
4636 >    case $cross_compiling:$ac_tool_warned in
4637 > yes:)
4638 > { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4639 > $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640 > ac_tool_warned=yes ;;
4641 > esac
4642 >    RANLIB=$ac_ct_RANLIB
4643 >  fi
4644 > else
4645 >  RANLIB="$ac_cv_prog_RANLIB"
4646 > fi
4647 >
4648 >
4649 >   # Extract the first word of "perl", so it can be a program name with args.
4650 > set dummy perl; ac_word=$2
4651 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 > $as_echo_n "checking for $ac_word... " >&6; }
4653 > if ${ac_cv_path_PERLINTERP+:} false; then :
4654 >  $as_echo_n "(cached) " >&6
4655 > else
4656 >  case $PERLINTERP in
4657 >  [\\/]* | ?:[\\/]*)
4658 >  ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
4659 >  ;;
4660 >  *)
4661 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 > for as_dir in $PATH
4663 > do
4664 >  IFS=$as_save_IFS
4665 >  test -z "$as_dir" && as_dir=.
4666 >    for ac_exec_ext in '' $ac_executable_extensions; do
4667 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 >    ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
4669 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 >    break 2
4671 >  fi
4672 > done
4673 >  done
4674 > IFS=$as_save_IFS
4675 >
4676 >  test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
4677 >  ;;
4678 > esac
4679 > fi
4680 > PERLINTERP=$ac_cv_path_PERLINTERP
4681 > if test -n "$PERLINTERP"; then
4682 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLINTERP" >&5
4683 > $as_echo "$PERLINTERP" >&6; }
4684 > else
4685 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 > $as_echo "no" >&6; }
4687 > fi
4688 >
4689 >
4690 >   ac_cv_path_perlinterp="$PERLINTERP"
4691 >   _sHpB='#!'
4692 >
4693 >
4694 > # Check whether --with-perl-shebang was given.
4695 > if test "${with_perl_shebang+set}" = set; then :
4696 >  withval=$with_perl_shebang; opt_perl_shebang="$withval"
4697 > else
4698 >                opt_perl_shebang="not_set"
4699 > fi
4700 >
4701 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5
4702 > $as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; }
4703 > if ${ax_cv_opt_perl_shebang+:} false; then :
4704 >  $as_echo_n "(cached) " >&6
4705 > else
4706 >   case "$opt_perl_shebang" in
4707 >                      not_set  ) ax_cv_opt_perl_shebang=''
4708 >                               ;;
4709 >                         *     )
4710 >        ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
4711 >                    esac
4712 >
4713 > fi
4714 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_opt_perl_shebang" >&5
4715 > $as_echo "$ax_cv_opt_perl_shebang" >&6; }
4716 >   if test "A$ax_cv_opt_perl_shebang" != "A"
4717 >     then
4718 >       ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
4719 >       PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
4720 >              { $as_echo "$as_me:${as_lineno-$LINENO}: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
4721 > $as_echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
4722 >
4723 > # Automatic detection of sharpbang formula starts here
4724 >     else
4725 >   _somian_shbangperl=`$PERLINTERP -V:startperl`
4726 >   negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
4727 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5
4728 > $as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; }
4729 > if ${ac_cv_sys_kernshrpbang_perl+:} false; then :
4730 >  $as_echo_n "(cached) " >&6
4731 > else
4732 >  _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
4733 >        if test "x$_somian_kspb_perl" == x
4734 >          then _somian_ksbp_warn_empty='durnit'
4735 >          else
4736 >          case "A$_somian_kspb_perl" in
4737 >                 A#!*perl* )
4738 >           ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
4739 >                        ;;
4740 >                     A*    )  _somian_ksbp_warn_defau='trouble'
4741 >                              ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
4742 >          esac
4743 >        fi
4744 >
4745 > fi
4746 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_kernshrpbang_perl" >&5
4747 > $as_echo "$ac_cv_sys_kernshrpbang_perl" >&6; }
4748 > # The above prints Checking ... result message to user.
4749 >   PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
4750 >
4751 >    if test A${_somian_ksbp_warn_empty+set} == Aset
4752 >      then   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
4753 > $as_echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
4754 >    fi
4755 > # Inform user after printing result value
4756 >    if test A${_somian_ksbp_warn_defau+set} == Aset
4757 >      then { $as_echo "$as_me:${as_lineno-$LINENO}: Maybe Not good -" >&5
4758 > $as_echo "$as_me: Maybe Not good -" >&6;}
4759 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
4760 > $as_echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
4761 >      else { $as_echo "$as_me:${as_lineno-$LINENO}: OK Good result - " >&5
4762 > $as_echo "$as_me: OK Good result - " >&6;}
4763 >           { $as_echo "$as_me:${as_lineno-$LINENO}: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
4764 > $as_echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
4765 >    fi
4766 >  fi
4767 >
4768 > # Find a good install program.  We prefer a C program (faster),
4769 > # so one script is as good as another.  But avoid the broken or
4770 > # incompatible versions:
4771 > # SysV /etc/install, /usr/sbin/install
4772 > # SunOS /usr/etc/install
4773 > # IRIX /sbin/install
4774 > # AIX /bin/install
4775 > # AmigaOS /C/install, which installs bootblocks on floppy discs
4776 > # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4777 > # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4778 > # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4779 > # OS/2's system install, which has a completely different semantic
4780 > # ./install, which can be erroneously created by make from ./install.sh.
4781 > # Reject install programs that cannot install multiple files.
4782 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4783 > $as_echo_n "checking for a BSD-compatible install... " >&6; }
4784 > if test -z "$INSTALL"; then
4785 > if ${ac_cv_path_install+:} false; then :
4786 >  $as_echo_n "(cached) " >&6
4787 > else
4788 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 > for as_dir in $PATH
4790 > do
4791 >  IFS=$as_save_IFS
4792 >  test -z "$as_dir" && as_dir=.
4793 >    # Account for people who put trailing slashes in PATH elements.
4794 > case $as_dir/ in #((
4795 >  ./ | .// | /[cC]/* | \
4796 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4797 >  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4798 >  /usr/ucb/* ) ;;
4799 >  *)
4800 >    # OSF1 and SCO ODT 3.0 have their own names for install.
4801 >    # Don't use installbsd from OSF since it installs stuff as root
4802 >    # by default.
4803 >    for ac_prog in ginstall scoinst install; do
4804 >      for ac_exec_ext in '' $ac_executable_extensions; do
4805 >        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4806 >          if test $ac_prog = install &&
4807 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4808 >            # AIX install.  It has an incompatible calling convention.
4809 >            :
4810 >          elif test $ac_prog = install &&
4811 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4812 >            # program-specific install script used by HP pwplus--don't use.
4813 >            :
4814 >          else
4815 >            rm -rf conftest.one conftest.two conftest.dir
4816 >            echo one > conftest.one
4817 >            echo two > conftest.two
4818 >            mkdir conftest.dir
4819 >            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4820 >              test -s conftest.one && test -s conftest.two &&
4821 >              test -s conftest.dir/conftest.one &&
4822 >              test -s conftest.dir/conftest.two
4823 >            then
4824 >              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4825 >              break 3
4826 >            fi
4827 >          fi
4828 >        fi
4829 >      done
4830 >    done
4831 >    ;;
4832 > esac
4833 >
4834 >  done
4835 > IFS=$as_save_IFS
4836 >
4837 > rm -rf conftest.one conftest.two conftest.dir
4838 >
4839 > fi
4840 >  if test "${ac_cv_path_install+set}" = set; then
4841 >    INSTALL=$ac_cv_path_install
4842 >  else
4843 >    # As a last resort, use the slow shell script.  Don't cache a
4844 >    # value for INSTALL within a source directory, because that will
4845 >    # break other packages using the cache if that directory is
4846 >    # removed, or if the value is a relative name.
4847 >    INSTALL=$ac_install_sh
4848 >  fi
4849 > fi
4850 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4851 > $as_echo "$INSTALL" >&6; }
4852 >
4853 > # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4854 > # It thinks the first close brace ends the variable substitution.
4855 > test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4856 >
4857 > test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4858 >
4859 > test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4860 >
4861 > case "x$INSTALL" in
4862 >   x/*) ;;
4863 >   *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
4864 > esac
4865 > MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f -m 755"
4866 > # Extract the first word of "ar", so it can be a program name with args.
4867 > set dummy ar; ac_word=$2
4868 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 > $as_echo_n "checking for $ac_word... " >&6; }
4870 > if ${ac_cv_prog_AR+:} false; then :
4871 >  $as_echo_n "(cached) " >&6
4872 > else
4873 >  if test -n "$AR"; then
4874 >  ac_cv_prog_AR="$AR" # Let the user override the test.
4875 > else
4876 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 > for as_dir in $PATH
4878 > do
4879 >  IFS=$as_save_IFS
4880 >  test -z "$as_dir" && as_dir=.
4881 >    for ac_exec_ext in '' $ac_executable_extensions; do
4882 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 >    ac_cv_prog_AR="ar"
4884 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 >    break 2
4886 >  fi
4887 > done
4888 >  done
4889 > IFS=$as_save_IFS
4890 >
4891 >  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
4892 > fi
4893 > fi
4894 > AR=$ac_cv_prog_AR
4895 > if test -n "$AR"; then
4896 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4897 > $as_echo "$AR" >&6; }
4898 > else
4899 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 > $as_echo "no" >&6; }
4901 > fi
4902 >
4903 >
4904 > if test "$AR" = "NONE"; then
4905 >  cat >confcache <<\_ACEOF
4906 > # This file is a shell script that caches the results of configure
4907 > # tests run on this system so they can be shared between configure
4908 > # scripts and configure runs, see configure's option --config-cache.
4909 > # It is not useful on other systems.  If it contains results you don't
4910 > # want to keep, you may remove or edit it.
4911 > #
4912 > # config.status only pays attention to the cache file if you give it
4913 > # the --recheck option to rerun configure.
4914 > #
4915 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
4916 > # loading this file, other *unset* `ac_cv_foo' will be assigned the
4917 > # following values.
4918 >
4919 > _ACEOF
4920 >
4921 > # The following way of writing the cache mishandles newlines in values,
4922 > # but we know of no workaround that is simple, portable, and efficient.
4923 > # So, we kill variables containing newlines.
4924 > # Ultrix sh set writes to stderr and can't be redirected directly,
4925 > # and sets the high bit in the cache file unless we assign to the vars.
4926 > (
4927 >  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4928 >    eval ac_val=\$$ac_var
4929 >    case $ac_val in #(
4930 >    *${as_nl}*)
4931 >      case $ac_var in #(
4932 >      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4933 > $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4934 >      esac
4935 >      case $ac_var in #(
4936 >      _ | IFS | as_nl) ;; #(
4937 >      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4938 >      *) { eval $ac_var=; unset $ac_var;} ;;
4939 >      esac ;;
4940 >    esac
4941 >  done
4942 >
4943 >  (set) 2>&1 |
4944 >    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4945 >    *${as_nl}ac_space=\ *)
4946 >      # `set' does not quote correctly, so add quotes: double-quote
4947 >      # substitution turns \\\\ into \\, and sed turns \\ into \.
4948 >      sed -n \
4949 >        "s/'/'\\\\''/g;
4950 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4951 >      ;; #(
4952 >    *)
4953 >      # `set' quotes correctly as required by POSIX, so do not add quotes.
4954 >      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4955 >      ;;
4956 >    esac |
4957 >    sort
4958 > ) |
4959 >  sed '
4960 >     /^ac_cv_env_/b end
4961 >     t clear
4962 >     :clear
4963 >     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4964 >     t end
4965 >     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4966 >     :end' >>confcache
4967 > if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4968 >  if test -w "$cache_file"; then
4969 >    if test "x$cache_file" != "x/dev/null"; then
4970 >      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4971 > $as_echo "$as_me: updating cache $cache_file" >&6;}
4972 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
4973 >        cat confcache >"$cache_file"
4974 >      else
4975 >        case $cache_file in #(
4976 >        */* | ?:*)
4977 >          mv -f confcache "$cache_file"$$ &&
4978 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
4979 >        *)
4980 >          mv -f confcache "$cache_file" ;;
4981 >        esac
4982 >      fi
4983 >    fi
4984 >  else
4985 >    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4986 > $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4987 >  fi
4988 > fi
4989 > rm -f confcache
4990 >  exit 1
4991 > fi
4992 > # Extract the first word of "ps", so it can be a program name with args.
4993 > set dummy ps; ac_word=$2
4994 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995 > $as_echo_n "checking for $ac_word... " >&6; }
4996 > if ${ac_cv_path_PS+:} false; then :
4997 >  $as_echo_n "(cached) " >&6
4998 > else
4999 >  case $PS in
5000 >  [\\/]* | ?:[\\/]*)
5001 >  ac_cv_path_PS="$PS" # Let the user override the test with a path.
5002 >  ;;
5003 >  *)
5004 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 > for as_dir in $PATH
5006 > do
5007 >  IFS=$as_save_IFS
5008 >  test -z "$as_dir" && as_dir=.
5009 >    for ac_exec_ext in '' $ac_executable_extensions; do
5010 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5011 >    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5012 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 >    break 2
5014 >  fi
5015 > done
5016 >  done
5017 > IFS=$as_save_IFS
5018 >
5019 >  ;;
5020 > esac
5021 > fi
5022 > PS=$ac_cv_path_PS
5023 > if test -n "$PS"; then
5024 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
5025 > $as_echo "$PS" >&6; }
5026 > else
5027 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 > $as_echo "no" >&6; }
5029 > fi
5030 >
5031 >
5032 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX or BSD ps syntax" >&5
5033 > $as_echo_n "checking for POSIX or BSD ps syntax... " >&6; }
5034 > if ${ac_cv_prog_ps_syntax+:} false; then :
5035 >  $as_echo_n "(cached) " >&6
5036 > else
5037 >
5038 >        if $PS ax -o rss > /dev/null 2>&1; then
5039 >                ac_cv_prog_ps_ax=yes
5040 >        else
5041 >                ac_cv_prog_ps_ax=no
5042 >        fi
5043 >        if $PS -ef -o rss > /dev/null 2>&1; then
5044 >                ac_cv_prog_ps_ef=yes
5045 >        else
5046 >                ac_cv_prog_ps_ef=no
5047 >        fi
5048 >        if test "$ac_cv_prog_ps_ax" = yes; then
5049 >                ac_cv_prog_ps_syntax=BSD
5050 >        else
5051 >                if test "$ac_cv_prog_ps_ef" = yes; then
5052 >                        ac_cv_prog_ps_syntax=POSIX
5053 >                else
5054 >                        as_fn_error $? "Could not determine ps syntax" "$LINENO" 5
5055 >                fi
5056 >        fi
5057 >
5058 > fi
5059 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_ps_syntax" >&5
5060 > $as_echo "$ac_cv_prog_ps_syntax" >&6; }
5061 >
5062 > cat >>confdefs.h <<_ACEOF
5063 > #define PSCOMMAND $PS
5064 > _ACEOF
5065 >
5066 > if test "$ac_cv_prog_ps_syntax" = BSD; then
5067 >
5068 > $as_echo "#define PSTYPE_IS_BSD 1" >>confdefs.h
5069  
5070 < echo \$list
5071 < # end of configure-generated script
8383 < EOF
8384 < chmod 755 scripts/modnam
5070 > else
5071 >   if test "$ac_cv_prog_ps_syntax" = POSIX; then
5072  
5073 < 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
5073 > $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
5074  
5075 < ac_ext=${ac_fc_srcext-f}
5076 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5077 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5078 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5075 >   else
5076 >       as_fn_error $? "Unknown ps syntax type!" "$LINENO" 5
5077 >   fi
5078 > fi
5079  
8404
5080   ac_ext=c
5081   ac_cpp='$CPP $CPPFLAGS'
5082   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 8411 | Line 5086 | $as_echo_n "checking for asin in -lm... " >&6; }
5086  
5087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
5088   $as_echo_n "checking for asin in -lm... " >&6; }
5089 < if test "${ac_cv_lib_m_asin+set}" = set; then :
5089 > if ${ac_cv_lib_m_asin+:} false; then :
5090    $as_echo_n "(cached) " >&6
5091   else
5092    ac_check_lib_save_LIBS=$LIBS
# Line 8426 | Line 5101 | char asin ();
5101   extern "C"
5102   #endif
5103   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
5104   int
5105   main ()
5106   {
# Line 8453 | Line 5120 | $as_echo "$ac_cv_lib_m_asin" >&6; }
5120   fi
5121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
5122   $as_echo "$ac_cv_lib_m_asin" >&6; }
5123 < if test "x$ac_cv_lib_m_asin" = x""yes; then :
5123 > if test "x$ac_cv_lib_m_asin" = xyes; then :
5124    cat >>confdefs.h <<_ACEOF
5125   #define HAVE_LIBM 1
5126   _ACEOF
# Line 8467 | Line 5134 | $as_echo_n "checking for ANSI C header files... " >&6;
5134  
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5136   $as_echo_n "checking for ANSI C header files... " >&6; }
5137 < if test "${ac_cv_header_stdc+set}" = set; then :
5137 > if ${ac_cv_header_stdc+:} false; then :
5138    $as_echo_n "(cached) " >&6
5139   else
5140    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 8477 | Line 5144 | else
5144   #include <string.h>
5145   #include <float.h>
5146  
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
5147   int
5148   main ()
5149   {
# Line 8592 | Line 5251 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$
5251    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5252   ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5253   "
5254 < eval as_val=\$$as_ac_Header
8596 <   if test "x$as_val" = x""yes; then :
5254 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5255    cat >>confdefs.h <<_ACEOF
5256   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5257   _ACEOF
# Line 8648 | Line 5306 | $as_echo_n "checking for inflateEnd in -lz... " >&6; }
5306  
5307          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
5308   $as_echo_n "checking for inflateEnd in -lz... " >&6; }
5309 < if test "${ac_cv_lib_z_inflateEnd+set}" = set; then :
5309 > if ${ac_cv_lib_z_inflateEnd+:} false; then :
5310    $as_echo_n "(cached) " >&6
5311   else
5312    ac_check_lib_save_LIBS=$LIBS
# Line 8663 | Line 5321 | char inflateEnd ();
5321   extern "C"
5322   #endif
5323   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
5324   int
5325   main ()
5326   {
# Line 8690 | Line 5340 | $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
5340   fi
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
5342   $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
5343 < if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
5343 > if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
5344    zlib_cv_libz=yes
5345   else
5346    zlib_cv_libz=no
5347   fi
5348  
5349          ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5350 < if test "x$ac_cv_header_zlib_h" = x""yes; then :
5350 > if test "x$ac_cv_header_zlib_h" = xyes; then :
5351    zlib_cv_zlib_h=yes
5352   else
5353    zlib_cv_zlib_h=no
# Line 8734 | Line 5384 | $as_echo "failed" >&6; }
5384                  echo ""
5385                  echo "*********************************************************"
5386                  echo "* WARNING: Could not find a working zlib installation   *"
5387 <                echo "* If you need OOPSE to be able to deal with compressed  *"
5387 >                echo "* If you need OpenMD to be able to deal with compressed *"
5388                  echo "* trajectory dump files be sure to specify a valid zlib *"
5389                  echo "* installation with --with-zlib=DIR                     *"
5390                  echo "*                                                       *"
5391 <                echo "* OOPSE will still work without zlib installed.         *"
5391 >                echo "* OpenMD will still work without zlib installed.        *"
5392                  echo "*********************************************************"
5393                  echo ""
5394          fi
# Line 8788 | Line 5438 | $as_echo_n "checking for fftw_execute in -lfftw3... "
5438  
5439        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
5440   $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
5441 < if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
5441 > if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
5442    $as_echo_n "(cached) " >&6
5443   else
5444    ac_check_lib_save_LIBS=$LIBS
# Line 8803 | Line 5453 | char fftw_execute ();
5453   extern "C"
5454   #endif
5455   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
5456   int
5457   main ()
5458   {
# Line 8830 | Line 5472 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
5472   fi
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
5474   $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
5475 < if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
5475 > if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
5476    fftw_cv_libfftw3=yes
5477   else
5478    fftw_cv_libfftw3=no
5479   fi
5480  
5481        ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
5482 < if test "x$ac_cv_header_fftw3_h" = x""yes; then :
5482 > if test "x$ac_cv_header_fftw3_h" = xyes; then :
5483    fftw_cv_fftw3_h=yes
5484   else
5485    fftw_cv_fftw3_h=no
# Line 8847 | Line 5489 | $as_echo_n "checking for fftwnd_one in -lfftw... " >&6
5489        if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then
5490          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -lfftw" >&5
5491   $as_echo_n "checking for fftwnd_one in -lfftw... " >&6; }
5492 < if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then :
5492 > if ${ac_cv_lib_fftw_fftwnd_one+:} false; then :
5493    $as_echo_n "(cached) " >&6
5494   else
5495    ac_check_lib_save_LIBS=$LIBS
# Line 8862 | Line 5504 | char fftwnd_one ();
5504   extern "C"
5505   #endif
5506   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
5507   int
5508   main ()
5509   {
# Line 8889 | Line 5523 | $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
5523   fi
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_fftwnd_one" >&5
5525   $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
5526 < if test "x$ac_cv_lib_fftw_fftwnd_one" = x""yes; then :
5526 > if test "x$ac_cv_lib_fftw_fftwnd_one" = xyes; then :
5527    fftw_cv_libfftw=yes
5528   else
5529    fftw_cv_libfftw=no
5530   fi
5531  
5532          ac_fn_c_check_header_mongrel "$LINENO" "fftw.h" "ac_cv_header_fftw_h" "$ac_includes_default"
5533 < if test "x$ac_cv_header_fftw_h" = x""yes; then :
5533 > if test "x$ac_cv_header_fftw_h" = xyes; then :
5534    fftw_cv_fftw_h=yes
5535   else
5536    fftw_cv_fftw_h=no
# Line 8906 | Line 5540 | $as_echo_n "checking for fftwnd_one in -ldfftw... " >&
5540          if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
5541            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -ldfftw" >&5
5542   $as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; }
5543 < if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then :
5543 > if ${ac_cv_lib_dfftw_fftwnd_one+:} false; then :
5544    $as_echo_n "(cached) " >&6
5545   else
5546    ac_check_lib_save_LIBS=$LIBS
# Line 8921 | Line 5555 | char fftwnd_one ();
5555   extern "C"
5556   #endif
5557   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
5558   int
5559   main ()
5560   {
# Line 8948 | Line 5574 | $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
5574   fi
5575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
5576   $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
5577 < if test "x$ac_cv_lib_dfftw_fftwnd_one" = x""yes; then :
5577 > if test "x$ac_cv_lib_dfftw_fftwnd_one" = xyes; then :
5578    fftw_cv_libdfftw=yes
5579   else
5580    fftw_cv_libdfftw=no
5581   fi
5582  
5583            ac_fn_c_check_header_mongrel "$LINENO" "dfftw.h" "ac_cv_header_dfftw_h" "$ac_includes_default"
5584 < if test "x$ac_cv_header_dfftw_h" = x""yes; then :
5584 > if test "x$ac_cv_header_dfftw_h" = xyes; then :
5585    fftw_cv_dfftw_h=yes
5586   else
5587    fftw_cv_dfftw_h=no
# Line 9010 | Line 5636 | $as_echo "failed" >&6; }
5636              echo "* compute undulation spectra, be sure to specify a      *"
5637              echo "* valid fftw installation with --with-fftw=DIR          *"
5638              echo "*                                                       *"
5639 <            echo "* OOPSE will still work without fftw installed.         *"
5639 >            echo "* OpenMD will still work without fftw installed.        *"
5640              echo "*********************************************************"
5641              echo ""
5642            fi
# Line 9072 | Line 5698 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
5698          CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
5699          CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include"
5700          ac_fn_c_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default"
5701 < if test "x$ac_cv_header_qhull_qhull_h" = x""yes; then :
5701 > if test "x$ac_cv_header_qhull_qhull_h" = xyes; then :
5702    qhull_cv_qhull_h=yes
5703   else
5704    qhull_cv_qhull_h=no
# Line 9081 | Line 5707 | $as_echo_n "checking for qh_qhull in -lqhull... " >&6;
5707  
5708          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull" >&5
5709   $as_echo_n "checking for qh_qhull in -lqhull... " >&6; }
5710 < if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then :
5710 > if ${ac_cv_lib_qhull_qh_qhull+:} false; then :
5711    $as_echo_n "(cached) " >&6
5712   else
5713    ac_check_lib_save_LIBS=$LIBS
# Line 9096 | Line 5722 | char qh_qhull ();
5722   extern "C"
5723   #endif
5724   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
5725   int
5726   main ()
5727   {
# Line 9123 | Line 5741 | $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
5741   fi
5742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull_qh_qhull" >&5
5743   $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
5744 < if test "x$ac_cv_lib_qhull_qh_qhull" = x""yes; then :
5744 > if test "x$ac_cv_lib_qhull_qh_qhull" = xyes; then :
5745    qhull_cv_libqhull=yes
5746   else
5747    qhull_cv_libqhull=no
# Line 9157 | Line 5775 | $as_echo "$as_me: WARNING: Could not find a working qh
5775   $as_echo "$as_me: WARNING: " >&2;}
5776             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a working qhull installation" >&5
5777   $as_echo "$as_me: WARNING: Could not find a working qhull installation" >&2;}
5778 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OOPSE to be able to deal with convex    " >&5
5779 < $as_echo "$as_me: WARNING: If you need OOPSE to be able to deal with convex    " >&2;}
5778 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OpenMD to be able to deal with convex    " >&5
5779 > $as_echo "$as_me: WARNING: If you need OpenMD to be able to deal with convex    " >&2;}
5780             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hulls be sure to specify a valid qhull installation " >&5
5781   $as_echo "$as_me: WARNING: hulls be sure to specify a valid qhull installation " >&2;}
5782             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with --with-qhull=DIR                               " >&5
5783   $as_echo "$as_me: WARNING: with --with-qhull=DIR                               " >&2;}
5784             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
5785   $as_echo "$as_me: WARNING: " >&2;}
5786 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OOPSE will still work without qhull installed.      " >&5
5787 < $as_echo "$as_me: WARNING: OOPSE will still work without qhull installed.      " >&2;}
5786 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMD will still work without qhull installed.      " >&5
5787 > $as_echo "$as_me: WARNING: OpenMD will still work without qhull installed.      " >&2;}
5788             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
5789   $as_echo "$as_me: WARNING: " >&2;}
5790          fi
# Line 9185 | Line 5803 | if test -z "$CXXCPP"; then
5803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5804   $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5805   if test -z "$CXXCPP"; then
5806 <  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5806 >  if ${ac_cv_prog_CXXCPP+:} false; then :
5807    $as_echo_n "(cached) " >&6
5808   else
5809        # Double quotes because CXXCPP needs to be expanded
# Line 9215 | Line 5833 | fi
5833    # Broken: fails on valid input.
5834   continue
5835   fi
5836 < rm -f conftest.err conftest.$ac_ext
5836 > rm -f conftest.err conftest.i conftest.$ac_ext
5837  
5838    # OK, works on sane cases.  Now check whether nonexistent headers
5839    # can be detected and how.
# Line 9231 | Line 5849 | fi
5849   ac_preproc_ok=:
5850   break
5851   fi
5852 < rm -f conftest.err conftest.$ac_ext
5852 > rm -f conftest.err conftest.i conftest.$ac_ext
5853  
5854   done
5855   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5856 < rm -f conftest.err conftest.$ac_ext
5856 > rm -f conftest.i conftest.err conftest.$ac_ext
5857   if $ac_preproc_ok; then :
5858    break
5859   fi
# Line 9274 | Line 5892 | fi
5892    # Broken: fails on valid input.
5893   continue
5894   fi
5895 < rm -f conftest.err conftest.$ac_ext
5895 > rm -f conftest.err conftest.i conftest.$ac_ext
5896  
5897    # OK, works on sane cases.  Now check whether nonexistent headers
5898    # can be detected and how.
# Line 9290 | Line 5908 | fi
5908   ac_preproc_ok=:
5909   break
5910   fi
5911 < rm -f conftest.err conftest.$ac_ext
5911 > rm -f conftest.err conftest.i conftest.$ac_ext
5912  
5913   done
5914   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5915 < rm -f conftest.err conftest.$ac_ext
5915 > rm -f conftest.i conftest.err conftest.$ac_ext
5916   if $ac_preproc_ok; then :
5917  
5918   else
5919    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5920   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5921 < as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5922 < See \`config.log' for more details." "$LINENO" 5; }
5921 > as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5922 > See \`config.log' for more details" "$LINENO" 5; }
5923   fi
5924  
5925   ac_ext=cpp
# Line 9355 | Line 5973 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5973          LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel"
5974          CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0"
5975          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/babelconfig.h" "ac_cv_header_openbabel_babelconfig_h" "$ac_includes_default"
5976 < if test "x$ac_cv_header_openbabel_babelconfig_h" = x""yes; then :
5976 > if test "x$ac_cv_header_openbabel_babelconfig_h" = xyes; then :
5977    openbabel_cv_openbabel_h=yes
5978   else
5979    openbabel_cv_openbabel_h=no
# Line 9363 | Line 5981 | fi
5981  
5982  
5983          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/obconversion.h" "ac_cv_header_openbabel_obconversion_h" "$ac_includes_default"
5984 < if test "x$ac_cv_header_openbabel_obconversion_h" = x""yes; then :
5984 > if test "x$ac_cv_header_openbabel_obconversion_h" = xyes; then :
5985    openbabel_cv_obconversion_h=yes
5986   else
5987    openbabel_cv_obconversion_h=no
# Line 9379 | Line 5997 | using namespace OpenBabel;
5997   using namespace std;
5998   using namespace OpenBabel;
5999  
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
6000   int
6001   main ()
6002   {
# Line 9440 | Line 6050 | $as_echo "failed" >&6; }
6050                  echo ""
6051                  echo "*********************************************************"
6052                  echo "* WARNING: Could not find a working openbabel-2.x       *"
6053 <                echo "* installation If you need OOPSE to be able to convert  *"
6053 >                echo "* installation If you need OpenMD to be able to convert *"
6054                  echo "* xyz or pdb files you need to specify a valid          *"
6055                  echo "* openbabel-2.x installation with --with-openbabel=DIR  *"
6056                  echo "*                                                       *"
6057 <                echo "* OOPSE will still work without openbabel installed.    *"
6057 >                echo "* OpenMD will still work without openbabel installed.   *"
6058                  echo "*********************************************************"
6059                  echo ""
6060          fi
# Line 9459 | Line 6069 | $as_echo_n "checking for ANSI C header files... " >&6;
6069   # Checks for header files.
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6071   $as_echo_n "checking for ANSI C header files... " >&6; }
6072 < if test "${ac_cv_header_stdc+set}" = set; then :
6072 > if ${ac_cv_header_stdc+:} false; then :
6073    $as_echo_n "(cached) " >&6
6074   else
6075    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9469 | Line 6079 | else
6079   #include <string.h>
6080   #include <float.h>
6081  
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
6082   int
6083   main ()
6084   {
# Line 9581 | Line 6183 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$
6183   do :
6184    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6185   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6186 < eval as_val=\$$as_ac_Header
9585 <   if test "x$as_val" = x""yes; then :
6186 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6187    cat >>confdefs.h <<_ACEOF
6188   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6189   _ACEOF
# Line 9595 | Line 6196 | $as_echo_n "checking for stdbool.h that conforms to C9
6196   # Checks for typedefs, structures, and compiler characteristics.
6197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
6198   $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
6199 < if test "${ac_cv_header_stdbool_h+set}" = set; then :
6199 > if ${ac_cv_header_stdbool_h+:} false; then :
6200    $as_echo_n "(cached) " >&6
6201   else
6202    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9627 | Line 6228 | else
6228          char b[false == 0 ? 1 : -1];
6229          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6230          char d[(bool) 0.5 == true ? 1 : -1];
6231 <        bool e = &s;
6231 >        /* See body of main program for 'e'.  */
6232          char f[(_Bool) 0.0 == false ? 1 : -1];
6233          char g[true];
6234          char h[sizeof (_Bool)];
# Line 9638 | Line 6239 | else
6239          _Bool n[m];
6240          char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6241          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
6242          /* Catch a bug in an HP-UX C compiler.  See
6243             http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6244             http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
# Line 9664 | Line 6246 | else
6246          _Bool q = true;
6247          _Bool *pq = &q;
6248  
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
6249   int
6250   main ()
6251   {
6252  
6253 +        bool e = &s;
6254          *pq |= q;
6255          *pq |= ! q;
6256          /* Refer to every declared value, to avoid compiler optimizations.  */
# Line 9696 | Line 6271 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool
6271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6272   $as_echo "$ac_cv_header_stdbool_h" >&6; }
6273   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6274 < if test "x$ac_cv_type__Bool" = x""yes; then :
6274 > if test "x$ac_cv_type__Bool" = xyes; then :
6275  
6276   cat >>confdefs.h <<_ACEOF
6277   #define HAVE__BOOL 1
# Line 9713 | Line 6288 | $as_echo_n "checking for an ANSI C-conforming const...
6288  
6289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6290   $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6291 < if test "${ac_cv_c_const+set}" = set; then :
6291 > if ${ac_cv_c_const+:} false; then :
6292    $as_echo_n "(cached) " >&6
6293   else
6294    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295   /* end confdefs.h.  */
6296  
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
6297   int
6298   main ()
6299   {
# Line 9801 | Line 6368 | $as_echo_n "checking for inline... " >&6; }
6368  
6369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6370   $as_echo_n "checking for inline... " >&6; }
6371 < if test "${ac_cv_c_inline+set}" = set; then :
6371 > if ${ac_cv_c_inline+:} false; then :
6372    $as_echo_n "(cached) " >&6
6373   else
6374    ac_cv_c_inline=no
# Line 9842 | Line 6409 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size
6409   esac
6410  
6411   ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6412 < if test "x$ac_cv_type_size_t" = x""yes; then :
6412 > if test "x$ac_cv_type_size_t" = xyes; then :
6413  
6414   else
6415  
# Line 9854 | Line 6421 | $as_echo_n "checking whether time.h and sys/time.h may
6421  
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6423   $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6424 < if test "${ac_cv_header_time+set}" = set; then :
6424 > if ${ac_cv_header_time+:} false; then :
6425    $as_echo_n "(cached) " >&6
6426   else
6427    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9863 | Line 6430 | else
6430   #include <sys/time.h>
6431   #include <time.h>
6432  
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
6433   int
6434   main ()
6435   {
# Line 9900 | Line 6459 | do :
6459   for ac_header in stdlib.h
6460   do :
6461    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6462 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6462 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
6463    cat >>confdefs.h <<_ACEOF
6464   #define HAVE_STDLIB_H 1
6465   _ACEOF
# Line 9911 | Line 6470 | $as_echo_n "checking for GNU libc compatible malloc...
6470  
6471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6472   $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6473 < if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6473 > if ${ac_cv_func_malloc_0_nonnull+:} false; then :
6474    $as_echo_n "(cached) " >&6
6475   else
6476    if test "$cross_compiling" = yes; then :
# Line 9925 | Line 6484 | char *malloc ();
6484   char *malloc ();
6485   #endif
6486  
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
6487   int
6488   main ()
6489   {
# Line 9975 | Line 6526 | do :
6526   for ac_header in stdlib.h
6527   do :
6528    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6529 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6529 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
6530    cat >>confdefs.h <<_ACEOF
6531   #define HAVE_STDLIB_H 1
6532   _ACEOF
# Line 9986 | Line 6537 | $as_echo_n "checking for GNU libc compatible realloc..
6537  
6538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6539   $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6540 < if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6540 > if ${ac_cv_func_realloc_0_nonnull+:} false; then :
6541    $as_echo_n "(cached) " >&6
6542   else
6543    if test "$cross_compiling" = yes; then :
# Line 10000 | Line 6551 | char *realloc ();
6551   char *realloc ();
6552   #endif
6553  
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
6554   int
6555   main ()
6556   {
# Line 10051 | Line 6594 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$
6594   do :
6595    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6596   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6597 < eval as_val=\$$as_ac_Header
10055 <   if test "x$as_val" = x""yes; then :
6597 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6598    cat >>confdefs.h <<_ACEOF
6599   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6600   _ACEOF
# Line 10063 | Line 6605 | $as_echo_n "checking types of arguments for select...
6605  
6606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
6607   $as_echo_n "checking types of arguments for select... " >&6; }
6608 < if test "${ac_cv_func_select_args+set}" = set; then :
6608 > if ${ac_cv_func_select_args+:} false; then :
6609    $as_echo_n "(cached) " >&6
6610   else
6611    for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
# Line 10079 | Line 6621 | $ac_includes_default
6621   # include <sys/socket.h>
6622   #endif
6623  
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
6624   int
6625   main ()
6626   {
# Line 10105 | Line 6639 | done
6639   done
6640   done
6641   # Provide a safe default value.
6642 < : ${ac_cv_func_select_args='int,int *,struct timeval *'}
6642 > : "${ac_cv_func_select_args=int,int *,struct timeval *}"
6643  
6644   fi
6645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
# Line 10133 | Line 6667 | $as_echo_n "checking for working strtod... " >&6; }
6667  
6668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6669   $as_echo_n "checking for working strtod... " >&6; }
6670 < if test "${ac_cv_func_strtod+set}" = set; then :
6670 > if ${ac_cv_func_strtod+:} false; then :
6671    $as_echo_n "(cached) " >&6
6672   else
6673    if test "$cross_compiling" = yes; then :
# Line 10192 | Line 6726 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6726   esac
6727  
6728   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6729 < if test "x$ac_cv_func_pow" = x""yes; then :
6729 > if test "x$ac_cv_func_pow" = xyes; then :
6730  
6731   fi
6732  
6733   if test $ac_cv_func_pow = no; then
6734    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6735   $as_echo_n "checking for pow in -lm... " >&6; }
6736 < if test "${ac_cv_lib_m_pow+set}" = set; then :
6736 > if ${ac_cv_lib_m_pow+:} false; then :
6737    $as_echo_n "(cached) " >&6
6738   else
6739    ac_check_lib_save_LIBS=$LIBS
# Line 10214 | Line 6748 | char pow ();
6748   extern "C"
6749   #endif
6750   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
6751   int
6752   main ()
6753   {
# Line 10241 | Line 6767 | $as_echo "$ac_cv_lib_m_pow" >&6; }
6767   fi
6768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6769   $as_echo "$ac_cv_lib_m_pow" >&6; }
6770 < if test "x$ac_cv_lib_m_pow" = x""yes; then :
6770 > if test "x$ac_cv_lib_m_pow" = xyes; then :
6771    POW_LIB=-lm
6772   else
6773    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
# Line 10256 | Line 6782 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6782   do :
6783    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6784   ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6785 < eval as_val=\$$as_ac_var
10260 <   if test "x$as_val" = x""yes; then :
6785 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6786    cat >>confdefs.h <<_ACEOF
6787   #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6788   _ACEOF
# Line 10273 | Line 6798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799   /* end confdefs.h.  */
6800   #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
6801   int
6802   main ()
6803   {
# Line 10306 | Line 6823 | case $debug in
6823    1)
6824       ;;
6825    *)
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
6826  
6827  
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        :
6828  
10402 else
10403        :
6829  
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=""
6830  
10414 fi
6831  
10416
10417 fi
10418
10419
10420
10421
10422
10423
10424
6832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU cc" >&5
6833   $as_echo_n "checking whether we are *really* using GNU cc... " >&6; }
6834 < if test "${ac_cv_prog_really_gcc+set}" = set; then :
6834 > if ${ac_cv_prog_really_gcc+:} false; then :
6835    $as_echo_n "(cached) " >&6
6836   else
6837  
# Line 10529 | Line 6936 | $as_echo_n "checking whether ${CC} accepts ${CFLAGS}..
6936  
6937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${CFLAGS}" >&5
6938   $as_echo_n "checking whether ${CC} accepts ${CFLAGS}... " >&6; }
6939 < if test "${ac_cv_ac_cv_guessed_cflags+set}" = set; then :
6939 > if ${ac_cv_ac_cv_guessed_cflags+:} false; then :
6940    $as_echo_n "(cached) " >&6
6941   else
6942    echo 'void f(){}' > conftest.c
# Line 10571 | Line 6978 | $as_echo_n "checking whether we are *really* using GNU
6978  
6979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU c++" >&5
6980   $as_echo_n "checking whether we are *really* using GNU c++... " >&6; }
6981 < if test "${ac_cv_prog_really_gxx+set}" = set; then :
6981 > if ${ac_cv_prog_really_gxx+:} false; then :
6982    $as_echo_n "(cached) " >&6
6983   else
6984  
# Line 10667 | Line 7074 | $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS
7074  
7075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${CXXFLAGS}" >&5
7076   $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS}... " >&6; }
7077 < if test "${ac_cv_ac_cv_guessed_cxxflags+set}" = set; then :
7077 > if ${ac_cv_ac_cv_guessed_cxxflags+:} false; then :
7078    $as_echo_n "(cached) " >&6
7079   else
7080    echo 'void f(){}' > conftest.cpp
# Line 10703 | Line 7110 | esac
7110  
7111       ;;
7112   esac
10706
10707
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`
7113  
10731 cat > $tname << _ACEOF
10732 include $CGAL_MAKEFILE
7114  
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
7115   # Check whether --enable-doxygen was given.
7116   if test "${enable_doxygen+set}" = set; then :
7117    enableval=$enable_doxygen;
# Line 11110 | Line 7143 | $as_echo_n "checking for $ac_word... " >&6; }
7143   set dummy doxygen; ac_word=$2
7144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7145   $as_echo_n "checking for $ac_word... " >&6; }
7146 < if test "${ac_cv_path_DOXYGEN+set}" = set; then :
7146 > if ${ac_cv_path_DOXYGEN+:} false; then :
7147    $as_echo_n "(cached) " >&6
7148   else
7149    case $DOXYGEN in
# Line 11148 | Line 7181 | fi
7181  
7182          if test "x$DOXYGEN" = x; then
7183                  if test "x$enable_doxygen" = xyes; then
7184 <                        as_fn_error "could not find doxygen" "$LINENO" 5
7184 >                        as_fn_error $? "could not find doxygen" "$LINENO" 5
7185                  fi
7186                  enable_doc=no
7187          else
# Line 11157 | Line 7190 | $as_echo_n "checking for $ac_word... " >&6; }
7190   set dummy dot; ac_word=$2
7191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192   $as_echo_n "checking for $ac_word... " >&6; }
7193 < if test "${ac_cv_path_DOT+set}" = set; then :
7193 > if ${ac_cv_path_DOT+:} false; then :
7194    $as_echo_n "(cached) " >&6
7195   else
7196    case $DOT in
# Line 11205 | Line 7238 | if test x$DOT = x; then
7238  
7239   if test x$DOT = x; then
7240          if test "x$enable_dot" = xyes; then
7241 <                as_fn_error "could not find dot" "$LINENO" 5
7241 >                as_fn_error $? "could not find dot" "$LINENO" 5
7242          fi
7243          enable_dot=no
7244   else
# Line 11227 | Line 7260 | fi
7260  
7261  
7262  
11230
11231
11232
7263   ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/integrators/Makefile src/applications/atom2md/Makefile scripts/filepp"
7264  
7265  
# Line 11297 | Line 7327 | if diff "$cache_file" confcache >/dev/null 2>&1; then
7327       :end' >>confcache
7328   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7329    if test -w "$cache_file"; then
7330 <    test "x$cache_file" != "x/dev/null" &&
7330 >    if test "x$cache_file" != "x/dev/null"; then
7331        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7332   $as_echo "$as_me: updating cache $cache_file" >&6;}
7333 <    cat confcache >$cache_file
7333 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
7334 >        cat confcache >"$cache_file"
7335 >      else
7336 >        case $cache_file in #(
7337 >        */* | ?:*)
7338 >          mv -f confcache "$cache_file"$$ &&
7339 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
7340 >        *)
7341 >          mv -f confcache "$cache_file" ;;
7342 >        esac
7343 >      fi
7344 >    fi
7345    else
7346      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7347   $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
# Line 11316 | Line 7357 | ac_ltlibobjs=
7357  
7358   ac_libobjs=
7359   ac_ltlibobjs=
7360 + U=
7361   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7362    # 1. Remove the extension, and $U if already installed.
7363    ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
# Line 11331 | Line 7373 | LTLIBOBJS=$ac_ltlibobjs
7373  
7374  
7375  
7376 < : ${CONFIG_STATUS=./config.status}
7376 > : "${CONFIG_STATUS=./config.status}"
7377   ac_write_fail=0
7378   ac_clean_files_save=$ac_clean_files
7379   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
# Line 11432 | Line 7474 | IFS=" ""       $as_nl"
7474   IFS=" ""        $as_nl"
7475  
7476   # Find who we are.  Look in the path if we contain no directory separator.
7477 + as_myself=
7478   case $0 in #((
7479    *[\\/]* ) as_myself=$0 ;;
7480    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 11477 | Line 7520 | export LANGUAGE
7520   (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7521  
7522  
7523 < # as_fn_error ERROR [LINENO LOG_FD]
7524 < # ---------------------------------
7523 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
7524 > # ----------------------------------------
7525   # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7526   # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7527 < # script with status $?, using 1 if that was 0.
7527 > # script with STATUS, using 1 if that was 0.
7528   as_fn_error ()
7529   {
7530 <  as_status=$?; test $as_status -eq 0 && as_status=1
7531 <  if test "$3"; then
7532 <    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7533 <    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7530 >  as_status=$1; test $as_status -eq 0 && as_status=1
7531 >  if test "$4"; then
7532 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7533 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7534    fi
7535 <  $as_echo "$as_me: error: $1" >&2
7535 >  $as_echo "$as_me: error: $2" >&2
7536    as_fn_exit $as_status
7537   } # as_fn_error
7538  
# Line 11685 | Line 7728 | $as_echo X"$as_dir" |
7728        test -d "$as_dir" && break
7729      done
7730      test -z "$as_dirs" || eval "mkdir $as_dirs"
7731 <  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7731 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7732  
7733  
7734   } # as_fn_mkdir_p
# Line 11738 | Line 7781 | ac_log="
7781   # report actual input values of CONFIG_FILES etc. instead of their
7782   # values after options handling.
7783   ac_log="
7784 < This file was extended by OOPSE $as_me 4.0, which was
7785 < generated by GNU Autoconf 2.64.  Invocation command line was
7784 > This file was extended by OpenMD $as_me 1.0, which was
7785 > generated by GNU Autoconf 2.68.  Invocation command line was
7786  
7787    CONFIG_FILES    = $CONFIG_FILES
7788    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 11778 | Line 7821 | Usage: $0 [OPTION]... [TAG]...
7821  
7822    -h, --help       print this help, then exit
7823    -V, --version    print version number and configuration settings, then exit
7824 +      --config     print configuration, then exit
7825    -q, --quiet, --silent
7826                     do not print progress messages
7827    -d, --debug      don't remove temporary files
# Line 11797 | Line 7841 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7841  
7842   _ACEOF
7843   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7844 + ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7845   ac_cs_version="\\
7846 < OOPSE config.status 4.0
7847 < configured by $0, generated by GNU Autoconf 2.64,
7848 <  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7846 > OpenMD config.status 1.0
7847 > configured by $0, generated by GNU Autoconf 2.68,
7848 >  with options \\"\$ac_cs_config\\"
7849  
7850 < Copyright (C) 2009 Free Software Foundation, Inc.
7850 > Copyright (C) 2010 Free Software Foundation, Inc.
7851   This config.status script is free software; the Free Software Foundation
7852   gives unlimited permission to copy, distribute and modify it."
7853  
# Line 11818 | Line 7863 | do
7863   while test $# != 0
7864   do
7865    case $1 in
7866 <  --*=*)
7866 >  --*=?*)
7867      ac_option=`expr "X$1" : 'X\([^=]*\)='`
7868      ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7869      ac_shift=:
7870      ;;
7871 +  --*=)
7872 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7873 +    ac_optarg=
7874 +    ac_shift=:
7875 +    ;;
7876    *)
7877      ac_option=$1
7878      ac_optarg=$2
# Line 11836 | Line 7886 | do
7886      ac_cs_recheck=: ;;
7887    --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7888      $as_echo "$ac_cs_version"; exit ;;
7889 +  --config | --confi | --conf | --con | --co | --c )
7890 +    $as_echo "$ac_cs_config"; exit ;;
7891    --debug | --debu | --deb | --de | --d | -d )
7892      debug=: ;;
7893    --file | --fil | --fi | --f )
7894      $ac_shift
7895      case $ac_optarg in
7896      *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7897 +    '') as_fn_error $? "missing file argument" ;;
7898      esac
7899      as_fn_append CONFIG_FILES " '$ac_optarg'"
7900      ac_need_defaults=false;;
# Line 11854 | Line 7907 | do
7907      ac_need_defaults=false;;
7908    --he | --h)
7909      # Conflict between --help and --header
7910 <    as_fn_error "ambiguous option: \`$1'
7910 >    as_fn_error $? "ambiguous option: \`$1'
7911   Try \`$0 --help' for more information.";;
7912    --help | --hel | -h )
7913      $as_echo "$ac_cs_usage"; exit ;;
# Line 11863 | Line 7916 | Try \`$0 --help' for more information.";;
7916      ac_cs_silent=: ;;
7917  
7918    # This is an error.
7919 <  -*) as_fn_error "unrecognized option: \`$1'
7919 >  -*) as_fn_error $? "unrecognized option: \`$1'
7920   Try \`$0 --help' for more information." ;;
7921  
7922    *) as_fn_append ac_config_targets " $1"
# Line 11920 | Line 7973 | do
7973      "src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;;
7974      "scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
7975  
7976 <  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7976 >  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7977    esac
7978   done
7979  
# Line 11942 | Line 7995 | $debug ||
7995   # after its creation but before its name has been assigned to `$tmp'.
7996   $debug ||
7997   {
7998 <  tmp=
7998 >  tmp= ac_tmp=
7999    trap 'exit_status=$?
8000 <  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8000 >  : "${ac_tmp:=$tmp}"
8001 >  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8002   ' 0
8003    trap 'as_fn_exit 1' 1 2 13 15
8004   }
# Line 11952 | Line 8006 | $debug ||
8006  
8007   {
8008    tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8009 <  test -n "$tmp" && test -d "$tmp"
8009 >  test -d "$tmp"
8010   }  ||
8011   {
8012    tmp=./conf$$-$RANDOM
8013    (umask 077 && mkdir "$tmp")
8014 < } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8014 > } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8015 > ac_tmp=$tmp
8016  
8017   # Set up the scripts for CONFIG_FILES section.
8018   # No need to generate them if there are no CONFIG_FILES.
# Line 11974 | Line 8029 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8029   fi
8030   ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8031   if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8032 <  ac_cs_awk_cr='\r'
8032 >  ac_cs_awk_cr='\\r'
8033   else
8034    ac_cs_awk_cr=$ac_cr
8035   fi
8036  
8037 < echo 'BEGIN {' >"$tmp/subs1.awk" &&
8037 > echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8038   _ACEOF
8039  
8040  
# Line 11988 | Line 8043 | _ACEOF
8043    echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8044    echo "_ACEOF"
8045   } >conf$$subs.sh ||
8046 <  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8047 < ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8046 >  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8047 > ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8048   ac_delim='%!_!# '
8049   for ac_last_try in false false false false false :; do
8050    . ./conf$$subs.sh ||
8051 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8051 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8052  
8053    ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8054    if test $ac_delim_n = $ac_delim_num; then
8055      break
8056    elif $ac_last_try; then
8057 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8057 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8058    else
8059      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8060    fi
# Line 12007 | Line 8062 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8062   rm -f conf$$subs.sh
8063  
8064   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8065 < cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8065 > cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8066   _ACEOF
8067   sed -n '
8068   h
# Line 12021 | Line 8076 | h
8076   t delim
8077   :nl
8078   h
8079 < s/\(.\{148\}\).*/\1/
8079 > s/\(.\{148\}\)..*/\1/
8080   t more1
8081   s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8082   p
# Line 12035 | Line 8090 | h
8090   t nl
8091   :delim
8092   h
8093 < s/\(.\{148\}\).*/\1/
8093 > s/\(.\{148\}\)..*/\1/
8094   t more2
8095   s/["\\]/\\&/g; s/^/"/; s/$/"/
8096   p
# Line 12055 | Line 8110 | _ACAWK
8110   rm -f conf$$subs.awk
8111   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8112   _ACAWK
8113 < cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8113 > cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8114    for (key in S) S_is_set[key] = 1
8115    FS = ""
8116  
# Line 12087 | Line 8142 | else
8142    sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8143   else
8144    cat
8145 < fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8146 <  || as_fn_error "could not setup config files machinery" "$LINENO" 5
8145 > fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8146 >  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8147   _ACEOF
8148  
8149 < # VPATH may cause trouble with some makes, so we remove $(srcdir),
8150 < # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8149 > # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8150 > # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8151   # trailing colons and then remove the whole line if VPATH becomes empty
8152   # (actually we leave an empty line to preserve line numbers).
8153   if test "x$srcdir" = x.; then
8154 <  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8155 < s/:*\$(srcdir):*/:/
8156 < s/:*\${srcdir}:*/:/
8157 < s/:*@srcdir@:*/:/
8158 < s/^\([^=]*=[     ]*\):*/\1/
8154 >  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
8155 > h
8156 > s///
8157 > s/^/:/
8158 > s/[      ]*$/:/
8159 > s/:\$(srcdir):/:/g
8160 > s/:\${srcdir}:/:/g
8161 > s/:@srcdir@:/:/g
8162 > s/^:*//
8163   s/:*$//
8164 + x
8165 + s/\(=[   ]*\).*/\1/
8166 + G
8167 + s/\n//
8168   s/^[^=]*=[       ]*$//
8169   }'
8170   fi
# Line 12113 | Line 8176 | if test -n "$CONFIG_HEADERS"; then
8176   # No need to generate them if there are no CONFIG_HEADERS.
8177   # This happens for instance with `./config.status Makefile'.
8178   if test -n "$CONFIG_HEADERS"; then
8179 < cat >"$tmp/defines.awk" <<\_ACAWK ||
8179 > cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8180   BEGIN {
8181   _ACEOF
8182  
# Line 12125 | Line 8188 | for ac_last_try in false false :; do
8188   # handling of long lines.
8189   ac_delim='%!_!# '
8190   for ac_last_try in false false :; do
8191 <  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8192 <  if test -z "$ac_t"; then
8191 >  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8192 >  if test -z "$ac_tt"; then
8193      break
8194    elif $ac_last_try; then
8195 <    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8195 >    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8196    else
8197      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8198    fi
# Line 12214 | Line 8277 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8277   _ACAWK
8278   _ACEOF
8279   cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8280 <  as_fn_error "could not setup config headers machinery" "$LINENO" 5
8280 >  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8281   fi # test -n "$CONFIG_HEADERS"
8282  
8283  
# Line 12227 | Line 8290 | do
8290    esac
8291    case $ac_mode$ac_tag in
8292    :[FHL]*:*);;
8293 <  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8293 >  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8294    :[FH]-) ac_tag=-:-;;
8295    :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8296    esac
# Line 12246 | Line 8309 | do
8309      for ac_f
8310      do
8311        case $ac_f in
8312 <      -) ac_f="$tmp/stdin";;
8312 >      -) ac_f="$ac_tmp/stdin";;
8313        *) # Look for the file first in the build tree, then in the source tree
8314           # (if the path is not absolute).  The absolute path cannot be DOS-style,
8315           # because $ac_f cannot contain `:'.
# Line 12255 | Line 8318 | do
8318             [\\/$]*) false;;
8319             *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8320             esac ||
8321 <           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8321 >           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8322        esac
8323        case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8324        as_fn_append ac_file_inputs " '$ac_f'"
# Line 12281 | Line 8344 | $as_echo "$as_me: creating $ac_file" >&6;}
8344      esac
8345  
8346      case $ac_tag in
8347 <    *:-:* | *:-) cat >"$tmp/stdin" \
8348 <      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8347 >    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8348 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8349      esac
8350      ;;
8351    esac
# Line 12412 | Line 8475 | $ac_datarootdir_hack
8475   s&@INSTALL@&$ac_INSTALL&;t t
8476   $ac_datarootdir_hack
8477   "
8478 < eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8479 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
8478 > eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8479 >  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8480  
8481   test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8482 <  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8483 <  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8482 >  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8483 >  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
8484 >      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8485    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8486 < which seems to be undefined.  Please make sure it is defined." >&5
8486 > which seems to be undefined.  Please make sure it is defined" >&5
8487   $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8488 < which seems to be undefined.  Please make sure it is defined." >&2;}
8488 > which seems to be undefined.  Please make sure it is defined" >&2;}
8489  
8490 <  rm -f "$tmp/stdin"
8490 >  rm -f "$ac_tmp/stdin"
8491    case $ac_file in
8492 <  -) cat "$tmp/out" && rm -f "$tmp/out";;
8493 <  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8492 >  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8493 >  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8494    esac \
8495 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
8495 >  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8496   ;;
8497    :H)
8498    #
# Line 12437 | Line 8501 | which seems to be undefined.  Please make sure it is d
8501    if test x"$ac_file" != x-; then
8502      {
8503        $as_echo "/* $configure_input  */" \
8504 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8505 <    } >"$tmp/config.h" \
8506 <      || as_fn_error "could not create $ac_file" "$LINENO" 5
8507 <    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8504 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8505 >    } >"$ac_tmp/config.h" \
8506 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8507 >    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8508        { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8509   $as_echo "$as_me: $ac_file is unchanged" >&6;}
8510      else
8511        rm -f "$ac_file"
8512 <      mv "$tmp/config.h" "$ac_file" \
8513 <        || as_fn_error "could not create $ac_file" "$LINENO" 5
8512 >      mv "$ac_tmp/config.h" "$ac_file" \
8513 >        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8514      fi
8515    else
8516      $as_echo "/* $configure_input  */" \
8517 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8518 <      || as_fn_error "could not create -" "$LINENO" 5
8517 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8518 >      || as_fn_error $? "could not create -" "$LINENO" 5
8519    fi
8520   ;;
8521  
# Line 12476 | Line 8540 | test $ac_write_fail = 0 ||
8540   ac_clean_files=$ac_clean_files_save
8541  
8542   test $ac_write_fail = 0 ||
8543 <  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8543 >  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8544  
8545  
8546   # configure is writing to config.log, and then calls config.status.
# Line 12497 | Line 8561 | if test "$no_create" != yes; then
8561    exec 5>>config.log
8562    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8563    # would make configure fail if this is the last instruction.
8564 <  $ac_cs_success || as_fn_exit $?
8564 >  $ac_cs_success || as_fn_exit 1
8565   fi
8566   if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8567    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines