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 1395 by gezelter, Fri Dec 4 17:38:47 2009 UTC vs.
branches/development/configure (file contents), Revision 1632 by gezelter, Wed Sep 14 21:44:08 2011 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by GNU Autoconf 2.65 for OpenMD 1.0.
3 > # Generated by GNU Autoconf 2.68 for OpenMD 2.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7   #
8   # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 < # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 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 552 | Line 560 | PACKAGE_TARNAME='openmd'
560   # Identity of this package.
561   PACKAGE_NAME='OpenMD'
562   PACKAGE_TARNAME='openmd'
563 < PACKAGE_VERSION='1.0'
564 < PACKAGE_STRING='OpenMD 1.0'
563 > PACKAGE_VERSION='2.0'
564 > PACKAGE_STRING='OpenMD 2.0'
565   PACKAGE_BUGREPORT='gezelter@nd.edu'
566   PACKAGE_URL=''
567  
# 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
638 PS
635   AR
636   INSTALL_DATA
637   INSTALL_SCRIPT
# Line 649 | Line 645 | USE_MPI
645   GREP
646   CPP
647   USE_MPI
652 MPIFC
653 ac_ct_FC
654 FCFLAGS
655 FC
648   MPICC
649 + MPILIBS
650 + MPICXX
651 + LIBDL
652   ac_ct_CC
653   CFLAGS
654   CC
660 MPILIBS
661 MPICXX
655   OBJEXT
656   EXEEXT
657   ac_ct_CXX
# Line 666 | Line 659 | CXX
659   LDFLAGS
660   CXXFLAGS
661   CXX
669 ac_fc_path
670 ac_fc_set
671 ac_cxx_path
672 ac_cxx_set
673 ac_cc_path
674 ac_cc_set
662   USE_SINGLE_PRECISION
663   debug
664   PROGNAME
# Line 747 | Line 734 | CCC
734   LIBS
735   CPPFLAGS
736   CCC
750 MPICXX
737   CC
738   CFLAGS
739 + MPICXX
740   MPICC
754 FC
755 FCFLAGS
756 MPIFC
741   CPP
742   CXXCPP'
743  
# Line 818 | Line 802 | do
802    fi
803  
804    case $ac_option in
805 <  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 <  *)    ac_optarg=yes ;;
805 >  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 >  *=)   ac_optarg= ;;
807 >  *)    ac_optarg=yes ;;
808    esac
809  
810    # Accept the important Cygnus configure options, so we can diagnose typos.
# Line 864 | Line 849 | do
849      ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850      # Reject names that are not valid shell variable names.
851      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 <      as_fn_error "invalid feature name: $ac_useropt"
852 >      as_fn_error $? "invalid feature name: $ac_useropt"
853      ac_useropt_orig=$ac_useropt
854      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855      case $ac_user_opts in
# Line 890 | Line 875 | do
875      ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876      # Reject names that are not valid shell variable names.
877      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 <      as_fn_error "invalid feature name: $ac_useropt"
878 >      as_fn_error $? "invalid feature name: $ac_useropt"
879      ac_useropt_orig=$ac_useropt
880      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881      case $ac_user_opts in
# Line 1094 | Line 1079 | do
1079      ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1080      # Reject names that are not valid shell variable names.
1081      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 <      as_fn_error "invalid package name: $ac_useropt"
1082 >      as_fn_error $? "invalid package name: $ac_useropt"
1083      ac_useropt_orig=$ac_useropt
1084      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085      case $ac_user_opts in
# Line 1110 | Line 1095 | do
1095      ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096      # Reject names that are not valid shell variable names.
1097      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 <      as_fn_error "invalid package name: $ac_useropt"
1098 >      as_fn_error $? "invalid package name: $ac_useropt"
1099      ac_useropt_orig=$ac_useropt
1100      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101      case $ac_user_opts in
# Line 1140 | Line 1125 | do
1125    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126      x_libraries=$ac_optarg ;;
1127  
1128 <  -*) as_fn_error "unrecognized option: \`$ac_option'
1129 < Try \`$0 --help' for more information."
1128 >  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1129 > Try \`$0 --help' for more information"
1130      ;;
1131  
1132    *=*)
# Line 1149 | Line 1134 | Try \`$0 --help' for more information."
1134      # Reject names that are not valid shell variable names.
1135      case $ac_envvar in #(
1136        '' | [0-9]* | *[!_$as_cr_alnum]* )
1137 <      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1137 >      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1138      esac
1139      eval $ac_envvar=\$ac_optarg
1140      export $ac_envvar ;;
# Line 1159 | Line 1144 | Try \`$0 --help' for more information."
1144      $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146        $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147 <    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1147 >    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1148      ;;
1149  
1150    esac
# Line 1167 | Line 1152 | if test -n "$ac_prev"; then
1152  
1153   if test -n "$ac_prev"; then
1154    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155 <  as_fn_error "missing argument to $ac_option"
1155 >  as_fn_error $? "missing argument to $ac_option"
1156   fi
1157  
1158   if test -n "$ac_unrecognized_opts"; then
1159    case $enable_option_checking in
1160      no) ;;
1161 <    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1161 >    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1162      *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163    esac
1164   fi
# Line 1196 | Line 1181 | do
1181      [\\/$]* | ?:[\\/]* )  continue;;
1182      NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183    esac
1184 <  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1184 >  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1185   done
1186  
1187   # There might be people who depend on the old broken behavior: `$host'
# Line 1210 | Line 1195 | if test "x$host_alias" != x; then
1195   if test "x$host_alias" != x; then
1196    if test "x$build_alias" = x; then
1197      cross_compiling=maybe
1198 <    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1199 <    If a cross compiler is detected then cross compile mode will be used." >&2
1198 >    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1199 >    If a cross compiler is detected then cross compile mode will be used" >&2
1200    elif test "x$build_alias" != "x$host_alias"; then
1201      cross_compiling=yes
1202    fi
# Line 1226 | Line 1211 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1211   ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212   ac_ls_di=`ls -di .` &&
1213   ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214 <  as_fn_error "working directory cannot be determined"
1214 >  as_fn_error $? "working directory cannot be determined"
1215   test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216 <  as_fn_error "pwd does not report name of working directory"
1216 >  as_fn_error $? "pwd does not report name of working directory"
1217  
1218  
1219   # Find the source files, if location was not specified.
# Line 1267 | Line 1252 | if test ! -r "$srcdir/$ac_unique_file"; then
1252   fi
1253   if test ! -r "$srcdir/$ac_unique_file"; then
1254    test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255 <  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1255 >  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1256   fi
1257   ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258   ac_abs_confdir=`(
1259 <        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1259 >        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1260          pwd)`
1261   # When building in place, set srcdir=.
1262   if test "$ac_abs_confdir" = "$ac_pwd"; then
# Line 1297 | Line 1282 | if test "$ac_init_help" = "long"; then
1282    # Omit some internal or obsolete options to make the list less imposing.
1283    # This message is too long to be a string in the A/UX 3.1 sh.
1284    cat <<_ACEOF
1285 < \`configure' configures OpenMD 1.0 to adapt to many kinds of systems.
1285 > \`configure' configures OpenMD 2.0 to adapt to many kinds of systems.
1286  
1287   Usage: $0 [OPTION]... [VAR=VALUE]...
1288  
# Line 1311 | Line 1296 | Configuration:
1296        --help=short        display options specific to this package
1297        --help=recursive    display the short help of all the included packages
1298    -V, --version           display version information and exit
1299 <  -q, --quiet, --silent   do not print \`checking...' messages
1299 >  -q, --quiet, --silent   do not print \`checking ...' messages
1300        --cache-file=FILE   cache test results in FILE [disabled]
1301    -C, --config-cache      alias for \`--cache-file=config.cache'
1302    -n, --no-create         do not create output files
# Line 1362 | Line 1347 | if test -n "$ac_init_help"; then
1347  
1348   if test -n "$ac_init_help"; then
1349    case $ac_init_help in
1350 <     short | recursive ) echo "Configuration of OpenMD 1.0:";;
1350 >     short | recursive ) echo "Configuration of OpenMD 2.0:";;
1351     esac
1352    cat <<\_ACEOF
1353  
# Line 1402 | Line 1387 | Some influential environment variables:
1387    LIBS        libraries to pass to the linker, e.g. -l<library>
1388    CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1389                you have headers in a nonstandard directory <include dir>
1405  MPICXX      MPI C++ compiler command
1390    CC          C compiler command
1391    CFLAGS      C compiler flags
1392 +  MPICXX      MPI C++ compiler command
1393    MPICC       MPI C compiler command
1409  FC          Fortran compiler command
1410  FCFLAGS     Fortran compiler flags
1411  MPIFC       MPI Fortran compiler command
1394    CPP         C preprocessor
1395    CXXCPP      C++ preprocessor
1396  
# Line 1478 | Line 1460 | if $ac_init_version; then
1460   test -n "$ac_init_help" && exit $ac_status
1461   if $ac_init_version; then
1462    cat <<\_ACEOF
1463 < OpenMD configure 1.0
1464 < generated by GNU Autoconf 2.65
1463 > OpenMD configure 2.0
1464 > generated by GNU Autoconf 2.68
1465  
1466 < Copyright (C) 2009 Free Software Foundation, Inc.
1466 > Copyright (C) 2010 Free Software Foundation, Inc.
1467   This configure script is free software; the Free Software Foundation
1468   gives unlimited permission to copy, distribute and modify it.
1469   _ACEOF
# Line 1525 | Line 1507 | fi
1507  
1508          ac_retval=1
1509   fi
1510 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1510 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1511    as_fn_set_status $ac_retval
1512  
1513   } # ac_fn_cxx_try_compile
1514 +
1515 + # ac_fn_c_try_compile LINENO
1516 + # --------------------------
1517 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 + ac_fn_c_try_compile ()
1519 + {
1520 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 +  rm -f conftest.$ac_objext
1522 +  if { { ac_try="$ac_compile"
1523 + case "(($ac_try" in
1524 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 +  *) ac_try_echo=$ac_try;;
1526 + esac
1527 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 + $as_echo "$ac_try_echo"; } >&5
1529 +  (eval "$ac_compile") 2>conftest.err
1530 +  ac_status=$?
1531 +  if test -s conftest.err; then
1532 +    grep -v '^ *+' conftest.err >conftest.er1
1533 +    cat conftest.er1 >&5
1534 +    mv -f conftest.er1 conftest.err
1535 +  fi
1536 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 +  test $ac_status = 0; } && {
1538 +         test -z "$ac_c_werror_flag" ||
1539 +         test ! -s conftest.err
1540 +       } && test -s conftest.$ac_objext; then :
1541 +  ac_retval=0
1542 + else
1543 +  $as_echo "$as_me: failed program was:" >&5
1544 + sed 's/^/| /' conftest.$ac_ext >&5
1545  
1546 +        ac_retval=1
1547 + fi
1548 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 +  as_fn_set_status $ac_retval
1550 +
1551 + } # ac_fn_c_try_compile
1552 +
1553   # ac_fn_cxx_try_link LINENO
1554   # -------------------------
1555   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1571 | Line 1591 | fi
1591    # interfere with the next link command; also delete a directory that is
1592    # left behind by Apple's compiler.  We do this before executing the actions.
1593    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1594 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1594 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595    as_fn_set_status $ac_retval
1596  
1597   } # ac_fn_cxx_try_link
# Line 1584 | Line 1604 | $as_echo_n "checking for $2... " >&6; }
1604    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606   $as_echo_n "checking for $2... " >&6; }
1607 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1607 > if eval \${$3+:} false; then :
1608    $as_echo_n "(cached) " >&6
1609   else
1610    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1639 | Line 1659 | $as_echo "$ac_res" >&6; }
1659   eval ac_res=\$$3
1660                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661   $as_echo "$ac_res" >&6; }
1662 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1662 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663  
1664   } # ac_fn_cxx_check_func
1665  
1646 # ac_fn_c_try_compile LINENO
1647 # --------------------------
1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_compile ()
1650 {
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  rm -f conftest.$ac_objext
1653  if { { ac_try="$ac_compile"
1654 case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_compile") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } && {
1669         test -z "$ac_c_werror_flag" ||
1670         test ! -s conftest.err
1671       } && test -s conftest.$ac_objext; then :
1672  ac_retval=0
1673 else
1674  $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677        ac_retval=1
1678 fi
1679  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1680  as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_compile
1683
1666   # ac_fn_c_try_link LINENO
1667   # -----------------------
1668   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1722 | Line 1704 | fi
1704    # interfere with the next link command; also delete a directory that is
1705    # left behind by Apple's compiler.  We do this before executing the actions.
1706    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708    as_fn_set_status $ac_retval
1709  
1710   } # ac_fn_c_try_link
# Line 1735 | Line 1717 | $as_echo_n "checking for $2... " >&6; }
1717    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719   $as_echo_n "checking for $2... " >&6; }
1720 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720 > if eval \${$3+:} false; then :
1721    $as_echo_n "(cached) " >&6
1722   else
1723    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1790 | Line 1772 | $as_echo "$ac_res" >&6; }
1772   eval ac_res=\$$3
1773                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774   $as_echo "$ac_res" >&6; }
1775 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776  
1777   } # ac_fn_c_check_func
1796
1797 # ac_fn_fc_try_compile LINENO
1798 # ---------------------------
1799 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_fc_try_compile ()
1801 {
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  rm -f conftest.$ac_objext
1804  if { { ac_try="$ac_compile"
1805 case "(($ac_try" in
1806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807  *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811  (eval "$ac_compile") 2>conftest.err
1812  ac_status=$?
1813  if test -s conftest.err; then
1814    grep -v '^ *+' conftest.err >conftest.er1
1815    cat conftest.er1 >&5
1816    mv -f conftest.er1 conftest.err
1817  fi
1818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819  test $ac_status = 0; } && {
1820         test -z "$ac_fc_werror_flag" ||
1821         test ! -s conftest.err
1822       } && test -s conftest.$ac_objext; then :
1823  ac_retval=0
1824 else
1825  $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828        ac_retval=1
1829 fi
1830  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831  as_fn_set_status $ac_retval
1832
1833 } # ac_fn_fc_try_compile
1834
1835 # ac_fn_fc_try_link LINENO
1836 # ------------------------
1837 # Try to link conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_fc_try_link ()
1839 {
1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841  rm -f conftest.$ac_objext conftest$ac_exeext
1842  if { { ac_try="$ac_link"
1843 case "(($ac_try" in
1844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845  *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849  (eval "$ac_link") 2>conftest.err
1850  ac_status=$?
1851  if test -s conftest.err; then
1852    grep -v '^ *+' conftest.err >conftest.er1
1853    cat conftest.er1 >&5
1854    mv -f conftest.er1 conftest.err
1855  fi
1856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857  test $ac_status = 0; } && {
1858         test -z "$ac_fc_werror_flag" ||
1859         test ! -s conftest.err
1860       } && test -s conftest$ac_exeext && {
1861         test "$cross_compiling" = yes ||
1862         $as_test_x conftest$ac_exeext
1863       }; then :
1864  ac_retval=0
1865 else
1866  $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1778  
1869        ac_retval=1
1870 fi
1871  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873  # interfere with the next link command; also delete a directory that is
1874  # left behind by Apple's compiler.  We do this before executing the actions.
1875  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877  as_fn_set_status $ac_retval
1878
1879 } # ac_fn_fc_try_link
1880
1779   # ac_fn_c_try_cpp LINENO
1780   # ----------------------
1781   # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
# Line 1899 | Line 1797 | $as_echo "$ac_try_echo"; } >&5
1797      mv -f conftest.er1 conftest.err
1798    fi
1799    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 <  test $ac_status = 0; } >/dev/null && {
1800 >  test $ac_status = 0; } > conftest.i && {
1801           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1802           test ! -s conftest.err
1803         }; then :
# Line 1910 | Line 1808 | fi
1808  
1809      ac_retval=1
1810   fi
1811 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812    as_fn_set_status $ac_retval
1813  
1814   } # ac_fn_c_try_cpp
# Line 1923 | Line 1821 | ac_fn_c_check_header_mongrel ()
1821   ac_fn_c_check_header_mongrel ()
1822   {
1823    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824 >  if eval \${$3+:} false; then :
1825    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826   $as_echo_n "checking for $2... " >&6; }
1827 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1827 > if eval \${$3+:} false; then :
1828    $as_echo_n "(cached) " >&6
1829   fi
1830   eval ac_res=\$$3
# Line 1962 | Line 1860 | fi
1860   else
1861    ac_header_preproc=no
1862   fi
1863 < rm -f conftest.err conftest.$ac_ext
1863 > rm -f conftest.err conftest.i conftest.$ac_ext
1864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1865   $as_echo "$ac_header_preproc" >&6; }
1866  
# Line 1985 | Line 1883 | $as_echo "$as_me: WARNING: $2: proceeding with the com
1883   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1884      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1886 < ( cat <<\_ASBOX
1989 < ## ------------------------------ ##
1886 > ( $as_echo "## ------------------------------ ##
1887   ## Report this to gezelter@nd.edu ##
1888 < ## ------------------------------ ##
1992 < _ASBOX
1888 > ## ------------------------------ ##"
1889       ) | sed "s/^/$as_me: WARNING:     /" >&2
1890      ;;
1891   esac
1892    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893   $as_echo_n "checking for $2... " >&6; }
1894 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 > if eval \${$3+:} false; then :
1895    $as_echo_n "(cached) " >&6
1896   else
1897    eval "$3=\$ac_header_compiler"
# Line 2004 | Line 1900 | fi
1900                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901   $as_echo "$ac_res" >&6; }
1902   fi
1903 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904  
1905   } # ac_fn_c_check_header_mongrel
1906  
# Line 2045 | Line 1941 | fi
1941         ac_retval=$ac_status
1942   fi
1943    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1944 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945    as_fn_set_status $ac_retval
1946  
1947   } # ac_fn_c_try_run
# Line 2059 | Line 1955 | $as_echo_n "checking for $2... " >&6; }
1955    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957   $as_echo_n "checking for $2... " >&6; }
1958 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1958 > if eval \${$3+:} false; then :
1959    $as_echo_n "(cached) " >&6
1960   else
1961    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 2077 | Line 1973 | $as_echo "$ac_res" >&6; }
1973   eval ac_res=\$$3
1974                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975   $as_echo "$ac_res" >&6; }
1976 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977  
1978   } # ac_fn_c_check_header_compile
1979  
# Line 2102 | Line 1998 | $as_echo "$ac_try_echo"; } >&5
1998      mv -f conftest.er1 conftest.err
1999    fi
2000    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 <  test $ac_status = 0; } >/dev/null && {
2001 >  test $ac_status = 0; } > conftest.i && {
2002           test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2003           test ! -s conftest.err
2004         }; then :
# Line 2113 | Line 2009 | fi
2009  
2010      ac_retval=1
2011   fi
2012 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013    as_fn_set_status $ac_retval
2014  
2015   } # ac_fn_cxx_try_cpp
# Line 2126 | Line 2022 | ac_fn_cxx_check_header_mongrel ()
2022   ac_fn_cxx_check_header_mongrel ()
2023   {
2024    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 >  if eval \${$3+:} false; then :
2026    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027   $as_echo_n "checking for $2... " >&6; }
2028 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 > if eval \${$3+:} false; then :
2029    $as_echo_n "(cached) " >&6
2030   fi
2031   eval ac_res=\$$3
# Line 2165 | Line 2061 | fi
2061   else
2062    ac_header_preproc=no
2063   fi
2064 < rm -f conftest.err conftest.$ac_ext
2064 > rm -f conftest.err conftest.i conftest.$ac_ext
2065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2066   $as_echo "$ac_header_preproc" >&6; }
2067  
# Line 2188 | Line 2084 | $as_echo "$as_me: WARNING: $2: proceeding with the com
2084   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2085      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2086   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2087 < ( cat <<\_ASBOX
2192 < ## ------------------------------ ##
2087 > ( $as_echo "## ------------------------------ ##
2088   ## Report this to gezelter@nd.edu ##
2089 < ## ------------------------------ ##
2195 < _ASBOX
2089 > ## ------------------------------ ##"
2090       ) | sed "s/^/$as_me: WARNING:     /" >&2
2091      ;;
2092   esac
2093    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094   $as_echo_n "checking for $2... " >&6; }
2095 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2095 > if eval \${$3+:} false; then :
2096    $as_echo_n "(cached) " >&6
2097   else
2098    eval "$3=\$ac_header_compiler"
# Line 2207 | Line 2101 | fi
2101                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102   $as_echo "$ac_res" >&6; }
2103   fi
2104 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105  
2106   } # ac_fn_cxx_check_header_mongrel
2107  
# Line 2220 | Line 2114 | $as_echo_n "checking for $2... " >&6; }
2114    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116   $as_echo_n "checking for $2... " >&6; }
2117 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2117 > if eval \${$3+:} false; then :
2118    $as_echo_n "(cached) " >&6
2119   else
2120    eval "$3=no"
2121    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122   /* end confdefs.h.  */
2123   $4
2230 #ifdef FC_DUMMY_MAIN
2231 #ifndef FC_DUMMY_MAIN_EQ_F77
2232 #  ifdef __cplusplus
2233     extern "C"
2234 #  endif
2235   int FC_DUMMY_MAIN() { return 1; }
2236 #endif
2237 #endif
2124   int
2125   main ()
2126   {
# Line 2248 | Line 2134 | $4
2134    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135   /* end confdefs.h.  */
2136   $4
2251 #ifdef FC_DUMMY_MAIN
2252 #ifndef FC_DUMMY_MAIN_EQ_F77
2253 #  ifdef __cplusplus
2254     extern "C"
2255 #  endif
2256   int FC_DUMMY_MAIN() { return 1; }
2257 #endif
2258 #endif
2137   int
2138   main ()
2139   {
# Line 2277 | Line 2155 | $as_echo "$ac_res" >&6; }
2155   eval ac_res=\$$3
2156                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157   $as_echo "$ac_res" >&6; }
2158 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2158 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159  
2160   } # ac_fn_c_check_type
2161   cat >config.log <<_ACEOF
2162   This file contains any messages produced by compilers while
2163   running configure, to aid debugging if configure makes a mistake.
2164  
2165 < It was created by OpenMD $as_me 1.0, which was
2166 < generated by GNU Autoconf 2.65.  Invocation command line was
2165 > It was created by OpenMD $as_me 2.0, which was
2166 > generated by GNU Autoconf 2.68.  Invocation command line was
2167  
2168    $ $0 $@
2169  
# Line 2395 | Line 2273 | trap 'exit_status=$?
2273    {
2274      echo
2275  
2276 <    cat <<\_ASBOX
2399 < ## ---------------- ##
2276 >    $as_echo "## ---------------- ##
2277   ## Cache variables. ##
2278 < ## ---------------- ##
2402 < _ASBOX
2278 > ## ---------------- ##"
2279      echo
2280      # The following way of writing the cache mishandles newlines in values,
2281   (
# Line 2433 | Line 2309 | $as_echo "$as_me: WARNING: cache variable $ac_var cont
2309   )
2310      echo
2311  
2312 <    cat <<\_ASBOX
2437 < ## ----------------- ##
2312 >    $as_echo "## ----------------- ##
2313   ## Output variables. ##
2314 < ## ----------------- ##
2440 < _ASBOX
2314 > ## ----------------- ##"
2315      echo
2316      for ac_var in $ac_subst_vars
2317      do
# Line 2450 | Line 2324 | _ASBOX
2324      echo
2325  
2326      if test -n "$ac_subst_files"; then
2327 <      cat <<\_ASBOX
2454 < ## ------------------- ##
2327 >      $as_echo "## ------------------- ##
2328   ## File substitutions. ##
2329 < ## ------------------- ##
2457 < _ASBOX
2329 > ## ------------------- ##"
2330        echo
2331        for ac_var in $ac_subst_files
2332        do
# Line 2468 | Line 2340 | _ASBOX
2340      fi
2341  
2342      if test -s confdefs.h; then
2343 <      cat <<\_ASBOX
2472 < ## ----------- ##
2343 >      $as_echo "## ----------- ##
2344   ## confdefs.h. ##
2345 < ## ----------- ##
2475 < _ASBOX
2345 > ## ----------- ##"
2346        echo
2347        cat confdefs.h
2348        echo
# Line 2527 | Line 2397 | if test -n "$CONFIG_SITE"; then
2397   ac_site_file1=NONE
2398   ac_site_file2=NONE
2399   if test -n "$CONFIG_SITE"; then
2400 <  ac_site_file1=$CONFIG_SITE
2400 >  # We do not want a PATH search for config.site.
2401 >  case $CONFIG_SITE in #((
2402 >    -*)  ac_site_file1=./$CONFIG_SITE;;
2403 >    */*) ac_site_file1=$CONFIG_SITE;;
2404 >    *)   ac_site_file1=./$CONFIG_SITE;;
2405 >  esac
2406   elif test "x$prefix" != xNONE; then
2407    ac_site_file1=$prefix/share/config.site
2408    ac_site_file2=$prefix/etc/config.site
# Line 2542 | Line 2417 | $as_echo "$as_me: loading site script $ac_site_file" >
2417      { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2418   $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2419      sed 's/^/| /' "$ac_site_file" >&5
2420 <    . "$ac_site_file"
2420 >    . "$ac_site_file" \
2421 >      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2422 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2423 > as_fn_error $? "failed to load site script $ac_site_file
2424 > See \`config.log' for more details" "$LINENO" 5; }
2425    fi
2426   done
2427  
# Line 2618 | Line 2497 | $as_echo "$as_me: error: changes in the environment ca
2497   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2498    { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2499   $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2500 <  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2500 >  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2501   fi
2502   ## -------------------- ##
2503   ## Main body of script. ##
# Line 2633 | Line 2512 | for ac_dir in ac-tools "$srcdir"/ac-tools; do
2512  
2513   ac_aux_dir=
2514   for ac_dir in ac-tools "$srcdir"/ac-tools; do
2515 <  for ac_t in install-sh install.sh shtool; do
2516 <    if test -f "$ac_dir/$ac_t"; then
2517 <      ac_aux_dir=$ac_dir
2518 <      ac_install_sh="$ac_aux_dir/$ac_t -c"
2519 <      break 2
2520 <    fi
2521 <  done
2515 >  if test -f "$ac_dir/install-sh"; then
2516 >    ac_aux_dir=$ac_dir
2517 >    ac_install_sh="$ac_aux_dir/install-sh -c"
2518 >    break
2519 >  elif test -f "$ac_dir/install.sh"; then
2520 >    ac_aux_dir=$ac_dir
2521 >    ac_install_sh="$ac_aux_dir/install.sh -c"
2522 >    break
2523 >  elif test -f "$ac_dir/shtool"; then
2524 >    ac_aux_dir=$ac_dir
2525 >    ac_install_sh="$ac_aux_dir/shtool install -c"
2526 >    break
2527 >  fi
2528   done
2529   if test -z "$ac_aux_dir"; then
2530 <  as_fn_error "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2530 >  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2531   fi
2532  
2533   # These three variables are undocumented and unsupported,
# Line 2682 | Line 2567 | ac_config_headers="$ac_config_headers src/config.h"
2567  
2568  
2569  
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2570   #
2571   #
2572   #
# Line 2713 | Line 2580 | ac_config_headers="$ac_config_headers src/config.h"
2580  
2581  
2582  
2716 # AC_F90_MODULE_NAMES
2717 # -------------------
2718 #
2719 # Figure out how the Fortran 90 compiler constructs module file names
2720 #
2721 # AC_F90_MODULE_NAMES
2583  
2584  
2585  
# Line 2899 | Line 2760 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 |
2760   # who am i
2761   # Make sure we can run config.sub.
2762   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2763 <  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2763 >  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2764  
2765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2766   $as_echo_n "checking build system type... " >&6; }
2767 < if test "${ac_cv_build+set}" = set; then :
2767 > if ${ac_cv_build+:} false; then :
2768    $as_echo_n "(cached) " >&6
2769   else
2770    ac_build_alias=$build_alias
2771   test "x$ac_build_alias" = x &&
2772    ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2773   test "x$ac_build_alias" = x &&
2774 <  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2774 >  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2775   ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2776 <  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2776 >  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2777  
2778   fi
2779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2780   $as_echo "$ac_cv_build" >&6; }
2781   case $ac_cv_build in
2782   *-*-*) ;;
2783 < *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2783 > *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2784   esac
2785   build=$ac_cv_build
2786   ac_save_IFS=$IFS; IFS='-'
# Line 2937 | Line 2798 | $as_echo_n "checking host system type... " >&6; }
2798  
2799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2800   $as_echo_n "checking host system type... " >&6; }
2801 < if test "${ac_cv_host+set}" = set; then :
2801 > if ${ac_cv_host+:} false; then :
2802    $as_echo_n "(cached) " >&6
2803   else
2804    if test "x$host_alias" = x; then
2805    ac_cv_host=$ac_cv_build
2806   else
2807    ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2808 <    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2808 >    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2809   fi
2810  
2811   fi
# Line 2952 | Line 2813 | case $ac_cv_host in
2813   $as_echo "$ac_cv_host" >&6; }
2814   case $ac_cv_host in
2815   *-*-*) ;;
2816 < *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2816 > *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2817   esac
2818   host=$ac_cv_host
2819   ac_save_IFS=$IFS; IFS='-'
# Line 3030 | Line 2891 | fi
2891  
2892   fi
2893  
3033 if test x"$CC" != x; then
3034   for ac_prog in $CC
3035 do
3036  # Extract the first word of "$ac_prog", so it can be a program name with args.
3037 set dummy $ac_prog; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if test "${ac_cv_prog_ac_cc_set+set}" = set; then :
3041  $as_echo_n "(cached) " >&6
3042 else
3043  if test -n "$ac_cc_set"; then
3044  ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049  IFS=$as_save_IFS
3050  test -z "$as_dir" && as_dir=.
3051    for ac_exec_ext in '' $ac_executable_extensions; do
3052  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053    ac_cv_prog_ac_cc_set="$ac_prog"
3054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055    break 2
3056  fi
3057 done
3058  done
3059 IFS=$as_save_IFS
3060
3061 fi
3062 fi
3063 ac_cc_set=$ac_cv_prog_ac_cc_set
3064 if test -n "$ac_cc_set"; then
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_set" >&5
3066 $as_echo "$ac_cc_set" >&6; }
3067 else
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070 fi
3071
3072
3073  test -n "$ac_cc_set" && break
3074 done
3075 test -n "$ac_cc_set" || ac_cc_set="no"
3076
3077   if test $ac_cc_set != no; then :
3078
3079     # Extract the first word of "$ac_cc_set", so it can be a program name with args.
3080 set dummy $ac_cc_set; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if test "${ac_cv_path_ac_cc_path+set}" = set; then :
3084  $as_echo_n "(cached) " >&6
3085 else
3086  case $ac_cc_path in
3087  [\\/]* | ?:[\\/]*)
3088  ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path.
3089  ;;
3090  *)
3091  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094  IFS=$as_save_IFS
3095  test -z "$as_dir" && as_dir=.
3096    for ac_exec_ext in '' $ac_executable_extensions; do
3097  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098    ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext"
3099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100    break 2
3101  fi
3102 done
3103  done
3104 IFS=$as_save_IFS
3105
3106  test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no"
3107  ;;
3108 esac
3109 fi
3110 ac_cc_path=$ac_cv_path_ac_cc_path
3111 if test -n "$ac_cc_path"; then
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_path" >&5
3113 $as_echo "$ac_cc_path" >&6; }
3114 else
3115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 fi
3118
3119
3120 else
3121
3122     as_fn_error "Specified C compiler $CC doesn't seem to exist!" "$LINENO" 5
3123 fi
3124
3125   if test $ac_cc_path != no; then :
3126
3127     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CC as C compiler" >&5
3128 $as_echo "$as_me: Will attempt to use $CC as C compiler" >&6;}
3129     MPICC=$CC
3130
3131 else
3132
3133     as_fn_error "Can't find path to user-specified C compiler $CC" "$LINENO" 5
3134 fi
3135 fi
3136
3137 if test x"$CXX" != x; then
3138   for ac_prog in $CXX
3139 do
3140  # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy $ac_prog; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if test "${ac_cv_prog_ac_cxx_set+set}" = set; then :
3145  $as_echo_n "(cached) " >&6
3146 else
3147  if test -n "$ac_cxx_set"; then
3148  ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153  IFS=$as_save_IFS
3154  test -z "$as_dir" && as_dir=.
3155    for ac_exec_ext in '' $ac_executable_extensions; do
3156  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157    ac_cv_prog_ac_cxx_set="$ac_prog"
3158    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159    break 2
3160  fi
3161 done
3162  done
3163 IFS=$as_save_IFS
3164
3165 fi
3166 fi
3167 ac_cxx_set=$ac_cv_prog_ac_cxx_set
3168 if test -n "$ac_cxx_set"; then
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_set" >&5
3170 $as_echo "$ac_cxx_set" >&6; }
3171 else
3172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3174 fi
3175
3176
3177  test -n "$ac_cxx_set" && break
3178 done
3179 test -n "$ac_cxx_set" || ac_cxx_set="no"
3180
3181   if test $ac_cxx_set != no; then :
3182
3183     # Extract the first word of "$ac_cxx_set", so it can be a program name with args.
3184 set dummy $ac_cxx_set; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if test "${ac_cv_path_ac_cxx_path+set}" = set; then :
3188  $as_echo_n "(cached) " >&6
3189 else
3190  case $ac_cxx_path in
3191  [\\/]* | ?:[\\/]*)
3192  ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path.
3193  ;;
3194  *)
3195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198  IFS=$as_save_IFS
3199  test -z "$as_dir" && as_dir=.
3200    for ac_exec_ext in '' $ac_executable_extensions; do
3201  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202    ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext"
3203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204    break 2
3205  fi
3206 done
3207  done
3208 IFS=$as_save_IFS
3209
3210  test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no"
3211  ;;
3212 esac
3213 fi
3214 ac_cxx_path=$ac_cv_path_ac_cxx_path
3215 if test -n "$ac_cxx_path"; then
3216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_path" >&5
3217 $as_echo "$ac_cxx_path" >&6; }
3218 else
3219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 fi
3222
3223
3224 else
3225
3226     as_fn_error "Specified C++ compiler $CXX doesn't seem to exist!" "$LINENO" 5
3227 fi
3228
3229   if test $ac_cxx_path != no; then :
3230
3231     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CXX as C++ compiler" >&5
3232 $as_echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;}
3233     MPICXX=$CXX
3234
3235 else
3236
3237     as_fn_error "Can't find path to user-specified C++ compiler $CXX" "$LINENO" 5
3238 fi
3239 fi
3240
3241 if test x"$FC" != x; then
3242   for ac_prog in $FC
3243 do
3244  # Extract the first word of "$ac_prog", so it can be a program name with args.
3245 set dummy $ac_prog; ac_word=$2
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if test "${ac_cv_prog_ac_fc_set+set}" = set; then :
3249  $as_echo_n "(cached) " >&6
3250 else
3251  if test -n "$ac_fc_set"; then
3252  ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257  IFS=$as_save_IFS
3258  test -z "$as_dir" && as_dir=.
3259    for ac_exec_ext in '' $ac_executable_extensions; do
3260  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261    ac_cv_prog_ac_fc_set="$ac_prog"
3262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263    break 2
3264  fi
3265 done
3266  done
3267 IFS=$as_save_IFS
3268
3269 fi
3270 fi
3271 ac_fc_set=$ac_cv_prog_ac_fc_set
3272 if test -n "$ac_fc_set"; then
3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_set" >&5
3274 $as_echo "$ac_fc_set" >&6; }
3275 else
3276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3278 fi
3279
3280
3281  test -n "$ac_fc_set" && break
3282 done
3283 test -n "$ac_fc_set" || ac_fc_set="no"
3284
3285   if test $ac_fc_set != no; then :
3286
3287     # Extract the first word of "$ac_fc_set", so it can be a program name with args.
3288 set dummy $ac_fc_set; ac_word=$2
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290 $as_echo_n "checking for $ac_word... " >&6; }
3291 if test "${ac_cv_path_ac_fc_path+set}" = set; then :
3292  $as_echo_n "(cached) " >&6
3293 else
3294  case $ac_fc_path in
3295  [\\/]* | ?:[\\/]*)
3296  ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path.
3297  ;;
3298  *)
3299  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302  IFS=$as_save_IFS
3303  test -z "$as_dir" && as_dir=.
3304    for ac_exec_ext in '' $ac_executable_extensions; do
3305  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306    ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext"
3307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308    break 2
3309  fi
3310 done
3311  done
3312 IFS=$as_save_IFS
3313
3314  test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no"
3315  ;;
3316 esac
3317 fi
3318 ac_fc_path=$ac_cv_path_ac_fc_path
3319 if test -n "$ac_fc_path"; then
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_path" >&5
3321 $as_echo "$ac_fc_path" >&6; }
3322 else
3323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 fi
3326
3327
3328 else
3329
3330     as_fn_error "Specified Fortran compiler $FC doesn't seem to exist!" "$LINENO" 5
3331 fi
3332
3333   if test $ac_fc_path != no; then :
3334
3335     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $FC as Fortran compiler" >&5
3336 $as_echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;}
3337     MPIFC=$FC
3338
3339 else
3340
3341     as_fn_error "Can't find path to user-specified Fortran compiler $FC" "$LINENO" 5
3342 fi
3343 fi
3344
3345
3346 save_LIBS_CHECK_CXX_LIB="$LIBS"
3347
2894   ac_ext=cpp
2895   ac_cpp='$CXXCPP $CPPFLAGS'
2896   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3353
3354 ac_ext=cpp
3355 ac_cpp='$CXXCPP $CPPFLAGS'
3356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2899   if test -z "$CXX"; then
2900    if test -n "$CCC"; then
2901      CXX=$CCC
2902    else
2903      if test -n "$ac_tool_prefix"; then
2904 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2904 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
2905    do
2906      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2907   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909   $as_echo_n "checking for $ac_word... " >&6; }
2910 < if test "${ac_cv_prog_CXX+set}" = set; then :
2910 > if ${ac_cv_prog_CXX+:} false; then :
2911    $as_echo_n "(cached) " >&6
2912   else
2913    if test -n "$CXX"; then
# Line 3405 | Line 2945 | if test -z "$CXX"; then
2945   fi
2946   if test -z "$CXX"; then
2947    ac_ct_CXX=$CXX
2948 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2948 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
2949   do
2950    # Extract the first word of "$ac_prog", so it can be a program name with args.
2951   set dummy $ac_prog; ac_word=$2
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953   $as_echo_n "checking for $ac_word... " >&6; }
2954 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2954 > if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2955    $as_echo_n "(cached) " >&6
2956   else
2957    if test -n "$ac_ct_CXX"; then
# Line 3574 | Line 3114 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3114  
3115   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3116   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3117 < { as_fn_set_status 77
3118 < as_fn_error "C++ compiler cannot create executables
3579 < See \`config.log' for more details." "$LINENO" 5; }; }
3117 > as_fn_error 77 "C++ compiler cannot create executables
3118 > See \`config.log' for more details" "$LINENO" 5; }
3119   else
3120    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3121   $as_echo "yes" >&6; }
# Line 3618 | Line 3157 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157   else
3158    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 < as_fn_error "cannot compute suffix of executables: cannot compile and link
3161 < See \`config.log' for more details." "$LINENO" 5; }
3160 > as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3161 > See \`config.log' for more details" "$LINENO" 5; }
3162   fi
3163   rm -f conftest conftest$ac_cv_exeext
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
# Line 3676 | Line 3215 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215      else
3216          { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 < as_fn_error "cannot run C++ compiled programs.
3218 > as_fn_error $? "cannot run C++ compiled programs.
3219   If you meant to cross compile, use \`--host'.
3220 < See \`config.log' for more details." "$LINENO" 5; }
3220 > See \`config.log' for more details" "$LINENO" 5; }
3221      fi
3222    fi
3223   fi
# Line 3689 | Line 3228 | $as_echo_n "checking for suffix of object files... " >
3228   ac_clean_files=$ac_clean_files_save
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3230   $as_echo_n "checking for suffix of object files... " >&6; }
3231 < if test "${ac_cv_objext+set}" = set; then :
3231 > if ${ac_cv_objext+:} false; then :
3232    $as_echo_n "(cached) " >&6
3233   else
3234    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3729 | Line 3268 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268  
3269   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271 < as_fn_error "cannot compute suffix of object files: cannot compile
3272 < See \`config.log' for more details." "$LINENO" 5; }
3271 > as_fn_error $? "cannot compute suffix of object files: cannot compile
3272 > See \`config.log' for more details" "$LINENO" 5; }
3273   fi
3274   rm -f conftest.$ac_cv_objext conftest.$ac_ext
3275   fi
# Line 3740 | Line 3279 | $as_echo_n "checking whether we are using the GNU C++
3279   ac_objext=$OBJEXT
3280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3281   $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3282 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3282 > if ${ac_cv_cxx_compiler_gnu+:} false; then :
3283    $as_echo_n "(cached) " >&6
3284   else
3285    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3777 | Line 3316 | $as_echo_n "checking whether $CXX accepts -g... " >&6;
3316   ac_save_CXXFLAGS=$CXXFLAGS
3317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3318   $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3319 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
3319 > if ${ac_cv_prog_cxx_g+:} false; then :
3320    $as_echo_n "(cached) " >&6
3321   else
3322    ac_save_cxx_werror_flag=$ac_cxx_werror_flag
# Line 3853 | Line 3392 | fi
3392      CXXFLAGS=
3393    fi
3394   fi
3395 < ac_ext=cpp
3396 < ac_cpp='$CXXCPP $CPPFLAGS'
3397 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3395 > ac_ext=c
3396 > ac_cpp='$CPP $CPPFLAGS'
3397 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400  
3401 <
3402 <
3403 <
3401 > ac_ext=c
3402 > ac_cpp='$CPP $CPPFLAGS'
3403 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406 > if test -n "$ac_tool_prefix"; then
3407 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3408 >  do
3409 >    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3410 > set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3411 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 > $as_echo_n "checking for $ac_word... " >&6; }
3413 > if ${ac_cv_prog_CC+:} false; then :
3414 >  $as_echo_n "(cached) " >&6
3415 > else
3416 >  if test -n "$CC"; then
3417 >  ac_cv_prog_CC="$CC" # Let the user override the test.
3418 > else
3419 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 > for as_dir in $PATH
3421 > do
3422 >  IFS=$as_save_IFS
3423 >  test -z "$as_dir" && as_dir=.
3424 >    for ac_exec_ext in '' $ac_executable_extensions; do
3425 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426 >    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3427 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 >    break 2
3429 >  fi
3430 > done
3431 >  done
3432 > IFS=$as_save_IFS
3433  
3434 + fi
3435 + fi
3436 + CC=$ac_cv_prog_CC
3437 + if test -n "$CC"; then
3438 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3439 + $as_echo "$CC" >&6; }
3440 + else
3441 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 + $as_echo "no" >&6; }
3443 + fi
3444  
3445  
3446 <        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3446 >    test -n "$CC" && break
3447 >  done
3448 > fi
3449 > if test -z "$CC"; then
3450 >  ac_ct_CC=$CC
3451 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3452   do
3453    # Extract the first word of "$ac_prog", so it can be a program name with args.
3454   set dummy $ac_prog; ac_word=$2
3455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456   $as_echo_n "checking for $ac_word... " >&6; }
3457 < if test "${ac_cv_prog_MPICXX+set}" = set; then :
3457 > if ${ac_cv_prog_ac_ct_CC+:} false; then :
3458    $as_echo_n "(cached) " >&6
3459   else
3460 <  if test -n "$MPICXX"; then
3461 <  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3460 >  if test -n "$ac_ct_CC"; then
3461 >  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3462   else
3463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464   for as_dir in $PATH
# Line 3884 | Line 3467 | do
3467    test -z "$as_dir" && as_dir=.
3468      for ac_exec_ext in '' $ac_executable_extensions; do
3469    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470 <    ac_cv_prog_MPICXX="$ac_prog"
3470 >    ac_cv_prog_ac_ct_CC="$ac_prog"
3471      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472      break 2
3473    fi
# Line 3894 | Line 3477 | fi
3477  
3478   fi
3479   fi
3480 < MPICXX=$ac_cv_prog_MPICXX
3481 < if test -n "$MPICXX"; then
3482 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3483 < $as_echo "$MPICXX" >&6; }
3480 > ac_ct_CC=$ac_cv_prog_ac_ct_CC
3481 > if test -n "$ac_ct_CC"; then
3482 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3483 > $as_echo "$ac_ct_CC" >&6; }
3484   else
3485    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486   $as_echo "no" >&6; }
3487   fi
3488  
3489  
3490 <  test -n "$MPICXX" && break
3490 >  test -n "$ac_ct_CC" && break
3491   done
3909 test -n "$MPICXX" || MPICXX="$CXX"
3492  
3493 <        ax_mpi_save_CXX="$CXX"
3494 <        CXX="$MPICXX"
3493 >  if test "x$ac_ct_CC" = x; then
3494 >    CC=""
3495 >  else
3496 >    case $cross_compiling:$ac_tool_warned in
3497 > yes:)
3498 > { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3499 > $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3500 > ac_tool_warned=yes ;;
3501 > esac
3502 >    CC=$ac_ct_CC
3503 >  fi
3504 > fi
3505  
3506  
3507 + test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509 + as_fn_error $? "no acceptable C compiler found in \$PATH
3510 + See \`config.log' for more details" "$LINENO" 5; }
3511  
3512 < if test x = x"$MPILIBS"; then
3513 <        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3514 < if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3515 <  MPILIBS=" "
3516 < fi
3512 > # Provide some information about the compiler.
3513 > $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3514 > set X $ac_compile
3515 > ac_compiler=$2
3516 > for ac_option in --version -v -V -qversion; do
3517 >  { { ac_try="$ac_compiler $ac_option >&5"
3518 > case "(($ac_try" in
3519 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 >  *) ac_try_echo=$ac_try;;
3521 > esac
3522 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523 > $as_echo "$ac_try_echo"; } >&5
3524 >  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3525 >  ac_status=$?
3526 >  if test -s conftest.err; then
3527 >    sed '10a\
3528 > ... rest of stderr output deleted ...
3529 >         10q' conftest.err >conftest.er1
3530 >    cat conftest.er1 >&5
3531 >  fi
3532 >  rm -f conftest.er1 conftest.err
3533 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 >  test $ac_status = 0; }
3535 > done
3536  
3537 < fi
3538 <
3539 < if test x = x"$MPILIBS"; then
3925 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3926 < $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3927 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
3537 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3538 > $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3539 > if ${ac_cv_c_compiler_gnu+:} false; then :
3540    $as_echo_n "(cached) " >&6
3541   else
3542 <  ac_check_lib_save_LIBS=$LIBS
3931 < LIBS="-lmpi  $LIBS"
3932 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543   /* end confdefs.h.  */
3544  
3935 /* Override any GCC internal prototype to avoid an error.
3936   Use char because int might match the return type of a GCC
3937   builtin and then its argument prototype would still apply.  */
3938 #ifdef __cplusplus
3939 extern "C"
3940 #endif
3941 char MPI_Init ();
3545   int
3546   main ()
3547   {
3548 < return MPI_Init ();
3548 > #ifndef __GNUC__
3549 >       choke me
3550 > #endif
3551 >
3552    ;
3553    return 0;
3554   }
3555   _ACEOF
3556 < if ac_fn_cxx_try_link "$LINENO"; then :
3557 <  ac_cv_lib_mpi_MPI_Init=yes
3556 > if ac_fn_c_try_compile "$LINENO"; then :
3557 >  ac_compiler_gnu=yes
3558   else
3559 <  ac_cv_lib_mpi_MPI_Init=no
3559 >  ac_compiler_gnu=no
3560   fi
3561 < rm -f core conftest.err conftest.$ac_objext \
3562 <    conftest$ac_exeext conftest.$ac_ext
3957 < LIBS=$ac_check_lib_save_LIBS
3958 < fi
3959 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3960 < $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3961 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
3962 <  MPILIBS="-lmpi"
3963 < fi
3561 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 > ac_cv_c_compiler_gnu=$ac_compiler_gnu
3563  
3564   fi
3565 < if test x = x"$MPILIBS"; then
3566 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
3567 < $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
3568 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
3565 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3566 > $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3567 > if test $ac_compiler_gnu = yes; then
3568 >  GCC=yes
3569 > else
3570 >  GCC=
3571 > fi
3572 > ac_test_CFLAGS=${CFLAGS+set}
3573 > ac_save_CFLAGS=$CFLAGS
3574 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3575 > $as_echo_n "checking whether $CC accepts -g... " >&6; }
3576 > if ${ac_cv_prog_cc_g+:} false; then :
3577    $as_echo_n "(cached) " >&6
3578   else
3579 <  ac_check_lib_save_LIBS=$LIBS
3580 < LIBS="-lmpich  $LIBS"
3581 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 >  ac_save_c_werror_flag=$ac_c_werror_flag
3580 >   ac_c_werror_flag=yes
3581 >   ac_cv_prog_cc_g=no
3582 >   CFLAGS="-g"
3583 >   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584   /* end confdefs.h.  */
3585  
3977 /* Override any GCC internal prototype to avoid an error.
3978   Use char because int might match the return type of a GCC
3979   builtin and then its argument prototype would still apply.  */
3980 #ifdef __cplusplus
3981 extern "C"
3982 #endif
3983 char MPI_Init ();
3586   int
3587   main ()
3588   {
3987 return MPI_Init ();
3988  ;
3989  return 0;
3990 }
3991 _ACEOF
3992 if ac_fn_cxx_try_link "$LINENO"; then :
3993  ac_cv_lib_mpich_MPI_Init=yes
3994 else
3995  ac_cv_lib_mpich_MPI_Init=no
3996 fi
3997 rm -f core conftest.err conftest.$ac_objext \
3998    conftest$ac_exeext conftest.$ac_ext
3999 LIBS=$ac_check_lib_save_LIBS
4000 fi
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4002 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4003 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4004  MPILIBS="-lmpich"
4005 fi
3589  
4007 fi
4008
4009 if test x != x"$MPILIBS"; then
4010        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4011 $as_echo_n "checking for mpi.h... " >&6; }
4012        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h.  */
4014 #include <mpi.h>
4015 int
4016 main ()
4017 {
4018
3590    ;
3591    return 0;
3592   }
3593   _ACEOF
4023 if ac_fn_cxx_try_compile "$LINENO"; then :
4024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4025 $as_echo "yes" >&6; }
4026 else
4027  MPILIBS=""
4028                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4030 fi
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 fi
4033
4034 CXX="$ax_mpi_save_CXX"
4035
4036
4037
4038 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4039 if test x = x"$MPILIBS"; then
4040        USE_MPI="no"
4041       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5
4042 $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;}
4043        :
4044 else
4045        USE_MPI="yes"
4046        :
4047 fi
4048
4049 ac_ext=c
4050 ac_cpp='$CPP $CPPFLAGS'
4051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4054 if test -n "$ac_tool_prefix"; then
4055  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4056 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058 $as_echo_n "checking for $ac_word... " >&6; }
4059 if test "${ac_cv_prog_CC+set}" = set; then :
4060  $as_echo_n "(cached) " >&6
4061 else
4062  if test -n "$CC"; then
4063  ac_cv_prog_CC="$CC" # Let the user override the test.
4064 else
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068  IFS=$as_save_IFS
4069  test -z "$as_dir" && as_dir=.
4070    for ac_exec_ext in '' $ac_executable_extensions; do
4071  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4072    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074    break 2
4075  fi
4076 done
4077  done
4078 IFS=$as_save_IFS
4079
4080 fi
4081 fi
4082 CC=$ac_cv_prog_CC
4083 if test -n "$CC"; then
4084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4085 $as_echo "$CC" >&6; }
4086 else
4087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4089 fi
4090
4091
4092 fi
4093 if test -z "$ac_cv_prog_CC"; then
4094  ac_ct_CC=$CC
4095  # Extract the first word of "gcc", so it can be a program name with args.
4096 set dummy gcc; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4100  $as_echo_n "(cached) " >&6
4101 else
4102  if test -n "$ac_ct_CC"; then
4103  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108  IFS=$as_save_IFS
4109  test -z "$as_dir" && as_dir=.
4110    for ac_exec_ext in '' $ac_executable_extensions; do
4111  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112    ac_cv_prog_ac_ct_CC="gcc"
4113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114    break 2
4115  fi
4116 done
4117  done
4118 IFS=$as_save_IFS
4119
4120 fi
4121 fi
4122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4123 if test -n "$ac_ct_CC"; then
4124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4125 $as_echo "$ac_ct_CC" >&6; }
4126 else
4127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4129 fi
4130
4131  if test "x$ac_ct_CC" = x; then
4132    CC=""
4133  else
4134    case $cross_compiling:$ac_tool_warned in
4135 yes:)
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4138 ac_tool_warned=yes ;;
4139 esac
4140    CC=$ac_ct_CC
4141  fi
4142 else
4143  CC="$ac_cv_prog_CC"
4144 fi
4145
4146 if test -z "$CC"; then
4147          if test -n "$ac_tool_prefix"; then
4148    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4149 set dummy ${ac_tool_prefix}cc; ac_word=$2
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4151 $as_echo_n "checking for $ac_word... " >&6; }
4152 if test "${ac_cv_prog_CC+set}" = set; then :
4153  $as_echo_n "(cached) " >&6
4154 else
4155  if test -n "$CC"; then
4156  ac_cv_prog_CC="$CC" # Let the user override the test.
4157 else
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4160 do
4161  IFS=$as_save_IFS
4162  test -z "$as_dir" && as_dir=.
4163    for ac_exec_ext in '' $ac_executable_extensions; do
4164  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165    ac_cv_prog_CC="${ac_tool_prefix}cc"
4166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167    break 2
4168  fi
4169 done
4170  done
4171 IFS=$as_save_IFS
4172
4173 fi
4174 fi
4175 CC=$ac_cv_prog_CC
4176 if test -n "$CC"; then
4177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4178 $as_echo "$CC" >&6; }
4179 else
4180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 $as_echo "no" >&6; }
4182 fi
4183
4184
4185  fi
4186 fi
4187 if test -z "$CC"; then
4188  # Extract the first word of "cc", so it can be a program name with args.
4189 set dummy cc; ac_word=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if test "${ac_cv_prog_CC+set}" = set; then :
4193  $as_echo_n "(cached) " >&6
4194 else
4195  if test -n "$CC"; then
4196  ac_cv_prog_CC="$CC" # Let the user override the test.
4197 else
4198  ac_prog_rejected=no
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202  IFS=$as_save_IFS
4203  test -z "$as_dir" && as_dir=.
4204    for ac_exec_ext in '' $ac_executable_extensions; do
4205  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4207       ac_prog_rejected=yes
4208       continue
4209     fi
4210    ac_cv_prog_CC="cc"
4211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212    break 2
4213  fi
4214 done
4215  done
4216 IFS=$as_save_IFS
4217
4218 if test $ac_prog_rejected = yes; then
4219  # We found a bogon in the path, so make sure we never use it.
4220  set dummy $ac_cv_prog_CC
4221  shift
4222  if test $# != 0; then
4223    # We chose a different compiler from the bogus one.
4224    # However, it has the same basename, so the bogon will be chosen
4225    # first if we set CC to just the basename; use the full file name.
4226    shift
4227    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4228  fi
4229 fi
4230 fi
4231 fi
4232 CC=$ac_cv_prog_CC
4233 if test -n "$CC"; then
4234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4235 $as_echo "$CC" >&6; }
4236 else
4237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4239 fi
4240
4241
4242 fi
4243 if test -z "$CC"; then
4244  if test -n "$ac_tool_prefix"; then
4245  for ac_prog in cl.exe
4246  do
4247    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250 $as_echo_n "checking for $ac_word... " >&6; }
4251 if test "${ac_cv_prog_CC+set}" = set; then :
4252  $as_echo_n "(cached) " >&6
4253 else
4254  if test -n "$CC"; then
4255  ac_cv_prog_CC="$CC" # Let the user override the test.
4256 else
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4259 do
4260  IFS=$as_save_IFS
4261  test -z "$as_dir" && as_dir=.
4262    for ac_exec_ext in '' $ac_executable_extensions; do
4263  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4264    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266    break 2
4267  fi
4268 done
4269  done
4270 IFS=$as_save_IFS
4271
4272 fi
4273 fi
4274 CC=$ac_cv_prog_CC
4275 if test -n "$CC"; then
4276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4277 $as_echo "$CC" >&6; }
4278 else
4279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4281 fi
4282
4283
4284    test -n "$CC" && break
4285  done
4286 fi
4287 if test -z "$CC"; then
4288  ac_ct_CC=$CC
4289  for ac_prog in cl.exe
4290 do
4291  # Extract the first word of "$ac_prog", so it can be a program name with args.
4292 set dummy $ac_prog; ac_word=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4296  $as_echo_n "(cached) " >&6
4297 else
4298  if test -n "$ac_ct_CC"; then
4299  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4300 else
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4303 do
4304  IFS=$as_save_IFS
4305  test -z "$as_dir" && as_dir=.
4306    for ac_exec_ext in '' $ac_executable_extensions; do
4307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4308    ac_cv_prog_ac_ct_CC="$ac_prog"
4309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4310    break 2
4311  fi
4312 done
4313  done
4314 IFS=$as_save_IFS
4315
4316 fi
4317 fi
4318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4319 if test -n "$ac_ct_CC"; then
4320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4321 $as_echo "$ac_ct_CC" >&6; }
4322 else
4323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4325 fi
4326
4327
4328  test -n "$ac_ct_CC" && break
4329 done
4330
4331  if test "x$ac_ct_CC" = x; then
4332    CC=""
4333  else
4334    case $cross_compiling:$ac_tool_warned in
4335 yes:)
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4338 ac_tool_warned=yes ;;
4339 esac
4340    CC=$ac_ct_CC
4341  fi
4342 fi
4343
4344 fi
4345
4346
4347 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4349 as_fn_error "no acceptable C compiler found in \$PATH
4350 See \`config.log' for more details." "$LINENO" 5; }
4351
4352 # Provide some information about the compiler.
4353 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4354 set X $ac_compile
4355 ac_compiler=$2
4356 for ac_option in --version -v -V -qversion; do
4357  { { ac_try="$ac_compiler $ac_option >&5"
4358 case "(($ac_try" in
4359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360  *) ac_try_echo=$ac_try;;
4361 esac
4362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4363 $as_echo "$ac_try_echo"; } >&5
4364  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4365  ac_status=$?
4366  if test -s conftest.err; then
4367    sed '10a\
4368 ... rest of stderr output deleted ...
4369         10q' conftest.err >conftest.er1
4370    cat conftest.er1 >&5
4371  fi
4372  rm -f conftest.er1 conftest.err
4373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4374  test $ac_status = 0; }
4375 done
4376
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4378 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4379 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4380  $as_echo_n "(cached) " >&6
4381 else
4382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h.  */
4384
4385 int
4386 main ()
4387 {
4388 #ifndef __GNUC__
4389       choke me
4390 #endif
4391
4392  ;
4393  return 0;
4394 }
4395 _ACEOF
3594   if ac_fn_c_try_compile "$LINENO"; then :
4397  ac_compiler_gnu=yes
4398 else
4399  ac_compiler_gnu=no
4400 fi
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4403
4404 fi
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4406 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4407 if test $ac_compiler_gnu = yes; then
4408  GCC=yes
4409 else
4410  GCC=
4411 fi
4412 ac_test_CFLAGS=${CFLAGS+set}
4413 ac_save_CFLAGS=$CFLAGS
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4415 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4416 if test "${ac_cv_prog_cc_g+set}" = set; then :
4417  $as_echo_n "(cached) " >&6
4418 else
4419  ac_save_c_werror_flag=$ac_c_werror_flag
4420   ac_c_werror_flag=yes
4421   ac_cv_prog_cc_g=no
4422   CFLAGS="-g"
4423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h.  */
4425
4426 int
4427 main ()
4428 {
4429
4430  ;
4431  return 0;
4432 }
4433 _ACEOF
4434 if ac_fn_c_try_compile "$LINENO"; then :
3595    ac_cv_prog_cc_g=yes
3596   else
3597    CFLAGS=""
# Line 4491 | Line 3651 | $as_echo_n "checking for $CC option to accept ISO C89.
3651   fi
3652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3653   $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3654 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
3654 > if ${ac_cv_prog_cc_c89+:} false; then :
3655    $as_echo_n "(cached) " >&6
3656   else
3657    ac_cv_prog_cc_c89=no
# Line 4587 | Line 3747 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748  
3749  
3750 < if test $USE_MPI != no; then :
3750 > save_CXX=$CXX
3751 > save_CC=$CC
3752 > save_LIBS=$LIBS
3753  
3754 < ac_ext=c
3755 < ac_cpp='$CPP $CPPFLAGS'
3756 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 > ac_ext=cpp
3755 > ac_cpp='$CXXCPP $CPPFLAGS'
3756 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3759  
3760  
3761 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
3762 + $as_echo_n "checking for dlopen in -lc... " >&6; }
3763 + if ${ac_cv_lib_c_dlopen+:} false; then :
3764 +  $as_echo_n "(cached) " >&6
3765 + else
3766 +  ac_check_lib_save_LIBS=$LIBS
3767 + LIBS="-lc  $LIBS"
3768 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 + /* end confdefs.h.  */
3770  
3771 + /* Override any GCC internal prototype to avoid an error.
3772 +   Use char because int might match the return type of a GCC
3773 +   builtin and then its argument prototype would still apply.  */
3774 + #ifdef __cplusplus
3775 + extern "C"
3776 + #endif
3777 + char dlopen ();
3778 + int
3779 + main ()
3780 + {
3781 + return dlopen ();
3782 +  ;
3783 +  return 0;
3784 + }
3785 + _ACEOF
3786 + if ac_fn_cxx_try_link "$LINENO"; then :
3787 +  ac_cv_lib_c_dlopen=yes
3788 + else
3789 +  ac_cv_lib_c_dlopen=no
3790 + fi
3791 + rm -f core conftest.err conftest.$ac_objext \
3792 +    conftest$ac_exeext conftest.$ac_ext
3793 + LIBS=$ac_check_lib_save_LIBS
3794 + fi
3795 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
3796 + $as_echo "$ac_cv_lib_c_dlopen" >&6; }
3797 + if test "x$ac_cv_lib_c_dlopen" = xyes; then :
3798 +  LIBDL=""
3799 + else
3800 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3801 + $as_echo_n "checking for dlopen in -ldl... " >&6; }
3802 + if ${ac_cv_lib_dl_dlopen+:} false; then :
3803 +  $as_echo_n "(cached) " >&6
3804 + else
3805 +  ac_check_lib_save_LIBS=$LIBS
3806 + LIBS="-ldl  $LIBS"
3807 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 + /* end confdefs.h.  */
3809  
3810 + /* Override any GCC internal prototype to avoid an error.
3811 +   Use char because int might match the return type of a GCC
3812 +   builtin and then its argument prototype would still apply.  */
3813 + #ifdef __cplusplus
3814 + extern "C"
3815 + #endif
3816 + char dlopen ();
3817 + int
3818 + main ()
3819 + {
3820 + return dlopen ();
3821 +  ;
3822 +  return 0;
3823 + }
3824 + _ACEOF
3825 + if ac_fn_cxx_try_link "$LINENO"; then :
3826 +  ac_cv_lib_dl_dlopen=yes
3827 + else
3828 +  ac_cv_lib_dl_dlopen=no
3829 + fi
3830 + rm -f core conftest.err conftest.$ac_objext \
3831 +    conftest$ac_exeext conftest.$ac_ext
3832 + LIBS=$ac_check_lib_save_LIBS
3833 + fi
3834 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3835 + $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3836 + if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3837 +  LIBDL="-ldl"
3838 + fi
3839  
3840 + fi
3841  
3842 <        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
3842 >
3843 >
3844 >
3845 >
3846 >
3847 >
3848 >        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3849   do
3850    # Extract the first word of "$ac_prog", so it can be a program name with args.
3851   set dummy $ac_prog; ac_word=$2
3852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853   $as_echo_n "checking for $ac_word... " >&6; }
3854 < if test "${ac_cv_prog_MPICC+set}" = set; then :
3854 > if ${ac_cv_prog_MPICXX+:} false; then :
3855    $as_echo_n "(cached) " >&6
3856   else
3857 <  if test -n "$MPICC"; then
3858 <  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
3857 >  if test -n "$MPICXX"; then
3858 >  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3859   else
3860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861   for as_dir in $PATH
# Line 4619 | Line 3864 | do
3864    test -z "$as_dir" && as_dir=.
3865      for ac_exec_ext in '' $ac_executable_extensions; do
3866    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3867 <    ac_cv_prog_MPICC="$ac_prog"
3867 >    ac_cv_prog_MPICXX="$ac_prog"
3868      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3869      break 2
3870    fi
# Line 4629 | Line 3874 | fi
3874  
3875   fi
3876   fi
3877 < MPICC=$ac_cv_prog_MPICC
3878 < if test -n "$MPICC"; then
3879 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
3880 < $as_echo "$MPICC" >&6; }
3877 > MPICXX=$ac_cv_prog_MPICXX
3878 > if test -n "$MPICXX"; then
3879 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3880 > $as_echo "$MPICXX" >&6; }
3881   else
3882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883   $as_echo "no" >&6; }
3884   fi
3885  
3886  
3887 <  test -n "$MPICC" && break
3887 >  test -n "$MPICXX" && break
3888   done
3889 < test -n "$MPICC" || MPICC="$CC"
3889 > test -n "$MPICXX" || MPICXX="$CXX"
3890  
3891 <        ax_mpi_save_CC="$CC"
3892 <        CC="$MPICC"
3891 >        ax_mpi_save_CXX="$CXX"
3892 >        CXX="$MPICXX"
3893  
3894  
3895  
3896   if test x = x"$MPILIBS"; then
3897 <        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3898 < if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3897 >        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3898 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
3899    MPILIBS=" "
3900   fi
3901  
# Line 4659 | Line 3904 | $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3904   if test x = x"$MPILIBS"; then
3905          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3906   $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3907 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
3907 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
3908    $as_echo_n "(cached) " >&6
3909   else
3910    ac_check_lib_save_LIBS=$LIBS
# Line 4682 | Line 3927 | _ACEOF
3927    return 0;
3928   }
3929   _ACEOF
3930 < if ac_fn_c_try_link "$LINENO"; then :
3930 > if ac_fn_cxx_try_link "$LINENO"; then :
3931    ac_cv_lib_mpi_MPI_Init=yes
3932   else
3933    ac_cv_lib_mpi_MPI_Init=no
# Line 4693 | Line 3938 | $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3938   fi
3939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3940   $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3941 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
3941 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
3942    MPILIBS="-lmpi"
3943   fi
3944  
# Line 4701 | Line 3946 | $as_echo_n "checking for MPI_Init in -lmpich... " >&6;
3946   if test x = x"$MPILIBS"; then
3947          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
3948   $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
3949 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
3949 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
3950    $as_echo_n "(cached) " >&6
3951   else
3952    ac_check_lib_save_LIBS=$LIBS
# Line 4724 | Line 3969 | _ACEOF
3969    return 0;
3970   }
3971   _ACEOF
3972 < if ac_fn_c_try_link "$LINENO"; then :
3972 > if ac_fn_cxx_try_link "$LINENO"; then :
3973    ac_cv_lib_mpich_MPI_Init=yes
3974   else
3975    ac_cv_lib_mpich_MPI_Init=no
# Line 4735 | Line 3980 | $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3980   fi
3981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
3982   $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3983 < if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
3983 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
3984    MPILIBS="-lmpich"
3985   fi
3986  
# Line 4755 | Line 4000 | _ACEOF
4000    return 0;
4001   }
4002   _ACEOF
4003 < if ac_fn_c_try_compile "$LINENO"; then :
4003 > if ac_fn_cxx_try_compile "$LINENO"; then :
4004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4005   $as_echo "yes" >&6; }
4006   else
# Line 4766 | Line 4011 | fi
4011   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012   fi
4013  
4014 < CC="$ax_mpi_save_CC"
4014 > CXX="$ax_mpi_save_CXX"
4015  
4016  
4017  
4018   # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4019   if test x = x"$MPILIBS"; then
4020          USE_MPI="no"
4021 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5
4022 < $as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;}
4021 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5
4022 > $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;}
4023          :
4024   else
4025          USE_MPI="yes"
# Line 4782 | Line 4027 | fi
4027   fi
4028  
4029  
4785 fi
4786 ac_ext=${ac_fc_srcext-f}
4787 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4788 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4790 if test -n "$ac_tool_prefix"; then
4791  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
4792  do
4793    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if test "${ac_cv_prog_FC+set}" = set; then :
4798  $as_echo_n "(cached) " >&6
4799 else
4800  if test -n "$FC"; then
4801  ac_cv_prog_FC="$FC" # Let the user override the test.
4802 else
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4805 do
4806  IFS=$as_save_IFS
4807  test -z "$as_dir" && as_dir=.
4808    for ac_exec_ext in '' $ac_executable_extensions; do
4809  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4812    break 2
4813  fi
4814 done
4815  done
4816 IFS=$as_save_IFS
4817
4818 fi
4819 fi
4820 FC=$ac_cv_prog_FC
4821 if test -n "$FC"; then
4822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4823 $as_echo "$FC" >&6; }
4824 else
4825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826 $as_echo "no" >&6; }
4827 fi
4828
4829
4830    test -n "$FC" && break
4831  done
4832 fi
4833 if test -z "$FC"; then
4834  ac_ct_FC=$FC
4835  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
4836 do
4837  # Extract the first word of "$ac_prog", so it can be a program name with args.
4838 set dummy $ac_prog; ac_word=$2
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840 $as_echo_n "checking for $ac_word... " >&6; }
4841 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4842  $as_echo_n "(cached) " >&6
4843 else
4844  if test -n "$ac_ct_FC"; then
4845  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4846 else
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4849 do
4850  IFS=$as_save_IFS
4851  test -z "$as_dir" && as_dir=.
4852    for ac_exec_ext in '' $ac_executable_extensions; do
4853  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4854    ac_cv_prog_ac_ct_FC="$ac_prog"
4855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856    break 2
4857  fi
4858 done
4859  done
4860 IFS=$as_save_IFS
4861
4862 fi
4863 fi
4864 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4865 if test -n "$ac_ct_FC"; then
4866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4867 $as_echo "$ac_ct_FC" >&6; }
4868 else
4869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4870 $as_echo "no" >&6; }
4871 fi
4872
4873
4874  test -n "$ac_ct_FC" && break
4875 done
4876
4877  if test "x$ac_ct_FC" = x; then
4878    FC=""
4879  else
4880    case $cross_compiling:$ac_tool_warned in
4881 yes:)
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4884 ac_tool_warned=yes ;;
4885 esac
4886    FC=$ac_ct_FC
4887  fi
4888 fi
4889
4890
4891 # Provide some information about the compiler.
4892 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4893 set X $ac_compile
4894 ac_compiler=$2
4895 for ac_option in --version -v -V -qversion; do
4896  { { ac_try="$ac_compiler $ac_option >&5"
4897 case "(($ac_try" in
4898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899  *) ac_try_echo=$ac_try;;
4900 esac
4901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4902 $as_echo "$ac_try_echo"; } >&5
4903  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4904  ac_status=$?
4905  if test -s conftest.err; then
4906    sed '10a\
4907 ... rest of stderr output deleted ...
4908         10q' conftest.err >conftest.er1
4909    cat conftest.er1 >&5
4910  fi
4911  rm -f conftest.er1 conftest.err
4912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4913  test $ac_status = 0; }
4914 done
4915 rm -f a.out
4916
4917 # If we don't use `.F' as extension, the preprocessor is not run on the
4918 # input file.  (Note that this only needs to work for GNU compilers.)
4919 ac_save_ext=$ac_ext
4920 ac_ext=F
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4922 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4923 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4924  $as_echo_n "(cached) " >&6
4925 else
4926  cat > conftest.$ac_ext <<_ACEOF
4927      program main
4928 #ifndef __GNUC__
4929       choke me
4930 #endif
4931
4932      end
4933 _ACEOF
4934 if ac_fn_fc_try_compile "$LINENO"; then :
4935  ac_compiler_gnu=yes
4936 else
4937  ac_compiler_gnu=no
4938 fi
4939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4941
4942 fi
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4944 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4945 ac_ext=$ac_save_ext
4946 ac_test_FCFLAGS=${FCFLAGS+set}
4947 ac_save_FCFLAGS=$FCFLAGS
4948 FCFLAGS=
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4950 $as_echo_n "checking whether $FC accepts -g... " >&6; }
4951 if test "${ac_cv_prog_fc_g+set}" = set; then :
4952  $as_echo_n "(cached) " >&6
4953 else
4954  FCFLAGS=-g
4955 cat > conftest.$ac_ext <<_ACEOF
4956      program main
4957
4958      end
4959 _ACEOF
4960 if ac_fn_fc_try_compile "$LINENO"; then :
4961  ac_cv_prog_fc_g=yes
4962 else
4963  ac_cv_prog_fc_g=no
4964 fi
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966
4967 fi
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4969 $as_echo "$ac_cv_prog_fc_g" >&6; }
4970 if test "$ac_test_FCFLAGS" = set; then
4971  FCFLAGS=$ac_save_FCFLAGS
4972 elif test $ac_cv_prog_fc_g = yes; then
4973  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4974    FCFLAGS="-g -O2"
4975  else
4976    FCFLAGS="-g"
4977  fi
4978 else
4979  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4980    FCFLAGS="-O2"
4981  else
4982    FCFLAGS=
4983  fi
4984 fi
4985
4986 ac_ext=${ac_fc_srcext-f}
4987 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4988 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4989 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4990
4991
4030   if test $USE_MPI != no; then :
4031  
4032 < ac_ext=${ac_fc_srcext-f}
4033 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4034 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4035 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4032 > ac_ext=c
4033 > ac_cpp='$CPP $CPPFLAGS'
4034 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037  
4038  
4039  
4040  
4041  
4042  
4043 <        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4043 >        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4044   do
4045    # Extract the first word of "$ac_prog", so it can be a program name with args.
4046   set dummy $ac_prog; ac_word=$2
4047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048   $as_echo_n "checking for $ac_word... " >&6; }
4049 < if test "${ac_cv_prog_MPIFC+set}" = set; then :
4049 > if ${ac_cv_prog_MPICC+:} false; then :
4050    $as_echo_n "(cached) " >&6
4051   else
4052 <  if test -n "$MPIFC"; then
4053 <  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4052 >  if test -n "$MPICC"; then
4053 >  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4054   else
4055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056   for as_dir in $PATH
# Line 5020 | Line 4059 | do
4059    test -z "$as_dir" && as_dir=.
4060      for ac_exec_ext in '' $ac_executable_extensions; do
4061    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4062 <    ac_cv_prog_MPIFC="$ac_prog"
4062 >    ac_cv_prog_MPICC="$ac_prog"
4063      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064      break 2
4065    fi
# Line 5030 | Line 4069 | fi
4069  
4070   fi
4071   fi
4072 < MPIFC=$ac_cv_prog_MPIFC
4073 < if test -n "$MPIFC"; then
4074 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4075 < $as_echo "$MPIFC" >&6; }
4072 > MPICC=$ac_cv_prog_MPICC
4073 > if test -n "$MPICC"; then
4074 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4075 > $as_echo "$MPICC" >&6; }
4076   else
4077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078   $as_echo "no" >&6; }
4079   fi
4080  
4081  
4082 <  test -n "$MPIFC" && break
4082 >  test -n "$MPICC" && break
4083   done
4084 < test -n "$MPIFC" || MPIFC="$FC"
4084 > test -n "$MPICC" || MPICC="$CC"
4085  
4086 <        ax_mpi_save_FC="$FC"
4087 <        FC="$MPIFC"
4086 >        ax_mpi_save_CC="$CC"
4087 >        CC="$MPICC"
4088  
4089  
4090  
4091   if test x = x"$MPILIBS"; then
4092 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4093 < $as_echo_n "checking for MPI_Init... " >&6; }
5055 <                        cat > conftest.$ac_ext <<_ACEOF
5056 <      program main
5057 <      call MPI_Init
5058 <      end
5059 < _ACEOF
5060 < if ac_fn_fc_try_link "$LINENO"; then :
4092 >        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4093 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
4094    MPILIBS=" "
5062                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5063 $as_echo "yes" >&6; }
5064 else
5065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
4095   fi
5068 rm -f core conftest.err conftest.$ac_objext \
5069    conftest$ac_exeext conftest.$ac_ext
5070 fi
4096  
5072        if test x = x"$MPILIBS"; then
5073                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
5074 $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
5075 if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then :
5076  $as_echo_n "(cached) " >&6
5077 else
5078  ac_check_lib_save_LIBS=$LIBS
5079 LIBS="-lfmpi  $LIBS"
5080 cat > conftest.$ac_ext <<_ACEOF
5081      program main
5082      call MPI_Init
5083      end
5084 _ACEOF
5085 if ac_fn_fc_try_link "$LINENO"; then :
5086  ac_cv_lib_fmpi_MPI_Init=yes
5087 else
5088  ac_cv_lib_fmpi_MPI_Init=no
4097   fi
5090 rm -f core conftest.err conftest.$ac_objext \
5091    conftest$ac_exeext conftest.$ac_ext
5092 LIBS=$ac_check_lib_save_LIBS
5093 fi
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
5095 $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
5096 if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then :
5097  MPILIBS="-lfmpi"
5098 fi
4098  
5100        fi
5101        if test x = x"$MPILIBS"; then
5102                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
5103 $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
5104 if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then :
5105  $as_echo_n "(cached) " >&6
5106 else
5107  ac_check_lib_save_LIBS=$LIBS
5108 LIBS="-lmpichf90  $LIBS"
5109 cat > conftest.$ac_ext <<_ACEOF
5110      program main
5111      call MPI_Init
5112      end
5113 _ACEOF
5114 if ac_fn_fc_try_link "$LINENO"; then :
5115  ac_cv_lib_mpichf90_MPI_Init=yes
5116 else
5117  ac_cv_lib_mpichf90_MPI_Init=no
5118 fi
5119 rm -f core conftest.err conftest.$ac_objext \
5120    conftest$ac_exeext conftest.$ac_ext
5121 LIBS=$ac_check_lib_save_LIBS
5122 fi
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
5124 $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
5125 if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then :
5126  MPILIBS="-lmpichf90"
5127 fi
5128
5129        fi
5130
4099   if test x = x"$MPILIBS"; then
4100          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4101   $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4102 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4102 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4103    $as_echo_n "(cached) " >&6
4104   else
4105    ac_check_lib_save_LIBS=$LIBS
4106   LIBS="-lmpi  $LIBS"
4107 < cat > conftest.$ac_ext <<_ACEOF
4108 <      program main
4109 <      call MPI_Init
4110 <      end
4107 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 > /* end confdefs.h.  */
4109 >
4110 > /* Override any GCC internal prototype to avoid an error.
4111 >   Use char because int might match the return type of a GCC
4112 >   builtin and then its argument prototype would still apply.  */
4113 > #ifdef __cplusplus
4114 > extern "C"
4115 > #endif
4116 > char MPI_Init ();
4117 > int
4118 > main ()
4119 > {
4120 > return MPI_Init ();
4121 >  ;
4122 >  return 0;
4123 > }
4124   _ACEOF
4125 < if ac_fn_fc_try_link "$LINENO"; then :
4125 > if ac_fn_c_try_link "$LINENO"; then :
4126    ac_cv_lib_mpi_MPI_Init=yes
4127   else
4128    ac_cv_lib_mpi_MPI_Init=no
# Line 5152 | Line 4133 | $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4133   fi
4134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4135   $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4136 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4136 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4137    MPILIBS="-lmpi"
4138   fi
4139  
# Line 5160 | Line 4141 | $as_echo_n "checking for MPI_Init in -lmpich... " >&6;
4141   if test x = x"$MPILIBS"; then
4142          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4143   $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4144 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4144 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4145    $as_echo_n "(cached) " >&6
4146   else
4147    ac_check_lib_save_LIBS=$LIBS
4148   LIBS="-lmpich  $LIBS"
4149 < cat > conftest.$ac_ext <<_ACEOF
4150 <      program main
4151 <      call MPI_Init
4152 <      end
4149 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 > /* end confdefs.h.  */
4151 >
4152 > /* Override any GCC internal prototype to avoid an error.
4153 >   Use char because int might match the return type of a GCC
4154 >   builtin and then its argument prototype would still apply.  */
4155 > #ifdef __cplusplus
4156 > extern "C"
4157 > #endif
4158 > char MPI_Init ();
4159 > int
4160 > main ()
4161 > {
4162 > return MPI_Init ();
4163 >  ;
4164 >  return 0;
4165 > }
4166   _ACEOF
4167 < if ac_fn_fc_try_link "$LINENO"; then :
4167 > if ac_fn_c_try_link "$LINENO"; then :
4168    ac_cv_lib_mpich_MPI_Init=yes
4169   else
4170    ac_cv_lib_mpich_MPI_Init=no
# Line 5181 | Line 4175 | $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4175   fi
4176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4177   $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4178 < if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4178 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4179    MPILIBS="-lmpich"
4180   fi
4181  
4182   fi
4183  
4184   if test x != x"$MPILIBS"; then
4185 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4186 < $as_echo_n "checking for mpif.h... " >&6; }
4187 <        cat > conftest.$ac_ext <<_ACEOF
4188 <      program main
4189 <      include 'mpif.h'
4190 <      end
4185 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4186 > $as_echo_n "checking for mpi.h... " >&6; }
4187 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 > /* end confdefs.h.  */
4189 > #include <mpi.h>
4190 > int
4191 > main ()
4192 > {
4193 >
4194 >  ;
4195 >  return 0;
4196 > }
4197   _ACEOF
4198 < if ac_fn_fc_try_compile "$LINENO"; then :
4198 > if ac_fn_c_try_compile "$LINENO"; then :
4199    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4200   $as_echo "yes" >&6; }
4201   else
# Line 5206 | Line 4206 | fi
4206   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207   fi
4208  
4209 < FC="$ax_mpi_save_FC"
4209 > CC="$ax_mpi_save_CC"
4210  
4211  
4212  
4213   # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4214   if test x = x"$MPILIBS"; then
4215          USE_MPI="no"
4216 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&5
4217 < $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&2;}
4216 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5
4217 > $as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;}
4218          :
4219   else
4220          USE_MPI="yes"
# Line 5227 | Line 4227 | if test $USE_MPI != no; then :
4227  
4228          CXX=$MPICXX
4229          CC=$MPICC
4230 <        FC=$MPIFC
4230 >        LIBS="$MPILIBS $LIBS"
4231  
4232 + else
4233 +
4234 +        CXX=$save_CXX
4235 +        CC=$save_CC
4236 +        LIBS=$save_LIBS
4237 +
4238 +
4239   fi
4240  
4241  
4242   # Checks for programs.
4243 < ac_ext=cpp
4244 < ac_cpp='$CXXCPP $CPPFLAGS'
4245 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4248 < if test -z "$CXX"; then
4249 <  if test -n "$CCC"; then
4250 <    CXX=$CCC
4251 <  else
4252 <    if test -n "$ac_tool_prefix"; then
4253 <  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
4254 <  do
4255 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4256 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4257 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 < $as_echo_n "checking for $ac_word... " >&6; }
4259 < if test "${ac_cv_prog_CXX+set}" = set; then :
4260 <  $as_echo_n "(cached) " >&6
4261 < else
4262 <  if test -n "$CXX"; then
4263 <  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4264 < else
4265 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 < for as_dir in $PATH
4267 < do
4268 <  IFS=$as_save_IFS
4269 <  test -z "$as_dir" && as_dir=.
4270 <    for ac_exec_ext in '' $ac_executable_extensions; do
4271 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 <    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4273 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 <    break 2
4275 <  fi
4276 < done
4277 <  done
4278 < IFS=$as_save_IFS
4279 <
4280 < fi
4281 < fi
4282 < CXX=$ac_cv_prog_CXX
4283 < if test -n "$CXX"; then
4284 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4285 < $as_echo "$CXX" >&6; }
4286 < else
4287 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 < $as_echo "no" >&6; }
4289 < fi
4290 <
4291 <
4292 <    test -n "$CXX" && break
4293 <  done
4294 < fi
4295 < if test -z "$CXX"; then
4296 <  ac_ct_CXX=$CXX
4297 <  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
4298 < do
4299 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4300 < set dummy $ac_prog; ac_word=$2
4301 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 < $as_echo_n "checking for $ac_word... " >&6; }
4303 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4304 <  $as_echo_n "(cached) " >&6
4305 < else
4306 <  if test -n "$ac_ct_CXX"; then
4307 <  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4308 < else
4309 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 < for as_dir in $PATH
4311 < do
4312 <  IFS=$as_save_IFS
4313 <  test -z "$as_dir" && as_dir=.
4314 <    for ac_exec_ext in '' $ac_executable_extensions; do
4315 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 <    ac_cv_prog_ac_ct_CXX="$ac_prog"
4317 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 <    break 2
4319 <  fi
4320 < done
4321 <  done
4322 < IFS=$as_save_IFS
4323 <
4324 < fi
4325 < fi
4326 < ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4327 < if test -n "$ac_ct_CXX"; then
4328 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4329 < $as_echo "$ac_ct_CXX" >&6; }
4330 < else
4331 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 < $as_echo "no" >&6; }
4333 < fi
4334 <
4335 <
4336 <  test -n "$ac_ct_CXX" && break
4337 < done
4338 <
4339 <  if test "x$ac_ct_CXX" = x; then
4340 <    CXX="g++"
4341 <  else
4342 <    case $cross_compiling:$ac_tool_warned in
4343 < yes:)
4344 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4345 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4346 < ac_tool_warned=yes ;;
4347 < esac
4348 <    CXX=$ac_ct_CXX
4349 <  fi
4350 < fi
4351 <
4352 <  fi
4353 < fi
4354 < # Provide some information about the compiler.
4355 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4356 < set X $ac_compile
4357 < ac_compiler=$2
4358 < for ac_option in --version -v -V -qversion; do
4359 <  { { ac_try="$ac_compiler $ac_option >&5"
4360 < case "(($ac_try" in
4361 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 <  *) ac_try_echo=$ac_try;;
4363 < esac
4364 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 < $as_echo "$ac_try_echo"; } >&5
4366 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4367 <  ac_status=$?
4368 <  if test -s conftest.err; then
4369 <    sed '10a\
4370 < ... rest of stderr output deleted ...
4371 <         10q' conftest.err >conftest.er1
4372 <    cat conftest.er1 >&5
4373 <  fi
4374 <  rm -f conftest.er1 conftest.err
4375 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376 <  test $ac_status = 0; }
4377 < done
4378 <
4379 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4380 < $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4381 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4382 <  $as_echo_n "(cached) " >&6
4383 < else
4384 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 < /* end confdefs.h.  */
4386 <
4387 < int
4388 < main ()
4389 < {
4390 < #ifndef __GNUC__
4391 <       choke me
4392 < #endif
4393 <
4394 <  ;
4395 <  return 0;
4396 < }
4397 < _ACEOF
4398 < if ac_fn_cxx_try_compile "$LINENO"; then :
4399 <  ac_compiler_gnu=yes
4400 < else
4401 <  ac_compiler_gnu=no
4402 < fi
4403 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 < ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4405 <
4406 < fi
4407 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4408 < $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4409 < if test $ac_compiler_gnu = yes; then
4410 <  GXX=yes
4411 < else
4412 <  GXX=
4413 < fi
4414 < ac_test_CXXFLAGS=${CXXFLAGS+set}
4415 < ac_save_CXXFLAGS=$CXXFLAGS
4416 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4417 < $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4418 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
4419 <  $as_echo_n "(cached) " >&6
4420 < else
4421 <  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4422 <   ac_cxx_werror_flag=yes
4423 <   ac_cv_prog_cxx_g=no
4424 <   CXXFLAGS="-g"
4425 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 < /* end confdefs.h.  */
4427 <
4428 < int
4429 < main ()
4430 < {
4431 <
4432 <  ;
4433 <  return 0;
4434 < }
4435 < _ACEOF
4436 < if ac_fn_cxx_try_compile "$LINENO"; then :
4437 <  ac_cv_prog_cxx_g=yes
4438 < else
4439 <  CXXFLAGS=""
4440 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 < /* end confdefs.h.  */
4442 <
4443 < int
4444 < main ()
4445 < {
4446 <
4447 <  ;
4448 <  return 0;
4449 < }
4450 < _ACEOF
4451 < if ac_fn_cxx_try_compile "$LINENO"; then :
4452 <
4453 < else
4454 <  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4455 <         CXXFLAGS="-g"
4456 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 < /* end confdefs.h.  */
4458 <
4459 < int
4460 < main ()
4461 < {
4462 <
4463 <  ;
4464 <  return 0;
4465 < }
4466 < _ACEOF
4467 < if ac_fn_cxx_try_compile "$LINENO"; then :
4468 <  ac_cv_prog_cxx_g=yes
4469 < fi
4470 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 < fi
4472 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 < fi
4474 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475 <   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4476 < fi
4477 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4478 < $as_echo "$ac_cv_prog_cxx_g" >&6; }
4479 < if test "$ac_test_CXXFLAGS" = set; then
4480 <  CXXFLAGS=$ac_save_CXXFLAGS
4481 < elif test $ac_cv_prog_cxx_g = yes; then
4482 <  if test "$GXX" = yes; then
4483 <    CXXFLAGS="-g -O2"
4484 <  else
4485 <    CXXFLAGS="-g"
4486 <  fi
4487 < else
4488 <  if test "$GXX" = yes; then
4489 <    CXXFLAGS="-O2"
4490 <  else
4491 <    CXXFLAGS=
4492 <  fi
4493 < fi
4494 < ac_ext=${ac_fc_srcext-f}
4495 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4496 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4497 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4498 <
4499 < ac_ext=c
4500 < ac_cpp='$CPP $CPPFLAGS'
4501 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504 < if test -n "$ac_tool_prefix"; then
4505 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
4506 <  do
4507 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4508 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4509 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 < $as_echo_n "checking for $ac_word... " >&6; }
4511 < if test "${ac_cv_prog_CC+set}" = set; then :
4512 <  $as_echo_n "(cached) " >&6
4513 < else
4514 <  if test -n "$CC"; then
4515 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4516 < else
4517 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 < for as_dir in $PATH
4519 < do
4520 <  IFS=$as_save_IFS
4521 <  test -z "$as_dir" && as_dir=.
4522 <    for ac_exec_ext in '' $ac_executable_extensions; do
4523 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 <    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4525 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 <    break 2
4527 <  fi
4528 < done
4529 <  done
4530 < IFS=$as_save_IFS
4531 <
4532 < fi
4533 < fi
4534 < CC=$ac_cv_prog_CC
4535 < if test -n "$CC"; then
4536 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4537 < $as_echo "$CC" >&6; }
4538 < else
4539 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 < $as_echo "no" >&6; }
4541 < fi
4542 <
4543 <
4544 <    test -n "$CC" && break
4545 <  done
4546 < fi
4547 < if test -z "$CC"; then
4548 <  ac_ct_CC=$CC
4549 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
4550 < do
4551 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4552 < set dummy $ac_prog; ac_word=$2
4553 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 < $as_echo_n "checking for $ac_word... " >&6; }
4555 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4556 <  $as_echo_n "(cached) " >&6
4557 < else
4558 <  if test -n "$ac_ct_CC"; then
4559 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4560 < else
4561 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 < for as_dir in $PATH
4563 < do
4564 <  IFS=$as_save_IFS
4565 <  test -z "$as_dir" && as_dir=.
4566 <    for ac_exec_ext in '' $ac_executable_extensions; do
4567 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 <    ac_cv_prog_ac_ct_CC="$ac_prog"
4569 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 <    break 2
4571 <  fi
4572 < done
4573 <  done
4574 < IFS=$as_save_IFS
4575 <
4576 < fi
4577 < fi
4578 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
4579 < if test -n "$ac_ct_CC"; then
4580 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4581 < $as_echo "$ac_ct_CC" >&6; }
4582 < else
4583 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 < $as_echo "no" >&6; }
4585 < fi
4586 <
4587 <
4588 <  test -n "$ac_ct_CC" && break
4589 < done
4590 <
4591 <  if test "x$ac_ct_CC" = x; then
4592 <    CC=""
4593 <  else
4594 <    case $cross_compiling:$ac_tool_warned in
4595 < yes:)
4596 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4597 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4598 < ac_tool_warned=yes ;;
4599 < esac
4600 <    CC=$ac_ct_CC
4601 <  fi
4602 < fi
4603 <
4604 <
4605 < test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4606 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4607 < as_fn_error "no acceptable C compiler found in \$PATH
4608 < See \`config.log' for more details." "$LINENO" 5; }
4609 <
4610 < # Provide some information about the compiler.
4611 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4612 < set X $ac_compile
4613 < ac_compiler=$2
4614 < for ac_option in --version -v -V -qversion; do
4615 <  { { ac_try="$ac_compiler $ac_option >&5"
4616 < case "(($ac_try" in
4617 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 <  *) ac_try_echo=$ac_try;;
4619 < esac
4620 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621 < $as_echo "$ac_try_echo"; } >&5
4622 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4623 <  ac_status=$?
4624 <  if test -s conftest.err; then
4625 <    sed '10a\
4626 < ... rest of stderr output deleted ...
4627 <         10q' conftest.err >conftest.er1
4628 <    cat conftest.er1 >&5
4629 <  fi
4630 <  rm -f conftest.er1 conftest.err
4631 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 <  test $ac_status = 0; }
4633 < done
4634 <
4635 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4636 < $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4637 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4638 <  $as_echo_n "(cached) " >&6
4639 < else
4640 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 < /* end confdefs.h.  */
4642 <
4643 < int
4644 < main ()
4645 < {
4646 < #ifndef __GNUC__
4647 <       choke me
4648 < #endif
4649 <
4650 <  ;
4651 <  return 0;
4652 < }
4653 < _ACEOF
4654 < if ac_fn_c_try_compile "$LINENO"; then :
4655 <  ac_compiler_gnu=yes
4656 < else
4657 <  ac_compiler_gnu=no
4658 < fi
4659 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 < ac_cv_c_compiler_gnu=$ac_compiler_gnu
4661 <
4662 < fi
4663 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4664 < $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4665 < if test $ac_compiler_gnu = yes; then
4666 <  GCC=yes
4667 < else
4668 <  GCC=
4669 < fi
4670 < ac_test_CFLAGS=${CFLAGS+set}
4671 < ac_save_CFLAGS=$CFLAGS
4672 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4673 < $as_echo_n "checking whether $CC accepts -g... " >&6; }
4674 < if test "${ac_cv_prog_cc_g+set}" = set; then :
4675 <  $as_echo_n "(cached) " >&6
4676 < else
4677 <  ac_save_c_werror_flag=$ac_c_werror_flag
4678 <   ac_c_werror_flag=yes
4679 <   ac_cv_prog_cc_g=no
4680 <   CFLAGS="-g"
4681 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 < /* end confdefs.h.  */
4683 <
4684 < int
4685 < main ()
4686 < {
4687 <
4688 <  ;
4689 <  return 0;
4690 < }
4691 < _ACEOF
4692 < if ac_fn_c_try_compile "$LINENO"; then :
4693 <  ac_cv_prog_cc_g=yes
4694 < else
4695 <  CFLAGS=""
4696 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 < /* end confdefs.h.  */
4698 <
4699 < int
4700 < main ()
4701 < {
4702 <
4703 <  ;
4704 <  return 0;
4705 < }
4706 < _ACEOF
4707 < if ac_fn_c_try_compile "$LINENO"; then :
4708 <
4709 < else
4710 <  ac_c_werror_flag=$ac_save_c_werror_flag
4711 <         CFLAGS="-g"
4712 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 < /* end confdefs.h.  */
4714 <
4715 < int
4716 < main ()
4717 < {
4718 <
4719 <  ;
4720 <  return 0;
4721 < }
4722 < _ACEOF
4723 < if ac_fn_c_try_compile "$LINENO"; then :
4724 <  ac_cv_prog_cc_g=yes
4725 < fi
4726 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 < fi
4728 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 < fi
4730 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 <   ac_c_werror_flag=$ac_save_c_werror_flag
4732 < fi
4733 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4734 < $as_echo "$ac_cv_prog_cc_g" >&6; }
4735 < if test "$ac_test_CFLAGS" = set; then
4736 <  CFLAGS=$ac_save_CFLAGS
4737 < elif test $ac_cv_prog_cc_g = yes; then
4738 <  if test "$GCC" = yes; then
4739 <    CFLAGS="-g -O2"
4740 <  else
4741 <    CFLAGS="-g"
4742 <  fi
4743 < else
4744 <  if test "$GCC" = yes; then
4745 <    CFLAGS="-O2"
4746 <  else
4747 <    CFLAGS=
4748 <  fi
4749 < fi
4750 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4751 < $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4752 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
4753 <  $as_echo_n "(cached) " >&6
4754 < else
4755 <  ac_cv_prog_cc_c89=no
4756 < ac_save_CC=$CC
4757 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 < /* end confdefs.h.  */
4759 < #include <stdarg.h>
4760 < #include <stdio.h>
4761 < #include <sys/types.h>
4762 < #include <sys/stat.h>
4763 < /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4764 < struct buf { int x; };
4765 < FILE * (*rcsopen) (struct buf *, struct stat *, int);
4766 < static char *e (p, i)
4767 <     char **p;
4768 <     int i;
4769 < {
4770 <  return p[i];
4771 < }
4772 < static char *f (char * (*g) (char **, int), char **p, ...)
4773 < {
4774 <  char *s;
4775 <  va_list v;
4776 <  va_start (v,p);
4777 <  s = g (p, va_arg (v,int));
4778 <  va_end (v);
4779 <  return s;
4780 < }
4781 <
4782 < /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4783 <   function prototypes and stuff, but not '\xHH' hex character constants.
4784 <   These don't provoke an error unfortunately, instead are silently treated
4785 <   as 'x'.  The following induces an error, until -std is added to get
4786 <   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4787 <   array size at least.  It's necessary to write '\x00'==0 to get something
4788 <   that's true only with -std.  */
4789 < int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4790 <
4791 < /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4792 <   inside strings and character constants.  */
4793 < #define FOO(x) 'x'
4794 < int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4795 <
4796 < int test (int i, double x);
4797 < struct s1 {int (*f) (int a);};
4798 < struct s2 {int (*f) (double a);};
4799 < int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4800 < int argc;
4801 < char **argv;
4802 < int
4803 < main ()
4804 < {
4805 < return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4806 <  ;
4807 <  return 0;
4808 < }
4809 < _ACEOF
4810 < for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4811 <        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4812 < do
4813 <  CC="$ac_save_CC $ac_arg"
4814 <  if ac_fn_c_try_compile "$LINENO"; then :
4815 <  ac_cv_prog_cc_c89=$ac_arg
4816 < fi
4817 < rm -f core conftest.err conftest.$ac_objext
4818 <  test "x$ac_cv_prog_cc_c89" != "xno" && break
4819 < done
4820 < rm -f conftest.$ac_ext
4821 < CC=$ac_save_CC
4822 <
4823 < fi
4824 < # AC_CACHE_VAL
4825 < case "x$ac_cv_prog_cc_c89" in
4826 <  x)
4827 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4828 < $as_echo "none needed" >&6; } ;;
4829 <  xno)
4830 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4831 < $as_echo "unsupported" >&6; } ;;
4832 <  *)
4833 <    CC="$CC $ac_cv_prog_cc_c89"
4834 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4835 < $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4836 < esac
4837 < if test "x$ac_cv_prog_cc_c89" != xno; then :
4838 <
4839 < fi
4840 <
4841 < ac_ext=${ac_fc_srcext-f}
4842 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4843 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4844 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4845 <
4846 < ac_ext=${ac_fc_srcext-f}
4847 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4848 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4849 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4850 < if test -n "$ac_tool_prefix"; then
4851 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4852 <  do
4853 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4854 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4855 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 < $as_echo_n "checking for $ac_word... " >&6; }
4857 < if test "${ac_cv_prog_FC+set}" = set; then :
4858 <  $as_echo_n "(cached) " >&6
4859 < else
4860 <  if test -n "$FC"; then
4861 <  ac_cv_prog_FC="$FC" # Let the user override the test.
4862 < else
4863 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 < for as_dir in $PATH
4865 < do
4866 <  IFS=$as_save_IFS
4867 <  test -z "$as_dir" && as_dir=.
4868 <    for ac_exec_ext in '' $ac_executable_extensions; do
4869 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 <    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4871 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 <    break 2
4873 <  fi
4874 < done
4875 <  done
4876 < IFS=$as_save_IFS
4877 <
4878 < fi
4879 < fi
4880 < FC=$ac_cv_prog_FC
4881 < if test -n "$FC"; then
4882 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4883 < $as_echo "$FC" >&6; }
4884 < else
4885 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 < $as_echo "no" >&6; }
4887 < fi
4888 <
4889 <
4890 <    test -n "$FC" && break
4891 <  done
4892 < fi
4893 < if test -z "$FC"; then
4894 <  ac_ct_FC=$FC
4895 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4896 < do
4897 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4898 < set dummy $ac_prog; ac_word=$2
4899 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 < $as_echo_n "checking for $ac_word... " >&6; }
4901 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4902 <  $as_echo_n "(cached) " >&6
4903 < else
4904 <  if test -n "$ac_ct_FC"; then
4905 <  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4906 < else
4907 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 < for as_dir in $PATH
4909 < do
4910 <  IFS=$as_save_IFS
4911 <  test -z "$as_dir" && as_dir=.
4912 <    for ac_exec_ext in '' $ac_executable_extensions; do
4913 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914 <    ac_cv_prog_ac_ct_FC="$ac_prog"
4915 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 <    break 2
4917 <  fi
4918 < done
4919 <  done
4920 < IFS=$as_save_IFS
4921 <
4922 < fi
4923 < fi
4924 < ac_ct_FC=$ac_cv_prog_ac_ct_FC
4925 < if test -n "$ac_ct_FC"; then
4926 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4927 < $as_echo "$ac_ct_FC" >&6; }
4928 < else
4929 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 < $as_echo "no" >&6; }
4931 < fi
4932 <
4933 <
4934 <  test -n "$ac_ct_FC" && break
4935 < done
4936 <
4937 <  if test "x$ac_ct_FC" = x; then
4938 <    FC=""
4939 <  else
4940 <    case $cross_compiling:$ac_tool_warned in
4941 < yes:)
4942 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4943 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4944 < ac_tool_warned=yes ;;
4945 < esac
4946 <    FC=$ac_ct_FC
4947 <  fi
4948 < fi
4949 <
4950 <
4951 < # Provide some information about the compiler.
4952 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4953 < set X $ac_compile
4954 < ac_compiler=$2
4955 < for ac_option in --version -v -V -qversion; do
4956 <  { { ac_try="$ac_compiler $ac_option >&5"
4957 < case "(($ac_try" in
4958 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959 <  *) ac_try_echo=$ac_try;;
4960 < esac
4961 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4962 < $as_echo "$ac_try_echo"; } >&5
4963 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4964 <  ac_status=$?
4965 <  if test -s conftest.err; then
4966 <    sed '10a\
4967 < ... rest of stderr output deleted ...
4968 <         10q' conftest.err >conftest.er1
4969 <    cat conftest.er1 >&5
4970 <  fi
4971 <  rm -f conftest.er1 conftest.err
4972 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4973 <  test $ac_status = 0; }
4974 < done
4975 < rm -f a.out
4976 <
4977 < # If we don't use `.F' as extension, the preprocessor is not run on the
4978 < # input file.  (Note that this only needs to work for GNU compilers.)
4979 < ac_save_ext=$ac_ext
4980 < ac_ext=F
4981 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4982 < $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4983 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
5977 <  $as_echo_n "(cached) " >&6
5978 < else
5979 <  cat > conftest.$ac_ext <<_ACEOF
5980 <      program main
5981 < #ifndef __GNUC__
5982 <       choke me
5983 < #endif
5984 <
5985 <      end
5986 < _ACEOF
5987 < if ac_fn_fc_try_compile "$LINENO"; then :
5988 <  ac_compiler_gnu=yes
5989 < else
5990 <  ac_compiler_gnu=no
5991 < fi
5992 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5993 < ac_cv_fc_compiler_gnu=$ac_compiler_gnu
5994 <
5995 < fi
5996 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
5997 < $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
5998 < ac_ext=$ac_save_ext
5999 < ac_test_FCFLAGS=${FCFLAGS+set}
6000 < ac_save_FCFLAGS=$FCFLAGS
6001 < FCFLAGS=
6002 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
6003 < $as_echo_n "checking whether $FC accepts -g... " >&6; }
6004 < if test "${ac_cv_prog_fc_g+set}" = set; then :
6005 <  $as_echo_n "(cached) " >&6
6006 < else
6007 <  FCFLAGS=-g
6008 < cat > conftest.$ac_ext <<_ACEOF
6009 <      program main
6010 <
6011 <      end
6012 < _ACEOF
6013 < if ac_fn_fc_try_compile "$LINENO"; then :
6014 <  ac_cv_prog_fc_g=yes
6015 < else
6016 <  ac_cv_prog_fc_g=no
6017 < fi
6018 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 <
6020 < fi
6021 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
6022 < $as_echo "$ac_cv_prog_fc_g" >&6; }
6023 < if test "$ac_test_FCFLAGS" = set; then
6024 <  FCFLAGS=$ac_save_FCFLAGS
6025 < elif test $ac_cv_prog_fc_g = yes; then
6026 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
6027 <    FCFLAGS="-g -O2"
6028 <  else
6029 <    FCFLAGS="-g"
6030 <  fi
6031 < else
6032 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
6033 <    FCFLAGS="-O2"
6034 <  else
6035 <    FCFLAGS=
6036 <  fi
6037 < fi
6038 <
6039 < ac_ext=${ac_fc_srcext-f}
6040 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6041 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6042 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6043 <
6044 < ac_ext=c
6045 < ac_cpp='$CPP $CPPFLAGS'
6046 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6047 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6048 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
6049 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6050 < $as_echo_n "checking how to run the C preprocessor... " >&6; }
6051 < # On Suns, sometimes $CPP names a directory.
6052 < if test -n "$CPP" && test -d "$CPP"; then
6053 <  CPP=
6054 < fi
6055 < if test -z "$CPP"; then
6056 <  if test "${ac_cv_prog_CPP+set}" = set; then :
6057 <  $as_echo_n "(cached) " >&6
6058 < else
6059 <      # Double quotes because CPP needs to be expanded
6060 <    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6061 <    do
6062 <      ac_preproc_ok=false
6063 < for ac_c_preproc_warn_flag in '' yes
6064 < do
6065 <  # Use a header file that comes with gcc, so configuring glibc
6066 <  # with a fresh cross-compiler works.
6067 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6068 <  # <limits.h> exists even on freestanding compilers.
6069 <  # On the NeXT, cc -E runs the code through the compiler's parser,
6070 <  # not just through cpp. "Syntax error" is here to catch this case.
6071 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 < /* end confdefs.h.  */
6073 < #ifdef __STDC__
6074 < # include <limits.h>
6075 < #else
6076 < # include <assert.h>
6077 < #endif
6078 <                     Syntax error
6079 < _ACEOF
6080 < if ac_fn_c_try_cpp "$LINENO"; then :
6081 <
6082 < else
6083 <  # Broken: fails on valid input.
6084 < continue
6085 < fi
6086 < rm -f conftest.err conftest.$ac_ext
6087 <
6088 <  # OK, works on sane cases.  Now check whether nonexistent headers
6089 <  # can be detected and how.
6090 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 < /* end confdefs.h.  */
6092 < #include <ac_nonexistent.h>
6093 < _ACEOF
6094 < if ac_fn_c_try_cpp "$LINENO"; then :
6095 <  # Broken: success on invalid input.
6096 < continue
6097 < else
6098 <  # Passes both tests.
6099 < ac_preproc_ok=:
6100 < break
6101 < fi
6102 < rm -f conftest.err conftest.$ac_ext
6103 <
6104 < done
6105 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6106 < rm -f conftest.err conftest.$ac_ext
6107 < if $ac_preproc_ok; then :
6108 <  break
6109 < fi
6110 <
6111 <    done
6112 <    ac_cv_prog_CPP=$CPP
6113 <
6114 < fi
6115 <  CPP=$ac_cv_prog_CPP
6116 < else
6117 <  ac_cv_prog_CPP=$CPP
6118 < fi
6119 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6120 < $as_echo "$CPP" >&6; }
6121 < ac_preproc_ok=false
6122 < for ac_c_preproc_warn_flag in '' yes
6123 < do
6124 <  # Use a header file that comes with gcc, so configuring glibc
6125 <  # with a fresh cross-compiler works.
6126 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6127 <  # <limits.h> exists even on freestanding compilers.
6128 <  # On the NeXT, cc -E runs the code through the compiler's parser,
6129 <  # not just through cpp. "Syntax error" is here to catch this case.
6130 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 < /* end confdefs.h.  */
6132 < #ifdef __STDC__
6133 < # include <limits.h>
6134 < #else
6135 < # include <assert.h>
6136 < #endif
6137 <                     Syntax error
6138 < _ACEOF
6139 < if ac_fn_c_try_cpp "$LINENO"; then :
6140 <
6141 < else
6142 <  # Broken: fails on valid input.
6143 < continue
6144 < fi
6145 < rm -f conftest.err conftest.$ac_ext
6146 <
6147 <  # OK, works on sane cases.  Now check whether nonexistent headers
6148 <  # can be detected and how.
6149 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 < /* end confdefs.h.  */
6151 < #include <ac_nonexistent.h>
6152 < _ACEOF
6153 < if ac_fn_c_try_cpp "$LINENO"; then :
6154 <  # Broken: success on invalid input.
6155 < continue
6156 < else
6157 <  # Passes both tests.
6158 < ac_preproc_ok=:
6159 < break
6160 < fi
6161 < rm -f conftest.err conftest.$ac_ext
6162 <
6163 < done
6164 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6165 < rm -f conftest.err conftest.$ac_ext
6166 < if $ac_preproc_ok; then :
6167 <
6168 < else
6169 <  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6170 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6171 < as_fn_error "C preprocessor \"$CPP\" fails sanity check
6172 < See \`config.log' for more details." "$LINENO" 5; }
6173 < fi
6174 <
6175 < ac_ext=${ac_fc_srcext-f}
6176 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6177 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6178 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6179 <
6180 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6181 < $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6182 < if test "${ac_cv_path_GREP+set}" = set; then :
6183 <  $as_echo_n "(cached) " >&6
6184 < else
6185 <  if test -z "$GREP"; then
6186 <  ac_path_GREP_found=false
6187 <  # Loop through the user's path and test for each of PROGNAME-LIST
6188 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 < for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6190 < do
6191 <  IFS=$as_save_IFS
6192 <  test -z "$as_dir" && as_dir=.
6193 <    for ac_prog in grep ggrep; do
6194 <    for ac_exec_ext in '' $ac_executable_extensions; do
6195 <      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6196 <      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6197 < # Check for GNU ac_path_GREP and select it if it is found.
6198 <  # Check for GNU $ac_path_GREP
6199 < case `"$ac_path_GREP" --version 2>&1` in
6200 < *GNU*)
6201 <  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6202 < *)
6203 <  ac_count=0
6204 <  $as_echo_n 0123456789 >"conftest.in"
6205 <  while :
6206 <  do
6207 <    cat "conftest.in" "conftest.in" >"conftest.tmp"
6208 <    mv "conftest.tmp" "conftest.in"
6209 <    cp "conftest.in" "conftest.nl"
6210 <    $as_echo 'GREP' >> "conftest.nl"
6211 <    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6212 <    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6213 <    as_fn_arith $ac_count + 1 && ac_count=$as_val
6214 <    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6215 <      # Best one so far, save it but keep looking for a better one
6216 <      ac_cv_path_GREP="$ac_path_GREP"
6217 <      ac_path_GREP_max=$ac_count
6218 <    fi
6219 <    # 10*(2^10) chars as input seems more than enough
6220 <    test $ac_count -gt 10 && break
6221 <  done
6222 <  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6223 < esac
6224 <
6225 <      $ac_path_GREP_found && break 3
6226 <    done
6227 <  done
6228 <  done
6229 < IFS=$as_save_IFS
6230 <  if test -z "$ac_cv_path_GREP"; then
6231 <    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6232 <  fi
6233 < else
6234 <  ac_cv_path_GREP=$GREP
6235 < fi
6236 <
6237 < fi
6238 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6239 < $as_echo "$ac_cv_path_GREP" >&6; }
6240 < GREP="$ac_cv_path_GREP"
6241 <
6242 <
6243 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6244 < $as_echo_n "checking for egrep... " >&6; }
6245 < if test "${ac_cv_path_EGREP+set}" = set; then :
6246 <  $as_echo_n "(cached) " >&6
6247 < else
6248 <  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6249 <   then ac_cv_path_EGREP="$GREP -E"
6250 <   else
6251 <     if test -z "$EGREP"; then
6252 <  ac_path_EGREP_found=false
6253 <  # Loop through the user's path and test for each of PROGNAME-LIST
6254 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 < for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6256 < do
6257 <  IFS=$as_save_IFS
6258 <  test -z "$as_dir" && as_dir=.
6259 <    for ac_prog in egrep; do
6260 <    for ac_exec_ext in '' $ac_executable_extensions; do
6261 <      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6262 <      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6263 < # Check for GNU ac_path_EGREP and select it if it is found.
6264 <  # Check for GNU $ac_path_EGREP
6265 < case `"$ac_path_EGREP" --version 2>&1` in
6266 < *GNU*)
6267 <  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6268 < *)
6269 <  ac_count=0
6270 <  $as_echo_n 0123456789 >"conftest.in"
6271 <  while :
6272 <  do
6273 <    cat "conftest.in" "conftest.in" >"conftest.tmp"
6274 <    mv "conftest.tmp" "conftest.in"
6275 <    cp "conftest.in" "conftest.nl"
6276 <    $as_echo 'EGREP' >> "conftest.nl"
6277 <    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6278 <    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6279 <    as_fn_arith $ac_count + 1 && ac_count=$as_val
6280 <    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6281 <      # Best one so far, save it but keep looking for a better one
6282 <      ac_cv_path_EGREP="$ac_path_EGREP"
6283 <      ac_path_EGREP_max=$ac_count
6284 <    fi
6285 <    # 10*(2^10) chars as input seems more than enough
6286 <    test $ac_count -gt 10 && break
6287 <  done
6288 <  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6289 < esac
6290 <
6291 <      $ac_path_EGREP_found && break 3
6292 <    done
6293 <  done
6294 <  done
6295 < IFS=$as_save_IFS
6296 <  if test -z "$ac_cv_path_EGREP"; then
6297 <    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6298 <  fi
6299 < else
6300 <  ac_cv_path_EGREP=$EGREP
6301 < fi
6302 <
6303 <   fi
6304 < fi
6305 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6306 < $as_echo "$ac_cv_path_EGREP" >&6; }
6307 < EGREP="$ac_cv_path_EGREP"
6308 <
6309 <
6310 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6311 < $as_echo_n "checking whether ln -s works... " >&6; }
6312 < LN_S=$as_ln_s
6313 < if test "$LN_S" = "ln -s"; then
6314 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6315 < $as_echo "yes" >&6; }
6316 < else
6317 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6318 < $as_echo "no, using $LN_S" >&6; }
6319 < fi
6320 <
6321 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6322 < $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6323 < set x ${MAKE-make}
6324 < ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6325 < if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6326 <  $as_echo_n "(cached) " >&6
6327 < else
6328 <  cat >conftest.make <<\_ACEOF
6329 < SHELL = /bin/sh
6330 < all:
6331 <        @echo '@@@%%%=$(MAKE)=@@@%%%'
6332 < _ACEOF
6333 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6334 < case `${MAKE-make} -f conftest.make 2>/dev/null` in
6335 <  *@@@%%%=?*=@@@%%%*)
6336 <    eval ac_cv_prog_make_${ac_make}_set=yes;;
6337 <  *)
6338 <    eval ac_cv_prog_make_${ac_make}_set=no;;
6339 < esac
6340 < rm -f conftest.make
6341 < fi
6342 < if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6343 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6344 < $as_echo "yes" >&6; }
6345 <  SET_MAKE=
6346 < else
6347 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 < $as_echo "no" >&6; }
6349 <  SET_MAKE="MAKE=${MAKE-make}"
6350 < fi
6351 <
6352 < if test -n "$ac_tool_prefix"; then
6353 <  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6354 < set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6355 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 < $as_echo_n "checking for $ac_word... " >&6; }
6357 < if test "${ac_cv_prog_RANLIB+set}" = set; then :
6358 <  $as_echo_n "(cached) " >&6
6359 < else
6360 <  if test -n "$RANLIB"; then
6361 <  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6362 < else
6363 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 < for as_dir in $PATH
6365 < do
6366 <  IFS=$as_save_IFS
6367 <  test -z "$as_dir" && as_dir=.
6368 <    for ac_exec_ext in '' $ac_executable_extensions; do
6369 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 <    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6371 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 <    break 2
6373 <  fi
6374 < done
6375 <  done
6376 < IFS=$as_save_IFS
6377 <
6378 < fi
6379 < fi
6380 < RANLIB=$ac_cv_prog_RANLIB
6381 < if test -n "$RANLIB"; then
6382 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6383 < $as_echo "$RANLIB" >&6; }
6384 < else
6385 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 < $as_echo "no" >&6; }
6387 < fi
6388 <
6389 <
6390 < fi
6391 < if test -z "$ac_cv_prog_RANLIB"; then
6392 <  ac_ct_RANLIB=$RANLIB
6393 <  # Extract the first word of "ranlib", so it can be a program name with args.
6394 < set dummy ranlib; ac_word=$2
6395 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 < $as_echo_n "checking for $ac_word... " >&6; }
6397 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6398 <  $as_echo_n "(cached) " >&6
6399 < else
6400 <  if test -n "$ac_ct_RANLIB"; then
6401 <  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6402 < else
6403 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 < for as_dir in $PATH
6405 < do
6406 <  IFS=$as_save_IFS
6407 <  test -z "$as_dir" && as_dir=.
6408 <    for ac_exec_ext in '' $ac_executable_extensions; do
6409 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410 <    ac_cv_prog_ac_ct_RANLIB="ranlib"
6411 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 <    break 2
6413 <  fi
6414 < done
6415 <  done
6416 < IFS=$as_save_IFS
6417 <
6418 < fi
6419 < fi
6420 < ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6421 < if test -n "$ac_ct_RANLIB"; then
6422 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6423 < $as_echo "$ac_ct_RANLIB" >&6; }
6424 < else
6425 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 < $as_echo "no" >&6; }
6427 < fi
6428 <
6429 <  if test "x$ac_ct_RANLIB" = x; then
6430 <    RANLIB=":"
6431 <  else
6432 <    case $cross_compiling:$ac_tool_warned in
6433 < yes:)
6434 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6435 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6436 < ac_tool_warned=yes ;;
6437 < esac
6438 <    RANLIB=$ac_ct_RANLIB
6439 <  fi
6440 < else
6441 <  RANLIB="$ac_cv_prog_RANLIB"
6442 < fi
6443 <
6444 <
6445 <   # Extract the first word of "perl", so it can be a program name with args.
6446 < set dummy perl; ac_word=$2
6447 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 < $as_echo_n "checking for $ac_word... " >&6; }
6449 < if test "${ac_cv_path_PERLINTERP+set}" = set; then :
6450 <  $as_echo_n "(cached) " >&6
6451 < else
6452 <  case $PERLINTERP in
6453 <  [\\/]* | ?:[\\/]*)
6454 <  ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
6455 <  ;;
6456 <  *)
6457 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 < for as_dir in $PATH
6459 < do
6460 <  IFS=$as_save_IFS
6461 <  test -z "$as_dir" && as_dir=.
6462 <    for ac_exec_ext in '' $ac_executable_extensions; do
6463 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 <    ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
6465 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 <    break 2
6467 <  fi
6468 < done
6469 <  done
6470 < IFS=$as_save_IFS
6471 <
6472 <  test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
6473 <  ;;
6474 < esac
6475 < fi
6476 < PERLINTERP=$ac_cv_path_PERLINTERP
6477 < if test -n "$PERLINTERP"; then
6478 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLINTERP" >&5
6479 < $as_echo "$PERLINTERP" >&6; }
6480 < else
6481 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 < $as_echo "no" >&6; }
6483 < fi
6484 <
6485 <
6486 <   ac_cv_path_perlinterp="$PERLINTERP"
6487 <   _sHpB='#!'
6488 <
6489 <
6490 < # Check whether --with-perl-shebang was given.
6491 < if test "${with_perl_shebang+set}" = set; then :
6492 <  withval=$with_perl_shebang; opt_perl_shebang="$withval"
6493 < else
6494 <                opt_perl_shebang="not_set"
6495 < fi
6496 <
6497 <   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5
6498 < $as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; }
6499 < if test "${ax_cv_opt_perl_shebang+set}" = set; then :
6500 <  $as_echo_n "(cached) " >&6
6501 < else
6502 <   case "$opt_perl_shebang" in
6503 <                      not_set  ) ax_cv_opt_perl_shebang=''
6504 <                               ;;
6505 <                         *     )
6506 <        ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
6507 <                    esac
6508 <
6509 < fi
6510 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_opt_perl_shebang" >&5
6511 < $as_echo "$ax_cv_opt_perl_shebang" >&6; }
6512 <   if test "A$ax_cv_opt_perl_shebang" != "A"
6513 <     then
6514 <       ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
6515 <       PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
6516 <              { $as_echo "$as_me:${as_lineno-$LINENO}: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
6517 < $as_echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
6518 <
6519 < # Automatic detection of sharpbang formula starts here
6520 <     else
6521 <   _somian_shbangperl=`$PERLINTERP -V:startperl`
6522 <   negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
6523 <   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5
6524 < $as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; }
6525 < if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then :
6526 <  $as_echo_n "(cached) " >&6
6527 < else
6528 <  _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
6529 <        if test "x$_somian_kspb_perl" == x
6530 <          then _somian_ksbp_warn_empty='durnit'
6531 <          else
6532 <          case "A$_somian_kspb_perl" in
6533 <                 A#!*perl* )
6534 <           ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
6535 <                        ;;
6536 <                     A*    )  _somian_ksbp_warn_defau='trouble'
6537 <                              ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
6538 <          esac
6539 <        fi
6540 <
6541 < fi
6542 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_kernshrpbang_perl" >&5
6543 < $as_echo "$ac_cv_sys_kernshrpbang_perl" >&6; }
6544 < # The above prints Checking ... result message to user.
6545 <   PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
6546 <
6547 <    if test A${_somian_ksbp_warn_empty+set} == Aset
6548 <      then   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
6549 < $as_echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
6550 <    fi
6551 < # Inform user after printing result value
6552 <    if test A${_somian_ksbp_warn_defau+set} == Aset
6553 <      then { $as_echo "$as_me:${as_lineno-$LINENO}: Maybe Not good -" >&5
6554 < $as_echo "$as_me: Maybe Not good -" >&6;}
6555 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
6556 < $as_echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
6557 <      else { $as_echo "$as_me:${as_lineno-$LINENO}: OK Good result - " >&5
6558 < $as_echo "$as_me: OK Good result - " >&6;}
6559 <           { $as_echo "$as_me:${as_lineno-$LINENO}: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
6560 < $as_echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
6561 <    fi
6562 <  fi
6563 <
6564 < # Find a good install program.  We prefer a C program (faster),
6565 < # so one script is as good as another.  But avoid the broken or
6566 < # incompatible versions:
6567 < # SysV /etc/install, /usr/sbin/install
6568 < # SunOS /usr/etc/install
6569 < # IRIX /sbin/install
6570 < # AIX /bin/install
6571 < # AmigaOS /C/install, which installs bootblocks on floppy discs
6572 < # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6573 < # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6574 < # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6575 < # OS/2's system install, which has a completely different semantic
6576 < # ./install, which can be erroneously created by make from ./install.sh.
6577 < # Reject install programs that cannot install multiple files.
6578 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6579 < $as_echo_n "checking for a BSD-compatible install... " >&6; }
6580 < if test -z "$INSTALL"; then
6581 < if test "${ac_cv_path_install+set}" = set; then :
6582 <  $as_echo_n "(cached) " >&6
6583 < else
6584 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 < for as_dir in $PATH
6586 < do
6587 <  IFS=$as_save_IFS
6588 <  test -z "$as_dir" && as_dir=.
6589 <    # Account for people who put trailing slashes in PATH elements.
6590 < case $as_dir/ in #((
6591 <  ./ | .// | /[cC]/* | \
6592 <  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6593 <  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6594 <  /usr/ucb/* ) ;;
6595 <  *)
6596 <    # OSF1 and SCO ODT 3.0 have their own names for install.
6597 <    # Don't use installbsd from OSF since it installs stuff as root
6598 <    # by default.
6599 <    for ac_prog in ginstall scoinst install; do
6600 <      for ac_exec_ext in '' $ac_executable_extensions; do
6601 <        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6602 <          if test $ac_prog = install &&
6603 <            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6604 <            # AIX install.  It has an incompatible calling convention.
6605 <            :
6606 <          elif test $ac_prog = install &&
6607 <            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6608 <            # program-specific install script used by HP pwplus--don't use.
6609 <            :
6610 <          else
6611 <            rm -rf conftest.one conftest.two conftest.dir
6612 <            echo one > conftest.one
6613 <            echo two > conftest.two
6614 <            mkdir conftest.dir
6615 <            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6616 <              test -s conftest.one && test -s conftest.two &&
6617 <              test -s conftest.dir/conftest.one &&
6618 <              test -s conftest.dir/conftest.two
6619 <            then
6620 <              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6621 <              break 3
6622 <            fi
6623 <          fi
6624 <        fi
6625 <      done
6626 <    done
6627 <    ;;
6628 < esac
6629 <
6630 <  done
6631 < IFS=$as_save_IFS
6632 <
6633 < rm -rf conftest.one conftest.two conftest.dir
6634 <
6635 < fi
6636 <  if test "${ac_cv_path_install+set}" = set; then
6637 <    INSTALL=$ac_cv_path_install
6638 <  else
6639 <    # As a last resort, use the slow shell script.  Don't cache a
6640 <    # value for INSTALL within a source directory, because that will
6641 <    # break other packages using the cache if that directory is
6642 <    # removed, or if the value is a relative name.
6643 <    INSTALL=$ac_install_sh
6644 <  fi
6645 < fi
6646 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6647 < $as_echo "$INSTALL" >&6; }
6648 <
6649 < # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6650 < # It thinks the first close brace ends the variable substitution.
6651 < test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6652 <
6653 < test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6654 <
6655 < test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6656 <
6657 < case "x$INSTALL" in
6658 <   x/*) ;;
6659 <   *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
6660 < esac
6661 < MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f -m 755"
6662 < # Extract the first word of "ar", so it can be a program name with args.
6663 < set dummy ar; ac_word=$2
6664 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 < $as_echo_n "checking for $ac_word... " >&6; }
6666 < if test "${ac_cv_prog_AR+set}" = set; then :
6667 <  $as_echo_n "(cached) " >&6
6668 < else
6669 <  if test -n "$AR"; then
6670 <  ac_cv_prog_AR="$AR" # Let the user override the test.
6671 < else
6672 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 < for as_dir in $PATH
6674 < do
6675 <  IFS=$as_save_IFS
6676 <  test -z "$as_dir" && as_dir=.
6677 <    for ac_exec_ext in '' $ac_executable_extensions; do
6678 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 <    ac_cv_prog_AR="ar"
6680 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 <    break 2
6682 <  fi
6683 < done
6684 <  done
6685 < IFS=$as_save_IFS
6686 <
6687 <  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
6688 < fi
6689 < fi
6690 < AR=$ac_cv_prog_AR
6691 < if test -n "$AR"; then
6692 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6693 < $as_echo "$AR" >&6; }
6694 < else
6695 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 < $as_echo "no" >&6; }
6697 < fi
6698 <
6699 <
6700 < if test "$AR" = "NONE"; then
6701 <  cat >confcache <<\_ACEOF
6702 < # This file is a shell script that caches the results of configure
6703 < # tests run on this system so they can be shared between configure
6704 < # scripts and configure runs, see configure's option --config-cache.
6705 < # It is not useful on other systems.  If it contains results you don't
6706 < # want to keep, you may remove or edit it.
6707 < #
6708 < # config.status only pays attention to the cache file if you give it
6709 < # the --recheck option to rerun configure.
6710 < #
6711 < # `ac_cv_env_foo' variables (set or unset) will be overridden when
6712 < # loading this file, other *unset* `ac_cv_foo' will be assigned the
6713 < # following values.
6714 <
6715 < _ACEOF
6716 <
6717 < # The following way of writing the cache mishandles newlines in values,
6718 < # but we know of no workaround that is simple, portable, and efficient.
6719 < # So, we kill variables containing newlines.
6720 < # Ultrix sh set writes to stderr and can't be redirected directly,
6721 < # and sets the high bit in the cache file unless we assign to the vars.
6722 < (
6723 <  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6724 <    eval ac_val=\$$ac_var
6725 <    case $ac_val in #(
6726 <    *${as_nl}*)
6727 <      case $ac_var in #(
6728 <      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6729 < $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6730 <      esac
6731 <      case $ac_var in #(
6732 <      _ | IFS | as_nl) ;; #(
6733 <      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6734 <      *) { eval $ac_var=; unset $ac_var;} ;;
6735 <      esac ;;
6736 <    esac
6737 <  done
6738 <
6739 <  (set) 2>&1 |
6740 <    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6741 <    *${as_nl}ac_space=\ *)
6742 <      # `set' does not quote correctly, so add quotes: double-quote
6743 <      # substitution turns \\\\ into \\, and sed turns \\ into \.
6744 <      sed -n \
6745 <        "s/'/'\\\\''/g;
6746 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6747 <      ;; #(
6748 <    *)
6749 <      # `set' quotes correctly as required by POSIX, so do not add quotes.
6750 <      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6751 <      ;;
6752 <    esac |
6753 <    sort
6754 < ) |
6755 <  sed '
6756 <     /^ac_cv_env_/b end
6757 <     t clear
6758 <     :clear
6759 <     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6760 <     t end
6761 <     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6762 <     :end' >>confcache
6763 < if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6764 <  if test -w "$cache_file"; then
6765 <    test "x$cache_file" != "x/dev/null" &&
6766 <      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6767 < $as_echo "$as_me: updating cache $cache_file" >&6;}
6768 <    cat confcache >$cache_file
6769 <  else
6770 <    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6771 < $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6772 <  fi
6773 < fi
6774 < rm -f confcache
6775 <  exit 1
6776 < fi
6777 < # Extract the first word of "ps", so it can be a program name with args.
6778 < set dummy ps; ac_word=$2
6779 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 < $as_echo_n "checking for $ac_word... " >&6; }
6781 < if test "${ac_cv_path_PS+set}" = set; then :
6782 <  $as_echo_n "(cached) " >&6
6783 < else
6784 <  case $PS in
6785 <  [\\/]* | ?:[\\/]*)
6786 <  ac_cv_path_PS="$PS" # Let the user override the test with a path.
6787 <  ;;
6788 <  *)
6789 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 < for as_dir in $PATH
6791 < do
6792 <  IFS=$as_save_IFS
6793 <  test -z "$as_dir" && as_dir=.
6794 <    for ac_exec_ext in '' $ac_executable_extensions; do
6795 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 <    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
6797 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 <    break 2
6799 <  fi
6800 < done
6801 <  done
6802 < IFS=$as_save_IFS
6803 <
6804 <  ;;
6805 < esac
6806 < fi
6807 < PS=$ac_cv_path_PS
6808 < if test -n "$PS"; then
6809 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
6810 < $as_echo "$PS" >&6; }
6811 < else
6812 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 < $as_echo "no" >&6; }
6814 < fi
6815 <
6816 <
6817 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX or BSD ps syntax" >&5
6818 < $as_echo_n "checking for POSIX or BSD ps syntax... " >&6; }
6819 < if test "${ac_cv_prog_ps_syntax+set}" = set; then :
6820 <  $as_echo_n "(cached) " >&6
6821 < else
6822 <
6823 <        if $PS ax -o rss > /dev/null 2>&1; then
6824 <                ac_cv_prog_ps_ax=yes
6825 <        else
6826 <                ac_cv_prog_ps_ax=no
6827 <        fi
6828 <        if $PS -ef -o rss > /dev/null 2>&1; then
6829 <                ac_cv_prog_ps_ef=yes
6830 <        else
6831 <                ac_cv_prog_ps_ef=no
6832 <        fi
6833 <        if test "$ac_cv_prog_ps_ax" = yes; then
6834 <                ac_cv_prog_ps_syntax=BSD
6835 <        else
6836 <                if test "$ac_cv_prog_ps_ef" = yes; then
6837 <                        ac_cv_prog_ps_syntax=POSIX
6838 <                else
6839 <                        as_fn_error "Could not determine ps syntax" "$LINENO" 5
6840 <                fi
6841 <        fi
6842 <
6843 < fi
6844 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_ps_syntax" >&5
6845 < $as_echo "$ac_cv_prog_ps_syntax" >&6; }
6846 <
6847 < cat >>confdefs.h <<_ACEOF
6848 < #define PSCOMMAND $PS
6849 < _ACEOF
6850 <
6851 < if test "$ac_cv_prog_ps_syntax" = BSD; then
6852 <
6853 < $as_echo "#define PSTYPE_IS_BSD 1" >>confdefs.h
6854 <
6855 < else
6856 <   if test "$ac_cv_prog_ps_syntax" = POSIX; then
6857 <
6858 < $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
6859 <
6860 <   else
6861 <       as_fn_error "Unknown ps syntax type!" "$LINENO" 5
6862 <   fi
6863 < fi
6864 <
6865 < ac_ext=${ac_fc_srcext-f}
6866 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6867 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6868 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6869 <
6870 < ac_ext=${ac_fc_srcext-f}
6871 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6872 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6873 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6874 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5
6875 < $as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; }
6876 < if test "${ac_cv_fc_srcext_F90+set}" = set; then :
6877 <  $as_echo_n "(cached) " >&6
6878 < else
6879 <  ac_ext=F90
6880 < ac_fcflags_srcext_save=$ac_fcflags_srcext
6881 < ac_fcflags_srcext=
6882 < ac_cv_fc_srcext_F90=unknown
6883 < for ac_flag in none -qsuffix=f=F90 -Tf; do
6884 <  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
6885 <  cat > conftest.$ac_ext <<_ACEOF
6886 <      program main
6887 <
6888 <      end
6889 < _ACEOF
6890 < if ac_fn_fc_try_compile "$LINENO"; then :
6891 <  ac_cv_fc_srcext_F90=$ac_flag; break
6892 < fi
6893 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 < done
6895 < rm -f conftest.$ac_objext conftest.F90
6896 < ac_fcflags_srcext=$ac_fcflags_srcext_save
6897 <
6898 < fi
6899 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5
6900 < $as_echo "$ac_cv_fc_srcext_F90" >&6; }
6901 < if test "x$ac_cv_fc_srcext_F90" = xunknown; then
6902 <  as_fn_error "Fortran could not compile .F90 files" "$LINENO" 5
6903 < else
6904 <  ac_fc_srcext=F90
6905 <  if test "x$ac_cv_fc_srcext_F90" = xnone; then
6906 <    ac_fcflags_srcext=""
6907 <    FCFLAGS_F90=""
6908 <  else
6909 <    ac_fcflags_srcext=$ac_cv_fc_srcext_F90
6910 <    FCFLAGS_F90=$ac_cv_fc_srcext_F90
6911 <  fi
6912 <
6913 <
6914 < fi
6915 < ac_ext=${ac_fc_srcext-f}
6916 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6917 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6918 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6919 <
6920 <
6921 <
6922 <
6923 <
6924 < # Try to determine native compiler flags that allow us to use F90 suffix
6925 < # for preprocessed f90 source.
6926 <
6927 < if test "$ac_test_PREPFLAG" != "set"; then
6928 <  PREPFLAG=""
6929 <  case "${host_cpu}-${host_os}" in
6930 <
6931 <  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
6932 <                    PREPFLAG="-fpp1 "
6933 <                fi;;
6934 <  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
6935 <                    PREPFLAG="-qsuffix=cpp=F90 "
6936 <                fi;;
6937 <  *darwin*)
6938 <        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
6939 <                PREPFLAG="-qsuffix=cpp=F90 "
6940 <        fi;;
6941 <  esac
6942 <
6943 <  if test -z "$PREPFLAG"; then
6944 <        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPFLAG\"" >&5
6945 < $as_echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
6946 <        PREPFLAG=""
6947 <  fi
6948 <
6949 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor flag works" >&5
6950 < $as_echo_n "checking to make sure F90 preprocessor flag works... " >&6; }
6951 <
6952 <  ac_ext=${ac_fc_srcext-f}
6953 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6954 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6955 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6956 <
6957 <  ac_save_ext=$ac_ext
6958 <  ac_ext=F90
6959 <  ac_save_FCFLAGS_SRCEXT=$FCFLAGS_SRCEXT
6960 <
6961 <  if test "$PREPFLAG"; then :
6962 <  FCFLAGS_SRCEXT="${PREPFLAG}"
6963 < fi
6964 <    cat > conftest.$ac_ext <<_ACEOF
6965 <
6966 <
6967 < program conftest
6968 <  integer :: i
6969 <  i = 1
6970 < end program conftest
6971 <
6972 < _ACEOF
6973 < if ac_fn_fc_try_compile "$LINENO"; then :
6974 <  prepflagworks=1
6975 < else
6976 <  prepflagworks=0
6977 < fi
6978 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6979 <
6980 <  FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT
6981 <  ac_ext=$ac_save_ext
6982 <  ac_ext=${ac_fc_srcext-f}
6983 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6984 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6985 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6986 <
6987 <
6988 <  if test "$prepflagworks" = 1; then
6989 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6990 < $as_echo "yes" >&6; }
6991 <    FCFLAGS_SRCEXT="${PREPFLAG}"
6992 <
6993 <  else
6994 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 < $as_echo "no" >&6; }
6996 <    as_fn_error "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5
6997 <  fi
6998 < fi
6999 <
7000 <
7001 <
7002 <
7003 <
7004 < # Try to determine native compiler flags that allow us to use F90 suffix
7005 < # for preprocessed f90 source with -D type defines
7006 <
7007 < if test "$ac_test_PREPDEFFLAG" != "set"; then
7008 <  PREPDEFFLAG=""
7009 <  case "${host_cpu}-${host_os}" in
7010 <
7011 <  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
7012 <                    PREPDEFFLAG=" "
7013 <                fi;;
7014 <  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
7015 <                    PREPDEFFLAG="-WF,"
7016 <                fi;;
7017 <  *darwin*)
7018 <        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
7019 <                PREPDEFFLAG="-WF,"
7020 <        fi;;
7021 <  esac
7022 <
7023 <  if test -z "$PREPDEFFLAG"; then
7024 <        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPDEFFLAG\"" >&5
7025 < $as_echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
7026 <        PREPDEFFLAG=" "
7027 <  fi
7028 <
7029 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor define flag works" >&5
7030 < $as_echo_n "checking to make sure F90 preprocessor define flag works... " >&6; }
7031 <
7032 <  ac_ext=${ac_fc_srcext-f}
7033 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7034 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7035 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7036 <
7037 <  ac_save_ext=$ac_ext
7038 <  ac_ext=F90
7039 <  ac_save_FCFLAGS=$FCFLAGS
7040 <
7041 <  if test "$PREPDEFFLAG"; then :
7042 <  FCFLAGS="${FCFLAGS} ${PREPDEFFLAG}-DTEST"
7043 < fi
7044 <    cat > conftest.$ac_ext <<_ACEOF
7045 <
7046 <
7047 < program conftest
7048 <  integer :: i
7049 < #ifdef TEST
7050 <  i = 1
7051 < #else
7052 <  choke me
7053 < #endif
7054 < end program conftest
7055 <
7056 < _ACEOF
7057 < if ac_fn_fc_try_compile "$LINENO"; then :
7058 <  prepdefflagworks=1
7059 < else
7060 <  prepdefflagworks=0
7061 < fi
7062 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7063 <
7064 <  FCFLAGS=$ac_save_FCFLAGS
7065 <  ac_ext=$ac_save_ext
7066 <  ac_ext=${ac_fc_srcext-f}
7067 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7068 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7069 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7070 <
7071 <
7072 <  if test "$prepdefflagworks" = 1; then
7073 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7074 < $as_echo "yes" >&6; }
7075 <
7076 <  else
7077 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 < $as_echo "no" >&6; }
7079 <    as_fn_error "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5
7080 <  fi
7081 < fi
7082 <
7083 < ac_ext=${ac_fc_srcext-f}
7084 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7085 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7086 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7087 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
7088 < $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
7089 < if test "${ac_cv_prog_fc_v+set}" = set; then :
7090 <  $as_echo_n "(cached) " >&6
7091 < else
7092 <  cat > conftest.$ac_ext <<_ACEOF
7093 <      program main
7094 <
7095 <      end
7096 < _ACEOF
7097 < if ac_fn_fc_try_compile "$LINENO"; then :
7098 <  ac_cv_prog_fc_v=
7099 < # Try some options frequently used verbose output
7100 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
7101 <  cat > conftest.$ac_ext <<_ACEOF
7102 <      program main
7103 <
7104 <      end
7105 < _ACEOF
7106 <
7107 < # Compile and link our simple test program by passing a flag (argument
7108 < # 1 to this macro) to the Fortran compiler in order to get
7109 < # "verbose" output that we can then parse for the Fortran linker
7110 < # flags.
7111 < ac_save_FCFLAGS=$FCFLAGS
7112 < FCFLAGS="$FCFLAGS $ac_verb"
7113 < eval "set x $ac_link"
7114 < shift
7115 < $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7116 < # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7117 < # LIBRARY_PATH; skip all such settings.
7118 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7119 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7120 < $as_echo "$ac_fc_v_output" >&5
7121 < FCFLAGS=$ac_save_FCFLAGS
7122 <
7123 < rm -rf conftest*
7124 <
7125 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7126 < # /foo, /bar, and /baz are search directories for the Fortran linker.
7127 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7128 < ac_fc_v_output="`echo $ac_fc_v_output |
7129 <        grep 'LPATH is:' |
7130 <        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7131 <
7132 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
7133 < #        that detects unbalanced quotes in FLIBS should be implemented
7134 < #        and (ugh) tested at some point.
7135 < case $ac_fc_v_output in
7136 <  # If we are using xlf then replace all the commas with spaces.
7137 <  *xlfentry*)
7138 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7139 <
7140 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7141 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
7142 <  *mGLOB_options_string*)
7143 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7144 <
7145 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7146 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7147 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7148 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
7149 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7150 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7151 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7152 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7153 <
7154 <  # If we are using Cray Fortran then delete quotes.
7155 <  *cft90*)
7156 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7157 < esac
7158 <
7159 <
7160 <  # look for -l* and *.a constructs in the output
7161 <  for ac_arg in $ac_fc_v_output; do
7162 <     case $ac_arg in
7163 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
7164 <          ac_cv_prog_fc_v=$ac_verb
7165 <          break 2 ;;
7166 <     esac
7167 <  done
7168 < done
7169 < if test -z "$ac_cv_prog_fc_v"; then
7170 <   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
7171 < $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
7172 < fi
7173 < else
7174 <  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
7175 < $as_echo "$as_me: WARNING: compilation failed" >&2;}
7176 < fi
7177 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 <
7179 < fi
7180 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
7181 < $as_echo "$ac_cv_prog_fc_v" >&6; }
7182 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
7183 < $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
7184 < if test "${ac_cv_fc_libs+set}" = set; then :
7185 <  $as_echo_n "(cached) " >&6
7186 < else
7187 <  if test "x$FCLIBS" != "x"; then
7188 <  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
7189 < else
7190 <
7191 < cat > conftest.$ac_ext <<_ACEOF
7192 <      program main
7193 <
7194 <      end
7195 < _ACEOF
7196 <
7197 < # Compile and link our simple test program by passing a flag (argument
7198 < # 1 to this macro) to the Fortran compiler in order to get
7199 < # "verbose" output that we can then parse for the Fortran linker
7200 < # flags.
7201 < ac_save_FCFLAGS=$FCFLAGS
7202 < FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
7203 < eval "set x $ac_link"
7204 < shift
7205 < $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7206 < # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7207 < # LIBRARY_PATH; skip all such settings.
7208 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7209 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7210 < $as_echo "$ac_fc_v_output" >&5
7211 < FCFLAGS=$ac_save_FCFLAGS
7212 <
7213 < rm -rf conftest*
7214 <
7215 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7216 < # /foo, /bar, and /baz are search directories for the Fortran linker.
7217 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7218 < ac_fc_v_output="`echo $ac_fc_v_output |
7219 <        grep 'LPATH is:' |
7220 <        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7221 <
7222 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
7223 < #        that detects unbalanced quotes in FLIBS should be implemented
7224 < #        and (ugh) tested at some point.
7225 < case $ac_fc_v_output in
7226 <  # If we are using xlf then replace all the commas with spaces.
7227 <  *xlfentry*)
7228 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7229 <
7230 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7231 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
7232 <  *mGLOB_options_string*)
7233 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7234 <
7235 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7236 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7237 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7238 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
7239 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7240 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7241 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7242 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7243 <
7244 <  # If we are using Cray Fortran then delete quotes.
7245 <  *cft90*)
7246 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7247 < esac
7248 <
7249 <
7250 <
7251 < ac_cv_fc_libs=
7252 <
7253 < # Save positional arguments (if any)
7254 < ac_save_positional="$@"
7255 <
7256 < set X $ac_fc_v_output
7257 < while test $# != 1; do
7258 <  shift
7259 <  ac_arg=$1
7260 <  case $ac_arg in
7261 <        [\\/]*.a | ?:[\\/]*.a)
7262 <            ac_exists=false
7263 <  for ac_i in $ac_cv_fc_libs; do
7264 <    if test x"$ac_arg" = x"$ac_i"; then
7265 <      ac_exists=true
7266 <      break
7267 <    fi
7268 <  done
7269 <
7270 <  if test x"$ac_exists" = xtrue; then :
7271 <
7272 < else
7273 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7274 < fi
7275 <          ;;
7276 <        -bI:*)
7277 <            ac_exists=false
7278 <  for ac_i in $ac_cv_fc_libs; do
7279 <    if test x"$ac_arg" = x"$ac_i"; then
7280 <      ac_exists=true
7281 <      break
7282 <    fi
7283 <  done
7284 <
7285 <  if test x"$ac_exists" = xtrue; then :
7286 <
7287 < else
7288 <  if test "$ac_compiler_gnu" = yes; then
7289 <  for ac_link_opt in $ac_arg; do
7290 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7291 <  done
7292 < else
7293 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7294 < fi
7295 < fi
7296 <          ;;
7297 <          # Ignore these flags.
7298 <        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
7299 <          |-LANG:=* | -LIST:* | -LNO:*)
7300 <          ;;
7301 <        -lkernel32)
7302 <          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7303 <          ;;
7304 <        -[LRuYz])
7305 <          # These flags, when seen by themselves, take an argument.
7306 <          # We remove the space between option and argument and re-iterate
7307 <          # unless we find an empty arg or a new option (starting with -)
7308 <          case $2 in
7309 <             "" | -*);;
7310 <             *)
7311 <                ac_arg="$ac_arg$2"
7312 <                shift; shift
7313 <                set X $ac_arg "$@"
7314 <                ;;
7315 <          esac
7316 <          ;;
7317 <        -YP,*)
7318 <          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
7319 <              ac_exists=false
7320 <  for ac_i in $ac_cv_fc_libs; do
7321 <    if test x"$ac_j" = x"$ac_i"; then
7322 <      ac_exists=true
7323 <      break
7324 <    fi
7325 <  done
7326 <
7327 <  if test x"$ac_exists" = xtrue; then :
7328 <
7329 < else
7330 <  ac_arg="$ac_arg $ac_j"
7331 <                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
7332 < fi
7333 <          done
7334 <          ;;
7335 <        -[lLR]*)
7336 <            ac_exists=false
7337 <  for ac_i in $ac_cv_fc_libs; do
7338 <    if test x"$ac_arg" = x"$ac_i"; then
7339 <      ac_exists=true
7340 <      break
7341 <    fi
7342 <  done
7343 <
7344 <  if test x"$ac_exists" = xtrue; then :
7345 <
7346 < else
7347 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7348 < fi
7349 <          ;;
7350 <        -zallextract*| -zdefaultextract)
7351 <          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7352 <          ;;
7353 <          # Ignore everything else.
7354 <  esac
7355 < done
7356 < # restore positional arguments
7357 < set X $ac_save_positional; shift
7358 <
7359 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
7360 < # then we insist that the "run path" must be an absolute path (i.e. it
7361 < # must begin with a "/").
7362 < case `(uname -sr) 2>/dev/null` in
7363 <   "SunOS 5"*)
7364 <      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
7365 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
7366 <      test "x$ac_ld_run_path" != x &&
7367 <        if test "$ac_compiler_gnu" = yes; then
7368 <  for ac_link_opt in $ac_ld_run_path; do
7369 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7370 <  done
7371 < else
7372 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
7373 < fi
7374 <      ;;
7375 < esac
7376 < fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
7377 <
7378 < fi
7379 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
7380 < $as_echo "$ac_cv_fc_libs" >&6; }
7381 < FCLIBS="$ac_cv_fc_libs"
7382 <
7383 <
7384 < ac_ext=${ac_fc_srcext-f}
7385 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7386 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7387 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7388 <
7389 < ac_ext=${ac_fc_srcext-f}
7390 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7391 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7392 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7393 <
7394 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
7395 < $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
7396 < if test "${ac_cv_fc_dummy_main+set}" = set; then :
7397 <  $as_echo_n "(cached) " >&6
7398 < else
7399 <  ac_fc_dm_save_LIBS=$LIBS
7400 < LIBS="$LIBS $FCLIBS"
7401 < ac_fortran_dm_var=FC_DUMMY_MAIN
7402 < ac_ext=c
7403 < ac_cpp='$CPP $CPPFLAGS'
7404 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7405 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7406 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7407 <
7408 < # First, try linking without a dummy main:
7409 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 < /* end confdefs.h.  */
7411 <
7412 < #ifdef FC_DUMMY_MAIN
7413 < #ifndef FC_DUMMY_MAIN_EQ_F77
7414 < #  ifdef __cplusplus
7415 <     extern "C"
7416 < #  endif
7417 <   int FC_DUMMY_MAIN() { return 1; }
7418 < #endif
7419 < #endif
7420 < int
7421 < main ()
7422 < {
7423 <
7424 <  ;
7425 <  return 0;
7426 < }
7427 < _ACEOF
7428 < if ac_fn_c_try_link "$LINENO"; then :
7429 <  ac_cv_fortran_dummy_main=none
7430 < else
7431 <  ac_cv_fortran_dummy_main=unknown
7432 < fi
7433 < rm -f core conftest.err conftest.$ac_objext \
7434 <    conftest$ac_exeext conftest.$ac_ext
7435 <
7436 < if test $ac_cv_fortran_dummy_main = unknown; then
7437 <   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
7438 <     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 < /* end confdefs.h.  */
7440 < #define $ac_fortran_dm_var $ac_func
7441 < #ifdef FC_DUMMY_MAIN
7442 < #ifndef FC_DUMMY_MAIN_EQ_F77
7443 < #  ifdef __cplusplus
7444 <     extern "C"
7445 < #  endif
7446 <   int FC_DUMMY_MAIN() { return 1; }
7447 < #endif
7448 < #endif
7449 < int
7450 < main ()
7451 < {
7452 <
7453 <  ;
7454 <  return 0;
7455 < }
7456 < _ACEOF
7457 < if ac_fn_c_try_link "$LINENO"; then :
7458 <  ac_cv_fortran_dummy_main=$ac_func; break
7459 < fi
7460 < rm -f core conftest.err conftest.$ac_objext \
7461 <    conftest$ac_exeext conftest.$ac_ext
7462 <   done
7463 < fi
7464 < ac_ext=${ac_fc_srcext-f}
7465 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7466 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7467 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7468 < ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
7469 < rm -rf conftest*
7470 < LIBS=$ac_fc_dm_save_LIBS
7471 <
7472 < fi
7473 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5
7474 < $as_echo "$ac_cv_fc_dummy_main" >&6; }
7475 < FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
7476 < if test "$FC_DUMMY_MAIN" != unknown; then :
7477 <  if test $FC_DUMMY_MAIN != none; then
7478 <
7479 < cat >>confdefs.h <<_ACEOF
7480 < #define FC_DUMMY_MAIN $FC_DUMMY_MAIN
7481 < _ACEOF
7482 <
7483 <  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
7484 <
7485 < $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
7486 <
7487 <  fi
7488 < fi
7489 < else
7490 <  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7491 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7492 < as_fn_error "linking to Fortran libraries from C fails
7493 < See \`config.log' for more details." "$LINENO" 5; }
7494 < fi
7495 <
7496 < ac_ext=${ac_fc_srcext-f}
7497 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7498 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7499 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7500 <
7501 < ac_ext=${ac_fc_srcext-f}
7502 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7503 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7504 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7505 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
7506 < $as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
7507 < if test "${ac_cv_fc_mangling+set}" = set; then :
7508 <  $as_echo_n "(cached) " >&6
7509 < else
7510 <  cat > conftest.$ac_ext <<_ACEOF
7511 <      subroutine foobar()
7512 <      return
7513 <      end
7514 <      subroutine foo_bar()
7515 <      return
7516 <      end
7517 < _ACEOF
7518 < if ac_fn_fc_try_compile "$LINENO"; then :
7519 <  mv conftest.$ac_objext cfortran_test.$ac_objext
7520 <
7521 <  ac_save_LIBS=$LIBS
7522 <  LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"
7523 <
7524 <  ac_ext=c
7525 < ac_cpp='$CPP $CPPFLAGS'
7526 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7527 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7528 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7529 <  ac_success=no
7530 <  for ac_foobar in foobar FOOBAR; do
7531 <    for ac_underscore in "" "_"; do
7532 <      ac_func="$ac_foobar$ac_underscore"
7533 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 < /* end confdefs.h.  */
7535 <
7536 < /* Override any GCC internal prototype to avoid an error.
7537 <   Use char because int might match the return type of a GCC
7538 <   builtin and then its argument prototype would still apply.  */
7539 < #ifdef __cplusplus
7540 < extern "C"
7541 < #endif
7542 < char $ac_func ();
7543 < #ifdef FC_DUMMY_MAIN
7544 < #ifndef FC_DUMMY_MAIN_EQ_F77
7545 < #  ifdef __cplusplus
7546 <     extern "C"
7547 < #  endif
7548 <   int FC_DUMMY_MAIN() { return 1; }
7549 < #endif
7550 < #endif
7551 < int
7552 < main ()
7553 < {
7554 < return $ac_func ();
7555 <  ;
7556 <  return 0;
7557 < }
7558 < _ACEOF
7559 < if ac_fn_c_try_link "$LINENO"; then :
7560 <  ac_success=yes; break 2
7561 < fi
7562 < rm -f core conftest.err conftest.$ac_objext \
7563 <    conftest$ac_exeext conftest.$ac_ext
7564 <    done
7565 <  done
7566 <  ac_ext=${ac_fc_srcext-f}
7567 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7568 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7569 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7570 <
7571 <  if test "$ac_success" = "yes"; then
7572 <     case $ac_foobar in
7573 <        foobar)
7574 <           ac_case=lower
7575 <           ac_foo_bar=foo_bar
7576 <           ;;
7577 <        FOOBAR)
7578 <           ac_case=upper
7579 <           ac_foo_bar=FOO_BAR
7580 <           ;;
7581 <     esac
7582 <
7583 <     ac_ext=c
7584 < ac_cpp='$CPP $CPPFLAGS'
7585 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7586 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7587 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7588 <     ac_success_extra=no
7589 <     for ac_extra in "" "_"; do
7590 <        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
7591 <        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 < /* end confdefs.h.  */
7593 <
7594 < /* Override any GCC internal prototype to avoid an error.
7595 <   Use char because int might match the return type of a GCC
7596 <   builtin and then its argument prototype would still apply.  */
7597 < #ifdef __cplusplus
7598 < extern "C"
7599 < #endif
7600 < char $ac_func ();
7601 < #ifdef FC_DUMMY_MAIN
7602 < #ifndef FC_DUMMY_MAIN_EQ_F77
7603 < #  ifdef __cplusplus
7604 <     extern "C"
7605 < #  endif
7606 <   int FC_DUMMY_MAIN() { return 1; }
7607 < #endif
7608 < #endif
7609 < int
7610 < main ()
7611 < {
7612 < return $ac_func ();
7613 <  ;
7614 <  return 0;
7615 < }
7616 < _ACEOF
7617 < if ac_fn_c_try_link "$LINENO"; then :
7618 <  ac_success_extra=yes; break
7619 < fi
7620 < rm -f core conftest.err conftest.$ac_objext \
7621 <    conftest$ac_exeext conftest.$ac_ext
7622 <     done
7623 <     ac_ext=${ac_fc_srcext-f}
7624 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7625 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7626 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7627 <
7628 <     if test "$ac_success_extra" = "yes"; then
7629 <        ac_cv_fc_mangling="$ac_case case"
7630 <        if test -z "$ac_underscore"; then
7631 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
7632 <        else
7633 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
7634 <        fi
7635 <        if test -z "$ac_extra"; then
7636 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
7637 <        else
7638 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
7639 <        fi
7640 <      else
7641 <        ac_cv_fc_mangling="unknown"
7642 <      fi
7643 <  else
7644 <     ac_cv_fc_mangling="unknown"
7645 <  fi
7646 <
7647 <  LIBS=$ac_save_LIBS
7648 <  rm -rf conftest*
7649 <  rm -f cfortran_test*
7650 < else
7651 <  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7652 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7653 < as_fn_error "cannot compile a simple Fortran program
7654 < See \`config.log' for more details." "$LINENO" 5; }
7655 < fi
7656 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657 <
7658 < fi
7659 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5
7660 < $as_echo "$ac_cv_fc_mangling" >&6; }
7661 <
7662 < ac_ext=${ac_fc_srcext-f}
7663 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7664 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7665 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7666 <
7667 < ac_ext=${ac_fc_srcext-f}
7668 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7669 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7670 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7671 < case $ac_cv_fc_mangling in
7672 <  "lower case, no underscore, no extra underscore")
7673 <          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
7674 <
7675 <          $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h
7676 < ;;
7677 <  "lower case, no underscore, extra underscore")
7678 <          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
7679 <
7680 <          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
7681 < ;;
7682 <  "lower case, underscore, no extra underscore")
7683 <          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
7684 <
7685 <          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
7686 < ;;
7687 <  "lower case, underscore, extra underscore")
7688 <          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
7689 <
7690 <          $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h
7691 < ;;
7692 <  "upper case, no underscore, no extra underscore")
7693 <          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
7694 <
7695 <          $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h
7696 < ;;
7697 <  "upper case, no underscore, extra underscore")
7698 <          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
7699 <
7700 <          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
7701 < ;;
7702 <  "upper case, underscore, no extra underscore")
7703 <          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
7704 <
7705 <          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
7706 < ;;
7707 <  "upper case, underscore, extra underscore")
7708 <          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
7709 <
7710 <          $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h
7711 < ;;
7712 <  *)
7713 <          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
7714 < $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
7715 <          ;;
7716 < esac
7717 <
7718 < ac_ext=${ac_fc_srcext-f}
7719 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7720 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7721 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7722 <
7723 <
7724 <
7725 < ac_ext=${ac_fc_srcext-f}
7726 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7727 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7728 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7729 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
7730 < $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
7731 < if test "${ac_cv_prog_fc_v+set}" = set; then :
7732 <  $as_echo_n "(cached) " >&6
7733 < else
7734 <  cat > conftest.$ac_ext <<_ACEOF
7735 <      program main
7736 <
7737 <      end
7738 < _ACEOF
7739 < if ac_fn_fc_try_compile "$LINENO"; then :
7740 <  ac_cv_prog_fc_v=
7741 < # Try some options frequently used verbose output
7742 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
7743 <  cat > conftest.$ac_ext <<_ACEOF
7744 <      program main
7745 <
7746 <      end
7747 < _ACEOF
7748 <
7749 < # Compile and link our simple test program by passing a flag (argument
7750 < # 1 to this macro) to the Fortran compiler in order to get
7751 < # "verbose" output that we can then parse for the Fortran linker
7752 < # flags.
7753 < ac_save_FCFLAGS=$FCFLAGS
7754 < FCFLAGS="$FCFLAGS $ac_verb"
7755 < eval "set x $ac_link"
7756 < shift
7757 < $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7758 < # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7759 < # LIBRARY_PATH; skip all such settings.
7760 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7761 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7762 < $as_echo "$ac_fc_v_output" >&5
7763 < FCFLAGS=$ac_save_FCFLAGS
7764 <
7765 < rm -rf conftest*
7766 <
7767 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7768 < # /foo, /bar, and /baz are search directories for the Fortran linker.
7769 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7770 < ac_fc_v_output="`echo $ac_fc_v_output |
7771 <        grep 'LPATH is:' |
7772 <        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7773 <
7774 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
7775 < #        that detects unbalanced quotes in FLIBS should be implemented
7776 < #        and (ugh) tested at some point.
7777 < case $ac_fc_v_output in
7778 <  # If we are using xlf then replace all the commas with spaces.
7779 <  *xlfentry*)
7780 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7781 <
7782 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7783 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
7784 <  *mGLOB_options_string*)
7785 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7786 <
7787 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7788 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7789 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7790 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
7791 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7792 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7793 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7794 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7795 <
7796 <  # If we are using Cray Fortran then delete quotes.
7797 <  *cft90*)
7798 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7799 < esac
7800 <
7801 <
7802 <  # look for -l* and *.a constructs in the output
7803 <  for ac_arg in $ac_fc_v_output; do
7804 <     case $ac_arg in
7805 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
7806 <          ac_cv_prog_fc_v=$ac_verb
7807 <          break 2 ;;
7808 <     esac
7809 <  done
7810 < done
7811 < if test -z "$ac_cv_prog_fc_v"; then
7812 <   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
7813 < $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
7814 < fi
7815 < else
7816 <  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
7817 < $as_echo "$as_me: WARNING: compilation failed" >&2;}
7818 < fi
7819 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820 <
7821 < fi
7822 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
7823 < $as_echo "$ac_cv_prog_fc_v" >&6; }
7824 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
7825 < $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
7826 < if test "${ac_cv_fc_libs+set}" = set; then :
7827 <  $as_echo_n "(cached) " >&6
7828 < else
7829 <  if test "x$FCLIBS" != "x"; then
7830 <  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
7831 < else
7832 <
7833 < cat > conftest.$ac_ext <<_ACEOF
7834 <      program main
7835 <
7836 <      end
7837 < _ACEOF
7838 <
7839 < # Compile and link our simple test program by passing a flag (argument
7840 < # 1 to this macro) to the Fortran compiler in order to get
7841 < # "verbose" output that we can then parse for the Fortran linker
7842 < # flags.
7843 < ac_save_FCFLAGS=$FCFLAGS
7844 < FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
7845 < eval "set x $ac_link"
7846 < shift
7847 < $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7848 < # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7849 < # LIBRARY_PATH; skip all such settings.
7850 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7851 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7852 < $as_echo "$ac_fc_v_output" >&5
7853 < FCFLAGS=$ac_save_FCFLAGS
7854 <
7855 < rm -rf conftest*
7856 <
7857 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7858 < # /foo, /bar, and /baz are search directories for the Fortran linker.
7859 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7860 < ac_fc_v_output="`echo $ac_fc_v_output |
7861 <        grep 'LPATH is:' |
7862 <        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7863 <
7864 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
7865 < #        that detects unbalanced quotes in FLIBS should be implemented
7866 < #        and (ugh) tested at some point.
7867 < case $ac_fc_v_output in
7868 <  # If we are using xlf then replace all the commas with spaces.
7869 <  *xlfentry*)
7870 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7871 <
7872 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7873 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
7874 <  *mGLOB_options_string*)
7875 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7876 <
7877 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7878 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7879 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7880 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
7881 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7882 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7883 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7884 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7885 <
7886 <  # If we are using Cray Fortran then delete quotes.
7887 <  *cft90*)
7888 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7889 < esac
7890 <
7891 <
7892 <
7893 < ac_cv_fc_libs=
7894 <
7895 < # Save positional arguments (if any)
7896 < ac_save_positional="$@"
7897 <
7898 < set X $ac_fc_v_output
7899 < while test $# != 1; do
7900 <  shift
7901 <  ac_arg=$1
7902 <  case $ac_arg in
7903 <        [\\/]*.a | ?:[\\/]*.a)
7904 <            ac_exists=false
7905 <  for ac_i in $ac_cv_fc_libs; do
7906 <    if test x"$ac_arg" = x"$ac_i"; then
7907 <      ac_exists=true
7908 <      break
7909 <    fi
7910 <  done
7911 <
7912 <  if test x"$ac_exists" = xtrue; then :
7913 <
7914 < else
7915 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7916 < fi
7917 <          ;;
7918 <        -bI:*)
7919 <            ac_exists=false
7920 <  for ac_i in $ac_cv_fc_libs; do
7921 <    if test x"$ac_arg" = x"$ac_i"; then
7922 <      ac_exists=true
7923 <      break
7924 <    fi
7925 <  done
7926 <
7927 <  if test x"$ac_exists" = xtrue; then :
7928 <
7929 < else
7930 <  if test "$ac_compiler_gnu" = yes; then
7931 <  for ac_link_opt in $ac_arg; do
7932 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7933 <  done
7934 < else
7935 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7936 < fi
7937 < fi
7938 <          ;;
7939 <          # Ignore these flags.
7940 <        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
7941 <          |-LANG:=* | -LIST:* | -LNO:*)
7942 <          ;;
7943 <        -lkernel32)
7944 <          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7945 <          ;;
7946 <        -[LRuYz])
7947 <          # These flags, when seen by themselves, take an argument.
7948 <          # We remove the space between option and argument and re-iterate
7949 <          # unless we find an empty arg or a new option (starting with -)
7950 <          case $2 in
7951 <             "" | -*);;
7952 <             *)
7953 <                ac_arg="$ac_arg$2"
7954 <                shift; shift
7955 <                set X $ac_arg "$@"
7956 <                ;;
7957 <          esac
7958 <          ;;
7959 <        -YP,*)
7960 <          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
7961 <              ac_exists=false
7962 <  for ac_i in $ac_cv_fc_libs; do
7963 <    if test x"$ac_j" = x"$ac_i"; then
7964 <      ac_exists=true
7965 <      break
7966 <    fi
7967 <  done
7968 <
7969 <  if test x"$ac_exists" = xtrue; then :
7970 <
7971 < else
7972 <  ac_arg="$ac_arg $ac_j"
7973 <                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
7974 < fi
7975 <          done
7976 <          ;;
7977 <        -[lLR]*)
7978 <            ac_exists=false
7979 <  for ac_i in $ac_cv_fc_libs; do
7980 <    if test x"$ac_arg" = x"$ac_i"; then
7981 <      ac_exists=true
7982 <      break
7983 <    fi
7984 <  done
7985 <
7986 <  if test x"$ac_exists" = xtrue; then :
7987 <
7988 < else
7989 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7990 < fi
7991 <          ;;
7992 <        -zallextract*| -zdefaultextract)
7993 <          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7994 <          ;;
7995 <          # Ignore everything else.
7996 <  esac
7997 < done
7998 < # restore positional arguments
7999 < set X $ac_save_positional; shift
8000 <
8001 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
8002 < # then we insist that the "run path" must be an absolute path (i.e. it
8003 < # must begin with a "/").
8004 < case `(uname -sr) 2>/dev/null` in
8005 <   "SunOS 5"*)
8006 <      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
8007 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
8008 <      test "x$ac_ld_run_path" != x &&
8009 <        if test "$ac_compiler_gnu" = yes; then
8010 <  for ac_link_opt in $ac_ld_run_path; do
8011 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
8012 <  done
8013 < else
8014 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
8015 < fi
8016 <      ;;
8017 < esac
8018 < fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
8019 <
8020 < fi
8021 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
8022 < $as_echo "$ac_cv_fc_libs" >&6; }
8023 < FCLIBS="$ac_cv_fc_libs"
8024 <
8025 <
8026 < ac_ext=${ac_fc_srcext-f}
8027 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8028 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8029 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8030 <
8031 <
8032 <
8033 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module suffix" >&5
8034 < $as_echo_n "checking for module suffix... " >&6; }
8035 < rm -f conftest*
8036 < # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
8037 < rm -f work*
8038 < cat >conftest.$ac_ext <<EOF
8039 <        module conftest
8040 <        integer n
8041 <        parameter (n=1)
8042 <        end module conftest
8043 < EOF
8044 < # SGI and absoft compilers generates module name in upper case!
8045 < testname="conftest"
8046 < modcase="lower"
8047 < if (eval $ac_compile) 2>/dev/null ; then
8048 <    MOD=`ls conftest* | grep -v conftest.$ac_ext | grep -v conftest.o`
8049 <    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
8050 <    if test -z "$MOD" ; then
8051 <        MOD=`ls CONFTEST* 2>/dev/null \
8052 <                | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
8053 <        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
8054 <        if test -n "$MOD" ; then
8055 <            testname="CONFTEST"
8056 <            modcase="upper"
8057 <        fi
8058 <    fi
8059 <    if test -z "$MOD" ; then
8060 <        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
8061 < $as_echo "unknown" >&6; }
8062 <        # Use mod if we can't figure it out
8063 <        MOD="mod"
8064 <    else
8065 <        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOD" >&5
8066 < $as_echo "$MOD" >&6; }
8067 <    fi
8068 <    if test -s work.pcl ; then
8069 <        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler generates auxillery files!" >&5
8070 < $as_echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
8071 <    fi
8072 < else
8073 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
8074 < $as_echo "unknown" >&6; }
8075 < fi
8076 <
8077 <
8078 <
8079 <
8080 <
8081 < # Check for module include path (some use -I, some (Solaris) use -M, some
8082 < # (absoft) use -p).
8083 < # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
8084 < # specified, work.pcl and work.pc are created.  However, if you specify
8085 < # a file, it must contain a the name of a file ending in .pc .  Ugh!
8086 < # Use the module made above
8087 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module directory path flag" >&5
8088 < $as_echo_n "checking for module directory path flag... " >&6; }
8089 < rm -f conftest*
8090 < # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
8091 < rm -f work*
8092 < cat >conftest.$ac_ext <<EOF
8093 <        module conftest
8094 <        integer n
8095 <        parameter (n=1)
8096 <        end module conftest
8097 < EOF
8098 < # SGI and absoft compilers generates module name in upper case!
8099 < testname="conftest"
8100 < if (eval $ac_compile) 2>/dev/null ; then
8101 <   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
8102 <   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
8103 <   if test -n "$mod" ; then
8104 <      testname="CONFTEST"
8105 <   fi
8106 <   madedir=0
8107 <   if test ! -d conf ; then mkdir conf ; madedir=1; fi
8108 <   cp $testname.$MOD conf
8109 <   rm -f conftest* CONFTEST*
8110 <   cat >conftest1.$ac_ext <<EOF
8111 <        program main
8112 <        use conftest
8113 <        print *, n
8114 <        end
8115 < EOF
8116 <   F90_WORK_FILES_ARG=""
8117 <   F90MODINCSPEC=""
8118 <   if $FC -c -Iconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext > conftest.out 2>&1 ; then
8119 <       MODDIRFLAG="-I"
8120 <       F90MODINCSPEC="-I<dir>"
8121 <       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -I" >&5
8122 < $as_echo "-I" >&6; }
8123 <   elif $FC -c -Mconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
8124 <       MODDIRFLAG="-M"
8125 <       F90MODINCSPEC="-M<dir>"
8126 <       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -M" >&5
8127 < $as_echo "-M" >&6; }
8128 <   elif $FC -c -pconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
8129 <       MODDIRFLAG="-p"
8130 <       F90MODINCSPEC="-p<dir>"
8131 <       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -p" >&5
8132 < $as_echo "-p" >&6; }
8133 <   elif test -s work.pc ; then
8134 <        cp work.pc conf/mpimod.pc
8135 <        echo "mpimod.pc" > conf/mpimod.pcl
8136 <        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
8137 <        if $FC -c -cl,conf/mpimod.pcl $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >>conftest.out 2>&1 ; then
8138 <            MODDIRFLAG='-cl,mpimod.pcl'
8139 <            { $as_echo "$as_me:${as_lineno-$LINENO}: result: -cl,filename where filename contains a list of files and directories" >&5
8140 < $as_echo "-cl,filename where filename contains a list of files and directories" >&6; }
8141 <            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
8142 <            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
8143 <
8144 <        else
8145 <            # The version of the Intel compiler that I have refuses to let
8146 <            # you put the "work catalog" list anywhere but the current
8147 <            # directory. For example, you cannot in
8148 <         :
8149 <        fi
8150 <   fi
8151 <   if test -z "MODDIRFLAG" ; then
8152 <       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
8153 < $as_echo "unknown" >&6; }
8154 <   fi
8155 <
8156 <
8157 <   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
8158 <   if test $madedir = 1 ; then rmdir conf ; fi
8159 < fi
8160 <
8161 <
8162 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module file names" >&5
8163 < $as_echo_n "checking for Fortran 90 module file names... " >&6; }
8164 < if test "${ac_cv_f90_module_names+set}" = set; then :
8165 <  $as_echo_n "(cached) " >&6
8166 < else
8167 <  ac_ext=${ac_fc_srcext-f}
8168 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8169 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8170 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8171 <
8172 < # carry out the test in a new directory, so that we don't miss anything
8173 < mkdir conftest
8174 < cd conftest
8175 < cat > conftest.$ac_ext <<_ACEOF
8176 < MODULE Bar
8177 < END MODULE Bar
8178 < _ACEOF
8179 < if ac_fn_fc_try_compile "$LINENO"; then :
8180 <  ac_cv_f90_module_names=
8181 < ac_file_list=*
8182 < for ac_file in $ac_file_list; do
8183 <   case $ac_file in
8184 <      # don't care for original source and object files
8185 <      conftest.$ac_ext | conftest.$ac_objext | conftest.err )
8186 <          :
8187 <          ;;
8188 <      # look for new files derived from the file name
8189 <      *conftest*)
8190 <          ac_pat=`echo $ac_file | sed s/conftest/%FILE%/`
8191 <            ac_exists=false
8192 <  for ac_i in $ac_cv_f90_module_names; do
8193 <    if test x"$ac_pat" = x"$ac_i"; then
8194 <      ac_exists=true
8195 <      break
8196 <    fi
8197 <  done
8198 <
8199 <  if test x"$ac_exists" = xtrue; then :
8200 <
8201 < else
8202 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8203 < fi
8204 <          ;;
8205 <      # look for new files derived from the module name,
8206 <      # with different case translation schemes
8207 <      *Bar*)
8208 <          ac_pat=`echo $ac_file | sed s/Bar/%Module%/`
8209 <            ac_exists=false
8210 <  for ac_i in $ac_cv_f90_module_names; do
8211 <    if test x"$ac_pat" = x"$ac_i"; then
8212 <      ac_exists=true
8213 <      break
8214 <    fi
8215 <  done
8216 <
8217 <  if test x"$ac_exists" = xtrue; then :
8218 <
8219 < else
8220 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8221 < fi
8222 <          ;;
8223 <      *bar*)
8224 <          ac_pat=`echo $ac_file | sed s/bar/%module%/`
8225 <            ac_exists=false
8226 <  for ac_i in $ac_cv_f90_module_names; do
8227 <    if test x"$ac_pat" = x"$ac_i"; then
8228 <      ac_exists=true
8229 <      break
8230 <    fi
8231 <  done
8232 <
8233 <  if test x"$ac_exists" = xtrue; then :
8234 <
8235 < else
8236 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8237 < fi
8238 <          ;;
8239 <      *BAR*)
8240 <          ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
8241 <            ac_exists=false
8242 <  for ac_i in $ac_cv_f90_module_names; do
8243 <    if test x"$ac_pat" = x"$ac_i"; then
8244 <      ac_exists=true
8245 <      break
8246 <    fi
8247 <  done
8248 <
8249 <  if test x"$ac_exists" = xtrue; then :
8250 <
8251 < else
8252 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8253 < fi
8254 <          ;;
8255 <       # Other files - we have no idea how they are generated
8256 <       *)
8257 <          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bogus file found: $ac_file" >&5
8258 < $as_echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
8259 <          ;;
8260 <   esac
8261 < done
8262 < if test "x$ac_cv_f90_module_names" = "x"; then
8263 <  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
8264 < $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
8265 < fi
8266 <
8267 < else
8268 <  ac_cv_f90_module_names=
8269 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
8270 < $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
8271 < fi
8272 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8273 < cd ..
8274 < # cleanup
8275 < rm -rf conftest
8276 < ac_ext=${ac_fc_srcext-f}
8277 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8278 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8279 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8280 <
8281 < fi
8282 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f90_module_names" >&5
8283 < $as_echo "$ac_cv_f90_module_names" >&6; } # AC_CACHE_CHECK
8284 <
8285 < # We now generate a shell script that will help us to figure out the correct
8286 < # module file names, using the value of ac_cv_f90_module_names
8287 <
8288 < echo "Generating shell script modnam"
8289 <
8290 < cat > scripts/modnam << EOF
8291 < #! /bin/sh
8292 < # This script is auto-generated by configure
8293 < #
8294 < usage="\\
8295 < Usage: \$0 [FILES]
8296 <
8297 < [FILES] are Fortran 90 source files.
8298 < The output is a list of module file names that the Fortran 90 compiler
8299 < generates when compiling [FILES]."
8300 <
8301 < list=
8302 < empty=
8303 <
8304 < if test \$# -eq 0; then
8305 <   echo "\$usage"; exit 0
8306 < fi
8307 <
8308 < while test \$# != 0; do
8309 <
8310 <  file=\$1
8311 <  shift
8312 <
8313 < # strip suffix
8314 <  base=\`echo \$file | sed 's/[.][^.]*$//'\`
8315 <
8316 <  test ! -f \$file && continue
8317 <
8318 < # Look for module definitions and transform them to upper / lower case
8319 <  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/'\`
8320 <  upper=\`echo \$mods | tr a-z A-Z\`
8321 <  lower=\`echo \$mods | tr A-Z a-z\`
8322 <
8323 < # Here, the patterns for generating module file names were inserted by configure
8324 <  for trans in $ac_cv_f90_module_names; do
8325 <
8326 <    pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
8327 <    var=empty
8328 <    case \$pat in
8329 <       %MODULE%)
8330 <          var=upper ;;
8331 <       %Module%)
8332 <          var=mods ;;
8333 <       %module%)
8334 <          var=lower ;;
8335 <       %FILE%)
8336 <          test -n "\$mods" && var=base ;;
8337 <    esac
8338 <    new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
8339 <    list="\$list \$new"
8340 <  done
8341 < done
8342 <
8343 < echo \$list
8344 < # end of configure-generated script
8345 < EOF
8346 < chmod 755 scripts/modnam
8347 <
8348 < pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
8349 < F90_MODULE_NAMES=empty
8350 < case $pat in
8351 <       %MODULE%)
8352 <          F90_MODULE_NAMES=UPPER ;;
8353 <       %Module%)
8354 <          F90_MODULE_NAMES=Mixed ;;
8355 <       %module%)
8356 <          F90_MODULE_NAMES=lower ;;
8357 <       *)
8358 <          F90_MODULE_NAMES=unknown ;;
8359 < esac
8360 <
8361 < ac_ext=${ac_fc_srcext-f}
8362 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8363 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8364 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8365 <
8366 <
8367 < ac_ext=c
8368 < ac_cpp='$CPP $CPPFLAGS'
8369 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8370 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8371 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
8372 <
8373 <
8374 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
8375 < $as_echo_n "checking for asin in -lm... " >&6; }
8376 < if test "${ac_cv_lib_m_asin+set}" = set; then :
8377 <  $as_echo_n "(cached) " >&6
8378 < else
8379 <  ac_check_lib_save_LIBS=$LIBS
8380 < LIBS="-lm  $LIBS"
8381 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 < /* end confdefs.h.  */
8383 <
8384 < /* Override any GCC internal prototype to avoid an error.
8385 <   Use char because int might match the return type of a GCC
8386 <   builtin and then its argument prototype would still apply.  */
8387 < #ifdef __cplusplus
8388 < extern "C"
8389 < #endif
8390 < char asin ();
8391 < #ifdef FC_DUMMY_MAIN
8392 < #ifndef FC_DUMMY_MAIN_EQ_F77
8393 < #  ifdef __cplusplus
8394 <     extern "C"
8395 < #  endif
8396 <   int FC_DUMMY_MAIN() { return 1; }
8397 < #endif
8398 < #endif
8399 < int
8400 < main ()
8401 < {
8402 < return asin ();
8403 <  ;
8404 <  return 0;
8405 < }
8406 < _ACEOF
8407 < if ac_fn_c_try_link "$LINENO"; then :
8408 <  ac_cv_lib_m_asin=yes
8409 < else
8410 <  ac_cv_lib_m_asin=no
4243 > ac_ext=c
4244 > ac_cpp='$CPP $CPPFLAGS'
4245 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4248 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4249 > $as_echo_n "checking how to run the C preprocessor... " >&6; }
4250 > # On Suns, sometimes $CPP names a directory.
4251 > if test -n "$CPP" && test -d "$CPP"; then
4252 >  CPP=
4253 > fi
4254 > if test -z "$CPP"; then
4255 >  if ${ac_cv_prog_CPP+:} false; then :
4256 >  $as_echo_n "(cached) " >&6
4257 > else
4258 >      # Double quotes because CPP needs to be expanded
4259 >    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4260 >    do
4261 >      ac_preproc_ok=false
4262 > for ac_c_preproc_warn_flag in '' yes
4263 > do
4264 >  # Use a header file that comes with gcc, so configuring glibc
4265 >  # with a fresh cross-compiler works.
4266 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4267 >  # <limits.h> exists even on freestanding compilers.
4268 >  # On the NeXT, cc -E runs the code through the compiler's parser,
4269 >  # not just through cpp. "Syntax error" is here to catch this case.
4270 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 > /* end confdefs.h.  */
4272 > #ifdef __STDC__
4273 > # include <limits.h>
4274 > #else
4275 > # include <assert.h>
4276 > #endif
4277 >                     Syntax error
4278 > _ACEOF
4279 > if ac_fn_c_try_cpp "$LINENO"; then :
4280 >
4281 > else
4282 >  # Broken: fails on valid input.
4283 > continue
4284 > fi
4285 > rm -f conftest.err conftest.i conftest.$ac_ext
4286 >
4287 >  # OK, works on sane cases.  Now check whether nonexistent headers
4288 >  # can be detected and how.
4289 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 > /* end confdefs.h.  */
4291 > #include <ac_nonexistent.h>
4292 > _ACEOF
4293 > if ac_fn_c_try_cpp "$LINENO"; then :
4294 >  # Broken: success on invalid input.
4295 > continue
4296 > else
4297 >  # Passes both tests.
4298 > ac_preproc_ok=:
4299 > break
4300 > fi
4301 > rm -f conftest.err conftest.i conftest.$ac_ext
4302 >
4303 > done
4304 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4305 > rm -f conftest.i conftest.err conftest.$ac_ext
4306 > if $ac_preproc_ok; then :
4307 >  break
4308 > fi
4309 >
4310 >    done
4311 >    ac_cv_prog_CPP=$CPP
4312 >
4313 > fi
4314 >  CPP=$ac_cv_prog_CPP
4315 > else
4316 >  ac_cv_prog_CPP=$CPP
4317 > fi
4318 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4319 > $as_echo "$CPP" >&6; }
4320 > ac_preproc_ok=false
4321 > for ac_c_preproc_warn_flag in '' yes
4322 > do
4323 >  # Use a header file that comes with gcc, so configuring glibc
4324 >  # with a fresh cross-compiler works.
4325 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4326 >  # <limits.h> exists even on freestanding compilers.
4327 >  # On the NeXT, cc -E runs the code through the compiler's parser,
4328 >  # not just through cpp. "Syntax error" is here to catch this case.
4329 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 > /* end confdefs.h.  */
4331 > #ifdef __STDC__
4332 > # include <limits.h>
4333 > #else
4334 > # include <assert.h>
4335 > #endif
4336 >                     Syntax error
4337 > _ACEOF
4338 > if ac_fn_c_try_cpp "$LINENO"; then :
4339 >
4340 > else
4341 >  # Broken: fails on valid input.
4342 > continue
4343 > fi
4344 > rm -f conftest.err conftest.i conftest.$ac_ext
4345 >
4346 >  # OK, works on sane cases.  Now check whether nonexistent headers
4347 >  # can be detected and how.
4348 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 > /* end confdefs.h.  */
4350 > #include <ac_nonexistent.h>
4351 > _ACEOF
4352 > if ac_fn_c_try_cpp "$LINENO"; then :
4353 >  # Broken: success on invalid input.
4354 > continue
4355 > else
4356 >  # Passes both tests.
4357 > ac_preproc_ok=:
4358 > break
4359 > fi
4360 > rm -f conftest.err conftest.i conftest.$ac_ext
4361 >
4362 > done
4363 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4364 > rm -f conftest.i conftest.err conftest.$ac_ext
4365 > if $ac_preproc_ok; then :
4366 >
4367 > else
4368 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4369 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4370 > as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4371 > See \`config.log' for more details" "$LINENO" 5; }
4372 > fi
4373 >
4374 > ac_ext=c
4375 > ac_cpp='$CPP $CPPFLAGS'
4376 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379 >
4380 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4381 > $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4382 > if ${ac_cv_path_GREP+:} false; then :
4383 >  $as_echo_n "(cached) " >&6
4384 > else
4385 >  if test -z "$GREP"; then
4386 >  ac_path_GREP_found=false
4387 >  # Loop through the user's path and test for each of PROGNAME-LIST
4388 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 > for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4390 > do
4391 >  IFS=$as_save_IFS
4392 >  test -z "$as_dir" && as_dir=.
4393 >    for ac_prog in grep ggrep; do
4394 >    for ac_exec_ext in '' $ac_executable_extensions; do
4395 >      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4396 >      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4397 > # Check for GNU ac_path_GREP and select it if it is found.
4398 >  # Check for GNU $ac_path_GREP
4399 > case `"$ac_path_GREP" --version 2>&1` in
4400 > *GNU*)
4401 >  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4402 > *)
4403 >  ac_count=0
4404 >  $as_echo_n 0123456789 >"conftest.in"
4405 >  while :
4406 >  do
4407 >    cat "conftest.in" "conftest.in" >"conftest.tmp"
4408 >    mv "conftest.tmp" "conftest.in"
4409 >    cp "conftest.in" "conftest.nl"
4410 >    $as_echo 'GREP' >> "conftest.nl"
4411 >    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4412 >    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4413 >    as_fn_arith $ac_count + 1 && ac_count=$as_val
4414 >    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4415 >      # Best one so far, save it but keep looking for a better one
4416 >      ac_cv_path_GREP="$ac_path_GREP"
4417 >      ac_path_GREP_max=$ac_count
4418 >    fi
4419 >    # 10*(2^10) chars as input seems more than enough
4420 >    test $ac_count -gt 10 && break
4421 >  done
4422 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4423 > esac
4424 >
4425 >      $ac_path_GREP_found && break 3
4426 >    done
4427 >  done
4428 >  done
4429 > IFS=$as_save_IFS
4430 >  if test -z "$ac_cv_path_GREP"; then
4431 >    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4432 >  fi
4433 > else
4434 >  ac_cv_path_GREP=$GREP
4435 > fi
4436 >
4437 > fi
4438 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4439 > $as_echo "$ac_cv_path_GREP" >&6; }
4440 > GREP="$ac_cv_path_GREP"
4441 >
4442 >
4443 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4444 > $as_echo_n "checking for egrep... " >&6; }
4445 > if ${ac_cv_path_EGREP+:} false; then :
4446 >  $as_echo_n "(cached) " >&6
4447 > else
4448 >  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4449 >   then ac_cv_path_EGREP="$GREP -E"
4450 >   else
4451 >     if test -z "$EGREP"; then
4452 >  ac_path_EGREP_found=false
4453 >  # Loop through the user's path and test for each of PROGNAME-LIST
4454 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 > for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4456 > do
4457 >  IFS=$as_save_IFS
4458 >  test -z "$as_dir" && as_dir=.
4459 >    for ac_prog in egrep; do
4460 >    for ac_exec_ext in '' $ac_executable_extensions; do
4461 >      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4462 >      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4463 > # Check for GNU ac_path_EGREP and select it if it is found.
4464 >  # Check for GNU $ac_path_EGREP
4465 > case `"$ac_path_EGREP" --version 2>&1` in
4466 > *GNU*)
4467 >  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4468 > *)
4469 >  ac_count=0
4470 >  $as_echo_n 0123456789 >"conftest.in"
4471 >  while :
4472 >  do
4473 >    cat "conftest.in" "conftest.in" >"conftest.tmp"
4474 >    mv "conftest.tmp" "conftest.in"
4475 >    cp "conftest.in" "conftest.nl"
4476 >    $as_echo 'EGREP' >> "conftest.nl"
4477 >    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4478 >    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4479 >    as_fn_arith $ac_count + 1 && ac_count=$as_val
4480 >    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4481 >      # Best one so far, save it but keep looking for a better one
4482 >      ac_cv_path_EGREP="$ac_path_EGREP"
4483 >      ac_path_EGREP_max=$ac_count
4484 >    fi
4485 >    # 10*(2^10) chars as input seems more than enough
4486 >    test $ac_count -gt 10 && break
4487 >  done
4488 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4489 > esac
4490 >
4491 >      $ac_path_EGREP_found && break 3
4492 >    done
4493 >  done
4494 >  done
4495 > IFS=$as_save_IFS
4496 >  if test -z "$ac_cv_path_EGREP"; then
4497 >    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4498 >  fi
4499 > else
4500 >  ac_cv_path_EGREP=$EGREP
4501 > fi
4502 >
4503 >   fi
4504 > fi
4505 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4506 > $as_echo "$ac_cv_path_EGREP" >&6; }
4507 > EGREP="$ac_cv_path_EGREP"
4508 >
4509 >
4510 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4511 > $as_echo_n "checking whether ln -s works... " >&6; }
4512 > LN_S=$as_ln_s
4513 > if test "$LN_S" = "ln -s"; then
4514 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4515 > $as_echo "yes" >&6; }
4516 > else
4517 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4518 > $as_echo "no, using $LN_S" >&6; }
4519 > fi
4520 >
4521 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4522 > $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4523 > set x ${MAKE-make}
4524 > ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4525 > if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4526 >  $as_echo_n "(cached) " >&6
4527 > else
4528 >  cat >conftest.make <<\_ACEOF
4529 > SHELL = /bin/sh
4530 > all:
4531 >        @echo '@@@%%%=$(MAKE)=@@@%%%'
4532 > _ACEOF
4533 > # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4534 > case `${MAKE-make} -f conftest.make 2>/dev/null` in
4535 >  *@@@%%%=?*=@@@%%%*)
4536 >    eval ac_cv_prog_make_${ac_make}_set=yes;;
4537 >  *)
4538 >    eval ac_cv_prog_make_${ac_make}_set=no;;
4539 > esac
4540 > rm -f conftest.make
4541 > fi
4542 > if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4543 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4544 > $as_echo "yes" >&6; }
4545 >  SET_MAKE=
4546 > else
4547 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 > $as_echo "no" >&6; }
4549 >  SET_MAKE="MAKE=${MAKE-make}"
4550 > fi
4551 >
4552 > if test -n "$ac_tool_prefix"; then
4553 >  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4554 > set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4555 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 > $as_echo_n "checking for $ac_word... " >&6; }
4557 > if ${ac_cv_prog_RANLIB+:} false; then :
4558 >  $as_echo_n "(cached) " >&6
4559 > else
4560 >  if test -n "$RANLIB"; then
4561 >  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4562 > else
4563 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 > for as_dir in $PATH
4565 > do
4566 >  IFS=$as_save_IFS
4567 >  test -z "$as_dir" && as_dir=.
4568 >    for ac_exec_ext in '' $ac_executable_extensions; do
4569 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4571 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 >    break 2
4573 >  fi
4574 > done
4575 >  done
4576 > IFS=$as_save_IFS
4577 >
4578 > fi
4579 > fi
4580 > RANLIB=$ac_cv_prog_RANLIB
4581 > if test -n "$RANLIB"; then
4582 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4583 > $as_echo "$RANLIB" >&6; }
4584 > else
4585 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 > $as_echo "no" >&6; }
4587 > fi
4588 >
4589 >
4590 > fi
4591 > if test -z "$ac_cv_prog_RANLIB"; then
4592 >  ac_ct_RANLIB=$RANLIB
4593 >  # Extract the first word of "ranlib", so it can be a program name with args.
4594 > set dummy ranlib; ac_word=$2
4595 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 > $as_echo_n "checking for $ac_word... " >&6; }
4597 > if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4598 >  $as_echo_n "(cached) " >&6
4599 > else
4600 >  if test -n "$ac_ct_RANLIB"; then
4601 >  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4602 > else
4603 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 > for as_dir in $PATH
4605 > do
4606 >  IFS=$as_save_IFS
4607 >  test -z "$as_dir" && as_dir=.
4608 >    for ac_exec_ext in '' $ac_executable_extensions; do
4609 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
4611 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 >    break 2
4613 >  fi
4614 > done
4615 >  done
4616 > IFS=$as_save_IFS
4617 >
4618 > fi
4619 > fi
4620 > ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4621 > if test -n "$ac_ct_RANLIB"; then
4622 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4623 > $as_echo "$ac_ct_RANLIB" >&6; }
4624 > else
4625 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 > $as_echo "no" >&6; }
4627 > fi
4628 >
4629 >  if test "x$ac_ct_RANLIB" = x; then
4630 >    RANLIB=":"
4631 >  else
4632 >    case $cross_compiling:$ac_tool_warned in
4633 > yes:)
4634 > { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 > $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636 > ac_tool_warned=yes ;;
4637 > esac
4638 >    RANLIB=$ac_ct_RANLIB
4639 >  fi
4640 > else
4641 >  RANLIB="$ac_cv_prog_RANLIB"
4642 > fi
4643 >
4644 >
4645 >   # Extract the first word of "perl", so it can be a program name with args.
4646 > set dummy perl; ac_word=$2
4647 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 > $as_echo_n "checking for $ac_word... " >&6; }
4649 > if ${ac_cv_path_PERLINTERP+:} false; then :
4650 >  $as_echo_n "(cached) " >&6
4651 > else
4652 >  case $PERLINTERP in
4653 >  [\\/]* | ?:[\\/]*)
4654 >  ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
4655 >  ;;
4656 >  *)
4657 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 > for as_dir in $PATH
4659 > do
4660 >  IFS=$as_save_IFS
4661 >  test -z "$as_dir" && as_dir=.
4662 >    for ac_exec_ext in '' $ac_executable_extensions; do
4663 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 >    ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
4665 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 >    break 2
4667 >  fi
4668 > done
4669 >  done
4670 > IFS=$as_save_IFS
4671 >
4672 >  test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
4673 >  ;;
4674 > esac
4675 > fi
4676 > PERLINTERP=$ac_cv_path_PERLINTERP
4677 > if test -n "$PERLINTERP"; then
4678 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLINTERP" >&5
4679 > $as_echo "$PERLINTERP" >&6; }
4680 > else
4681 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 > $as_echo "no" >&6; }
4683 > fi
4684 >
4685 >
4686 >   ac_cv_path_perlinterp="$PERLINTERP"
4687 >   _sHpB='#!'
4688 >
4689 >
4690 > # Check whether --with-perl-shebang was given.
4691 > if test "${with_perl_shebang+set}" = set; then :
4692 >  withval=$with_perl_shebang; opt_perl_shebang="$withval"
4693 > else
4694 >                opt_perl_shebang="not_set"
4695 > fi
4696 >
4697 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5
4698 > $as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; }
4699 > if ${ax_cv_opt_perl_shebang+:} false; then :
4700 >  $as_echo_n "(cached) " >&6
4701 > else
4702 >   case "$opt_perl_shebang" in
4703 >                      not_set  ) ax_cv_opt_perl_shebang=''
4704 >                               ;;
4705 >                         *     )
4706 >        ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
4707 >                    esac
4708 >
4709 > fi
4710 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_opt_perl_shebang" >&5
4711 > $as_echo "$ax_cv_opt_perl_shebang" >&6; }
4712 >   if test "A$ax_cv_opt_perl_shebang" != "A"
4713 >     then
4714 >       ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
4715 >       PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
4716 >              { $as_echo "$as_me:${as_lineno-$LINENO}: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
4717 > $as_echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
4718 >
4719 > # Automatic detection of sharpbang formula starts here
4720 >     else
4721 >   _somian_shbangperl=`$PERLINTERP -V:startperl`
4722 >   negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
4723 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5
4724 > $as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; }
4725 > if ${ac_cv_sys_kernshrpbang_perl+:} false; then :
4726 >  $as_echo_n "(cached) " >&6
4727 > else
4728 >  _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
4729 >        if test "x$_somian_kspb_perl" == x
4730 >          then _somian_ksbp_warn_empty='durnit'
4731 >          else
4732 >          case "A$_somian_kspb_perl" in
4733 >                 A#!*perl* )
4734 >           ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
4735 >                        ;;
4736 >                     A*    )  _somian_ksbp_warn_defau='trouble'
4737 >                              ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
4738 >          esac
4739 >        fi
4740 >
4741 > fi
4742 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_kernshrpbang_perl" >&5
4743 > $as_echo "$ac_cv_sys_kernshrpbang_perl" >&6; }
4744 > # The above prints Checking ... result message to user.
4745 >   PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
4746 >
4747 >    if test A${_somian_ksbp_warn_empty+set} == Aset
4748 >      then   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
4749 > $as_echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
4750 >    fi
4751 > # Inform user after printing result value
4752 >    if test A${_somian_ksbp_warn_defau+set} == Aset
4753 >      then { $as_echo "$as_me:${as_lineno-$LINENO}: Maybe Not good -" >&5
4754 > $as_echo "$as_me: Maybe Not good -" >&6;}
4755 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
4756 > $as_echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
4757 >      else { $as_echo "$as_me:${as_lineno-$LINENO}: OK Good result - " >&5
4758 > $as_echo "$as_me: OK Good result - " >&6;}
4759 >           { $as_echo "$as_me:${as_lineno-$LINENO}: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
4760 > $as_echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
4761 >    fi
4762 >  fi
4763 >
4764 > # Find a good install program.  We prefer a C program (faster),
4765 > # so one script is as good as another.  But avoid the broken or
4766 > # incompatible versions:
4767 > # SysV /etc/install, /usr/sbin/install
4768 > # SunOS /usr/etc/install
4769 > # IRIX /sbin/install
4770 > # AIX /bin/install
4771 > # AmigaOS /C/install, which installs bootblocks on floppy discs
4772 > # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4773 > # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4774 > # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4775 > # OS/2's system install, which has a completely different semantic
4776 > # ./install, which can be erroneously created by make from ./install.sh.
4777 > # Reject install programs that cannot install multiple files.
4778 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4779 > $as_echo_n "checking for a BSD-compatible install... " >&6; }
4780 > if test -z "$INSTALL"; then
4781 > if ${ac_cv_path_install+:} false; then :
4782 >  $as_echo_n "(cached) " >&6
4783 > else
4784 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 > for as_dir in $PATH
4786 > do
4787 >  IFS=$as_save_IFS
4788 >  test -z "$as_dir" && as_dir=.
4789 >    # Account for people who put trailing slashes in PATH elements.
4790 > case $as_dir/ in #((
4791 >  ./ | .// | /[cC]/* | \
4792 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4793 >  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4794 >  /usr/ucb/* ) ;;
4795 >  *)
4796 >    # OSF1 and SCO ODT 3.0 have their own names for install.
4797 >    # Don't use installbsd from OSF since it installs stuff as root
4798 >    # by default.
4799 >    for ac_prog in ginstall scoinst install; do
4800 >      for ac_exec_ext in '' $ac_executable_extensions; do
4801 >        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4802 >          if test $ac_prog = install &&
4803 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4804 >            # AIX install.  It has an incompatible calling convention.
4805 >            :
4806 >          elif test $ac_prog = install &&
4807 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4808 >            # program-specific install script used by HP pwplus--don't use.
4809 >            :
4810 >          else
4811 >            rm -rf conftest.one conftest.two conftest.dir
4812 >            echo one > conftest.one
4813 >            echo two > conftest.two
4814 >            mkdir conftest.dir
4815 >            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4816 >              test -s conftest.one && test -s conftest.two &&
4817 >              test -s conftest.dir/conftest.one &&
4818 >              test -s conftest.dir/conftest.two
4819 >            then
4820 >              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4821 >              break 3
4822 >            fi
4823 >          fi
4824 >        fi
4825 >      done
4826 >    done
4827 >    ;;
4828 > esac
4829 >
4830 >  done
4831 > IFS=$as_save_IFS
4832 >
4833 > rm -rf conftest.one conftest.two conftest.dir
4834 >
4835 > fi
4836 >  if test "${ac_cv_path_install+set}" = set; then
4837 >    INSTALL=$ac_cv_path_install
4838 >  else
4839 >    # As a last resort, use the slow shell script.  Don't cache a
4840 >    # value for INSTALL within a source directory, because that will
4841 >    # break other packages using the cache if that directory is
4842 >    # removed, or if the value is a relative name.
4843 >    INSTALL=$ac_install_sh
4844 >  fi
4845 > fi
4846 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4847 > $as_echo "$INSTALL" >&6; }
4848 >
4849 > # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4850 > # It thinks the first close brace ends the variable substitution.
4851 > test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4852 >
4853 > test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4854 >
4855 > test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4856 >
4857 > case "x$INSTALL" in
4858 >   x/*) ;;
4859 >   *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
4860 > esac
4861 > MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f -m 755"
4862 > # Extract the first word of "ar", so it can be a program name with args.
4863 > set dummy ar; ac_word=$2
4864 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 > $as_echo_n "checking for $ac_word... " >&6; }
4866 > if ${ac_cv_prog_AR+:} false; then :
4867 >  $as_echo_n "(cached) " >&6
4868 > else
4869 >  if test -n "$AR"; then
4870 >  ac_cv_prog_AR="$AR" # Let the user override the test.
4871 > else
4872 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 > for as_dir in $PATH
4874 > do
4875 >  IFS=$as_save_IFS
4876 >  test -z "$as_dir" && as_dir=.
4877 >    for ac_exec_ext in '' $ac_executable_extensions; do
4878 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 >    ac_cv_prog_AR="ar"
4880 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 >    break 2
4882 >  fi
4883 > done
4884 >  done
4885 > IFS=$as_save_IFS
4886 >
4887 >  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
4888 > fi
4889 > fi
4890 > AR=$ac_cv_prog_AR
4891 > if test -n "$AR"; then
4892 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4893 > $as_echo "$AR" >&6; }
4894 > else
4895 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 > $as_echo "no" >&6; }
4897 > fi
4898 >
4899 >
4900 > if test "$AR" = "NONE"; then
4901 >  cat >confcache <<\_ACEOF
4902 > # This file is a shell script that caches the results of configure
4903 > # tests run on this system so they can be shared between configure
4904 > # scripts and configure runs, see configure's option --config-cache.
4905 > # It is not useful on other systems.  If it contains results you don't
4906 > # want to keep, you may remove or edit it.
4907 > #
4908 > # config.status only pays attention to the cache file if you give it
4909 > # the --recheck option to rerun configure.
4910 > #
4911 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
4912 > # loading this file, other *unset* `ac_cv_foo' will be assigned the
4913 > # following values.
4914 >
4915 > _ACEOF
4916 >
4917 > # The following way of writing the cache mishandles newlines in values,
4918 > # but we know of no workaround that is simple, portable, and efficient.
4919 > # So, we kill variables containing newlines.
4920 > # Ultrix sh set writes to stderr and can't be redirected directly,
4921 > # and sets the high bit in the cache file unless we assign to the vars.
4922 > (
4923 >  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4924 >    eval ac_val=\$$ac_var
4925 >    case $ac_val in #(
4926 >    *${as_nl}*)
4927 >      case $ac_var in #(
4928 >      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4929 > $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4930 >      esac
4931 >      case $ac_var in #(
4932 >      _ | IFS | as_nl) ;; #(
4933 >      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4934 >      *) { eval $ac_var=; unset $ac_var;} ;;
4935 >      esac ;;
4936 >    esac
4937 >  done
4938 >
4939 >  (set) 2>&1 |
4940 >    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4941 >    *${as_nl}ac_space=\ *)
4942 >      # `set' does not quote correctly, so add quotes: double-quote
4943 >      # substitution turns \\\\ into \\, and sed turns \\ into \.
4944 >      sed -n \
4945 >        "s/'/'\\\\''/g;
4946 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4947 >      ;; #(
4948 >    *)
4949 >      # `set' quotes correctly as required by POSIX, so do not add quotes.
4950 >      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4951 >      ;;
4952 >    esac |
4953 >    sort
4954 > ) |
4955 >  sed '
4956 >     /^ac_cv_env_/b end
4957 >     t clear
4958 >     :clear
4959 >     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4960 >     t end
4961 >     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4962 >     :end' >>confcache
4963 > if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4964 >  if test -w "$cache_file"; then
4965 >    if test "x$cache_file" != "x/dev/null"; then
4966 >      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4967 > $as_echo "$as_me: updating cache $cache_file" >&6;}
4968 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
4969 >        cat confcache >"$cache_file"
4970 >      else
4971 >        case $cache_file in #(
4972 >        */* | ?:*)
4973 >          mv -f confcache "$cache_file"$$ &&
4974 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
4975 >        *)
4976 >          mv -f confcache "$cache_file" ;;
4977 >        esac
4978 >      fi
4979 >    fi
4980 >  else
4981 >    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4982 > $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4983 >  fi
4984   fi
4985 < rm -f core conftest.err conftest.$ac_objext \
4986 <    conftest$ac_exeext conftest.$ac_ext
8414 < LIBS=$ac_check_lib_save_LIBS
4985 > rm -f confcache
4986 >  exit 1
4987   fi
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
8417 $as_echo "$ac_cv_lib_m_asin" >&6; }
8418 if test "x$ac_cv_lib_m_asin" = x""yes; then :
8419  cat >>confdefs.h <<_ACEOF
8420 #define HAVE_LIBM 1
8421 _ACEOF
4988  
8423  LIBS="-lm $LIBS"
4989  
8425 else
8426  exit
8427 fi
8428
8429
4990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4991   $as_echo_n "checking for ANSI C header files... " >&6; }
4992 < if test "${ac_cv_header_stdc+set}" = set; then :
4992 > if ${ac_cv_header_stdc+:} false; then :
4993    $as_echo_n "(cached) " >&6
4994   else
4995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 8439 | Line 4999 | else
4999   #include <string.h>
5000   #include <float.h>
5001  
8442 #ifdef FC_DUMMY_MAIN
8443 #ifndef FC_DUMMY_MAIN_EQ_F77
8444 #  ifdef __cplusplus
8445     extern "C"
8446 #  endif
8447   int FC_DUMMY_MAIN() { return 1; }
8448 #endif
8449 #endif
5002   int
5003   main ()
5004   {
# Line 8554 | Line 5106 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$
5106    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5107   ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5108   "
5109 < eval as_val=\$$as_ac_Header
8558 <   if test "x$as_val" = x""yes; then :
5109 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5110    cat >>confdefs.h <<_ACEOF
5111   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5112   _ACEOF
# Line 8610 | Line 5161 | $as_echo_n "checking for inflateEnd in -lz... " >&6; }
5161  
5162          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
5163   $as_echo_n "checking for inflateEnd in -lz... " >&6; }
5164 < if test "${ac_cv_lib_z_inflateEnd+set}" = set; then :
5164 > if ${ac_cv_lib_z_inflateEnd+:} false; then :
5165    $as_echo_n "(cached) " >&6
5166   else
5167    ac_check_lib_save_LIBS=$LIBS
# Line 8625 | Line 5176 | char inflateEnd ();
5176   extern "C"
5177   #endif
5178   char inflateEnd ();
8628 #ifdef FC_DUMMY_MAIN
8629 #ifndef FC_DUMMY_MAIN_EQ_F77
8630 #  ifdef __cplusplus
8631     extern "C"
8632 #  endif
8633   int FC_DUMMY_MAIN() { return 1; }
8634 #endif
8635 #endif
5179   int
5180   main ()
5181   {
# Line 8652 | Line 5195 | $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
5195   fi
5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
5197   $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
5198 < if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
5198 > if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
5199    zlib_cv_libz=yes
5200   else
5201    zlib_cv_libz=no
5202   fi
5203  
5204          ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5205 < if test "x$ac_cv_header_zlib_h" = x""yes; then :
5205 > if test "x$ac_cv_header_zlib_h" = xyes; then :
5206    zlib_cv_zlib_h=yes
5207   else
5208    zlib_cv_zlib_h=no
# Line 8750 | Line 5293 | $as_echo_n "checking for fftw_execute in -lfftw3... "
5293  
5294        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
5295   $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
5296 < if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
5296 > if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
5297    $as_echo_n "(cached) " >&6
5298   else
5299    ac_check_lib_save_LIBS=$LIBS
# Line 8765 | Line 5308 | char fftw_execute ();
5308   extern "C"
5309   #endif
5310   char fftw_execute ();
8768 #ifdef FC_DUMMY_MAIN
8769 #ifndef FC_DUMMY_MAIN_EQ_F77
8770 #  ifdef __cplusplus
8771     extern "C"
8772 #  endif
8773   int FC_DUMMY_MAIN() { return 1; }
8774 #endif
8775 #endif
5311   int
5312   main ()
5313   {
# Line 8792 | Line 5327 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
5327   fi
5328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
5329   $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
5330 < if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
5330 > if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
5331    fftw_cv_libfftw3=yes
5332   else
5333    fftw_cv_libfftw3=no
5334   fi
5335  
5336        ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
5337 < if test "x$ac_cv_header_fftw3_h" = x""yes; then :
5337 > if test "x$ac_cv_header_fftw3_h" = xyes; then :
5338    fftw_cv_fftw3_h=yes
5339   else
5340    fftw_cv_fftw3_h=no
# Line 8809 | Line 5344 | $as_echo_n "checking for fftwnd_one in -lfftw... " >&6
5344        if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then
5345          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -lfftw" >&5
5346   $as_echo_n "checking for fftwnd_one in -lfftw... " >&6; }
5347 < if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then :
5347 > if ${ac_cv_lib_fftw_fftwnd_one+:} false; then :
5348    $as_echo_n "(cached) " >&6
5349   else
5350    ac_check_lib_save_LIBS=$LIBS
# Line 8824 | Line 5359 | char fftwnd_one ();
5359   extern "C"
5360   #endif
5361   char fftwnd_one ();
8827 #ifdef FC_DUMMY_MAIN
8828 #ifndef FC_DUMMY_MAIN_EQ_F77
8829 #  ifdef __cplusplus
8830     extern "C"
8831 #  endif
8832   int FC_DUMMY_MAIN() { return 1; }
8833 #endif
8834 #endif
5362   int
5363   main ()
5364   {
# Line 8851 | Line 5378 | $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
5378   fi
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_fftwnd_one" >&5
5380   $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
5381 < if test "x$ac_cv_lib_fftw_fftwnd_one" = x""yes; then :
5381 > if test "x$ac_cv_lib_fftw_fftwnd_one" = xyes; then :
5382    fftw_cv_libfftw=yes
5383   else
5384    fftw_cv_libfftw=no
5385   fi
5386  
5387          ac_fn_c_check_header_mongrel "$LINENO" "fftw.h" "ac_cv_header_fftw_h" "$ac_includes_default"
5388 < if test "x$ac_cv_header_fftw_h" = x""yes; then :
5388 > if test "x$ac_cv_header_fftw_h" = xyes; then :
5389    fftw_cv_fftw_h=yes
5390   else
5391    fftw_cv_fftw_h=no
# Line 8868 | Line 5395 | $as_echo_n "checking for fftwnd_one in -ldfftw... " >&
5395          if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
5396            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -ldfftw" >&5
5397   $as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; }
5398 < if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then :
5398 > if ${ac_cv_lib_dfftw_fftwnd_one+:} false; then :
5399    $as_echo_n "(cached) " >&6
5400   else
5401    ac_check_lib_save_LIBS=$LIBS
# Line 8883 | Line 5410 | char fftwnd_one ();
5410   extern "C"
5411   #endif
5412   char fftwnd_one ();
8886 #ifdef FC_DUMMY_MAIN
8887 #ifndef FC_DUMMY_MAIN_EQ_F77
8888 #  ifdef __cplusplus
8889     extern "C"
8890 #  endif
8891   int FC_DUMMY_MAIN() { return 1; }
8892 #endif
8893 #endif
5413   int
5414   main ()
5415   {
# Line 8910 | Line 5429 | $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
5429   fi
5430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
5431   $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
5432 < if test "x$ac_cv_lib_dfftw_fftwnd_one" = x""yes; then :
5432 > if test "x$ac_cv_lib_dfftw_fftwnd_one" = xyes; then :
5433    fftw_cv_libdfftw=yes
5434   else
5435    fftw_cv_libdfftw=no
5436   fi
5437  
5438            ac_fn_c_check_header_mongrel "$LINENO" "dfftw.h" "ac_cv_header_dfftw_h" "$ac_includes_default"
5439 < if test "x$ac_cv_header_dfftw_h" = x""yes; then :
5439 > if test "x$ac_cv_header_dfftw_h" = xyes; then :
5440    fftw_cv_dfftw_h=yes
5441   else
5442    fftw_cv_dfftw_h=no
# Line 9009 | Line 5528 | $as_echo "$as_me: WARNING: Sorry, $qhull_dir does not
5528         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5
5529   $as_echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;}
5530         QHULL_HOME=/usr/local
5531 <       if test ! -f "${QHULL_HOME}/include/qhull/qhull.h"; then
5531 >       if test ! -f "${QHULL_HOME}/include/qhull/libqhull.h"; then
5532            QHULL_HOME=/usr
5533         fi
5534       fi
# Line 9033 | Line 5552 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552          LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
5553          CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
5554          CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include"
5555 <        ac_fn_c_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default"
5556 < if test "x$ac_cv_header_qhull_qhull_h" = x""yes; then :
5557 <  qhull_cv_qhull_h=yes
5555 >        ac_fn_c_check_header_mongrel "$LINENO" "qhull/libqhull.h" "ac_cv_header_qhull_libqhull_h" "$ac_includes_default"
5556 > if test "x$ac_cv_header_qhull_libqhull_h" = xyes; then :
5557 >  qhull_cv_libqhull_h=yes
5558   else
5559 <  qhull_cv_qhull_h=no
5559 >  qhull_cv_libqhull_h=no
5560   fi
5561  
5562  
5563          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull" >&5
5564   $as_echo_n "checking for qh_qhull in -lqhull... " >&6; }
5565 < if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then :
5565 > if ${ac_cv_lib_qhull_qh_qhull+:} false; then :
5566    $as_echo_n "(cached) " >&6
5567   else
5568    ac_check_lib_save_LIBS=$LIBS
# Line 9058 | Line 5577 | char qh_qhull ();
5577   extern "C"
5578   #endif
5579   char qh_qhull ();
9061 #ifdef FC_DUMMY_MAIN
9062 #ifndef FC_DUMMY_MAIN_EQ_F77
9063 #  ifdef __cplusplus
9064     extern "C"
9065 #  endif
9066   int FC_DUMMY_MAIN() { return 1; }
9067 #endif
9068 #endif
5580   int
5581   main ()
5582   {
# Line 9085 | Line 5596 | $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
5596   fi
5597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull_qh_qhull" >&5
5598   $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
5599 < if test "x$ac_cv_lib_qhull_qh_qhull" = x""yes; then :
5599 > if test "x$ac_cv_lib_qhull_qh_qhull" = xyes; then :
5600    qhull_cv_libqhull=yes
5601   else
5602    qhull_cv_libqhull=no
5603   fi
5604  
5605 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull6" >&5
5606 + $as_echo_n "checking for qh_qhull in -lqhull6... " >&6; }
5607 + if ${ac_cv_lib_qhull6_qh_qhull+:} false; then :
5608 +  $as_echo_n "(cached) " >&6
5609 + else
5610 +  ac_check_lib_save_LIBS=$LIBS
5611 + LIBS="-lqhull6  $LIBS"
5612 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 + /* end confdefs.h.  */
5614 +
5615 + /* Override any GCC internal prototype to avoid an error.
5616 +   Use char because int might match the return type of a GCC
5617 +   builtin and then its argument prototype would still apply.  */
5618 + #ifdef __cplusplus
5619 + extern "C"
5620 + #endif
5621 + char qh_qhull ();
5622 + int
5623 + main ()
5624 + {
5625 + return qh_qhull ();
5626 +  ;
5627 +  return 0;
5628 + }
5629 + _ACEOF
5630 + if ac_fn_c_try_link "$LINENO"; then :
5631 +  ac_cv_lib_qhull6_qh_qhull=yes
5632 + else
5633 +  ac_cv_lib_qhull6_qh_qhull=no
5634 + fi
5635 + rm -f core conftest.err conftest.$ac_objext \
5636 +    conftest$ac_exeext conftest.$ac_ext
5637 + LIBS=$ac_check_lib_save_LIBS
5638 + fi
5639 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull6_qh_qhull" >&5
5640 + $as_echo "$ac_cv_lib_qhull6_qh_qhull" >&6; }
5641 + if test "x$ac_cv_lib_qhull6_qh_qhull" = xyes; then :
5642 +  qhull_cv_libqhull6=yes
5643 + else
5644 +  qhull_cv_libqhull6=no
5645 + fi
5646 +
5647          LDFLAGS="$QHULL_OLD_LDFLAGS"
5648          CFLAGS="$QHULL_OLD_CFLAGS"
5649          CPPFLAGS="$QHULL_OLD_CPPFLAGS"
# Line 9101 | Line 5654 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654   ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655  
5656  
5657 <        if test "$qhull_cv_libqhull" = "yes" -a "$qhull_cv_qhull_h" = "yes"; then
5657 >        if test "$qhull_cv_libqhull_h" = "yes" -a "$qhull_cv_libqhull" = "yes" -o "$qhull_cv_libqhull6" = "yes"; then
5658  
5659 < $as_echo "#define HAVE_QHULL_H 1" >>confdefs.h
5659 > $as_echo "#define HAVE_LIBQHULL_H 1" >>confdefs.h
5660  
5661 +           if test "$qhull_cv_libqhull" = "yes"; then
5662  
5663   $as_echo "#define HAVE_QHULL 1" >>confdefs.h
5664  
5665 +                QHULL="-lqhull"
5666 +           fi
5667 +           if test "$qhull_cv_libqhull6" = "yes"; then
5668 +
5669 + $as_echo "#define HAVE_QHULL 1" >>confdefs.h
5670 +
5671 +                QHULL="-lqhull6"
5672 +           fi
5673             USE_QHULL=yes
5674             QHULL_INC_DIR="${QHULL_HOME}/include"
5675             QHULL_LIB_DIR="${QHULL_HOME}/lib"
9114           QHULL="-lqhull"
5676             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Working qhull found, will proceed." >&5
5677   $as_echo "Working qhull found, will proceed." >&6; }
5678          else
# Line 9147 | Line 5708 | if test -z "$CXXCPP"; then
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5709   $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5710   if test -z "$CXXCPP"; then
5711 <  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5711 >  if ${ac_cv_prog_CXXCPP+:} false; then :
5712    $as_echo_n "(cached) " >&6
5713   else
5714        # Double quotes because CXXCPP needs to be expanded
# Line 9177 | Line 5738 | fi
5738    # Broken: fails on valid input.
5739   continue
5740   fi
5741 < rm -f conftest.err conftest.$ac_ext
5741 > rm -f conftest.err conftest.i conftest.$ac_ext
5742  
5743    # OK, works on sane cases.  Now check whether nonexistent headers
5744    # can be detected and how.
# Line 9193 | Line 5754 | fi
5754   ac_preproc_ok=:
5755   break
5756   fi
5757 < rm -f conftest.err conftest.$ac_ext
5757 > rm -f conftest.err conftest.i conftest.$ac_ext
5758  
5759   done
5760   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5761 < rm -f conftest.err conftest.$ac_ext
5761 > rm -f conftest.i conftest.err conftest.$ac_ext
5762   if $ac_preproc_ok; then :
5763    break
5764   fi
# Line 9236 | Line 5797 | fi
5797    # Broken: fails on valid input.
5798   continue
5799   fi
5800 < rm -f conftest.err conftest.$ac_ext
5800 > rm -f conftest.err conftest.i conftest.$ac_ext
5801  
5802    # OK, works on sane cases.  Now check whether nonexistent headers
5803    # can be detected and how.
# Line 9252 | Line 5813 | fi
5813   ac_preproc_ok=:
5814   break
5815   fi
5816 < rm -f conftest.err conftest.$ac_ext
5816 > rm -f conftest.err conftest.i conftest.$ac_ext
5817  
5818   done
5819   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5820 < rm -f conftest.err conftest.$ac_ext
5820 > rm -f conftest.i conftest.err conftest.$ac_ext
5821   if $ac_preproc_ok; then :
5822  
5823   else
5824    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5825   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5826 < as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5827 < See \`config.log' for more details." "$LINENO" 5; }
5826 > as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5827 > See \`config.log' for more details" "$LINENO" 5; }
5828   fi
5829  
5830   ac_ext=cpp
# Line 9317 | Line 5878 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5878          LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel"
5879          CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0"
5880          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/babelconfig.h" "ac_cv_header_openbabel_babelconfig_h" "$ac_includes_default"
5881 < if test "x$ac_cv_header_openbabel_babelconfig_h" = x""yes; then :
5881 > if test "x$ac_cv_header_openbabel_babelconfig_h" = xyes; then :
5882    openbabel_cv_openbabel_h=yes
5883   else
5884    openbabel_cv_openbabel_h=no
# Line 9325 | Line 5886 | fi
5886  
5887  
5888          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/obconversion.h" "ac_cv_header_openbabel_obconversion_h" "$ac_includes_default"
5889 < if test "x$ac_cv_header_openbabel_obconversion_h" = x""yes; then :
5889 > if test "x$ac_cv_header_openbabel_obconversion_h" = xyes; then :
5890    openbabel_cv_obconversion_h=yes
5891   else
5892    openbabel_cv_obconversion_h=no
# Line 9341 | Line 5902 | using namespace OpenBabel;
5902   using namespace std;
5903   using namespace OpenBabel;
5904  
9344 #ifdef FC_DUMMY_MAIN
9345 #ifndef FC_DUMMY_MAIN_EQ_F77
9346 #  ifdef __cplusplus
9347     extern "C"
9348 #  endif
9349   int FC_DUMMY_MAIN() { return 1; }
9350 #endif
9351 #endif
5905   int
5906   main ()
5907   {
# Line 9419 | Line 5972 | fi
5972  
5973  
5974   # Checks for header files.
5975 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9423 < $as_echo_n "checking for ANSI C header files... " >&6; }
9424 < if test "${ac_cv_header_stdc+set}" = set; then :
9425 <  $as_echo_n "(cached) " >&6
9426 < else
9427 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428 < /* end confdefs.h.  */
9429 < #include <stdlib.h>
9430 < #include <stdarg.h>
9431 < #include <string.h>
9432 < #include <float.h>
9433 <
9434 < #ifdef FC_DUMMY_MAIN
9435 < #ifndef FC_DUMMY_MAIN_EQ_F77
9436 < #  ifdef __cplusplus
9437 <     extern "C"
9438 < #  endif
9439 <   int FC_DUMMY_MAIN() { return 1; }
9440 < #endif
9441 < #endif
9442 < int
9443 < main ()
9444 < {
9445 <
9446 <  ;
9447 <  return 0;
9448 < }
9449 < _ACEOF
9450 < if ac_fn_c_try_compile "$LINENO"; then :
9451 <  ac_cv_header_stdc=yes
9452 < else
9453 <  ac_cv_header_stdc=no
9454 < fi
9455 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9456 <
9457 < if test $ac_cv_header_stdc = yes; then
9458 <  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9459 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460 < /* end confdefs.h.  */
9461 < #include <string.h>
9462 <
9463 < _ACEOF
9464 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9465 <  $EGREP "memchr" >/dev/null 2>&1; then :
9466 <
9467 < else
9468 <  ac_cv_header_stdc=no
9469 < fi
9470 < rm -f conftest*
9471 <
9472 < fi
9473 <
9474 < if test $ac_cv_header_stdc = yes; then
9475 <  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9476 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 < /* end confdefs.h.  */
9478 < #include <stdlib.h>
9479 <
9480 < _ACEOF
9481 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9482 <  $EGREP "free" >/dev/null 2>&1; then :
9483 <
9484 < else
9485 <  ac_cv_header_stdc=no
9486 < fi
9487 < rm -f conftest*
9488 <
9489 < fi
9490 <
9491 < if test $ac_cv_header_stdc = yes; then
9492 <  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9493 <  if test "$cross_compiling" = yes; then :
9494 <  :
9495 < else
9496 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 < /* end confdefs.h.  */
9498 < #include <ctype.h>
9499 < #include <stdlib.h>
9500 < #if ((' ' & 0x0FF) == 0x020)
9501 < # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9502 < # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9503 < #else
9504 < # define ISLOWER(c) \
9505 <                   (('a' <= (c) && (c) <= 'i') \
9506 <                     || ('j' <= (c) && (c) <= 'r') \
9507 <                     || ('s' <= (c) && (c) <= 'z'))
9508 < # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9509 < #endif
9510 <
9511 < #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9512 < int
9513 < main ()
9514 < {
9515 <  int i;
9516 <  for (i = 0; i < 256; i++)
9517 <    if (XOR (islower (i), ISLOWER (i))
9518 <        || toupper (i) != TOUPPER (i))
9519 <      return 2;
9520 <  return 0;
9521 < }
9522 < _ACEOF
9523 < if ac_fn_c_try_run "$LINENO"; then :
9524 <
9525 < else
9526 <  ac_cv_header_stdc=no
9527 < fi
9528 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9529 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
9530 < fi
9531 <
9532 < fi
9533 < fi
9534 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9535 < $as_echo "$ac_cv_header_stdc" >&6; }
9536 < if test $ac_cv_header_stdc = yes; then
9537 <
9538 < $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9539 <
9540 < fi
9541 <
9542 < for ac_header in libintl.h limits.h machine/hal_sysinfo.h stdlib.h string.h strings.h sys/param.h sys/pstat.h sys/sysctl.h sys/sysinfo.h sys/sysmp.h sys/systemcfg.h sys/table.h sys/time.h unistd.h
5975 > for ac_header in limits.h stdlib.h string.h sys/ioctl.h unistd.h
5976   do :
5977    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5978   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5979 < eval as_val=\$$as_ac_Header
9547 <   if test "x$as_val" = x""yes; then :
5979 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5980    cat >>confdefs.h <<_ACEOF
5981   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5982   _ACEOF
# Line 9557 | Line 5989 | $as_echo_n "checking for stdbool.h that conforms to C9
5989   # Checks for typedefs, structures, and compiler characteristics.
5990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5991   $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
5992 < if test "${ac_cv_header_stdbool_h+set}" = set; then :
5992 > if ${ac_cv_header_stdbool_h+:} false; then :
5993    $as_echo_n "(cached) " >&6
5994   else
5995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9589 | Line 6021 | else
6021          char b[false == 0 ? 1 : -1];
6022          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6023          char d[(bool) 0.5 == true ? 1 : -1];
6024 <        bool e = &s;
6024 >        /* See body of main program for 'e'.  */
6025          char f[(_Bool) 0.0 == false ? 1 : -1];
6026          char g[true];
6027          char h[sizeof (_Bool)];
# Line 9600 | Line 6032 | else
6032          _Bool n[m];
6033          char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6034          char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9603 #       if defined __xlc__ || defined __GNUC__
9604         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9605            reported by James Lemley on 2005-10-05; see
9606            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9607            This test is not quite right, since xlc is allowed to
9608            reject this program, as the initializer for xlcbug is
9609            not one of the forms that C requires support for.
9610            However, doing the test right would require a runtime
9611            test, and that would make cross-compilation harder.
9612            Let us hope that IBM fixes the xlc bug, and also adds
9613            support for this kind of constant expression.  In the
9614            meantime, this test will reject xlc, which is OK, since
9615            our stdbool.h substitute should suffice.  We also test
9616            this with GCC, where it should work, to detect more
9617            quickly whether someone messes up the test in the
9618            future.  */
9619         char digs[] = "0123456789";
9620         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9621 #       endif
6035          /* Catch a bug in an HP-UX C compiler.  See
6036             http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6037             http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
# Line 9626 | Line 6039 | else
6039          _Bool q = true;
6040          _Bool *pq = &q;
6041  
9629 #ifdef FC_DUMMY_MAIN
9630 #ifndef FC_DUMMY_MAIN_EQ_F77
9631 #  ifdef __cplusplus
9632     extern "C"
9633 #  endif
9634   int FC_DUMMY_MAIN() { return 1; }
9635 #endif
9636 #endif
6042   int
6043   main ()
6044   {
6045  
6046 +        bool e = &s;
6047          *pq |= q;
6048          *pq |= ! q;
6049          /* Refer to every declared value, to avoid compiler optimizations.  */
# Line 9658 | Line 6064 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool
6064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6065   $as_echo "$ac_cv_header_stdbool_h" >&6; }
6066   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6067 < if test "x$ac_cv_type__Bool" = x""yes; then :
6067 > if test "x$ac_cv_type__Bool" = xyes; then :
6068  
6069   cat >>confdefs.h <<_ACEOF
6070   #define HAVE__BOOL 1
# Line 9673 | Line 6079 | fi
6079  
6080   fi
6081  
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9677 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9678 if test "${ac_cv_c_const+set}" = set; then :
9679  $as_echo_n "(cached) " >&6
9680 else
9681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h.  */
9683
9684 #ifdef FC_DUMMY_MAIN
9685 #ifndef FC_DUMMY_MAIN_EQ_F77
9686 #  ifdef __cplusplus
9687     extern "C"
9688 #  endif
9689   int FC_DUMMY_MAIN() { return 1; }
9690 #endif
9691 #endif
9692 int
9693 main ()
9694 {
9695 /* FIXME: Include the comments suggested by Paul. */
9696 #ifndef __cplusplus
9697  /* Ultrix mips cc rejects this.  */
9698  typedef int charset[2];
9699  const charset cs;
9700  /* SunOS 4.1.1 cc rejects this.  */
9701  char const *const *pcpcc;
9702  char **ppc;
9703  /* NEC SVR4.0.2 mips cc rejects this.  */
9704  struct point {int x, y;};
9705  static struct point const zero = {0,0};
9706  /* AIX XL C 1.02.0.0 rejects this.
9707     It does not let you subtract one const X* pointer from another in
9708     an arm of an if-expression whose if-part is not a constant
9709     expression */
9710  const char *g = "string";
9711  pcpcc = &g + (g ? g-g : 0);
9712  /* HPUX 7.0 cc rejects these. */
9713  ++pcpcc;
9714  ppc = (char**) pcpcc;
9715  pcpcc = (char const *const *) ppc;
9716  { /* SCO 3.2v4 cc rejects this.  */
9717    char *t;
9718    char const *s = 0 ? (char *) 0 : (char const *) 0;
9719
9720    *t++ = 0;
9721    if (s) return 0;
9722  }
9723  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9724    int x[] = {25, 17};
9725    const int *foo = &x[0];
9726    ++foo;
9727  }
9728  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9729    typedef const int *iptr;
9730    iptr p = 0;
9731    ++p;
9732  }
9733  { /* AIX XL C 1.02.0.0 rejects this saying
9734       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9735    struct s { int j; const int *ap[3]; };
9736    struct s *b; b->j = 5;
9737  }
9738  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9739    const int foo = 10;
9740    if (!foo) return 0;
9741  }
9742  return !cs[0] && !zero.x;
9743 #endif
9744
9745  ;
9746  return 0;
9747 }
9748 _ACEOF
9749 if ac_fn_c_try_compile "$LINENO"; then :
9750  ac_cv_c_const=yes
9751 else
9752  ac_cv_c_const=no
9753 fi
9754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9755 fi
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9757 $as_echo "$ac_cv_c_const" >&6; }
9758 if test $ac_cv_c_const = no; then
9759
9760 $as_echo "#define const /**/" >>confdefs.h
9761
9762 fi
9763
6082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6083   $as_echo_n "checking for inline... " >&6; }
6084 < if test "${ac_cv_c_inline+set}" = set; then :
6084 > if ${ac_cv_c_inline+:} false; then :
6085    $as_echo_n "(cached) " >&6
6086   else
6087    ac_cv_c_inline=no
# Line 9804 | Line 6122 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size
6122   esac
6123  
6124   ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6125 < if test "x$ac_cv_type_size_t" = x""yes; then :
6125 > if test "x$ac_cv_type_size_t" = xyes; then :
6126  
6127   else
6128  
# Line 9814 | Line 6132 | fi
6132  
6133   fi
6134  
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9818 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9819 if test "${ac_cv_header_time+set}" = set; then :
9820  $as_echo_n "(cached) " >&6
9821 else
9822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h.  */
9824 #include <sys/types.h>
9825 #include <sys/time.h>
9826 #include <time.h>
6135  
9828 #ifdef FC_DUMMY_MAIN
9829 #ifndef FC_DUMMY_MAIN_EQ_F77
9830 #  ifdef __cplusplus
9831     extern "C"
9832 #  endif
9833   int FC_DUMMY_MAIN() { return 1; }
9834 #endif
9835 #endif
9836 int
9837 main ()
9838 {
9839 if ((struct tm *) 0)
9840 return 0;
9841  ;
9842  return 0;
9843 }
9844 _ACEOF
9845 if ac_fn_c_try_compile "$LINENO"; then :
9846  ac_cv_header_time=yes
9847 else
9848  ac_cv_header_time=no
9849 fi
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851 fi
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9853 $as_echo "$ac_cv_header_time" >&6; }
9854 if test $ac_cv_header_time = yes; then
9855
9856 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9857
9858 fi
9859
9860
6136   # Checks for library functions.
6137   for ac_header in stdlib.h
6138   do :
6139    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6140 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6140 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
6141    cat >>confdefs.h <<_ACEOF
6142   #define HAVE_STDLIB_H 1
6143   _ACEOF
# Line 9873 | Line 6148 | $as_echo_n "checking for GNU libc compatible malloc...
6148  
6149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6150   $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6151 < if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6151 > if ${ac_cv_func_malloc_0_nonnull+:} false; then :
6152    $as_echo_n "(cached) " >&6
6153   else
6154    if test "$cross_compiling" = yes; then :
# Line 9887 | Line 6162 | char *malloc ();
6162   char *malloc ();
6163   #endif
6164  
9890 #ifdef FC_DUMMY_MAIN
9891 #ifndef FC_DUMMY_MAIN_EQ_F77
9892 #  ifdef __cplusplus
9893     extern "C"
9894 #  endif
9895   int FC_DUMMY_MAIN() { return 1; }
9896 #endif
9897 #endif
6165   int
6166   main ()
6167   {
# Line 9937 | Line 6204 | do :
6204   for ac_header in stdlib.h
6205   do :
6206    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6207 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6207 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
6208    cat >>confdefs.h <<_ACEOF
6209   #define HAVE_STDLIB_H 1
6210   _ACEOF
# Line 9948 | Line 6215 | $as_echo_n "checking for GNU libc compatible realloc..
6215  
6216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6217   $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6218 < if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6218 > if ${ac_cv_func_realloc_0_nonnull+:} false; then :
6219    $as_echo_n "(cached) " >&6
6220   else
6221    if test "$cross_compiling" = yes; then :
# Line 9962 | Line 6229 | char *realloc ();
6229   char *realloc ();
6230   #endif
6231  
9965 #ifdef FC_DUMMY_MAIN
9966 #ifndef FC_DUMMY_MAIN_EQ_F77
9967 #  ifdef __cplusplus
9968     extern "C"
9969 #  endif
9970   int FC_DUMMY_MAIN() { return 1; }
9971 #endif
9972 #endif
6232   int
6233   main ()
6234   {
# Line 10009 | Line 6268 | fi
6268   fi
6269  
6270  
10012 for ac_header in sys/select.h sys/socket.h
10013 do :
10014  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10015 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10016 eval as_val=\$$as_ac_Header
10017   if test "x$as_val" = x""yes; then :
10018  cat >>confdefs.h <<_ACEOF
10019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10020 _ACEOF
10021
10022 fi
10023
10024 done
10025
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
10027 $as_echo_n "checking types of arguments for select... " >&6; }
10028 if test "${ac_cv_func_select_args+set}" = set; then :
10029  $as_echo_n "(cached) " >&6
10030 else
10031  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10032 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10033  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035 /* end confdefs.h.  */
10036 $ac_includes_default
10037 #ifdef HAVE_SYS_SELECT_H
10038 # include <sys/select.h>
10039 #endif
10040 #ifdef HAVE_SYS_SOCKET_H
10041 # include <sys/socket.h>
10042 #endif
10043
10044 #ifdef FC_DUMMY_MAIN
10045 #ifndef FC_DUMMY_MAIN_EQ_F77
10046 #  ifdef __cplusplus
10047     extern "C"
10048 #  endif
10049   int FC_DUMMY_MAIN() { return 1; }
10050 #endif
10051 #endif
10052 int
10053 main ()
10054 {
10055 extern int select ($ac_arg1,
10056                                            $ac_arg234, $ac_arg234, $ac_arg234,
10057                                            $ac_arg5);
10058  ;
10059  return 0;
10060 }
10061 _ACEOF
10062 if ac_fn_c_try_compile "$LINENO"; then :
10063  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10064 fi
10065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10066  done
10067 done
10068 done
10069 # Provide a safe default value.
10070 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10071
10072 fi
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10074 $as_echo "$ac_cv_func_select_args" >&6; }
10075 ac_save_IFS=$IFS; IFS=','
10076 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10077 IFS=$ac_save_IFS
10078 shift
10079
10080 cat >>confdefs.h <<_ACEOF
10081 #define SELECT_TYPE_ARG1 $1
10082 _ACEOF
10083
10084
10085 cat >>confdefs.h <<_ACEOF
10086 #define SELECT_TYPE_ARG234 ($2)
10087 _ACEOF
10088
10089
10090 cat >>confdefs.h <<_ACEOF
10091 #define SELECT_TYPE_ARG5 ($3)
10092 _ACEOF
10093
10094 rm -f conftest*
10095
6271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6272   $as_echo_n "checking for working strtod... " >&6; }
6273 < if test "${ac_cv_func_strtod+set}" = set; then :
6273 > if ${ac_cv_func_strtod+:} false; then :
6274    $as_echo_n "(cached) " >&6
6275   else
6276    if test "$cross_compiling" = yes; then :
# Line 10154 | Line 6329 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6329   esac
6330  
6331   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6332 < if test "x$ac_cv_func_pow" = x""yes; then :
6332 > if test "x$ac_cv_func_pow" = xyes; then :
6333  
6334   fi
6335  
6336   if test $ac_cv_func_pow = no; then
6337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6338   $as_echo_n "checking for pow in -lm... " >&6; }
6339 < if test "${ac_cv_lib_m_pow+set}" = set; then :
6339 > if ${ac_cv_lib_m_pow+:} false; then :
6340    $as_echo_n "(cached) " >&6
6341   else
6342    ac_check_lib_save_LIBS=$LIBS
# Line 10176 | Line 6351 | char pow ();
6351   extern "C"
6352   #endif
6353   char pow ();
10179 #ifdef FC_DUMMY_MAIN
10180 #ifndef FC_DUMMY_MAIN_EQ_F77
10181 #  ifdef __cplusplus
10182     extern "C"
10183 #  endif
10184   int FC_DUMMY_MAIN() { return 1; }
10185 #endif
10186 #endif
6354   int
6355   main ()
6356   {
# Line 10203 | Line 6370 | $as_echo "$ac_cv_lib_m_pow" >&6; }
6370   fi
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6372   $as_echo "$ac_cv_lib_m_pow" >&6; }
6373 < if test "x$ac_cv_lib_m_pow" = x""yes; then :
6373 > if test "x$ac_cv_lib_m_pow" = xyes; then :
6374    POW_LIB=-lm
6375   else
6376    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
# Line 10214 | Line 6381 | fi
6381  
6382   fi
6383  
6384 < for ac_func in floor getpagesize gettimeofday memset pow pstat_getdynamic pstat_getstatic select sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strstr strtol sysmp getsysinfo sysctl table
6384 > for ac_func in atexit floor pow select sqrt strcasecmp strchr strdup strncasecmp strstr strtol strtoull
6385   do :
6386    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6387   ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6388 < eval as_val=\$$as_ac_var
10222 <   if test "x$as_val" = x""yes; then :
6388 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6389    cat >>confdefs.h <<_ACEOF
6390   #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6391   _ACEOF
# Line 10228 | Line 6394 | done
6394   done
6395  
6396  
10231 # special check for _system_configuration because AIX <4.3.2 do not
10232 # contain the `physmem' member.
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
10234 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236 /* end confdefs.h.  */
10237 #include <sys/systemcfg.h>
10238 #ifdef FC_DUMMY_MAIN
10239 #ifndef FC_DUMMY_MAIN_EQ_F77
10240 #  ifdef __cplusplus
10241     extern "C"
10242 #  endif
10243   int FC_DUMMY_MAIN() { return 1; }
10244 #endif
10245 #endif
10246 int
10247 main ()
10248 {
10249 double x = _system_configuration.physmem;
10250  ;
10251  return 0;
10252 }
10253 _ACEOF
10254 if ac_fn_c_try_compile "$LINENO"; then :
10255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10256 $as_echo "yes" >&6; }
6397  
10258 $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
10259
10260 else
10261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10262 $as_echo "no" >&6; }
10263 fi
10264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10265
10266
6398   case $debug in
6399    1)
6400       ;;
# Line 10273 | Line 6404 | case $debug in
6404  
6405  
6406  
10276 # Try to determine "good" native compiler flags if none specified on command
10277 # line
6407  
10279 if test "$ac_test_FFLAGS" != "set"; then
10280  FCFLAGS=""
10281  case "${host_cpu}-${host_os}" in
10282
10283  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
10284                    FCFLAGS="-O2"
10285                fi;;
10286   rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
10287                    FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
10288                fi;;
10289   powerpc*-aix*)
10290        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
10291                FCFLAGS="-O3 -qarch=ppc -qansialias -w"
10292                echo "*******************************************************"
10293                echo "*  You have AIX on an unknown powerpc system.  It is  *"
10294                echo "*  recommended that you use                           *"
10295                echo "*                                                     *"
10296                echo "*   FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
10297                echo "*                                 ^^^                 *"
10298                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
10299                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
10300                echo "*******************************************************"
10301        fi;;
10302   *darwin*)
10303        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
10304                FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
10305        fi
10306        if test "$FC" = ifort; then
10307                FCFLAGS="-O2"
10308        fi
10309        if test "$FC" = gfortran; then
10310                FCFLAGS="-Os"
10311        fi;;
10312  esac
10313
10314  if test -z "$FCFLAGS"; then
10315        echo ""
10316        echo "*********************************************************"
10317        echo "* WARNING: Don't know the best FCFLAGS for this system  *"
10318        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
10319        echo "* (otherwise, a default of FCFLAGS=-O will be used)     *"
10320        echo "*********************************************************"
10321        echo ""
10322        FCFLAGS="-O"
10323  fi
10324
10325
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} accepts ${FCFLAGS}" >&5
10327 $as_echo_n "checking whether ${FC} accepts ${FCFLAGS}... " >&6; }
10328 if test "${ac_cv_ac_cv_guessed_f90flags+set}" = set; then :
10329  $as_echo_n "(cached) " >&6
10330 else
10331
10332
10333 ac_ext=${ac_fc_srcext-f}
10334 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
10335 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
10336 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10337
10338 echo 'program main' > conftest.$ac_ext
10339 echo 'end program main' >> conftest.$ac_ext
10340 ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5'
10341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10342  (eval $ac_compile) 2>&5
10343  ac_status=$?
10344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10345  test $ac_status = 0; }; then
10346        ac_cv_ac_cv_guessed_f90flags=yes
10347 else
10348        ac_cv_ac_cv_guessed_f90flags=no
10349 fi
10350 rm -f conftest*
10351 ac_ext=c
10352 ac_cpp='$CPP $CPPFLAGS'
10353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10356
10357
10358 fi
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ac_cv_guessed_f90flags" >&5
10360 $as_echo "$ac_cv_ac_cv_guessed_f90flags" >&6; }
10361 if test "$ac_cv_ac_cv_guessed_f90flags" = yes; then
10362        :
10363
10364 else
10365        :
10366
10367        echo ""
10368        echo "**********************************************************"
10369        echo "* WARNING: The guessed FCFLAGS don't seem to work with  *"
10370        echo "* your compiler.                                        *"
10371        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
10372        echo "*********************************************************"
10373        echo ""
10374        FCFLAGS=""
10375
10376 fi
10377
10378
10379 fi
10380
10381
10382
10383
10384
10385
10386
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU cc" >&5
6409   $as_echo_n "checking whether we are *really* using GNU cc... " >&6; }
6410 < if test "${ac_cv_prog_really_gcc+set}" = set; then :
6410 > if ${ac_cv_prog_really_gcc+:} false; then :
6411    $as_echo_n "(cached) " >&6
6412   else
6413  
# Line 10491 | Line 6512 | $as_echo_n "checking whether ${CC} accepts ${CFLAGS}..
6512  
6513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${CFLAGS}" >&5
6514   $as_echo_n "checking whether ${CC} accepts ${CFLAGS}... " >&6; }
6515 < if test "${ac_cv_ac_cv_guessed_cflags+set}" = set; then :
6515 > if ${ac_cv_ac_cv_guessed_cflags+:} false; then :
6516    $as_echo_n "(cached) " >&6
6517   else
6518    echo 'void f(){}' > conftest.c
# Line 10533 | Line 6554 | $as_echo_n "checking whether we are *really* using GNU
6554  
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU c++" >&5
6556   $as_echo_n "checking whether we are *really* using GNU c++... " >&6; }
6557 < if test "${ac_cv_prog_really_gxx+set}" = set; then :
6557 > if ${ac_cv_prog_really_gxx+:} false; then :
6558    $as_echo_n "(cached) " >&6
6559   else
6560  
# Line 10629 | Line 6650 | $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS
6650  
6651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${CXXFLAGS}" >&5
6652   $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS}... " >&6; }
6653 < if test "${ac_cv_ac_cv_guessed_cxxflags+set}" = set; then :
6653 > if ${ac_cv_ac_cv_guessed_cxxflags+:} false; then :
6654    $as_echo_n "(cached) " >&6
6655   else
6656    echo 'void f(){}' > conftest.cpp
# Line 10698 | Line 6719 | $as_echo_n "checking for $ac_word... " >&6; }
6719   set dummy doxygen; ac_word=$2
6720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721   $as_echo_n "checking for $ac_word... " >&6; }
6722 < if test "${ac_cv_path_DOXYGEN+set}" = set; then :
6722 > if ${ac_cv_path_DOXYGEN+:} false; then :
6723    $as_echo_n "(cached) " >&6
6724   else
6725    case $DOXYGEN in
# Line 10736 | Line 6757 | fi
6757  
6758          if test "x$DOXYGEN" = x; then
6759                  if test "x$enable_doxygen" = xyes; then
6760 <                        as_fn_error "could not find doxygen" "$LINENO" 5
6760 >                        as_fn_error $? "could not find doxygen" "$LINENO" 5
6761                  fi
6762                  enable_doc=no
6763          else
# Line 10745 | Line 6766 | $as_echo_n "checking for $ac_word... " >&6; }
6766   set dummy dot; ac_word=$2
6767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768   $as_echo_n "checking for $ac_word... " >&6; }
6769 < if test "${ac_cv_path_DOT+set}" = set; then :
6769 > if ${ac_cv_path_DOT+:} false; then :
6770    $as_echo_n "(cached) " >&6
6771   else
6772    case $DOT in
# Line 10793 | Line 6814 | if test x$DOT = x; then
6814  
6815   if test x$DOT = x; then
6816          if test "x$enable_dot" = xyes; then
6817 <                as_fn_error "could not find dot" "$LINENO" 5
6817 >                as_fn_error $? "could not find dot" "$LINENO" 5
6818          fi
6819          enable_dot=no
6820   else
# Line 10815 | Line 6836 | fi
6836  
6837  
6838  
10818
10819
10820
6839   ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/integrators/Makefile src/applications/atom2md/Makefile scripts/filepp"
6840  
6841  
# Line 10885 | Line 6903 | if diff "$cache_file" confcache >/dev/null 2>&1; then
6903       :end' >>confcache
6904   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6905    if test -w "$cache_file"; then
6906 <    test "x$cache_file" != "x/dev/null" &&
6906 >    if test "x$cache_file" != "x/dev/null"; then
6907        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6908   $as_echo "$as_me: updating cache $cache_file" >&6;}
6909 <    cat confcache >$cache_file
6909 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
6910 >        cat confcache >"$cache_file"
6911 >      else
6912 >        case $cache_file in #(
6913 >        */* | ?:*)
6914 >          mv -f confcache "$cache_file"$$ &&
6915 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
6916 >        *)
6917 >          mv -f confcache "$cache_file" ;;
6918 >        esac
6919 >      fi
6920 >    fi
6921    else
6922      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6923   $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
# Line 10904 | Line 6933 | ac_ltlibobjs=
6933  
6934   ac_libobjs=
6935   ac_ltlibobjs=
6936 + U=
6937   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6938    # 1. Remove the extension, and $U if already installed.
6939    ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
# Line 10919 | Line 6949 | LTLIBOBJS=$ac_ltlibobjs
6949  
6950  
6951  
6952 < : ${CONFIG_STATUS=./config.status}
6952 > : "${CONFIG_STATUS=./config.status}"
6953   ac_write_fail=0
6954   ac_clean_files_save=$ac_clean_files
6955   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
# Line 11020 | Line 7050 | IFS=" ""       $as_nl"
7050   IFS=" ""        $as_nl"
7051  
7052   # Find who we are.  Look in the path if we contain no directory separator.
7053 + as_myself=
7054   case $0 in #((
7055    *[\\/]* ) as_myself=$0 ;;
7056    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 11065 | Line 7096 | export LANGUAGE
7096   (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7097  
7098  
7099 < # as_fn_error ERROR [LINENO LOG_FD]
7100 < # ---------------------------------
7099 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
7100 > # ----------------------------------------
7101   # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7102   # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7103 < # script with status $?, using 1 if that was 0.
7103 > # script with STATUS, using 1 if that was 0.
7104   as_fn_error ()
7105   {
7106 <  as_status=$?; test $as_status -eq 0 && as_status=1
7107 <  if test "$3"; then
7108 <    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7109 <    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7106 >  as_status=$1; test $as_status -eq 0 && as_status=1
7107 >  if test "$4"; then
7108 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7109 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7110    fi
7111 <  $as_echo "$as_me: error: $1" >&2
7111 >  $as_echo "$as_me: error: $2" >&2
7112    as_fn_exit $as_status
7113   } # as_fn_error
7114  
# Line 11273 | Line 7304 | $as_echo X"$as_dir" |
7304        test -d "$as_dir" && break
7305      done
7306      test -z "$as_dirs" || eval "mkdir $as_dirs"
7307 <  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7307 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7308  
7309  
7310   } # as_fn_mkdir_p
# Line 11326 | Line 7357 | ac_log="
7357   # report actual input values of CONFIG_FILES etc. instead of their
7358   # values after options handling.
7359   ac_log="
7360 < This file was extended by OpenMD $as_me 1.0, which was
7361 < generated by GNU Autoconf 2.65.  Invocation command line was
7360 > This file was extended by OpenMD $as_me 2.0, which was
7361 > generated by GNU Autoconf 2.68.  Invocation command line was
7362  
7363    CONFIG_FILES    = $CONFIG_FILES
7364    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 11388 | Line 7419 | ac_cs_version="\\
7419   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7420   ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7421   ac_cs_version="\\
7422 < OpenMD config.status 1.0
7423 < configured by $0, generated by GNU Autoconf 2.65,
7422 > OpenMD config.status 2.0
7423 > configured by $0, generated by GNU Autoconf 2.68,
7424    with options \\"\$ac_cs_config\\"
7425  
7426 < Copyright (C) 2009 Free Software Foundation, Inc.
7426 > Copyright (C) 2010 Free Software Foundation, Inc.
7427   This config.status script is free software; the Free Software Foundation
7428   gives unlimited permission to copy, distribute and modify it."
7429  
# Line 11408 | Line 7439 | do
7439   while test $# != 0
7440   do
7441    case $1 in
7442 <  --*=*)
7442 >  --*=?*)
7443      ac_option=`expr "X$1" : 'X\([^=]*\)='`
7444      ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7445      ac_shift=:
7446      ;;
7447 +  --*=)
7448 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7449 +    ac_optarg=
7450 +    ac_shift=:
7451 +    ;;
7452    *)
7453      ac_option=$1
7454      ac_optarg=$2
# Line 11434 | Line 7470 | do
7470      $ac_shift
7471      case $ac_optarg in
7472      *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7473 +    '') as_fn_error $? "missing file argument" ;;
7474      esac
7475      as_fn_append CONFIG_FILES " '$ac_optarg'"
7476      ac_need_defaults=false;;
# Line 11446 | Line 7483 | do
7483      ac_need_defaults=false;;
7484    --he | --h)
7485      # Conflict between --help and --header
7486 <    as_fn_error "ambiguous option: \`$1'
7486 >    as_fn_error $? "ambiguous option: \`$1'
7487   Try \`$0 --help' for more information.";;
7488    --help | --hel | -h )
7489      $as_echo "$ac_cs_usage"; exit ;;
# Line 11455 | Line 7492 | Try \`$0 --help' for more information.";;
7492      ac_cs_silent=: ;;
7493  
7494    # This is an error.
7495 <  -*) as_fn_error "unrecognized option: \`$1'
7495 >  -*) as_fn_error $? "unrecognized option: \`$1'
7496   Try \`$0 --help' for more information." ;;
7497  
7498    *) as_fn_append ac_config_targets " $1"
# Line 11512 | Line 7549 | do
7549      "src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;;
7550      "scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
7551  
7552 <  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7552 >  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7553    esac
7554   done
7555  
# Line 11534 | Line 7571 | $debug ||
7571   # after its creation but before its name has been assigned to `$tmp'.
7572   $debug ||
7573   {
7574 <  tmp=
7574 >  tmp= ac_tmp=
7575    trap 'exit_status=$?
7576 <  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7576 >  : "${ac_tmp:=$tmp}"
7577 >  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7578   ' 0
7579    trap 'as_fn_exit 1' 1 2 13 15
7580   }
# Line 11544 | Line 7582 | $debug ||
7582  
7583   {
7584    tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7585 <  test -n "$tmp" && test -d "$tmp"
7585 >  test -d "$tmp"
7586   }  ||
7587   {
7588    tmp=./conf$$-$RANDOM
7589    (umask 077 && mkdir "$tmp")
7590 < } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7590 > } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7591 > ac_tmp=$tmp
7592  
7593   # Set up the scripts for CONFIG_FILES section.
7594   # No need to generate them if there are no CONFIG_FILES.
# Line 11566 | Line 7605 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7605   fi
7606   ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7607   if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7608 <  ac_cs_awk_cr='\r'
7608 >  ac_cs_awk_cr='\\r'
7609   else
7610    ac_cs_awk_cr=$ac_cr
7611   fi
7612  
7613 < echo 'BEGIN {' >"$tmp/subs1.awk" &&
7613 > echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7614   _ACEOF
7615  
7616  
# Line 11580 | Line 7619 | _ACEOF
7619    echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7620    echo "_ACEOF"
7621   } >conf$$subs.sh ||
7622 <  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7623 < ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7622 >  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7623 > ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7624   ac_delim='%!_!# '
7625   for ac_last_try in false false false false false :; do
7626    . ./conf$$subs.sh ||
7627 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7627 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7628  
7629    ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7630    if test $ac_delim_n = $ac_delim_num; then
7631      break
7632    elif $ac_last_try; then
7633 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7633 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7634    else
7635      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7636    fi
# Line 11599 | Line 7638 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7638   rm -f conf$$subs.sh
7639  
7640   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7641 < cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7641 > cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7642   _ACEOF
7643   sed -n '
7644   h
# Line 11647 | Line 7686 | _ACAWK
7686   rm -f conf$$subs.awk
7687   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7688   _ACAWK
7689 < cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7689 > cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7690    for (key in S) S_is_set[key] = 1
7691    FS = ""
7692  
# Line 11679 | Line 7718 | else
7718    sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7719   else
7720    cat
7721 < fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7722 <  || as_fn_error "could not setup config files machinery" "$LINENO" 5
7721 > fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7722 >  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7723   _ACEOF
7724  
7725 < # VPATH may cause trouble with some makes, so we remove $(srcdir),
7726 < # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7725 > # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7726 > # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7727   # trailing colons and then remove the whole line if VPATH becomes empty
7728   # (actually we leave an empty line to preserve line numbers).
7729   if test "x$srcdir" = x.; then
7730 <  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7731 < s/:*\$(srcdir):*/:/
7732 < s/:*\${srcdir}:*/:/
7733 < s/:*@srcdir@:*/:/
7734 < s/^\([^=]*=[     ]*\):*/\1/
7730 >  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
7731 > h
7732 > s///
7733 > s/^/:/
7734 > s/[      ]*$/:/
7735 > s/:\$(srcdir):/:/g
7736 > s/:\${srcdir}:/:/g
7737 > s/:@srcdir@:/:/g
7738 > s/^:*//
7739   s/:*$//
7740 + x
7741 + s/\(=[   ]*\).*/\1/
7742 + G
7743 + s/\n//
7744   s/^[^=]*=[       ]*$//
7745   }'
7746   fi
# Line 11705 | Line 7752 | if test -n "$CONFIG_HEADERS"; then
7752   # No need to generate them if there are no CONFIG_HEADERS.
7753   # This happens for instance with `./config.status Makefile'.
7754   if test -n "$CONFIG_HEADERS"; then
7755 < cat >"$tmp/defines.awk" <<\_ACAWK ||
7755 > cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7756   BEGIN {
7757   _ACEOF
7758  
# Line 11717 | Line 7764 | for ac_last_try in false false :; do
7764   # handling of long lines.
7765   ac_delim='%!_!# '
7766   for ac_last_try in false false :; do
7767 <  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7768 <  if test -z "$ac_t"; then
7767 >  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7768 >  if test -z "$ac_tt"; then
7769      break
7770    elif $ac_last_try; then
7771 <    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7771 >    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7772    else
7773      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7774    fi
# Line 11806 | Line 7853 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7853   _ACAWK
7854   _ACEOF
7855   cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7856 <  as_fn_error "could not setup config headers machinery" "$LINENO" 5
7856 >  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7857   fi # test -n "$CONFIG_HEADERS"
7858  
7859  
# Line 11819 | Line 7866 | do
7866    esac
7867    case $ac_mode$ac_tag in
7868    :[FHL]*:*);;
7869 <  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7869 >  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7870    :[FH]-) ac_tag=-:-;;
7871    :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7872    esac
# Line 11838 | Line 7885 | do
7885      for ac_f
7886      do
7887        case $ac_f in
7888 <      -) ac_f="$tmp/stdin";;
7888 >      -) ac_f="$ac_tmp/stdin";;
7889        *) # Look for the file first in the build tree, then in the source tree
7890           # (if the path is not absolute).  The absolute path cannot be DOS-style,
7891           # because $ac_f cannot contain `:'.
# Line 11847 | Line 7894 | do
7894             [\\/$]*) false;;
7895             *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7896             esac ||
7897 <           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7897 >           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7898        esac
7899        case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7900        as_fn_append ac_file_inputs " '$ac_f'"
# Line 11873 | Line 7920 | $as_echo "$as_me: creating $ac_file" >&6;}
7920      esac
7921  
7922      case $ac_tag in
7923 <    *:-:* | *:-) cat >"$tmp/stdin" \
7924 <      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7923 >    *:-:* | *:-) cat >"$ac_tmp/stdin" \
7924 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7925      esac
7926      ;;
7927    esac
# Line 12004 | Line 8051 | $ac_datarootdir_hack
8051   s&@INSTALL@&$ac_INSTALL&;t t
8052   $ac_datarootdir_hack
8053   "
8054 < eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8055 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
8054 > eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8055 >  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8056  
8057   test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8058 <  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8059 <  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8058 >  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8059 >  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
8060 >      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8061    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8062 < which seems to be undefined.  Please make sure it is defined." >&5
8062 > which seems to be undefined.  Please make sure it is defined" >&5
8063   $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8064 < which seems to be undefined.  Please make sure it is defined." >&2;}
8064 > which seems to be undefined.  Please make sure it is defined" >&2;}
8065  
8066 <  rm -f "$tmp/stdin"
8066 >  rm -f "$ac_tmp/stdin"
8067    case $ac_file in
8068 <  -) cat "$tmp/out" && rm -f "$tmp/out";;
8069 <  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8068 >  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8069 >  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8070    esac \
8071 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
8071 >  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8072   ;;
8073    :H)
8074    #
# Line 12029 | Line 8077 | which seems to be undefined.  Please make sure it is d
8077    if test x"$ac_file" != x-; then
8078      {
8079        $as_echo "/* $configure_input  */" \
8080 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8081 <    } >"$tmp/config.h" \
8082 <      || as_fn_error "could not create $ac_file" "$LINENO" 5
8083 <    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8080 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8081 >    } >"$ac_tmp/config.h" \
8082 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8083 >    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8084        { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8085   $as_echo "$as_me: $ac_file is unchanged" >&6;}
8086      else
8087        rm -f "$ac_file"
8088 <      mv "$tmp/config.h" "$ac_file" \
8089 <        || as_fn_error "could not create $ac_file" "$LINENO" 5
8088 >      mv "$ac_tmp/config.h" "$ac_file" \
8089 >        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8090      fi
8091    else
8092      $as_echo "/* $configure_input  */" \
8093 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8094 <      || as_fn_error "could not create -" "$LINENO" 5
8093 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8094 >      || as_fn_error $? "could not create -" "$LINENO" 5
8095    fi
8096   ;;
8097  
# Line 12068 | Line 8116 | test $ac_write_fail = 0 ||
8116   ac_clean_files=$ac_clean_files_save
8117  
8118   test $ac_write_fail = 0 ||
8119 <  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8119 >  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8120  
8121  
8122   # configure is writing to config.log, and then calls config.status.
# Line 12089 | Line 8137 | if test "$no_create" != yes; then
8137    exec 5>>config.log
8138    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8139    # would make configure fail if this is the last instruction.
8140 <  $ac_cs_success || as_fn_exit $?
8140 >  $ac_cs_success || as_fn_exit 1
8141   fi
8142   if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8143    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines