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 1396 by gezelter, Sat Dec 5 02:57:05 2009 UTC vs.
branches/development/configure (file contents), Revision 1618 by gezelter, Mon Sep 12 17:09:26 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.65 for OpenMD 1.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 Foundation,
10 < # Inc.
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
# Line 91 | 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 216 | 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 319 | 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 359 | 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 533 | Line 541 | exec 6>&1
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 624 | Line 632 | ZLIB_INC_DIR
632   ZLIB
633   ZLIB_LIB_DIR
634   ZLIB_INC_DIR
627 F90_MODULE_NAMES
628 F90MODINCSPEC
629 MODDIRFLAG
630 F90_WORK_FILES_ARG
631 MOD
632 FC_FUNC_
633 FC_FUNC
634 FCLIBS
635 PREPDEFFLAG
636 FCFLAGS_SRCEXT
637 FCFLAGS_F90
635   PS
636   AR
637   INSTALL_DATA
# Line 649 | Line 646 | USE_MPI
646   GREP
647   CPP
648   USE_MPI
652 MPIFC
649   MPICC
650   MPILIBS
651   MPICXX
652 < ac_ct_FC
657 < FCFLAGS
658 < FC
652 > LIBDL
653   ac_ct_CC
654   CFLAGS
655   CC
# Line 743 | Line 737 | CFLAGS
737   CCC
738   CC
739   CFLAGS
746 FC
747 FCFLAGS
740   MPICXX
741   MPICC
750 MPIFC
742   CPP
743   CXXCPP'
744  
# Line 812 | 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 858 | 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 884 | 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 1088 | 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 1104 | 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 1134 | 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 1143 | 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 1153 | 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 1161 | 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 1190 | 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 1204 | 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 1220 | 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 1261 | 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 1305 | 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 1398 | Line 1390 | Some influential environment variables:
1390                you have headers in a nonstandard directory <include dir>
1391    CC          C compiler command
1392    CFLAGS      C compiler flags
1401  FC          Fortran compiler command
1402  FCFLAGS     Fortran compiler flags
1393    MPICXX      MPI C++ compiler command
1394    MPICC       MPI C compiler command
1405  MPIFC       MPI Fortran compiler command
1395    CPP         C preprocessor
1396    CXXCPP      C++ preprocessor
1397  
# Line 1473 | Line 1462 | OpenMD configure 1.0
1462   if $ac_init_version; then
1463    cat <<\_ACEOF
1464   OpenMD configure 1.0
1465 < generated by GNU Autoconf 2.65
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 1519 | 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;}
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
# Line 1557 | Line 1546 | fi
1546  
1547          ac_retval=1
1548   fi
1549 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
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
1564
1565 # ac_fn_fc_try_compile LINENO
1566 # ---------------------------
1567 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_fc_try_compile ()
1569 {
1570  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571  rm -f conftest.$ac_objext
1572  if { { ac_try="$ac_compile"
1573 case "(($ac_try" in
1574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575  *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579  (eval "$ac_compile") 2>conftest.err
1580  ac_status=$?
1581  if test -s conftest.err; then
1582    grep -v '^ *+' conftest.err >conftest.er1
1583    cat conftest.er1 >&5
1584    mv -f conftest.er1 conftest.err
1585  fi
1586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587  test $ac_status = 0; } && {
1588         test -z "$ac_fc_werror_flag" ||
1589         test ! -s conftest.err
1590       } && test -s conftest.$ac_objext; then :
1591  ac_retval=0
1592 else
1593  $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1553  
1596        ac_retval=1
1597 fi
1598  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1599  as_fn_set_status $ac_retval
1600
1601 } # ac_fn_fc_try_compile
1602
1554   # ac_fn_cxx_try_link LINENO
1555   # -------------------------
1556   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1641 | 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;}
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
# Line 1654 | 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 1709 | 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  
# Line 1754 | 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;}
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
# Line 1767 | 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 1822 | 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
1828
1829 # ac_fn_fc_try_link LINENO
1830 # ------------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_fc_try_link ()
1833 {
1834  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835  rm -f conftest.$ac_objext conftest$ac_exeext
1836  if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839  *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843  (eval "$ac_link") 2>conftest.err
1844  ac_status=$?
1845  if test -s conftest.err; then
1846    grep -v '^ *+' conftest.err >conftest.er1
1847    cat conftest.er1 >&5
1848    mv -f conftest.er1 conftest.err
1849  fi
1850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851  test $ac_status = 0; } && {
1852         test -z "$ac_fc_werror_flag" ||
1853         test ! -s conftest.err
1854       } && test -s conftest$ac_exeext && {
1855         test "$cross_compiling" = yes ||
1856         $as_test_x conftest$ac_exeext
1857       }; then :
1858  ac_retval=0
1859 else
1860  $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863        ac_retval=1
1864 fi
1865  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867  # interfere with the next link command; also delete a directory that is
1868  # left behind by Apple's compiler.  We do this before executing the actions.
1869  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871  as_fn_set_status $ac_retval
1872
1873 } # ac_fn_fc_try_link
1779  
1780   # ac_fn_c_try_cpp LINENO
1781   # ----------------------
# Line 1893 | 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 1904 | 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;}
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
# Line 1917 | 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 1956 | 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 1979 | 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
1983 < ## ------------------------------ ##
1887 > ( $as_echo "## ------------------------------ ##
1888   ## Report this to gezelter@nd.edu ##
1889 < ## ------------------------------ ##
1986 < _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 1998 | 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 2039 | 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;}
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
# Line 2053 | 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 2071 | 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 2096 | 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 2107 | 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;}
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
# Line 2120 | 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 2159 | 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 2182 | 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
2186 < ## ------------------------------ ##
2088 > ( $as_echo "## ------------------------------ ##
2089   ## Report this to gezelter@nd.edu ##
2090 < ## ------------------------------ ##
2189 < _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 2201 | 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 2214 | 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
2224 #ifdef FC_DUMMY_MAIN
2225 #ifndef FC_DUMMY_MAIN_EQ_F77
2226 #  ifdef __cplusplus
2227     extern "C"
2228 #  endif
2229   int FC_DUMMY_MAIN() { return 1; }
2230 #endif
2231 #endif
2125   int
2126   main ()
2127   {
# Line 2242 | Line 2135 | $4
2135    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136   /* end confdefs.h.  */
2137   $4
2245 #ifdef FC_DUMMY_MAIN
2246 #ifndef FC_DUMMY_MAIN_EQ_F77
2247 #  ifdef __cplusplus
2248     extern "C"
2249 #  endif
2250   int FC_DUMMY_MAIN() { return 1; }
2251 #endif
2252 #endif
2138   int
2139   main ()
2140   {
# Line 2271 | 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
# Line 2279 | Line 2164 | It was created by OpenMD $as_me 1.0, which was
2164   running configure, to aid debugging if configure makes a mistake.
2165  
2166   It was created by OpenMD $as_me 1.0, which was
2167 < generated by GNU Autoconf 2.65.  Invocation command line was
2167 > generated by GNU Autoconf 2.68.  Invocation command line was
2168  
2169    $ $0 $@
2170  
# Line 2389 | Line 2274 | trap 'exit_status=$?
2274    {
2275      echo
2276  
2277 <    cat <<\_ASBOX
2393 < ## ---------------- ##
2277 >    $as_echo "## ---------------- ##
2278   ## Cache variables. ##
2279 < ## ---------------- ##
2396 < _ASBOX
2279 > ## ---------------- ##"
2280      echo
2281      # The following way of writing the cache mishandles newlines in values,
2282   (
# Line 2427 | Line 2310 | $as_echo "$as_me: WARNING: cache variable $ac_var cont
2310   )
2311      echo
2312  
2313 <    cat <<\_ASBOX
2431 < ## ----------------- ##
2313 >    $as_echo "## ----------------- ##
2314   ## Output variables. ##
2315 < ## ----------------- ##
2434 < _ASBOX
2315 > ## ----------------- ##"
2316      echo
2317      for ac_var in $ac_subst_vars
2318      do
# Line 2444 | Line 2325 | _ASBOX
2325      echo
2326  
2327      if test -n "$ac_subst_files"; then
2328 <      cat <<\_ASBOX
2448 < ## ------------------- ##
2328 >      $as_echo "## ------------------- ##
2329   ## File substitutions. ##
2330 < ## ------------------- ##
2451 < _ASBOX
2330 > ## ------------------- ##"
2331        echo
2332        for ac_var in $ac_subst_files
2333        do
# Line 2462 | Line 2341 | _ASBOX
2341      fi
2342  
2343      if test -s confdefs.h; then
2344 <      cat <<\_ASBOX
2466 < ## ----------- ##
2344 >      $as_echo "## ----------- ##
2345   ## confdefs.h. ##
2346 < ## ----------- ##
2469 < _ASBOX
2346 > ## ----------- ##"
2347        echo
2348        cat confdefs.h
2349        echo
# Line 2521 | 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 2536 | Line 2418 | $as_echo "$as_me: loading site script $ac_site_file" >
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  
# Line 2612 | 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 2627 | 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 2679 | Line 2571 | ac_config_headers="$ac_config_headers src/config.h"
2571  
2572  
2573  
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2574   #
2575   #
2576   #
# Line 2707 | Line 2584 | ac_config_headers="$ac_config_headers src/config.h"
2584  
2585  
2586  
2710 # AC_F90_MODULE_NAMES
2711 # -------------------
2712 #
2713 # Figure out how the Fortran 90 compiler constructs module file names
2714 #
2715 # AC_F90_MODULE_NAMES
2587  
2588  
2589  
# Line 2893 | Line 2764 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 |
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 2931 | 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 2946 | 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 3040 | Line 2911 | $as_echo_n "checking for $ac_word... " >&6; }
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 3084 | Line 2955 | $as_echo_n "checking for $ac_word... " >&6; }
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 3247 | Line 3118 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
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
3252 < 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; }
# Line 3291 | 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 conftest$ac_cv_exeext
3168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
# Line 3349 | Line 3219 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
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.
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; }
3224 > See \`config.log' for more details" "$LINENO" 5; }
3225      fi
3226    fi
3227   fi
# Line 3362 | Line 3232 | $as_echo_n "checking for suffix of object files... " >
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 test "${ac_cv_objext+set}" = set; then :
3235 > if ${ac_cv_objext+:} false; then :
3236    $as_echo_n "(cached) " >&6
3237   else
3238    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3402 | 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 3413 | 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 3450 | 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 3544 | Line 3414 | $as_echo_n "checking for $ac_word... " >&6; }
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 3588 | Line 3458 | $as_echo_n "checking for $ac_word... " >&6; }
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 3640 | Line 3510 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510  
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 3670 | Line 3540 | $as_echo_n "checking whether we are using the GNU C co
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 3707 | 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 3785 | 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 3880 | Line 3750 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752  
3753 < ac_ext=${ac_fc_srcext-f}
3754 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3755 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3756 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3757 < if test -n "$ac_tool_prefix"; then
3758 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3759 <  do
3760 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3761 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3762 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 < $as_echo_n "checking for $ac_word... " >&6; }
3764 < if test "${ac_cv_prog_FC+set}" = set; then :
3753 >
3754 > save_CXX=$CXX
3755 > save_CC=$CC
3756 > save_LIBS=$LIBS
3757 >
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 <  if test -n "$FC"; then
3771 <  ac_cv_prog_FC="$FC" # Let the user override the test.
3772 < else
3773 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 < for as_dir in $PATH
3902 < do
3903 <  IFS=$as_save_IFS
3904 <  test -z "$as_dir" && as_dir=.
3905 <    for ac_exec_ext in '' $ac_executable_extensions; do
3906 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3907 <    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
3908 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 <    break 2
3910 <  fi
3911 < done
3912 <  done
3913 < IFS=$as_save_IFS
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 < fi
3776 < fi
3777 < FC=$ac_cv_prog_FC
3778 < if test -n "$FC"; then
3779 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
3780 < $as_echo "$FC" >&6; }
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 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 < $as_echo "no" >&6; }
3793 >  ac_cv_lib_c_dlopen=no
3794   fi
3795 <
3796 <
3797 <    test -n "$FC" && break
3928 <  done
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 < if test -z "$FC"; then
3800 <  ac_ct_FC=$FC
3801 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3802 < do
3803 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
3804 < set dummy $ac_prog; ac_word=$2
3805 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 < $as_echo_n "checking for $ac_word... " >&6; }
3938 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
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 <  if test -n "$ac_ct_FC"; then
3810 <  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
3811 < else
3812 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 < for as_dir in $PATH
3946 < do
3947 <  IFS=$as_save_IFS
3948 <  test -z "$as_dir" && as_dir=.
3949 <    for ac_exec_ext in '' $ac_executable_extensions; do
3950 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3951 <    ac_cv_prog_ac_ct_FC="$ac_prog"
3952 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 <    break 2
3954 <  fi
3955 < done
3956 <  done
3957 < IFS=$as_save_IFS
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 < fi
3815 < fi
3816 < ac_ct_FC=$ac_cv_prog_ac_ct_FC
3817 < if test -n "$ac_ct_FC"; then
3818 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
3964 < $as_echo "$ac_ct_FC" >&6; }
3965 < else
3966 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 < $as_echo "no" >&6; }
3968 < fi
3969 <
3970 <
3971 <  test -n "$ac_ct_FC" && break
3972 < done
3973 <
3974 <  if test "x$ac_ct_FC" = x; then
3975 <    FC=""
3976 <  else
3977 <    case $cross_compiling:$ac_tool_warned in
3978 < yes:)
3979 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3980 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3981 < ac_tool_warned=yes ;;
3982 < esac
3983 <    FC=$ac_ct_FC
3984 <  fi
3985 < fi
3986 <
3987 <
3988 < # Provide some information about the compiler.
3989 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
3990 < set X $ac_compile
3991 < ac_compiler=$2
3992 < for ac_option in --version -v -V -qversion; do
3993 <  { { ac_try="$ac_compiler $ac_option >&5"
3994 < case "(($ac_try" in
3995 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 <  *) ac_try_echo=$ac_try;;
3997 < esac
3998 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3999 < $as_echo "$ac_try_echo"; } >&5
4000 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4001 <  ac_status=$?
4002 <  if test -s conftest.err; then
4003 <    sed '10a\
4004 < ... rest of stderr output deleted ...
4005 <         10q' conftest.err >conftest.er1
4006 <    cat conftest.er1 >&5
4007 <  fi
4008 <  rm -f conftest.er1 conftest.err
4009 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 <  test $ac_status = 0; }
4011 < done
4012 < rm -f a.out
4013 <
4014 < # If we don't use `.F' as extension, the preprocessor is not run on the
4015 < # input file.  (Note that this only needs to work for GNU compilers.)
4016 < ac_save_ext=$ac_ext
4017 < ac_ext=F
4018 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4019 < $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4020 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4021 <  $as_echo_n "(cached) " >&6
4022 < else
4023 <  cat > conftest.$ac_ext <<_ACEOF
4024 <      program main
4025 < #ifndef __GNUC__
4026 <       choke me
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 <
3821 <      end
3820 > char dlopen ();
3821 > int
3822 > main ()
3823 > {
3824 > return dlopen ();
3825 >  ;
3826 >  return 0;
3827 > }
3828   _ACEOF
3829 < if ac_fn_fc_try_compile "$LINENO"; then :
3830 <  ac_compiler_gnu=yes
3829 > if ac_fn_cxx_try_link "$LINENO"; then :
3830 >  ac_cv_lib_dl_dlopen=yes
3831   else
3832 <  ac_compiler_gnu=no
3832 >  ac_cv_lib_dl_dlopen=no
3833   fi
3834 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835 < ac_cv_fc_compiler_gnu=$ac_compiler_gnu
3836 <
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_fc_compiler_gnu" >&5
3839 < $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
3840 < ac_ext=$ac_save_ext
3841 < ac_test_FCFLAGS=${FCFLAGS+set}
4044 < ac_save_FCFLAGS=$FCFLAGS
4045 < FCFLAGS=
4046 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4047 < $as_echo_n "checking whether $FC accepts -g... " >&6; }
4048 < if test "${ac_cv_prog_fc_g+set}" = set; then :
4049 <  $as_echo_n "(cached) " >&6
4050 < else
4051 <  FCFLAGS=-g
4052 < cat > conftest.$ac_ext <<_ACEOF
4053 <      program main
4054 <
4055 <      end
4056 < _ACEOF
4057 < if ac_fn_fc_try_compile "$LINENO"; then :
4058 <  ac_cv_prog_fc_g=yes
4059 < else
4060 <  ac_cv_prog_fc_g=no
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
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843  
3844   fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4066 $as_echo "$ac_cv_prog_fc_g" >&6; }
4067 if test "$ac_test_FCFLAGS" = set; then
4068  FCFLAGS=$ac_save_FCFLAGS
4069 elif test $ac_cv_prog_fc_g = yes; then
4070  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4071    FCFLAGS="-g -O2"
4072  else
4073    FCFLAGS="-g"
4074  fi
4075 else
4076  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4077    FCFLAGS="-O2"
4078  else
4079    FCFLAGS=
4080  fi
4081 fi
3845  
4083 ac_ext=c
4084 ac_cpp='$CPP $CPPFLAGS'
4085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3846  
3847  
4090 save_CXX=$CXX
4091 save_CC=$CC
4092 save_FC=$FC
4093 save_LIBS=$LIBS
3848  
4095 ac_ext=cpp
4096 ac_cpp='$CXXCPP $CPPFLAGS'
4097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3849  
3850  
3851  
4103
4104
4105
4106
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_MPICXX+set}" = set; then :
3858 > if ${ac_cv_prog_MPICXX+:} false; then :
3859    $as_echo_n "(cached) " >&6
3860   else
3861    if test -n "$MPICXX"; then
# Line 4154 | Line 3899 | if test x = x"$MPILIBS"; then
3899  
3900   if test x = x"$MPILIBS"; then
3901          ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3902 < if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3902 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
3903    MPILIBS=" "
3904   fi
3905  
# Line 4163 | 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 4197 | 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 4205 | 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 4239 | 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 4305 | Line 4050 | $as_echo_n "checking for $ac_word... " >&6; }
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_MPICC+set}" = set; then :
4053 > if ${ac_cv_prog_MPICC+:} false; then :
4054    $as_echo_n "(cached) " >&6
4055   else
4056    if test -n "$MPICC"; then
# Line 4349 | Line 4094 | if test x = x"$MPILIBS"; then
4094  
4095   if test x = x"$MPILIBS"; then
4096          ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4097 < if test "x$ac_cv_func_MPI_Init" = x""yes; then :
4097 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
4098    MPILIBS=" "
4099   fi
4100  
# Line 4358 | Line 4103 | $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
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
# Line 4392 | 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 4400 | 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
# Line 4434 | 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  
# Line 4474 | Line 4219 | $as_echo "$as_me: WARNING: No suitable C MPI implement
4219          USE_MPI="no"
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;}
4477        :
4478 else
4479        USE_MPI="yes"
4480        :
4481 fi
4482
4483
4484 fi
4485
4486 if test $USE_MPI != no; then :
4487
4488 ac_ext=${ac_fc_srcext-f}
4489 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4490 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4491 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4492
4493
4494
4495
4496
4497
4498        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4499 do
4500  # Extract the first word of "$ac_prog", so it can be a program name with args.
4501 set dummy $ac_prog; ac_word=$2
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if test "${ac_cv_prog_MPIFC+set}" = set; then :
4505  $as_echo_n "(cached) " >&6
4506 else
4507  if test -n "$MPIFC"; then
4508  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4509 else
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513  IFS=$as_save_IFS
4514  test -z "$as_dir" && as_dir=.
4515    for ac_exec_ext in '' $ac_executable_extensions; do
4516  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517    ac_cv_prog_MPIFC="$ac_prog"
4518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519    break 2
4520  fi
4521 done
4522  done
4523 IFS=$as_save_IFS
4524
4525 fi
4526 fi
4527 MPIFC=$ac_cv_prog_MPIFC
4528 if test -n "$MPIFC"; then
4529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4530 $as_echo "$MPIFC" >&6; }
4531 else
4532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4534 fi
4535
4536
4537  test -n "$MPIFC" && break
4538 done
4539 test -n "$MPIFC" || MPIFC="$FC"
4540
4541        ax_mpi_save_FC="$FC"
4542        FC="$MPIFC"
4543
4544
4545
4546 if test x = x"$MPILIBS"; then
4547        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4548 $as_echo_n "checking for MPI_Init... " >&6; }
4549                        cat > conftest.$ac_ext <<_ACEOF
4550      program main
4551      call MPI_Init
4552      end
4553 _ACEOF
4554 if ac_fn_fc_try_link "$LINENO"; then :
4555  MPILIBS=" "
4556                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4557 $as_echo "yes" >&6; }
4558 else
4559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4561 fi
4562 rm -f core conftest.err conftest.$ac_objext \
4563    conftest$ac_exeext conftest.$ac_ext
4564 fi
4565
4566        if test x = x"$MPILIBS"; then
4567                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
4568 $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
4569 if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then :
4570  $as_echo_n "(cached) " >&6
4571 else
4572  ac_check_lib_save_LIBS=$LIBS
4573 LIBS="-lfmpi  $LIBS"
4574 cat > conftest.$ac_ext <<_ACEOF
4575      program main
4576      call MPI_Init
4577      end
4578 _ACEOF
4579 if ac_fn_fc_try_link "$LINENO"; then :
4580  ac_cv_lib_fmpi_MPI_Init=yes
4581 else
4582  ac_cv_lib_fmpi_MPI_Init=no
4583 fi
4584 rm -f core conftest.err conftest.$ac_objext \
4585    conftest$ac_exeext conftest.$ac_ext
4586 LIBS=$ac_check_lib_save_LIBS
4587 fi
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
4589 $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
4590 if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then :
4591  MPILIBS="-lfmpi"
4592 fi
4593
4594        fi
4595        if test x = x"$MPILIBS"; then
4596                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
4597 $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
4598 if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then :
4599  $as_echo_n "(cached) " >&6
4600 else
4601  ac_check_lib_save_LIBS=$LIBS
4602 LIBS="-lmpichf90  $LIBS"
4603 cat > conftest.$ac_ext <<_ACEOF
4604      program main
4605      call MPI_Init
4606      end
4607 _ACEOF
4608 if ac_fn_fc_try_link "$LINENO"; then :
4609  ac_cv_lib_mpichf90_MPI_Init=yes
4610 else
4611  ac_cv_lib_mpichf90_MPI_Init=no
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext \
4614    conftest$ac_exeext conftest.$ac_ext
4615 LIBS=$ac_check_lib_save_LIBS
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
4618 $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
4619 if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then :
4620  MPILIBS="-lmpichf90"
4621 fi
4622
4623        fi
4624
4625 if test x = x"$MPILIBS"; then
4626        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4627 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4628 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4629  $as_echo_n "(cached) " >&6
4630 else
4631  ac_check_lib_save_LIBS=$LIBS
4632 LIBS="-lmpi  $LIBS"
4633 cat > conftest.$ac_ext <<_ACEOF
4634      program main
4635      call MPI_Init
4636      end
4637 _ACEOF
4638 if ac_fn_fc_try_link "$LINENO"; then :
4639  ac_cv_lib_mpi_MPI_Init=yes
4640 else
4641  ac_cv_lib_mpi_MPI_Init=no
4642 fi
4643 rm -f core conftest.err conftest.$ac_objext \
4644    conftest$ac_exeext conftest.$ac_ext
4645 LIBS=$ac_check_lib_save_LIBS
4646 fi
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4648 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4649 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4650  MPILIBS="-lmpi"
4651 fi
4652
4653 fi
4654 if test x = x"$MPILIBS"; then
4655        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4656 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4657 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4658  $as_echo_n "(cached) " >&6
4659 else
4660  ac_check_lib_save_LIBS=$LIBS
4661 LIBS="-lmpich  $LIBS"
4662 cat > conftest.$ac_ext <<_ACEOF
4663      program main
4664      call MPI_Init
4665      end
4666 _ACEOF
4667 if ac_fn_fc_try_link "$LINENO"; then :
4668  ac_cv_lib_mpich_MPI_Init=yes
4669 else
4670  ac_cv_lib_mpich_MPI_Init=no
4671 fi
4672 rm -f core conftest.err conftest.$ac_objext \
4673    conftest$ac_exeext conftest.$ac_ext
4674 LIBS=$ac_check_lib_save_LIBS
4675 fi
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4677 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4678 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4679  MPILIBS="-lmpich"
4680 fi
4681
4682 fi
4683
4684 if test x != x"$MPILIBS"; then
4685        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4686 $as_echo_n "checking for mpif.h... " >&6; }
4687        cat > conftest.$ac_ext <<_ACEOF
4688      program main
4689      include 'mpif.h'
4690      end
4691 _ACEOF
4692 if ac_fn_fc_try_compile "$LINENO"; then :
4693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4694 $as_echo "yes" >&6; }
4695 else
4696  MPILIBS=""
4697                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4699 fi
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 fi
4702
4703 FC="$ax_mpi_save_FC"
4704
4705
4706
4707 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4708 if test x = x"$MPILIBS"; then
4709        USE_MPI="no"
4710       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&5
4711 $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&2;}
4222          :
4223   else
4224          USE_MPI="yes"
# Line 4721 | Line 4231 | if test $USE_MPI != no; then :
4231  
4232          CXX=$MPICXX
4233          CC=$MPICC
4724        FC=$MPIFC
4234          LIBS="$MPILIBS $LIBS"
4235  
4236   else
4237  
4238          CXX=$save_CXX
4239          CC=$save_CC
4731        FC=$save_FC
4240          LIBS=$save_LIBS
4241  
4242  
# Line 4748 | Line 4256 | if test -z "$CPP"; then
4256    CPP=
4257   fi
4258   if test -z "$CPP"; then
4259 <  if test "${ac_cv_prog_CPP+set}" = set; 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
# Line 4778 | Line 4286 | fi
4286    # Broken: fails on valid input.
4287   continue
4288   fi
4289 < rm -f conftest.err conftest.$ac_ext
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.
# Line 4794 | Line 4302 | fi
4302   ac_preproc_ok=:
4303   break
4304   fi
4305 < rm -f conftest.err conftest.$ac_ext
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.err conftest.$ac_ext
4309 > rm -f conftest.i conftest.err conftest.$ac_ext
4310   if $ac_preproc_ok; then :
4311    break
4312   fi
# Line 4837 | Line 4345 | fi
4345    # Broken: fails on valid input.
4346   continue
4347   fi
4348 < rm -f conftest.err conftest.$ac_ext
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.
# Line 4853 | Line 4361 | fi
4361   ac_preproc_ok=:
4362   break
4363   fi
4364 < rm -f conftest.err conftest.$ac_ext
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.err conftest.$ac_ext
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; }
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=${ac_fc_srcext-f}
4379 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4380 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4381 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
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 test "${ac_cv_path_GREP+set}" = set; then :
4386 > if ${ac_cv_path_GREP+:} false; then :
4387    $as_echo_n "(cached) " >&6
4388   else
4389    if test -z "$GREP"; then
# Line 4923 | Line 4432 | IFS=$as_save_IFS
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
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
# Line 4937 | Line 4446 | $as_echo_n "checking for egrep... " >&6; }
4446  
4447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4448   $as_echo_n "checking for egrep... " >&6; }
4449 < if test "${ac_cv_path_EGREP+set}" = set; then :
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
# Line 4989 | Line 4498 | IFS=$as_save_IFS
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
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
# Line 5017 | Line 4526 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]
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 { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
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
# Line 5025 | Line 4534 | _ACEOF
4534   all:
4535          @echo '@@@%%%=$(MAKE)=@@@%%%'
4536   _ACEOF
4537 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
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;;
# Line 5049 | Line 4558 | $as_echo_n "checking for $ac_word... " >&6; }
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 test "${ac_cv_prog_RANLIB+set}" = set; then :
4561 > if ${ac_cv_prog_RANLIB+:} false; then :
4562    $as_echo_n "(cached) " >&6
4563   else
4564    if test -n "$RANLIB"; then
# Line 5089 | Line 4598 | $as_echo_n "checking for $ac_word... " >&6; }
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 test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
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
# Line 5141 | Line 4650 | $as_echo_n "checking for $ac_word... " >&6; }
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 test "${ac_cv_path_PERLINTERP+set}" = set; then :
4653 > if ${ac_cv_path_PERLINTERP+:} false; then :
4654    $as_echo_n "(cached) " >&6
4655   else
4656    case $PERLINTERP in
# Line 5191 | Line 4700 | $as_echo_n "checking whether explicit instead of detec
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 test "${ax_cv_opt_perl_shebang+set}" = set; then :
4703 > if ${ax_cv_opt_perl_shebang+:} false; then :
4704    $as_echo_n "(cached) " >&6
4705   else
4706     case "$opt_perl_shebang" in
# Line 5217 | Line 4726 | $as_echo_n "checking for kernel sharpbang invocation t
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 test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then :
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"`
# Line 5273 | Line 4782 | if test -z "$INSTALL"; then
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 test "${ac_cv_path_install+set}" = set; 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
# Line 5358 | Line 4867 | $as_echo_n "checking for $ac_word... " >&6; }
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 test "${ac_cv_prog_AR+set}" = set; then :
4870 > if ${ac_cv_prog_AR+:} false; then :
4871    $as_echo_n "(cached) " >&6
4872   else
4873    if test -n "$AR"; then
# Line 5457 | Line 4966 | if diff "$cache_file" confcache >/dev/null 2>&1; then
4966       :end' >>confcache
4967   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4968    if test -w "$cache_file"; then
4969 <    test "x$cache_file" != "x/dev/null" &&
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 <    cat confcache >$cache_file
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;}
# Line 5473 | Line 4993 | $as_echo_n "checking for $ac_word... " >&6; }
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 test "${ac_cv_path_PS+set}" = set; then :
4996 > if ${ac_cv_path_PS+:} false; then :
4997    $as_echo_n "(cached) " >&6
4998   else
4999    case $PS in
# Line 5511 | Line 5031 | $as_echo_n "checking for POSIX or BSD ps syntax... " >
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 test "${ac_cv_prog_ps_syntax+set}" = set; then :
5034 > if ${ac_cv_prog_ps_syntax+:} false; then :
5035    $as_echo_n "(cached) " >&6
5036   else
5037  
# Line 5531 | Line 5051 | 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
5054 >                        as_fn_error $? "Could not determine ps syntax" "$LINENO" 5
5055                  fi
5056          fi
5057  
# Line 5553 | Line 5073 | $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
5073   $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
5074  
5075     else
5076 <       as_fn_error "Unknown ps syntax type!" "$LINENO" 5
5076 >       as_fn_error $? "Unknown ps syntax type!" "$LINENO" 5
5077     fi
5078   fi
5079  
5080 < ac_ext=${ac_fc_srcext-f}
5081 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5082 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5083 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5080 > ac_ext=c
5081 > ac_cpp='$CPP $CPPFLAGS'
5082 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085  
5565 ac_ext=${ac_fc_srcext-f}
5566 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5567 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5568 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5
5570 $as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; }
5571 if test "${ac_cv_fc_srcext_F90+set}" = set; then :
5572  $as_echo_n "(cached) " >&6
5573 else
5574  ac_ext=F90
5575 ac_fcflags_srcext_save=$ac_fcflags_srcext
5576 ac_fcflags_srcext=
5577 ac_cv_fc_srcext_F90=unknown
5578 for ac_flag in none -qsuffix=f=F90 -Tf; do
5579  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
5580  cat > conftest.$ac_ext <<_ACEOF
5581      program main
5582
5583      end
5584 _ACEOF
5585 if ac_fn_fc_try_compile "$LINENO"; then :
5586  ac_cv_fc_srcext_F90=$ac_flag; break
5587 fi
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 done
5590 rm -f conftest.$ac_objext conftest.F90
5591 ac_fcflags_srcext=$ac_fcflags_srcext_save
5592
5593 fi
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5
5595 $as_echo "$ac_cv_fc_srcext_F90" >&6; }
5596 if test "x$ac_cv_fc_srcext_F90" = xunknown; then
5597  as_fn_error "Fortran could not compile .F90 files" "$LINENO" 5
5598 else
5599  ac_fc_srcext=F90
5600  if test "x$ac_cv_fc_srcext_F90" = xnone; then
5601    ac_fcflags_srcext=""
5602    FCFLAGS_F90=""
5603  else
5604    ac_fcflags_srcext=$ac_cv_fc_srcext_F90
5605    FCFLAGS_F90=$ac_cv_fc_srcext_F90
5606  fi
5607
5608
5609 fi
5610 ac_ext=${ac_fc_srcext-f}
5611 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5612 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5613 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5614
5615
5616
5617
5618
5619 # Try to determine native compiler flags that allow us to use F90 suffix
5620 # for preprocessed f90 source.
5621
5622 if test "$ac_test_PREPFLAG" != "set"; then
5623  PREPFLAG=""
5624  case "${host_cpu}-${host_os}" in
5625
5626  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
5627                    PREPFLAG="-fpp1 "
5628                fi;;
5629  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
5630                    PREPFLAG="-qsuffix=cpp=F90 "
5631                fi;;
5632  *darwin*)
5633        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
5634                PREPFLAG="-qsuffix=cpp=F90 "
5635        fi;;
5636  esac
5637
5638  if test -z "$PREPFLAG"; then
5639        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPFLAG\"" >&5
5640 $as_echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
5641        PREPFLAG=""
5642  fi
5643
5644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor flag works" >&5
5645 $as_echo_n "checking to make sure F90 preprocessor flag works... " >&6; }
5646
5647  ac_ext=${ac_fc_srcext-f}
5648 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5649 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5650 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5651
5652  ac_save_ext=$ac_ext
5653  ac_ext=F90
5654  ac_save_FCFLAGS_SRCEXT=$FCFLAGS_SRCEXT
5655
5656  if test "$PREPFLAG"; then :
5657  FCFLAGS_SRCEXT="${PREPFLAG}"
5658 fi
5659    cat > conftest.$ac_ext <<_ACEOF
5660
5661
5662 program conftest
5663  integer :: i
5664  i = 1
5665 end program conftest
5666
5667 _ACEOF
5668 if ac_fn_fc_try_compile "$LINENO"; then :
5669  prepflagworks=1
5670 else
5671  prepflagworks=0
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674
5675  FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT
5676  ac_ext=$ac_save_ext
5677  ac_ext=${ac_fc_srcext-f}
5678 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5679 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5681
5682
5683  if test "$prepflagworks" = 1; then
5684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5685 $as_echo "yes" >&6; }
5686    FCFLAGS_SRCEXT="${PREPFLAG}"
5687
5688  else
5689    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5691    as_fn_error "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5
5692  fi
5693 fi
5694
5695
5696
5697
5698
5699 # Try to determine native compiler flags that allow us to use F90 suffix
5700 # for preprocessed f90 source with -D type defines
5701
5702 if test "$ac_test_PREPDEFFLAG" != "set"; then
5703  PREPDEFFLAG=""
5704  case "${host_cpu}-${host_os}" in
5705
5706  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
5707                    PREPDEFFLAG=" "
5708                fi;;
5709  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
5710                    PREPDEFFLAG="-WF,"
5711                fi;;
5712  *darwin*)
5713        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
5714                PREPDEFFLAG="-WF,"
5715        fi;;
5716  esac
5717
5718  if test -z "$PREPDEFFLAG"; then
5719        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPDEFFLAG\"" >&5
5720 $as_echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
5721        PREPDEFFLAG=" "
5722  fi
5723
5724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor define flag works" >&5
5725 $as_echo_n "checking to make sure F90 preprocessor define flag works... " >&6; }
5726
5727  ac_ext=${ac_fc_srcext-f}
5728 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5729 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5730 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5731
5732  ac_save_ext=$ac_ext
5733  ac_ext=F90
5734  ac_save_FCFLAGS=$FCFLAGS
5735
5736  if test "$PREPDEFFLAG"; then :
5737  FCFLAGS="${FCFLAGS} ${PREPDEFFLAG}-DTEST"
5738 fi
5739    cat > conftest.$ac_ext <<_ACEOF
5740
5741
5742 program conftest
5743  integer :: i
5744 #ifdef TEST
5745  i = 1
5746 #else
5747  choke me
5748 #endif
5749 end program conftest
5750
5751 _ACEOF
5752 if ac_fn_fc_try_compile "$LINENO"; then :
5753  prepdefflagworks=1
5754 else
5755  prepdefflagworks=0
5756 fi
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758
5759  FCFLAGS=$ac_save_FCFLAGS
5760  ac_ext=$ac_save_ext
5761  ac_ext=${ac_fc_srcext-f}
5762 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5763 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5764 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5765
5766
5767  if test "$prepdefflagworks" = 1; then
5768    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5769 $as_echo "yes" >&6; }
5770
5771  else
5772    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5774    as_fn_error "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5
5775  fi
5776 fi
5777
5778 ac_ext=${ac_fc_srcext-f}
5779 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5780 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5781 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
5783 $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
5784 if test "${ac_cv_prog_fc_v+set}" = set; then :
5785  $as_echo_n "(cached) " >&6
5786 else
5787  cat > conftest.$ac_ext <<_ACEOF
5788      program main
5789
5790      end
5791 _ACEOF
5792 if ac_fn_fc_try_compile "$LINENO"; then :
5793  ac_cv_prog_fc_v=
5794 # Try some options frequently used verbose output
5795 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
5796  cat > conftest.$ac_ext <<_ACEOF
5797      program main
5798
5799      end
5800 _ACEOF
5801
5802 # Compile and link our simple test program by passing a flag (argument
5803 # 1 to this macro) to the Fortran compiler in order to get
5804 # "verbose" output that we can then parse for the Fortran linker
5805 # flags.
5806 ac_save_FCFLAGS=$FCFLAGS
5807 FCFLAGS="$FCFLAGS $ac_verb"
5808 eval "set x $ac_link"
5809 shift
5810 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
5811 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
5812 # LIBRARY_PATH; skip all such settings.
5813 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
5814  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
5815 $as_echo "$ac_fc_v_output" >&5
5816 FCFLAGS=$ac_save_FCFLAGS
5817
5818 rm -rf conftest*
5819
5820 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5821 # /foo, /bar, and /baz are search directories for the Fortran linker.
5822 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
5823 ac_fc_v_output="`echo $ac_fc_v_output |
5824        grep 'LPATH is:' |
5825        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
5826
5827 # FIXME: we keep getting bitten by quoted arguments; a more general fix
5828 #        that detects unbalanced quotes in FLIBS should be implemented
5829 #        and (ugh) tested at some point.
5830 case $ac_fc_v_output in
5831  # If we are using xlf then replace all the commas with spaces.
5832  *xlfentry*)
5833    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
5834
5835  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
5836  # $LIBS confuse us, and the libraries appear later in the output anyway).
5837  *mGLOB_options_string*)
5838    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
5839
5840  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
5841  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
5842  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
5843  *-cmdline\ * | *-ignore\ * | *-def\ *)
5844    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
5845        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
5846        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
5847        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
5848
5849  # If we are using Cray Fortran then delete quotes.
5850  *cft90*)
5851    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
5852 esac
5853
5854
5855  # look for -l* and *.a constructs in the output
5856  for ac_arg in $ac_fc_v_output; do
5857     case $ac_arg in
5858        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
5859          ac_cv_prog_fc_v=$ac_verb
5860          break 2 ;;
5861     esac
5862  done
5863 done
5864 if test -z "$ac_cv_prog_fc_v"; then
5865   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
5866 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
5867 fi
5868 else
5869  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
5870 $as_echo "$as_me: WARNING: compilation failed" >&2;}
5871 fi
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873
5874 fi
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
5876 $as_echo "$ac_cv_prog_fc_v" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
5878 $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
5879 if test "${ac_cv_fc_libs+set}" = set; then :
5880  $as_echo_n "(cached) " >&6
5881 else
5882  if test "x$FCLIBS" != "x"; then
5883  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
5884 else
5885
5886 cat > conftest.$ac_ext <<_ACEOF
5887      program main
5888
5889      end
5890 _ACEOF
5891
5892 # Compile and link our simple test program by passing a flag (argument
5893 # 1 to this macro) to the Fortran compiler in order to get
5894 # "verbose" output that we can then parse for the Fortran linker
5895 # flags.
5896 ac_save_FCFLAGS=$FCFLAGS
5897 FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
5898 eval "set x $ac_link"
5899 shift
5900 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
5901 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
5902 # LIBRARY_PATH; skip all such settings.
5903 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
5904  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
5905 $as_echo "$ac_fc_v_output" >&5
5906 FCFLAGS=$ac_save_FCFLAGS
5907
5908 rm -rf conftest*
5909
5910 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5911 # /foo, /bar, and /baz are search directories for the Fortran linker.
5912 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
5913 ac_fc_v_output="`echo $ac_fc_v_output |
5914        grep 'LPATH is:' |
5915        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
5916
5917 # FIXME: we keep getting bitten by quoted arguments; a more general fix
5918 #        that detects unbalanced quotes in FLIBS should be implemented
5919 #        and (ugh) tested at some point.
5920 case $ac_fc_v_output in
5921  # If we are using xlf then replace all the commas with spaces.
5922  *xlfentry*)
5923    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
5924
5925  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
5926  # $LIBS confuse us, and the libraries appear later in the output anyway).
5927  *mGLOB_options_string*)
5928    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
5929
5930  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
5931  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
5932  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
5933  *-cmdline\ * | *-ignore\ * | *-def\ *)
5934    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
5935        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
5936        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
5937        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
5938
5939  # If we are using Cray Fortran then delete quotes.
5940  *cft90*)
5941    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
5942 esac
5943
5944
5945
5946 ac_cv_fc_libs=
5947
5948 # Save positional arguments (if any)
5949 ac_save_positional="$@"
5950
5951 set X $ac_fc_v_output
5952 while test $# != 1; do
5953  shift
5954  ac_arg=$1
5955  case $ac_arg in
5956        [\\/]*.a | ?:[\\/]*.a)
5957            ac_exists=false
5958  for ac_i in $ac_cv_fc_libs; do
5959    if test x"$ac_arg" = x"$ac_i"; then
5960      ac_exists=true
5961      break
5962    fi
5963  done
5964
5965  if test x"$ac_exists" = xtrue; then :
5966
5967 else
5968  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5969 fi
5970          ;;
5971        -bI:*)
5972            ac_exists=false
5973  for ac_i in $ac_cv_fc_libs; do
5974    if test x"$ac_arg" = x"$ac_i"; then
5975      ac_exists=true
5976      break
5977    fi
5978  done
5979
5980  if test x"$ac_exists" = xtrue; then :
5981
5982 else
5983  if test "$ac_compiler_gnu" = yes; then
5984  for ac_link_opt in $ac_arg; do
5985    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
5986  done
5987 else
5988  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5989 fi
5990 fi
5991          ;;
5992          # Ignore these flags.
5993        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
5994          |-LANG:=* | -LIST:* | -LNO:*)
5995          ;;
5996        -lkernel32)
5997          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5998          ;;
5999        -[LRuYz])
6000          # These flags, when seen by themselves, take an argument.
6001          # We remove the space between option and argument and re-iterate
6002          # unless we find an empty arg or a new option (starting with -)
6003          case $2 in
6004             "" | -*);;
6005             *)
6006                ac_arg="$ac_arg$2"
6007                shift; shift
6008                set X $ac_arg "$@"
6009                ;;
6010          esac
6011          ;;
6012        -YP,*)
6013          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
6014              ac_exists=false
6015  for ac_i in $ac_cv_fc_libs; do
6016    if test x"$ac_j" = x"$ac_i"; then
6017      ac_exists=true
6018      break
6019    fi
6020  done
6021
6022  if test x"$ac_exists" = xtrue; then :
6023
6024 else
6025  ac_arg="$ac_arg $ac_j"
6026                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
6027 fi
6028          done
6029          ;;
6030        -[lLR]*)
6031            ac_exists=false
6032  for ac_i in $ac_cv_fc_libs; do
6033    if test x"$ac_arg" = x"$ac_i"; then
6034      ac_exists=true
6035      break
6036    fi
6037  done
6038
6039  if test x"$ac_exists" = xtrue; then :
6040
6041 else
6042  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6043 fi
6044          ;;
6045        -zallextract*| -zdefaultextract)
6046          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6047          ;;
6048          # Ignore everything else.
6049  esac
6050 done
6051 # restore positional arguments
6052 set X $ac_save_positional; shift
6053
6054 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
6055 # then we insist that the "run path" must be an absolute path (i.e. it
6056 # must begin with a "/").
6057 case `(uname -sr) 2>/dev/null` in
6058   "SunOS 5"*)
6059      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
6060                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
6061      test "x$ac_ld_run_path" != x &&
6062        if test "$ac_compiler_gnu" = yes; then
6063  for ac_link_opt in $ac_ld_run_path; do
6064    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
6065  done
6066 else
6067  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
6068 fi
6069      ;;
6070 esac
6071 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
6072
6073 fi
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
6075 $as_echo "$ac_cv_fc_libs" >&6; }
6076 FCLIBS="$ac_cv_fc_libs"
6077
6078
6079 ac_ext=${ac_fc_srcext-f}
6080 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6081 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6082 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6083
6084 ac_ext=${ac_fc_srcext-f}
6085 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6086 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6087 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6088
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
6090 $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
6091 if test "${ac_cv_fc_dummy_main+set}" = set; then :
6092  $as_echo_n "(cached) " >&6
6093 else
6094  ac_fc_dm_save_LIBS=$LIBS
6095 LIBS="$LIBS $FCLIBS"
6096 ac_fortran_dm_var=FC_DUMMY_MAIN
6097 ac_ext=c
6098 ac_cpp='$CPP $CPPFLAGS'
6099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6102
6103 # First, try linking without a dummy main:
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h.  */
6106
6107 #ifdef FC_DUMMY_MAIN
6108 #ifndef FC_DUMMY_MAIN_EQ_F77
6109 #  ifdef __cplusplus
6110     extern "C"
6111 #  endif
6112   int FC_DUMMY_MAIN() { return 1; }
6113 #endif
6114 #endif
6115 int
6116 main ()
6117 {
6118
6119  ;
6120  return 0;
6121 }
6122 _ACEOF
6123 if ac_fn_c_try_link "$LINENO"; then :
6124  ac_cv_fortran_dummy_main=none
6125 else
6126  ac_cv_fortran_dummy_main=unknown
6127 fi
6128 rm -f core conftest.err conftest.$ac_objext \
6129    conftest$ac_exeext conftest.$ac_ext
6130
6131 if test $ac_cv_fortran_dummy_main = unknown; then
6132   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
6133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h.  */
6135 #define $ac_fortran_dm_var $ac_func
6136 #ifdef FC_DUMMY_MAIN
6137 #ifndef FC_DUMMY_MAIN_EQ_F77
6138 #  ifdef __cplusplus
6139     extern "C"
6140 #  endif
6141   int FC_DUMMY_MAIN() { return 1; }
6142 #endif
6143 #endif
6144 int
6145 main ()
6146 {
6147
6148  ;
6149  return 0;
6150 }
6151 _ACEOF
6152 if ac_fn_c_try_link "$LINENO"; then :
6153  ac_cv_fortran_dummy_main=$ac_func; break
6154 fi
6155 rm -f core conftest.err conftest.$ac_objext \
6156    conftest$ac_exeext conftest.$ac_ext
6157   done
6158 fi
6159 ac_ext=${ac_fc_srcext-f}
6160 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6161 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6163 ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
6164 rm -rf conftest*
6165 LIBS=$ac_fc_dm_save_LIBS
6166
6167 fi
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5
6169 $as_echo "$ac_cv_fc_dummy_main" >&6; }
6170 FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
6171 if test "$FC_DUMMY_MAIN" != unknown; then :
6172  if test $FC_DUMMY_MAIN != none; then
6173
6174 cat >>confdefs.h <<_ACEOF
6175 #define FC_DUMMY_MAIN $FC_DUMMY_MAIN
6176 _ACEOF
6177
6178  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
6179
6180 $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
6181
6182  fi
6183 fi
6184 else
6185  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6187 as_fn_error "linking to Fortran libraries from C fails
6188 See \`config.log' for more details." "$LINENO" 5; }
6189 fi
6190
6191 ac_ext=${ac_fc_srcext-f}
6192 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6193 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6195
6196 ac_ext=${ac_fc_srcext-f}
6197 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6198 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6199 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
6201 $as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
6202 if test "${ac_cv_fc_mangling+set}" = set; then :
6203  $as_echo_n "(cached) " >&6
6204 else
6205  cat > conftest.$ac_ext <<_ACEOF
6206      subroutine foobar()
6207      return
6208      end
6209      subroutine foo_bar()
6210      return
6211      end
6212 _ACEOF
6213 if ac_fn_fc_try_compile "$LINENO"; then :
6214  mv conftest.$ac_objext cfortran_test.$ac_objext
6215
6216  ac_save_LIBS=$LIBS
6217  LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"
6218
6219  ac_ext=c
6220 ac_cpp='$CPP $CPPFLAGS'
6221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6224  ac_success=no
6225  for ac_foobar in foobar FOOBAR; do
6226    for ac_underscore in "" "_"; do
6227      ac_func="$ac_foobar$ac_underscore"
6228      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h.  */
6230
6231 /* Override any GCC internal prototype to avoid an error.
6232   Use char because int might match the return type of a GCC
6233   builtin and then its argument prototype would still apply.  */
6234 #ifdef __cplusplus
6235 extern "C"
6236 #endif
6237 char $ac_func ();
6238 #ifdef FC_DUMMY_MAIN
6239 #ifndef FC_DUMMY_MAIN_EQ_F77
6240 #  ifdef __cplusplus
6241     extern "C"
6242 #  endif
6243   int FC_DUMMY_MAIN() { return 1; }
6244 #endif
6245 #endif
6246 int
6247 main ()
6248 {
6249 return $ac_func ();
6250  ;
6251  return 0;
6252 }
6253 _ACEOF
6254 if ac_fn_c_try_link "$LINENO"; then :
6255  ac_success=yes; break 2
6256 fi
6257 rm -f core conftest.err conftest.$ac_objext \
6258    conftest$ac_exeext conftest.$ac_ext
6259    done
6260  done
6261  ac_ext=${ac_fc_srcext-f}
6262 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6263 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6264 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6265
6266  if test "$ac_success" = "yes"; then
6267     case $ac_foobar in
6268        foobar)
6269           ac_case=lower
6270           ac_foo_bar=foo_bar
6271           ;;
6272        FOOBAR)
6273           ac_case=upper
6274           ac_foo_bar=FOO_BAR
6275           ;;
6276     esac
6277
6278     ac_ext=c
6279 ac_cpp='$CPP $CPPFLAGS'
6280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6283     ac_success_extra=no
6284     for ac_extra in "" "_"; do
6285        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
6286        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h.  */
6288
6289 /* Override any GCC internal prototype to avoid an error.
6290   Use char because int might match the return type of a GCC
6291   builtin and then its argument prototype would still apply.  */
6292 #ifdef __cplusplus
6293 extern "C"
6294 #endif
6295 char $ac_func ();
6296 #ifdef FC_DUMMY_MAIN
6297 #ifndef FC_DUMMY_MAIN_EQ_F77
6298 #  ifdef __cplusplus
6299     extern "C"
6300 #  endif
6301   int FC_DUMMY_MAIN() { return 1; }
6302 #endif
6303 #endif
6304 int
6305 main ()
6306 {
6307 return $ac_func ();
6308  ;
6309  return 0;
6310 }
6311 _ACEOF
6312 if ac_fn_c_try_link "$LINENO"; then :
6313  ac_success_extra=yes; break
6314 fi
6315 rm -f core conftest.err conftest.$ac_objext \
6316    conftest$ac_exeext conftest.$ac_ext
6317     done
6318     ac_ext=${ac_fc_srcext-f}
6319 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6320 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6321 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6322
6323     if test "$ac_success_extra" = "yes"; then
6324        ac_cv_fc_mangling="$ac_case case"
6325        if test -z "$ac_underscore"; then
6326           ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
6327        else
6328           ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
6329        fi
6330        if test -z "$ac_extra"; then
6331           ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
6332        else
6333           ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
6334        fi
6335      else
6336        ac_cv_fc_mangling="unknown"
6337      fi
6338  else
6339     ac_cv_fc_mangling="unknown"
6340  fi
6341
6342  LIBS=$ac_save_LIBS
6343  rm -rf conftest*
6344  rm -f cfortran_test*
6345 else
6346  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6348 as_fn_error "cannot compile a simple Fortran program
6349 See \`config.log' for more details." "$LINENO" 5; }
6350 fi
6351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352
6353 fi
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5
6355 $as_echo "$ac_cv_fc_mangling" >&6; }
6356
6357 ac_ext=${ac_fc_srcext-f}
6358 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6359 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6360 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6361
6362 ac_ext=${ac_fc_srcext-f}
6363 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6364 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6365 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6366 case $ac_cv_fc_mangling in
6367  "lower case, no underscore, no extra underscore")
6368          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
6369
6370          $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h
6371 ;;
6372  "lower case, no underscore, extra underscore")
6373          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
6374
6375          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
6376 ;;
6377  "lower case, underscore, no extra underscore")
6378          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
6379
6380          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
6381 ;;
6382  "lower case, underscore, extra underscore")
6383          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
6384
6385          $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h
6386 ;;
6387  "upper case, no underscore, no extra underscore")
6388          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
6389
6390          $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h
6391 ;;
6392  "upper case, no underscore, extra underscore")
6393          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
6394
6395          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
6396 ;;
6397  "upper case, underscore, no extra underscore")
6398          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
6399
6400          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
6401 ;;
6402  "upper case, underscore, extra underscore")
6403          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
6404
6405          $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h
6406 ;;
6407  *)
6408          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
6409 $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
6410          ;;
6411 esac
6412
6413 ac_ext=${ac_fc_srcext-f}
6414 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6415 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6416 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6417
6418
6419
6420 ac_ext=${ac_fc_srcext-f}
6421 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6422 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6423 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
6425 $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
6426 if test "${ac_cv_prog_fc_v+set}" = set; then :
6427  $as_echo_n "(cached) " >&6
6428 else
6429  cat > conftest.$ac_ext <<_ACEOF
6430      program main
6431
6432      end
6433 _ACEOF
6434 if ac_fn_fc_try_compile "$LINENO"; then :
6435  ac_cv_prog_fc_v=
6436 # Try some options frequently used verbose output
6437 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
6438  cat > conftest.$ac_ext <<_ACEOF
6439      program main
6440
6441      end
6442 _ACEOF
6443
6444 # Compile and link our simple test program by passing a flag (argument
6445 # 1 to this macro) to the Fortran compiler in order to get
6446 # "verbose" output that we can then parse for the Fortran linker
6447 # flags.
6448 ac_save_FCFLAGS=$FCFLAGS
6449 FCFLAGS="$FCFLAGS $ac_verb"
6450 eval "set x $ac_link"
6451 shift
6452 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
6453 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6454 # LIBRARY_PATH; skip all such settings.
6455 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6456  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6457 $as_echo "$ac_fc_v_output" >&5
6458 FCFLAGS=$ac_save_FCFLAGS
6459
6460 rm -rf conftest*
6461
6462 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
6463 # /foo, /bar, and /baz are search directories for the Fortran linker.
6464 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
6465 ac_fc_v_output="`echo $ac_fc_v_output |
6466        grep 'LPATH is:' |
6467        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
6468
6469 # FIXME: we keep getting bitten by quoted arguments; a more general fix
6470 #        that detects unbalanced quotes in FLIBS should be implemented
6471 #        and (ugh) tested at some point.
6472 case $ac_fc_v_output in
6473  # If we are using xlf then replace all the commas with spaces.
6474  *xlfentry*)
6475    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
6476
6477  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
6478  # $LIBS confuse us, and the libraries appear later in the output anyway).
6479  *mGLOB_options_string*)
6480    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
6481
6482  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
6483  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
6484  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
6485  *-cmdline\ * | *-ignore\ * | *-def\ *)
6486    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
6487        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
6488        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
6489        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
6490
6491  # If we are using Cray Fortran then delete quotes.
6492  *cft90*)
6493    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
6494 esac
6495
6496
6497  # look for -l* and *.a constructs in the output
6498  for ac_arg in $ac_fc_v_output; do
6499     case $ac_arg in
6500        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
6501          ac_cv_prog_fc_v=$ac_verb
6502          break 2 ;;
6503     esac
6504  done
6505 done
6506 if test -z "$ac_cv_prog_fc_v"; then
6507   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
6508 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
6509 fi
6510 else
6511  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
6512 $as_echo "$as_me: WARNING: compilation failed" >&2;}
6513 fi
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515
6516 fi
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
6518 $as_echo "$ac_cv_prog_fc_v" >&6; }
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
6520 $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
6521 if test "${ac_cv_fc_libs+set}" = set; then :
6522  $as_echo_n "(cached) " >&6
6523 else
6524  if test "x$FCLIBS" != "x"; then
6525  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
6526 else
6527
6528 cat > conftest.$ac_ext <<_ACEOF
6529      program main
6530
6531      end
6532 _ACEOF
6533
6534 # Compile and link our simple test program by passing a flag (argument
6535 # 1 to this macro) to the Fortran compiler in order to get
6536 # "verbose" output that we can then parse for the Fortran linker
6537 # flags.
6538 ac_save_FCFLAGS=$FCFLAGS
6539 FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
6540 eval "set x $ac_link"
6541 shift
6542 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
6543 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6544 # LIBRARY_PATH; skip all such settings.
6545 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6546  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6547 $as_echo "$ac_fc_v_output" >&5
6548 FCFLAGS=$ac_save_FCFLAGS
6549
6550 rm -rf conftest*
6551
6552 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
6553 # /foo, /bar, and /baz are search directories for the Fortran linker.
6554 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
6555 ac_fc_v_output="`echo $ac_fc_v_output |
6556        grep 'LPATH is:' |
6557        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
6558
6559 # FIXME: we keep getting bitten by quoted arguments; a more general fix
6560 #        that detects unbalanced quotes in FLIBS should be implemented
6561 #        and (ugh) tested at some point.
6562 case $ac_fc_v_output in
6563  # If we are using xlf then replace all the commas with spaces.
6564  *xlfentry*)
6565    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
6566
6567  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
6568  # $LIBS confuse us, and the libraries appear later in the output anyway).
6569  *mGLOB_options_string*)
6570    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
6571
6572  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
6573  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
6574  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
6575  *-cmdline\ * | *-ignore\ * | *-def\ *)
6576    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
6577        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
6578        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
6579        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
6580
6581  # If we are using Cray Fortran then delete quotes.
6582  *cft90*)
6583    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
6584 esac
6585
6586
6587
6588 ac_cv_fc_libs=
6589
6590 # Save positional arguments (if any)
6591 ac_save_positional="$@"
6592
6593 set X $ac_fc_v_output
6594 while test $# != 1; do
6595  shift
6596  ac_arg=$1
6597  case $ac_arg in
6598        [\\/]*.a | ?:[\\/]*.a)
6599            ac_exists=false
6600  for ac_i in $ac_cv_fc_libs; do
6601    if test x"$ac_arg" = x"$ac_i"; then
6602      ac_exists=true
6603      break
6604    fi
6605  done
6606
6607  if test x"$ac_exists" = xtrue; then :
6608
6609 else
6610  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6611 fi
6612          ;;
6613        -bI:*)
6614            ac_exists=false
6615  for ac_i in $ac_cv_fc_libs; do
6616    if test x"$ac_arg" = x"$ac_i"; then
6617      ac_exists=true
6618      break
6619    fi
6620  done
6621
6622  if test x"$ac_exists" = xtrue; then :
6623
6624 else
6625  if test "$ac_compiler_gnu" = yes; then
6626  for ac_link_opt in $ac_arg; do
6627    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
6628  done
6629 else
6630  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6631 fi
6632 fi
6633          ;;
6634          # Ignore these flags.
6635        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
6636          |-LANG:=* | -LIST:* | -LNO:*)
6637          ;;
6638        -lkernel32)
6639          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6640          ;;
6641        -[LRuYz])
6642          # These flags, when seen by themselves, take an argument.
6643          # We remove the space between option and argument and re-iterate
6644          # unless we find an empty arg or a new option (starting with -)
6645          case $2 in
6646             "" | -*);;
6647             *)
6648                ac_arg="$ac_arg$2"
6649                shift; shift
6650                set X $ac_arg "$@"
6651                ;;
6652          esac
6653          ;;
6654        -YP,*)
6655          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
6656              ac_exists=false
6657  for ac_i in $ac_cv_fc_libs; do
6658    if test x"$ac_j" = x"$ac_i"; then
6659      ac_exists=true
6660      break
6661    fi
6662  done
6663
6664  if test x"$ac_exists" = xtrue; then :
6665
6666 else
6667  ac_arg="$ac_arg $ac_j"
6668                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
6669 fi
6670          done
6671          ;;
6672        -[lLR]*)
6673            ac_exists=false
6674  for ac_i in $ac_cv_fc_libs; do
6675    if test x"$ac_arg" = x"$ac_i"; then
6676      ac_exists=true
6677      break
6678    fi
6679  done
6680
6681  if test x"$ac_exists" = xtrue; then :
6682
6683 else
6684  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6685 fi
6686          ;;
6687        -zallextract*| -zdefaultextract)
6688          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6689          ;;
6690          # Ignore everything else.
6691  esac
6692 done
6693 # restore positional arguments
6694 set X $ac_save_positional; shift
6695
6696 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
6697 # then we insist that the "run path" must be an absolute path (i.e. it
6698 # must begin with a "/").
6699 case `(uname -sr) 2>/dev/null` in
6700   "SunOS 5"*)
6701      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
6702                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
6703      test "x$ac_ld_run_path" != x &&
6704        if test "$ac_compiler_gnu" = yes; then
6705  for ac_link_opt in $ac_ld_run_path; do
6706    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
6707  done
6708 else
6709  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
6710 fi
6711      ;;
6712 esac
6713 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
5086  
6715 fi
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
6717 $as_echo "$ac_cv_fc_libs" >&6; }
6718 FCLIBS="$ac_cv_fc_libs"
6719
6720
6721 ac_ext=${ac_fc_srcext-f}
6722 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6723 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6724 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6725
6726
6727
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module suffix" >&5
6729 $as_echo_n "checking for module suffix... " >&6; }
6730 rm -f conftest*
6731 # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
6732 rm -f work*
6733 cat >conftest.$ac_ext <<EOF
6734        module conftest
6735        integer n
6736        parameter (n=1)
6737        end module conftest
6738 EOF
6739 # SGI and absoft compilers generates module name in upper case!
6740 testname="conftest"
6741 modcase="lower"
6742 if (eval $ac_compile) 2>/dev/null ; then
6743    MOD=`ls conftest* | grep -v conftest.$ac_ext | grep -v conftest.o`
6744    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
6745    if test -z "$MOD" ; then
6746        MOD=`ls CONFTEST* 2>/dev/null \
6747                | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
6748        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
6749        if test -n "$MOD" ; then
6750            testname="CONFTEST"
6751            modcase="upper"
6752        fi
6753    fi
6754    if test -z "$MOD" ; then
6755        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
6756 $as_echo "unknown" >&6; }
6757        # Use mod if we can't figure it out
6758        MOD="mod"
6759    else
6760        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOD" >&5
6761 $as_echo "$MOD" >&6; }
6762    fi
6763    if test -s work.pcl ; then
6764        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler generates auxillery files!" >&5
6765 $as_echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
6766    fi
6767 else
6768    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
6769 $as_echo "unknown" >&6; }
6770 fi
6771
6772
6773
6774
6775
6776 # Check for module include path (some use -I, some (Solaris) use -M, some
6777 # (absoft) use -p).
6778 # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
6779 # specified, work.pcl and work.pc are created.  However, if you specify
6780 # a file, it must contain a the name of a file ending in .pc .  Ugh!
6781 # Use the module made above
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module directory path flag" >&5
6783 $as_echo_n "checking for module directory path flag... " >&6; }
6784 rm -f conftest*
6785 # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
6786 rm -f work*
6787 cat >conftest.$ac_ext <<EOF
6788        module conftest
6789        integer n
6790        parameter (n=1)
6791        end module conftest
6792 EOF
6793 # SGI and absoft compilers generates module name in upper case!
6794 testname="conftest"
6795 if (eval $ac_compile) 2>/dev/null ; then
6796   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
6797   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
6798   if test -n "$mod" ; then
6799      testname="CONFTEST"
6800   fi
6801   madedir=0
6802   if test ! -d conf ; then mkdir conf ; madedir=1; fi
6803   cp $testname.$MOD conf
6804   rm -f conftest* CONFTEST*
6805   cat >conftest1.$ac_ext <<EOF
6806        program main
6807        use conftest
6808        print *, n
6809        end
6810 EOF
6811   F90_WORK_FILES_ARG=""
6812   F90MODINCSPEC=""
6813   if $FC -c -Iconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext > conftest.out 2>&1 ; then
6814       MODDIRFLAG="-I"
6815       F90MODINCSPEC="-I<dir>"
6816       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -I" >&5
6817 $as_echo "-I" >&6; }
6818   elif $FC -c -Mconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
6819       MODDIRFLAG="-M"
6820       F90MODINCSPEC="-M<dir>"
6821       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -M" >&5
6822 $as_echo "-M" >&6; }
6823   elif $FC -c -pconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
6824       MODDIRFLAG="-p"
6825       F90MODINCSPEC="-p<dir>"
6826       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -p" >&5
6827 $as_echo "-p" >&6; }
6828   elif test -s work.pc ; then
6829        cp work.pc conf/mpimod.pc
6830        echo "mpimod.pc" > conf/mpimod.pcl
6831        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
6832        if $FC -c -cl,conf/mpimod.pcl $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >>conftest.out 2>&1 ; then
6833            MODDIRFLAG='-cl,mpimod.pcl'
6834            { $as_echo "$as_me:${as_lineno-$LINENO}: result: -cl,filename where filename contains a list of files and directories" >&5
6835 $as_echo "-cl,filename where filename contains a list of files and directories" >&6; }
6836            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
6837            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
6838
6839        else
6840            # The version of the Intel compiler that I have refuses to let
6841            # you put the "work catalog" list anywhere but the current
6842            # directory. For example, you cannot in
6843         :
6844        fi
6845   fi
6846   if test -z "MODDIRFLAG" ; then
6847       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
6848 $as_echo "unknown" >&6; }
6849   fi
6850
6851
6852   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
6853   if test $madedir = 1 ; then rmdir conf ; fi
6854 fi
6855
6856
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module file names" >&5
6858 $as_echo_n "checking for Fortran 90 module file names... " >&6; }
6859 if test "${ac_cv_f90_module_names+set}" = set; then :
6860  $as_echo_n "(cached) " >&6
6861 else
6862  ac_ext=${ac_fc_srcext-f}
6863 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6864 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6865 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6866
6867 # carry out the test in a new directory, so that we don't miss anything
6868 mkdir conftest
6869 cd conftest
6870 cat > conftest.$ac_ext <<_ACEOF
6871 MODULE Bar
6872 END MODULE Bar
6873 _ACEOF
6874 if ac_fn_fc_try_compile "$LINENO"; then :
6875  ac_cv_f90_module_names=
6876 ac_file_list=*
6877 for ac_file in $ac_file_list; do
6878   case $ac_file in
6879      # don't care for original source and object files
6880      conftest.$ac_ext | conftest.$ac_objext | conftest.err )
6881          :
6882          ;;
6883      # look for new files derived from the file name
6884      *conftest*)
6885          ac_pat=`echo $ac_file | sed s/conftest/%FILE%/`
6886            ac_exists=false
6887  for ac_i in $ac_cv_f90_module_names; do
6888    if test x"$ac_pat" = x"$ac_i"; then
6889      ac_exists=true
6890      break
6891    fi
6892  done
6893
6894  if test x"$ac_exists" = xtrue; then :
6895
6896 else
6897  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
6898 fi
6899          ;;
6900      # look for new files derived from the module name,
6901      # with different case translation schemes
6902      *Bar*)
6903          ac_pat=`echo $ac_file | sed s/Bar/%Module%/`
6904            ac_exists=false
6905  for ac_i in $ac_cv_f90_module_names; do
6906    if test x"$ac_pat" = x"$ac_i"; then
6907      ac_exists=true
6908      break
6909    fi
6910  done
6911
6912  if test x"$ac_exists" = xtrue; then :
6913
6914 else
6915  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
6916 fi
6917          ;;
6918      *bar*)
6919          ac_pat=`echo $ac_file | sed s/bar/%module%/`
6920            ac_exists=false
6921  for ac_i in $ac_cv_f90_module_names; do
6922    if test x"$ac_pat" = x"$ac_i"; then
6923      ac_exists=true
6924      break
6925    fi
6926  done
6927
6928  if test x"$ac_exists" = xtrue; then :
6929
6930 else
6931  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
6932 fi
6933          ;;
6934      *BAR*)
6935          ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
6936            ac_exists=false
6937  for ac_i in $ac_cv_f90_module_names; do
6938    if test x"$ac_pat" = x"$ac_i"; then
6939      ac_exists=true
6940      break
6941    fi
6942  done
6943
6944  if test x"$ac_exists" = xtrue; then :
6945
6946 else
6947  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
6948 fi
6949          ;;
6950       # Other files - we have no idea how they are generated
6951       *)
6952          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bogus file found: $ac_file" >&5
6953 $as_echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
6954          ;;
6955   esac
6956 done
6957 if test "x$ac_cv_f90_module_names" = "x"; then
6958  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
6959 $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
6960 fi
6961
6962 else
6963  ac_cv_f90_module_names=
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
6965 $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
6966 fi
6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968 cd ..
6969 # cleanup
6970 rm -rf conftest
6971 ac_ext=${ac_fc_srcext-f}
6972 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6973 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6974 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6975
6976 fi
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f90_module_names" >&5
6978 $as_echo "$ac_cv_f90_module_names" >&6; } # AC_CACHE_CHECK
6979
6980 # We now generate a shell script that will help us to figure out the correct
6981 # module file names, using the value of ac_cv_f90_module_names
6982
6983 echo "Generating shell script modnam"
6984
6985 cat > scripts/modnam << EOF
6986 #! /bin/sh
6987 # This script is auto-generated by configure
6988 #
6989 usage="\\
6990 Usage: \$0 [FILES]
6991
6992 [FILES] are Fortran 90 source files.
6993 The output is a list of module file names that the Fortran 90 compiler
6994 generates when compiling [FILES]."
6995
6996 list=
6997 empty=
6998
6999 if test \$# -eq 0; then
7000   echo "\$usage"; exit 0
7001 fi
7002
7003 while test \$# != 0; do
7004
7005  file=\$1
7006  shift
7007
7008 # strip suffix
7009  base=\`echo \$file | sed 's/[.][^.]*$//'\`
7010
7011  test ! -f \$file && continue
7012
7013 # Look for module definitions and transform them to upper / lower case
7014  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/'\`
7015  upper=\`echo \$mods | tr a-z A-Z\`
7016  lower=\`echo \$mods | tr A-Z a-z\`
7017
7018 # Here, the patterns for generating module file names were inserted by configure
7019  for trans in $ac_cv_f90_module_names; do
7020
7021    pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
7022    var=empty
7023    case \$pat in
7024       %MODULE%)
7025          var=upper ;;
7026       %Module%)
7027          var=mods ;;
7028       %module%)
7029          var=lower ;;
7030       %FILE%)
7031          test -n "\$mods" && var=base ;;
7032    esac
7033    new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
7034    list="\$list \$new"
7035  done
7036 done
7037
7038 echo \$list
7039 # end of configure-generated script
7040 EOF
7041 chmod 755 scripts/modnam
7042
7043 pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
7044 F90_MODULE_NAMES=empty
7045 case $pat in
7046       %MODULE%)
7047          F90_MODULE_NAMES=UPPER ;;
7048       %Module%)
7049          F90_MODULE_NAMES=Mixed ;;
7050       %module%)
7051          F90_MODULE_NAMES=lower ;;
7052       *)
7053          F90_MODULE_NAMES=unknown ;;
7054 esac
7055
7056 ac_ext=${ac_fc_srcext-f}
7057 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7058 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7059 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7060
7061
7062 ac_ext=c
7063 ac_cpp='$CPP $CPPFLAGS'
7064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7067
7068
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 7083 | Line 5101 | char asin ();
5101   extern "C"
5102   #endif
5103   char asin ();
7086 #ifdef FC_DUMMY_MAIN
7087 #ifndef FC_DUMMY_MAIN_EQ_F77
7088 #  ifdef __cplusplus
7089     extern "C"
7090 #  endif
7091   int FC_DUMMY_MAIN() { return 1; }
7092 #endif
7093 #endif
5104   int
5105   main ()
5106   {
# Line 7110 | 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 7124 | 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 7134 | Line 5144 | else
5144   #include <string.h>
5145   #include <float.h>
5146  
7137 #ifdef FC_DUMMY_MAIN
7138 #ifndef FC_DUMMY_MAIN_EQ_F77
7139 #  ifdef __cplusplus
7140     extern "C"
7141 #  endif
7142   int FC_DUMMY_MAIN() { return 1; }
7143 #endif
7144 #endif
5147   int
5148   main ()
5149   {
# Line 7249 | 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
7253 <   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 7305 | 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 7320 | Line 5321 | char inflateEnd ();
5321   extern "C"
5322   #endif
5323   char inflateEnd ();
7323 #ifdef FC_DUMMY_MAIN
7324 #ifndef FC_DUMMY_MAIN_EQ_F77
7325 #  ifdef __cplusplus
7326     extern "C"
7327 #  endif
7328   int FC_DUMMY_MAIN() { return 1; }
7329 #endif
7330 #endif
5324   int
5325   main ()
5326   {
# Line 7347 | 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 7445 | 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 7460 | Line 5453 | char fftw_execute ();
5453   extern "C"
5454   #endif
5455   char fftw_execute ();
7463 #ifdef FC_DUMMY_MAIN
7464 #ifndef FC_DUMMY_MAIN_EQ_F77
7465 #  ifdef __cplusplus
7466     extern "C"
7467 #  endif
7468   int FC_DUMMY_MAIN() { return 1; }
7469 #endif
7470 #endif
5456   int
5457   main ()
5458   {
# Line 7487 | 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 7504 | 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 7519 | Line 5504 | char fftwnd_one ();
5504   extern "C"
5505   #endif
5506   char fftwnd_one ();
7522 #ifdef FC_DUMMY_MAIN
7523 #ifndef FC_DUMMY_MAIN_EQ_F77
7524 #  ifdef __cplusplus
7525     extern "C"
7526 #  endif
7527   int FC_DUMMY_MAIN() { return 1; }
7528 #endif
7529 #endif
5507   int
5508   main ()
5509   {
# Line 7546 | 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 7563 | 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 7578 | Line 5555 | char fftwnd_one ();
5555   extern "C"
5556   #endif
5557   char fftwnd_one ();
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
5558   int
5559   main ()
5560   {
# Line 7605 | 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 7704 | Line 5673 | $as_echo "$as_me: WARNING: Sorry, $qhull_dir does not
5673         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5
5674   $as_echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;}
5675         QHULL_HOME=/usr/local
5676 <       if test ! -f "${QHULL_HOME}/include/qhull/qhull.h"; then
5676 >       if test ! -f "${QHULL_HOME}/include/qhull/libqhull.h"; then
5677            QHULL_HOME=/usr
5678         fi
5679       fi
# Line 7728 | Line 5697 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
5697          LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
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 :
5702 <  qhull_cv_qhull_h=yes
5700 >        ac_fn_c_check_header_mongrel "$LINENO" "qhull/libqhull.h" "ac_cv_header_qhull_libqhull_h" "$ac_includes_default"
5701 > if test "x$ac_cv_header_qhull_libqhull_h" = xyes; then :
5702 >  qhull_cv_libqhull_h=yes
5703   else
5704 <  qhull_cv_qhull_h=no
5704 >  qhull_cv_libqhull_h=no
5705   fi
5706  
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 7753 | Line 5722 | char qh_qhull ();
5722   extern "C"
5723   #endif
5724   char qh_qhull ();
7756 #ifdef FC_DUMMY_MAIN
7757 #ifndef FC_DUMMY_MAIN_EQ_F77
7758 #  ifdef __cplusplus
7759     extern "C"
7760 #  endif
7761   int FC_DUMMY_MAIN() { return 1; }
7762 #endif
7763 #endif
5725   int
5726   main ()
5727   {
# Line 7780 | 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
5748   fi
5749  
5750 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull6" >&5
5751 + $as_echo_n "checking for qh_qhull in -lqhull6... " >&6; }
5752 + if ${ac_cv_lib_qhull6_qh_qhull+:} false; then :
5753 +  $as_echo_n "(cached) " >&6
5754 + else
5755 +  ac_check_lib_save_LIBS=$LIBS
5756 + LIBS="-lqhull6  $LIBS"
5757 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 + /* end confdefs.h.  */
5759 +
5760 + /* Override any GCC internal prototype to avoid an error.
5761 +   Use char because int might match the return type of a GCC
5762 +   builtin and then its argument prototype would still apply.  */
5763 + #ifdef __cplusplus
5764 + extern "C"
5765 + #endif
5766 + char qh_qhull ();
5767 + int
5768 + main ()
5769 + {
5770 + return qh_qhull ();
5771 +  ;
5772 +  return 0;
5773 + }
5774 + _ACEOF
5775 + if ac_fn_c_try_link "$LINENO"; then :
5776 +  ac_cv_lib_qhull6_qh_qhull=yes
5777 + else
5778 +  ac_cv_lib_qhull6_qh_qhull=no
5779 + fi
5780 + rm -f core conftest.err conftest.$ac_objext \
5781 +    conftest$ac_exeext conftest.$ac_ext
5782 + LIBS=$ac_check_lib_save_LIBS
5783 + fi
5784 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull6_qh_qhull" >&5
5785 + $as_echo "$ac_cv_lib_qhull6_qh_qhull" >&6; }
5786 + if test "x$ac_cv_lib_qhull6_qh_qhull" = xyes; then :
5787 +  qhull_cv_libqhull6=yes
5788 + else
5789 +  qhull_cv_libqhull6=no
5790 + fi
5791 +
5792          LDFLAGS="$QHULL_OLD_LDFLAGS"
5793          CFLAGS="$QHULL_OLD_CFLAGS"
5794          CPPFLAGS="$QHULL_OLD_CPPFLAGS"
# Line 7796 | Line 5799 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
5799   ac_compiler_gnu=$ac_cv_c_compiler_gnu
5800  
5801  
5802 <        if test "$qhull_cv_libqhull" = "yes" -a "$qhull_cv_qhull_h" = "yes"; then
5802 >        if test "$qhull_cv_libqhull_h" = "yes" -a "$qhull_cv_libqhull" = "yes" -o "$qhull_cv_libqhull6" = "yes"; then
5803  
5804 < $as_echo "#define HAVE_QHULL_H 1" >>confdefs.h
5804 > $as_echo "#define HAVE_LIBQHULL_H 1" >>confdefs.h
5805  
5806 +           if test "$qhull_cv_libqhull" = "yes"; then
5807  
5808   $as_echo "#define HAVE_QHULL 1" >>confdefs.h
5809  
5810 +                QHULL="-lqhull"
5811 +           fi
5812 +           if test "$qhull_cv_libqhull6" = "yes"; then
5813 +
5814 + $as_echo "#define HAVE_QHULL 1" >>confdefs.h
5815 +
5816 +                QHULL="-lqhull6"
5817 +           fi
5818             USE_QHULL=yes
5819             QHULL_INC_DIR="${QHULL_HOME}/include"
5820             QHULL_LIB_DIR="${QHULL_HOME}/lib"
7809           QHULL="-lqhull"
5821             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Working qhull found, will proceed." >&5
5822   $as_echo "Working qhull found, will proceed." >&6; }
5823          else
# Line 7842 | Line 5853 | if test -z "$CXXCPP"; then
5853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5854   $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5855   if test -z "$CXXCPP"; then
5856 <  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5856 >  if ${ac_cv_prog_CXXCPP+:} false; then :
5857    $as_echo_n "(cached) " >&6
5858   else
5859        # Double quotes because CXXCPP needs to be expanded
# Line 7872 | Line 5883 | fi
5883    # Broken: fails on valid input.
5884   continue
5885   fi
5886 < rm -f conftest.err conftest.$ac_ext
5886 > rm -f conftest.err conftest.i conftest.$ac_ext
5887  
5888    # OK, works on sane cases.  Now check whether nonexistent headers
5889    # can be detected and how.
# Line 7888 | Line 5899 | fi
5899   ac_preproc_ok=:
5900   break
5901   fi
5902 < rm -f conftest.err conftest.$ac_ext
5902 > rm -f conftest.err conftest.i conftest.$ac_ext
5903  
5904   done
5905   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5906 < rm -f conftest.err conftest.$ac_ext
5906 > rm -f conftest.i conftest.err conftest.$ac_ext
5907   if $ac_preproc_ok; then :
5908    break
5909   fi
# Line 7931 | Line 5942 | fi
5942    # Broken: fails on valid input.
5943   continue
5944   fi
5945 < rm -f conftest.err conftest.$ac_ext
5945 > rm -f conftest.err conftest.i conftest.$ac_ext
5946  
5947    # OK, works on sane cases.  Now check whether nonexistent headers
5948    # can be detected and how.
# Line 7947 | Line 5958 | fi
5958   ac_preproc_ok=:
5959   break
5960   fi
5961 < rm -f conftest.err conftest.$ac_ext
5961 > rm -f conftest.err conftest.i conftest.$ac_ext
5962  
5963   done
5964   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5965 < rm -f conftest.err conftest.$ac_ext
5965 > rm -f conftest.i conftest.err conftest.$ac_ext
5966   if $ac_preproc_ok; then :
5967  
5968   else
5969    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5970   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5971 < as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5972 < See \`config.log' for more details." "$LINENO" 5; }
5971 > as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5972 > See \`config.log' for more details" "$LINENO" 5; }
5973   fi
5974  
5975   ac_ext=cpp
# Line 8012 | Line 6023 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6023          LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel"
6024          CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0"
6025          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/babelconfig.h" "ac_cv_header_openbabel_babelconfig_h" "$ac_includes_default"
6026 < if test "x$ac_cv_header_openbabel_babelconfig_h" = x""yes; then :
6026 > if test "x$ac_cv_header_openbabel_babelconfig_h" = xyes; then :
6027    openbabel_cv_openbabel_h=yes
6028   else
6029    openbabel_cv_openbabel_h=no
# Line 8020 | Line 6031 | fi
6031  
6032  
6033          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/obconversion.h" "ac_cv_header_openbabel_obconversion_h" "$ac_includes_default"
6034 < if test "x$ac_cv_header_openbabel_obconversion_h" = x""yes; then :
6034 > if test "x$ac_cv_header_openbabel_obconversion_h" = xyes; then :
6035    openbabel_cv_obconversion_h=yes
6036   else
6037    openbabel_cv_obconversion_h=no
# Line 8036 | Line 6047 | using namespace OpenBabel;
6047   using namespace std;
6048   using namespace OpenBabel;
6049  
8039 #ifdef FC_DUMMY_MAIN
8040 #ifndef FC_DUMMY_MAIN_EQ_F77
8041 #  ifdef __cplusplus
8042     extern "C"
8043 #  endif
8044   int FC_DUMMY_MAIN() { return 1; }
8045 #endif
8046 #endif
6050   int
6051   main ()
6052   {
# Line 8116 | Line 6119 | $as_echo_n "checking for ANSI C header files... " >&6;
6119   # Checks for header files.
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6121   $as_echo_n "checking for ANSI C header files... " >&6; }
6122 < if test "${ac_cv_header_stdc+set}" = set; then :
6122 > if ${ac_cv_header_stdc+:} false; then :
6123    $as_echo_n "(cached) " >&6
6124   else
6125    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 8126 | Line 6129 | else
6129   #include <string.h>
6130   #include <float.h>
6131  
8129 #ifdef FC_DUMMY_MAIN
8130 #ifndef FC_DUMMY_MAIN_EQ_F77
8131 #  ifdef __cplusplus
8132     extern "C"
8133 #  endif
8134   int FC_DUMMY_MAIN() { return 1; }
8135 #endif
8136 #endif
6132   int
6133   main ()
6134   {
# Line 8238 | Line 6233 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$
6233   do :
6234    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6235   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6236 < eval as_val=\$$as_ac_Header
8242 <   if test "x$as_val" = x""yes; then :
6236 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6237    cat >>confdefs.h <<_ACEOF
6238   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6239   _ACEOF
# Line 8252 | Line 6246 | $as_echo_n "checking for stdbool.h that conforms to C9
6246   # Checks for typedefs, structures, and compiler characteristics.
6247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
6248   $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
6249 < if test "${ac_cv_header_stdbool_h+set}" = set; then :
6249 > if ${ac_cv_header_stdbool_h+:} false; then :
6250    $as_echo_n "(cached) " >&6
6251   else
6252    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 8284 | Line 6278 | else
6278          char b[false == 0 ? 1 : -1];
6279          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6280          char d[(bool) 0.5 == true ? 1 : -1];
6281 <        bool e = &s;
6281 >        /* See body of main program for 'e'.  */
6282          char f[(_Bool) 0.0 == false ? 1 : -1];
6283          char g[true];
6284          char h[sizeof (_Bool)];
# Line 8295 | Line 6289 | else
6289          _Bool n[m];
6290          char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6291          char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8298 #       if defined __xlc__ || defined __GNUC__
8299         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8300            reported by James Lemley on 2005-10-05; see
8301            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8302            This test is not quite right, since xlc is allowed to
8303            reject this program, as the initializer for xlcbug is
8304            not one of the forms that C requires support for.
8305            However, doing the test right would require a runtime
8306            test, and that would make cross-compilation harder.
8307            Let us hope that IBM fixes the xlc bug, and also adds
8308            support for this kind of constant expression.  In the
8309            meantime, this test will reject xlc, which is OK, since
8310            our stdbool.h substitute should suffice.  We also test
8311            this with GCC, where it should work, to detect more
8312            quickly whether someone messes up the test in the
8313            future.  */
8314         char digs[] = "0123456789";
8315         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8316 #       endif
6292          /* Catch a bug in an HP-UX C compiler.  See
6293             http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6294             http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
# Line 8321 | Line 6296 | else
6296          _Bool q = true;
6297          _Bool *pq = &q;
6298  
8324 #ifdef FC_DUMMY_MAIN
8325 #ifndef FC_DUMMY_MAIN_EQ_F77
8326 #  ifdef __cplusplus
8327     extern "C"
8328 #  endif
8329   int FC_DUMMY_MAIN() { return 1; }
8330 #endif
8331 #endif
6299   int
6300   main ()
6301   {
6302  
6303 +        bool e = &s;
6304          *pq |= q;
6305          *pq |= ! q;
6306          /* Refer to every declared value, to avoid compiler optimizations.  */
# Line 8353 | Line 6321 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool
6321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6322   $as_echo "$ac_cv_header_stdbool_h" >&6; }
6323   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6324 < if test "x$ac_cv_type__Bool" = x""yes; then :
6324 > if test "x$ac_cv_type__Bool" = xyes; then :
6325  
6326   cat >>confdefs.h <<_ACEOF
6327   #define HAVE__BOOL 1
# Line 8370 | Line 6338 | $as_echo_n "checking for an ANSI C-conforming const...
6338  
6339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6340   $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6341 < if test "${ac_cv_c_const+set}" = set; then :
6341 > if ${ac_cv_c_const+:} false; then :
6342    $as_echo_n "(cached) " >&6
6343   else
6344    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345   /* end confdefs.h.  */
6346  
8379 #ifdef FC_DUMMY_MAIN
8380 #ifndef FC_DUMMY_MAIN_EQ_F77
8381 #  ifdef __cplusplus
8382     extern "C"
8383 #  endif
8384   int FC_DUMMY_MAIN() { return 1; }
8385 #endif
8386 #endif
6347   int
6348   main ()
6349   {
# Line 8458 | Line 6418 | $as_echo_n "checking for inline... " >&6; }
6418  
6419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6420   $as_echo_n "checking for inline... " >&6; }
6421 < if test "${ac_cv_c_inline+set}" = set; then :
6421 > if ${ac_cv_c_inline+:} false; then :
6422    $as_echo_n "(cached) " >&6
6423   else
6424    ac_cv_c_inline=no
# Line 8499 | Line 6459 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size
6459   esac
6460  
6461   ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6462 < if test "x$ac_cv_type_size_t" = x""yes; then :
6462 > if test "x$ac_cv_type_size_t" = xyes; then :
6463  
6464   else
6465  
# Line 8511 | Line 6471 | $as_echo_n "checking whether time.h and sys/time.h may
6471  
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6473   $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6474 < if test "${ac_cv_header_time+set}" = set; then :
6474 > if ${ac_cv_header_time+:} false; then :
6475    $as_echo_n "(cached) " >&6
6476   else
6477    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 8520 | Line 6480 | else
6480   #include <sys/time.h>
6481   #include <time.h>
6482  
8523 #ifdef FC_DUMMY_MAIN
8524 #ifndef FC_DUMMY_MAIN_EQ_F77
8525 #  ifdef __cplusplus
8526     extern "C"
8527 #  endif
8528   int FC_DUMMY_MAIN() { return 1; }
8529 #endif
8530 #endif
6483   int
6484   main ()
6485   {
# Line 8557 | Line 6509 | do :
6509   for ac_header in stdlib.h
6510   do :
6511    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6512 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6512 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
6513    cat >>confdefs.h <<_ACEOF
6514   #define HAVE_STDLIB_H 1
6515   _ACEOF
# Line 8568 | Line 6520 | $as_echo_n "checking for GNU libc compatible malloc...
6520  
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6522   $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6523 < if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6523 > if ${ac_cv_func_malloc_0_nonnull+:} false; then :
6524    $as_echo_n "(cached) " >&6
6525   else
6526    if test "$cross_compiling" = yes; then :
# Line 8582 | Line 6534 | char *malloc ();
6534   char *malloc ();
6535   #endif
6536  
8585 #ifdef FC_DUMMY_MAIN
8586 #ifndef FC_DUMMY_MAIN_EQ_F77
8587 #  ifdef __cplusplus
8588     extern "C"
8589 #  endif
8590   int FC_DUMMY_MAIN() { return 1; }
8591 #endif
8592 #endif
6537   int
6538   main ()
6539   {
# Line 8632 | Line 6576 | do :
6576   for ac_header in stdlib.h
6577   do :
6578    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6579 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6579 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
6580    cat >>confdefs.h <<_ACEOF
6581   #define HAVE_STDLIB_H 1
6582   _ACEOF
# Line 8643 | Line 6587 | $as_echo_n "checking for GNU libc compatible realloc..
6587  
6588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6589   $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6590 < if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6590 > if ${ac_cv_func_realloc_0_nonnull+:} false; then :
6591    $as_echo_n "(cached) " >&6
6592   else
6593    if test "$cross_compiling" = yes; then :
# Line 8657 | Line 6601 | char *realloc ();
6601   char *realloc ();
6602   #endif
6603  
8660 #ifdef FC_DUMMY_MAIN
8661 #ifndef FC_DUMMY_MAIN_EQ_F77
8662 #  ifdef __cplusplus
8663     extern "C"
8664 #  endif
8665   int FC_DUMMY_MAIN() { return 1; }
8666 #endif
8667 #endif
6604   int
6605   main ()
6606   {
# Line 8708 | Line 6644 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$
6644   do :
6645    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6646   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6647 < eval as_val=\$$as_ac_Header
8712 <   if test "x$as_val" = x""yes; then :
6647 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6648    cat >>confdefs.h <<_ACEOF
6649   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6650   _ACEOF
# Line 8720 | Line 6655 | $as_echo_n "checking types of arguments for select...
6655  
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
6657   $as_echo_n "checking types of arguments for select... " >&6; }
6658 < if test "${ac_cv_func_select_args+set}" = set; then :
6658 > if ${ac_cv_func_select_args+:} false; then :
6659    $as_echo_n "(cached) " >&6
6660   else
6661    for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
# Line 8736 | Line 6671 | $ac_includes_default
6671   # include <sys/socket.h>
6672   #endif
6673  
8739 #ifdef FC_DUMMY_MAIN
8740 #ifndef FC_DUMMY_MAIN_EQ_F77
8741 #  ifdef __cplusplus
8742     extern "C"
8743 #  endif
8744   int FC_DUMMY_MAIN() { return 1; }
8745 #endif
8746 #endif
6674   int
6675   main ()
6676   {
# Line 8762 | Line 6689 | done
6689   done
6690   done
6691   # Provide a safe default value.
6692 < : ${ac_cv_func_select_args='int,int *,struct timeval *'}
6692 > : "${ac_cv_func_select_args=int,int *,struct timeval *}"
6693  
6694   fi
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
# Line 8790 | Line 6717 | $as_echo_n "checking for working strtod... " >&6; }
6717  
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6719   $as_echo_n "checking for working strtod... " >&6; }
6720 < if test "${ac_cv_func_strtod+set}" = set; then :
6720 > if ${ac_cv_func_strtod+:} false; then :
6721    $as_echo_n "(cached) " >&6
6722   else
6723    if test "$cross_compiling" = yes; then :
# Line 8849 | Line 6776 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6776   esac
6777  
6778   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6779 < if test "x$ac_cv_func_pow" = x""yes; then :
6779 > if test "x$ac_cv_func_pow" = xyes; then :
6780  
6781   fi
6782  
6783   if test $ac_cv_func_pow = no; then
6784    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6785   $as_echo_n "checking for pow in -lm... " >&6; }
6786 < if test "${ac_cv_lib_m_pow+set}" = set; then :
6786 > if ${ac_cv_lib_m_pow+:} false; then :
6787    $as_echo_n "(cached) " >&6
6788   else
6789    ac_check_lib_save_LIBS=$LIBS
# Line 8871 | Line 6798 | char pow ();
6798   extern "C"
6799   #endif
6800   char pow ();
8874 #ifdef FC_DUMMY_MAIN
8875 #ifndef FC_DUMMY_MAIN_EQ_F77
8876 #  ifdef __cplusplus
8877     extern "C"
8878 #  endif
8879   int FC_DUMMY_MAIN() { return 1; }
8880 #endif
8881 #endif
6801   int
6802   main ()
6803   {
# Line 8898 | Line 6817 | $as_echo "$ac_cv_lib_m_pow" >&6; }
6817   fi
6818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6819   $as_echo "$ac_cv_lib_m_pow" >&6; }
6820 < if test "x$ac_cv_lib_m_pow" = x""yes; then :
6820 > if test "x$ac_cv_lib_m_pow" = xyes; then :
6821    POW_LIB=-lm
6822   else
6823    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
# Line 8913 | Line 6832 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6832   do :
6833    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6834   ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6835 < eval as_val=\$$as_ac_var
8917 <   if test "x$as_val" = x""yes; then :
6835 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6836    cat >>confdefs.h <<_ACEOF
6837   #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6838   _ACEOF
# Line 8930 | Line 6848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849   /* end confdefs.h.  */
6850   #include <sys/systemcfg.h>
8933 #ifdef FC_DUMMY_MAIN
8934 #ifndef FC_DUMMY_MAIN_EQ_F77
8935 #  ifdef __cplusplus
8936     extern "C"
8937 #  endif
8938   int FC_DUMMY_MAIN() { return 1; }
8939 #endif
8940 #endif
6851   int
6852   main ()
6853   {
# Line 8963 | Line 6873 | case $debug in
6873    1)
6874       ;;
6875    *)
8966
8967
8968
8969
8970
8971 # Try to determine "good" native compiler flags if none specified on command
8972 # line
6876  
8974 if test "$ac_test_FFLAGS" != "set"; then
8975  FCFLAGS=""
8976  case "${host_cpu}-${host_os}" in
6877  
8978  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
8979                    FCFLAGS="-O2"
8980                fi;;
8981   rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
8982                    FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
8983                fi;;
8984   powerpc*-aix*)
8985        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
8986                FCFLAGS="-O3 -qarch=ppc -qansialias -w"
8987                echo "*******************************************************"
8988                echo "*  You have AIX on an unknown powerpc system.  It is  *"
8989                echo "*  recommended that you use                           *"
8990                echo "*                                                     *"
8991                echo "*   FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
8992                echo "*                                 ^^^                 *"
8993                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
8994                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
8995                echo "*******************************************************"
8996        fi;;
8997   *darwin*)
8998        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
8999                FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
9000        fi
9001        if test "$FC" = ifort; then
9002                FCFLAGS="-O2"
9003        fi
9004        if test "$FC" = gfortran; then
9005                FCFLAGS="-Os"
9006        fi;;
9007  esac
6878  
9009  if test -z "$FCFLAGS"; then
9010        echo ""
9011        echo "*********************************************************"
9012        echo "* WARNING: Don't know the best FCFLAGS for this system  *"
9013        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
9014        echo "* (otherwise, a default of FCFLAGS=-O will be used)     *"
9015        echo "*********************************************************"
9016        echo ""
9017        FCFLAGS="-O"
9018  fi
6879  
6880  
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} accepts ${FCFLAGS}" >&5
9022 $as_echo_n "checking whether ${FC} accepts ${FCFLAGS}... " >&6; }
9023 if test "${ac_cv_ac_cv_guessed_f90flags+set}" = set; then :
9024  $as_echo_n "(cached) " >&6
9025 else
6881  
9027
9028 ac_ext=${ac_fc_srcext-f}
9029 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
9030 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
9031 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
9032
9033 echo 'program main' > conftest.$ac_ext
9034 echo 'end program main' >> conftest.$ac_ext
9035 ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5'
9036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9037  (eval $ac_compile) 2>&5
9038  ac_status=$?
9039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9040  test $ac_status = 0; }; then
9041        ac_cv_ac_cv_guessed_f90flags=yes
9042 else
9043        ac_cv_ac_cv_guessed_f90flags=no
9044 fi
9045 rm -f conftest*
9046 ac_ext=c
9047 ac_cpp='$CPP $CPPFLAGS'
9048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9051
9052
9053 fi
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ac_cv_guessed_f90flags" >&5
9055 $as_echo "$ac_cv_ac_cv_guessed_f90flags" >&6; }
9056 if test "$ac_cv_ac_cv_guessed_f90flags" = yes; then
9057        :
9058
9059 else
9060        :
9061
9062        echo ""
9063        echo "**********************************************************"
9064        echo "* WARNING: The guessed FCFLAGS don't seem to work with  *"
9065        echo "* your compiler.                                        *"
9066        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
9067        echo "*********************************************************"
9068        echo ""
9069        FCFLAGS=""
9070
9071 fi
9072
9073
9074 fi
9075
9076
9077
9078
9079
9080
9081
6882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU cc" >&5
6883   $as_echo_n "checking whether we are *really* using GNU cc... " >&6; }
6884 < if test "${ac_cv_prog_really_gcc+set}" = set; then :
6884 > if ${ac_cv_prog_really_gcc+:} false; then :
6885    $as_echo_n "(cached) " >&6
6886   else
6887  
# Line 9186 | Line 6986 | $as_echo_n "checking whether ${CC} accepts ${CFLAGS}..
6986  
6987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${CFLAGS}" >&5
6988   $as_echo_n "checking whether ${CC} accepts ${CFLAGS}... " >&6; }
6989 < if test "${ac_cv_ac_cv_guessed_cflags+set}" = set; then :
6989 > if ${ac_cv_ac_cv_guessed_cflags+:} false; then :
6990    $as_echo_n "(cached) " >&6
6991   else
6992    echo 'void f(){}' > conftest.c
# Line 9228 | Line 7028 | $as_echo_n "checking whether we are *really* using GNU
7028  
7029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU c++" >&5
7030   $as_echo_n "checking whether we are *really* using GNU c++... " >&6; }
7031 < if test "${ac_cv_prog_really_gxx+set}" = set; then :
7031 > if ${ac_cv_prog_really_gxx+:} false; then :
7032    $as_echo_n "(cached) " >&6
7033   else
7034  
# Line 9324 | Line 7124 | $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS
7124  
7125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${CXXFLAGS}" >&5
7126   $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS}... " >&6; }
7127 < if test "${ac_cv_ac_cv_guessed_cxxflags+set}" = set; then :
7127 > if ${ac_cv_ac_cv_guessed_cxxflags+:} false; then :
7128    $as_echo_n "(cached) " >&6
7129   else
7130    echo 'void f(){}' > conftest.cpp
# Line 9393 | Line 7193 | $as_echo_n "checking for $ac_word... " >&6; }
7193   set dummy doxygen; ac_word=$2
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195   $as_echo_n "checking for $ac_word... " >&6; }
7196 < if test "${ac_cv_path_DOXYGEN+set}" = set; then :
7196 > if ${ac_cv_path_DOXYGEN+:} false; then :
7197    $as_echo_n "(cached) " >&6
7198   else
7199    case $DOXYGEN in
# Line 9431 | Line 7231 | fi
7231  
7232          if test "x$DOXYGEN" = x; then
7233                  if test "x$enable_doxygen" = xyes; then
7234 <                        as_fn_error "could not find doxygen" "$LINENO" 5
7234 >                        as_fn_error $? "could not find doxygen" "$LINENO" 5
7235                  fi
7236                  enable_doc=no
7237          else
# Line 9440 | Line 7240 | $as_echo_n "checking for $ac_word... " >&6; }
7240   set dummy dot; ac_word=$2
7241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242   $as_echo_n "checking for $ac_word... " >&6; }
7243 < if test "${ac_cv_path_DOT+set}" = set; then :
7243 > if ${ac_cv_path_DOT+:} false; then :
7244    $as_echo_n "(cached) " >&6
7245   else
7246    case $DOT in
# Line 9488 | Line 7288 | if test x$DOT = x; then
7288  
7289   if test x$DOT = x; then
7290          if test "x$enable_dot" = xyes; then
7291 <                as_fn_error "could not find dot" "$LINENO" 5
7291 >                as_fn_error $? "could not find dot" "$LINENO" 5
7292          fi
7293          enable_dot=no
7294   else
# Line 9510 | Line 7310 | fi
7310  
7311  
7312  
9513
9514
9515
7313   ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/integrators/Makefile src/applications/atom2md/Makefile scripts/filepp"
7314  
7315  
# Line 9580 | Line 7377 | if diff "$cache_file" confcache >/dev/null 2>&1; then
7377       :end' >>confcache
7378   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7379    if test -w "$cache_file"; then
7380 <    test "x$cache_file" != "x/dev/null" &&
7380 >    if test "x$cache_file" != "x/dev/null"; then
7381        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7382   $as_echo "$as_me: updating cache $cache_file" >&6;}
7383 <    cat confcache >$cache_file
7383 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
7384 >        cat confcache >"$cache_file"
7385 >      else
7386 >        case $cache_file in #(
7387 >        */* | ?:*)
7388 >          mv -f confcache "$cache_file"$$ &&
7389 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
7390 >        *)
7391 >          mv -f confcache "$cache_file" ;;
7392 >        esac
7393 >      fi
7394 >    fi
7395    else
7396      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7397   $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
# Line 9599 | Line 7407 | ac_ltlibobjs=
7407  
7408   ac_libobjs=
7409   ac_ltlibobjs=
7410 + U=
7411   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7412    # 1. Remove the extension, and $U if already installed.
7413    ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
# Line 9614 | Line 7423 | LTLIBOBJS=$ac_ltlibobjs
7423  
7424  
7425  
7426 < : ${CONFIG_STATUS=./config.status}
7426 > : "${CONFIG_STATUS=./config.status}"
7427   ac_write_fail=0
7428   ac_clean_files_save=$ac_clean_files
7429   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
# Line 9715 | Line 7524 | IFS=" ""       $as_nl"
7524   IFS=" ""        $as_nl"
7525  
7526   # Find who we are.  Look in the path if we contain no directory separator.
7527 + as_myself=
7528   case $0 in #((
7529    *[\\/]* ) as_myself=$0 ;;
7530    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 9760 | Line 7570 | export LANGUAGE
7570   (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7571  
7572  
7573 < # as_fn_error ERROR [LINENO LOG_FD]
7574 < # ---------------------------------
7573 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
7574 > # ----------------------------------------
7575   # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7576   # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7577 < # script with status $?, using 1 if that was 0.
7577 > # script with STATUS, using 1 if that was 0.
7578   as_fn_error ()
7579   {
7580 <  as_status=$?; test $as_status -eq 0 && as_status=1
7581 <  if test "$3"; then
7582 <    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7583 <    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7580 >  as_status=$1; test $as_status -eq 0 && as_status=1
7581 >  if test "$4"; then
7582 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7583 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7584    fi
7585 <  $as_echo "$as_me: error: $1" >&2
7585 >  $as_echo "$as_me: error: $2" >&2
7586    as_fn_exit $as_status
7587   } # as_fn_error
7588  
# Line 9968 | Line 7778 | $as_echo X"$as_dir" |
7778        test -d "$as_dir" && break
7779      done
7780      test -z "$as_dirs" || eval "mkdir $as_dirs"
7781 <  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7781 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7782  
7783  
7784   } # as_fn_mkdir_p
# Line 10022 | Line 7832 | This file was extended by OpenMD $as_me 1.0, which was
7832   # values after options handling.
7833   ac_log="
7834   This file was extended by OpenMD $as_me 1.0, which was
7835 < generated by GNU Autoconf 2.65.  Invocation command line was
7835 > generated by GNU Autoconf 2.68.  Invocation command line was
7836  
7837    CONFIG_FILES    = $CONFIG_FILES
7838    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 10084 | Line 7894 | OpenMD config.status 1.0
7894   ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7895   ac_cs_version="\\
7896   OpenMD config.status 1.0
7897 < configured by $0, generated by GNU Autoconf 2.65,
7897 > configured by $0, generated by GNU Autoconf 2.68,
7898    with options \\"\$ac_cs_config\\"
7899  
7900 < Copyright (C) 2009 Free Software Foundation, Inc.
7900 > Copyright (C) 2010 Free Software Foundation, Inc.
7901   This config.status script is free software; the Free Software Foundation
7902   gives unlimited permission to copy, distribute and modify it."
7903  
# Line 10103 | Line 7913 | do
7913   while test $# != 0
7914   do
7915    case $1 in
7916 <  --*=*)
7916 >  --*=?*)
7917      ac_option=`expr "X$1" : 'X\([^=]*\)='`
7918      ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7919      ac_shift=:
7920      ;;
7921 +  --*=)
7922 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7923 +    ac_optarg=
7924 +    ac_shift=:
7925 +    ;;
7926    *)
7927      ac_option=$1
7928      ac_optarg=$2
# Line 10129 | Line 7944 | do
7944      $ac_shift
7945      case $ac_optarg in
7946      *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7947 +    '') as_fn_error $? "missing file argument" ;;
7948      esac
7949      as_fn_append CONFIG_FILES " '$ac_optarg'"
7950      ac_need_defaults=false;;
# Line 10141 | Line 7957 | do
7957      ac_need_defaults=false;;
7958    --he | --h)
7959      # Conflict between --help and --header
7960 <    as_fn_error "ambiguous option: \`$1'
7960 >    as_fn_error $? "ambiguous option: \`$1'
7961   Try \`$0 --help' for more information.";;
7962    --help | --hel | -h )
7963      $as_echo "$ac_cs_usage"; exit ;;
# Line 10150 | Line 7966 | Try \`$0 --help' for more information.";;
7966      ac_cs_silent=: ;;
7967  
7968    # This is an error.
7969 <  -*) as_fn_error "unrecognized option: \`$1'
7969 >  -*) as_fn_error $? "unrecognized option: \`$1'
7970   Try \`$0 --help' for more information." ;;
7971  
7972    *) as_fn_append ac_config_targets " $1"
# Line 10207 | Line 8023 | do
8023      "src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;;
8024      "scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
8025  
8026 <  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8026 >  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8027    esac
8028   done
8029  
# Line 10229 | Line 8045 | $debug ||
8045   # after its creation but before its name has been assigned to `$tmp'.
8046   $debug ||
8047   {
8048 <  tmp=
8048 >  tmp= ac_tmp=
8049    trap 'exit_status=$?
8050 <  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8050 >  : "${ac_tmp:=$tmp}"
8051 >  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8052   ' 0
8053    trap 'as_fn_exit 1' 1 2 13 15
8054   }
# Line 10239 | Line 8056 | $debug ||
8056  
8057   {
8058    tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8059 <  test -n "$tmp" && test -d "$tmp"
8059 >  test -d "$tmp"
8060   }  ||
8061   {
8062    tmp=./conf$$-$RANDOM
8063    (umask 077 && mkdir "$tmp")
8064 < } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8064 > } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8065 > ac_tmp=$tmp
8066  
8067   # Set up the scripts for CONFIG_FILES section.
8068   # No need to generate them if there are no CONFIG_FILES.
# Line 10261 | Line 8079 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8079   fi
8080   ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8081   if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8082 <  ac_cs_awk_cr='\r'
8082 >  ac_cs_awk_cr='\\r'
8083   else
8084    ac_cs_awk_cr=$ac_cr
8085   fi
8086  
8087 < echo 'BEGIN {' >"$tmp/subs1.awk" &&
8087 > echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8088   _ACEOF
8089  
8090  
# Line 10275 | Line 8093 | _ACEOF
8093    echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8094    echo "_ACEOF"
8095   } >conf$$subs.sh ||
8096 <  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8097 < ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8096 >  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8097 > ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8098   ac_delim='%!_!# '
8099   for ac_last_try in false false false false false :; do
8100    . ./conf$$subs.sh ||
8101 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8101 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8102  
8103    ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8104    if test $ac_delim_n = $ac_delim_num; then
8105      break
8106    elif $ac_last_try; then
8107 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8107 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8108    else
8109      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8110    fi
# Line 10294 | Line 8112 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8112   rm -f conf$$subs.sh
8113  
8114   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8115 < cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8115 > cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8116   _ACEOF
8117   sed -n '
8118   h
# Line 10342 | Line 8160 | _ACAWK
8160   rm -f conf$$subs.awk
8161   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8162   _ACAWK
8163 < cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8163 > cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8164    for (key in S) S_is_set[key] = 1
8165    FS = ""
8166  
# Line 10374 | Line 8192 | else
8192    sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8193   else
8194    cat
8195 < fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8196 <  || as_fn_error "could not setup config files machinery" "$LINENO" 5
8195 > fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8196 >  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8197   _ACEOF
8198  
8199 < # VPATH may cause trouble with some makes, so we remove $(srcdir),
8200 < # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8199 > # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8200 > # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8201   # trailing colons and then remove the whole line if VPATH becomes empty
8202   # (actually we leave an empty line to preserve line numbers).
8203   if test "x$srcdir" = x.; then
8204 <  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8205 < s/:*\$(srcdir):*/:/
8206 < s/:*\${srcdir}:*/:/
8207 < s/:*@srcdir@:*/:/
8208 < s/^\([^=]*=[     ]*\):*/\1/
8204 >  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
8205 > h
8206 > s///
8207 > s/^/:/
8208 > s/[      ]*$/:/
8209 > s/:\$(srcdir):/:/g
8210 > s/:\${srcdir}:/:/g
8211 > s/:@srcdir@:/:/g
8212 > s/^:*//
8213   s/:*$//
8214 + x
8215 + s/\(=[   ]*\).*/\1/
8216 + G
8217 + s/\n//
8218   s/^[^=]*=[       ]*$//
8219   }'
8220   fi
# Line 10400 | Line 8226 | if test -n "$CONFIG_HEADERS"; then
8226   # No need to generate them if there are no CONFIG_HEADERS.
8227   # This happens for instance with `./config.status Makefile'.
8228   if test -n "$CONFIG_HEADERS"; then
8229 < cat >"$tmp/defines.awk" <<\_ACAWK ||
8229 > cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8230   BEGIN {
8231   _ACEOF
8232  
# Line 10412 | Line 8238 | for ac_last_try in false false :; do
8238   # handling of long lines.
8239   ac_delim='%!_!# '
8240   for ac_last_try in false false :; do
8241 <  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8242 <  if test -z "$ac_t"; then
8241 >  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8242 >  if test -z "$ac_tt"; then
8243      break
8244    elif $ac_last_try; then
8245 <    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8245 >    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8246    else
8247      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8248    fi
# Line 10501 | Line 8327 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8327   _ACAWK
8328   _ACEOF
8329   cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8330 <  as_fn_error "could not setup config headers machinery" "$LINENO" 5
8330 >  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8331   fi # test -n "$CONFIG_HEADERS"
8332  
8333  
# Line 10514 | Line 8340 | do
8340    esac
8341    case $ac_mode$ac_tag in
8342    :[FHL]*:*);;
8343 <  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8343 >  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8344    :[FH]-) ac_tag=-:-;;
8345    :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8346    esac
# Line 10533 | Line 8359 | do
8359      for ac_f
8360      do
8361        case $ac_f in
8362 <      -) ac_f="$tmp/stdin";;
8362 >      -) ac_f="$ac_tmp/stdin";;
8363        *) # Look for the file first in the build tree, then in the source tree
8364           # (if the path is not absolute).  The absolute path cannot be DOS-style,
8365           # because $ac_f cannot contain `:'.
# Line 10542 | Line 8368 | do
8368             [\\/$]*) false;;
8369             *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8370             esac ||
8371 <           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8371 >           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8372        esac
8373        case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8374        as_fn_append ac_file_inputs " '$ac_f'"
# Line 10568 | Line 8394 | $as_echo "$as_me: creating $ac_file" >&6;}
8394      esac
8395  
8396      case $ac_tag in
8397 <    *:-:* | *:-) cat >"$tmp/stdin" \
8398 <      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8397 >    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8398 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8399      esac
8400      ;;
8401    esac
# Line 10699 | Line 8525 | $ac_datarootdir_hack
8525   s&@INSTALL@&$ac_INSTALL&;t t
8526   $ac_datarootdir_hack
8527   "
8528 < eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8529 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
8528 > eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8529 >  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8530  
8531   test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8532 <  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8533 <  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8532 >  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8533 >  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
8534 >      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8535    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8536 < which seems to be undefined.  Please make sure it is defined." >&5
8536 > which seems to be undefined.  Please make sure it is defined" >&5
8537   $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8538 < which seems to be undefined.  Please make sure it is defined." >&2;}
8538 > which seems to be undefined.  Please make sure it is defined" >&2;}
8539  
8540 <  rm -f "$tmp/stdin"
8540 >  rm -f "$ac_tmp/stdin"
8541    case $ac_file in
8542 <  -) cat "$tmp/out" && rm -f "$tmp/out";;
8543 <  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8542 >  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8543 >  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8544    esac \
8545 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
8545 >  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8546   ;;
8547    :H)
8548    #
# Line 10724 | Line 8551 | which seems to be undefined.  Please make sure it is d
8551    if test x"$ac_file" != x-; then
8552      {
8553        $as_echo "/* $configure_input  */" \
8554 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8555 <    } >"$tmp/config.h" \
8556 <      || as_fn_error "could not create $ac_file" "$LINENO" 5
8557 <    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8554 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8555 >    } >"$ac_tmp/config.h" \
8556 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8557 >    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8558        { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8559   $as_echo "$as_me: $ac_file is unchanged" >&6;}
8560      else
8561        rm -f "$ac_file"
8562 <      mv "$tmp/config.h" "$ac_file" \
8563 <        || as_fn_error "could not create $ac_file" "$LINENO" 5
8562 >      mv "$ac_tmp/config.h" "$ac_file" \
8563 >        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8564      fi
8565    else
8566      $as_echo "/* $configure_input  */" \
8567 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8568 <      || as_fn_error "could not create -" "$LINENO" 5
8567 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8568 >      || as_fn_error $? "could not create -" "$LINENO" 5
8569    fi
8570   ;;
8571  
# Line 10763 | Line 8590 | test $ac_write_fail = 0 ||
8590   ac_clean_files=$ac_clean_files_save
8591  
8592   test $ac_write_fail = 0 ||
8593 <  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8593 >  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8594  
8595  
8596   # configure is writing to config.log, and then calls config.status.
# Line 10784 | Line 8611 | if test "$no_create" != yes; then
8611    exec 5>>config.log
8612    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8613    # would make configure fail if this is the last instruction.
8614 <  $ac_cs_success || as_fn_exit $?
8614 >  $ac_cs_success || as_fn_exit 1
8615   fi
8616   if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8617    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines