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 1188 by chuckv, Thu Nov 22 16:39:45 2007 UTC vs.
Revision 1300 by gezelter, Mon Sep 29 13:54:18 2008 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by GNU Autoconf 2.61 for OOPSE 3.0.
3 > # Generated by GNU Autoconf 2.62 for OOPSE 4.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7   # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 < # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 > # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9   # This configure script is free software; the Free Software Foundation
10   # gives unlimited permission to copy, distribute and modify it.
11   ## --------------------- ##
# Line 17 | Line 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/
17   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18    emulate sh
19    NULLCMD=:
20 <  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 >  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21    # is contrary to our usage.  Disable this feature.
22    alias -g '${1+"$@"}'='"$@"'
23    setopt NO_GLOB_SUBST
# Line 39 | Line 39 | as_cr_alnum=$as_cr_Letters$as_cr_digits
39   as_cr_digits='0123456789'
40   as_cr_alnum=$as_cr_Letters$as_cr_digits
41  
42 < # The user is always right.
43 < if test "${PATH_SEPARATOR+set}" != set; then
44 <  echo "#! /bin/sh" >conf$$.sh
45 <  echo  "exit 0"   >>conf$$.sh
46 <  chmod +x conf$$.sh
47 <  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 <    PATH_SEPARATOR=';'
42 > as_nl='
43 > '
44 > export as_nl
45 > # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 > as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 > as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 > as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 > if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 >  as_echo='printf %s\n'
51 >  as_echo_n='printf %s'
52 > else
53 >  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 >    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 >    as_echo_n='/usr/ucb/echo -n'
56    else
57 <    PATH_SEPARATOR=:
57 >    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 >    as_echo_n_body='eval
59 >      arg=$1;
60 >      case $arg in
61 >      *"$as_nl"*)
62 >        expr "X$arg" : "X\\(.*\\)$as_nl";
63 >        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 >      esac;
65 >      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 >    '
67 >    export as_echo_n_body
68 >    as_echo_n='sh -c $as_echo_n_body as_echo'
69    fi
70 <  rm -rf conf$$.sh
70 >  export as_echo_body
71 >  as_echo='sh -c $as_echo_body as_echo'
72   fi
73  
74 + # The user is always right.
75 + if test "${PATH_SEPARATOR+set}" != set; then
76 +  PATH_SEPARATOR=:
77 +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 +      PATH_SEPARATOR=';'
80 +  }
81 + fi
82 +
83   # Support unset when possible.
84   if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85    as_unset=unset
# Line 65 | Line 93 | fi
93   # there to prevent editors from complaining about space-tab.
94   # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95   # splitting by setting IFS to empty value.)
68 as_nl='
69 '
96   IFS=" ""        $as_nl"
97  
98   # Find who we are.  Look in the path if we contain no directory separator.
# Line 89 | Line 115 | if test ! -f "$as_myself"; then
115    as_myself=$0
116   fi
117   if test ! -f "$as_myself"; then
118 <  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 >  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119    { (exit 1); exit 1; }
120   fi
121  
# Line 102 | Line 128 | PS4='+ '
128   PS4='+ '
129  
130   # NLS nuisances.
131 < for as_var in \
132 <  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
133 <  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
134 <  LC_TELEPHONE LC_TIME
109 < do
110 <  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 <    eval $as_var=C; export $as_var
112 <  else
113 <    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 <  fi
115 < done
131 > LC_ALL=C
132 > export LC_ALL
133 > LANGUAGE=C
134 > export LANGUAGE
135  
136   # Required to use basename.
137   if expr a : '\(a\)' >/dev/null 2>&1 &&
# Line 134 | Line 153 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
153   $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154           X"$0" : 'X\(//\)$' \| \
155           X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 < echo X/"$0" |
156 > $as_echo X/"$0" |
157      sed '/^.*\/\([^/][^/]*\)\/*$/{
158              s//\1/
159              q
# Line 160 | Line 179 | fi
179    as_have_required=no
180   fi
181  
182 <  if test $as_have_required = yes &&     (eval ":
182 >  if test $as_have_required = yes &&     (eval ":
183   (as_func_return () {
184    (exit \$1)
185   }
# Line 242 | Line 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/
261   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262    emulate sh
263    NULLCMD=:
264 <  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 >  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265    # is contrary to our usage.  Disable this feature.
266    alias -g '${1+"$@"}'='"$@"'
267    setopt NO_GLOB_SUBST
# Line 263 | Line 282 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/
282   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283    emulate sh
284    NULLCMD=:
285 <  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
285 >  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286    # is contrary to our usage.  Disable this feature.
287    alias -g '${1+"$@"}'='"$@"'
288    setopt NO_GLOB_SUBST
# Line 343 | Line 362 | fi
362  
363        if test "x$CONFIG_SHELL" != x; then
364    for as_var in BASH_ENV ENV
365 <        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 <        done
367 <        export CONFIG_SHELL
368 <        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
365 >        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 >        done
367 >        export CONFIG_SHELL
368 >        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369   fi
370  
371  
# Line 415 | Line 434 | test \$exitcode = 0") || {
434  
435   test \$exitcode = 0") || {
436    echo No shell found that supports shell functions.
437 <  echo Please tell autoconf@gnu.org about your system,
438 <  echo including any error possibly output before this
439 <  echo message
437 >  echo Please tell bug-autoconf@gnu.org about your system,
438 >  echo including any error possibly output before this message.
439 >  echo This can help us improve future autoconf versions.
440 >  echo Configuration will now proceed without shell functions.
441   }
442  
443  
# Line 453 | Line 473 | test \$exitcode = 0") || {
473        s/-\n.*//
474      ' >$as_me.lineno &&
475    chmod +x "$as_me.lineno" ||
476 <    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
476 >    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477     { (exit 1); exit 1; }; }
478  
479    # Don't try to exec as it changes $[0], causing all sort of problems
# Line 481 | Line 501 | esac
501   *)
502    ECHO_N='-n';;
503   esac
484
504   if expr a : '\(a\)' >/dev/null 2>&1 &&
505     test "X`expr 00001 : '.*\(...\)'`" = X001; then
506    as_expr=expr
# Line 489 | Line 508 | fi
508    as_expr=false
509   fi
510  
511 < rm -rf conf$$ conf$$.exe conf$$.file
511 > rm -f conf$$ conf$$.exe conf$$.file
512   if test -d conf$$.dir; then
513 <  rm -rf conf$$.dir/conf$$.file
513 >  rm -f conf$$.dir/conf$$.file
514   else
515 <  rm -rf conf$$.dir
516 <  mkdir conf$$.dir
515 >  rm -f conf$$.dir
516 >  mkdir conf$$.dir 2>/dev/null
517   fi
518 < echo >conf$$.file
519 < if ln -s conf$$.file conf$$ 2>/dev/null; then
520 <  as_ln_s='ln -s'
521 <  # ... but there are two gotchas:
522 <  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 <  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 <  # In both cases, we have to default to `cp -p'.
525 <  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
518 > if (echo >conf$$.file) 2>/dev/null; then
519 >  if ln -s conf$$.file conf$$ 2>/dev/null; then
520 >    as_ln_s='ln -s'
521 >    # ... but there are two gotchas:
522 >    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 >    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 >    # In both cases, we have to default to `cp -p'.
525 >    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 >      as_ln_s='cp -p'
527 >  elif ln conf$$.file conf$$ 2>/dev/null; then
528 >    as_ln_s=ln
529 >  else
530      as_ln_s='cp -p'
531 < elif ln conf$$.file conf$$ 2>/dev/null; then
509 <  as_ln_s=ln
531 >  fi
532   else
533    as_ln_s='cp -p'
534   fi
535 < rm -rf conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
535 > rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536   rmdir conf$$.dir 2>/dev/null
537  
538   if mkdir -p . 2>/dev/null; then
# Line 531 | Line 553 | else
553    as_test_x='
554      eval sh -c '\''
555        if test -d "$1"; then
556 <        test -d "$1/.";
556 >        test -d "$1/.";
557        else
558          case $1 in
559 <        -*)set "./$1";;
559 >        -*)set "./$1";;
560          esac;
561          case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562          ???[sx]*):;;*)false;;esac;fi
# Line 574 | Line 596 | PACKAGE_TARNAME='oopse'
596   # Identity of this package.
597   PACKAGE_NAME='OOPSE'
598   PACKAGE_TARNAME='oopse'
599 < PACKAGE_VERSION='3.0'
600 < PACKAGE_STRING='OOPSE 3.0'
599 > PACKAGE_VERSION='4.0'
600 > PACKAGE_STRING='OOPSE 4.0'
601   PACKAGE_BUGREPORT='gezelter@nd.edu'
602  
603   ac_unique_file="src/applications/oopse/oopse.cpp"
# Line 664 | Line 686 | USE_SINGLE_PRECISION
686   PROGNAME
687   debug
688   USE_SINGLE_PRECISION
689 + ac_cc_set
690 + ac_cc_path
691 + ac_cxx_set
692 + ac_cxx_path
693 + ac_fc_set
694 + ac_fc_path
695 + acx_mpi_mpicc
696 + acx_mpi_mpicc_path
697 + acx_mpi_mpif90
698 + acx_mpi_mpif90_path
699 + acx_mpi_mpicxx
700 + acx_mpi_mpicxx_path
701 + MPI_CPPFLAGS
702 + MPI_LIBS
703 + MPI90_LIBS
704 + USE_MPI
705   CXX
706   CXXFLAGS
707   LDFLAGS
# Line 707 | Line 745 | FFTW_LIBS
745   FFTW_INC_DIR
746   FFTW_LIB_DIR
747   FFTW_LIBS
748 + QHULL_INC_DIR
749 + QHULL_LIB_DIR
750 + QHULL
751 + USE_QHULL
752 + CXXCPP
753 + OPENBABEL_INC_DIR
754 + OPENBABEL_LIB_DIR
755 + OPENBABEL_LIB
756 + USE_OPENBABEL
757   LIBOBJS
758   POW_LIB
759 < CXXCPP
760 < __func__
761 < MPI_LIB_DIR
762 < MPI_INC_DIR
763 < MPI_F90_INC
764 < MPI_LIB
718 < MPI_F90_LIB
719 < USE_MPI
759 > CGAL_MAKEFILE
760 > CGAL_CXXFLAGS
761 > CGAL_CPPFLAGS
762 > CGAL_LDFLAGS
763 > CGAL_LIBS
764 > USE_CGAL
765   DOXYGEN
766   DOT
767   DOC
# Line 730 | Line 775 | ac_subst_files=''
775   SUBDIRS
776   LTLIBOBJS'
777   ac_subst_files=''
778 + ac_user_opts='
779 + enable_option_checking
780 + enable_oopse_home
781 + enable_debug
782 + enable_single
783 + enable_float
784 + with_mpi
785 + with_perl_shebang
786 + with_zlib
787 + with_fftw
788 + with_qhull
789 + with_openbabel
790 + with_cgalmakefile
791 + enable_doxygen
792 + enable_dot
793 + enable_html_docs
794 + enable_latex_docs
795 + '
796        ac_precious_vars='build_alias
797   host_alias
798   target_alias
# Line 750 | Line 813 | ac_init_version=false
813   # Initialize some variables set by options.
814   ac_init_help=
815   ac_init_version=false
816 + ac_unrecognized_opts=
817 + ac_unrecognized_sep=
818   # The variables have the same names as the options, with
819   # dashes changed to underlines.
820   cache_file=/dev/null
# Line 848 | Line 913 | do
913      datarootdir=$ac_optarg ;;
914  
915    -disable-* | --disable-*)
916 <    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 >    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917      # Reject names that are not valid shell variable names.
918 <    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
919 <      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
918 >    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 >      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
920     { (exit 1); exit 1; }; }
921 <    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
922 <    eval enable_$ac_feature=no ;;
921 >    ac_useropt_orig=$ac_useropt
922 >    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 >    case $ac_user_opts in
924 >      *"
925 > "enable_$ac_useropt"
926 > "*) ;;
927 >      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 >         ac_unrecognized_sep=', ';;
929 >    esac
930 >    eval enable_$ac_useropt=no ;;
931  
932    -docdir | --docdir | --docdi | --doc | --do)
933      ac_prev=docdir ;;
# Line 867 | Line 940 | do
940      dvidir=$ac_optarg ;;
941  
942    -enable-* | --enable-*)
943 <    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 >    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944      # Reject names that are not valid shell variable names.
945 <    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
946 <      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 >    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 >      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
947     { (exit 1); exit 1; }; }
948 <    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
949 <    eval enable_$ac_feature=\$ac_optarg ;;
948 >    ac_useropt_orig=$ac_useropt
949 >    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 >    case $ac_user_opts in
951 >      *"
952 > "enable_$ac_useropt"
953 > "*) ;;
954 >      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 >         ac_unrecognized_sep=', ';;
956 >    esac
957 >    eval enable_$ac_useropt=\$ac_optarg ;;
958  
959    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
# Line 1064 | Line 1145 | do
1145      ac_init_version=: ;;
1146  
1147    -with-* | --with-*)
1148 <    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 >    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149      # Reject names that are not valid shell variable names.
1150 <    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 <      { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 >    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 >      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1152     { (exit 1); exit 1; }; }
1153 <    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1154 <    eval with_$ac_package=\$ac_optarg ;;
1153 >    ac_useropt_orig=$ac_useropt
1154 >    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 >    case $ac_user_opts in
1156 >      *"
1157 > "with_$ac_useropt"
1158 > "*) ;;
1159 >      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 >         ac_unrecognized_sep=', ';;
1161 >    esac
1162 >    eval with_$ac_useropt=\$ac_optarg ;;
1163  
1164    -without-* | --without-*)
1165 <    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 >    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166      # Reject names that are not valid shell variable names.
1167 <    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 <      { echo "$as_me: error: invalid package name: $ac_package" >&2
1167 >    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 >      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1169     { (exit 1); exit 1; }; }
1170 <    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1171 <    eval with_$ac_package=no ;;
1170 >    ac_useropt_orig=$ac_useropt
1171 >    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 >    case $ac_user_opts in
1173 >      *"
1174 > "with_$ac_useropt"
1175 > "*) ;;
1176 >      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 >         ac_unrecognized_sep=', ';;
1178 >    esac
1179 >    eval with_$ac_useropt=no ;;
1180  
1181    --x)
1182      # Obsolete; use --with-x.
# Line 1099 | Line 1196 | do
1196    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197      x_libraries=$ac_optarg ;;
1198  
1199 <  -*) { echo "$as_me: error: unrecognized option: $ac_option
1199 >  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1200   Try \`$0 --help' for more information." >&2
1201     { (exit 1); exit 1; }; }
1202      ;;
# Line 1108 | Line 1205 | Try \`$0 --help' for more information." >&2
1205      ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206      # Reject names that are not valid shell variable names.
1207      expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1208 <      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1208 >      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1209     { (exit 1); exit 1; }; }
1210      eval $ac_envvar=\$ac_optarg
1211      export $ac_envvar ;;
1212  
1213    *)
1214      # FIXME: should be removed in autoconf 3.0.
1215 <    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 >    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 <      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 >      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1219      ;;
1220  
# Line 1126 | Line 1223 | if test -n "$ac_prev"; then
1223  
1224   if test -n "$ac_prev"; then
1225    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 <  { echo "$as_me: error: missing argument to $ac_option" >&2
1226 >  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1227     { (exit 1); exit 1; }; }
1228   fi
1229  
1230 < # Be sure to have absolute directory names.
1230 > if test -n "$ac_unrecognized_opts"; then
1231 >  case $enable_option_checking in
1232 >    no) ;;
1233 >    fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1234 >   { (exit 1); exit 1; }; } ;;
1235 >    *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 >  esac
1237 > fi
1238 >
1239 > # Check all directory arguments for consistency.
1240   for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241                  datadir sysconfdir sharedstatedir localstatedir includedir \
1242                  oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243                  libdir localedir mandir
1244   do
1245    eval ac_val=\$$ac_var
1246 +  # Remove trailing slashes.
1247    case $ac_val in
1248 +    */ )
1249 +      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 +      eval $ac_var=\$ac_val;;
1251 +  esac
1252 +  # Be sure to have absolute directory names.
1253 +  case $ac_val in
1254      [\\/$]* | ?:[\\/]* )  continue;;
1255      NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256    esac
1257 <  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1257 >  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1258     { (exit 1); exit 1; }; }
1259   done
1260  
# Line 1156 | Line 1269 | if test "x$host_alias" != x; then
1269   if test "x$host_alias" != x; then
1270    if test "x$build_alias" = x; then
1271      cross_compiling=maybe
1272 <    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1272 >    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1273      If a cross compiler is detected then cross compile mode will be used." >&2
1274    elif test "x$build_alias" != "x$host_alias"; then
1275      cross_compiling=yes
# Line 1172 | Line 1285 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285   ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286   ac_ls_di=`ls -di .` &&
1287   ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 <  { echo "$as_me: error: Working directory cannot be determined" >&2
1288 >  { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1289     { (exit 1); exit 1; }; }
1290   test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 <  { echo "$as_me: error: pwd does not report name of working directory" >&2
1291 >  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1292     { (exit 1); exit 1; }; }
1293  
1294  
# Line 1183 | Line 1296 | if test -z "$srcdir"; then
1296   if test -z "$srcdir"; then
1297    ac_srcdir_defaulted=yes
1298    # Try the directory containing this script, then the parent directory.
1299 <  ac_confdir=`$as_dirname -- "$0" ||
1300 < $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 <         X"$0" : 'X\(//\)[^/]' \| \
1302 <         X"$0" : 'X\(//\)$' \| \
1303 <         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1304 < echo X"$0" |
1299 >  ac_confdir=`$as_dirname -- "$as_myself" ||
1300 > $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 >         X"$as_myself" : 'X\(//\)[^/]' \| \
1302 >         X"$as_myself" : 'X\(//\)$' \| \
1303 >         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 > $as_echo X"$as_myself" |
1305      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306              s//\1/
1307              q
# Line 1215 | Line 1328 | if test ! -r "$srcdir/$ac_unique_file"; then
1328   fi
1329   if test ! -r "$srcdir/$ac_unique_file"; then
1330    test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 <  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1331 >  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1332     { (exit 1); exit 1; }; }
1333   fi
1334   ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1335   ac_abs_confdir=`(
1336 <        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1336 >        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1337     { (exit 1); exit 1; }; }
1338          pwd)`
1339   # When building in place, set srcdir=.
# Line 1247 | Line 1360 | if test "$ac_init_help" = "long"; then
1360    # Omit some internal or obsolete options to make the list less imposing.
1361    # This message is too long to be a string in the A/UX 3.1 sh.
1362    cat <<_ACEOF
1363 < \`configure' configures OOPSE 3.0 to adapt to many kinds of systems.
1363 > \`configure' configures OOPSE 4.0 to adapt to many kinds of systems.
1364  
1365   Usage: $0 [OPTION]... [VAR=VALUE]...
1366  
# Line 1269 | Line 1382 | Installation directories:
1382  
1383   Installation directories:
1384    --prefix=PREFIX         install architecture-independent files in PREFIX
1385 <                          [$ac_default_prefix]
1385 >                          [$ac_default_prefix]
1386    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1387 <                          [PREFIX]
1387 >                          [PREFIX]
1388  
1389   By default, \`make install' will install all the files in
1390   \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
# Line 1281 | Line 1394 | Fine tuning of the installation directories:
1394   For better control, use the options below.
1395  
1396   Fine tuning of the installation directories:
1397 <  --bindir=DIR           user executables [EPREFIX/bin]
1398 <  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1399 <  --libexecdir=DIR       program executables [EPREFIX/libexec]
1400 <  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1401 <  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1402 <  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1403 <  --libdir=DIR           object code libraries [EPREFIX/lib]
1404 <  --includedir=DIR       C header files [PREFIX/include]
1405 <  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1406 <  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1407 <  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1408 <  --infodir=DIR          info documentation [DATAROOTDIR/info]
1409 <  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1410 <  --mandir=DIR           man documentation [DATAROOTDIR/man]
1411 <  --docdir=DIR           documentation root [DATAROOTDIR/doc/oopse]
1412 <  --htmldir=DIR          html documentation [DOCDIR]
1413 <  --dvidir=DIR           dvi documentation [DOCDIR]
1414 <  --pdfdir=DIR           pdf documentation [DOCDIR]
1415 <  --psdir=DIR            ps documentation [DOCDIR]
1397 >  --bindir=DIR            user executables [EPREFIX/bin]
1398 >  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1399 >  --libexecdir=DIR        program executables [EPREFIX/libexec]
1400 >  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1401 >  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1402 >  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1403 >  --libdir=DIR            object code libraries [EPREFIX/lib]
1404 >  --includedir=DIR        C header files [PREFIX/include]
1405 >  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1406 >  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1407 >  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1408 >  --infodir=DIR           info documentation [DATAROOTDIR/info]
1409 >  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1410 >  --mandir=DIR            man documentation [DATAROOTDIR/man]
1411 >  --docdir=DIR            documentation root [DATAROOTDIR/doc/oopse]
1412 >  --htmldir=DIR           html documentation [DOCDIR]
1413 >  --dvidir=DIR            dvi documentation [DOCDIR]
1414 >  --pdfdir=DIR            pdf documentation [DOCDIR]
1415 >  --psdir=DIR             ps documentation [DOCDIR]
1416   _ACEOF
1417  
1418    cat <<\_ACEOF
# Line 1312 | Line 1425 | if test -n "$ac_init_help"; then
1425  
1426   if test -n "$ac_init_help"; then
1427    case $ac_init_help in
1428 <     short | recursive ) echo "Configuration of OOPSE 3.0:";;
1428 >     short | recursive ) echo "Configuration of OOPSE 4.0:";;
1429     esac
1430    cat <<\_ACEOF
1431  
1432   Optional Features:
1433 +  --disable-option-checking  ignore unrecognized --enable/--with options
1434    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1435    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1436    --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse
# Line 1331 | Line 1445 | Optional Packages:
1445   Optional Packages:
1446    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1447    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1448 +  --with-mpi=auto|mpich|lam|openmpi|no
1449 +                          Indicates which kind of MPI implementation to use
1450 +                          [default=auto]
1451    --with-perl-shebang     override what perl thinks is the way for the kernel
1452                            to start it (seldom needed)
1453    --with-zlib=DIR         root directory path of zlib installation (defaults
1454                            to /usr/local or /usr if not found in /usr/local)
1455    --with-fftw=DIR         root directory path of fftw installation (defaults
1456                            to /usr/local or /usr if not found in /usr/local)
1457 <  --with-mpi=<prefix>     compile with MPI installed in <prefix> [default=no]
1457 >  --with-qhull=DIR        root directory path of qhull installation (defaults
1458 >                          to /usr/local or /usr if not found in /usr/local)
1459 >  --with-openbabel=DIR    root directory path of openbabel-2.x installation
1460 >                          (defaults to /usr/local or /usr if not found in
1461 >                          /usr/local)
1462 >  --with-cgalmakefile=makefile
1463 >                          Use the following CGAL makefile
1464  
1465   Some influential environment variables:
1466    CXX         C++ compiler command
# Line 1365 | Line 1488 | if test "$ac_init_help" = "recursive"; then
1488   if test "$ac_init_help" = "recursive"; then
1489    # If there are subdirs, report their specific --help.
1490    for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 <    test -d "$ac_dir" || continue
1491 >    test -d "$ac_dir" ||
1492 >      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493 >      continue
1494      ac_builddir=.
1495  
1496   case "$ac_dir" in
1497   .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498   *)
1499 <  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1499 >  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500    # A ".." for each directory in $ac_dir_suffix.
1501 <  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1501 >  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502    case $ac_top_builddir_sub in
1503    "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504    *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
# Line 1409 | Line 1534 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534        echo &&
1535        $SHELL "$ac_srcdir/configure" --help=recursive
1536      else
1537 <      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537 >      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538      fi || ac_status=$?
1539      cd "$ac_pwd" || { ac_status=$?; break; }
1540    done
# Line 1418 | Line 1543 | if $ac_init_version; then
1543   test -n "$ac_init_help" && exit $ac_status
1544   if $ac_init_version; then
1545    cat <<\_ACEOF
1546 < OOPSE configure 3.0
1547 < generated by GNU Autoconf 2.61
1546 > OOPSE configure 4.0
1547 > generated by GNU Autoconf 2.62
1548  
1549   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1550 < 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1550 > 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1551   This configure script is free software; the Free Software Foundation
1552   gives unlimited permission to copy, distribute and modify it.
1553   _ACEOF
# Line 1432 | Line 1557 | running configure, to aid debugging if configure makes
1557   This file contains any messages produced by compilers while
1558   running configure, to aid debugging if configure makes a mistake.
1559  
1560 < It was created by OOPSE $as_me 3.0, which was
1561 < generated by GNU Autoconf 2.61.  Invocation command line was
1560 > It was created by OOPSE $as_me 4.0, which was
1561 > generated by GNU Autoconf 2.62.  Invocation command line was
1562  
1563    $ $0 $@
1564  
# Line 1469 | Line 1594 | do
1594   do
1595    IFS=$as_save_IFS
1596    test -z "$as_dir" && as_dir=.
1597 <  echo "PATH: $as_dir"
1597 >  $as_echo "PATH: $as_dir"
1598   done
1599   IFS=$as_save_IFS
1600  
# Line 1504 | Line 1629 | do
1629      | -silent | --silent | --silen | --sile | --sil)
1630        continue ;;
1631      *\'*)
1632 <      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1632 >      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1633      esac
1634      case $ac_pass in
1635      1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
# Line 1556 | Line 1681 | _ASBOX
1681      case $ac_val in #(
1682      *${as_nl}*)
1683        case $ac_var in #(
1684 <      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1685 < echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1684 >      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1685 > $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1686        esac
1687        case $ac_var in #(
1688        _ | IFS | as_nl) ;; #(
1689 +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1690        *) $as_unset $ac_var ;;
1691        esac ;;
1692      esac
# Line 1590 | Line 1716 | _ASBOX
1716      do
1717        eval ac_val=\$$ac_var
1718        case $ac_val in
1719 <      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1719 >      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1720        esac
1721 <      echo "$ac_var='\''$ac_val'\''"
1721 >      $as_echo "$ac_var='\''$ac_val'\''"
1722      done | sort
1723      echo
1724  
# Line 1607 | Line 1733 | _ASBOX
1733        do
1734          eval ac_val=\$$ac_var
1735          case $ac_val in
1736 <        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1736 >        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737          esac
1738 <        echo "$ac_var='\''$ac_val'\''"
1738 >        $as_echo "$ac_var='\''$ac_val'\''"
1739        done | sort
1740        echo
1741      fi
# Line 1625 | Line 1751 | _ASBOX
1751        echo
1752      fi
1753      test "$ac_signal" != 0 &&
1754 <      echo "$as_me: caught signal $ac_signal"
1755 <    echo "$as_me: exit $exit_status"
1754 >      $as_echo "$as_me: caught signal $ac_signal"
1755 >    $as_echo "$as_me: exit $exit_status"
1756    } >&5
1757 <  rm -rf core *.core core.conftest.* &&
1757 >  rm -f core *.core core.conftest.* &&
1758      rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1759      exit $exit_status
1760   ' 0
# Line 1668 | Line 1794 | _ACEOF
1794  
1795  
1796   # Let the site file select an alternate cache file if it wants to.
1797 < # Prefer explicitly selected file to automatically selected ones.
1797 > # Prefer an explicitly selected file to automatically selected ones.
1798 > ac_site_file1=NONE
1799 > ac_site_file2=NONE
1800   if test -n "$CONFIG_SITE"; then
1801 <  set x "$CONFIG_SITE"
1801 >  ac_site_file1=$CONFIG_SITE
1802   elif test "x$prefix" != xNONE; then
1803 <  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1803 >  ac_site_file1=$prefix/share/config.site
1804 >  ac_site_file2=$prefix/etc/config.site
1805   else
1806 <  set x "$ac_default_prefix/share/config.site" \
1807 <        "$ac_default_prefix/etc/config.site"
1806 >  ac_site_file1=$ac_default_prefix/share/config.site
1807 >  ac_site_file2=$ac_default_prefix/etc/config.site
1808   fi
1809 < shift
1681 < for ac_site_file
1809 > for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1810   do
1811 +  test "x$ac_site_file" = xNONE && continue
1812    if test -r "$ac_site_file"; then
1813 <    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1814 < echo "$as_me: loading site script $ac_site_file" >&6;}
1813 >    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1814 > $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1815      sed 's/^/| /' "$ac_site_file" >&5
1816      . "$ac_site_file"
1817    fi
# Line 1692 | Line 1821 | if test -r "$cache_file"; then
1821    # Some versions of bash will fail to source /dev/null (special
1822    # files actually), so we avoid doing that.
1823    if test -f "$cache_file"; then
1824 <    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1825 < echo "$as_me: loading cache $cache_file" >&6;}
1824 >    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1825 > $as_echo "$as_me: loading cache $cache_file" >&6;}
1826      case $cache_file in
1827        [\\/]* | ?:[\\/]* ) . "$cache_file";;
1828        *)                      . "./$cache_file";;
1829      esac
1830    fi
1831   else
1832 <  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1833 < echo "$as_me: creating cache $cache_file" >&6;}
1832 >  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1833 > $as_echo "$as_me: creating cache $cache_file" >&6;}
1834    >$cache_file
1835   fi
1836  
# Line 1715 | Line 1844 | for ac_var in $ac_precious_vars; do
1844    eval ac_new_val=\$ac_env_${ac_var}_value
1845    case $ac_old_set,$ac_new_set in
1846      set,)
1847 <      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1848 < echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1847 >      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1848 > $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1849        ac_cache_corrupted=: ;;
1850      ,set)
1851 <      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1852 < echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1851 >      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1852 > $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1853        ac_cache_corrupted=: ;;
1854      ,);;
1855      *)
1856        if test "x$ac_old_val" != "x$ac_new_val"; then
1857 <        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1858 < echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1859 <        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1860 < echo "$as_me:   former value:  $ac_old_val" >&2;}
1861 <        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1862 < echo "$as_me:   current value: $ac_new_val" >&2;}
1863 <        ac_cache_corrupted=:
1857 >        # differences in whitespace do not lead to failure.
1858 >        ac_old_val_w=`echo x $ac_old_val`
1859 >        ac_new_val_w=`echo x $ac_new_val`
1860 >        if test "$ac_old_val_w" != "$ac_new_val_w"; then
1861 >          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1862 > $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1863 >          ac_cache_corrupted=:
1864 >        else
1865 >          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1866 > $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1867 >          eval $ac_var=\$ac_old_val
1868 >        fi
1869 >        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1870 > $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1871 >        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1872 > $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1873        fi;;
1874    esac
1875    # Pass precious variables to config.status.
1876    if test "$ac_new_set" = set; then
1877      case $ac_new_val in
1878 <    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 >    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1879      *) ac_arg=$ac_var=$ac_new_val ;;
1880      esac
1881      case " $ac_configure_args " in
# Line 1747 | Line 1885 | if $ac_cache_corrupted; then
1885    fi
1886   done
1887   if $ac_cache_corrupted; then
1888 <  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1889 < echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1890 <  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1891 < echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888 >  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1889 > $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1890 >  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1891 > $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1892     { (exit 1); exit 1; }; }
1893   fi
1894  
# Line 1802 | Line 1940 | if test -z "$ac_aux_dir"; then
1940    fi
1941   done
1942   if test -z "$ac_aux_dir"; then
1943 <  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools \"$srcdir\"/ac-tools" >&5
1944 < echo "$as_me: error: cannot find install-sh or install.sh in ac-tools \"$srcdir\"/ac-tools" >&2;}
1943 >  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools \"$srcdir\"/ac-tools" >&5
1944 > $as_echo "$as_me: error: cannot find install-sh or install.sh in ac-tools \"$srcdir\"/ac-tools" >&2;}
1945     { (exit 1); exit 1; }; }
1946   fi
1947  
# Line 1871 | Line 2009 | ac_config_headers="$ac_config_headers src/config.h"
2009  
2010  
2011  
2012 +
2013 +
2014 +
2015 +
2016   # AC_F90_MODULE_NAMES
2017   # -------------------
2018   #
# Line 1964 | Line 2106 | ac_config_headers="$ac_config_headers src/config.h"
2106  
2107  
2108  
2109 + # ACX_MPI_GET_PROG
2110  
2111 + # ACX_DETECT_MPI_IMPLEMENTATION
2112 +
2113 +
2114 +
2115 +
2116 +
2117 + # ACX_MPI
2118 +
2119 +
2120 +
2121 +
2122 +
2123 +
2124 +
2125 +
2126 +
2127 +
2128 +
2129 +
2130 +
2131 +
2132 +
2133 +
2134 +
2135 +
2136 +
2137 +
2138 +
2139 +
2140 +
2141 +
2142 +
2143 +
2144 +
2145 + # This is taken from http://autoqt.sourceforge.net/
2146 + # Copyright (c) 2002, Geoffrey Wossum
2147 + # All rights reserved.
2148 +
2149 + # Redistribution and use in source and binary forms, with or without
2150 + # modification, are permitted provided that the following conditions are
2151 + # met:
2152 +
2153 + #  - Redistributions of source code must retain the above copyright notice,
2154 + #    this list of conditions and the following disclaimer.
2155 +
2156 + #  - Redistributions in binary form must reproduce the above copyright
2157 + #    notice, this list of conditions and the following disclaimer in the
2158 + #    documentation and/or other materials provided with the distribution.
2159 +
2160 + #  - Neither the name of Geoffrey Wossum nor the names of its
2161 + #    contributors may be used to endorse or promote products derived from
2162 + #    this software without specific prior written permission.
2163 +
2164 +
2165 + # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2166 + # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2167 + # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2168 + # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
2169 + # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
2170 + # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
2171 + # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
2172 + # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
2173 + # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
2174 + # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
2175 + # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2176 +
2177 +
2178 + # Check for Qt compiler flags, linker flags, and binary packages
2179 +
2180 +
2181 +
2182   # who am i
2183   # Make sure we can run config.sub.
2184   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2185 <  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2186 < echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2185 >  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2186 > $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2187     { (exit 1); exit 1; }; }
2188  
2189 < { echo "$as_me:$LINENO: checking build system type" >&5
2190 < echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2189 > { $as_echo "$as_me:$LINENO: checking build system type" >&5
2190 > $as_echo_n "checking build system type... " >&6; }
2191   if test "${ac_cv_build+set}" = set; then
2192 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2192 >  $as_echo_n "(cached) " >&6
2193   else
2194    ac_build_alias=$build_alias
2195   test "x$ac_build_alias" = x &&
2196    ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2197   test "x$ac_build_alias" = x &&
2198 <  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2199 < echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2198 >  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2199 > $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2200     { (exit 1); exit 1; }; }
2201   ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2202 <  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2203 < echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2202 >  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2203 > $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2204     { (exit 1); exit 1; }; }
2205  
2206   fi
2207 < { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2208 < echo "${ECHO_T}$ac_cv_build" >&6; }
2207 > { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2208 > $as_echo "$ac_cv_build" >&6; }
2209   case $ac_cv_build in
2210   *-*-*) ;;
2211 < *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2212 < echo "$as_me: error: invalid value of canonical build" >&2;}
2211 > *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2212 > $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2213     { (exit 1); exit 1; }; };;
2214   esac
2215   build=$ac_cv_build
# Line 2012 | Line 2226 | case $build_os in *\ *) build_os=`echo "$build_os" | s
2226   case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2227  
2228  
2229 < { echo "$as_me:$LINENO: checking host system type" >&5
2230 < echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2229 > { $as_echo "$as_me:$LINENO: checking host system type" >&5
2230 > $as_echo_n "checking host system type... " >&6; }
2231   if test "${ac_cv_host+set}" = set; then
2232 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2232 >  $as_echo_n "(cached) " >&6
2233   else
2234    if test "x$host_alias" = x; then
2235    ac_cv_host=$ac_cv_build
2236   else
2237    ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2238 <    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2239 < echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2238 >    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2239 > $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2240     { (exit 1); exit 1; }; }
2241   fi
2242  
2243   fi
2244 < { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2245 < echo "${ECHO_T}$ac_cv_host" >&6; }
2244 > { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2245 > $as_echo "$ac_cv_host" >&6; }
2246   case $ac_cv_host in
2247   *-*-*) ;;
2248 < *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2249 < echo "$as_me: error: invalid value of canonical host" >&2;}
2248 > *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2249 > $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2250     { (exit 1); exit 1; }; };;
2251   esac
2252   host=$ac_cv_host
# Line 2115 | Line 2329 | fi
2329  
2330   fi
2331  
2332 < # Checks for programs.
2333 < ac_ext=cpp
2334 < ac_cpp='$CXXCPP $CPPFLAGS'
2335 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2338 < if test -z "$CXX"; then
2339 <  if test -n "$CCC"; then
2340 <    CXX=$CCC
2127 <  else
2128 <    if test -n "$ac_tool_prefix"; then
2129 <  for ac_prog in mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
2130 <  do
2131 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2132 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2133 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2135 < if test "${ac_cv_prog_CXX+set}" = set; then
2136 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2332 > if test x"$CC" != x; then
2333 >   for ac_prog in $CC
2334 > do
2335 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
2336 > set dummy $ac_prog; ac_word=$2
2337 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 > $as_echo_n "checking for $ac_word... " >&6; }
2339 > if test "${ac_cv_prog_ac_cc_set+set}" = set; then
2340 >  $as_echo_n "(cached) " >&6
2341   else
2342 <  if test -n "$CXX"; then
2343 <  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2342 >  if test -n "$ac_cc_set"; then
2343 >  ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test.
2344   else
2345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346   for as_dir in $PATH
# Line 2145 | Line 2349 | do
2349    test -z "$as_dir" && as_dir=.
2350    for ac_exec_ext in '' $ac_executable_extensions; do
2351    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 <    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2353 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 >    ac_cv_prog_ac_cc_set="$ac_prog"
2353 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354      break 2
2355    fi
2356   done
# Line 2155 | Line 2359 | fi
2359  
2360   fi
2361   fi
2362 < CXX=$ac_cv_prog_CXX
2363 < if test -n "$CXX"; then
2364 <  { echo "$as_me:$LINENO: result: $CXX" >&5
2365 < echo "${ECHO_T}$CXX" >&6; }
2362 > ac_cc_set=$ac_cv_prog_ac_cc_set
2363 > if test -n "$ac_cc_set"; then
2364 >  { $as_echo "$as_me:$LINENO: result: $ac_cc_set" >&5
2365 > $as_echo "$ac_cc_set" >&6; }
2366   else
2367 <  { echo "$as_me:$LINENO: result: no" >&5
2368 < echo "${ECHO_T}no" >&6; }
2367 >  { $as_echo "$as_me:$LINENO: result: no" >&5
2368 > $as_echo "no" >&6; }
2369   fi
2370  
2371  
2372 <    test -n "$CXX" && break
2373 <  done
2372 >  test -n "$ac_cc_set" && break
2373 > done
2374 > test -n "$ac_cc_set" || ac_cc_set="no"
2375 >
2376 >   if test $ac_cc_set != no; then
2377 >
2378 >     # Extract the first word of "$ac_cc_set", so it can be a program name with args.
2379 > set dummy $ac_cc_set; ac_word=$2
2380 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 > $as_echo_n "checking for $ac_word... " >&6; }
2382 > if test "${ac_cv_path_ac_cc_path+set}" = set; then
2383 >  $as_echo_n "(cached) " >&6
2384 > else
2385 >  case $ac_cc_path in
2386 >  [\\/]* | ?:[\\/]*)
2387 >  ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path.
2388 >  ;;
2389 >  *)
2390 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 > for as_dir in $PATH
2392 > do
2393 >  IFS=$as_save_IFS
2394 >  test -z "$as_dir" && as_dir=.
2395 >  for ac_exec_ext in '' $ac_executable_extensions; do
2396 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397 >    ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext"
2398 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2399 >    break 2
2400 >  fi
2401 > done
2402 > done
2403 > IFS=$as_save_IFS
2404 >
2405 >  test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no"
2406 >  ;;
2407 > esac
2408   fi
2409 < if test -z "$CXX"; then
2410 <  ac_ct_CXX=$CXX
2411 <  for ac_prog in mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
2409 > ac_cc_path=$ac_cv_path_ac_cc_path
2410 > if test -n "$ac_cc_path"; then
2411 >  { $as_echo "$as_me:$LINENO: result: $ac_cc_path" >&5
2412 > $as_echo "$ac_cc_path" >&6; }
2413 > else
2414 >  { $as_echo "$as_me:$LINENO: result: no" >&5
2415 > $as_echo "no" >&6; }
2416 > fi
2417 >
2418 >
2419 > else
2420 >
2421 >     { { $as_echo "$as_me:$LINENO: error: Specified C compiler $CC doesn't seem to exist!" >&5
2422 > $as_echo "$as_me: error: Specified C compiler $CC doesn't seem to exist!" >&2;}
2423 >   { (exit 1); exit 1; }; }
2424 > fi
2425 >
2426 >
2427 >   if test $ac_cc_path != no; then
2428 >
2429 >     { $as_echo "$as_me:$LINENO: Will attempt to use $CC as C compiler" >&5
2430 > $as_echo "$as_me: Will attempt to use $CC as C compiler" >&6;}
2431 > else
2432 >
2433 >     { { $as_echo "$as_me:$LINENO: error: Can't find path to user-specified C compiler $CC" >&5
2434 > $as_echo "$as_me: error: Can't find path to user-specified C compiler $CC" >&2;}
2435 >   { (exit 1); exit 1; }; }
2436 > fi
2437 >
2438 > fi
2439 >
2440 > if test x"$CXX" != x; then
2441 >   for ac_prog in $CXX
2442   do
2443    # Extract the first word of "$ac_prog", so it can be a program name with args.
2444   set dummy $ac_prog; ac_word=$2
2445 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2448 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2445 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 > $as_echo_n "checking for $ac_word... " >&6; }
2447 > if test "${ac_cv_prog_ac_cxx_set+set}" = set; then
2448 >  $as_echo_n "(cached) " >&6
2449   else
2450 <  if test -n "$ac_ct_CXX"; then
2451 <  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2450 >  if test -n "$ac_cxx_set"; then
2451 >  ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test.
2452   else
2453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454   for as_dir in $PATH
# Line 2189 | Line 2457 | do
2457    test -z "$as_dir" && as_dir=.
2458    for ac_exec_ext in '' $ac_executable_extensions; do
2459    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 <    ac_cv_prog_ac_ct_CXX="$ac_prog"
2461 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 >    ac_cv_prog_ac_cxx_set="$ac_prog"
2461 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462      break 2
2463    fi
2464   done
# Line 2199 | Line 2467 | fi
2467  
2468   fi
2469   fi
2470 < ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2471 < if test -n "$ac_ct_CXX"; then
2472 <  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2473 < echo "${ECHO_T}$ac_ct_CXX" >&6; }
2470 > ac_cxx_set=$ac_cv_prog_ac_cxx_set
2471 > if test -n "$ac_cxx_set"; then
2472 >  { $as_echo "$as_me:$LINENO: result: $ac_cxx_set" >&5
2473 > $as_echo "$ac_cxx_set" >&6; }
2474   else
2475 <  { echo "$as_me:$LINENO: result: no" >&5
2476 < echo "${ECHO_T}no" >&6; }
2475 >  { $as_echo "$as_me:$LINENO: result: no" >&5
2476 > $as_echo "no" >&6; }
2477   fi
2478  
2479  
2480 <  test -n "$ac_ct_CXX" && break
2480 >  test -n "$ac_cxx_set" && break
2481   done
2482 + test -n "$ac_cxx_set" || ac_cxx_set="no"
2483  
2484 <  if test "x$ac_ct_CXX" = x; then
2485 <    CXX="g++"
2486 <  else
2487 <    case $cross_compiling:$ac_tool_warned in
2488 < yes:)
2489 < { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2490 < whose name does not start with the host triplet.  If you think this
2491 < configuration is useful to you, please write to autoconf@gnu.org." >&5
2492 < echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2493 < whose name does not start with the host triplet.  If you think this
2494 < configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2495 < ac_tool_warned=yes ;;
2496 < esac
2497 <    CXX=$ac_ct_CXX
2484 >   if test $ac_cxx_set != no; then
2485 >
2486 >     # Extract the first word of "$ac_cxx_set", so it can be a program name with args.
2487 > set dummy $ac_cxx_set; ac_word=$2
2488 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2489 > $as_echo_n "checking for $ac_word... " >&6; }
2490 > if test "${ac_cv_path_ac_cxx_path+set}" = set; then
2491 >  $as_echo_n "(cached) " >&6
2492 > else
2493 >  case $ac_cxx_path in
2494 >  [\\/]* | ?:[\\/]*)
2495 >  ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path.
2496 >  ;;
2497 >  *)
2498 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 > for as_dir in $PATH
2500 > do
2501 >  IFS=$as_save_IFS
2502 >  test -z "$as_dir" && as_dir=.
2503 >  for ac_exec_ext in '' $ac_executable_extensions; do
2504 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 >    ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext"
2506 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 >    break 2
2508    fi
2509 + done
2510 + done
2511 + IFS=$as_save_IFS
2512 +
2513 +  test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no"
2514 +  ;;
2515 + esac
2516   fi
2517 + ac_cxx_path=$ac_cv_path_ac_cxx_path
2518 + if test -n "$ac_cxx_path"; then
2519 +  { $as_echo "$as_me:$LINENO: result: $ac_cxx_path" >&5
2520 + $as_echo "$ac_cxx_path" >&6; }
2521 + else
2522 +  { $as_echo "$as_me:$LINENO: result: no" >&5
2523 + $as_echo "no" >&6; }
2524 + fi
2525  
2526 <  fi
2526 >
2527 > else
2528 >
2529 >     { { $as_echo "$as_me:$LINENO: error: Specified C++ compiler $CXX doesn't seem to exist!" >&5
2530 > $as_echo "$as_me: error: Specified C++ compiler $CXX doesn't seem to exist!" >&2;}
2531 >   { (exit 1); exit 1; }; }
2532   fi
2234 # Provide some information about the compiler.
2235 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2236 ac_compiler=`set X $ac_compile; echo $2`
2237 { (ac_try="$ac_compiler --version >&5"
2238 case "(($ac_try" in
2239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240  *) ac_try_echo=$ac_try;;
2241 esac
2242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2243  (eval "$ac_compiler --version >&5") 2>&5
2244  ac_status=$?
2245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246  (exit $ac_status); }
2247 { (ac_try="$ac_compiler -v >&5"
2248 case "(($ac_try" in
2249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250  *) ac_try_echo=$ac_try;;
2251 esac
2252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2253  (eval "$ac_compiler -v >&5") 2>&5
2254  ac_status=$?
2255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256  (exit $ac_status); }
2257 { (ac_try="$ac_compiler -V >&5"
2258 case "(($ac_try" in
2259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260  *) ac_try_echo=$ac_try;;
2261 esac
2262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2263  (eval "$ac_compiler -V >&5") 2>&5
2264  ac_status=$?
2265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266  (exit $ac_status); }
2533  
2268 cat >conftest.$ac_ext <<_ACEOF
2269 /* confdefs.h.  */
2270 _ACEOF
2271 cat confdefs.h >>conftest.$ac_ext
2272 cat >>conftest.$ac_ext <<_ACEOF
2273 /* end confdefs.h.  */
2534  
2535 < int
2276 < main ()
2277 < {
2535 >   if test $ac_cxx_path != no; then
2536  
2537 <  ;
2538 <  return 0;
2539 < }
2282 < _ACEOF
2283 < ac_clean_files_save=$ac_clean_files
2284 < ac_clean_files="$ac_clean_files a.out a.exe b.out"
2285 < # Try to create an executable without -o first, disregard a.out.
2286 < # It will help us diagnose broken compilers, and finding out an intuition
2287 < # of exeext.
2288 < { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2289 < echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2290 < ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2291 < #
2292 < # List of possible output files, starting from the most likely.
2293 < # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2294 < # only as a last resort.  b.out is created by i960 compilers.
2295 < ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2296 < #
2297 < # The IRIX 6 linker writes into existing files which may not be
2298 < # executable, retaining their permissions.  Remove them first so a
2299 < # subsequent execution test works.
2300 < ac_rmfiles=
2301 < for ac_file in $ac_files
2302 < do
2303 <  case $ac_file in
2304 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2305 <    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2306 <  esac
2307 < done
2308 < rm -rf $ac_rmfiles
2537 >     { $as_echo "$as_me:$LINENO: Will attempt to use $CXX as C++ compiler" >&5
2538 > $as_echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;}
2539 > else
2540  
2541 < if { (ac_try="$ac_link_default"
2542 < case "(($ac_try" in
2543 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 <  *) ac_try_echo=$ac_try;;
2545 < esac
2546 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547 <  (eval "$ac_link_default") 2>&5
2548 <  ac_status=$?
2549 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 <  (exit $ac_status); }; then
2320 <  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2321 < # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2322 < # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2323 < # so that the user can short-circuit this test for compilers unknown to
2324 < # Autoconf.
2325 < for ac_file in $ac_files ''
2541 >     { { $as_echo "$as_me:$LINENO: error: Can't find path to user-specified C++ compiler $CXX" >&5
2542 > $as_echo "$as_me: error: Can't find path to user-specified C++ compiler $CXX" >&2;}
2543 >   { (exit 1); exit 1; }; }
2544 > fi
2545 >
2546 > fi
2547 >
2548 > if test x"$FC" != x; then
2549 >   for ac_prog in $FC
2550   do
2551 <  test -f "$ac_file" || continue
2552 <  case $ac_file in
2553 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2554 <        ;;
2555 <    [ab].out )
2556 <        # We found the default executable, but exeext='' is most
2557 <        # certainly right.
2558 <        break;;
2559 <    *.* )
2560 <        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2561 <        then :; else
2562 <           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2563 <        fi
2564 <        # We set ac_cv_exeext here because the later test for it is not
2565 <        # safe: cross compilers may not add the suffix if given an `-o'
2566 <        # argument, so we may need to know it at that point already.
2567 <        # Even if this section looks crufty: it has the advantage of
2568 <        # actually working.
2569 <        break;;
2570 <    * )
2571 <        break;;
2348 <  esac
2551 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
2552 > set dummy $ac_prog; ac_word=$2
2553 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 > $as_echo_n "checking for $ac_word... " >&6; }
2555 > if test "${ac_cv_prog_ac_fc_set+set}" = set; then
2556 >  $as_echo_n "(cached) " >&6
2557 > else
2558 >  if test -n "$ac_fc_set"; then
2559 >  ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test.
2560 > else
2561 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 > for as_dir in $PATH
2563 > do
2564 >  IFS=$as_save_IFS
2565 >  test -z "$as_dir" && as_dir=.
2566 >  for ac_exec_ext in '' $ac_executable_extensions; do
2567 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 >    ac_cv_prog_ac_fc_set="$ac_prog"
2569 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 >    break 2
2571 >  fi
2572   done
2573 < test "$ac_cv_exeext" = no && ac_cv_exeext=
2573 > done
2574 > IFS=$as_save_IFS
2575  
2576 + fi
2577 + fi
2578 + ac_fc_set=$ac_cv_prog_ac_fc_set
2579 + if test -n "$ac_fc_set"; then
2580 +  { $as_echo "$as_me:$LINENO: result: $ac_fc_set" >&5
2581 + $as_echo "$ac_fc_set" >&6; }
2582   else
2583 <  ac_file=''
2583 >  { $as_echo "$as_me:$LINENO: result: no" >&5
2584 > $as_echo "no" >&6; }
2585   fi
2586  
2356 { echo "$as_me:$LINENO: result: $ac_file" >&5
2357 echo "${ECHO_T}$ac_file" >&6; }
2358 if test -z "$ac_file"; then
2359  echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2587  
2588 < { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2589 < See \`config.log' for more details." >&5
2590 < echo "$as_me: error: C++ compiler cannot create executables
2365 < See \`config.log' for more details." >&2;}
2366 <   { (exit 77); exit 77; }; }
2367 < fi
2588 >  test -n "$ac_fc_set" && break
2589 > done
2590 > test -n "$ac_fc_set" || ac_fc_set="no"
2591  
2592 < ac_exeext=$ac_cv_exeext
2592 >   if test $ac_fc_set != no; then
2593  
2594 < # Check that the compiler produces executables we can run.  If not, either
2595 < # the compiler is broken, or we cross compile.
2596 < { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2597 < echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2598 < # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2599 < # If not cross compiling, check that we can run a simple program.
2600 < if test "$cross_compiling" != yes; then
2601 <  if { ac_try='./$ac_file'
2602 <  { (case "(($ac_try" in
2603 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 <  *) ac_try_echo=$ac_try;;
2605 < esac
2606 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607 <  (eval "$ac_try") 2>&5
2608 <  ac_status=$?
2609 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 <  (exit $ac_status); }; }; then
2611 <    cross_compiling=no
2612 <  else
2613 <    if test "$cross_compiling" = maybe; then
2614 <        cross_compiling=yes
2615 <    else
2393 <        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2394 < If you meant to cross compile, use \`--host'.
2395 < See \`config.log' for more details." >&5
2396 < echo "$as_me: error: cannot run C++ compiled programs.
2397 < If you meant to cross compile, use \`--host'.
2398 < See \`config.log' for more details." >&2;}
2399 <   { (exit 1); exit 1; }; }
2400 <    fi
2594 >     # Extract the first word of "$ac_fc_set", so it can be a program name with args.
2595 > set dummy $ac_fc_set; ac_word=$2
2596 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 > $as_echo_n "checking for $ac_word... " >&6; }
2598 > if test "${ac_cv_path_ac_fc_path+set}" = set; then
2599 >  $as_echo_n "(cached) " >&6
2600 > else
2601 >  case $ac_fc_path in
2602 >  [\\/]* | ?:[\\/]*)
2603 >  ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path.
2604 >  ;;
2605 >  *)
2606 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 > for as_dir in $PATH
2608 > do
2609 >  IFS=$as_save_IFS
2610 >  test -z "$as_dir" && as_dir=.
2611 >  for ac_exec_ext in '' $ac_executable_extensions; do
2612 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 >    ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext"
2614 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 >    break 2
2616    fi
2617 < fi
2618 < { echo "$as_me:$LINENO: result: yes" >&5
2619 < echo "${ECHO_T}yes" >&6; }
2617 > done
2618 > done
2619 > IFS=$as_save_IFS
2620  
2621 < rm -rf a.out a.exe conftest$ac_cv_exeext b.out
2622 < ac_clean_files=$ac_clean_files_save
2408 < # Check that the compiler produces executables we can run.  If not, either
2409 < # the compiler is broken, or we cross compile.
2410 < { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2411 < echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2412 < { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2413 < echo "${ECHO_T}$cross_compiling" >&6; }
2414 <
2415 < { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2416 < echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2417 < if { (ac_try="$ac_link"
2418 < case "(($ac_try" in
2419 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 <  *) ac_try_echo=$ac_try;;
2621 >  test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no"
2622 >  ;;
2623   esac
2624 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625 <  (eval "$ac_link") 2>&5
2626 <  ac_status=$?
2627 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 <  (exit $ac_status); }; then
2427 <  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2428 < # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2429 < # work properly (i.e., refer to `conftest.exe'), while it won't with
2430 < # `rm'.
2431 < for ac_file in conftest.exe conftest conftest.*; do
2432 <  test -f "$ac_file" || continue
2433 <  case $ac_file in
2434 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2435 <    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2436 <          break;;
2437 <    * ) break;;
2438 <  esac
2439 < done
2624 > fi
2625 > ac_fc_path=$ac_cv_path_ac_fc_path
2626 > if test -n "$ac_fc_path"; then
2627 >  { $as_echo "$as_me:$LINENO: result: $ac_fc_path" >&5
2628 > $as_echo "$ac_fc_path" >&6; }
2629   else
2630 <  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2631 < See \`config.log' for more details." >&5
2443 < echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2444 < See \`config.log' for more details." >&2;}
2445 <   { (exit 1); exit 1; }; }
2630 >  { $as_echo "$as_me:$LINENO: result: no" >&5
2631 > $as_echo "no" >&6; }
2632   fi
2633  
2448 rm -rf conftest$ac_cv_exeext
2449 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2450 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2634  
2452 rm -rf conftest.$ac_ext
2453 EXEEXT=$ac_cv_exeext
2454 ac_exeext=$EXEEXT
2455 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2456 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2457 if test "${ac_cv_objext+set}" = set; then
2458  echo $ECHO_N "(cached) $ECHO_C" >&6
2635   else
2460  cat >conftest.$ac_ext <<_ACEOF
2461 /* confdefs.h.  */
2462 _ACEOF
2463 cat confdefs.h >>conftest.$ac_ext
2464 cat >>conftest.$ac_ext <<_ACEOF
2465 /* end confdefs.h.  */
2636  
2637 < int
2638 < main ()
2639 < {
2637 >     { { $as_echo "$as_me:$LINENO: error: Specified Fortran compiler $FC doesn't seem to exist!" >&5
2638 > $as_echo "$as_me: error: Specified Fortran compiler $FC doesn't seem to exist!" >&2;}
2639 >   { (exit 1); exit 1; }; }
2640 > fi
2641  
2642 <  ;
2643 <  return 0;
2644 < }
2645 < _ACEOF
2646 < rm -rf conftest.o conftest.obj
2476 < if { (ac_try="$ac_compile"
2477 < case "(($ac_try" in
2478 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 <  *) ac_try_echo=$ac_try;;
2480 < esac
2481 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482 <  (eval "$ac_compile") 2>&5
2483 <  ac_status=$?
2484 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 <  (exit $ac_status); }; then
2486 <  for ac_file in conftest.o conftest.obj conftest.*; do
2487 <  test -f "$ac_file" || continue;
2488 <  case $ac_file in
2489 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2490 <    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2491 <       break;;
2492 <  esac
2493 < done
2642 >
2643 >   if test $ac_fc_path != no; then
2644 >
2645 >     { $as_echo "$as_me:$LINENO: Will attempt to use $FC as Fortran compiler" >&5
2646 > $as_echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;}
2647   else
2495  echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2648  
2649 < { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2650 < See \`config.log' for more details." >&5
2500 < echo "$as_me: error: cannot compute suffix of object files: cannot compile
2501 < See \`config.log' for more details." >&2;}
2649 >     { { $as_echo "$as_me:$LINENO: error: Can't find path to user-specified Fortran compiler $FC" >&5
2650 > $as_echo "$as_me: error: Can't find path to user-specified Fortran compiler $FC" >&2;}
2651     { (exit 1); exit 1; }; }
2652   fi
2653  
2505 rm -rf conftest.$ac_cv_objext conftest.$ac_ext
2654   fi
2507 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2508 echo "${ECHO_T}$ac_cv_objext" >&6; }
2509 OBJEXT=$ac_cv_objext
2510 ac_objext=$OBJEXT
2511 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2512 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2513 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2514  echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516  cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h.  */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h.  */
2655  
2523 int
2524 main ()
2525 {
2526 #ifndef __GNUC__
2527       choke me
2528 #endif
2656  
2530  ;
2531  return 0;
2532 }
2533 _ACEOF
2534 rm -rf conftest.$ac_objext
2535 if { (ac_try="$ac_compile"
2536 case "(($ac_try" in
2537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538  *) ac_try_echo=$ac_try;;
2539 esac
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541  (eval "$ac_compile") 2>conftest.er1
2542  ac_status=$?
2543  grep -v '^ *+' conftest.er1 >conftest.err
2544  rm -rf conftest.er1
2545  cat conftest.err >&5
2546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547  (exit $ac_status); } && {
2548         test -z "$ac_cxx_werror_flag" ||
2549         test ! -s conftest.err
2550       } && test -s conftest.$ac_objext; then
2551  ac_compiler_gnu=yes
2552 else
2553  echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2657  
2658 <        ac_compiler_gnu=no
2658 >
2659 > # Check whether --with-mpi was given.
2660 > if test "${with_mpi+set}" = set; then
2661 >  withval=$with_mpi;
2662 > else
2663 >  with_mpi="auto"
2664   fi
2665  
2666 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
2560 < ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2666 > if test "x$with_mpi" != "xno"; then
2667  
2668 < fi
2669 < { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2670 < echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2671 < GXX=`test $ac_compiler_gnu = yes && echo yes`
2672 < ac_test_CXXFLAGS=${CXXFLAGS+set}
2673 < ac_save_CXXFLAGS=$CXXFLAGS
2674 < { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2675 < echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2676 < if test "${ac_cv_prog_cxx_g+set}" = set; then
2571 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2668 >
2669 > for ac_prog in $CC openmpicc mpicc
2670 > do
2671 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
2672 > set dummy $ac_prog; ac_word=$2
2673 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 > $as_echo_n "checking for $ac_word... " >&6; }
2675 > if test "${ac_cv_prog_acx_mpi_mpicc+set}" = set; then
2676 >  $as_echo_n "(cached) " >&6
2677   else
2678 <  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2679 <   ac_cxx_werror_flag=yes
2680 <   ac_cv_prog_cxx_g=no
2681 <   CXXFLAGS="-g"
2682 <   cat >conftest.$ac_ext <<_ACEOF
2683 < /* confdefs.h.  */
2684 < _ACEOF
2685 < cat confdefs.h >>conftest.$ac_ext
2686 < cat >>conftest.$ac_ext <<_ACEOF
2687 < /* end confdefs.h.  */
2678 >  if test -n "$acx_mpi_mpicc"; then
2679 >  ac_cv_prog_acx_mpi_mpicc="$acx_mpi_mpicc" # Let the user override the test.
2680 > else
2681 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 > for as_dir in $PATH
2683 > do
2684 >  IFS=$as_save_IFS
2685 >  test -z "$as_dir" && as_dir=.
2686 >  for ac_exec_ext in '' $ac_executable_extensions; do
2687 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 >    ac_cv_prog_acx_mpi_mpicc="$ac_prog"
2689 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 >    break 2
2691 >  fi
2692 > done
2693 > done
2694 > IFS=$as_save_IFS
2695  
2696 < int
2697 < main ()
2698 < {
2699 <
2700 <  ;
2701 <  return 0;
2590 < }
2591 < _ACEOF
2592 < rm -rf conftest.$ac_objext
2593 < if { (ac_try="$ac_compile"
2594 < case "(($ac_try" in
2595 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 <  *) ac_try_echo=$ac_try;;
2597 < esac
2598 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 <  (eval "$ac_compile") 2>conftest.er1
2600 <  ac_status=$?
2601 <  grep -v '^ *+' conftest.er1 >conftest.err
2602 <  rm -rf conftest.er1
2603 <  cat conftest.err >&5
2604 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 <  (exit $ac_status); } && {
2606 <         test -z "$ac_cxx_werror_flag" ||
2607 <         test ! -s conftest.err
2608 <       } && test -s conftest.$ac_objext; then
2609 <  ac_cv_prog_cxx_g=yes
2696 > fi
2697 > fi
2698 > acx_mpi_mpicc=$ac_cv_prog_acx_mpi_mpicc
2699 > if test -n "$acx_mpi_mpicc"; then
2700 >  { $as_echo "$as_me:$LINENO: result: $acx_mpi_mpicc" >&5
2701 > $as_echo "$acx_mpi_mpicc" >&6; }
2702   else
2703 <  echo "$as_me: failed program was:" >&5
2704 < sed 's/^/| /' conftest.$ac_ext >&5
2703 >  { $as_echo "$as_me:$LINENO: result: no" >&5
2704 > $as_echo "no" >&6; }
2705 > fi
2706  
2614        CXXFLAGS=""
2615      cat >conftest.$ac_ext <<_ACEOF
2616 /* confdefs.h.  */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h.  */
2707  
2708 < int
2709 < main ()
2710 < {
2708 >  test -n "$acx_mpi_mpicc" && break
2709 > done
2710 > test -n "$acx_mpi_mpicc" || acx_mpi_mpicc="no"
2711  
2712 <  ;
2713 <  return 0;
2714 < }
2715 < _ACEOF
2716 < rm -rf conftest.$ac_objext
2717 < if { (ac_try="$ac_compile"
2718 < case "(($ac_try" in
2719 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 <  *) ac_try_echo=$ac_try;;
2635 < esac
2636 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637 <  (eval "$ac_compile") 2>conftest.er1
2638 <  ac_status=$?
2639 <  grep -v '^ *+' conftest.er1 >conftest.err
2640 <  rm -rf conftest.er1
2641 <  cat conftest.err >&5
2642 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 <  (exit $ac_status); } && {
2644 <         test -z "$ac_cxx_werror_flag" ||
2645 <         test ! -s conftest.err
2646 <       } && test -s conftest.$ac_objext; then
2647 <  :
2712 > if test $acx_mpi_mpicc != no; then
2713 >
2714 >  # Extract the first word of "$acx_mpi_mpicc", so it can be a program name with args.
2715 > set dummy $acx_mpi_mpicc; ac_word=$2
2716 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2717 > $as_echo_n "checking for $ac_word... " >&6; }
2718 > if test "${ac_cv_path_acx_mpi_mpicc_path+set}" = set; then
2719 >  $as_echo_n "(cached) " >&6
2720   else
2721 <  echo "$as_me: failed program was:" >&5
2722 < sed 's/^/| /' conftest.$ac_ext >&5
2721 >  case $acx_mpi_mpicc_path in
2722 >  [\\/]* | ?:[\\/]*)
2723 >  ac_cv_path_acx_mpi_mpicc_path="$acx_mpi_mpicc_path" # Let the user override the test with a path.
2724 >  ;;
2725 >  *)
2726 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 > for as_dir in $PATH
2728 > do
2729 >  IFS=$as_save_IFS
2730 >  test -z "$as_dir" && as_dir=.
2731 >  for ac_exec_ext in '' $ac_executable_extensions; do
2732 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 >    ac_cv_path_acx_mpi_mpicc_path="$as_dir/$ac_word$ac_exec_ext"
2734 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 >    break 2
2736 >  fi
2737 > done
2738 > done
2739 > IFS=$as_save_IFS
2740  
2741 <        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2742 <         CXXFLAGS="-g"
2654 <         cat >conftest.$ac_ext <<_ACEOF
2655 < /* confdefs.h.  */
2656 < _ACEOF
2657 < cat confdefs.h >>conftest.$ac_ext
2658 < cat >>conftest.$ac_ext <<_ACEOF
2659 < /* end confdefs.h.  */
2660 <
2661 < int
2662 < main ()
2663 < {
2664 <
2665 <  ;
2666 <  return 0;
2667 < }
2668 < _ACEOF
2669 < rm -rf conftest.$ac_objext
2670 < if { (ac_try="$ac_compile"
2671 < case "(($ac_try" in
2672 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 <  *) ac_try_echo=$ac_try;;
2741 >  test -z "$ac_cv_path_acx_mpi_mpicc_path" && ac_cv_path_acx_mpi_mpicc_path="no"
2742 >  ;;
2743   esac
2744 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 <  (eval "$ac_compile") 2>conftest.er1
2746 <  ac_status=$?
2747 <  grep -v '^ *+' conftest.er1 >conftest.err
2748 <  rm -rf conftest.er1
2680 <  cat conftest.err >&5
2681 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 <  (exit $ac_status); } && {
2683 <         test -z "$ac_cxx_werror_flag" ||
2684 <         test ! -s conftest.err
2685 <       } && test -s conftest.$ac_objext; then
2686 <  ac_cv_prog_cxx_g=yes
2744 > fi
2745 > acx_mpi_mpicc_path=$ac_cv_path_acx_mpi_mpicc_path
2746 > if test -n "$acx_mpi_mpicc_path"; then
2747 >  { $as_echo "$as_me:$LINENO: result: $acx_mpi_mpicc_path" >&5
2748 > $as_echo "$acx_mpi_mpicc_path" >&6; }
2749   else
2750 <  echo "$as_me: failed program was:" >&5
2751 < sed 's/^/| /' conftest.$ac_ext >&5
2750 >  { $as_echo "$as_me:$LINENO: result: no" >&5
2751 > $as_echo "no" >&6; }
2752 > fi
2753  
2754  
2755   fi
2756  
2757 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
2758 < fi
2757 > for ac_prog in $FC openmpif90 mpif90
2758 > do
2759 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
2760 > set dummy $ac_prog; ac_word=$2
2761 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2762 > $as_echo_n "checking for $ac_word... " >&6; }
2763 > if test "${ac_cv_prog_acx_mpi_mpif90+set}" = set; then
2764 >  $as_echo_n "(cached) " >&6
2765 > else
2766 >  if test -n "$acx_mpi_mpif90"; then
2767 >  ac_cv_prog_acx_mpi_mpif90="$acx_mpi_mpif90" # Let the user override the test.
2768 > else
2769 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 > for as_dir in $PATH
2771 > do
2772 >  IFS=$as_save_IFS
2773 >  test -z "$as_dir" && as_dir=.
2774 >  for ac_exec_ext in '' $ac_executable_extensions; do
2775 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776 >    ac_cv_prog_acx_mpi_mpif90="$ac_prog"
2777 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 >    break 2
2779 >  fi
2780 > done
2781 > done
2782 > IFS=$as_save_IFS
2783  
2697 rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
2784   fi
2699
2700 rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
2701   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2785   fi
2786 < { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2787 < echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2788 < if test "$ac_test_CXXFLAGS" = set; then
2789 <  CXXFLAGS=$ac_save_CXXFLAGS
2707 < elif test $ac_cv_prog_cxx_g = yes; then
2708 <  if test "$GXX" = yes; then
2709 <    CXXFLAGS="-g -O2"
2710 <  else
2711 <    CXXFLAGS="-g"
2712 <  fi
2786 > acx_mpi_mpif90=$ac_cv_prog_acx_mpi_mpif90
2787 > if test -n "$acx_mpi_mpif90"; then
2788 >  { $as_echo "$as_me:$LINENO: result: $acx_mpi_mpif90" >&5
2789 > $as_echo "$acx_mpi_mpif90" >&6; }
2790   else
2791 <  if test "$GXX" = yes; then
2792 <    CXXFLAGS="-O2"
2716 <  else
2717 <    CXXFLAGS=
2718 <  fi
2791 >  { $as_echo "$as_me:$LINENO: result: no" >&5
2792 > $as_echo "no" >&6; }
2793   fi
2720 ac_ext=c
2721 ac_cpp='$CPP $CPPFLAGS'
2722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794  
2795 < ac_ext=c
2796 < ac_cpp='$CPP $CPPFLAGS'
2797 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 < if test -n "$ac_tool_prefix"; then
2801 <  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
2802 <  do
2803 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2804 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2805 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
2806 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2807 < if test "${ac_cv_prog_CC+set}" = set; then
2739 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2795 >
2796 >  test -n "$acx_mpi_mpif90" && break
2797 > done
2798 > test -n "$acx_mpi_mpif90" || acx_mpi_mpif90="no"
2799 >
2800 > if test $acx_mpi_mpif90 != no; then
2801 >
2802 >  # Extract the first word of "$acx_mpi_mpif90", so it can be a program name with args.
2803 > set dummy $acx_mpi_mpif90; ac_word=$2
2804 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 > $as_echo_n "checking for $ac_word... " >&6; }
2806 > if test "${ac_cv_path_acx_mpi_mpif90_path+set}" = set; then
2807 >  $as_echo_n "(cached) " >&6
2808   else
2809 <  if test -n "$CC"; then
2810 <  ac_cv_prog_CC="$CC" # Let the user override the test.
2811 < else
2812 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 >  case $acx_mpi_mpif90_path in
2810 >  [\\/]* | ?:[\\/]*)
2811 >  ac_cv_path_acx_mpi_mpif90_path="$acx_mpi_mpif90_path" # Let the user override the test with a path.
2812 >  ;;
2813 >  *)
2814 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815   for as_dir in $PATH
2816   do
2817    IFS=$as_save_IFS
2818    test -z "$as_dir" && as_dir=.
2819    for ac_exec_ext in '' $ac_executable_extensions; do
2820    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 <    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2822 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 >    ac_cv_path_acx_mpi_mpif90_path="$as_dir/$ac_word$ac_exec_ext"
2822 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823      break 2
2824    fi
2825   done
2826   done
2827   IFS=$as_save_IFS
2828  
2829 +  test -z "$ac_cv_path_acx_mpi_mpif90_path" && ac_cv_path_acx_mpi_mpif90_path="no"
2830 +  ;;
2831 + esac
2832   fi
2833 < fi
2834 < CC=$ac_cv_prog_CC
2835 < if test -n "$CC"; then
2836 <  { echo "$as_me:$LINENO: result: $CC" >&5
2764 < echo "${ECHO_T}$CC" >&6; }
2833 > acx_mpi_mpif90_path=$ac_cv_path_acx_mpi_mpif90_path
2834 > if test -n "$acx_mpi_mpif90_path"; then
2835 >  { $as_echo "$as_me:$LINENO: result: $acx_mpi_mpif90_path" >&5
2836 > $as_echo "$acx_mpi_mpif90_path" >&6; }
2837   else
2838 <  { echo "$as_me:$LINENO: result: no" >&5
2839 < echo "${ECHO_T}no" >&6; }
2838 >  { $as_echo "$as_me:$LINENO: result: no" >&5
2839 > $as_echo "no" >&6; }
2840   fi
2841  
2842  
2771    test -n "$CC" && break
2772  done
2843   fi
2844 < if test -z "$CC"; then
2845 <  ac_ct_CC=$CC
2776 <  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
2844 >
2845 > for ac_prog in $CXX openmpicxx openmpiCC openmpic++ mpicxx mpiCC mpic++
2846   do
2847    # Extract the first word of "$ac_prog", so it can be a program name with args.
2848   set dummy $ac_prog; ac_word=$2
2849 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2851 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2852 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2849 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 > $as_echo_n "checking for $ac_word... " >&6; }
2851 > if test "${ac_cv_prog_acx_mpi_mpicxx+set}" = set; then
2852 >  $as_echo_n "(cached) " >&6
2853   else
2854 <  if test -n "$ac_ct_CC"; then
2855 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2854 >  if test -n "$acx_mpi_mpicxx"; then
2855 >  ac_cv_prog_acx_mpi_mpicxx="$acx_mpi_mpicxx" # Let the user override the test.
2856   else
2857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858   for as_dir in $PATH
# Line 2792 | Line 2861 | do
2861    test -z "$as_dir" && as_dir=.
2862    for ac_exec_ext in '' $ac_executable_extensions; do
2863    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 <    ac_cv_prog_ac_ct_CC="$ac_prog"
2865 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 >    ac_cv_prog_acx_mpi_mpicxx="$ac_prog"
2865 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866      break 2
2867    fi
2868   done
# Line 2802 | Line 2871 | fi
2871  
2872   fi
2873   fi
2874 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
2875 < if test -n "$ac_ct_CC"; then
2876 <  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2877 < echo "${ECHO_T}$ac_ct_CC" >&6; }
2874 > acx_mpi_mpicxx=$ac_cv_prog_acx_mpi_mpicxx
2875 > if test -n "$acx_mpi_mpicxx"; then
2876 >  { $as_echo "$as_me:$LINENO: result: $acx_mpi_mpicxx" >&5
2877 > $as_echo "$acx_mpi_mpicxx" >&6; }
2878   else
2879 <  { echo "$as_me:$LINENO: result: no" >&5
2880 < echo "${ECHO_T}no" >&6; }
2879 >  { $as_echo "$as_me:$LINENO: result: no" >&5
2880 > $as_echo "no" >&6; }
2881   fi
2882  
2883  
2884 <  test -n "$ac_ct_CC" && break
2884 >  test -n "$acx_mpi_mpicxx" && break
2885   done
2886 + test -n "$acx_mpi_mpicxx" || acx_mpi_mpicxx="no"
2887  
2888 <  if test "x$ac_ct_CC" = x; then
2889 <    CC=""
2890 <  else
2891 <    case $cross_compiling:$ac_tool_warned in
2892 < yes:)
2893 < { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2894 < whose name does not start with the host triplet.  If you think this
2895 < configuration is useful to you, please write to autoconf@gnu.org." >&5
2896 < echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2897 < whose name does not start with the host triplet.  If you think this
2898 < configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2899 < ac_tool_warned=yes ;;
2900 < esac
2901 <    CC=$ac_ct_CC
2888 > if test $acx_mpi_mpicxx != no; then
2889 >
2890 >  # Extract the first word of "$acx_mpi_mpicxx", so it can be a program name with args.
2891 > set dummy $acx_mpi_mpicxx; ac_word=$2
2892 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2893 > $as_echo_n "checking for $ac_word... " >&6; }
2894 > if test "${ac_cv_path_acx_mpi_mpicxx_path+set}" = set; then
2895 >  $as_echo_n "(cached) " >&6
2896 > else
2897 >  case $acx_mpi_mpicxx_path in
2898 >  [\\/]* | ?:[\\/]*)
2899 >  ac_cv_path_acx_mpi_mpicxx_path="$acx_mpi_mpicxx_path" # Let the user override the test with a path.
2900 >  ;;
2901 >  *)
2902 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 > for as_dir in $PATH
2904 > do
2905 >  IFS=$as_save_IFS
2906 >  test -z "$as_dir" && as_dir=.
2907 >  for ac_exec_ext in '' $ac_executable_extensions; do
2908 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 >    ac_cv_path_acx_mpi_mpicxx_path="$as_dir/$ac_word$ac_exec_ext"
2910 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 >    break 2
2912    fi
2913 + done
2914 + done
2915 + IFS=$as_save_IFS
2916 +
2917 +  test -z "$ac_cv_path_acx_mpi_mpicxx_path" && ac_cv_path_acx_mpi_mpicxx_path="no"
2918 +  ;;
2919 + esac
2920   fi
2921 + acx_mpi_mpicxx_path=$ac_cv_path_acx_mpi_mpicxx_path
2922 + if test -n "$acx_mpi_mpicxx_path"; then
2923 +  { $as_echo "$as_me:$LINENO: result: $acx_mpi_mpicxx_path" >&5
2924 + $as_echo "$acx_mpi_mpicxx_path" >&6; }
2925 + else
2926 +  { $as_echo "$as_me:$LINENO: result: no" >&5
2927 + $as_echo "no" >&6; }
2928 + fi
2929  
2930  
2931 < test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2837 < See \`config.log' for more details." >&5
2838 < echo "$as_me: error: no acceptable C compiler found in \$PATH
2839 < See \`config.log' for more details." >&2;}
2840 <   { (exit 1); exit 1; }; }
2931 > fi
2932  
2933 < # Provide some information about the compiler.
2843 < echo "$as_me:$LINENO: checking for C compiler version" >&5
2844 < ac_compiler=`set X $ac_compile; echo $2`
2845 < { (ac_try="$ac_compiler --version >&5"
2846 < case "(($ac_try" in
2847 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 <  *) ac_try_echo=$ac_try;;
2849 < esac
2850 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 <  (eval "$ac_compiler --version >&5") 2>&5
2852 <  ac_status=$?
2853 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 <  (exit $ac_status); }
2855 < { (ac_try="$ac_compiler -v >&5"
2856 < case "(($ac_try" in
2857 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 <  *) ac_try_echo=$ac_try;;
2859 < esac
2860 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861 <  (eval "$ac_compiler -v >&5") 2>&5
2862 <  ac_status=$?
2863 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 <  (exit $ac_status); }
2865 < { (ac_try="$ac_compiler -V >&5"
2866 < case "(($ac_try" in
2867 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 <  *) ac_try_echo=$ac_try;;
2869 < esac
2870 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871 <  (eval "$ac_compiler -V >&5") 2>&5
2872 <  ac_status=$?
2873 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 <  (exit $ac_status); }
2933 > if test $acx_mpi_mpicc = no; then
2934  
2935 < { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2936 < echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2937 < if test "${ac_cv_c_compiler_gnu+set}" = set; then
2938 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2935 >  if test $acx_mpi_mpicxx = no; then
2936 >
2937 >    acx_mpi_compiler=no
2938 >
2939   else
2940 <  cat >conftest.$ac_ext <<_ACEOF
2940 >
2941 >    acx_mpi_compiler=$acx_mpi_mpicxx
2942 >    acx_mpi_compiler_path=$acx_mpi_mpicxx_path
2943 > fi
2944 >
2945 >
2946 > else
2947 >
2948 >  if test $acx_mpi_mpicxx = no; then
2949 >
2950 >    acx_mpi_compiler=$acx_mpi_mpicc
2951 >    acx_mpi_compiler_path=$acx_mpi_mpicc_path
2952 >
2953 > else
2954 >
2955 >    { $as_echo "$as_me:$LINENO: checking whether to use $acx_mpi_mpicc or $acx_mpi_mpicxx" >&5
2956 > $as_echo_n "checking whether to use $acx_mpi_mpicc or $acx_mpi_mpicxx... " >&6; }
2957 >    ac_ext=cpp
2958 > ac_cpp='$CXXCPP $CPPFLAGS'
2959 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2962 >
2963 >    cat >conftest.$ac_ext <<_ACEOF
2964   /* confdefs.h.  */
2965   _ACEOF
2966   cat confdefs.h >>conftest.$ac_ext
2967   cat >>conftest.$ac_ext <<_ACEOF
2968   /* end confdefs.h.  */
2969  
2970 + #include <mpi.h>
2971 +
2972   int
2973   main ()
2974   {
2891 #ifndef __GNUC__
2892       choke me
2893 #endif
2975  
2976 + MPI_Finalize();
2977 +
2978    ;
2979    return 0;
2980   }
2981   _ACEOF
2982 < rm -rf conftest.$ac_objext
2900 < if { (ac_try="$ac_compile"
2982 >    if { (ac_try="$acx_mpi_mpicxx_path -c conftest.$ac_ext >&5"
2983   case "(($ac_try" in
2984    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985    *) ac_try_echo=$ac_try;;
2986   esac
2987 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 <  (eval "$ac_compile") 2>conftest.er1
2987 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2988 > $as_echo "$ac_try_echo") >&5
2989 >  (eval "$acx_mpi_mpicxx_path -c conftest.$ac_ext >&5") 2>conftest.er1
2990    ac_status=$?
2991    grep -v '^ *+' conftest.er1 >conftest.err
2992    rm -f conftest.er1
2993    cat conftest.err >&5
2994 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995    (exit $ac_status); } && {
2996 <         test -z "$ac_c_werror_flag" ||
2997 <         test ! -s conftest.err
2996 >         test -z "$ac_cxx_werror_flag" ||
2997 >         test ! -s conftest.err
2998         } && test -s conftest.$ac_objext; then
2999 <  ac_compiler_gnu=yes
2999 >
3000 >      acx_mpi_compiler=$acx_mpi_mpicxx
3001 >      acx_mpi_compiler_path=$acx_mpi_mpicxx_path
3002 >
3003   else
2918  echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
3004  
3005 <        ac_compiler_gnu=no
3005 >      acx_mpi_compiler=$acx_mpi_mpicc
3006 >      acx_mpi_compiler_path=$acx_mpi_mpicc_path
3007   fi
3008  
3009 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3010 < ac_cv_c_compiler_gnu=$ac_compiler_gnu
3009 >    ac_ext=c
3010 > ac_cpp='$CPP $CPPFLAGS'
3011 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3012 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3013 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014  
3015 +    { $as_echo "$as_me:$LINENO: result: $acx_mpi_compiler" >&5
3016 + $as_echo "$acx_mpi_compiler" >&6; }
3017   fi
3018 < { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3019 < echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3020 < GCC=`test $ac_compiler_gnu = yes && echo yes`
3021 < ac_test_CFLAGS=${CFLAGS+set}
3022 < ac_save_CFLAGS=$CFLAGS
3023 < { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3024 < echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3025 < if test "${ac_cv_prog_cc_g+set}" = set; then
3026 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3018 >
3019 > fi
3020 >
3021 > { $as_echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
3022 > $as_echo_n "checking whether mpif.h is usable... " >&6; }
3023 > ac_ext=${ac_fc_srcext-f}
3024 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3025 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3026 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3027 >
3028 > ac_save_ext=$ac_ext
3029 > ac_ext=F90
3030 > rm -f conftest*
3031 > cat >conftest.$ac_ext <<EOF
3032 > program main
3033 >   include 'mpif.h'
3034 >   call MPI_Init
3035 > end
3036 > EOF
3037 > if $acx_mpi_mpif90_path -c conftest.$ac_ext > conftest.out 2>&1 ; then
3038 >        acx_mpi_f90_compiler=yes
3039 >        { $as_echo "$as_me:$LINENO: result: yes" >&5
3040 > $as_echo "yes" >&6; }
3041   else
3042 <  ac_save_c_werror_flag=$ac_c_werror_flag
3043 <   ac_c_werror_flag=yes
3044 <   ac_cv_prog_cc_g=no
3045 <   CFLAGS="-g"
3046 <   cat >conftest.$ac_ext <<_ACEOF
3047 < /* confdefs.h.  */
3048 < _ACEOF
3049 < cat confdefs.h >>conftest.$ac_ext
3050 < cat >>conftest.$ac_ext <<_ACEOF
3051 < /* end confdefs.h.  */
3042 >        if test -s conftest.out ; then
3043 >                cat conftest.out >> config.log
3044 >        fi
3045 >        acx_mpi_f90_compiler=no
3046 >        { $as_echo "$as_me:$LINENO: result: no! Check MPI fortran include paths" >&5
3047 > $as_echo "no! Check MPI fortran include paths" >&6; }
3048 > fi
3049 > rm -f conftest*
3050 > ac_ext=$ac_save_ext
3051 > ac_ext=c
3052 > ac_cpp='$CPP $CPPFLAGS'
3053 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3055 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3056  
3057 < int
2950 < main ()
2951 < {
3057 > if test $acx_mpi_compiler = no || test $acx_mpi_f90_compiler = no; then
3058  
3059 <  ;
3060 <  return 0;
3061 < }
3062 < _ACEOF
3063 < rm -rf conftest.$ac_objext
3064 < if { (ac_try="$ac_compile"
3059 > acx_cv_mpi_implementation=no
3060 > else
3061 >  { $as_echo "$as_me:$LINENO: checking for the MPI implementation flavor" >&5
3062 > $as_echo_n "checking for the MPI implementation flavor... " >&6; }
3063 > if test "${acx_cv_mpi_implementation+set}" = set; then
3064 >  $as_echo_n "(cached) " >&6
3065 > else
3066 >  acx_cv_mpi_implementation=no
3067 > if { (ac_try="grep -q LAM $acx_mpi_compiler_path"
3068   case "(($ac_try" in
3069    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070    *) ac_try_echo=$ac_try;;
3071   esac
3072 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 <  (eval "$ac_compile") 2>conftest.er1
3072 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3073 > $as_echo "$ac_try_echo") >&5
3074 >  (eval "grep -q LAM $acx_mpi_compiler_path") 2>conftest.er1
3075    ac_status=$?
3076    grep -v '^ *+' conftest.er1 >conftest.err
3077    rm -f conftest.er1
3078    cat conftest.err >&5
3079 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 <  (exit $ac_status); } && {
3081 <         test -z "$ac_c_werror_flag" ||
3082 <         test ! -s conftest.err
3083 <       } && test -s conftest.$ac_objext; then
2974 <  ac_cv_prog_cc_g=yes
3079 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 >  (exit $ac_status); }; then
3081 >
3082 >  acx_cv_mpi_implementation=lammpi
3083 >
3084   else
2976  echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
3085  
3086 <        CFLAGS=""
2980 <      cat >conftest.$ac_ext <<_ACEOF
2981 < /* confdefs.h.  */
2982 < _ACEOF
2983 < cat confdefs.h >>conftest.$ac_ext
2984 < cat >>conftest.$ac_ext <<_ACEOF
2985 < /* end confdefs.h.  */
2986 <
2987 < int
2988 < main ()
2989 < {
2990 <
2991 <  ;
2992 <  return 0;
2993 < }
2994 < _ACEOF
2995 < rm -rf conftest.$ac_objext
2996 < if { (ac_try="$ac_compile"
3086 >  if { (ac_try="grep -q showme $acx_mpi_compiler_path"
3087   case "(($ac_try" in
3088    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089    *) ac_try_echo=$ac_try;;
3090   esac
3091 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 <  (eval "$ac_compile") 2>conftest.er1
3091 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3092 > $as_echo "$ac_try_echo") >&5
3093 >  (eval "grep -q showme $acx_mpi_compiler_path") 2>conftest.er1
3094    ac_status=$?
3095    grep -v '^ *+' conftest.er1 >conftest.err
3096 <  rm -rf conftest.er1
3096 >  rm -f conftest.er1
3097    cat conftest.err >&5
3098 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 <  (exit $ac_status); } && {
3009 <         test -z "$ac_c_werror_flag" ||
3010 <         test ! -s conftest.err
3011 <       } && test -s conftest.$ac_objext; then
3012 <  :
3013 < else
3014 <  echo "$as_me: failed program was:" >&5
3015 < sed 's/^/| /' conftest.$ac_ext >&5
3098 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 >  (exit $ac_status); }; then
3100  
3101 <        ac_c_werror_flag=$ac_save_c_werror_flag
3018 <         CFLAGS="-g"
3019 <         cat >conftest.$ac_ext <<_ACEOF
3020 < /* confdefs.h.  */
3021 < _ACEOF
3022 < cat confdefs.h >>conftest.$ac_ext
3023 < cat >>conftest.$ac_ext <<_ACEOF
3024 < /* end confdefs.h.  */
3101 >    acx_cv_mpi_implementation=openmpi
3102  
3103 < int
3027 < main ()
3028 < {
3103 > else
3104  
3105 <  ;
3031 <  return 0;
3032 < }
3033 < _ACEOF
3034 < rm -rf conftest.$ac_objext
3035 < if { (ac_try="$ac_compile"
3105 >    if { (ac_try="grep -q MPICH $acx_mpi_compiler_path"
3106   case "(($ac_try" in
3107    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108    *) ac_try_echo=$ac_try;;
3109   esac
3110 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 <  (eval "$ac_compile") 2>conftest.er1
3110 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3111 > $as_echo "$ac_try_echo") >&5
3112 >  (eval "grep -q MPICH $acx_mpi_compiler_path") 2>conftest.er1
3113    ac_status=$?
3114    grep -v '^ *+' conftest.er1 >conftest.err
3115    rm -f conftest.er1
3116    cat conftest.err >&5
3117 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 <  (exit $ac_status); } && {
3048 <         test -z "$ac_c_werror_flag" ||
3049 <         test ! -s conftest.err
3050 <       } && test -s conftest.$ac_objext; then
3051 <  ac_cv_prog_cc_g=yes
3052 < else
3053 <  echo "$as_me: failed program was:" >&5
3054 < sed 's/^/| /' conftest.$ac_ext >&5
3117 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 >  (exit $ac_status); }; then
3119  
3120 +      acx_cv_mpi_implementation=mpich
3121  
3122 + else
3123 +  acx_cv_mpi_implementation=$with_mpi
3124   fi
3125  
3059 rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3126   fi
3127  
3062 rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3128   fi
3129  
3065 rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3066   ac_c_werror_flag=$ac_save_c_werror_flag
3130   fi
3131 < { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3132 < echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3133 < if test "$ac_test_CFLAGS" = set; then
3071 <  CFLAGS=$ac_save_CFLAGS
3072 < elif test $ac_cv_prog_cc_g = yes; then
3073 <  if test "$GCC" = yes; then
3074 <    CFLAGS="-g -O2"
3075 <  else
3076 <    CFLAGS="-g"
3077 <  fi
3078 < else
3079 <  if test "$GCC" = yes; then
3080 <    CFLAGS="-O2"
3081 <  else
3082 <    CFLAGS=
3083 <  fi
3131 > { $as_echo "$as_me:$LINENO: result: $acx_cv_mpi_implementation" >&5
3132 > $as_echo "$acx_cv_mpi_implementation" >&6; }
3133 >
3134   fi
3135 < { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3136 < echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3137 < if test "${ac_cv_prog_cc_c89+set}" = set; then
3138 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3139 < else
3090 <  ac_cv_prog_cc_c89=no
3091 < ac_save_CC=$CC
3092 < cat >conftest.$ac_ext <<_ACEOF
3093 < /* confdefs.h.  */
3135 > case $acx_cv_mpi_implementation in
3136 > (lammpi)
3137 >
3138 > cat >>confdefs.h <<\_ACEOF
3139 > #define MPI_IS_LAMMPI 1
3140   _ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h.  */
3098 #include <stdarg.h>
3099 #include <stdio.h>
3100 #include <sys/types.h>
3101 #include <sys/stat.h>
3102 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3103 struct buf { int x; };
3104 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3105 static char *e (p, i)
3106     char **p;
3107     int i;
3108 {
3109  return p[i];
3110 }
3111 static char *f (char * (*g) (char **, int), char **p, ...)
3112 {
3113  char *s;
3114  va_list v;
3115  va_start (v,p);
3116  s = g (p, va_arg (v,int));
3117  va_end (v);
3118  return s;
3119 }
3141  
3142 < /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3143 <   function prototypes and stuff, but not '\xHH' hex character constants.
3123 <   These don't provoke an error unfortunately, instead are silently treated
3124 <   as 'x'.  The following induces an error, until -std is added to get
3125 <   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3126 <   array size at least.  It's necessary to write '\x00'==0 to get something
3127 <   that's true only with -std.  */
3128 < int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3142 >  ;;
3143 > (openmpi)
3144  
3145 < /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3146 <   inside strings and character constants.  */
3147 < #define FOO(x) 'x'
3133 < int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3145 > cat >>confdefs.h <<\_ACEOF
3146 > #define MPI_IS_OPENMPI 1
3147 > _ACEOF
3148  
3149 < int test (int i, double x);
3150 < struct s1 {int (*f) (int a);};
3151 < struct s2 {int (*f) (double a);};
3152 < int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3153 < int argc;
3140 < char **argv;
3141 < int
3142 < main ()
3143 < {
3144 < return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3145 <  ;
3146 <  return 0;
3147 < }
3149 >  ;;
3150 > (mpich)
3151 >
3152 > cat >>confdefs.h <<\_ACEOF
3153 > #define MPI_IS_MPICH 1
3154   _ACEOF
3155 < for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3156 <        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3151 < do
3152 <  CC="$ac_save_CC $ac_arg"
3153 <  rm -rf conftest.$ac_objext
3154 < if { (ac_try="$ac_compile"
3155 < case "(($ac_try" in
3156 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 <  *) ac_try_echo=$ac_try;;
3155 >
3156 >  ;;
3157   esac
3158 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 <  (eval "$ac_compile") 2>conftest.er1
3160 <  ac_status=$?
3161 <  grep -v '^ *+' conftest.er1 >conftest.err
3162 <  rm -f conftest.er1
3163 <  cat conftest.err >&5
3164 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 <  (exit $ac_status); } && {
3167 <         test -z "$ac_c_werror_flag" ||
3168 <         test ! -s conftest.err
3169 <       } && test -s conftest.$ac_objext; then
3170 <  ac_cv_prog_cc_c89=$ac_arg
3158 > if test $acx_cv_mpi_implementation = no; then
3159 >
3160 > acx_mpi_cflags=""
3161 > acx_mpi_libs=""
3162 > USE_MPI="no"
3163 >        { $as_echo "$as_me:$LINENO: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&5
3164 > $as_echo "$as_me: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&2;}
3165   else
3172  echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3166  
3167  
3168 < fi
3168 > { $as_echo "$as_me:$LINENO: checking how to compile MPI-C code" >&5
3169 > $as_echo_n "checking how to compile MPI-C code... " >&6; }
3170 > if test "${acx_mpi_cflags+set}" = set; then
3171 >  $as_echo_n "(cached) " >&6
3172 > else
3173  
3174 < rm -rf core conftest.err conftest.$ac_objext
3175 <  test "x$ac_cv_prog_cc_c89" != "xno" && break
3176 < done
3177 < rm -rf conftest.$ac_ext
3178 < CC=$ac_save_CC
3179 <
3180 < fi
3181 < # AC_CACHE_VAL
3182 < case "x$ac_cv_prog_cc_c89" in
3183 <  x)
3184 <    { echo "$as_me:$LINENO: result: none needed" >&5
3185 < echo "${ECHO_T}none needed" >&6; } ;;
3186 <  xno)
3187 <    { echo "$as_me:$LINENO: result: unsupported" >&5
3188 < echo "${ECHO_T}unsupported" >&6; } ;;
3189 <  *)
3190 <    CC="$CC $ac_cv_prog_cc_c89"
3191 <    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3192 < echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3174 > case $acx_cv_mpi_implementation in
3175 >  (lammpi)
3176 >    cfo="--showme:compile"
3177 >    ;;
3178 >  (openmpi)
3179 >    cfo="--showme:compile"
3180 >    ;;
3181 >  (mpich)
3182 >    case "$acx_mpi_compiler_path" in
3183 >      (*mpiCC)
3184 >        sc_cv_cn="-CC="
3185 >        ;;
3186 >      (*mpicxx)
3187 >        sc_cv_cn="-cxx="
3188 >        ;;
3189 >      (*mpicc)
3190 >        sc_cv_cn="-cc="
3191 >        ;;
3192 >      (*)
3193 >        sc_cv_cn=""
3194 >        ;;
3195 >    esac
3196 >    cfo="-compile_info $sc_cv_cn"
3197 >    ;;
3198   esac
3199 + $as_echo "$as_me:$LINENO: mpi_pre_cflags=\"\`$acx_mpi_compiler_path $cfo || echo ' no'\`\"" >&5
3200 + mpi_pre_cflags="`$acx_mpi_compiler_path $cfo 2>conftest.er1 || echo ' no'`"
3201 + grep -v '^ *+' conftest.er1 >conftest.err
3202 + rm -f conftest.er1
3203 + cat conftest.err >&5
3204 + $as_echo "$as_me:$LINENO: mpi_pre_cflags = $mpi_pre_cflags" >&5
3205 + case "$mpi_pre_cflags" in
3206 +  (*no)
3207 +    acx_mpi_cflags=no
3208 +    acx_mpi_cflags="no"
3209 +    ;;
3210 +  (*)
3211 +    acx_mpi_tmp_mode="normal"
3212 +  acx_mpi_tmp_prefix=""
3213 +  eval "acx_mpi_cflags=\"\""
3214 +  for acx_mpi_tmp in $mpi_pre_cflags; do
3215 +    case "$acx_mpi_tmp_mode" in
3216 +      (normal)
3217 +        case "$acx_mpi_tmp" in
3218 +          (-I|-D)
3219 +            acx_mpi_tmp_prefix="$acx_mpi_tmp"
3220 +            acx_mpi_tmp_mode="accept"
3221 +            ;;
3222 +          (-I*|-D*)
3223 +            eval "acx_mpi_cflags=\"`eval 'as_val=${'\\acx_mpi_cflags'}
3224 +                 $as_echo "$as_val"'` \$acx_mpi_tmp\""
3225 +            ;;
3226 +          (-L|-l)
3227 +            acx_mpi_tmp_mode="skip"
3228 +            ;;
3229 +          (*)
3230 +            ;;
3231 +        esac
3232 +        ;;
3233 +      (accept)
3234 +        eval "acx_mpi_cflags=\"`eval 'as_val=${'\\acx_mpi_cflags'}
3235 +                 $as_echo "$as_val"'` \$acx_mpi_tmp_prefix \$acx_mpi_tmp\""
3236 +        ;;
3237 +      (skip)
3238 +        ;;
3239 +    esac
3240 +  done
3241  
3242 +    ;;
3243 + esac
3244  
3245 < ac_ext=c
3246 < ac_cpp='$CPP $CPPFLAGS'
3247 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
3245 > fi
3246 > { $as_echo "$as_me:$LINENO: result: $acx_mpi_cflags" >&5
3247 > $as_echo "$acx_mpi_cflags" >&6; }
3248  
3249 < ac_ext=${ac_fc_srcext-f}
3250 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3251 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3252 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3253 < if test -n "$ac_tool_prefix"; then
3254 <  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3249 >
3250 > { $as_echo "$as_me:$LINENO: checking how to link MPI-C code" >&5
3251 > $as_echo_n "checking how to link MPI-C code... " >&6; }
3252 > if test "${acx_mpi_libs+set}" = set; then
3253 >  $as_echo_n "(cached) " >&6
3254 > else
3255 >
3256 > case $acx_cv_mpi_implementation in
3257 >  (lammpi)
3258 >    lfo="--showme:compile --showme:link"
3259 >    ;;
3260 >  (openmpi)
3261 >    lfo="--showme:link"
3262 >    ;;
3263 >  (mpich)
3264 >    case "$acx_mpi_compiler_path" in
3265 >      (*mpiCC)
3266 >        sc_cv_cn="-CC="
3267 >        ;;
3268 >      (*mpicxx)
3269 >        sc_cv_cn="-cxx="
3270 >        ;;
3271 >      (*mpicc)
3272 >        sc_cv_cn="-cc="
3273 >        ;;
3274 >      (*)
3275 >        sc_cv_cn=""
3276 >        ;;
3277 >    esac
3278 >    lfo="-link_info $sc_cv_cn"
3279 >    ;;
3280 > esac
3281 > $as_echo "$as_me:$LINENO: mpi_pre_libs=\"\`$acx_mpi_compiler_path $lfo || echo ' no'\`\"" >&5
3282 > mpi_pre_libs="`$acx_mpi_compiler_path $lfo 2>conftest.er1 || echo ' no'`"
3283 > grep -v '^ *+' conftest.er1 >conftest.err
3284 > rm -f conftest.er1
3285 > cat conftest.err >&5
3286 > $as_echo "$as_me:$LINENO: mpi_pre_libs = $mpi_pre_libs" >&5
3287 > case "$mpi_pre_libs" in
3288 >  (*no)
3289 >    acx_mpi_libs=no
3290 >    ;;
3291 >  (*)
3292 >    acx_mpi_libs="$mpi_pre_libs"
3293 >    ;;
3294 > esac
3295 >
3296 > fi
3297 > { $as_echo "$as_me:$LINENO: result: $acx_mpi_libs" >&5
3298 > $as_echo "$acx_mpi_libs" >&6; }
3299 >
3300 > if test $acx_mpi_mpif90_path != no; then
3301 >
3302 >
3303 >  { $as_echo "$as_me:$LINENO: checking how to link MPI-Fortran code" >&5
3304 > $as_echo_n "checking how to link MPI-Fortran code... " >&6; }
3305 > if test "${acx_mpi90_libs+set}" = set; then
3306 >  $as_echo_n "(cached) " >&6
3307 > else
3308 >
3309 >    $as_echo "$as_me:$LINENO: mpi_pre_libs=\"\`$acx_mpi_mpif90_path $lfo || echo \" no\"\`\"" >&5
3310 >    mpi_pre_libs="`$acx_mpi_mpif90_path $lfo 2>conftest.er1 || echo " no"`"
3311 >    grep -v '^ *+' conftest.er1 >conftest.err
3312 >    rm -f conftest.er1
3313 >    cat conftest.err >&5
3314 >    $as_echo "$as_me:$LINENO: mpi_pre_libs = $mpi_pre_libs" >&5
3315 >    case "$mpi_pre_libs" in
3316 >      (*no)
3317 >        acx_mpi90_libs=no
3318 >        ;;
3319 >      (*)
3320 >        acx_mpi90_libs="$mpi_pre_libs"
3321 >        ;;
3322 >    esac
3323 >
3324 > fi
3325 > { $as_echo "$as_me:$LINENO: result: $acx_mpi90_libs" >&5
3326 > $as_echo "$acx_mpi90_libs" >&6; }
3327 >
3328 >
3329 > fi
3330 >
3331 > if test "$acx_mpi_cflags" = no -o "$acx_mpi_libs" = no; then
3332 >
3333 > acx_mpi_cflags=""
3334 > acx_mpi_libs=""
3335 > USE_MPI="no"
3336 >        { $as_echo "$as_me:$LINENO: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&5
3337 > $as_echo "$as_me: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&2;}
3338 > else
3339 >
3340 > MPI_CPPFLAGS=$acx_mpi_cflags
3341 >
3342 > MPI_LIBS=$acx_mpi_libs
3343 >
3344 > if test "$acx_mpi90_libs" != no; then
3345 >  MPI90_LIBS=$acx_mpi90_libs
3346 >
3347 > fi
3348 >
3349 > USE_MPI="yes"
3350 > fi
3351 >
3352 >
3353 > fi
3354 >
3355 >
3356 > fi
3357 >
3358 >
3359 >
3360 > # Checks for programs.
3361 > ac_ext=cpp
3362 > ac_cpp='$CXXCPP $CPPFLAGS'
3363 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3366 > if test -z "$CXX"; then
3367 >  if test -n "$CCC"; then
3368 >    CXX=$CCC
3369 >  else
3370 >    if test -n "$ac_tool_prefix"; then
3371 >  for ac_prog in $CXX $ac_cv_prog_acx_mpi_mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
3372    do
3373      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3374   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3375 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3377 < if test "${ac_cv_prog_FC+set}" = set; then
3378 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3375 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 > $as_echo_n "checking for $ac_word... " >&6; }
3377 > if test "${ac_cv_prog_CXX+set}" = set; then
3378 >  $as_echo_n "(cached) " >&6
3379   else
3380 <  if test -n "$FC"; then
3381 <  ac_cv_prog_FC="$FC" # Let the user override the test.
3380 >  if test -n "$CXX"; then
3381 >  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3382   else
3383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384   for as_dir in $PATH
# Line 3227 | Line 3387 | do
3387    test -z "$as_dir" && as_dir=.
3388    for ac_exec_ext in '' $ac_executable_extensions; do
3389    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3390 <    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
3391 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 >    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3391 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392      break 2
3393    fi
3394   done
# Line 3237 | Line 3397 | fi
3397  
3398   fi
3399   fi
3400 < FC=$ac_cv_prog_FC
3401 < if test -n "$FC"; then
3402 <  { echo "$as_me:$LINENO: result: $FC" >&5
3403 < echo "${ECHO_T}$FC" >&6; }
3400 > CXX=$ac_cv_prog_CXX
3401 > if test -n "$CXX"; then
3402 >  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3403 > $as_echo "$CXX" >&6; }
3404   else
3405 <  { echo "$as_me:$LINENO: result: no" >&5
3406 < echo "${ECHO_T}no" >&6; }
3405 >  { $as_echo "$as_me:$LINENO: result: no" >&5
3406 > $as_echo "no" >&6; }
3407   fi
3408  
3409  
3410 <    test -n "$FC" && break
3410 >    test -n "$CXX" && break
3411    done
3412   fi
3413 < if test -z "$FC"; then
3414 <  ac_ct_FC=$FC
3415 <  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3413 > if test -z "$CXX"; then
3414 >  ac_ct_CXX=$CXX
3415 >  for ac_prog in $CXX $ac_cv_prog_acx_mpi_mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
3416   do
3417    # Extract the first word of "$ac_prog", so it can be a program name with args.
3418   set dummy $ac_prog; ac_word=$2
3419 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3421 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
3422 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3419 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 > $as_echo_n "checking for $ac_word... " >&6; }
3421 > if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3422 >  $as_echo_n "(cached) " >&6
3423   else
3424 <  if test -n "$ac_ct_FC"; then
3425 <  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
3424 >  if test -n "$ac_ct_CXX"; then
3425 >  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3426   else
3427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428   for as_dir in $PATH
# Line 3271 | Line 3431 | do
3431    test -z "$as_dir" && as_dir=.
3432    for ac_exec_ext in '' $ac_executable_extensions; do
3433    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3434 <    ac_cv_prog_ac_ct_FC="$ac_prog"
3435 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 >    ac_cv_prog_ac_ct_CXX="$ac_prog"
3435 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436      break 2
3437    fi
3438   done
# Line 3281 | Line 3441 | fi
3441  
3442   fi
3443   fi
3444 < ac_ct_FC=$ac_cv_prog_ac_ct_FC
3445 < if test -n "$ac_ct_FC"; then
3446 <  { echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
3447 < echo "${ECHO_T}$ac_ct_FC" >&6; }
3444 > ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3445 > if test -n "$ac_ct_CXX"; then
3446 >  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3447 > $as_echo "$ac_ct_CXX" >&6; }
3448   else
3449 <  { echo "$as_me:$LINENO: result: no" >&5
3450 < echo "${ECHO_T}no" >&6; }
3449 >  { $as_echo "$as_me:$LINENO: result: no" >&5
3450 > $as_echo "no" >&6; }
3451   fi
3452  
3453  
3454 <  test -n "$ac_ct_FC" && break
3454 >  test -n "$ac_ct_CXX" && break
3455   done
3456  
3457 <  if test "x$ac_ct_FC" = x; then
3458 <    FC=""
3457 >  if test "x$ac_ct_CXX" = x; then
3458 >    CXX="g++"
3459    else
3460      case $cross_compiling:$ac_tool_warned in
3461   yes:)
3462 < { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3462 > { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3463   whose name does not start with the host triplet.  If you think this
3464   configuration is useful to you, please write to autoconf@gnu.org." >&5
3465 < echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3465 > $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3466   whose name does not start with the host triplet.  If you think this
3467   configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3468   ac_tool_warned=yes ;;
3469   esac
3470 <    FC=$ac_ct_FC
3470 >    CXX=$ac_ct_CXX
3471    fi
3472   fi
3473  
3474 <
3474 >  fi
3475 > fi
3476   # Provide some information about the compiler.
3477 < echo "$as_me:$LINENO: checking for Fortran compiler version" >&5
3478 < ac_compiler=`set X $ac_compile; echo $2`
3477 > $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3478 > set X $ac_compile
3479 > ac_compiler=$2
3480   { (ac_try="$ac_compiler --version >&5"
3481   case "(($ac_try" in
3482    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483    *) ac_try_echo=$ac_try;;
3484   esac
3485 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3486 > $as_echo "$ac_try_echo") >&5
3487    (eval "$ac_compiler --version >&5") 2>&5
3488    ac_status=$?
3489 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490    (exit $ac_status); }
3491   { (ac_try="$ac_compiler -v >&5"
3492   case "(($ac_try" in
3493    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494    *) ac_try_echo=$ac_try;;
3495   esac
3496 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3497 > $as_echo "$ac_try_echo") >&5
3498    (eval "$ac_compiler -v >&5") 2>&5
3499    ac_status=$?
3500 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501    (exit $ac_status); }
3502   { (ac_try="$ac_compiler -V >&5"
3503   case "(($ac_try" in
3504    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505    *) ac_try_echo=$ac_try;;
3506   esac
3507 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3508 > $as_echo "$ac_try_echo") >&5
3509    (eval "$ac_compiler -V >&5") 2>&5
3510    ac_status=$?
3511 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512    (exit $ac_status); }
3348 rm -rf a.out
3513  
3514 < # If we don't use `.F' as extension, the preprocessor is not run on the
3515 < # input file.  (Note that this only needs to work for GNU compilers.)
3516 < ac_save_ext=$ac_ext
3517 < ac_ext=F
3518 < { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
3519 < echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6; }
3356 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then
3357 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3358 < else
3359 <  cat >conftest.$ac_ext <<_ACEOF
3360 <      program main
3361 < #ifndef __GNUC__
3362 <       choke me
3363 < #endif
3514 > cat >conftest.$ac_ext <<_ACEOF
3515 > /* confdefs.h.  */
3516 > _ACEOF
3517 > cat confdefs.h >>conftest.$ac_ext
3518 > cat >>conftest.$ac_ext <<_ACEOF
3519 > /* end confdefs.h.  */
3520  
3521 <      end
3521 > int
3522 > main ()
3523 > {
3524 >
3525 >  ;
3526 >  return 0;
3527 > }
3528   _ACEOF
3529 < rm -rf conftest.$ac_objext
3530 < if { (ac_try="$ac_compile"
3529 > ac_clean_files_save=$ac_clean_files
3530 > ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3531 > # Try to create an executable without -o first, disregard a.out.
3532 > # It will help us diagnose broken compilers, and finding out an intuition
3533 > # of exeext.
3534 > { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
3535 > $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3536 > ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3537 >
3538 > # The possible output files:
3539 > ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3540 >
3541 > ac_rmfiles=
3542 > for ac_file in $ac_files
3543 > do
3544 >  case $ac_file in
3545 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3546 >    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3547 >  esac
3548 > done
3549 > rm -f $ac_rmfiles
3550 >
3551 > if { (ac_try="$ac_link_default"
3552   case "(($ac_try" in
3553    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554    *) ac_try_echo=$ac_try;;
3555   esac
3556 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 <  (eval "$ac_compile") 2>conftest.er1
3556 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3557 > $as_echo "$ac_try_echo") >&5
3558 >  (eval "$ac_link_default") 2>&5
3559    ac_status=$?
3560 <  grep -v '^ *+' conftest.er1 >conftest.err
3561 <  rm -f conftest.er1
3562 <  cat conftest.err >&5
3563 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 <  (exit $ac_status); } && {
3565 <         test -z "$ac_fc_werror_flag" ||
3566 <         test ! -s conftest.err
3567 <       } && test -s conftest.$ac_objext; then
3568 <  ac_compiler_gnu=yes
3560 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 >  (exit $ac_status); }; then
3562 >  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3563 > # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3564 > # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3565 > # so that the user can short-circuit this test for compilers unknown to
3566 > # Autoconf.
3567 > for ac_file in $ac_files ''
3568 > do
3569 >  test -f "$ac_file" || continue
3570 >  case $ac_file in
3571 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3572 >        ;;
3573 >    [ab].out )
3574 >        # We found the default executable, but exeext='' is most
3575 >        # certainly right.
3576 >        break;;
3577 >    *.* )
3578 >        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3579 >        then :; else
3580 >           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3581 >        fi
3582 >        # We set ac_cv_exeext here because the later test for it is not
3583 >        # safe: cross compilers may not add the suffix if given an `-o'
3584 >        # argument, so we may need to know it at that point already.
3585 >        # Even if this section looks crufty: it has the advantage of
3586 >        # actually working.
3587 >        break;;
3588 >    * )
3589 >        break;;
3590 >  esac
3591 > done
3592 > test "$ac_cv_exeext" = no && ac_cv_exeext=
3593 >
3594   else
3595 <  echo "$as_me: failed program was:" >&5
3595 >  ac_file=''
3596 > fi
3597 >
3598 > { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3599 > $as_echo "$ac_file" >&6; }
3600 > if test -z "$ac_file"; then
3601 >  $as_echo "$as_me: failed program was:" >&5
3602   sed 's/^/| /' conftest.$ac_ext >&5
3603  
3604 <        ac_compiler_gnu=no
3604 > { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
3605 > See \`config.log' for more details." >&5
3606 > $as_echo "$as_me: error: C++ compiler cannot create executables
3607 > See \`config.log' for more details." >&2;}
3608 >   { (exit 77); exit 77; }; }
3609   fi
3610  
3611 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 < ac_cv_fc_compiler_gnu=$ac_compiler_gnu
3611 > ac_exeext=$ac_cv_exeext
3612  
3613 + # Check that the compiler produces executables we can run.  If not, either
3614 + # the compiler is broken, or we cross compile.
3615 + { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
3616 + $as_echo_n "checking whether the C++ compiler works... " >&6; }
3617 + # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3618 + # If not cross compiling, check that we can run a simple program.
3619 + if test "$cross_compiling" != yes; then
3620 +  if { ac_try='./$ac_file'
3621 +  { (case "(($ac_try" in
3622 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 +  *) ac_try_echo=$ac_try;;
3624 + esac
3625 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3626 + $as_echo "$ac_try_echo") >&5
3627 +  (eval "$ac_try") 2>&5
3628 +  ac_status=$?
3629 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 +  (exit $ac_status); }; }; then
3631 +    cross_compiling=no
3632 +  else
3633 +    if test "$cross_compiling" = maybe; then
3634 +        cross_compiling=yes
3635 +    else
3636 +        { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
3637 + If you meant to cross compile, use \`--host'.
3638 + See \`config.log' for more details." >&5
3639 + $as_echo "$as_me: error: cannot run C++ compiled programs.
3640 + If you meant to cross compile, use \`--host'.
3641 + See \`config.log' for more details." >&2;}
3642 +   { (exit 1); exit 1; }; }
3643 +    fi
3644 +  fi
3645   fi
3646 < { echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
3647 < echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6; }
3648 < ac_ext=$ac_save_ext
3649 < ac_test_FFLAGS=${FCFLAGS+set}
3650 < ac_save_FFLAGS=$FCFLAGS
3651 < FCFLAGS=
3652 < { echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
3653 < echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6; }
3654 < if test "${ac_cv_prog_fc_g+set}" = set; then
3655 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3646 > { $as_echo "$as_me:$LINENO: result: yes" >&5
3647 > $as_echo "yes" >&6; }
3648 >
3649 > rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3650 > ac_clean_files=$ac_clean_files_save
3651 > # Check that the compiler produces executables we can run.  If not, either
3652 > # the compiler is broken, or we cross compile.
3653 > { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3654 > $as_echo_n "checking whether we are cross compiling... " >&6; }
3655 > { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3656 > $as_echo "$cross_compiling" >&6; }
3657 >
3658 > { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3659 > $as_echo_n "checking for suffix of executables... " >&6; }
3660 > if { (ac_try="$ac_link"
3661 > case "(($ac_try" in
3662 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 >  *) ac_try_echo=$ac_try;;
3664 > esac
3665 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3666 > $as_echo "$ac_try_echo") >&5
3667 >  (eval "$ac_link") 2>&5
3668 >  ac_status=$?
3669 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 >  (exit $ac_status); }; then
3671 >  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3672 > # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3673 > # work properly (i.e., refer to `conftest.exe'), while it won't with
3674 > # `rm'.
3675 > for ac_file in conftest.exe conftest conftest.*; do
3676 >  test -f "$ac_file" || continue
3677 >  case $ac_file in
3678 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3679 >    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3680 >          break;;
3681 >    * ) break;;
3682 >  esac
3683 > done
3684   else
3685 <  FCFLAGS=-g
3686 < cat >conftest.$ac_ext <<_ACEOF
3687 <      program main
3685 >  { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3686 > See \`config.log' for more details." >&5
3687 > $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3688 > See \`config.log' for more details." >&2;}
3689 >   { (exit 1); exit 1; }; }
3690 > fi
3691  
3692 <      end
3692 > rm -f conftest$ac_cv_exeext
3693 > { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3694 > $as_echo "$ac_cv_exeext" >&6; }
3695 >
3696 > rm -f conftest.$ac_ext
3697 > EXEEXT=$ac_cv_exeext
3698 > ac_exeext=$EXEEXT
3699 > { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3700 > $as_echo_n "checking for suffix of object files... " >&6; }
3701 > if test "${ac_cv_objext+set}" = set; then
3702 >  $as_echo_n "(cached) " >&6
3703 > else
3704 >  cat >conftest.$ac_ext <<_ACEOF
3705 > /* confdefs.h.  */
3706   _ACEOF
3707 < rm -rf conftest.$ac_objext
3707 > cat confdefs.h >>conftest.$ac_ext
3708 > cat >>conftest.$ac_ext <<_ACEOF
3709 > /* end confdefs.h.  */
3710 >
3711 > int
3712 > main ()
3713 > {
3714 >
3715 >  ;
3716 >  return 0;
3717 > }
3718 > _ACEOF
3719 > rm -f conftest.o conftest.obj
3720   if { (ac_try="$ac_compile"
3721   case "(($ac_try" in
3722    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723    *) ac_try_echo=$ac_try;;
3724   esac
3725 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3726 <  (eval "$ac_compile") 2>conftest.er1
3725 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3726 > $as_echo "$ac_try_echo") >&5
3727 >  (eval "$ac_compile") 2>&5
3728    ac_status=$?
3729 <  grep -v '^ *+' conftest.er1 >conftest.err
3730 <  rm -f conftest.er1
3731 <  cat conftest.err >&5
3732 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 <  (exit $ac_status); } && {
3734 <         test -z "$ac_fc_werror_flag" ||
3735 <         test ! -s conftest.err
3736 <       } && test -s conftest.$ac_objext; then
3737 <  ac_cv_prog_fc_g=yes
3729 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 >  (exit $ac_status); }; then
3731 >  for ac_file in conftest.o conftest.obj conftest.*; do
3732 >  test -f "$ac_file" || continue;
3733 >  case $ac_file in
3734 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3735 >    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3736 >       break;;
3737 >  esac
3738 > done
3739   else
3740 <  echo "$as_me: failed program was:" >&5
3740 >  $as_echo "$as_me: failed program was:" >&5
3741   sed 's/^/| /' conftest.$ac_ext >&5
3742  
3743 <        ac_cv_prog_fc_g=no
3743 > { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3744 > See \`config.log' for more details." >&5
3745 > $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3746 > See \`config.log' for more details." >&2;}
3747 >   { (exit 1); exit 1; }; }
3748   fi
3749  
3750 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3439 <
3750 > rm -f conftest.$ac_cv_objext conftest.$ac_ext
3751   fi
3752 < { echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
3753 < echo "${ECHO_T}$ac_cv_prog_fc_g" >&6; }
3754 < if test "$ac_test_FFLAGS" = set; then
3755 <  FCFLAGS=$ac_save_FFLAGS
3756 < elif test $ac_cv_prog_fc_g = yes; then
3757 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
3758 <    FCFLAGS="-g -O2"
3759 <  else
3449 <    FCFLAGS="-g"
3450 <  fi
3752 > { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3753 > $as_echo "$ac_cv_objext" >&6; }
3754 > OBJEXT=$ac_cv_objext
3755 > ac_objext=$OBJEXT
3756 > { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3757 > $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3758 > if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3759 >  $as_echo_n "(cached) " >&6
3760   else
3452  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
3453    FCFLAGS="-O2"
3454  else
3455    FCFLAGS=
3456  fi
3457 fi
3458
3459 ac_ext=c
3460 ac_cpp='$CPP $CPPFLAGS'
3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464
3465 ac_ext=c
3466 ac_cpp='$CPP $CPPFLAGS'
3467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3471 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3472 # On Suns, sometimes $CPP names a directory.
3473 if test -n "$CPP" && test -d "$CPP"; then
3474  CPP=
3475 fi
3476 if test -z "$CPP"; then
3477  if test "${ac_cv_prog_CPP+set}" = set; then
3478  echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480      # Double quotes because CPP needs to be expanded
3481    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3482    do
3483      ac_preproc_ok=false
3484 for ac_c_preproc_warn_flag in '' yes
3485 do
3486  # Use a header file that comes with gcc, so configuring glibc
3487  # with a fresh cross-compiler works.
3488  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3489  # <limits.h> exists even on freestanding compilers.
3490  # On the NeXT, cc -E runs the code through the compiler's parser,
3491  # not just through cpp. "Syntax error" is here to catch this case.
3761    cat >conftest.$ac_ext <<_ACEOF
3762   /* confdefs.h.  */
3763   _ACEOF
3764   cat confdefs.h >>conftest.$ac_ext
3765   cat >>conftest.$ac_ext <<_ACEOF
3766   /* end confdefs.h.  */
3767 < #ifdef __STDC__
3768 < # include <limits.h>
3769 < #else
3770 < # include <assert.h>
3767 >
3768 > int
3769 > main ()
3770 > {
3771 > #ifndef __GNUC__
3772 >       choke me
3773   #endif
3774 <                     Syntax error
3774 >
3775 >  ;
3776 >  return 0;
3777 > }
3778   _ACEOF
3779 < if { (ac_try="$ac_cpp conftest.$ac_ext"
3779 > rm -f conftest.$ac_objext
3780 > if { (ac_try="$ac_compile"
3781   case "(($ac_try" in
3782    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783    *) ac_try_echo=$ac_try;;
3784   esac
3785 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3785 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3786 > $as_echo "$ac_try_echo") >&5
3787 >  (eval "$ac_compile") 2>conftest.er1
3788    ac_status=$?
3789    grep -v '^ *+' conftest.er1 >conftest.err
3790 <  rm -rf conftest.er1
3790 >  rm -f conftest.er1
3791    cat conftest.err >&5
3792 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 <  (exit $ac_status); } >/dev/null && {
3794 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3792 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 >  (exit $ac_status); } && {
3794 >         test -z "$ac_cxx_werror_flag" ||
3795           test ! -s conftest.err
3796 <       }; then
3797 <  :
3796 >       } && test -s conftest.$ac_objext; then
3797 >  ac_compiler_gnu=yes
3798   else
3799 <  echo "$as_me: failed program was:" >&5
3799 >  $as_echo "$as_me: failed program was:" >&5
3800   sed 's/^/| /' conftest.$ac_ext >&5
3801  
3802 <  # Broken: fails on valid input.
3527 < continue
3802 >        ac_compiler_gnu=no
3803   fi
3804  
3805 < rm -rf conftest.err conftest.$ac_ext
3805 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 > ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3807  
3808 <  # OK, works on sane cases.  Now check whether nonexistent headers
3809 <  # can be detected and how.
3810 <  cat >conftest.$ac_ext <<_ACEOF
3808 > fi
3809 > { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3810 > $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3811 > if test $ac_compiler_gnu = yes; then
3812 >  GXX=yes
3813 > else
3814 >  GXX=
3815 > fi
3816 > ac_test_CXXFLAGS=${CXXFLAGS+set}
3817 > ac_save_CXXFLAGS=$CXXFLAGS
3818 > { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3819 > $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3820 > if test "${ac_cv_prog_cxx_g+set}" = set; then
3821 >  $as_echo_n "(cached) " >&6
3822 > else
3823 >  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3824 >   ac_cxx_werror_flag=yes
3825 >   ac_cv_prog_cxx_g=no
3826 >   CXXFLAGS="-g"
3827 >   cat >conftest.$ac_ext <<_ACEOF
3828   /* confdefs.h.  */
3829   _ACEOF
3830   cat confdefs.h >>conftest.$ac_ext
3831   cat >>conftest.$ac_ext <<_ACEOF
3832   /* end confdefs.h.  */
3833 < #include <ac_nonexistent.h>
3833 >
3834 > int
3835 > main ()
3836 > {
3837 >
3838 >  ;
3839 >  return 0;
3840 > }
3841   _ACEOF
3842 < if { (ac_try="$ac_cpp conftest.$ac_ext"
3842 > rm -f conftest.$ac_objext
3843 > if { (ac_try="$ac_compile"
3844   case "(($ac_try" in
3845    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846    *) ac_try_echo=$ac_try;;
3847   esac
3848 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3849 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3848 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3849 > $as_echo "$ac_try_echo") >&5
3850 >  (eval "$ac_compile") 2>conftest.er1
3851    ac_status=$?
3852    grep -v '^ *+' conftest.er1 >conftest.err
3853    rm -f conftest.er1
3854    cat conftest.err >&5
3855 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 <  (exit $ac_status); } >/dev/null && {
3857 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3855 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 >  (exit $ac_status); } && {
3857 >         test -z "$ac_cxx_werror_flag" ||
3858           test ! -s conftest.err
3859 <       }; then
3860 <  # Broken: success on invalid input.
3559 < continue
3859 >       } && test -s conftest.$ac_objext; then
3860 >  ac_cv_prog_cxx_g=yes
3861   else
3862 <  echo "$as_me: failed program was:" >&5
3862 >  $as_echo "$as_me: failed program was:" >&5
3863   sed 's/^/| /' conftest.$ac_ext >&5
3864  
3865 <  # Passes both tests.
3866 < ac_preproc_ok=:
3566 < break
3567 < fi
3568 <
3569 < rm -rf conftest.err conftest.$ac_ext
3570 <
3571 < done
3572 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3573 < rm -rf conftest.err conftest.$ac_ext
3574 < if $ac_preproc_ok; then
3575 <  break
3576 < fi
3577 <
3578 <    done
3579 <    ac_cv_prog_CPP=$CPP
3580 <
3581 < fi
3582 <  CPP=$ac_cv_prog_CPP
3583 < else
3584 <  ac_cv_prog_CPP=$CPP
3585 < fi
3586 < { echo "$as_me:$LINENO: result: $CPP" >&5
3587 < echo "${ECHO_T}$CPP" >&6; }
3588 < ac_preproc_ok=false
3589 < for ac_c_preproc_warn_flag in '' yes
3590 < do
3591 <  # Use a header file that comes with gcc, so configuring glibc
3592 <  # with a fresh cross-compiler works.
3593 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3594 <  # <limits.h> exists even on freestanding compilers.
3595 <  # On the NeXT, cc -E runs the code through the compiler's parser,
3596 <  # not just through cpp. "Syntax error" is here to catch this case.
3597 <  cat >conftest.$ac_ext <<_ACEOF
3865 >        CXXFLAGS=""
3866 >      cat >conftest.$ac_ext <<_ACEOF
3867   /* confdefs.h.  */
3868   _ACEOF
3869   cat confdefs.h >>conftest.$ac_ext
3870   cat >>conftest.$ac_ext <<_ACEOF
3871   /* end confdefs.h.  */
3872 < #ifdef __STDC__
3873 < # include <limits.h>
3874 < #else
3875 < # include <assert.h>
3876 < #endif
3877 <                     Syntax error
3872 >
3873 > int
3874 > main ()
3875 > {
3876 >
3877 >  ;
3878 >  return 0;
3879 > }
3880   _ACEOF
3881 < if { (ac_try="$ac_cpp conftest.$ac_ext"
3881 > rm -f conftest.$ac_objext
3882 > if { (ac_try="$ac_compile"
3883   case "(($ac_try" in
3884    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885    *) ac_try_echo=$ac_try;;
3886   esac
3887 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3888 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3887 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3888 > $as_echo "$ac_try_echo") >&5
3889 >  (eval "$ac_compile") 2>conftest.er1
3890    ac_status=$?
3891    grep -v '^ *+' conftest.er1 >conftest.err
3892    rm -f conftest.er1
3893    cat conftest.err >&5
3894 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 <  (exit $ac_status); } >/dev/null && {
3896 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3894 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 >  (exit $ac_status); } && {
3896 >         test -z "$ac_cxx_werror_flag" ||
3897           test ! -s conftest.err
3898 <       }; then
3898 >       } && test -s conftest.$ac_objext; then
3899    :
3900   else
3901 <  echo "$as_me: failed program was:" >&5
3901 >  $as_echo "$as_me: failed program was:" >&5
3902   sed 's/^/| /' conftest.$ac_ext >&5
3903  
3904 <  # Broken: fails on valid input.
3905 < continue
3906 < fi
3634 <
3635 < rm -rf conftest.err conftest.$ac_ext
3636 <
3637 <  # OK, works on sane cases.  Now check whether nonexistent headers
3638 <  # can be detected and how.
3639 <  cat >conftest.$ac_ext <<_ACEOF
3904 >        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3905 >         CXXFLAGS="-g"
3906 >         cat >conftest.$ac_ext <<_ACEOF
3907   /* confdefs.h.  */
3908   _ACEOF
3909   cat confdefs.h >>conftest.$ac_ext
3910   cat >>conftest.$ac_ext <<_ACEOF
3911   /* end confdefs.h.  */
3912 < #include <ac_nonexistent.h>
3912 >
3913 > int
3914 > main ()
3915 > {
3916 >
3917 >  ;
3918 >  return 0;
3919 > }
3920   _ACEOF
3921 < if { (ac_try="$ac_cpp conftest.$ac_ext"
3921 > rm -f conftest.$ac_objext
3922 > if { (ac_try="$ac_compile"
3923   case "(($ac_try" in
3924    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925    *) ac_try_echo=$ac_try;;
3926   esac
3927 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3928 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3927 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3928 > $as_echo "$ac_try_echo") >&5
3929 >  (eval "$ac_compile") 2>conftest.er1
3930    ac_status=$?
3931    grep -v '^ *+' conftest.er1 >conftest.err
3932    rm -f conftest.er1
3933    cat conftest.err >&5
3934 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 <  (exit $ac_status); } >/dev/null && {
3936 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3934 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 >  (exit $ac_status); } && {
3936 >         test -z "$ac_cxx_werror_flag" ||
3937           test ! -s conftest.err
3938 <       }; then
3939 <  # Broken: success on invalid input.
3664 < continue
3938 >       } && test -s conftest.$ac_objext; then
3939 >  ac_cv_prog_cxx_g=yes
3940   else
3941 <  echo "$as_me: failed program was:" >&5
3941 >  $as_echo "$as_me: failed program was:" >&5
3942   sed 's/^/| /' conftest.$ac_ext >&5
3943  
3944 <  # Passes both tests.
3670 < ac_preproc_ok=:
3671 < break
3944 >
3945   fi
3946  
3947 < rm -rf conftest.err conftest.$ac_ext
3947 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3948 > fi
3949  
3950 < done
3677 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3678 < rm -rf conftest.err conftest.$ac_ext
3679 < if $ac_preproc_ok; then
3680 <  :
3681 < else
3682 <  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3683 < See \`config.log' for more details." >&5
3684 < echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3685 < See \`config.log' for more details." >&2;}
3686 <   { (exit 1); exit 1; }; }
3950 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951   fi
3952  
3953 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954 +   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3955 + fi
3956 + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3957 + $as_echo "$ac_cv_prog_cxx_g" >&6; }
3958 + if test "$ac_test_CXXFLAGS" = set; then
3959 +  CXXFLAGS=$ac_save_CXXFLAGS
3960 + elif test $ac_cv_prog_cxx_g = yes; then
3961 +  if test "$GXX" = yes; then
3962 +    CXXFLAGS="-g -O2"
3963 +  else
3964 +    CXXFLAGS="-g"
3965 +  fi
3966 + else
3967 +  if test "$GXX" = yes; then
3968 +    CXXFLAGS="-O2"
3969 +  else
3970 +    CXXFLAGS=
3971 +  fi
3972 + fi
3973   ac_ext=c
3974   ac_cpp='$CPP $CPPFLAGS'
3975   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3978  
3979 < { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3980 < echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3981 < if test "${ac_cv_path_GREP+set}" = set; then
3982 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3979 > ac_ext=c
3980 > ac_cpp='$CPP $CPPFLAGS'
3981 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984 > if test -n "$ac_tool_prefix"; then
3985 >  for ac_prog in $CC $ac_cv_prog_acx_mpi_mpicc icc pathcc pgcc cc xlc gcc
3986 >  do
3987 >    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3988 > set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3989 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3990 > $as_echo_n "checking for $ac_word... " >&6; }
3991 > if test "${ac_cv_prog_CC+set}" = set; then
3992 >  $as_echo_n "(cached) " >&6
3993   else
3994 <  # Extract the first word of "grep ggrep" to use in msg output
3995 < if test -z "$GREP"; then
3702 < set dummy grep ggrep; ac_prog_name=$2
3703 < if test "${ac_cv_path_GREP+set}" = set; then
3704 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3994 >  if test -n "$CC"; then
3995 >  ac_cv_prog_CC="$CC" # Let the user override the test.
3996   else
3706  ac_path_GREP_found=false
3707 # Loop through the user's path and test for each of PROGNAME-LIST
3997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 < for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3998 > for as_dir in $PATH
3999   do
4000    IFS=$as_save_IFS
4001    test -z "$as_dir" && as_dir=.
3713  for ac_prog in grep ggrep; do
4002    for ac_exec_ext in '' $ac_executable_extensions; do
4003 <    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4004 <    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4005 <    # Check for GNU ac_path_GREP and select it if it is found.
4006 <  # Check for GNU $ac_path_GREP
4007 < case `"$ac_path_GREP" --version 2>&1` in
3720 < *GNU*)
3721 <  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3722 < *)
3723 <  ac_count=0
3724 <  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3725 <  while :
3726 <  do
3727 <    cat "conftest.in" "conftest.in" >"conftest.tmp"
3728 <    mv "conftest.tmp" "conftest.in"
3729 <    cp "conftest.in" "conftest.nl"
3730 <    echo 'GREP' >> "conftest.nl"
3731 <    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3732 <    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3733 <    ac_count=`expr $ac_count + 1`
3734 <    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3735 <      # Best one so far, save it but keep looking for a better one
3736 <      ac_cv_path_GREP="$ac_path_GREP"
3737 <      ac_path_GREP_max=$ac_count
3738 <    fi
3739 <    # 10*(2^10) chars as input seems more than enough
3740 <    test $ac_count -gt 10 && break
3741 <  done
3742 <  rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
3743 < esac
3744 <
3745 <
3746 <    $ac_path_GREP_found && break 3
3747 <  done
4003 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4004 >    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4005 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 >    break 2
4007 >  fi
4008   done
3749
4009   done
4010   IFS=$as_save_IFS
4011  
3753
4012   fi
3755
3756 GREP="$ac_cv_path_GREP"
3757 if test -z "$GREP"; then
3758  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3759 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3760   { (exit 1); exit 1; }; }
4013   fi
4014 <
4014 > CC=$ac_cv_prog_CC
4015 > if test -n "$CC"; then
4016 >  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4017 > $as_echo "$CC" >&6; }
4018   else
4019 <  ac_cv_path_GREP=$GREP
4019 >  { $as_echo "$as_me:$LINENO: result: no" >&5
4020 > $as_echo "no" >&6; }
4021   fi
4022  
4023  
4024 +    test -n "$CC" && break
4025 +  done
4026   fi
4027 < { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4028 < echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4029 < GREP="$ac_cv_path_GREP"
4030 <
4031 <
4032 < { echo "$as_me:$LINENO: checking for egrep" >&5
4033 < echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4034 < if test "${ac_cv_path_EGREP+set}" = set; then
4035 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4027 > if test -z "$CC"; then
4028 >  ac_ct_CC=$CC
4029 >  for ac_prog in $CC $ac_cv_prog_acx_mpi_mpicc icc pathcc pgcc cc xlc gcc
4030 > do
4031 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
4032 > set dummy $ac_prog; ac_word=$2
4033 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 > $as_echo_n "checking for $ac_word... " >&6; }
4035 > if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4036 >  $as_echo_n "(cached) " >&6
4037   else
4038 <  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4039 <   then ac_cv_path_EGREP="$GREP -E"
3781 <   else
3782 <     # Extract the first word of "egrep" to use in msg output
3783 < if test -z "$EGREP"; then
3784 < set dummy egrep; ac_prog_name=$2
3785 < if test "${ac_cv_path_EGREP+set}" = set; then
3786 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4038 >  if test -n "$ac_ct_CC"; then
4039 >  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4040   else
3788  ac_path_EGREP_found=false
3789 # Loop through the user's path and test for each of PROGNAME-LIST
4041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 < for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4042 > for as_dir in $PATH
4043   do
4044    IFS=$as_save_IFS
4045    test -z "$as_dir" && as_dir=.
3795  for ac_prog in egrep; do
4046    for ac_exec_ext in '' $ac_executable_extensions; do
3797    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3798    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3799    # Check for GNU ac_path_EGREP and select it if it is found.
3800  # Check for GNU $ac_path_EGREP
3801 case `"$ac_path_EGREP" --version 2>&1` in
3802 *GNU*)
3803  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3804 *)
3805  ac_count=0
3806  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3807  while :
3808  do
3809    cat "conftest.in" "conftest.in" >"conftest.tmp"
3810    mv "conftest.tmp" "conftest.in"
3811    cp "conftest.in" "conftest.nl"
3812    echo 'EGREP' >> "conftest.nl"
3813    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3814    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3815    ac_count=`expr $ac_count + 1`
3816    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3817      # Best one so far, save it but keep looking for a better one
3818      ac_cv_path_EGREP="$ac_path_EGREP"
3819      ac_path_EGREP_max=$ac_count
3820    fi
3821    # 10*(2^10) chars as input seems more than enough
3822    test $ac_count -gt 10 && break
3823  done
3824  rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
3825 esac
3826
3827
3828    $ac_path_EGREP_found && break 3
3829  done
3830 done
3831
3832 done
3833 IFS=$as_save_IFS
3834
3835
3836 fi
3837
3838 EGREP="$ac_cv_path_EGREP"
3839 if test -z "$EGREP"; then
3840  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3841 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3842   { (exit 1); exit 1; }; }
3843 fi
3844
3845 else
3846  ac_cv_path_EGREP=$EGREP
3847 fi
3848
3849
3850   fi
3851 fi
3852 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3853 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3854 EGREP="$ac_cv_path_EGREP"
3855
3856
3857 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3858 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3859 LN_S=$as_ln_s
3860 if test "$LN_S" = "ln -s"; then
3861  { echo "$as_me:$LINENO: result: yes" >&5
3862 echo "${ECHO_T}yes" >&6; }
3863 else
3864  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3865 echo "${ECHO_T}no, using $LN_S" >&6; }
3866 fi
3867
3868 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3869 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3870 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3871 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3872  echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874  cat >conftest.make <<\_ACEOF
3875 SHELL = /bin/sh
3876 all:
3877        @echo '@@@%%%=$(MAKE)=@@@%%%'
3878 _ACEOF
3879 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3880 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3881  *@@@%%%=?*=@@@%%%*)
3882    eval ac_cv_prog_make_${ac_make}_set=yes;;
3883  *)
3884    eval ac_cv_prog_make_${ac_make}_set=no;;
3885 esac
3886 rm -rf conftest.make
3887 fi
3888 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3889  { echo "$as_me:$LINENO: result: yes" >&5
3890 echo "${ECHO_T}yes" >&6; }
3891  SET_MAKE=
3892 else
3893  { echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6; }
3895  SET_MAKE="MAKE=${MAKE-make}"
3896 fi
3897
3898 if test -n "$ac_tool_prefix"; then
3899  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3900 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3903 if test "${ac_cv_prog_RANLIB+set}" = set; then
3904  echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906  if test -n "$RANLIB"; then
3907  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3908 else
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912  IFS=$as_save_IFS
3913  test -z "$as_dir" && as_dir=.
3914  for ac_exec_ext in '' $ac_executable_extensions; do
4047    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048 <    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4049 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 >    ac_cv_prog_ac_ct_CC="$ac_prog"
4049 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050      break 2
4051    fi
4052   done
# Line 3923 | Line 4055 | fi
4055  
4056   fi
4057   fi
4058 < RANLIB=$ac_cv_prog_RANLIB
4059 < if test -n "$RANLIB"; then
4060 <  { echo "$as_me:$LINENO: result: $RANLIB" >&5
4061 < echo "${ECHO_T}$RANLIB" >&6; }
4058 > ac_ct_CC=$ac_cv_prog_ac_ct_CC
4059 > if test -n "$ac_ct_CC"; then
4060 >  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4061 > $as_echo "$ac_ct_CC" >&6; }
4062   else
4063 <  { echo "$as_me:$LINENO: result: no" >&5
4064 < echo "${ECHO_T}no" >&6; }
4063 >  { $as_echo "$as_me:$LINENO: result: no" >&5
4064 > $as_echo "no" >&6; }
4065   fi
4066  
4067  
4068 < fi
3937 < if test -z "$ac_cv_prog_RANLIB"; then
3938 <  ac_ct_RANLIB=$RANLIB
3939 <  # Extract the first word of "ranlib", so it can be a program name with args.
3940 < set dummy ranlib; ac_word=$2
3941 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
3942 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3943 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3944 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3945 < else
3946 <  if test -n "$ac_ct_RANLIB"; then
3947 <  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3948 < else
3949 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 < for as_dir in $PATH
3951 < do
3952 <  IFS=$as_save_IFS
3953 <  test -z "$as_dir" && as_dir=.
3954 <  for ac_exec_ext in '' $ac_executable_extensions; do
3955 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956 <    ac_cv_prog_ac_ct_RANLIB="ranlib"
3957 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 <    break 2
3959 <  fi
4068 >  test -n "$ac_ct_CC" && break
4069   done
3961 done
3962 IFS=$as_save_IFS
4070  
4071 < fi
4072 < fi
3966 < ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3967 < if test -n "$ac_ct_RANLIB"; then
3968 <  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3969 < echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3970 < else
3971 <  { echo "$as_me:$LINENO: result: no" >&5
3972 < echo "${ECHO_T}no" >&6; }
3973 < fi
3974 <
3975 <  if test "x$ac_ct_RANLIB" = x; then
3976 <    RANLIB=":"
4071 >  if test "x$ac_ct_CC" = x; then
4072 >    CC=""
4073    else
4074      case $cross_compiling:$ac_tool_warned in
4075   yes:)
4076 < { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4076 > { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4077   whose name does not start with the host triplet.  If you think this
4078   configuration is useful to you, please write to autoconf@gnu.org." >&5
4079 < echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4079 > $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4080   whose name does not start with the host triplet.  If you think this
4081   configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4082   ac_tool_warned=yes ;;
4083   esac
4084 <    RANLIB=$ac_ct_RANLIB
4084 >    CC=$ac_ct_CC
4085    fi
3990 else
3991  RANLIB="$ac_cv_prog_RANLIB"
4086   fi
4087  
4088  
4089 <   # Extract the first word of "perl", so it can be a program name with args.
4090 < set dummy perl; ac_word=$2
4091 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
4092 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4093 < if test "${ac_cv_path_PERLINTERP+set}" = set; then
4000 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4001 < else
4002 <  case $PERLINTERP in
4003 <  [\\/]* | ?:[\\/]*)
4004 <  ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
4005 <  ;;
4006 <  *)
4007 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 < for as_dir in $PATH
4009 < do
4010 <  IFS=$as_save_IFS
4011 <  test -z "$as_dir" && as_dir=.
4012 <  for ac_exec_ext in '' $ac_executable_extensions; do
4013 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014 <    ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
4015 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 <    break 2
4017 <  fi
4018 < done
4019 < done
4020 < IFS=$as_save_IFS
4089 > test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4090 > See \`config.log' for more details." >&5
4091 > $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4092 > See \`config.log' for more details." >&2;}
4093 >   { (exit 1); exit 1; }; }
4094  
4095 <  test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
4096 <  ;;
4095 > # Provide some information about the compiler.
4096 > $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4097 > set X $ac_compile
4098 > ac_compiler=$2
4099 > { (ac_try="$ac_compiler --version >&5"
4100 > case "(($ac_try" in
4101 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 >  *) ac_try_echo=$ac_try;;
4103   esac
4104 < fi
4105 < PERLINTERP=$ac_cv_path_PERLINTERP
4106 < if test -n "$PERLINTERP"; then
4107 <  { echo "$as_me:$LINENO: result: $PERLINTERP" >&5
4108 < echo "${ECHO_T}$PERLINTERP" >&6; }
4104 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4105 > $as_echo "$ac_try_echo") >&5
4106 >  (eval "$ac_compiler --version >&5") 2>&5
4107 >  ac_status=$?
4108 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 >  (exit $ac_status); }
4110 > { (ac_try="$ac_compiler -v >&5"
4111 > case "(($ac_try" in
4112 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 >  *) ac_try_echo=$ac_try;;
4114 > esac
4115 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4116 > $as_echo "$ac_try_echo") >&5
4117 >  (eval "$ac_compiler -v >&5") 2>&5
4118 >  ac_status=$?
4119 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 >  (exit $ac_status); }
4121 > { (ac_try="$ac_compiler -V >&5"
4122 > case "(($ac_try" in
4123 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 >  *) ac_try_echo=$ac_try;;
4125 > esac
4126 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4127 > $as_echo "$ac_try_echo") >&5
4128 >  (eval "$ac_compiler -V >&5") 2>&5
4129 >  ac_status=$?
4130 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 >  (exit $ac_status); }
4132 >
4133 > { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4134 > $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4135 > if test "${ac_cv_c_compiler_gnu+set}" = set; then
4136 >  $as_echo_n "(cached) " >&6
4137   else
4138 <  { echo "$as_me:$LINENO: result: no" >&5
4139 < echo "${ECHO_T}no" >&6; }
4140 < fi
4138 >  cat >conftest.$ac_ext <<_ACEOF
4139 > /* confdefs.h.  */
4140 > _ACEOF
4141 > cat confdefs.h >>conftest.$ac_ext
4142 > cat >>conftest.$ac_ext <<_ACEOF
4143 > /* end confdefs.h.  */
4144  
4145 + int
4146 + main ()
4147 + {
4148 + #ifndef __GNUC__
4149 +       choke me
4150 + #endif
4151  
4152 <   ac_cv_path_perlinterp="$PERLINTERP"
4153 <   _sHpB='#!'
4154 <
4155 <
4156 < # Check whether --with-perl-shebang was given.
4157 < if test "${with_perl_shebang+set}" = set; then
4158 <  withval=$with_perl_shebang; opt_perl_shebang="$withval"
4152 >  ;
4153 >  return 0;
4154 > }
4155 > _ACEOF
4156 > rm -f conftest.$ac_objext
4157 > if { (ac_try="$ac_compile"
4158 > case "(($ac_try" in
4159 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 >  *) ac_try_echo=$ac_try;;
4161 > esac
4162 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4163 > $as_echo "$ac_try_echo") >&5
4164 >  (eval "$ac_compile") 2>conftest.er1
4165 >  ac_status=$?
4166 >  grep -v '^ *+' conftest.er1 >conftest.err
4167 >  rm -f conftest.er1
4168 >  cat conftest.err >&5
4169 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 >  (exit $ac_status); } && {
4171 >         test -z "$ac_c_werror_flag" ||
4172 >         test ! -s conftest.err
4173 >       } && test -s conftest.$ac_objext; then
4174 >  ac_compiler_gnu=yes
4175   else
4176 <                opt_perl_shebang="not_set"
4176 >  $as_echo "$as_me: failed program was:" >&5
4177 > sed 's/^/| /' conftest.$ac_ext >&5
4178 >
4179 >        ac_compiler_gnu=no
4180   fi
4181  
4182 <   { echo "$as_me:$LINENO: checking whether explicit instead of detected sharpbang is to be used" >&5
4183 < echo $ECHO_N "checking whether explicit instead of detected sharpbang is to be used... $ECHO_C" >&6; }
4049 < if test "${ax_cv_opt_perl_shebang+set}" = set; then
4050 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4051 < else
4052 <   case "$opt_perl_shebang" in
4053 <                      not_set  ) ax_cv_opt_perl_shebang=''
4054 <                               ;;
4055 <                         *     )
4056 <        ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
4057 <                    esac
4182 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 > ac_cv_c_compiler_gnu=$ac_compiler_gnu
4184  
4185   fi
4186 < { echo "$as_me:$LINENO: result: $ax_cv_opt_perl_shebang" >&5
4187 < echo "${ECHO_T}$ax_cv_opt_perl_shebang" >&6; }
4188 <   if test "A$ax_cv_opt_perl_shebang" != "A"
4189 <     then
4190 <       ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
4191 <       PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
4192 <              { echo "$as_me:$LINENO: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
4193 < echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
4186 > { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4187 > $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4188 > if test $ac_compiler_gnu = yes; then
4189 >  GCC=yes
4190 > else
4191 >  GCC=
4192 > fi
4193 > ac_test_CFLAGS=${CFLAGS+set}
4194 > ac_save_CFLAGS=$CFLAGS
4195 > { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4196 > $as_echo_n "checking whether $CC accepts -g... " >&6; }
4197 > if test "${ac_cv_prog_cc_g+set}" = set; then
4198 >  $as_echo_n "(cached) " >&6
4199 > else
4200 >  ac_save_c_werror_flag=$ac_c_werror_flag
4201 >   ac_c_werror_flag=yes
4202 >   ac_cv_prog_cc_g=no
4203 >   CFLAGS="-g"
4204 >   cat >conftest.$ac_ext <<_ACEOF
4205 > /* confdefs.h.  */
4206 > _ACEOF
4207 > cat confdefs.h >>conftest.$ac_ext
4208 > cat >>conftest.$ac_ext <<_ACEOF
4209 > /* end confdefs.h.  */
4210  
4211 < # Automatic detection of sharpbang formula starts here
4212 <     else
4213 <   _somian_shbangperl=`$PERLINTERP -V:startperl`
4214 <   negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
4215 <   { echo "$as_me:$LINENO: checking for kernel sharpbang invocation to start perl" >&5
4216 < echo $ECHO_N "checking for kernel sharpbang invocation to start perl... $ECHO_C" >&6; }
4217 < if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then
4218 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4211 > int
4212 > main ()
4213 > {
4214 >
4215 >  ;
4216 >  return 0;
4217 > }
4218 > _ACEOF
4219 > rm -f conftest.$ac_objext
4220 > if { (ac_try="$ac_compile"
4221 > case "(($ac_try" in
4222 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 >  *) ac_try_echo=$ac_try;;
4224 > esac
4225 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4226 > $as_echo "$ac_try_echo") >&5
4227 >  (eval "$ac_compile") 2>conftest.er1
4228 >  ac_status=$?
4229 >  grep -v '^ *+' conftest.er1 >conftest.err
4230 >  rm -f conftest.er1
4231 >  cat conftest.err >&5
4232 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 >  (exit $ac_status); } && {
4234 >         test -z "$ac_c_werror_flag" ||
4235 >         test ! -s conftest.err
4236 >       } && test -s conftest.$ac_objext; then
4237 >  ac_cv_prog_cc_g=yes
4238   else
4239 <  _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
4240 <        if test "x$_somian_kspb_perl" == x
4080 <          then _somian_ksbp_warn_empty='durnit'
4081 <          else
4082 <          case "A$_somian_kspb_perl" in
4083 <                 A#!*perl* )
4084 <           ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
4085 <                        ;;
4086 <                     A*    )  _somian_ksbp_warn_defau='trouble'
4087 <                              ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
4088 <          esac
4089 <        fi
4239 >  $as_echo "$as_me: failed program was:" >&5
4240 > sed 's/^/| /' conftest.$ac_ext >&5
4241  
4242 < fi
4243 < { echo "$as_me:$LINENO: result: $ac_cv_sys_kernshrpbang_perl" >&5
4244 < echo "${ECHO_T}$ac_cv_sys_kernshrpbang_perl" >&6; }
4245 < # The above prints Checking ... result message to user.
4246 <   PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
4242 >        CFLAGS=""
4243 >      cat >conftest.$ac_ext <<_ACEOF
4244 > /* confdefs.h.  */
4245 > _ACEOF
4246 > cat confdefs.h >>conftest.$ac_ext
4247 > cat >>conftest.$ac_ext <<_ACEOF
4248 > /* end confdefs.h.  */
4249  
4250 <    if test A${_somian_ksbp_warn_empty+set} == Aset
4251 <      then   { echo "$as_me:$LINENO: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
4252 < echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
4100 <    fi
4101 < # Inform user after printing result value
4102 <    if test A${_somian_ksbp_warn_defau+set} == Aset
4103 <      then { echo "$as_me:$LINENO: Maybe Not good -" >&5
4104 < echo "$as_me: Maybe Not good -" >&6;}
4105 <           { echo "$as_me:$LINENO: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
4106 < echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
4107 <      else { echo "$as_me:$LINENO: OK Good result - " >&5
4108 < echo "$as_me: OK Good result - " >&6;}
4109 <           { echo "$as_me:$LINENO: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
4110 < echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
4111 <    fi
4112 <  fi
4250 > int
4251 > main ()
4252 > {
4253  
4254 < # Find a good install program.  We prefer a C program (faster),
4255 < # so one script is as good as another.  But avoid the broken or
4256 < # incompatible versions:
4257 < # SysV /etc/install, /usr/sbin/install
4258 < # SunOS /usr/etc/install
4259 < # IRIX /sbin/install
4260 < # AIX /bin/install
4261 < # AmigaOS /C/install, which installs bootblocks on floppy discs
4262 < # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4263 < # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4264 < # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4265 < # OS/2's system install, which has a completely different semantic
4266 < # ./install, which can be erroneously created by make from ./install.sh.
4267 < { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4268 < echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4269 < if test -z "$INSTALL"; then
4270 < if test "${ac_cv_path_install+set}" = set; then
4271 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4254 >  ;
4255 >  return 0;
4256 > }
4257 > _ACEOF
4258 > rm -f conftest.$ac_objext
4259 > if { (ac_try="$ac_compile"
4260 > case "(($ac_try" in
4261 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 >  *) ac_try_echo=$ac_try;;
4263 > esac
4264 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4265 > $as_echo "$ac_try_echo") >&5
4266 >  (eval "$ac_compile") 2>conftest.er1
4267 >  ac_status=$?
4268 >  grep -v '^ *+' conftest.er1 >conftest.err
4269 >  rm -f conftest.er1
4270 >  cat conftest.err >&5
4271 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 >  (exit $ac_status); } && {
4273 >         test -z "$ac_c_werror_flag" ||
4274 >         test ! -s conftest.err
4275 >       } && test -s conftest.$ac_objext; then
4276 >  :
4277   else
4278 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 < for as_dir in $PATH
4280 < do
4281 <  IFS=$as_save_IFS
4282 <  test -z "$as_dir" && as_dir=.
4283 <  # Account for people who put trailing slashes in PATH elements.
4284 < case $as_dir/ in
4285 <  ./ | .// | /cC/* | \
4286 <  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4287 <  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4288 <  /usr/ucb/* ) ;;
4289 <  *)
4290 <    # OSF1 and SCO ODT 3.0 have their own names for install.
4291 <    # Don't use installbsd from OSF since it installs stuff as root
4292 <    # by default.
4293 <    for ac_prog in ginstall scoinst install; do
4294 <      for ac_exec_ext in '' $ac_executable_extensions; do
4295 <        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4296 <          if test $ac_prog = install &&
4297 <            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4298 <            # AIX install.  It has an incompatible calling convention.
4299 <            :
4300 <          elif test $ac_prog = install &&
4301 <            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4302 <            # program-specific install script used by HP pwplus--don't use.
4158 <            :
4159 <          else
4160 <            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4161 <            break 3
4162 <          fi
4163 <        fi
4164 <      done
4165 <    done
4166 <    ;;
4278 >  $as_echo "$as_me: failed program was:" >&5
4279 > sed 's/^/| /' conftest.$ac_ext >&5
4280 >
4281 >        ac_c_werror_flag=$ac_save_c_werror_flag
4282 >         CFLAGS="-g"
4283 >         cat >conftest.$ac_ext <<_ACEOF
4284 > /* confdefs.h.  */
4285 > _ACEOF
4286 > cat confdefs.h >>conftest.$ac_ext
4287 > cat >>conftest.$ac_ext <<_ACEOF
4288 > /* end confdefs.h.  */
4289 >
4290 > int
4291 > main ()
4292 > {
4293 >
4294 >  ;
4295 >  return 0;
4296 > }
4297 > _ACEOF
4298 > rm -f conftest.$ac_objext
4299 > if { (ac_try="$ac_compile"
4300 > case "(($ac_try" in
4301 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 >  *) ac_try_echo=$ac_try;;
4303   esac
4304 < done
4305 < IFS=$as_save_IFS
4304 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4305 > $as_echo "$ac_try_echo") >&5
4306 >  (eval "$ac_compile") 2>conftest.er1
4307 >  ac_status=$?
4308 >  grep -v '^ *+' conftest.er1 >conftest.err
4309 >  rm -f conftest.er1
4310 >  cat conftest.err >&5
4311 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 >  (exit $ac_status); } && {
4313 >         test -z "$ac_c_werror_flag" ||
4314 >         test ! -s conftest.err
4315 >       } && test -s conftest.$ac_objext; then
4316 >  ac_cv_prog_cc_g=yes
4317 > else
4318 >  $as_echo "$as_me: failed program was:" >&5
4319 > sed 's/^/| /' conftest.$ac_ext >&5
4320  
4321  
4322   fi
4323 <  if test "${ac_cv_path_install+set}" = set; then
4324 <    INSTALL=$ac_cv_path_install
4323 >
4324 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325 > fi
4326 >
4327 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328 > fi
4329 >
4330 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 >   ac_c_werror_flag=$ac_save_c_werror_flag
4332 > fi
4333 > { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4334 > $as_echo "$ac_cv_prog_cc_g" >&6; }
4335 > if test "$ac_test_CFLAGS" = set; then
4336 >  CFLAGS=$ac_save_CFLAGS
4337 > elif test $ac_cv_prog_cc_g = yes; then
4338 >  if test "$GCC" = yes; then
4339 >    CFLAGS="-g -O2"
4340    else
4341 <    # As a last resort, use the slow shell script.  Don't cache a
4177 <    # value for INSTALL within a source directory, because that will
4178 <    # break other packages using the cache if that directory is
4179 <    # removed, or if the value is a relative name.
4180 <    INSTALL=$ac_install_sh
4341 >    CFLAGS="-g"
4342    fi
4343 + else
4344 +  if test "$GCC" = yes; then
4345 +    CFLAGS="-O2"
4346 +  else
4347 +    CFLAGS=
4348 +  fi
4349   fi
4350 < { echo "$as_me:$LINENO: result: $INSTALL" >&5
4351 < echo "${ECHO_T}$INSTALL" >&6; }
4350 > { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4351 > $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4352 > if test "${ac_cv_prog_cc_c89+set}" = set; then
4353 >  $as_echo_n "(cached) " >&6
4354 > else
4355 >  ac_cv_prog_cc_c89=no
4356 > ac_save_CC=$CC
4357 > cat >conftest.$ac_ext <<_ACEOF
4358 > /* confdefs.h.  */
4359 > _ACEOF
4360 > cat confdefs.h >>conftest.$ac_ext
4361 > cat >>conftest.$ac_ext <<_ACEOF
4362 > /* end confdefs.h.  */
4363 > #include <stdarg.h>
4364 > #include <stdio.h>
4365 > #include <sys/types.h>
4366 > #include <sys/stat.h>
4367 > /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4368 > struct buf { int x; };
4369 > FILE * (*rcsopen) (struct buf *, struct stat *, int);
4370 > static char *e (p, i)
4371 >     char **p;
4372 >     int i;
4373 > {
4374 >  return p[i];
4375 > }
4376 > static char *f (char * (*g) (char **, int), char **p, ...)
4377 > {
4378 >  char *s;
4379 >  va_list v;
4380 >  va_start (v,p);
4381 >  s = g (p, va_arg (v,int));
4382 >  va_end (v);
4383 >  return s;
4384 > }
4385  
4386 < # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4387 < # It thinks the first close brace ends the variable substitution.
4388 < test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4386 > /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4387 >   function prototypes and stuff, but not '\xHH' hex character constants.
4388 >   These don't provoke an error unfortunately, instead are silently treated
4389 >   as 'x'.  The following induces an error, until -std is added to get
4390 >   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4391 >   array size at least.  It's necessary to write '\x00'==0 to get something
4392 >   that's true only with -std.  */
4393 > int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4394  
4395 < test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4395 > /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4396 >   inside strings and character constants.  */
4397 > #define FOO(x) 'x'
4398 > int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4399  
4400 < test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4400 > int test (int i, double x);
4401 > struct s1 {int (*f) (int a);};
4402 > struct s2 {int (*f) (double a);};
4403 > int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4404 > int argc;
4405 > char **argv;
4406 > int
4407 > main ()
4408 > {
4409 > return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4410 >  ;
4411 >  return 0;
4412 > }
4413 > _ACEOF
4414 > for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4415 >        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4416 > do
4417 >  CC="$ac_save_CC $ac_arg"
4418 >  rm -f conftest.$ac_objext
4419 > if { (ac_try="$ac_compile"
4420 > case "(($ac_try" in
4421 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 >  *) ac_try_echo=$ac_try;;
4423 > esac
4424 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4425 > $as_echo "$ac_try_echo") >&5
4426 >  (eval "$ac_compile") 2>conftest.er1
4427 >  ac_status=$?
4428 >  grep -v '^ *+' conftest.er1 >conftest.err
4429 >  rm -f conftest.er1
4430 >  cat conftest.err >&5
4431 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 >  (exit $ac_status); } && {
4433 >         test -z "$ac_c_werror_flag" ||
4434 >         test ! -s conftest.err
4435 >       } && test -s conftest.$ac_objext; then
4436 >  ac_cv_prog_cc_c89=$ac_arg
4437 > else
4438 >  $as_echo "$as_me: failed program was:" >&5
4439 > sed 's/^/| /' conftest.$ac_ext >&5
4440  
4441 < case "x$INSTALL" in
4442 <   x/*) ;;
4443 <   *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
4441 >
4442 > fi
4443 >
4444 > rm -f core conftest.err conftest.$ac_objext
4445 >  test "x$ac_cv_prog_cc_c89" != "xno" && break
4446 > done
4447 > rm -f conftest.$ac_ext
4448 > CC=$ac_save_CC
4449 >
4450 > fi
4451 > # AC_CACHE_VAL
4452 > case "x$ac_cv_prog_cc_c89" in
4453 >  x)
4454 >    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4455 > $as_echo "none needed" >&6; } ;;
4456 >  xno)
4457 >    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4458 > $as_echo "unsupported" >&6; } ;;
4459 >  *)
4460 >    CC="$CC $ac_cv_prog_cc_c89"
4461 >    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4462 > $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4463   esac
4464 < MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
4465 < # Extract the first word of "ar", so it can be a program name with args.
4466 < set dummy ar; ac_word=$2
4467 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 < if test "${ac_cv_prog_AR+set}" = set; then
4470 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4464 >
4465 >
4466 > ac_ext=c
4467 > ac_cpp='$CPP $CPPFLAGS'
4468 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4469 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4470 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4471 >
4472 > ac_ext=${ac_fc_srcext-f}
4473 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4474 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4475 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4476 > if test -n "$ac_tool_prefix"; then
4477 >  for ac_prog in $FC $ac_cv_prog_acx_mpi_mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4478 >  do
4479 >    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4480 > set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4481 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 > $as_echo_n "checking for $ac_word... " >&6; }
4483 > if test "${ac_cv_prog_FC+set}" = set; then
4484 >  $as_echo_n "(cached) " >&6
4485   else
4486 <  if test -n "$AR"; then
4487 <  ac_cv_prog_AR="$AR" # Let the user override the test.
4486 >  if test -n "$FC"; then
4487 >  ac_cv_prog_FC="$FC" # Let the user override the test.
4488   else
4489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490   for as_dir in $PATH
# Line 4213 | Line 4493 | do
4493    test -z "$as_dir" && as_dir=.
4494    for ac_exec_ext in '' $ac_executable_extensions; do
4495    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496 <    ac_cv_prog_AR="ar"
4497 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 >    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4497 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498      break 2
4499    fi
4500   done
4501   done
4502   IFS=$as_save_IFS
4503  
4224  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
4504   fi
4505   fi
4506 < AR=$ac_cv_prog_AR
4507 < if test -n "$AR"; then
4508 <  { echo "$as_me:$LINENO: result: $AR" >&5
4509 < echo "${ECHO_T}$AR" >&6; }
4506 > FC=$ac_cv_prog_FC
4507 > if test -n "$FC"; then
4508 >  { $as_echo "$as_me:$LINENO: result: $FC" >&5
4509 > $as_echo "$FC" >&6; }
4510   else
4511 <  { echo "$as_me:$LINENO: result: no" >&5
4512 < echo "${ECHO_T}no" >&6; }
4511 >  { $as_echo "$as_me:$LINENO: result: no" >&5
4512 > $as_echo "no" >&6; }
4513   fi
4514  
4515  
4516 < if test "$AR" = "NONE"; then
4238 <  cat >confcache <<\_ACEOF
4239 < # This file is a shell script that caches the results of configure
4240 < # tests run on this system so they can be shared between configure
4241 < # scripts and configure runs, see configure's option --config-cache.
4242 < # It is not useful on other systems.  If it contains results you don't
4243 < # want to keep, you may remove or edit it.
4244 < #
4245 < # config.status only pays attention to the cache file if you give it
4246 < # the --recheck option to rerun configure.
4247 < #
4248 < # `ac_cv_env_foo' variables (set or unset) will be overridden when
4249 < # loading this file, other *unset* `ac_cv_foo' will be assigned the
4250 < # following values.
4251 <
4252 < _ACEOF
4253 <
4254 < # The following way of writing the cache mishandles newlines in values,
4255 < # but we know of no workaround that is simple, portable, and efficient.
4256 < # So, we kill variables containing newlines.
4257 < # Ultrix sh set writes to stderr and can't be redirected directly,
4258 < # and sets the high bit in the cache file unless we assign to the vars.
4259 < (
4260 <  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4261 <    eval ac_val=\$$ac_var
4262 <    case $ac_val in #(
4263 <    *${as_nl}*)
4264 <      case $ac_var in #(
4265 <      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4266 < echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4267 <      esac
4268 <      case $ac_var in #(
4269 <      _ | IFS | as_nl) ;; #(
4270 <      *) $as_unset $ac_var ;;
4271 <      esac ;;
4272 <    esac
4516 >    test -n "$FC" && break
4517    done
4274
4275  (set) 2>&1 |
4276    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4277    *${as_nl}ac_space=\ *)
4278      # `set' does not quote correctly, so add quotes (double-quote
4279      # substitution turns \\\\ into \\, and sed turns \\ into \).
4280      sed -n \
4281        "s/'/'\\\\''/g;
4282          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4283      ;; #(
4284    *)
4285      # `set' quotes correctly as required by POSIX, so do not add quotes.
4286      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4287      ;;
4288    esac |
4289    sort
4290 ) |
4291  sed '
4292     /^ac_cv_env_/b end
4293     t clear
4294     :clear
4295     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4296     t end
4297     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4298     :end' >>confcache
4299 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4300  if test -w "$cache_file"; then
4301    test "x$cache_file" != "x/dev/null" &&
4302      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4303 echo "$as_me: updating cache $cache_file" >&6;}
4304    cat confcache >$cache_file
4305  else
4306    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4307 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4308  fi
4518   fi
4519 < rm -rf confcache
4520 <  exit 1
4521 < fi
4522 < # Extract the first word of "ps", so it can be a program name with args.
4523 < set dummy ps; ac_word=$2
4524 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4526 < if test "${ac_cv_path_PS+set}" = set; then
4527 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4519 > if test -z "$FC"; then
4520 >  ac_ct_FC=$FC
4521 >  for ac_prog in $FC $ac_cv_prog_acx_mpi_mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4522 > do
4523 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
4524 > set dummy $ac_prog; ac_word=$2
4525 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4526 > $as_echo_n "checking for $ac_word... " >&6; }
4527 > if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4528 >  $as_echo_n "(cached) " >&6
4529   else
4530 <  case $PS in
4531 <  [\\/]* | ?:[\\/]*)
4532 <  ac_cv_path_PS="$PS" # Let the user override the test with a path.
4533 <  ;;
4324 <  *)
4325 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 >  if test -n "$ac_ct_FC"; then
4531 >  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4532 > else
4533 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534   for as_dir in $PATH
4535   do
4536    IFS=$as_save_IFS
4537    test -z "$as_dir" && as_dir=.
4538    for ac_exec_ext in '' $ac_executable_extensions; do
4539    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 <    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
4541 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 >    ac_cv_prog_ac_ct_FC="$ac_prog"
4541 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542      break 2
4543    fi
4544   done
4545   done
4546   IFS=$as_save_IFS
4547  
4340  ;;
4341 esac
4548   fi
4343 PS=$ac_cv_path_PS
4344 if test -n "$PS"; then
4345  { echo "$as_me:$LINENO: result: $PS" >&5
4346 echo "${ECHO_T}$PS" >&6; }
4347 else
4348  { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4549   fi
4550 <
4551 <
4552 < { echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5
4553 < echo $ECHO_N "checking for POSIX or BSD ps syntax... $ECHO_C" >&6; }
4355 < if test "${ac_cv_prog_ps_syntax+set}" = set; then
4356 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4550 > ac_ct_FC=$ac_cv_prog_ac_ct_FC
4551 > if test -n "$ac_ct_FC"; then
4552 >  { $as_echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4553 > $as_echo "$ac_ct_FC" >&6; }
4554   else
4555 <
4556 <        if $PS ax -o rss > /dev/null 2>&1; then
4360 <                ac_cv_prog_ps_ax=yes
4361 <        else
4362 <                ac_cv_prog_ps_ax=no
4363 <        fi
4364 <        if $PS -ef -o rss > /dev/null 2>&1; then
4365 <                ac_cv_prog_ps_ef=yes
4366 <        else
4367 <                ac_cv_prog_ps_ef=no
4368 <        fi
4369 <        if test "$ac_cv_prog_ps_ax" = yes; then
4370 <                ac_cv_prog_ps_syntax=BSD
4371 <        else
4372 <                if test "$ac_cv_prog_ps_ef" = yes; then
4373 <                        ac_cv_prog_ps_syntax=POSIX
4374 <                else
4375 <                        { { echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5
4376 < echo "$as_me: error: Could not determine ps syntax" >&2;}
4377 <   { (exit 1); exit 1; }; }
4378 <                fi
4379 <        fi
4380 <
4555 >  { $as_echo "$as_me:$LINENO: result: no" >&5
4556 > $as_echo "no" >&6; }
4557   fi
4382 { echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5
4383 echo "${ECHO_T}$ac_cv_prog_ps_syntax" >&6; }
4558  
4385 cat >>confdefs.h <<_ACEOF
4386 #define PSCOMMAND $PS
4387 _ACEOF
4559  
4560 < if test "$ac_cv_prog_ps_syntax" = BSD; then
4560 >  test -n "$ac_ct_FC" && break
4561 > done
4562  
4563 < cat >>confdefs.h <<\_ACEOF
4564 < #define PSTYPE_IS_BSD 1
4565 < _ACEOF
4566 <
4567 < else
4568 <   if test "$ac_cv_prog_ps_syntax" = POSIX; then
4569 <
4570 < cat >>confdefs.h <<\_ACEOF
4571 < #define PSTYPE_IS_POSIX 1
4572 < _ACEOF
4573 <
4574 <   else
4575 <       { { echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5
4576 < echo "$as_me: error: Unknown ps syntax type!" >&2;}
4577 <   { (exit 1); exit 1; }; }
4406 <   fi
4563 >  if test "x$ac_ct_FC" = x; then
4564 >    FC=""
4565 >  else
4566 >    case $cross_compiling:$ac_tool_warned in
4567 > yes:)
4568 > { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4569 > whose name does not start with the host triplet.  If you think this
4570 > configuration is useful to you, please write to autoconf@gnu.org." >&5
4571 > $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4572 > whose name does not start with the host triplet.  If you think this
4573 > configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4574 > ac_tool_warned=yes ;;
4575 > esac
4576 >    FC=$ac_ct_FC
4577 >  fi
4578   fi
4579  
4409 ac_ext=${ac_fc_srcext-f}
4410 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4411 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4412 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4580  
4581 + # Provide some information about the compiler.
4582 + $as_echo "$as_me:$LINENO: checking for Fortran compiler version" >&5
4583 + set X $ac_compile
4584 + ac_compiler=$2
4585 + { (ac_try="$ac_compiler --version >&5"
4586 + case "(($ac_try" in
4587 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 +  *) ac_try_echo=$ac_try;;
4589 + esac
4590 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4591 + $as_echo "$ac_try_echo") >&5
4592 +  (eval "$ac_compiler --version >&5") 2>&5
4593 +  ac_status=$?
4594 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 +  (exit $ac_status); }
4596 + { (ac_try="$ac_compiler -v >&5"
4597 + case "(($ac_try" in
4598 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 +  *) ac_try_echo=$ac_try;;
4600 + esac
4601 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4602 + $as_echo "$ac_try_echo") >&5
4603 +  (eval "$ac_compiler -v >&5") 2>&5
4604 +  ac_status=$?
4605 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 +  (exit $ac_status); }
4607 + { (ac_try="$ac_compiler -V >&5"
4608 + case "(($ac_try" in
4609 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 +  *) ac_try_echo=$ac_try;;
4611 + esac
4612 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4613 + $as_echo "$ac_try_echo") >&5
4614 +  (eval "$ac_compiler -V >&5") 2>&5
4615 +  ac_status=$?
4616 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 +  (exit $ac_status); }
4618 + rm -f a.out
4619  
4620 < ac_ext=${ac_fc_srcext-f}
4621 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4622 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4623 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4624 < { echo "$as_me:$LINENO: checking for Fortran flag to compile .F90 files" >&5
4625 < echo $ECHO_N "checking for Fortran flag to compile .F90 files... $ECHO_C" >&6; }
4626 < if test "${ac_cv_fc_srcext_F90+set}" = set; then
4627 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4620 > # If we don't use `.F' as extension, the preprocessor is not run on the
4621 > # input file.  (Note that this only needs to work for GNU compilers.)
4622 > ac_save_ext=$ac_ext
4623 > ac_ext=F
4624 > { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4625 > $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4626 > if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4627 >  $as_echo_n "(cached) " >&6
4628   else
4424  ac_ext=F90
4425 ac_fcflags_srcext_save=$ac_fcflags_srcext
4426 ac_fcflags_srcext=
4427 ac_cv_fc_srcext_F90=unknown
4428 for ac_flag in none -qsuffix=f=F90 -Tf; do
4429  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
4629    cat >conftest.$ac_ext <<_ACEOF
4630        program main
4631 + #ifndef __GNUC__
4632 +       choke me
4633 + #endif
4634  
4635        end
4636   _ACEOF
4637 < rm -rf conftest.$ac_objext
4637 > rm -f conftest.$ac_objext
4638   if { (ac_try="$ac_compile"
4639   case "(($ac_try" in
4640    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641    *) ac_try_echo=$ac_try;;
4642   esac
4643 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4644 > $as_echo "$ac_try_echo") >&5
4645    (eval "$ac_compile") 2>conftest.er1
4646    ac_status=$?
4647    grep -v '^ *+' conftest.er1 >conftest.err
4648    rm -f conftest.er1
4649    cat conftest.err >&5
4650 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651    (exit $ac_status); } && {
4652           test -z "$ac_fc_werror_flag" ||
4653           test ! -s conftest.err
4654         } && test -s conftest.$ac_objext; then
4655 <  ac_cv_fc_srcext_F90=$ac_flag; break
4655 >  ac_compiler_gnu=yes
4656   else
4657 <  echo "$as_me: failed program was:" >&5
4657 >  $as_echo "$as_me: failed program was:" >&5
4658   sed 's/^/| /' conftest.$ac_ext >&5
4659  
4660 <
4660 >        ac_compiler_gnu=no
4661   fi
4662  
4663 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 < done
4462 < rm -rf conftest.$ac_objext conftest.F90
4463 < ac_fcflags_srcext=$ac_fcflags_srcext_save
4663 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 > ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4665  
4666   fi
4667 < { echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_F90" >&5
4668 < echo "${ECHO_T}$ac_cv_fc_srcext_F90" >&6; }
4669 < if test "x$ac_cv_fc_srcext_F90" = xunknown; then
4670 <  { { echo "$as_me:$LINENO: error: Fortran could not compile .F90 files" >&5
4671 < echo "$as_me: error: Fortran could not compile .F90 files" >&2;}
4672 <   { (exit 1); exit 1; }; }
4667 > { $as_echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4668 > $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4669 > ac_ext=$ac_save_ext
4670 > ac_test_FFLAGS=${FCFLAGS+set}
4671 > ac_save_FFLAGS=$FCFLAGS
4672 > FCFLAGS=
4673 > { $as_echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4674 > $as_echo_n "checking whether $FC accepts -g... " >&6; }
4675 > if test "${ac_cv_prog_fc_g+set}" = set; then
4676 >  $as_echo_n "(cached) " >&6
4677   else
4678 <  ac_fc_srcext=F90
4679 <  if test "x$ac_cv_fc_srcext_F90" = xnone; then
4680 <    ac_fcflags_srcext=""
4476 <    FCFLAGS_F90=""
4477 <  else
4478 <    ac_fcflags_srcext=$ac_cv_fc_srcext_F90
4479 <    FCFLAGS_F90=$ac_cv_fc_srcext_F90
4480 <  fi
4678 >  FCFLAGS=-g
4679 > cat >conftest.$ac_ext <<_ACEOF
4680 >      program main
4681  
4682 <
4483 < fi
4484 < ac_ext=${ac_fc_srcext-f}
4485 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4486 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4487 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4488 <
4489 <
4490 <
4491 <
4492 <
4493 < # Try to determine native compiler flags that allow us to use F90 suffix
4494 < # for preprocessed f90 source.
4495 <
4496 < if test "$ac_test_PREPFLAG" != "set"; then
4497 <  PREPFLAG=""
4498 <  case "${host_cpu}-${host_os}" in
4499 <
4500 <  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
4501 <                    PREPFLAG="-fpp1 "
4502 <                fi;;
4503 <  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
4504 <                    PREPFLAG="-qsuffix=cpp=F90 "
4505 <                fi;;
4506 <  *darwin*)
4507 <        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
4508 <                PREPFLAG="-qsuffix=cpp=F90 "
4509 <        fi;;
4510 <  esac
4511 <
4512 <  if test -z "$PREPFLAG"; then
4513 <        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
4514 < echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
4515 <        PREPFLAG=""
4516 <  fi
4517 <
4518 <  { echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
4519 < echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6; }
4520 <
4521 <  ac_ext=${ac_fc_srcext-f}
4522 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4523 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4524 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4525 <
4526 <  ac_save_ext=$ac_ext
4527 <  ac_ext=F90
4528 <  ac_save_FCFLAGS_SRCEXT=$FCFLAGS_SRCEXT
4529 <
4530 <  if test "$PREPFLAG"; then
4531 <  FCFLAGS_SRCEXT="${PREPFLAG}"
4532 < fi
4533 <
4534 <    cat >conftest.$ac_ext <<_ACEOF
4535 <
4536 <
4537 < program conftest
4538 <  integer :: i
4539 <  i = 1
4540 < end program conftest
4541 <
4682 >      end
4683   _ACEOF
4684 < rm -rf conftest.$ac_objext
4684 > rm -f conftest.$ac_objext
4685   if { (ac_try="$ac_compile"
4686   case "(($ac_try" in
4687    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688    *) ac_try_echo=$ac_try;;
4689   esac
4690 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4691 > $as_echo "$ac_try_echo") >&5
4692    (eval "$ac_compile") 2>conftest.er1
4693    ac_status=$?
4694    grep -v '^ *+' conftest.er1 >conftest.err
4695    rm -f conftest.er1
4696    cat conftest.err >&5
4697 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698    (exit $ac_status); } && {
4699           test -z "$ac_fc_werror_flag" ||
4700           test ! -s conftest.err
4701         } && test -s conftest.$ac_objext; then
4702 <  prepflagworks=1
4702 >  ac_cv_prog_fc_g=yes
4703   else
4704 <  echo "$as_me: failed program was:" >&5
4704 >  $as_echo "$as_me: failed program was:" >&5
4705   sed 's/^/| /' conftest.$ac_ext >&5
4706  
4707 <        prepflagworks=0
4707 >        ac_cv_prog_fc_g=no
4708   fi
4709  
4710 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711  
4712 <  FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT
4713 <  ac_ext=$ac_save_ext
4714 <  ac_ext=${ac_fc_srcext-f}
4715 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4716 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4717 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4718 <
4719 <
4578 <  if test "$prepflagworks" = 1; then
4579 <    { echo "$as_me:$LINENO: result: yes" >&5
4580 < echo "${ECHO_T}yes" >&6; }
4581 <    FCFLAGS_SRCEXT="${PREPFLAG}"
4582 <
4712 > fi
4713 > { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4714 > $as_echo "$ac_cv_prog_fc_g" >&6; }
4715 > if test "$ac_test_FFLAGS" = set; then
4716 >  FCFLAGS=$ac_save_FFLAGS
4717 > elif test $ac_cv_prog_fc_g = yes; then
4718 >  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4719 >    FCFLAGS="-g -O2"
4720    else
4721 <    { echo "$as_me:$LINENO: result: no" >&5
4585 < echo "${ECHO_T}no" >&6; }
4586 <    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
4587 < echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
4588 <   { (exit 1); exit 1; }; }
4721 >    FCFLAGS="-g"
4722    fi
4723 < fi
4724 <
4725 <
4726 <
4727 <
4595 <
4596 < # Try to determine native compiler flags that allow us to use F90 suffix
4597 < # for preprocessed f90 source with -D type defines
4598 <
4599 < if test "$ac_test_PREPDEFFLAG" != "set"; then
4600 <  PREPDEFFLAG=""
4601 <  case "${host_cpu}-${host_os}" in
4602 <
4603 <  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
4604 <                    PREPDEFFLAG=" "
4605 <                fi;;
4606 <  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
4607 <                    PREPDEFFLAG="-WF,"
4608 <                fi;;
4609 <  *darwin*)
4610 <        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
4611 <                PREPDEFFLAG="-WF,"
4612 <        fi;;
4613 <  esac
4614 <
4615 <  if test -z "$PREPDEFFLAG"; then
4616 <        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
4617 < echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
4618 <        PREPDEFFLAG=" "
4723 > else
4724 >  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4725 >    FCFLAGS="-O2"
4726 >  else
4727 >    FCFLAGS=
4728    fi
4620
4621  { echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
4622 echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6; }
4623
4624  ac_ext=${ac_fc_srcext-f}
4625 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4626 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4627 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4628
4629  ac_save_ext=$ac_ext
4630  ac_ext=F90
4631  ac_save_FCFLAGS=$FCFLAGS
4632
4633  if test "$PREPDEFFLAG"; then
4634  FCFLAGS="${FCFLAGS} ${PREPDEFFLAG}-DTEST"
4729   fi
4730  
4731 <    cat >conftest.$ac_ext <<_ACEOF
4731 > ac_ext=c
4732 > ac_cpp='$CPP $CPPFLAGS'
4733 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4736  
4737 <
4738 < program conftest
4739 <  integer :: i
4740 < #ifdef TEST
4741 <  i = 1
4737 > ac_ext=c
4738 > ac_cpp='$CPP $CPPFLAGS'
4739 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4740 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4741 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4742 > { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4743 > $as_echo_n "checking how to run the C preprocessor... " >&6; }
4744 > # On Suns, sometimes $CPP names a directory.
4745 > if test -n "$CPP" && test -d "$CPP"; then
4746 >  CPP=
4747 > fi
4748 > if test -z "$CPP"; then
4749 >  if test "${ac_cv_prog_CPP+set}" = set; then
4750 >  $as_echo_n "(cached) " >&6
4751 > else
4752 >      # Double quotes because CPP needs to be expanded
4753 >    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4754 >    do
4755 >      ac_preproc_ok=false
4756 > for ac_c_preproc_warn_flag in '' yes
4757 > do
4758 >  # Use a header file that comes with gcc, so configuring glibc
4759 >  # with a fresh cross-compiler works.
4760 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4761 >  # <limits.h> exists even on freestanding compilers.
4762 >  # On the NeXT, cc -E runs the code through the compiler's parser,
4763 >  # not just through cpp. "Syntax error" is here to catch this case.
4764 >  cat >conftest.$ac_ext <<_ACEOF
4765 > /* confdefs.h.  */
4766 > _ACEOF
4767 > cat confdefs.h >>conftest.$ac_ext
4768 > cat >>conftest.$ac_ext <<_ACEOF
4769 > /* end confdefs.h.  */
4770 > #ifdef __STDC__
4771 > # include <limits.h>
4772   #else
4773 <  choke me
4773 > # include <assert.h>
4774   #endif
4775 < end program conftest
4648 <
4775 >                     Syntax error
4776   _ACEOF
4777 < rm -rf conftest.$ac_objext
4651 < if { (ac_try="$ac_compile"
4777 > if { (ac_try="$ac_cpp conftest.$ac_ext"
4778   case "(($ac_try" in
4779    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780    *) ac_try_echo=$ac_try;;
4781   esac
4782 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783 <  (eval "$ac_compile") 2>conftest.er1
4782 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4783 > $as_echo "$ac_try_echo") >&5
4784 >  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4785    ac_status=$?
4786    grep -v '^ *+' conftest.er1 >conftest.err
4787    rm -f conftest.er1
4788    cat conftest.err >&5
4789 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 <  (exit $ac_status); } && {
4791 <         test -z "$ac_fc_werror_flag" ||
4789 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 >  (exit $ac_status); } >/dev/null && {
4791 >         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4792           test ! -s conftest.err
4793 <       } && test -s conftest.$ac_objext; then
4794 <  prepdefflagworks=1
4793 >       }; then
4794 >  :
4795   else
4796 <  echo "$as_me: failed program was:" >&5
4796 >  $as_echo "$as_me: failed program was:" >&5
4797   sed 's/^/| /' conftest.$ac_ext >&5
4798  
4799 <        prepdefflagworks=0
4799 >  # Broken: fails on valid input.
4800 > continue
4801   fi
4802  
4803 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 > rm -f conftest.err conftest.$ac_ext
4804  
4805 <  FCFLAGS=$ac_save_FCFLAGS
4806 <  ac_ext=$ac_save_ext
4679 <  ac_ext=${ac_fc_srcext-f}
4680 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4681 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4682 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4683 <
4684 <
4685 <  if test "$prepdefflagworks" = 1; then
4686 <    { echo "$as_me:$LINENO: result: yes" >&5
4687 < echo "${ECHO_T}yes" >&6; }
4688 <
4689 <  else
4690 <    { echo "$as_me:$LINENO: result: no" >&5
4691 < echo "${ECHO_T}no" >&6; }
4692 <    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
4693 < echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
4694 <   { (exit 1); exit 1; }; }
4695 <  fi
4696 < fi
4697 <
4698 < ac_ext=${ac_fc_srcext-f}
4699 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4700 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4701 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4702 < { echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5
4703 < echo $ECHO_N "checking how to get verbose linking output from $FC... $ECHO_C" >&6; }
4704 < if test "${ac_cv_prog_fc_v+set}" = set; then
4705 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4706 < else
4805 >  # OK, works on sane cases.  Now check whether nonexistent headers
4806 >  # can be detected and how.
4807    cat >conftest.$ac_ext <<_ACEOF
4808 <      program main
4709 <
4710 <      end
4808 > /* confdefs.h.  */
4809   _ACEOF
4810 < rm -rf conftest.$ac_objext
4811 < if { (ac_try="$ac_compile"
4810 > cat confdefs.h >>conftest.$ac_ext
4811 > cat >>conftest.$ac_ext <<_ACEOF
4812 > /* end confdefs.h.  */
4813 > #include <ac_nonexistent.h>
4814 > _ACEOF
4815 > if { (ac_try="$ac_cpp conftest.$ac_ext"
4816   case "(($ac_try" in
4817    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818    *) ac_try_echo=$ac_try;;
4819   esac
4820 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4821 <  (eval "$ac_compile") 2>conftest.er1
4820 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4821 > $as_echo "$ac_try_echo") >&5
4822 >  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4823    ac_status=$?
4824    grep -v '^ *+' conftest.er1 >conftest.err
4825 <  rm -rf conftest.er1
4825 >  rm -f conftest.er1
4826    cat conftest.err >&5
4827 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 <  (exit $ac_status); } && {
4829 <         test -z "$ac_fc_werror_flag" ||
4827 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 >  (exit $ac_status); } >/dev/null && {
4829 >         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4830           test ! -s conftest.err
4831 <       } && test -s conftest.$ac_objext; then
4832 <  ac_cv_prog_fc_v=
4833 < # Try some options frequently used verbose output
4731 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4732 <  cat >conftest.$ac_ext <<_ACEOF
4733 <      program main
4734 <
4735 <      end
4736 < _ACEOF
4737 <
4738 < # Compile and link our simple test program by passing a flag (argument
4739 < # 1 to this macro) to the Fortran compiler in order to get
4740 < # "verbose" output that we can then parse for the Fortran linker
4741 < # flags.
4742 < ac_save_FFLAGS=$FCFLAGS
4743 < FCFLAGS="$FCFLAGS $ac_verb"
4744 < eval "set x $ac_link"
4745 < shift
4746 < echo "$as_me:$LINENO: $*" >&5
4747 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4748 < echo "$ac_fc_v_output" >&5
4749 < FCFLAGS=$ac_save_FFLAGS
4750 <
4751 < rm -rf conftest*
4752 <
4753 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4754 < # /foo, /bar, and /baz are search directories for the Fortran linker.
4755 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4756 < ac_fc_v_output="`echo $ac_fc_v_output |
4757 <        grep 'LPATH is:' |
4758 <        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
4759 <
4760 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
4761 < #        that detects unbalanced quotes in FLIBS should be implemented
4762 < #        and (ugh) tested at some point.
4763 < case $ac_fc_v_output in
4764 <  # If we are using xlf then replace all the commas with spaces.
4765 <  *xlfentry*)
4766 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
4767 <
4768 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4769 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
4770 <  *mGLOB_options_string*)
4771 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
4772 <
4773 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
4774 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
4775 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
4776 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
4777 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
4778 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
4779 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
4780 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
4781 <
4782 <  # If we are using Cray Fortran then delete quotes.
4783 <  *cft90*)
4784 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
4785 < esac
4786 <
4787 <
4788 <  # look for -l* and *.a constructs in the output
4789 <  for ac_arg in $ac_fc_v_output; do
4790 <     case $ac_arg in
4791 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4792 <          ac_cv_prog_fc_v=$ac_verb
4793 <          break 2 ;;
4794 <     esac
4795 <  done
4796 < done
4797 < if test -z "$ac_cv_prog_fc_v"; then
4798 <   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5
4799 < echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
4800 < fi
4831 >       }; then
4832 >  # Broken: success on invalid input.
4833 > continue
4834   else
4835 <  echo "$as_me: failed program was:" >&5
4835 >  $as_echo "$as_me: failed program was:" >&5
4836   sed 's/^/| /' conftest.$ac_ext >&5
4837  
4838 <        { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4839 < echo "$as_me: WARNING: compilation failed" >&2;}
4838 >  # Passes both tests.
4839 > ac_preproc_ok=:
4840 > break
4841   fi
4842  
4843 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
4843 > rm -f conftest.err conftest.$ac_ext
4844  
4845 + done
4846 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4847 + rm -f conftest.err conftest.$ac_ext
4848 + if $ac_preproc_ok; then
4849 +  break
4850   fi
4812 { echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5
4813 echo "${ECHO_T}$ac_cv_prog_fc_v" >&6; }
4814 { echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5
4815 echo $ECHO_N "checking for Fortran libraries of $FC... $ECHO_C" >&6; }
4816 if test "${ac_cv_fc_libs+set}" = set; then
4817  echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819  if test "x$FCLIBS" != "x"; then
4820  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
4821 else
4851  
4852 < cat >conftest.$ac_ext <<_ACEOF
4853 <      program main
4852 >    done
4853 >    ac_cv_prog_CPP=$CPP
4854  
4826      end
4827 _ACEOF
4828
4829 # Compile and link our simple test program by passing a flag (argument
4830 # 1 to this macro) to the Fortran compiler in order to get
4831 # "verbose" output that we can then parse for the Fortran linker
4832 # flags.
4833 ac_save_FFLAGS=$FCFLAGS
4834 FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4835 eval "set x $ac_link"
4836 shift
4837 echo "$as_me:$LINENO: $*" >&5
4838 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4839 echo "$ac_fc_v_output" >&5
4840 FCFLAGS=$ac_save_FFLAGS
4841
4842 rm -rf conftest*
4843
4844 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4845 # /foo, /bar, and /baz are search directories for the Fortran linker.
4846 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4847 ac_fc_v_output="`echo $ac_fc_v_output |
4848        grep 'LPATH is:' |
4849        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
4850
4851 # FIXME: we keep getting bitten by quoted arguments; a more general fix
4852 #        that detects unbalanced quotes in FLIBS should be implemented
4853 #        and (ugh) tested at some point.
4854 case $ac_fc_v_output in
4855  # If we are using xlf then replace all the commas with spaces.
4856  *xlfentry*)
4857    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
4858
4859  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4860  # $LIBS confuse us, and the libraries appear later in the output anyway).
4861  *mGLOB_options_string*)
4862    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
4863
4864  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
4865  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
4866  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
4867  *-cmdline\ * | *-ignore\ * | *-def\ *)
4868    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
4869        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
4870        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
4871        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
4872
4873  # If we are using Cray Fortran then delete quotes.
4874  *cft90*)
4875    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
4876 esac
4877
4878
4879
4880 ac_cv_fc_libs=
4881
4882 # Save positional arguments (if any)
4883 ac_save_positional="$@"
4884
4885 set X $ac_fc_v_output
4886 while test $# != 1; do
4887  shift
4888  ac_arg=$1
4889  case $ac_arg in
4890        [\\/]*.a | ?:[\\/]*.a)
4891            ac_exists=false
4892  for ac_i in $ac_cv_fc_libs; do
4893    if test x"$ac_arg" = x"$ac_i"; then
4894      ac_exists=true
4895      break
4896    fi
4897  done
4898
4899  if test x"$ac_exists" = xtrue; then
4900  :
4901 else
4902  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4855   fi
4856 <
4905 <          ;;
4906 <        -bI:*)
4907 <            ac_exists=false
4908 <  for ac_i in $ac_cv_fc_libs; do
4909 <    if test x"$ac_arg" = x"$ac_i"; then
4910 <      ac_exists=true
4911 <      break
4912 <    fi
4913 <  done
4914 <
4915 <  if test x"$ac_exists" = xtrue; then
4916 <  :
4856 >  CPP=$ac_cv_prog_CPP
4857   else
4858 <  if test "$ac_compiler_gnu" = yes; then
4919 <  for ac_link_opt in $ac_arg; do
4920 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
4921 <  done
4922 < else
4923 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4858 >  ac_cv_prog_CPP=$CPP
4859   fi
4860 < fi
4861 <
4862 <          ;;
4863 <          # Ignore these flags.
4864 <        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*)
4865 <          ;;
4866 <        -lkernel32)
4867 <          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4868 <          ;;
4869 <        -[LRuYz])
4870 <          # These flags, when seen by themselves, take an argument.
4871 <          # We remove the space between option and argument and re-iterate
4937 <          # unless we find an empty arg or a new option (starting with -)
4938 <          case $2 in
4939 <             "" | -*);;
4940 <             *)
4941 <                ac_arg="$ac_arg$2"
4942 <                shift; shift
4943 <                set X $ac_arg "$@"
4944 <                ;;
4945 <          esac
4946 <          ;;
4947 <        -YP,*)
4948 <          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4949 <              ac_exists=false
4950 <  for ac_i in $ac_cv_fc_libs; do
4951 <    if test x"$ac_j" = x"$ac_i"; then
4952 <      ac_exists=true
4953 <      break
4954 <    fi
4955 <  done
4956 <
4957 <  if test x"$ac_exists" = xtrue; then
4958 <  :
4959 < else
4960 <  ac_arg="$ac_arg $ac_j"
4961 <                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
4962 < fi
4963 <
4964 <          done
4965 <          ;;
4966 <        -[lLR]*)
4967 <            ac_exists=false
4968 <  for ac_i in $ac_cv_fc_libs; do
4969 <    if test x"$ac_arg" = x"$ac_i"; then
4970 <      ac_exists=true
4971 <      break
4972 <    fi
4973 <  done
4974 <
4975 <  if test x"$ac_exists" = xtrue; then
4976 <  :
4977 < else
4978 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4979 < fi
4980 <
4981 <          ;;
4982 <        -zallextract*| -zdefaultextract)
4983 <          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4984 <          ;;
4985 <          # Ignore everything else.
4986 <  esac
4987 < done
4988 < # restore positional arguments
4989 < set X $ac_save_positional; shift
4990 <
4991 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4992 < # then we insist that the "run path" must be an absolute path (i.e. it
4993 < # must begin with a "/").
4994 < case `(uname -sr) 2>/dev/null` in
4995 <   "SunOS 5"*)
4996 <      ac_ld_run_path=`echo $ac_fc_v_output |
4997 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4998 <      test "x$ac_ld_run_path" != x &&
4999 <        if test "$ac_compiler_gnu" = yes; then
5000 <  for ac_link_opt in $ac_ld_run_path; do
5001 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
5002 <  done
5003 < else
5004 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
5005 < fi
5006 <      ;;
5007 < esac
5008 < fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
5009 <
5010 < fi
5011 < { echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5
5012 < echo "${ECHO_T}$ac_cv_fc_libs" >&6; }
5013 < FCLIBS="$ac_cv_fc_libs"
5014 <
5015 <
5016 < ac_ext=${ac_fc_srcext-f}
5017 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5018 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5019 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5020 <
5021 <
5022 < ac_ext=${ac_fc_srcext-f}
5023 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5024 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5025 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5026 <
5027 < { echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
5028 < echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6; }
5029 < if test "${ac_cv_fc_dummy_main+set}" = set; then
5030 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5031 < else
5032 <  ac_fc_dm_save_LIBS=$LIBS
5033 < LIBS="$LIBS $FCLIBS"
5034 < ac_fortran_dm_var=FC_DUMMY_MAIN
5035 < ac_ext=c
5036 < ac_cpp='$CPP $CPPFLAGS'
5037 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5038 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5039 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
5040 <
5041 < # First, try linking without a dummy main:
5042 < cat >conftest.$ac_ext <<_ACEOF
4860 > { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4861 > $as_echo "$CPP" >&6; }
4862 > ac_preproc_ok=false
4863 > for ac_c_preproc_warn_flag in '' yes
4864 > do
4865 >  # Use a header file that comes with gcc, so configuring glibc
4866 >  # with a fresh cross-compiler works.
4867 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4868 >  # <limits.h> exists even on freestanding compilers.
4869 >  # On the NeXT, cc -E runs the code through the compiler's parser,
4870 >  # not just through cpp. "Syntax error" is here to catch this case.
4871 >  cat >conftest.$ac_ext <<_ACEOF
4872   /* confdefs.h.  */
4873   _ACEOF
4874   cat confdefs.h >>conftest.$ac_ext
4875   cat >>conftest.$ac_ext <<_ACEOF
4876   /* end confdefs.h.  */
4877 <
4878 < #ifdef FC_DUMMY_MAIN
4879 < #ifndef FC_DUMMY_MAIN_EQ_F77
4880 < #  ifdef __cplusplus
5052 <     extern "C"
5053 < #  endif
5054 <   int FC_DUMMY_MAIN() { return 1; }
4877 > #ifdef __STDC__
4878 > # include <limits.h>
4879 > #else
4880 > # include <assert.h>
4881   #endif
4882 < #endif
5057 < int
5058 < main ()
5059 < {
5060 <
5061 <  ;
5062 <  return 0;
5063 < }
4882 >                     Syntax error
4883   _ACEOF
4884 < rm -rf conftest.$ac_objext conftest$ac_exeext
5066 < if { (ac_try="$ac_link"
4884 > if { (ac_try="$ac_cpp conftest.$ac_ext"
4885   case "(($ac_try" in
4886    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887    *) ac_try_echo=$ac_try;;
4888   esac
4889 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890 <  (eval "$ac_link") 2>conftest.er1
4889 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4890 > $as_echo "$ac_try_echo") >&5
4891 >  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4892    ac_status=$?
4893    grep -v '^ *+' conftest.er1 >conftest.err
4894    rm -f conftest.er1
4895    cat conftest.err >&5
4896 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 <  (exit $ac_status); } && {
4898 <         test -z "$ac_c_werror_flag" ||
4896 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 >  (exit $ac_status); } >/dev/null && {
4898 >         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4899           test ! -s conftest.err
4900 <       } && test -s conftest$ac_exeext &&
4901 <       $as_test_x conftest$ac_exeext; then
5083 <  ac_cv_fortran_dummy_main=none
4900 >       }; then
4901 >  :
4902   else
4903 <  echo "$as_me: failed program was:" >&5
4903 >  $as_echo "$as_me: failed program was:" >&5
4904   sed 's/^/| /' conftest.$ac_ext >&5
4905  
4906 <        ac_cv_fortran_dummy_main=unknown
4906 >  # Broken: fails on valid input.
4907 > continue
4908   fi
4909  
4910 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5092 <      conftest$ac_exeext conftest.$ac_ext
4910 > rm -f conftest.err conftest.$ac_ext
4911  
4912 < if test $ac_cv_fortran_dummy_main = unknown; then
4913 <   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4914 <     cat >conftest.$ac_ext <<_ACEOF
4912 >  # OK, works on sane cases.  Now check whether nonexistent headers
4913 >  # can be detected and how.
4914 >  cat >conftest.$ac_ext <<_ACEOF
4915   /* confdefs.h.  */
4916   _ACEOF
4917   cat confdefs.h >>conftest.$ac_ext
4918   cat >>conftest.$ac_ext <<_ACEOF
4919   /* end confdefs.h.  */
4920 < #define $ac_fortran_dm_var $ac_func
5103 < #ifdef FC_DUMMY_MAIN
5104 < #ifndef FC_DUMMY_MAIN_EQ_F77
5105 < #  ifdef __cplusplus
5106 <     extern "C"
5107 < #  endif
5108 <   int FC_DUMMY_MAIN() { return 1; }
5109 < #endif
5110 < #endif
5111 < int
5112 < main ()
5113 < {
5114 <
5115 <  ;
5116 <  return 0;
5117 < }
4920 > #include <ac_nonexistent.h>
4921   _ACEOF
4922 < rm -rf conftest.$ac_objext conftest$ac_exeext
5120 < if { (ac_try="$ac_link"
4922 > if { (ac_try="$ac_cpp conftest.$ac_ext"
4923   case "(($ac_try" in
4924    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925    *) ac_try_echo=$ac_try;;
4926   esac
4927 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4928 <  (eval "$ac_link") 2>conftest.er1
4927 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4928 > $as_echo "$ac_try_echo") >&5
4929 >  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4930    ac_status=$?
4931    grep -v '^ *+' conftest.er1 >conftest.err
4932    rm -f conftest.er1
4933    cat conftest.err >&5
4934 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 <  (exit $ac_status); } && {
4936 <         test -z "$ac_c_werror_flag" ||
4934 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 >  (exit $ac_status); } >/dev/null && {
4936 >         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4937           test ! -s conftest.err
4938 <       } && test -s conftest$ac_exeext &&
4939 <       $as_test_x conftest$ac_exeext; then
4940 <  ac_cv_fortran_dummy_main=$ac_func; break
4938 >       }; then
4939 >  # Broken: success on invalid input.
4940 > continue
4941   else
4942 <  echo "$as_me: failed program was:" >&5
4942 >  $as_echo "$as_me: failed program was:" >&5
4943   sed 's/^/| /' conftest.$ac_ext >&5
4944  
4945 <
4945 >  # Passes both tests.
4946 > ac_preproc_ok=:
4947 > break
4948   fi
4949  
4950 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5146 <      conftest$ac_exeext conftest.$ac_ext
5147 <   done
5148 < fi
5149 < ac_ext=${ac_fc_srcext-f}
5150 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5151 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5152 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5153 < ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
5154 < rm -rf conftest*
5155 < LIBS=$ac_fc_dm_save_LIBS
4950 > rm -f conftest.err conftest.$ac_ext
4951  
4952 < fi
4953 < { echo "$as_me:$LINENO: result: $ac_cv_fc_dummy_main" >&5
4954 < echo "${ECHO_T}$ac_cv_fc_dummy_main" >&6; }
4955 < FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
4956 < if test "$FC_DUMMY_MAIN" != unknown; then
5162 <  if test $FC_DUMMY_MAIN != none; then
5163 <
5164 < cat >>confdefs.h <<_ACEOF
5165 < #define FC_DUMMY_MAIN $FC_DUMMY_MAIN
5166 < _ACEOF
5167 <
5168 <  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
5169 <
5170 < cat >>confdefs.h <<\_ACEOF
5171 < #define FC_DUMMY_MAIN_EQ_F77 1
5172 < _ACEOF
5173 <
5174 <  fi
5175 < fi
4952 > done
4953 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4954 > rm -f conftest.err conftest.$ac_ext
4955 > if $ac_preproc_ok; then
4956 >  :
4957   else
4958 <  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4958 >  { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4959   See \`config.log' for more details." >&5
4960 < echo "$as_me: error: linking to Fortran libraries from C fails
4960 > $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4961   See \`config.log' for more details." >&2;}
4962     { (exit 1); exit 1; }; }
4963   fi
4964  
4965 <
5185 < ac_ext=${ac_fc_srcext-f}
5186 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5187 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5188 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5189 <
5190 < ac_ext=${ac_fc_srcext-f}
5191 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5192 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5193 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5194 < { echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
5195 < echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6; }
5196 < if test "${ac_cv_fc_mangling+set}" = set; then
5197 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5198 < else
5199 <  cat >conftest.$ac_ext <<_ACEOF
5200 <      subroutine foobar()
5201 <      return
5202 <      end
5203 <      subroutine foo_bar()
5204 <      return
5205 <      end
5206 < _ACEOF
5207 < rm -rf conftest.$ac_objext
5208 < if { (ac_try="$ac_compile"
5209 < case "(($ac_try" in
5210 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 <  *) ac_try_echo=$ac_try;;
5212 < esac
5213 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214 <  (eval "$ac_compile") 2>conftest.er1
5215 <  ac_status=$?
5216 <  grep -v '^ *+' conftest.er1 >conftest.err
5217 <  rm -f conftest.er1
5218 <  cat conftest.err >&5
5219 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 <  (exit $ac_status); } && {
5221 <         test -z "$ac_fc_werror_flag" ||
5222 <         test ! -s conftest.err
5223 <       } && test -s conftest.$ac_objext; then
5224 <  mv conftest.$ac_objext cfortran_test.$ac_objext
5225 <
5226 <  ac_save_LIBS=$LIBS
5227 <  LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"
5228 <
5229 <  ac_ext=c
4965 > ac_ext=c
4966   ac_cpp='$CPP $CPPFLAGS'
4967   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969   ac_compiler_gnu=$ac_cv_c_compiler_gnu
5234  ac_success=no
5235  for ac_foobar in foobar FOOBAR; do
5236    for ac_underscore in "" "_"; do
5237      ac_func="$ac_foobar$ac_underscore"
5238      cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h.  */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h.  */
4970  
4971 < /* Override any GCC internal prototype to avoid an error.
4972 <   Use char because int might match the return type of a GCC
4973 <   builtin and then its argument prototype would still apply.  */
4974 < #ifdef __cplusplus
5249 < extern "C"
5250 < #endif
5251 < char $ac_func ();
5252 < #ifdef FC_DUMMY_MAIN
5253 < #ifndef FC_DUMMY_MAIN_EQ_F77
5254 < #  ifdef __cplusplus
5255 <     extern "C"
5256 < #  endif
5257 <   int FC_DUMMY_MAIN() { return 1; }
5258 < #endif
5259 < #endif
5260 < int
5261 < main ()
5262 < {
5263 < return $ac_func ();
5264 <  ;
5265 <  return 0;
5266 < }
5267 < _ACEOF
5268 < rm -rf conftest.$ac_objext conftest$ac_exeext
5269 < if { (ac_try="$ac_link"
5270 < case "(($ac_try" in
5271 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272 <  *) ac_try_echo=$ac_try;;
5273 < esac
5274 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275 <  (eval "$ac_link") 2>conftest.er1
5276 <  ac_status=$?
5277 <  grep -v '^ *+' conftest.er1 >conftest.err
5278 <  rm -f conftest.er1
5279 <  cat conftest.err >&5
5280 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 <  (exit $ac_status); } && {
5282 <         test -z "$ac_c_werror_flag" ||
5283 <         test ! -s conftest.err
5284 <       } && test -s conftest$ac_exeext &&
5285 <       $as_test_x conftest$ac_exeext; then
5286 <  ac_success=yes; break 2
4971 > { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4972 > $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4973 > if test "${ac_cv_path_GREP+set}" = set; then
4974 >  $as_echo_n "(cached) " >&6
4975   else
4976 <  echo "$as_me: failed program was:" >&5
4977 < sed 's/^/| /' conftest.$ac_ext >&5
4978 <
4979 <
4980 < fi
4981 <
4982 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4983 <      conftest$ac_exeext conftest.$ac_ext
4984 <    done
4976 >  if test -z "$GREP"; then
4977 >  ac_path_GREP_found=false
4978 >  # Loop through the user's path and test for each of PROGNAME-LIST
4979 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 > for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4981 > do
4982 >  IFS=$as_save_IFS
4983 >  test -z "$as_dir" && as_dir=.
4984 >  for ac_prog in grep ggrep; do
4985 >    for ac_exec_ext in '' $ac_executable_extensions; do
4986 >      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4987 >      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4988 > # Check for GNU ac_path_GREP and select it if it is found.
4989 >  # Check for GNU $ac_path_GREP
4990 > case `"$ac_path_GREP" --version 2>&1` in
4991 > *GNU*)
4992 >  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4993 > *)
4994 >  ac_count=0
4995 >  $as_echo_n 0123456789 >"conftest.in"
4996 >  while :
4997 >  do
4998 >    cat "conftest.in" "conftest.in" >"conftest.tmp"
4999 >    mv "conftest.tmp" "conftest.in"
5000 >    cp "conftest.in" "conftest.nl"
5001 >    $as_echo 'GREP' >> "conftest.nl"
5002 >    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5003 >    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5004 >    ac_count=`expr $ac_count + 1`
5005 >    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5006 >      # Best one so far, save it but keep looking for a better one
5007 >      ac_cv_path_GREP="$ac_path_GREP"
5008 >      ac_path_GREP_max=$ac_count
5009 >    fi
5010 >    # 10*(2^10) chars as input seems more than enough
5011 >    test $ac_count -gt 10 && break
5012    done
5013 <  ac_ext=${ac_fc_srcext-f}
5299 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5300 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5301 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5302 <
5303 <  if test "$ac_success" = "yes"; then
5304 <     case $ac_foobar in
5305 <        foobar)
5306 <           ac_case=lower
5307 <           ac_foo_bar=foo_bar
5308 <           ;;
5309 <        FOOBAR)
5310 <           ac_case=upper
5311 <           ac_foo_bar=FOO_BAR
5312 <           ;;
5313 <     esac
5314 <
5315 <     ac_ext=c
5316 < ac_cpp='$CPP $CPPFLAGS'
5317 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5318 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5319 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
5320 <     ac_success_extra=no
5321 <     for ac_extra in "" "_"; do
5322 <        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
5323 <        cat >conftest.$ac_ext <<_ACEOF
5324 < /* confdefs.h.  */
5325 < _ACEOF
5326 < cat confdefs.h >>conftest.$ac_ext
5327 < cat >>conftest.$ac_ext <<_ACEOF
5328 < /* end confdefs.h.  */
5329 <
5330 < /* Override any GCC internal prototype to avoid an error.
5331 <   Use char because int might match the return type of a GCC
5332 <   builtin and then its argument prototype would still apply.  */
5333 < #ifdef __cplusplus
5334 < extern "C"
5335 < #endif
5336 < char $ac_func ();
5337 < #ifdef FC_DUMMY_MAIN
5338 < #ifndef FC_DUMMY_MAIN_EQ_F77
5339 < #  ifdef __cplusplus
5340 <     extern "C"
5341 < #  endif
5342 <   int FC_DUMMY_MAIN() { return 1; }
5343 < #endif
5344 < #endif
5345 < int
5346 < main ()
5347 < {
5348 < return $ac_func ();
5349 <  ;
5350 <  return 0;
5351 < }
5352 < _ACEOF
5353 < rm -rf conftest.$ac_objext conftest$ac_exeext
5354 < if { (ac_try="$ac_link"
5355 < case "(($ac_try" in
5356 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 <  *) ac_try_echo=$ac_try;;
5013 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5014   esac
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360  (eval "$ac_link") 2>conftest.er1
5361  ac_status=$?
5362  grep -v '^ *+' conftest.er1 >conftest.err
5363  rm -f conftest.er1
5364  cat conftest.err >&5
5365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366  (exit $ac_status); } && {
5367         test -z "$ac_c_werror_flag" ||
5368         test ! -s conftest.err
5369       } && test -s conftest$ac_exeext &&
5370       $as_test_x conftest$ac_exeext; then
5371  ac_success_extra=yes; break
5372 else
5373  echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5015  
5016 <
5017 < fi
5018 <
5019 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5020 <      conftest$ac_exeext conftest.$ac_ext
5021 <     done
5022 <     ac_ext=${ac_fc_srcext-f}
5023 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5024 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5025 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5026 <
5027 <     if test "$ac_success_extra" = "yes"; then
5028 <        ac_cv_fc_mangling="$ac_case case"
5389 <        if test -z "$ac_underscore"; then
5390 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
5391 <        else
5392 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
5393 <        fi
5394 <        if test -z "$ac_extra"; then
5395 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
5396 <        else
5397 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
5398 <        fi
5399 <      else
5400 <        ac_cv_fc_mangling="unknown"
5401 <      fi
5402 <  else
5403 <     ac_cv_fc_mangling="unknown"
5404 <  fi
5405 <
5406 <  LIBS=$ac_save_LIBS
5407 <  rm -rf cfortran_test* conftest*
5408 < else
5409 <  echo "$as_me: failed program was:" >&5
5410 < sed 's/^/| /' conftest.$ac_ext >&5
5411 <
5412 <        { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
5413 < See \`config.log' for more details." >&5
5414 < echo "$as_me: error: cannot compile a simple Fortran program
5415 < See \`config.log' for more details." >&2;}
5416 <   { (exit 1); exit 1; }; }
5417 < fi
5418 <
5419 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
5420 <
5421 < fi
5422 < { echo "$as_me:$LINENO: result: $ac_cv_fc_mangling" >&5
5423 < echo "${ECHO_T}$ac_cv_fc_mangling" >&6; }
5424 <
5425 < ac_ext=${ac_fc_srcext-f}
5426 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5427 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5428 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5429 <
5430 < ac_ext=${ac_fc_srcext-f}
5431 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5432 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5433 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5434 <
5016 >      $ac_path_GREP_found && break 3
5017 >    done
5018 >  done
5019 > done
5020 > IFS=$as_save_IFS
5021 >  if test -z "$ac_cv_path_GREP"; then
5022 >    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5023 > $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5024 >   { (exit 1); exit 1; }; }
5025 >  fi
5026 > else
5027 >  ac_cv_path_GREP=$GREP
5028 > fi
5029  
5030 < case $ac_cv_fc_mangling in
5031 <  "lower case, no underscore, no extra underscore")
5032 <          cat >>confdefs.h <<\_ACEOF
5033 < #define FC_FUNC(name,NAME) name
5440 < _ACEOF
5030 > fi
5031 > { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5032 > $as_echo "$ac_cv_path_GREP" >&6; }
5033 > GREP="$ac_cv_path_GREP"
5034  
5035 <          cat >>confdefs.h <<\_ACEOF
5036 < #define FC_FUNC_(name,NAME) name
5035 >
5036 > { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5037 > $as_echo_n "checking for egrep... " >&6; }
5038 > if test "${ac_cv_path_EGREP+set}" = set; then
5039 >  $as_echo_n "(cached) " >&6
5040 > else
5041 >  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5042 >   then ac_cv_path_EGREP="$GREP -E"
5043 >   else
5044 >     if test -z "$EGREP"; then
5045 >  ac_path_EGREP_found=false
5046 >  # Loop through the user's path and test for each of PROGNAME-LIST
5047 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 > for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5049 > do
5050 >  IFS=$as_save_IFS
5051 >  test -z "$as_dir" && as_dir=.
5052 >  for ac_prog in egrep; do
5053 >    for ac_exec_ext in '' $ac_executable_extensions; do
5054 >      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5055 >      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5056 > # Check for GNU ac_path_EGREP and select it if it is found.
5057 >  # Check for GNU $ac_path_EGREP
5058 > case `"$ac_path_EGREP" --version 2>&1` in
5059 > *GNU*)
5060 >  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5061 > *)
5062 >  ac_count=0
5063 >  $as_echo_n 0123456789 >"conftest.in"
5064 >  while :
5065 >  do
5066 >    cat "conftest.in" "conftest.in" >"conftest.tmp"
5067 >    mv "conftest.tmp" "conftest.in"
5068 >    cp "conftest.in" "conftest.nl"
5069 >    $as_echo 'EGREP' >> "conftest.nl"
5070 >    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5071 >    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5072 >    ac_count=`expr $ac_count + 1`
5073 >    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5074 >      # Best one so far, save it but keep looking for a better one
5075 >      ac_cv_path_EGREP="$ac_path_EGREP"
5076 >      ac_path_EGREP_max=$ac_count
5077 >    fi
5078 >    # 10*(2^10) chars as input seems more than enough
5079 >    test $ac_count -gt 10 && break
5080 >  done
5081 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5082 > esac
5083 >
5084 >      $ac_path_EGREP_found && break 3
5085 >    done
5086 >  done
5087 > done
5088 > IFS=$as_save_IFS
5089 >  if test -z "$ac_cv_path_EGREP"; then
5090 >    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5091 > $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5092 >   { (exit 1); exit 1; }; }
5093 >  fi
5094 > else
5095 >  ac_cv_path_EGREP=$EGREP
5096 > fi
5097 >
5098 >   fi
5099 > fi
5100 > { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5101 > $as_echo "$ac_cv_path_EGREP" >&6; }
5102 > EGREP="$ac_cv_path_EGREP"
5103 >
5104 >
5105 > { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5106 > $as_echo_n "checking whether ln -s works... " >&6; }
5107 > LN_S=$as_ln_s
5108 > if test "$LN_S" = "ln -s"; then
5109 >  { $as_echo "$as_me:$LINENO: result: yes" >&5
5110 > $as_echo "yes" >&6; }
5111 > else
5112 >  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5113 > $as_echo "no, using $LN_S" >&6; }
5114 > fi
5115 >
5116 > { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5117 > $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5118 > set x ${MAKE-make}
5119 > ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5120 > if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5121 >  $as_echo_n "(cached) " >&6
5122 > else
5123 >  cat >conftest.make <<\_ACEOF
5124 > SHELL = /bin/sh
5125 > all:
5126 >        @echo '@@@%%%=$(MAKE)=@@@%%%'
5127   _ACEOF
5128 < ;;
5129 <  "lower case, no underscore, extra underscore")
5130 <          cat >>confdefs.h <<\_ACEOF
5131 < #define FC_FUNC(name,NAME) name
5128 > # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5129 > case `${MAKE-make} -f conftest.make 2>/dev/null` in
5130 >  *@@@%%%=?*=@@@%%%*)
5131 >    eval ac_cv_prog_make_${ac_make}_set=yes;;
5132 >  *)
5133 >    eval ac_cv_prog_make_${ac_make}_set=no;;
5134 > esac
5135 > rm -f conftest.make
5136 > fi
5137 > if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5138 >  { $as_echo "$as_me:$LINENO: result: yes" >&5
5139 > $as_echo "yes" >&6; }
5140 >  SET_MAKE=
5141 > else
5142 >  { $as_echo "$as_me:$LINENO: result: no" >&5
5143 > $as_echo "no" >&6; }
5144 >  SET_MAKE="MAKE=${MAKE-make}"
5145 > fi
5146 >
5147 > if test -n "$ac_tool_prefix"; then
5148 >  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5149 > set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5150 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 > $as_echo_n "checking for $ac_word... " >&6; }
5152 > if test "${ac_cv_prog_RANLIB+set}" = set; then
5153 >  $as_echo_n "(cached) " >&6
5154 > else
5155 >  if test -n "$RANLIB"; then
5156 >  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5157 > else
5158 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 > for as_dir in $PATH
5160 > do
5161 >  IFS=$as_save_IFS
5162 >  test -z "$as_dir" && as_dir=.
5163 >  for ac_exec_ext in '' $ac_executable_extensions; do
5164 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5166 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 >    break 2
5168 >  fi
5169 > done
5170 > done
5171 > IFS=$as_save_IFS
5172 >
5173 > fi
5174 > fi
5175 > RANLIB=$ac_cv_prog_RANLIB
5176 > if test -n "$RANLIB"; then
5177 >  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5178 > $as_echo "$RANLIB" >&6; }
5179 > else
5180 >  { $as_echo "$as_me:$LINENO: result: no" >&5
5181 > $as_echo "no" >&6; }
5182 > fi
5183 >
5184 >
5185 > fi
5186 > if test -z "$ac_cv_prog_RANLIB"; then
5187 >  ac_ct_RANLIB=$RANLIB
5188 >  # Extract the first word of "ranlib", so it can be a program name with args.
5189 > set dummy ranlib; ac_word=$2
5190 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5191 > $as_echo_n "checking for $ac_word... " >&6; }
5192 > if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5193 >  $as_echo_n "(cached) " >&6
5194 > else
5195 >  if test -n "$ac_ct_RANLIB"; then
5196 >  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5197 > else
5198 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 > for as_dir in $PATH
5200 > do
5201 >  IFS=$as_save_IFS
5202 >  test -z "$as_dir" && as_dir=.
5203 >  for ac_exec_ext in '' $ac_executable_extensions; do
5204 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
5206 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 >    break 2
5208 >  fi
5209 > done
5210 > done
5211 > IFS=$as_save_IFS
5212 >
5213 > fi
5214 > fi
5215 > ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5216 > if test -n "$ac_ct_RANLIB"; then
5217 >  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5218 > $as_echo "$ac_ct_RANLIB" >&6; }
5219 > else
5220 >  { $as_echo "$as_me:$LINENO: result: no" >&5
5221 > $as_echo "no" >&6; }
5222 > fi
5223 >
5224 >  if test "x$ac_ct_RANLIB" = x; then
5225 >    RANLIB=":"
5226 >  else
5227 >    case $cross_compiling:$ac_tool_warned in
5228 > yes:)
5229 > { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5230 > whose name does not start with the host triplet.  If you think this
5231 > configuration is useful to you, please write to autoconf@gnu.org." >&5
5232 > $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5233 > whose name does not start with the host triplet.  If you think this
5234 > configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5235 > ac_tool_warned=yes ;;
5236 > esac
5237 >    RANLIB=$ac_ct_RANLIB
5238 >  fi
5239 > else
5240 >  RANLIB="$ac_cv_prog_RANLIB"
5241 > fi
5242 >
5243 >
5244 >   # Extract the first word of "perl", so it can be a program name with args.
5245 > set dummy perl; ac_word=$2
5246 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5247 > $as_echo_n "checking for $ac_word... " >&6; }
5248 > if test "${ac_cv_path_PERLINTERP+set}" = set; then
5249 >  $as_echo_n "(cached) " >&6
5250 > else
5251 >  case $PERLINTERP in
5252 >  [\\/]* | ?:[\\/]*)
5253 >  ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
5254 >  ;;
5255 >  *)
5256 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 > for as_dir in $PATH
5258 > do
5259 >  IFS=$as_save_IFS
5260 >  test -z "$as_dir" && as_dir=.
5261 >  for ac_exec_ext in '' $ac_executable_extensions; do
5262 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 >    ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
5264 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 >    break 2
5266 >  fi
5267 > done
5268 > done
5269 > IFS=$as_save_IFS
5270 >
5271 >  test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
5272 >  ;;
5273 > esac
5274 > fi
5275 > PERLINTERP=$ac_cv_path_PERLINTERP
5276 > if test -n "$PERLINTERP"; then
5277 >  { $as_echo "$as_me:$LINENO: result: $PERLINTERP" >&5
5278 > $as_echo "$PERLINTERP" >&6; }
5279 > else
5280 >  { $as_echo "$as_me:$LINENO: result: no" >&5
5281 > $as_echo "no" >&6; }
5282 > fi
5283 >
5284 >
5285 >   ac_cv_path_perlinterp="$PERLINTERP"
5286 >   _sHpB='#!'
5287 >
5288 >
5289 > # Check whether --with-perl-shebang was given.
5290 > if test "${with_perl_shebang+set}" = set; then
5291 >  withval=$with_perl_shebang; opt_perl_shebang="$withval"
5292 > else
5293 >                opt_perl_shebang="not_set"
5294 > fi
5295 >
5296 >   { $as_echo "$as_me:$LINENO: checking whether explicit instead of detected sharpbang is to be used" >&5
5297 > $as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; }
5298 > if test "${ax_cv_opt_perl_shebang+set}" = set; then
5299 >  $as_echo_n "(cached) " >&6
5300 > else
5301 >   case "$opt_perl_shebang" in
5302 >                      not_set  ) ax_cv_opt_perl_shebang=''
5303 >                               ;;
5304 >                         *     )
5305 >        ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
5306 >                    esac
5307 >
5308 > fi
5309 > { $as_echo "$as_me:$LINENO: result: $ax_cv_opt_perl_shebang" >&5
5310 > $as_echo "$ax_cv_opt_perl_shebang" >&6; }
5311 >   if test "A$ax_cv_opt_perl_shebang" != "A"
5312 >     then
5313 >       ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
5314 >       PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
5315 >              { $as_echo "$as_me:$LINENO: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
5316 > $as_echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
5317 >
5318 > # Automatic detection of sharpbang formula starts here
5319 >     else
5320 >   _somian_shbangperl=`$PERLINTERP -V:startperl`
5321 >   negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
5322 >   { $as_echo "$as_me:$LINENO: checking for kernel sharpbang invocation to start perl" >&5
5323 > $as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; }
5324 > if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then
5325 >  $as_echo_n "(cached) " >&6
5326 > else
5327 >  _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
5328 >        if test "x$_somian_kspb_perl" == x
5329 >          then _somian_ksbp_warn_empty='durnit'
5330 >          else
5331 >          case "A$_somian_kspb_perl" in
5332 >                 A#!*perl* )
5333 >           ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
5334 >                        ;;
5335 >                     A*    )  _somian_ksbp_warn_defau='trouble'
5336 >                              ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
5337 >          esac
5338 >        fi
5339 >
5340 > fi
5341 > { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_kernshrpbang_perl" >&5
5342 > $as_echo "$ac_cv_sys_kernshrpbang_perl" >&6; }
5343 > # The above prints Checking ... result message to user.
5344 >   PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
5345 >
5346 >    if test A${_somian_ksbp_warn_empty+set} == Aset
5347 >      then   { $as_echo "$as_me:$LINENO: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
5348 > $as_echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
5349 >    fi
5350 > # Inform user after printing result value
5351 >    if test A${_somian_ksbp_warn_defau+set} == Aset
5352 >      then { $as_echo "$as_me:$LINENO: Maybe Not good -" >&5
5353 > $as_echo "$as_me: Maybe Not good -" >&6;}
5354 >           { $as_echo "$as_me:$LINENO: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
5355 > $as_echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
5356 >      else { $as_echo "$as_me:$LINENO: OK Good result - " >&5
5357 > $as_echo "$as_me: OK Good result - " >&6;}
5358 >           { $as_echo "$as_me:$LINENO: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
5359 > $as_echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
5360 >    fi
5361 >  fi
5362 >
5363 > # Find a good install program.  We prefer a C program (faster),
5364 > # so one script is as good as another.  But avoid the broken or
5365 > # incompatible versions:
5366 > # SysV /etc/install, /usr/sbin/install
5367 > # SunOS /usr/etc/install
5368 > # IRIX /sbin/install
5369 > # AIX /bin/install
5370 > # AmigaOS /C/install, which installs bootblocks on floppy discs
5371 > # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5372 > # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5373 > # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5374 > # OS/2's system install, which has a completely different semantic
5375 > # ./install, which can be erroneously created by make from ./install.sh.
5376 > # Reject install programs that cannot install multiple files.
5377 > { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5378 > $as_echo_n "checking for a BSD-compatible install... " >&6; }
5379 > if test -z "$INSTALL"; then
5380 > if test "${ac_cv_path_install+set}" = set; then
5381 >  $as_echo_n "(cached) " >&6
5382 > else
5383 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 > for as_dir in $PATH
5385 > do
5386 >  IFS=$as_save_IFS
5387 >  test -z "$as_dir" && as_dir=.
5388 >  # Account for people who put trailing slashes in PATH elements.
5389 > case $as_dir/ in
5390 >  ./ | .// | /cC/* | \
5391 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5392 >  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5393 >  /usr/ucb/* ) ;;
5394 >  *)
5395 >    # OSF1 and SCO ODT 3.0 have their own names for install.
5396 >    # Don't use installbsd from OSF since it installs stuff as root
5397 >    # by default.
5398 >    for ac_prog in ginstall scoinst install; do
5399 >      for ac_exec_ext in '' $ac_executable_extensions; do
5400 >        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5401 >          if test $ac_prog = install &&
5402 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5403 >            # AIX install.  It has an incompatible calling convention.
5404 >            :
5405 >          elif test $ac_prog = install &&
5406 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5407 >            # program-specific install script used by HP pwplus--don't use.
5408 >            :
5409 >          else
5410 >            rm -rf conftest.one conftest.two conftest.dir
5411 >            echo one > conftest.one
5412 >            echo two > conftest.two
5413 >            mkdir conftest.dir
5414 >            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5415 >              test -s conftest.one && test -s conftest.two &&
5416 >              test -s conftest.dir/conftest.one &&
5417 >              test -s conftest.dir/conftest.two
5418 >            then
5419 >              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5420 >              break 3
5421 >            fi
5422 >          fi
5423 >        fi
5424 >      done
5425 >    done
5426 >    ;;
5427 > esac
5428 >
5429 > done
5430 > IFS=$as_save_IFS
5431 >
5432 > rm -rf conftest.one conftest.two conftest.dir
5433 >
5434 > fi
5435 >  if test "${ac_cv_path_install+set}" = set; then
5436 >    INSTALL=$ac_cv_path_install
5437 >  else
5438 >    # As a last resort, use the slow shell script.  Don't cache a
5439 >    # value for INSTALL within a source directory, because that will
5440 >    # break other packages using the cache if that directory is
5441 >    # removed, or if the value is a relative name.
5442 >    INSTALL=$ac_install_sh
5443 >  fi
5444 > fi
5445 > { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5446 > $as_echo "$INSTALL" >&6; }
5447 >
5448 > # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5449 > # It thinks the first close brace ends the variable substitution.
5450 > test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5451 >
5452 > test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5453 >
5454 > test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5455 >
5456 > case "x$INSTALL" in
5457 >   x/*) ;;
5458 >   *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
5459 > esac
5460 > MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
5461 > # Extract the first word of "ar", so it can be a program name with args.
5462 > set dummy ar; ac_word=$2
5463 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5464 > $as_echo_n "checking for $ac_word... " >&6; }
5465 > if test "${ac_cv_prog_AR+set}" = set; then
5466 >  $as_echo_n "(cached) " >&6
5467 > else
5468 >  if test -n "$AR"; then
5469 >  ac_cv_prog_AR="$AR" # Let the user override the test.
5470 > else
5471 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 > for as_dir in $PATH
5473 > do
5474 >  IFS=$as_save_IFS
5475 >  test -z "$as_dir" && as_dir=.
5476 >  for ac_exec_ext in '' $ac_executable_extensions; do
5477 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5478 >    ac_cv_prog_AR="ar"
5479 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 >    break 2
5481 >  fi
5482 > done
5483 > done
5484 > IFS=$as_save_IFS
5485 >
5486 >  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
5487 > fi
5488 > fi
5489 > AR=$ac_cv_prog_AR
5490 > if test -n "$AR"; then
5491 >  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5492 > $as_echo "$AR" >&6; }
5493 > else
5494 >  { $as_echo "$as_me:$LINENO: result: no" >&5
5495 > $as_echo "no" >&6; }
5496 > fi
5497 >
5498 >
5499 > if test "$AR" = "NONE"; then
5500 >  cat >confcache <<\_ACEOF
5501 > # This file is a shell script that caches the results of configure
5502 > # tests run on this system so they can be shared between configure
5503 > # scripts and configure runs, see configure's option --config-cache.
5504 > # It is not useful on other systems.  If it contains results you don't
5505 > # want to keep, you may remove or edit it.
5506 > #
5507 > # config.status only pays attention to the cache file if you give it
5508 > # the --recheck option to rerun configure.
5509 > #
5510 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
5511 > # loading this file, other *unset* `ac_cv_foo' will be assigned the
5512 > # following values.
5513 >
5514   _ACEOF
5515  
5516 <          cat >>confdefs.h <<\_ACEOF
5517 < #define FC_FUNC_(name,NAME) name ## _
5518 < _ACEOF
5519 < ;;
5520 <  "lower case, underscore, no extra underscore")
5521 <          cat >>confdefs.h <<\_ACEOF
5522 < #define FC_FUNC(name,NAME) name ## _
5523 < _ACEOF
5516 > # The following way of writing the cache mishandles newlines in values,
5517 > # but we know of no workaround that is simple, portable, and efficient.
5518 > # So, we kill variables containing newlines.
5519 > # Ultrix sh set writes to stderr and can't be redirected directly,
5520 > # and sets the high bit in the cache file unless we assign to the vars.
5521 > (
5522 >  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5523 >    eval ac_val=\$$ac_var
5524 >    case $ac_val in #(
5525 >    *${as_nl}*)
5526 >      case $ac_var in #(
5527 >      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5528 > $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5529 >      esac
5530 >      case $ac_var in #(
5531 >      _ | IFS | as_nl) ;; #(
5532 >      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5533 >      *) $as_unset $ac_var ;;
5534 >      esac ;;
5535 >    esac
5536 >  done
5537  
5538 <          cat >>confdefs.h <<\_ACEOF
5539 < #define FC_FUNC_(name,NAME) name ## _
5540 < _ACEOF
5541 < ;;
5542 <  "lower case, underscore, extra underscore")
5543 <          cat >>confdefs.h <<\_ACEOF
5544 < #define FC_FUNC(name,NAME) name ## _
5545 < _ACEOF
5538 >  (set) 2>&1 |
5539 >    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5540 >    *${as_nl}ac_space=\ *)
5541 >      # `set' does not quote correctly, so add quotes (double-quote
5542 >      # substitution turns \\\\ into \\, and sed turns \\ into \).
5543 >      sed -n \
5544 >        "s/'/'\\\\''/g;
5545 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5546 >      ;; #(
5547 >    *)
5548 >      # `set' quotes correctly as required by POSIX, so do not add quotes.
5549 >      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5550 >      ;;
5551 >    esac |
5552 >    sort
5553 > ) |
5554 >  sed '
5555 >     /^ac_cv_env_/b end
5556 >     t clear
5557 >     :clear
5558 >     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5559 >     t end
5560 >     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5561 >     :end' >>confcache
5562 > if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5563 >  if test -w "$cache_file"; then
5564 >    test "x$cache_file" != "x/dev/null" &&
5565 >      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5566 > $as_echo "$as_me: updating cache $cache_file" >&6;}
5567 >    cat confcache >$cache_file
5568 >  else
5569 >    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5570 > $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5571 >  fi
5572 > fi
5573 > rm -f confcache
5574 >  exit 1
5575 > fi
5576 > # Extract the first word of "ps", so it can be a program name with args.
5577 > set dummy ps; ac_word=$2
5578 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5579 > $as_echo_n "checking for $ac_word... " >&6; }
5580 > if test "${ac_cv_path_PS+set}" = set; then
5581 >  $as_echo_n "(cached) " >&6
5582 > else
5583 >  case $PS in
5584 >  [\\/]* | ?:[\\/]*)
5585 >  ac_cv_path_PS="$PS" # Let the user override the test with a path.
5586 >  ;;
5587 >  *)
5588 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 > for as_dir in $PATH
5590 > do
5591 >  IFS=$as_save_IFS
5592 >  test -z "$as_dir" && as_dir=.
5593 >  for ac_exec_ext in '' $ac_executable_extensions; do
5594 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595 >    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5596 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 >    break 2
5598 >  fi
5599 > done
5600 > done
5601 > IFS=$as_save_IFS
5602  
5603 <          cat >>confdefs.h <<\_ACEOF
5604 < #define FC_FUNC_(name,NAME) name ## __
5605 < _ACEOF
5606 < ;;
5607 <  "upper case, no underscore, no extra underscore")
5608 <          cat >>confdefs.h <<\_ACEOF
5609 < #define FC_FUNC(name,NAME) NAME
5610 < _ACEOF
5603 >  ;;
5604 > esac
5605 > fi
5606 > PS=$ac_cv_path_PS
5607 > if test -n "$PS"; then
5608 >  { $as_echo "$as_me:$LINENO: result: $PS" >&5
5609 > $as_echo "$PS" >&6; }
5610 > else
5611 >  { $as_echo "$as_me:$LINENO: result: no" >&5
5612 > $as_echo "no" >&6; }
5613 > fi
5614  
5615 <          cat >>confdefs.h <<\_ACEOF
5616 < #define FC_FUNC_(name,NAME) NAME
5615 >
5616 > { $as_echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5
5617 > $as_echo_n "checking for POSIX or BSD ps syntax... " >&6; }
5618 > if test "${ac_cv_prog_ps_syntax+set}" = set; then
5619 >  $as_echo_n "(cached) " >&6
5620 > else
5621 >
5622 >        if $PS ax -o rss > /dev/null 2>&1; then
5623 >                ac_cv_prog_ps_ax=yes
5624 >        else
5625 >                ac_cv_prog_ps_ax=no
5626 >        fi
5627 >        if $PS -ef -o rss > /dev/null 2>&1; then
5628 >                ac_cv_prog_ps_ef=yes
5629 >        else
5630 >                ac_cv_prog_ps_ef=no
5631 >        fi
5632 >        if test "$ac_cv_prog_ps_ax" = yes; then
5633 >                ac_cv_prog_ps_syntax=BSD
5634 >        else
5635 >                if test "$ac_cv_prog_ps_ef" = yes; then
5636 >                        ac_cv_prog_ps_syntax=POSIX
5637 >                else
5638 >                        { { $as_echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5
5639 > $as_echo "$as_me: error: Could not determine ps syntax" >&2;}
5640 >   { (exit 1); exit 1; }; }
5641 >                fi
5642 >        fi
5643 >
5644 > fi
5645 > { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5
5646 > $as_echo "$ac_cv_prog_ps_syntax" >&6; }
5647 >
5648 > cat >>confdefs.h <<_ACEOF
5649 > #define PSCOMMAND $PS
5650   _ACEOF
5481 ;;
5482  "upper case, no underscore, extra underscore")
5483          cat >>confdefs.h <<\_ACEOF
5484 #define FC_FUNC(name,NAME) NAME
5485 _ACEOF
5651  
5652 <          cat >>confdefs.h <<\_ACEOF
5653 < #define FC_FUNC_(name,NAME) NAME ## _
5652 > if test "$ac_cv_prog_ps_syntax" = BSD; then
5653 >
5654 > cat >>confdefs.h <<\_ACEOF
5655 > #define PSTYPE_IS_BSD 1
5656   _ACEOF
5490 ;;
5491  "upper case, underscore, no extra underscore")
5492          cat >>confdefs.h <<\_ACEOF
5493 #define FC_FUNC(name,NAME) NAME ## _
5494 _ACEOF
5657  
5658 <          cat >>confdefs.h <<\_ACEOF
5659 < #define FC_FUNC_(name,NAME) NAME ## _
5658 > else
5659 >   if test "$ac_cv_prog_ps_syntax" = POSIX; then
5660 >
5661 > cat >>confdefs.h <<\_ACEOF
5662 > #define PSTYPE_IS_POSIX 1
5663   _ACEOF
5499 ;;
5500  "upper case, underscore, extra underscore")
5501          cat >>confdefs.h <<\_ACEOF
5502 #define FC_FUNC(name,NAME) NAME ## _
5503 _ACEOF
5664  
5665 <          cat >>confdefs.h <<\_ACEOF
5666 < #define FC_FUNC_(name,NAME) NAME ## __
5665 >   else
5666 >       { { $as_echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5
5667 > $as_echo "$as_me: error: Unknown ps syntax type!" >&2;}
5668 >   { (exit 1); exit 1; }; }
5669 >   fi
5670 > fi
5671 >
5672 > ac_ext=${ac_fc_srcext-f}
5673 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5674 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5675 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5676 >
5677 >
5678 > ac_ext=${ac_fc_srcext-f}
5679 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5680 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5681 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5682 > { $as_echo "$as_me:$LINENO: checking for Fortran flag to compile .F90 files" >&5
5683 > $as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; }
5684 > if test "${ac_cv_fc_srcext_F90+set}" = set; then
5685 >  $as_echo_n "(cached) " >&6
5686 > else
5687 >  ac_ext=F90
5688 > ac_fcflags_srcext_save=$ac_fcflags_srcext
5689 > ac_fcflags_srcext=
5690 > ac_cv_fc_srcext_F90=unknown
5691 > for ac_flag in none -qsuffix=f=F90 -Tf; do
5692 >  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
5693 >  cat >conftest.$ac_ext <<_ACEOF
5694 >      program main
5695 >
5696 >      end
5697   _ACEOF
5698 < ;;
5699 <  *)
5700 <          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
5701 < echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
5702 <          ;;
5698 > rm -f conftest.$ac_objext
5699 > if { (ac_try="$ac_compile"
5700 > case "(($ac_try" in
5701 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 >  *) ac_try_echo=$ac_try;;
5703   esac
5704 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5705 + $as_echo "$ac_try_echo") >&5
5706 +  (eval "$ac_compile") 2>conftest.er1
5707 +  ac_status=$?
5708 +  grep -v '^ *+' conftest.er1 >conftest.err
5709 +  rm -f conftest.er1
5710 +  cat conftest.err >&5
5711 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 +  (exit $ac_status); } && {
5713 +         test -z "$ac_fc_werror_flag" ||
5714 +         test ! -s conftest.err
5715 +       } && test -s conftest.$ac_objext; then
5716 +  ac_cv_fc_srcext_F90=$ac_flag; break
5717 + else
5718 +  $as_echo "$as_me: failed program was:" >&5
5719 + sed 's/^/| /' conftest.$ac_ext >&5
5720  
5721 +
5722 + fi
5723 +
5724 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 + done
5726 + rm -f conftest.$ac_objext conftest.F90
5727 + ac_fcflags_srcext=$ac_fcflags_srcext_save
5728 +
5729 + fi
5730 + { $as_echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_F90" >&5
5731 + $as_echo "$ac_cv_fc_srcext_F90" >&6; }
5732 + if test "x$ac_cv_fc_srcext_F90" = xunknown; then
5733 +  { { $as_echo "$as_me:$LINENO: error: Fortran could not compile .F90 files" >&5
5734 + $as_echo "$as_me: error: Fortran could not compile .F90 files" >&2;}
5735 +   { (exit 1); exit 1; }; }
5736 + else
5737 +  ac_fc_srcext=F90
5738 +  if test "x$ac_cv_fc_srcext_F90" = xnone; then
5739 +    ac_fcflags_srcext=""
5740 +    FCFLAGS_F90=""
5741 +  else
5742 +    ac_fcflags_srcext=$ac_cv_fc_srcext_F90
5743 +    FCFLAGS_F90=$ac_cv_fc_srcext_F90
5744 +  fi
5745 +
5746 +
5747 + fi
5748   ac_ext=${ac_fc_srcext-f}
5749   ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5750   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
# Line 5519 | Line 5752 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5752  
5753  
5754  
5755 +
5756 +
5757 + # Try to determine native compiler flags that allow us to use F90 suffix
5758 + # for preprocessed f90 source.
5759 +
5760 + if test "$ac_test_PREPFLAG" != "set"; then
5761 +  PREPFLAG=""
5762 +  case "${host_cpu}-${host_os}" in
5763 +
5764 +  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
5765 +                    PREPFLAG="-fpp1 "
5766 +                fi;;
5767 +  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
5768 +                    PREPFLAG="-qsuffix=cpp=F90 "
5769 +                fi;;
5770 +  *darwin*)
5771 +        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
5772 +                PREPFLAG="-qsuffix=cpp=F90 "
5773 +        fi;;
5774 +  esac
5775 +
5776 +  if test -z "$PREPFLAG"; then
5777 +        { $as_echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
5778 + $as_echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
5779 +        PREPFLAG=""
5780 +  fi
5781 +
5782 +  { $as_echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
5783 + $as_echo_n "checking to make sure F90 preprocessor flag works... " >&6; }
5784 +
5785 +  ac_ext=${ac_fc_srcext-f}
5786 + ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5787 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5788 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5789 +
5790 +  ac_save_ext=$ac_ext
5791 +  ac_ext=F90
5792 +  ac_save_FCFLAGS_SRCEXT=$FCFLAGS_SRCEXT
5793 +
5794 +  if test "$PREPFLAG"; then
5795 +  FCFLAGS_SRCEXT="${PREPFLAG}"
5796 + fi
5797 +
5798 +    cat >conftest.$ac_ext <<_ACEOF
5799 +
5800 +
5801 + program conftest
5802 +  integer :: i
5803 +  i = 1
5804 + end program conftest
5805 +
5806 + _ACEOF
5807 + rm -f conftest.$ac_objext
5808 + if { (ac_try="$ac_compile"
5809 + case "(($ac_try" in
5810 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 +  *) ac_try_echo=$ac_try;;
5812 + esac
5813 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5814 + $as_echo "$ac_try_echo") >&5
5815 +  (eval "$ac_compile") 2>conftest.er1
5816 +  ac_status=$?
5817 +  grep -v '^ *+' conftest.er1 >conftest.err
5818 +  rm -f conftest.er1
5819 +  cat conftest.err >&5
5820 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 +  (exit $ac_status); } && {
5822 +         test -z "$ac_fc_werror_flag" ||
5823 +         test ! -s conftest.err
5824 +       } && test -s conftest.$ac_objext; then
5825 +  prepflagworks=1
5826 + else
5827 +  $as_echo "$as_me: failed program was:" >&5
5828 + sed 's/^/| /' conftest.$ac_ext >&5
5829 +
5830 +        prepflagworks=0
5831 + fi
5832 +
5833 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5834 +
5835 +  FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT
5836 +  ac_ext=$ac_save_ext
5837 +  ac_ext=${ac_fc_srcext-f}
5838 + ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5839 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5840 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5841 +
5842 +
5843 +  if test "$prepflagworks" = 1; then
5844 +    { $as_echo "$as_me:$LINENO: result: yes" >&5
5845 + $as_echo "yes" >&6; }
5846 +    FCFLAGS_SRCEXT="${PREPFLAG}"
5847 +
5848 +  else
5849 +    { $as_echo "$as_me:$LINENO: result: no" >&5
5850 + $as_echo "no" >&6; }
5851 +    { { $as_echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
5852 + $as_echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
5853 +   { (exit 1); exit 1; }; }
5854 +  fi
5855 + fi
5856 +
5857 +
5858 +
5859 +
5860 +
5861 + # Try to determine native compiler flags that allow us to use F90 suffix
5862 + # for preprocessed f90 source with -D type defines
5863 +
5864 + if test "$ac_test_PREPDEFFLAG" != "set"; then
5865 +  PREPDEFFLAG=""
5866 +  case "${host_cpu}-${host_os}" in
5867 +
5868 +  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
5869 +                    PREPDEFFLAG=" "
5870 +                fi;;
5871 +  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
5872 +                    PREPDEFFLAG="-WF,"
5873 +                fi;;
5874 +  *darwin*)
5875 +        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
5876 +                PREPDEFFLAG="-WF,"
5877 +        fi;;
5878 +  esac
5879 +
5880 +  if test -z "$PREPDEFFLAG"; then
5881 +        { $as_echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
5882 + $as_echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
5883 +        PREPDEFFLAG=" "
5884 +  fi
5885 +
5886 +  { $as_echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
5887 + $as_echo_n "checking to make sure F90 preprocessor define flag works... " >&6; }
5888 +
5889 +  ac_ext=${ac_fc_srcext-f}
5890 + ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5891 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5892 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5893 +
5894 +  ac_save_ext=$ac_ext
5895 +  ac_ext=F90
5896 +  ac_save_FCFLAGS=$FCFLAGS
5897 +
5898 +  if test "$PREPDEFFLAG"; then
5899 +  FCFLAGS="${FCFLAGS} ${PREPDEFFLAG}-DTEST"
5900 + fi
5901 +
5902 +    cat >conftest.$ac_ext <<_ACEOF
5903 +
5904 +
5905 + program conftest
5906 +  integer :: i
5907 + #ifdef TEST
5908 +  i = 1
5909 + #else
5910 +  choke me
5911 + #endif
5912 + end program conftest
5913 +
5914 + _ACEOF
5915 + rm -f conftest.$ac_objext
5916 + if { (ac_try="$ac_compile"
5917 + case "(($ac_try" in
5918 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 +  *) ac_try_echo=$ac_try;;
5920 + esac
5921 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5922 + $as_echo "$ac_try_echo") >&5
5923 +  (eval "$ac_compile") 2>conftest.er1
5924 +  ac_status=$?
5925 +  grep -v '^ *+' conftest.er1 >conftest.err
5926 +  rm -f conftest.er1
5927 +  cat conftest.err >&5
5928 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 +  (exit $ac_status); } && {
5930 +         test -z "$ac_fc_werror_flag" ||
5931 +         test ! -s conftest.err
5932 +       } && test -s conftest.$ac_objext; then
5933 +  prepdefflagworks=1
5934 + else
5935 +  $as_echo "$as_me: failed program was:" >&5
5936 + sed 's/^/| /' conftest.$ac_ext >&5
5937 +
5938 +        prepdefflagworks=0
5939 + fi
5940 +
5941 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 +
5943 +  FCFLAGS=$ac_save_FCFLAGS
5944 +  ac_ext=$ac_save_ext
5945 +  ac_ext=${ac_fc_srcext-f}
5946 + ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5947 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5948 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5949 +
5950 +
5951 +  if test "$prepdefflagworks" = 1; then
5952 +    { $as_echo "$as_me:$LINENO: result: yes" >&5
5953 + $as_echo "yes" >&6; }
5954 +
5955 +  else
5956 +    { $as_echo "$as_me:$LINENO: result: no" >&5
5957 + $as_echo "no" >&6; }
5958 +    { { $as_echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
5959 + $as_echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
5960 +   { (exit 1); exit 1; }; }
5961 +  fi
5962 + fi
5963 +
5964   ac_ext=${ac_fc_srcext-f}
5965   ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5966   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5967   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5968 < { echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5
5969 < echo $ECHO_N "checking how to get verbose linking output from $FC... $ECHO_C" >&6; }
5968 > { $as_echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5
5969 > $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
5970   if test "${ac_cv_prog_fc_v+set}" = set; then
5971 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5971 >  $as_echo_n "(cached) " >&6
5972   else
5973    cat >conftest.$ac_ext <<_ACEOF
5974        program main
5975  
5976        end
5977   _ACEOF
5978 < rm -rf conftest.$ac_objext
5978 > rm -f conftest.$ac_objext
5979   if { (ac_try="$ac_compile"
5980   case "(($ac_try" in
5981    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982    *) ac_try_echo=$ac_try;;
5983   esac
5984 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5985 > $as_echo "$ac_try_echo") >&5
5986    (eval "$ac_compile") 2>conftest.er1
5987    ac_status=$?
5988    grep -v '^ *+' conftest.er1 >conftest.err
5989    rm -f conftest.er1
5990    cat conftest.err >&5
5991 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992    (exit $ac_status); } && {
5993           test -z "$ac_fc_werror_flag" ||
5994           test ! -s conftest.err
# Line 5567 | Line 6010 | shift
6010   FCFLAGS="$FCFLAGS $ac_verb"
6011   eval "set x $ac_link"
6012   shift
6013 < echo "$as_me:$LINENO: $*" >&5
6014 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
6015 < echo "$ac_fc_v_output" >&5
6013 > $as_echo "$as_me:$LINENO: $*" >&5
6014 > # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6015 > # LIBRARY_PATH; skip all such settings.
6016 > ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6017 >  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6018 > $as_echo "$ac_fc_v_output" >&5
6019   FCFLAGS=$ac_save_FFLAGS
6020  
6021   rm -rf conftest*
# Line 5579 | Line 6025 | ac_fc_v_output="`echo $ac_fc_v_output |
6025   # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
6026   ac_fc_v_output="`echo $ac_fc_v_output |
6027          grep 'LPATH is:' |
6028 <        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
6028 >        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
6029  
6030   # FIXME: we keep getting bitten by quoted arguments; a more general fix
6031   #        that detects unbalanced quotes in FLIBS should be implemented
# Line 5619 | Line 6065 | if test -z "$ac_cv_prog_fc_v"; then
6065    done
6066   done
6067   if test -z "$ac_cv_prog_fc_v"; then
6068 <   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5
6069 < echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
6068 >   { $as_echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5
6069 > $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
6070   fi
6071   else
6072 <  echo "$as_me: failed program was:" >&5
6072 >  $as_echo "$as_me: failed program was:" >&5
6073   sed 's/^/| /' conftest.$ac_ext >&5
6074  
6075 <        { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
6076 < echo "$as_me: WARNING: compilation failed" >&2;}
6075 >        { $as_echo "$as_me:$LINENO: WARNING: compilation failed" >&5
6076 > $as_echo "$as_me: WARNING: compilation failed" >&2;}
6077   fi
6078  
6079   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080  
6081   fi
6082 < { echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5
6083 < echo "${ECHO_T}$ac_cv_prog_fc_v" >&6; }
6084 < { echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5
6085 < echo $ECHO_N "checking for Fortran libraries of $FC... $ECHO_C" >&6; }
6086 < if test "${ac_cv_fc_libs+set}" = set; then
6087 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6082 > { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5
6083 > $as_echo "$ac_cv_prog_fc_v" >&6; }
6084 > { $as_echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5
6085 > $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
6086 > if test "${ac_cv_fc_libs+set}" = set; then
6087 >  $as_echo_n "(cached) " >&6
6088   else
6089    if test "x$FCLIBS" != "x"; then
6090    ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
# Line 5658 | Line 6104 | shift
6104   FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
6105   eval "set x $ac_link"
6106   shift
6107 < echo "$as_me:$LINENO: $*" >&5
6108 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
6109 < echo "$ac_fc_v_output" >&5
6107 > $as_echo "$as_me:$LINENO: $*" >&5
6108 > # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6109 > # LIBRARY_PATH; skip all such settings.
6110 > ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6111 >  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6112 > $as_echo "$ac_fc_v_output" >&5
6113   FCFLAGS=$ac_save_FFLAGS
6114  
6115   rm -rf conftest*
# Line 5670 | Line 6119 | ac_fc_v_output="`echo $ac_fc_v_output |
6119   # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
6120   ac_fc_v_output="`echo $ac_fc_v_output |
6121          grep 'LPATH is:' |
6122 <        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
6122 >        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
6123  
6124   # FIXME: we keep getting bitten by quoted arguments; a more general fix
6125   #        that detects unbalanced quotes in FLIBS should be implemented
# Line 5769 | Line 6218 | fi
6218            esac
6219            ;;
6220          -YP,*)
6221 <          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
6221 >          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
6222                ac_exists=false
6223    for ac_i in $ac_cv_fc_libs; do
6224      if test x"$ac_j" = x"$ac_i"; then
# Line 5817 | Line 6266 | case `(uname -sr) 2>/dev/null` in
6266   # must begin with a "/").
6267   case `(uname -sr) 2>/dev/null` in
6268     "SunOS 5"*)
6269 <      ac_ld_run_path=`echo $ac_fc_v_output |
6269 >      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
6270                          sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
6271        test "x$ac_ld_run_path" != x &&
6272          if test "$ac_compiler_gnu" = yes; then
# Line 5832 | Line 6281 | fi
6281   fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
6282  
6283   fi
6284 < { echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5
6285 < echo "${ECHO_T}$ac_cv_fc_libs" >&6; }
6284 > { $as_echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5
6285 > $as_echo "$ac_cv_fc_libs" >&6; }
6286   FCLIBS="$ac_cv_fc_libs"
6287  
6288  
# Line 5843 | Line 6292 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6292   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6293  
6294  
6295 + ac_ext=${ac_fc_srcext-f}
6296 + ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6297 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6298 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6299  
6300 < { echo "$as_me:$LINENO: checking for module suffix" >&5
6301 < echo $ECHO_N "checking for module suffix... $ECHO_C" >&6; }
6300 > { $as_echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
6301 > $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
6302 > if test "${ac_cv_fc_dummy_main+set}" = set; then
6303 >  $as_echo_n "(cached) " >&6
6304 > else
6305 >  ac_fc_dm_save_LIBS=$LIBS
6306 > LIBS="$LIBS $FCLIBS"
6307 > ac_fortran_dm_var=FC_DUMMY_MAIN
6308 > ac_ext=c
6309 > ac_cpp='$CPP $CPPFLAGS'
6310 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6311 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6312 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6313 >
6314 > # First, try linking without a dummy main:
6315 > cat >conftest.$ac_ext <<_ACEOF
6316 > /* confdefs.h.  */
6317 > _ACEOF
6318 > cat confdefs.h >>conftest.$ac_ext
6319 > cat >>conftest.$ac_ext <<_ACEOF
6320 > /* end confdefs.h.  */
6321 >
6322 > #ifdef FC_DUMMY_MAIN
6323 > #ifndef FC_DUMMY_MAIN_EQ_F77
6324 > #  ifdef __cplusplus
6325 >     extern "C"
6326 > #  endif
6327 >   int FC_DUMMY_MAIN() { return 1; }
6328 > #endif
6329 > #endif
6330 > int
6331 > main ()
6332 > {
6333 >
6334 >  ;
6335 >  return 0;
6336 > }
6337 > _ACEOF
6338 > rm -f conftest.$ac_objext conftest$ac_exeext
6339 > if { (ac_try="$ac_link"
6340 > case "(($ac_try" in
6341 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 >  *) ac_try_echo=$ac_try;;
6343 > esac
6344 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6345 > $as_echo "$ac_try_echo") >&5
6346 >  (eval "$ac_link") 2>conftest.er1
6347 >  ac_status=$?
6348 >  grep -v '^ *+' conftest.er1 >conftest.err
6349 >  rm -f conftest.er1
6350 >  cat conftest.err >&5
6351 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 >  (exit $ac_status); } && {
6353 >         test -z "$ac_c_werror_flag" ||
6354 >         test ! -s conftest.err
6355 >       } && test -s conftest$ac_exeext && {
6356 >         test "$cross_compiling" = yes ||
6357 >         $as_test_x conftest$ac_exeext
6358 >       }; then
6359 >  ac_cv_fortran_dummy_main=none
6360 > else
6361 >  $as_echo "$as_me: failed program was:" >&5
6362 > sed 's/^/| /' conftest.$ac_ext >&5
6363 >
6364 >        ac_cv_fortran_dummy_main=unknown
6365 > fi
6366 >
6367 > rm -rf conftest.dSYM
6368 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6369 >      conftest$ac_exeext conftest.$ac_ext
6370 >
6371 > if test $ac_cv_fortran_dummy_main = unknown; then
6372 >   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
6373 >     cat >conftest.$ac_ext <<_ACEOF
6374 > /* confdefs.h.  */
6375 > _ACEOF
6376 > cat confdefs.h >>conftest.$ac_ext
6377 > cat >>conftest.$ac_ext <<_ACEOF
6378 > /* end confdefs.h.  */
6379 > #define $ac_fortran_dm_var $ac_func
6380 > #ifdef FC_DUMMY_MAIN
6381 > #ifndef FC_DUMMY_MAIN_EQ_F77
6382 > #  ifdef __cplusplus
6383 >     extern "C"
6384 > #  endif
6385 >   int FC_DUMMY_MAIN() { return 1; }
6386 > #endif
6387 > #endif
6388 > int
6389 > main ()
6390 > {
6391 >
6392 >  ;
6393 >  return 0;
6394 > }
6395 > _ACEOF
6396 > rm -f conftest.$ac_objext conftest$ac_exeext
6397 > if { (ac_try="$ac_link"
6398 > case "(($ac_try" in
6399 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 >  *) ac_try_echo=$ac_try;;
6401 > esac
6402 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6403 > $as_echo "$ac_try_echo") >&5
6404 >  (eval "$ac_link") 2>conftest.er1
6405 >  ac_status=$?
6406 >  grep -v '^ *+' conftest.er1 >conftest.err
6407 >  rm -f conftest.er1
6408 >  cat conftest.err >&5
6409 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 >  (exit $ac_status); } && {
6411 >         test -z "$ac_c_werror_flag" ||
6412 >         test ! -s conftest.err
6413 >       } && test -s conftest$ac_exeext && {
6414 >         test "$cross_compiling" = yes ||
6415 >         $as_test_x conftest$ac_exeext
6416 >       }; then
6417 >  ac_cv_fortran_dummy_main=$ac_func; break
6418 > else
6419 >  $as_echo "$as_me: failed program was:" >&5
6420 > sed 's/^/| /' conftest.$ac_ext >&5
6421 >
6422 >
6423 > fi
6424 >
6425 > rm -rf conftest.dSYM
6426 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6427 >      conftest$ac_exeext conftest.$ac_ext
6428 >   done
6429 > fi
6430 > ac_ext=${ac_fc_srcext-f}
6431 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6432 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6433 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6434 > ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
6435 > rm -rf conftest*
6436 > LIBS=$ac_fc_dm_save_LIBS
6437 >
6438 > fi
6439 > { $as_echo "$as_me:$LINENO: result: $ac_cv_fc_dummy_main" >&5
6440 > $as_echo "$ac_cv_fc_dummy_main" >&6; }
6441 > FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
6442 > if test "$FC_DUMMY_MAIN" != unknown; then
6443 >  if test $FC_DUMMY_MAIN != none; then
6444 >
6445 > cat >>confdefs.h <<_ACEOF
6446 > #define FC_DUMMY_MAIN $FC_DUMMY_MAIN
6447 > _ACEOF
6448 >
6449 >  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
6450 >
6451 > cat >>confdefs.h <<\_ACEOF
6452 > #define FC_DUMMY_MAIN_EQ_F77 1
6453 > _ACEOF
6454 >
6455 >  fi
6456 > fi
6457 > else
6458 >  { { $as_echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
6459 > See \`config.log' for more details." >&5
6460 > $as_echo "$as_me: error: linking to Fortran libraries from C fails
6461 > See \`config.log' for more details." >&2;}
6462 >   { (exit 1); exit 1; }; }
6463 > fi
6464 >
6465 >
6466 > ac_ext=${ac_fc_srcext-f}
6467 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6468 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6469 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6470 >
6471 > ac_ext=${ac_fc_srcext-f}
6472 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6473 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6474 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6475 > { $as_echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
6476 > $as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
6477 > if test "${ac_cv_fc_mangling+set}" = set; then
6478 >  $as_echo_n "(cached) " >&6
6479 > else
6480 >  cat >conftest.$ac_ext <<_ACEOF
6481 >      subroutine foobar()
6482 >      return
6483 >      end
6484 >      subroutine foo_bar()
6485 >      return
6486 >      end
6487 > _ACEOF
6488 > rm -f conftest.$ac_objext
6489 > if { (ac_try="$ac_compile"
6490 > case "(($ac_try" in
6491 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 >  *) ac_try_echo=$ac_try;;
6493 > esac
6494 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6495 > $as_echo "$ac_try_echo") >&5
6496 >  (eval "$ac_compile") 2>conftest.er1
6497 >  ac_status=$?
6498 >  grep -v '^ *+' conftest.er1 >conftest.err
6499 >  rm -f conftest.er1
6500 >  cat conftest.err >&5
6501 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 >  (exit $ac_status); } && {
6503 >         test -z "$ac_fc_werror_flag" ||
6504 >         test ! -s conftest.err
6505 >       } && test -s conftest.$ac_objext; then
6506 >  mv conftest.$ac_objext cfortran_test.$ac_objext
6507 >
6508 >  ac_save_LIBS=$LIBS
6509 >  LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"
6510 >
6511 >  ac_ext=c
6512 > ac_cpp='$CPP $CPPFLAGS'
6513 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6514 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6515 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6516 >  ac_success=no
6517 >  for ac_foobar in foobar FOOBAR; do
6518 >    for ac_underscore in "" "_"; do
6519 >      ac_func="$ac_foobar$ac_underscore"
6520 >      cat >conftest.$ac_ext <<_ACEOF
6521 > /* confdefs.h.  */
6522 > _ACEOF
6523 > cat confdefs.h >>conftest.$ac_ext
6524 > cat >>conftest.$ac_ext <<_ACEOF
6525 > /* end confdefs.h.  */
6526 >
6527 > /* Override any GCC internal prototype to avoid an error.
6528 >   Use char because int might match the return type of a GCC
6529 >   builtin and then its argument prototype would still apply.  */
6530 > #ifdef __cplusplus
6531 > extern "C"
6532 > #endif
6533 > char $ac_func ();
6534 > #ifdef FC_DUMMY_MAIN
6535 > #ifndef FC_DUMMY_MAIN_EQ_F77
6536 > #  ifdef __cplusplus
6537 >     extern "C"
6538 > #  endif
6539 >   int FC_DUMMY_MAIN() { return 1; }
6540 > #endif
6541 > #endif
6542 > int
6543 > main ()
6544 > {
6545 > return $ac_func ();
6546 >  ;
6547 >  return 0;
6548 > }
6549 > _ACEOF
6550 > rm -f conftest.$ac_objext conftest$ac_exeext
6551 > if { (ac_try="$ac_link"
6552 > case "(($ac_try" in
6553 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 >  *) ac_try_echo=$ac_try;;
6555 > esac
6556 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6557 > $as_echo "$ac_try_echo") >&5
6558 >  (eval "$ac_link") 2>conftest.er1
6559 >  ac_status=$?
6560 >  grep -v '^ *+' conftest.er1 >conftest.err
6561 >  rm -f conftest.er1
6562 >  cat conftest.err >&5
6563 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 >  (exit $ac_status); } && {
6565 >         test -z "$ac_c_werror_flag" ||
6566 >         test ! -s conftest.err
6567 >       } && test -s conftest$ac_exeext && {
6568 >         test "$cross_compiling" = yes ||
6569 >         $as_test_x conftest$ac_exeext
6570 >       }; then
6571 >  ac_success=yes; break 2
6572 > else
6573 >  $as_echo "$as_me: failed program was:" >&5
6574 > sed 's/^/| /' conftest.$ac_ext >&5
6575 >
6576 >
6577 > fi
6578 >
6579 > rm -rf conftest.dSYM
6580 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6581 >      conftest$ac_exeext conftest.$ac_ext
6582 >    done
6583 >  done
6584 >  ac_ext=${ac_fc_srcext-f}
6585 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6586 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6587 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6588 >
6589 >  if test "$ac_success" = "yes"; then
6590 >     case $ac_foobar in
6591 >        foobar)
6592 >           ac_case=lower
6593 >           ac_foo_bar=foo_bar
6594 >           ;;
6595 >        FOOBAR)
6596 >           ac_case=upper
6597 >           ac_foo_bar=FOO_BAR
6598 >           ;;
6599 >     esac
6600 >
6601 >     ac_ext=c
6602 > ac_cpp='$CPP $CPPFLAGS'
6603 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6606 >     ac_success_extra=no
6607 >     for ac_extra in "" "_"; do
6608 >        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
6609 >        cat >conftest.$ac_ext <<_ACEOF
6610 > /* confdefs.h.  */
6611 > _ACEOF
6612 > cat confdefs.h >>conftest.$ac_ext
6613 > cat >>conftest.$ac_ext <<_ACEOF
6614 > /* end confdefs.h.  */
6615 >
6616 > /* Override any GCC internal prototype to avoid an error.
6617 >   Use char because int might match the return type of a GCC
6618 >   builtin and then its argument prototype would still apply.  */
6619 > #ifdef __cplusplus
6620 > extern "C"
6621 > #endif
6622 > char $ac_func ();
6623 > #ifdef FC_DUMMY_MAIN
6624 > #ifndef FC_DUMMY_MAIN_EQ_F77
6625 > #  ifdef __cplusplus
6626 >     extern "C"
6627 > #  endif
6628 >   int FC_DUMMY_MAIN() { return 1; }
6629 > #endif
6630 > #endif
6631 > int
6632 > main ()
6633 > {
6634 > return $ac_func ();
6635 >  ;
6636 >  return 0;
6637 > }
6638 > _ACEOF
6639 > rm -f conftest.$ac_objext conftest$ac_exeext
6640 > if { (ac_try="$ac_link"
6641 > case "(($ac_try" in
6642 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643 >  *) ac_try_echo=$ac_try;;
6644 > esac
6645 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6646 > $as_echo "$ac_try_echo") >&5
6647 >  (eval "$ac_link") 2>conftest.er1
6648 >  ac_status=$?
6649 >  grep -v '^ *+' conftest.er1 >conftest.err
6650 >  rm -f conftest.er1
6651 >  cat conftest.err >&5
6652 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 >  (exit $ac_status); } && {
6654 >         test -z "$ac_c_werror_flag" ||
6655 >         test ! -s conftest.err
6656 >       } && test -s conftest$ac_exeext && {
6657 >         test "$cross_compiling" = yes ||
6658 >         $as_test_x conftest$ac_exeext
6659 >       }; then
6660 >  ac_success_extra=yes; break
6661 > else
6662 >  $as_echo "$as_me: failed program was:" >&5
6663 > sed 's/^/| /' conftest.$ac_ext >&5
6664 >
6665 >
6666 > fi
6667 >
6668 > rm -rf conftest.dSYM
6669 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6670 >      conftest$ac_exeext conftest.$ac_ext
6671 >     done
6672 >     ac_ext=${ac_fc_srcext-f}
6673 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6674 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6675 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6676 >
6677 >     if test "$ac_success_extra" = "yes"; then
6678 >        ac_cv_fc_mangling="$ac_case case"
6679 >        if test -z "$ac_underscore"; then
6680 >           ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
6681 >        else
6682 >           ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
6683 >        fi
6684 >        if test -z "$ac_extra"; then
6685 >           ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
6686 >        else
6687 >           ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
6688 >        fi
6689 >      else
6690 >        ac_cv_fc_mangling="unknown"
6691 >      fi
6692 >  else
6693 >     ac_cv_fc_mangling="unknown"
6694 >  fi
6695 >
6696 >  LIBS=$ac_save_LIBS
6697 >  rm -rf conftest*
6698 >  rm -f cfortran_test*
6699 > else
6700 >  $as_echo "$as_me: failed program was:" >&5
6701 > sed 's/^/| /' conftest.$ac_ext >&5
6702 >
6703 >        { { $as_echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
6704 > See \`config.log' for more details." >&5
6705 > $as_echo "$as_me: error: cannot compile a simple Fortran program
6706 > See \`config.log' for more details." >&2;}
6707 >   { (exit 1); exit 1; }; }
6708 > fi
6709 >
6710 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711 >
6712 > fi
6713 > { $as_echo "$as_me:$LINENO: result: $ac_cv_fc_mangling" >&5
6714 > $as_echo "$ac_cv_fc_mangling" >&6; }
6715 >
6716 > ac_ext=${ac_fc_srcext-f}
6717 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6718 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6719 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6720 >
6721 > ac_ext=${ac_fc_srcext-f}
6722 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6723 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6724 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6725 >
6726 >
6727 > case $ac_cv_fc_mangling in
6728 >  "lower case, no underscore, no extra underscore")
6729 >          cat >>confdefs.h <<\_ACEOF
6730 > #define FC_FUNC(name,NAME) name
6731 > _ACEOF
6732 >
6733 >          cat >>confdefs.h <<\_ACEOF
6734 > #define FC_FUNC_(name,NAME) name
6735 > _ACEOF
6736 > ;;
6737 >  "lower case, no underscore, extra underscore")
6738 >          cat >>confdefs.h <<\_ACEOF
6739 > #define FC_FUNC(name,NAME) name
6740 > _ACEOF
6741 >
6742 >          cat >>confdefs.h <<\_ACEOF
6743 > #define FC_FUNC_(name,NAME) name ## _
6744 > _ACEOF
6745 > ;;
6746 >  "lower case, underscore, no extra underscore")
6747 >          cat >>confdefs.h <<\_ACEOF
6748 > #define FC_FUNC(name,NAME) name ## _
6749 > _ACEOF
6750 >
6751 >          cat >>confdefs.h <<\_ACEOF
6752 > #define FC_FUNC_(name,NAME) name ## _
6753 > _ACEOF
6754 > ;;
6755 >  "lower case, underscore, extra underscore")
6756 >          cat >>confdefs.h <<\_ACEOF
6757 > #define FC_FUNC(name,NAME) name ## _
6758 > _ACEOF
6759 >
6760 >          cat >>confdefs.h <<\_ACEOF
6761 > #define FC_FUNC_(name,NAME) name ## __
6762 > _ACEOF
6763 > ;;
6764 >  "upper case, no underscore, no extra underscore")
6765 >          cat >>confdefs.h <<\_ACEOF
6766 > #define FC_FUNC(name,NAME) NAME
6767 > _ACEOF
6768 >
6769 >          cat >>confdefs.h <<\_ACEOF
6770 > #define FC_FUNC_(name,NAME) NAME
6771 > _ACEOF
6772 > ;;
6773 >  "upper case, no underscore, extra underscore")
6774 >          cat >>confdefs.h <<\_ACEOF
6775 > #define FC_FUNC(name,NAME) NAME
6776 > _ACEOF
6777 >
6778 >          cat >>confdefs.h <<\_ACEOF
6779 > #define FC_FUNC_(name,NAME) NAME ## _
6780 > _ACEOF
6781 > ;;
6782 >  "upper case, underscore, no extra underscore")
6783 >          cat >>confdefs.h <<\_ACEOF
6784 > #define FC_FUNC(name,NAME) NAME ## _
6785 > _ACEOF
6786 >
6787 >          cat >>confdefs.h <<\_ACEOF
6788 > #define FC_FUNC_(name,NAME) NAME ## _
6789 > _ACEOF
6790 > ;;
6791 >  "upper case, underscore, extra underscore")
6792 >          cat >>confdefs.h <<\_ACEOF
6793 > #define FC_FUNC(name,NAME) NAME ## _
6794 > _ACEOF
6795 >
6796 >          cat >>confdefs.h <<\_ACEOF
6797 > #define FC_FUNC_(name,NAME) NAME ## __
6798 > _ACEOF
6799 > ;;
6800 >  *)
6801 >          { $as_echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
6802 > $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
6803 >          ;;
6804 > esac
6805 >
6806 > ac_ext=${ac_fc_srcext-f}
6807 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6808 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6809 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6810 >
6811 >
6812 >
6813 > ac_ext=${ac_fc_srcext-f}
6814 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6815 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6816 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6817 > { $as_echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5
6818 > $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
6819 > if test "${ac_cv_prog_fc_v+set}" = set; then
6820 >  $as_echo_n "(cached) " >&6
6821 > else
6822 >  cat >conftest.$ac_ext <<_ACEOF
6823 >      program main
6824 >
6825 >      end
6826 > _ACEOF
6827 > rm -f conftest.$ac_objext
6828 > if { (ac_try="$ac_compile"
6829 > case "(($ac_try" in
6830 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831 >  *) ac_try_echo=$ac_try;;
6832 > esac
6833 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6834 > $as_echo "$ac_try_echo") >&5
6835 >  (eval "$ac_compile") 2>conftest.er1
6836 >  ac_status=$?
6837 >  grep -v '^ *+' conftest.er1 >conftest.err
6838 >  rm -f conftest.er1
6839 >  cat conftest.err >&5
6840 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 >  (exit $ac_status); } && {
6842 >         test -z "$ac_fc_werror_flag" ||
6843 >         test ! -s conftest.err
6844 >       } && test -s conftest.$ac_objext; then
6845 >  ac_cv_prog_fc_v=
6846 > # Try some options frequently used verbose output
6847 > for ac_verb in -v -verbose --verbose -V -\#\#\#; do
6848 >  cat >conftest.$ac_ext <<_ACEOF
6849 >      program main
6850 >
6851 >      end
6852 > _ACEOF
6853 >
6854 > # Compile and link our simple test program by passing a flag (argument
6855 > # 1 to this macro) to the Fortran compiler in order to get
6856 > # "verbose" output that we can then parse for the Fortran linker
6857 > # flags.
6858 > ac_save_FFLAGS=$FCFLAGS
6859 > FCFLAGS="$FCFLAGS $ac_verb"
6860 > eval "set x $ac_link"
6861 > shift
6862 > $as_echo "$as_me:$LINENO: $*" >&5
6863 > # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6864 > # LIBRARY_PATH; skip all such settings.
6865 > ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6866 >  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6867 > $as_echo "$ac_fc_v_output" >&5
6868 > FCFLAGS=$ac_save_FFLAGS
6869 >
6870   rm -rf conftest*
6871 +
6872 + # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
6873 + # /foo, /bar, and /baz are search directories for the Fortran linker.
6874 + # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
6875 + ac_fc_v_output="`echo $ac_fc_v_output |
6876 +        grep 'LPATH is:' |
6877 +        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
6878 +
6879 + # FIXME: we keep getting bitten by quoted arguments; a more general fix
6880 + #        that detects unbalanced quotes in FLIBS should be implemented
6881 + #        and (ugh) tested at some point.
6882 + case $ac_fc_v_output in
6883 +  # If we are using xlf then replace all the commas with spaces.
6884 +  *xlfentry*)
6885 +    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
6886 +
6887 +  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
6888 +  # $LIBS confuse us, and the libraries appear later in the output anyway).
6889 +  *mGLOB_options_string*)
6890 +    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
6891 +
6892 +  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
6893 +  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
6894 +  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
6895 +  *-cmdline\ * | *-ignore\ * | *-def\ *)
6896 +    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
6897 +        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
6898 +        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
6899 +        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
6900 +
6901 +  # If we are using Cray Fortran then delete quotes.
6902 +  *cft90*)
6903 +    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
6904 + esac
6905 +
6906 +
6907 +  # look for -l* and *.a constructs in the output
6908 +  for ac_arg in $ac_fc_v_output; do
6909 +     case $ac_arg in
6910 +        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
6911 +          ac_cv_prog_fc_v=$ac_verb
6912 +          break 2 ;;
6913 +     esac
6914 +  done
6915 + done
6916 + if test -z "$ac_cv_prog_fc_v"; then
6917 +   { $as_echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5
6918 + $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
6919 + fi
6920 + else
6921 +  $as_echo "$as_me: failed program was:" >&5
6922 + sed 's/^/| /' conftest.$ac_ext >&5
6923 +
6924 +        { $as_echo "$as_me:$LINENO: WARNING: compilation failed" >&5
6925 + $as_echo "$as_me: WARNING: compilation failed" >&2;}
6926 + fi
6927 +
6928 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6929 +
6930 + fi
6931 + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5
6932 + $as_echo "$ac_cv_prog_fc_v" >&6; }
6933 + { $as_echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5
6934 + $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
6935 + if test "${ac_cv_fc_libs+set}" = set; then
6936 +  $as_echo_n "(cached) " >&6
6937 + else
6938 +  if test "x$FCLIBS" != "x"; then
6939 +  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
6940 + else
6941 +
6942 + cat >conftest.$ac_ext <<_ACEOF
6943 +      program main
6944 +
6945 +      end
6946 + _ACEOF
6947 +
6948 + # Compile and link our simple test program by passing a flag (argument
6949 + # 1 to this macro) to the Fortran compiler in order to get
6950 + # "verbose" output that we can then parse for the Fortran linker
6951 + # flags.
6952 + ac_save_FFLAGS=$FCFLAGS
6953 + FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
6954 + eval "set x $ac_link"
6955 + shift
6956 + $as_echo "$as_me:$LINENO: $*" >&5
6957 + # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6958 + # LIBRARY_PATH; skip all such settings.
6959 + ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6960 +  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6961 + $as_echo "$ac_fc_v_output" >&5
6962 + FCFLAGS=$ac_save_FFLAGS
6963 +
6964 + rm -rf conftest*
6965 +
6966 + # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
6967 + # /foo, /bar, and /baz are search directories for the Fortran linker.
6968 + # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
6969 + ac_fc_v_output="`echo $ac_fc_v_output |
6970 +        grep 'LPATH is:' |
6971 +        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
6972 +
6973 + # FIXME: we keep getting bitten by quoted arguments; a more general fix
6974 + #        that detects unbalanced quotes in FLIBS should be implemented
6975 + #        and (ugh) tested at some point.
6976 + case $ac_fc_v_output in
6977 +  # If we are using xlf then replace all the commas with spaces.
6978 +  *xlfentry*)
6979 +    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
6980 +
6981 +  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
6982 +  # $LIBS confuse us, and the libraries appear later in the output anyway).
6983 +  *mGLOB_options_string*)
6984 +    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
6985 +
6986 +  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
6987 +  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
6988 +  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
6989 +  *-cmdline\ * | *-ignore\ * | *-def\ *)
6990 +    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
6991 +        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
6992 +        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
6993 +        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
6994 +
6995 +  # If we are using Cray Fortran then delete quotes.
6996 +  *cft90*)
6997 +    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
6998 + esac
6999 +
7000 +
7001 +
7002 + ac_cv_fc_libs=
7003 +
7004 + # Save positional arguments (if any)
7005 + ac_save_positional="$@"
7006 +
7007 + set X $ac_fc_v_output
7008 + while test $# != 1; do
7009 +  shift
7010 +  ac_arg=$1
7011 +  case $ac_arg in
7012 +        [\\/]*.a | ?:[\\/]*.a)
7013 +            ac_exists=false
7014 +  for ac_i in $ac_cv_fc_libs; do
7015 +    if test x"$ac_arg" = x"$ac_i"; then
7016 +      ac_exists=true
7017 +      break
7018 +    fi
7019 +  done
7020 +
7021 +  if test x"$ac_exists" = xtrue; then
7022 +  :
7023 + else
7024 +  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7025 + fi
7026 +
7027 +          ;;
7028 +        -bI:*)
7029 +            ac_exists=false
7030 +  for ac_i in $ac_cv_fc_libs; do
7031 +    if test x"$ac_arg" = x"$ac_i"; then
7032 +      ac_exists=true
7033 +      break
7034 +    fi
7035 +  done
7036 +
7037 +  if test x"$ac_exists" = xtrue; then
7038 +  :
7039 + else
7040 +  if test "$ac_compiler_gnu" = yes; then
7041 +  for ac_link_opt in $ac_arg; do
7042 +    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7043 +  done
7044 + else
7045 +  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7046 + fi
7047 + fi
7048 +
7049 +          ;;
7050 +          # Ignore these flags.
7051 +        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*)
7052 +          ;;
7053 +        -lkernel32)
7054 +          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7055 +          ;;
7056 +        -[LRuYz])
7057 +          # These flags, when seen by themselves, take an argument.
7058 +          # We remove the space between option and argument and re-iterate
7059 +          # unless we find an empty arg or a new option (starting with -)
7060 +          case $2 in
7061 +             "" | -*);;
7062 +             *)
7063 +                ac_arg="$ac_arg$2"
7064 +                shift; shift
7065 +                set X $ac_arg "$@"
7066 +                ;;
7067 +          esac
7068 +          ;;
7069 +        -YP,*)
7070 +          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
7071 +              ac_exists=false
7072 +  for ac_i in $ac_cv_fc_libs; do
7073 +    if test x"$ac_j" = x"$ac_i"; then
7074 +      ac_exists=true
7075 +      break
7076 +    fi
7077 +  done
7078 +
7079 +  if test x"$ac_exists" = xtrue; then
7080 +  :
7081 + else
7082 +  ac_arg="$ac_arg $ac_j"
7083 +                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
7084 + fi
7085 +
7086 +          done
7087 +          ;;
7088 +        -[lLR]*)
7089 +            ac_exists=false
7090 +  for ac_i in $ac_cv_fc_libs; do
7091 +    if test x"$ac_arg" = x"$ac_i"; then
7092 +      ac_exists=true
7093 +      break
7094 +    fi
7095 +  done
7096 +
7097 +  if test x"$ac_exists" = xtrue; then
7098 +  :
7099 + else
7100 +  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7101 + fi
7102 +
7103 +          ;;
7104 +        -zallextract*| -zdefaultextract)
7105 +          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7106 +          ;;
7107 +          # Ignore everything else.
7108 +  esac
7109 + done
7110 + # restore positional arguments
7111 + set X $ac_save_positional; shift
7112 +
7113 + # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
7114 + # then we insist that the "run path" must be an absolute path (i.e. it
7115 + # must begin with a "/").
7116 + case `(uname -sr) 2>/dev/null` in
7117 +   "SunOS 5"*)
7118 +      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
7119 +                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
7120 +      test "x$ac_ld_run_path" != x &&
7121 +        if test "$ac_compiler_gnu" = yes; then
7122 +  for ac_link_opt in $ac_ld_run_path; do
7123 +    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7124 +  done
7125 + else
7126 +  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
7127 + fi
7128 +      ;;
7129 + esac
7130 + fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
7131 +
7132 + fi
7133 + { $as_echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5
7134 + $as_echo "$ac_cv_fc_libs" >&6; }
7135 + FCLIBS="$ac_cv_fc_libs"
7136 +
7137 +
7138 + ac_ext=${ac_fc_srcext-f}
7139 + ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7140 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7141 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7142 +
7143 +
7144 +
7145 + { $as_echo "$as_me:$LINENO: checking for module suffix" >&5
7146 + $as_echo_n "checking for module suffix... " >&6; }
7147 + rm -f conftest*
7148   # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
7149   rm -f work*
7150   cat >conftest.$ac_ext <<EOF
# Line 5871 | Line 7169 | if (eval $ac_compile) 2>/dev/null ; then
7169          fi
7170      fi
7171      if test -z "$MOD" ; then
7172 <        { echo "$as_me:$LINENO: result: unknown" >&5
7173 < echo "${ECHO_T}unknown" >&6; }
7172 >        { $as_echo "$as_me:$LINENO: result: unknown" >&5
7173 > $as_echo "unknown" >&6; }
7174          # Use mod if we can't figure it out
7175          MOD="mod"
7176      else
7177 <        { echo "$as_me:$LINENO: result: $MOD" >&5
7178 < echo "${ECHO_T}$MOD" >&6; }
7177 >        { $as_echo "$as_me:$LINENO: result: $MOD" >&5
7178 > $as_echo "$MOD" >&6; }
7179      fi
7180      if test -s work.pcl ; then
7181 <        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
7182 < echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
7181 >        { $as_echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
7182 > $as_echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
7183      fi
7184   else
7185 <    { echo "$as_me:$LINENO: result: unknown" >&5
7186 < echo "${ECHO_T}unknown" >&6; }
7185 >    { $as_echo "$as_me:$LINENO: result: unknown" >&5
7186 > $as_echo "unknown" >&6; }
7187   fi
7188  
7189  
# Line 5898 | Line 7196 | fi
7196   # specified, work.pcl and work.pc are created.  However, if you specify
7197   # a file, it must contain a the name of a file ending in .pc .  Ugh!
7198   # Use the module made above
7199 < { echo "$as_me:$LINENO: checking for module directory path flag" >&5
7200 < echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6; }
7201 < rm -rf conftest*
7199 > { $as_echo "$as_me:$LINENO: checking for module directory path flag" >&5
7200 > $as_echo_n "checking for module directory path flag... " >&6; }
7201 > rm -f conftest*
7202   # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
7203   rm -f work*
7204   cat >conftest.$ac_ext <<EOF
# Line 5932 | Line 7230 | EOF
7230     if $FC -c -Iconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext > conftest.out 2>&1 ; then
7231         MODDIRFLAG="-I"
7232         F90MODINCSPEC="-I<dir>"
7233 <       { echo "$as_me:$LINENO: result: -I" >&5
7234 < echo "${ECHO_T}-I" >&6; }
7233 >       { $as_echo "$as_me:$LINENO: result: -I" >&5
7234 > $as_echo "-I" >&6; }
7235     elif $FC -c -Mconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
7236         MODDIRFLAG="-M"
7237         F90MODINCSPEC="-M<dir>"
7238 <       { echo "$as_me:$LINENO: result: -M" >&5
7239 < echo "${ECHO_T}-M" >&6; }
7238 >       { $as_echo "$as_me:$LINENO: result: -M" >&5
7239 > $as_echo "-M" >&6; }
7240     elif $FC -c -pconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
7241         MODDIRFLAG="-p"
7242         F90MODINCSPEC="-p<dir>"
7243 <       { echo "$as_me:$LINENO: result: -p" >&5
7244 < echo "${ECHO_T}-p" >&6; }
7243 >       { $as_echo "$as_me:$LINENO: result: -p" >&5
7244 > $as_echo "-p" >&6; }
7245     elif test -s work.pc ; then
7246          cp work.pc conf/mpimod.pc
7247          echo "mpimod.pc" > conf/mpimod.pcl
7248          echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
7249          if $FC -c -cl,conf/mpimod.pcl $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >>conftest.out 2>&1 ; then
7250              MODDIRFLAG='-cl,mpimod.pcl'
7251 <            { echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
7252 < echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6; }
7251 >            { $as_echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
7252 > $as_echo "-cl,filename where filename contains a list of files and directories" >&6; }
7253              F90_WORK_FILES_ARG="-cl,mpimod.pcl"
7254              F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
7255  
# Line 5963 | Line 7261 | echo "${ECHO_T}-cl,filename where filename contains a
7261          fi
7262     fi
7263     if test -z "MODDIRFLAG" ; then
7264 <       { echo "$as_me:$LINENO: result: unknown" >&5
7265 < echo "${ECHO_T}unknown" >&6; }
7264 >       { $as_echo "$as_me:$LINENO: result: unknown" >&5
7265 > $as_echo "unknown" >&6; }
7266     fi
7267  
7268  
7269 <   rm -rf conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
7269 >   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
7270     if test $madedir = 1 ; then rmdir conf ; fi
7271   fi
7272  
7273  
7274 < { echo "$as_me:$LINENO: checking for Fortran 90 module file names" >&5
7275 < echo $ECHO_N "checking for Fortran 90 module file names... $ECHO_C" >&6; }
7274 > { $as_echo "$as_me:$LINENO: checking for Fortran 90 module file names" >&5
7275 > $as_echo_n "checking for Fortran 90 module file names... " >&6; }
7276   if test "${ac_cv_f90_module_names+set}" = set; then
7277 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7277 >  $as_echo_n "(cached) " >&6
7278   else
7279    ac_ext=${ac_fc_srcext-f}
7280   ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
# Line 5990 | Line 7288 | _ACEOF
7288   MODULE Bar
7289   END MODULE Bar
7290   _ACEOF
7291 < rm -rf conftest.$ac_objext
7291 > rm -f conftest.$ac_objext
7292   if { (ac_try="$ac_compile"
7293   case "(($ac_try" in
7294    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295    *) ac_try_echo=$ac_try;;
7296   esac
7297 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7298 > $as_echo "$ac_try_echo") >&5
7299    (eval "$ac_compile") 2>conftest.er1
7300    ac_status=$?
7301    grep -v '^ *+' conftest.er1 >conftest.err
7302    rm -f conftest.er1
7303    cat conftest.err >&5
7304 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305    (exit $ac_status); } && {
7306           test -z "$ac_fc_werror_flag" ||
7307           test ! -s conftest.err
# Line 6088 | Line 7387 | fi
7387            ;;
7388         # Other files - we have no idea how they are generated
7389         *)
7390 <          { echo "$as_me:$LINENO: WARNING: Bogus file found: $ac_file" >&5
7391 < echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
7390 >          { $as_echo "$as_me:$LINENO: WARNING: Bogus file found: $ac_file" >&5
7391 > $as_echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
7392            ;;
7393     esac
7394   done
7395   if test "x$ac_cv_f90_module_names" = "x"; then
7396 <  { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
7397 < echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
7396 >  { $as_echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
7397 > $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
7398   fi
7399  
7400   else
7401 <  echo "$as_me: failed program was:" >&5
7401 >  $as_echo "$as_me: failed program was:" >&5
7402   sed 's/^/| /' conftest.$ac_ext >&5
7403  
7404          ac_cv_f90_module_names=
7405 < { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
7406 < echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
7405 > { $as_echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
7406 > $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
7407   fi
7408  
7409 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7409 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410   cd ..
7411   # cleanup
7412   rm -rf conftest
# Line 6117 | Line 7416 | fi
7416   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7417  
7418   fi
7419 < { echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5
7420 < echo "${ECHO_T}$ac_cv_f90_module_names" >&6; } # AC_CACHE_CHECK
7419 > { $as_echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5
7420 > $as_echo "$ac_cv_f90_module_names" >&6; } # AC_CACHE_CHECK
7421  
7422   # We now generate a shell script that will help us to figure out the correct
7423 < # module file names, using the value of ac_cv_f90_module_names
6125 <
6126 < echo "Generating shell script modnam"
6127 <
6128 < cat > scripts/modnam << EOF
6129 < #! /bin/sh
6130 < # This script is auto-generated by configure
6131 < #
6132 < usage="\\
6133 < Usage: \$0 [FILES]
6134 <
6135 < [FILES] are Fortran 90 source files.
6136 < The output is a list of module file names that the Fortran 90 compiler
6137 < generates when compiling [FILES]."
6138 <
6139 < list=
6140 < empty=
6141 <
6142 < if test \$# -eq 0; then
6143 <   echo "\$usage"; exit 0
6144 < fi
6145 <
6146 < while test \$# != 0; do
6147 <
6148 <  file=\$1
6149 <  shift
6150 <
6151 < # strip suffix
6152 <  base=\`echo \$file | sed 's/[.][^.]*$//'\`
6153 <
6154 <  test ! -f \$file && continue
6155 <
6156 < # Look for module definitions and transform them to upper / lower case
6157 <  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/'\`
6158 <  upper=\`echo \$mods | tr a-z A-Z\`
6159 <  lower=\`echo \$mods | tr A-Z a-z\`
6160 <
6161 < # Here, the patterns for generating module file names were inserted by configure
6162 <  for trans in $ac_cv_f90_module_names; do
6163 <
6164 <    pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
6165 <    var=empty
6166 <    case \$pat in
6167 <       %MODULE%)
6168 <          var=upper ;;
6169 <       %Module%)
6170 <          var=mods ;;
6171 <       %module%)
6172 <          var=lower ;;
6173 <       %FILE%)
6174 <          test -n "\$mods" && var=base ;;
6175 <    esac
6176 <    new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
6177 <    list="\$list \$new"
6178 <  done
6179 < done
6180 <
6181 < echo \$list
6182 < # end of configure-generated script
6183 < EOF
6184 < chmod 755 scripts/modnam
6185 <
6186 < pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
6187 < F90_MODULE_NAMES=empty
6188 < case $pat in
6189 <       %MODULE%)
6190 <          F90_MODULE_NAMES=UPPER ;;
6191 <       %Module%)
6192 <          F90_MODULE_NAMES=Mixed ;;
6193 <       %module%)
6194 <          F90_MODULE_NAMES=lower ;;
6195 <       *)
6196 <          F90_MODULE_NAMES=unknown ;;
6197 < esac
6198 <
6199 < ac_ext=c
6200 < ac_cpp='$CPP $CPPFLAGS'
6201 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
6204 <
6205 <
6206 < ac_ext=c
6207 < ac_cpp='$CPP $CPPFLAGS'
6208 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6209 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6210 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
6211 <
6212 <
6213 <
6214 < { echo "$as_me:$LINENO: checking for asin in -lm" >&5
6215 < echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6; }
6216 < if test "${ac_cv_lib_m_asin+set}" = set; then
6217 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6218 < else
6219 <  ac_check_lib_save_LIBS=$LIBS
6220 < LIBS="-lm  $LIBS"
6221 < cat >conftest.$ac_ext <<_ACEOF
6222 < /* confdefs.h.  */
6223 < _ACEOF
6224 < cat confdefs.h >>conftest.$ac_ext
6225 < cat >>conftest.$ac_ext <<_ACEOF
6226 < /* end confdefs.h.  */
6227 <
6228 < /* Override any GCC internal prototype to avoid an error.
6229 <   Use char because int might match the return type of a GCC
6230 <   builtin and then its argument prototype would still apply.  */
6231 < #ifdef __cplusplus
6232 < extern "C"
6233 < #endif
6234 < char asin ();
6235 < #ifdef FC_DUMMY_MAIN
6236 < #ifndef FC_DUMMY_MAIN_EQ_F77
6237 < #  ifdef __cplusplus
6238 <     extern "C"
6239 < #  endif
6240 <   int FC_DUMMY_MAIN() { return 1; }
6241 < #endif
6242 < #endif
6243 < int
6244 < main ()
6245 < {
6246 < return asin ();
6247 <  ;
6248 <  return 0;
6249 < }
6250 < _ACEOF
6251 < rm -rf conftest.$ac_objext conftest$ac_exeext
6252 < if { (ac_try="$ac_link"
6253 < case "(($ac_try" in
6254 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 <  *) ac_try_echo=$ac_try;;
6256 < esac
6257 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258 <  (eval "$ac_link") 2>conftest.er1
6259 <  ac_status=$?
6260 <  grep -v '^ *+' conftest.er1 >conftest.err
6261 <  rm -f conftest.er1
6262 <  cat conftest.err >&5
6263 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 <  (exit $ac_status); } && {
6265 <         test -z "$ac_c_werror_flag" ||
6266 <         test ! -s conftest.err
6267 <       } && test -s conftest$ac_exeext &&
6268 <       $as_test_x conftest$ac_exeext; then
6269 <  ac_cv_lib_m_asin=yes
6270 < else
6271 <  echo "$as_me: failed program was:" >&5
6272 < sed 's/^/| /' conftest.$ac_ext >&5
6273 <
6274 <        ac_cv_lib_m_asin=no
6275 < fi
6276 <
6277 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6278 <      conftest$ac_exeext conftest.$ac_ext
6279 < LIBS=$ac_check_lib_save_LIBS
6280 < fi
6281 < { echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5
6282 < echo "${ECHO_T}$ac_cv_lib_m_asin" >&6; }
6283 < if test $ac_cv_lib_m_asin = yes; then
6284 <  cat >>confdefs.h <<_ACEOF
6285 < #define HAVE_LIBM 1
6286 < _ACEOF
6287 <
6288 <  LIBS="-lm $LIBS"
6289 <
6290 < else
6291 <  exit
6292 < fi
6293 <
6294 <
6295 < { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6296 < echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6297 < if test "${ac_cv_header_stdc+set}" = set; then
6298 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6299 < else
6300 <  cat >conftest.$ac_ext <<_ACEOF
6301 < /* confdefs.h.  */
6302 < _ACEOF
6303 < cat confdefs.h >>conftest.$ac_ext
6304 < cat >>conftest.$ac_ext <<_ACEOF
6305 < /* end confdefs.h.  */
6306 < #include <stdlib.h>
6307 < #include <stdarg.h>
6308 < #include <string.h>
6309 < #include <float.h>
6310 <
6311 < #ifdef FC_DUMMY_MAIN
6312 < #ifndef FC_DUMMY_MAIN_EQ_F77
6313 < #  ifdef __cplusplus
6314 <     extern "C"
6315 < #  endif
6316 <   int FC_DUMMY_MAIN() { return 1; }
6317 < #endif
6318 < #endif
6319 < int
6320 < main ()
6321 < {
6322 <
6323 <  ;
6324 <  return 0;
6325 < }
6326 < _ACEOF
6327 < rm -rf conftest.$ac_objext
6328 < if { (ac_try="$ac_compile"
6329 < case "(($ac_try" in
6330 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 <  *) ac_try_echo=$ac_try;;
6332 < esac
6333 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334 <  (eval "$ac_compile") 2>conftest.er1
6335 <  ac_status=$?
6336 <  grep -v '^ *+' conftest.er1 >conftest.err
6337 <  rm -f conftest.er1
6338 <  cat conftest.err >&5
6339 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 <  (exit $ac_status); } && {
6341 <         test -z "$ac_c_werror_flag" ||
6342 <         test ! -s conftest.err
6343 <       } && test -s conftest.$ac_objext; then
6344 <  ac_cv_header_stdc=yes
6345 < else
6346 <  echo "$as_me: failed program was:" >&5
6347 < sed 's/^/| /' conftest.$ac_ext >&5
6348 <
6349 <        ac_cv_header_stdc=no
6350 < fi
6351 <
6352 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
6353 <
6354 < if test $ac_cv_header_stdc = yes; then
6355 <  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6356 <  cat >conftest.$ac_ext <<_ACEOF
6357 < /* confdefs.h.  */
6358 < _ACEOF
6359 < cat confdefs.h >>conftest.$ac_ext
6360 < cat >>conftest.$ac_ext <<_ACEOF
6361 < /* end confdefs.h.  */
6362 < #include <string.h>
6363 <
6364 < _ACEOF
6365 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6366 <  $EGREP "memchr" >/dev/null 2>&1; then
6367 <  :
6368 < else
6369 <  ac_cv_header_stdc=no
6370 < fi
6371 < rm -rf conftest*
6372 <
6373 < fi
6374 <
6375 < if test $ac_cv_header_stdc = yes; then
6376 <  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6377 <  cat >conftest.$ac_ext <<_ACEOF
6378 < /* confdefs.h.  */
6379 < _ACEOF
6380 < cat confdefs.h >>conftest.$ac_ext
6381 < cat >>conftest.$ac_ext <<_ACEOF
6382 < /* end confdefs.h.  */
6383 < #include <stdlib.h>
6384 <
6385 < _ACEOF
6386 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6387 <  $EGREP "free" >/dev/null 2>&1; then
6388 <  :
6389 < else
6390 <  ac_cv_header_stdc=no
6391 < fi
6392 < rm -rf conftest*
6393 <
6394 < fi
6395 <
6396 < if test $ac_cv_header_stdc = yes; then
6397 <  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6398 <  if test "$cross_compiling" = yes; then
6399 <  :
6400 < else
6401 <  cat >conftest.$ac_ext <<_ACEOF
6402 < /* confdefs.h.  */
6403 < _ACEOF
6404 < cat confdefs.h >>conftest.$ac_ext
6405 < cat >>conftest.$ac_ext <<_ACEOF
6406 < /* end confdefs.h.  */
6407 < #include <ctype.h>
6408 < #include <stdlib.h>
6409 < #if ((' ' & 0x0FF) == 0x020)
6410 < # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6411 < # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6412 < #else
6413 < # define ISLOWER(c) \
6414 <                   (('a' <= (c) && (c) <= 'i') \
6415 <                     || ('j' <= (c) && (c) <= 'r') \
6416 <                     || ('s' <= (c) && (c) <= 'z'))
6417 < # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6418 < #endif
6419 <
6420 < #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6421 < int
6422 < main ()
6423 < {
6424 <  int i;
6425 <  for (i = 0; i < 256; i++)
6426 <    if (XOR (islower (i), ISLOWER (i))
6427 <        || toupper (i) != TOUPPER (i))
6428 <      return 2;
6429 <  return 0;
6430 < }
6431 < _ACEOF
6432 < rm -rf conftest$ac_exeext
6433 < if { (ac_try="$ac_link"
6434 < case "(($ac_try" in
6435 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436 <  *) ac_try_echo=$ac_try;;
6437 < esac
6438 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439 <  (eval "$ac_link") 2>&5
6440 <  ac_status=$?
6441 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6443 <  { (case "(($ac_try" in
6444 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6445 <  *) ac_try_echo=$ac_try;;
6446 < esac
6447 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6448 <  (eval "$ac_try") 2>&5
6449 <  ac_status=$?
6450 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 <  (exit $ac_status); }; }; then
6452 <  :
6453 < else
6454 <  echo "$as_me: program exited with status $ac_status" >&5
6455 < echo "$as_me: failed program was:" >&5
6456 < sed 's/^/| /' conftest.$ac_ext >&5
6457 <
6458 < ( exit $ac_status )
6459 < ac_cv_header_stdc=no
6460 < fi
6461 < rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6462 < fi
6463 <
6464 <
6465 < fi
6466 < fi
6467 < { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6468 < echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6469 < if test $ac_cv_header_stdc = yes; then
6470 <
6471 < cat >>confdefs.h <<\_ACEOF
6472 < #define STDC_HEADERS 1
6473 < _ACEOF
6474 <
6475 < fi
6476 <
6477 < # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6478 <
6479 <
6480 <
6481 <
6482 <
6483 <
6484 <
6485 <
6486 <
6487 < for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6488 <                  inttypes.h stdint.h unistd.h
6489 < do
6490 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6491 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
6492 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6493 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6494 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6495 < else
6496 <  cat >conftest.$ac_ext <<_ACEOF
6497 < /* confdefs.h.  */
6498 < _ACEOF
6499 < cat confdefs.h >>conftest.$ac_ext
6500 < cat >>conftest.$ac_ext <<_ACEOF
6501 < /* end confdefs.h.  */
6502 < $ac_includes_default
6503 <
6504 < #include <$ac_header>
6505 < _ACEOF
6506 < rm -rf conftest.$ac_objext
6507 < if { (ac_try="$ac_compile"
6508 < case "(($ac_try" in
6509 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510 <  *) ac_try_echo=$ac_try;;
6511 < esac
6512 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513 <  (eval "$ac_compile") 2>conftest.er1
6514 <  ac_status=$?
6515 <  grep -v '^ *+' conftest.er1 >conftest.err
6516 <  rm -f conftest.er1
6517 <  cat conftest.err >&5
6518 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 <  (exit $ac_status); } && {
6520 <         test -z "$ac_c_werror_flag" ||
6521 <         test ! -s conftest.err
6522 <       } && test -s conftest.$ac_objext; then
6523 <  eval "$as_ac_Header=yes"
6524 < else
6525 <  echo "$as_me: failed program was:" >&5
6526 < sed 's/^/| /' conftest.$ac_ext >&5
6527 <
6528 <        eval "$as_ac_Header=no"
6529 < fi
6530 <
6531 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 < fi
6533 < ac_res=`eval echo '${'$as_ac_Header'}'`
6534 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
6535 < echo "${ECHO_T}$ac_res" >&6; }
6536 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
6537 <  cat >>confdefs.h <<_ACEOF
6538 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6539 < _ACEOF
6540 <
6541 < fi
6542 <
6543 < done
6544 <
6545 <
6546 < #
6547 < # Handle user hints
6548 < #
6549 <
6550 < # Check whether --with-zlib was given.
6551 < if test "${with_zlib+set}" = set; then
6552 <  withval=$with_zlib; zlib_dir="$withval"
6553 < else
6554 <                zlib_dir="not_set"
6555 < fi
6556 <
6557 < if test "$zlib_dir" != "no"; then
6558 <
6559 < if test "$zlib_dir" != "not_set" ; then
6560 <  if test -d "$zlib_dir"
6561 <  then
6562 <    ZLIB_HOME="$zlib_dir"
6563 <  else
6564 <    { echo "$as_me:$LINENO: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5
6565 < echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;}
6566 <  fi
6567 < fi
6568 <
6569 < ZLIB_HOME=/usr/local
6570 < if test ! -f "${ZLIB_HOME}/include/zlib.h"
6571 < then
6572 <        ZLIB_HOME=/usr
6573 < fi
6574 <
6575 < #
6576 < # Locate zlib, if wanted
6577 < #
6578 < if test -n "${ZLIB_HOME}"
6579 < then
6580 <        ZLIB_OLD_LDFLAGS=$LDFLAGS
6581 <        ZLIB_OLD_CPPFLAGS=$LDFLAGS
6582 <        LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
6583 <        CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
6584 <
6585 <        ac_ext=c
6586 < ac_cpp='$CPP $CPPFLAGS'
6587 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6588 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6589 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
6590 <
6591 <        { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
6592 < echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
6593 < if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
6594 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6595 < else
6596 <  ac_check_lib_save_LIBS=$LIBS
6597 < LIBS="-lz  $LIBS"
6598 < cat >conftest.$ac_ext <<_ACEOF
6599 < /* confdefs.h.  */
6600 < _ACEOF
6601 < cat confdefs.h >>conftest.$ac_ext
6602 < cat >>conftest.$ac_ext <<_ACEOF
6603 < /* end confdefs.h.  */
6604 <
6605 < /* Override any GCC internal prototype to avoid an error.
6606 <   Use char because int might match the return type of a GCC
6607 <   builtin and then its argument prototype would still apply.  */
6608 < #ifdef __cplusplus
6609 < extern "C"
6610 < #endif
6611 < char inflateEnd ();
6612 < #ifdef FC_DUMMY_MAIN
6613 < #ifndef FC_DUMMY_MAIN_EQ_F77
6614 < #  ifdef __cplusplus
6615 <     extern "C"
6616 < #  endif
6617 <   int FC_DUMMY_MAIN() { return 1; }
6618 < #endif
6619 < #endif
6620 < int
6621 < main ()
6622 < {
6623 < return inflateEnd ();
6624 <  ;
6625 <  return 0;
6626 < }
6627 < _ACEOF
6628 < rm -rf conftest.$ac_objext conftest$ac_exeext
6629 < if { (ac_try="$ac_link"
6630 < case "(($ac_try" in
6631 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 <  *) ac_try_echo=$ac_try;;
6633 < esac
6634 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635 <  (eval "$ac_link") 2>conftest.er1
6636 <  ac_status=$?
6637 <  grep -v '^ *+' conftest.er1 >conftest.err
6638 <  rm -f conftest.er1
6639 <  cat conftest.err >&5
6640 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 <  (exit $ac_status); } && {
6642 <         test -z "$ac_c_werror_flag" ||
6643 <         test ! -s conftest.err
6644 <       } && test -s conftest$ac_exeext &&
6645 <       $as_test_x conftest$ac_exeext; then
6646 <  ac_cv_lib_z_inflateEnd=yes
6647 < else
6648 <  echo "$as_me: failed program was:" >&5
6649 < sed 's/^/| /' conftest.$ac_ext >&5
6650 <
6651 <        ac_cv_lib_z_inflateEnd=no
6652 < fi
6653 <
6654 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6655 <      conftest$ac_exeext conftest.$ac_ext
6656 < LIBS=$ac_check_lib_save_LIBS
6657 < fi
6658 < { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
6659 < echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
6660 < if test $ac_cv_lib_z_inflateEnd = yes; then
6661 <  zlib_cv_libz=yes
6662 < else
6663 <  zlib_cv_libz=no
6664 < fi
6665 <
6666 <        if test "${ac_cv_header_zlib_h+set}" = set; then
6667 <  { echo "$as_me:$LINENO: checking for zlib.h" >&5
6668 < echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
6669 < if test "${ac_cv_header_zlib_h+set}" = set; then
6670 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6671 < fi
6672 < { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
6673 < echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
6674 < else
6675 <  # Is the header compilable?
6676 < { echo "$as_me:$LINENO: checking zlib.h usability" >&5
6677 < echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
6678 < cat >conftest.$ac_ext <<_ACEOF
6679 < /* confdefs.h.  */
6680 < _ACEOF
6681 < cat confdefs.h >>conftest.$ac_ext
6682 < cat >>conftest.$ac_ext <<_ACEOF
6683 < /* end confdefs.h.  */
6684 < $ac_includes_default
6685 < #include <zlib.h>
6686 < _ACEOF
6687 < rm -rf conftest.$ac_objext
6688 < if { (ac_try="$ac_compile"
6689 < case "(($ac_try" in
6690 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691 <  *) ac_try_echo=$ac_try;;
6692 < esac
6693 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6694 <  (eval "$ac_compile") 2>conftest.er1
6695 <  ac_status=$?
6696 <  grep -v '^ *+' conftest.er1 >conftest.err
6697 <  rm -f conftest.er1
6698 <  cat conftest.err >&5
6699 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 <  (exit $ac_status); } && {
6701 <         test -z "$ac_c_werror_flag" ||
6702 <         test ! -s conftest.err
6703 <       } && test -s conftest.$ac_objext; then
6704 <  ac_header_compiler=yes
6705 < else
6706 <  echo "$as_me: failed program was:" >&5
6707 < sed 's/^/| /' conftest.$ac_ext >&5
6708 <
6709 <        ac_header_compiler=no
6710 < fi
6711 <
6712 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
6713 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6714 < echo "${ECHO_T}$ac_header_compiler" >&6; }
6715 <
6716 < # Is the header present?
6717 < { echo "$as_me:$LINENO: checking zlib.h presence" >&5
6718 < echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
6719 < cat >conftest.$ac_ext <<_ACEOF
6720 < /* confdefs.h.  */
6721 < _ACEOF
6722 < cat confdefs.h >>conftest.$ac_ext
6723 < cat >>conftest.$ac_ext <<_ACEOF
6724 < /* end confdefs.h.  */
6725 < #include <zlib.h>
6726 < _ACEOF
6727 < if { (ac_try="$ac_cpp conftest.$ac_ext"
6728 < case "(($ac_try" in
6729 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730 <  *) ac_try_echo=$ac_try;;
6731 < esac
6732 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6734 <  ac_status=$?
6735 <  grep -v '^ *+' conftest.er1 >conftest.err
6736 <  rm -f conftest.er1
6737 <  cat conftest.err >&5
6738 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 <  (exit $ac_status); } >/dev/null && {
6740 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6741 <         test ! -s conftest.err
6742 <       }; then
6743 <  ac_header_preproc=yes
6744 < else
6745 <  echo "$as_me: failed program was:" >&5
6746 < sed 's/^/| /' conftest.$ac_ext >&5
6747 <
6748 <  ac_header_preproc=no
6749 < fi
6750 <
6751 < rm -rf conftest.err conftest.$ac_ext
6752 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6753 < echo "${ECHO_T}$ac_header_preproc" >&6; }
6754 <
6755 < # So?  What about this header?
6756 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6757 <  yes:no: )
6758 <    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6759 < echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6760 <    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
6761 < echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
6762 <    ac_header_preproc=yes
6763 <    ;;
6764 <  no:yes:* )
6765 <    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
6766 < echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
6767 <    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
6768 < echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
6769 <    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
6770 < echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
6771 <    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
6772 < echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6773 <    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
6774 < echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
6775 <    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
6776 < echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
6777 <    ( cat <<\_ASBOX
6778 < ## ------------------------------ ##
6779 < ## Report this to gezelter@nd.edu ##
6780 < ## ------------------------------ ##
6781 < _ASBOX
6782 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
6783 <    ;;
6784 < esac
6785 < { echo "$as_me:$LINENO: checking for zlib.h" >&5
6786 < echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
6787 < if test "${ac_cv_header_zlib_h+set}" = set; then
6788 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6789 < else
6790 <  ac_cv_header_zlib_h=$ac_header_preproc
6791 < fi
6792 < { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
6793 < echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
6794 <
6795 < fi
6796 < if test $ac_cv_header_zlib_h = yes; then
6797 <  zlib_cv_zlib_h=yes
6798 < else
6799 <  zlib_cv_zlib_h=no
6800 < fi
6801 <
6802 <
6803 <        ac_ext=c
6804 < ac_cpp='$CPP $CPPFLAGS'
6805 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
6808 <
6809 <
6810 <        if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"; then
6811 <
6812 < cat >>confdefs.h <<\_ACEOF
6813 < #define HAVE_ZLIB_H 1
6814 < _ACEOF
6815 <
6816 <
6817 < cat >>confdefs.h <<\_ACEOF
6818 < #define HAVE_LIBZ 1
6819 < _ACEOF
6820 <
6821 <                ZLIB_INC_DIR="${ZLIB_HOME}/include"
6822 <                ZLIB_LIB_DIR="${ZLIB_HOME}/lib"
6823 <                ZLIB="-lz"
6824 <        else
6825 <                { echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
6826 < echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6; }
6827 <                ZLIB_INC_DIR=
6828 <                ZLIB_LIB_DIR=
6829 <                ZLIB=
6830 <                LDFLAGS="$ZLIB_OLD_LDFLAGS"
6831 <                CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
6832 <                { echo "$as_me:$LINENO: result: failed" >&5
6833 < echo "${ECHO_T}failed" >&6; }
6834 <                echo ""
6835 <                echo "*********************************************************"
6836 <                echo "* WARNING: Could not find a working zlib installation   *"
6837 <                echo "* If you need OOPSE to be able to deal with compressed  *"
6838 <                echo "* trajectory dump files be sure to specify a valid zlib *"
6839 <                echo "* installation with --with-zlib=DIR                     *"
6840 <                echo "*                                                       *"
6841 <                echo "* OOPSE will still work without zlib installed.         *"
6842 <                echo "*********************************************************"
6843 <                echo ""
6844 <        fi
6845 <
6846 <
6847 <
6848 < fi
6849 < fi
6850 <
6851 < #
6852 < # Handle user hints
6853 < #
6854 <
6855 < # Check whether --with-fftw was given.
6856 < if test "${with_fftw+set}" = set; then
6857 <  withval=$with_fftw; fftw_dir="$withval"
6858 < else
6859 <             fftw_dir="not_set"
6860 < fi
6861 <
6862 < if test "$fftw_dir" != "no"; then
6863 <  if test "$fftw_dir" != "not_set" ; then
6864 <    if test -d "$fftw_dir"; then
6865 <      FFTW_HOME="$fftw_dir"
6866 <    else
6867 <      { echo "$as_me:$LINENO: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&5
6868 < echo "$as_me: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&2;}
6869 <      FFTW_HOME=/usr/local
6870 <      if test ! -f "${FFTW_HOME}/include/fftw3.h" -o -f "${FFTW_HOME}/include/fftw.h" -o  -f "${FFTW_HOME}/include/dfftw.h"; then
6871 <        FFTW_HOME=/usr
6872 <      fi
6873 <    fi
6874 <    #
6875 <    # Locate fftw, if wanted
6876 <    #
6877 <    if test -n "${FFTW_HOME}"; then
6878 <      FFTW_OLD_LDFLAGS=$LDFLAGS
6879 <      FFTW_OLD_CPPFLAGS=$LDFLAGS
6880 <      LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib"
6881 <      CPPFLAGS="$CPPFLAGS -I${FFTW_HOME}/include"
6882 <
6883 <      ac_ext=c
6884 < ac_cpp='$CPP $CPPFLAGS'
6885 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6886 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6887 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
6888 <
6889 <      { echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
6890 < echo $ECHO_N "checking for fftw_execute in -lfftw3... $ECHO_C" >&6; }
6891 < if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
6892 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6893 < else
6894 <  ac_check_lib_save_LIBS=$LIBS
6895 < LIBS="-lfftw3  $LIBS"
6896 < cat >conftest.$ac_ext <<_ACEOF
6897 < /* confdefs.h.  */
6898 < _ACEOF
6899 < cat confdefs.h >>conftest.$ac_ext
6900 < cat >>conftest.$ac_ext <<_ACEOF
6901 < /* end confdefs.h.  */
6902 <
6903 < /* Override any GCC internal prototype to avoid an error.
6904 <   Use char because int might match the return type of a GCC
6905 <   builtin and then its argument prototype would still apply.  */
6906 < #ifdef __cplusplus
6907 < extern "C"
6908 < #endif
6909 < char fftw_execute ();
6910 < #ifdef FC_DUMMY_MAIN
6911 < #ifndef FC_DUMMY_MAIN_EQ_F77
6912 < #  ifdef __cplusplus
6913 <     extern "C"
6914 < #  endif
6915 <   int FC_DUMMY_MAIN() { return 1; }
6916 < #endif
6917 < #endif
6918 < int
6919 < main ()
6920 < {
6921 < return fftw_execute ();
6922 <  ;
6923 <  return 0;
6924 < }
6925 < _ACEOF
6926 < rm -rf conftest.$ac_objext conftest$ac_exeext
6927 < if { (ac_try="$ac_link"
6928 < case "(($ac_try" in
6929 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6930 <  *) ac_try_echo=$ac_try;;
6931 < esac
6932 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6933 <  (eval "$ac_link") 2>conftest.er1
6934 <  ac_status=$?
6935 <  grep -v '^ *+' conftest.er1 >conftest.err
6936 <  rm -f conftest.er1
6937 <  cat conftest.err >&5
6938 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 <  (exit $ac_status); } && {
6940 <         test -z "$ac_c_werror_flag" ||
6941 <         test ! -s conftest.err
6942 <       } && test -s conftest$ac_exeext &&
6943 <       $as_test_x conftest$ac_exeext; then
6944 <  ac_cv_lib_fftw3_fftw_execute=yes
6945 < else
6946 <  echo "$as_me: failed program was:" >&5
6947 < sed 's/^/| /' conftest.$ac_ext >&5
6948 <
6949 <        ac_cv_lib_fftw3_fftw_execute=no
6950 < fi
6951 <
6952 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6953 <      conftest$ac_exeext conftest.$ac_ext
6954 < LIBS=$ac_check_lib_save_LIBS
6955 < fi
6956 < { echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
6957 < echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_execute" >&6; }
6958 < if test $ac_cv_lib_fftw3_fftw_execute = yes; then
6959 <  fftw_cv_libfftw3=yes
6960 < else
6961 <  fftw_cv_libfftw3=no
6962 < fi
6963 <
6964 <      if test "${ac_cv_header_fftw3_h+set}" = set; then
6965 <  { echo "$as_me:$LINENO: checking for fftw3.h" >&5
6966 < echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6; }
6967 < if test "${ac_cv_header_fftw3_h+set}" = set; then
6968 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6969 < fi
6970 < { echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
6971 < echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6; }
6972 < else
6973 <  # Is the header compilable?
6974 < { echo "$as_me:$LINENO: checking fftw3.h usability" >&5
6975 < echo $ECHO_N "checking fftw3.h usability... $ECHO_C" >&6; }
6976 < cat >conftest.$ac_ext <<_ACEOF
6977 < /* confdefs.h.  */
6978 < _ACEOF
6979 < cat confdefs.h >>conftest.$ac_ext
6980 < cat >>conftest.$ac_ext <<_ACEOF
6981 < /* end confdefs.h.  */
6982 < $ac_includes_default
6983 < #include <fftw3.h>
6984 < _ACEOF
6985 < rm -rf conftest.$ac_objext
6986 < if { (ac_try="$ac_compile"
6987 < case "(($ac_try" in
6988 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6989 <  *) ac_try_echo=$ac_try;;
6990 < esac
6991 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6992 <  (eval "$ac_compile") 2>conftest.er1
6993 <  ac_status=$?
6994 <  grep -v '^ *+' conftest.er1 >conftest.err
6995 <  rm -f conftest.er1
6996 <  cat conftest.err >&5
6997 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 <  (exit $ac_status); } && {
6999 <         test -z "$ac_c_werror_flag" ||
7000 <         test ! -s conftest.err
7001 <       } && test -s conftest.$ac_objext; then
7002 <  ac_header_compiler=yes
7003 < else
7004 <  echo "$as_me: failed program was:" >&5
7005 < sed 's/^/| /' conftest.$ac_ext >&5
7006 <
7007 <        ac_header_compiler=no
7008 < fi
7009 <
7010 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7011 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7012 < echo "${ECHO_T}$ac_header_compiler" >&6; }
7013 <
7014 < # Is the header present?
7015 < { echo "$as_me:$LINENO: checking fftw3.h presence" >&5
7016 < echo $ECHO_N "checking fftw3.h presence... $ECHO_C" >&6; }
7017 < cat >conftest.$ac_ext <<_ACEOF
7018 < /* confdefs.h.  */
7019 < _ACEOF
7020 < cat confdefs.h >>conftest.$ac_ext
7021 < cat >>conftest.$ac_ext <<_ACEOF
7022 < /* end confdefs.h.  */
7023 < #include <fftw3.h>
7024 < _ACEOF
7025 < if { (ac_try="$ac_cpp conftest.$ac_ext"
7026 < case "(($ac_try" in
7027 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7028 <  *) ac_try_echo=$ac_try;;
7029 < esac
7030 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7031 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7032 <  ac_status=$?
7033 <  grep -v '^ *+' conftest.er1 >conftest.err
7034 <  rm -f conftest.er1
7035 <  cat conftest.err >&5
7036 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 <  (exit $ac_status); } >/dev/null && {
7038 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7039 <         test ! -s conftest.err
7040 <       }; then
7041 <  ac_header_preproc=yes
7042 < else
7043 <  echo "$as_me: failed program was:" >&5
7044 < sed 's/^/| /' conftest.$ac_ext >&5
7045 <
7046 <  ac_header_preproc=no
7047 < fi
7048 <
7049 < rm -rf conftest.err conftest.$ac_ext
7050 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7051 < echo "${ECHO_T}$ac_header_preproc" >&6; }
7052 <
7053 < # So?  What about this header?
7054 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7055 <  yes:no: )
7056 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
7057 < echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7058 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5
7059 < echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;}
7060 <    ac_header_preproc=yes
7061 <    ;;
7062 <  no:yes:* )
7063 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
7064 < echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
7065 <    { echo "$as_me:$LINENO: WARNING: fftw3.h:     check for missing prerequisite headers?" >&5
7066 < echo "$as_me: WARNING: fftw3.h:     check for missing prerequisite headers?" >&2;}
7067 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5
7068 < echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;}
7069 <    { echo "$as_me:$LINENO: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&5
7070 < echo "$as_me: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7071 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
7072 < echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;}
7073 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5
7074 < echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;}
7075 <    ( cat <<\_ASBOX
7076 < ## ------------------------------ ##
7077 < ## Report this to gezelter@nd.edu ##
7078 < ## ------------------------------ ##
7079 < _ASBOX
7080 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
7081 <    ;;
7082 < esac
7083 < { echo "$as_me:$LINENO: checking for fftw3.h" >&5
7084 < echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6; }
7085 < if test "${ac_cv_header_fftw3_h+set}" = set; then
7086 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7087 < else
7088 <  ac_cv_header_fftw3_h=$ac_header_preproc
7089 < fi
7090 < { echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
7091 < echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6; }
7092 <
7093 < fi
7094 < if test $ac_cv_header_fftw3_h = yes; then
7095 <  fftw_cv_fftw3_h=yes
7096 < else
7097 <  fftw_cv_fftw3_h=no
7098 < fi
7099 <
7100 <
7101 <      if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then
7102 <        { echo "$as_me:$LINENO: checking for fftwnd_one in -lfftw" >&5
7103 < echo $ECHO_N "checking for fftwnd_one in -lfftw... $ECHO_C" >&6; }
7104 < if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then
7105 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7106 < else
7107 <  ac_check_lib_save_LIBS=$LIBS
7108 < LIBS="-lfftw  $LIBS"
7109 < cat >conftest.$ac_ext <<_ACEOF
7110 < /* confdefs.h.  */
7111 < _ACEOF
7112 < cat confdefs.h >>conftest.$ac_ext
7113 < cat >>conftest.$ac_ext <<_ACEOF
7114 < /* end confdefs.h.  */
7115 <
7116 < /* Override any GCC internal prototype to avoid an error.
7117 <   Use char because int might match the return type of a GCC
7118 <   builtin and then its argument prototype would still apply.  */
7119 < #ifdef __cplusplus
7120 < extern "C"
7121 < #endif
7122 < char fftwnd_one ();
7123 < #ifdef FC_DUMMY_MAIN
7124 < #ifndef FC_DUMMY_MAIN_EQ_F77
7125 < #  ifdef __cplusplus
7126 <     extern "C"
7127 < #  endif
7128 <   int FC_DUMMY_MAIN() { return 1; }
7129 < #endif
7130 < #endif
7131 < int
7132 < main ()
7133 < {
7134 < return fftwnd_one ();
7135 <  ;
7136 <  return 0;
7137 < }
7138 < _ACEOF
7139 < rm -rf conftest.$ac_objext conftest$ac_exeext
7140 < if { (ac_try="$ac_link"
7141 < case "(($ac_try" in
7142 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7143 <  *) ac_try_echo=$ac_try;;
7144 < esac
7145 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7146 <  (eval "$ac_link") 2>conftest.er1
7147 <  ac_status=$?
7148 <  grep -v '^ *+' conftest.er1 >conftest.err
7149 <  rm -f conftest.er1
7150 <  cat conftest.err >&5
7151 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 <  (exit $ac_status); } && {
7153 <         test -z "$ac_c_werror_flag" ||
7154 <         test ! -s conftest.err
7155 <       } && test -s conftest$ac_exeext &&
7156 <       $as_test_x conftest$ac_exeext; then
7157 <  ac_cv_lib_fftw_fftwnd_one=yes
7158 < else
7159 <  echo "$as_me: failed program was:" >&5
7160 < sed 's/^/| /' conftest.$ac_ext >&5
7161 <
7162 <        ac_cv_lib_fftw_fftwnd_one=no
7163 < fi
7164 <
7165 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7166 <      conftest$ac_exeext conftest.$ac_ext
7167 < LIBS=$ac_check_lib_save_LIBS
7168 < fi
7169 < { echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftwnd_one" >&5
7170 < echo "${ECHO_T}$ac_cv_lib_fftw_fftwnd_one" >&6; }
7171 < if test $ac_cv_lib_fftw_fftwnd_one = yes; then
7172 <  fftw_cv_libfftw=yes
7173 < else
7174 <  fftw_cv_libfftw=no
7175 < fi
7176 <
7177 <        if test "${ac_cv_header_fftw_h+set}" = set; then
7178 <  { echo "$as_me:$LINENO: checking for fftw.h" >&5
7179 < echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6; }
7180 < if test "${ac_cv_header_fftw_h+set}" = set; then
7181 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7182 < fi
7183 < { echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
7184 < echo "${ECHO_T}$ac_cv_header_fftw_h" >&6; }
7185 < else
7186 <  # Is the header compilable?
7187 < { echo "$as_me:$LINENO: checking fftw.h usability" >&5
7188 < echo $ECHO_N "checking fftw.h usability... $ECHO_C" >&6; }
7189 < cat >conftest.$ac_ext <<_ACEOF
7190 < /* confdefs.h.  */
7191 < _ACEOF
7192 < cat confdefs.h >>conftest.$ac_ext
7193 < cat >>conftest.$ac_ext <<_ACEOF
7194 < /* end confdefs.h.  */
7195 < $ac_includes_default
7196 < #include <fftw.h>
7197 < _ACEOF
7198 < rm -rf conftest.$ac_objext
7199 < if { (ac_try="$ac_compile"
7200 < case "(($ac_try" in
7201 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 <  *) ac_try_echo=$ac_try;;
7203 < esac
7204 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205 <  (eval "$ac_compile") 2>conftest.er1
7206 <  ac_status=$?
7207 <  grep -v '^ *+' conftest.er1 >conftest.err
7208 <  rm -f conftest.er1
7209 <  cat conftest.err >&5
7210 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 <  (exit $ac_status); } && {
7212 <         test -z "$ac_c_werror_flag" ||
7213 <         test ! -s conftest.err
7214 <       } && test -s conftest.$ac_objext; then
7215 <  ac_header_compiler=yes
7216 < else
7217 <  echo "$as_me: failed program was:" >&5
7218 < sed 's/^/| /' conftest.$ac_ext >&5
7219 <
7220 <        ac_header_compiler=no
7221 < fi
7222 <
7223 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7225 < echo "${ECHO_T}$ac_header_compiler" >&6; }
7226 <
7227 < # Is the header present?
7228 < { echo "$as_me:$LINENO: checking fftw.h presence" >&5
7229 < echo $ECHO_N "checking fftw.h presence... $ECHO_C" >&6; }
7230 < cat >conftest.$ac_ext <<_ACEOF
7231 < /* confdefs.h.  */
7232 < _ACEOF
7233 < cat confdefs.h >>conftest.$ac_ext
7234 < cat >>conftest.$ac_ext <<_ACEOF
7235 < /* end confdefs.h.  */
7236 < #include <fftw.h>
7237 < _ACEOF
7238 < if { (ac_try="$ac_cpp conftest.$ac_ext"
7239 < case "(($ac_try" in
7240 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7241 <  *) ac_try_echo=$ac_try;;
7242 < esac
7243 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7244 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7245 <  ac_status=$?
7246 <  grep -v '^ *+' conftest.er1 >conftest.err
7247 <  rm -f conftest.er1
7248 <  cat conftest.err >&5
7249 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 <  (exit $ac_status); } >/dev/null && {
7251 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7252 <         test ! -s conftest.err
7253 <       }; then
7254 <  ac_header_preproc=yes
7255 < else
7256 <  echo "$as_me: failed program was:" >&5
7257 < sed 's/^/| /' conftest.$ac_ext >&5
7423 > # module file names, using the value of ac_cv_f90_module_names
7424  
7425 <  ac_header_preproc=no
7425 > echo "Generating shell script modnam"
7426 >
7427 > cat > scripts/modnam << EOF
7428 > #! /bin/sh
7429 > # This script is auto-generated by configure
7430 > #
7431 > usage="\\
7432 > Usage: \$0 [FILES]
7433 >
7434 > [FILES] are Fortran 90 source files.
7435 > The output is a list of module file names that the Fortran 90 compiler
7436 > generates when compiling [FILES]."
7437 >
7438 > list=
7439 > empty=
7440 >
7441 > if test \$# -eq 0; then
7442 >   echo "\$usage"; exit 0
7443   fi
7444  
7445 < rm -rf conftest.err conftest.$ac_ext
7263 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7264 < echo "${ECHO_T}$ac_header_preproc" >&6; }
7445 > while test \$# != 0; do
7446  
7447 < # So?  What about this header?
7448 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7449 <  yes:no: )
7450 <    { echo "$as_me:$LINENO: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
7451 < echo "$as_me: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7452 <    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the compiler's result" >&5
7453 < echo "$as_me: WARNING: fftw.h: proceeding with the compiler's result" >&2;}
7454 <    ac_header_preproc=yes
7455 <    ;;
7456 <  no:yes:* )
7457 <    { echo "$as_me:$LINENO: WARNING: fftw.h: present but cannot be compiled" >&5
7458 < echo "$as_me: WARNING: fftw.h: present but cannot be compiled" >&2;}
7459 <    { echo "$as_me:$LINENO: WARNING: fftw.h:     check for missing prerequisite headers?" >&5
7460 < echo "$as_me: WARNING: fftw.h:     check for missing prerequisite headers?" >&2;}
7461 <    { echo "$as_me:$LINENO: WARNING: fftw.h: see the Autoconf documentation" >&5
7462 < echo "$as_me: WARNING: fftw.h: see the Autoconf documentation" >&2;}
7463 <    { echo "$as_me:$LINENO: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&5
7464 < echo "$as_me: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7465 <    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5
7466 < echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;}
7467 <    { echo "$as_me:$LINENO: WARNING: fftw.h: in the future, the compiler will take precedence" >&5
7468 < echo "$as_me: WARNING: fftw.h: in the future, the compiler will take precedence" >&2;}
7469 <    ( cat <<\_ASBOX
7470 < ## ------------------------------ ##
7471 < ## Report this to gezelter@nd.edu ##
7472 < ## ------------------------------ ##
7473 < _ASBOX
7474 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
7475 <    ;;
7447 >  file=\$1
7448 >  shift
7449 >
7450 > # strip suffix
7451 >  base=\`echo \$file | sed 's/[.][^.]*$//'\`
7452 >
7453 >  test ! -f \$file && continue
7454 >
7455 > # Look for module definitions and transform them to upper / lower case
7456 >  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/'\`
7457 >  upper=\`echo \$mods | tr a-z A-Z\`
7458 >  lower=\`echo \$mods | tr A-Z a-z\`
7459 >
7460 > # Here, the patterns for generating module file names were inserted by configure
7461 >  for trans in $ac_cv_f90_module_names; do
7462 >
7463 >    pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
7464 >    var=empty
7465 >    case \$pat in
7466 >       %MODULE%)
7467 >          var=upper ;;
7468 >       %Module%)
7469 >          var=mods ;;
7470 >       %module%)
7471 >          var=lower ;;
7472 >       %FILE%)
7473 >          test -n "\$mods" && var=base ;;
7474 >    esac
7475 >    new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
7476 >    list="\$list \$new"
7477 >  done
7478 > done
7479 >
7480 > echo \$list
7481 > # end of configure-generated script
7482 > EOF
7483 > chmod 755 scripts/modnam
7484 >
7485 > pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
7486 > F90_MODULE_NAMES=empty
7487 > case $pat in
7488 >       %MODULE%)
7489 >          F90_MODULE_NAMES=UPPER ;;
7490 >       %Module%)
7491 >          F90_MODULE_NAMES=Mixed ;;
7492 >       %module%)
7493 >          F90_MODULE_NAMES=lower ;;
7494 >       *)
7495 >          F90_MODULE_NAMES=unknown ;;
7496   esac
7296 { echo "$as_me:$LINENO: checking for fftw.h" >&5
7297 echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6; }
7298 if test "${ac_cv_header_fftw_h+set}" = set; then
7299  echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301  ac_cv_header_fftw_h=$ac_header_preproc
7302 fi
7303 { echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
7304 echo "${ECHO_T}$ac_cv_header_fftw_h" >&6; }
7497  
7498 < fi
7499 < if test $ac_cv_header_fftw_h = yes; then
7500 <  fftw_cv_fftw_h=yes
7501 < else
7502 <  fftw_cv_fftw_h=no
7311 < fi
7498 > ac_ext=c
7499 > ac_cpp='$CPP $CPPFLAGS'
7500 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7501 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7502 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
7503  
7504  
7505 <        if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
7506 <          { echo "$as_me:$LINENO: checking for fftwnd_one in -ldfftw" >&5
7507 < echo $ECHO_N "checking for fftwnd_one in -ldfftw... $ECHO_C" >&6; }
7508 < if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then
7509 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7505 > ac_ext=c
7506 > ac_cpp='$CPP $CPPFLAGS'
7507 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7508 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7509 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
7510 >
7511 >
7512 >
7513 > { $as_echo "$as_me:$LINENO: checking for asin in -lm" >&5
7514 > $as_echo_n "checking for asin in -lm... " >&6; }
7515 > if test "${ac_cv_lib_m_asin+set}" = set; then
7516 >  $as_echo_n "(cached) " >&6
7517   else
7518    ac_check_lib_save_LIBS=$LIBS
7519 < LIBS="-ldfftw  $LIBS"
7519 > LIBS="-lm  $LIBS"
7520   cat >conftest.$ac_ext <<_ACEOF
7521   /* confdefs.h.  */
7522   _ACEOF
# Line 7332 | Line 7530 | extern "C"
7530   #ifdef __cplusplus
7531   extern "C"
7532   #endif
7533 < char fftwnd_one ();
7533 > char asin ();
7534   #ifdef FC_DUMMY_MAIN
7535   #ifndef FC_DUMMY_MAIN_EQ_F77
7536   #  ifdef __cplusplus
# Line 7344 | Line 7542 | main ()
7542   int
7543   main ()
7544   {
7545 < return fftwnd_one ();
7545 > return asin ();
7546    ;
7547    return 0;
7548   }
7549   _ACEOF
7550 < rm -rf conftest.$ac_objext conftest$ac_exeext
7550 > rm -f conftest.$ac_objext conftest$ac_exeext
7551   if { (ac_try="$ac_link"
7552   case "(($ac_try" in
7553    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554    *) ac_try_echo=$ac_try;;
7555   esac
7556 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7556 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7557 > $as_echo "$ac_try_echo") >&5
7558    (eval "$ac_link") 2>conftest.er1
7559    ac_status=$?
7560    grep -v '^ *+' conftest.er1 >conftest.err
7561    rm -f conftest.er1
7562    cat conftest.err >&5
7563 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564    (exit $ac_status); } && {
7565           test -z "$ac_c_werror_flag" ||
7566           test ! -s conftest.err
7567 <       } && test -s conftest$ac_exeext &&
7568 <       $as_test_x conftest$ac_exeext; then
7569 <  ac_cv_lib_dfftw_fftwnd_one=yes
7567 >       } && test -s conftest$ac_exeext && {
7568 >         test "$cross_compiling" = yes ||
7569 >         $as_test_x conftest$ac_exeext
7570 >       }; then
7571 >  ac_cv_lib_m_asin=yes
7572   else
7573 <  echo "$as_me: failed program was:" >&5
7573 >  $as_echo "$as_me: failed program was:" >&5
7574   sed 's/^/| /' conftest.$ac_ext >&5
7575  
7576 <        ac_cv_lib_dfftw_fftwnd_one=no
7576 >        ac_cv_lib_m_asin=no
7577   fi
7578  
7579 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7579 > rm -rf conftest.dSYM
7580 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7581        conftest$ac_exeext conftest.$ac_ext
7582   LIBS=$ac_check_lib_save_LIBS
7583   fi
7584 < { echo "$as_me:$LINENO: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
7585 < echo "${ECHO_T}$ac_cv_lib_dfftw_fftwnd_one" >&6; }
7586 < if test $ac_cv_lib_dfftw_fftwnd_one = yes; then
7587 <  fftw_cv_libdfftw=yes
7588 < else
7387 <  fftw_cv_libdfftw=no
7388 < fi
7389 <
7390 <          if test "${ac_cv_header_dfftw_h+set}" = set; then
7391 <  { echo "$as_me:$LINENO: checking for dfftw.h" >&5
7392 < echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6; }
7393 < if test "${ac_cv_header_dfftw_h+set}" = set; then
7394 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7395 < fi
7396 < { echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5
7397 < echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6; }
7398 < else
7399 <  # Is the header compilable?
7400 < { echo "$as_me:$LINENO: checking dfftw.h usability" >&5
7401 < echo $ECHO_N "checking dfftw.h usability... $ECHO_C" >&6; }
7402 < cat >conftest.$ac_ext <<_ACEOF
7403 < /* confdefs.h.  */
7584 > { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5
7585 > $as_echo "$ac_cv_lib_m_asin" >&6; }
7586 > if test $ac_cv_lib_m_asin = yes; then
7587 >  cat >>confdefs.h <<_ACEOF
7588 > #define HAVE_LIBM 1
7589   _ACEOF
7405 cat confdefs.h >>conftest.$ac_ext
7406 cat >>conftest.$ac_ext <<_ACEOF
7407 /* end confdefs.h.  */
7408 $ac_includes_default
7409 #include <dfftw.h>
7410 _ACEOF
7411 rm -rf conftest.$ac_objext
7412 if { (ac_try="$ac_compile"
7413 case "(($ac_try" in
7414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415  *) ac_try_echo=$ac_try;;
7416 esac
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418  (eval "$ac_compile") 2>conftest.er1
7419  ac_status=$?
7420  grep -v '^ *+' conftest.er1 >conftest.err
7421  rm -f conftest.er1
7422  cat conftest.err >&5
7423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424  (exit $ac_status); } && {
7425         test -z "$ac_c_werror_flag" ||
7426         test ! -s conftest.err
7427       } && test -s conftest.$ac_objext; then
7428  ac_header_compiler=yes
7429 else
7430  echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.$ac_ext >&5
7590  
7591 <        ac_header_compiler=no
7434 < fi
7591 >  LIBS="-lm $LIBS"
7592  
7436 rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7438 echo "${ECHO_T}$ac_header_compiler" >&6; }
7439
7440 # Is the header present?
7441 { echo "$as_me:$LINENO: checking dfftw.h presence" >&5
7442 echo $ECHO_N "checking dfftw.h presence... $ECHO_C" >&6; }
7443 cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h.  */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h.  */
7449 #include <dfftw.h>
7450 _ACEOF
7451 if { (ac_try="$ac_cpp conftest.$ac_ext"
7452 case "(($ac_try" in
7453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454  *) ac_try_echo=$ac_try;;
7455 esac
7456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7457  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7458  ac_status=$?
7459  grep -v '^ *+' conftest.er1 >conftest.err
7460  rm -f conftest.er1
7461  cat conftest.err >&5
7462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463  (exit $ac_status); } >/dev/null && {
7464         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7465         test ! -s conftest.err
7466       }; then
7467  ac_header_preproc=yes
7593   else
7594 <  echo "$as_me: failed program was:" >&5
7470 < sed 's/^/| /' conftest.$ac_ext >&5
7471 <
7472 <  ac_header_preproc=no
7594 >  exit
7595   fi
7596  
7475 rm -rf conftest.err conftest.$ac_ext
7476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7477 echo "${ECHO_T}$ac_header_preproc" >&6; }
7597  
7598 < # So?  What about this header?
7599 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7481 <  yes:no: )
7482 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
7483 < echo "$as_me: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7484 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the compiler's result" >&5
7485 < echo "$as_me: WARNING: dfftw.h: proceeding with the compiler's result" >&2;}
7486 <    ac_header_preproc=yes
7487 <    ;;
7488 <  no:yes:* )
7489 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: present but cannot be compiled" >&5
7490 < echo "$as_me: WARNING: dfftw.h: present but cannot be compiled" >&2;}
7491 <    { echo "$as_me:$LINENO: WARNING: dfftw.h:     check for missing prerequisite headers?" >&5
7492 < echo "$as_me: WARNING: dfftw.h:     check for missing prerequisite headers?" >&2;}
7493 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: see the Autoconf documentation" >&5
7494 < echo "$as_me: WARNING: dfftw.h: see the Autoconf documentation" >&2;}
7495 <    { echo "$as_me:$LINENO: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&5
7496 < echo "$as_me: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7497 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the preprocessor's result" >&5
7498 < echo "$as_me: WARNING: dfftw.h: proceeding with the preprocessor's result" >&2;}
7499 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: in the future, the compiler will take precedence" >&5
7500 < echo "$as_me: WARNING: dfftw.h: in the future, the compiler will take precedence" >&2;}
7501 <    ( cat <<\_ASBOX
7502 < ## ------------------------------ ##
7503 < ## Report this to gezelter@nd.edu ##
7504 < ## ------------------------------ ##
7505 < _ASBOX
7506 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
7507 <    ;;
7508 < esac
7509 < { echo "$as_me:$LINENO: checking for dfftw.h" >&5
7510 < echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6; }
7511 < if test "${ac_cv_header_dfftw_h+set}" = set; then
7512 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7513 < else
7514 <  ac_cv_header_dfftw_h=$ac_header_preproc
7515 < fi
7516 < { echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5
7517 < echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6; }
7518 <
7519 < fi
7520 < if test $ac_cv_header_dfftw_h = yes; then
7521 <  fftw_cv_dfftw_h=yes
7522 < else
7523 <  fftw_cv_dfftw_h=no
7524 < fi
7525 <
7526 <
7527 <        fi
7528 <      fi
7529 <      ac_ext=c
7530 < ac_cpp='$CPP $CPPFLAGS'
7531 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7532 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7533 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7534 <
7535 <      if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"; then
7536 <
7537 < cat >>confdefs.h <<\_ACEOF
7538 < #define HAVE_FFTW3_H 1
7539 < _ACEOF
7540 <
7541 <        FFTW_INC_DIR="${FFTW_HOME}/include"
7542 <        FFTW_LIB_DIR="${FFTW_HOME}/lib"
7543 <        FFTW_LIBS="-lfftw3"
7544 <      else
7545 <        if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"; then
7546 <
7547 < cat >>confdefs.h <<\_ACEOF
7548 < #define HAVE_FFTW_H 1
7549 < _ACEOF
7550 <
7551 <          FFTW_INC_DIR="${FFTW_HOME}/include"
7552 <          FFTW_LIB_DIR="${FFTW_HOME}/lib"
7553 <          FFTW_LIBS="-lfftw"
7554 <        else
7555 <          if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"; then
7556 <
7557 < cat >>confdefs.h <<\_ACEOF
7558 < #define HAVE_DFFTW_H 1
7559 < _ACEOF
7560 <
7561 <            FFTW_INC_DIR="${FFTW_HOME}/include"
7562 <            FFTW_LIB_DIR="${FFTW_HOME}/lib"
7563 <            FFTW_LIBS="-ldfftw"
7564 <          else
7565 <            { echo "$as_me:$LINENO: checking fftw in ${FFTW_HOME}" >&5
7566 < echo $ECHO_N "checking fftw in ${FFTW_HOME}... $ECHO_C" >&6; }
7567 <            FFTW_INC_DIR=
7568 <            FFTW_LIB_DIR=
7569 <            FFTW_LIBS=
7570 <            LDFLAGS="$FFTW_OLD_LDFLAGS"
7571 <            CPPFLAGS="$FFTW_OLD_CPPFLAGS"
7572 <            { echo "$as_me:$LINENO: result: failed" >&5
7573 < echo "${ECHO_T}failed" >&6; }
7574 <            echo ""
7575 <            echo "*********************************************************"
7576 <            echo "* WARNING: Could not find a working FFTW installation   *"
7577 <            echo "* If you need the staticProps program to be able to     *"
7578 <            echo "* compute undulation spectra, be sure to specify a      *"
7579 <            echo "* valid fftw installation with --with-fftw=DIR          *"
7580 <            echo "*                                                       *"
7581 <            echo "* OOPSE will still work without fftw installed.         *"
7582 <            echo "*********************************************************"
7583 <            echo ""
7584 <          fi
7585 <        fi
7586 <      fi
7587 <
7588 <
7589 <
7590 <    fi
7591 <  fi
7592 < fi
7593 <
7594 <
7595 <
7596 < # Checks for header files.
7597 < { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7598 < echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7598 > { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7599 > $as_echo_n "checking for ANSI C header files... " >&6; }
7600   if test "${ac_cv_header_stdc+set}" = set; then
7601 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7601 >  $as_echo_n "(cached) " >&6
7602   else
7603    cat >conftest.$ac_ext <<_ACEOF
7604   /* confdefs.h.  */
# Line 7626 | Line 7627 | _ACEOF
7627    return 0;
7628   }
7629   _ACEOF
7630 < rm -rf conftest.$ac_objext
7630 > rm -f conftest.$ac_objext
7631   if { (ac_try="$ac_compile"
7632   case "(($ac_try" in
7633    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634    *) ac_try_echo=$ac_try;;
7635   esac
7636 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7637 > $as_echo "$ac_try_echo") >&5
7638    (eval "$ac_compile") 2>conftest.er1
7639    ac_status=$?
7640    grep -v '^ *+' conftest.er1 >conftest.err
7641    rm -f conftest.er1
7642    cat conftest.err >&5
7643 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644    (exit $ac_status); } && {
7645           test -z "$ac_c_werror_flag" ||
7646           test ! -s conftest.err
7647         } && test -s conftest.$ac_objext; then
7648    ac_cv_header_stdc=yes
7649   else
7650 <  echo "$as_me: failed program was:" >&5
7650 >  $as_echo "$as_me: failed program was:" >&5
7651   sed 's/^/| /' conftest.$ac_ext >&5
7652  
7653          ac_cv_header_stdc=no
7654   fi
7655  
7656 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7656 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657  
7658   if test $ac_cv_header_stdc = yes; then
7659    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
# Line 7670 | Line 7672 | fi
7672   else
7673    ac_cv_header_stdc=no
7674   fi
7675 < rm -rf conftest*
7675 > rm -f conftest*
7676  
7677   fi
7678  
# Line 7691 | Line 7693 | fi
7693   else
7694    ac_cv_header_stdc=no
7695   fi
7696 < rm -rf conftest*
7696 > rm -f conftest*
7697  
7698   fi
7699  
# Line 7731 | Line 7733 | _ACEOF
7733    return 0;
7734   }
7735   _ACEOF
7736 < rm -rf conftest$ac_exeext
7736 > rm -f conftest$ac_exeext
7737   if { (ac_try="$ac_link"
7738   case "(($ac_try" in
7739    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740    *) ac_try_echo=$ac_try;;
7741   esac
7742 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7743 > $as_echo "$ac_try_echo") >&5
7744    (eval "$ac_link") 2>&5
7745    ac_status=$?
7746 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7748    { (case "(($ac_try" in
7749    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750    *) ac_try_echo=$ac_try;;
7751   esac
7752 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7753 > $as_echo "$ac_try_echo") >&5
7754    (eval "$ac_try") 2>&5
7755    ac_status=$?
7756 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757    (exit $ac_status); }; }; then
7758    :
7759   else
7760 <  echo "$as_me: program exited with status $ac_status" >&5
7761 < echo "$as_me: failed program was:" >&5
7760 >  $as_echo "$as_me: program exited with status $ac_status" >&5
7761 > $as_echo "$as_me: failed program was:" >&5
7762   sed 's/^/| /' conftest.$ac_ext >&5
7763  
7764   ( exit $ac_status )
7765   ac_cv_header_stdc=no
7766   fi
7767 < rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7767 > rm -rf conftest.dSYM
7768 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7769   fi
7770  
7771  
7772   fi
7773   fi
7774 < { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7775 < echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7774 > { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7775 > $as_echo "$ac_cv_header_stdc" >&6; }
7776   if test $ac_cv_header_stdc = yes; then
7777  
7778   cat >>confdefs.h <<\_ACEOF
# Line 7776 | Line 7781 | fi
7781  
7782   fi
7783  
7784 + # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7785  
7786  
7787  
# Line 7785 | Line 7791 | fi
7791  
7792  
7793  
7794 <
7795 <
7790 <
7791 <
7792 <
7793 <
7794 <
7795 <
7796 <
7797 <
7798 <
7799 <
7800 <
7801 <
7802 <
7803 <
7804 < for ac_header in conio.h dlfcn.h fstream.h iostream.h libintl.h limits.h machine/hal_sysinfo.h math.h stddef.h stdio.h stdlib.h string.h strings.h strstream.h sys/param.h sys/pstat.h sys/sysmp.h sys/sysctl.h sys/sysinfo.h sys/systemcfg.h sys/table.h sys/time.h time.h unistd.h zlib.h
7794 > for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7795 >                  inttypes.h stdint.h unistd.h
7796   do
7797 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7797 > as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7798 > { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7799 > $as_echo_n "checking for $ac_header... " >&6; }
7800   if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7801 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7809 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7810 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7811 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7812 < fi
7813 < ac_res=`eval echo '${'$as_ac_Header'}'`
7814 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
7815 < echo "${ECHO_T}$ac_res" >&6; }
7801 >  $as_echo_n "(cached) " >&6
7802   else
7803 <  # Is the header compilable?
7818 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7819 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7820 < cat >conftest.$ac_ext <<_ACEOF
7803 >  cat >conftest.$ac_ext <<_ACEOF
7804   /* confdefs.h.  */
7805   _ACEOF
7806   cat confdefs.h >>conftest.$ac_ext
7807   cat >>conftest.$ac_ext <<_ACEOF
7808   /* end confdefs.h.  */
7809   $ac_includes_default
7827 #include <$ac_header>
7828 _ACEOF
7829 rm -rf conftest.$ac_objext
7830 if { (ac_try="$ac_compile"
7831 case "(($ac_try" in
7832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833  *) ac_try_echo=$ac_try;;
7834 esac
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836  (eval "$ac_compile") 2>conftest.er1
7837  ac_status=$?
7838  grep -v '^ *+' conftest.er1 >conftest.err
7839  rm -f conftest.er1
7840  cat conftest.err >&5
7841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842  (exit $ac_status); } && {
7843         test -z "$ac_c_werror_flag" ||
7844         test ! -s conftest.err
7845       } && test -s conftest.$ac_objext; then
7846  ac_header_compiler=yes
7847 else
7848  echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7810  
7851        ac_header_compiler=no
7852 fi
7853
7854 rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7856 echo "${ECHO_T}$ac_header_compiler" >&6; }
7857
7858 # Is the header present?
7859 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h.  */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h.  */
7811   #include <$ac_header>
7868 _ACEOF
7869 if { (ac_try="$ac_cpp conftest.$ac_ext"
7870 case "(($ac_try" in
7871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872  *) ac_try_echo=$ac_try;;
7873 esac
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7876  ac_status=$?
7877  grep -v '^ *+' conftest.er1 >conftest.err
7878  rm -f conftest.er1
7879  cat conftest.err >&5
7880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881  (exit $ac_status); } >/dev/null && {
7882         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7883         test ! -s conftest.err
7884       }; then
7885  ac_header_preproc=yes
7886 else
7887  echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7889
7890  ac_header_preproc=no
7891 fi
7892
7893 rm -rf conftest.err conftest.$ac_ext
7894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7895 echo "${ECHO_T}$ac_header_preproc" >&6; }
7896
7897 # So?  What about this header?
7898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7899  yes:no: )
7900    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7902    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7904    ac_header_preproc=yes
7905    ;;
7906  no:yes:* )
7907    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7909    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7910 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7911    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7913    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7914 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7915    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7917    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7919    ( cat <<\_ASBOX
7920 ## ------------------------------ ##
7921 ## Report this to gezelter@nd.edu ##
7922 ## ------------------------------ ##
7923 _ASBOX
7924     ) | sed "s/^/$as_me: WARNING:     /" >&2
7925    ;;
7926 esac
7927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7930  echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932  eval "$as_ac_Header=\$ac_header_preproc"
7933 fi
7934 ac_res=`eval echo '${'$as_ac_Header'}'`
7935               { echo "$as_me:$LINENO: result: $ac_res" >&5
7936 echo "${ECHO_T}$ac_res" >&6; }
7937
7938 fi
7939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7940  cat >>confdefs.h <<_ACEOF
7941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7942 _ACEOF
7943
7944 fi
7945
7946 done
7947
7948
7949 # Checks for typedefs, structures, and compiler characteristics.
7950 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7951 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
7952 if test "${ac_cv_header_stdbool_h+set}" = set; then
7953  echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955  cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h.  */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h.  */
7961
7962 #include <stdbool.h>
7963 #ifndef bool
7964 "error: bool is not defined"
7965 #endif
7966 #ifndef false
7967 "error: false is not defined"
7968 #endif
7969 #if false
7970 "error: false is not 0"
7971 #endif
7972 #ifndef true
7973 "error: true is not defined"
7974 #endif
7975 #if true != 1
7976 "error: true is not 1"
7977 #endif
7978 #ifndef __bool_true_false_are_defined
7979 "error: __bool_true_false_are_defined is not defined"
7980 #endif
7981
7982        struct s { _Bool s: 1; _Bool t; } s;
7983
7984        char a[true == 1 ? 1 : -1];
7985        char b[false == 0 ? 1 : -1];
7986        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7987        char d[(bool) 0.5 == true ? 1 : -1];
7988        bool e = &s;
7989        char f[(_Bool) 0.0 == false ? 1 : -1];
7990        char g[true];
7991        char h[sizeof (_Bool)];
7992        char i[sizeof s.t];
7993        enum { j = false, k = true, l = false * true, m = true * 256 };
7994        _Bool n[m];
7995        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7996        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7997 #       if defined __xlc__ || defined __GNUC__
7998         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7999            reported by James Lemley on 2005-10-05; see
8000            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8001            This test is not quite right, since xlc is allowed to
8002            reject this program, as the initializer for xlcbug is
8003            not one of the forms that C requires support for.
8004            However, doing the test right would require a runtime
8005            test, and that would make cross-compilation harder.
8006            Let us hope that IBM fixes the xlc bug, and also adds
8007            support for this kind of constant expression.  In the
8008            meantime, this test will reject xlc, which is OK, since
8009            our stdbool.h substitute should suffice.  We also test
8010            this with GCC, where it should work, to detect more
8011            quickly whether someone messes up the test in the
8012            future.  */
8013         char digs[] = "0123456789";
8014         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8015 #       endif
8016        /* Catch a bug in an HP-UX C compiler.  See
8017           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8018           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8019         */
8020        _Bool q = true;
8021        _Bool *pq = &q;
8022
8023 #ifdef FC_DUMMY_MAIN
8024 #ifndef FC_DUMMY_MAIN_EQ_F77
8025 #  ifdef __cplusplus
8026     extern "C"
8027 #  endif
8028   int FC_DUMMY_MAIN() { return 1; }
8029 #endif
8030 #endif
8031 int
8032 main ()
8033 {
8034
8035        *pq |= q;
8036        *pq |= ! q;
8037        /* Refer to every declared value, to avoid compiler optimizations.  */
8038        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8039                + !m + !n + !o + !p + !q + !pq);
8040
8041  ;
8042  return 0;
8043 }
8044 _ACEOF
8045 rm -rf conftest.$ac_objext
8046 if { (ac_try="$ac_compile"
8047 case "(($ac_try" in
8048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049  *) ac_try_echo=$ac_try;;
8050 esac
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052  (eval "$ac_compile") 2>conftest.er1
8053  ac_status=$?
8054  grep -v '^ *+' conftest.er1 >conftest.err
8055  rm -f conftest.er1
8056  cat conftest.err >&5
8057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058  (exit $ac_status); } && {
8059         test -z "$ac_c_werror_flag" ||
8060         test ! -s conftest.err
8061       } && test -s conftest.$ac_objext; then
8062  ac_cv_header_stdbool_h=yes
8063 else
8064  echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8066
8067        ac_cv_header_stdbool_h=no
8068 fi
8069
8070 rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8071 fi
8072 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8073 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
8074 { echo "$as_me:$LINENO: checking for _Bool" >&5
8075 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
8076 if test "${ac_cv_type__Bool+set}" = set; then
8077  echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079  cat >conftest.$ac_ext <<_ACEOF
8080 /* confdefs.h.  */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h.  */
8085 $ac_includes_default
8086 typedef _Bool ac__type_new_;
8087 #ifdef FC_DUMMY_MAIN
8088 #ifndef FC_DUMMY_MAIN_EQ_F77
8089 #  ifdef __cplusplus
8090     extern "C"
8091 #  endif
8092   int FC_DUMMY_MAIN() { return 1; }
8093 #endif
8094 #endif
8095 int
8096 main ()
8097 {
8098 if ((ac__type_new_ *) 0)
8099  return 0;
8100 if (sizeof (ac__type_new_))
8101  return 0;
8102  ;
8103  return 0;
8104 }
8105 _ACEOF
8106 rm -rf conftest.$ac_objext
8107 if { (ac_try="$ac_compile"
8108 case "(($ac_try" in
8109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110  *) ac_try_echo=$ac_try;;
8111 esac
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113  (eval "$ac_compile") 2>conftest.er1
8114  ac_status=$?
8115  grep -v '^ *+' conftest.er1 >conftest.err
8116  rm -f conftest.er1
8117  cat conftest.err >&5
8118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119  (exit $ac_status); } && {
8120         test -z "$ac_c_werror_flag" ||
8121         test ! -s conftest.err
8122       } && test -s conftest.$ac_objext; then
8123  ac_cv_type__Bool=yes
8124 else
8125  echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128        ac_cv_type__Bool=no
8129 fi
8130
8131 rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 fi
8133 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8134 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
8135 if test $ac_cv_type__Bool = yes; then
8136
8137 cat >>confdefs.h <<_ACEOF
8138 #define HAVE__BOOL 1
8139 _ACEOF
8140
8141
8142 fi
8143
8144 if test $ac_cv_header_stdbool_h = yes; then
8145
8146 cat >>confdefs.h <<\_ACEOF
8147 #define HAVE_STDBOOL_H 1
8148 _ACEOF
8149
8150 fi
8151
8152 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8153 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8154 if test "${ac_cv_c_const+set}" = set; then
8155  echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157  cat >conftest.$ac_ext <<_ACEOF
8158 /* confdefs.h.  */
8159 _ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h.  */
8163
8164 #ifdef FC_DUMMY_MAIN
8165 #ifndef FC_DUMMY_MAIN_EQ_F77
8166 #  ifdef __cplusplus
8167     extern "C"
8168 #  endif
8169   int FC_DUMMY_MAIN() { return 1; }
8170 #endif
8171 #endif
8172 int
8173 main ()
8174 {
8175 /* FIXME: Include the comments suggested by Paul. */
8176 #ifndef __cplusplus
8177  /* Ultrix mips cc rejects this.  */
8178  typedef int charset[2];
8179  const charset cs;
8180  /* SunOS 4.1.1 cc rejects this.  */
8181  char const *const *pcpcc;
8182  char **ppc;
8183  /* NEC SVR4.0.2 mips cc rejects this.  */
8184  struct point {int x, y;};
8185  static struct point const zero = {0,0};
8186  /* AIX XL C 1.02.0.0 rejects this.
8187     It does not let you subtract one const X* pointer from another in
8188     an arm of an if-expression whose if-part is not a constant
8189     expression */
8190  const char *g = "string";
8191  pcpcc = &g + (g ? g-g : 0);
8192  /* HPUX 7.0 cc rejects these. */
8193  ++pcpcc;
8194  ppc = (char**) pcpcc;
8195  pcpcc = (char const *const *) ppc;
8196  { /* SCO 3.2v4 cc rejects this.  */
8197    char *t;
8198    char const *s = 0 ? (char *) 0 : (char const *) 0;
8199
8200    *t++ = 0;
8201    if (s) return 0;
8202  }
8203  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8204    int x[] = {25, 17};
8205    const int *foo = &x[0];
8206    ++foo;
8207  }
8208  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8209    typedef const int *iptr;
8210    iptr p = 0;
8211    ++p;
8212  }
8213  { /* AIX XL C 1.02.0.0 rejects this saying
8214       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8215    struct s { int j; const int *ap[3]; };
8216    struct s *b; b->j = 5;
8217  }
8218  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8219    const int foo = 10;
8220    if (!foo) return 0;
8221  }
8222  return !cs[0] && !zero.x;
8223 #endif
8224
8225  ;
8226  return 0;
8227 }
8228 _ACEOF
8229 rm -rf conftest.$ac_objext
8230 if { (ac_try="$ac_compile"
8231 case "(($ac_try" in
8232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233  *) ac_try_echo=$ac_try;;
8234 esac
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236  (eval "$ac_compile") 2>conftest.er1
8237  ac_status=$?
8238  grep -v '^ *+' conftest.er1 >conftest.err
8239  rm -f conftest.er1
8240  cat conftest.err >&5
8241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242  (exit $ac_status); } && {
8243         test -z "$ac_c_werror_flag" ||
8244         test ! -s conftest.err
8245       } && test -s conftest.$ac_objext; then
8246  ac_cv_c_const=yes
8247 else
8248  echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8250
8251        ac_cv_c_const=no
8252 fi
8253
8254 rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8255 fi
8256 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8257 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8258 if test $ac_cv_c_const = no; then
8259
8260 cat >>confdefs.h <<\_ACEOF
8261 #define const
8262 _ACEOF
8263
8264 fi
8265
8266 { echo "$as_me:$LINENO: checking for inline" >&5
8267 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8268 if test "${ac_cv_c_inline+set}" = set; then
8269  echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271  ac_cv_c_inline=no
8272 for ac_kw in inline __inline__ __inline; do
8273  cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h.  */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h.  */
8279 #ifndef __cplusplus
8280 typedef int foo_t;
8281 static $ac_kw foo_t static_foo () {return 0; }
8282 $ac_kw foo_t foo () {return 0; }
8283 #endif
8284
8285 _ACEOF
8286 rm -rf conftest.$ac_objext
8287 if { (ac_try="$ac_compile"
8288 case "(($ac_try" in
8289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290  *) ac_try_echo=$ac_try;;
8291 esac
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293  (eval "$ac_compile") 2>conftest.er1
8294  ac_status=$?
8295  grep -v '^ *+' conftest.er1 >conftest.err
8296  rm -f conftest.er1
8297  cat conftest.err >&5
8298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299  (exit $ac_status); } && {
8300         test -z "$ac_c_werror_flag" ||
8301         test ! -s conftest.err
8302       } && test -s conftest.$ac_objext; then
8303  ac_cv_c_inline=$ac_kw
8304 else
8305  echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308
8309 fi
8310
8311 rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8312  test "$ac_cv_c_inline" != no && break
8313 done
8314
8315 fi
8316 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8317 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8318
8319
8320 case $ac_cv_c_inline in
8321  inline | yes) ;;
8322  *)
8323    case $ac_cv_c_inline in
8324      no) ac_val=;;
8325      *) ac_val=$ac_cv_c_inline;;
8326    esac
8327    cat >>confdefs.h <<_ACEOF
8328 #ifndef __cplusplus
8329 #define inline $ac_val
8330 #endif
8331 _ACEOF
8332    ;;
8333 esac
8334
8335 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
8336 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
8337 if test "${ac_cv_c_restrict+set}" = set; then
8338  echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340  ac_cv_c_restrict=no
8341   # Try the official restrict keyword, then gcc's __restrict, and
8342   # the less common variants.
8343   for ac_kw in restrict __restrict __restrict__ _Restrict; do
8344     cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h.  */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h.  */
8350 typedef int * int_ptr;
8351        int foo (int_ptr $ac_kw ip) {
8352        return ip[0];
8353       }
8354 #ifdef FC_DUMMY_MAIN
8355 #ifndef FC_DUMMY_MAIN_EQ_F77
8356 #  ifdef __cplusplus
8357     extern "C"
8358 #  endif
8359   int FC_DUMMY_MAIN() { return 1; }
8360 #endif
8361 #endif
8362 int
8363 main ()
8364 {
8365 int s[1];
8366        int * $ac_kw t = s;
8367        t[0] = 0;
8368        return foo(t)
8369  ;
8370  return 0;
8371 }
7812   _ACEOF
7813 < rm -rf conftest.$ac_objext
7813 > rm -f conftest.$ac_objext
7814   if { (ac_try="$ac_compile"
7815   case "(($ac_try" in
7816    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7817    *) ac_try_echo=$ac_try;;
7818   esac
7819 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7819 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7820 > $as_echo "$ac_try_echo") >&5
7821    (eval "$ac_compile") 2>conftest.er1
7822    ac_status=$?
7823    grep -v '^ *+' conftest.er1 >conftest.err
7824    rm -f conftest.er1
7825    cat conftest.err >&5
7826 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827    (exit $ac_status); } && {
7828           test -z "$ac_c_werror_flag" ||
7829           test ! -s conftest.err
7830         } && test -s conftest.$ac_objext; then
7831 <  ac_cv_c_restrict=$ac_kw
7831 >  eval "$as_ac_Header=yes"
7832   else
7833 <  echo "$as_me: failed program was:" >&5
7833 >  $as_echo "$as_me: failed program was:" >&5
7834   sed 's/^/| /' conftest.$ac_ext >&5
7835  
7836 +        eval "$as_ac_Header=no"
7837 + fi
7838  
7839 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7840   fi
7841 + ac_res=`eval 'as_val=${'$as_ac_Header'}
7842 +                 $as_echo "$as_val"'`
7843 +               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7844 + $as_echo "$ac_res" >&6; }
7845 + if test `eval 'as_val=${'$as_ac_Header'}
7846 +                 $as_echo "$as_val"'` = yes; then
7847 +  cat >>confdefs.h <<_ACEOF
7848 + #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7849 + _ACEOF
7850  
7851 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8399 <     test "$ac_cv_c_restrict" != no && break
8400 <   done
7851 > fi
7852  
7853 + done
7854 +
7855 +
7856 + #
7857 + # Handle user hints
7858 + #
7859 +
7860 + # Check whether --with-zlib was given.
7861 + if test "${with_zlib+set}" = set; then
7862 +  withval=$with_zlib; zlib_dir="$withval"
7863 + else
7864 +                zlib_dir="not_set"
7865   fi
8403 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
8404 echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
8405 case $ac_cv_c_restrict in
8406   restrict) ;;
8407   no)
8408 cat >>confdefs.h <<\_ACEOF
8409 #define restrict
8410 _ACEOF
8411 ;;
8412   *)  cat >>confdefs.h <<_ACEOF
8413 #define restrict $ac_cv_c_restrict
8414 _ACEOF
8415 ;;
8416 esac
7866  
7867 < { echo "$as_me:$LINENO: checking for size_t" >&5
7868 < echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7869 < if test "${ac_cv_type_size_t+set}" = set; then
7870 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7867 > if test "$zlib_dir" != "no"; then
7868 >
7869 > if test "$zlib_dir" != "not_set" ; then
7870 >  if test -d "$zlib_dir"
7871 >  then
7872 >    ZLIB_HOME="$zlib_dir"
7873 >  else
7874 >    { $as_echo "$as_me:$LINENO: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5
7875 > $as_echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;}
7876 >        ZLIB_HOME=/usr/local
7877 >        if test ! -f "${ZLIB_HOME}/include/zlib.h"
7878 >        then
7879 >                ZLIB_HOME=/usr
7880 >        fi
7881 >  fi
7882 > fi
7883 > #
7884 > # Locate zlib, if wanted
7885 > #
7886 > if test -n "${ZLIB_HOME}"
7887 > then
7888 >        ZLIB_OLD_LDFLAGS=$LDFLAGS
7889 >        ZLIB_OLD_CFLAGS=$CFLAGS
7890 >        LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
7891 >        CFLAGS="$CFLAGS -I${ZLIB_HOME}/include"
7892 >
7893 >        ac_ext=c
7894 > ac_cpp='$CPP $CPPFLAGS'
7895 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7896 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7897 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
7898 >
7899 >        { $as_echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
7900 > $as_echo_n "checking for inflateEnd in -lz... " >&6; }
7901 > if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
7902 >  $as_echo_n "(cached) " >&6
7903   else
7904 <  cat >conftest.$ac_ext <<_ACEOF
7904 >  ac_check_lib_save_LIBS=$LIBS
7905 > LIBS="-lz  $LIBS"
7906 > cat >conftest.$ac_ext <<_ACEOF
7907   /* confdefs.h.  */
7908   _ACEOF
7909   cat confdefs.h >>conftest.$ac_ext
7910   cat >>conftest.$ac_ext <<_ACEOF
7911   /* end confdefs.h.  */
7912 < $ac_includes_default
7913 < typedef size_t ac__type_new_;
7912 >
7913 > /* Override any GCC internal prototype to avoid an error.
7914 >   Use char because int might match the return type of a GCC
7915 >   builtin and then its argument prototype would still apply.  */
7916 > #ifdef __cplusplus
7917 > extern "C"
7918 > #endif
7919 > char inflateEnd ();
7920   #ifdef FC_DUMMY_MAIN
7921   #ifndef FC_DUMMY_MAIN_EQ_F77
7922   #  ifdef __cplusplus
# Line 8439 | Line 7928 | main ()
7928   int
7929   main ()
7930   {
7931 < if ((ac__type_new_ *) 0)
8443 <  return 0;
8444 < if (sizeof (ac__type_new_))
8445 <  return 0;
7931 > return inflateEnd ();
7932    ;
7933    return 0;
7934   }
7935   _ACEOF
7936 < rm -rf conftest.$ac_objext
7937 < if { (ac_try="$ac_compile"
7936 > rm -f conftest.$ac_objext conftest$ac_exeext
7937 > if { (ac_try="$ac_link"
7938   case "(($ac_try" in
7939    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940    *) ac_try_echo=$ac_try;;
7941   esac
7942 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 <  (eval "$ac_compile") 2>conftest.er1
7942 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7943 > $as_echo "$ac_try_echo") >&5
7944 >  (eval "$ac_link") 2>conftest.er1
7945    ac_status=$?
7946    grep -v '^ *+' conftest.er1 >conftest.err
7947    rm -f conftest.er1
7948    cat conftest.err >&5
7949 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950    (exit $ac_status); } && {
7951           test -z "$ac_c_werror_flag" ||
7952           test ! -s conftest.err
7953 <       } && test -s conftest.$ac_objext; then
7954 <  ac_cv_type_size_t=yes
7953 >       } && test -s conftest$ac_exeext && {
7954 >         test "$cross_compiling" = yes ||
7955 >         $as_test_x conftest$ac_exeext
7956 >       }; then
7957 >  ac_cv_lib_z_inflateEnd=yes
7958   else
7959 <  echo "$as_me: failed program was:" >&5
7959 >  $as_echo "$as_me: failed program was:" >&5
7960   sed 's/^/| /' conftest.$ac_ext >&5
7961  
7962 <        ac_cv_type_size_t=no
7962 >        ac_cv_lib_z_inflateEnd=no
7963   fi
7964  
7965 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7965 > rm -rf conftest.dSYM
7966 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7967 >      conftest$ac_exeext conftest.$ac_ext
7968 > LIBS=$ac_check_lib_save_LIBS
7969   fi
7970 < { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7971 < echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7972 < if test $ac_cv_type_size_t = yes; then
7973 <  :
7970 > { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
7971 > $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
7972 > if test $ac_cv_lib_z_inflateEnd = yes; then
7973 >  zlib_cv_libz=yes
7974   else
7975 <
8483 < cat >>confdefs.h <<_ACEOF
8484 < #define size_t unsigned int
8485 < _ACEOF
8486 <
7975 >  zlib_cv_libz=no
7976   fi
7977  
7978 < { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7979 < echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7980 < if test "${ac_cv_header_time+set}" = set; then
7981 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7978 >        if test "${ac_cv_header_zlib_h+set}" = set; then
7979 >  { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
7980 > $as_echo_n "checking for zlib.h... " >&6; }
7981 > if test "${ac_cv_header_zlib_h+set}" = set; then
7982 >  $as_echo_n "(cached) " >&6
7983 > fi
7984 > { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7985 > $as_echo "$ac_cv_header_zlib_h" >&6; }
7986   else
7987 <  cat >conftest.$ac_ext <<_ACEOF
7987 >  # Is the header compilable?
7988 > { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
7989 > $as_echo_n "checking zlib.h usability... " >&6; }
7990 > cat >conftest.$ac_ext <<_ACEOF
7991   /* confdefs.h.  */
7992   _ACEOF
7993   cat confdefs.h >>conftest.$ac_ext
7994   cat >>conftest.$ac_ext <<_ACEOF
7995   /* end confdefs.h.  */
7996 < #include <sys/types.h>
7997 < #include <sys/time.h>
8502 < #include <time.h>
8503 <
8504 < #ifdef FC_DUMMY_MAIN
8505 < #ifndef FC_DUMMY_MAIN_EQ_F77
8506 < #  ifdef __cplusplus
8507 <     extern "C"
8508 < #  endif
8509 <   int FC_DUMMY_MAIN() { return 1; }
8510 < #endif
8511 < #endif
8512 < int
8513 < main ()
8514 < {
8515 < if ((struct tm *) 0)
8516 < return 0;
8517 <  ;
8518 <  return 0;
8519 < }
7996 > $ac_includes_default
7997 > #include <zlib.h>
7998   _ACEOF
7999 < rm -rf conftest.$ac_objext
7999 > rm -f conftest.$ac_objext
8000   if { (ac_try="$ac_compile"
8001   case "(($ac_try" in
8002    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003    *) ac_try_echo=$ac_try;;
8004   esac
8005 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8005 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8006 > $as_echo "$ac_try_echo") >&5
8007    (eval "$ac_compile") 2>conftest.er1
8008    ac_status=$?
8009    grep -v '^ *+' conftest.er1 >conftest.err
8010    rm -f conftest.er1
8011    cat conftest.err >&5
8012 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013    (exit $ac_status); } && {
8014           test -z "$ac_c_werror_flag" ||
8015           test ! -s conftest.err
8016         } && test -s conftest.$ac_objext; then
8017 <  ac_cv_header_time=yes
8017 >  ac_header_compiler=yes
8018   else
8019 <  echo "$as_me: failed program was:" >&5
8019 >  $as_echo "$as_me: failed program was:" >&5
8020   sed 's/^/| /' conftest.$ac_ext >&5
8021  
8022 <        ac_cv_header_time=no
8022 >        ac_header_compiler=no
8023   fi
8024  
8025 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8026 < fi
8027 < { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8549 < echo "${ECHO_T}$ac_cv_header_time" >&6; }
8550 < if test $ac_cv_header_time = yes; then
8025 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026 > { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8027 > $as_echo "$ac_header_compiler" >&6; }
8028  
8029 < cat >>confdefs.h <<\_ACEOF
8030 < #define TIME_WITH_SYS_TIME 1
8031 < _ACEOF
8032 <
8556 < fi
8557 <
8558 < { echo "$as_me:$LINENO: checking for clock_t" >&5
8559 < echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
8560 < if test "${ac_cv_type_clock_t+set}" = set; then
8561 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8562 < else
8563 <  cat >conftest.$ac_ext <<_ACEOF
8029 > # Is the header present?
8030 > { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
8031 > $as_echo_n "checking zlib.h presence... " >&6; }
8032 > cat >conftest.$ac_ext <<_ACEOF
8033   /* confdefs.h.  */
8034   _ACEOF
8035   cat confdefs.h >>conftest.$ac_ext
8036   cat >>conftest.$ac_ext <<_ACEOF
8037   /* end confdefs.h.  */
8038 < $ac_includes_default
8570 < typedef clock_t ac__type_new_;
8571 < #ifdef FC_DUMMY_MAIN
8572 < #ifndef FC_DUMMY_MAIN_EQ_F77
8573 < #  ifdef __cplusplus
8574 <     extern "C"
8575 < #  endif
8576 <   int FC_DUMMY_MAIN() { return 1; }
8577 < #endif
8578 < #endif
8579 < int
8580 < main ()
8581 < {
8582 < if ((ac__type_new_ *) 0)
8583 <  return 0;
8584 < if (sizeof (ac__type_new_))
8585 <  return 0;
8586 <  ;
8587 <  return 0;
8588 < }
8038 > #include <zlib.h>
8039   _ACEOF
8040 < rm -rf conftest.$ac_objext
8591 < if { (ac_try="$ac_compile"
8040 > if { (ac_try="$ac_cpp conftest.$ac_ext"
8041   case "(($ac_try" in
8042    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043    *) ac_try_echo=$ac_try;;
8044   esac
8045 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046 <  (eval "$ac_compile") 2>conftest.er1
8045 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8046 > $as_echo "$ac_try_echo") >&5
8047 >  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8048    ac_status=$?
8049    grep -v '^ *+' conftest.er1 >conftest.err
8050    rm -f conftest.er1
8051    cat conftest.err >&5
8052 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 <  (exit $ac_status); } && {
8054 <         test -z "$ac_c_werror_flag" ||
8052 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 >  (exit $ac_status); } >/dev/null && {
8054 >         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8055           test ! -s conftest.err
8056 <       } && test -s conftest.$ac_objext; then
8057 <  ac_cv_type_clock_t=yes
8056 >       }; then
8057 >  ac_header_preproc=yes
8058   else
8059 <  echo "$as_me: failed program was:" >&5
8059 >  $as_echo "$as_me: failed program was:" >&5
8060   sed 's/^/| /' conftest.$ac_ext >&5
8061  
8062 <        ac_cv_type_clock_t=no
8062 >  ac_header_preproc=no
8063   fi
8064  
8065 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 > rm -f conftest.err conftest.$ac_ext
8066 > { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8067 > $as_echo "$ac_header_preproc" >&6; }
8068 >
8069 > # So?  What about this header?
8070 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8071 >  yes:no: )
8072 >    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8073 > $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8074 >    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
8075 > $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
8076 >    ac_header_preproc=yes
8077 >    ;;
8078 >  no:yes:* )
8079 >    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8080 > $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8081 >    { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
8082 > $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
8083 >    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
8084 > $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
8085 >    { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
8086 > $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8087 >    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8088 > $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
8089 >    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
8090 > $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
8091 >    ( cat <<\_ASBOX
8092 > ## ------------------------------ ##
8093 > ## Report this to gezelter@nd.edu ##
8094 > ## ------------------------------ ##
8095 > _ASBOX
8096 >     ) | sed "s/^/$as_me: WARNING:     /" >&2
8097 >    ;;
8098 > esac
8099 > { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
8100 > $as_echo_n "checking for zlib.h... " >&6; }
8101 > if test "${ac_cv_header_zlib_h+set}" = set; then
8102 >  $as_echo_n "(cached) " >&6
8103 > else
8104 >  ac_cv_header_zlib_h=$ac_header_preproc
8105   fi
8106 < { echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5
8107 < echo "${ECHO_T}$ac_cv_type_clock_t" >&6; }
8619 < if test $ac_cv_type_clock_t = yes; then
8106 > { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8107 > $as_echo "$ac_cv_header_zlib_h" >&6; }
8108  
8109 < cat >>confdefs.h <<_ACEOF
8110 < #define HAVE_CLOCK_T 1
8109 > fi
8110 > if test $ac_cv_header_zlib_h = yes; then
8111 >  zlib_cv_zlib_h=yes
8112 > else
8113 >  zlib_cv_zlib_h=no
8114 > fi
8115 >
8116 >
8117 >        ac_ext=c
8118 > ac_cpp='$CPP $CPPFLAGS'
8119 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
8122 >
8123 >
8124 >        if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"; then
8125 >
8126 > cat >>confdefs.h <<\_ACEOF
8127 > #define HAVE_ZLIB_H 1
8128   _ACEOF
8129  
8130  
8131 + cat >>confdefs.h <<\_ACEOF
8132 + #define HAVE_LIBZ 1
8133 + _ACEOF
8134 +
8135 +                ZLIB_INC_DIR="${ZLIB_HOME}/include"
8136 +                ZLIB_LIB_DIR="${ZLIB_HOME}/lib"
8137 +                ZLIB="-lz"
8138 +        else
8139 +                { $as_echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
8140 + $as_echo_n "checking zlib in ${ZLIB_HOME}... " >&6; }
8141 +                ZLIB_INC_DIR=
8142 +                ZLIB_LIB_DIR=
8143 +                ZLIB=
8144 +                LDFLAGS="$ZLIB_OLD_LDFLAGS"
8145 +                CFLAGS="$ZLIB_OLD_CFLAGS"
8146 +                { $as_echo "$as_me:$LINENO: result: failed" >&5
8147 + $as_echo "failed" >&6; }
8148 +                echo ""
8149 +                echo "*********************************************************"
8150 +                echo "* WARNING: Could not find a working zlib installation   *"
8151 +                echo "* If you need OOPSE to be able to deal with compressed  *"
8152 +                echo "* trajectory dump files be sure to specify a valid zlib *"
8153 +                echo "* installation with --with-zlib=DIR                     *"
8154 +                echo "*                                                       *"
8155 +                echo "* OOPSE will still work without zlib installed.         *"
8156 +                echo "*********************************************************"
8157 +                echo ""
8158 +        fi
8159 +
8160 +
8161 +
8162   fi
8163 + fi
8164  
8165 < { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8166 < echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8167 < if test "${ac_cv_c_const+set}" = set; then
8168 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8165 > #
8166 > # Handle user hints
8167 > #
8168 >
8169 > # Check whether --with-fftw was given.
8170 > if test "${with_fftw+set}" = set; then
8171 >  withval=$with_fftw; fftw_dir="$withval"
8172   else
8173 <  cat >conftest.$ac_ext <<_ACEOF
8173 >             fftw_dir="not_set"
8174 > fi
8175 >
8176 > if test "$fftw_dir" != "no"; then
8177 >  if test "$fftw_dir" != "not_set" ; then
8178 >    if test -d "$fftw_dir"; then
8179 >      FFTW_HOME="$fftw_dir"
8180 >    else
8181 >      { $as_echo "$as_me:$LINENO: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&5
8182 > $as_echo "$as_me: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&2;}
8183 >      FFTW_HOME=/usr/local
8184 >      if test ! -f "${FFTW_HOME}/include/fftw3.h" -o -f "${FFTW_HOME}/include/fftw.h" -o  -f "${FFTW_HOME}/include/dfftw.h"; then
8185 >        FFTW_HOME=/usr
8186 >      fi
8187 >    fi
8188 >    #
8189 >    # Locate fftw, if wanted
8190 >    #
8191 >    if test -n "${FFTW_HOME}"; then
8192 >      FFTW_OLD_LDFLAGS=$LDFLAGS
8193 >      FFTW_OLD_CFLAGS=$CFLAGS
8194 >      LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib"
8195 >      CFLAGS="$CFLAGS -I${FFTW_HOME}/include"
8196 >
8197 >      ac_ext=c
8198 > ac_cpp='$CPP $CPPFLAGS'
8199 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8200 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8201 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
8202 >
8203 >      { $as_echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
8204 > $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
8205 > if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
8206 >  $as_echo_n "(cached) " >&6
8207 > else
8208 >  ac_check_lib_save_LIBS=$LIBS
8209 > LIBS="-lfftw3  $LIBS"
8210 > cat >conftest.$ac_ext <<_ACEOF
8211   /* confdefs.h.  */
8212   _ACEOF
8213   cat confdefs.h >>conftest.$ac_ext
8214   cat >>conftest.$ac_ext <<_ACEOF
8215   /* end confdefs.h.  */
8216  
8217 + /* Override any GCC internal prototype to avoid an error.
8218 +   Use char because int might match the return type of a GCC
8219 +   builtin and then its argument prototype would still apply.  */
8220 + #ifdef __cplusplus
8221 + extern "C"
8222 + #endif
8223 + char fftw_execute ();
8224   #ifdef FC_DUMMY_MAIN
8225   #ifndef FC_DUMMY_MAIN_EQ_F77
8226   #  ifdef __cplusplus
# Line 8648 | Line 8232 | main ()
8232   int
8233   main ()
8234   {
8235 < /* FIXME: Include the comments suggested by Paul. */
8652 < #ifndef __cplusplus
8653 <  /* Ultrix mips cc rejects this.  */
8654 <  typedef int charset[2];
8655 <  const charset cs;
8656 <  /* SunOS 4.1.1 cc rejects this.  */
8657 <  char const *const *pcpcc;
8658 <  char **ppc;
8659 <  /* NEC SVR4.0.2 mips cc rejects this.  */
8660 <  struct point {int x, y;};
8661 <  static struct point const zero = {0,0};
8662 <  /* AIX XL C 1.02.0.0 rejects this.
8663 <     It does not let you subtract one const X* pointer from another in
8664 <     an arm of an if-expression whose if-part is not a constant
8665 <     expression */
8666 <  const char *g = "string";
8667 <  pcpcc = &g + (g ? g-g : 0);
8668 <  /* HPUX 7.0 cc rejects these. */
8669 <  ++pcpcc;
8670 <  ppc = (char**) pcpcc;
8671 <  pcpcc = (char const *const *) ppc;
8672 <  { /* SCO 3.2v4 cc rejects this.  */
8673 <    char *t;
8674 <    char const *s = 0 ? (char *) 0 : (char const *) 0;
8675 <
8676 <    *t++ = 0;
8677 <    if (s) return 0;
8678 <  }
8679 <  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8680 <    int x[] = {25, 17};
8681 <    const int *foo = &x[0];
8682 <    ++foo;
8683 <  }
8684 <  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8685 <    typedef const int *iptr;
8686 <    iptr p = 0;
8687 <    ++p;
8688 <  }
8689 <  { /* AIX XL C 1.02.0.0 rejects this saying
8690 <       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8691 <    struct s { int j; const int *ap[3]; };
8692 <    struct s *b; b->j = 5;
8693 <  }
8694 <  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8695 <    const int foo = 10;
8696 <    if (!foo) return 0;
8697 <  }
8698 <  return !cs[0] && !zero.x;
8699 < #endif
8700 <
8235 > return fftw_execute ();
8236    ;
8237    return 0;
8238   }
8239   _ACEOF
8240 < rm -rf conftest.$ac_objext
8241 < if { (ac_try="$ac_compile"
8240 > rm -f conftest.$ac_objext conftest$ac_exeext
8241 > if { (ac_try="$ac_link"
8242   case "(($ac_try" in
8243    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244    *) ac_try_echo=$ac_try;;
8245   esac
8246 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 <  (eval "$ac_compile") 2>conftest.er1
8246 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8247 > $as_echo "$ac_try_echo") >&5
8248 >  (eval "$ac_link") 2>conftest.er1
8249    ac_status=$?
8250    grep -v '^ *+' conftest.er1 >conftest.err
8251    rm -f conftest.er1
8252    cat conftest.err >&5
8253 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254    (exit $ac_status); } && {
8255           test -z "$ac_c_werror_flag" ||
8256           test ! -s conftest.err
8257 <       } && test -s conftest.$ac_objext; then
8258 <  ac_cv_c_const=yes
8257 >       } && test -s conftest$ac_exeext && {
8258 >         test "$cross_compiling" = yes ||
8259 >         $as_test_x conftest$ac_exeext
8260 >       }; then
8261 >  ac_cv_lib_fftw3_fftw_execute=yes
8262   else
8263 <  echo "$as_me: failed program was:" >&5
8263 >  $as_echo "$as_me: failed program was:" >&5
8264   sed 's/^/| /' conftest.$ac_ext >&5
8265  
8266 <        ac_cv_c_const=no
8266 >        ac_cv_lib_fftw3_fftw_execute=no
8267   fi
8268  
8269 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8269 > rm -rf conftest.dSYM
8270 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8271 >      conftest$ac_exeext conftest.$ac_ext
8272 > LIBS=$ac_check_lib_save_LIBS
8273   fi
8274 < { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8275 < echo "${ECHO_T}$ac_cv_c_const" >&6; }
8276 < if test $ac_cv_c_const = no; then
8277 <
8736 < cat >>confdefs.h <<\_ACEOF
8737 < #define const
8738 < _ACEOF
8739 <
8740 < fi
8741 <
8742 < { echo "$as_me:$LINENO: checking for inline" >&5
8743 < echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8744 < if test "${ac_cv_c_inline+set}" = set; then
8745 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8274 > { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
8275 > $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
8276 > if test $ac_cv_lib_fftw3_fftw_execute = yes; then
8277 >  fftw_cv_libfftw3=yes
8278   else
8279 <  ac_cv_c_inline=no
8748 < for ac_kw in inline __inline__ __inline; do
8749 <  cat >conftest.$ac_ext <<_ACEOF
8750 < /* confdefs.h.  */
8751 < _ACEOF
8752 < cat confdefs.h >>conftest.$ac_ext
8753 < cat >>conftest.$ac_ext <<_ACEOF
8754 < /* end confdefs.h.  */
8755 < #ifndef __cplusplus
8756 < typedef int foo_t;
8757 < static $ac_kw foo_t static_foo () {return 0; }
8758 < $ac_kw foo_t foo () {return 0; }
8759 < #endif
8760 <
8761 < _ACEOF
8762 < rm -rf conftest.$ac_objext
8763 < if { (ac_try="$ac_compile"
8764 < case "(($ac_try" in
8765 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 <  *) ac_try_echo=$ac_try;;
8767 < esac
8768 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 <  (eval "$ac_compile") 2>conftest.er1
8770 <  ac_status=$?
8771 <  grep -v '^ *+' conftest.er1 >conftest.err
8772 <  rm -f conftest.er1
8773 <  cat conftest.err >&5
8774 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 <  (exit $ac_status); } && {
8776 <         test -z "$ac_c_werror_flag" ||
8777 <         test ! -s conftest.err
8778 <       } && test -s conftest.$ac_objext; then
8779 <  ac_cv_c_inline=$ac_kw
8780 < else
8781 <  echo "$as_me: failed program was:" >&5
8782 < sed 's/^/| /' conftest.$ac_ext >&5
8783 <
8784 <
8279 >  fftw_cv_libfftw3=no
8280   fi
8281  
8282 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8283 <  test "$ac_cv_c_inline" != no && break
8284 < done
8285 <
8282 >      if test "${ac_cv_header_fftw3_h+set}" = set; then
8283 >  { $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
8284 > $as_echo_n "checking for fftw3.h... " >&6; }
8285 > if test "${ac_cv_header_fftw3_h+set}" = set; then
8286 >  $as_echo_n "(cached) " >&6
8287   fi
8288 < { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8289 < echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8794 <
8795 <
8796 < case $ac_cv_c_inline in
8797 <  inline | yes) ;;
8798 <  *)
8799 <    case $ac_cv_c_inline in
8800 <      no) ac_val=;;
8801 <      *) ac_val=$ac_cv_c_inline;;
8802 <    esac
8803 <    cat >>confdefs.h <<_ACEOF
8804 < #ifndef __cplusplus
8805 < #define inline $ac_val
8806 < #endif
8807 < _ACEOF
8808 <    ;;
8809 < esac
8810 <
8811 <
8812 < # Checks for library functions.
8813 <
8814 < for ac_header in stdlib.h
8815 < do
8816 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8817 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8818 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8819 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8820 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8821 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8822 < fi
8823 < ac_res=`eval echo '${'$as_ac_Header'}'`
8824 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
8825 < echo "${ECHO_T}$ac_res" >&6; }
8288 > { $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
8289 > $as_echo "$ac_cv_header_fftw3_h" >&6; }
8290   else
8291    # Is the header compilable?
8292 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8293 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8292 > { $as_echo "$as_me:$LINENO: checking fftw3.h usability" >&5
8293 > $as_echo_n "checking fftw3.h usability... " >&6; }
8294   cat >conftest.$ac_ext <<_ACEOF
8295   /* confdefs.h.  */
8296   _ACEOF
# Line 8834 | Line 8298 | $ac_includes_default
8298   cat >>conftest.$ac_ext <<_ACEOF
8299   /* end confdefs.h.  */
8300   $ac_includes_default
8301 < #include <$ac_header>
8301 > #include <fftw3.h>
8302   _ACEOF
8303 < rm -rf conftest.$ac_objext
8303 > rm -f conftest.$ac_objext
8304   if { (ac_try="$ac_compile"
8305   case "(($ac_try" in
8306    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307    *) ac_try_echo=$ac_try;;
8308   esac
8309 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8310 > $as_echo "$ac_try_echo") >&5
8311    (eval "$ac_compile") 2>conftest.er1
8312    ac_status=$?
8313    grep -v '^ *+' conftest.er1 >conftest.err
8314    rm -f conftest.er1
8315    cat conftest.err >&5
8316 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317    (exit $ac_status); } && {
8318           test -z "$ac_c_werror_flag" ||
8319           test ! -s conftest.err
8320         } && test -s conftest.$ac_objext; then
8321    ac_header_compiler=yes
8322   else
8323 <  echo "$as_me: failed program was:" >&5
8323 >  $as_echo "$as_me: failed program was:" >&5
8324   sed 's/^/| /' conftest.$ac_ext >&5
8325  
8326          ac_header_compiler=no
8327   fi
8328  
8329 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8330 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8331 < echo "${ECHO_T}$ac_header_compiler" >&6; }
8329 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330 > { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8331 > $as_echo "$ac_header_compiler" >&6; }
8332  
8333   # Is the header present?
8334 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8335 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8334 > { $as_echo "$as_me:$LINENO: checking fftw3.h presence" >&5
8335 > $as_echo_n "checking fftw3.h presence... " >&6; }
8336   cat >conftest.$ac_ext <<_ACEOF
8337   /* confdefs.h.  */
8338   _ACEOF
8339   cat confdefs.h >>conftest.$ac_ext
8340   cat >>conftest.$ac_ext <<_ACEOF
8341   /* end confdefs.h.  */
8342 < #include <$ac_header>
8342 > #include <fftw3.h>
8343   _ACEOF
8344   if { (ac_try="$ac_cpp conftest.$ac_ext"
8345   case "(($ac_try" in
8346    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347    *) ac_try_echo=$ac_try;;
8348   esac
8349 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8350 > $as_echo "$ac_try_echo") >&5
8351    (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8352    ac_status=$?
8353    grep -v '^ *+' conftest.er1 >conftest.err
8354 <  rm -rf conftest.er1
8354 >  rm -f conftest.er1
8355    cat conftest.err >&5
8356 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357    (exit $ac_status); } >/dev/null && {
8358           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8359           test ! -s conftest.err
8360         }; then
8361    ac_header_preproc=yes
8362   else
8363 <  echo "$as_me: failed program was:" >&5
8363 >  $as_echo "$as_me: failed program was:" >&5
8364   sed 's/^/| /' conftest.$ac_ext >&5
8365  
8366    ac_header_preproc=no
8367   fi
8368  
8369 < rm -rf conftest.err conftest.$ac_ext
8370 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8371 < echo "${ECHO_T}$ac_header_preproc" >&6; }
8369 > rm -f conftest.err conftest.$ac_ext
8370 > { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8371 > $as_echo "$ac_header_preproc" >&6; }
8372  
8373   # So?  What about this header?
8374   case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8375    yes:no: )
8376 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8377 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8378 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8379 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8376 >    { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
8377 > $as_echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8378 >    { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5
8379 > $as_echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;}
8380      ac_header_preproc=yes
8381      ;;
8382    no:yes:* )
8383 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8384 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8385 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8386 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8387 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8388 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8389 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8390 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8391 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8392 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8393 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8394 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8383 >    { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
8384 > $as_echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
8385 >    { $as_echo "$as_me:$LINENO: WARNING: fftw3.h:     check for missing prerequisite headers?" >&5
8386 > $as_echo "$as_me: WARNING: fftw3.h:     check for missing prerequisite headers?" >&2;}
8387 >    { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5
8388 > $as_echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;}
8389 >    { $as_echo "$as_me:$LINENO: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&5
8390 > $as_echo "$as_me: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8391 >    { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
8392 > $as_echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;}
8393 >    { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5
8394 > $as_echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;}
8395      ( cat <<\_ASBOX
8396   ## ------------------------------ ##
8397   ## Report this to gezelter@nd.edu ##
# Line 8934 | Line 8400 | esac
8400       ) | sed "s/^/$as_me: WARNING:     /" >&2
8401      ;;
8402   esac
8403 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
8404 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8405 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8406 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8403 > { $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
8404 > $as_echo_n "checking for fftw3.h... " >&6; }
8405 > if test "${ac_cv_header_fftw3_h+set}" = set; then
8406 >  $as_echo_n "(cached) " >&6
8407   else
8408 <  eval "$as_ac_Header=\$ac_header_preproc"
8408 >  ac_cv_header_fftw3_h=$ac_header_preproc
8409   fi
8410 < ac_res=`eval echo '${'$as_ac_Header'}'`
8411 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
8946 < echo "${ECHO_T}$ac_res" >&6; }
8410 > { $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
8411 > $as_echo "$ac_cv_header_fftw3_h" >&6; }
8412  
8413   fi
8414 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
8415 <  cat >>confdefs.h <<_ACEOF
8416 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8417 < _ACEOF
8953 <
8414 > if test $ac_cv_header_fftw3_h = yes; then
8415 >  fftw_cv_fftw3_h=yes
8416 > else
8417 >  fftw_cv_fftw3_h=no
8418   fi
8419  
8956 done
8420  
8421 < { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8422 < echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
8423 < if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8424 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8421 >      if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then
8422 >        { $as_echo "$as_me:$LINENO: checking for fftwnd_one in -lfftw" >&5
8423 > $as_echo_n "checking for fftwnd_one in -lfftw... " >&6; }
8424 > if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then
8425 >  $as_echo_n "(cached) " >&6
8426   else
8427 <  if test "$cross_compiling" = yes; then
8428 <  ac_cv_func_malloc_0_nonnull=no
8429 < else
8966 <  cat >conftest.$ac_ext <<_ACEOF
8427 >  ac_check_lib_save_LIBS=$LIBS
8428 > LIBS="-lfftw  $LIBS"
8429 > cat >conftest.$ac_ext <<_ACEOF
8430   /* confdefs.h.  */
8431   _ACEOF
8432   cat confdefs.h >>conftest.$ac_ext
8433   cat >>conftest.$ac_ext <<_ACEOF
8434   /* end confdefs.h.  */
8972 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8973 # include <stdlib.h>
8974 #else
8975 char *malloc ();
8976 #endif
8435  
8436 + /* Override any GCC internal prototype to avoid an error.
8437 +   Use char because int might match the return type of a GCC
8438 +   builtin and then its argument prototype would still apply.  */
8439 + #ifdef __cplusplus
8440 + extern "C"
8441 + #endif
8442 + char fftwnd_one ();
8443   #ifdef FC_DUMMY_MAIN
8444   #ifndef FC_DUMMY_MAIN_EQ_F77
8445   #  ifdef __cplusplus
# Line 8986 | Line 8451 | main ()
8451   int
8452   main ()
8453   {
8454 < return ! malloc (0);
8454 > return fftwnd_one ();
8455    ;
8456    return 0;
8457   }
8458   _ACEOF
8459 < rm -rf conftest$ac_exeext
8459 > rm -f conftest.$ac_objext conftest$ac_exeext
8460   if { (ac_try="$ac_link"
8461   case "(($ac_try" in
8462    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463    *) ac_try_echo=$ac_try;;
8464   esac
8465 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 <  (eval "$ac_link") 2>&5
8465 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8466 > $as_echo "$ac_try_echo") >&5
8467 >  (eval "$ac_link") 2>conftest.er1
8468    ac_status=$?
8469 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8471 <  { (case "(($ac_try" in
8469 >  grep -v '^ *+' conftest.er1 >conftest.err
8470 >  rm -f conftest.er1
8471 >  cat conftest.err >&5
8472 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 >  (exit $ac_status); } && {
8474 >         test -z "$ac_c_werror_flag" ||
8475 >         test ! -s conftest.err
8476 >       } && test -s conftest$ac_exeext && {
8477 >         test "$cross_compiling" = yes ||
8478 >         $as_test_x conftest$ac_exeext
8479 >       }; then
8480 >  ac_cv_lib_fftw_fftwnd_one=yes
8481 > else
8482 >  $as_echo "$as_me: failed program was:" >&5
8483 > sed 's/^/| /' conftest.$ac_ext >&5
8484 >
8485 >        ac_cv_lib_fftw_fftwnd_one=no
8486 > fi
8487 >
8488 > rm -rf conftest.dSYM
8489 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8490 >      conftest$ac_exeext conftest.$ac_ext
8491 > LIBS=$ac_check_lib_save_LIBS
8492 > fi
8493 > { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftwnd_one" >&5
8494 > $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
8495 > if test $ac_cv_lib_fftw_fftwnd_one = yes; then
8496 >  fftw_cv_libfftw=yes
8497 > else
8498 >  fftw_cv_libfftw=no
8499 > fi
8500 >
8501 >        if test "${ac_cv_header_fftw_h+set}" = set; then
8502 >  { $as_echo "$as_me:$LINENO: checking for fftw.h" >&5
8503 > $as_echo_n "checking for fftw.h... " >&6; }
8504 > if test "${ac_cv_header_fftw_h+set}" = set; then
8505 >  $as_echo_n "(cached) " >&6
8506 > fi
8507 > { $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
8508 > $as_echo "$ac_cv_header_fftw_h" >&6; }
8509 > else
8510 >  # Is the header compilable?
8511 > { $as_echo "$as_me:$LINENO: checking fftw.h usability" >&5
8512 > $as_echo_n "checking fftw.h usability... " >&6; }
8513 > cat >conftest.$ac_ext <<_ACEOF
8514 > /* confdefs.h.  */
8515 > _ACEOF
8516 > cat confdefs.h >>conftest.$ac_ext
8517 > cat >>conftest.$ac_ext <<_ACEOF
8518 > /* end confdefs.h.  */
8519 > $ac_includes_default
8520 > #include <fftw.h>
8521 > _ACEOF
8522 > rm -f conftest.$ac_objext
8523 > if { (ac_try="$ac_compile"
8524 > case "(($ac_try" in
8525    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526    *) ac_try_echo=$ac_try;;
8527   esac
8528 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 <  (eval "$ac_try") 2>&5
8528 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8529 > $as_echo "$ac_try_echo") >&5
8530 >  (eval "$ac_compile") 2>conftest.er1
8531    ac_status=$?
8532 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 <  (exit $ac_status); }; }; then
8534 <  ac_cv_func_malloc_0_nonnull=yes
8532 >  grep -v '^ *+' conftest.er1 >conftest.err
8533 >  rm -f conftest.er1
8534 >  cat conftest.err >&5
8535 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 >  (exit $ac_status); } && {
8537 >         test -z "$ac_c_werror_flag" ||
8538 >         test ! -s conftest.err
8539 >       } && test -s conftest.$ac_objext; then
8540 >  ac_header_compiler=yes
8541   else
8542 <  echo "$as_me: program exited with status $ac_status" >&5
9017 < echo "$as_me: failed program was:" >&5
8542 >  $as_echo "$as_me: failed program was:" >&5
8543   sed 's/^/| /' conftest.$ac_ext >&5
8544  
8545 < ( exit $ac_status )
9021 < ac_cv_func_malloc_0_nonnull=no
8545 >        ac_header_compiler=no
8546   fi
9023 rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9024 fi
8547  
8548 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549 + { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8550 + $as_echo "$ac_header_compiler" >&6; }
8551  
8552 < fi
8553 < { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8554 < echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
8555 < if test $ac_cv_func_malloc_0_nonnull = yes; then
8556 <
9032 < cat >>confdefs.h <<\_ACEOF
9033 < #define HAVE_MALLOC 1
8552 > # Is the header present?
8553 > { $as_echo "$as_me:$LINENO: checking fftw.h presence" >&5
8554 > $as_echo_n "checking fftw.h presence... " >&6; }
8555 > cat >conftest.$ac_ext <<_ACEOF
8556 > /* confdefs.h.  */
8557   _ACEOF
8558 <
8559 < else
8560 <  cat >>confdefs.h <<\_ACEOF
8561 < #define HAVE_MALLOC 0
8558 > cat confdefs.h >>conftest.$ac_ext
8559 > cat >>conftest.$ac_ext <<_ACEOF
8560 > /* end confdefs.h.  */
8561 > #include <fftw.h>
8562   _ACEOF
8563 <
8564 <   case " $LIBOBJS " in
8565 <  *" malloc.$ac_objext "* ) ;;
8566 <  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9044 < ;;
8563 > if { (ac_try="$ac_cpp conftest.$ac_ext"
8564 > case "(($ac_try" in
8565 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 >  *) ac_try_echo=$ac_try;;
8567   esac
8568 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8569 + $as_echo "$ac_try_echo") >&5
8570 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8571 +  ac_status=$?
8572 +  grep -v '^ *+' conftest.er1 >conftest.err
8573 +  rm -f conftest.er1
8574 +  cat conftest.err >&5
8575 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 +  (exit $ac_status); } >/dev/null && {
8577 +         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8578 +         test ! -s conftest.err
8579 +       }; then
8580 +  ac_header_preproc=yes
8581 + else
8582 +  $as_echo "$as_me: failed program was:" >&5
8583 + sed 's/^/| /' conftest.$ac_ext >&5
8584  
8585 +  ac_header_preproc=no
8586 + fi
8587  
8588 < cat >>confdefs.h <<\_ACEOF
8589 < #define malloc rpl_malloc
8590 < _ACEOF
8588 > rm -f conftest.err conftest.$ac_ext
8589 > { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8590 > $as_echo "$ac_header_preproc" >&6; }
8591  
8592 + # So?  What about this header?
8593 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8594 +  yes:no: )
8595 +    { $as_echo "$as_me:$LINENO: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
8596 + $as_echo "$as_me: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8597 +    { $as_echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the compiler's result" >&5
8598 + $as_echo "$as_me: WARNING: fftw.h: proceeding with the compiler's result" >&2;}
8599 +    ac_header_preproc=yes
8600 +    ;;
8601 +  no:yes:* )
8602 +    { $as_echo "$as_me:$LINENO: WARNING: fftw.h: present but cannot be compiled" >&5
8603 + $as_echo "$as_me: WARNING: fftw.h: present but cannot be compiled" >&2;}
8604 +    { $as_echo "$as_me:$LINENO: WARNING: fftw.h:     check for missing prerequisite headers?" >&5
8605 + $as_echo "$as_me: WARNING: fftw.h:     check for missing prerequisite headers?" >&2;}
8606 +    { $as_echo "$as_me:$LINENO: WARNING: fftw.h: see the Autoconf documentation" >&5
8607 + $as_echo "$as_me: WARNING: fftw.h: see the Autoconf documentation" >&2;}
8608 +    { $as_echo "$as_me:$LINENO: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&5
8609 + $as_echo "$as_me: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8610 +    { $as_echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5
8611 + $as_echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;}
8612 +    { $as_echo "$as_me:$LINENO: WARNING: fftw.h: in the future, the compiler will take precedence" >&5
8613 + $as_echo "$as_me: WARNING: fftw.h: in the future, the compiler will take precedence" >&2;}
8614 +    ( cat <<\_ASBOX
8615 + ## ------------------------------ ##
8616 + ## Report this to gezelter@nd.edu ##
8617 + ## ------------------------------ ##
8618 + _ASBOX
8619 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
8620 +    ;;
8621 + esac
8622 + { $as_echo "$as_me:$LINENO: checking for fftw.h" >&5
8623 + $as_echo_n "checking for fftw.h... " >&6; }
8624 + if test "${ac_cv_header_fftw_h+set}" = set; then
8625 +  $as_echo_n "(cached) " >&6
8626 + else
8627 +  ac_cv_header_fftw_h=$ac_header_preproc
8628   fi
8629 + { $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
8630 + $as_echo "$ac_cv_header_fftw_h" >&6; }
8631  
8632 + fi
8633 + if test $ac_cv_header_fftw_h = yes; then
8634 +  fftw_cv_fftw_h=yes
8635 + else
8636 +  fftw_cv_fftw_h=no
8637 + fi
8638  
8639  
8640 < { echo "$as_me:$LINENO: checking for working memcmp" >&5
8641 < echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
8642 < if test "${ac_cv_func_memcmp_working+set}" = set; then
8643 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8640 >        if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
8641 >          { $as_echo "$as_me:$LINENO: checking for fftwnd_one in -ldfftw" >&5
8642 > $as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; }
8643 > if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then
8644 >  $as_echo_n "(cached) " >&6
8645   else
8646 <  if test "$cross_compiling" = yes; then
8647 <  ac_cv_func_memcmp_working=no
8648 < else
9064 <  cat >conftest.$ac_ext <<_ACEOF
8646 >  ac_check_lib_save_LIBS=$LIBS
8647 > LIBS="-ldfftw  $LIBS"
8648 > cat >conftest.$ac_ext <<_ACEOF
8649   /* confdefs.h.  */
8650   _ACEOF
8651   cat confdefs.h >>conftest.$ac_ext
8652   cat >>conftest.$ac_ext <<_ACEOF
8653   /* end confdefs.h.  */
8654 < $ac_includes_default
8654 >
8655 > /* Override any GCC internal prototype to avoid an error.
8656 >   Use char because int might match the return type of a GCC
8657 >   builtin and then its argument prototype would still apply.  */
8658 > #ifdef __cplusplus
8659 > extern "C"
8660 > #endif
8661 > char fftwnd_one ();
8662   #ifdef FC_DUMMY_MAIN
8663   #ifndef FC_DUMMY_MAIN_EQ_F77
8664   #  ifdef __cplusplus
# Line 9079 | Line 8670 | main ()
8670   int
8671   main ()
8672   {
8673 <
9083 <  /* Some versions of memcmp are not 8-bit clean.  */
9084 <  char c0 = '\100', c1 = '\200', c2 = '\201';
9085 <  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9086 <    return 1;
9087 <
9088 <  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9089 <     or more and with at least one buffer not starting on a 4-byte boundary.
9090 <     William Lewis provided this test program.   */
9091 <  {
9092 <    char foo[21];
9093 <    char bar[21];
9094 <    int i;
9095 <    for (i = 0; i < 4; i++)
9096 <      {
9097 <        char *a = foo + i;
9098 <        char *b = bar + i;
9099 <        strcpy (a, "--------01111111");
9100 <        strcpy (b, "--------10000000");
9101 <        if (memcmp (a, b, 16) >= 0)
9102 <          return 1;
9103 <      }
9104 <    return 0;
9105 <  }
9106 <
8673 > return fftwnd_one ();
8674    ;
8675    return 0;
8676   }
8677   _ACEOF
8678 < rm -rf conftest$ac_exeext
8678 > rm -f conftest.$ac_objext conftest$ac_exeext
8679   if { (ac_try="$ac_link"
8680   case "(($ac_try" in
8681    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682    *) ac_try_echo=$ac_try;;
8683   esac
8684 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8685 <  (eval "$ac_link") 2>&5
8684 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8685 > $as_echo "$ac_try_echo") >&5
8686 >  (eval "$ac_link") 2>conftest.er1
8687    ac_status=$?
8688 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8690 <  { (case "(($ac_try" in
8691 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 <  *) ac_try_echo=$ac_try;;
8693 < esac
8694 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695 <  (eval "$ac_try") 2>&5
8696 <  ac_status=$?
8697 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 <  (exit $ac_status); }; }; then
8699 <  ac_cv_func_memcmp_working=yes
8688 >  grep -v '^ *+' conftest.er1 >conftest.err
8689 >  rm -f conftest.er1
8690 >  cat conftest.err >&5
8691 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 >  (exit $ac_status); } && {
8693 >         test -z "$ac_c_werror_flag" ||
8694 >         test ! -s conftest.err
8695 >       } && test -s conftest$ac_exeext && {
8696 >         test "$cross_compiling" = yes ||
8697 >         $as_test_x conftest$ac_exeext
8698 >       }; then
8699 >  ac_cv_lib_dfftw_fftwnd_one=yes
8700   else
8701 <  echo "$as_me: program exited with status $ac_status" >&5
9134 < echo "$as_me: failed program was:" >&5
8701 >  $as_echo "$as_me: failed program was:" >&5
8702   sed 's/^/| /' conftest.$ac_ext >&5
8703  
8704 < ( exit $ac_status )
9138 < ac_cv_func_memcmp_working=no
8704 >        ac_cv_lib_dfftw_fftwnd_one=no
8705   fi
9140 rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9141 fi
8706  
8707 <
8707 > rm -rf conftest.dSYM
8708 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8709 >      conftest$ac_exeext conftest.$ac_ext
8710 > LIBS=$ac_check_lib_save_LIBS
8711   fi
8712 < { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8713 < echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
8714 < test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8715 <  *" memcmp.$ac_objext "* ) ;;
8716 <  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8717 < ;;
8718 < esac
8712 > { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
8713 > $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
8714 > if test $ac_cv_lib_dfftw_fftwnd_one = yes; then
8715 >  fftw_cv_libdfftw=yes
8716 > else
8717 >  fftw_cv_libdfftw=no
8718 > fi
8719  
8720 <
8721 <
8722 < for ac_header in stdlib.h
8723 < do
8724 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9158 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9159 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9160 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9161 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9162 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8720 >          if test "${ac_cv_header_dfftw_h+set}" = set; then
8721 >  { $as_echo "$as_me:$LINENO: checking for dfftw.h" >&5
8722 > $as_echo_n "checking for dfftw.h... " >&6; }
8723 > if test "${ac_cv_header_dfftw_h+set}" = set; then
8724 >  $as_echo_n "(cached) " >&6
8725   fi
8726 < ac_res=`eval echo '${'$as_ac_Header'}'`
8727 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
9166 < echo "${ECHO_T}$ac_res" >&6; }
8726 > { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5
8727 > $as_echo "$ac_cv_header_dfftw_h" >&6; }
8728   else
8729    # Is the header compilable?
8730 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8731 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8730 > { $as_echo "$as_me:$LINENO: checking dfftw.h usability" >&5
8731 > $as_echo_n "checking dfftw.h usability... " >&6; }
8732   cat >conftest.$ac_ext <<_ACEOF
8733   /* confdefs.h.  */
8734   _ACEOF
# Line 9175 | Line 8736 | $ac_includes_default
8736   cat >>conftest.$ac_ext <<_ACEOF
8737   /* end confdefs.h.  */
8738   $ac_includes_default
8739 < #include <$ac_header>
8739 > #include <dfftw.h>
8740   _ACEOF
8741 < rm -rf conftest.$ac_objext
8741 > rm -f conftest.$ac_objext
8742   if { (ac_try="$ac_compile"
8743   case "(($ac_try" in
8744    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745    *) ac_try_echo=$ac_try;;
8746   esac
8747 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8748 > $as_echo "$ac_try_echo") >&5
8749    (eval "$ac_compile") 2>conftest.er1
8750    ac_status=$?
8751    grep -v '^ *+' conftest.er1 >conftest.err
8752    rm -f conftest.er1
8753    cat conftest.err >&5
8754 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755    (exit $ac_status); } && {
8756           test -z "$ac_c_werror_flag" ||
8757           test ! -s conftest.err
8758         } && test -s conftest.$ac_objext; then
8759    ac_header_compiler=yes
8760   else
8761 <  echo "$as_me: failed program was:" >&5
8761 >  $as_echo "$as_me: failed program was:" >&5
8762   sed 's/^/| /' conftest.$ac_ext >&5
8763  
8764          ac_header_compiler=no
8765   fi
8766  
8767 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8768 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8769 < echo "${ECHO_T}$ac_header_compiler" >&6; }
8767 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768 > { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8769 > $as_echo "$ac_header_compiler" >&6; }
8770  
8771   # Is the header present?
8772 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8773 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8772 > { $as_echo "$as_me:$LINENO: checking dfftw.h presence" >&5
8773 > $as_echo_n "checking dfftw.h presence... " >&6; }
8774   cat >conftest.$ac_ext <<_ACEOF
8775   /* confdefs.h.  */
8776   _ACEOF
8777   cat confdefs.h >>conftest.$ac_ext
8778   cat >>conftest.$ac_ext <<_ACEOF
8779   /* end confdefs.h.  */
8780 < #include <$ac_header>
8780 > #include <dfftw.h>
8781   _ACEOF
8782   if { (ac_try="$ac_cpp conftest.$ac_ext"
8783   case "(($ac_try" in
8784    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785    *) ac_try_echo=$ac_try;;
8786   esac
8787 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8788 > $as_echo "$ac_try_echo") >&5
8789    (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8790    ac_status=$?
8791    grep -v '^ *+' conftest.er1 >conftest.err
8792    rm -f conftest.er1
8793    cat conftest.err >&5
8794 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795    (exit $ac_status); } >/dev/null && {
8796           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8797           test ! -s conftest.err
8798         }; then
8799    ac_header_preproc=yes
8800   else
8801 <  echo "$as_me: failed program was:" >&5
8801 >  $as_echo "$as_me: failed program was:" >&5
8802   sed 's/^/| /' conftest.$ac_ext >&5
8803  
8804    ac_header_preproc=no
8805   fi
8806  
8807 < rm -rf conftest.err conftest.$ac_ext
8808 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8809 < echo "${ECHO_T}$ac_header_preproc" >&6; }
8807 > rm -f conftest.err conftest.$ac_ext
8808 > { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8809 > $as_echo "$ac_header_preproc" >&6; }
8810  
8811   # So?  What about this header?
8812   case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8813    yes:no: )
8814 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8815 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8816 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8817 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8814 >    { $as_echo "$as_me:$LINENO: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
8815 > $as_echo "$as_me: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8816 >    { $as_echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the compiler's result" >&5
8817 > $as_echo "$as_me: WARNING: dfftw.h: proceeding with the compiler's result" >&2;}
8818      ac_header_preproc=yes
8819      ;;
8820    no:yes:* )
8821 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8822 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8823 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8824 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8825 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8826 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8827 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8828 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8829 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8830 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8831 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8832 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8821 >    { $as_echo "$as_me:$LINENO: WARNING: dfftw.h: present but cannot be compiled" >&5
8822 > $as_echo "$as_me: WARNING: dfftw.h: present but cannot be compiled" >&2;}
8823 >    { $as_echo "$as_me:$LINENO: WARNING: dfftw.h:     check for missing prerequisite headers?" >&5
8824 > $as_echo "$as_me: WARNING: dfftw.h:     check for missing prerequisite headers?" >&2;}
8825 >    { $as_echo "$as_me:$LINENO: WARNING: dfftw.h: see the Autoconf documentation" >&5
8826 > $as_echo "$as_me: WARNING: dfftw.h: see the Autoconf documentation" >&2;}
8827 >    { $as_echo "$as_me:$LINENO: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&5
8828 > $as_echo "$as_me: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8829 >    { $as_echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the preprocessor's result" >&5
8830 > $as_echo "$as_me: WARNING: dfftw.h: proceeding with the preprocessor's result" >&2;}
8831 >    { $as_echo "$as_me:$LINENO: WARNING: dfftw.h: in the future, the compiler will take precedence" >&5
8832 > $as_echo "$as_me: WARNING: dfftw.h: in the future, the compiler will take precedence" >&2;}
8833      ( cat <<\_ASBOX
8834   ## ------------------------------ ##
8835   ## Report this to gezelter@nd.edu ##
# Line 9275 | Line 8838 | esac
8838       ) | sed "s/^/$as_me: WARNING:     /" >&2
8839      ;;
8840   esac
8841 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
8842 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8843 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8844 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8841 > { $as_echo "$as_me:$LINENO: checking for dfftw.h" >&5
8842 > $as_echo_n "checking for dfftw.h... " >&6; }
8843 > if test "${ac_cv_header_dfftw_h+set}" = set; then
8844 >  $as_echo_n "(cached) " >&6
8845   else
8846 <  eval "$as_ac_Header=\$ac_header_preproc"
8846 >  ac_cv_header_dfftw_h=$ac_header_preproc
8847   fi
8848 < ac_res=`eval echo '${'$as_ac_Header'}'`
8849 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
9287 < echo "${ECHO_T}$ac_res" >&6; }
8848 > { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5
8849 > $as_echo "$ac_cv_header_dfftw_h" >&6; }
8850  
8851   fi
8852 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
8853 <  cat >>confdefs.h <<_ACEOF
9292 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9293 < _ACEOF
9294 <
9295 < fi
9296 <
9297 < done
9298 <
9299 < { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
9300 < echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
9301 < if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
9302 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8852 > if test $ac_cv_header_dfftw_h = yes; then
8853 >  fftw_cv_dfftw_h=yes
8854   else
8855 <  if test "$cross_compiling" = yes; then
9305 <  ac_cv_func_realloc_0_nonnull=no
9306 < else
9307 <  cat >conftest.$ac_ext <<_ACEOF
9308 < /* confdefs.h.  */
9309 < _ACEOF
9310 < cat confdefs.h >>conftest.$ac_ext
9311 < cat >>conftest.$ac_ext <<_ACEOF
9312 < /* end confdefs.h.  */
9313 < #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9314 < # include <stdlib.h>
9315 < #else
9316 < char *realloc ();
9317 < #endif
9318 <
9319 < #ifdef FC_DUMMY_MAIN
9320 < #ifndef FC_DUMMY_MAIN_EQ_F77
9321 < #  ifdef __cplusplus
9322 <     extern "C"
9323 < #  endif
9324 <   int FC_DUMMY_MAIN() { return 1; }
9325 < #endif
9326 < #endif
9327 < int
9328 < main ()
9329 < {
9330 < return ! realloc (0, 0);
9331 <  ;
9332 <  return 0;
9333 < }
9334 < _ACEOF
9335 < rm -rf conftest$ac_exeext
9336 < if { (ac_try="$ac_link"
9337 < case "(($ac_try" in
9338 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339 <  *) ac_try_echo=$ac_try;;
9340 < esac
9341 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342 <  (eval "$ac_link") 2>&5
9343 <  ac_status=$?
9344 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9346 <  { (case "(($ac_try" in
9347 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348 <  *) ac_try_echo=$ac_try;;
9349 < esac
9350 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351 <  (eval "$ac_try") 2>&5
9352 <  ac_status=$?
9353 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 <  (exit $ac_status); }; }; then
9355 <  ac_cv_func_realloc_0_nonnull=yes
9356 < else
9357 <  echo "$as_me: program exited with status $ac_status" >&5
9358 < echo "$as_me: failed program was:" >&5
9359 < sed 's/^/| /' conftest.$ac_ext >&5
9360 <
9361 < ( exit $ac_status )
9362 < ac_cv_func_realloc_0_nonnull=no
8855 >  fftw_cv_dfftw_h=no
8856   fi
9364 rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9365 fi
8857  
8858  
8859 < fi
8860 < { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
8861 < echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
8862 < if test $ac_cv_func_realloc_0_nonnull = yes; then
8859 >        fi
8860 >      fi
8861 >      ac_ext=c
8862 > ac_cpp='$CPP $CPPFLAGS'
8863 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8864 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8865 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
8866  
8867 +      if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"; then
8868 +
8869   cat >>confdefs.h <<\_ACEOF
8870 < #define HAVE_REALLOC 1
8870 > #define HAVE_FFTW3_H 1
8871   _ACEOF
8872  
8873 < else
8874 <  cat >>confdefs.h <<\_ACEOF
8875 < #define HAVE_REALLOC 0
8873 >        FFTW_INC_DIR="${FFTW_HOME}/include"
8874 >        FFTW_LIB_DIR="${FFTW_HOME}/lib"
8875 >        FFTW_LIBS="-lfftw3"
8876 >      else
8877 >        if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"; then
8878 >
8879 > cat >>confdefs.h <<\_ACEOF
8880 > #define HAVE_FFTW_H 1
8881   _ACEOF
8882  
8883 <   case " $LIBOBJS " in
8884 <  *" realloc.$ac_objext "* ) ;;
8885 <  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
8886 < ;;
8887 < esac
8883 >          FFTW_INC_DIR="${FFTW_HOME}/include"
8884 >          FFTW_LIB_DIR="${FFTW_HOME}/lib"
8885 >          FFTW_LIBS="-lfftw"
8886 >        else
8887 >          if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"; then
8888  
9388
8889   cat >>confdefs.h <<\_ACEOF
8890 < #define realloc rpl_realloc
8890 > #define HAVE_DFFTW_H 1
8891   _ACEOF
8892  
8893 +            FFTW_INC_DIR="${FFTW_HOME}/include"
8894 +            FFTW_LIB_DIR="${FFTW_HOME}/lib"
8895 +            FFTW_LIBS="-ldfftw"
8896 +          else
8897 +            { $as_echo "$as_me:$LINENO: checking fftw in ${FFTW_HOME}" >&5
8898 + $as_echo_n "checking fftw in ${FFTW_HOME}... " >&6; }
8899 +            FFTW_INC_DIR=
8900 +            FFTW_LIB_DIR=
8901 +            FFTW_LIBS=
8902 +            LDFLAGS="$FFTW_OLD_LDFLAGS"
8903 +            CFLAGS="$FFTW_OLD_CFLAGS"
8904 +            { $as_echo "$as_me:$LINENO: result: failed" >&5
8905 + $as_echo "failed" >&6; }
8906 +            echo ""
8907 +            echo "*********************************************************"
8908 +            echo "* WARNING: Could not find a working FFTW installation   *"
8909 +            echo "* If you need the staticProps program to be able to     *"
8910 +            echo "* compute undulation spectra, be sure to specify a      *"
8911 +            echo "* valid fftw installation with --with-fftw=DIR          *"
8912 +            echo "*                                                       *"
8913 +            echo "* OOPSE will still work without fftw installed.         *"
8914 +            echo "*********************************************************"
8915 +            echo ""
8916 +          fi
8917 +        fi
8918 +      fi
8919 +
8920 +
8921 +
8922 +    fi
8923 +  fi
8924   fi
8925  
8926 + #
8927 + # Handle user hints
8928 + #
8929  
8930 + # Check whether --with-qhull was given.
8931 + if test "${with_qhull+set}" = set; then
8932 +  withval=$with_qhull; qhull_dir="$withval"
8933 + else
8934 +                qhull_dir="not_set"
8935 + fi
8936  
8937 + if test "$qhull_dir" != "no"; then
8938  
8939 + if test "$qhull_dir" != "not_set" ; then
8940 +  if test -d "$qhull_dir"
8941 +  then
8942 +    QHULL_HOME="$qhull_dir"
8943 +  else
8944 +    { $as_echo "$as_me:$LINENO: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5
8945 + $as_echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;}
8946 +        QHULL_HOME=/usr/local
8947 +        if test ! -f "${QHULL_HOME}/include/qhull/qhull.h"
8948 +        then
8949 +                QHULL_HOME=/usr
8950 +        fi
8951 +  fi
8952 + fi
8953 + #
8954 + # Locate qhull, if wanted
8955 + #
8956 + if test -n "${QHULL_HOME}"
8957 + then
8958  
8959 < for ac_header in sys/select.h sys/socket.h
8960 < do
8961 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8962 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8963 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8964 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8965 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8966 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8959 >        ac_ext=c
8960 > ac_cpp='$CPP $CPPFLAGS'
8961 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8962 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8963 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
8964 >
8965 >        QHULL_OLD_LDFLAGS=$LDFLAGS
8966 >        QHULL_OLD_CFLAGS=$CFLAGS
8967 >        QHULL_OLD_CPPFLAGS=$CPPFLAGS
8968 >        LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
8969 >        CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
8970 >        CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include"
8971 >        if test "${ac_cv_header_qhull_qhull_h+set}" = set; then
8972 >  { $as_echo "$as_me:$LINENO: checking for qhull/qhull.h" >&5
8973 > $as_echo_n "checking for qhull/qhull.h... " >&6; }
8974 > if test "${ac_cv_header_qhull_qhull_h+set}" = set; then
8975 >  $as_echo_n "(cached) " >&6
8976   fi
8977 < ac_res=`eval echo '${'$as_ac_Header'}'`
8978 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
9410 < echo "${ECHO_T}$ac_res" >&6; }
8977 > { $as_echo "$as_me:$LINENO: result: $ac_cv_header_qhull_qhull_h" >&5
8978 > $as_echo "$ac_cv_header_qhull_qhull_h" >&6; }
8979   else
8980    # Is the header compilable?
8981 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8982 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8981 > { $as_echo "$as_me:$LINENO: checking qhull/qhull.h usability" >&5
8982 > $as_echo_n "checking qhull/qhull.h usability... " >&6; }
8983   cat >conftest.$ac_ext <<_ACEOF
8984   /* confdefs.h.  */
8985   _ACEOF
# Line 9419 | Line 8987 | $ac_includes_default
8987   cat >>conftest.$ac_ext <<_ACEOF
8988   /* end confdefs.h.  */
8989   $ac_includes_default
8990 < #include <$ac_header>
8990 > #include <qhull/qhull.h>
8991   _ACEOF
8992 < rm -rf conftest.$ac_objext
8992 > rm -f conftest.$ac_objext
8993   if { (ac_try="$ac_compile"
8994   case "(($ac_try" in
8995    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996    *) ac_try_echo=$ac_try;;
8997   esac
8998 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8998 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8999 > $as_echo "$ac_try_echo") >&5
9000    (eval "$ac_compile") 2>conftest.er1
9001    ac_status=$?
9002    grep -v '^ *+' conftest.er1 >conftest.err
9003    rm -f conftest.er1
9004    cat conftest.err >&5
9005 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006    (exit $ac_status); } && {
9007           test -z "$ac_c_werror_flag" ||
9008           test ! -s conftest.err
9009         } && test -s conftest.$ac_objext; then
9010    ac_header_compiler=yes
9011   else
9012 <  echo "$as_me: failed program was:" >&5
9012 >  $as_echo "$as_me: failed program was:" >&5
9013   sed 's/^/| /' conftest.$ac_ext >&5
9014  
9015          ac_header_compiler=no
9016   fi
9017  
9018 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
9019 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9020 < echo "${ECHO_T}$ac_header_compiler" >&6; }
9018 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019 > { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9020 > $as_echo "$ac_header_compiler" >&6; }
9021  
9022   # Is the header present?
9023 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9024 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9023 > { $as_echo "$as_me:$LINENO: checking qhull/qhull.h presence" >&5
9024 > $as_echo_n "checking qhull/qhull.h presence... " >&6; }
9025   cat >conftest.$ac_ext <<_ACEOF
9026   /* confdefs.h.  */
9027   _ACEOF
9028   cat confdefs.h >>conftest.$ac_ext
9029   cat >>conftest.$ac_ext <<_ACEOF
9030   /* end confdefs.h.  */
9031 < #include <$ac_header>
9031 > #include <qhull/qhull.h>
9032   _ACEOF
9033   if { (ac_try="$ac_cpp conftest.$ac_ext"
9034   case "(($ac_try" in
9035    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036    *) ac_try_echo=$ac_try;;
9037   esac
9038 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9038 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9039 > $as_echo "$ac_try_echo") >&5
9040    (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9041    ac_status=$?
9042    grep -v '^ *+' conftest.er1 >conftest.err
9043    rm -f conftest.er1
9044    cat conftest.err >&5
9045 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046    (exit $ac_status); } >/dev/null && {
9047           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9048           test ! -s conftest.err
9049         }; then
9050    ac_header_preproc=yes
9051   else
9052 <  echo "$as_me: failed program was:" >&5
9052 >  $as_echo "$as_me: failed program was:" >&5
9053   sed 's/^/| /' conftest.$ac_ext >&5
9054  
9055    ac_header_preproc=no
9056   fi
9057  
9058 < rm -rf conftest.err conftest.$ac_ext
9059 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9060 < echo "${ECHO_T}$ac_header_preproc" >&6; }
9058 > rm -f conftest.err conftest.$ac_ext
9059 > { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9060 > $as_echo "$ac_header_preproc" >&6; }
9061  
9062   # So?  What about this header?
9063   case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9064    yes:no: )
9065 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9066 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9067 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9068 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9065 >    { $as_echo "$as_me:$LINENO: WARNING: qhull/qhull.h: accepted by the compiler, rejected by the preprocessor!" >&5
9066 > $as_echo "$as_me: WARNING: qhull/qhull.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9067 >    { $as_echo "$as_me:$LINENO: WARNING: qhull/qhull.h: proceeding with the compiler's result" >&5
9068 > $as_echo "$as_me: WARNING: qhull/qhull.h: proceeding with the compiler's result" >&2;}
9069      ac_header_preproc=yes
9070      ;;
9071    no:yes:* )
9072 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9073 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9074 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9075 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9076 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9077 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9078 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9079 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9080 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9081 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9082 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9083 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9072 >    { $as_echo "$as_me:$LINENO: WARNING: qhull/qhull.h: present but cannot be compiled" >&5
9073 > $as_echo "$as_me: WARNING: qhull/qhull.h: present but cannot be compiled" >&2;}
9074 >    { $as_echo "$as_me:$LINENO: WARNING: qhull/qhull.h:     check for missing prerequisite headers?" >&5
9075 > $as_echo "$as_me: WARNING: qhull/qhull.h:     check for missing prerequisite headers?" >&2;}
9076 >    { $as_echo "$as_me:$LINENO: WARNING: qhull/qhull.h: see the Autoconf documentation" >&5
9077 > $as_echo "$as_me: WARNING: qhull/qhull.h: see the Autoconf documentation" >&2;}
9078 >    { $as_echo "$as_me:$LINENO: WARNING: qhull/qhull.h:     section \"Present But Cannot Be Compiled\"" >&5
9079 > $as_echo "$as_me: WARNING: qhull/qhull.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9080 >    { $as_echo "$as_me:$LINENO: WARNING: qhull/qhull.h: proceeding with the preprocessor's result" >&5
9081 > $as_echo "$as_me: WARNING: qhull/qhull.h: proceeding with the preprocessor's result" >&2;}
9082 >    { $as_echo "$as_me:$LINENO: WARNING: qhull/qhull.h: in the future, the compiler will take precedence" >&5
9083 > $as_echo "$as_me: WARNING: qhull/qhull.h: in the future, the compiler will take precedence" >&2;}
9084      ( cat <<\_ASBOX
9085   ## ------------------------------ ##
9086   ## Report this to gezelter@nd.edu ##
# Line 9519 | Line 9089 | esac
9089       ) | sed "s/^/$as_me: WARNING:     /" >&2
9090      ;;
9091   esac
9092 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
9093 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9094 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9095 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9096 < else
9097 <  eval "$as_ac_Header=\$ac_header_preproc"
9528 < fi
9529 < ac_res=`eval echo '${'$as_ac_Header'}'`
9530 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
9531 < echo "${ECHO_T}$ac_res" >&6; }
9532 <
9092 > { $as_echo "$as_me:$LINENO: checking for qhull/qhull.h" >&5
9093 > $as_echo_n "checking for qhull/qhull.h... " >&6; }
9094 > if test "${ac_cv_header_qhull_qhull_h+set}" = set; then
9095 >  $as_echo_n "(cached) " >&6
9096 > else
9097 >  ac_cv_header_qhull_qhull_h=$ac_header_preproc
9098   fi
9099 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
9100 <  cat >>confdefs.h <<_ACEOF
9536 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9537 < _ACEOF
9099 > { $as_echo "$as_me:$LINENO: result: $ac_cv_header_qhull_qhull_h" >&5
9100 > $as_echo "$ac_cv_header_qhull_qhull_h" >&6; }
9101  
9102   fi
9103 + if test $ac_cv_header_qhull_qhull_h = yes; then
9104 +  qhull_cv_qhull_h=yes
9105 + else
9106 +  qhull_cv_qhull_h=no
9107 + fi
9108  
9541 done
9109  
9110 < { echo "$as_me:$LINENO: checking types of arguments for select" >&5
9111 < echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
9112 < if test "${ac_cv_func_select_args+set}" = set; then
9113 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9110 >        { $as_echo "$as_me:$LINENO: checking for qh_qhull in -lqhull" >&5
9111 > $as_echo_n "checking for qh_qhull in -lqhull... " >&6; }
9112 > if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then
9113 >  $as_echo_n "(cached) " >&6
9114   else
9115 <  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9116 < for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9117 <  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9551 <   cat >conftest.$ac_ext <<_ACEOF
9115 >  ac_check_lib_save_LIBS=$LIBS
9116 > LIBS="-lqhull  $LIBS"
9117 > cat >conftest.$ac_ext <<_ACEOF
9118   /* confdefs.h.  */
9119   _ACEOF
9120   cat confdefs.h >>conftest.$ac_ext
9121   cat >>conftest.$ac_ext <<_ACEOF
9122   /* end confdefs.h.  */
9557 $ac_includes_default
9558 #ifdef HAVE_SYS_SELECT_H
9559 # include <sys/select.h>
9560 #endif
9561 #ifdef HAVE_SYS_SOCKET_H
9562 # include <sys/socket.h>
9563 #endif
9123  
9124 + /* Override any GCC internal prototype to avoid an error.
9125 +   Use char because int might match the return type of a GCC
9126 +   builtin and then its argument prototype would still apply.  */
9127 + #ifdef __cplusplus
9128 + extern "C"
9129 + #endif
9130 + char qh_qhull ();
9131   #ifdef FC_DUMMY_MAIN
9132   #ifndef FC_DUMMY_MAIN_EQ_F77
9133   #  ifdef __cplusplus
# Line 9573 | Line 9139 | main ()
9139   int
9140   main ()
9141   {
9142 < extern int select ($ac_arg1,
9577 <                                            $ac_arg234, $ac_arg234, $ac_arg234,
9578 <                                            $ac_arg5);
9142 > return qh_qhull ();
9143    ;
9144    return 0;
9145   }
9146   _ACEOF
9147 < rm -rf conftest.$ac_objext
9148 < if { (ac_try="$ac_compile"
9147 > rm -f conftest.$ac_objext conftest$ac_exeext
9148 > if { (ac_try="$ac_link"
9149   case "(($ac_try" in
9150    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151    *) ac_try_echo=$ac_try;;
9152   esac
9153 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154 <  (eval "$ac_compile") 2>conftest.er1
9153 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9154 > $as_echo "$ac_try_echo") >&5
9155 >  (eval "$ac_link") 2>conftest.er1
9156    ac_status=$?
9157    grep -v '^ *+' conftest.er1 >conftest.err
9158    rm -f conftest.er1
9159    cat conftest.err >&5
9160 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161    (exit $ac_status); } && {
9162           test -z "$ac_c_werror_flag" ||
9163           test ! -s conftest.err
9164 <       } && test -s conftest.$ac_objext; then
9165 <  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9164 >       } && test -s conftest$ac_exeext && {
9165 >         test "$cross_compiling" = yes ||
9166 >         $as_test_x conftest$ac_exeext
9167 >       }; then
9168 >  ac_cv_lib_qhull_qh_qhull=yes
9169   else
9170 <  echo "$as_me: failed program was:" >&5
9170 >  $as_echo "$as_me: failed program was:" >&5
9171   sed 's/^/| /' conftest.$ac_ext >&5
9172  
9173 +        ac_cv_lib_qhull_qh_qhull=no
9174 + fi
9175  
9176 + rm -rf conftest.dSYM
9177 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9178 +      conftest$ac_exeext conftest.$ac_ext
9179 + LIBS=$ac_check_lib_save_LIBS
9180   fi
9181 + { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_qhull_qh_qhull" >&5
9182 + $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
9183 + if test $ac_cv_lib_qhull_qh_qhull = yes; then
9184 +  qhull_cv_libqhull=yes
9185 + else
9186 +  qhull_cv_libqhull=no
9187 + fi
9188  
9189 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
9190 <  done
9191 < done
9192 < done
9193 < # Provide a safe default value.
9194 < : ${ac_cv_func_select_args='int,int *,struct timeval *'}
9189 >        LDFLAGS="$QHULL_OLD_LDFLAGS"
9190 >        CFLAGS="$QHULL_OLD_CFLAGS"
9191 >        CPPFLAGS="$QHULL_OLD_CPPFLAGS"
9192 >        ac_ext=c
9193 > ac_cpp='$CPP $CPPFLAGS'
9194 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9195 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9196 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
9197  
9615 fi
9616 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
9617 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
9618 ac_save_IFS=$IFS; IFS=','
9619 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9620 IFS=$ac_save_IFS
9621 shift
9198  
9199 < cat >>confdefs.h <<_ACEOF
9200 < #define SELECT_TYPE_ARG1 $1
9199 >        if test "$qhull_cv_libqhull" = "yes" -a "$qhull_cv_qhull_h" = "yes"; then
9200 >
9201 > cat >>confdefs.h <<\_ACEOF
9202 > #define HAVE_QHULL_H 1
9203   _ACEOF
9204  
9205  
9206 < cat >>confdefs.h <<_ACEOF
9207 < #define SELECT_TYPE_ARG234 ($2)
9206 > cat >>confdefs.h <<\_ACEOF
9207 > #define HAVE_QHULL 1
9208   _ACEOF
9209  
9210 +                USE_QHULL=yes
9211 +                QHULL_INC_DIR="${QHULL_HOME}/include"
9212 +                QHULL_LIB_DIR="${QHULL_HOME}/lib"
9213 +                QHULL="-lqhull"
9214 +        else
9215 +                { $as_echo "$as_me:$LINENO: checking qhull in ${QHULL_HOME}" >&5
9216 + $as_echo_n "checking qhull in ${QHULL_HOME}... " >&6; }
9217 +                QHULL_INC_DIR=
9218 +                QHULL_LIB_DIR=
9219 +                QHULL=
9220 +                USE_QHULL=no
9221 +                { $as_echo "$as_me:$LINENO: result: failed" >&5
9222 + $as_echo "failed" >&6; }
9223 +                echo ""
9224 +                echo "*********************************************************"
9225 +                echo "* WARNING: Could not find a working qhull installation  *"
9226 +                echo "* If you need OOPSE to be able to deal with convex      *"
9227 +                echo "* hulls be sure to specify a valid qhull installation   *"
9228 +                echo "* with --with-qhull=DIR                                 *"
9229 +                echo "*                                                       *"
9230 +                echo "* OOPSE will still work without qhull installed.        *"
9231 +                echo "*********************************************************"
9232 +                echo ""
9233 +        fi
9234  
9633 cat >>confdefs.h <<_ACEOF
9634 #define SELECT_TYPE_ARG5 ($3)
9635 _ACEOF
9235  
9637 rm -rf conftest*
9236  
9237  
9238 < for ac_func in strftime
9239 < do
9240 < as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9241 < { echo "$as_me:$LINENO: checking for $ac_func" >&5
9242 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9243 < if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9244 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9238 > fi
9239 > fi
9240 >
9241 >
9242 > ac_ext=cpp
9243 > ac_cpp='$CXXCPP $CPPFLAGS'
9244 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9245 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9246 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9247 > { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
9248 > $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9249 > if test -z "$CXXCPP"; then
9250 >  if test "${ac_cv_prog_CXXCPP+set}" = set; then
9251 >  $as_echo_n "(cached) " >&6
9252   else
9253 +      # Double quotes because CXXCPP needs to be expanded
9254 +    for CXXCPP in "$CXX -E" "/lib/cpp"
9255 +    do
9256 +      ac_preproc_ok=false
9257 + for ac_cxx_preproc_warn_flag in '' yes
9258 + do
9259 +  # Use a header file that comes with gcc, so configuring glibc
9260 +  # with a fresh cross-compiler works.
9261 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9262 +  # <limits.h> exists even on freestanding compilers.
9263 +  # On the NeXT, cc -E runs the code through the compiler's parser,
9264 +  # not just through cpp. "Syntax error" is here to catch this case.
9265    cat >conftest.$ac_ext <<_ACEOF
9266   /* confdefs.h.  */
9267   _ACEOF
9268   cat confdefs.h >>conftest.$ac_ext
9269   cat >>conftest.$ac_ext <<_ACEOF
9270   /* end confdefs.h.  */
9654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9655   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9656 #define $ac_func innocuous_$ac_func
9657
9658 /* System header to define __stub macros and hopefully few prototypes,
9659    which can conflict with char $ac_func (); below.
9660    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9661    <limits.h> exists even on freestanding compilers.  */
9662
9271   #ifdef __STDC__
9272   # include <limits.h>
9273   #else
9274   # include <assert.h>
9275   #endif
9276 +                     Syntax error
9277 + _ACEOF
9278 + if { (ac_try="$ac_cpp conftest.$ac_ext"
9279 + case "(($ac_try" in
9280 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281 +  *) ac_try_echo=$ac_try;;
9282 + esac
9283 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9284 + $as_echo "$ac_try_echo") >&5
9285 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9286 +  ac_status=$?
9287 +  grep -v '^ *+' conftest.er1 >conftest.err
9288 +  rm -f conftest.er1
9289 +  cat conftest.err >&5
9290 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 +  (exit $ac_status); } >/dev/null && {
9292 +         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9293 +         test ! -s conftest.err
9294 +       }; then
9295 +  :
9296 + else
9297 +  $as_echo "$as_me: failed program was:" >&5
9298 + sed 's/^/| /' conftest.$ac_ext >&5
9299  
9300 < #undef $ac_func
9300 >  # Broken: fails on valid input.
9301 > continue
9302 > fi
9303  
9304 < /* Override any GCC internal prototype to avoid an error.
9305 <   Use char because int might match the return type of a GCC
9306 <   builtin and then its argument prototype would still apply.  */
9307 < #ifdef __cplusplus
9308 < extern "C"
9309 < #endif
9310 < char $ac_func ();
9311 < /* The GNU C library defines this for functions which it implements
9312 <    to always fail with ENOSYS.  Some functions are actually named
9313 <    something starting with __ and the normal name is an alias.  */
9314 < #if defined __stub_$ac_func || defined __stub___$ac_func
9315 < choke me
9316 < #endif
9304 > rm -f conftest.err conftest.$ac_ext
9305 >
9306 >  # OK, works on sane cases.  Now check whether nonexistent headers
9307 >  # can be detected and how.
9308 >  cat >conftest.$ac_ext <<_ACEOF
9309 > /* confdefs.h.  */
9310 > _ACEOF
9311 > cat confdefs.h >>conftest.$ac_ext
9312 > cat >>conftest.$ac_ext <<_ACEOF
9313 > /* end confdefs.h.  */
9314 > #include <ac_nonexistent.h>
9315 > _ACEOF
9316 > if { (ac_try="$ac_cpp conftest.$ac_ext"
9317 > case "(($ac_try" in
9318 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9319 >  *) ac_try_echo=$ac_try;;
9320 > esac
9321 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9322 > $as_echo "$ac_try_echo") >&5
9323 >  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9324 >  ac_status=$?
9325 >  grep -v '^ *+' conftest.er1 >conftest.err
9326 >  rm -f conftest.er1
9327 >  cat conftest.err >&5
9328 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 >  (exit $ac_status); } >/dev/null && {
9330 >         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9331 >         test ! -s conftest.err
9332 >       }; then
9333 >  # Broken: success on invalid input.
9334 > continue
9335 > else
9336 >  $as_echo "$as_me: failed program was:" >&5
9337 > sed 's/^/| /' conftest.$ac_ext >&5
9338  
9339 < #ifdef FC_DUMMY_MAIN
9340 < #ifndef FC_DUMMY_MAIN_EQ_F77
9341 < #  ifdef __cplusplus
9342 <     extern "C"
9343 < #  endif
9344 <   int FC_DUMMY_MAIN() { return 1; }
9339 >  # Passes both tests.
9340 > ac_preproc_ok=:
9341 > break
9342 > fi
9343 >
9344 > rm -f conftest.err conftest.$ac_ext
9345 >
9346 > done
9347 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9348 > rm -f conftest.err conftest.$ac_ext
9349 > if $ac_preproc_ok; then
9350 >  break
9351 > fi
9352 >
9353 >    done
9354 >    ac_cv_prog_CXXCPP=$CXXCPP
9355 >
9356 > fi
9357 >  CXXCPP=$ac_cv_prog_CXXCPP
9358 > else
9359 >  ac_cv_prog_CXXCPP=$CXXCPP
9360 > fi
9361 > { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
9362 > $as_echo "$CXXCPP" >&6; }
9363 > ac_preproc_ok=false
9364 > for ac_cxx_preproc_warn_flag in '' yes
9365 > do
9366 >  # Use a header file that comes with gcc, so configuring glibc
9367 >  # with a fresh cross-compiler works.
9368 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9369 >  # <limits.h> exists even on freestanding compilers.
9370 >  # On the NeXT, cc -E runs the code through the compiler's parser,
9371 >  # not just through cpp. "Syntax error" is here to catch this case.
9372 >  cat >conftest.$ac_ext <<_ACEOF
9373 > /* confdefs.h.  */
9374 > _ACEOF
9375 > cat confdefs.h >>conftest.$ac_ext
9376 > cat >>conftest.$ac_ext <<_ACEOF
9377 > /* end confdefs.h.  */
9378 > #ifdef __STDC__
9379 > # include <limits.h>
9380 > #else
9381 > # include <assert.h>
9382   #endif
9383 < #endif
9384 < int
9385 < main ()
9386 < {
9387 < return $ac_func ();
9388 <  ;
9389 <  return 0;
9390 < }
9383 >                     Syntax error
9384 > _ACEOF
9385 > if { (ac_try="$ac_cpp conftest.$ac_ext"
9386 > case "(($ac_try" in
9387 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 >  *) ac_try_echo=$ac_try;;
9389 > esac
9390 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9391 > $as_echo "$ac_try_echo") >&5
9392 >  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9393 >  ac_status=$?
9394 >  grep -v '^ *+' conftest.er1 >conftest.err
9395 >  rm -f conftest.er1
9396 >  cat conftest.err >&5
9397 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 >  (exit $ac_status); } >/dev/null && {
9399 >         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9400 >         test ! -s conftest.err
9401 >       }; then
9402 >  :
9403 > else
9404 >  $as_echo "$as_me: failed program was:" >&5
9405 > sed 's/^/| /' conftest.$ac_ext >&5
9406 >
9407 >  # Broken: fails on valid input.
9408 > continue
9409 > fi
9410 >
9411 > rm -f conftest.err conftest.$ac_ext
9412 >
9413 >  # OK, works on sane cases.  Now check whether nonexistent headers
9414 >  # can be detected and how.
9415 >  cat >conftest.$ac_ext <<_ACEOF
9416 > /* confdefs.h.  */
9417 > _ACEOF
9418 > cat confdefs.h >>conftest.$ac_ext
9419 > cat >>conftest.$ac_ext <<_ACEOF
9420 > /* end confdefs.h.  */
9421 > #include <ac_nonexistent.h>
9422 > _ACEOF
9423 > if { (ac_try="$ac_cpp conftest.$ac_ext"
9424 > case "(($ac_try" in
9425 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 >  *) ac_try_echo=$ac_try;;
9427 > esac
9428 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9429 > $as_echo "$ac_try_echo") >&5
9430 >  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9431 >  ac_status=$?
9432 >  grep -v '^ *+' conftest.er1 >conftest.err
9433 >  rm -f conftest.er1
9434 >  cat conftest.err >&5
9435 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 >  (exit $ac_status); } >/dev/null && {
9437 >         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9438 >         test ! -s conftest.err
9439 >       }; then
9440 >  # Broken: success on invalid input.
9441 > continue
9442 > else
9443 >  $as_echo "$as_me: failed program was:" >&5
9444 > sed 's/^/| /' conftest.$ac_ext >&5
9445 >
9446 >  # Passes both tests.
9447 > ac_preproc_ok=:
9448 > break
9449 > fi
9450 >
9451 > rm -f conftest.err conftest.$ac_ext
9452 >
9453 > done
9454 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9455 > rm -f conftest.err conftest.$ac_ext
9456 > if $ac_preproc_ok; then
9457 >  :
9458 > else
9459 >  { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9460 > See \`config.log' for more details." >&5
9461 > $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9462 > See \`config.log' for more details." >&2;}
9463 >   { (exit 1); exit 1; }; }
9464 > fi
9465 >
9466 > ac_ext=cpp
9467 > ac_cpp='$CXXCPP $CPPFLAGS'
9468 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9469 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9470 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9471 >
9472 >
9473 > #
9474 > # Handle user hints
9475 > #
9476 >
9477 > # Check whether --with-openbabel was given.
9478 > if test "${with_openbabel+set}" = set; then
9479 >  withval=$with_openbabel; openbabel_dir="$withval"
9480 > else
9481 >                openbabel_dir="not_set"
9482 > fi
9483 >
9484 > if test "$openbabel_dir" != "no"; then
9485 >
9486 > if test "$openbabel_dir" != "not_set" ; then
9487 >  if test -d "$openbabel_dir"
9488 >  then
9489 >    OPENBABEL_HOME="$openbabel_dir"
9490 >  else
9491 >    { $as_echo "$as_me:$LINENO: WARNING: Sorry, $openbabel_dir does not exist, checking usual places" >&5
9492 > $as_echo "$as_me: WARNING: Sorry, $openbabel_dir does not exist, checking usual places" >&2;}
9493 >        OPENBABEL_HOME=/usr/local
9494 >        if test ! -f "${OPENBABEL_HOME}/include/openbabel-2.0/openbabel/babelconfig.h" -a -f "${OPENBABEL_HOME}/include/openbabel-2.0/openbabel/obconversion.h"
9495 >        then
9496 >                OPENBABEL_HOME=/usr
9497 >        fi
9498 >  fi
9499 > fi
9500 > #
9501 > # Locate openbabel, if wanted
9502 > #
9503 > if test -n "${OPENBABEL_HOME}"
9504 > then
9505 >
9506 >        ac_ext=cpp
9507 > ac_cpp='$CXXCPP $CPPFLAGS'
9508 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9509 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9510 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9511 >
9512 >        OPENBABEL_OLD_LDFLAGS=$LDFLAGS
9513 >        OPENBABEL_OLD_CPPFLAGS=$CPPFLAGS
9514 >        LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel"
9515 >        CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0"
9516 >        if test "${ac_cv_header_openbabel_babelconfig_h+set}" = set; then
9517 >  { $as_echo "$as_me:$LINENO: checking for openbabel/babelconfig.h" >&5
9518 > $as_echo_n "checking for openbabel/babelconfig.h... " >&6; }
9519 > if test "${ac_cv_header_openbabel_babelconfig_h+set}" = set; then
9520 >  $as_echo_n "(cached) " >&6
9521 > fi
9522 > { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_babelconfig_h" >&5
9523 > $as_echo "$ac_cv_header_openbabel_babelconfig_h" >&6; }
9524 > else
9525 >  # Is the header compilable?
9526 > { $as_echo "$as_me:$LINENO: checking openbabel/babelconfig.h usability" >&5
9527 > $as_echo_n "checking openbabel/babelconfig.h usability... " >&6; }
9528 > cat >conftest.$ac_ext <<_ACEOF
9529 > /* confdefs.h.  */
9530   _ACEOF
9531 < rm -rf conftest.$ac_objext conftest$ac_exeext
9532 < if { (ac_try="$ac_link"
9531 > cat confdefs.h >>conftest.$ac_ext
9532 > cat >>conftest.$ac_ext <<_ACEOF
9533 > /* end confdefs.h.  */
9534 > $ac_includes_default
9535 > #include <openbabel/babelconfig.h>
9536 > _ACEOF
9537 > rm -f conftest.$ac_objext
9538 > if { (ac_try="$ac_compile"
9539   case "(($ac_try" in
9540    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541    *) ac_try_echo=$ac_try;;
9542   esac
9543 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544 <  (eval "$ac_link") 2>conftest.er1
9543 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9544 > $as_echo "$ac_try_echo") >&5
9545 >  (eval "$ac_compile") 2>conftest.er1
9546    ac_status=$?
9547    grep -v '^ *+' conftest.er1 >conftest.err
9548    rm -f conftest.er1
9549    cat conftest.err >&5
9550 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551    (exit $ac_status); } && {
9552 <         test -z "$ac_c_werror_flag" ||
9552 >         test -z "$ac_cxx_werror_flag" ||
9553           test ! -s conftest.err
9554 <       } && test -s conftest$ac_exeext &&
9555 <       $as_test_x conftest$ac_exeext; then
9719 <  eval "$as_ac_var=yes"
9554 >       } && test -s conftest.$ac_objext; then
9555 >  ac_header_compiler=yes
9556   else
9557 <  echo "$as_me: failed program was:" >&5
9557 >  $as_echo "$as_me: failed program was:" >&5
9558   sed 's/^/| /' conftest.$ac_ext >&5
9559  
9560 <        eval "$as_ac_var=no"
9560 >        ac_header_compiler=no
9561   fi
9562  
9563 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9564 <      conftest$ac_exeext conftest.$ac_ext
9565 < fi
9730 < ac_res=`eval echo '${'$as_ac_var'}'`
9731 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
9732 < echo "${ECHO_T}$ac_res" >&6; }
9733 < if test `eval echo '${'$as_ac_var'}'` = yes; then
9734 <  cat >>confdefs.h <<_ACEOF
9735 < #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9736 < _ACEOF
9563 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564 > { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9565 > $as_echo "$ac_header_compiler" >&6; }
9566  
9567 < else
9568 <  # strftime is in -lintl on SCO UNIX.
9569 < { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9741 < echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
9742 < if test "${ac_cv_lib_intl_strftime+set}" = set; then
9743 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9744 < else
9745 <  ac_check_lib_save_LIBS=$LIBS
9746 < LIBS="-lintl  $LIBS"
9567 > # Is the header present?
9568 > { $as_echo "$as_me:$LINENO: checking openbabel/babelconfig.h presence" >&5
9569 > $as_echo_n "checking openbabel/babelconfig.h presence... " >&6; }
9570   cat >conftest.$ac_ext <<_ACEOF
9571   /* confdefs.h.  */
9572   _ACEOF
9573   cat confdefs.h >>conftest.$ac_ext
9574   cat >>conftest.$ac_ext <<_ACEOF
9575   /* end confdefs.h.  */
9576 <
9754 < /* Override any GCC internal prototype to avoid an error.
9755 <   Use char because int might match the return type of a GCC
9756 <   builtin and then its argument prototype would still apply.  */
9757 < #ifdef __cplusplus
9758 < extern "C"
9759 < #endif
9760 < char strftime ();
9761 < #ifdef FC_DUMMY_MAIN
9762 < #ifndef FC_DUMMY_MAIN_EQ_F77
9763 < #  ifdef __cplusplus
9764 <     extern "C"
9765 < #  endif
9766 <   int FC_DUMMY_MAIN() { return 1; }
9767 < #endif
9768 < #endif
9769 < int
9770 < main ()
9771 < {
9772 < return strftime ();
9773 <  ;
9774 <  return 0;
9775 < }
9576 > #include <openbabel/babelconfig.h>
9577   _ACEOF
9578 < rm -rf conftest.$ac_objext conftest$ac_exeext
9778 < if { (ac_try="$ac_link"
9578 > if { (ac_try="$ac_cpp conftest.$ac_ext"
9579   case "(($ac_try" in
9580    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581    *) ac_try_echo=$ac_try;;
9582   esac
9583 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584 <  (eval "$ac_link") 2>conftest.er1
9583 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9584 > $as_echo "$ac_try_echo") >&5
9585 >  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9586    ac_status=$?
9587    grep -v '^ *+' conftest.er1 >conftest.err
9588    rm -f conftest.er1
9589    cat conftest.err >&5
9590 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 <  (exit $ac_status); } && {
9592 <         test -z "$ac_c_werror_flag" ||
9590 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 >  (exit $ac_status); } >/dev/null && {
9592 >         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9593           test ! -s conftest.err
9594 <       } && test -s conftest$ac_exeext &&
9595 <       $as_test_x conftest$ac_exeext; then
9795 <  ac_cv_lib_intl_strftime=yes
9594 >       }; then
9595 >  ac_header_preproc=yes
9596   else
9597 <  echo "$as_me: failed program was:" >&5
9597 >  $as_echo "$as_me: failed program was:" >&5
9598   sed 's/^/| /' conftest.$ac_ext >&5
9599  
9600 <        ac_cv_lib_intl_strftime=no
9600 >  ac_header_preproc=no
9601   fi
9602  
9603 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9604 <      conftest$ac_exeext conftest.$ac_ext
9605 < LIBS=$ac_check_lib_save_LIBS
9806 < fi
9807 < { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9808 < echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
9809 < if test $ac_cv_lib_intl_strftime = yes; then
9810 <  cat >>confdefs.h <<\_ACEOF
9811 < #define HAVE_STRFTIME 1
9812 < _ACEOF
9603 > rm -f conftest.err conftest.$ac_ext
9604 > { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9605 > $as_echo "$ac_header_preproc" >&6; }
9606  
9607 < LIBS="-lintl $LIBS"
9607 > # So?  What about this header?
9608 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9609 >  yes:no: )
9610 >    { $as_echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
9611 > $as_echo "$as_me: WARNING: openbabel/babelconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9612 >    { $as_echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: proceeding with the compiler's result" >&5
9613 > $as_echo "$as_me: WARNING: openbabel/babelconfig.h: proceeding with the compiler's result" >&2;}
9614 >    ac_header_preproc=yes
9615 >    ;;
9616 >  no:yes:* )
9617 >    { $as_echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: present but cannot be compiled" >&5
9618 > $as_echo "$as_me: WARNING: openbabel/babelconfig.h: present but cannot be compiled" >&2;}
9619 >    { $as_echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h:     check for missing prerequisite headers?" >&5
9620 > $as_echo "$as_me: WARNING: openbabel/babelconfig.h:     check for missing prerequisite headers?" >&2;}
9621 >    { $as_echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: see the Autoconf documentation" >&5
9622 > $as_echo "$as_me: WARNING: openbabel/babelconfig.h: see the Autoconf documentation" >&2;}
9623 >    { $as_echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h:     section \"Present But Cannot Be Compiled\"" >&5
9624 > $as_echo "$as_me: WARNING: openbabel/babelconfig.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9625 >    { $as_echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: proceeding with the preprocessor's result" >&5
9626 > $as_echo "$as_me: WARNING: openbabel/babelconfig.h: proceeding with the preprocessor's result" >&2;}
9627 >    { $as_echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: in the future, the compiler will take precedence" >&5
9628 > $as_echo "$as_me: WARNING: openbabel/babelconfig.h: in the future, the compiler will take precedence" >&2;}
9629 >    ( cat <<\_ASBOX
9630 > ## ------------------------------ ##
9631 > ## Report this to gezelter@nd.edu ##
9632 > ## ------------------------------ ##
9633 > _ASBOX
9634 >     ) | sed "s/^/$as_me: WARNING:     /" >&2
9635 >    ;;
9636 > esac
9637 > { $as_echo "$as_me:$LINENO: checking for openbabel/babelconfig.h" >&5
9638 > $as_echo_n "checking for openbabel/babelconfig.h... " >&6; }
9639 > if test "${ac_cv_header_openbabel_babelconfig_h+set}" = set; then
9640 >  $as_echo_n "(cached) " >&6
9641 > else
9642 >  ac_cv_header_openbabel_babelconfig_h=$ac_header_preproc
9643   fi
9644 + { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_babelconfig_h" >&5
9645 + $as_echo "$ac_cv_header_openbabel_babelconfig_h" >&6; }
9646  
9647   fi
9648 < done
9648 > if test $ac_cv_header_openbabel_babelconfig_h = yes; then
9649 >  openbabel_cv_openbabel_h=yes
9650 > else
9651 >  openbabel_cv_openbabel_h=no
9652 > fi
9653  
9654 < { echo "$as_me:$LINENO: checking for working strtod" >&5
9655 < echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
9656 < if test "${ac_cv_func_strtod+set}" = set; then
9657 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9654 >
9655 >        if test "${ac_cv_header_openbabel_obconversion_h+set}" = set; then
9656 >  { $as_echo "$as_me:$LINENO: checking for openbabel/obconversion.h" >&5
9657 > $as_echo_n "checking for openbabel/obconversion.h... " >&6; }
9658 > if test "${ac_cv_header_openbabel_obconversion_h+set}" = set; then
9659 >  $as_echo_n "(cached) " >&6
9660 > fi
9661 > { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_obconversion_h" >&5
9662 > $as_echo "$ac_cv_header_openbabel_obconversion_h" >&6; }
9663   else
9664 <  if test "$cross_compiling" = yes; then
9665 <  ac_cv_func_strtod=no
9666 < else
9667 <  cat >conftest.$ac_ext <<_ACEOF
9664 >  # Is the header compilable?
9665 > { $as_echo "$as_me:$LINENO: checking openbabel/obconversion.h usability" >&5
9666 > $as_echo_n "checking openbabel/obconversion.h usability... " >&6; }
9667 > cat >conftest.$ac_ext <<_ACEOF
9668   /* confdefs.h.  */
9669   _ACEOF
9670   cat confdefs.h >>conftest.$ac_ext
9671   cat >>conftest.$ac_ext <<_ACEOF
9672   /* end confdefs.h.  */
9834
9673   $ac_includes_default
9674 < #ifndef strtod
9837 < double strtod ();
9838 < #endif
9839 < int
9840 < main()
9841 < {
9842 <  {
9843 <    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
9844 <    char *string = " +69";
9845 <    char *term;
9846 <    double value;
9847 <    value = strtod (string, &term);
9848 <    if (value != 69 || term != (string + 4))
9849 <      return 1;
9850 <  }
9851 <
9852 <  {
9853 <    /* Under Solaris 2.4, strtod returns the wrong value for the
9854 <       terminating character under some conditions.  */
9855 <    char *string = "NaN";
9856 <    char *term;
9857 <    strtod (string, &term);
9858 <    if (term != string && *(term - 1) == 0)
9859 <      return 1;
9860 <  }
9861 <  return 0;
9862 < }
9863 <
9674 > #include <openbabel/obconversion.h>
9675   _ACEOF
9676 < rm -f conftest$ac_exeext
9677 < if { (ac_try="$ac_link"
9676 > rm -f conftest.$ac_objext
9677 > if { (ac_try="$ac_compile"
9678   case "(($ac_try" in
9679    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680    *) ac_try_echo=$ac_try;;
9681   esac
9682 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683 <  (eval "$ac_link") 2>&5
9682 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9683 > $as_echo "$ac_try_echo") >&5
9684 >  (eval "$ac_compile") 2>conftest.er1
9685    ac_status=$?
9686 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9688 <  { (case "(($ac_try" in
9689 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690 <  *) ac_try_echo=$ac_try;;
9691 < esac
9692 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693 <  (eval "$ac_try") 2>&5
9694 <  ac_status=$?
9883 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 <  (exit $ac_status); }; }; then
9885 <  ac_cv_func_strtod=yes
9686 >  grep -v '^ *+' conftest.er1 >conftest.err
9687 >  rm -f conftest.er1
9688 >  cat conftest.err >&5
9689 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 >  (exit $ac_status); } && {
9691 >         test -z "$ac_cxx_werror_flag" ||
9692 >         test ! -s conftest.err
9693 >       } && test -s conftest.$ac_objext; then
9694 >  ac_header_compiler=yes
9695   else
9696 <  echo "$as_me: program exited with status $ac_status" >&5
9888 < echo "$as_me: failed program was:" >&5
9696 >  $as_echo "$as_me: failed program was:" >&5
9697   sed 's/^/| /' conftest.$ac_ext >&5
9698  
9699 < ( exit $ac_status )
9892 < ac_cv_func_strtod=no
9893 < fi
9894 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9699 >        ac_header_compiler=no
9700   fi
9701  
9702 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9703 + { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9704 + $as_echo "$ac_header_compiler" >&6; }
9705  
9706 < fi
9707 < { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
9708 < echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
9709 < if test $ac_cv_func_strtod = no; then
9902 <  case " $LIBOBJS " in
9903 <  *" strtod.$ac_objext "* ) ;;
9904 <  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
9905 < ;;
9906 < esac
9907 <
9908 < { echo "$as_me:$LINENO: checking for pow" >&5
9909 < echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
9910 < if test "${ac_cv_func_pow+set}" = set; then
9911 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9912 < else
9913 <  cat >conftest.$ac_ext <<_ACEOF
9706 > # Is the header present?
9707 > { $as_echo "$as_me:$LINENO: checking openbabel/obconversion.h presence" >&5
9708 > $as_echo_n "checking openbabel/obconversion.h presence... " >&6; }
9709 > cat >conftest.$ac_ext <<_ACEOF
9710   /* confdefs.h.  */
9711   _ACEOF
9712   cat confdefs.h >>conftest.$ac_ext
9713   cat >>conftest.$ac_ext <<_ACEOF
9714   /* end confdefs.h.  */
9715 < /* Define pow to an innocuous variant, in case <limits.h> declares pow.
9920 <   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9921 < #define pow innocuous_pow
9922 <
9923 < /* System header to define __stub macros and hopefully few prototypes,
9924 <    which can conflict with char pow (); below.
9925 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9926 <    <limits.h> exists even on freestanding compilers.  */
9927 <
9928 < #ifdef __STDC__
9929 < # include <limits.h>
9930 < #else
9931 < # include <assert.h>
9932 < #endif
9933 <
9934 < #undef pow
9935 <
9936 < /* Override any GCC internal prototype to avoid an error.
9937 <   Use char because int might match the return type of a GCC
9938 <   builtin and then its argument prototype would still apply.  */
9939 < #ifdef __cplusplus
9940 < extern "C"
9941 < #endif
9942 < char pow ();
9943 < /* The GNU C library defines this for functions which it implements
9944 <    to always fail with ENOSYS.  Some functions are actually named
9945 <    something starting with __ and the normal name is an alias.  */
9946 < #if defined __stub_pow || defined __stub___pow
9947 < choke me
9948 < #endif
9949 <
9950 < #ifdef FC_DUMMY_MAIN
9951 < #ifndef FC_DUMMY_MAIN_EQ_F77
9952 < #  ifdef __cplusplus
9953 <     extern "C"
9954 < #  endif
9955 <   int FC_DUMMY_MAIN() { return 1; }
9956 < #endif
9957 < #endif
9958 < int
9959 < main ()
9960 < {
9961 < return pow ();
9962 <  ;
9963 <  return 0;
9964 < }
9715 > #include <openbabel/obconversion.h>
9716   _ACEOF
9717 < rm -f conftest.$ac_objext conftest$ac_exeext
9967 < if { (ac_try="$ac_link"
9717 > if { (ac_try="$ac_cpp conftest.$ac_ext"
9718   case "(($ac_try" in
9719    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720    *) ac_try_echo=$ac_try;;
9721   esac
9722 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 <  (eval "$ac_link") 2>conftest.er1
9722 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9723 > $as_echo "$ac_try_echo") >&5
9724 >  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9725    ac_status=$?
9726    grep -v '^ *+' conftest.er1 >conftest.err
9727    rm -f conftest.er1
9728    cat conftest.err >&5
9729 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 <  (exit $ac_status); } && {
9731 <         test -z "$ac_c_werror_flag" ||
9729 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 >  (exit $ac_status); } >/dev/null && {
9731 >         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9732           test ! -s conftest.err
9733 <       } && test -s conftest$ac_exeext &&
9734 <       $as_test_x conftest$ac_exeext; then
9984 <  ac_cv_func_pow=yes
9733 >       }; then
9734 >  ac_header_preproc=yes
9735   else
9736 <  echo "$as_me: failed program was:" >&5
9736 >  $as_echo "$as_me: failed program was:" >&5
9737   sed 's/^/| /' conftest.$ac_ext >&5
9738  
9739 <        ac_cv_func_pow=no
9739 >  ac_header_preproc=no
9740   fi
9741  
9742 < rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9743 <      conftest$ac_exeext conftest.$ac_ext
9742 > rm -f conftest.err conftest.$ac_ext
9743 > { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9744 > $as_echo "$ac_header_preproc" >&6; }
9745 >
9746 > # So?  What about this header?
9747 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9748 >  yes:no: )
9749 >    { $as_echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: accepted by the compiler, rejected by the preprocessor!" >&5
9750 > $as_echo "$as_me: WARNING: openbabel/obconversion.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9751 >    { $as_echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: proceeding with the compiler's result" >&5
9752 > $as_echo "$as_me: WARNING: openbabel/obconversion.h: proceeding with the compiler's result" >&2;}
9753 >    ac_header_preproc=yes
9754 >    ;;
9755 >  no:yes:* )
9756 >    { $as_echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: present but cannot be compiled" >&5
9757 > $as_echo "$as_me: WARNING: openbabel/obconversion.h: present but cannot be compiled" >&2;}
9758 >    { $as_echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h:     check for missing prerequisite headers?" >&5
9759 > $as_echo "$as_me: WARNING: openbabel/obconversion.h:     check for missing prerequisite headers?" >&2;}
9760 >    { $as_echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: see the Autoconf documentation" >&5
9761 > $as_echo "$as_me: WARNING: openbabel/obconversion.h: see the Autoconf documentation" >&2;}
9762 >    { $as_echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h:     section \"Present But Cannot Be Compiled\"" >&5
9763 > $as_echo "$as_me: WARNING: openbabel/obconversion.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9764 >    { $as_echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: proceeding with the preprocessor's result" >&5
9765 > $as_echo "$as_me: WARNING: openbabel/obconversion.h: proceeding with the preprocessor's result" >&2;}
9766 >    { $as_echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: in the future, the compiler will take precedence" >&5
9767 > $as_echo "$as_me: WARNING: openbabel/obconversion.h: in the future, the compiler will take precedence" >&2;}
9768 >    ( cat <<\_ASBOX
9769 > ## ------------------------------ ##
9770 > ## Report this to gezelter@nd.edu ##
9771 > ## ------------------------------ ##
9772 > _ASBOX
9773 >     ) | sed "s/^/$as_me: WARNING:     /" >&2
9774 >    ;;
9775 > esac
9776 > { $as_echo "$as_me:$LINENO: checking for openbabel/obconversion.h" >&5
9777 > $as_echo_n "checking for openbabel/obconversion.h... " >&6; }
9778 > if test "${ac_cv_header_openbabel_obconversion_h+set}" = set; then
9779 >  $as_echo_n "(cached) " >&6
9780 > else
9781 >  ac_cv_header_openbabel_obconversion_h=$ac_header_preproc
9782   fi
9783 < { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
9784 < echo "${ECHO_T}$ac_cv_func_pow" >&6; }
9783 > { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_obconversion_h" >&5
9784 > $as_echo "$ac_cv_header_openbabel_obconversion_h" >&6; }
9785  
9786 < if test $ac_cv_func_pow = no; then
9787 <  { echo "$as_me:$LINENO: checking for pow in -lm" >&5
9788 < echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
10001 < if test "${ac_cv_lib_m_pow+set}" = set; then
10002 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9786 > fi
9787 > if test $ac_cv_header_openbabel_obconversion_h = yes; then
9788 >  openbabel_cv_obconversion_h=yes
9789   else
9790 <  ac_check_lib_save_LIBS=$LIBS
9791 < LIBS="-lm  $LIBS"
9792 < cat >conftest.$ac_ext <<_ACEOF
9793 < /* confdefs.h.  */
9790 >  openbabel_cv_obconversion_h=no
9791 > fi
9792 >
9793 >
9794 >        cat >conftest.$ac_ext <<_ACEOF
9795 >
9796 >             /* confdefs.h.  */
9797   _ACEOF
9798   cat confdefs.h >>conftest.$ac_ext
9799   cat >>conftest.$ac_ext <<_ACEOF
9800   /* end confdefs.h.  */
9801  
9802 < /* Override any GCC internal prototype to avoid an error.
9803 <   Use char because int might match the return type of a GCC
9804 <   builtin and then its argument prototype would still apply.  */
9805 < #ifdef __cplusplus
9806 < extern "C"
10018 < #endif
10019 < char pow ();
9802 > #include <openbabel/babelconfig.h>
9803 > #include <openbabel/obconversion.h>
9804 > using namespace std;
9805 > using namespace OpenBabel;
9806 >
9807   #ifdef FC_DUMMY_MAIN
9808   #ifndef FC_DUMMY_MAIN_EQ_F77
9809   #  ifdef __cplusplus
# Line 10028 | Line 9815 | main ()
9815   int
9816   main ()
9817   {
9818 < return pow ();
9818 >
9819 > OBConversion Conv(&cin, &cout);
9820 >
9821 >
9822    ;
9823    return 0;
9824   }
# Line 10039 | Line 9829 | esac
9829    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830    *) ac_try_echo=$ac_try;;
9831   esac
9832 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9833 > $as_echo "$ac_try_echo") >&5
9834    (eval "$ac_link") 2>conftest.er1
9835    ac_status=$?
9836    grep -v '^ *+' conftest.er1 >conftest.err
9837    rm -f conftest.er1
9838    cat conftest.err >&5
9839 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840    (exit $ac_status); } && {
9841 <         test -z "$ac_c_werror_flag" ||
9841 >         test -z "$ac_cxx_werror_flag" ||
9842           test ! -s conftest.err
9843 <       } && test -s conftest$ac_exeext &&
9844 <       $as_test_x conftest$ac_exeext; then
9845 <  ac_cv_lib_m_pow=yes
9846 < else
10056 <  echo "$as_me: failed program was:" >&5
10057 < sed 's/^/| /' conftest.$ac_ext >&5
9843 >       } && test -s conftest$ac_exeext && {
9844 >         test "$cross_compiling" = yes ||
9845 >         $as_test_x conftest$ac_exeext
9846 >       }; then
9847  
9848 <        ac_cv_lib_m_pow=no
9849 < fi
9848 >                openbabel_lib_found="yes"
9849 >                { $as_echo "$as_me:$LINENO: result: found" >&5
9850 > $as_echo "found" >&6; }
9851  
10062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10063      conftest$ac_exeext conftest.$ac_ext
10064 LIBS=$ac_check_lib_save_LIBS
10065 fi
10066 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10067 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
10068 if test $ac_cv_lib_m_pow = yes; then
10069  POW_LIB=-lm
9852   else
9853 <  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
9854 < echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10073 < fi
9853 >  $as_echo "$as_me: failed program was:" >&5
9854 > sed 's/^/| /' conftest.$ac_ext >&5
9855  
10075 fi
9856  
9857 < fi
9858 <
9859 <
10080 <
10081 <
10082 <
10083 <
10084 <
10085 <
10086 <
10087 <
10088 <
10089 <
10090 <
10091 <
10092 <
10093 <
10094 <
9857 >                openbabel_lib_found="no"
9858 >                { $as_echo "$as_me:$LINENO: result: not found" >&5
9859 > $as_echo "not found" >&6; }
9860  
9861  
9862 + fi
9863  
9864 + rm -rf conftest.dSYM
9865 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9866 +      conftest$ac_exeext conftest.$ac_ext
9867 +        ac_ext=c
9868 + ac_cpp='$CPP $CPPFLAGS'
9869 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9870 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9871 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
9872  
9873 +        LDFLAGS="$OPENBABEL_OLD_LDFLAGS"
9874 +        CPPFLAGS="$OPENBABEL_OLD_CPPFLAGS"
9875  
9876 +        if test "$openbabel_lib_found" = "yes" -a "$openbabel_cv_openbabel_h" = "yes" -a "$openbabel_cv_obconversion_h" = "yes"; then
9877 +                USE_OPENBABEL=yes
9878 +                OPENBABEL_INC_DIR="${OPENBABEL_HOME}/include/openbabel-2.0"
9879 +                OPENBABEL_LIB_DIR="${OPENBABEL_HOME}/lib"
9880 +                OPENBABEL_LIB="-lopenbabel"
9881 +        else
9882 +                { $as_echo "$as_me:$LINENO: checking openbabel in ${OPENBABEL_HOME}" >&5
9883 + $as_echo_n "checking openbabel in ${OPENBABEL_HOME}... " >&6; }
9884 +                OPENBABEL_INC_DIR=
9885 +                OPENBABEL_LIB_DIR=
9886 +                OPENBABEL_LIB=
9887 +                USE_OPENBABEL=no
9888 +                { $as_echo "$as_me:$LINENO: result: failed" >&5
9889 + $as_echo "failed" >&6; }
9890 +                echo ""
9891 +                echo "*********************************************************"
9892 +                echo "* WARNING: Could not find a working openbabel-2.x       *"
9893 +                echo "* installation If you need OOPSE to be able to convert  *"
9894 +                echo "* xyz or pdb files you need to specify a valid          *"
9895 +                echo "* openbabel-2.x installation with --with-openbabel=DIR  *"
9896 +                echo "*                                                       *"
9897 +                echo "* OOPSE will still work without openbabel installed.    *"
9898 +                echo "*********************************************************"
9899 +                echo ""
9900 +        fi
9901  
9902  
9903  
9904  
9905 + fi
9906 + fi
9907  
9908  
9909 < for ac_func in floor getpagesize gettimeofday memchr memmove memset pow pstat_getdynamic pstat_getstatic rint select snprintf sranddev sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strrchr strstr strtol sysmp getsysinfo sysctl table
9910 < do
9911 < as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9912 < { echo "$as_me:$LINENO: checking for $ac_func" >&5
9913 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10111 < if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10112 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9909 > # Checks for header files.
9910 > { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9911 > $as_echo_n "checking for ANSI C header files... " >&6; }
9912 > if test "${ac_cv_header_stdc+set}" = set; then
9913 >  $as_echo_n "(cached) " >&6
9914   else
9915    cat >conftest.$ac_ext <<_ACEOF
9916   /* confdefs.h.  */
# Line 10117 | Line 9918 | cat >>conftest.$ac_ext <<_ACEOF
9918   cat confdefs.h >>conftest.$ac_ext
9919   cat >>conftest.$ac_ext <<_ACEOF
9920   /* end confdefs.h.  */
9921 < /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9922 <   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9923 < #define $ac_func innocuous_$ac_func
9921 > #include <stdlib.h>
9922 > #include <stdarg.h>
9923 > #include <string.h>
9924 > #include <float.h>
9925  
10124 /* System header to define __stub macros and hopefully few prototypes,
10125    which can conflict with char $ac_func (); below.
10126    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10127    <limits.h> exists even on freestanding compilers.  */
10128
10129 #ifdef __STDC__
10130 # include <limits.h>
10131 #else
10132 # include <assert.h>
10133 #endif
10134
10135 #undef $ac_func
10136
10137 /* Override any GCC internal prototype to avoid an error.
10138   Use char because int might match the return type of a GCC
10139   builtin and then its argument prototype would still apply.  */
10140 #ifdef __cplusplus
10141 extern "C"
10142 #endif
10143 char $ac_func ();
10144 /* The GNU C library defines this for functions which it implements
10145    to always fail with ENOSYS.  Some functions are actually named
10146    something starting with __ and the normal name is an alias.  */
10147 #if defined __stub_$ac_func || defined __stub___$ac_func
10148 choke me
10149 #endif
10150
9926   #ifdef FC_DUMMY_MAIN
9927   #ifndef FC_DUMMY_MAIN_EQ_F77
9928   #  ifdef __cplusplus
# Line 10159 | Line 9934 | main ()
9934   int
9935   main ()
9936   {
9937 < return $ac_func ();
9937 >
9938    ;
9939    return 0;
9940   }
9941   _ACEOF
9942 < rm -f conftest.$ac_objext conftest$ac_exeext
9943 < if { (ac_try="$ac_link"
9942 > rm -f conftest.$ac_objext
9943 > if { (ac_try="$ac_compile"
9944   case "(($ac_try" in
9945    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946    *) ac_try_echo=$ac_try;;
9947   esac
9948 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949 <  (eval "$ac_link") 2>conftest.er1
9948 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9949 > $as_echo "$ac_try_echo") >&5
9950 >  (eval "$ac_compile") 2>conftest.er1
9951    ac_status=$?
9952    grep -v '^ *+' conftest.er1 >conftest.err
9953    rm -f conftest.er1
9954    cat conftest.err >&5
9955 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956    (exit $ac_status); } && {
9957           test -z "$ac_c_werror_flag" ||
9958           test ! -s conftest.err
9959 <       } && test -s conftest$ac_exeext &&
9960 <       $as_test_x conftest$ac_exeext; then
10185 <  eval "$as_ac_var=yes"
9959 >       } && test -s conftest.$ac_objext; then
9960 >  ac_cv_header_stdc=yes
9961   else
9962 <  echo "$as_me: failed program was:" >&5
9962 >  $as_echo "$as_me: failed program was:" >&5
9963   sed 's/^/| /' conftest.$ac_ext >&5
9964  
9965 <        eval "$as_ac_var=no"
9965 >        ac_cv_header_stdc=no
9966   fi
9967  
9968 < rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9969 <      conftest$ac_exeext conftest.$ac_ext
9968 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9969 >
9970 > if test $ac_cv_header_stdc = yes; then
9971 >  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9972 >  cat >conftest.$ac_ext <<_ACEOF
9973 > /* confdefs.h.  */
9974 > _ACEOF
9975 > cat confdefs.h >>conftest.$ac_ext
9976 > cat >>conftest.$ac_ext <<_ACEOF
9977 > /* end confdefs.h.  */
9978 > #include <string.h>
9979 >
9980 > _ACEOF
9981 > if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9982 >  $EGREP "memchr" >/dev/null 2>&1; then
9983 >  :
9984 > else
9985 >  ac_cv_header_stdc=no
9986   fi
9987 < ac_res=`eval echo '${'$as_ac_var'}'`
9988 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
9989 < echo "${ECHO_T}$ac_res" >&6; }
9990 < if test `eval echo '${'$as_ac_var'}'` = yes; then
9991 <  cat >>confdefs.h <<_ACEOF
9992 < #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9987 > rm -f conftest*
9988 >
9989 > fi
9990 >
9991 > if test $ac_cv_header_stdc = yes; then
9992 >  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9993 >  cat >conftest.$ac_ext <<_ACEOF
9994 > /* confdefs.h.  */
9995   _ACEOF
9996 + cat confdefs.h >>conftest.$ac_ext
9997 + cat >>conftest.$ac_ext <<_ACEOF
9998 + /* end confdefs.h.  */
9999 + #include <stdlib.h>
10000  
10001 + _ACEOF
10002 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10003 +  $EGREP "free" >/dev/null 2>&1; then
10004 +  :
10005 + else
10006 +  ac_cv_header_stdc=no
10007   fi
10008 < done
10008 > rm -f conftest*
10009  
10010 + fi
10011  
10012 < # special check for _system_configuration because AIX <4.3.2 do not
10013 < # contain the `physmem' member.
10014 < { echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
10015 < echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6; }
10016 < cat >conftest.$ac_ext <<_ACEOF
10012 > if test $ac_cv_header_stdc = yes; then
10013 >  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10014 >  if test "$cross_compiling" = yes; then
10015 >  :
10016 > else
10017 >  cat >conftest.$ac_ext <<_ACEOF
10018   /* confdefs.h.  */
10019   _ACEOF
10020   cat confdefs.h >>conftest.$ac_ext
10021   cat >>conftest.$ac_ext <<_ACEOF
10022   /* end confdefs.h.  */
10023 < #include <sys/systemcfg.h>
10024 < #ifdef FC_DUMMY_MAIN
10025 < #ifndef FC_DUMMY_MAIN_EQ_F77
10026 < #  ifdef __cplusplus
10027 <     extern "C"
10028 < #  endif
10029 <   int FC_DUMMY_MAIN() { return 1; }
10023 > #include <ctype.h>
10024 > #include <stdlib.h>
10025 > #if ((' ' & 0x0FF) == 0x020)
10026 > # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10027 > # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10028 > #else
10029 > # define ISLOWER(c) \
10030 >                   (('a' <= (c) && (c) <= 'i') \
10031 >                     || ('j' <= (c) && (c) <= 'r') \
10032 >                     || ('s' <= (c) && (c) <= 'z'))
10033 > # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10034   #endif
10035 < #endif
10035 >
10036 > #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10037   int
10038   main ()
10039   {
10040 < double x = _system_configuration.physmem;
10041 <  ;
10040 >  int i;
10041 >  for (i = 0; i < 256; i++)
10042 >    if (XOR (islower (i), ISLOWER (i))
10043 >        || toupper (i) != TOUPPER (i))
10044 >      return 2;
10045    return 0;
10046   }
10047   _ACEOF
10048 < rm -f conftest.$ac_objext
10049 < if { (ac_try="$ac_compile"
10048 > rm -f conftest$ac_exeext
10049 > if { (ac_try="$ac_link"
10050   case "(($ac_try" in
10051    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052    *) ac_try_echo=$ac_try;;
10053   esac
10054 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 <  (eval "$ac_compile") 2>conftest.er1
10054 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10055 > $as_echo "$ac_try_echo") >&5
10056 >  (eval "$ac_link") 2>&5
10057    ac_status=$?
10058 <  grep -v '^ *+' conftest.er1 >conftest.err
10059 <  rm -f conftest.er1
10060 <  cat conftest.err >&5
10061 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 <  (exit $ac_status); } && {
10063 <         test -z "$ac_c_werror_flag" ||
10064 <         test ! -s conftest.err
10065 <       } && test -s conftest.$ac_objext; then
10066 <  { echo "$as_me:$LINENO: result: yes" >&5
10067 < echo "${ECHO_T}yes" >&6; }
10058 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 >  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10060 >  { (case "(($ac_try" in
10061 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062 >  *) ac_try_echo=$ac_try;;
10063 > esac
10064 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10065 > $as_echo "$ac_try_echo") >&5
10066 >  (eval "$ac_try") 2>&5
10067 >  ac_status=$?
10068 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 >  (exit $ac_status); }; }; then
10070 >  :
10071 > else
10072 >  $as_echo "$as_me: program exited with status $ac_status" >&5
10073 > $as_echo "$as_me: failed program was:" >&5
10074 > sed 's/^/| /' conftest.$ac_ext >&5
10075  
10076 + ( exit $ac_status )
10077 + ac_cv_header_stdc=no
10078 + fi
10079 + rm -rf conftest.dSYM
10080 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10081 + fi
10082 +
10083 +
10084 + fi
10085 + fi
10086 + { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10087 + $as_echo "$ac_cv_header_stdc" >&6; }
10088 + if test $ac_cv_header_stdc = yes; then
10089 +
10090   cat >>confdefs.h <<\_ACEOF
10091 < #define HAVE__SYSTEM_CONFIGURATION 1
10091 > #define STDC_HEADERS 1
10092   _ACEOF
10093  
10259 else
10260  echo "$as_me: failed program was:" >&5
10261 sed 's/^/| /' conftest.$ac_ext >&5
10262
10263        { echo "$as_me:$LINENO: result: no" >&5
10264 echo "${ECHO_T}no" >&6; }
10094   fi
10095  
10267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096  
10269  # clean out junk possibly left behind by a previous configuration
10270  rm -f src/getopt.h
10271  # Check for getopt_long support
10097  
10098 < for ac_header in getopt.h
10098 >
10099 >
10100 >
10101 >
10102 >
10103 >
10104 >
10105 >
10106 >
10107 >
10108 >
10109 >
10110 >
10111 > 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
10112   do
10113 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10113 > as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10114   if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10115 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10116 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10115 >  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10116 > $as_echo_n "checking for $ac_header... " >&6; }
10117   if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10118 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10118 >  $as_echo_n "(cached) " >&6
10119   fi
10120 < ac_res=`eval echo '${'$as_ac_Header'}'`
10121 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
10122 < echo "${ECHO_T}$ac_res" >&6; }
10120 > ac_res=`eval 'as_val=${'$as_ac_Header'}
10121 >                 $as_echo "$as_val"'`
10122 >               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10123 > $as_echo "$ac_res" >&6; }
10124   else
10125    # Is the header compilable?
10126 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10127 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10126 > { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10127 > $as_echo_n "checking $ac_header usability... " >&6; }
10128   cat >conftest.$ac_ext <<_ACEOF
10129   /* confdefs.h.  */
10130   _ACEOF
# Line 10301 | Line 10140 | esac
10140    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141    *) ac_try_echo=$ac_try;;
10142   esac
10143 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10144 > $as_echo "$ac_try_echo") >&5
10145    (eval "$ac_compile") 2>conftest.er1
10146    ac_status=$?
10147    grep -v '^ *+' conftest.er1 >conftest.err
10148    rm -f conftest.er1
10149    cat conftest.err >&5
10150 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151    (exit $ac_status); } && {
10152           test -z "$ac_c_werror_flag" ||
10153           test ! -s conftest.err
10154         } && test -s conftest.$ac_objext; then
10155    ac_header_compiler=yes
10156   else
10157 <  echo "$as_me: failed program was:" >&5
10157 >  $as_echo "$as_me: failed program was:" >&5
10158   sed 's/^/| /' conftest.$ac_ext >&5
10159  
10160          ac_header_compiler=no
10161   fi
10162  
10163   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10164 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10165 < echo "${ECHO_T}$ac_header_compiler" >&6; }
10164 > { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10165 > $as_echo "$ac_header_compiler" >&6; }
10166  
10167   # Is the header present?
10168 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10169 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10168 > { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10169 > $as_echo_n "checking $ac_header presence... " >&6; }
10170   cat >conftest.$ac_ext <<_ACEOF
10171   /* confdefs.h.  */
10172   _ACEOF
# Line 10340 | Line 10180 | esac
10180    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181    *) ac_try_echo=$ac_try;;
10182   esac
10183 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10183 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10184 > $as_echo "$ac_try_echo") >&5
10185    (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10186    ac_status=$?
10187    grep -v '^ *+' conftest.er1 >conftest.err
10188    rm -f conftest.er1
10189    cat conftest.err >&5
10190 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191    (exit $ac_status); } >/dev/null && {
10192           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10193           test ! -s conftest.err
10194         }; then
10195    ac_header_preproc=yes
10196   else
10197 <  echo "$as_me: failed program was:" >&5
10197 >  $as_echo "$as_me: failed program was:" >&5
10198   sed 's/^/| /' conftest.$ac_ext >&5
10199  
10200    ac_header_preproc=no
10201   fi
10202  
10203   rm -f conftest.err conftest.$ac_ext
10204 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10205 < echo "${ECHO_T}$ac_header_preproc" >&6; }
10204 > { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10205 > $as_echo "$ac_header_preproc" >&6; }
10206  
10207   # So?  What about this header?
10208   case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10209    yes:no: )
10210 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10211 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10212 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10213 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10210 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10211 > $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10212 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10213 > $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10214      ac_header_preproc=yes
10215      ;;
10216    no:yes:* )
10217 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10218 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10219 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10220 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10221 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10222 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10223 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10224 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10225 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10226 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10227 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10228 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10217 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10218 > $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10219 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10220 > $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10221 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10222 > $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10223 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10224 > $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10225 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10226 > $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10227 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10228 > $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10229      ( cat <<\_ASBOX
10230   ## ------------------------------ ##
10231   ## Report this to gezelter@nd.edu ##
# Line 10393 | Line 10234 | esac
10234       ) | sed "s/^/$as_me: WARNING:     /" >&2
10235      ;;
10236   esac
10237 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
10238 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10237 > { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10238 > $as_echo_n "checking for $ac_header... " >&6; }
10239   if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10240 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10240 >  $as_echo_n "(cached) " >&6
10241   else
10242    eval "$as_ac_Header=\$ac_header_preproc"
10243   fi
10244 < ac_res=`eval echo '${'$as_ac_Header'}'`
10245 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
10246 < echo "${ECHO_T}$ac_res" >&6; }
10244 > ac_res=`eval 'as_val=${'$as_ac_Header'}
10245 >                 $as_echo "$as_val"'`
10246 >               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10247 > $as_echo "$ac_res" >&6; }
10248  
10249   fi
10250 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
10250 > if test `eval 'as_val=${'$as_ac_Header'}
10251 >                 $as_echo "$as_val"'` = yes; then
10252    cat >>confdefs.h <<_ACEOF
10253 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10253 > #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10254   _ACEOF
10255  
10256   fi
# Line 10415 | Line 10258 | done
10258   done
10259  
10260  
10261 < for ac_func in getopt_long
10262 < do
10263 < as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10264 < { echo "$as_me:$LINENO: checking for $ac_func" >&5
10265 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10423 < if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10424 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10261 > # Checks for typedefs, structures, and compiler characteristics.
10262 > { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10263 > $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
10264 > if test "${ac_cv_header_stdbool_h+set}" = set; then
10265 >  $as_echo_n "(cached) " >&6
10266   else
10267    cat >conftest.$ac_ext <<_ACEOF
10268   /* confdefs.h.  */
# Line 10429 | Line 10270 | cat >>conftest.$ac_ext <<_ACEOF
10270   cat confdefs.h >>conftest.$ac_ext
10271   cat >>conftest.$ac_ext <<_ACEOF
10272   /* end confdefs.h.  */
10273 < /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10274 <   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10275 < #define $ac_func innocuous_$ac_func
10273 >
10274 > #include <stdbool.h>
10275 > #ifndef bool
10276 > "error: bool is not defined"
10277 > #endif
10278 > #ifndef false
10279 > "error: false is not defined"
10280 > #endif
10281 > #if false
10282 > "error: false is not 0"
10283 > #endif
10284 > #ifndef true
10285 > "error: true is not defined"
10286 > #endif
10287 > #if true != 1
10288 > "error: true is not 1"
10289 > #endif
10290 > #ifndef __bool_true_false_are_defined
10291 > "error: __bool_true_false_are_defined is not defined"
10292 > #endif
10293 >
10294 >        struct s { _Bool s: 1; _Bool t; } s;
10295 >
10296 >        char a[true == 1 ? 1 : -1];
10297 >        char b[false == 0 ? 1 : -1];
10298 >        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10299 >        char d[(bool) 0.5 == true ? 1 : -1];
10300 >        bool e = &s;
10301 >        char f[(_Bool) 0.0 == false ? 1 : -1];
10302 >        char g[true];
10303 >        char h[sizeof (_Bool)];
10304 >        char i[sizeof s.t];
10305 >        enum { j = false, k = true, l = false * true, m = true * 256 };
10306 >        /* The following fails for
10307 >           HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
10308 >        _Bool n[m];
10309 >        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10310 >        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10311 > #       if defined __xlc__ || defined __GNUC__
10312 >         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10313 >            reported by James Lemley on 2005-10-05; see
10314 >            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10315 >            This test is not quite right, since xlc is allowed to
10316 >            reject this program, as the initializer for xlcbug is
10317 >            not one of the forms that C requires support for.
10318 >            However, doing the test right would require a runtime
10319 >            test, and that would make cross-compilation harder.
10320 >            Let us hope that IBM fixes the xlc bug, and also adds
10321 >            support for this kind of constant expression.  In the
10322 >            meantime, this test will reject xlc, which is OK, since
10323 >            our stdbool.h substitute should suffice.  We also test
10324 >            this with GCC, where it should work, to detect more
10325 >            quickly whether someone messes up the test in the
10326 >            future.  */
10327 >         char digs[] = "0123456789";
10328 >         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10329 > #       endif
10330 >        /* Catch a bug in an HP-UX C compiler.  See
10331 >           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10332 >           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10333 >         */
10334 >        _Bool q = true;
10335 >        _Bool *pq = &q;
10336  
10436 /* System header to define __stub macros and hopefully few prototypes,
10437    which can conflict with char $ac_func (); below.
10438    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10439    <limits.h> exists even on freestanding compilers.  */
10440
10441 #ifdef __STDC__
10442 # include <limits.h>
10443 #else
10444 # include <assert.h>
10445 #endif
10446
10447 #undef $ac_func
10448
10449 /* Override any GCC internal prototype to avoid an error.
10450   Use char because int might match the return type of a GCC
10451   builtin and then its argument prototype would still apply.  */
10452 #ifdef __cplusplus
10453 extern "C"
10454 #endif
10455 char $ac_func ();
10456 /* The GNU C library defines this for functions which it implements
10457    to always fail with ENOSYS.  Some functions are actually named
10458    something starting with __ and the normal name is an alias.  */
10459 #if defined __stub_$ac_func || defined __stub___$ac_func
10460 choke me
10461 #endif
10462
10337   #ifdef FC_DUMMY_MAIN
10338   #ifndef FC_DUMMY_MAIN_EQ_F77
10339   #  ifdef __cplusplus
# Line 10471 | Line 10345 | main ()
10345   int
10346   main ()
10347   {
10348 < return $ac_func ();
10348 >
10349 >        *pq |= q;
10350 >        *pq |= ! q;
10351 >        /* Refer to every declared value, to avoid compiler optimizations.  */
10352 >        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10353 >                + !m + !n + !o + !p + !q + !pq);
10354 >
10355    ;
10356    return 0;
10357   }
10358   _ACEOF
10359 < rm -f conftest.$ac_objext conftest$ac_exeext
10360 < if { (ac_try="$ac_link"
10359 > rm -f conftest.$ac_objext
10360 > if { (ac_try="$ac_compile"
10361   case "(($ac_try" in
10362    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363    *) ac_try_echo=$ac_try;;
10364   esac
10365 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10366 <  (eval "$ac_link") 2>conftest.er1
10365 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10366 > $as_echo "$ac_try_echo") >&5
10367 >  (eval "$ac_compile") 2>conftest.er1
10368    ac_status=$?
10369    grep -v '^ *+' conftest.er1 >conftest.err
10370    rm -f conftest.er1
10371    cat conftest.err >&5
10372 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373    (exit $ac_status); } && {
10374           test -z "$ac_c_werror_flag" ||
10375           test ! -s conftest.err
10376 <       } && test -s conftest$ac_exeext &&
10377 <       $as_test_x conftest$ac_exeext; then
10497 <  eval "$as_ac_var=yes"
10376 >       } && test -s conftest.$ac_objext; then
10377 >  ac_cv_header_stdbool_h=yes
10378   else
10379 <  echo "$as_me: failed program was:" >&5
10379 >  $as_echo "$as_me: failed program was:" >&5
10380   sed 's/^/| /' conftest.$ac_ext >&5
10381  
10382 <        eval "$as_ac_var=no"
10382 >        ac_cv_header_stdbool_h=no
10383   fi
10384  
10385 < rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10506 <      conftest$ac_exeext conftest.$ac_ext
10385 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10386   fi
10387 < ac_res=`eval echo '${'$as_ac_var'}'`
10388 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
10389 < echo "${ECHO_T}$ac_res" >&6; }
10390 < if test `eval echo '${'$as_ac_var'}'` = yes; then
10391 <  cat >>confdefs.h <<_ACEOF
10392 < #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10514 < _ACEOF
10515 <
10387 > { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10388 > $as_echo "$ac_cv_header_stdbool_h" >&6; }
10389 > { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
10390 > $as_echo_n "checking for _Bool... " >&6; }
10391 > if test "${ac_cv_type__Bool+set}" = set; then
10392 >  $as_echo_n "(cached) " >&6
10393   else
10394 <  # FreeBSD has a gnugetopt library for this
10518 <    { echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
10519 < echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6; }
10520 < if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
10521 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10522 < else
10523 <  ac_check_lib_save_LIBS=$LIBS
10524 < LIBS="-lgnugetopt  $LIBS"
10394 >  ac_cv_type__Bool=no
10395   cat >conftest.$ac_ext <<_ACEOF
10396   /* confdefs.h.  */
10397   _ACEOF
10398   cat confdefs.h >>conftest.$ac_ext
10399   cat >>conftest.$ac_ext <<_ACEOF
10400   /* end confdefs.h.  */
10401 <
10532 < /* Override any GCC internal prototype to avoid an error.
10533 <   Use char because int might match the return type of a GCC
10534 <   builtin and then its argument prototype would still apply.  */
10535 < #ifdef __cplusplus
10536 < extern "C"
10537 < #endif
10538 < char getopt_long ();
10401 > $ac_includes_default
10402   #ifdef FC_DUMMY_MAIN
10403   #ifndef FC_DUMMY_MAIN_EQ_F77
10404   #  ifdef __cplusplus
# Line 10547 | Line 10410 | main ()
10410   int
10411   main ()
10412   {
10413 < return getopt_long ();
10413 > if (sizeof (_Bool))
10414 >       return 0;
10415    ;
10416    return 0;
10417   }
10418   _ACEOF
10419 < rm -f conftest.$ac_objext conftest$ac_exeext
10420 < if { (ac_try="$ac_link"
10419 > rm -f conftest.$ac_objext
10420 > if { (ac_try="$ac_compile"
10421   case "(($ac_try" in
10422    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423    *) ac_try_echo=$ac_try;;
10424   esac
10425 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426 <  (eval "$ac_link") 2>conftest.er1
10425 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10426 > $as_echo "$ac_try_echo") >&5
10427 >  (eval "$ac_compile") 2>conftest.er1
10428    ac_status=$?
10429    grep -v '^ *+' conftest.er1 >conftest.err
10430    rm -f conftest.er1
10431    cat conftest.err >&5
10432 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433    (exit $ac_status); } && {
10434           test -z "$ac_c_werror_flag" ||
10435           test ! -s conftest.err
10436 <       } && test -s conftest$ac_exeext &&
10437 <       $as_test_x conftest$ac_exeext; then
10573 <  ac_cv_lib_gnugetopt_getopt_long=yes
10574 < else
10575 <  echo "$as_me: failed program was:" >&5
10576 < sed 's/^/| /' conftest.$ac_ext >&5
10577 <
10578 <        ac_cv_lib_gnugetopt_getopt_long=no
10579 < fi
10580 <
10581 < rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10582 <      conftest$ac_exeext conftest.$ac_ext
10583 < LIBS=$ac_check_lib_save_LIBS
10584 < fi
10585 < { echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
10586 < echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6; }
10587 < if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
10588 <  cat >>confdefs.h <<\_ACEOF
10589 < #define HAVE_GETOPT_LONG 1
10590 < _ACEOF
10591 <
10592 < else
10593 <  # use the GNU replacement
10594 <      case " $LIBOBJS " in
10595 <  *" getopt.$ac_objext "* ) ;;
10596 <  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
10597 < ;;
10598 < esac
10599 <
10600 <      case " $LIBOBJS " in
10601 <  *" getopt1.$ac_objext "* ) ;;
10602 <  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
10603 < ;;
10604 < esac
10605 <
10606 <      ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h"
10607 <
10608 < fi
10609 <
10610 < fi
10611 < done
10612 <
10613 <
10614 < ac_ext=cpp
10615 < ac_cpp='$CXXCPP $CPPFLAGS'
10616 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10617 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10618 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10619 <
10620 <
10621 < { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
10622 < echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
10623 < if test "${ac_cv_cxx_namespaces+set}" = set; then
10624 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10625 < else
10626 <
10627 < ac_ext=cpp
10628 < ac_cpp='$CXXCPP $CPPFLAGS'
10629 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10630 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10631 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10632 <
10633 < cat >conftest.$ac_ext <<_ACEOF
10436 >       } && test -s conftest.$ac_objext; then
10437 >  cat >conftest.$ac_ext <<_ACEOF
10438   /* confdefs.h.  */
10439   _ACEOF
10440   cat confdefs.h >>conftest.$ac_ext
10441   cat >>conftest.$ac_ext <<_ACEOF
10442   /* end confdefs.h.  */
10443 < namespace Outer { namespace Inner { int i = 0; }}
10443 > $ac_includes_default
10444   #ifdef FC_DUMMY_MAIN
10445   #ifndef FC_DUMMY_MAIN_EQ_F77
10446   #  ifdef __cplusplus
# Line 10648 | Line 10452 | main ()
10452   int
10453   main ()
10454   {
10455 < using namespace Outer::Inner; return i;
10455 > if (sizeof ((_Bool)))
10456 >          return 0;
10457    ;
10458    return 0;
10459   }
# Line 10659 | Line 10464 | esac
10464    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465    *) ac_try_echo=$ac_try;;
10466   esac
10467 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10468 > $as_echo "$ac_try_echo") >&5
10469    (eval "$ac_compile") 2>conftest.er1
10470    ac_status=$?
10471    grep -v '^ *+' conftest.er1 >conftest.err
10472    rm -f conftest.er1
10473    cat conftest.err >&5
10474 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475    (exit $ac_status); } && {
10476 <         test -z "$ac_cxx_werror_flag" ||
10476 >         test -z "$ac_c_werror_flag" ||
10477           test ! -s conftest.err
10478         } && test -s conftest.$ac_objext; then
10479 <  ac_cv_cxx_namespaces=yes
10479 >  :
10480   else
10481 <  echo "$as_me: failed program was:" >&5
10481 >  $as_echo "$as_me: failed program was:" >&5
10482   sed 's/^/| /' conftest.$ac_ext >&5
10483  
10484 <        ac_cv_cxx_namespaces=no
10484 >        ac_cv_type__Bool=yes
10485   fi
10486  
10487   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10488 < ac_ext=cpp
10489 < ac_cpp='$CXXCPP $CPPFLAGS'
10490 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10685 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10686 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10488 > else
10489 >  $as_echo "$as_me: failed program was:" >&5
10490 > sed 's/^/| /' conftest.$ac_ext >&5
10491  
10492  
10493   fi
10690 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
10691 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
10692 if test "$ac_cv_cxx_namespaces" = yes; then
10494  
10495 < cat >>confdefs.h <<\_ACEOF
10496 < #define HAVE_NAMESPACES
10495 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10496 > fi
10497 > { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10498 > $as_echo "$ac_cv_type__Bool" >&6; }
10499 > if test $ac_cv_type__Bool = yes; then
10500 >
10501 > cat >>confdefs.h <<_ACEOF
10502 > #define HAVE__BOOL 1
10503   _ACEOF
10504  
10505 +
10506   fi
10507  
10508 < ac_ext=cpp
10509 < ac_cpp='$CXXCPP $CPPFLAGS'
10510 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10511 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10704 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10705 < { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10706 < echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10707 < if test -z "$CXXCPP"; then
10708 <  if test "${ac_cv_prog_CXXCPP+set}" = set; then
10709 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10710 < else
10711 <      # Double quotes because CXXCPP needs to be expanded
10712 <    for CXXCPP in "$CXX -E" "/lib/cpp"
10713 <    do
10714 <      ac_preproc_ok=false
10715 < for ac_cxx_preproc_warn_flag in '' yes
10716 < do
10717 <  # Use a header file that comes with gcc, so configuring glibc
10718 <  # with a fresh cross-compiler works.
10719 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10720 <  # <limits.h> exists even on freestanding compilers.
10721 <  # On the NeXT, cc -E runs the code through the compiler's parser,
10722 <  # not just through cpp. "Syntax error" is here to catch this case.
10723 <  cat >conftest.$ac_ext <<_ACEOF
10724 < /* confdefs.h.  */
10508 > if test $ac_cv_header_stdbool_h = yes; then
10509 >
10510 > cat >>confdefs.h <<\_ACEOF
10511 > #define HAVE_STDBOOL_H 1
10512   _ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h.  */
10729 #ifdef __STDC__
10730 # include <limits.h>
10731 #else
10732 # include <assert.h>
10733 #endif
10734                     Syntax error
10735 _ACEOF
10736 if { (ac_try="$ac_cpp conftest.$ac_ext"
10737 case "(($ac_try" in
10738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739  *) ac_try_echo=$ac_try;;
10740 esac
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10743  ac_status=$?
10744  grep -v '^ *+' conftest.er1 >conftest.err
10745  rm -f conftest.er1
10746  cat conftest.err >&5
10747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748  (exit $ac_status); } >/dev/null && {
10749         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10750         test ! -s conftest.err
10751       }; then
10752  :
10753 else
10754  echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.$ac_ext >&5
10513  
10757  # Broken: fails on valid input.
10758 continue
10514   fi
10515  
10516 < rm -f conftest.err conftest.$ac_ext
10517 <
10518 <  # OK, works on sane cases.  Now check whether nonexistent headers
10519 <  # can be detected and how.
10516 > { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10517 > $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10518 > if test "${ac_cv_c_const+set}" = set; then
10519 >  $as_echo_n "(cached) " >&6
10520 > else
10521    cat >conftest.$ac_ext <<_ACEOF
10522   /* confdefs.h.  */
10523   _ACEOF
10524   cat confdefs.h >>conftest.$ac_ext
10525   cat >>conftest.$ac_ext <<_ACEOF
10526   /* end confdefs.h.  */
10527 < #include <ac_nonexistent.h>
10527 >
10528 > #ifdef FC_DUMMY_MAIN
10529 > #ifndef FC_DUMMY_MAIN_EQ_F77
10530 > #  ifdef __cplusplus
10531 >     extern "C"
10532 > #  endif
10533 >   int FC_DUMMY_MAIN() { return 1; }
10534 > #endif
10535 > #endif
10536 > int
10537 > main ()
10538 > {
10539 > /* FIXME: Include the comments suggested by Paul. */
10540 > #ifndef __cplusplus
10541 >  /* Ultrix mips cc rejects this.  */
10542 >  typedef int charset[2];
10543 >  const charset cs;
10544 >  /* SunOS 4.1.1 cc rejects this.  */
10545 >  char const *const *pcpcc;
10546 >  char **ppc;
10547 >  /* NEC SVR4.0.2 mips cc rejects this.  */
10548 >  struct point {int x, y;};
10549 >  static struct point const zero = {0,0};
10550 >  /* AIX XL C 1.02.0.0 rejects this.
10551 >     It does not let you subtract one const X* pointer from another in
10552 >     an arm of an if-expression whose if-part is not a constant
10553 >     expression */
10554 >  const char *g = "string";
10555 >  pcpcc = &g + (g ? g-g : 0);
10556 >  /* HPUX 7.0 cc rejects these. */
10557 >  ++pcpcc;
10558 >  ppc = (char**) pcpcc;
10559 >  pcpcc = (char const *const *) ppc;
10560 >  { /* SCO 3.2v4 cc rejects this.  */
10561 >    char *t;
10562 >    char const *s = 0 ? (char *) 0 : (char const *) 0;
10563 >
10564 >    *t++ = 0;
10565 >    if (s) return 0;
10566 >  }
10567 >  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10568 >    int x[] = {25, 17};
10569 >    const int *foo = &x[0];
10570 >    ++foo;
10571 >  }
10572 >  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10573 >    typedef const int *iptr;
10574 >    iptr p = 0;
10575 >    ++p;
10576 >  }
10577 >  { /* AIX XL C 1.02.0.0 rejects this saying
10578 >       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10579 >    struct s { int j; const int *ap[3]; };
10580 >    struct s *b; b->j = 5;
10581 >  }
10582 >  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10583 >    const int foo = 10;
10584 >    if (!foo) return 0;
10585 >  }
10586 >  return !cs[0] && !zero.x;
10587 > #endif
10588 >
10589 >  ;
10590 >  return 0;
10591 > }
10592   _ACEOF
10593 < if { (ac_try="$ac_cpp conftest.$ac_ext"
10593 > rm -f conftest.$ac_objext
10594 > if { (ac_try="$ac_compile"
10595   case "(($ac_try" in
10596    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597    *) ac_try_echo=$ac_try;;
10598   esac
10599 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10599 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10600 > $as_echo "$ac_try_echo") >&5
10601 >  (eval "$ac_compile") 2>conftest.er1
10602    ac_status=$?
10603    grep -v '^ *+' conftest.er1 >conftest.err
10604    rm -f conftest.er1
10605    cat conftest.err >&5
10606 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 <  (exit $ac_status); } >/dev/null && {
10608 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10606 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 >  (exit $ac_status); } && {
10608 >         test -z "$ac_c_werror_flag" ||
10609           test ! -s conftest.err
10610 <       }; then
10611 <  # Broken: success on invalid input.
10790 < continue
10610 >       } && test -s conftest.$ac_objext; then
10611 >  ac_cv_c_const=yes
10612   else
10613 <  echo "$as_me: failed program was:" >&5
10613 >  $as_echo "$as_me: failed program was:" >&5
10614   sed 's/^/| /' conftest.$ac_ext >&5
10615  
10616 <  # Passes both tests.
10796 < ac_preproc_ok=:
10797 < break
10616 >        ac_cv_c_const=no
10617   fi
10618  
10619 < rm -f conftest.err conftest.$ac_ext
10801 <
10802 < done
10803 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10804 < rm -f conftest.err conftest.$ac_ext
10805 < if $ac_preproc_ok; then
10806 <  break
10619 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10620   fi
10621 + { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10622 + $as_echo "$ac_cv_c_const" >&6; }
10623 + if test $ac_cv_c_const = no; then
10624  
10625 <    done
10626 <    ac_cv_prog_CXXCPP=$CXXCPP
10625 > cat >>confdefs.h <<\_ACEOF
10626 > #define const /**/
10627 > _ACEOF
10628  
10629   fi
10630 <  CXXCPP=$ac_cv_prog_CXXCPP
10630 >
10631 > { $as_echo "$as_me:$LINENO: checking for inline" >&5
10632 > $as_echo_n "checking for inline... " >&6; }
10633 > if test "${ac_cv_c_inline+set}" = set; then
10634 >  $as_echo_n "(cached) " >&6
10635   else
10636 <  ac_cv_prog_CXXCPP=$CXXCPP
10637 < fi
10817 < { echo "$as_me:$LINENO: result: $CXXCPP" >&5
10818 < echo "${ECHO_T}$CXXCPP" >&6; }
10819 < ac_preproc_ok=false
10820 < for ac_cxx_preproc_warn_flag in '' yes
10821 < do
10822 <  # Use a header file that comes with gcc, so configuring glibc
10823 <  # with a fresh cross-compiler works.
10824 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10825 <  # <limits.h> exists even on freestanding compilers.
10826 <  # On the NeXT, cc -E runs the code through the compiler's parser,
10827 <  # not just through cpp. "Syntax error" is here to catch this case.
10636 >  ac_cv_c_inline=no
10637 > for ac_kw in inline __inline__ __inline; do
10638    cat >conftest.$ac_ext <<_ACEOF
10639   /* confdefs.h.  */
10640   _ACEOF
10641   cat confdefs.h >>conftest.$ac_ext
10642   cat >>conftest.$ac_ext <<_ACEOF
10643   /* end confdefs.h.  */
10644 < #ifdef __STDC__
10645 < # include <limits.h>
10646 < #else
10647 < # include <assert.h>
10644 > #ifndef __cplusplus
10645 > typedef int foo_t;
10646 > static $ac_kw foo_t static_foo () {return 0; }
10647 > $ac_kw foo_t foo () {return 0; }
10648   #endif
10839                     Syntax error
10840 _ACEOF
10841 if { (ac_try="$ac_cpp conftest.$ac_ext"
10842 case "(($ac_try" in
10843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844  *) ac_try_echo=$ac_try;;
10845 esac
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10848  ac_status=$?
10849  grep -v '^ *+' conftest.er1 >conftest.err
10850  rm -f conftest.er1
10851  cat conftest.err >&5
10852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853  (exit $ac_status); } >/dev/null && {
10854         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10855         test ! -s conftest.err
10856       }; then
10857  :
10858 else
10859  echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10649  
10862  # Broken: fails on valid input.
10863 continue
10864 fi
10865
10866 rm -f conftest.err conftest.$ac_ext
10867
10868  # OK, works on sane cases.  Now check whether nonexistent headers
10869  # can be detected and how.
10870  cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h.  */
10650   _ACEOF
10651 < cat confdefs.h >>conftest.$ac_ext
10652 < cat >>conftest.$ac_ext <<_ACEOF
10875 < /* end confdefs.h.  */
10876 < #include <ac_nonexistent.h>
10877 < _ACEOF
10878 < if { (ac_try="$ac_cpp conftest.$ac_ext"
10651 > rm -f conftest.$ac_objext
10652 > if { (ac_try="$ac_compile"
10653   case "(($ac_try" in
10654    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655    *) ac_try_echo=$ac_try;;
10656   esac
10657 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10657 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10658 > $as_echo "$ac_try_echo") >&5
10659 >  (eval "$ac_compile") 2>conftest.er1
10660    ac_status=$?
10661    grep -v '^ *+' conftest.er1 >conftest.err
10662    rm -f conftest.er1
10663    cat conftest.err >&5
10664 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 <  (exit $ac_status); } >/dev/null && {
10666 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10664 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 >  (exit $ac_status); } && {
10666 >         test -z "$ac_c_werror_flag" ||
10667           test ! -s conftest.err
10668 <       }; then
10669 <  # Broken: success on invalid input.
10895 < continue
10668 >       } && test -s conftest.$ac_objext; then
10669 >  ac_cv_c_inline=$ac_kw
10670   else
10671 <  echo "$as_me: failed program was:" >&5
10671 >  $as_echo "$as_me: failed program was:" >&5
10672   sed 's/^/| /' conftest.$ac_ext >&5
10673  
10674 <  # Passes both tests.
10901 < ac_preproc_ok=:
10902 < break
10674 >
10675   fi
10676  
10677 < rm -f conftest.err conftest.$ac_ext
10678 <
10677 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10678 >  test "$ac_cv_c_inline" != no && break
10679   done
10680 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10909 < rm -f conftest.err conftest.$ac_ext
10910 < if $ac_preproc_ok; then
10911 <  :
10912 < else
10913 <  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10914 < See \`config.log' for more details." >&5
10915 < echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10916 < See \`config.log' for more details." >&2;}
10917 <   { (exit 1); exit 1; }; }
10680 >
10681   fi
10682 + { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10683 + $as_echo "$ac_cv_c_inline" >&6; }
10684  
10920 ac_ext=cpp
10921 ac_cpp='$CXXCPP $CPPFLAGS'
10922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10685  
10686 <
10687 < { echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
10688 < echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6; }
10689 < if test "${ac_cv_cxx_have_stl+set}" = set; then
10690 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10691 < else
10692 <
10686 > case $ac_cv_c_inline in
10687 >  inline | yes) ;;
10688 >  *)
10689 >    case $ac_cv_c_inline in
10690 >      no) ac_val=;;
10691 >      *) ac_val=$ac_cv_c_inline;;
10692 >    esac
10693 >    cat >>confdefs.h <<_ACEOF
10694 > #ifndef __cplusplus
10695 > #define inline $ac_val
10696 > #endif
10697 > _ACEOF
10698 >    ;;
10699 > esac
10700  
10701 < ac_ext=cpp
10702 < ac_cpp='$CXXCPP $CPPFLAGS'
10703 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10704 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10705 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10706 <
10707 < cat >conftest.$ac_ext <<_ACEOF
10701 > { $as_echo "$as_me:$LINENO: checking for size_t" >&5
10702 > $as_echo_n "checking for size_t... " >&6; }
10703 > if test "${ac_cv_type_size_t+set}" = set; then
10704 >  $as_echo_n "(cached) " >&6
10705 > else
10706 >  ac_cv_type_size_t=no
10707 > cat >conftest.$ac_ext <<_ACEOF
10708   /* confdefs.h.  */
10709   _ACEOF
10710   cat confdefs.h >>conftest.$ac_ext
10711   cat >>conftest.$ac_ext <<_ACEOF
10712   /* end confdefs.h.  */
10713 < #include <list>
10947 < #include <deque>
10948 < #ifdef HAVE_NAMESPACES
10949 < using namespace std;
10950 < #endif
10713 > $ac_includes_default
10714   #ifdef FC_DUMMY_MAIN
10715   #ifndef FC_DUMMY_MAIN_EQ_F77
10716   #  ifdef __cplusplus
# Line 10959 | Line 10722 | main ()
10722   int
10723   main ()
10724   {
10725 < list<int> x; x.push_back(5);
10726 < list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
10725 > if (sizeof (size_t))
10726 >       return 0;
10727    ;
10728    return 0;
10729   }
# Line 10971 | Line 10734 | esac
10734    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735    *) ac_try_echo=$ac_try;;
10736   esac
10737 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10738 > $as_echo "$ac_try_echo") >&5
10739    (eval "$ac_compile") 2>conftest.er1
10740    ac_status=$?
10741    grep -v '^ *+' conftest.er1 >conftest.err
10742    rm -f conftest.er1
10743    cat conftest.err >&5
10744 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745    (exit $ac_status); } && {
10746 <         test -z "$ac_cxx_werror_flag" ||
10746 >         test -z "$ac_c_werror_flag" ||
10747           test ! -s conftest.err
10748         } && test -s conftest.$ac_objext; then
10749 <  ac_cv_cxx_have_stl=yes
10986 < else
10987 <  echo "$as_me: failed program was:" >&5
10988 < sed 's/^/| /' conftest.$ac_ext >&5
10989 <
10990 <        ac_cv_cxx_have_stl=no
10991 < fi
10992 <
10993 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10994 < ac_ext=cpp
10995 < ac_cpp='$CXXCPP $CPPFLAGS'
10996 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10997 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10998 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10999 <
11000 <
11001 < fi
11002 < { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
11003 < echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6; }
11004 < if test "$ac_cv_cxx_have_stl" = yes; then
11005 <
11006 < cat >>confdefs.h <<\_ACEOF
11007 < #define HAVE_STL
11008 < _ACEOF
11009 <
11010 < fi
11011 <
11012 <
11013 <
11014 <  if test "${ac_cv_header_iostream+set}" = set; then
11015 <  { echo "$as_me:$LINENO: checking for iostream" >&5
11016 < echo $ECHO_N "checking for iostream... $ECHO_C" >&6; }
11017 < if test "${ac_cv_header_iostream+set}" = set; then
11018 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11019 < fi
11020 < { echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5
11021 < echo "${ECHO_T}$ac_cv_header_iostream" >&6; }
11022 < else
11023 <  # Is the header compilable?
11024 < { echo "$as_me:$LINENO: checking iostream usability" >&5
11025 < echo $ECHO_N "checking iostream usability... $ECHO_C" >&6; }
11026 < cat >conftest.$ac_ext <<_ACEOF
10749 >  cat >conftest.$ac_ext <<_ACEOF
10750   /* confdefs.h.  */
10751   _ACEOF
10752   cat confdefs.h >>conftest.$ac_ext
10753   cat >>conftest.$ac_ext <<_ACEOF
10754   /* end confdefs.h.  */
10755   $ac_includes_default
10756 < #include <iostream>
10756 > #ifdef FC_DUMMY_MAIN
10757 > #ifndef FC_DUMMY_MAIN_EQ_F77
10758 > #  ifdef __cplusplus
10759 >     extern "C"
10760 > #  endif
10761 >   int FC_DUMMY_MAIN() { return 1; }
10762 > #endif
10763 > #endif
10764 > int
10765 > main ()
10766 > {
10767 > if (sizeof ((size_t)))
10768 >          return 0;
10769 >  ;
10770 >  return 0;
10771 > }
10772   _ACEOF
10773   rm -f conftest.$ac_objext
10774   if { (ac_try="$ac_compile"
# Line 11038 | Line 10776 | esac
10776    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777    *) ac_try_echo=$ac_try;;
10778   esac
10779 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10780 > $as_echo "$ac_try_echo") >&5
10781    (eval "$ac_compile") 2>conftest.er1
10782    ac_status=$?
10783    grep -v '^ *+' conftest.er1 >conftest.err
10784    rm -f conftest.er1
10785    cat conftest.err >&5
10786 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787    (exit $ac_status); } && {
10788 <         test -z "$ac_cxx_werror_flag" ||
10788 >         test -z "$ac_c_werror_flag" ||
10789           test ! -s conftest.err
10790         } && test -s conftest.$ac_objext; then
10791 <  ac_header_compiler=yes
10791 >  :
10792   else
10793 <  echo "$as_me: failed program was:" >&5
10793 >  $as_echo "$as_me: failed program was:" >&5
10794   sed 's/^/| /' conftest.$ac_ext >&5
10795  
10796 <        ac_header_compiler=no
10796 >        ac_cv_type_size_t=yes
10797   fi
10798  
10799   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11061 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11062 echo "${ECHO_T}$ac_header_compiler" >&6; }
11063
11064 # Is the header present?
11065 { echo "$as_me:$LINENO: checking iostream presence" >&5
11066 echo $ECHO_N "checking iostream presence... $ECHO_C" >&6; }
11067 cat >conftest.$ac_ext <<_ACEOF
11068 /* confdefs.h.  */
11069 _ACEOF
11070 cat confdefs.h >>conftest.$ac_ext
11071 cat >>conftest.$ac_ext <<_ACEOF
11072 /* end confdefs.h.  */
11073 #include <iostream>
11074 _ACEOF
11075 if { (ac_try="$ac_cpp conftest.$ac_ext"
11076 case "(($ac_try" in
11077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078  *) ac_try_echo=$ac_try;;
11079 esac
11080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11082  ac_status=$?
11083  grep -v '^ *+' conftest.er1 >conftest.err
11084  rm -f conftest.er1
11085  cat conftest.err >&5
11086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087  (exit $ac_status); } >/dev/null && {
11088         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11089         test ! -s conftest.err
11090       }; then
11091  ac_header_preproc=yes
10800   else
10801 <  echo "$as_me: failed program was:" >&5
10801 >  $as_echo "$as_me: failed program was:" >&5
10802   sed 's/^/| /' conftest.$ac_ext >&5
10803  
11096  ac_header_preproc=no
11097 fi
10804  
11099 rm -f conftest.err conftest.$ac_ext
11100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11101 echo "${ECHO_T}$ac_header_preproc" >&6; }
11102
11103 # So?  What about this header?
11104 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11105  yes:no: )
11106    { echo "$as_me:$LINENO: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&5
11107 echo "$as_me: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&2;}
11108    { echo "$as_me:$LINENO: WARNING: iostream: proceeding with the compiler's result" >&5
11109 echo "$as_me: WARNING: iostream: proceeding with the compiler's result" >&2;}
11110    ac_header_preproc=yes
11111    ;;
11112  no:yes:* )
11113    { echo "$as_me:$LINENO: WARNING: iostream: present but cannot be compiled" >&5
11114 echo "$as_me: WARNING: iostream: present but cannot be compiled" >&2;}
11115    { echo "$as_me:$LINENO: WARNING: iostream:     check for missing prerequisite headers?" >&5
11116 echo "$as_me: WARNING: iostream:     check for missing prerequisite headers?" >&2;}
11117    { echo "$as_me:$LINENO: WARNING: iostream: see the Autoconf documentation" >&5
11118 echo "$as_me: WARNING: iostream: see the Autoconf documentation" >&2;}
11119    { echo "$as_me:$LINENO: WARNING: iostream:     section \"Present But Cannot Be Compiled\"" >&5
11120 echo "$as_me: WARNING: iostream:     section \"Present But Cannot Be Compiled\"" >&2;}
11121    { echo "$as_me:$LINENO: WARNING: iostream: proceeding with the preprocessor's result" >&5
11122 echo "$as_me: WARNING: iostream: proceeding with the preprocessor's result" >&2;}
11123    { echo "$as_me:$LINENO: WARNING: iostream: in the future, the compiler will take precedence" >&5
11124 echo "$as_me: WARNING: iostream: in the future, the compiler will take precedence" >&2;}
11125    ( cat <<\_ASBOX
11126 ## ------------------------------ ##
11127 ## Report this to gezelter@nd.edu ##
11128 ## ------------------------------ ##
11129 _ASBOX
11130     ) | sed "s/^/$as_me: WARNING:     /" >&2
11131    ;;
11132 esac
11133 { echo "$as_me:$LINENO: checking for iostream" >&5
11134 echo $ECHO_N "checking for iostream... $ECHO_C" >&6; }
11135 if test "${ac_cv_header_iostream+set}" = set; then
11136  echo $ECHO_N "(cached) $ECHO_C" >&6
11137 else
11138  ac_cv_header_iostream=$ac_header_preproc
10805   fi
11140 { echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5
11141 echo "${ECHO_T}$ac_cv_header_iostream" >&6; }
10806  
10807 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10808   fi
10809 < if test $ac_cv_header_iostream = yes; then
10810 <
10811 <
10812 < cat >>confdefs.h <<\_ACEOF
11148 < #define HAVE_IOSTREAM 1
11149 < _ACEOF
11150 <
11151 <
10809 > { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10810 > $as_echo "$ac_cv_type_size_t" >&6; }
10811 > if test $ac_cv_type_size_t = yes; then
10812 >  :
10813   else
10814  
10815 <
10816 < for ac_header in iostream.h
11156 < do
11157 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11158 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11159 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11160 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11161 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11162 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11163 < fi
11164 < ac_res=`eval echo '${'$as_ac_Header'}'`
11165 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
11166 < echo "${ECHO_T}$ac_res" >&6; }
11167 < else
11168 <  # Is the header compilable?
11169 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11170 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11171 < cat >conftest.$ac_ext <<_ACEOF
11172 < /* confdefs.h.  */
11173 < _ACEOF
11174 < cat confdefs.h >>conftest.$ac_ext
11175 < cat >>conftest.$ac_ext <<_ACEOF
11176 < /* end confdefs.h.  */
11177 < $ac_includes_default
11178 < #include <$ac_header>
11179 < _ACEOF
11180 < rm -f conftest.$ac_objext
11181 < if { (ac_try="$ac_compile"
11182 < case "(($ac_try" in
11183 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 <  *) ac_try_echo=$ac_try;;
11185 < esac
11186 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 <  (eval "$ac_compile") 2>conftest.er1
11188 <  ac_status=$?
11189 <  grep -v '^ *+' conftest.er1 >conftest.err
11190 <  rm -f conftest.er1
11191 <  cat conftest.err >&5
11192 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 <  (exit $ac_status); } && {
11194 <         test -z "$ac_cxx_werror_flag" ||
11195 <         test ! -s conftest.err
11196 <       } && test -s conftest.$ac_objext; then
11197 <  ac_header_compiler=yes
11198 < else
11199 <  echo "$as_me: failed program was:" >&5
11200 < sed 's/^/| /' conftest.$ac_ext >&5
11201 <
11202 <        ac_header_compiler=no
11203 < fi
11204 <
11205 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11207 < echo "${ECHO_T}$ac_header_compiler" >&6; }
11208 <
11209 < # Is the header present?
11210 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11211 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11212 < cat >conftest.$ac_ext <<_ACEOF
11213 < /* confdefs.h.  */
10815 > cat >>confdefs.h <<_ACEOF
10816 > #define size_t unsigned int
10817   _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h.  */
11218 #include <$ac_header>
11219 _ACEOF
11220 if { (ac_try="$ac_cpp conftest.$ac_ext"
11221 case "(($ac_try" in
11222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223  *) ac_try_echo=$ac_try;;
11224 esac
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11227  ac_status=$?
11228  grep -v '^ *+' conftest.er1 >conftest.err
11229  rm -f conftest.er1
11230  cat conftest.err >&5
11231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232  (exit $ac_status); } >/dev/null && {
11233         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11234         test ! -s conftest.err
11235       }; then
11236  ac_header_preproc=yes
11237 else
11238  echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
10818  
11241  ac_header_preproc=no
10819   fi
10820  
10821 < rm -f conftest.err conftest.$ac_ext
10822 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10823 < echo "${ECHO_T}$ac_header_preproc" >&6; }
10824 <
11248 < # So?  What about this header?
11249 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11250 <  yes:no: )
11251 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11252 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11253 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11254 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11255 <    ac_header_preproc=yes
11256 <    ;;
11257 <  no:yes:* )
11258 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11259 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11260 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11261 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11262 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11263 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11264 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11265 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11266 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11267 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11268 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11269 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11270 <    ( cat <<\_ASBOX
11271 < ## ------------------------------ ##
11272 < ## Report this to gezelter@nd.edu ##
11273 < ## ------------------------------ ##
11274 < _ASBOX
11275 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
11276 <    ;;
11277 < esac
11278 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
11279 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11280 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11281 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10821 > { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10822 > $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10823 > if test "${ac_cv_header_time+set}" = set; then
10824 >  $as_echo_n "(cached) " >&6
10825   else
10826 <  eval "$as_ac_Header=\$ac_header_preproc"
11284 < fi
11285 < ac_res=`eval echo '${'$as_ac_Header'}'`
11286 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
11287 < echo "${ECHO_T}$ac_res" >&6; }
11288 <
11289 < fi
11290 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
11291 <  cat >>confdefs.h <<_ACEOF
11292 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11293 < _ACEOF
11294 <
11295 < fi
11296 <
11297 < done
11298 <
11299 <
11300 < fi
11301 <
11302 <
11303 <
11304 <
11305 <  if test "${ac_cv_header_iomanip+set}" = set; then
11306 <  { echo "$as_me:$LINENO: checking for iomanip" >&5
11307 < echo $ECHO_N "checking for iomanip... $ECHO_C" >&6; }
11308 < if test "${ac_cv_header_iomanip+set}" = set; then
11309 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11310 < fi
11311 < { echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5
11312 < echo "${ECHO_T}$ac_cv_header_iomanip" >&6; }
11313 < else
11314 <  # Is the header compilable?
11315 < { echo "$as_me:$LINENO: checking iomanip usability" >&5
11316 < echo $ECHO_N "checking iomanip usability... $ECHO_C" >&6; }
11317 < cat >conftest.$ac_ext <<_ACEOF
10826 >  cat >conftest.$ac_ext <<_ACEOF
10827   /* confdefs.h.  */
10828   _ACEOF
10829   cat confdefs.h >>conftest.$ac_ext
10830   cat >>conftest.$ac_ext <<_ACEOF
10831   /* end confdefs.h.  */
10832 < $ac_includes_default
10833 < #include <iomanip>
10832 > #include <sys/types.h>
10833 > #include <sys/time.h>
10834 > #include <time.h>
10835 >
10836 > #ifdef FC_DUMMY_MAIN
10837 > #ifndef FC_DUMMY_MAIN_EQ_F77
10838 > #  ifdef __cplusplus
10839 >     extern "C"
10840 > #  endif
10841 >   int FC_DUMMY_MAIN() { return 1; }
10842 > #endif
10843 > #endif
10844 > int
10845 > main ()
10846 > {
10847 > if ((struct tm *) 0)
10848 > return 0;
10849 >  ;
10850 >  return 0;
10851 > }
10852   _ACEOF
10853   rm -f conftest.$ac_objext
10854   if { (ac_try="$ac_compile"
# Line 11329 | Line 10856 | esac
10856    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857    *) ac_try_echo=$ac_try;;
10858   esac
10859 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10860 > $as_echo "$ac_try_echo") >&5
10861    (eval "$ac_compile") 2>conftest.er1
10862    ac_status=$?
10863    grep -v '^ *+' conftest.er1 >conftest.err
10864    rm -f conftest.er1
10865    cat conftest.err >&5
10866 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867    (exit $ac_status); } && {
10868 <         test -z "$ac_cxx_werror_flag" ||
10868 >         test -z "$ac_c_werror_flag" ||
10869           test ! -s conftest.err
10870         } && test -s conftest.$ac_objext; then
10871 <  ac_header_compiler=yes
10871 >  ac_cv_header_time=yes
10872   else
10873 <  echo "$as_me: failed program was:" >&5
10873 >  $as_echo "$as_me: failed program was:" >&5
10874   sed 's/^/| /' conftest.$ac_ext >&5
10875  
10876 <        ac_header_compiler=no
11349 < fi
11350 <
11351 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11352 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11353 < echo "${ECHO_T}$ac_header_compiler" >&6; }
11354 <
11355 < # Is the header present?
11356 < { echo "$as_me:$LINENO: checking iomanip presence" >&5
11357 < echo $ECHO_N "checking iomanip presence... $ECHO_C" >&6; }
11358 < cat >conftest.$ac_ext <<_ACEOF
11359 < /* confdefs.h.  */
11360 < _ACEOF
11361 < cat confdefs.h >>conftest.$ac_ext
11362 < cat >>conftest.$ac_ext <<_ACEOF
11363 < /* end confdefs.h.  */
11364 < #include <iomanip>
11365 < _ACEOF
11366 < if { (ac_try="$ac_cpp conftest.$ac_ext"
11367 < case "(($ac_try" in
11368 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 <  *) ac_try_echo=$ac_try;;
11370 < esac
11371 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11373 <  ac_status=$?
11374 <  grep -v '^ *+' conftest.er1 >conftest.err
11375 <  rm -f conftest.er1
11376 <  cat conftest.err >&5
11377 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 <  (exit $ac_status); } >/dev/null && {
11379 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11380 <         test ! -s conftest.err
11381 <       }; then
11382 <  ac_header_preproc=yes
11383 < else
11384 <  echo "$as_me: failed program was:" >&5
11385 < sed 's/^/| /' conftest.$ac_ext >&5
11386 <
11387 <  ac_header_preproc=no
11388 < fi
11389 <
11390 < rm -f conftest.err conftest.$ac_ext
11391 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11392 < echo "${ECHO_T}$ac_header_preproc" >&6; }
11393 <
11394 < # So?  What about this header?
11395 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11396 <  yes:no: )
11397 <    { echo "$as_me:$LINENO: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&5
11398 < echo "$as_me: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&2;}
11399 <    { echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the compiler's result" >&5
11400 < echo "$as_me: WARNING: iomanip: proceeding with the compiler's result" >&2;}
11401 <    ac_header_preproc=yes
11402 <    ;;
11403 <  no:yes:* )
11404 <    { echo "$as_me:$LINENO: WARNING: iomanip: present but cannot be compiled" >&5
11405 < echo "$as_me: WARNING: iomanip: present but cannot be compiled" >&2;}
11406 <    { echo "$as_me:$LINENO: WARNING: iomanip:     check for missing prerequisite headers?" >&5
11407 < echo "$as_me: WARNING: iomanip:     check for missing prerequisite headers?" >&2;}
11408 <    { echo "$as_me:$LINENO: WARNING: iomanip: see the Autoconf documentation" >&5
11409 < echo "$as_me: WARNING: iomanip: see the Autoconf documentation" >&2;}
11410 <    { echo "$as_me:$LINENO: WARNING: iomanip:     section \"Present But Cannot Be Compiled\"" >&5
11411 < echo "$as_me: WARNING: iomanip:     section \"Present But Cannot Be Compiled\"" >&2;}
11412 <    { echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the preprocessor's result" >&5
11413 < echo "$as_me: WARNING: iomanip: proceeding with the preprocessor's result" >&2;}
11414 <    { echo "$as_me:$LINENO: WARNING: iomanip: in the future, the compiler will take precedence" >&5
11415 < echo "$as_me: WARNING: iomanip: in the future, the compiler will take precedence" >&2;}
11416 <    ( cat <<\_ASBOX
11417 < ## ------------------------------ ##
11418 < ## Report this to gezelter@nd.edu ##
11419 < ## ------------------------------ ##
11420 < _ASBOX
11421 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
11422 <    ;;
11423 < esac
11424 < { echo "$as_me:$LINENO: checking for iomanip" >&5
11425 < echo $ECHO_N "checking for iomanip... $ECHO_C" >&6; }
11426 < if test "${ac_cv_header_iomanip+set}" = set; then
11427 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11428 < else
11429 <  ac_cv_header_iomanip=$ac_header_preproc
10876 >        ac_cv_header_time=no
10877   fi
11431 { echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5
11432 echo "${ECHO_T}$ac_cv_header_iomanip" >&6; }
10878  
10879 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10880   fi
10881 < if test $ac_cv_header_iomanip = yes; then
10881 > { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10882 > $as_echo "$ac_cv_header_time" >&6; }
10883 > if test $ac_cv_header_time = yes; then
10884  
11437
10885   cat >>confdefs.h <<\_ACEOF
10886 < #define HAVE_IOMANIP 1
10886 > #define TIME_WITH_SYS_TIME 1
10887   _ACEOF
10888  
10889 + fi
10890  
11443 else
10891  
10892 + # Checks for library functions.
10893  
10894 < for ac_header in iomanip.h
10894 > for ac_header in stdlib.h
10895   do
10896 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10896 > as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10897   if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10898 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10899 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10898 >  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10899 > $as_echo_n "checking for $ac_header... " >&6; }
10900   if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10901 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10901 >  $as_echo_n "(cached) " >&6
10902   fi
10903 < ac_res=`eval echo '${'$as_ac_Header'}'`
10904 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
10905 < echo "${ECHO_T}$ac_res" >&6; }
10903 > ac_res=`eval 'as_val=${'$as_ac_Header'}
10904 >                 $as_echo "$as_val"'`
10905 >               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10906 > $as_echo "$ac_res" >&6; }
10907   else
10908    # Is the header compilable?
10909 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10910 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10909 > { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10910 > $as_echo_n "checking $ac_header usability... " >&6; }
10911   cat >conftest.$ac_ext <<_ACEOF
10912   /* confdefs.h.  */
10913   _ACEOF
# Line 11474 | Line 10923 | esac
10923    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924    *) ac_try_echo=$ac_try;;
10925   esac
10926 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10927 > $as_echo "$ac_try_echo") >&5
10928    (eval "$ac_compile") 2>conftest.er1
10929    ac_status=$?
10930    grep -v '^ *+' conftest.er1 >conftest.err
10931    rm -f conftest.er1
10932    cat conftest.err >&5
10933 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934    (exit $ac_status); } && {
10935 <         test -z "$ac_cxx_werror_flag" ||
10935 >         test -z "$ac_c_werror_flag" ||
10936           test ! -s conftest.err
10937         } && test -s conftest.$ac_objext; then
10938    ac_header_compiler=yes
10939   else
10940 <  echo "$as_me: failed program was:" >&5
10940 >  $as_echo "$as_me: failed program was:" >&5
10941   sed 's/^/| /' conftest.$ac_ext >&5
10942  
10943          ac_header_compiler=no
10944   fi
10945  
10946   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10947 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10948 < echo "${ECHO_T}$ac_header_compiler" >&6; }
10947 > { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10948 > $as_echo "$ac_header_compiler" >&6; }
10949  
10950   # Is the header present?
10951 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10952 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10951 > { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10952 > $as_echo_n "checking $ac_header presence... " >&6; }
10953   cat >conftest.$ac_ext <<_ACEOF
10954   /* confdefs.h.  */
10955   _ACEOF
# Line 11513 | Line 10963 | esac
10963    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964    *) ac_try_echo=$ac_try;;
10965   esac
10966 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10967 > $as_echo "$ac_try_echo") >&5
10968    (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10969    ac_status=$?
10970    grep -v '^ *+' conftest.er1 >conftest.err
10971    rm -f conftest.er1
10972    cat conftest.err >&5
10973 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974    (exit $ac_status); } >/dev/null && {
10975 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10975 >         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10976           test ! -s conftest.err
10977         }; then
10978    ac_header_preproc=yes
10979   else
10980 <  echo "$as_me: failed program was:" >&5
10980 >  $as_echo "$as_me: failed program was:" >&5
10981   sed 's/^/| /' conftest.$ac_ext >&5
10982  
10983    ac_header_preproc=no
10984   fi
10985  
10986   rm -f conftest.err conftest.$ac_ext
10987 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10988 < echo "${ECHO_T}$ac_header_preproc" >&6; }
10987 > { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10988 > $as_echo "$ac_header_preproc" >&6; }
10989  
10990   # So?  What about this header?
10991 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10991 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10992    yes:no: )
10993 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10994 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10995 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10996 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10993 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10994 > $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10995 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10996 > $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10997      ac_header_preproc=yes
10998      ;;
10999    no:yes:* )
11000 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11001 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11002 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11003 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11004 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11005 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11006 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11007 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11008 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11009 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11010 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11011 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11000 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11001 > $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11002 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11003 > $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11004 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11005 > $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11006 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11007 > $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11008 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11009 > $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11010 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11011 > $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11012      ( cat <<\_ASBOX
11013   ## ------------------------------ ##
11014   ## Report this to gezelter@nd.edu ##
# Line 11566 | Line 11017 | esac
11017       ) | sed "s/^/$as_me: WARNING:     /" >&2
11018      ;;
11019   esac
11020 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
11021 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11020 > { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11021 > $as_echo_n "checking for $ac_header... " >&6; }
11022   if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11023 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11023 >  $as_echo_n "(cached) " >&6
11024   else
11025    eval "$as_ac_Header=\$ac_header_preproc"
11026   fi
11027 < ac_res=`eval echo '${'$as_ac_Header'}'`
11028 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
11029 < echo "${ECHO_T}$ac_res" >&6; }
11027 > ac_res=`eval 'as_val=${'$as_ac_Header'}
11028 >                 $as_echo "$as_val"'`
11029 >               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11030 > $as_echo "$ac_res" >&6; }
11031  
11032   fi
11033 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
11033 > if test `eval 'as_val=${'$as_ac_Header'}
11034 >                 $as_echo "$as_val"'` = yes; then
11035    cat >>confdefs.h <<_ACEOF
11036 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11036 > #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11037   _ACEOF
11038  
11039   fi
11040  
11041   done
11042 +
11043 + { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
11044 + $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11045 + if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
11046 +  $as_echo_n "(cached) " >&6
11047 + else
11048 +  if test "$cross_compiling" = yes; then
11049 +  ac_cv_func_malloc_0_nonnull=no
11050 + else
11051 +  cat >conftest.$ac_ext <<_ACEOF
11052 + /* confdefs.h.  */
11053 + _ACEOF
11054 + cat confdefs.h >>conftest.$ac_ext
11055 + cat >>conftest.$ac_ext <<_ACEOF
11056 + /* end confdefs.h.  */
11057 + #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11058 + # include <stdlib.h>
11059 + #else
11060 + char *malloc ();
11061 + #endif
11062  
11063 + #ifdef FC_DUMMY_MAIN
11064 + #ifndef FC_DUMMY_MAIN_EQ_F77
11065 + #  ifdef __cplusplus
11066 +     extern "C"
11067 + #  endif
11068 +   int FC_DUMMY_MAIN() { return 1; }
11069 + #endif
11070 + #endif
11071 + int
11072 + main ()
11073 + {
11074 + return ! malloc (0);
11075 +  ;
11076 +  return 0;
11077 + }
11078 + _ACEOF
11079 + rm -f conftest$ac_exeext
11080 + if { (ac_try="$ac_link"
11081 + case "(($ac_try" in
11082 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 +  *) ac_try_echo=$ac_try;;
11084 + esac
11085 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11086 + $as_echo "$ac_try_echo") >&5
11087 +  (eval "$ac_link") 2>&5
11088 +  ac_status=$?
11089 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11091 +  { (case "(($ac_try" in
11092 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 +  *) ac_try_echo=$ac_try;;
11094 + esac
11095 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11096 + $as_echo "$ac_try_echo") >&5
11097 +  (eval "$ac_try") 2>&5
11098 +  ac_status=$?
11099 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 +  (exit $ac_status); }; }; then
11101 +  ac_cv_func_malloc_0_nonnull=yes
11102 + else
11103 +  $as_echo "$as_me: program exited with status $ac_status" >&5
11104 + $as_echo "$as_me: failed program was:" >&5
11105 + sed 's/^/| /' conftest.$ac_ext >&5
11106  
11107 + ( exit $ac_status )
11108 + ac_cv_func_malloc_0_nonnull=no
11109   fi
11110 + rm -rf conftest.dSYM
11111 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11112 + fi
11113  
11114  
11115 + fi
11116 + { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
11117 + $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11118 + if test $ac_cv_func_malloc_0_nonnull = yes; then
11119  
11120 + cat >>confdefs.h <<\_ACEOF
11121 + #define HAVE_MALLOC 1
11122 + _ACEOF
11123  
11124 < for ac_header in cmath
11124 > else
11125 >  cat >>confdefs.h <<\_ACEOF
11126 > #define HAVE_MALLOC 0
11127 > _ACEOF
11128 >
11129 >   case " $LIBOBJS " in
11130 >  *" malloc.$ac_objext "* ) ;;
11131 >  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
11132 > ;;
11133 > esac
11134 >
11135 >
11136 > cat >>confdefs.h <<\_ACEOF
11137 > #define malloc rpl_malloc
11138 > _ACEOF
11139 >
11140 > fi
11141 >
11142 >
11143 >
11144 >
11145 > for ac_header in stdlib.h
11146   do
11147 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11147 > as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11148   if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11149 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11150 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11149 >  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11150 > $as_echo_n "checking for $ac_header... " >&6; }
11151   if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11152 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11152 >  $as_echo_n "(cached) " >&6
11153   fi
11154 < ac_res=`eval echo '${'$as_ac_Header'}'`
11155 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
11156 < echo "${ECHO_T}$ac_res" >&6; }
11154 > ac_res=`eval 'as_val=${'$as_ac_Header'}
11155 >                 $as_echo "$as_val"'`
11156 >               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11157 > $as_echo "$ac_res" >&6; }
11158   else
11159    # Is the header compilable?
11160 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11161 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11160 > { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11161 > $as_echo_n "checking $ac_header usability... " >&6; }
11162   cat >conftest.$ac_ext <<_ACEOF
11163   /* confdefs.h.  */
11164   _ACEOF
# Line 11624 | Line 11174 | esac
11174    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175    *) ac_try_echo=$ac_try;;
11176   esac
11177 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11178 > $as_echo "$ac_try_echo") >&5
11179    (eval "$ac_compile") 2>conftest.er1
11180    ac_status=$?
11181    grep -v '^ *+' conftest.er1 >conftest.err
11182    rm -f conftest.er1
11183    cat conftest.err >&5
11184 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185    (exit $ac_status); } && {
11186 <         test -z "$ac_cxx_werror_flag" ||
11186 >         test -z "$ac_c_werror_flag" ||
11187           test ! -s conftest.err
11188         } && test -s conftest.$ac_objext; then
11189    ac_header_compiler=yes
11190   else
11191 <  echo "$as_me: failed program was:" >&5
11191 >  $as_echo "$as_me: failed program was:" >&5
11192   sed 's/^/| /' conftest.$ac_ext >&5
11193  
11194          ac_header_compiler=no
11195   fi
11196  
11197   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11198 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11199 < echo "${ECHO_T}$ac_header_compiler" >&6; }
11198 > { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11199 > $as_echo "$ac_header_compiler" >&6; }
11200  
11201   # Is the header present?
11202 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11203 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11202 > { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11203 > $as_echo_n "checking $ac_header presence... " >&6; }
11204   cat >conftest.$ac_ext <<_ACEOF
11205   /* confdefs.h.  */
11206   _ACEOF
# Line 11663 | Line 11214 | esac
11214    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11215    *) ac_try_echo=$ac_try;;
11216   esac
11217 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11218 > $as_echo "$ac_try_echo") >&5
11219    (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11220    ac_status=$?
11221    grep -v '^ *+' conftest.er1 >conftest.err
11222    rm -f conftest.er1
11223    cat conftest.err >&5
11224 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225    (exit $ac_status); } >/dev/null && {
11226 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11226 >         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11227           test ! -s conftest.err
11228         }; then
11229    ac_header_preproc=yes
11230   else
11231 <  echo "$as_me: failed program was:" >&5
11231 >  $as_echo "$as_me: failed program was:" >&5
11232   sed 's/^/| /' conftest.$ac_ext >&5
11233  
11234    ac_header_preproc=no
11235   fi
11236  
11237   rm -f conftest.err conftest.$ac_ext
11238 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11239 < echo "${ECHO_T}$ac_header_preproc" >&6; }
11238 > { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11239 > $as_echo "$ac_header_preproc" >&6; }
11240  
11241   # So?  What about this header?
11242 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11242 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11243    yes:no: )
11244 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11245 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11246 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11247 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11244 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11245 > $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11246 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11247 > $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11248      ac_header_preproc=yes
11249      ;;
11250    no:yes:* )
11251 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11252 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11253 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11254 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11255 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11256 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11257 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11258 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11259 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11260 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11261 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11262 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11251 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11252 > $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11253 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11254 > $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11255 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11256 > $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11257 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11258 > $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11259 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11260 > $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11261 >    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11262 > $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11263      ( cat <<\_ASBOX
11264   ## ------------------------------ ##
11265   ## Report this to gezelter@nd.edu ##
# Line 11716 | Line 11268 | esac
11268       ) | sed "s/^/$as_me: WARNING:     /" >&2
11269      ;;
11270   esac
11271 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
11272 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11271 > { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11272 > $as_echo_n "checking for $ac_header... " >&6; }
11273   if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11274 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11274 >  $as_echo_n "(cached) " >&6
11275   else
11276    eval "$as_ac_Header=\$ac_header_preproc"
11277   fi
11278 < ac_res=`eval echo '${'$as_ac_Header'}'`
11279 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
11280 < echo "${ECHO_T}$ac_res" >&6; }
11278 > ac_res=`eval 'as_val=${'$as_ac_Header'}
11279 >                 $as_echo "$as_val"'`
11280 >               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11281 > $as_echo "$ac_res" >&6; }
11282  
11283   fi
11284 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
11284 > if test `eval 'as_val=${'$as_ac_Header'}
11285 >                 $as_echo "$as_val"'` = yes; then
11286    cat >>confdefs.h <<_ACEOF
11287 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11287 > #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11288   _ACEOF
11289  
11290   fi
11291  
11292   done
11293  
11294 <
11295 <
11296 <
11297 <  { echo "$as_me:$LINENO: checking for C++ iostream in namespace std" >&5
11744 < echo $ECHO_N "checking for C++ iostream in namespace std... $ECHO_C" >&6; }
11745 < if test "${ac_cv_cxx_have_std_iostream+set}" = set; then
11746 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11294 > { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
11295 > $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
11296 > if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
11297 >  $as_echo_n "(cached) " >&6
11298   else
11299 <
11300 <      ac_cv_cxx_have_std_iostream=no
11301 <      ac_cv_cxx_need_use_std_iostream=no
11302 <      if test "x$ac_cv_cxx_namespaces" = xyes; then
11752 <
11753 <        ac_ext=cpp
11754 < ac_cpp='$CXXCPP $CPPFLAGS'
11755 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11756 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11757 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11758 <
11759 <        cat >conftest.$ac_ext <<_ACEOF
11299 >  if test "$cross_compiling" = yes; then
11300 >  ac_cv_func_realloc_0_nonnull=no
11301 > else
11302 >  cat >conftest.$ac_ext <<_ACEOF
11303   /* confdefs.h.  */
11304   _ACEOF
11305   cat confdefs.h >>conftest.$ac_ext
11306   cat >>conftest.$ac_ext <<_ACEOF
11307   /* end confdefs.h.  */
11308 <
11309 < #ifdef HAVE_IOSTREAM
11767 < #include <iostream>
11308 > #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11309 > # include <stdlib.h>
11310   #else
11311 < #include <iostream.h>
11311 > char *realloc ();
11312   #endif
11313  
11314   #ifdef FC_DUMMY_MAIN
# Line 11780 | Line 11322 | main ()
11322   int
11323   main ()
11324   {
11325 < std::cout<<"Hello World"<<std::endl;return 0;
11325 > return ! realloc (0, 0);
11326    ;
11327    return 0;
11328   }
11329   _ACEOF
11330 < rm -f conftest.$ac_objext
11331 < if { (ac_try="$ac_compile"
11330 > rm -f conftest$ac_exeext
11331 > if { (ac_try="$ac_link"
11332   case "(($ac_try" in
11333    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334    *) ac_try_echo=$ac_try;;
11335   esac
11336 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 <  (eval "$ac_compile") 2>conftest.er1
11336 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11337 > $as_echo "$ac_try_echo") >&5
11338 >  (eval "$ac_link") 2>&5
11339    ac_status=$?
11340 <  grep -v '^ *+' conftest.er1 >conftest.err
11341 <  rm -f conftest.er1
11342 <  cat conftest.err >&5
11800 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 <  (exit $ac_status); } && {
11802 <         test -z "$ac_cxx_werror_flag" ||
11803 <         test ! -s conftest.err
11804 <       } && test -s conftest.$ac_objext; then
11805 <  ac_cv_cxx_have_std_iostream=yes
11806 < else
11807 <  echo "$as_me: failed program was:" >&5
11808 < sed 's/^/| /' conftest.$ac_ext >&5
11809 <
11810 <
11811 < fi
11812 <
11813 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11814 <        cat >conftest.$ac_ext <<_ACEOF
11815 < /* confdefs.h.  */
11816 < _ACEOF
11817 < cat confdefs.h >>conftest.$ac_ext
11818 < cat >>conftest.$ac_ext <<_ACEOF
11819 < /* end confdefs.h.  */
11820 <
11821 < #define __USE_STD_IOSTREAM 1
11822 < #ifdef HAVE_IOSTREAM
11823 < #include <iostream>
11824 < #else
11825 < #include <iostream.h>
11826 < #endif
11827 <
11828 < #ifdef FC_DUMMY_MAIN
11829 < #ifndef FC_DUMMY_MAIN_EQ_F77
11830 < #  ifdef __cplusplus
11831 <     extern "C"
11832 < #  endif
11833 <   int FC_DUMMY_MAIN() { return 1; }
11834 < #endif
11835 < #endif
11836 < int
11837 < main ()
11838 < {
11839 < std::cout<<"Hello World"<<std::endl;return 0;
11840 <  ;
11841 <  return 0;
11842 < }
11843 < _ACEOF
11844 < rm -f conftest.$ac_objext
11845 < if { (ac_try="$ac_compile"
11846 < case "(($ac_try" in
11340 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 >  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11342 >  { (case "(($ac_try" in
11343    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344    *) ac_try_echo=$ac_try;;
11345   esac
11346 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 <  (eval "$ac_compile") 2>conftest.er1
11346 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11347 > $as_echo "$ac_try_echo") >&5
11348 >  (eval "$ac_try") 2>&5
11349    ac_status=$?
11350 <  grep -v '^ *+' conftest.er1 >conftest.err
11351 <  rm -f conftest.er1
11352 <  cat conftest.err >&5
11856 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 <  (exit $ac_status); } && {
11858 <         test -z "$ac_cxx_werror_flag" ||
11859 <         test ! -s conftest.err
11860 <       } && test -s conftest.$ac_objext; then
11861 <  ac_cv_cxx_have_std_iostream=yes;ac_cv_cxx_need_use_std_iostream=yes
11350 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 >  (exit $ac_status); }; }; then
11352 >  ac_cv_func_realloc_0_nonnull=yes
11353   else
11354 <  echo "$as_me: failed program was:" >&5
11354 >  $as_echo "$as_me: program exited with status $ac_status" >&5
11355 > $as_echo "$as_me: failed program was:" >&5
11356   sed 's/^/| /' conftest.$ac_ext >&5
11357  
11358 <
11358 > ( exit $ac_status )
11359 > ac_cv_func_realloc_0_nonnull=no
11360   fi
11361 + rm -rf conftest.dSYM
11362 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11363 + fi
11364  
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870        ac_ext=cpp
11871 ac_cpp='$CXXCPP $CPPFLAGS'
11872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11365  
11876      fi
11877
11366   fi
11367 < { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iostream" >&5
11368 < echo "${ECHO_T}$ac_cv_cxx_have_std_iostream" >&6; }
11369 <  if test "$ac_cv_cxx_have_std_iostream" = yes; then
11367 > { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
11368 > $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
11369 > if test $ac_cv_func_realloc_0_nonnull = yes; then
11370  
11371   cat >>confdefs.h <<\_ACEOF
11372 < #define HAVE_STD_IOSTREAM 1
11372 > #define HAVE_REALLOC 1
11373   _ACEOF
11374  
11887  fi
11888  if test "$ac_cv_cxx_need_use_std_iostream" = yes; then
11889
11890 cat >>confdefs.h <<\_ACEOF
11891 #define __USE_STD_IOSTREAM 1
11892 _ACEOF
11893
11894  fi
11895
11896
11897
11898
11899  { echo "$as_me:$LINENO: checking for C++ Standard Template Library in namespace std." >&5
11900 echo $ECHO_N "checking for C++ Standard Template Library in namespace std.... $ECHO_C" >&6; }
11901 if test "${ac_cv_cxx_have_std_stl+set}" = set; then
11902  echo $ECHO_N "(cached) $ECHO_C" >&6
11375   else
11376 <
11377 <      ac_cv_cxx_have_std_stl=no
11906 <      if test "x$ac_cv_cxx_namespaces" = xyes; then
11907 <
11908 <        ac_ext=cpp
11909 < ac_cpp='$CXXCPP $CPPFLAGS'
11910 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11911 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11912 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11913 <
11914 <        cat >conftest.$ac_ext <<_ACEOF
11915 < /* confdefs.h.  */
11376 >  cat >>confdefs.h <<\_ACEOF
11377 > #define HAVE_REALLOC 0
11378   _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h.  */
11920 #include <list>
11379  
11380 < #ifdef FC_DUMMY_MAIN
11381 < #ifndef FC_DUMMY_MAIN_EQ_F77
11382 < #  ifdef __cplusplus
11383 <     extern "C"
11926 < #  endif
11927 <   int FC_DUMMY_MAIN() { return 1; }
11928 < #endif
11929 < #endif
11930 < int
11931 < main ()
11932 < {
11933 < std::list<int> foo;return 0;
11934 <  ;
11935 <  return 0;
11936 < }
11937 < _ACEOF
11938 < rm -f conftest.$ac_objext
11939 < if { (ac_try="$ac_compile"
11940 < case "(($ac_try" in
11941 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942 <  *) ac_try_echo=$ac_try;;
11380 >   case " $LIBOBJS " in
11381 >  *" realloc.$ac_objext "* ) ;;
11382 >  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
11383 > ;;
11384   esac
11944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11945  (eval "$ac_compile") 2>conftest.er1
11946  ac_status=$?
11947  grep -v '^ *+' conftest.er1 >conftest.err
11948  rm -f conftest.er1
11949  cat conftest.err >&5
11950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951  (exit $ac_status); } && {
11952         test -z "$ac_cxx_werror_flag" ||
11953         test ! -s conftest.err
11954       } && test -s conftest.$ac_objext; then
11955  ac_cv_cxx_have_std_stl=yes
11956 else
11957  echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11385  
11386  
11961 fi
11962
11963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11964        ac_ext=cpp
11965 ac_cpp='$CXXCPP $CPPFLAGS'
11966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11969
11970      fi
11971
11972 fi
11973 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_stl" >&5
11974 echo "${ECHO_T}$ac_cv_cxx_have_std_stl" >&6; }
11975  if test "$ac_cv_cxx_have_std_stl" = yes; then
11976
11387   cat >>confdefs.h <<\_ACEOF
11388 < #define HAVE_STD_STL 1
11388 > #define realloc rpl_realloc
11389   _ACEOF
11390  
11391 <  fi
11391 > fi
11392  
11393  
11394  
11985  { echo "$as_me:$LINENO: checking for fstream::attach()" >&5
11986 echo $ECHO_N "checking for fstream::attach()... $ECHO_C" >&6; }
11987 if test "${ac_cv_cxx_have_fstream_attach+set}" = set; then
11988  echo $ECHO_N "(cached) $ECHO_C" >&6
11989 else
11395  
11991    ac_cv_cxx_have_fstream_attach=no
11396  
11397 <    ac_ext=cpp
11398 < ac_cpp='$CXXCPP $CPPFLAGS'
11399 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11400 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11401 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11402 <
11403 <    cat >conftest.$ac_ext <<_ACEOF
11397 > for ac_header in sys/select.h sys/socket.h
11398 > do
11399 > as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11400 > if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401 >  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11402 > $as_echo_n "checking for $ac_header... " >&6; }
11403 > if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11404 >  $as_echo_n "(cached) " >&6
11405 > fi
11406 > ac_res=`eval 'as_val=${'$as_ac_Header'}
11407 >                 $as_echo "$as_val"'`
11408 >               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11409 > $as_echo "$ac_res" >&6; }
11410 > else
11411 >  # Is the header compilable?
11412 > { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11413 > $as_echo_n "checking $ac_header usability... " >&6; }
11414 > cat >conftest.$ac_ext <<_ACEOF
11415   /* confdefs.h.  */
11416   _ACEOF
11417   cat confdefs.h >>conftest.$ac_ext
11418   cat >>conftest.$ac_ext <<_ACEOF
11419   /* end confdefs.h.  */
11420 <
11421 < #ifdef HAVE_IOSTREAM
12007 < #include <fstream>
12008 < #else
12009 < #include <fstream.h>
12010 < #endif
12011 < #ifdef HAVE_STD_IOSTREAM
12012 < using namespace std;
12013 < #endif
12014 <
12015 < #ifdef FC_DUMMY_MAIN
12016 < #ifndef FC_DUMMY_MAIN_EQ_F77
12017 < #  ifdef __cplusplus
12018 <     extern "C"
12019 < #  endif
12020 <   int FC_DUMMY_MAIN() { return 1; }
12021 < #endif
12022 < #endif
12023 < int
12024 < main ()
12025 < {
12026 < int fd=0;ofstream s;s.attach(fd);
12027 <  ;
12028 <  return 0;
12029 < }
11420 > $ac_includes_default
11421 > #include <$ac_header>
11422   _ACEOF
11423   rm -f conftest.$ac_objext
11424   if { (ac_try="$ac_compile"
# Line 12034 | Line 11426 | esac
11426    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427    *) ac_try_echo=$ac_try;;
11428   esac
11429 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11430 > $as_echo "$ac_try_echo") >&5
11431    (eval "$ac_compile") 2>conftest.er1
11432    ac_status=$?
11433    grep -v '^ *+' conftest.er1 >conftest.err
11434    rm -f conftest.er1
11435    cat conftest.err >&5
11436 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437    (exit $ac_status); } && {
11438 <         test -z "$ac_cxx_werror_flag" ||
11438 >         test -z "$ac_c_werror_flag" ||
11439           test ! -s conftest.err
11440         } && test -s conftest.$ac_objext; then
11441 <  ac_cv_cxx_have_fstream_attach=yes
11441 >  ac_header_compiler=yes
11442   else
11443 <  echo "$as_me: failed program was:" >&5
11443 >  $as_echo "$as_me: failed program was:" >&5
11444   sed 's/^/| /' conftest.$ac_ext >&5
11445  
11446 <
11446 >        ac_header_compiler=no
11447   fi
11448  
11449   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11450 <    ac_ext=cpp
11451 < ac_cpp='$CXXCPP $CPPFLAGS'
12059 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12060 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12061 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11450 > { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11451 > $as_echo "$ac_header_compiler" >&6; }
11452  
11453 <
11454 < fi
11455 < { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_attach" >&5
11456 < echo "${ECHO_T}$ac_cv_cxx_have_fstream_attach" >&6; }
12067 <  if test "$ac_cv_cxx_have_fstream_attach" = yes; then
12068 <
12069 < cat >>confdefs.h <<\_ACEOF
12070 < #define HAVE_FSTREAM_ATTACH 1
12071 < _ACEOF
12072 <
12073 <  fi
12074 <
12075 <
12076 <
12077 <  { echo "$as_me:$LINENO: checking for fstream::open()" >&5
12078 < echo $ECHO_N "checking for fstream::open()... $ECHO_C" >&6; }
12079 < if test "${ac_cv_cxx_have_fstream_open+set}" = set; then
12080 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12081 < else
12082 <
12083 <    ac_cv_cxx_have_fstream_open=no
12084 <    ac_cv_cxx_fstream_open_prot=no
12085 <
12086 <    ac_ext=cpp
12087 < ac_cpp='$CXXCPP $CPPFLAGS'
12088 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12089 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12090 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12091 <
12092 <    # Try with 2 parameters
12093 <    cat >conftest.$ac_ext <<_ACEOF
11453 > # Is the header present?
11454 > { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11455 > $as_echo_n "checking $ac_header presence... " >&6; }
11456 > cat >conftest.$ac_ext <<_ACEOF
11457   /* confdefs.h.  */
11458   _ACEOF
11459   cat confdefs.h >>conftest.$ac_ext
11460   cat >>conftest.$ac_ext <<_ACEOF
11461   /* end confdefs.h.  */
11462 <
12100 < #ifdef HAVE_IOSTREAM
12101 < #include <fstream>
12102 < #else
12103 < #include <fstream.h>
12104 < #endif
12105 < #ifdef HAVE_STD_IOSTREAM
12106 < using namespace std;
12107 < #endif
12108 <
12109 < #ifdef FC_DUMMY_MAIN
12110 < #ifndef FC_DUMMY_MAIN_EQ_F77
12111 < #  ifdef __cplusplus
12112 <     extern "C"
12113 < #  endif
12114 <   int FC_DUMMY_MAIN() { return 1; }
12115 < #endif
12116 < #endif
12117 < int
12118 < main ()
12119 < {
12120 < ofstream s;s.open("conftest.txt",ios::out|ios::trunc);
12121 <  ;
12122 <  return 0;
12123 < }
11462 > #include <$ac_header>
11463   _ACEOF
11464 < rm -f conftest.$ac_objext
12126 < if { (ac_try="$ac_compile"
11464 > if { (ac_try="$ac_cpp conftest.$ac_ext"
11465   case "(($ac_try" in
11466    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467    *) ac_try_echo=$ac_try;;
11468   esac
11469 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 <  (eval "$ac_compile") 2>conftest.er1
11469 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11470 > $as_echo "$ac_try_echo") >&5
11471 >  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11472    ac_status=$?
11473    grep -v '^ *+' conftest.er1 >conftest.err
11474    rm -f conftest.er1
11475    cat conftest.err >&5
11476 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 <  (exit $ac_status); } && {
11478 <         test -z "$ac_cxx_werror_flag" ||
11476 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 >  (exit $ac_status); } >/dev/null && {
11478 >         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11479           test ! -s conftest.err
11480 <       } && test -s conftest.$ac_objext; then
11481 <  ac_cv_cxx_have_fstream_open=yes
11480 >       }; then
11481 >  ac_header_preproc=yes
11482   else
11483 <  echo "$as_me: failed program was:" >&5
11483 >  $as_echo "$as_me: failed program was:" >&5
11484   sed 's/^/| /' conftest.$ac_ext >&5
11485 +
11486 +  ac_header_preproc=no
11487 + fi
11488 +
11489 + rm -f conftest.err conftest.$ac_ext
11490 + { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11491 + $as_echo "$ac_header_preproc" >&6; }
11492 +
11493 + # So?  What about this header?
11494 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11495 +  yes:no: )
11496 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11497 + $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11498 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11499 + $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11500 +    ac_header_preproc=yes
11501 +    ;;
11502 +  no:yes:* )
11503 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11504 + $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11505 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11506 + $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11507 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11508 + $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11509 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11510 + $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11511 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11512 + $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11513 +    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11514 + $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11515 +    ( cat <<\_ASBOX
11516 + ## ------------------------------ ##
11517 + ## Report this to gezelter@nd.edu ##
11518 + ## ------------------------------ ##
11519 + _ASBOX
11520 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
11521 +    ;;
11522 + esac
11523 + { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11524 + $as_echo_n "checking for $ac_header... " >&6; }
11525 + if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11526 +  $as_echo_n "(cached) " >&6
11527 + else
11528 +  eval "$as_ac_Header=\$ac_header_preproc"
11529 + fi
11530 + ac_res=`eval 'as_val=${'$as_ac_Header'}
11531 +                 $as_echo "$as_val"'`
11532 +               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11533 + $as_echo "$ac_res" >&6; }
11534  
11535 + fi
11536 + if test `eval 'as_val=${'$as_ac_Header'}
11537 +                 $as_echo "$as_val"'` = yes; then
11538 +  cat >>confdefs.h <<_ACEOF
11539 + #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11540 + _ACEOF
11541  
11542   fi
11543  
11544 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11545 <    # Try with mode parameter
11546 <    cat >conftest.$ac_ext <<_ACEOF
11544 > done
11545 >
11546 > { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
11547 > $as_echo_n "checking types of arguments for select... " >&6; }
11548 > if test "${ac_cv_func_select_args+set}" = set; then
11549 >  $as_echo_n "(cached) " >&6
11550 > else
11551 >  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11552 > for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11553 >  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11554 >   cat >conftest.$ac_ext <<_ACEOF
11555   /* confdefs.h.  */
11556   _ACEOF
11557   cat confdefs.h >>conftest.$ac_ext
11558   cat >>conftest.$ac_ext <<_ACEOF
11559   /* end confdefs.h.  */
11560 <
11561 < #ifdef HAVE_IOSTREAM
11562 < #include <fstream>
12161 < #else
12162 < #include <fstream.h>
11560 > $ac_includes_default
11561 > #ifdef HAVE_SYS_SELECT_H
11562 > # include <sys/select.h>
11563   #endif
11564 < #ifdef HAVE_STD_IOSTREAM
11565 < using namespace std;
11564 > #ifdef HAVE_SYS_SOCKET_H
11565 > # include <sys/socket.h>
11566   #endif
11567  
11568   #ifdef FC_DUMMY_MAIN
# Line 12176 | Line 11576 | main ()
11576   int
11577   main ()
11578   {
11579 < ofstream s;s.open("conftest.txt",ios::out|ios::trunc,0666);
11579 > extern int select ($ac_arg1,
11580 >                                            $ac_arg234, $ac_arg234, $ac_arg234,
11581 >                                            $ac_arg5);
11582    ;
11583    return 0;
11584   }
# Line 12187 | Line 11589 | esac
11589    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11590    *) ac_try_echo=$ac_try;;
11591   esac
11592 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11593 > $as_echo "$ac_try_echo") >&5
11594    (eval "$ac_compile") 2>conftest.er1
11595    ac_status=$?
11596    grep -v '^ *+' conftest.er1 >conftest.err
11597    rm -f conftest.er1
11598    cat conftest.err >&5
11599 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600    (exit $ac_status); } && {
11601 <         test -z "$ac_cxx_werror_flag" ||
11601 >         test -z "$ac_c_werror_flag" ||
11602           test ! -s conftest.err
11603         } && test -s conftest.$ac_objext; then
11604 <  ac_cv_cxx_fstream_open_prot=yes
11604 >  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11605   else
11606 <  echo "$as_me: failed program was:" >&5
11606 >  $as_echo "$as_me: failed program was:" >&5
11607   sed 's/^/| /' conftest.$ac_ext >&5
11608  
11609  
11610   fi
11611  
11612   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11613 <    ac_ext=cpp
11614 < ac_cpp='$CXXCPP $CPPFLAGS'
11615 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11616 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11617 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11613 >  done
11614 > done
11615 > done
11616 > # Provide a safe default value.
11617 > : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11618  
12216
11619   fi
11620 < { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_open" >&5
11621 < echo "${ECHO_T}$ac_cv_cxx_have_fstream_open" >&6; }
11622 <  if test "$ac_cv_cxx_have_fstream_open" = yes; then
11620 > { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11621 > $as_echo "$ac_cv_func_select_args" >&6; }
11622 > ac_save_IFS=$IFS; IFS=','
11623 > set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11624 > IFS=$ac_save_IFS
11625 > shift
11626  
11627 < cat >>confdefs.h <<\_ACEOF
11628 < #define HAVE_FSTREAM_OPEN 1
11627 > cat >>confdefs.h <<_ACEOF
11628 > #define SELECT_TYPE_ARG1 $1
11629   _ACEOF
11630  
12226  fi
12227  if test "$ac_cv_cxx_fstream_open_prot" = yes; then
11631  
11632 < cat >>confdefs.h <<\_ACEOF
11633 < #define FSTREAM_OPEN_PROT 1
11632 > cat >>confdefs.h <<_ACEOF
11633 > #define SELECT_TYPE_ARG234 ($2)
11634   _ACEOF
11635  
12233  fi
11636  
11637 + cat >>confdefs.h <<_ACEOF
11638 + #define SELECT_TYPE_ARG5 ($3)
11639 + _ACEOF
11640  
11641 + rm -f conftest*
11642  
11643 <
11644 <
11645 <
11646 <
12241 < for ac_header in ctype.h iostream fstream sstream strstream
12242 < do
12243 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12244 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12245 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12246 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12247 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12248 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12249 < fi
12250 < ac_res=`eval echo '${'$as_ac_Header'}'`
12251 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
12252 < echo "${ECHO_T}$ac_res" >&6; }
11643 > { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
11644 > $as_echo_n "checking for working strtod... " >&6; }
11645 > if test "${ac_cv_func_strtod+set}" = set; then
11646 >  $as_echo_n "(cached) " >&6
11647   else
11648 <  # Is the header compilable?
11649 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11650 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11651 < cat >conftest.$ac_ext <<_ACEOF
11648 >  if test "$cross_compiling" = yes; then
11649 >  ac_cv_func_strtod=no
11650 > else
11651 >  cat >conftest.$ac_ext <<_ACEOF
11652   /* confdefs.h.  */
11653   _ACEOF
11654   cat confdefs.h >>conftest.$ac_ext
11655   cat >>conftest.$ac_ext <<_ACEOF
11656   /* end confdefs.h.  */
11657 +
11658   $ac_includes_default
11659 < #include <$ac_header>
11660 < _ACEOF
11661 < rm -f conftest.$ac_objext
11662 < if { (ac_try="$ac_compile"
11663 < case "(($ac_try" in
11664 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665 <  *) ac_try_echo=$ac_try;;
11666 < esac
11667 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668 <  (eval "$ac_compile") 2>conftest.er1
11669 <  ac_status=$?
11670 <  grep -v '^ *+' conftest.er1 >conftest.err
11671 <  rm -f conftest.er1
11672 <  cat conftest.err >&5
11673 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 <  (exit $ac_status); } && {
12280 <         test -z "$ac_cxx_werror_flag" ||
12281 <         test ! -s conftest.err
12282 <       } && test -s conftest.$ac_objext; then
12283 <  ac_header_compiler=yes
12284 < else
12285 <  echo "$as_me: failed program was:" >&5
12286 < sed 's/^/| /' conftest.$ac_ext >&5
11659 > #ifndef strtod
11660 > double strtod ();
11661 > #endif
11662 > int
11663 > main()
11664 > {
11665 >  {
11666 >    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
11667 >    char *string = " +69";
11668 >    char *term;
11669 >    double value;
11670 >    value = strtod (string, &term);
11671 >    if (value != 69 || term != (string + 4))
11672 >      return 1;
11673 >  }
11674  
11675 <        ac_header_compiler=no
11676 < fi
11677 <
11678 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11679 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11680 < echo "${ECHO_T}$ac_header_compiler" >&6; }
11681 <
11682 < # Is the header present?
11683 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11684 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11685 < cat >conftest.$ac_ext <<_ACEOF
11686 < /* confdefs.h.  */
12300 < _ACEOF
12301 < cat confdefs.h >>conftest.$ac_ext
12302 < cat >>conftest.$ac_ext <<_ACEOF
12303 < /* end confdefs.h.  */
12304 < #include <$ac_header>
11675 >  {
11676 >    /* Under Solaris 2.4, strtod returns the wrong value for the
11677 >       terminating character under some conditions.  */
11678 >    char *string = "NaN";
11679 >    char *term;
11680 >    strtod (string, &term);
11681 >    if (term != string && *(term - 1) == 0)
11682 >      return 1;
11683 >  }
11684 >  return 0;
11685 > }
11686 >
11687   _ACEOF
11688 < if { (ac_try="$ac_cpp conftest.$ac_ext"
11688 > rm -f conftest$ac_exeext
11689 > if { (ac_try="$ac_link"
11690   case "(($ac_try" in
11691    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692    *) ac_try_echo=$ac_try;;
11693   esac
11694 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11694 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11695 > $as_echo "$ac_try_echo") >&5
11696 >  (eval "$ac_link") 2>&5
11697    ac_status=$?
11698 <  grep -v '^ *+' conftest.er1 >conftest.err
11699 <  rm -f conftest.er1
11700 <  cat conftest.err >&5
11701 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 <  (exit $ac_status); } >/dev/null && {
11703 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11704 <         test ! -s conftest.err
11705 <       }; then
11706 <  ac_header_preproc=yes
11698 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 >  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11700 >  { (case "(($ac_try" in
11701 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 >  *) ac_try_echo=$ac_try;;
11703 > esac
11704 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11705 > $as_echo "$ac_try_echo") >&5
11706 >  (eval "$ac_try") 2>&5
11707 >  ac_status=$?
11708 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 >  (exit $ac_status); }; }; then
11710 >  ac_cv_func_strtod=yes
11711   else
11712 <  echo "$as_me: failed program was:" >&5
11712 >  $as_echo "$as_me: program exited with status $ac_status" >&5
11713 > $as_echo "$as_me: failed program was:" >&5
11714   sed 's/^/| /' conftest.$ac_ext >&5
11715  
11716 <  ac_header_preproc=no
11716 > ( exit $ac_status )
11717 > ac_cv_func_strtod=no
11718   fi
11719 <
11720 < rm -f conftest.err conftest.$ac_ext
12331 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12332 < echo "${ECHO_T}$ac_header_preproc" >&6; }
12333 <
12334 < # So?  What about this header?
12335 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12336 <  yes:no: )
12337 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12338 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12339 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12340 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12341 <    ac_header_preproc=yes
12342 <    ;;
12343 <  no:yes:* )
12344 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12345 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12346 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12347 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12348 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12349 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12350 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12351 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12352 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12353 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12354 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12355 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12356 <    ( cat <<\_ASBOX
12357 < ## ------------------------------ ##
12358 < ## Report this to gezelter@nd.edu ##
12359 < ## ------------------------------ ##
12360 < _ASBOX
12361 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
12362 <    ;;
12363 < esac
12364 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
12365 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12366 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12367 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12368 < else
12369 <  eval "$as_ac_Header=\$ac_header_preproc"
11719 > rm -rf conftest.dSYM
11720 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11721   fi
12371 ac_res=`eval echo '${'$as_ac_Header'}'`
12372               { echo "$as_me:$LINENO: result: $ac_res" >&5
12373 echo "${ECHO_T}$ac_res" >&6; }
11722  
12375 fi
12376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12377  cat >>confdefs.h <<_ACEOF
12378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12379 _ACEOF
11723  
11724   fi
11725 + { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
11726 + $as_echo "$ac_cv_func_strtod" >&6; }
11727 + if test $ac_cv_func_strtod = no; then
11728 +  case " $LIBOBJS " in
11729 +  *" strtod.$ac_objext "* ) ;;
11730 +  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
11731 + ;;
11732 + esac
11733  
11734 < done
11735 <
11736 < # AC_CPP_FUNC
11737 < # ------------------ #
12387 < # Checks to see if ANSI C99 CPP variable __func__ works.
12388 < # If not, perhaps __FUNCTION__ works instead.
12389 < # If not, we'll just define __func__ to "".
12390 < # AC_CPP_FUNC
12391 <
12392 <   case $ac_cv_prog_cc_stdc in
12393 <  no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
12394 <  *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
12395 < echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
12396 < if test "${ac_cv_prog_cc_c99+set}" = set; then
12397 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11734 > { $as_echo "$as_me:$LINENO: checking for pow" >&5
11735 > $as_echo_n "checking for pow... " >&6; }
11736 > if test "${ac_cv_func_pow+set}" = set; then
11737 >  $as_echo_n "(cached) " >&6
11738   else
11739 <  ac_cv_prog_cc_c99=no
12400 < ac_save_CC=$CC
12401 < cat >conftest.$ac_ext <<_ACEOF
11739 >  cat >conftest.$ac_ext <<_ACEOF
11740   /* confdefs.h.  */
11741   _ACEOF
11742   cat confdefs.h >>conftest.$ac_ext
11743   cat >>conftest.$ac_ext <<_ACEOF
11744   /* end confdefs.h.  */
11745 < #include <stdarg.h>
11746 < #include <stdbool.h>
11747 < #include <stdlib.h>
12410 < #include <wchar.h>
12411 < #include <stdio.h>
11745 > /* Define pow to an innocuous variant, in case <limits.h> declares pow.
11746 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11747 > #define pow innocuous_pow
11748  
11749 < // Check varargs macros.  These examples are taken from C99 6.10.3.5.
11750 < #define debug(...) fprintf (stderr, __VA_ARGS__)
11751 < #define showlist(...) puts (#__VA_ARGS__)
11752 < #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12417 < static void
12418 < test_varargs_macros (void)
12419 < {
12420 <  int x = 1234;
12421 <  int y = 5678;
12422 <  debug ("Flag");
12423 <  debug ("X = %d\n", x);
12424 <  showlist (The first, second, and third items.);
12425 <  report (x>y, "x is %d but y is %d", x, y);
12426 < }
11749 > /* System header to define __stub macros and hopefully few prototypes,
11750 >    which can conflict with char pow (); below.
11751 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11752 >    <limits.h> exists even on freestanding compilers.  */
11753  
11754 < // Check long long types.
11755 < #define BIG64 18446744073709551615ull
12430 < #define BIG32 4294967295ul
12431 < #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12432 < #if !BIG_OK
12433 <  your preprocessor is broken;
12434 < #endif
12435 < #if BIG_OK
11754 > #ifdef __STDC__
11755 > # include <limits.h>
11756   #else
11757 <  your preprocessor is broken;
11757 > # include <assert.h>
11758   #endif
12439 static long long int bignum = -9223372036854775807LL;
12440 static unsigned long long int ubignum = BIG64;
11759  
11760 < struct incomplete_array
12443 < {
12444 <  int datasize;
12445 <  double data[];
12446 < };
11760 > #undef pow
11761  
11762 < struct named_init {
11763 <  int number;
11764 <  const wchar_t *name;
11765 <  double average;
11766 < };
11762 > /* Override any GCC internal prototype to avoid an error.
11763 >   Use char because int might match the return type of a GCC
11764 >   builtin and then its argument prototype would still apply.  */
11765 > #ifdef __cplusplus
11766 > extern "C"
11767 > #endif
11768 > char pow ();
11769 > /* The GNU C library defines this for functions which it implements
11770 >    to always fail with ENOSYS.  Some functions are actually named
11771 >    something starting with __ and the normal name is an alias.  */
11772 > #if defined __stub_pow || defined __stub___pow
11773 > choke me
11774 > #endif
11775  
12454 typedef const char *ccp;
12455
12456 static inline int
12457 test_restrict (ccp restrict text)
12458 {
12459  // See if C++-style comments work.
12460  // Iterate through items via the restricted pointer.
12461  // Also check for declarations in for loops.
12462  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12463    continue;
12464  return 0;
12465 }
12466
12467 // Check varargs and va_copy.
12468 static void
12469 test_varargs (const char *format, ...)
12470 {
12471  va_list args;
12472  va_start (args, format);
12473  va_list args_copy;
12474  va_copy (args_copy, args);
12475
12476  const char *str;
12477  int number;
12478  float fnumber;
12479
12480  while (*format)
12481    {
12482      switch (*format++)
12483        {
12484        case 's': // string
12485          str = va_arg (args_copy, const char *);
12486          break;
12487        case 'd': // int
12488          number = va_arg (args_copy, int);
12489          break;
12490        case 'f': // float
12491          fnumber = va_arg (args_copy, double);
12492          break;
12493        default:
12494          break;
12495        }
12496    }
12497  va_end (args_copy);
12498  va_end (args);
12499 }
12500
11776   #ifdef FC_DUMMY_MAIN
11777   #ifndef FC_DUMMY_MAIN_EQ_F77
11778   #  ifdef __cplusplus
# Line 12509 | Line 11784 | main ()
11784   int
11785   main ()
11786   {
11787 <
12513 <  // Check bool.
12514 <  _Bool success = false;
12515 <
12516 <  // Check restrict.
12517 <  if (test_restrict ("String literal") == 0)
12518 <    success = true;
12519 <  char *restrict newvar = "Another string";
12520 <
12521 <  // Check varargs.
12522 <  test_varargs ("s, d' f .", "string", 65, 34.234);
12523 <  test_varargs_macros ();
12524 <
12525 <  // Check flexible array members.
12526 <  struct incomplete_array *ia =
12527 <    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12528 <  ia->datasize = 10;
12529 <  for (int i = 0; i < ia->datasize; ++i)
12530 <    ia->data[i] = i * 1.234;
12531 <
12532 <  // Check named initializers.
12533 <  struct named_init ni = {
12534 <    .number = 34,
12535 <    .name = L"Test wide string",
12536 <    .average = 543.34343,
12537 <  };
12538 <
12539 <  ni.number = 58;
12540 <
12541 <  int dynamic_array[ni.number];
12542 <  dynamic_array[ni.number - 1] = 543;
12543 <
12544 <  // work around unused variable warnings
12545 <  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12546 <          || dynamic_array[ni.number - 1] != 543);
12547 <
11787 > return pow ();
11788    ;
11789    return 0;
11790   }
11791   _ACEOF
11792 < for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
11793 < do
12554 <  CC="$ac_save_CC $ac_arg"
12555 <  rm -f conftest.$ac_objext
12556 < if { (ac_try="$ac_compile"
11792 > rm -f conftest.$ac_objext conftest$ac_exeext
11793 > if { (ac_try="$ac_link"
11794   case "(($ac_try" in
11795    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796    *) ac_try_echo=$ac_try;;
11797   esac
11798 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 <  (eval "$ac_compile") 2>conftest.er1
11798 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11799 > $as_echo "$ac_try_echo") >&5
11800 >  (eval "$ac_link") 2>conftest.er1
11801    ac_status=$?
11802    grep -v '^ *+' conftest.er1 >conftest.err
11803    rm -f conftest.er1
11804    cat conftest.err >&5
11805 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806    (exit $ac_status); } && {
11807 <         test -z "$ac_cxx_werror_flag" ||
11807 >         test -z "$ac_c_werror_flag" ||
11808           test ! -s conftest.err
11809 <       } && test -s conftest.$ac_objext; then
11810 <  ac_cv_prog_cc_c99=$ac_arg
11809 >       } && test -s conftest$ac_exeext && {
11810 >         test "$cross_compiling" = yes ||
11811 >         $as_test_x conftest$ac_exeext
11812 >       }; then
11813 >  ac_cv_func_pow=yes
11814   else
11815 <  echo "$as_me: failed program was:" >&5
11815 >  $as_echo "$as_me: failed program was:" >&5
11816   sed 's/^/| /' conftest.$ac_ext >&5
11817  
11818 <
11818 >        ac_cv_func_pow=no
11819   fi
11820  
11821 < rm -f core conftest.err conftest.$ac_objext
11822 <  test "x$ac_cv_prog_cc_c99" != "xno" && break
11823 < done
12583 < rm -f conftest.$ac_ext
12584 < CC=$ac_save_CC
12585 <
11821 > rm -rf conftest.dSYM
11822 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11823 >      conftest$ac_exeext conftest.$ac_ext
11824   fi
11825 < # AC_CACHE_VAL
11826 < case "x$ac_cv_prog_cc_c99" in
11827 <  x)
11828 <    { echo "$as_me:$LINENO: result: none needed" >&5
11829 < echo "${ECHO_T}none needed" >&6; } ;;
11830 <  xno)
11831 <    { echo "$as_me:$LINENO: result: unsupported" >&5
11832 < echo "${ECHO_T}unsupported" >&6; } ;;
12595 <  *)
12596 <    CC="$CC $ac_cv_prog_cc_c99"
12597 <    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
12598 < echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
12599 < esac
12600 < if test "x$ac_cv_prog_cc_c99" != xno; then
12601 <  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
11825 > { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
11826 > $as_echo "$ac_cv_func_pow" >&6; }
11827 >
11828 > if test $ac_cv_func_pow = no; then
11829 >  { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
11830 > $as_echo_n "checking for pow in -lm... " >&6; }
11831 > if test "${ac_cv_lib_m_pow+set}" = set; then
11832 >  $as_echo_n "(cached) " >&6
11833   else
11834 <  { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11835 < echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
12605 < if test "${ac_cv_prog_cc_c89+set}" = set; then
12606 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12607 < else
12608 <  ac_cv_prog_cc_c89=no
12609 < ac_save_CC=$CC
11834 >  ac_check_lib_save_LIBS=$LIBS
11835 > LIBS="-lm  $LIBS"
11836   cat >conftest.$ac_ext <<_ACEOF
11837   /* confdefs.h.  */
11838   _ACEOF
11839   cat confdefs.h >>conftest.$ac_ext
11840   cat >>conftest.$ac_ext <<_ACEOF
11841   /* end confdefs.h.  */
12616 #include <stdarg.h>
12617 #include <stdio.h>
12618 #include <sys/types.h>
12619 #include <sys/stat.h>
12620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12621 struct buf { int x; };
12622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12623 static char *e (p, i)
12624     char **p;
12625     int i;
12626 {
12627  return p[i];
12628 }
12629 static char *f (char * (*g) (char **, int), char **p, ...)
12630 {
12631  char *s;
12632  va_list v;
12633  va_start (v,p);
12634  s = g (p, va_arg (v,int));
12635  va_end (v);
12636  return s;
12637 }
11842  
11843 < /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11844 <   function prototypes and stuff, but not '\xHH' hex character constants.
11845 <   These don't provoke an error unfortunately, instead are silently treated
11846 <   as 'x'.  The following induces an error, until -std is added to get
11847 <   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11848 <   array size at least.  It's necessary to write '\x00'==0 to get something
11849 <   that's true only with -std.  */
12646 < int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12647 <
12648 < /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12649 <   inside strings and character constants.  */
12650 < #define FOO(x) 'x'
12651 < int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12652 <
12653 < int test (int i, double x);
12654 < struct s1 {int (*f) (int a);};
12655 < struct s2 {int (*f) (double a);};
12656 < int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12657 < int argc;
12658 < char **argv;
11843 > /* Override any GCC internal prototype to avoid an error.
11844 >   Use char because int might match the return type of a GCC
11845 >   builtin and then its argument prototype would still apply.  */
11846 > #ifdef __cplusplus
11847 > extern "C"
11848 > #endif
11849 > char pow ();
11850   #ifdef FC_DUMMY_MAIN
11851   #ifndef FC_DUMMY_MAIN_EQ_F77
11852   #  ifdef __cplusplus
# Line 12667 | Line 11858 | main ()
11858   int
11859   main ()
11860   {
11861 < return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11861 > return pow ();
11862    ;
11863    return 0;
11864   }
11865   _ACEOF
11866 < for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11867 <        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12677 < do
12678 <  CC="$ac_save_CC $ac_arg"
12679 <  rm -f conftest.$ac_objext
12680 < if { (ac_try="$ac_compile"
11866 > rm -f conftest.$ac_objext conftest$ac_exeext
11867 > if { (ac_try="$ac_link"
11868   case "(($ac_try" in
11869    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870    *) ac_try_echo=$ac_try;;
11871   esac
11872 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 <  (eval "$ac_compile") 2>conftest.er1
11872 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11873 > $as_echo "$ac_try_echo") >&5
11874 >  (eval "$ac_link") 2>conftest.er1
11875    ac_status=$?
11876    grep -v '^ *+' conftest.er1 >conftest.err
11877    rm -f conftest.er1
11878    cat conftest.err >&5
11879 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880    (exit $ac_status); } && {
11881 <         test -z "$ac_cxx_werror_flag" ||
11881 >         test -z "$ac_c_werror_flag" ||
11882           test ! -s conftest.err
11883 <       } && test -s conftest.$ac_objext; then
11884 <  ac_cv_prog_cc_c89=$ac_arg
11883 >       } && test -s conftest$ac_exeext && {
11884 >         test "$cross_compiling" = yes ||
11885 >         $as_test_x conftest$ac_exeext
11886 >       }; then
11887 >  ac_cv_lib_m_pow=yes
11888   else
11889 <  echo "$as_me: failed program was:" >&5
11889 >  $as_echo "$as_me: failed program was:" >&5
11890   sed 's/^/| /' conftest.$ac_ext >&5
11891  
11892 <
11892 >        ac_cv_lib_m_pow=no
11893   fi
11894  
11895 < rm -f core conftest.err conftest.$ac_objext
11896 <  test "x$ac_cv_prog_cc_c89" != "xno" && break
11897 < done
11898 < rm -f conftest.$ac_ext
12708 < CC=$ac_save_CC
12709 <
11895 > rm -rf conftest.dSYM
11896 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11897 >      conftest$ac_exeext conftest.$ac_ext
11898 > LIBS=$ac_check_lib_save_LIBS
11899   fi
11900 < # AC_CACHE_VAL
11901 < case "x$ac_cv_prog_cc_c89" in
11902 <  x)
11903 <    { echo "$as_me:$LINENO: result: none needed" >&5
12715 < echo "${ECHO_T}none needed" >&6; } ;;
12716 <  xno)
12717 <    { echo "$as_me:$LINENO: result: unsupported" >&5
12718 < echo "${ECHO_T}unsupported" >&6; } ;;
12719 <  *)
12720 <    CC="$CC $ac_cv_prog_cc_c89"
12721 <    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12722 < echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
12723 < esac
12724 < if test "x$ac_cv_prog_cc_c89" != xno; then
12725 <  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
11900 > { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
11901 > $as_echo "$ac_cv_lib_m_pow" >&6; }
11902 > if test $ac_cv_lib_m_pow = yes; then
11903 >  POW_LIB=-lm
11904   else
11905 <  ac_cv_prog_cc_stdc=no
11905 >  { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
11906 > $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
11907   fi
11908  
12730
11909   fi
11910  
12733 ;;
12734 esac
12735  { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
12736 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
12737  if test "${ac_cv_prog_cc_stdc+set}" = set; then
12738  echo $ECHO_N "(cached) $ECHO_C" >&6
11911   fi
11912  
12741  case $ac_cv_prog_cc_stdc in
12742  no) { echo "$as_me:$LINENO: result: unsupported" >&5
12743 echo "${ECHO_T}unsupported" >&6; } ;;
12744  '') { echo "$as_me:$LINENO: result: none needed" >&5
12745 echo "${ECHO_T}none needed" >&6; } ;;
12746  *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12747 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
12748 esac
11913  
11914  
11915 < { echo "$as_me:$LINENO: checking for an ANSI C99-conforming __func__" >&5
11916 < echo $ECHO_N "checking for an ANSI C99-conforming __func__... $ECHO_C" >&6; }
11917 < if test "${ac_cv_cpp_func+set}" = set; then
11918 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11915 >
11916 >
11917 >
11918 >
11919 >
11920 >
11921 >
11922 >
11923 >
11924 >
11925 >
11926 >
11927 >
11928 >
11929 >
11930 >
11931 >
11932 >
11933 >
11934 > 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
11935 > do
11936 > as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11937 > { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11938 > $as_echo_n "checking for $ac_func... " >&6; }
11939 > if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11940 >  $as_echo_n "(cached) " >&6
11941   else
11942    cat >conftest.$ac_ext <<_ACEOF
11943   /* confdefs.h.  */
# Line 12759 | Line 11945 | cat >>conftest.$ac_ext <<_ACEOF
11945   cat confdefs.h >>conftest.$ac_ext
11946   cat >>conftest.$ac_ext <<_ACEOF
11947   /* end confdefs.h.  */
11948 + /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11949 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11950 + #define $ac_func innocuous_$ac_func
11951  
11952 + /* System header to define __stub macros and hopefully few prototypes,
11953 +    which can conflict with char $ac_func (); below.
11954 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11955 +    <limits.h> exists even on freestanding compilers.  */
11956 +
11957 + #ifdef __STDC__
11958 + # include <limits.h>
11959 + #else
11960 + # include <assert.h>
11961 + #endif
11962 +
11963 + #undef $ac_func
11964 +
11965 + /* Override any GCC internal prototype to avoid an error.
11966 +   Use char because int might match the return type of a GCC
11967 +   builtin and then its argument prototype would still apply.  */
11968 + #ifdef __cplusplus
11969 + extern "C"
11970 + #endif
11971 + char $ac_func ();
11972 + /* The GNU C library defines this for functions which it implements
11973 +    to always fail with ENOSYS.  Some functions are actually named
11974 +    something starting with __ and the normal name is an alias.  */
11975 + #if defined __stub_$ac_func || defined __stub___$ac_func
11976 + choke me
11977 + #endif
11978 +
11979   #ifdef FC_DUMMY_MAIN
11980   #ifndef FC_DUMMY_MAIN_EQ_F77
11981   #  ifdef __cplusplus
# Line 12771 | Line 11987 | main ()
11987   int
11988   main ()
11989   {
11990 < const char *foo = __func__;
11990 > return $ac_func ();
11991    ;
11992    return 0;
11993   }
11994   _ACEOF
11995 < rm -f conftest.$ac_objext
11996 < if { (ac_try="$ac_compile"
11995 > rm -f conftest.$ac_objext conftest$ac_exeext
11996 > if { (ac_try="$ac_link"
11997   case "(($ac_try" in
11998    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999    *) ac_try_echo=$ac_try;;
12000   esac
12001 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002 <  (eval "$ac_compile") 2>conftest.er1
12001 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12002 > $as_echo "$ac_try_echo") >&5
12003 >  (eval "$ac_link") 2>conftest.er1
12004    ac_status=$?
12005    grep -v '^ *+' conftest.er1 >conftest.err
12006    rm -f conftest.er1
12007    cat conftest.err >&5
12008 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009    (exit $ac_status); } && {
12010 <         test -z "$ac_cxx_werror_flag" ||
12010 >         test -z "$ac_c_werror_flag" ||
12011           test ! -s conftest.err
12012 <       } && test -s conftest.$ac_objext; then
12013 <  ac_cv_cpp_func=yes
12012 >       } && test -s conftest$ac_exeext && {
12013 >         test "$cross_compiling" = yes ||
12014 >         $as_test_x conftest$ac_exeext
12015 >       }; then
12016 >  eval "$as_ac_var=yes"
12017   else
12018 <  echo "$as_me: failed program was:" >&5
12018 >  $as_echo "$as_me: failed program was:" >&5
12019   sed 's/^/| /' conftest.$ac_ext >&5
12020  
12021 <        cat >conftest.$ac_ext <<_ACEOF
12021 >        eval "$as_ac_var=no"
12022 > fi
12023 >
12024 > rm -rf conftest.dSYM
12025 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12026 >      conftest$ac_exeext conftest.$ac_ext
12027 > fi
12028 > ac_res=`eval 'as_val=${'$as_ac_var'}
12029 >                 $as_echo "$as_val"'`
12030 >               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12031 > $as_echo "$ac_res" >&6; }
12032 > if test `eval 'as_val=${'$as_ac_var'}
12033 >                 $as_echo "$as_val"'` = yes; then
12034 >  cat >>confdefs.h <<_ACEOF
12035 > #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12036 > _ACEOF
12037 >
12038 > fi
12039 > done
12040 >
12041 >
12042 > # special check for _system_configuration because AIX <4.3.2 do not
12043 > # contain the `physmem' member.
12044 > { $as_echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
12045 > $as_echo_n "checking for external symbol _system_configuration... " >&6; }
12046 > cat >conftest.$ac_ext <<_ACEOF
12047   /* confdefs.h.  */
12048   _ACEOF
12049   cat confdefs.h >>conftest.$ac_ext
12050   cat >>conftest.$ac_ext <<_ACEOF
12051   /* end confdefs.h.  */
12052 <
12052 > #include <sys/systemcfg.h>
12053   #ifdef FC_DUMMY_MAIN
12054   #ifndef FC_DUMMY_MAIN_EQ_F77
12055   #  ifdef __cplusplus
# Line 12816 | Line 12061 | main ()
12061   int
12062   main ()
12063   {
12064 < const char *foo = __FUNCTION__;
12064 > double x = _system_configuration.physmem;
12065    ;
12066    return 0;
12067   }
# Line 12827 | Line 12072 | esac
12072    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073    *) ac_try_echo=$ac_try;;
12074   esac
12075 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12076 > $as_echo "$ac_try_echo") >&5
12077    (eval "$ac_compile") 2>conftest.er1
12078    ac_status=$?
12079    grep -v '^ *+' conftest.er1 >conftest.err
12080    rm -f conftest.er1
12081    cat conftest.err >&5
12082 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083    (exit $ac_status); } && {
12084 <         test -z "$ac_cxx_werror_flag" ||
12084 >         test -z "$ac_c_werror_flag" ||
12085           test ! -s conftest.err
12086         } && test -s conftest.$ac_objext; then
12087 <  ac_cv_cpp_func=__FUNCTION__
12088 < else
12843 <  echo "$as_me: failed program was:" >&5
12844 < sed 's/^/| /' conftest.$ac_ext >&5
12087 >  { $as_echo "$as_me:$LINENO: result: yes" >&5
12088 > $as_echo "yes" >&6; }
12089  
12846        ac_cv_cpp_func=no
12847 fi
12848
12849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12850 fi
12851
12852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12853 fi
12854 { echo "$as_me:$LINENO: result: $ac_cv_cpp_func" >&5
12855 echo "${ECHO_T}$ac_cv_cpp_func" >&6; }
12856 if test $ac_cv_cpp_func = __FUNCTION__; then
12857
12090   cat >>confdefs.h <<\_ACEOF
12091 < #define __func__ __FUNCTION__
12091 > #define HAVE__SYSTEM_CONFIGURATION 1
12092   _ACEOF
12093  
12094 < elif test $ac_cv_cpp_func = no; then
12094 > else
12095 >  $as_echo "$as_me: failed program was:" >&5
12096 > sed 's/^/| /' conftest.$ac_ext >&5
12097  
12098 < cat >>confdefs.h <<\_ACEOF
12099 < #define __func__ ""
12866 < _ACEOF
12867 <
12098 >        { $as_echo "$as_me:$LINENO: result: no" >&5
12099 > $as_echo "no" >&6; }
12100   fi
12101  
12102 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12103  
12104  
12872
12873
12105   case $debug in
12106    1)
12107       ;;
# Line 12879 | Line 12110 | case $debug in
12110  
12111  
12112  
12113 +
12114   # Try to determine "good" native compiler flags if none specified on command
12115   # line
12116  
# Line 12887 | Line 12119 | if test "$ac_test_FFLAGS" != "set"; then
12119    case "${host_cpu}-${host_os}" in
12120  
12121    *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
12122 <                    FCFLAGS="-O3 -ip -no-prec-div"
12122 >                    FCFLAGS="-O2"
12123                  fi;;
12124     rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
12125                      FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
# Line 12910 | Line 12142 | if test "$ac_test_FFLAGS" != "set"; then
12142                  FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
12143          fi
12144          if test "$FC" = ifort; then
12145 <                FCFLAGS="-O3 -ip -no-prec-dev -mdynamic-no-pic"
12145 >                FCFLAGS="-O2"
12146 >        fi
12147 >        if test "$FC" = gfortran; then
12148 >                FCFLAGS="-Os"
12149          fi;;
12150    esac
12151  
12917  if test -n "$CPU_FLAGS"; then
12918        FCFLAGS="$FCFLAGS $CPU_FLAGS"
12919  fi
12920
12152    if test -z "$FCFLAGS"; then
12153          echo ""
12154          echo "*********************************************************"
12155          echo "* WARNING: Don't know the best FCFLAGS for this system  *"
12156          echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
12157 <        echo "* (otherwise, a default of FCFLAGS=-O3 will be used)    *"
12157 >        echo "* (otherwise, a default of FCFLAGS=-O will be used)     *"
12158          echo "*********************************************************"
12159          echo ""
12160 <        FCFLAGS="-O3"
12160 >        FCFLAGS="-O"
12161    fi
12162  
12163  
12164 < { echo "$as_me:$LINENO: checking whether ${FC} accepts ${FCFLAGS}" >&5
12165 < echo $ECHO_N "checking whether ${FC} accepts ${FCFLAGS}... $ECHO_C" >&6; }
12164 > { $as_echo "$as_me:$LINENO: checking whether ${FC} accepts ${FCFLAGS}" >&5
12165 > $as_echo_n "checking whether ${FC} accepts ${FCFLAGS}... " >&6; }
12166   if test "${ac_guessed_f90flags+set}" = set; then
12167 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12167 >  $as_echo_n "(cached) " >&6
12168   else
12169  
12170  
# Line 12948 | Line 12179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12179   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12180    (eval $ac_compile) 2>&5
12181    ac_status=$?
12182 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183    (exit $ac_status); }; then
12184          ac_guessed_f90flags=yes
12185   else
12186          ac_guessed_f90flags=no
12187   fi
12188 < rm -rf conftest*
12189 < ac_ext=cpp
12190 < ac_cpp='$CXXCPP $CPPFLAGS'
12191 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12192 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12193 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12188 > rm -f conftest*
12189 > ac_ext=c
12190 > ac_cpp='$CPP $CPPFLAGS'
12191 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12192 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12193 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
12194  
12195  
12196   fi
12197 < { echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
12198 < echo "${ECHO_T}$ac_guessed_f90flags" >&6; }
12197 > { $as_echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
12198 > $as_echo "$ac_guessed_f90flags" >&6; }
12199   if test "$ac_guessed_f90flags" = yes; then
12200          :
12201  
# Line 12991 | Line 12222 | fi
12222  
12223  
12224  
12225 < { echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
12226 < echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6; }
12225 > { $as_echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
12226 > $as_echo_n "checking whether we are *really* using GNU cc... " >&6; }
12227   if test "${ac_cv_prog_really_gcc+set}" = set; then
12228 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12228 >  $as_echo_n "(cached) " >&6
12229   else
12230  
12231   cat > conftest.c <<EOF
# Line 13010 | Line 12241 | if { ac_try='${CC-cc} -E conftest.c'
12241    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242    (eval $ac_try) 2>&5
12243    ac_status=$?
12244 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245    (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
12246    ac_cv_prog_really_gcc=yes
12247   else
# Line 13018 | Line 12249 | fi
12249   fi
12250  
12251   fi
12252 < { echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
12253 < echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6; }
12252 > { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
12253 > $as_echo "$ac_cv_prog_really_gcc" >&6; }
12254   if test "$ac_cv_prog_really_gcc" = yes; then
12255          :
12256  
# Line 13036 | Line 12267 | if test "$ac_test_CFLAGS" != "set"; then
12267    case "${host_cpu}-${host_os}" in
12268  
12269    *linux*) if test "$CC" = icc; then
12270 <                    CFLAGS="-O"
12270 >                    CFLAGS="-O2"
12271                  fi;;
12272    sparc-solaris2*) if test "$CC" = cc; then
12273                      CFLAGS="-O -dalign"
# Line 13067 | Line 12298 | if test "$ac_test_CFLAGS" != "set"; then
12298                  echo "*******************************************************"
12299          fi;;
12300     *darwin*)
12301 <        if test "$CC" = xlc -o "$CC" = cc; then
12301 >        if test "$CC" = xlc; then
12302                  CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
12303          fi
12304          if test "$CC" = icc; then
12305 <                CFLAGS="-O3 -ip -no-prec-div -mdynamic-no-pic"
12306 <        fi;;
12307 <  esac
12308 <
12309 <  # use default flags for gcc on all systems
12310 <  if test $ac_cv_prog_really_gcc = yes; then
13080 <     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
13081 <  fi
13082 <
13083 <  # test for gcc-specific flags:
13084 <  if test $ac_cv_prog_really_gcc = yes; then
13085 <    # -malign-double for x86 systems
13086 <
13087 <
13088 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -malign-double" >&5
13089 < echo $ECHO_N "checking whether ${CC} accepts -malign-double... $ECHO_C" >&6; }
13090 < if test "${ac_align_double+set}" = set; then
13091 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13092 < else
13093 <  echo 'void f(){}' > conftest.c
13094 < if test -z "`${CC} -malign-double -c conftest.c 2>&1`"; then
13095 <        ac_align_double=yes
13096 < else
13097 <        ac_align_double=no
13098 < fi
13099 < rm -f conftest*
13100 <
13101 < fi
13102 < { echo "$as_me:$LINENO: result: $ac_align_double" >&5
13103 < echo "${ECHO_T}$ac_align_double" >&6; }
13104 < if test "$ac_align_double" = yes; then
13105 <        :
13106 <        CFLAGS="$CFLAGS -malign-double"
13107 < else
13108 <        :
13109 <
13110 < fi
13111 <
13112 <    # -fstrict-aliasing for gcc-2.95+
13113 <
13114 <
13115 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -fstrict-aliasing" >&5
13116 < echo $ECHO_N "checking whether ${CC} accepts -fstrict-aliasing... $ECHO_C" >&6; }
13117 < if test "${ac_fstrict_aliasing+set}" = set; then
13118 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13119 < else
13120 <  echo 'void f(){}' > conftest.c
13121 < if test -z "`${CC} -fstrict-aliasing -c conftest.c 2>&1`"; then
13122 <        ac_fstrict_aliasing=yes
13123 < else
13124 <        ac_fstrict_aliasing=no
13125 < fi
13126 < rm -f conftest*
13127 <
13128 < fi
13129 < { echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
13130 < echo "${ECHO_T}$ac_fstrict_aliasing" >&6; }
13131 < if test "$ac_fstrict_aliasing" = yes; then
13132 <        :
13133 <        CFLAGS="$CFLAGS -fstrict-aliasing"
13134 < else
13135 <        :
13136 <
13137 < fi
13138 <
13139 <  fi
13140 <
13141 <  CPU_FLAGS=""
13142 <  if test $ac_cv_prog_really_gcc = yes; then
13143 <                  case "${host_cpu}" in
13144 <          i586*)
13145 <
13146 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=pentium" >&5
13147 < echo $ECHO_N "checking whether ${CC} accepts -mcpu=pentium... $ECHO_C" >&6; }
13148 < if test "${ac_cpu_pentium+set}" = set; then
13149 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13150 < else
13151 <  echo 'void f(){}' > conftest.c
13152 < if test -z "`${CC} -mcpu=pentium -c conftest.c 2>&1`"; then
13153 <        ac_cpu_pentium=yes
13154 < else
13155 <        ac_cpu_pentium=no
13156 < fi
13157 < rm -f conftest*
13158 <
13159 < fi
13160 < { echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
13161 < echo "${ECHO_T}$ac_cpu_pentium" >&6; }
13162 < if test "$ac_cpu_pentium" = yes; then
13163 <        :
13164 <        CPU_FLAGS=-mcpu=pentium
13165 < else
13166 <        :
13167 <
13168 <
13169 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -mpentium" >&5
13170 < echo $ECHO_N "checking whether ${CC} accepts -mpentium... $ECHO_C" >&6; }
13171 < if test "${ac_pentium+set}" = set; then
13172 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13173 < else
13174 <  echo 'void f(){}' > conftest.c
13175 < if test -z "`${CC} -mpentium -c conftest.c 2>&1`"; then
13176 <        ac_pentium=yes
13177 < else
13178 <        ac_pentium=no
13179 < fi
13180 < rm -f conftest*
13181 <
13182 < fi
13183 < { echo "$as_me:$LINENO: result: $ac_pentium" >&5
13184 < echo "${ECHO_T}$ac_pentium" >&6; }
13185 < if test "$ac_pentium" = yes; then
13186 <        :
13187 <        CPU_FLAGS=-mpentium
13188 < else
13189 <        :
13190 <
13191 < fi
13192 <
13193 < fi
13194 <
13195 <                  ;;
13196 <          i686*)
13197 <
13198 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=pentiumpro" >&5
13199 < echo $ECHO_N "checking whether ${CC} accepts -mcpu=pentiumpro... $ECHO_C" >&6; }
13200 < if test "${ac_cpu_pentiumpro+set}" = set; then
13201 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13202 < else
13203 <  echo 'void f(){}' > conftest.c
13204 < if test -z "`${CC} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
13205 <        ac_cpu_pentiumpro=yes
13206 < else
13207 <        ac_cpu_pentiumpro=no
13208 < fi
13209 < rm -f conftest*
13210 <
13211 < fi
13212 < { echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
13213 < echo "${ECHO_T}$ac_cpu_pentiumpro" >&6; }
13214 < if test "$ac_cpu_pentiumpro" = yes; then
13215 <        :
13216 <        CPU_FLAGS=-mcpu=pentiumpro
13217 < else
13218 <        :
13219 <
13220 <
13221 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -mpentiumpro" >&5
13222 < echo $ECHO_N "checking whether ${CC} accepts -mpentiumpro... $ECHO_C" >&6; }
13223 < if test "${ac_pentiumpro+set}" = set; then
13224 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13225 < else
13226 <  echo 'void f(){}' > conftest.c
13227 < if test -z "`${CC} -mpentiumpro -c conftest.c 2>&1`"; then
13228 <        ac_pentiumpro=yes
13229 < else
13230 <        ac_pentiumpro=no
13231 < fi
13232 < rm -f conftest*
13233 <
13234 < fi
13235 < { echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
13236 < echo "${ECHO_T}$ac_pentiumpro" >&6; }
13237 < if test "$ac_pentiumpro" = yes; then
13238 <        :
13239 <        CPU_FLAGS=-mpentiumpro
13240 < else
13241 <        :
13242 <
13243 < fi
13244 <
13245 < fi
13246 <
13247 <                  ;;
13248 <          powerpc*)
13249 <                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
13250 <                is60x=`echo $cputype | egrep "^600-9e?$"`
13251 <                if test -n "$is60x"; then
13252 <
13253 <
13254 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=$cputype" >&5
13255 < echo $ECHO_N "checking whether ${CC} accepts -mcpu=$cputype... $ECHO_C" >&6; }
13256 < if test "${ac_m_cpu_60x+set}" = set; then
13257 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13258 < else
13259 <  echo 'void f(){}' > conftest.c
13260 < if test -z "`${CC} -mcpu=$cputype -c conftest.c 2>&1`"; then
13261 <        ac_m_cpu_60x=yes
13262 < else
13263 <        ac_m_cpu_60x=no
13264 < fi
13265 < rm -f conftest*
13266 <
13267 < fi
13268 < { echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
13269 < echo "${ECHO_T}$ac_m_cpu_60x" >&6; }
13270 < if test "$ac_m_cpu_60x" = yes; then
13271 <        :
13272 <        CPU_FLAGS=-mcpu=$cputype
13273 < else
13274 <        :
13275 <
13276 < fi
13277 <
13278 <                elif test "$cputype" = 750; then
13279 <
13280 <
13281 < { echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
13282 < echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6; }
13283 < if test "${ac_cv_prog_gcc_2_95+set}" = set; then
13284 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13285 < else
13286 <
13287 < cat > conftest.c <<EOF
13288 < #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
13289 < #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
13290 <     yes;
13291 < #  endif
13292 < #endif
13293 < EOF
13294 < if { ac_try='${CC-cc} -E conftest.c'
13295 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 <  (eval $ac_try) 2>&5
13297 <  ac_status=$?
13298 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
13300 <  ac_cv_prog_gcc_2_95=yes
13301 < else
13302 <  ac_cv_prog_gcc_2_95=no
13303 < fi
13304 <
13305 < fi
13306 < { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
13307 < echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6; }
13308 < if test "$ac_cv_prog_gcc_2_95" = yes; then
13309 <        :
13310 <
13311 <
13312 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=750" >&5
13313 < echo $ECHO_N "checking whether ${CC} accepts -mcpu=750... $ECHO_C" >&6; }
13314 < if test "${ac_m_cpu_750+set}" = set; then
13315 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13316 < else
13317 <  echo 'void f(){}' > conftest.c
13318 < if test -z "`${CC} -mcpu=750 -c conftest.c 2>&1`"; then
13319 <        ac_m_cpu_750=yes
13320 < else
13321 <        ac_m_cpu_750=no
13322 < fi
13323 < rm -f conftest*
13324 <
13325 < fi
13326 < { echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
13327 < echo "${ECHO_T}$ac_m_cpu_750" >&6; }
13328 < if test "$ac_m_cpu_750" = yes; then
13329 <        :
13330 <        CPU_FLAGS=-mcpu=750
13331 < else
13332 <        :
13333 <
13334 < fi
13335 <
13336 < else
13337 <        :
13338 <
13339 < fi
13340 <
13341 <                fi
13342 <                if test -z "$CPU_FLAGS"; then
13343 <
13344 <
13345 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=powerpc" >&5
13346 < echo $ECHO_N "checking whether ${CC} accepts -mcpu=powerpc... $ECHO_C" >&6; }
13347 < if test "${ac_m_cpu_powerpc+set}" = set; then
13348 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13349 < else
13350 <  echo 'void f(){}' > conftest.c
13351 < if test -z "`${CC} -mcpu=powerpc -c conftest.c 2>&1`"; then
13352 <        ac_m_cpu_powerpc=yes
13353 < else
13354 <        ac_m_cpu_powerpc=no
13355 < fi
13356 < rm -f conftest*
13357 <
13358 < fi
13359 < { echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
13360 < echo "${ECHO_T}$ac_m_cpu_powerpc" >&6; }
13361 < if test "$ac_m_cpu_powerpc" = yes; then
13362 <        :
13363 <        CPU_FLAGS=-mcpu=powerpc
13364 < else
13365 <        :
12305 >                CFLAGS="-O2"
12306 >        fi
12307 >        if test $ac_cv_prog_really_gcc = yes; then
12308 >                CFLAGS="-Os"
12309 >        fi;;
12310 >  esac
12311  
12312 < fi
12313 <
12314 <                fi
13370 <                if test -z "$CPU_FLAGS"; then
13371 <
13372 <
13373 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -mpowerpc" >&5
13374 < echo $ECHO_N "checking whether ${CC} accepts -mpowerpc... $ECHO_C" >&6; }
13375 < if test "${ac_m_powerpc+set}" = set; then
13376 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13377 < else
13378 <  echo 'void f(){}' > conftest.c
13379 < if test -z "`${CC} -mpowerpc -c conftest.c 2>&1`"; then
13380 <        ac_m_powerpc=yes
13381 < else
13382 <        ac_m_powerpc=no
13383 < fi
13384 < rm -f conftest*
13385 <
13386 < fi
13387 < { echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
13388 < echo "${ECHO_T}$ac_m_powerpc" >&6; }
13389 < if test "$ac_m_powerpc" = yes; then
13390 <        :
13391 <        CPU_FLAGS=-mpowerpc
13392 < else
13393 <        :
13394 <
13395 < fi
13396 <
13397 <                fi
13398 <          esac
12312 >  # use default flags for gcc on all systems
12313 >  if test $ac_cv_prog_really_gcc = yes -a -z "$CFLAGS"; then
12314 >     CFLAGS="-O2"
12315    fi
12316  
13401  if test -n "$CPU_FLAGS"; then
13402        CFLAGS="$CFLAGS $CPU_FLAGS"
13403  fi
13404
12317    if test -z "$CFLAGS"; then
12318          echo ""
12319          echo "********************************************************"
12320          echo "* WARNING: Don't know the best CFLAGS for this system  *"
12321          echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
12322 <        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
12322 >        echo "* (otherwise, a default of CFLAGS=-O will be used)     *"
12323          echo "********************************************************"
12324          echo ""
12325 <        CFLAGS="-O3"
12325 >        CFLAGS="-O"
12326    fi
12327  
12328  
12329  
12330 < { echo "$as_me:$LINENO: checking whether ${CC} accepts ${CFLAGS}" >&5
12331 < echo $ECHO_N "checking whether ${CC} accepts ${CFLAGS}... $ECHO_C" >&6; }
12330 > { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts ${CFLAGS}" >&5
12331 > $as_echo_n "checking whether ${CC} accepts ${CFLAGS}... " >&6; }
12332   if test "${ac_guessed_cflags+set}" = set; then
12333 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12333 >  $as_echo_n "(cached) " >&6
12334   else
12335    echo 'void f(){}' > conftest.c
12336   if test -z "`${CC} ${CFLAGS} -c conftest.c 2>&1`"; then
# Line 13429 | Line 12341 | fi
12341   rm -f conftest*
12342  
12343   fi
12344 < { echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
12345 < echo "${ECHO_T}$ac_guessed_cflags" >&6; }
12344 > { $as_echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
12345 > $as_echo "$ac_guessed_cflags" >&6; }
12346   if test "$ac_guessed_cflags" = yes; then
12347          :
12348  
# Line 13457 | Line 12369 | fi
12369  
12370  
12371  
12372 < { echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
12373 < echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6; }
12372 > { $as_echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
12373 > $as_echo_n "checking whether we are *really* using GNU c++... " >&6; }
12374   if test "${ac_cv_prog_really_gxx+set}" = set; then
12375 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12375 >  $as_echo_n "(cached) " >&6
12376   else
12377  
12378   cat > conftest.cpp <<EOF
# Line 13476 | Line 12388 | if { ac_try='${CXX-c++} -E conftest.cpp'
12388    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389    (eval $ac_try) 2>&5
12390    ac_status=$?
12391 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392    (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
12393    ac_cv_prog_really_gxx=yes
12394   else
# Line 13484 | Line 12396 | fi
12396   fi
12397  
12398   fi
12399 < { echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
12400 < echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6; }
12399 > { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
12400 > $as_echo "$ac_cv_prog_really_gxx" >&6; }
12401   if test "$ac_cv_prog_really_gxx" = yes; then
12402          :
12403  
# Line 13502 | Line 12414 | if test "$ac_test_CXXFLAGS" != "set"; then
12414    case "${host_cpu}-${host_os}" in
12415  
12416    *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
12417 <                    CXXFLAGS="-O"
12417 >                    CXXFLAGS="-O2"
12418                  fi;;
12419    sparc-solaris2*) if test "$CXX" = CC; then
12420                      CXXFLAGS="-features=extensions -O -dalign"
# Line 13528 | Line 12440 | if test "$ac_test_CXXFLAGS" != "set"; then
12440                  CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
12441          fi
12442          if test "$CXX" = icpc; then
12443 <                CXXFLAGS="-O3 -ip -no-prec-div -mdynamic-no-pic"
12443 >                CXXFLAGS="-O2"
12444 >        fi
12445 >        if test $ac_cv_prog_really_gxx = yes; then
12446 >                CXXFLAGS="-Os"
12447          fi;;
12448    esac
12449  
12450    # use default flags for gcc on all systems
12451 <  if test $ac_cv_prog_really_gxx = yes; then
12452 <     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
13538 <  fi
13539 <
13540 <  # test for gcc-specific flags:
13541 <  if test $ac_cv_prog_really_gxx = yes; then
13542 <    # -malign-double for x86 systems
13543 <
13544 <
13545 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -malign-double" >&5
13546 < echo $ECHO_N "checking whether ${CXX} accepts -malign-double... $ECHO_C" >&6; }
13547 < if test "${ac_align_double+set}" = set; then
13548 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13549 < else
13550 <  echo 'void f(){}' > conftest.cpp
13551 < if test -z "`${CXX} -malign-double -c conftest.cpp 2>&1`"; then
13552 <        ac_align_double=yes
13553 < else
13554 <        ac_align_double=no
13555 < fi
13556 < rm -f conftest*
13557 <
13558 < fi
13559 < { echo "$as_me:$LINENO: result: $ac_align_double" >&5
13560 < echo "${ECHO_T}$ac_align_double" >&6; }
13561 < if test "$ac_align_double" = yes; then
13562 <        :
13563 <        CXXFLAGS="$CXXFLAGS -malign-double"
13564 < else
13565 <        :
13566 <
13567 < fi
13568 <
13569 <    # -fstrict-aliasing for gcc-2.95+
13570 <
13571 <
13572 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -fstrict-aliasing" >&5
13573 < echo $ECHO_N "checking whether ${CXX} accepts -fstrict-aliasing... $ECHO_C" >&6; }
13574 < if test "${ac_fstrict_aliasing+set}" = set; then
13575 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13576 < else
13577 <  echo 'void f(){}' > conftest.cpp
13578 < if test -z "`${CXX} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
13579 <        ac_fstrict_aliasing=yes
13580 < else
13581 <        ac_fstrict_aliasing=no
13582 < fi
13583 < rm -f conftest*
13584 <
13585 < fi
13586 < { echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
13587 < echo "${ECHO_T}$ac_fstrict_aliasing" >&6; }
13588 < if test "$ac_fstrict_aliasing" = yes; then
13589 <        :
13590 <        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
13591 < else
13592 <        :
13593 <
13594 < fi
13595 <
13596 <  fi
13597 <
13598 <  CPU_FLAGS=""
13599 <  if test $ac_cv_prog_really_gxx = yes; then
13600 <                  case "${host_cpu}" in
13601 <          i586*)
13602 <
13603 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=pentium" >&5
13604 < echo $ECHO_N "checking whether ${CXX} accepts -mcpu=pentium... $ECHO_C" >&6; }
13605 < if test "${ac_cpu_pentium+set}" = set; then
13606 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13607 < else
13608 <  echo 'void f(){}' > conftest.cpp
13609 < if test -z "`${CXX} -mcpu=pentium -c conftest.cpp 2>&1`"; then
13610 <        ac_cpu_pentium=yes
13611 < else
13612 <        ac_cpu_pentium=no
13613 < fi
13614 < rm -f conftest*
13615 <
13616 < fi
13617 < { echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
13618 < echo "${ECHO_T}$ac_cpu_pentium" >&6; }
13619 < if test "$ac_cpu_pentium" = yes; then
13620 <        :
13621 <        CPU_FLAGS=-mcpu=pentium
13622 < else
13623 <        :
13624 <
13625 <
13626 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpentium" >&5
13627 < echo $ECHO_N "checking whether ${CXX} accepts -mpentium... $ECHO_C" >&6; }
13628 < if test "${ac_pentium+set}" = set; then
13629 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13630 < else
13631 <  echo 'void f(){}' > conftest.cpp
13632 < if test -z "`${CXX} -mpentium -c conftest.cpp 2>&1`"; then
13633 <        ac_pentium=yes
13634 < else
13635 <        ac_pentium=no
13636 < fi
13637 < rm -f conftest*
13638 <
13639 < fi
13640 < { echo "$as_me:$LINENO: result: $ac_pentium" >&5
13641 < echo "${ECHO_T}$ac_pentium" >&6; }
13642 < if test "$ac_pentium" = yes; then
13643 <        :
13644 <        CPU_FLAGS=-mpentium
13645 < else
13646 <        :
13647 <
13648 < fi
13649 <
13650 < fi
13651 <
13652 <                  ;;
13653 <          i686*)
13654 <
13655 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=pentiumpro" >&5
13656 < echo $ECHO_N "checking whether ${CXX} accepts -mcpu=pentiumpro... $ECHO_C" >&6; }
13657 < if test "${ac_cpu_pentiumpro+set}" = set; then
13658 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13659 < else
13660 <  echo 'void f(){}' > conftest.cpp
13661 < if test -z "`${CXX} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
13662 <        ac_cpu_pentiumpro=yes
13663 < else
13664 <        ac_cpu_pentiumpro=no
13665 < fi
13666 < rm -f conftest*
13667 <
13668 < fi
13669 < { echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
13670 < echo "${ECHO_T}$ac_cpu_pentiumpro" >&6; }
13671 < if test "$ac_cpu_pentiumpro" = yes; then
13672 <        :
13673 <        CPU_FLAGS=-mcpu=pentiumpro
13674 < else
13675 <        :
13676 <
13677 <
13678 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpentiumpro" >&5
13679 < echo $ECHO_N "checking whether ${CXX} accepts -mpentiumpro... $ECHO_C" >&6; }
13680 < if test "${ac_pentiumpro+set}" = set; then
13681 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13682 < else
13683 <  echo 'void f(){}' > conftest.cpp
13684 < if test -z "`${CXX} -mpentiumpro -c conftest.cpp 2>&1`"; then
13685 <        ac_pentiumpro=yes
13686 < else
13687 <        ac_pentiumpro=no
13688 < fi
13689 < rm -f conftest*
13690 <
13691 < fi
13692 < { echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
13693 < echo "${ECHO_T}$ac_pentiumpro" >&6; }
13694 < if test "$ac_pentiumpro" = yes; then
13695 <        :
13696 <        CPU_FLAGS=-mpentiumpro
13697 < else
13698 <        :
13699 <
13700 < fi
13701 <
13702 < fi
13703 <
13704 <                  ;;
13705 <          powerpc*)
13706 <                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
13707 <                is60x=`echo $cputype | egrep "^600-9e?$"`
13708 <                if test -n "$is60x"; then
13709 <
13710 <
13711 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=$cputype" >&5
13712 < echo $ECHO_N "checking whether ${CXX} accepts -mcpu=$cputype... $ECHO_C" >&6; }
13713 < if test "${ac_m_cpu_60x+set}" = set; then
13714 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13715 < else
13716 <  echo 'void f(){}' > conftest.cpp
13717 < if test -z "`${CXX} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
13718 <        ac_m_cpu_60x=yes
13719 < else
13720 <        ac_m_cpu_60x=no
13721 < fi
13722 < rm -f conftest*
13723 <
13724 < fi
13725 < { echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
13726 < echo "${ECHO_T}$ac_m_cpu_60x" >&6; }
13727 < if test "$ac_m_cpu_60x" = yes; then
13728 <        :
13729 <        CPU_FLAGS=-mcpu=$cputype
13730 < else
13731 <        :
13732 <
13733 < fi
13734 <
13735 <                elif test "$cputype" = 750; then
13736 <
13737 <
13738 < { echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
13739 < echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6; }
13740 < if test "${ac_cv_prog_gxx_2_95+set}" = set; then
13741 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13742 < else
13743 <
13744 < cat > conftest.cpp <<EOF
13745 < #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
13746 < #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
13747 <     yes;
13748 < #  endif
13749 < #endif
13750 < EOF
13751 < if { ac_try='${CXX-c++} -E conftest.cpp'
13752 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 <  (eval $ac_try) 2>&5
13754 <  ac_status=$?
13755 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
13757 <  ac_cv_prog_gxx_2_95=yes
13758 < else
13759 <  ac_cv_prog_gxx_2_95=no
13760 < fi
13761 <
13762 < fi
13763 < { echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
13764 < echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6; }
13765 < if test "$ac_cv_prog_gxx_2_95" = yes; then
13766 <        :
13767 <
13768 <
13769 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=750" >&5
13770 < echo $ECHO_N "checking whether ${CXX} accepts -mcpu=750... $ECHO_C" >&6; }
13771 < if test "${ac_m_cpu_750+set}" = set; then
13772 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13773 < else
13774 <  echo 'void f(){}' > conftest.cpp
13775 < if test -z "`${CXX} -mcpu=750 -c conftest.cpp 2>&1`"; then
13776 <        ac_m_cpu_750=yes
13777 < else
13778 <        ac_m_cpu_750=no
13779 < fi
13780 < rm -f conftest*
13781 <
13782 < fi
13783 < { echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
13784 < echo "${ECHO_T}$ac_m_cpu_750" >&6; }
13785 < if test "$ac_m_cpu_750" = yes; then
13786 <        :
13787 <        CPU_FLAGS=-mcpu=750
13788 < else
13789 <        :
13790 <
13791 < fi
13792 <
13793 < else
13794 <        :
13795 <
13796 < fi
13797 <
13798 <                fi
13799 <                if test -z "$CPU_FLAGS"; then
13800 <
13801 <
13802 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=powerpc" >&5
13803 < echo $ECHO_N "checking whether ${CXX} accepts -mcpu=powerpc... $ECHO_C" >&6; }
13804 < if test "${ac_m_cpu_powerpc+set}" = set; then
13805 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13806 < else
13807 <  echo 'void f(){}' > conftest.cpp
13808 < if test -z "`${CXX} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
13809 <        ac_m_cpu_powerpc=yes
13810 < else
13811 <        ac_m_cpu_powerpc=no
13812 < fi
13813 < rm -f conftest*
13814 <
13815 < fi
13816 < { echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
13817 < echo "${ECHO_T}$ac_m_cpu_powerpc" >&6; }
13818 < if test "$ac_m_cpu_powerpc" = yes; then
13819 <        :
13820 <        CPU_FLAGS=-mcpu=powerpc
13821 < else
13822 <        :
13823 <
13824 < fi
13825 <
13826 <                fi
13827 <                if test -z "$CPU_FLAGS"; then
13828 <
13829 <
13830 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpowerpc" >&5
13831 < echo $ECHO_N "checking whether ${CXX} accepts -mpowerpc... $ECHO_C" >&6; }
13832 < if test "${ac_m_powerpc+set}" = set; then
13833 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13834 < else
13835 <  echo 'void f(){}' > conftest.cpp
13836 < if test -z "`${CXX} -mpowerpc -c conftest.cpp 2>&1`"; then
13837 <        ac_m_powerpc=yes
13838 < else
13839 <        ac_m_powerpc=no
13840 < fi
13841 < rm -f conftest*
13842 <
13843 < fi
13844 < { echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
13845 < echo "${ECHO_T}$ac_m_powerpc" >&6; }
13846 < if test "$ac_m_powerpc" = yes; then
13847 <        :
13848 <        CPU_FLAGS=-mpowerpc
13849 < else
13850 <        :
13851 <
13852 < fi
13853 <
13854 <                fi
13855 <          esac
12451 >  if test $ac_cv_prog_really_gxx = yes -a -z "$CXXFLAGS"; then
12452 >     CXXFLAGS="-O2"
12453    fi
12454  
13858  if test -n "$CPU_FLAGS"; then
13859        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
13860  fi
13861
12455    if test -z "$CXXFLAGS"; then
12456          echo ""
12457          echo "**********************************************************"
12458          echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
12459          echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
12460 <        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
12460 >        echo "* (otherwise, a default of CXXFLAGS=-O will be used)     *"
12461          echo "**********************************************************"
12462          echo ""
12463 <        CXXFLAGS="-O3"
12463 >        CXXFLAGS="-O"
12464    fi
12465  
12466  
12467  
12468 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts ${CXXFLAGS}" >&5
12469 < echo $ECHO_N "checking whether ${CXX} accepts ${CXXFLAGS}... $ECHO_C" >&6; }
12468 > { $as_echo "$as_me:$LINENO: checking whether ${CXX} accepts ${CXXFLAGS}" >&5
12469 > $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS}... " >&6; }
12470   if test "${ac_guessed_cxxflags+set}" = set; then
12471 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12471 >  $as_echo_n "(cached) " >&6
12472   else
12473    echo 'void f(){}' > conftest.cpp
12474   if test -z "`${CXX} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
# Line 13886 | Line 12479 | fi
12479   rm -f conftest*
12480  
12481   fi
12482 < { echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
12483 < echo "${ECHO_T}$ac_guessed_cxxflags" >&6; }
12482 > { $as_echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
12483 > $as_echo "$ac_guessed_cxxflags" >&6; }
12484   if test "$ac_guessed_cxxflags" = yes; then
12485          :
12486  
# Line 13912 | Line 12505 | esac
12505   esac
12506  
12507  
12508 < cat >>confdefs.h <<\_ACEOF
13916 < #define OBAPI
13917 < _ACEOF
12508 > acx_cgal_found=no
12509  
12510 <
12511 <
12512 <
13922 < # Check whether --with-mpi was given.
13923 < if test "${with_mpi+set}" = set; then
13924 <  withval=$with_mpi; with_mpi=$withval
13925 < else
13926 <  with_mpi="no"
12510 > # Check whether --with-cgalmakefile was given.
12511 > if test "${with_cgalmakefile+set}" = set; then
12512 >  withval=$with_cgalmakefile;
12513   fi
12514  
12515 <
12516 < case "x$with_mpi" in
12517 <        xyes | "x")  USE_MPI=yes;;
12518 <        xno) USE_MPI=no ;;
12519 <        *) MPI="$with_mpi"; USE_MPI=yes ;;
12515 > case $with_cgalmakefile in
12516 >        yes | "") ;;
12517 >        no) acx_cgal_found=disable ;;
12518 >        -* | */* | *.a | *.so | *.so.* | *.o) CGAL_MAKEFILE="$with_cgalmakefile" ;;
12519 >        *) CGAL_MAKEFILE="$with_cgalmakefile" ;;
12520   esac
13935 if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
13936        MPI="/usr/local"
13937 fi
13938 if test "$USE_MPI" = "yes"; then
12521  
12522 + if test "$acx_cgal_found" == no; then
12523 +    { $as_echo "$as_me:$LINENO: checking CGAL_MAKEFILE" >&5
12524 + $as_echo_n "checking CGAL_MAKEFILE... " >&6; }
12525  
12526 < # Set variables...
13942 < MPI_LIB_DIR="$MPI/lib"
13943 < MPI_INC_DIR="$MPI/include"
12526 >    if test \! -z "$CGAL_MAKEFILE"; then
12527  
12528 +        if test -e "$CGAL_MAKEFILE"; then
12529 +            tname=`mktemp /tmp/cgal_makefile_dsrXXXXXX`
12530  
12531 + cat > $tname << _ACEOF
12532 + include $CGAL_MAKEFILE
12533  
12534 < ac_ext=c
12535 < ac_cpp='$CPP $CPPFLAGS'
13949 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13950 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13951 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
12534 > cppflags:
12535 >        @echo \$(CGAL_CXXFLAGS)
12536  
12537 < { echo "$as_me:$LINENO: checking for mpi.h" >&5
12538 < echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6; }
12539 < have_mpi_h=0
12540 < rm -f conftest*
12541 < echo '#include <mpi.h>' > conftest.c
12542 < if ${CC} -I${MPI_INC_DIR} -c conftest.c 2>&1 ; then
12543 <        { echo "$as_me:$LINENO: result: yes" >&5
12544 < echo "${ECHO_T}yes" >&6; }
12545 <        have_mpi_h=1
12546 < else
12547 <        if test -s conftest.out ; then
12548 <                cat conftest.out >> config.log
12549 <        fi
12550 <        { echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
12551 < echo "${ECHO_T}no! Check MPI include paths" >&6; }
12552 <        USE_MPI="no"
12553 < fi
12554 < rm -f conftest*
12555 < if test "$have_mpi_h" = 1; then
12537 > cxxflags:
12538 >        @echo
12539 > ldflags:
12540 >        @echo \$(CGAL_LDFLAGS)
12541 > _ACEOF
12542 >            CGAL_CPPFLAGS="`make -s -f $tname cppflags`"
12543 >            CGAL_CXXFLAGS="`make -s -f $tname cxxflags`"
12544 >            CGAL_LDFLAGST="`make -s -f $tname ldflags`"
12545 >            for i in $CGAL_LDFLAGST; do
12546 >                if test `echo $i| grep -c ^-l`; then
12547 >                    CGAL_LIBS="$CGAL_LIBS $i"
12548 >                else
12549 >                    CGAL_LDFLAGS="$CGAL_LDFLAGS $i"
12550 >                fi
12551 >            done
12552 >            rm -f $tname
12553 >            { $as_echo "$as_me:$LINENO: result: yes" >&5
12554 > $as_echo "yes" >&6; }
12555 >            acx_cgal_found=yes
12556 >                                   else
12557 >            { $as_echo "$as_me:$LINENO: result: invalid" >&5
12558 > $as_echo "invalid" >&6; }
12559 >            { { $as_echo "$as_me:$LINENO: error: CGAL_MAKEFILE defined, but the makefile does not exist." >&5
12560 > $as_echo "$as_me: error: CGAL_MAKEFILE defined, but the makefile does not exist." >&2;}
12561 >   { (exit 1); exit 1; }; }
12562 >        fi
12563 >    else
12564 >        { $as_echo "$as_me:$LINENO: result: not defined" >&5
12565 > $as_echo "not defined" >&6; }
12566 >    fi
12567 > fi
12568  
12569 < cat >>confdefs.h <<\_ACEOF
12570 < #define HAVE_MPI_H 1
12569 > if test "$acx_cgal_found" == no; then
12570 >        if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
12571 >  { $as_echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5
12572 > $as_echo_n "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... " >&6; }
12573 > if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
12574 >  $as_echo_n "(cached) " >&6
12575 > fi
12576 > { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5
12577 > $as_echo "$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6; }
12578 > else
12579 >  # Is the header compilable?
12580 > { $as_echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability" >&5
12581 > $as_echo_n "checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability... " >&6; }
12582 > cat >conftest.$ac_ext <<_ACEOF
12583 > /* confdefs.h.  */
12584   _ACEOF
12585 + cat confdefs.h >>conftest.$ac_ext
12586 + cat >>conftest.$ac_ext <<_ACEOF
12587 + /* end confdefs.h.  */
12588 + $ac_includes_default
12589 + #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
12590 + _ACEOF
12591 + rm -f conftest.$ac_objext
12592 + if { (ac_try="$ac_compile"
12593 + case "(($ac_try" in
12594 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12595 +  *) ac_try_echo=$ac_try;;
12596 + esac
12597 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12598 + $as_echo "$ac_try_echo") >&5
12599 +  (eval "$ac_compile") 2>conftest.er1
12600 +  ac_status=$?
12601 +  grep -v '^ *+' conftest.er1 >conftest.err
12602 +  rm -f conftest.er1
12603 +  cat conftest.err >&5
12604 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 +  (exit $ac_status); } && {
12606 +         test -z "$ac_c_werror_flag" ||
12607 +         test ! -s conftest.err
12608 +       } && test -s conftest.$ac_objext; then
12609 +  ac_header_compiler=yes
12610 + else
12611 +  $as_echo "$as_me: failed program was:" >&5
12612 + sed 's/^/| /' conftest.$ac_ext >&5
12613  
12614 +        ac_header_compiler=no
12615   fi
12616  
12617 < { echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
12618 < echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6; }
12617 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12618 > { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12619 > $as_echo "$ac_header_compiler" >&6; }
12620  
12621 < ac_ext=${ac_fc_srcext-f}
12622 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12623 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12624 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12625 <
12626 < ac_save_ext=$ac_ext
12627 < ac_ext=F90
12628 < ac_save_FCFLAGS=$FCFLAGS
12629 < have_mpif_h=0
12630 < rm -f conftest*
12631 < cat >conftest.$ac_ext <<EOF
12632 < program main
12633 <   include 'mpif.h'
12634 < end
12635 < EOF
12636 < if $FC -I$MPI_INC_DIR -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext > conftest.out 2>&1 ; then
12637 <        { echo "$as_me:$LINENO: result: yes" >&5
12638 < echo "${ECHO_T}yes" >&6; }
12639 <        MPI_F90_INC="$MPI_INC_DIR"
12640 <        have_mpif_h=1
12621 > # Is the header present?
12622 > { $as_echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence" >&5
12623 > $as_echo_n "checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence... " >&6; }
12624 > cat >conftest.$ac_ext <<_ACEOF
12625 > /* confdefs.h.  */
12626 > _ACEOF
12627 > cat confdefs.h >>conftest.$ac_ext
12628 > cat >>conftest.$ac_ext <<_ACEOF
12629 > /* end confdefs.h.  */
12630 > #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
12631 > _ACEOF
12632 > if { (ac_try="$ac_cpp conftest.$ac_ext"
12633 > case "(($ac_try" in
12634 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635 >  *) ac_try_echo=$ac_try;;
12636 > esac
12637 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12638 > $as_echo "$ac_try_echo") >&5
12639 >  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12640 >  ac_status=$?
12641 >  grep -v '^ *+' conftest.er1 >conftest.err
12642 >  rm -f conftest.er1
12643 >  cat conftest.err >&5
12644 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 >  (exit $ac_status); } >/dev/null && {
12646 >         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12647 >         test ! -s conftest.err
12648 >       }; then
12649 >  ac_header_preproc=yes
12650   else
12651 <        if test -s conftest.out ; then
12652 <                cat conftest.out >> config.log
12653 <        fi
12654 <        { echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
14007 < echo "${ECHO_T}no! Check MPI include paths" >&6; }
14008 <        USE_MPI="no"
12651 >  $as_echo "$as_me: failed program was:" >&5
12652 > sed 's/^/| /' conftest.$ac_ext >&5
12653 >
12654 >  ac_header_preproc=no
12655   fi
14010 rm -f conftest*
12656  
12657 < if test "$have_mpif_h" = 1; then
12657 > rm -f conftest.err conftest.$ac_ext
12658 > { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12659 > $as_echo "$ac_header_preproc" >&6; }
12660  
12661 < cat >>confdefs.h <<\_ACEOF
12662 < #define HAVE_MPIF_H 1
12663 < _ACEOF
12661 > # So?  What about this header?
12662 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12663 >  yes:no: )
12664 >    { $as_echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&5
12665 > $as_echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12666 >    { $as_echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&5
12667 > $as_echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&2;}
12668 >    ac_header_preproc=yes
12669 >    ;;
12670 >  no:yes:* )
12671 >    { $as_echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&5
12672 > $as_echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&2;}
12673 >    { $as_echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     check for missing prerequisite headers?" >&5
12674 > $as_echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     check for missing prerequisite headers?" >&2;}
12675 >    { $as_echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&5
12676 > $as_echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&2;}
12677 >    { $as_echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     section \"Present But Cannot Be Compiled\"" >&5
12678 > $as_echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12679 >    { $as_echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&5
12680 > $as_echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&2;}
12681 >    { $as_echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&5
12682 > $as_echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&2;}
12683 >    ( cat <<\_ASBOX
12684 > ## ------------------------------ ##
12685 > ## Report this to gezelter@nd.edu ##
12686 > ## ------------------------------ ##
12687 > _ASBOX
12688 >     ) | sed "s/^/$as_me: WARNING:     /" >&2
12689 >    ;;
12690 > esac
12691 > { $as_echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5
12692 > $as_echo_n "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... " >&6; }
12693 > if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
12694 >  $as_echo_n "(cached) " >&6
12695 > else
12696 >  ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h=$ac_header_preproc
12697 > fi
12698 > { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5
12699 > $as_echo "$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6; }
12700  
12701   fi
12702 < FCFLAGS=$ac_save_FCFLAGS
12703 < ac_ext=$ac_save_ext
12704 < ac_ext=c
12705 < ac_cpp='$CPP $CPPFLAGS'
12706 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14024 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14025 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
12702 > if test $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h = yes; then
12703 >  cgal_have_header=yes
12704 > else
12705 >  cgal_have_header=no
12706 > fi
12707  
12708  
12709 < ac_ext=c
12710 < ac_cpp='$CPP $CPPFLAGS'
12711 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12712 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12713 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
14033 <
14034 < ac_save_LDFLAGS=$LDFLAGS
14035 < LDFLAGS="-L${MPI_LIB_DIR} ${LDFLAGS} "
14036 <
14037 < if test x = x"$MPI_LIB"; then
14038 <        { echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
14039 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6; }
14040 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
14041 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12709 >        if test "$cgal_have_header" == yes; then
12710 >                { $as_echo "$as_me:$LINENO: checking for main in -lCGAL" >&5
12711 > $as_echo_n "checking for main in -lCGAL... " >&6; }
12712 > if test "${ac_cv_lib_CGAL_main+set}" = set; then
12713 >  $as_echo_n "(cached) " >&6
12714   else
12715    ac_check_lib_save_LIBS=$LIBS
12716 < LIBS="-lmpich  $LIBS"
12716 > LIBS="-lCGAL  $LIBS"
12717   cat >conftest.$ac_ext <<_ACEOF
12718   /* confdefs.h.  */
12719   _ACEOF
# Line 14049 | Line 12721 | cat >>conftest.$ac_ext <<_ACEOF
12721   cat >>conftest.$ac_ext <<_ACEOF
12722   /* end confdefs.h.  */
12723  
12724 < /* Override any GCC internal prototype to avoid an error.
14053 <   Use char because int might match the return type of a GCC
14054 <   builtin and then its argument prototype would still apply.  */
14055 < #ifdef __cplusplus
14056 < extern "C"
14057 < #endif
14058 < char MPI_Init ();
12724 >
12725   #ifdef FC_DUMMY_MAIN
12726   #ifndef FC_DUMMY_MAIN_EQ_F77
12727   #  ifdef __cplusplus
# Line 14067 | Line 12733 | main ()
12733   int
12734   main ()
12735   {
12736 < return MPI_Init ();
12736 > return main ();
12737    ;
12738    return 0;
12739   }
# Line 14078 | Line 12744 | esac
12744    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745    *) ac_try_echo=$ac_try;;
12746   esac
12747 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12748 > $as_echo "$ac_try_echo") >&5
12749    (eval "$ac_link") 2>conftest.er1
12750    ac_status=$?
12751    grep -v '^ *+' conftest.er1 >conftest.err
12752    rm -f conftest.er1
12753    cat conftest.err >&5
12754 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755    (exit $ac_status); } && {
12756           test -z "$ac_c_werror_flag" ||
12757           test ! -s conftest.err
12758 <       } && test -s conftest$ac_exeext &&
12759 <       $as_test_x conftest$ac_exeext; then
12760 <  ac_cv_lib_mpich_MPI_Init=yes
12758 >       } && test -s conftest$ac_exeext && {
12759 >         test "$cross_compiling" = yes ||
12760 >         $as_test_x conftest$ac_exeext
12761 >       }; then
12762 >  ac_cv_lib_CGAL_main=yes
12763   else
12764 <  echo "$as_me: failed program was:" >&5
12764 >  $as_echo "$as_me: failed program was:" >&5
12765   sed 's/^/| /' conftest.$ac_ext >&5
12766  
12767 <        ac_cv_lib_mpich_MPI_Init=no
12767 >        ac_cv_lib_CGAL_main=no
12768   fi
12769  
12770 + rm -rf conftest.dSYM
12771   rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12772        conftest$ac_exeext conftest.$ac_ext
12773   LIBS=$ac_check_lib_save_LIBS
12774   fi
12775 < { echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
12776 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6; }
12777 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
12778 <  MPI_LIB="-lmpich"
12775 > { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_CGAL_main" >&5
12776 > $as_echo "$ac_cv_lib_CGAL_main" >&6; }
12777 > if test $ac_cv_lib_CGAL_main = yes; then
12778 >  cgal_have_lib=yes
12779 > else
12780 >  cgal_have_lib=no
12781   fi
12782  
12783 < fi
12784 < $as_unset ac_cv_lib_mpich_MPI_Init
12785 < if test x = x"$MPI_LIB"; then
12786 <        { echo "$as_me:$LINENO: checking for MPI_Init in -lpmpich" >&5
12787 < echo $ECHO_N "checking for MPI_Init in -lpmpich... $ECHO_C" >&6; }
12788 < if test "${ac_cv_lib_pmpich_MPI_Init+set}" = set; then
14117 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12783 >                if test "$cgal_have_lib" == no; then
12784 >                        save_LIBS="$LIBS"; LIBS="$LIBS -lgmp -lmpfr -lm"
12785 >                        { $as_echo "$as_me:$LINENO: checking for main in -lCGAL" >&5
12786 > $as_echo_n "checking for main in -lCGAL... " >&6; }
12787 > if test "${ac_cv_lib_CGAL_main+set}" = set; then
12788 >  $as_echo_n "(cached) " >&6
12789   else
12790    ac_check_lib_save_LIBS=$LIBS
12791 < LIBS="-lpmpich -lmpich -lpmpich -lmpich $LIBS"
12791 > LIBS="-lCGAL  $LIBS"
12792   cat >conftest.$ac_ext <<_ACEOF
12793   /* confdefs.h.  */
12794   _ACEOF
# Line 14125 | Line 12796 | cat >>conftest.$ac_ext <<_ACEOF
12796   cat >>conftest.$ac_ext <<_ACEOF
12797   /* end confdefs.h.  */
12798  
12799 < /* Override any GCC internal prototype to avoid an error.
14129 <   Use char because int might match the return type of a GCC
14130 <   builtin and then its argument prototype would still apply.  */
14131 < #ifdef __cplusplus
14132 < extern "C"
14133 < #endif
14134 < char MPI_Init ();
12799 >
12800   #ifdef FC_DUMMY_MAIN
12801   #ifndef FC_DUMMY_MAIN_EQ_F77
12802   #  ifdef __cplusplus
# Line 14143 | Line 12808 | main ()
12808   int
12809   main ()
12810   {
12811 < return MPI_Init ();
12811 > return main ();
12812    ;
12813    return 0;
12814   }
# Line 14154 | Line 12819 | esac
12819    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820    *) ac_try_echo=$ac_try;;
12821   esac
12822 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12823 > $as_echo "$ac_try_echo") >&5
12824    (eval "$ac_link") 2>conftest.er1
12825    ac_status=$?
12826    grep -v '^ *+' conftest.er1 >conftest.err
12827    rm -f conftest.er1
12828    cat conftest.err >&5
12829 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830    (exit $ac_status); } && {
12831           test -z "$ac_c_werror_flag" ||
12832           test ! -s conftest.err
12833 <       } && test -s conftest$ac_exeext &&
12834 <       $as_test_x conftest$ac_exeext; then
12835 <  ac_cv_lib_pmpich_MPI_Init=yes
12833 >       } && test -s conftest$ac_exeext && {
12834 >         test "$cross_compiling" = yes ||
12835 >         $as_test_x conftest$ac_exeext
12836 >       }; then
12837 >  ac_cv_lib_CGAL_main=yes
12838   else
12839 <  echo "$as_me: failed program was:" >&5
12839 >  $as_echo "$as_me: failed program was:" >&5
12840   sed 's/^/| /' conftest.$ac_ext >&5
12841  
12842 <        ac_cv_lib_pmpich_MPI_Init=no
12842 >        ac_cv_lib_CGAL_main=no
12843   fi
12844  
12845 + rm -rf conftest.dSYM
12846   rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12847        conftest$ac_exeext conftest.$ac_ext
12848   LIBS=$ac_check_lib_save_LIBS
12849   fi
12850 < { echo "$as_me:$LINENO: result: $ac_cv_lib_pmpich_MPI_Init" >&5
12851 < echo "${ECHO_T}$ac_cv_lib_pmpich_MPI_Init" >&6; }
12852 < if test $ac_cv_lib_pmpich_MPI_Init = yes; then
12853 <  MPI_LIB="-lpmpich -lmpich -lpmpich -lmpich"
12850 > { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_CGAL_main" >&5
12851 > $as_echo "$ac_cv_lib_CGAL_main" >&6; }
12852 > if test $ac_cv_lib_CGAL_main = yes; then
12853 >  CGAL_LIBS="-lCGAL -lgmp -lmpfr"
12854 >                                                  cgal_have_lib=yes
12855 > else
12856 >  cgal_have_lib=no
12857   fi
12858  
12859 < fi
12860 < if test x = x"$MPI_LIB"; then
12861 <        { echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
12862 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; }
12863 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
12864 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12859 >                        LIBS="$save_LIBS"
12860 >                else
12861 >                        CGAL_LIBS="-lCGAL"
12862 >                        { $as_echo "$as_me:$LINENO: checking for main in -lmpfr" >&5
12863 > $as_echo_n "checking for main in -lmpfr... " >&6; }
12864 > if test "${ac_cv_lib_mpfr_main+set}" = set; then
12865 >  $as_echo_n "(cached) " >&6
12866   else
12867    ac_check_lib_save_LIBS=$LIBS
12868 < LIBS="-lmpi  $LIBS"
12868 > LIBS="-lmpfr  $LIBS"
12869   cat >conftest.$ac_ext <<_ACEOF
12870   /* confdefs.h.  */
12871   _ACEOF
# Line 14200 | Line 12873 | cat >>conftest.$ac_ext <<_ACEOF
12873   cat >>conftest.$ac_ext <<_ACEOF
12874   /* end confdefs.h.  */
12875  
12876 < /* Override any GCC internal prototype to avoid an error.
14204 <   Use char because int might match the return type of a GCC
14205 <   builtin and then its argument prototype would still apply.  */
14206 < #ifdef __cplusplus
14207 < extern "C"
14208 < #endif
14209 < char MPI_Init ();
12876 >
12877   #ifdef FC_DUMMY_MAIN
12878   #ifndef FC_DUMMY_MAIN_EQ_F77
12879   #  ifdef __cplusplus
# Line 14218 | Line 12885 | main ()
12885   int
12886   main ()
12887   {
12888 < return MPI_Init ();
12888 > return main ();
12889    ;
12890    return 0;
12891   }
# Line 14229 | Line 12896 | esac
12896    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897    *) ac_try_echo=$ac_try;;
12898   esac
12899 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12900 > $as_echo "$ac_try_echo") >&5
12901    (eval "$ac_link") 2>conftest.er1
12902    ac_status=$?
12903    grep -v '^ *+' conftest.er1 >conftest.err
12904    rm -f conftest.er1
12905    cat conftest.err >&5
12906 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907    (exit $ac_status); } && {
12908           test -z "$ac_c_werror_flag" ||
12909           test ! -s conftest.err
12910 <       } && test -s conftest$ac_exeext &&
12911 <       $as_test_x conftest$ac_exeext; then
12912 <  ac_cv_lib_mpi_MPI_Init=yes
12910 >       } && test -s conftest$ac_exeext && {
12911 >         test "$cross_compiling" = yes ||
12912 >         $as_test_x conftest$ac_exeext
12913 >       }; then
12914 >  ac_cv_lib_mpfr_main=yes
12915   else
12916 <  echo "$as_me: failed program was:" >&5
12916 >  $as_echo "$as_me: failed program was:" >&5
12917   sed 's/^/| /' conftest.$ac_ext >&5
12918  
12919 <        ac_cv_lib_mpi_MPI_Init=no
12919 >        ac_cv_lib_mpfr_main=no
12920   fi
12921  
12922 + rm -rf conftest.dSYM
12923   rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12924        conftest$ac_exeext conftest.$ac_ext
12925   LIBS=$ac_check_lib_save_LIBS
12926   fi
12927 < { echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
12928 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; }
12929 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
12930 <  MPI_LIB="-lmpi"
12927 > { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpfr_main" >&5
12928 > $as_echo "$ac_cv_lib_mpfr_main" >&6; }
12929 > if test $ac_cv_lib_mpfr_main = yes; then
12930 >  CGAL_LIBS="$CGAL_LIBS -lmpfr"
12931   fi
12932  
12933 < fi
12934 < $as_unset ac_cv_lib_mpi_MPI_Init
12935 < if test x = x"$MPI_LIB"; then
12936 <        { echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
14266 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; }
14267 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
14268 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12933 >                        { $as_echo "$as_me:$LINENO: checking for main in -lgmp" >&5
12934 > $as_echo_n "checking for main in -lgmp... " >&6; }
12935 > if test "${ac_cv_lib_gmp_main+set}" = set; then
12936 >  $as_echo_n "(cached) " >&6
12937   else
12938    ac_check_lib_save_LIBS=$LIBS
12939 < LIBS="-lmpi -llam $LIBS"
12939 > LIBS="-lgmp  $LIBS"
12940   cat >conftest.$ac_ext <<_ACEOF
12941   /* confdefs.h.  */
12942   _ACEOF
# Line 14276 | Line 12944 | cat >>conftest.$ac_ext <<_ACEOF
12944   cat >>conftest.$ac_ext <<_ACEOF
12945   /* end confdefs.h.  */
12946  
12947 < /* Override any GCC internal prototype to avoid an error.
12948 <   Use char because int might match the return type of a GCC
12949 <   builtin and then its argument prototype would still apply.  */
12950 < #ifdef __cplusplus
12951 < extern "C"
12947 >
12948 > #ifdef FC_DUMMY_MAIN
12949 > #ifndef FC_DUMMY_MAIN_EQ_F77
12950 > #  ifdef __cplusplus
12951 >     extern "C"
12952 > #  endif
12953 >   int FC_DUMMY_MAIN() { return 1; }
12954   #endif
12955 < char MPI_Init ();
12955 > #endif
12956 > int
12957 > main ()
12958 > {
12959 > return main ();
12960 >  ;
12961 >  return 0;
12962 > }
12963 > _ACEOF
12964 > rm -f conftest.$ac_objext conftest$ac_exeext
12965 > if { (ac_try="$ac_link"
12966 > case "(($ac_try" in
12967 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 >  *) ac_try_echo=$ac_try;;
12969 > esac
12970 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12971 > $as_echo "$ac_try_echo") >&5
12972 >  (eval "$ac_link") 2>conftest.er1
12973 >  ac_status=$?
12974 >  grep -v '^ *+' conftest.er1 >conftest.err
12975 >  rm -f conftest.er1
12976 >  cat conftest.err >&5
12977 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 >  (exit $ac_status); } && {
12979 >         test -z "$ac_c_werror_flag" ||
12980 >         test ! -s conftest.err
12981 >       } && test -s conftest$ac_exeext && {
12982 >         test "$cross_compiling" = yes ||
12983 >         $as_test_x conftest$ac_exeext
12984 >       }; then
12985 >  ac_cv_lib_gmp_main=yes
12986 > else
12987 >  $as_echo "$as_me: failed program was:" >&5
12988 > sed 's/^/| /' conftest.$ac_ext >&5
12989 >
12990 >        ac_cv_lib_gmp_main=no
12991 > fi
12992 >
12993 > rm -rf conftest.dSYM
12994 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12995 >      conftest$ac_exeext conftest.$ac_ext
12996 > LIBS=$ac_check_lib_save_LIBS
12997 > fi
12998 > { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5
12999 > $as_echo "$ac_cv_lib_gmp_main" >&6; }
13000 > if test $ac_cv_lib_gmp_main = yes; then
13001 >  CGAL_LIBS="$CGAL_LIBS -lgmp"
13002 > fi
13003 >
13004 >                        { $as_echo "$as_me:$LINENO: checking for main in -lgmpxx" >&5
13005 > $as_echo_n "checking for main in -lgmpxx... " >&6; }
13006 > if test "${ac_cv_lib_gmpxx_main+set}" = set; then
13007 >  $as_echo_n "(cached) " >&6
13008 > else
13009 >  ac_check_lib_save_LIBS=$LIBS
13010 > LIBS="-lgmpxx  $LIBS"
13011 > cat >conftest.$ac_ext <<_ACEOF
13012 > /* confdefs.h.  */
13013 > _ACEOF
13014 > cat confdefs.h >>conftest.$ac_ext
13015 > cat >>conftest.$ac_ext <<_ACEOF
13016 > /* end confdefs.h.  */
13017 >
13018 >
13019   #ifdef FC_DUMMY_MAIN
13020   #ifndef FC_DUMMY_MAIN_EQ_F77
13021   #  ifdef __cplusplus
# Line 14294 | Line 13027 | main ()
13027   int
13028   main ()
13029   {
13030 < return MPI_Init ();
13030 > return main ();
13031    ;
13032    return 0;
13033   }
# Line 14305 | Line 13038 | esac
13038    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039    *) ac_try_echo=$ac_try;;
13040   esac
13041 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13042 > $as_echo "$ac_try_echo") >&5
13043    (eval "$ac_link") 2>conftest.er1
13044    ac_status=$?
13045    grep -v '^ *+' conftest.er1 >conftest.err
13046    rm -f conftest.er1
13047    cat conftest.err >&5
13048 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049    (exit $ac_status); } && {
13050           test -z "$ac_c_werror_flag" ||
13051           test ! -s conftest.err
13052 <       } && test -s conftest$ac_exeext &&
13053 <       $as_test_x conftest$ac_exeext; then
13054 <  ac_cv_lib_mpi_MPI_Init=yes
13052 >       } && test -s conftest$ac_exeext && {
13053 >         test "$cross_compiling" = yes ||
13054 >         $as_test_x conftest$ac_exeext
13055 >       }; then
13056 >  ac_cv_lib_gmpxx_main=yes
13057   else
13058 <  echo "$as_me: failed program was:" >&5
13058 >  $as_echo "$as_me: failed program was:" >&5
13059   sed 's/^/| /' conftest.$ac_ext >&5
13060  
13061 <        ac_cv_lib_mpi_MPI_Init=no
13061 >        ac_cv_lib_gmpxx_main=no
13062   fi
13063  
13064 + rm -rf conftest.dSYM
13065   rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13066        conftest$ac_exeext conftest.$ac_ext
13067   LIBS=$ac_check_lib_save_LIBS
13068   fi
13069 < { echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13070 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; }
13071 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
13072 <  MPI_LIB="-lmpi -llam"
13069 > { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmpxx_main" >&5
13070 > $as_echo "$ac_cv_lib_gmpxx_main" >&6; }
13071 > if test $ac_cv_lib_gmpxx_main = yes; then
13072 >  CGAL_LIBS="$CGAL_LIBS -lgmpxx"
13073   fi
13074  
13075 < fi
13076 < $as_unset ac_cv_lib_mpi_MPI_Init
13077 < if test x = x"$MPI_LIB"; then
13078 < { echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13079 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; }
13080 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
13081 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13075 >                fi
13076 >
13077 >                if test "$cgal_have_lib" == yes; then
13078 >                        acx_cgal_found=yes
13079 >                fi
13080 >        fi
13081 >        if test "$acx_cgal_found" == yes; then
13082 >                { $as_echo "$as_me:$LINENO: checking for main in -lCore" >&5
13083 > $as_echo_n "checking for main in -lCore... " >&6; }
13084 > if test "${ac_cv_lib_Core_main+set}" = set; then
13085 >  $as_echo_n "(cached) " >&6
13086   else
13087    ac_check_lib_save_LIBS=$LIBS
13088 < LIBS="-lmpi -llam -lpthread $LIBS"
13088 > LIBS="-lCore  $LIBS"
13089   cat >conftest.$ac_ext <<_ACEOF
13090   /* confdefs.h.  */
13091   _ACEOF
# Line 14352 | Line 13093 | cat >>conftest.$ac_ext <<_ACEOF
13093   cat >>conftest.$ac_ext <<_ACEOF
13094   /* end confdefs.h.  */
13095  
13096 < /* Override any GCC internal prototype to avoid an error.
14356 <   Use char because int might match the return type of a GCC
14357 <   builtin and then its argument prototype would still apply.  */
14358 < #ifdef __cplusplus
14359 < extern "C"
14360 < #endif
14361 < char MPI_Init ();
13096 >
13097   #ifdef FC_DUMMY_MAIN
13098   #ifndef FC_DUMMY_MAIN_EQ_F77
13099   #  ifdef __cplusplus
# Line 14370 | Line 13105 | main ()
13105   int
13106   main ()
13107   {
13108 < return MPI_Init ();
13108 > return main ();
13109    ;
13110    return 0;
13111   }
# Line 14381 | Line 13116 | esac
13116    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117    *) ac_try_echo=$ac_try;;
13118   esac
13119 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13119 > eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13120 > $as_echo "$ac_try_echo") >&5
13121    (eval "$ac_link") 2>conftest.er1
13122    ac_status=$?
13123    grep -v '^ *+' conftest.er1 >conftest.err
13124    rm -f conftest.er1
13125    cat conftest.err >&5
13126 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 >  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127    (exit $ac_status); } && {
13128           test -z "$ac_c_werror_flag" ||
13129           test ! -s conftest.err
13130 <       } && test -s conftest$ac_exeext &&
13131 <       $as_test_x conftest$ac_exeext; then
13132 <  ac_cv_lib_mpi_MPI_Init=yes
13130 >       } && test -s conftest$ac_exeext && {
13131 >         test "$cross_compiling" = yes ||
13132 >         $as_test_x conftest$ac_exeext
13133 >       }; then
13134 >  ac_cv_lib_Core_main=yes
13135   else
13136 <  echo "$as_me: failed program was:" >&5
13136 >  $as_echo "$as_me: failed program was:" >&5
13137   sed 's/^/| /' conftest.$ac_ext >&5
13138  
13139 <        ac_cv_lib_mpi_MPI_Init=no
13139 >        ac_cv_lib_Core_main=no
13140   fi
13141  
13142 + rm -rf conftest.dSYM
13143   rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13144        conftest$ac_exeext conftest.$ac_ext
13145   LIBS=$ac_check_lib_save_LIBS
13146   fi
13147 < { echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13148 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; }
13149 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
13150 <  MPI_LIB="-lmpi -llam -lpthread"
14412 < else
14413 <
14414 <             { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
14415 < echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
14416 <   { (exit 1); exit 1; }; }
14417 <             USE_MPI="no"
14418 <
13147 > { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Core_main" >&5
13148 > $as_echo "$ac_cv_lib_Core_main" >&6; }
13149 > if test $ac_cv_lib_Core_main = yes; then
13150 >  CGAL_LIBS="$CGAL_LIBS -lCore"
13151   fi
13152  
13153 +        fi
13154   fi
13155  
13156  
13157  
13158 < { echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
13159 < echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6; }
13160 < MPI_F90_LIB=""
13161 < if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
13162 <        MPI_F90_LIB="-lfmpich"
13163 < elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
13164 <        MPI_F90_LIB="-llamf77mpi"
13158 > { $as_echo "$as_me:$LINENO: checking CGAL" >&5
13159 > $as_echo_n "checking CGAL... " >&6; }
13160 >
13161 >
13162 >
13163 >
13164 >
13165 > if test "$acx_cgal_found" == yes; then
13166 >        { $as_echo "$as_me:$LINENO: result: yes" >&5
13167 > $as_echo "yes" >&6; }
13168 >
13169   else
13170 <                        MPI_F90_LIB="  "
13170 >        { $as_echo "$as_me:$LINENO: result: no" >&5
13171 > $as_echo "no" >&6; }
13172 >
13173   fi
13174 < { echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
13175 < echo "${ECHO_T}found $MPI_F90_LIB" >&6; }
13174 > USE_CGAL=no
13175 > if test "$acx_cgal_found" == yes; then
13176 >        USE_CGAL=yes
13177  
13178 + cat >>confdefs.h <<\_ACEOF
13179 + #define HAVE_CGAL 1
13180 + _ACEOF
13181  
13182 +
13183 +
13184 +
13185 +
13186   fi
13187  
13188  
# Line 14470 | Line 13217 | set dummy doxygen; ac_word=$2
13217   else
13218          # Extract the first word of "doxygen", so it can be a program name with args.
13219   set dummy doxygen; ac_word=$2
13220 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
13221 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13220 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13221 > $as_echo_n "checking for $ac_word... " >&6; }
13222   if test "${ac_cv_path_DOXYGEN+set}" = set; then
13223 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13223 >  $as_echo_n "(cached) " >&6
13224   else
13225    case $DOXYGEN in
13226    [\\/]* | ?:[\\/]*)
# Line 14488 | Line 13235 | do
13235    for ac_exec_ext in '' $ac_executable_extensions; do
13236    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13237      ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
13238 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13238 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13239      break 2
13240    fi
13241   done
# Line 14500 | Line 13247 | if test -n "$DOXYGEN"; then
13247   fi
13248   DOXYGEN=$ac_cv_path_DOXYGEN
13249   if test -n "$DOXYGEN"; then
13250 <  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
13251 < echo "${ECHO_T}$DOXYGEN" >&6; }
13250 >  { $as_echo "$as_me:$LINENO: result: $DOXYGEN" >&5
13251 > $as_echo "$DOXYGEN" >&6; }
13252   else
13253 <  { echo "$as_me:$LINENO: result: no" >&5
13254 < echo "${ECHO_T}no" >&6; }
13253 >  { $as_echo "$as_me:$LINENO: result: no" >&5
13254 > $as_echo "no" >&6; }
13255   fi
13256  
13257  
13258          if test "x$DOXYGEN" = x; then
13259                  if test "x$enable_doxygen" = xyes; then
13260 <                        { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
13261 < echo "$as_me: error: could not find doxygen" >&2;}
13260 >                        { { $as_echo "$as_me:$LINENO: error: could not find doxygen" >&5
13261 > $as_echo "$as_me: error: could not find doxygen" >&2;}
13262     { (exit 1); exit 1; }; }
13263                  fi
13264                  enable_doc=no
# Line 14519 | Line 13266 | set dummy dot; ac_word=$2
13266                  enable_doc=yes
13267                  # Extract the first word of "dot", so it can be a program name with args.
13268   set dummy dot; ac_word=$2
13269 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
13270 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13269 > { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13270 > $as_echo_n "checking for $ac_word... " >&6; }
13271   if test "${ac_cv_path_DOT+set}" = set; then
13272 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13272 >  $as_echo_n "(cached) " >&6
13273   else
13274    case $DOT in
13275    [\\/]* | ?:[\\/]*)
# Line 14537 | Line 13284 | do
13284    for ac_exec_ext in '' $ac_executable_extensions; do
13285    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13286      ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
13287 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 >    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13288      break 2
13289    fi
13290   done
# Line 14549 | Line 13296 | if test -n "$DOT"; then
13296   fi
13297   DOT=$ac_cv_path_DOT
13298   if test -n "$DOT"; then
13299 <  { echo "$as_me:$LINENO: result: $DOT" >&5
13300 < echo "${ECHO_T}$DOT" >&6; }
13299 >  { $as_echo "$as_me:$LINENO: result: $DOT" >&5
13300 > $as_echo "$DOT" >&6; }
13301   else
13302 <  { echo "$as_me:$LINENO: result: no" >&5
13303 < echo "${ECHO_T}no" >&6; }
13302 >  { $as_echo "$as_me:$LINENO: result: no" >&5
13303 > $as_echo "no" >&6; }
13304   fi
13305  
13306  
# Line 14569 | Line 13316 | if test x$DOT = x; then
13316  
13317   if test x$DOT = x; then
13318          if test "x$enable_dot" = xyes; then
13319 <                { { echo "$as_me:$LINENO: error: could not find dot" >&5
13320 < echo "$as_me: error: could not find dot" >&2;}
13319 >                { { $as_echo "$as_me:$LINENO: error: could not find dot" >&5
13320 > $as_echo "$as_me: error: could not find dot" >&2;}
13321     { (exit 1); exit 1; }; }
13322          fi
13323          enable_dot=no
# Line 14596 | Line 13343 | fi
13343  
13344  
13345  
13346 < ac_config_files="$ac_config_files make/Makefile src/utils/Makefile scripts/filepp"
13346 > ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/integrators/Makefile src/applications/atom2md/Makefile scripts/filepp"
13347  
13348  
13349   cat >confcache <<\_ACEOF
# Line 14626 | Line 13373 | _ACEOF
13373      case $ac_val in #(
13374      *${as_nl}*)
13375        case $ac_var in #(
13376 <      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13377 < echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13376 >      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13377 > $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13378        esac
13379        case $ac_var in #(
13380        _ | IFS | as_nl) ;; #(
13381 +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13382        *) $as_unset $ac_var ;;
13383        esac ;;
13384      esac
# Line 14663 | Line 13411 | if diff "$cache_file" confcache >/dev/null 2>&1; then
13411   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13412    if test -w "$cache_file"; then
13413      test "x$cache_file" != "x/dev/null" &&
13414 <      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13415 < echo "$as_me: updating cache $cache_file" >&6;}
13414 >      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13415 > $as_echo "$as_me: updating cache $cache_file" >&6;}
13416      cat confcache >$cache_file
13417    else
13418 <    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13419 < echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13418 >    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13419 > $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13420    fi
13421   fi
13422   rm -f confcache
# Line 14684 | Line 13432 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && conti
13432   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13433    # 1. Remove the extension, and $U if already installed.
13434    ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13435 <  ac_i=`echo "$ac_i" | sed "$ac_script"`
13435 >  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13436    # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13437    #    will be set to the directory where LIBOBJS objects are built.
13438    ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
# Line 14697 | Line 13445 | LTLIBOBJS=$ac_ltlibobjs
13445  
13446  
13447   : ${CONFIG_STATUS=./config.status}
13448 + ac_write_fail=0
13449   ac_clean_files_save=$ac_clean_files
13450   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13451 < { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13452 < echo "$as_me: creating $CONFIG_STATUS" >&6;}
13453 < cat >$CONFIG_STATUS <<_ACEOF
13451 > { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13452 > $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13453 > cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13454   #! $SHELL
13455   # Generated by $as_me.
13456   # Run this file to recreate the current configuration.
# Line 14714 | Line 13463 | _ACEOF
13463   SHELL=\${CONFIG_SHELL-$SHELL}
13464   _ACEOF
13465  
13466 < cat >>$CONFIG_STATUS <<\_ACEOF
13466 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13467   ## --------------------- ##
13468   ## M4sh Initialization.  ##
13469   ## --------------------- ##
# Line 14724 | Line 13473 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/
13473   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13474    emulate sh
13475    NULLCMD=:
13476 <  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13476 >  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13477    # is contrary to our usage.  Disable this feature.
13478    alias -g '${1+"$@"}'='"$@"'
13479    setopt NO_GLOB_SUBST
# Line 14746 | Line 13495 | as_cr_alnum=$as_cr_Letters$as_cr_digits
13495   as_cr_digits='0123456789'
13496   as_cr_alnum=$as_cr_Letters$as_cr_digits
13497  
13498 < # The user is always right.
13499 < if test "${PATH_SEPARATOR+set}" != set; then
13500 <  echo "#! /bin/sh" >conf$$.sh
13501 <  echo  "exit 0"   >>conf$$.sh
13502 <  chmod +x conf$$.sh
13503 <  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13504 <    PATH_SEPARATOR=';'
13498 > as_nl='
13499 > '
13500 > export as_nl
13501 > # Printing a long string crashes Solaris 7 /usr/bin/printf.
13502 > as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13503 > as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13504 > as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13505 > if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13506 >  as_echo='printf %s\n'
13507 >  as_echo_n='printf %s'
13508 > else
13509 >  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13510 >    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13511 >    as_echo_n='/usr/ucb/echo -n'
13512    else
13513 <    PATH_SEPARATOR=:
13513 >    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13514 >    as_echo_n_body='eval
13515 >      arg=$1;
13516 >      case $arg in
13517 >      *"$as_nl"*)
13518 >        expr "X$arg" : "X\\(.*\\)$as_nl";
13519 >        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13520 >      esac;
13521 >      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13522 >    '
13523 >    export as_echo_n_body
13524 >    as_echo_n='sh -c $as_echo_n_body as_echo'
13525    fi
13526 <  rm -f conf$$.sh
13526 >  export as_echo_body
13527 >  as_echo='sh -c $as_echo_body as_echo'
13528   fi
13529  
13530 + # The user is always right.
13531 + if test "${PATH_SEPARATOR+set}" != set; then
13532 +  PATH_SEPARATOR=:
13533 +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13534 +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13535 +      PATH_SEPARATOR=';'
13536 +  }
13537 + fi
13538 +
13539   # Support unset when possible.
13540   if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13541    as_unset=unset
# Line 14772 | Line 13549 | fi
13549   # there to prevent editors from complaining about space-tab.
13550   # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13551   # splitting by setting IFS to empty value.)
14775 as_nl='
14776 '
13552   IFS=" ""        $as_nl"
13553  
13554   # Find who we are.  Look in the path if we contain no directory separator.
# Line 14796 | Line 13571 | if test ! -f "$as_myself"; then
13571    as_myself=$0
13572   fi
13573   if test ! -f "$as_myself"; then
13574 <  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13574 >  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13575    { (exit 1); exit 1; }
13576   fi
13577  
# Line 14809 | Line 13584 | PS4='+ '
13584   PS4='+ '
13585  
13586   # NLS nuisances.
13587 < for as_var in \
13588 <  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13589 <  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13590 <  LC_TELEPHONE LC_TIME
14816 < do
14817 <  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14818 <    eval $as_var=C; export $as_var
14819 <  else
14820 <    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14821 <  fi
14822 < done
13587 > LC_ALL=C
13588 > export LC_ALL
13589 > LANGUAGE=C
13590 > export LANGUAGE
13591  
13592   # Required to use basename.
13593   if expr a : '\(a\)' >/dev/null 2>&1 &&
# Line 14841 | Line 13609 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13609   $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13610           X"$0" : 'X\(//\)$' \| \
13611           X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13612 < echo X/"$0" |
13612 > $as_echo X/"$0" |
13613      sed '/^.*\/\([^/][^/]*\)\/*$/{
13614              s//\1/
13615              q
# Line 14892 | Line 13660 | $as_unset CDPATH
13660        s/-\n.*//
13661      ' >$as_me.lineno &&
13662    chmod +x "$as_me.lineno" ||
13663 <    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13663 >    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13664     { (exit 1); exit 1; }; }
13665  
13666    # Don't try to exec as it changes $[0], causing all sort of problems
# Line 14920 | Line 13688 | esac
13688   *)
13689    ECHO_N='-n';;
13690   esac
14923
13691   if expr a : '\(a\)' >/dev/null 2>&1 &&
13692     test "X`expr 00001 : '.*\(...\)'`" = X001; then
13693    as_expr=expr
# Line 14933 | Line 13700 | else
13700    rm -f conf$$.dir/conf$$.file
13701   else
13702    rm -f conf$$.dir
13703 <  mkdir conf$$.dir
13703 >  mkdir conf$$.dir 2>/dev/null
13704   fi
13705 < echo >conf$$.file
13706 < if ln -s conf$$.file conf$$ 2>/dev/null; then
13707 <  as_ln_s='ln -s'
13708 <  # ... but there are two gotchas:
13709 <  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13710 <  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13711 <  # In both cases, we have to default to `cp -p'.
13712 <  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13705 > if (echo >conf$$.file) 2>/dev/null; then
13706 >  if ln -s conf$$.file conf$$ 2>/dev/null; then
13707 >    as_ln_s='ln -s'
13708 >    # ... but there are two gotchas:
13709 >    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13710 >    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13711 >    # In both cases, we have to default to `cp -p'.
13712 >    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13713 >      as_ln_s='cp -p'
13714 >  elif ln conf$$.file conf$$ 2>/dev/null; then
13715 >    as_ln_s=ln
13716 >  else
13717      as_ln_s='cp -p'
13718 < elif ln conf$$.file conf$$ 2>/dev/null; then
14948 <  as_ln_s=ln
13718 >  fi
13719   else
13720    as_ln_s='cp -p'
13721   fi
# Line 14970 | Line 13740 | else
13740    as_test_x='
13741      eval sh -c '\''
13742        if test -d "$1"; then
13743 <        test -d "$1/.";
13743 >        test -d "$1/.";
13744        else
13745          case $1 in
13746 <        -*)set "./$1";;
13746 >        -*)set "./$1";;
13747          esac;
13748          case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13749          ???[sx]*):;;*)false;;esac;fi
# Line 14995 | Line 13765 | ac_log="
13765   # report actual input values of CONFIG_FILES etc. instead of their
13766   # values after options handling.
13767   ac_log="
13768 < This file was extended by OOPSE $as_me 3.0, which was
13769 < generated by GNU Autoconf 2.61.  Invocation command line was
13768 > This file was extended by OOPSE $as_me 4.0, which was
13769 > generated by GNU Autoconf 2.62.  Invocation command line was
13770  
13771    CONFIG_FILES    = $CONFIG_FILES
13772    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 15009 | Line 13779 | _ACEOF
13779  
13780   _ACEOF
13781  
13782 < cat >>$CONFIG_STATUS <<_ACEOF
13782 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13783   # Files that config.status was made for.
13784   config_files="$ac_config_files"
13785   config_headers="$ac_config_headers"
15016 config_links="$ac_config_links"
13786  
13787   _ACEOF
13788  
13789 < cat >>$CONFIG_STATUS <<\_ACEOF
13789 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13790   ac_cs_usage="\
13791   \`$as_me' instantiates files from templates according to the
13792   current configuration.
# Line 15030 | Line 13799 | Usage: $0 [OPTIONS] [FILE]...
13799    -d, --debug      don't remove temporary files
13800        --recheck    update $as_me by reconfiguring in the same conditions
13801    --file=FILE[:TEMPLATE]
13802 <                   instantiate the configuration file FILE
13802 >                   instantiate the configuration file FILE
13803    --header=FILE[:TEMPLATE]
13804 <                   instantiate the configuration header FILE
13804 >                   instantiate the configuration header FILE
13805  
13806   Configuration files:
13807   $config_files
# Line 15040 | Line 13809 | $config_headers
13809   Configuration headers:
13810   $config_headers
13811  
15043 Configuration links:
15044 $config_links
15045
13812   Report bugs to <bug-autoconf@gnu.org>."
13813  
13814   _ACEOF
13815 < cat >>$CONFIG_STATUS <<_ACEOF
13815 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13816   ac_cs_version="\\
13817 < OOPSE config.status 3.0
13818 < configured by $0, generated by GNU Autoconf 2.61,
13819 <  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13817 > OOPSE config.status 4.0
13818 > configured by $0, generated by GNU Autoconf 2.62,
13819 >  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13820  
13821 < Copyright (C) 2006 Free Software Foundation, Inc.
13821 > Copyright (C) 2008 Free Software Foundation, Inc.
13822   This config.status script is free software; the Free Software Foundation
13823   gives unlimited permission to copy, distribute and modify it."
13824  
13825   ac_pwd='$ac_pwd'
13826   srcdir='$srcdir'
13827   INSTALL='$INSTALL'
13828 + test -n "\$AWK" || AWK=awk
13829   _ACEOF
13830  
13831 < cat >>$CONFIG_STATUS <<\_ACEOF
13832 < # If no file are specified by the user, then we need to provide default
15066 < # value.  By we need to know if files were specified by the user.
13831 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13832 > # The default lists apply if the user does not specify any file.
13833   ac_need_defaults=:
13834   while test $# != 0
13835   do
# Line 15085 | Line 13851 | do
13851    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13852      ac_cs_recheck=: ;;
13853    --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13854 <    echo "$ac_cs_version"; exit ;;
13854 >    $as_echo "$ac_cs_version"; exit ;;
13855    --debug | --debu | --deb | --de | --d | -d )
13856      debug=: ;;
13857    --file | --fil | --fi | --f )
13858      $ac_shift
13859 <    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13859 >    case $ac_optarg in
13860 >    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13861 >    esac
13862 >    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13863      ac_need_defaults=false;;
13864    --header | --heade | --head | --hea )
13865      $ac_shift
13866 <    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13866 >    case $ac_optarg in
13867 >    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13868 >    esac
13869 >    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13870      ac_need_defaults=false;;
13871    --he | --h)
13872      # Conflict between --help and --header
13873 <    { echo "$as_me: error: ambiguous option: $1
13873 >    { $as_echo "$as_me: error: ambiguous option: $1
13874   Try \`$0 --help' for more information." >&2
13875     { (exit 1); exit 1; }; };;
13876    --help | --hel | -h )
13877 <    echo "$ac_cs_usage"; exit ;;
13877 >    $as_echo "$ac_cs_usage"; exit ;;
13878    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13879    | -silent | --silent | --silen | --sile | --sil | --si | --s)
13880      ac_cs_silent=: ;;
13881  
13882    # This is an error.
13883 <  -*) { echo "$as_me: error: unrecognized option: $1
13883 >  -*) { $as_echo "$as_me: error: unrecognized option: $1
13884   Try \`$0 --help' for more information." >&2
13885     { (exit 1); exit 1; }; } ;;
13886  
# Line 15127 | Line 13899 | _ACEOF
13899   fi
13900  
13901   _ACEOF
13902 < cat >>$CONFIG_STATUS <<_ACEOF
13902 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13903   if \$ac_cs_recheck; then
13904 <  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13905 <  CONFIG_SHELL=$SHELL
13904 >  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13905 >  shift
13906 >  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13907 >  CONFIG_SHELL='$SHELL'
13908    export CONFIG_SHELL
13909 <  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13909 >  exec "\$@"
13910   fi
13911  
13912   _ACEOF
13913 < cat >>$CONFIG_STATUS <<\_ACEOF
13913 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13914   exec 5>>config.log
13915   {
13916    echo
13917    sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13918   ## Running $as_me. ##
13919   _ASBOX
13920 <  echo "$ac_log"
13920 >  $as_echo "$ac_log"
13921   } >&5
13922  
13923   _ACEOF
13924 < cat >>$CONFIG_STATUS <<_ACEOF
13924 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13925   _ACEOF
13926  
13927 < cat >>$CONFIG_STATUS <<\_ACEOF
13927 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13928  
13929   # Handling of arguments.
13930   for ac_config_target in $ac_config_targets
13931   do
13932    case $ac_config_target in
13933      "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
15160    "src/getopt.h") CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
13934      "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
13935      "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
13936 +    "src/math/Makefile") CONFIG_FILES="$CONFIG_FILES src/math/Makefile" ;;
13937 +    "src/integrators/Makefile") CONFIG_FILES="$CONFIG_FILES src/integrators/Makefile" ;;
13938 +    "src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;;
13939      "scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
13940  
13941 <  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13942 < echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13941 >  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13942 > $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13943     { (exit 1); exit 1; }; };;
13944    esac
13945   done
# Line 15176 | Line 13952 | if $ac_need_defaults; then
13952   if $ac_need_defaults; then
13953    test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13954    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15179  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13955   fi
13956  
13957   # Have a temporary directory for convenience.  Make it in the build tree
# Line 15204 | Line 13979 | $debug ||
13979    (umask 077 && mkdir "$tmp")
13980   } ||
13981   {
13982 <   echo "$me: cannot create a temporary directory in ." >&2
13982 >   $as_echo "$as_me: cannot create a temporary directory in ." >&2
13983     { (exit 1); exit 1; }
13984   }
13985  
13986 < #
13987 < # Set up the sed scripts for CONFIG_FILES section.
13988 < #
15214 <
15215 < # No need to generate the scripts if there are no CONFIG_FILES.
15216 < # This happens for instance when ./config.status config.h
13986 > # Set up the scripts for CONFIG_FILES section.
13987 > # No need to generate them if there are no CONFIG_FILES.
13988 > # This happens for instance with `./config.status config.h'.
13989   if test -n "$CONFIG_FILES"; then
13990  
15219 _ACEOF
13991  
13992 + ac_cr='
13993 + '
13994 + ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13995 + if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13996 +  ac_cs_awk_cr='\\r'
13997 + else
13998 +  ac_cs_awk_cr=$ac_cr
13999 + fi
14000  
14001 + echo 'BEGIN {' >"$tmp/subs1.awk" &&
14002 + _ACEOF
14003  
14004 +
14005 + {
14006 +  echo "cat >conf$$subs.awk <<_ACEOF" &&
14007 +  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14008 +  echo "_ACEOF"
14009 + } >conf$$subs.sh ||
14010 +  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14011 + $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14012 +   { (exit 1); exit 1; }; }
14013 + ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14014   ac_delim='%!_!# '
14015   for ac_last_try in false false false false false :; do
14016 <  cat >conf$$subs.sed <<_ACEOF
14017 < SHELL!$SHELL$ac_delim
14018 < PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14019 < PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15229 < PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15230 < PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15231 < PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15232 < PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15233 < exec_prefix!$exec_prefix$ac_delim
15234 < prefix!$prefix$ac_delim
15235 < program_transform_name!$program_transform_name$ac_delim
15236 < bindir!$bindir$ac_delim
15237 < sbindir!$sbindir$ac_delim
15238 < libexecdir!$libexecdir$ac_delim
15239 < datarootdir!$datarootdir$ac_delim
15240 < datadir!$datadir$ac_delim
15241 < sysconfdir!$sysconfdir$ac_delim
15242 < sharedstatedir!$sharedstatedir$ac_delim
15243 < localstatedir!$localstatedir$ac_delim
15244 < includedir!$includedir$ac_delim
15245 < oldincludedir!$oldincludedir$ac_delim
15246 < docdir!$docdir$ac_delim
15247 < infodir!$infodir$ac_delim
15248 < htmldir!$htmldir$ac_delim
15249 < dvidir!$dvidir$ac_delim
15250 < pdfdir!$pdfdir$ac_delim
15251 < psdir!$psdir$ac_delim
15252 < libdir!$libdir$ac_delim
15253 < localedir!$localedir$ac_delim
15254 < mandir!$mandir$ac_delim
15255 < DEFS!$DEFS$ac_delim
15256 < ECHO_C!$ECHO_C$ac_delim
15257 < ECHO_N!$ECHO_N$ac_delim
15258 < ECHO_T!$ECHO_T$ac_delim
15259 < LIBS!$LIBS$ac_delim
15260 < build_alias!$build_alias$ac_delim
15261 < host_alias!$host_alias$ac_delim
15262 < target_alias!$target_alias$ac_delim
15263 < build!$build$ac_delim
15264 < build_cpu!$build_cpu$ac_delim
15265 < build_vendor!$build_vendor$ac_delim
15266 < build_os!$build_os$ac_delim
15267 < host!$host$ac_delim
15268 < host_cpu!$host_cpu$ac_delim
15269 < host_vendor!$host_vendor$ac_delim
15270 < host_os!$host_os$ac_delim
15271 < PROGNAME!$PROGNAME$ac_delim
15272 < debug!$debug$ac_delim
15273 < USE_SINGLE_PRECISION!$USE_SINGLE_PRECISION$ac_delim
15274 < CXX!$CXX$ac_delim
15275 < CXXFLAGS!$CXXFLAGS$ac_delim
15276 < LDFLAGS!$LDFLAGS$ac_delim
15277 < CPPFLAGS!$CPPFLAGS$ac_delim
15278 < ac_ct_CXX!$ac_ct_CXX$ac_delim
15279 < EXEEXT!$EXEEXT$ac_delim
15280 < OBJEXT!$OBJEXT$ac_delim
15281 < CC!$CC$ac_delim
15282 < CFLAGS!$CFLAGS$ac_delim
15283 < ac_ct_CC!$ac_ct_CC$ac_delim
15284 < FC!$FC$ac_delim
15285 < FCFLAGS!$FCFLAGS$ac_delim
15286 < ac_ct_FC!$ac_ct_FC$ac_delim
15287 < CPP!$CPP$ac_delim
15288 < GREP!$GREP$ac_delim
15289 < EGREP!$EGREP$ac_delim
15290 < LN_S!$LN_S$ac_delim
15291 < SET_MAKE!$SET_MAKE$ac_delim
15292 < RANLIB!$RANLIB$ac_delim
15293 < PERLINTERP!$PERLINTERP$ac_delim
15294 < PERL_SHEBANG!$PERL_SHEBANG$ac_delim
15295 < INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15296 < INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15297 < INSTALL_DATA!$INSTALL_DATA$ac_delim
15298 < AR!$AR$ac_delim
15299 < PS!$PS$ac_delim
15300 < FCFLAGS_F90!$FCFLAGS_F90$ac_delim
15301 < FCFLAGS_SRCEXT!$FCFLAGS_SRCEXT$ac_delim
15302 < PREPDEFFLAG!$PREPDEFFLAG$ac_delim
15303 < FCLIBS!$FCLIBS$ac_delim
15304 < FC_FUNC!$FC_FUNC$ac_delim
15305 < FC_FUNC_!$FC_FUNC_$ac_delim
15306 < MOD!$MOD$ac_delim
15307 < F90_WORK_FILES_ARG!$F90_WORK_FILES_ARG$ac_delim
15308 < MODDIRFLAG!$MODDIRFLAG$ac_delim
15309 < F90MODINCSPEC!$F90MODINCSPEC$ac_delim
15310 < F90_MODULE_NAMES!$F90_MODULE_NAMES$ac_delim
15311 < ZLIB_INC_DIR!$ZLIB_INC_DIR$ac_delim
15312 < ZLIB_LIB_DIR!$ZLIB_LIB_DIR$ac_delim
15313 < ZLIB!$ZLIB$ac_delim
15314 < FFTW_INC_DIR!$FFTW_INC_DIR$ac_delim
15315 < FFTW_LIB_DIR!$FFTW_LIB_DIR$ac_delim
15316 < FFTW_LIBS!$FFTW_LIBS$ac_delim
15317 < LIBOBJS!$LIBOBJS$ac_delim
15318 < POW_LIB!$POW_LIB$ac_delim
15319 < CXXCPP!$CXXCPP$ac_delim
15320 < __func__!$__func__$ac_delim
15321 < MPI_LIB_DIR!$MPI_LIB_DIR$ac_delim
15322 < MPI_INC_DIR!$MPI_INC_DIR$ac_delim
15323 < _ACEOF
14016 >  . ./conf$$subs.sh ||
14017 >    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14018 > $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14019 >   { (exit 1); exit 1; }; }
14020  
14021 <  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14021 >  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
14022      break
14023    elif $ac_last_try; then
14024 <    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14025 < echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14024 >    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14025 > $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14026     { (exit 1); exit 1; }; }
14027    else
14028      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14029    fi
14030   done
14031 + rm -f conf$$subs.sh
14032  
14033 < ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14034 < if test -n "$ac_eof"; then
15338 <  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15339 <  ac_eof=`expr $ac_eof + 1`
15340 < fi
15341 <
15342 < cat >>$CONFIG_STATUS <<_ACEOF
15343 < cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15344 < /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14033 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14034 > cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14035   _ACEOF
14036 < sed '
14037 < s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14038 < s/^/s,@/; s/!/@,|#_!!_#|/
14039 < :n
14040 < t n
14041 < s/'"$ac_delim"'$/,g/; t
14042 < s/$/\\/; p
14043 < N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14044 < ' >>$CONFIG_STATUS <conf$$subs.sed
14045 < rm -f conf$$subs.sed
14046 < cat >>$CONFIG_STATUS <<_ACEOF
14047 < CEOF$ac_eof
14048 < _ACEOF
14036 > sed -n '
14037 > h
14038 > s/^/S["/; s/!.*/"]=/
14039 > p
14040 > g
14041 > s/^[^!]*!//
14042 > :repl
14043 > t repl
14044 > s/'"$ac_delim"'$//
14045 > t delim
14046 > :nl
14047 > h
14048 > s/\(.\{148\}\).*/\1/
14049 > t more1
14050 > s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14051 > p
14052 > n
14053 > b repl
14054 > :more1
14055 > s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14056 > p
14057 > g
14058 > s/.\{148\}//
14059 > t nl
14060 > :delim
14061 > h
14062 > s/\(.\{148\}\).*/\1/
14063 > t more2
14064 > s/["\\]/\\&/g; s/^/"/; s/$/"/
14065 > p
14066 > b
14067 > :more2
14068 > s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14069 > p
14070 > g
14071 > s/.\{148\}//
14072 > t delim
14073 > ' <conf$$subs.awk | sed '
14074 > /^[^""]/{
14075 >  N
14076 >  s/\n//
14077 > }
14078 > ' >>$CONFIG_STATUS || ac_write_fail=1
14079 > rm -f conf$$subs.awk
14080 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14081 > _ACAWK
14082 > cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14083 >  for (key in S) S_is_set[key] = 1
14084 >  FS = ""
14085  
14086 + }
14087 + {
14088 +  line = $ 0
14089 +  nfields = split(line, field, "@")
14090 +  substed = 0
14091 +  len = length(field[1])
14092 +  for (i = 2; i < nfields; i++) {
14093 +    key = field[i]
14094 +    keylen = length(key)
14095 +    if (S_is_set[key]) {
14096 +      value = S[key]
14097 +      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14098 +      len += length(value) + length(field[++i])
14099 +      substed = 1
14100 +    } else
14101 +      len += 1 + keylen
14102 +  }
14103  
14104 < ac_delim='%!_!# '
14105 < for ac_last_try in false false false false false :; do
15363 <  cat >conf$$subs.sed <<_ACEOF
15364 < MPI_F90_INC!$MPI_F90_INC$ac_delim
15365 < MPI_LIB!$MPI_LIB$ac_delim
15366 < MPI_F90_LIB!$MPI_F90_LIB$ac_delim
15367 < USE_MPI!$USE_MPI$ac_delim
15368 < DOXYGEN!$DOXYGEN$ac_delim
15369 < DOT!$DOT$ac_delim
15370 < DOC!$DOC$ac_delim
15371 < enable_dot!$enable_dot$ac_delim
15372 < enable_html_docs!$enable_html_docs$ac_delim
15373 < enable_latex_docs!$enable_latex_docs$ac_delim
15374 < BATEXT!$BATEXT$ac_delim
15375 < MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
15376 < OOPSE!$OOPSE$ac_delim
15377 < OOPSE_HOME!$OOPSE_HOME$ac_delim
15378 < SUBDIRS!$SUBDIRS$ac_delim
15379 < LTLIBOBJS!$LTLIBOBJS$ac_delim
15380 < _ACEOF
14104 >  print line
14105 > }
14106  
14107 <  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
14108 <    break
14109 <  elif $ac_last_try; then
14110 <    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14111 < echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14107 > _ACAWK
14108 > _ACEOF
14109 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14110 > if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14111 >  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14112 > else
14113 >  cat
14114 > fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14115 >  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14116 > $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14117     { (exit 1); exit 1; }; }
15388  else
15389    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15390  fi
15391 done
15392
15393 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15394 if test -n "$ac_eof"; then
15395  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15396  ac_eof=`expr $ac_eof + 1`
15397 fi
15398
15399 cat >>$CONFIG_STATUS <<_ACEOF
15400 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15401 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14118   _ACEOF
15403 sed '
15404 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15405 s/^/s,@/; s/!/@,|#_!!_#|/
15406 :n
15407 t n
15408 s/'"$ac_delim"'$/,g/; t
15409 s/$/\\/; p
15410 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15411 ' >>$CONFIG_STATUS <conf$$subs.sed
15412 rm -f conf$$subs.sed
15413 cat >>$CONFIG_STATUS <<_ACEOF
15414 :end
15415 s/|#_!!_#|//g
15416 CEOF$ac_eof
15417 _ACEOF
14119  
15419
14120   # VPATH may cause trouble with some makes, so we remove $(srcdir),
14121   # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14122   # trailing colons and then remove the whole line if VPATH becomes empty
# Line 15432 | Line 14132 | fi
14132   }'
14133   fi
14134  
14135 < cat >>$CONFIG_STATUS <<\_ACEOF
14135 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14136   fi # test -n "$CONFIG_FILES"
14137  
14138 + # Set up the scripts for CONFIG_HEADERS section.
14139 + # No need to generate them if there are no CONFIG_HEADERS.
14140 + # This happens for instance with `./config.status Makefile'.
14141 + if test -n "$CONFIG_HEADERS"; then
14142 + cat >"$tmp/defines.awk" <<\_ACAWK ||
14143 + BEGIN {
14144 + _ACEOF
14145  
14146 < for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS
14146 > # Transform confdefs.h into an awk script `defines.awk', embedded as
14147 > # here-document in config.status, that substitutes the proper values into
14148 > # config.h.in to produce config.h.
14149 >
14150 > # Create a delimiter string that does not exist in confdefs.h, to ease
14151 > # handling of long lines.
14152 > ac_delim='%!_!# '
14153 > for ac_last_try in false false :; do
14154 >  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14155 >  if test -z "$ac_t"; then
14156 >    break
14157 >  elif $ac_last_try; then
14158 >    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14159 > $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14160 >   { (exit 1); exit 1; }; }
14161 >  else
14162 >    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14163 >  fi
14164 > done
14165 >
14166 > # For the awk script, D is an array of macro values keyed by name,
14167 > # likewise P contains macro parameters if any.  Preserve backslash
14168 > # newline sequences.
14169 >
14170 > ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14171 > sed -n '
14172 > s/.\{148\}/&'"$ac_delim"'/g
14173 > t rset
14174 > :rset
14175 > s/^[     ]*#[    ]*define[       ][      ]*/ /
14176 > t def
14177 > d
14178 > :def
14179 > s/\\$//
14180 > t bsnl
14181 > s/["\\]/\\&/g
14182 > s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14183 > D["\1"]=" \3"/p
14184 > s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14185 > d
14186 > :bsnl
14187 > s/["\\]/\\&/g
14188 > s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14189 > D["\1"]=" \3\\\\\\n"\\/p
14190 > t cont
14191 > s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14192 > t cont
14193 > d
14194 > :cont
14195 > n
14196 > s/.\{148\}/&'"$ac_delim"'/g
14197 > t clear
14198 > :clear
14199 > s/\\$//
14200 > t bsnlc
14201 > s/["\\]/\\&/g; s/^/"/; s/$/"/p
14202 > d
14203 > :bsnlc
14204 > s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14205 > b cont
14206 > ' <confdefs.h | sed '
14207 > s/'"$ac_delim"'/"\\\
14208 > "/g' >>$CONFIG_STATUS || ac_write_fail=1
14209 >
14210 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14211 >  for (key in D) D_is_set[key] = 1
14212 >  FS = ""
14213 > }
14214 > /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14215 >  line = \$ 0
14216 >  split(line, arg, " ")
14217 >  if (arg[1] == "#") {
14218 >    defundef = arg[2]
14219 >    mac1 = arg[3]
14220 >  } else {
14221 >    defundef = substr(arg[1], 2)
14222 >    mac1 = arg[2]
14223 >  }
14224 >  split(mac1, mac2, "(") #)
14225 >  macro = mac2[1]
14226 >  if (D_is_set[macro]) {
14227 >    # Preserve the white space surrounding the "#".
14228 >    prefix = substr(line, 1, index(line, defundef) - 1)
14229 >    print prefix "define", macro P[macro] D[macro]
14230 >    next
14231 >  } else {
14232 >    # Replace #undef with comments.  This is necessary, for example,
14233 >    # in the case of _POSIX_SOURCE, which is predefined and required
14234 >    # on some systems where configure will not decide to define it.
14235 >    if (defundef == "undef") {
14236 >      print "/*", line, "*/"
14237 >      next
14238 >    }
14239 >  }
14240 > }
14241 > { print }
14242 > _ACAWK
14243 > _ACEOF
14244 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14245 >  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14246 > $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14247 >   { (exit 1); exit 1; }; }
14248 > fi # test -n "$CONFIG_HEADERS"
14249 >
14250 >
14251 > eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
14252 > shift
14253 > for ac_tag
14254   do
14255    case $ac_tag in
14256    :[FHLC]) ac_mode=$ac_tag; continue;;
14257    esac
14258    case $ac_mode$ac_tag in
14259    :[FHL]*:*);;
14260 <  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14261 < echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14260 >  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14261 > $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14262     { (exit 1); exit 1; }; };;
14263    :[FH]-) ac_tag=-:-;;
14264    :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
# Line 15473 | Line 14287 | echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14287             [\\/$]*) false;;
14288             *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14289             esac ||
14290 <           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14291 < echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14290 >           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14291 > $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14292     { (exit 1); exit 1; }; };;
14293        esac
14294 <      ac_file_inputs="$ac_file_inputs $ac_f"
14294 >      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14295 >      ac_file_inputs="$ac_file_inputs '$ac_f'"
14296      done
14297  
14298      # Let's still pretend it is `configure' which instantiates (i.e., don't
14299      # use $as_me), people would be surprised to read:
14300      #    /* config.h.  Generated by config.status.  */
14301 <    configure_input="Generated from "`IFS=:
14302 <          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14301 >    configure_input='Generated from '`
14302 >          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14303 >        `' by configure.'
14304      if test x"$ac_file" != x-; then
14305        configure_input="$ac_file.  $configure_input"
14306 <      { echo "$as_me:$LINENO: creating $ac_file" >&5
14307 < echo "$as_me: creating $ac_file" >&6;}
14306 >      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14307 > $as_echo "$as_me: creating $ac_file" >&6;}
14308      fi
14309 +    # Neutralize special characters interpreted by sed in replacement strings.
14310 +    case $configure_input in #(
14311 +    *\&* | *\|* | *\\* )
14312 +       ac_sed_conf_input=`$as_echo "$configure_input" |
14313 +       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14314 +    *) ac_sed_conf_input=$configure_input;;
14315 +    esac
14316  
14317      case $ac_tag in
14318 <    *:-:* | *:-) cat >"$tmp/stdin";;
14318 >    *:-:* | *:-) cat >"$tmp/stdin" \
14319 >      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14320 > $as_echo "$as_me: error: could not create $ac_file" >&2;}
14321 >   { (exit 1); exit 1; }; } ;;
14322      esac
14323      ;;
14324    esac
# Line 15502 | Line 14328 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
14328           X"$ac_file" : 'X\(//\)[^/]' \| \
14329           X"$ac_file" : 'X\(//\)$' \| \
14330           X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14331 < echo X"$ac_file" |
14331 > $as_echo X"$ac_file" |
14332      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14333              s//\1/
14334              q
# Line 15528 | Line 14354 | echo X"$ac_file" |
14354      as_dirs=
14355      while :; do
14356        case $as_dir in #(
14357 <      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14357 >      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14358        *) as_qdir=$as_dir;;
14359        esac
14360        as_dirs="'$as_qdir' $as_dirs"
# Line 15537 | Line 14363 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
14363           X"$as_dir" : 'X\(//\)[^/]' \| \
14364           X"$as_dir" : 'X\(//\)$' \| \
14365           X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14366 < echo X"$as_dir" |
14366 > $as_echo X"$as_dir" |
14367      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14368              s//\1/
14369              q
# Line 15558 | Line 14384 | echo X"$as_dir" |
14384        test -d "$as_dir" && break
14385      done
14386      test -z "$as_dirs" || eval "mkdir $as_dirs"
14387 <  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14388 < echo "$as_me: error: cannot create directory $as_dir" >&2;}
14387 >  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14388 > $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14389     { (exit 1); exit 1; }; }; }
14390    ac_builddir=.
14391  
14392   case "$ac_dir" in
14393   .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14394   *)
14395 <  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14395 >  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14396    # A ".." for each directory in $ac_dir_suffix.
14397 <  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14397 >  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14398    case $ac_top_builddir_sub in
14399    "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14400    *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
# Line 15608 | Line 14434 | _ACEOF
14434    esac
14435   _ACEOF
14436  
14437 < cat >>$CONFIG_STATUS <<\_ACEOF
14437 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14438   # If the template does not know about datarootdir, expand it.
14439   # FIXME: This hack should be removed a few years after 2.60.
14440   ac_datarootdir_hack=; ac_datarootdir_seen=
14441  
14442 < case `sed -n '/datarootdir/ {
14442 > ac_sed_dataroot='
14443 > /datarootdir/ {
14444    p
14445    q
14446   }
# Line 15622 | Line 14449 | case `sed -n '/datarootdir/ {
14449   /@infodir@/p
14450   /@localedir@/p
14451   /@mandir@/p
14452 < ' $ac_file_inputs` in
14452 > '
14453 > case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14454   *datarootdir*) ac_datarootdir_seen=yes;;
14455   *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14456 <  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14457 < echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14456 >  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14457 > $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14458   _ACEOF
14459 < cat >>$CONFIG_STATUS <<_ACEOF
14459 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14460    ac_datarootdir_hack='
14461    s&@datadir@&$datadir&g
14462    s&@docdir@&$docdir&g
# Line 15642 | Line 14470 | _ACEOF
14470   # Neutralize VPATH when `$srcdir' = `.'.
14471   # Shell code in configure.ac might set extrasub.
14472   # FIXME: do we really want to maintain this feature?
14473 < cat >>$CONFIG_STATUS <<_ACEOF
14474 <  sed "$ac_vpsub
14473 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14474 > ac_sed_extra="$ac_vpsub
14475   $extrasub
14476   _ACEOF
14477 < cat >>$CONFIG_STATUS <<\_ACEOF
14477 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14478   :t
14479   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14480 < s&@configure_input@&$configure_input&;t t
14480 > s|@configure_input@|$ac_sed_conf_input|;t t
14481   s&@top_builddir@&$ac_top_builddir_sub&;t t
14482 + s&@top_build_prefix@&$ac_top_build_prefix&;t t
14483   s&@srcdir@&$ac_srcdir&;t t
14484   s&@abs_srcdir@&$ac_abs_srcdir&;t t
14485   s&@top_srcdir@&$ac_top_srcdir&;t t
# Line 15660 | Line 14489 | $ac_datarootdir_hack
14489   s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14490   s&@INSTALL@&$ac_INSTALL&;t t
14491   $ac_datarootdir_hack
14492 < " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14492 > "
14493 > eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14494 >  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14495 > $as_echo "$as_me: error: could not create $ac_file" >&2;}
14496 >   { (exit 1); exit 1; }; }
14497  
14498   test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14499    { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14500    { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14501 <  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14501 >  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14502   which seems to be undefined.  Please make sure it is defined." >&5
14503 < echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14503 > $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14504   which seems to be undefined.  Please make sure it is defined." >&2;}
14505  
14506    rm -f "$tmp/stdin"
14507    case $ac_file in
14508 <  -) cat "$tmp/out"; rm -f "$tmp/out";;
14509 <  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14510 <  esac
14508 >  -) cat "$tmp/out" && rm -f "$tmp/out";;
14509 >  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14510 >  esac \
14511 >  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14512 > $as_echo "$as_me: error: could not create $ac_file" >&2;}
14513 >   { (exit 1); exit 1; }; }
14514   ;;
14515    :H)
14516    #
14517    # CONFIG_HEADER
14518    #
15683 _ACEOF
15684
15685 # Transform confdefs.h into a sed script `conftest.defines', that
15686 # substitutes the proper values into config.h.in to produce config.h.
15687 rm -f conftest.defines conftest.tail
15688 # First, append a space to every undef/define line, to ease matching.
15689 echo 's/$/ /' >conftest.defines
15690 # Then, protect against being on the right side of a sed subst, or in
15691 # an unquoted here document, in config.status.  If some macros were
15692 # called several times there might be several #defines for the same
15693 # symbol, which is useless.  But do not sort them, since the last
15694 # AC_DEFINE must be honored.
15695 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15696 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15697 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15698 # PARAMS is the parameter list in the macro definition--in most cases, it's
15699 # just an empty string.
15700 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
15701 ac_dB='\\)[      (].*,\\1define\\2'
15702 ac_dC=' '
15703 ac_dD=' ,'
15704
15705 uniq confdefs.h |
15706  sed -n '
15707        t rset
15708        :rset
15709        s/^[     ]*#[    ]*define[       ][      ]*//
15710        t ok
15711        d
15712        :ok
15713        s/[\\&,]/\\&/g
15714        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15715        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15716  ' >>conftest.defines
15717
15718 # Remove the space that was appended to ease matching.
15719 # Then replace #undef with comments.  This is necessary, for
15720 # example, in the case of _POSIX_SOURCE, which is predefined and required
15721 # on some systems where configure will not decide to define it.
15722 # (The regexp can be short, since the line contains either #define or #undef.)
15723 echo 's/ $//
15724 s,^[     #]*u.*,/* & */,' >>conftest.defines
15725
15726 # Break up conftest.defines:
15727 ac_max_sed_lines=50
15728
15729 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15730 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15731 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15732 # et cetera.
15733 ac_in='$ac_file_inputs'
15734 ac_out='"$tmp/out1"'
15735 ac_nxt='"$tmp/out2"'
15736
15737 while :
15738 do
15739  # Write a here document:
15740    cat >>$CONFIG_STATUS <<_ACEOF
15741    # First, check the format of the line:
15742    cat >"\$tmp/defines.sed" <<\\CEOF
15743 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
15744 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
15745 b
15746 :def
15747 _ACEOF
15748  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15749  echo 'CEOF
15750    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15751  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15752  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15753  grep . conftest.tail >/dev/null || break
15754  rm -f conftest.defines
15755  mv conftest.tail conftest.defines
15756 done
15757 rm -f conftest.defines conftest.tail
15758
15759 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15760 cat >>$CONFIG_STATUS <<\_ACEOF
14519    if test x"$ac_file" != x-; then
14520 <    echo "/* $configure_input  */" >"$tmp/config.h"
14521 <    cat "$ac_result" >>"$tmp/config.h"
14522 <    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14523 <      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14524 < echo "$as_me: $ac_file is unchanged" >&6;}
14520 >    {
14521 >      $as_echo "/* $configure_input  */" \
14522 >      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14523 >    } >"$tmp/config.h" \
14524 >      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14525 > $as_echo "$as_me: error: could not create $ac_file" >&2;}
14526 >   { (exit 1); exit 1; }; }
14527 >    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14528 >      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14529 > $as_echo "$as_me: $ac_file is unchanged" >&6;}
14530      else
14531 <      rm -f $ac_file
14532 <      mv "$tmp/config.h" $ac_file
14531 >      rm -f "$ac_file"
14532 >      mv "$tmp/config.h" "$ac_file" \
14533 >        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14534 > $as_echo "$as_me: error: could not create $ac_file" >&2;}
14535 >   { (exit 1); exit 1; }; }
14536      fi
14537    else
14538 <    echo "/* $configure_input  */"
14539 <    cat "$ac_result"
14538 >    $as_echo "/* $configure_input  */" \
14539 >      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14540 >      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14541 > $as_echo "$as_me: error: could not create -" >&2;}
14542 >   { (exit 1); exit 1; }; }
14543    fi
15775  rm -f "$tmp/out12"
14544   ;;
15777  :L)
15778  #
15779  # CONFIG_LINK
15780  #
14545  
15782  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
15783 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
14546  
15785  if test ! -r "$srcdir/$ac_source"; then
15786    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
15787 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
15788   { (exit 1); exit 1; }; }
15789  fi
15790  rm -f "$ac_file"
15791
15792  # Try a relative symlink, then a hard link, then a copy.
15793  case $srcdir in
15794  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
15795      *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
14547    esac
15797  ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15798    ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
15799    cp -p "$srcdir/$ac_source" "$ac_file" ||
15800    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
15801 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
15802   { (exit 1); exit 1; }; }
15803 ;;
14548  
15805  esac
14549  
15807
14550    case $ac_file$ac_mode in
14551      "make/Makefile":F) chmod 0755 scripts/* ;;
14552      "src/utils/Makefile":F) chmod 0755 scripts/* ;;
14553 +    "src/math/Makefile":F) chmod 0755 scripts/* ;;
14554 +    "src/integrators/Makefile":F) chmod 0755 scripts/* ;;
14555 +    "src/applications/atom2md/Makefile":F) chmod 0755 scripts/* ;;
14556      "scripts/filepp":F) chmod 0755 scripts/* ;;
14557  
14558    esac
# Line 15819 | Line 14564 | ac_clean_files=$ac_clean_files_save
14564   chmod +x $CONFIG_STATUS
14565   ac_clean_files=$ac_clean_files_save
14566  
14567 + test $ac_write_fail = 0 ||
14568 +  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14569 + $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14570 +   { (exit 1); exit 1; }; }
14571  
14572 +
14573   # configure is writing to config.log, and then calls config.status.
14574   # config.status does its own redirection, appending to config.log.
14575   # Unfortunately, on DOS this fails, as config.log is still kept open
# Line 15840 | Line 14590 | fi
14590    # would make configure fail if this is the last instruction.
14591    $ac_cs_success || { (exit 1); exit 1; }
14592   fi
14593 + if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14594 +  { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
14595 + $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
14596 + fi
14597  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines