ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/configure
(Generate patch)

Comparing trunk/OOPSE/configure (file contents):
Revision 827 by gezelter, Tue Oct 28 16:02:29 2003 UTC vs.
Revision 1238 by gezelter, Fri Jun 4 14:59:17 2004 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by Autoconf 2.50 for OOPSE 1.0.
3 > # Generated by GNU Autoconf 2.59 for OOPSE 1.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7 < # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 < # Free Software Foundation, Inc.
7 > # Copyright (C) 2003 Free Software Foundation, Inc.
8   # This configure script is free software; the Free Software Foundation
9   # gives unlimited permission to copy, distribute and modify it.
10 + ## --------------------- ##
11 + ## M4sh Initialization.  ##
12 + ## --------------------- ##
13  
14   # Be Bourne compatible
15   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16    emulate sh
17    NULLCMD=:
18 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 +  # is contrary to our usage.  Disable this feature.
20 +  alias -g '${1+"$@"}'='"$@"'
21   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22    set -o posix
23   fi
24 + DUALCASE=1; export DUALCASE # for MKS sh
25  
26 + # Support unset when possible.
27 + if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 +  as_unset=unset
29 + else
30 +  as_unset=false
31 + fi
32 +
33 +
34 + # Work around bugs in pre-3.0 UWIN ksh.
35 + $as_unset ENV MAIL MAILPATH
36 + PS1='$ '
37 + PS2='> '
38 + PS4='+ '
39 +
40 + # NLS nuisances.
41 + for as_var in \
42 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 +  LC_TELEPHONE LC_TIME
45 + do
46 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 +    eval $as_var=C; export $as_var
48 +  else
49 +    $as_unset $as_var
50 +  fi
51 + done
52 +
53 + # Required to use basename.
54 + if expr a : '\(a\)' >/dev/null 2>&1; then
55 +  as_expr=expr
56 + else
57 +  as_expr=false
58 + fi
59 +
60 + if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 +  as_basename=basename
62 + else
63 +  as_basename=false
64 + fi
65 +
66 +
67   # Name of the executable.
68 < as_me=`echo "$0" |sed 's,.*[\\/],,'`
68 > as_me=`$as_basename "$0" ||
69 > $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 >         X"$0" : 'X\(//\)$' \| \
71 >         X"$0" : 'X\(/\)$' \| \
72 >         .     : '\(.\)' 2>/dev/null ||
73 > echo X/"$0" |
74 >    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 >          /^X\/\(\/\/\)$/{ s//\1/; q; }
76 >          /^X\/\(\/\).*/{ s//\1/; q; }
77 >          s/.*/./; q'`
78  
79 +
80 + # PATH needs CR, and LINENO needs CR and PATH.
81 + # Avoid depending upon Character Ranges.
82 + as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 + as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 + as_cr_digits='0123456789'
86 + as_cr_alnum=$as_cr_Letters$as_cr_digits
87 +
88 + # The user is always right.
89 + if test "${PATH_SEPARATOR+set}" != set; then
90 +  echo "#! /bin/sh" >conf$$.sh
91 +  echo  "exit 0"   >>conf$$.sh
92 +  chmod +x conf$$.sh
93 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 +    PATH_SEPARATOR=';'
95 +  else
96 +    PATH_SEPARATOR=:
97 +  fi
98 +  rm -f conf$$.sh
99 + fi
100 +
101 +
102 +  as_lineno_1=$LINENO
103 +  as_lineno_2=$LINENO
104 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
106 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107 +  # Find who we are.  Look in the path if we contain no path at all
108 +  # relative or not.
109 +  case $0 in
110 +    *[\\/]* ) as_myself=$0 ;;
111 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 + for as_dir in $PATH
113 + do
114 +  IFS=$as_save_IFS
115 +  test -z "$as_dir" && as_dir=.
116 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 + done
118 +
119 +       ;;
120 +  esac
121 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
122 +  # in which case we are not to be found in the path.
123 +  if test "x$as_myself" = x; then
124 +    as_myself=$0
125 +  fi
126 +  if test ! -f "$as_myself"; then
127 +    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 +   { (exit 1); exit 1; }; }
129 +  fi
130 +  case $CONFIG_SHELL in
131 +  '')
132 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 + for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 + do
135 +  IFS=$as_save_IFS
136 +  test -z "$as_dir" && as_dir=.
137 +  for as_base in sh bash ksh sh5; do
138 +         case $as_dir in
139 +         /*)
140 +           if ("$as_dir/$as_base" -c '
141 +  as_lineno_1=$LINENO
142 +  as_lineno_2=$LINENO
143 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
145 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146 +             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 +             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 +             CONFIG_SHELL=$as_dir/$as_base
149 +             export CONFIG_SHELL
150 +             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 +           fi;;
152 +         esac
153 +       done
154 + done
155 + ;;
156 +  esac
157 +
158 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 +  # uniformly replaced by the line number.  The first 'sed' inserts a
160 +  # line-number line before each line; the second 'sed' does the real
161 +  # work.  The second script uses 'N' to pair each line-number line
162 +  # with the numbered line, and appends trailing '-' during
163 +  # substitution so that $LINENO is not a special case at line end.
164 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166 +  sed '=' <$as_myself |
167 +    sed '
168 +      N
169 +      s,$,-,
170 +      : loop
171 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 +      t loop
173 +      s,-$,,
174 +      s,^['$as_cr_digits']*\n,,
175 +    ' >$as_me.lineno &&
176 +  chmod +x $as_me.lineno ||
177 +    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 +   { (exit 1); exit 1; }; }
179 +
180 +  # Don't try to exec as it changes $[0], causing all sort of problems
181 +  # (the dirname of $[0] is not the place where we might find the
182 +  # original and so on.  Autoconf is especially sensible to this).
183 +  . ./$as_me.lineno
184 +  # Exit status is that of the last command.
185 +  exit
186 + }
187 +
188 +
189 + case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 +  *c*,-n*) ECHO_N= ECHO_C='
191 + ' ECHO_T='      ' ;;
192 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 + esac
195 +
196   if expr a : '\(a\)' >/dev/null 2>&1; then
197    as_expr=expr
198   else
# Line 44 | Line 217 | as_executable_p="test -f"
217   fi
218   rm -f conf$$ conf$$.exe conf$$.file
219  
220 < as_executable_p="test -f"
221 <
49 < # Support unset when possible.
50 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
51 <  as_unset=unset
220 > if mkdir -p . 2>/dev/null; then
221 >  as_mkdir_p=:
222   else
223 <  as_unset=false
223 >  test -d ./-p && rmdir ./-p
224 >  as_mkdir_p=false
225   fi
226  
227 < # NLS nuisances.
57 < $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
58 < $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
59 < $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
60 < $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
61 < $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
62 < $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
63 < $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
64 < $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
227 > as_executable_p="test -f"
228  
229 + # Sed expression to map a string onto a valid CPP name.
230 + as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 +
232 + # Sed expression to map a string onto a valid variable name.
233 + as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 +
235 +
236   # IFS
237   # We need space, tab and new line, in precisely that order.
238   as_nl='
# Line 70 | Line 240 | $as_unset CDPATH || test "${CDPATH+set}" != set || { C
240   IFS="   $as_nl"
241  
242   # CDPATH.
243 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
243 > $as_unset CDPATH
244  
245 +
246   # Name of the host.
247   # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248   # so uname gets run too.
# Line 83 | Line 254 | cross_compiling=no
254   # Initializations.
255   #
256   ac_default_prefix=/usr/local
257 + ac_config_libobj_dir=.
258   cross_compiling=no
259   subdirs=
260 < MFLAGS= MAKEFLAGS=
260 > MFLAGS=
261 > MAKEFLAGS=
262   SHELL=${CONFIG_SHELL-/bin/sh}
263  
264   # Maximum number of lines to put in a shell here document.
# Line 93 | Line 266 | SHELL=${CONFIG_SHELL-/bin/sh}
266   # only ac_max_sed_lines should be used.
267   : ${ac_max_here_lines=38}
268  
269 < # Avoid depending upon Character Ranges.
270 < ac_cr_az='abcdefghijklmnopqrstuvwxyz'
271 < ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
272 < ac_cr_09='0123456789'
273 < ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
269 > # Identity of this package.
270 > PACKAGE_NAME='OOPSE'
271 > PACKAGE_TARNAME='oopse'
272 > PACKAGE_VERSION='1.0'
273 > PACKAGE_STRING='OOPSE 1.0'
274 > PACKAGE_BUGREPORT='gezelter@nd.edu'
275  
102 # Sed expression to map a string onto a valid sh and CPP variable names.
103 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
104 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
105
276   ac_unique_file="src/oopse.cpp"
277   ac_default_prefix="/usr/local"
278 + # Factoring default headers for most tests.
279 + ac_includes_default="\
280 + #include <stdio.h>
281 + #if HAVE_SYS_TYPES_H
282 + # include <sys/types.h>
283 + #endif
284 + #if HAVE_SYS_STAT_H
285 + # include <sys/stat.h>
286 + #endif
287 + #if STDC_HEADERS
288 + # include <stdlib.h>
289 + # include <stddef.h>
290 + #else
291 + # if HAVE_STDLIB_H
292 + #  include <stdlib.h>
293 + # endif
294 + #endif
295 + #if HAVE_STRING_H
296 + # if !STDC_HEADERS && HAVE_MEMORY_H
297 + #  include <memory.h>
298 + # endif
299 + # include <string.h>
300 + #endif
301 + #if HAVE_STRINGS_H
302 + # include <strings.h>
303 + #endif
304 + #if HAVE_INTTYPES_H
305 + # include <inttypes.h>
306 + #else
307 + # if HAVE_STDINT_H
308 + #  include <stdint.h>
309 + # endif
310 + #endif
311 + #if HAVE_UNISTD_H
312 + # include <unistd.h>
313 + #endif"
314  
315 + ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS'
316 + ac_subst_files=''
317 +
318   # Initialize some variables set by options.
319   ac_init_help=
320   ac_init_version=false
# Line 144 | Line 353 | mandir='${prefix}/man'
353   infodir='${prefix}/info'
354   mandir='${prefix}/man'
355  
147 # Identity of this package.
148 PACKAGE_NAME='OOPSE'
149 PACKAGE_TARNAME='oopse'
150 PACKAGE_VERSION='1.0'
151 PACKAGE_STRING='OOPSE 1.0'
152 PACKAGE_BUGREPORT='gezelter@nd.edu'
153
356   ac_prev=
357   for ac_option
358   do
# Line 196 | Line 398 | do
398    -disable-* | --disable-*)
399      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400      # Reject names that are not valid shell variable names.
401 <    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
401 >    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403     { (exit 1); exit 1; }; }
404      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
# Line 205 | Line 407 | do
407    -enable-* | --enable-*)
408      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409      # Reject names that are not valid shell variable names.
410 <    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
410 >    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412     { (exit 1); exit 1; }; }
413      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
# Line 283 | Line 485 | do
485      with_fp=no ;;
486  
487    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 <  | --no-cr | --no-c)
488 >  | --no-cr | --no-c | -n)
489      no_create=yes ;;
490  
491    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 387 | Line 589 | do
589    -with-* | --with-*)
590      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591      # Reject names that are not valid shell variable names.
592 <    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
592 >    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593        { echo "$as_me: error: invalid package name: $ac_package" >&2
594     { (exit 1); exit 1; }; }
595      ac_package=`echo $ac_package| sed 's/-/_/g'`
# Line 400 | Line 602 | do
602    -without-* | --without-*)
603      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604      # Reject names that are not valid shell variable names.
605 <    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
605 >    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606        { echo "$as_me: error: invalid package name: $ac_package" >&2
607     { (exit 1); exit 1; }; }
608      ac_package=`echo $ac_package | sed 's/-/_/g'`
# Line 432 | Line 634 | Try \`$0 --help' for more information." >&2
634    *=*)
635      ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636      # Reject names that are not valid shell variable names.
637 <    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
637 >    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638        { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639     { (exit 1); exit 1; }; }
640      ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
# Line 442 | Line 644 | Try \`$0 --help' for more information." >&2
644    *)
645      # FIXME: should be removed in autoconf 3.0.
646      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 <    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
647 >    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650      ;;
# Line 457 | Line 659 | for ac_var in bindir sbindir libexecdir datadir syscon
659   fi
660  
661   # Be sure to have absolute paths.
662 + for ac_var in exec_prefix prefix
663 + do
664 +  eval ac_val=$`echo $ac_var`
665 +  case $ac_val in
666 +    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 +   { (exit 1); exit 1; }; };;
669 +  esac
670 + done
671 +
672 + # Be sure to have absolute paths.
673   for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 <              localstatedir libdir includedir oldincludedir infodir mandir \
462 <              exec_prefix prefix
674 >              localstatedir libdir includedir oldincludedir infodir mandir
675   do
676    eval ac_val=$`echo $ac_var`
677    case $ac_val in
678      [\\/$]* | ?:[\\/]* ) ;;
679 <    NONE ) ;;
468 <    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
679 >    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680     { (exit 1); exit 1; }; };;
681    esac
682   done
683  
684   # There might be people who depend on the old broken behavior: `$host'
685   # used to hold the argument of --host etc.
686 + # FIXME: To remove some day.
687   build=$build_alias
688   host=$host_alias
689   target=$target_alias
690  
691 < # FIXME: should be removed in autoconf 3.0.
691 > # FIXME: To remove some day.
692   if test "x$host_alias" != x; then
693    if test "x$build_alias" = x; then
694      cross_compiling=maybe
# Line 492 | Line 704 | test "$silent" = yes && exec 6>/dev/null
704  
705   test "$silent" = yes && exec 6>/dev/null
706  
707 +
708   # Find the source files, if location was not specified.
709   if test -z "$srcdir"; then
710    ac_srcdir_defaulted=yes
711    # Try the directory containing this script, then its parent.
712 <  ac_prog=$0
713 <  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
714 <  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
712 >  ac_confdir=`(dirname "$0") 2>/dev/null ||
713 > $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 >         X"$0" : 'X\(//\)[^/]' \| \
715 >         X"$0" : 'X\(//\)$' \| \
716 >         X"$0" : 'X\(/\)' \| \
717 >         .     : '\(.\)' 2>/dev/null ||
718 > echo X"$0" |
719 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 >          /^X\(\/\/\)$/{ s//\1/; q; }
722 >          /^X\(\/\).*/{ s//\1/; q; }
723 >          s/.*/./; q'`
724    srcdir=$ac_confdir
725    if test ! -r $srcdir/$ac_unique_file; then
726      srcdir=..
# Line 508 | Line 730 | if test ! -r $srcdir/$ac_unique_file; then
730   fi
731   if test ! -r $srcdir/$ac_unique_file; then
732    if test "$ac_srcdir_defaulted" = yes; then
733 <    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
733 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734     { (exit 1); exit 1; }; }
735    else
736 <    { echo "$as_me: error: cannot find sources in $srcdir" >&2
736 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737     { (exit 1); exit 1; }; }
738    fi
739   fi
740 + (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 +  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 +   { (exit 1); exit 1; }; }
743   srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744   ac_env_build_alias_set=${build_alias+set}
745   ac_env_build_alias_value=$build_alias
# Line 560 | Line 785 | ac_env_MPIF77_set=${MPIF77+set}
785   ac_env_F90FLAGS_value=$F90FLAGS
786   ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
787   ac_cv_env_F90FLAGS_value=$F90FLAGS
563 ac_env_MPIF77_set=${MPIF77+set}
564 ac_env_MPIF77_value=$MPIF77
565 ac_cv_env_MPIF77_set=${MPIF77+set}
566 ac_cv_env_MPIF77_value=$MPIF77
788   ac_env_CPP_set=${CPP+set}
789   ac_env_CPP_value=$CPP
790   ac_cv_env_CPP_set=${CPP+set}
# Line 575 | Line 796 | if test "$ac_init_help" = "long"; then
796   if test "$ac_init_help" = "long"; then
797    # Omit some internal or obsolete options to make the list less imposing.
798    # This message is too long to be a string in the A/UX 3.1 sh.
799 <  cat <<EOF
799 >  cat <<_ACEOF
800   \`configure' configures OOPSE 1.0 to adapt to many kinds of systems.
801  
802   Usage: $0 [OPTION]... [VAR=VALUE]...
# Line 596 | Line 817 | EOF
817    -n, --no-create         do not create output files
818        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
819  
820 < EOF
820 > _ACEOF
821  
822 <  cat <<EOF
822 >  cat <<_ACEOF
823   Installation directories:
824    --prefix=PREFIX         install architecture-independent files in PREFIX
825 <                          [$ac_default_prefix]
825 >                          [$ac_default_prefix]
826    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
827 <                          [PREFIX]
827 >                          [PREFIX]
828  
829   By default, \`make install' will install all the files in
830   \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
# Line 625 | Line 846 | EOF
846    --oldincludedir=DIR    C header files for non-gcc [/usr/include]
847    --infodir=DIR          info documentation [PREFIX/info]
848    --mandir=DIR           man documentation [PREFIX/man]
849 < EOF
849 > _ACEOF
850  
851 <  cat <<\EOF
851 >  cat <<\_ACEOF
852  
853   System types:
854    --build=BUILD     configure for building on BUILD [guessed]
855 <  --host=HOST       build programs to run on HOST [BUILD]
856 < EOF
855 >  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
856 > _ACEOF
857   fi
858  
859   if test -n "$ac_init_help"; then
860    case $ac_init_help in
861       short | recursive ) echo "Configuration of OOPSE 1.0:";;
862     esac
863 <  cat <<\EOF
863 >  cat <<\_ACEOF
864  
865   Optional Features:
866    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
# Line 650 | Line 871 | Optional Packages:
871   Optional Packages:
872    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
873    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
874 <  --with-mpi_dir=MPIDIR   give the path for MPI /usr/local
654 <  --with-mpi-libdir=dir  give the path for MPI-libraries MPI_DIR/lib
655 <  --with-mpi_inc=dir  give the path for MPI-include-files MPI_DIR/include
874 >  --with-mpi=<prefix>     compile with MPI libraries in <prefix> [default=no]
875    --with-sprng_prefix=PREFIX
876                            Prefix where SPRNG is installed
877    --with-sprng-libdir=PREFIX  SPRNG library directory
878    --with-sprng-include=PREFIX
879                            SPRNG include directory
880 <  --with-mkl              Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60
662 <  --with-mpi_f90_mods=<dir>
663 <                          Location where MPI f90 modules are installed
880 >  --with-mkl              Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61
881  
882   Some influential environment variables:
883    CC          C compiler command
# Line 673 | Line 890 | Some influential environment variables:
890    CXXFLAGS    C++ compiler flags
891    F90         Fortran 90 compiler command
892    F90FLAGS    Fortran 90 compiler flags
676  MPIF77      MPI Fortran compiler command
893    CPP         C preprocessor
894  
895   Use these variables to override the choices made by `configure' or to help
896   it to find libraries and programs with nonstandard names/locations.
897  
898   Report bugs to <gezelter@nd.edu>.
899 < EOF
899 > _ACEOF
900   fi
901  
902   if test "$ac_init_help" = "recursive"; then
903    # If there are subdirs, report their specific --help.
904    ac_popdir=`pwd`
905 <  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
906 <    cd $ac_subdir
907 <    # A "../" for each directory in /$ac_subdir.
692 <    ac_dots=`echo $ac_subdir |
693 <             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
905 >  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 >    test -d $ac_dir || continue
907 >    ac_builddir=.
908  
909 <    case $srcdir in
910 <    .) # No --srcdir option.  We are building in place.
911 <      ac_sub_srcdir=$srcdir ;;
912 <    [\\/]* | ?:[\\/]* ) # Absolute path.
913 <      ac_sub_srcdir=$srcdir/$ac_subdir ;;
914 <    *) # Relative path.
915 <      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
702 <    esac
909 > if test "$ac_dir" != .; then
910 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 >  # A "../" for each directory in $ac_dir_suffix.
912 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 > else
914 >  ac_dir_suffix= ac_top_builddir=
915 > fi
916  
917 <    # Check for guested configure; otherwise get Cygnus style configure.
918 <    if test -f $ac_sub_srcdir/configure.gnu; then
919 <      echo
920 <      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
921 <    elif test -f $ac_sub_srcdir/configure; then
917 > case $srcdir in
918 >  .)  # No --srcdir option.  We are building in place.
919 >    ac_srcdir=.
920 >    if test -z "$ac_top_builddir"; then
921 >       ac_top_srcdir=.
922 >    else
923 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 >    fi ;;
925 >  [\\/]* | ?:[\\/]* )  # Absolute path.
926 >    ac_srcdir=$srcdir$ac_dir_suffix;
927 >    ac_top_srcdir=$srcdir ;;
928 >  *) # Relative path.
929 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 > esac
932 >
933 > # Do not use `cd foo && pwd` to compute absolute paths, because
934 > # the directories may not exist.
935 > case `pwd` in
936 > .) ac_abs_builddir="$ac_dir";;
937 > *)
938 >  case "$ac_dir" in
939 >  .) ac_abs_builddir=`pwd`;;
940 >  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 >  *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 >  esac;;
943 > esac
944 > case $ac_abs_builddir in
945 > .) ac_abs_top_builddir=${ac_top_builddir}.;;
946 > *)
947 >  case ${ac_top_builddir}. in
948 >  .) ac_abs_top_builddir=$ac_abs_builddir;;
949 >  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 >  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 >  esac;;
952 > esac
953 > case $ac_abs_builddir in
954 > .) ac_abs_srcdir=$ac_srcdir;;
955 > *)
956 >  case $ac_srcdir in
957 >  .) ac_abs_srcdir=$ac_abs_builddir;;
958 >  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 >  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 >  esac;;
961 > esac
962 > case $ac_abs_builddir in
963 > .) ac_abs_top_srcdir=$ac_top_srcdir;;
964 > *)
965 >  case $ac_top_srcdir in
966 >  .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 >  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 >  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 >  esac;;
970 > esac
971 >
972 >    cd $ac_dir
973 >    # Check for guested configure; otherwise get Cygnus style configure.
974 >    if test -f $ac_srcdir/configure.gnu; then
975        echo
976 <      $SHELL $ac_sub_srcdir/configure  --help=recursive
977 <    elif test -f $ac_sub_srcdir/configure.ac ||
712 <           test -f $ac_sub_srcdir/configure.in; then
976 >      $SHELL $ac_srcdir/configure.gnu  --help=recursive
977 >    elif test -f $ac_srcdir/configure; then
978        echo
979 +      $SHELL $ac_srcdir/configure  --help=recursive
980 +    elif test -f $ac_srcdir/configure.ac ||
981 +           test -f $ac_srcdir/configure.in; then
982 +      echo
983        $ac_configure --help
984      else
985 <      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
985 >      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986      fi
987      cd $ac_popdir
988    done
# Line 721 | Line 990 | if $ac_init_version; then
990  
991   test -n "$ac_init_help" && exit 0
992   if $ac_init_version; then
993 <  cat <<\EOF
993 >  cat <<\_ACEOF
994   OOPSE configure 1.0
995 < generated by GNU Autoconf 2.50
995 > generated by GNU Autoconf 2.59
996  
997 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
729 < Free Software Foundation, Inc.
997 > Copyright (C) 2003 Free Software Foundation, Inc.
998   This configure script is free software; the Free Software Foundation
999   gives unlimited permission to copy, distribute and modify it.
1000 < EOF
1000 > _ACEOF
1001    exit 0
1002   fi
1003   exec 5>config.log
1004 < cat >&5 <<EOF
1004 > cat >&5 <<_ACEOF
1005   This file contains any messages produced by compilers while
1006   running configure, to aid debugging if configure makes a mistake.
1007  
1008   It was created by OOPSE $as_me 1.0, which was
1009 < generated by GNU Autoconf 2.50.  Invocation command line was
1009 > generated by GNU Autoconf 2.59.  Invocation command line was
1010  
1011    $ $0 $@
1012  
1013 < EOF
1013 > _ACEOF
1014   {
1015   cat <<_ASUNAME
1016 < ## ---------- ##
1017 < ## Platform.  ##
1018 < ## ---------- ##
1016 > ## --------- ##
1017 > ## Platform. ##
1018 > ## --------- ##
1019  
1020   hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021   uname -m = `(uname -m) 2>/dev/null || echo unknown`
# Line 766 | Line 1034 | PATH = $PATH
1034   /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1035   /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1036  
769 PATH = $PATH
770
1037   _ASUNAME
1038 +
1039 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 + for as_dir in $PATH
1041 + do
1042 +  IFS=$as_save_IFS
1043 +  test -z "$as_dir" && as_dir=.
1044 +  echo "PATH: $as_dir"
1045 + done
1046 +
1047   } >&5
1048  
1049 < cat >&5 <<EOF
775 < ## ------------ ##
776 < ## Core tests.  ##
777 < ## ------------ ##
1049 > cat >&5 <<_ACEOF
1050  
779 EOF
1051  
1052 + ## ----------- ##
1053 + ## Core tests. ##
1054 + ## ----------- ##
1055 +
1056 + _ACEOF
1057 +
1058 +
1059   # Keep a trace of the command line.
1060   # Strip out --no-create and --no-recursion so they do not pile up.
1061 + # Strip out --silent because we don't want to record it for future runs.
1062   # Also quote any args containing shell meta-characters.
1063 + # Make two passes to allow for proper duplicate-argument suppression.
1064   ac_configure_args=
1065 + ac_configure_args0=
1066 + ac_configure_args1=
1067   ac_sep=
1068 < for ac_arg
1068 > ac_must_keep_next=false
1069 > for ac_pass in 1 2
1070   do
1071 <  case $ac_arg in
1072 <  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 <  | --no-cr | --no-c) ;;
1074 <  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075 <  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1076 <  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 <    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1078 <    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 <    ac_sep=" " ;;
1080 <  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1081 <     ac_sep=" " ;;
1082 <  esac
1083 <  # Get rid of the leading space.
1071 >  for ac_arg
1072 >  do
1073 >    case $ac_arg in
1074 >    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 >    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 >    | -silent | --silent | --silen | --sile | --sil)
1077 >      continue ;;
1078 >    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 >      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080 >    esac
1081 >    case $ac_pass in
1082 >    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083 >    2)
1084 >      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 >      if test $ac_must_keep_next = true; then
1086 >        ac_must_keep_next=false # Got value, back to normal.
1087 >      else
1088 >        case $ac_arg in
1089 >          *=* | --config-cache | -C | -disable-* | --disable-* \
1090 >          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 >          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 >          | -with-* | --with-* | -without-* | --without-* | --x)
1093 >            case "$ac_configure_args0 " in
1094 >              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 >            esac
1096 >            ;;
1097 >          -* ) ac_must_keep_next=true ;;
1098 >        esac
1099 >      fi
1100 >      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 >      # Get rid of the leading space.
1102 >      ac_sep=" "
1103 >      ;;
1104 >    esac
1105 >  done
1106   done
1107 + $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 + $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109  
1110   # When interrupted or exit'd, cleanup temporary files, and complete
1111   # config.log.  We remove comments because anyway the quotes in there
1112   # would cause problems or look ugly.
1113 + # WARNING: Be sure not to use single quotes in there, as some shells,
1114 + # such as our DU 5.0 friend, will then `close' the trap.
1115   trap 'exit_status=$?
1116    # Save into config.log some information that might help in debugging.
1117 <  echo >&5
1118 <  echo "## ----------------- ##" >&5
1119 <  echo "## Cache variables.  ##" >&5
1120 <  echo "## ----------------- ##" >&5
1121 <  echo >&5
1122 <  # The following way of writing the cache mishandles newlines in values,
1117 >  {
1118 >    echo
1119 >
1120 >    cat <<\_ASBOX
1121 > ## ---------------- ##
1122 > ## Cache variables. ##
1123 > ## ---------------- ##
1124 > _ASBOX
1125 >    echo
1126 >    # The following way of writing the cache mishandles newlines in values,
1127   {
1128    (set) 2>&1 |
1129      case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130      *ac_space=\ *)
1131        sed -n \
1132 <        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 >        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134        ;;
1135      *)
1136        sed -n \
1137 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138        ;;
1139      esac;
1140 < } >&5
1141 <  sed "/^$/d" confdefs.h >conftest.log
1142 <  if test -s conftest.log; then
1143 <    echo >&5
1144 <    echo "## ------------ ##" >&5
1145 <    echo "## confdefs.h.  ##" >&5
1146 <    echo "## ------------ ##" >&5
1147 <    echo >&5
1148 <    cat conftest.log >&5
1149 <  fi
1150 <  (echo; echo) >&5
1151 <  test "$ac_signal" != 0 &&
1152 <    echo "$as_me: caught signal $ac_signal" >&5
1153 <  echo "$as_me: exit $exit_status" >&5
1154 <  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1140 > }
1141 >    echo
1142 >
1143 >    cat <<\_ASBOX
1144 > ## ----------------- ##
1145 > ## Output variables. ##
1146 > ## ----------------- ##
1147 > _ASBOX
1148 >    echo
1149 >    for ac_var in $ac_subst_vars
1150 >    do
1151 >      eval ac_val=$`echo $ac_var`
1152 >      echo "$ac_var='"'"'$ac_val'"'"'"
1153 >    done | sort
1154 >    echo
1155 >
1156 >    if test -n "$ac_subst_files"; then
1157 >      cat <<\_ASBOX
1158 > ## ------------- ##
1159 > ## Output files. ##
1160 > ## ------------- ##
1161 > _ASBOX
1162 >      echo
1163 >      for ac_var in $ac_subst_files
1164 >      do
1165 >        eval ac_val=$`echo $ac_var`
1166 >        echo "$ac_var='"'"'$ac_val'"'"'"
1167 >      done | sort
1168 >      echo
1169 >    fi
1170 >
1171 >    if test -s confdefs.h; then
1172 >      cat <<\_ASBOX
1173 > ## ----------- ##
1174 > ## confdefs.h. ##
1175 > ## ----------- ##
1176 > _ASBOX
1177 >      echo
1178 >      sed "/^$/d" confdefs.h | sort
1179 >      echo
1180 >    fi
1181 >    test "$ac_signal" != 0 &&
1182 >      echo "$as_me: caught signal $ac_signal"
1183 >    echo "$as_me: exit $exit_status"
1184 >  } >&5
1185 >  rm -f core *.core &&
1186 >  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187      exit $exit_status
1188       ' 0
1189   for ac_signal in 1 2 13 15; do
1190 <  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
1190 >  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191   done
1192   ac_signal=0
1193  
# Line 851 | Line 1196 | echo >confdefs.h
1196   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197   echo >confdefs.h
1198  
1199 + # Predefined preprocessor variables.
1200 +
1201 + cat >>confdefs.h <<_ACEOF
1202 + #define PACKAGE_NAME "$PACKAGE_NAME"
1203 + _ACEOF
1204 +
1205 +
1206 + cat >>confdefs.h <<_ACEOF
1207 + #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 + _ACEOF
1209 +
1210 +
1211 + cat >>confdefs.h <<_ACEOF
1212 + #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 + _ACEOF
1214 +
1215 +
1216 + cat >>confdefs.h <<_ACEOF
1217 + #define PACKAGE_STRING "$PACKAGE_STRING"
1218 + _ACEOF
1219 +
1220 +
1221 + cat >>confdefs.h <<_ACEOF
1222 + #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 + _ACEOF
1224 +
1225 +
1226   # Let the site file select an alternate cache file if it wants to.
1227   # Prefer explicitly selected file to automatically selected ones.
1228   if test -z "$CONFIG_SITE"; then
# Line 862 | Line 1234 | for ac_site_file in $CONFIG_SITE; do
1234   fi
1235   for ac_site_file in $CONFIG_SITE; do
1236    if test -r "$ac_site_file"; then
1237 <    { echo "$as_me:865: loading site script $ac_site_file" >&5
1237 >    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238   echo "$as_me: loading site script $ac_site_file" >&6;}
1239 <    cat "$ac_site_file" >&5
1239 >    sed 's/^/| /' "$ac_site_file" >&5
1240      . "$ac_site_file"
1241    fi
1242   done
# Line 873 | Line 1245 | if test -r "$cache_file"; then
1245    # Some versions of bash will fail to source /dev/null (special
1246    # files actually), so we avoid doing that.
1247    if test -f "$cache_file"; then
1248 <    { echo "$as_me:876: loading cache $cache_file" >&5
1248 >    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249   echo "$as_me: loading cache $cache_file" >&6;}
1250      case $cache_file in
1251        [\\/]* | ?:[\\/]* ) . $cache_file;;
# Line 881 | Line 1253 | else
1253      esac
1254    fi
1255   else
1256 <  { echo "$as_me:884: creating cache $cache_file" >&5
1256 >  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257   echo "$as_me: creating cache $cache_file" >&6;}
1258    >$cache_file
1259   fi
1260  
1261   # Check that the precious variables saved in the cache have kept the same
1262   # value.
1263 < ac_suggest_removing_cache=false
1263 > ac_cache_corrupted=false
1264   for ac_var in `(set) 2>&1 |
1265 <               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1265 >               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266    eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267    eval ac_new_set=\$ac_env_${ac_var}_set
1268    eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269    eval ac_new_val="\$ac_env_${ac_var}_value"
1270    case $ac_old_set,$ac_new_set in
1271      set,)
1272 <      { echo "$as_me:900: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 < echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274 <      ac_suggest_removing_cache=: ;;
1272 >      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 > echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274 >      ac_cache_corrupted=: ;;
1275      ,set)
1276 <      { echo "$as_me:904: WARNING: \`$ac_var' was not set in the previous run" >&5
1277 < echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1278 <      ac_suggest_removing_cache=: ;;
1276 >      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 > echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 >      ac_cache_corrupted=: ;;
1279      ,);;
1280      *)
1281        if test "x$ac_old_val" != "x$ac_new_val"; then
1282 <        { echo "$as_me:910: WARNING: \`$ac_var' has changed since the previous run:" >&5
1283 < echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1284 <        { echo "$as_me:912: WARNING:   former value:  $ac_old_val" >&5
1285 < echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
1286 <        { echo "$as_me:914: WARNING:   current value: $ac_new_val" >&5
1287 < echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
1288 <        ac_suggest_removing_cache=:
1282 >        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 > echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284 >        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1285 > echo "$as_me:   former value:  $ac_old_val" >&2;}
1286 >        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1287 > echo "$as_me:   current value: $ac_new_val" >&2;}
1288 >        ac_cache_corrupted=:
1289        fi;;
1290    esac
1291 +  # Pass precious variables to config.status.
1292 +  if test "$ac_new_set" = set; then
1293 +    case $ac_new_val in
1294 +    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 +      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 +    *) ac_arg=$ac_var=$ac_new_val ;;
1297 +    esac
1298 +    case " $ac_configure_args " in
1299 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1300 +      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 +    esac
1302 +  fi
1303   done
1304 < if $ac_suggest_removing_cache; then
1305 <  { echo "$as_me:921: WARNING: changes in the environment can compromise the build" >&5
1306 < echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1307 <  { echo "$as_me:923: WARNING: consider removing $cache_file and starting over" >&5
1308 < echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
1304 > if $ac_cache_corrupted; then
1305 >  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 > echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 >  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 > echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 >   { (exit 1); exit 1; }; }
1310   fi
1311  
1312   ac_ext=c
# Line 930 | Line 1315 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing;
1315   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316   ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317  
933 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
934  *c*,-n*) ECHO_N= ECHO_C='
935 ' ECHO_T='      ' ;;
936  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
937  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
938 esac
939 echo "#! $SHELL" >conftest.sh
940 echo  "exit 0"   >>conftest.sh
941 chmod +x conftest.sh
942 if { (echo "$as_me:942: PATH=\".;.\"; conftest.sh") >&5
943  (PATH=".;."; conftest.sh) 2>&5
944  ac_status=$?
945  echo "$as_me:945: \$? = $ac_status" >&5
946  (exit $ac_status); }; then
947  ac_path_separator=';'
948 else
949  ac_path_separator=:
950 fi
951 PATH_SEPARATOR="$ac_path_separator"
952 rm -f conftest.sh
1318  
1319 +
1320 +
1321 +
1322 +
1323 +
1324 +
1325 +
1326 +
1327 +
1328 +
1329 +
1330 +
1331 +
1332 +
1333 +
1334 +
1335 +
1336 +
1337 +
1338 +
1339 +
1340 +
1341 +
1342 +
1343 +
1344   ac_aux_dir=
1345   for ac_dir in ac-tools $srcdir/ac-tools; do
1346    if test -f $ac_dir/install-sh; then
# Line 968 | Line 1358 | if test -z "$ac_aux_dir"; then
1358    fi
1359   done
1360   if test -z "$ac_aux_dir"; then
1361 <  { { echo "$as_me:971: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1361 >  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1362   echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
1363     { (exit 1); exit 1; }; }
1364   fi
# Line 976 | Line 1366 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1366   ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1367   ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1368  
1369 +
1370   # This file is part of Autoconf.                       -*- Autoconf -*-
1371   # Programming languages support.
1372   # Copyright 2000, 2001
# Line 1026 | Line 1417 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1417   # Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably
1418   # many others).
1419  
1420 +
1421   # Table of Contents:
1422   #
1423   # 1. Language selection
# Line 1061 | Line 1453 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1453   # ACTION-IF-NOT-FOUND.
1454   # _AC_LIST_MEMBER_IF
1455  
1456 +
1457 +
1458   # _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE)
1459   # -------------------------------------------------
1460   #
# Line 1091 | Line 1485 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1485   # FIXME: Get rid of this macro.
1486   # _AC_LINKER_OPTION
1487  
1488 +
1489 +
1490   ## ----------------------- ##
1491   ## 1. Language selection.  ##
1492   ## ----------------------- ##
# Line 1102 | Line 1498 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1498   # AC_LANG(Fortran 90)
1499   # -------------------
1500  
1501 +
1502 +
1503   # _AC_LANG_ABBREV(Fortran 90)
1504   # ---------------------------
1505  
1506 +
1507 +
1508   # ----------------------------- #
1509   # 1c. The Fortran 95 language.  #
1510   # ----------------------------- #
# Line 1112 | Line 1512 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1512   # AC_LANG(Fortran 95)
1513   # -------------------
1514  
1515 +
1516 +
1517   # _AC_LANG_ABBREV(Fortran 95)
1518   # ---------------------------
1519  
1520 +
1521 +
1522   ## ---------------------- ##
1523   ## 2.Producing programs.  ##
1524   ## ---------------------- ##
# Line 1126 | Line 1530 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1530   # AC_LANG_SOURCE(Fortran 90)(BODY)
1531   # --------------------------------
1532  
1533 +
1534 +
1535   # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY])
1536   # -----------------------------------------------
1537  
1538 +
1539   # AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION)
1540   # --------------------------------------------
1541  
1542 +
1543 +
1544   # ------------------------ #
1545   # 2c. Fortran 95 sources.  #
1546   # ------------------------ #
# Line 1139 | Line 1548 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1548   # AC_LANG_SOURCE(Fortran 95)(BODY)
1549   # --------------------------------
1550  
1551 +
1552   # AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY])
1553   # -----------------------------------------------
1554  
1555 +
1556   # AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION)
1557   # --------------------------------------------
1558  
1559 +
1560 +
1561   ## -------------------------------------------- ##
1562   ## 3. Looking for Compilers and Preprocessors.  ##
1563   ## -------------------------------------------- ##
# Line 1153 | Line 1566 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1566   # 3b. The Fortran 90 compiler.  #
1567   # ----------------------------- #
1568  
1569 +
1570   # AC_LANG_PREPROC(Fortran 90)
1571   # ---------------------------
1572   # Find the Fortran 90 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able.
1573 +
1574 +
1575  
1576   # AC_LANG_COMPILER(Fortran 90)
1577   # ----------------------------
1578   # Find the Fortran 90 compiler.  Must be AC_DEFUN'd to be
1579   # AC_REQUIRE'able.
1580  
1581 +
1582 +
1583   # AC_PROG_F90([COMPILERS...])
1584   # ---------------------------
1585   # COMPILERS is a space separated list of Fortran 90 compilers to search
# Line 1178 | Line 1596 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1596   # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1597   # AC_PROG_F90
1598  
1599 +
1600   # ----------------------------- #
1601   # 3c. The Fortran 95 compiler.  #
1602   # ----------------------------- #
1603  
1604 +
1605   # AC_LANG_PREPROC(Fortran 95)
1606   # ---------------------------
1607   # Find the Fortran 95 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able.
1608  
1609 +
1610 +
1611   # AC_LANG_COMPILER(Fortran 95)
1612   # ----------------------------
1613   # Find the Fortran 95 compiler.  Must be AC_DEFUN'd to be
1614   # AC_REQUIRE'able.
1615  
1616 +
1617 +
1618   # AC_PROG_F95([COMPILERS...])
1619   # ---------------------------
1620   # COMPILERS is a space separated list of Fortran 95 compilers to search
# Line 1204 | Line 1628 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1628   # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1629   # AC_PROG_F95
1630  
1631 +
1632   ## ------------------------------- ##
1633   ## 4. Compilers' characteristics.  ##
1634   ## ------------------------------- ##
1635  
1636 +
1637   # ---------------------------------------- #
1638   # 4b. Fortan 90 compiler characteristics.  #
1639   # ---------------------------------------- #
1640  
1641 +
1642   # _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v])
1643   # -------------------------------------------------
1644   # Link a trivial Fortran program, compiling with a verbose output FLAG
# Line 1222 | Line 1649 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1649   # space-separated items.
1650   # _AC_PROG_F90_V_OUTPUT
1651  
1652 +
1653   # _AC_PROG_F90_V
1654   # --------------
1655   #
# Line 1231 | Line 1659 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1659   # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1660   # _AC_PROG_F90_V
1661  
1662 +
1663   # AC_F90_LIBRARY_LDFLAGS
1664   # ----------------------
1665   #
# Line 1258 | Line 1687 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1687   # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1688   # AC_F90_LIBRARY_LDFLAGS
1689  
1690 +
1691   # _AC_F90_NAME_MANGLING
1692   # ---------------------
1693   # Test for the name mangling scheme used by the Fortran 90 compiler.
# Line 1277 | Line 1707 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1707  
1708   # The replacement is empty.
1709  
1710 +
1711 +
1712   # AC_F90_WRAPPERS
1713   # ---------------
1714   # Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to
# Line 1285 | Line 1717 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1717   # scheme used by the Fortran 90 compiler.
1718   # AC_F90_WRAPPERS
1719  
1720 +
1721   # AC_F90_FUNC(NAME, [SHELLVAR = NAME])
1722   # ------------------------------------
1723   # For a Fortran subroutine of given NAME, define a shell variable
# Line 1292 | Line 1725 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1725   # argument is not supplied, it defaults to NAME.
1726   # AC_F90_FUNC
1727  
1728 +
1729   # ---------------------------------------- #
1730   # 4c. Fortan 95 compiler characteristics.  #
1731   # ---------------------------------------- #
1732  
1733 +
1734   # _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v])
1735   # -------------------------------------------------
1736   # Link a trivial Fortran program, compiling with a verbose output FLAG
# Line 1306 | Line 1741 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1741   # space-separated items.
1742   # _AC_PROG_F95_V_OUTPUT
1743  
1744 +
1745   # _AC_PROG_F95_V
1746   # --------------
1747   #
# Line 1315 | Line 1751 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1751   # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1752   # _AC_PROG_F95_V
1753  
1754 +
1755   # AC_F95_LIBRARY_LDFLAGS
1756   # ----------------------
1757   #
# Line 1342 | Line 1779 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1779   # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1780   # AC_F95_LIBRARY_LDFLAGS
1781  
1782 +
1783   # _AC_F95_NAME_MANGLING
1784   # ---------------------
1785   # Test for the name mangling scheme used by the Fortran 95 compiler.
# Line 1361 | Line 1799 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1799  
1800   # The replacement is empty.
1801  
1802 +
1803 +
1804   # AC_F95_WRAPPERS
1805   # ---------------
1806   # Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to
# Line 1369 | Line 1809 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1809   # scheme used by the Fortran 95 compiler.
1810   # AC_F95_WRAPPERS
1811  
1812 +
1813   # AC_F95_FUNC(NAME, [SHELLVAR = NAME])
1814   # ------------------------------------
1815   # For a Fortran subroutine of given NAME, define a shell variable
# Line 1376 | Line 1817 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1817   # argument is not supplied, it defaults to NAME.
1818   # AC_F95_FUNC
1819  
1820 +
1821 +
1822 +
1823 +
1824 +
1825 +
1826 +
1827 +
1828 +
1829 +
1830 +
1831 +
1832 +
1833 +
1834 +
1835 +
1836 +
1837 +
1838 +
1839 +
1840 +
1841 +
1842 +
1843 +
1844 +
1845 +
1846 +
1847 +
1848 +
1849 +
1850 +
1851 +
1852 +
1853 +
1854 +
1855 +
1856 +
1857 +
1858 +
1859 +
1860 +
1861 +
1862 +
1863 +
1864 +
1865 +
1866 +
1867 +
1868 +
1869 +
1870   # set program name
1871   PROGNAME="oopse"
1872  
1873 +
1874   # there are two ways to do debugging.  One with the --enable-debug flag
1875   # and one using the DEBUG environment variable
1876  
# Line 1390 | Line 1882 | cat >>confdefs.h <<\EOF
1882   fi;
1883   if test "${DEBUG}"; then
1884  
1885 < cat >>confdefs.h <<\EOF
1885 > cat >>confdefs.h <<\_ACEOF
1886   #define debug 1
1887 < EOF
1887 > _ACEOF
1888  
1889    msg="$msg, debug mode"
1890   fi
1891  
1892 +
1893   # who am i
1894   # Make sure we can run config.sub.
1895   $ac_config_sub sun4 >/dev/null 2>&1 ||
1896 <  { { echo "$as_me:1403: error: cannot run $ac_config_sub" >&5
1896 >  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1897   echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1898     { (exit 1); exit 1; }; }
1899  
1900 < echo "$as_me:1407: checking build system type" >&5
1900 > echo "$as_me:$LINENO: checking build system type" >&5
1901   echo $ECHO_N "checking build system type... $ECHO_C" >&6
1902   if test "${ac_cv_build+set}" = set; then
1903    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1413 | Line 1906 | test -z "$ac_cv_build_alias" &&
1906   test -z "$ac_cv_build_alias" &&
1907    ac_cv_build_alias=`$ac_config_guess`
1908   test -z "$ac_cv_build_alias" &&
1909 <  { { echo "$as_me:1416: error: cannot guess build type; you must specify one" >&5
1909 >  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1910   echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1911     { (exit 1); exit 1; }; }
1912   ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1913 <  { { echo "$as_me:1420: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1914 < echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1913 >  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1914 > echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1915     { (exit 1); exit 1; }; }
1916  
1917   fi
1918 < echo "$as_me:1425: result: $ac_cv_build" >&5
1918 > echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1919   echo "${ECHO_T}$ac_cv_build" >&6
1920   build=$ac_cv_build
1921   build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1922   build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1923   build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1924  
1925 < echo "$as_me:1432: checking host system type" >&5
1925 >
1926 > echo "$as_me:$LINENO: checking host system type" >&5
1927   echo $ECHO_N "checking host system type... $ECHO_C" >&6
1928   if test "${ac_cv_host+set}" = set; then
1929    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1438 | Line 1932 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1932   test -z "$ac_cv_host_alias" &&
1933    ac_cv_host_alias=$ac_cv_build_alias
1934   ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1935 <  { { echo "$as_me:1441: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1935 >  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1936   echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1937     { (exit 1); exit 1; }; }
1938  
1939   fi
1940 < echo "$as_me:1446: result: $ac_cv_host" >&5
1940 > echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1941   echo "${ECHO_T}$ac_cv_host" >&6
1942   host=$ac_cv_host
1943   host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1944   host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1945   host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1946  
1947 +
1948 +
1949   ac_ext=c
1950   ac_cpp='$CPP $CPPFLAGS'
1951   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 1460 | Line 1956 | echo "$as_me:1463: checking for $ac_word" >&5
1956    do
1957      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1958   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1959 < echo "$as_me:1463: checking for $ac_word" >&5
1959 > echo "$as_me:$LINENO: checking for $ac_word" >&5
1960   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961   if test "${ac_cv_prog_CC+set}" = set; then
1962    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1468 | Line 1964 | else
1964    if test -n "$CC"; then
1965    ac_cv_prog_CC="$CC" # Let the user override the test.
1966   else
1967 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
1968 < ac_dummy="$PATH"
1969 < for ac_dir in $ac_dummy; do
1970 <  IFS=$ac_save_IFS
1971 <  test -z "$ac_dir" && ac_dir=.
1972 <  $as_executable_p "$ac_dir/$ac_word" || continue
1973 < ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1974 < echo "$as_me:1478: found $ac_dir/$ac_word" >&5
1975 < break
1967 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 > for as_dir in $PATH
1969 > do
1970 >  IFS=$as_save_IFS
1971 >  test -z "$as_dir" && as_dir=.
1972 >  for ac_exec_ext in '' $ac_executable_extensions; do
1973 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974 >    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1975 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976 >    break 2
1977 >  fi
1978   done
1979 + done
1980  
1981   fi
1982   fi
1983   CC=$ac_cv_prog_CC
1984   if test -n "$CC"; then
1985 <  echo "$as_me:1486: result: $CC" >&5
1985 >  echo "$as_me:$LINENO: result: $CC" >&5
1986   echo "${ECHO_T}$CC" >&6
1987   else
1988 <  echo "$as_me:1489: result: no" >&5
1988 >  echo "$as_me:$LINENO: result: no" >&5
1989   echo "${ECHO_T}no" >&6
1990   fi
1991  
# Line 1499 | Line 1998 | echo "$as_me:1502: checking for $ac_word" >&5
1998   do
1999    # Extract the first word of "$ac_prog", so it can be a program name with args.
2000   set dummy $ac_prog; ac_word=$2
2001 < echo "$as_me:1502: checking for $ac_word" >&5
2001 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2002   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003   if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2004    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1507 | Line 2006 | else
2006    if test -n "$ac_ct_CC"; then
2007    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2008   else
2009 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2010 < ac_dummy="$PATH"
2011 < for ac_dir in $ac_dummy; do
2012 <  IFS=$ac_save_IFS
2013 <  test -z "$ac_dir" && ac_dir=.
2014 <  $as_executable_p "$ac_dir/$ac_word" || continue
2015 < ac_cv_prog_ac_ct_CC="$ac_prog"
2016 < echo "$as_me:1517: found $ac_dir/$ac_word" >&5
2017 < break
2009 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 > for as_dir in $PATH
2011 > do
2012 >  IFS=$as_save_IFS
2013 >  test -z "$as_dir" && as_dir=.
2014 >  for ac_exec_ext in '' $ac_executable_extensions; do
2015 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016 >    ac_cv_prog_ac_ct_CC="$ac_prog"
2017 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018 >    break 2
2019 >  fi
2020   done
2021 + done
2022  
2023   fi
2024   fi
2025   ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026   if test -n "$ac_ct_CC"; then
2027 <  echo "$as_me:1525: result: $ac_ct_CC" >&5
2027 >  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028   echo "${ECHO_T}$ac_ct_CC" >&6
2029   else
2030 <  echo "$as_me:1528: result: no" >&5
2030 >  echo "$as_me:$LINENO: result: no" >&5
2031   echo "${ECHO_T}no" >&6
2032   fi
2033  
# Line 1535 | Line 2037 | test -z "$CC" && { { echo "$as_me:1538: error: no acce
2037    CC=$ac_ct_CC
2038   fi
2039  
2040 < test -z "$CC" && { { echo "$as_me:1538: error: no acceptable cc found in \$PATH" >&5
2041 < echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2040 >
2041 > test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2042 > See \`config.log' for more details." >&5
2043 > echo "$as_me: error: no acceptable C compiler found in \$PATH
2044 > See \`config.log' for more details." >&2;}
2045     { (exit 1); exit 1; }; }
2046  
2047 + # Provide some information about the compiler.
2048 + echo "$as_me:$LINENO:" \
2049 +     "checking for C compiler version" >&5
2050 + ac_compiler=`set X $ac_compile; echo $2`
2051 + { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2052 +  (eval $ac_compiler --version </dev/null >&5) 2>&5
2053 +  ac_status=$?
2054 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 +  (exit $ac_status); }
2056 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2057 +  (eval $ac_compiler -v </dev/null >&5) 2>&5
2058 +  ac_status=$?
2059 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 +  (exit $ac_status); }
2061 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2062 +  (eval $ac_compiler -V </dev/null >&5) 2>&5
2063 +  ac_status=$?
2064 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 +  (exit $ac_status); }
2066 +
2067   cat >conftest.$ac_ext <<_ACEOF
2068 < #line 1543 "configure"
2069 < #include "confdefs.h"
2068 > /* confdefs.h.  */
2069 > _ACEOF
2070 > cat confdefs.h >>conftest.$ac_ext
2071 > cat >>conftest.$ac_ext <<_ACEOF
2072 > /* end confdefs.h.  */
2073  
2074   int
2075   main ()
# Line 1552 | Line 2080 | ac_clean_files="$ac_clean_files a.out a.exe"
2080   }
2081   _ACEOF
2082   ac_clean_files_save=$ac_clean_files
2083 < ac_clean_files="$ac_clean_files a.out a.exe"
2083 > ac_clean_files="$ac_clean_files a.out a.exe b.out"
2084   # Try to create an executable without -o first, disregard a.out.
2085 < # It will help us diagnose broken compiler, and finding out an intuition
2085 > # It will help us diagnose broken compilers, and finding out an intuition
2086   # of exeext.
2087 < echo "$as_me:1559: checking for C compiler default output" >&5
2088 < echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2087 > echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2088 > echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2089   ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2090 < if { (eval echo "$as_me:1562: \"$ac_link_default\"") >&5
2090 > if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2091    (eval $ac_link_default) 2>&5
2092    ac_status=$?
2093 <  echo "$as_me:1565: \$? = $ac_status" >&5
2093 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094    (exit $ac_status); }; then
2095 <  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
2096 <  case $ac_file in
2097 <    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2098 <    a.out ) # We found the default executable, but exeext='' is most
2099 <            # certainly right.
2100 <            break;;
2101 <    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2102 <          export ac_cv_exeext
2103 <          break;;
2104 <    * ) break;;
2105 <  esac
2095 >  # Find the output, starting from the most likely.  This scheme is
2096 > # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2097 > # resort.
2098 >
2099 > # Be careful to initialize this variable, since it used to be cached.
2100 > # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2101 > ac_cv_exeext=
2102 > # b.out is created by i960 compilers.
2103 > for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2104 > do
2105 >  test -f "$ac_file" || continue
2106 >  case $ac_file in
2107 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2108 >        ;;
2109 >    conftest.$ac_ext )
2110 >        # This is the source file.
2111 >        ;;
2112 >    [ab].out )
2113 >        # We found the default executable, but exeext='' is most
2114 >        # certainly right.
2115 >        break;;
2116 >    *.* )
2117 >        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2118 >        # FIXME: I believe we export ac_cv_exeext for Libtool,
2119 >        # but it would be cool to find out if it's true.  Does anybody
2120 >        # maintain Libtool? --akim.
2121 >        export ac_cv_exeext
2122 >        break;;
2123 >    * )
2124 >        break;;
2125 >  esac
2126   done
2127   else
2128    echo "$as_me: failed program was:" >&5
2129 < cat conftest.$ac_ext >&5
2130 < { { echo "$as_me:1582: error: C compiler cannot create executables" >&5
2131 < echo "$as_me: error: C compiler cannot create executables" >&2;}
2129 > sed 's/^/| /' conftest.$ac_ext >&5
2130 >
2131 > { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2132 > See \`config.log' for more details." >&5
2133 > echo "$as_me: error: C compiler cannot create executables
2134 > See \`config.log' for more details." >&2;}
2135     { (exit 77); exit 77; }; }
2136   fi
2137  
2138   ac_exeext=$ac_cv_exeext
2139 < echo "$as_me:1588: result: $ac_file" >&5
2139 > echo "$as_me:$LINENO: result: $ac_file" >&5
2140   echo "${ECHO_T}$ac_file" >&6
2141  
2142   # Check the compiler produces executables we can run.  If not, either
2143   # the compiler is broken, or we cross compile.
2144 < echo "$as_me:1593: checking whether the C compiler works" >&5
2144 > echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2145   echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2146   # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2147   # If not cross compiling, check that we can run a simple program.
2148   if test "$cross_compiling" != yes; then
2149    if { ac_try='./$ac_file'
2150 <  { (eval echo "$as_me:1599: \"$ac_try\"") >&5
2150 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151    (eval $ac_try) 2>&5
2152    ac_status=$?
2153 <  echo "$as_me:1602: \$? = $ac_status" >&5
2153 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154    (exit $ac_status); }; }; then
2155      cross_compiling=no
2156    else
2157      if test "$cross_compiling" = maybe; then
2158          cross_compiling=yes
2159      else
2160 <        { { echo "$as_me:1609: error: cannot run C compiled programs.
2161 < If you meant to cross compile, use \`--host'." >&5
2160 >        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2161 > If you meant to cross compile, use \`--host'.
2162 > See \`config.log' for more details." >&5
2163   echo "$as_me: error: cannot run C compiled programs.
2164 < If you meant to cross compile, use \`--host'." >&2;}
2164 > If you meant to cross compile, use \`--host'.
2165 > See \`config.log' for more details." >&2;}
2166     { (exit 1); exit 1; }; }
2167      fi
2168    fi
2169   fi
2170 < echo "$as_me:1617: result: yes" >&5
2170 > echo "$as_me:$LINENO: result: yes" >&5
2171   echo "${ECHO_T}yes" >&6
2172  
2173 < rm -f a.out a.exe conftest$ac_cv_exeext
2173 > rm -f a.out a.exe conftest$ac_cv_exeext b.out
2174   ac_clean_files=$ac_clean_files_save
2175   # Check the compiler produces executables we can run.  If not, either
2176   # the compiler is broken, or we cross compile.
2177 < echo "$as_me:1624: checking whether we are cross compiling" >&5
2177 > echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2178   echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2179 < echo "$as_me:1626: result: $cross_compiling" >&5
2179 > echo "$as_me:$LINENO: result: $cross_compiling" >&5
2180   echo "${ECHO_T}$cross_compiling" >&6
2181  
2182 < echo "$as_me:1629: checking for executable suffix" >&5
2183 < echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2184 < if { (eval echo "$as_me:1631: \"$ac_link\"") >&5
2182 > echo "$as_me:$LINENO: checking for suffix of executables" >&5
2183 > echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2184 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2185    (eval $ac_link) 2>&5
2186    ac_status=$?
2187 <  echo "$as_me:1634: \$? = $ac_status" >&5
2187 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188    (exit $ac_status); }; then
2189    # If both `conftest.exe' and `conftest' are `present' (well, observable)
2190   # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2191   # work properly (i.e., refer to `conftest.exe'), while it won't with
2192   # `rm'.
2193 < for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2193 > for ac_file in conftest.exe conftest conftest.*; do
2194 >  test -f "$ac_file" || continue
2195    case $ac_file in
2196 <    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2196 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2197      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 <          export ac_cv_exeext
2199 <          break;;
2198 >          export ac_cv_exeext
2199 >          break;;
2200      * ) break;;
2201    esac
2202   done
2203   else
2204 <  { { echo "$as_me:1650: error: cannot compute EXEEXT: cannot compile and link" >&5
2205 < echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2204 >  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2205 > See \`config.log' for more details." >&5
2206 > echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2207 > See \`config.log' for more details." >&2;}
2208     { (exit 1); exit 1; }; }
2209   fi
2210  
2211   rm -f conftest$ac_cv_exeext
2212 < echo "$as_me:1656: result: $ac_cv_exeext" >&5
2212 > echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2213   echo "${ECHO_T}$ac_cv_exeext" >&6
2214  
2215   rm -f conftest.$ac_ext
2216   EXEEXT=$ac_cv_exeext
2217   ac_exeext=$EXEEXT
2218 < echo "$as_me:1662: checking for object suffix" >&5
2219 < echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2218 > echo "$as_me:$LINENO: checking for suffix of object files" >&5
2219 > echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2220   if test "${ac_cv_objext+set}" = set; then
2221    echo $ECHO_N "(cached) $ECHO_C" >&6
2222   else
2223    cat >conftest.$ac_ext <<_ACEOF
2224 < #line 1668 "configure"
2225 < #include "confdefs.h"
2224 > /* confdefs.h.  */
2225 > _ACEOF
2226 > cat confdefs.h >>conftest.$ac_ext
2227 > cat >>conftest.$ac_ext <<_ACEOF
2228 > /* end confdefs.h.  */
2229  
2230   int
2231   main ()
# Line 1677 | Line 2236 | if { (eval echo "$as_me:1680: \"$ac_compile\"") >&5
2236   }
2237   _ACEOF
2238   rm -f conftest.o conftest.obj
2239 < if { (eval echo "$as_me:1680: \"$ac_compile\"") >&5
2239 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2240    (eval $ac_compile) 2>&5
2241    ac_status=$?
2242 <  echo "$as_me:1683: \$? = $ac_status" >&5
2242 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243    (exit $ac_status); }; then
2244    for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2245    case $ac_file in
2246 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2246 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2247      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2248         break;;
2249    esac
2250   done
2251   else
2252    echo "$as_me: failed program was:" >&5
2253 < cat conftest.$ac_ext >&5
2254 < { { echo "$as_me:1695: error: cannot compute OBJEXT: cannot compile" >&5
2255 < echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2253 > sed 's/^/| /' conftest.$ac_ext >&5
2254 >
2255 > { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2256 > See \`config.log' for more details." >&5
2257 > echo "$as_me: error: cannot compute suffix of object files: cannot compile
2258 > See \`config.log' for more details." >&2;}
2259     { (exit 1); exit 1; }; }
2260   fi
2261  
2262   rm -f conftest.$ac_cv_objext conftest.$ac_ext
2263   fi
2264 < echo "$as_me:1702: result: $ac_cv_objext" >&5
2264 > echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2265   echo "${ECHO_T}$ac_cv_objext" >&6
2266   OBJEXT=$ac_cv_objext
2267   ac_objext=$OBJEXT
2268 < echo "$as_me:1706: checking whether we are using the GNU C compiler" >&5
2268 > echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2269   echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2270   if test "${ac_cv_c_compiler_gnu+set}" = set; then
2271    echo $ECHO_N "(cached) $ECHO_C" >&6
2272   else
2273    cat >conftest.$ac_ext <<_ACEOF
2274 < #line 1712 "configure"
2275 < #include "confdefs.h"
2274 > /* confdefs.h.  */
2275 > _ACEOF
2276 > cat confdefs.h >>conftest.$ac_ext
2277 > cat >>conftest.$ac_ext <<_ACEOF
2278 > /* end confdefs.h.  */
2279  
2280   int
2281   main ()
# Line 1724 | Line 2289 | if { (eval echo "$as_me:1727: \"$ac_compile\"") >&5
2289   }
2290   _ACEOF
2291   rm -f conftest.$ac_objext
2292 < if { (eval echo "$as_me:1727: \"$ac_compile\"") >&5
2293 <  (eval $ac_compile) 2>&5
2292 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293 >  (eval $ac_compile) 2>conftest.er1
2294    ac_status=$?
2295 <  echo "$as_me:1730: \$? = $ac_status" >&5
2295 >  grep -v '^ *+' conftest.er1 >conftest.err
2296 >  rm -f conftest.er1
2297 >  cat conftest.err >&5
2298 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299    (exit $ac_status); } &&
2300 <         { ac_try='test -s conftest.$ac_objext'
2301 <  { (eval echo "$as_me:1733: \"$ac_try\"") >&5
2300 >         { ac_try='test -z "$ac_c_werror_flag"
2301 >                         || test ! -s conftest.err'
2302 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303    (eval $ac_try) 2>&5
2304    ac_status=$?
2305 <  echo "$as_me:1736: \$? = $ac_status" >&5
2305 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 >  (exit $ac_status); }; } &&
2307 >         { ac_try='test -s conftest.$ac_objext'
2308 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309 >  (eval $ac_try) 2>&5
2310 >  ac_status=$?
2311 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312    (exit $ac_status); }; }; then
2313    ac_compiler_gnu=yes
2314   else
2315    echo "$as_me: failed program was:" >&5
2316 < cat conftest.$ac_ext >&5
2316 > sed 's/^/| /' conftest.$ac_ext >&5
2317 >
2318   ac_compiler_gnu=no
2319   fi
2320 < rm -f conftest.$ac_objext conftest.$ac_ext
2320 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2321   ac_cv_c_compiler_gnu=$ac_compiler_gnu
2322  
2323   fi
2324 < echo "$as_me:1748: result: $ac_cv_c_compiler_gnu" >&5
2324 > echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2325   echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2326   GCC=`test $ac_compiler_gnu = yes && echo yes`
2327   ac_test_CFLAGS=${CFLAGS+set}
2328   ac_save_CFLAGS=$CFLAGS
2329   CFLAGS="-g"
2330 < echo "$as_me:1754: checking whether $CC accepts -g" >&5
2330 > echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2331   echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2332   if test "${ac_cv_prog_cc_g+set}" = set; then
2333    echo $ECHO_N "(cached) $ECHO_C" >&6
2334   else
2335    cat >conftest.$ac_ext <<_ACEOF
2336 < #line 1760 "configure"
2337 < #include "confdefs.h"
2336 > /* confdefs.h.  */
2337 > _ACEOF
2338 > cat confdefs.h >>conftest.$ac_ext
2339 > cat >>conftest.$ac_ext <<_ACEOF
2340 > /* end confdefs.h.  */
2341  
2342   int
2343   main ()
# Line 1769 | Line 2348 | if { (eval echo "$as_me:1772: \"$ac_compile\"") >&5
2348   }
2349   _ACEOF
2350   rm -f conftest.$ac_objext
2351 < if { (eval echo "$as_me:1772: \"$ac_compile\"") >&5
2352 <  (eval $ac_compile) 2>&5
2351 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 >  (eval $ac_compile) 2>conftest.er1
2353    ac_status=$?
2354 <  echo "$as_me:1775: \$? = $ac_status" >&5
2354 >  grep -v '^ *+' conftest.er1 >conftest.err
2355 >  rm -f conftest.er1
2356 >  cat conftest.err >&5
2357 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358    (exit $ac_status); } &&
2359 <         { ac_try='test -s conftest.$ac_objext'
2360 <  { (eval echo "$as_me:1778: \"$ac_try\"") >&5
2359 >         { ac_try='test -z "$ac_c_werror_flag"
2360 >                         || test ! -s conftest.err'
2361 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362    (eval $ac_try) 2>&5
2363    ac_status=$?
2364 <  echo "$as_me:1781: \$? = $ac_status" >&5
2364 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 >  (exit $ac_status); }; } &&
2366 >         { ac_try='test -s conftest.$ac_objext'
2367 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 >  (eval $ac_try) 2>&5
2369 >  ac_status=$?
2370 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371    (exit $ac_status); }; }; then
2372    ac_cv_prog_cc_g=yes
2373   else
2374    echo "$as_me: failed program was:" >&5
2375 < cat conftest.$ac_ext >&5
2375 > sed 's/^/| /' conftest.$ac_ext >&5
2376 >
2377   ac_cv_prog_cc_g=no
2378   fi
2379 < rm -f conftest.$ac_objext conftest.$ac_ext
2379 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2380   fi
2381 < echo "$as_me:1791: result: $ac_cv_prog_cc_g" >&5
2381 > echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2382   echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2383   if test "$ac_test_CFLAGS" = set; then
2384    CFLAGS=$ac_save_CFLAGS
# Line 1804 | Line 2394 | fi
2394    else
2395      CFLAGS=
2396    fi
2397 + fi
2398 + echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2399 + echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2400 + if test "${ac_cv_prog_cc_stdc+set}" = set; then
2401 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2402 + else
2403 +  ac_cv_prog_cc_stdc=no
2404 + ac_save_CC=$CC
2405 + cat >conftest.$ac_ext <<_ACEOF
2406 + /* confdefs.h.  */
2407 + _ACEOF
2408 + cat confdefs.h >>conftest.$ac_ext
2409 + cat >>conftest.$ac_ext <<_ACEOF
2410 + /* end confdefs.h.  */
2411 + #include <stdarg.h>
2412 + #include <stdio.h>
2413 + #include <sys/types.h>
2414 + #include <sys/stat.h>
2415 + /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2416 + struct buf { int x; };
2417 + FILE * (*rcsopen) (struct buf *, struct stat *, int);
2418 + static char *e (p, i)
2419 +     char **p;
2420 +     int i;
2421 + {
2422 +  return p[i];
2423 + }
2424 + static char *f (char * (*g) (char **, int), char **p, ...)
2425 + {
2426 +  char *s;
2427 +  va_list v;
2428 +  va_start (v,p);
2429 +  s = g (p, va_arg (v,int));
2430 +  va_end (v);
2431 +  return s;
2432 + }
2433 +
2434 + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2435 +   function prototypes and stuff, but not '\xHH' hex character constants.
2436 +   These don't provoke an error unfortunately, instead are silently treated
2437 +   as 'x'.  The following induces an error, until -std1 is added to get
2438 +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2439 +   array size at least.  It's necessary to write '\x00'==0 to get something
2440 +   that's true only with -std1.  */
2441 + int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2442 +
2443 + int test (int i, double x);
2444 + struct s1 {int (*f) (int a);};
2445 + struct s2 {int (*f) (double a);};
2446 + int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2447 + int argc;
2448 + char **argv;
2449 + int
2450 + main ()
2451 + {
2452 + return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2453 +  ;
2454 +  return 0;
2455 + }
2456 + _ACEOF
2457 + # Don't try gcc -ansi; that turns off useful extensions and
2458 + # breaks some systems' header files.
2459 + # AIX                   -qlanglvl=ansi
2460 + # Ultrix and OSF/1      -std1
2461 + # HP-UX 10.20 and later -Ae
2462 + # HP-UX older versions  -Aa -D_HPUX_SOURCE
2463 + # SVR4                  -Xc -D__EXTENSIONS__
2464 + for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2465 + do
2466 +  CC="$ac_save_CC $ac_arg"
2467 +  rm -f conftest.$ac_objext
2468 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 +  (eval $ac_compile) 2>conftest.er1
2470 +  ac_status=$?
2471 +  grep -v '^ *+' conftest.er1 >conftest.err
2472 +  rm -f conftest.er1
2473 +  cat conftest.err >&5
2474 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 +  (exit $ac_status); } &&
2476 +         { ac_try='test -z "$ac_c_werror_flag"
2477 +                         || test ! -s conftest.err'
2478 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 +  (eval $ac_try) 2>&5
2480 +  ac_status=$?
2481 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 +  (exit $ac_status); }; } &&
2483 +         { ac_try='test -s conftest.$ac_objext'
2484 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 +  (eval $ac_try) 2>&5
2486 +  ac_status=$?
2487 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 +  (exit $ac_status); }; }; then
2489 +  ac_cv_prog_cc_stdc=$ac_arg
2490 + break
2491 + else
2492 +  echo "$as_me: failed program was:" >&5
2493 + sed 's/^/| /' conftest.$ac_ext >&5
2494 +
2495   fi
2496 + rm -f conftest.err conftest.$ac_objext
2497 + done
2498 + rm -f conftest.$ac_ext conftest.$ac_objext
2499 + CC=$ac_save_CC
2500 +
2501 + fi
2502 +
2503 + case "x$ac_cv_prog_cc_stdc" in
2504 +  x|xno)
2505 +    echo "$as_me:$LINENO: result: none needed" >&5
2506 + echo "${ECHO_T}none needed" >&6 ;;
2507 +  *)
2508 +    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2509 + echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2510 +    CC="$CC $ac_cv_prog_cc_stdc" ;;
2511 + esac
2512 +
2513   # Some people use a C++ compiler to compile C.  Since we use `exit',
2514   # in C++ we need to declare it.  In case someone uses the same compiler
2515   # for both compiling C and C++ we need to have the C++ compiler decide
# Line 1815 | Line 2520 | if { (eval echo "$as_me:1818: \"$ac_compile\"") >&5
2520   #endif
2521   _ACEOF
2522   rm -f conftest.$ac_objext
2523 < if { (eval echo "$as_me:1818: \"$ac_compile\"") >&5
2524 <  (eval $ac_compile) 2>&5
2523 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524 >  (eval $ac_compile) 2>conftest.er1
2525    ac_status=$?
2526 <  echo "$as_me:1821: \$? = $ac_status" >&5
2526 >  grep -v '^ *+' conftest.er1 >conftest.err
2527 >  rm -f conftest.er1
2528 >  cat conftest.err >&5
2529 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530    (exit $ac_status); } &&
2531 <         { ac_try='test -s conftest.$ac_objext'
2532 <  { (eval echo "$as_me:1824: \"$ac_try\"") >&5
2531 >         { ac_try='test -z "$ac_c_werror_flag"
2532 >                         || test ! -s conftest.err'
2533 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534    (eval $ac_try) 2>&5
2535    ac_status=$?
2536 <  echo "$as_me:1827: \$? = $ac_status" >&5
2536 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 >  (exit $ac_status); }; } &&
2538 >         { ac_try='test -s conftest.$ac_objext'
2539 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 >  (eval $ac_try) 2>&5
2541 >  ac_status=$?
2542 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543    (exit $ac_status); }; }; then
2544    for ac_declaration in \
2545 <   ''\
1831 <   '#include <stdlib.h>' \
2545 >   '' \
2546     'extern "C" void std::exit (int) throw (); using std::exit;' \
2547     'extern "C" void std::exit (int); using std::exit;' \
2548     'extern "C" void exit (int) throw ();' \
# Line 1836 | Line 2550 | do
2550     'void exit (int);'
2551   do
2552    cat >conftest.$ac_ext <<_ACEOF
2553 < #line 1839 "configure"
2554 < #include "confdefs.h"
2555 < #include <stdlib.h>
2553 > /* confdefs.h.  */
2554 > _ACEOF
2555 > cat confdefs.h >>conftest.$ac_ext
2556 > cat >>conftest.$ac_ext <<_ACEOF
2557 > /* end confdefs.h.  */
2558   $ac_declaration
2559 + #include <stdlib.h>
2560   int
2561   main ()
2562   {
# Line 1849 | Line 2566 | if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5
2566   }
2567   _ACEOF
2568   rm -f conftest.$ac_objext
2569 < if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5
2570 <  (eval $ac_compile) 2>&5
2569 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570 >  (eval $ac_compile) 2>conftest.er1
2571    ac_status=$?
2572 <  echo "$as_me:1855: \$? = $ac_status" >&5
2572 >  grep -v '^ *+' conftest.er1 >conftest.err
2573 >  rm -f conftest.er1
2574 >  cat conftest.err >&5
2575 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576    (exit $ac_status); } &&
2577 <         { ac_try='test -s conftest.$ac_objext'
2578 <  { (eval echo "$as_me:1858: \"$ac_try\"") >&5
2577 >         { ac_try='test -z "$ac_c_werror_flag"
2578 >                         || test ! -s conftest.err'
2579 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580    (eval $ac_try) 2>&5
2581    ac_status=$?
2582 <  echo "$as_me:1861: \$? = $ac_status" >&5
2582 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 >  (exit $ac_status); }; } &&
2584 >         { ac_try='test -s conftest.$ac_objext'
2585 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 >  (eval $ac_try) 2>&5
2587 >  ac_status=$?
2588 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589    (exit $ac_status); }; }; then
2590    :
2591   else
2592    echo "$as_me: failed program was:" >&5
2593 < cat conftest.$ac_ext >&5
2593 > sed 's/^/| /' conftest.$ac_ext >&5
2594 >
2595   continue
2596   fi
2597 < rm -f conftest.$ac_objext conftest.$ac_ext
2597 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2598    cat >conftest.$ac_ext <<_ACEOF
2599 < #line 1871 "configure"
2600 < #include "confdefs.h"
2599 > /* confdefs.h.  */
2600 > _ACEOF
2601 > cat confdefs.h >>conftest.$ac_ext
2602 > cat >>conftest.$ac_ext <<_ACEOF
2603 > /* end confdefs.h.  */
2604   $ac_declaration
2605   int
2606   main ()
# Line 1880 | Line 2611 | if { (eval echo "$as_me:1883: \"$ac_compile\"") >&5
2611   }
2612   _ACEOF
2613   rm -f conftest.$ac_objext
2614 < if { (eval echo "$as_me:1883: \"$ac_compile\"") >&5
2615 <  (eval $ac_compile) 2>&5
2614 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 >  (eval $ac_compile) 2>conftest.er1
2616    ac_status=$?
2617 <  echo "$as_me:1886: \$? = $ac_status" >&5
2617 >  grep -v '^ *+' conftest.er1 >conftest.err
2618 >  rm -f conftest.er1
2619 >  cat conftest.err >&5
2620 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621    (exit $ac_status); } &&
2622 <         { ac_try='test -s conftest.$ac_objext'
2623 <  { (eval echo "$as_me:1889: \"$ac_try\"") >&5
2622 >         { ac_try='test -z "$ac_c_werror_flag"
2623 >                         || test ! -s conftest.err'
2624 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625    (eval $ac_try) 2>&5
2626    ac_status=$?
2627 <  echo "$as_me:1892: \$? = $ac_status" >&5
2627 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 >  (exit $ac_status); }; } &&
2629 >         { ac_try='test -s conftest.$ac_objext'
2630 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 >  (eval $ac_try) 2>&5
2632 >  ac_status=$?
2633 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634    (exit $ac_status); }; }; then
2635    break
2636   else
2637    echo "$as_me: failed program was:" >&5
2638 < cat conftest.$ac_ext >&5
2638 > sed 's/^/| /' conftest.$ac_ext >&5
2639 >
2640   fi
2641 < rm -f conftest.$ac_objext conftest.$ac_ext
2641 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642   done
2643 < echo '#ifdef __cplusplus' >>confdefs.h
2644 < echo $ac_declaration      >>confdefs.h
2645 < echo '#endif'             >>confdefs.h
2643 > rm -f conftest*
2644 > if test -n "$ac_declaration"; then
2645 >  echo '#ifdef __cplusplus' >>confdefs.h
2646 >  echo $ac_declaration      >>confdefs.h
2647 >  echo '#endif'             >>confdefs.h
2648 > fi
2649  
2650   else
2651    echo "$as_me: failed program was:" >&5
2652 < cat conftest.$ac_ext >&5
2652 > sed 's/^/| /' conftest.$ac_ext >&5
2653 >
2654   fi
2655 < rm -f conftest.$ac_objext conftest.$ac_ext
2655 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656   ac_ext=c
2657   ac_cpp='$CPP $CPPFLAGS'
2658   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661  
2662 +
2663   ac_ext=cc
2664   ac_cpp='$CXXCPP $CPPFLAGS'
2665   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2668   if test -n "$ac_tool_prefix"; then
2669 <  for ac_prog in $CCC icpc icc xlC CC g++ c++
2669 >  for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2670    do
2671      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2672   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2673 < echo "$as_me:1926: checking for $ac_word" >&5
2673 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2674   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2675   if test "${ac_cv_prog_CXX+set}" = set; then
2676    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1931 | Line 2678 | else
2678    if test -n "$CXX"; then
2679    ac_cv_prog_CXX="$CXX" # Let the user override the test.
2680   else
2681 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2682 < ac_dummy="$PATH"
2683 < for ac_dir in $ac_dummy; do
2684 <  IFS=$ac_save_IFS
2685 <  test -z "$ac_dir" && ac_dir=.
2686 <  $as_executable_p "$ac_dir/$ac_word" || continue
2687 < ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2688 < echo "$as_me:1941: found $ac_dir/$ac_word" >&5
2689 < break
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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 >    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2689 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 >    break 2
2691 >  fi
2692   done
2693 + done
2694  
2695   fi
2696   fi
2697   CXX=$ac_cv_prog_CXX
2698   if test -n "$CXX"; then
2699 <  echo "$as_me:1949: result: $CXX" >&5
2699 >  echo "$as_me:$LINENO: result: $CXX" >&5
2700   echo "${ECHO_T}$CXX" >&6
2701   else
2702 <  echo "$as_me:1952: result: no" >&5
2702 >  echo "$as_me:$LINENO: result: no" >&5
2703   echo "${ECHO_T}no" >&6
2704   fi
2705  
# Line 1958 | Line 2708 | if test -z "$CXX"; then
2708   fi
2709   if test -z "$CXX"; then
2710    ac_ct_CXX=$CXX
2711 <  for ac_prog in $CCC icpc icc xlC CC g++ c++
2711 >  for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2712   do
2713    # Extract the first word of "$ac_prog", so it can be a program name with args.
2714   set dummy $ac_prog; ac_word=$2
2715 < echo "$as_me:1965: checking for $ac_word" >&5
2715 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2716   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2717   if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2718    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1970 | Line 2720 | else
2720    if test -n "$ac_ct_CXX"; then
2721    ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2722   else
2723 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2724 < ac_dummy="$PATH"
2725 < for ac_dir in $ac_dummy; do
2726 <  IFS=$ac_save_IFS
2727 <  test -z "$ac_dir" && ac_dir=.
2728 <  $as_executable_p "$ac_dir/$ac_word" || continue
2729 < ac_cv_prog_ac_ct_CXX="$ac_prog"
2730 < echo "$as_me:1980: found $ac_dir/$ac_word" >&5
2731 < break
2723 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 > for as_dir in $PATH
2725 > do
2726 >  IFS=$as_save_IFS
2727 >  test -z "$as_dir" && as_dir=.
2728 >  for ac_exec_ext in '' $ac_executable_extensions; do
2729 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 >    ac_cv_prog_ac_ct_CXX="$ac_prog"
2731 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 >    break 2
2733 >  fi
2734   done
2735 + done
2736  
2737   fi
2738   fi
2739   ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2740   if test -n "$ac_ct_CXX"; then
2741 <  echo "$as_me:1988: result: $ac_ct_CXX" >&5
2741 >  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2742   echo "${ECHO_T}$ac_ct_CXX" >&6
2743   else
2744 <  echo "$as_me:1991: result: no" >&5
2744 >  echo "$as_me:$LINENO: result: no" >&5
2745   echo "${ECHO_T}no" >&6
2746   fi
2747  
# Line 1999 | Line 2752 | echo "$as_me:2002: checking whether we are using the G
2752    CXX=$ac_ct_CXX
2753   fi
2754  
2755 < echo "$as_me:2002: checking whether we are using the GNU C++ compiler" >&5
2755 >
2756 > # Provide some information about the compiler.
2757 > echo "$as_me:$LINENO:" \
2758 >     "checking for C++ compiler version" >&5
2759 > ac_compiler=`set X $ac_compile; echo $2`
2760 > { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2761 >  (eval $ac_compiler --version </dev/null >&5) 2>&5
2762 >  ac_status=$?
2763 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 >  (exit $ac_status); }
2765 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2766 >  (eval $ac_compiler -v </dev/null >&5) 2>&5
2767 >  ac_status=$?
2768 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 >  (exit $ac_status); }
2770 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2771 >  (eval $ac_compiler -V </dev/null >&5) 2>&5
2772 >  ac_status=$?
2773 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 >  (exit $ac_status); }
2775 >
2776 > echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2777   echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2778   if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2779    echo $ECHO_N "(cached) $ECHO_C" >&6
2780   else
2781    cat >conftest.$ac_ext <<_ACEOF
2782 < #line 2008 "configure"
2783 < #include "confdefs.h"
2782 > /* confdefs.h.  */
2783 > _ACEOF
2784 > cat confdefs.h >>conftest.$ac_ext
2785 > cat >>conftest.$ac_ext <<_ACEOF
2786 > /* end confdefs.h.  */
2787  
2788   int
2789   main ()
# Line 2020 | Line 2797 | if { (eval echo "$as_me:2023: \"$ac_compile\"") >&5
2797   }
2798   _ACEOF
2799   rm -f conftest.$ac_objext
2800 < if { (eval echo "$as_me:2023: \"$ac_compile\"") >&5
2801 <  (eval $ac_compile) 2>&5
2800 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 >  (eval $ac_compile) 2>conftest.er1
2802    ac_status=$?
2803 <  echo "$as_me:2026: \$? = $ac_status" >&5
2803 >  grep -v '^ *+' conftest.er1 >conftest.err
2804 >  rm -f conftest.er1
2805 >  cat conftest.err >&5
2806 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807    (exit $ac_status); } &&
2808 <         { ac_try='test -s conftest.$ac_objext'
2809 <  { (eval echo "$as_me:2029: \"$ac_try\"") >&5
2808 >         { ac_try='test -z "$ac_cxx_werror_flag"
2809 >                         || test ! -s conftest.err'
2810 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811    (eval $ac_try) 2>&5
2812    ac_status=$?
2813 <  echo "$as_me:2032: \$? = $ac_status" >&5
2813 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 >  (exit $ac_status); }; } &&
2815 >         { ac_try='test -s conftest.$ac_objext'
2816 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 >  (eval $ac_try) 2>&5
2818 >  ac_status=$?
2819 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820    (exit $ac_status); }; }; then
2821    ac_compiler_gnu=yes
2822   else
2823    echo "$as_me: failed program was:" >&5
2824 < cat conftest.$ac_ext >&5
2824 > sed 's/^/| /' conftest.$ac_ext >&5
2825 >
2826   ac_compiler_gnu=no
2827   fi
2828 < rm -f conftest.$ac_objext conftest.$ac_ext
2828 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2829   ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2830  
2831   fi
2832 < echo "$as_me:2044: result: $ac_cv_cxx_compiler_gnu" >&5
2832 > echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2833   echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2834   GXX=`test $ac_compiler_gnu = yes && echo yes`
2835   ac_test_CXXFLAGS=${CXXFLAGS+set}
2836   ac_save_CXXFLAGS=$CXXFLAGS
2837   CXXFLAGS="-g"
2838 < echo "$as_me:2050: checking whether $CXX accepts -g" >&5
2838 > echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2839   echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2840   if test "${ac_cv_prog_cxx_g+set}" = set; then
2841    echo $ECHO_N "(cached) $ECHO_C" >&6
2842   else
2843    cat >conftest.$ac_ext <<_ACEOF
2844 < #line 2056 "configure"
2845 < #include "confdefs.h"
2844 > /* confdefs.h.  */
2845 > _ACEOF
2846 > cat confdefs.h >>conftest.$ac_ext
2847 > cat >>conftest.$ac_ext <<_ACEOF
2848 > /* end confdefs.h.  */
2849  
2850   int
2851   main ()
# Line 2065 | Line 2856 | if { (eval echo "$as_me:2068: \"$ac_compile\"") >&5
2856   }
2857   _ACEOF
2858   rm -f conftest.$ac_objext
2859 < if { (eval echo "$as_me:2068: \"$ac_compile\"") >&5
2860 <  (eval $ac_compile) 2>&5
2859 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860 >  (eval $ac_compile) 2>conftest.er1
2861    ac_status=$?
2862 <  echo "$as_me:2071: \$? = $ac_status" >&5
2862 >  grep -v '^ *+' conftest.er1 >conftest.err
2863 >  rm -f conftest.er1
2864 >  cat conftest.err >&5
2865 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866    (exit $ac_status); } &&
2867 <         { ac_try='test -s conftest.$ac_objext'
2868 <  { (eval echo "$as_me:2074: \"$ac_try\"") >&5
2867 >         { ac_try='test -z "$ac_cxx_werror_flag"
2868 >                         || test ! -s conftest.err'
2869 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870    (eval $ac_try) 2>&5
2871    ac_status=$?
2872 <  echo "$as_me:2077: \$? = $ac_status" >&5
2872 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 >  (exit $ac_status); }; } &&
2874 >         { ac_try='test -s conftest.$ac_objext'
2875 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 >  (eval $ac_try) 2>&5
2877 >  ac_status=$?
2878 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879    (exit $ac_status); }; }; then
2880    ac_cv_prog_cxx_g=yes
2881   else
2882    echo "$as_me: failed program was:" >&5
2883 < cat conftest.$ac_ext >&5
2883 > sed 's/^/| /' conftest.$ac_ext >&5
2884 >
2885   ac_cv_prog_cxx_g=no
2886   fi
2887 < rm -f conftest.$ac_objext conftest.$ac_ext
2887 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888   fi
2889 < echo "$as_me:2087: result: $ac_cv_prog_cxx_g" >&5
2889 > echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2890   echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2891   if test "$ac_test_CXXFLAGS" = set; then
2892    CXXFLAGS=$ac_save_CXXFLAGS
# Line 2102 | Line 2904 | for ac_declaration in \
2904    fi
2905   fi
2906   for ac_declaration in \
2907 <   ''\
2106 <   '#include <stdlib.h>' \
2907 >   '' \
2908     'extern "C" void std::exit (int) throw (); using std::exit;' \
2909     'extern "C" void std::exit (int); using std::exit;' \
2910     'extern "C" void exit (int) throw ();' \
# Line 2111 | Line 2912 | do
2912     'void exit (int);'
2913   do
2914    cat >conftest.$ac_ext <<_ACEOF
2915 < #line 2114 "configure"
2916 < #include "confdefs.h"
2917 < #include <stdlib.h>
2915 > /* confdefs.h.  */
2916 > _ACEOF
2917 > cat confdefs.h >>conftest.$ac_ext
2918 > cat >>conftest.$ac_ext <<_ACEOF
2919 > /* end confdefs.h.  */
2920   $ac_declaration
2921 + #include <stdlib.h>
2922   int
2923   main ()
2924   {
# Line 2124 | Line 2928 | if { (eval echo "$as_me:2127: \"$ac_compile\"") >&5
2928   }
2929   _ACEOF
2930   rm -f conftest.$ac_objext
2931 < if { (eval echo "$as_me:2127: \"$ac_compile\"") >&5
2932 <  (eval $ac_compile) 2>&5
2931 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2932 >  (eval $ac_compile) 2>conftest.er1
2933    ac_status=$?
2934 <  echo "$as_me:2130: \$? = $ac_status" >&5
2934 >  grep -v '^ *+' conftest.er1 >conftest.err
2935 >  rm -f conftest.er1
2936 >  cat conftest.err >&5
2937 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938    (exit $ac_status); } &&
2939 <         { ac_try='test -s conftest.$ac_objext'
2940 <  { (eval echo "$as_me:2133: \"$ac_try\"") >&5
2939 >         { ac_try='test -z "$ac_cxx_werror_flag"
2940 >                         || test ! -s conftest.err'
2941 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942    (eval $ac_try) 2>&5
2943    ac_status=$?
2944 <  echo "$as_me:2136: \$? = $ac_status" >&5
2944 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 >  (exit $ac_status); }; } &&
2946 >         { ac_try='test -s conftest.$ac_objext'
2947 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 >  (eval $ac_try) 2>&5
2949 >  ac_status=$?
2950 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951    (exit $ac_status); }; }; then
2952    :
2953   else
2954    echo "$as_me: failed program was:" >&5
2955 < cat conftest.$ac_ext >&5
2955 > sed 's/^/| /' conftest.$ac_ext >&5
2956 >
2957   continue
2958   fi
2959 < rm -f conftest.$ac_objext conftest.$ac_ext
2959 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960    cat >conftest.$ac_ext <<_ACEOF
2961 < #line 2146 "configure"
2962 < #include "confdefs.h"
2961 > /* confdefs.h.  */
2962 > _ACEOF
2963 > cat confdefs.h >>conftest.$ac_ext
2964 > cat >>conftest.$ac_ext <<_ACEOF
2965 > /* end confdefs.h.  */
2966   $ac_declaration
2967   int
2968   main ()
# Line 2155 | Line 2973 | if { (eval echo "$as_me:2158: \"$ac_compile\"") >&5
2973   }
2974   _ACEOF
2975   rm -f conftest.$ac_objext
2976 < if { (eval echo "$as_me:2158: \"$ac_compile\"") >&5
2977 <  (eval $ac_compile) 2>&5
2976 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977 >  (eval $ac_compile) 2>conftest.er1
2978    ac_status=$?
2979 <  echo "$as_me:2161: \$? = $ac_status" >&5
2979 >  grep -v '^ *+' conftest.er1 >conftest.err
2980 >  rm -f conftest.er1
2981 >  cat conftest.err >&5
2982 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983    (exit $ac_status); } &&
2984 <         { ac_try='test -s conftest.$ac_objext'
2985 <  { (eval echo "$as_me:2164: \"$ac_try\"") >&5
2984 >         { ac_try='test -z "$ac_cxx_werror_flag"
2985 >                         || test ! -s conftest.err'
2986 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987    (eval $ac_try) 2>&5
2988    ac_status=$?
2989 <  echo "$as_me:2167: \$? = $ac_status" >&5
2989 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 >  (exit $ac_status); }; } &&
2991 >         { ac_try='test -s conftest.$ac_objext'
2992 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 >  (eval $ac_try) 2>&5
2994 >  ac_status=$?
2995 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996    (exit $ac_status); }; }; then
2997    break
2998   else
2999    echo "$as_me: failed program was:" >&5
3000 < cat conftest.$ac_ext >&5
3000 > sed 's/^/| /' conftest.$ac_ext >&5
3001 >
3002   fi
3003 < rm -f conftest.$ac_objext conftest.$ac_ext
3003 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3004   done
3005 < echo '#ifdef __cplusplus' >>confdefs.h
3006 < echo $ac_declaration      >>confdefs.h
3007 < echo '#endif'             >>confdefs.h
3005 > rm -f conftest*
3006 > if test -n "$ac_declaration"; then
3007 >  echo '#ifdef __cplusplus' >>confdefs.h
3008 >  echo $ac_declaration      >>confdefs.h
3009 >  echo '#endif'             >>confdefs.h
3010 > fi
3011  
3012   ac_ext=c
3013   ac_cpp='$CPP $CPPFLAGS'
# Line 2183 | Line 3015 | ac_ext=f90
3015   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017  
3018 +
3019 + OOPSE_TEMPLATE_FLAGS=""
3020 + if test $ac_cv_cxx_compiler_gnu = no; then
3021 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
3022 + echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
3023 +  echo 'void f(){}' > conftest.cc
3024 +  if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
3025 +    echo "$as_me:$LINENO: result: yes" >&5
3026 + echo "${ECHO_T}yes" >&6
3027 +    OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
3028 +  else
3029 +    echo "$as_me:$LINENO: result: no" >&5
3030 + echo "${ECHO_T}no" >&6
3031 +  fi
3032 +  rm -f conftest*
3033 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
3034 + echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
3035 +  echo 'void f(){}' > conftest.cc
3036 +  if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
3037 +    echo "$as_me:$LINENO: result: yes" >&5
3038 + echo "${ECHO_T}yes" >&6
3039 +    OOPSE_TEMPLATE_FLAGS="-instances=static"
3040 +  else
3041 +    echo "$as_me:$LINENO: result: no" >&5
3042 + echo "${ECHO_T}no" >&6
3043 +  fi
3044 +  rm -f conftest*
3045 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
3046 + echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
3047 +  echo 'void f(){}' > conftest.cc
3048 +  if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
3049 +    echo "$as_me:$LINENO: result: yes" >&5
3050 + echo "${ECHO_T}yes" >&6
3051 +    OOPSE_TEMPLATE_FLAGS="-pto"
3052 +  else
3053 +    echo "$as_me:$LINENO: result: no" >&5
3054 + echo "${ECHO_T}no" >&6
3055 +  fi
3056 +  rm -f conftest*
3057 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
3058 + echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
3059 +  echo 'void f(){}' > conftest.cc
3060 +  if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
3061 +    echo "$as_me:$LINENO: result: yes" >&5
3062 + echo "${ECHO_T}yes" >&6
3063 +
3064 +
3065 +    EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
3066 +  else
3067 +    echo "$as_me:$LINENO: result: no" >&5
3068 + echo "${ECHO_T}no" >&6
3069 +  fi
3070 + fi
3071 +
3072 +
3073 +
3074 +
3075   ac_ext=f90
3076   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3077   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3079   if test -n "$ac_tool_prefix"; then
3080 <  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3080 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3081    do
3082      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3083   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3084 < echo "$as_me:2195: checking for $ac_word" >&5
3084 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3085   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3086   if test "${ac_cv_prog_F90+set}" = set; then
3087    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2200 | Line 3089 | else
3089    if test -n "$F90"; then
3090    ac_cv_prog_F90="$F90" # Let the user override the test.
3091   else
3092 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
3093 < ac_dummy="$PATH"
3094 < for ac_dir in $ac_dummy; do
3095 <  IFS=$ac_save_IFS
3096 <  test -z "$ac_dir" && ac_dir=.
3097 <  $as_executable_p "$ac_dir/$ac_word" || continue
3098 < ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3099 < echo "$as_me:2210: found $ac_dir/$ac_word" >&5
3100 < break
3092 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 > for as_dir in $PATH
3094 > do
3095 >  IFS=$as_save_IFS
3096 >  test -z "$as_dir" && as_dir=.
3097 >  for ac_exec_ext in '' $ac_executable_extensions; do
3098 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 >    ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3100 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 >    break 2
3102 >  fi
3103   done
3104 + done
3105  
3106   fi
3107   fi
3108   F90=$ac_cv_prog_F90
3109   if test -n "$F90"; then
3110 <  echo "$as_me:2218: result: $F90" >&5
3110 >  echo "$as_me:$LINENO: result: $F90" >&5
3111   echo "${ECHO_T}$F90" >&6
3112   else
3113 <  echo "$as_me:2221: result: no" >&5
3113 >  echo "$as_me:$LINENO: result: no" >&5
3114   echo "${ECHO_T}no" >&6
3115   fi
3116  
# Line 2227 | Line 3119 | if test -z "$F90"; then
3119   fi
3120   if test -z "$F90"; then
3121    ac_ct_F90=$F90
3122 <  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3122 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3123   do
3124    # Extract the first word of "$ac_prog", so it can be a program name with args.
3125   set dummy $ac_prog; ac_word=$2
3126 < echo "$as_me:2234: checking for $ac_word" >&5
3126 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3127   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3128   if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3129    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2239 | Line 3131 | else
3131    if test -n "$ac_ct_F90"; then
3132    ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3133   else
3134 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
3135 < ac_dummy="$PATH"
3136 < for ac_dir in $ac_dummy; do
3137 <  IFS=$ac_save_IFS
3138 <  test -z "$ac_dir" && ac_dir=.
3139 <  $as_executable_p "$ac_dir/$ac_word" || continue
3140 < ac_cv_prog_ac_ct_F90="$ac_prog"
3141 < echo "$as_me:2249: found $ac_dir/$ac_word" >&5
3142 < break
3134 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 > for as_dir in $PATH
3136 > do
3137 >  IFS=$as_save_IFS
3138 >  test -z "$as_dir" && as_dir=.
3139 >  for ac_exec_ext in '' $ac_executable_extensions; do
3140 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 >    ac_cv_prog_ac_ct_F90="$ac_prog"
3142 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 >    break 2
3144 >  fi
3145   done
3146 + done
3147  
3148   fi
3149   fi
3150   ac_ct_F90=$ac_cv_prog_ac_ct_F90
3151   if test -n "$ac_ct_F90"; then
3152 <  echo "$as_me:2257: result: $ac_ct_F90" >&5
3152 >  echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3153   echo "${ECHO_T}$ac_ct_F90" >&6
3154   else
3155 <  echo "$as_me:2260: result: no" >&5
3155 >  echo "$as_me:$LINENO: result: no" >&5
3156   echo "${ECHO_T}no" >&6
3157   fi
3158  
# Line 2267 | Line 3162 | fi
3162    F90=$ac_ct_F90
3163   fi
3164  
3165 +
3166   # If we don't use `.F90' as extension, the preprocessor is not run on the
3167   # input file.
3168   ac_save_ext=$ac_ext
3169   ac_ext=F90
3170 < echo "$as_me:2274: checking whether we are using the GNU Fortran 90 compiler" >&5
3170 > echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3171   echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3172   if test "${ac_cv_f90_compiler_gnu+set}" = set; then
3173    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2288 | Line 3184 | if { (eval echo "$as_me:2291: \"$ac_compile\"") >&5
3184  
3185   _ACEOF
3186   rm -f conftest.$ac_objext
3187 < if { (eval echo "$as_me:2291: \"$ac_compile\"") >&5
3188 <  (eval $ac_compile) 2>&5
3187 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3188 >  (eval $ac_compile) 2>conftest.er1
3189    ac_status=$?
3190 <  echo "$as_me:2294: \$? = $ac_status" >&5
3190 >  grep -v '^ *+' conftest.er1 >conftest.err
3191 >  rm -f conftest.er1
3192 >  cat conftest.err >&5
3193 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194    (exit $ac_status); } &&
3195 <         { ac_try='test -s conftest.$ac_objext'
3196 <  { (eval echo "$as_me:2297: \"$ac_try\"") >&5
3195 >         { ac_try='test -z "$ac_f90_werror_flag"
3196 >                         || test ! -s conftest.err'
3197 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198    (eval $ac_try) 2>&5
3199    ac_status=$?
3200 <  echo "$as_me:2300: \$? = $ac_status" >&5
3200 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 >  (exit $ac_status); }; } &&
3202 >         { ac_try='test -s conftest.$ac_objext'
3203 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204 >  (eval $ac_try) 2>&5
3205 >  ac_status=$?
3206 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207    (exit $ac_status); }; }; then
3208    ac_compiler_gnu=yes
3209   else
3210    echo "$as_me: failed program was:" >&5
3211 < cat conftest.$ac_ext >&5
3211 > sed 's/^/| /' conftest.$ac_ext >&5
3212 >
3213   ac_compiler_gnu=no
3214   fi
3215 < rm -f conftest.$ac_objext conftest.$ac_ext
3215 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3216   ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3217  
3218   fi
3219 < echo "$as_me:2312: result: $ac_cv_f90_compiler_gnu" >&5
3219 > echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3220   echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3221   ac_ext=$ac_save_ext
3222   G95=`test $ac_compiler_gnu = yes && echo yes`
# Line 2319 | Line 3226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228  
3229 +
3230 +
3231 +
3232 +
3233   # Try to determine native compiler flags that allow us to use F90 suffix
3234   # for preprocessed f90 source.
3235  
# Line 2326 | Line 3237 | if test "$ac_test_PREPFLAG" != "set"; then
3237    PREPFLAG=""
3238    case "${host_cpu}-${host_os}" in
3239  
3240 <  *linux*) if test "$F90" = ifc; then
3240 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3241                      PREPFLAG="-fpp1 "
3242                  fi;;
3243    *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 2339 | Line 3250 | if test "$ac_test_PREPFLAG" != "set"; then
3250    esac
3251  
3252    if test -z "$PREPFLAG"; then
3253 <        echo ""
3254 <        echo "**********************************************************"
2344 <        echo "* WARNING: Don't know the best PREPFLAG for this system  *"
2345 <        echo "* Use  make PREPFLAG=..., or edit the top level Makefile *"
2346 <        echo "* (otherwise, an empty PREPFLAG will be used)            *"
2347 <        echo "**********************************************************"
2348 <        echo ""
3253 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3254 > echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3255          PREPFLAG=""
3256    fi
3257  
3258 <  echo "$as_me:2352: checking to make sure F90 preprocessor flag works" >&5
3258 >  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3259   echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3260  
3261 +
3262    ac_ext=f90
3263   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3264   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# Line 2367 | Line 3274 | program main
3274  
3275      cat >conftest.$ac_ext <<_ACEOF
3276  
3277 +
3278   program main
3279  
3280    integer :: i
3281    i = 1
3282  
3283 +
3284   end program main
3285  
3286   _ACEOF
3287   rm -f conftest.$ac_objext
3288 < if { (eval echo "$as_me:2379: \"$ac_compile\"") >&5
3289 <  (eval $ac_compile) 2>&5
3288 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289 >  (eval $ac_compile) 2>conftest.er1
3290    ac_status=$?
3291 <  echo "$as_me:2382: \$? = $ac_status" >&5
3291 >  grep -v '^ *+' conftest.er1 >conftest.err
3292 >  rm -f conftest.er1
3293 >  cat conftest.err >&5
3294 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295    (exit $ac_status); } &&
3296 <         { ac_try='test -s conftest.$ac_objext'
3297 <  { (eval echo "$as_me:2385: \"$ac_try\"") >&5
3296 >         { ac_try='test -z "$ac_f90_werror_flag"
3297 >                         || test ! -s conftest.err'
3298 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299    (eval $ac_try) 2>&5
3300    ac_status=$?
3301 <  echo "$as_me:2388: \$? = $ac_status" >&5
3301 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 >  (exit $ac_status); }; } &&
3303 >         { ac_try='test -s conftest.$ac_objext'
3304 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 >  (eval $ac_try) 2>&5
3306 >  ac_status=$?
3307 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308    (exit $ac_status); }; }; then
3309    prepflagworks=1
3310   else
3311    echo "$as_me: failed program was:" >&5
3312 < cat conftest.$ac_ext >&5
3312 > sed 's/^/| /' conftest.$ac_ext >&5
3313 >
3314   prepflagworks=0
3315   fi
3316 < rm -f conftest.$ac_objext conftest.$ac_ext
3316 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3317  
3318    F90FLAGS=$ac_save_F90FLAGS
3319    ac_ext=$ac_save_ext
# Line 2403 | Line 3323 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325  
3326 +
3327    if test "$prepflagworks" = 1; then
3328 <    echo "$as_me:2407: result: yes" >&5
3328 >    echo "$as_me:$LINENO: result: yes" >&5
3329   echo "${ECHO_T}yes" >&6
3330  
3331    else
3332 <    echo "$as_me:2411: result: no" >&5
3332 >    echo "$as_me:$LINENO: result: no" >&5
3333   echo "${ECHO_T}no" >&6
3334 <    { { echo "$as_me:2413: error: Can't figure out working Fortran90 preprocessor flag" >&5
3334 >    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3335   echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3336     { (exit 1); exit 1; }; }
3337    fi
3338   fi
3339  
3340 +
3341 +
3342 +
3343 +
3344   # Try to determine native compiler flags that allow us to use F90 suffix
3345   # for preprocessed f90 source with -D type defines
3346  
# Line 2423 | Line 3348 | if test "$ac_test_PREPDEFFLAG" != "set"; then
3348    PREPDEFFLAG=""
3349    case "${host_cpu}-${host_os}" in
3350  
3351 <  *linux*) if test "$F90" = ifc; then
3351 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3352                      PREPDEFFLAG=" "
3353                  fi;;
3354    *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 2436 | Line 3361 | if test "$ac_test_PREPDEFFLAG" != "set"; then
3361    esac
3362  
3363    if test -z "$PREPDEFFLAG"; then
3364 <        echo ""
3365 <        echo "*************************************************************"
2441 <        echo "* WARNING: Don't know the best PREPDEFFLAG for this system  *"
2442 <        echo "* Use  make PREPDEFFLAG=..., or edit the top level Makefile *"
2443 <        echo "* (otherwise, an empty PREPDEFFLAG will be used)            *"
2444 <        echo "*************************************************************"
2445 <        echo ""
3364 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3365 > echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3366          PREPDEFFLAG=" "
3367    fi
3368  
3369 <  echo "$as_me:2449: checking to make sure F90 preprocessor define flag works" >&5
3369 >  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3370   echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3371  
3372 +
3373    ac_ext=f90
3374   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3375   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# Line 2464 | Line 3385 | program main
3385  
3386      cat >conftest.$ac_ext <<_ACEOF
3387  
3388 +
3389   program main
3390  
3391    integer :: i
# Line 2473 | Line 3395 | end program main
3395    choke me
3396   #endif
3397  
3398 +
3399   end program main
3400  
3401   _ACEOF
3402   rm -f conftest.$ac_objext
3403 < if { (eval echo "$as_me:2480: \"$ac_compile\"") >&5
3404 <  (eval $ac_compile) 2>&5
3403 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3404 >  (eval $ac_compile) 2>conftest.er1
3405    ac_status=$?
3406 <  echo "$as_me:2483: \$? = $ac_status" >&5
3406 >  grep -v '^ *+' conftest.er1 >conftest.err
3407 >  rm -f conftest.er1
3408 >  cat conftest.err >&5
3409 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410    (exit $ac_status); } &&
3411 <         { ac_try='test -s conftest.$ac_objext'
3412 <  { (eval echo "$as_me:2486: \"$ac_try\"") >&5
3411 >         { ac_try='test -z "$ac_f90_werror_flag"
3412 >                         || test ! -s conftest.err'
3413 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414    (eval $ac_try) 2>&5
3415    ac_status=$?
3416 <  echo "$as_me:2489: \$? = $ac_status" >&5
3416 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 >  (exit $ac_status); }; } &&
3418 >         { ac_try='test -s conftest.$ac_objext'
3419 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 >  (eval $ac_try) 2>&5
3421 >  ac_status=$?
3422 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423    (exit $ac_status); }; }; then
3424    prepdefflagworks=1
3425   else
3426    echo "$as_me: failed program was:" >&5
3427 < cat conftest.$ac_ext >&5
3427 > sed 's/^/| /' conftest.$ac_ext >&5
3428 >
3429   prepdefflagworks=0
3430   fi
3431 < rm -f conftest.$ac_objext conftest.$ac_ext
3431 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3432  
3433    F90FLAGS=$ac_save_F90FLAGS
3434    ac_ext=$ac_save_ext
# Line 2504 | Line 3438 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440  
3441 +
3442 +
3443    if test "$prepdefflagworks" = 1; then
3444 <    echo "$as_me:2508: result: yes" >&5
3444 >    echo "$as_me:$LINENO: result: yes" >&5
3445   echo "${ECHO_T}yes" >&6
3446  
3447    else
3448 <    echo "$as_me:2512: result: no" >&5
3448 >    echo "$as_me:$LINENO: result: no" >&5
3449   echo "${ECHO_T}no" >&6
3450 <    { { echo "$as_me:2514: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3450 >    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3451   echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3452     { (exit 1); exit 1; }; }
3453    fi
3454   fi
3455  
3456 < case $debug in
3457 <  1)
3458 <     ;;
3459 <  *)
2524 <
2525 < # Try to determine "good" native compiler flags if none specified on command
2526 < # line
2527 < if test "$ac_test_CFLAGS" != "set"; then
2528 <  CFLAGS=""
2529 <  case "${host_cpu}-${host_os}" in
3456 > ac_ext=f90
3457 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3458 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3460  
2531  *linux*) if test "$CC" = icc; then
2532                    CFLAGS="-O"
2533                fi;;
2534  sparc-solaris2*) if test "$CC" = cc; then
2535                    CFLAGS="-native -fast -xO5 -dalign"
2536                 fi;;
3461  
2538  alpha*-osf*)  if test "$CC" = cc; then
2539                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
2540                fi;;
3462  
3463 <  hppa*-hpux*)  if test "$CC" = cc; then
3464 <                    CFLAGS="-Ae +O3 +Oall"
3465 <                fi;;
3466 <
3467 <   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
3468 <                    CFLAGS="-O3 -qtune=auto -qansialias -w"
3469 <                fi;;
2549 <   powerpc*-aix*)
2550 <        if test "$CC" = cc -o "$CC" = xlc; then
2551 <                CFLAGS="-O3 -qtune=auto -qansialias -w"
2552 <                echo "*******************************************************"
2553 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
2554 <                echo "*  recommended that you use                           *"
2555 <                echo "*                                                     *"
2556 <                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
2557 <                echo "*                                 ^^^                 *"
2558 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
2559 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
2560 <                echo "*******************************************************"
2561 <        fi;;
2562 <   *darwin*)
2563 <        if test "$CC" = xlc -o "$CC" = cc; then
2564 <                CFLAGS="-O3 -qtune=auto -w"
2565 <                echo "*******************************************************"
2566 <                echo "*  You have Darwin on an unknown powerpc system.      *"
2567 <                echo "*  It is recommended that you use                     *"
2568 <                echo "*                                                     *"
2569 <                echo "*  CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
2570 <                echo "*                               ^^^                   *"
2571 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
2572 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
2573 <                echo "*******************************************************"
2574 <        fi;;
2575 <  esac
2576 <
2577 <  # use default flags for gcc on all systems
2578 <  if test $ac_cv_c_compiler_gnu = yes; then
2579 <     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
2580 <  fi
2581 <
2582 <  # test for gcc-specific flags:
2583 <  if test $ac_cv_c_compiler_gnu = yes; then
2584 <    # -malign-double for x86 systems
2585 <
2586 < echo "$as_me:2586: checking whether ${CC-cc} accepts -malign-double" >&5
2587 < echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
2588 < if test "${ac_align_double+set}" = set; then
3463 > ac_ext=f90
3464 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3465 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3467 > echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3468 > echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3469 > if test "${ac_cv_prog_f90_v+set}" = set; then
3470    echo $ECHO_N "(cached) $ECHO_C" >&6
3471   else
2591  echo 'void f(){}' > conftest.c
2592 if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
2593        ac_align_double=yes
2594 else
2595        ac_align_double=no
2596 fi
2597 rm -f conftest*
3472  
3473 < fi
2600 < echo "$as_me:2600: result: $ac_align_double" >&5
2601 < echo "${ECHO_T}$ac_align_double" >&6
2602 < if test "$ac_align_double" = yes; then
2603 <        :
2604 <        CFLAGS="$CFLAGS -malign-double"
2605 < else
2606 <        :
3473 > cat >conftest.$ac_ext <<_ACEOF
3474  
3475 < fi
3475 > program main
3476  
2610    # -fstrict-aliasing for gcc-2.95+
3477  
3478 < echo "$as_me:2612: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
2613 < echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
2614 < if test "${ac_fstrict_aliasing+set}" = set; then
2615 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2616 < else
2617 <  echo 'void f(){}' > conftest.c
2618 < if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
2619 <        ac_fstrict_aliasing=yes
2620 < else
2621 <        ac_fstrict_aliasing=no
2622 < fi
2623 < rm -f conftest*
3478 > end program main
3479  
3480 < fi
3481 < echo "$as_me:2626: result: $ac_fstrict_aliasing" >&5
3482 < echo "${ECHO_T}$ac_fstrict_aliasing" >&6
3483 < if test "$ac_fstrict_aliasing" = yes; then
3484 <        :
3480 > _ACEOF
3481 > rm -f conftest.$ac_objext
3482 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3483 >  (eval $ac_compile) 2>conftest.er1
3484 >  ac_status=$?
3485 >  grep -v '^ *+' conftest.er1 >conftest.err
3486 >  rm -f conftest.er1
3487 >  cat conftest.err >&5
3488 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 >  (exit $ac_status); } &&
3490 >         { ac_try='test -z "$ac_f90_werror_flag"
3491 >                         || test ! -s conftest.err'
3492 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 >  (eval $ac_try) 2>&5
3494 >  ac_status=$?
3495 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 >  (exit $ac_status); }; } &&
3497 >         { ac_try='test -s conftest.$ac_objext'
3498 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 >  (eval $ac_try) 2>&5
3500 >  ac_status=$?
3501 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 >  (exit $ac_status); }; }; then
3503 >  ac_cv_prog_f90_v=
3504 > # Try some options frequently used verbose output
3505 > for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3506 >  ac_ext=f90
3507 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3508 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3510 >
3511 > cat >conftest.$ac_ext <<_ACEOF
3512 >
3513 > program main
3514 >
3515 >
3516 > end program main
3517 >
3518 > _ACEOF
3519 >
3520 > # Compile and link our simple test program by passing a flag (argument
3521 > # 1 to this macro) to the Fortran 90 compiler in order to get
3522 > # "verbose" output that we can then parse for the Fortran 90 linker
3523 > # flags.
3524 > ac_save_F90FLAGS=$F90FLAGS
3525 > F90FLAGS="$F90FLAGS $ac_verb"
3526 >
3527 > (eval echo $as_me:3527: \"$ac_link\") >&5
3528 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3529 > echo "$ac_f90_v_output" >&5
3530 > F90FLAGS=$ac_save_F90FLAGS
3531 >
3532 > rm -f conftest.*
3533 > ac_ext=f90
3534 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3535 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3537 >
3538 > # If we are using xlf then replace all the commas with spaces.
3539 > if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3540 >  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3541 > fi
3542 >
3543 > # If we are using Cray Fortran then delete quotes.
3544 > # Use "\"" instead of '"' for font-lock-mode.
3545 > # FIXME: a more general fix for quoted arguments with spaces?
3546 > if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3547 >  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3548 > fi
3549 >  # look for -l* and *.a constructs in the output
3550 >  for ac_arg in $ac_f90_v_output; do
3551 >     case $ac_arg in
3552 >        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3553 >          ac_cv_prog_f90_v=$ac_verb
3554 >          break 2 ;;
3555 >     esac
3556 >  done
3557 > done
3558 > if test -z "$ac_cv_prog_f90_v"; then
3559 >   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3560 > echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3561 > fi
3562 > else
3563 >  echo "$as_me: failed program was:" >&5
3564 > sed 's/^/| /' conftest.$ac_ext >&5
3565 >
3566 > { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3567 > echo "$as_me: WARNING: compilation failed" >&2;}
3568 > fi
3569 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3570 >
3571 > fi
3572 > echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3573 > echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3574 > echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3575 > echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3576 > if test "${ac_cv_flibs+set}" = set; then
3577 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3578 > else
3579 >  if test "x$F90LIBS" != "x"; then
3580 >  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3581 > else
3582 >
3583 > ac_ext=f90
3584 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3585 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3587 >
3588 > cat >conftest.$ac_ext <<_ACEOF
3589 >
3590 > program main
3591 >
3592 >
3593 > end program main
3594 >
3595 > _ACEOF
3596 >
3597 > # Compile and link our simple test program by passing a flag (argument
3598 > # 1 to this macro) to the Fortran 90 compiler in order to get
3599 > # "verbose" output that we can then parse for the Fortran 90 linker
3600 > # flags.
3601 > ac_save_F90FLAGS=$F90FLAGS
3602 > F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3603 >
3604 > (eval echo $as_me:3604: \"$ac_link\") >&5
3605 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3606 > echo "$ac_f90_v_output" >&5
3607 > F90FLAGS=$ac_save_F90FLAGS
3608 >
3609 > rm -f conftest.*
3610 > ac_ext=f90
3611 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3612 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3614 >
3615 > # If we are using xlf then replace all the commas with spaces.
3616 > if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3617 >  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3618 > fi
3619 >
3620 > # If we are using Cray Fortran then delete quotes.
3621 > # Use "\"" instead of '"' for font-lock-mode.
3622 > # FIXME: a more general fix for quoted arguments with spaces?
3623 > if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3624 >  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3625 > fi
3626 >
3627 > ac_cv_f90libs=
3628 >
3629 > # Save positional arguments (if any)
3630 > ac_save_positional="$@"
3631 >
3632 > set X $ac_f90_v_output
3633 > while test $# != 1; do
3634 >  shift
3635 >  ac_arg=$1
3636 >  case $ac_arg in
3637 >        [\\/]*.a | ?:[\\/]*.a)
3638 >            ac_exists=false
3639 >  for ac_i in $ac_cv_f90libs; do
3640 >    if test x"$ac_arg" = x"$ac_i"; then
3641 >      ac_exists=true
3642 >      break
3643 >    fi
3644 >  done
3645 >
3646 >  if test x"$ac_exists" = xtrue; then
3647 >  :
3648 > else
3649 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3650 > fi
3651 >
3652 >          ;;
3653 >        -bI:*)
3654 >            ac_exists=false
3655 >  for ac_i in $ac_cv_f90libs; do
3656 >    if test x"$ac_arg" = x"$ac_i"; then
3657 >      ac_exists=true
3658 >      break
3659 >    fi
3660 >  done
3661 >
3662 >  if test x"$ac_exists" = xtrue; then
3663 >  :
3664 > else
3665 >  if test "$ac_compiler_gnu" = yes; then
3666 >  for ac_link_opt in $ac_arg; do
3667 >    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3668 >  done
3669 > else
3670 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3671 > fi
3672 > fi
3673 >
3674 >          ;;
3675 >          # Ignore these flags.
3676 >        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
3677 >          ;;
3678 >        -lkernel32)
3679 >          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3680 >          ;;
3681 >        -[LRuY])
3682 >          # These flags, when seen by themselves, take an argument.
3683 >          # We remove the space between option and argument and re-iterate
3684 >          # unless we find an empty arg or a new option (starting with -)
3685 >          case $2 in
3686 >             "" | -*);;
3687 >             *)
3688 >                ac_arg="$ac_arg$2"
3689 >
3690 >                shift; shift
3691 >                set X $ac_arg "$@"
3692 >                ;;
3693 >          esac
3694 >          ;;
3695 >        -YP,*)
3696 >          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3697 >              ac_exists=false
3698 >  for ac_i in $ac_cv_f90libs; do
3699 >    if test x"$ac_j" = x"$ac_i"; then
3700 >      ac_exists=true
3701 >      break
3702 >    fi
3703 >  done
3704 >
3705 >  if test x"$ac_exists" = xtrue; then
3706 >  :
3707 > else
3708 >  ac_arg="$ac_arg $ac_j"
3709 >                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3710 > fi
3711 >
3712 >          done
3713 >          ;;
3714 >        -[lLR]*)
3715 >            ac_exists=false
3716 >  for ac_i in $ac_cv_f90libs; do
3717 >    if test x"$ac_arg" = x"$ac_i"; then
3718 >      ac_exists=true
3719 >      break
3720 >    fi
3721 >  done
3722 >
3723 >  if test x"$ac_exists" = xtrue; then
3724 >  :
3725 > else
3726 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3727 > fi
3728 >
3729 >          ;;
3730 >          # Ignore everything else.
3731 >  esac
3732 > done
3733 > # restore positional arguments
3734 > set X $ac_save_positional; shift
3735 >
3736 > # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
3737 > # then we insist that the "run path" must be an absolute path (i.e. it
3738 > # must begin with a "/").
3739 > case `(uname -sr) 2>/dev/null` in
3740 >   "SunOS 5"*)
3741 >      ac_ld_run_path=`echo $ac_f90_v_output |
3742 >                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3743 >      test "x$ac_ld_run_path" != x &&
3744 >
3745 >        if test "$ac_compiler_gnu" = yes; then
3746 >  for ac_link_opt in $ac_ld_run_path; do
3747 >    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3748 >  done
3749 > else
3750 >  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
3751 > fi
3752 >      ;;
3753 > esac
3754 > fi # test "x$F90LIBS" = "x"
3755 >
3756 > fi
3757 > echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
3758 > echo "${ECHO_T}$ac_cv_flibs" >&6
3759 > F90LIBS="$ac_cv_f90libs"
3760 >
3761 > ac_ext=f90
3762 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3763 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3765 >
3766 >
3767 > echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
3768 > echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
3769 > if test "${ac_cv_f90_mangling+set}" = set; then
3770 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3771 > else
3772 >  ac_ext=f90
3773 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3774 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3776 > cat >conftest.$ac_ext <<_ACEOF
3777 > subroutine foobar()
3778 > return
3779 > end
3780 > subroutine foo_bar()
3781 > return
3782 > end
3783 > _ACEOF
3784 > rm -f conftest.$ac_objext
3785 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 >  (eval $ac_compile) 2>conftest.er1
3787 >  ac_status=$?
3788 >  grep -v '^ *+' conftest.er1 >conftest.err
3789 >  rm -f conftest.er1
3790 >  cat conftest.err >&5
3791 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 >  (exit $ac_status); } &&
3793 >         { ac_try='test -z "$ac_f90_werror_flag"
3794 >                         || test ! -s conftest.err'
3795 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 >  (eval $ac_try) 2>&5
3797 >  ac_status=$?
3798 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 >  (exit $ac_status); }; } &&
3800 >         { ac_try='test -s conftest.$ac_objext'
3801 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 >  (eval $ac_try) 2>&5
3803 >  ac_status=$?
3804 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 >  (exit $ac_status); }; }; then
3806 >  mv conftest.$ac_objext cf90_test.$ac_objext
3807 >
3808 >  ac_ext=c
3809 > ac_cpp='$CPP $CPPFLAGS'
3810 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813 >
3814 >  ac_save_LIBS=$LIBS
3815 >  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
3816 >
3817 >  ac_success=no
3818 >  for ac_foobar in foobar FOOBAR; do
3819 >    for ac_underscore in "" "_"; do
3820 >      ac_func="$ac_foobar$ac_underscore"
3821 >      cat >conftest.$ac_ext <<_ACEOF
3822 > /* confdefs.h.  */
3823 > _ACEOF
3824 > cat confdefs.h >>conftest.$ac_ext
3825 > cat >>conftest.$ac_ext <<_ACEOF
3826 > /* end confdefs.h.  */
3827 >
3828 > /* Override any gcc2 internal prototype to avoid an error.  */
3829 > #ifdef __cplusplus
3830 > extern "C"
3831 > #endif
3832 > /* We use char because int might match the return type of a gcc2
3833 >   builtin and then its argument prototype would still apply.  */
3834 > char $ac_func ();
3835 > int
3836 > main ()
3837 > {
3838 > $ac_func ();
3839 >  ;
3840 >  return 0;
3841 > }
3842 > _ACEOF
3843 > rm -f conftest.$ac_objext conftest$ac_exeext
3844 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3845 >  (eval $ac_link) 2>conftest.er1
3846 >  ac_status=$?
3847 >  grep -v '^ *+' conftest.er1 >conftest.err
3848 >  rm -f conftest.er1
3849 >  cat conftest.err >&5
3850 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 >  (exit $ac_status); } &&
3852 >         { ac_try='test -z "$ac_c_werror_flag"
3853 >                         || test ! -s conftest.err'
3854 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 >  (eval $ac_try) 2>&5
3856 >  ac_status=$?
3857 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 >  (exit $ac_status); }; } &&
3859 >         { ac_try='test -s conftest$ac_exeext'
3860 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 >  (eval $ac_try) 2>&5
3862 >  ac_status=$?
3863 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 >  (exit $ac_status); }; }; then
3865 >  ac_success=yes; break 2
3866 > else
3867 >  echo "$as_me: failed program was:" >&5
3868 > sed 's/^/| /' conftest.$ac_ext >&5
3869 >
3870 > fi
3871 > rm -f conftest.err conftest.$ac_objext \
3872 >      conftest$ac_exeext conftest.$ac_ext
3873 >    done
3874 >  done
3875 >
3876 >  if test "$ac_success" = "yes"; then
3877 >     case $ac_foobar in
3878 >        foobar)
3879 >           ac_case=lower
3880 >           ac_foo_bar=foo_bar
3881 >           ;;
3882 >        FOOBAR)
3883 >           ac_case=upper
3884 >           ac_foo_bar=FOO_BAR
3885 >           ;;
3886 >     esac
3887 >
3888 >     ac_success_extra=no
3889 >     for ac_extra in "" "_"; do
3890 >        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3891 >
3892 >        cat >conftest.$ac_ext <<_ACEOF
3893 > /* confdefs.h.  */
3894 > _ACEOF
3895 > cat confdefs.h >>conftest.$ac_ext
3896 > cat >>conftest.$ac_ext <<_ACEOF
3897 > /* end confdefs.h.  */
3898 >
3899 > /* Override any gcc2 internal prototype to avoid an error.  */
3900 > #ifdef __cplusplus
3901 > extern "C"
3902 > #endif
3903 > /* We use char because int might match the return type of a gcc2
3904 >   builtin and then its argument prototype would still apply.  */
3905 > char $ac_func ();
3906 > int
3907 > main ()
3908 > {
3909 > $ac_func ();
3910 >  ;
3911 >  return 0;
3912 > }
3913 > _ACEOF
3914 > rm -f conftest.$ac_objext conftest$ac_exeext
3915 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3916 >  (eval $ac_link) 2>conftest.er1
3917 >  ac_status=$?
3918 >  grep -v '^ *+' conftest.er1 >conftest.err
3919 >  rm -f conftest.er1
3920 >  cat conftest.err >&5
3921 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 >  (exit $ac_status); } &&
3923 >         { ac_try='test -z "$ac_c_werror_flag"
3924 >                         || test ! -s conftest.err'
3925 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 >  (eval $ac_try) 2>&5
3927 >  ac_status=$?
3928 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 >  (exit $ac_status); }; } &&
3930 >         { ac_try='test -s conftest$ac_exeext'
3931 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 >  (eval $ac_try) 2>&5
3933 >  ac_status=$?
3934 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 >  (exit $ac_status); }; }; then
3936 >  ac_success_extra=yes; break
3937 > else
3938 >  echo "$as_me: failed program was:" >&5
3939 > sed 's/^/| /' conftest.$ac_ext >&5
3940 >
3941 > fi
3942 > rm -f conftest.err conftest.$ac_objext \
3943 >      conftest$ac_exeext conftest.$ac_ext
3944 >     done
3945 >
3946 >     if test "$ac_success_extra" = "yes"; then
3947 >        ac_cv_f90_mangling="$ac_case case"
3948 >        if test -z "$ac_underscore"; then
3949 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
3950 >        else
3951 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3952 >
3953 >        fi
3954 >        if test -z "$ac_extra"; then
3955 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
3956 >        else
3957 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
3958 >        fi
3959 >      else
3960 >        ac_cv_f90_mangling="unknown"
3961 >      fi
3962 >  else
3963 >     ac_cv_f90_mangling="unknown"
3964 >
3965 >  fi
3966 >
3967 >  LIBS=$ac_save_LIBS
3968 >  ac_ext=f90
3969 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3970 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3972 >  rm -f cf90_test* conftest*
3973 > else
3974 >  echo "$as_me: failed program was:" >&5
3975 > sed 's/^/| /' conftest.$ac_ext >&5
3976 >
3977 > fi
3978 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3979 > ac_ext=f90
3980 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3981 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3983 >
3984 > fi
3985 > echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
3986 > echo "${ECHO_T}$ac_cv_f90_mangling" >&6
3987 >
3988 >
3989 >
3990 > case $ac_cv_f90_mangling in
3991 >  "lower case, no underscore, no extra underscore")
3992 >          cat >>confdefs.h <<\_ACEOF
3993 > #define F90_FUNC(name,NAME) name
3994 > _ACEOF
3995 >
3996 >          cat >>confdefs.h <<\_ACEOF
3997 > #define F90_FUNC_(name,NAME) name
3998 > _ACEOF
3999 > ;;
4000 >  "lower case, no underscore, extra underscore")
4001 >          cat >>confdefs.h <<\_ACEOF
4002 > #define F90_FUNC(name,NAME) name
4003 > _ACEOF
4004 >
4005 >          cat >>confdefs.h <<\_ACEOF
4006 > #define F90_FUNC_(name,NAME) name ## _
4007 > _ACEOF
4008 > ;;
4009 >  "lower case, underscore, no extra underscore")
4010 >          cat >>confdefs.h <<\_ACEOF
4011 > #define F90_FUNC(name,NAME) name ## _
4012 > _ACEOF
4013 >
4014 >          cat >>confdefs.h <<\_ACEOF
4015 > #define F90_FUNC_(name,NAME) name ## _
4016 > _ACEOF
4017 > ;;
4018 >  "lower case, underscore, extra underscore")
4019 >          cat >>confdefs.h <<\_ACEOF
4020 > #define F90_FUNC(name,NAME) name ## _
4021 > _ACEOF
4022 >
4023 >          cat >>confdefs.h <<\_ACEOF
4024 > #define F90_FUNC_(name,NAME) name ## __
4025 > _ACEOF
4026 > ;;
4027 >  "upper case, no underscore, no extra underscore")
4028 >          cat >>confdefs.h <<\_ACEOF
4029 > #define F90_FUNC(name,NAME) NAME
4030 > _ACEOF
4031 >
4032 >          cat >>confdefs.h <<\_ACEOF
4033 > #define F90_FUNC_(name,NAME) NAME
4034 > _ACEOF
4035 > ;;
4036 >  "upper case, no underscore, extra underscore")
4037 >          cat >>confdefs.h <<\_ACEOF
4038 > #define F90_FUNC(name,NAME) NAME
4039 > _ACEOF
4040 >
4041 >          cat >>confdefs.h <<\_ACEOF
4042 > #define F90_FUNC_(name,NAME) NAME ## _
4043 > _ACEOF
4044 > ;;
4045 >  "upper case, underscore, no extra underscore")
4046 >          cat >>confdefs.h <<\_ACEOF
4047 > #define F90_FUNC(name,NAME) NAME ## _
4048 > _ACEOF
4049 >
4050 >          cat >>confdefs.h <<\_ACEOF
4051 > #define F90_FUNC_(name,NAME) NAME ## _
4052 > _ACEOF
4053 > ;;
4054 >  "upper case, underscore, extra underscore")
4055 >          cat >>confdefs.h <<\_ACEOF
4056 > #define F90_FUNC(name,NAME) NAME ## _
4057 > _ACEOF
4058 >
4059 >          cat >>confdefs.h <<\_ACEOF
4060 > #define F90_FUNC_(name,NAME) NAME ## __
4061 > _ACEOF
4062 > ;;
4063 >  *)
4064 >          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4065 > echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4066 >          ;;
4067 > esac
4068 >
4069 >
4070 >
4071 >
4072 >
4073 > echo "$as_me:$LINENO: checking for module suffix" >&5
4074 > echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
4075 > rm -f conftest*
4076 > # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4077 > rm -f work*
4078 > cat >conftest.f90 <<EOF
4079 >        module conftest
4080 >        integer n
4081 >        parameter (n=1)
4082 >        end module conftest
4083 > EOF
4084 > # SGI and absoft compilers generates module name in upper case!
4085 > testname="conftest"
4086 > modcase="lower"
4087 > if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4088 >    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
4089 >    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
4090 >    if test -z "$MOD" ; then
4091 >        MOD=`ls CONFTEST* 2>/dev/null \
4092 >                | grep -v CONFTEST.f | grep -v CONFTEST.o`
4093 >        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
4094 >        if test -n "$MOD" ; then
4095 >            testname="CONFTEST"
4096 >            modcase="upper"
4097 >        fi
4098 >    fi
4099 >    if test -z "$MOD" ; then
4100 >        echo "$as_me:$LINENO: result: unknown" >&5
4101 > echo "${ECHO_T}unknown" >&6
4102 >        # Use mod if we can't figure it out
4103 >        MOD="mod"
4104 >    else
4105 >        echo "$as_me:$LINENO: result: $MOD" >&5
4106 > echo "${ECHO_T}$MOD" >&6
4107 >    fi
4108 >    if test -s work.pcl ; then
4109 >        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
4110 > echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4111 >    fi
4112 > else
4113 >    echo "$as_me:$LINENO: result: unknown" >&5
4114 > echo "${ECHO_T}unknown" >&6
4115 > fi
4116 >
4117 >
4118 >
4119 >
4120 >
4121 > # Check for module include path (some use -I, some (Solaris) use -M, some
4122 > # (absoft) use -p).
4123 > # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
4124 > # specified, work.pcl and work.pc are created.  However, if you specify
4125 > # a file, it must contain a the name of a file ending in .pc .  Ugh!
4126 > # Use the module made above
4127 > echo "$as_me:$LINENO: checking for module directory path flag" >&5
4128 > echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
4129 > rm -f conftest*
4130 > # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4131 > rm -f work*
4132 > cat >conftest.f90 <<EOF
4133 >        module conftest
4134 >        integer n
4135 >        parameter (n=1)
4136 >        end module conftest
4137 > EOF
4138 > # SGI and absoft compilers generates module name in upper case!
4139 > testname="conftest"
4140 > if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4141 >   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
4142 >   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
4143 >   if test -n "$mod" ; then
4144 >      testname="CONFTEST"
4145 >   fi
4146 >   madedir=0
4147 >   if test ! -d conf ; then mkdir conf ; madedir=1; fi
4148 >   cp $testname.$MOD conf
4149 >   rm -f conftest* CONFTEST*
4150 >   cat >conftest1.f90 <<EOF
4151 >        program main
4152 >        use conftest
4153 >        print *, n
4154 >        end
4155 > EOF
4156 >   F90_WORK_FILES_ARG=""
4157 >   F90MODINCSPEC=""
4158 >   if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
4159 >       MODDIRFLAG="-I"
4160 >       F90MODINCSPEC="-I<dir>"
4161 >       echo "$as_me:$LINENO: result: -I" >&5
4162 > echo "${ECHO_T}-I" >&6
4163 >   elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
4164 >       MODDIRFLAG="-M"
4165 >       F90MODINCSPEC="-M<dir>"
4166 >       echo "$as_me:$LINENO: result: -M" >&5
4167 > echo "${ECHO_T}-M" >&6
4168 >   elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
4169 >       MODDIRFLAG="-p"
4170 >       F90MODINCSPEC="-p<dir>"
4171 >       echo "$as_me:$LINENO: result: -p" >&5
4172 > echo "${ECHO_T}-p" >&6
4173 >   elif test -s work.pc ; then
4174 >        cp work.pc conf/mpimod.pc
4175 >        echo "mpimod.pc" > conf/mpimod.pcl
4176 >        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
4177 >        if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
4178 >            MODDIRFLAG='-cl,mpimod.pcl'
4179 >            echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
4180 > echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
4181 >            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
4182 >            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
4183 >
4184 >        else
4185 >            # The version of the Intel compiler that I have refuses to let
4186 >            # you put the "work catalog" list anywhere but the current
4187 >            # directory. For example, you cannot in
4188 >         :
4189 >        fi
4190 >   fi
4191 >   if test -z "MODDIRFLAG" ; then
4192 >       echo "$as_me:$LINENO: result: unknown" >&5
4193 > echo "${ECHO_T}unknown" >&6
4194 >   fi
4195 >
4196 >
4197 >   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4198 >   if test $madedir = 1 ; then rmdir conf ; fi
4199 > fi
4200 >
4201 >
4202 >
4203 >
4204 > case $debug in
4205 >  1)
4206 >     ;;
4207 >  *)
4208 >
4209 >
4210 >
4211 >
4212 >
4213 >
4214 > echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
4215 > echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
4216 > if test "${ac_cv_prog_really_gcc+set}" = set; then
4217 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4218 > else
4219 >
4220 > cat > conftest.c <<EOF
4221 > #ifdef __GNUC__
4222 >  #ifndef __INTEL_COMPILER
4223 >     yes;
4224 >  #endif
4225 > #endif
4226 > EOF
4227 > if { ac_try='${CC-cc} -E conftest.c'
4228 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 >  (eval $ac_try) 2>&5
4230 >  ac_status=$?
4231 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4233 >  ac_cv_prog_really_gcc=yes
4234 > else
4235 >  ac_cv_prog_really_gcc=no
4236 > fi
4237 >
4238 > fi
4239 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
4240 > echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
4241 > if test "$ac_cv_prog_really_gcc" = yes; then
4242 >        :
4243 >
4244 > else
4245 >        :
4246 >
4247 > fi
4248 >
4249 >
4250 > # Try to determine "good" native compiler flags if none specified on command
4251 > # line
4252 > if test "$ac_test_CFLAGS" != "set"; then
4253 >  CFLAGS=""
4254 >  case "${host_cpu}-${host_os}" in
4255 >
4256 >  *linux*) if test "$CC" = icc; then
4257 >                    CFLAGS="-O"
4258 >                fi;;
4259 >  sparc-solaris2*) if test "$CC" = cc; then
4260 >                    CFLAGS="-native -fast -xO5 -dalign"
4261 >                 fi;;
4262 >
4263 >  alpha*-osf*)  if test "$CC" = cc; then
4264 >                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
4265 >                fi;;
4266 >
4267 >  hppa*-hpux*)  if test "$CC" = cc; then
4268 >                    CFLAGS="-Ae +O3 +Oall"
4269 >                fi;;
4270 >
4271 >   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
4272 >                    CFLAGS="-O3 -qtune=auto -qansialias -w"
4273 >                fi;;
4274 >   powerpc*-aix*)
4275 >        if test "$CC" = cc -o "$CC" = xlc; then
4276 >                CFLAGS="-O3 -qtune=auto -qansialias -w"
4277 >                echo "*******************************************************"
4278 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4279 >                echo "*  recommended that you use                           *"
4280 >                echo "*                                                     *"
4281 >                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4282 >                echo "*                                 ^^^                 *"
4283 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4284 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4285 >                echo "*******************************************************"
4286 >        fi;;
4287 >   *darwin*)
4288 >        if test "$CC" = xlc -o "$CC" = cc; then
4289 >                CFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4290 >        fi;;
4291 >  esac
4292 >
4293 >  # use default flags for gcc on all systems
4294 >  if test $ac_cv_prog_really_gcc = yes; then
4295 >     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4296 >  fi
4297 >
4298 >  # test for gcc-specific flags:
4299 >  if test $ac_cv_prog_really_gcc = yes; then
4300 >    # -malign-double for x86 systems
4301 >
4302 >
4303 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
4304 > echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
4305 > if test "${ac_align_double+set}" = set; then
4306 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4307 > else
4308 >  echo 'void f(){}' > conftest.c
4309 > if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
4310 >        ac_align_double=yes
4311 > else
4312 >        ac_align_double=no
4313 > fi
4314 > rm -f conftest*
4315 >
4316 > fi
4317 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4318 > echo "${ECHO_T}$ac_align_double" >&6
4319 > if test "$ac_align_double" = yes; then
4320 >        :
4321 >        CFLAGS="$CFLAGS -malign-double"
4322 > else
4323 >        :
4324 >
4325 > fi
4326 >
4327 >    # -fstrict-aliasing for gcc-2.95+
4328 >
4329 >
4330 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
4331 > echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
4332 > if test "${ac_fstrict_aliasing+set}" = set; then
4333 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4334 > else
4335 >  echo 'void f(){}' > conftest.c
4336 > if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
4337 >        ac_fstrict_aliasing=yes
4338 > else
4339 >        ac_fstrict_aliasing=no
4340 > fi
4341 > rm -f conftest*
4342 >
4343 > fi
4344 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4345 > echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4346 > if test "$ac_fstrict_aliasing" = yes; then
4347 >        :
4348          CFLAGS="$CFLAGS -fstrict-aliasing"
4349   else
4350          :
# Line 2636 | Line 4354 | fi
4354    fi
4355  
4356    CPU_FLAGS=""
4357 <  if test "$GCC" = "yes"; then
4357 >  if test $ac_cv_prog_really_gcc = yes; then
4358                    case "${host_cpu}" in
4359            i586*)
4360  
4361 < echo "$as_me:2643: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4361 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4362   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4363   if test "${ac_cpu_pentium+set}" = set; then
4364    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2654 | Line 4372 | echo "$as_me:2657: result: $ac_cpu_pentium" >&5
4372   rm -f conftest*
4373  
4374   fi
4375 < echo "$as_me:2657: result: $ac_cpu_pentium" >&5
4375 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4376   echo "${ECHO_T}$ac_cpu_pentium" >&6
4377   if test "$ac_cpu_pentium" = yes; then
4378          :
# Line 2662 | Line 4380 | echo "$as_me:2665: checking whether ${CC-cc} accepts -
4380   else
4381          :
4382  
4383 < echo "$as_me:2665: checking whether ${CC-cc} accepts -mpentium" >&5
4383 >
4384 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
4385   echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
4386   if test "${ac_pentium+set}" = set; then
4387    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2676 | Line 4395 | echo "$as_me:2679: result: $ac_pentium" >&5
4395   rm -f conftest*
4396  
4397   fi
4398 < echo "$as_me:2679: result: $ac_pentium" >&5
4398 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4399   echo "${ECHO_T}$ac_pentium" >&6
4400   if test "$ac_pentium" = yes; then
4401          :
# Line 2691 | Line 4410 | echo "$as_me:2694: checking whether ${CC-cc} accepts -
4410                    ;;
4411            i686*)
4412  
4413 < echo "$as_me:2694: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
4413 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
4414   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4415   if test "${ac_cpu_pentiumpro+set}" = set; then
4416    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2705 | Line 4424 | echo "$as_me:2708: result: $ac_cpu_pentiumpro" >&5
4424   rm -f conftest*
4425  
4426   fi
4427 < echo "$as_me:2708: result: $ac_cpu_pentiumpro" >&5
4427 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4428   echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4429   if test "$ac_cpu_pentiumpro" = yes; then
4430          :
# Line 2713 | Line 4432 | echo "$as_me:2716: checking whether ${CC-cc} accepts -
4432   else
4433          :
4434  
4435 < echo "$as_me:2716: checking whether ${CC-cc} accepts -mpentiumpro" >&5
4435 >
4436 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
4437   echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
4438   if test "${ac_pentiumpro+set}" = set; then
4439    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2727 | Line 4447 | echo "$as_me:2730: result: $ac_pentiumpro" >&5
4447   rm -f conftest*
4448  
4449   fi
4450 < echo "$as_me:2730: result: $ac_pentiumpro" >&5
4450 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4451   echo "${ECHO_T}$ac_pentiumpro" >&6
4452   if test "$ac_pentiumpro" = yes; then
4453          :
# Line 2745 | Line 4465 | echo "$as_me:2748: checking whether ${CC-cc} accepts -
4465                  is60x=`echo $cputype | egrep "^600-9e?$"`
4466                  if test -n "$is60x"; then
4467  
4468 < echo "$as_me:2748: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
4468 >
4469 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
4470   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
4471   if test "${ac_m_cpu_60x+set}" = set; then
4472    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2759 | Line 4480 | echo "$as_me:2762: result: $ac_m_cpu_60x" >&5
4480   rm -f conftest*
4481  
4482   fi
4483 < echo "$as_me:2762: result: $ac_m_cpu_60x" >&5
4483 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4484   echo "${ECHO_T}$ac_m_cpu_60x" >&6
4485   if test "$ac_m_cpu_60x" = yes; then
4486          :
# Line 2771 | Line 4492 | echo "$as_me:2774: checking whether we are using gcc 2
4492  
4493                  elif test "$cputype" = 750; then
4494  
4495 < echo "$as_me:2774: checking whether we are using gcc 2.95 or later" >&5
4495 >
4496 > echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
4497   echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4498   if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4499    echo $ECHO_N "(cached) $ECHO_C" >&6
4500   else
4501  
4502   cat > conftest.c <<EOF
4503 < #ifdef __GNUC__
4503 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4504   #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4505       yes;
4506   #  endif
4507   #endif
4508   EOF
4509   if { ac_try='${CC-cc} -E conftest.c'
4510 <  { (eval echo "$as_me:2788: \"$ac_try\"") >&5
4510 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511    (eval $ac_try) 2>&5
4512    ac_status=$?
4513 <  echo "$as_me:2791: \$? = $ac_status" >&5
4513 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514    (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4515    ac_cv_prog_gcc_2_95=yes
4516   else
# Line 2796 | Line 4518 | echo "$as_me:2799: result: $ac_cv_prog_gcc_2_95" >&5
4518   fi
4519  
4520   fi
4521 < echo "$as_me:2799: result: $ac_cv_prog_gcc_2_95" >&5
4521 > echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
4522   echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4523   if test "$ac_cv_prog_gcc_2_95" = yes; then
4524          :
4525  
4526 < echo "$as_me:2804: checking whether ${CC-cc} accepts -mcpu=750" >&5
4526 >
4527 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
4528   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
4529   if test "${ac_m_cpu_750+set}" = set; then
4530    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2815 | Line 4538 | echo "$as_me:2818: result: $ac_m_cpu_750" >&5
4538   rm -f conftest*
4539  
4540   fi
4541 < echo "$as_me:2818: result: $ac_m_cpu_750" >&5
4541 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4542   echo "${ECHO_T}$ac_m_cpu_750" >&6
4543   if test "$ac_m_cpu_750" = yes; then
4544          :
# Line 2833 | Line 4556 | echo "$as_me:2836: checking whether ${CC-cc} accepts -
4556                  fi
4557                  if test -z "$CPU_FLAGS"; then
4558  
4559 < echo "$as_me:2836: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
4559 >
4560 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
4561   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
4562   if test "${ac_m_cpu_powerpc+set}" = set; then
4563    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2847 | Line 4571 | echo "$as_me:2850: result: $ac_m_cpu_powerpc" >&5
4571   rm -f conftest*
4572  
4573   fi
4574 < echo "$as_me:2850: result: $ac_m_cpu_powerpc" >&5
4574 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
4575   echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4576   if test "$ac_m_cpu_powerpc" = yes; then
4577          :
# Line 2860 | Line 4584 | echo "$as_me:2863: checking whether ${CC-cc} accepts -
4584                  fi
4585                  if test -z "$CPU_FLAGS"; then
4586  
4587 < echo "$as_me:2863: checking whether ${CC-cc} accepts -mpowerpc" >&5
4587 >
4588 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
4589   echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
4590   if test "${ac_m_powerpc+set}" = set; then
4591    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2874 | Line 4599 | echo "$as_me:2877: result: $ac_m_powerpc" >&5
4599   rm -f conftest*
4600  
4601   fi
4602 < echo "$as_me:2877: result: $ac_m_powerpc" >&5
4602 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
4603   echo "${ECHO_T}$ac_m_powerpc" >&6
4604   if test "$ac_m_powerpc" = yes; then
4605          :
# Line 2903 | Line 4628 | echo "$as_me:2906: checking whether ${CC-cc} accepts $
4628          CFLAGS="-O3"
4629    fi
4630  
4631 < echo "$as_me:2906: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
4631 >
4632 >
4633 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
4634   echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
4635   if test "${ac_guessed_cflags+set}" = set; then
4636    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2917 | Line 4644 | echo "$as_me:2920: result: $ac_guessed_cflags" >&5
4644   rm -f conftest*
4645  
4646   fi
4647 < echo "$as_me:2920: result: $ac_guessed_cflags" >&5
4647 > echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
4648   echo "${ECHO_T}$ac_guessed_cflags" >&6
4649   if test "$ac_guessed_cflags" = yes; then
4650          :
# Line 2936 | Line 4663 | fi
4663  
4664   fi
4665  
4666 +
4667   fi
4668  
4669 +
4670 +
4671 +
4672 +
4673 +
4674 +
4675 + echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
4676 + echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
4677 + if test "${ac_cv_prog_really_gxx+set}" = set; then
4678 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4679 + else
4680 +
4681 + cat > conftest.cpp <<EOF
4682 + #ifdef __GNUC__
4683 +  #ifndef __INTEL_COMPILER
4684 +     yes;
4685 +  #endif
4686 + #endif
4687 + EOF
4688 + if { ac_try='${CXX-c++} -E conftest.cpp'
4689 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 +  (eval $ac_try) 2>&5
4691 +  ac_status=$?
4692 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 +  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4694 +  ac_cv_prog_really_gxx=yes
4695 + else
4696 +  ac_cv_prog_really_gxx=no
4697 + fi
4698 +
4699 + fi
4700 + echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
4701 + echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
4702 + if test "$ac_cv_prog_really_gxx" = yes; then
4703 +        :
4704 +
4705 + else
4706 +        :
4707 +
4708 + fi
4709 +
4710 +
4711   # Try to determine "good" native compiler flags if none specified on command
4712   # line
4713   if test "$ac_test_CXXFLAGS" != "set"; then
# Line 2967 | Line 4737 | if test "$ac_test_CXXFLAGS" != "set"; then
4737                  echo "*******************************************************"
4738          fi;;
4739     *darwin*)
4740 <        if test "$CXX" = xlC; then
4741 <                CXXFLAGS="-O3 -qtune=auto -qansialias -w"
2972 <                echo "*******************************************************"
2973 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
2974 <                echo "*  recommended that you use                           *"
2975 <                echo "*                                                     *"
2976 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
2977 <                echo "*                                 ^^^                 *"
2978 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
2979 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
2980 <                echo "*******************************************************"
4740 >        if test "$CXX" = xlc++; then
4741 >                CXXFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4742          fi;;
4743    esac
4744  
4745    # use default flags for gcc on all systems
4746 <  if test $ac_cv_c_compiler_gnu = yes; then
4746 >  if test $ac_cv_prog_really_gxx = yes; then
4747       CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4748    fi
4749  
4750    # test for gcc-specific flags:
4751 <  if test $ac_cv_c_compiler_gnu = yes; then
4751 >  if test $ac_cv_prog_really_gxx = yes; then
4752      # -malign-double for x86 systems
4753  
4754 < echo "$as_me:2993: checking whether ${CXX-c++} accepts -malign-double" >&5
4754 >
4755 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
4756   echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
4757   if test "${ac_align_double+set}" = set; then
4758    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3004 | Line 4766 | echo "$as_me:3007: result: $ac_align_double" >&5
4766   rm -f conftest*
4767  
4768   fi
4769 < echo "$as_me:3007: result: $ac_align_double" >&5
4769 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4770   echo "${ECHO_T}$ac_align_double" >&6
4771   if test "$ac_align_double" = yes; then
4772          :
# Line 3016 | Line 4778 | echo "$as_me:3019: checking whether ${CXX-c++} accepts
4778  
4779      # -fstrict-aliasing for gcc-2.95+
4780  
4781 < echo "$as_me:3019: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
4781 >
4782 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
4783   echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
4784   if test "${ac_fstrict_aliasing+set}" = set; then
4785    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3030 | Line 4793 | echo "$as_me:3033: result: $ac_fstrict_aliasing" >&5
4793   rm -f conftest*
4794  
4795   fi
4796 < echo "$as_me:3033: result: $ac_fstrict_aliasing" >&5
4796 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4797   echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4798   if test "$ac_fstrict_aliasing" = yes; then
4799          :
# Line 3043 | Line 4806 | fi
4806    fi
4807  
4808    CPU_FLAGS=""
4809 <  if test "$GCC" = "yes"; then
4809 >  if test $ac_cv_prog_really_gxx = yes; then
4810                    case "${host_cpu}" in
4811            i586*)
4812  
4813 < echo "$as_me:3050: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4814 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4813 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
4814 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
4815   if test "${ac_cpu_pentium+set}" = set; then
4816    echo $ECHO_N "(cached) $ECHO_C" >&6
4817   else
4818 <  echo 'void f(){}' > conftest.c
4819 < if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
4818 >  echo 'void f(){}' > conftest.cpp
4819 > if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
4820          ac_cpu_pentium=yes
4821   else
4822          ac_cpu_pentium=no
# Line 3061 | Line 4824 | echo "$as_me:3064: result: $ac_cpu_pentium" >&5
4824   rm -f conftest*
4825  
4826   fi
4827 < echo "$as_me:3064: result: $ac_cpu_pentium" >&5
4827 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4828   echo "${ECHO_T}$ac_cpu_pentium" >&6
4829   if test "$ac_cpu_pentium" = yes; then
4830          :
# Line 3069 | Line 4832 | echo "$as_me:3072: checking whether ${CXX-c++} accepts
4832   else
4833          :
4834  
4835 < echo "$as_me:3072: checking whether ${CXX-c++} accepts -mpentium" >&5
4835 >
4836 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
4837   echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
4838   if test "${ac_pentium+set}" = set; then
4839    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3083 | Line 4847 | echo "$as_me:3086: result: $ac_pentium" >&5
4847   rm -f conftest*
4848  
4849   fi
4850 < echo "$as_me:3086: result: $ac_pentium" >&5
4850 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4851   echo "${ECHO_T}$ac_pentium" >&6
4852   if test "$ac_pentium" = yes; then
4853          :
# Line 3098 | Line 4862 | echo "$as_me:3101: checking whether ${CXX-c++} accepts
4862                    ;;
4863            i686*)
4864  
4865 < echo "$as_me:3101: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4865 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4866   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4867   if test "${ac_cpu_pentiumpro+set}" = set; then
4868    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3112 | Line 4876 | echo "$as_me:3115: result: $ac_cpu_pentiumpro" >&5
4876   rm -f conftest*
4877  
4878   fi
4879 < echo "$as_me:3115: result: $ac_cpu_pentiumpro" >&5
4879 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4880   echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4881   if test "$ac_cpu_pentiumpro" = yes; then
4882          :
# Line 3120 | Line 4884 | echo "$as_me:3123: checking whether ${CXX-c++} accepts
4884   else
4885          :
4886  
4887 < echo "$as_me:3123: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4887 >
4888 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4889   echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
4890   if test "${ac_pentiumpro+set}" = set; then
4891    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3134 | Line 4899 | echo "$as_me:3137: result: $ac_pentiumpro" >&5
4899   rm -f conftest*
4900  
4901   fi
4902 < echo "$as_me:3137: result: $ac_pentiumpro" >&5
4902 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4903   echo "${ECHO_T}$ac_pentiumpro" >&6
4904   if test "$ac_pentiumpro" = yes; then
4905          :
# Line 3152 | Line 4917 | echo "$as_me:3155: checking whether ${CXX-c++} accepts
4917                  is60x=`echo $cputype | egrep "^600-9e?$"`
4918                  if test -n "$is60x"; then
4919  
4920 < echo "$as_me:3155: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4920 >
4921 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4922   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
4923   if test "${ac_m_cpu_60x+set}" = set; then
4924    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3166 | Line 4932 | echo "$as_me:3169: result: $ac_m_cpu_60x" >&5
4932   rm -f conftest*
4933  
4934   fi
4935 < echo "$as_me:3169: result: $ac_m_cpu_60x" >&5
4935 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4936   echo "${ECHO_T}$ac_m_cpu_60x" >&6
4937   if test "$ac_m_cpu_60x" = yes; then
4938          :
# Line 3178 | Line 4944 | echo "$as_me:3181: checking whether we are using gcc 2
4944  
4945                  elif test "$cputype" = 750; then
4946  
4947 < echo "$as_me:3181: checking whether we are using gcc 2.95 or later" >&5
4948 < echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4949 < if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4947 >
4948 > echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
4949 > echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
4950 > if test "${ac_cv_prog_gxx_2_95+set}" = set; then
4951    echo $ECHO_N "(cached) $ECHO_C" >&6
4952   else
4953  
4954 < cat > conftest.c <<EOF
4955 < #ifdef __GNUC__
4954 > cat > conftest.cpp <<EOF
4955 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4956   #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4957       yes;
4958   #  endif
4959   #endif
4960   EOF
4961 < if { ac_try='${CC-cc} -E conftest.c'
4962 <  { (eval echo "$as_me:3195: \"$ac_try\"") >&5
4961 > if { ac_try='${CXX-c++} -E conftest.cpp'
4962 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963    (eval $ac_try) 2>&5
4964    ac_status=$?
4965 <  echo "$as_me:3198: \$? = $ac_status" >&5
4965 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966    (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4967 <  ac_cv_prog_gcc_2_95=yes
4967 >  ac_cv_prog_gxx_2_95=yes
4968   else
4969 <  ac_cv_prog_gcc_2_95=no
4969 >  ac_cv_prog_gxx_2_95=no
4970   fi
4971  
4972   fi
4973 < echo "$as_me:3206: result: $ac_cv_prog_gcc_2_95" >&5
4974 < echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4975 < if test "$ac_cv_prog_gcc_2_95" = yes; then
4973 > echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
4974 > echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
4975 > if test "$ac_cv_prog_gxx_2_95" = yes; then
4976          :
4977  
4978 < echo "$as_me:3211: checking whether ${CXX-c++} accepts -mcpu=750" >&5
4978 >
4979 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
4980   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
4981   if test "${ac_m_cpu_750+set}" = set; then
4982    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3222 | Line 4990 | echo "$as_me:3225: result: $ac_m_cpu_750" >&5
4990   rm -f conftest*
4991  
4992   fi
4993 < echo "$as_me:3225: result: $ac_m_cpu_750" >&5
4993 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4994   echo "${ECHO_T}$ac_m_cpu_750" >&6
4995   if test "$ac_m_cpu_750" = yes; then
4996          :
# Line 3240 | Line 5008 | echo "$as_me:3243: checking whether ${CXX-c++} accepts
5008                  fi
5009                  if test -z "$CPU_FLAGS"; then
5010  
5011 < echo "$as_me:3243: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
5011 >
5012 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
5013   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
5014   if test "${ac_m_cpu_powerpc+set}" = set; then
5015    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3254 | Line 5023 | echo "$as_me:3257: result: $ac_m_cpu_powerpc" >&5
5023   rm -f conftest*
5024  
5025   fi
5026 < echo "$as_me:3257: result: $ac_m_cpu_powerpc" >&5
5026 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
5027   echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
5028   if test "$ac_m_cpu_powerpc" = yes; then
5029          :
# Line 3267 | Line 5036 | echo "$as_me:3270: checking whether ${CXX-c++} accepts
5036                  fi
5037                  if test -z "$CPU_FLAGS"; then
5038  
5039 < echo "$as_me:3270: checking whether ${CXX-c++} accepts -mpowerpc" >&5
5039 >
5040 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
5041   echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
5042   if test "${ac_m_powerpc+set}" = set; then
5043    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3281 | Line 5051 | echo "$as_me:3284: result: $ac_m_powerpc" >&5
5051   rm -f conftest*
5052  
5053   fi
5054 < echo "$as_me:3284: result: $ac_m_powerpc" >&5
5054 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
5055   echo "${ECHO_T}$ac_m_powerpc" >&6
5056   if test "$ac_m_powerpc" = yes; then
5057          :
# Line 3310 | Line 5080 | echo "$as_me:3313: checking whether ${CXX-c++} accepts
5080          CXXFLAGS="-O3"
5081    fi
5082  
5083 < echo "$as_me:3313: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
5083 >
5084 >
5085 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
5086   echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
5087   if test "${ac_guessed_cxxflags+set}" = set; then
5088    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3324 | Line 5096 | echo "$as_me:3327: result: $ac_guessed_cxxflags" >&5
5096   rm -f conftest*
5097  
5098   fi
5099 < echo "$as_me:3327: result: $ac_guessed_cxxflags" >&5
5099 > echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
5100   echo "${ECHO_T}$ac_guessed_cxxflags" >&6
5101   if test "$ac_guessed_cxxflags" = yes; then
5102          :
# Line 3343 | Line 5115 | fi
5115  
5116   fi
5117  
5118 +
5119   fi
5120  
5121 +
5122 +
5123 +
5124 +
5125   # Try to determine "good" native compiler flags if none specified on command
5126   # line
5127  
# Line 3352 | Line 5129 | if test x"$F90FLAGS" = x ; then
5129    F90FLAGS=""
5130    case "${host_cpu}-${host_os}" in
5131  
5132 <  *linux*) if test "$F90" = ifc; then
5132 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
5133                      F90FLAGS="-O"
5134                  fi;;
5135     rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 3372 | Line 5149 | if test x"$F90FLAGS" = x ; then
5149                  echo "*******************************************************"
5150          fi;;
5151     *darwin*)
5152 <        if test "$F90" = f90 -o "$F90" = xlf90; then
5153 <                F90FLAGS="-O3 -qtune=auto -w"
3377 <                echo "*********************************************************"
3378 <                echo "*  You have Darwin on an unknown powerpc system.  It is *"
3379 <                echo "*  recommended that you use                             *"
3380 <                echo "*                                                       *"
3381 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
3382 <                echo "*                                 ^^^                   *"
3383 <                echo "*  where xxx is 601, 603, 604, or whatever kind of      *"
3384 <                echo "*  PowerPC CPU you have.   For more info, man xlf.      *"
3385 <                echo "*********************************************************"
5152 >        if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then
5153 >                F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto"
5154          fi;;
5155    esac
5156  
# Line 3401 | Line 5169 | echo "$as_me:3404: checking whether ${F90-f90} accepts
5169          F90FLAGS="-O3"
5170    fi
5171  
5172 < echo "$as_me:3404: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
5172 >
5173 > echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
5174   echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
5175   if test "${ac_guessed_f90flags+set}" = set; then
5176    echo $ECHO_N "(cached) $ECHO_C" >&6
5177   else
5178 +
5179 +
5180  
5181   ac_ext=f90
5182   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
# Line 3415 | Line 5186 | if { (eval echo "$as_me:3418: \"$ac_compile\"") >&5
5186   echo 'program main' > conftest.$ac_ext
5187   echo 'end program main' >> conftest.$ac_ext
5188   ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
5189 < if { (eval echo "$as_me:3418: \"$ac_compile\"") >&5
5189 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5190    (eval $ac_compile) 2>&5
5191    ac_status=$?
5192 <  echo "$as_me:3421: \$? = $ac_status" >&5
5192 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193    (exit $ac_status); }; then
5194          ac_guessed_f90flags=yes
5195   else
5196          ac_guessed_f90flags=no
5197   fi
5198   rm -f conftest*
5199 < ac_ext=c
5200 < ac_cpp='$CPP $CPPFLAGS'
5201 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
5199 > ac_ext=f90
5200 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5201 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5203  
5204 +
5205   fi
5206 < echo "$as_me:3435: result: $ac_guessed_f90flags" >&5
5206 > echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
5207   echo "${ECHO_T}$ac_guessed_f90flags" >&6
5208   if test "$ac_guessed_f90flags" = yes; then
5209          :
# Line 3451 | Line 5222 | fi
5222  
5223   fi
5224  
5225 +
5226   fi
5227  
5228       ;;
# Line 3467 | Line 5239 | esac
5239   # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5240   # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5241   # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5242 + # OS/2's system install, which has a completely different semantic
5243   # ./install, which can be erroneously created by make from ./install.sh.
5244 < echo "$as_me:3471: checking for a BSD compatible install" >&5
5245 < echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5244 > echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5245 > echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5246   if test -z "$INSTALL"; then
5247   if test "${ac_cv_path_install+set}" = set; then
5248    echo $ECHO_N "(cached) $ECHO_C" >&6
5249   else
5250 <    ac_save_IFS=$IFS; IFS=$ac_path_separator
5251 <  for ac_dir in $PATH; do
5252 <    IFS=$ac_save_IFS
5253 <    # Account for people who put trailing slashes in PATH elements.
5254 <    case $ac_dir/ in
5255 <    / | ./ | .// | /cC/* \
5256 <    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
5257 <    | /usr/ucb/* ) ;;
5258 <    *)
5259 <      # OSF1 and SCO ODT 3.0 have their own names for install.
5260 <      # Don't use installbsd from OSF since it installs stuff as root
5261 <      # by default.
5262 <      for ac_prog in ginstall scoinst install; do
5263 <        if $as_executable_p "$ac_dir/$ac_prog"; then
5250 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 > for as_dir in $PATH
5252 > do
5253 >  IFS=$as_save_IFS
5254 >  test -z "$as_dir" && as_dir=.
5255 >  # Account for people who put trailing slashes in PATH elements.
5256 > case $as_dir/ in
5257 >  ./ | .// | /cC/* | \
5258 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5259 >  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5260 >  /usr/ucb/* ) ;;
5261 >  *)
5262 >    # OSF1 and SCO ODT 3.0 have their own names for install.
5263 >    # Don't use installbsd from OSF since it installs stuff as root
5264 >    # by default.
5265 >    for ac_prog in ginstall scoinst install; do
5266 >      for ac_exec_ext in '' $ac_executable_extensions; do
5267 >        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5268            if test $ac_prog = install &&
5269 <            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
5269 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5270              # AIX install.  It has an incompatible calling convention.
5271              :
5272            elif test $ac_prog = install &&
5273 <            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
5273 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5274              # program-specific install script used by HP pwplus--don't use.
5275              :
5276            else
5277 <            ac_cv_path_install="$ac_dir/$ac_prog -c"
5278 <            break 2
5277 >            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5278 >            break 3
5279            fi
5280          fi
5281        done
5282 <      ;;
5283 <    esac
5284 <  done
5282 >    done
5283 >    ;;
5284 > esac
5285 > done
5286  
5287 +
5288   fi
5289    if test "${ac_cv_path_install+set}" = set; then
5290      INSTALL=$ac_cv_path_install
# Line 3517 | Line 5296 | echo "$as_me:3520: result: $INSTALL" >&5
5296      INSTALL=$ac_install_sh
5297    fi
5298   fi
5299 < echo "$as_me:3520: result: $INSTALL" >&5
5299 > echo "$as_me:$LINENO: result: $INSTALL" >&5
5300   echo "${ECHO_T}$INSTALL" >&6
5301  
5302   # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# Line 3528 | Line 5307 | echo "$as_me:3531: checking whether ln -s works" >&5
5307  
5308   test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5309  
5310 < echo "$as_me:3531: checking whether ln -s works" >&5
5310 > echo "$as_me:$LINENO: checking whether ln -s works" >&5
5311   echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5312   LN_S=$as_ln_s
5313   if test "$LN_S" = "ln -s"; then
5314 <  echo "$as_me:3535: result: yes" >&5
5314 >  echo "$as_me:$LINENO: result: yes" >&5
5315   echo "${ECHO_T}yes" >&6
5316   else
5317 <  echo "$as_me:3538: result: no, using $LN_S" >&5
5317 >  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5318   echo "${ECHO_T}no, using $LN_S" >&6
5319   fi
5320  
5321 < echo "$as_me:3542: checking whether ${MAKE-make} sets \${MAKE}" >&5
5322 < echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5323 < set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5321 > echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5322 > echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5323 > set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5324   if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5325    echo $ECHO_N "(cached) $ECHO_C" >&6
5326   else
5327 <  cat >conftest.make <<\EOF
5327 >  cat >conftest.make <<\_ACEOF
5328   all:
5329 <        @echo 'ac_maketemp="${MAKE}"'
5330 < EOF
5329 >        @echo 'ac_maketemp="$(MAKE)"'
5330 > _ACEOF
5331   # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5332   eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5333   if test -n "$ac_maketemp"; then
# Line 3559 | Line 5338 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_se
5338   rm -f conftest.make
5339   fi
5340   if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5341 <  echo "$as_me:3562: result: yes" >&5
5341 >  echo "$as_me:$LINENO: result: yes" >&5
5342   echo "${ECHO_T}yes" >&6
5343    SET_MAKE=
5344   else
5345 <  echo "$as_me:3566: result: no" >&5
5345 >  echo "$as_me:$LINENO: result: no" >&5
5346   echo "${ECHO_T}no" >&6
5347    SET_MAKE="MAKE=${MAKE-make}"
5348   fi
# Line 3571 | Line 5350 | echo "$as_me:3574: checking for $ac_word" >&5
5350   if test -n "$ac_tool_prefix"; then
5351    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5352   set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5353 < echo "$as_me:3574: checking for $ac_word" >&5
5353 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5354   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355   if test "${ac_cv_prog_RANLIB+set}" = set; then
5356    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3579 | Line 5358 | else
5358    if test -n "$RANLIB"; then
5359    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5360   else
5361 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5362 < ac_dummy="$PATH"
5363 < for ac_dir in $ac_dummy; do
5364 <  IFS=$ac_save_IFS
5365 <  test -z "$ac_dir" && ac_dir=.
5366 <  $as_executable_p "$ac_dir/$ac_word" || continue
5367 < ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5368 < echo "$as_me:3589: found $ac_dir/$ac_word" >&5
5369 < break
5361 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 > for as_dir in $PATH
5363 > do
5364 >  IFS=$as_save_IFS
5365 >  test -z "$as_dir" && as_dir=.
5366 >  for ac_exec_ext in '' $ac_executable_extensions; do
5367 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5369 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 >    break 2
5371 >  fi
5372   done
5373 + done
5374  
5375   fi
5376   fi
5377   RANLIB=$ac_cv_prog_RANLIB
5378   if test -n "$RANLIB"; then
5379 <  echo "$as_me:3597: result: $RANLIB" >&5
5379 >  echo "$as_me:$LINENO: result: $RANLIB" >&5
5380   echo "${ECHO_T}$RANLIB" >&6
5381   else
5382 <  echo "$as_me:3600: result: no" >&5
5382 >  echo "$as_me:$LINENO: result: no" >&5
5383   echo "${ECHO_T}no" >&6
5384   fi
5385  
# Line 3606 | Line 5388 | echo "$as_me:3609: checking for $ac_word" >&5
5388    ac_ct_RANLIB=$RANLIB
5389    # Extract the first word of "ranlib", so it can be a program name with args.
5390   set dummy ranlib; ac_word=$2
5391 < echo "$as_me:3609: checking for $ac_word" >&5
5391 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5392   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5393   if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5394    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3614 | Line 5396 | else
5396    if test -n "$ac_ct_RANLIB"; then
5397    ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5398   else
5399 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5400 < ac_dummy="$PATH"
5401 < for ac_dir in $ac_dummy; do
5402 <  IFS=$ac_save_IFS
5403 <  test -z "$ac_dir" && ac_dir=.
5404 <  $as_executable_p "$ac_dir/$ac_word" || continue
5405 < ac_cv_prog_ac_ct_RANLIB="ranlib"
5406 < echo "$as_me:3624: found $ac_dir/$ac_word" >&5
5407 < break
5399 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 > for as_dir in $PATH
5401 > do
5402 >  IFS=$as_save_IFS
5403 >  test -z "$as_dir" && as_dir=.
5404 >  for ac_exec_ext in '' $ac_executable_extensions; do
5405 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
5407 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 >    break 2
5409 >  fi
5410   done
5411 + done
5412  
5413    test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5414   fi
5415   fi
5416   ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5417   if test -n "$ac_ct_RANLIB"; then
5418 <  echo "$as_me:3633: result: $ac_ct_RANLIB" >&5
5418 >  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5419   echo "${ECHO_T}$ac_ct_RANLIB" >&6
5420   else
5421 <  echo "$as_me:3636: result: no" >&5
5421 >  echo "$as_me:$LINENO: result: no" >&5
5422   echo "${ECHO_T}no" >&6
5423   fi
5424  
# Line 3646 | Line 5431 | echo "$as_me:3649: checking for $ac_word" >&5
5431   do
5432    # Extract the first word of "$ac_prog", so it can be a program name with args.
5433   set dummy $ac_prog; ac_word=$2
5434 < echo "$as_me:3649: checking for $ac_word" >&5
5434 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5435   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436   if test "${ac_cv_prog_YACC+set}" = set; then
5437    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3654 | Line 5439 | else
5439    if test -n "$YACC"; then
5440    ac_cv_prog_YACC="$YACC" # Let the user override the test.
5441   else
5442 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5443 < ac_dummy="$PATH"
5444 < for ac_dir in $ac_dummy; do
5445 <  IFS=$ac_save_IFS
5446 <  test -z "$ac_dir" && ac_dir=.
5447 <  $as_executable_p "$ac_dir/$ac_word" || continue
5448 < ac_cv_prog_YACC="$ac_prog"
5449 < echo "$as_me:3664: found $ac_dir/$ac_word" >&5
5450 < break
5442 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 > for as_dir in $PATH
5444 > do
5445 >  IFS=$as_save_IFS
5446 >  test -z "$as_dir" && as_dir=.
5447 >  for ac_exec_ext in '' $ac_executable_extensions; do
5448 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 >    ac_cv_prog_YACC="$ac_prog"
5450 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 >    break 2
5452 >  fi
5453   done
5454 + done
5455  
5456   fi
5457   fi
5458   YACC=$ac_cv_prog_YACC
5459   if test -n "$YACC"; then
5460 <  echo "$as_me:3672: result: $YACC" >&5
5460 >  echo "$as_me:$LINENO: result: $YACC" >&5
5461   echo "${ECHO_T}$YACC" >&6
5462   else
5463 <  echo "$as_me:3675: result: no" >&5
5463 >  echo "$as_me:$LINENO: result: no" >&5
5464   echo "${ECHO_T}no" >&6
5465   fi
5466  
# Line 3684 | Line 5472 | echo "$as_me:3687: checking for $ac_word" >&5
5472   do
5473    # Extract the first word of "$ac_prog", so it can be a program name with args.
5474   set dummy $ac_prog; ac_word=$2
5475 < echo "$as_me:3687: checking for $ac_word" >&5
5475 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5476   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5477   if test "${ac_cv_prog_LEX+set}" = set; then
5478    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3692 | Line 5480 | else
5480    if test -n "$LEX"; then
5481    ac_cv_prog_LEX="$LEX" # Let the user override the test.
5482   else
5483 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5484 < ac_dummy="$PATH"
5485 < for ac_dir in $ac_dummy; do
5486 <  IFS=$ac_save_IFS
5487 <  test -z "$ac_dir" && ac_dir=.
5488 <  $as_executable_p "$ac_dir/$ac_word" || continue
5489 < ac_cv_prog_LEX="$ac_prog"
5490 < echo "$as_me:3702: found $ac_dir/$ac_word" >&5
5491 < break
5483 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 > for as_dir in $PATH
5485 > do
5486 >  IFS=$as_save_IFS
5487 >  test -z "$as_dir" && as_dir=.
5488 >  for ac_exec_ext in '' $ac_executable_extensions; do
5489 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 >    ac_cv_prog_LEX="$ac_prog"
5491 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 >    break 2
5493 >  fi
5494   done
5495 + done
5496  
5497   fi
5498   fi
5499   LEX=$ac_cv_prog_LEX
5500   if test -n "$LEX"; then
5501 <  echo "$as_me:3710: result: $LEX" >&5
5501 >  echo "$as_me:$LINENO: result: $LEX" >&5
5502   echo "${ECHO_T}$LEX" >&6
5503   else
5504 <  echo "$as_me:3713: result: no" >&5
5504 >  echo "$as_me:$LINENO: result: no" >&5
5505   echo "${ECHO_T}no" >&6
5506   fi
5507  
# Line 3720 | Line 5511 | then
5511  
5512   if test -z "$LEXLIB"
5513   then
5514 <  echo "$as_me:3723: checking for yywrap in -lfl" >&5
5514 >  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5515   echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5516   if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5517    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3728 | Line 5519 | cat >conftest.$ac_ext <<_ACEOF
5519    ac_check_lib_save_LIBS=$LIBS
5520   LIBS="-lfl  $LIBS"
5521   cat >conftest.$ac_ext <<_ACEOF
3731 #line 3731 "configure"
3732 #include "confdefs.h"
5522  
5523 < /* Override any gcc2 internal prototype to avoid an error.  */
5524 < #ifdef __cplusplus
5525 < extern "C"
5526 < #endif
5527 < /* We use char because int might match the return type of a gcc2
3739 <   builtin and then its argument prototype would still apply.  */
3740 < char yywrap ();
3741 < int
3742 < main ()
3743 < {
3744 < yywrap ();
3745 <  ;
3746 <  return 0;
3747 < }
5523 > program main
5524 >
5525 > call yywrap
5526 > end program main
5527 >
5528   _ACEOF
5529   rm -f conftest.$ac_objext conftest$ac_exeext
5530 < if { (eval echo "$as_me:3750: \"$ac_link\"") >&5
5531 <  (eval $ac_link) 2>&5
5530 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5531 >  (eval $ac_link) 2>conftest.er1
5532    ac_status=$?
5533 <  echo "$as_me:3753: \$? = $ac_status" >&5
5533 >  grep -v '^ *+' conftest.er1 >conftest.err
5534 >  rm -f conftest.er1
5535 >  cat conftest.err >&5
5536 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537    (exit $ac_status); } &&
5538 <         { ac_try='test -s conftest$ac_exeext'
5539 <  { (eval echo "$as_me:3756: \"$ac_try\"") >&5
5538 >         { ac_try='test -z "$ac_f90_werror_flag"
5539 >                         || test ! -s conftest.err'
5540 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541    (eval $ac_try) 2>&5
5542    ac_status=$?
5543 <  echo "$as_me:3759: \$? = $ac_status" >&5
5543 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 >  (exit $ac_status); }; } &&
5545 >         { ac_try='test -s conftest$ac_exeext'
5546 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 >  (eval $ac_try) 2>&5
5548 >  ac_status=$?
5549 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550    (exit $ac_status); }; }; then
5551    ac_cv_lib_fl_yywrap=yes
5552   else
5553    echo "$as_me: failed program was:" >&5
5554 < cat conftest.$ac_ext >&5
5554 > sed 's/^/| /' conftest.$ac_ext >&5
5555 >
5556   ac_cv_lib_fl_yywrap=no
5557   fi
5558 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5558 > rm -f conftest.err conftest.$ac_objext \
5559 >      conftest$ac_exeext conftest.$ac_ext
5560   LIBS=$ac_check_lib_save_LIBS
5561   fi
5562 < echo "$as_me:3770: result: $ac_cv_lib_fl_yywrap" >&5
5562 > echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5563   echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5564   if test $ac_cv_lib_fl_yywrap = yes; then
5565    LEXLIB="-lfl"
5566   else
5567 <  echo "$as_me:3775: checking for yywrap in -ll" >&5
5567 >  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5568   echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5569   if test "${ac_cv_lib_l_yywrap+set}" = set; then
5570    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3780 | Line 5572 | cat >conftest.$ac_ext <<_ACEOF
5572    ac_check_lib_save_LIBS=$LIBS
5573   LIBS="-ll  $LIBS"
5574   cat >conftest.$ac_ext <<_ACEOF
3783 #line 3783 "configure"
3784 #include "confdefs.h"
5575  
5576 < /* Override any gcc2 internal prototype to avoid an error.  */
5577 < #ifdef __cplusplus
5578 < extern "C"
5579 < #endif
5580 < /* We use char because int might match the return type of a gcc2
3791 <   builtin and then its argument prototype would still apply.  */
3792 < char yywrap ();
3793 < int
3794 < main ()
3795 < {
3796 < yywrap ();
3797 <  ;
3798 <  return 0;
3799 < }
5576 > program main
5577 >
5578 > call yywrap
5579 > end program main
5580 >
5581   _ACEOF
5582   rm -f conftest.$ac_objext conftest$ac_exeext
5583 < if { (eval echo "$as_me:3802: \"$ac_link\"") >&5
5584 <  (eval $ac_link) 2>&5
5583 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5584 >  (eval $ac_link) 2>conftest.er1
5585    ac_status=$?
5586 <  echo "$as_me:3805: \$? = $ac_status" >&5
5586 >  grep -v '^ *+' conftest.er1 >conftest.err
5587 >  rm -f conftest.er1
5588 >  cat conftest.err >&5
5589 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590    (exit $ac_status); } &&
5591 <         { ac_try='test -s conftest$ac_exeext'
5592 <  { (eval echo "$as_me:3808: \"$ac_try\"") >&5
5591 >         { ac_try='test -z "$ac_f90_werror_flag"
5592 >                         || test ! -s conftest.err'
5593 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594    (eval $ac_try) 2>&5
5595    ac_status=$?
5596 <  echo "$as_me:3811: \$? = $ac_status" >&5
5596 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 >  (exit $ac_status); }; } &&
5598 >         { ac_try='test -s conftest$ac_exeext'
5599 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 >  (eval $ac_try) 2>&5
5601 >  ac_status=$?
5602 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603    (exit $ac_status); }; }; then
5604    ac_cv_lib_l_yywrap=yes
5605   else
5606    echo "$as_me: failed program was:" >&5
5607 < cat conftest.$ac_ext >&5
5607 > sed 's/^/| /' conftest.$ac_ext >&5
5608 >
5609   ac_cv_lib_l_yywrap=no
5610   fi
5611 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5611 > rm -f conftest.err conftest.$ac_objext \
5612 >      conftest$ac_exeext conftest.$ac_ext
5613   LIBS=$ac_check_lib_save_LIBS
5614   fi
5615 < echo "$as_me:3822: result: $ac_cv_lib_l_yywrap" >&5
5615 > echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5616   echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5617   if test $ac_cv_lib_l_yywrap = yes; then
5618    LEXLIB="-ll"
# Line 3830 | Line 5623 | if test "x$LEX" != "x:"; then
5623   fi
5624  
5625   if test "x$LEX" != "x:"; then
5626 <  echo "$as_me:3833: checking lex output file root" >&5
5626 >  echo "$as_me:$LINENO: checking lex output file root" >&5
5627   echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5628   if test "${ac_cv_prog_lex_root+set}" = set; then
5629    echo $ECHO_N "(cached) $ECHO_C" >&6
5630   else
5631    # The minimal lex program is just a single line: %%.  But some broken lexes
5632   # (Solaris, I think it was) want two %% lines, so accommodate them.
5633 < echo '%%
5634 < %%' | $LEX
5633 > cat >conftest.l <<_ACEOF
5634 > %%
5635 > %%
5636 > _ACEOF
5637 > { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5638 >  (eval $LEX conftest.l) 2>&5
5639 >  ac_status=$?
5640 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 >  (exit $ac_status); }
5642   if test -f lex.yy.c; then
5643    ac_cv_prog_lex_root=lex.yy
5644   elif test -f lexyy.c; then
5645    ac_cv_prog_lex_root=lexyy
5646   else
5647 <  { { echo "$as_me:3847: error: cannot find output from $LEX; giving up" >&5
5647 >  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5648   echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5649     { (exit 1); exit 1; }; }
5650   fi
5651   fi
5652 < echo "$as_me:3852: result: $ac_cv_prog_lex_root" >&5
5652 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5653   echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5654 + rm -f conftest.l
5655   LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5656  
5657 < echo "$as_me:3856: checking whether yytext is a pointer" >&5
5657 > echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5658   echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5659   if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5660    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3869 | Line 5670 | if { (eval echo "$as_me:3872: \"$ac_link\"") >&5
5670   `cat $LEX_OUTPUT_ROOT.c`
5671   _ACEOF
5672   rm -f conftest.$ac_objext conftest$ac_exeext
5673 < if { (eval echo "$as_me:3872: \"$ac_link\"") >&5
5674 <  (eval $ac_link) 2>&5
5673 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5674 >  (eval $ac_link) 2>conftest.er1
5675    ac_status=$?
5676 <  echo "$as_me:3875: \$? = $ac_status" >&5
5676 >  grep -v '^ *+' conftest.er1 >conftest.err
5677 >  rm -f conftest.er1
5678 >  cat conftest.err >&5
5679 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680    (exit $ac_status); } &&
5681 <         { ac_try='test -s conftest$ac_exeext'
5682 <  { (eval echo "$as_me:3878: \"$ac_try\"") >&5
5681 >         { ac_try='test -z "$ac_f90_werror_flag"
5682 >                         || test ! -s conftest.err'
5683 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684    (eval $ac_try) 2>&5
5685    ac_status=$?
5686 <  echo "$as_me:3881: \$? = $ac_status" >&5
5686 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 >  (exit $ac_status); }; } &&
5688 >         { ac_try='test -s conftest$ac_exeext'
5689 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 >  (eval $ac_try) 2>&5
5691 >  ac_status=$?
5692 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693    (exit $ac_status); }; }; then
5694    ac_cv_prog_lex_yytext_pointer=yes
5695   else
5696    echo "$as_me: failed program was:" >&5
5697 < cat conftest.$ac_ext >&5
5697 > sed 's/^/| /' conftest.$ac_ext >&5
5698 >
5699   fi
5700 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5700 > rm -f conftest.err conftest.$ac_objext \
5701 >      conftest$ac_exeext conftest.$ac_ext
5702   LIBS=$ac_save_LIBS
5703   rm -f "${LEX_OUTPUT_ROOT}.c"
5704  
5705   fi
5706 < echo "$as_me:3893: result: $ac_cv_prog_lex_yytext_pointer" >&5
5706 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5707   echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5708   if test $ac_cv_prog_lex_yytext_pointer = yes; then
5709  
5710 < cat >>confdefs.h <<\EOF
5710 > cat >>confdefs.h <<\_ACEOF
5711   #define YYTEXT_POINTER 1
5712 < EOF
5712 > _ACEOF
5713  
5714   fi
5715  
5716   fi
5717   # Extract the first word of "ar", so it can be a program name with args.
5718   set dummy ar; ac_word=$2
5719 < echo "$as_me:3906: checking for $ac_word" >&5
5719 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5720   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5721   if test "${ac_cv_prog_AR+set}" = set; then
5722    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3911 | Line 5724 | else
5724    if test -n "$AR"; then
5725    ac_cv_prog_AR="$AR" # Let the user override the test.
5726   else
5727 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5728 < ac_dummy="$PATH"
5729 < for ac_dir in $ac_dummy; do
5730 <  IFS=$ac_save_IFS
5731 <  test -z "$ac_dir" && ac_dir=.
5732 <  $as_executable_p "$ac_dir/$ac_word" || continue
5733 < ac_cv_prog_AR="ar"
5734 < echo "$as_me:3921: found $ac_dir/$ac_word" >&5
5735 < break
5727 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 > for as_dir in $PATH
5729 > do
5730 >  IFS=$as_save_IFS
5731 >  test -z "$as_dir" && as_dir=.
5732 >  for ac_exec_ext in '' $ac_executable_extensions; do
5733 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734 >    ac_cv_prog_AR="ar"
5735 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 >    break 2
5737 >  fi
5738   done
5739 + done
5740  
5741    test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
5742   fi
5743   fi
5744   AR=$ac_cv_prog_AR
5745   if test -n "$AR"; then
5746 <  echo "$as_me:3930: result: $AR" >&5
5746 >  echo "$as_me:$LINENO: result: $AR" >&5
5747   echo "${ECHO_T}$AR" >&6
5748   else
5749 <  echo "$as_me:3933: result: no" >&5
5749 >  echo "$as_me:$LINENO: result: no" >&5
5750   echo "${ECHO_T}no" >&6
5751   fi
5752  
5753   if test "$AR" = "NONE"; then
5754 <  { { echo "$as_me:3938: error: --> Can't find \`ar'!" >&5
5754 >  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
5755   echo "$as_me: error: --> Can't find \`ar'!" >&2;}
5756     { (exit 1); exit 1; }; }
5757    cat >confcache <<\_ACEOF
# Line 3948 | Line 5764 | echo "$as_me: error: --> Can't find \`ar'!" >&2;}
5764   # config.status only pays attention to the cache file if you give it
5765   # the --recheck option to rerun configure.
5766   #
5767 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
5767 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
5768   # loading this file, other *unset* `ac_cv_foo' will be assigned the
5769   # following values.
5770  
# Line 3966 | Line 5782 | _ACEOF
5782        # `set' does not quote correctly, so add quotes (double-quote
5783        # substitution turns \\\\ into \\, and sed turns \\ into \).
5784        sed -n \
5785 <        "s/'/'\\\\''/g;
5786 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5785 >        "s/'/'\\\\''/g;
5786 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5787        ;;
5788      *)
5789        # `set' quotes correctly as required by POSIX, so do not add quotes.
5790        sed -n \
5791 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5791 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5792        ;;
5793      esac;
5794   } |
# Line 3983 | Line 5799 | if cmp -s $cache_file confcache; then :; else
5799       t end
5800       /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5801       : end' >>confcache
5802 < if cmp -s $cache_file confcache; then :; else
5802 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
5803    if test -w $cache_file; then
5804      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5805      cat confcache >$cache_file
# Line 3995 | Line 5811 | ac_ext=f90
5811    exit 1
5812   fi
5813  
3998 ac_ext=f90
3999 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4000 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5814  
5815 < ac_ext=f90
5816 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5817 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5818 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5819 < echo "$as_me:4007: checking how to get verbose linking output from $F90" >&5
4008 < echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
4009 < if test "${ac_cv_prog_f90_v+set}" = set; then
4010 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5815 >
5816 > # Check whether --with-mpi or --without-mpi was given.
5817 > if test "${with_mpi+set}" = set; then
5818 >  withval="$with_mpi"
5819 >  with_mpi=$withval
5820   else
5821 +  with_mpi="no"
5822 + fi;
5823  
5824 < cat >conftest.$ac_ext <<_ACEOF
5824 > case "x$with_mpi" in
5825 >        xyes | "x")  USE_MPI=yes;;
5826 >        xno) USE_MPI=no ;;
5827 >        *) MPI="$with_mpi"; USE_MPI=yes ;;
5828 > esac
5829 > if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
5830 >        MPI="/usr/local"
5831 > fi
5832 > if test "$USE_MPI" = "yes"; then
5833 >        echo "MPI = $MPI"
5834  
4015 program main
5835  
5836 < end program main
5836 > # Set variables...
5837 > MPI_LIB_DIR="$MPI/lib"
5838 > MPI_INC_DIR="$MPI/include"
5839  
4019 _ACEOF
4020 rm -f conftest.$ac_objext
4021 if { (eval echo "$as_me:4021: \"$ac_compile\"") >&5
4022  (eval $ac_compile) 2>&5
4023  ac_status=$?
4024  echo "$as_me:4024: \$? = $ac_status" >&5
4025  (exit $ac_status); } &&
4026         { ac_try='test -s conftest.$ac_objext'
4027  { (eval echo "$as_me:4027: \"$ac_try\"") >&5
4028  (eval $ac_try) 2>&5
4029  ac_status=$?
4030  echo "$as_me:4030: \$? = $ac_status" >&5
4031  (exit $ac_status); }; }; then
4032  ac_cv_prog_f90_v=
4033 # Try some options frequently used verbose output
4034 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4035  ac_ext=f90
4036 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4037 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5840  
4040 cat >conftest.$ac_ext <<_ACEOF
5841  
5842 < program main
5843 <
5844 < end program main
5842 > echo "$as_me:$LINENO: checking for mpi.h" >&5
5843 > echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
5844 > have_mpi_h=0
5845 > echo '#include <mpi.h>' > conftest.cc
5846 > if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then
5847 >        echo "$as_me:$LINENO: result: yes" >&5
5848 > echo "${ECHO_T}yes" >&6
5849 >        have_mpi_h=1
5850 > else
5851 >        echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5852 > echo "${ECHO_T}no! Check MPI include paths" >&6
5853 >        USE_MPI="no"
5854 > fi
5855 > rm -f conftest*
5856 > if test "$have_mpi_h" = 1; then
5857  
5858 + cat >>confdefs.h <<\_ACEOF
5859 + #define HAVE_MPI_H 1
5860   _ACEOF
5861  
4048 # Compile and link our simple test program by passing a flag (argument
4049 # 1 to this macro) to the Fortran 90 compiler in order to get
4050 # "verbose" output that we can then parse for the Fortran 90 linker
4051 # flags.
4052 ac_save_F90FLAGS=$F90FLAGS
4053 F90FLAGS="$F90FLAGS $ac_verb"
4054
4055 (eval echo $as_me:4055: \"$ac_link\") >&5
4056 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4057 echo "$ac_f90_v_output" >&5
4058 F90FLAGS=$ac_save_F90FLAGS
4059
4060 rm -f conftest.*
4061 ac_ext=f90
4062 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4063 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4065
4066 # If we are using xlf then replace all the commas with spaces.
4067 if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4068  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
5862   fi
5863  
5864 < # If we are using Cray Fortran then delete quotes.
5865 < # Use "\"" instead of '"' for font-lock-mode.
5866 < # FIXME: a more general fix for quoted arguments with spaces?
5867 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
5868 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
5869 < fi
5870 <  # look for -l* and *.a constructs in the output
5871 <  for ac_arg in $ac_f90_v_output; do
5872 <     case $ac_arg in
5873 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
5874 <          ac_cv_prog_f90_v=$ac_verb
5875 <          break 2 ;;
5876 <     esac
5877 <  done
4085 < done
4086 < if test -z "$ac_cv_prog_f90_v"; then
4087 <   { echo "$as_me:4087: WARNING: cannot determine how to obtain linking information from $F90" >&5
4088 < echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
4089 < fi
5864 > echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
5865 > echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
5866 > have_mpif_h=0
5867 > rm -f conftest*
5868 > cat >conftest.f90 <<EOF
5869 > program main
5870 >   include 'mpif.h'
5871 > end
5872 > EOF
5873 > if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then
5874 >        echo "$as_me:$LINENO: result: yes" >&5
5875 > echo "${ECHO_T}yes" >&6
5876 >        MPI_F90_INC="$MPI_INC_DIR"
5877 >        have_mpif_h=1
5878   else
5879 <  echo "$as_me: failed program was:" >&5
5880 < cat conftest.$ac_ext >&5
5881 < { echo "$as_me:4093: WARNING: compilation failed" >&5
5882 < echo "$as_me: WARNING: compilation failed" >&2;}
5879 >        if test -s conftest.out ; then
5880 >                cat conftest.out >> config.log
5881 >        fi
5882 >        echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5883 > echo "${ECHO_T}no! Check MPI include paths" >&6
5884 >        USE_MPI="no"
5885   fi
5886 < rm -f conftest.$ac_objext conftest.$ac_ext
5886 > rm -f conftest*
5887  
5888 < fi
4099 < echo "$as_me:4099: result: $ac_cv_prog_f90_v" >&5
4100 < echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
4101 < echo "$as_me:4101: checking for Fortran 90 libraries" >&5
4102 < echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
4103 < if test "${ac_cv_flibs+set}" = set; then
4104 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4105 < else
4106 <  if test "x$F90LIBS" != "x"; then
4107 <  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
4108 < else
5888 > if test "$have_mpif_h" = 1; then
5889  
5890 < ac_ext=f90
5891 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4112 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4114 <
4115 < cat >conftest.$ac_ext <<_ACEOF
4116 <
4117 < program main
4118 <
4119 < end program main
4120 <
5890 > cat >>confdefs.h <<\_ACEOF
5891 > #define HAVE_MPIF_H 1
5892   _ACEOF
5893  
4123 # Compile and link our simple test program by passing a flag (argument
4124 # 1 to this macro) to the Fortran 90 compiler in order to get
4125 # "verbose" output that we can then parse for the Fortran 90 linker
4126 # flags.
4127 ac_save_F90FLAGS=$F90FLAGS
4128 F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4129
4130 (eval echo $as_me:4130: \"$ac_link\") >&5
4131 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4132 echo "$ac_f90_v_output" >&5
4133 F90FLAGS=$ac_save_F90FLAGS
4134
4135 rm -f conftest.*
4136 ac_ext=f90
4137 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4138 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4140
4141 # If we are using xlf then replace all the commas with spaces.
4142 if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4143  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
5894   fi
5895  
5896 < # If we are using Cray Fortran then delete quotes.
5897 < # Use "\"" instead of '"' for font-lock-mode.
5898 < # FIXME: a more general fix for quoted arguments with spaces?
5899 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
5900 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4151 < fi
5896 > ac_ext=c
5897 > ac_cpp='$CPP $CPPFLAGS'
5898 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5899 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5900 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
5901  
5902 < ac_cv_f90libs=
5902 > ac_save_LDFLAGS=$LDFLAGS
5903 > LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
5904  
5905 < # Save positional arguments (if any)
5906 < ac_save_positional="$@"
5907 <
5908 < set X $ac_f90_v_output
5909 < while test $# != 1; do
4160 <  shift
4161 <  ac_arg=$1
4162 <  case $ac_arg in
4163 <        [\\/]*.a | ?:[\\/]*.a)
4164 <            ac_exists=false
4165 <  for ac_i in $ac_cv_f90libs; do
4166 <    if test x"$ac_arg" = x"$ac_i"; then
4167 <      ac_exists=true
4168 <      break
4169 <    fi
4170 <  done
4171 <
4172 <  if test x"$ac_exists" = xtrue; then
4173 <  :
5905 > if test x = x"$MPI_LIB"; then
5906 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5907 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5908 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5909 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5910   else
5911 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5912 < fi
5911 >  ac_check_lib_save_LIBS=$LIBS
5912 > LIBS="-lmpi  $LIBS"
5913 > cat >conftest.$ac_ext <<_ACEOF
5914 > /* confdefs.h.  */
5915 > _ACEOF
5916 > cat confdefs.h >>conftest.$ac_ext
5917 > cat >>conftest.$ac_ext <<_ACEOF
5918 > /* end confdefs.h.  */
5919  
5920 <          ;;
5921 <        -bI:*)
5922 <            ac_exists=false
5923 <  for ac_i in $ac_cv_f90libs; do
5924 <    if test x"$ac_arg" = x"$ac_i"; then
5925 <      ac_exists=true
5926 <      break
5927 <    fi
5928 <  done
5929 <
5930 <  if test x"$ac_exists" = xtrue; then
5931 <  :
5920 > /* Override any gcc2 internal prototype to avoid an error.  */
5921 > #ifdef __cplusplus
5922 > extern "C"
5923 > #endif
5924 > /* We use char because int might match the return type of a gcc2
5925 >   builtin and then its argument prototype would still apply.  */
5926 > char MPI_Init ();
5927 > int
5928 > main ()
5929 > {
5930 > MPI_Init ();
5931 >  ;
5932 >  return 0;
5933 > }
5934 > _ACEOF
5935 > rm -f conftest.$ac_objext conftest$ac_exeext
5936 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5937 >  (eval $ac_link) 2>conftest.er1
5938 >  ac_status=$?
5939 >  grep -v '^ *+' conftest.er1 >conftest.err
5940 >  rm -f conftest.er1
5941 >  cat conftest.err >&5
5942 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 >  (exit $ac_status); } &&
5944 >         { ac_try='test -z "$ac_c_werror_flag"
5945 >                         || test ! -s conftest.err'
5946 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 >  (eval $ac_try) 2>&5
5948 >  ac_status=$?
5949 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 >  (exit $ac_status); }; } &&
5951 >         { ac_try='test -s conftest$ac_exeext'
5952 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 >  (eval $ac_try) 2>&5
5954 >  ac_status=$?
5955 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 >  (exit $ac_status); }; }; then
5957 >  ac_cv_lib_mpi_MPI_Init=yes
5958   else
5959 <  if test "$ac_compiler_gnu" = yes; then
5960 <  for ac_link_opt in $ac_arg; do
5961 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
5962 <  done
4195 < else
4196 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5959 >  echo "$as_me: failed program was:" >&5
5960 > sed 's/^/| /' conftest.$ac_ext >&5
5961 >
5962 > ac_cv_lib_mpi_MPI_Init=no
5963   fi
5964 + rm -f conftest.err conftest.$ac_objext \
5965 +      conftest$ac_exeext conftest.$ac_ext
5966 + LIBS=$ac_check_lib_save_LIBS
5967   fi
5968 <
5969 <          ;;
5970 <          # Ignore these flags.
5971 <        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
4203 <          ;;
4204 <        -lkernel32)
4205 <          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4206 <          ;;
4207 <        -[LRuY])
4208 <          # These flags, when seen by themselves, take an argument.
4209 <          # We remove the space between option and argument and re-iterate
4210 <          # unless we find an empty arg or a new option (starting with -)
4211 <          case $2 in
4212 <             "" | -*);;
4213 <             *)
4214 <                ac_arg="$ac_arg$2"
4215 <
4216 <                shift; shift
4217 <                set X $ac_arg "$@"
4218 <                ;;
4219 <          esac
4220 <          ;;
4221 <        -YP,*)
4222 <          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4223 <              ac_exists=false
4224 <  for ac_i in $ac_cv_f90libs; do
4225 <    if test x"$ac_j" = x"$ac_i"; then
4226 <      ac_exists=true
4227 <      break
4228 <    fi
4229 <  done
4230 <
4231 <  if test x"$ac_exists" = xtrue; then
4232 <  :
4233 < else
4234 <  ac_arg="$ac_arg $ac_j"
4235 <                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
5968 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5969 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5970 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
5971 >  MPI_LIB="-lmpi"
5972   fi
5973  
4238          done
4239          ;;
4240        -[lLR]*)
4241            ac_exists=false
4242  for ac_i in $ac_cv_f90libs; do
4243    if test x"$ac_arg" = x"$ac_i"; then
4244      ac_exists=true
4245      break
4246    fi
4247  done
4248
4249  if test x"$ac_exists" = xtrue; then
4250  :
4251 else
4252  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5974   fi
5975 <
5976 <          ;;
5977 <          # Ignore everything else.
5978 <  esac
4258 < done
4259 < # restore positional arguments
4260 < set X $ac_save_positional; shift
4261 <
4262 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4263 < # then we insist that the "run path" must be an absolute path (i.e. it
4264 < # must begin with a "/").
4265 < case `(uname -sr) 2>/dev/null` in
4266 <   "SunOS 5"*)
4267 <      ac_ld_run_path=`echo $ac_f90_v_output |
4268 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4269 <      test "x$ac_ld_run_path" != x &&
4270 <
4271 <        if test "$ac_compiler_gnu" = yes; then
4272 <  for ac_link_opt in $ac_ld_run_path; do
4273 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4274 <  done
4275 < else
4276 <  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
4277 < fi
4278 <      ;;
4279 < esac
4280 < fi # test "x$F90LIBS" = "x"
4281 <
4282 < fi
4283 < echo "$as_me:4283: result: $ac_cv_flibs" >&5
4284 < echo "${ECHO_T}$ac_cv_flibs" >&6
4285 < F90LIBS="$ac_cv_f90libs"
4286 <
4287 < ac_ext=f90
4288 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4289 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4291 <
4292 < echo "$as_me:4292: checking for Fortran 90 name-mangling scheme" >&5
4293 < echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
4294 < if test "${ac_cv_f90_mangling+set}" = set; then
5975 > if test x = x"$MPI_LIB"; then
5976 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
5977 > echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
5978 > if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
5979    echo $ECHO_N "(cached) $ECHO_C" >&6
5980   else
5981 <  ac_ext=f90
5982 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4299 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5981 >  ac_check_lib_save_LIBS=$LIBS
5982 > LIBS="-lmpich  $LIBS"
5983   cat >conftest.$ac_ext <<_ACEOF
5984 < subroutine foobar()
4303 < return
4304 < end
4305 < subroutine foo_bar()
4306 < return
4307 < end
5984 > /* confdefs.h.  */
5985   _ACEOF
5986 < rm -f conftest.$ac_objext
5987 < if { (eval echo "$as_me:4310: \"$ac_compile\"") >&5
5988 <  (eval $ac_compile) 2>&5
4312 <  ac_status=$?
4313 <  echo "$as_me:4313: \$? = $ac_status" >&5
4314 <  (exit $ac_status); } &&
4315 <         { ac_try='test -s conftest.$ac_objext'
4316 <  { (eval echo "$as_me:4316: \"$ac_try\"") >&5
4317 <  (eval $ac_try) 2>&5
4318 <  ac_status=$?
4319 <  echo "$as_me:4319: \$? = $ac_status" >&5
4320 <  (exit $ac_status); }; }; then
4321 <  mv conftest.$ac_objext cf90_test.$ac_objext
5986 > cat confdefs.h >>conftest.$ac_ext
5987 > cat >>conftest.$ac_ext <<_ACEOF
5988 > /* end confdefs.h.  */
5989  
4323  ac_ext=c
4324 ac_cpp='$CPP $CPPFLAGS'
4325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328
4329  ac_save_LIBS=$LIBS
4330  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
4331
4332  ac_success=no
4333  for ac_foobar in foobar FOOBAR; do
4334    for ac_underscore in "" "_"; do
4335      ac_func="$ac_foobar$ac_underscore"
4336      cat >conftest.$ac_ext <<_ACEOF
4337 #line 4337 "configure"
4338 #include "confdefs.h"
4339
5990   /* Override any gcc2 internal prototype to avoid an error.  */
5991   #ifdef __cplusplus
5992   extern "C"
5993   #endif
5994   /* We use char because int might match the return type of a gcc2
5995     builtin and then its argument prototype would still apply.  */
5996 < char $ac_func ();
5996 > char MPI_Init ();
5997   int
5998   main ()
5999   {
6000 < $ac_func ();
6000 > MPI_Init ();
6001    ;
6002    return 0;
6003   }
6004   _ACEOF
6005   rm -f conftest.$ac_objext conftest$ac_exeext
6006 < if { (eval echo "$as_me:4356: \"$ac_link\"") >&5
6007 <  (eval $ac_link) 2>&5
6006 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 >  (eval $ac_link) 2>conftest.er1
6008    ac_status=$?
6009 <  echo "$as_me:4359: \$? = $ac_status" >&5
6009 >  grep -v '^ *+' conftest.er1 >conftest.err
6010 >  rm -f conftest.er1
6011 >  cat conftest.err >&5
6012 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013    (exit $ac_status); } &&
6014 <         { ac_try='test -s conftest$ac_exeext'
6015 <  { (eval echo "$as_me:4362: \"$ac_try\"") >&5
6014 >         { ac_try='test -z "$ac_c_werror_flag"
6015 >                         || test ! -s conftest.err'
6016 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017    (eval $ac_try) 2>&5
6018    ac_status=$?
6019 <  echo "$as_me:4365: \$? = $ac_status" >&5
6019 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 >  (exit $ac_status); }; } &&
6021 >         { ac_try='test -s conftest$ac_exeext'
6022 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 >  (eval $ac_try) 2>&5
6024 >  ac_status=$?
6025 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026    (exit $ac_status); }; }; then
6027 <  ac_success=yes; break 2
6027 >  ac_cv_lib_mpich_MPI_Init=yes
6028   else
6029    echo "$as_me: failed program was:" >&5
6030 < cat conftest.$ac_ext >&5
6030 > sed 's/^/| /' conftest.$ac_ext >&5
6031 >
6032 > ac_cv_lib_mpich_MPI_Init=no
6033   fi
6034 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6035 <    done
6036 <  done
6034 > rm -f conftest.err conftest.$ac_objext \
6035 >      conftest$ac_exeext conftest.$ac_ext
6036 > LIBS=$ac_check_lib_save_LIBS
6037 > fi
6038 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
6039 > echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
6040 > if test $ac_cv_lib_mpich_MPI_Init = yes; then
6041 >  MPI_LIB="-lmpich"
6042 > fi
6043  
6044 <  if test "$ac_success" = "yes"; then
6045 <     case $ac_foobar in
6046 <        foobar)
6047 <           ac_case=lower
6048 <           ac_foo_bar=foo_bar
6049 <           ;;
6050 <        FOOBAR)
6051 <           ac_case=upper
6052 <           ac_foo_bar=FOO_BAR
6053 <           ;;
6054 <     esac
6044 > fi
6045 > $as_unset ac_cv_lib_mpi_MPI_Init
6046 > if test x = x"$MPI_LIB"; then
6047 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
6048 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
6049 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
6050 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6051 > else
6052 >  ac_check_lib_save_LIBS=$LIBS
6053 > LIBS="-lmpi "-llam" $LIBS"
6054 > cat >conftest.$ac_ext <<_ACEOF
6055 > /* confdefs.h.  */
6056 > _ACEOF
6057 > cat confdefs.h >>conftest.$ac_ext
6058 > cat >>conftest.$ac_ext <<_ACEOF
6059 > /* end confdefs.h.  */
6060  
4388     ac_success_extra=no
4389     for ac_extra in "" "_"; do
4390        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4391
4392        cat >conftest.$ac_ext <<_ACEOF
4393 #line 4393 "configure"
4394 #include "confdefs.h"
4395
6061   /* Override any gcc2 internal prototype to avoid an error.  */
6062   #ifdef __cplusplus
6063   extern "C"
6064   #endif
6065   /* We use char because int might match the return type of a gcc2
6066     builtin and then its argument prototype would still apply.  */
6067 < char $ac_func ();
6067 > char MPI_Init ();
6068   int
6069   main ()
6070   {
6071 < $ac_func ();
6071 > MPI_Init ();
6072    ;
6073    return 0;
6074   }
6075   _ACEOF
6076   rm -f conftest.$ac_objext conftest$ac_exeext
6077 < if { (eval echo "$as_me:4412: \"$ac_link\"") >&5
6078 <  (eval $ac_link) 2>&5
6077 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6078 >  (eval $ac_link) 2>conftest.er1
6079    ac_status=$?
6080 <  echo "$as_me:4415: \$? = $ac_status" >&5
6080 >  grep -v '^ *+' conftest.er1 >conftest.err
6081 >  rm -f conftest.er1
6082 >  cat conftest.err >&5
6083 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084    (exit $ac_status); } &&
6085 <         { ac_try='test -s conftest$ac_exeext'
6086 <  { (eval echo "$as_me:4418: \"$ac_try\"") >&5
6085 >         { ac_try='test -z "$ac_c_werror_flag"
6086 >                         || test ! -s conftest.err'
6087 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088    (eval $ac_try) 2>&5
6089    ac_status=$?
6090 <  echo "$as_me:4421: \$? = $ac_status" >&5
6090 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 >  (exit $ac_status); }; } &&
6092 >         { ac_try='test -s conftest$ac_exeext'
6093 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 >  (eval $ac_try) 2>&5
6095 >  ac_status=$?
6096 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097    (exit $ac_status); }; }; then
6098 <  ac_success_extra=yes; break
6098 >  ac_cv_lib_mpi_MPI_Init=yes
6099   else
6100    echo "$as_me: failed program was:" >&5
6101 < cat conftest.$ac_ext >&5
4427 < fi
4428 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4429 <     done
6101 > sed 's/^/| /' conftest.$ac_ext >&5
6102  
6103 <     if test "$ac_success_extra" = "yes"; then
4432 <        ac_cv_f90_mangling="$ac_case case"
4433 <        if test -z "$ac_underscore"; then
4434 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
4435 <        else
4436 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
4437 <
4438 <        fi
4439 <        if test -z "$ac_extra"; then
4440 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
4441 <        else
4442 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
4443 <        fi
4444 <      else
4445 <        ac_cv_f90_mangling="unknown"
4446 <      fi
4447 <  else
4448 <     ac_cv_f90_mangling="unknown"
4449 <
4450 <  fi
4451 <
4452 <  LIBS=$ac_save_LIBS
4453 <  ac_ext=f90
4454 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4455 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4457 <  rm -f cf90_test* conftest*
4458 < else
4459 <  echo "$as_me: failed program was:" >&5
4460 < cat conftest.$ac_ext >&5
6103 > ac_cv_lib_mpi_MPI_Init=no
6104   fi
6105 < rm -f conftest.$ac_objext conftest.$ac_ext
6106 < ac_ext=f90
6107 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4465 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4467 <
6105 > rm -f conftest.err conftest.$ac_objext \
6106 >      conftest$ac_exeext conftest.$ac_ext
6107 > LIBS=$ac_check_lib_save_LIBS
6108   fi
6109 < echo "$as_me:4469: result: $ac_cv_f90_mangling" >&5
6110 < echo "${ECHO_T}$ac_cv_f90_mangling" >&6
6111 <
6112 < case $ac_cv_f90_mangling in
4473 <  "lower case, no underscore, no extra underscore")
4474 <          cat >>confdefs.h <<\EOF
4475 < #define F90_FUNC(name,NAME) name
4476 < EOF
4477 <
4478 <          cat >>confdefs.h <<\EOF
4479 < #define F90_FUNC_(name,NAME) name
4480 < EOF
4481 < ;;
4482 <  "lower case, no underscore, extra underscore")
4483 <          cat >>confdefs.h <<\EOF
4484 < #define F90_FUNC(name,NAME) name
4485 < EOF
4486 <
4487 <          cat >>confdefs.h <<\EOF
4488 < #define F90_FUNC_(name,NAME) name ## _
4489 < EOF
4490 < ;;
4491 <  "lower case, underscore, no extra underscore")
4492 <          cat >>confdefs.h <<\EOF
4493 < #define F90_FUNC(name,NAME) name ## _
4494 < EOF
4495 <
4496 <          cat >>confdefs.h <<\EOF
4497 < #define F90_FUNC_(name,NAME) name ## _
4498 < EOF
4499 < ;;
4500 <  "lower case, underscore, extra underscore")
4501 <          cat >>confdefs.h <<\EOF
4502 < #define F90_FUNC(name,NAME) name ## _
4503 < EOF
4504 <
4505 <          cat >>confdefs.h <<\EOF
4506 < #define F90_FUNC_(name,NAME) name ## __
4507 < EOF
4508 < ;;
4509 <  "upper case, no underscore, no extra underscore")
4510 <          cat >>confdefs.h <<\EOF
4511 < #define F90_FUNC(name,NAME) NAME
4512 < EOF
4513 <
4514 <          cat >>confdefs.h <<\EOF
4515 < #define F90_FUNC_(name,NAME) NAME
4516 < EOF
4517 < ;;
4518 <  "upper case, no underscore, extra underscore")
4519 <          cat >>confdefs.h <<\EOF
4520 < #define F90_FUNC(name,NAME) NAME
4521 < EOF
4522 <
4523 <          cat >>confdefs.h <<\EOF
4524 < #define F90_FUNC_(name,NAME) NAME ## _
4525 < EOF
4526 < ;;
4527 <  "upper case, underscore, no extra underscore")
4528 <          cat >>confdefs.h <<\EOF
4529 < #define F90_FUNC(name,NAME) NAME ## _
4530 < EOF
4531 <
4532 <          cat >>confdefs.h <<\EOF
4533 < #define F90_FUNC_(name,NAME) NAME ## _
4534 < EOF
4535 < ;;
4536 <  "upper case, underscore, extra underscore")
4537 <          cat >>confdefs.h <<\EOF
4538 < #define F90_FUNC(name,NAME) NAME ## _
4539 < EOF
4540 <
4541 <          cat >>confdefs.h <<\EOF
4542 < #define F90_FUNC_(name,NAME) NAME ## __
4543 < EOF
4544 < ;;
4545 <  *)
4546 <          { echo "$as_me:4546: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4547 < echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4548 <          ;;
4549 < esac
4550 <
4551 < echo "$as_me:4551: checking for module suffix" >&5
4552 < echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
4553 < rm -f conftest*
4554 < # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4555 < rm -f work*
4556 < cat >conftest.f <<EOF
4557 <        module conftest
4558 <        integer n
4559 <        parameter (n=1)
4560 <        end module conftest
4561 < EOF
4562 < # SGI and absoft compilers generates module name in upper case!
4563 < testname="conftest"
4564 < modcase="lower"
4565 < if $F90 -c conftest.f > conftest.out 2>&1 ; then
4566 <    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
4567 <    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
4568 <    if test -z "$MOD" ; then
4569 <        MOD=`ls CONFTEST* 2>/dev/null \
4570 <                | grep -v CONFTEST.f | grep -v CONFTEST.o`
4571 <        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
4572 <        if test -n "$MOD" ; then
4573 <            testname="CONFTEST"
4574 <            modcase="upper"
4575 <        fi
4576 <    fi
4577 <    if test -z "$MOD" ; then
4578 <        echo "$as_me:4578: result: unknown" >&5
4579 < echo "${ECHO_T}unknown" >&6
4580 <        # Use mod if we can't figure it out
4581 <        MOD="mod"
4582 <    else
4583 <        echo "$as_me:4583: result: $MOD" >&5
4584 < echo "${ECHO_T}$MOD" >&6
4585 <    fi
4586 <    if test -s work.pcl ; then
4587 <        { echo "$as_me:4587: WARNING: Compiler generates auxillery files!" >&5
4588 < echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4589 <    fi
4590 < else
4591 <    echo "$as_me:4591: result: unknown" >&5
4592 < echo "${ECHO_T}unknown" >&6
6109 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
6110 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
6111 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
6112 >  MPI_LIB="-lmpi -llam"
6113   fi
6114  
4595 # Check for module include path (some use -I, some (Solaris) use -M, some
4596 # (absoft) use -p).
4597 # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
4598 # specified, work.pcl and work.pc are created.  However, if you specify
4599 # a file, it must contain a the name of a file ending in .pc .  Ugh!
4600 # Use the module made above
4601 echo "$as_me:4601: checking for module directory path flag" >&5
4602 echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
4603 madedir=0
4604 if test ! -d conf ; then mkdir conf ; madedir=1; fi
4605 cp $testname.$MOD conf
4606 rm -f conftest* CONFTEST*
4607 cat >conftest1.f <<EOF
4608        program main
4609        use conftest
4610        print *, n
4611        end
4612 EOF
4613 F90_WORK_FILES_ARG=""
4614 F90MODINCSPEC=""
4615 if $F90 -c -Iconf conftest1.f > conftest.out 2>&1 ; then
4616    MODDIRFLAG="-I"
4617    F90MODINCSPEC="-I<dir>"
4618    echo "$as_me:4618: result: -I" >&5
4619 echo "${ECHO_T}-I" >&6
4620 elif $F90 -c -Mconf conftest1.f >> conftest.out 2>&1 ; then
4621    MODDIRFLAG="-M"
4622    F90MODINCSPEC="-M<dir>"
4623    echo "$as_me:4623: result: -M" >&5
4624 echo "${ECHO_T}-M" >&6
4625 elif $F90 -c -pconf conftest1.f >> conftest.out 2>&1 ; then
4626    MODDIRFLAG="-p"
4627    F90MODINCSPEC="-p<dir>"
4628    echo "$as_me:4628: result: -p" >&5
4629 echo "${ECHO_T}-p" >&6
4630 elif test -s work.pc ; then
4631     cp work.pc conf/mpimod.pc
4632     echo "mpimod.pc" > conf/mpimod.pcl
4633     echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
4634     if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
4635         MODDIRFLAG='-cl,mpimod.pcl'
4636         echo "$as_me:4636: result: -cl,filename where filename contains a list of files and
4637 directories" >&5
4638 echo "${ECHO_T}-cl,filename where filename contains a list of files and
4639 directories" >&6
4640         F90_WORK_FILES_ARG="-cl,mpimod.pcl"
4641         F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
4642
4643     else
4644         # The version of the Intel compiler that I have refuses to let
4645         # you put the "work catalog" list anywhere but the current directory.
4646         # For example, you cannot in
4647         :
4648     fi
6115   fi
4650 if test -z "MODDIRFLAG" ; then
4651    echo "$as_me:4651: result: unknown" >&5
4652 echo "${ECHO_T}unknown" >&6
4653 fi
6116  
6117 < rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
6118 < if test $madedir = 1 ; then rmdir conf ; fi
6119 <
4658 < echo "$as_me:4658: checking for mpi-directory" >&5
4659 < echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
4660 <
4661 < # Check whether --with-mpi_dir or --without-mpi_dir was given.
4662 < if test "${with_mpi_dir+set}" = set; then
4663 <  withval="$with_mpi_dir"
4664 <  MPI_DIR="$withval"
4665 < else
4666 <  MPI_DIR="/usr/local"
4667 < fi;
4668 < echo "$as_me:4668: result: $MPI_DIR" >&5
4669 < echo "${ECHO_T}$MPI_DIR" >&6
4670 <
4671 < echo "$as_me:4671: checking for mpi-lib-directory" >&5
4672 < echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
4673 <
4674 < # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
4675 < if test "${with_mpi_libdir+set}" = set; then
4676 <  withval="$with_mpi_libdir"
4677 <  MPI_LIBDIR="$withval"
4678 < else
4679 <  MPI_LIBDIR="$MPI_DIR/lib"
4680 < fi;
4681 < echo "$as_me:4681: result: $MPI_LIBDIR" >&5
4682 < echo "${ECHO_T}$MPI_LIBDIR" >&6
4683 <
4684 < echo "$as_me:4684: checking for mpi-inc-directory" >&5
4685 < echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
4686 <
4687 < # Check whether --with-mpi_inc or --without-mpi_inc was given.
4688 < if test "${with_mpi_inc+set}" = set; then
4689 <  withval="$with_mpi_inc"
4690 <  MPI_INC="$withval"
4691 < else
4692 <  MPI_INC="$MPI_DIR/include"
4693 < fi;
4694 < echo "$as_me:4694: result: $MPI_INC" >&5
4695 < echo "${ECHO_T}$MPI_INC" >&6
4696 <
4697 < echo "$as_me:4697: checking for MPI library" >&5
4698 < echo $ECHO_N "checking for MPI library... $ECHO_C" >&6
4699 < MPI_LIB=""
4700 < case "$host" in
4701 <  *-ibm-aix*)
4702 <    echo "$as_me:4702: checking whether to use signal-based MPI library" >&5
4703 < echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6
4704 <    echo "$as_me:4704: result: $PACX_SIGNAL" >&5
4705 < echo "${ECHO_T}$PACX_SIGNAL" >&6
4706 <    if test "x$PACX_SIGNAL" = "xyes" ; then
4707 <      if test -f "$MPI_LIBDIR/libmpi.a" ; then
4708 <        MPI_LIB="-lmpi"
4709 <      elif test -f "$MPI_LIBDIR/libmpi.so" ; then
4710 <        MPI_LIB="-lmpi"
4711 <      elif test -f "$MPI_LIBDIR/libmpich.a" ; then
4712 <        MPI_LIB="-lmpich"
4713 <      else
4714 <        { { echo "$as_me:4714: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
4715 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
4716 <   { (exit 1); exit 1; }; }
4717 <      fi
4718 <    else
4719 <      if test -f "$MPI_LIBDIR/libmpi_r.a" ; then
4720 <         MPI_LIB="-lmpi_r"
4721 <      else
4722 <         { { echo "$as_me:4722: error: libmpi_r not found; check path for MPI package..." >&5
4723 < echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;}
4724 <   { (exit 1); exit 1; }; }
4725 <      fi
4726 <    fi
4727 <    echo "$as_me:4727: result: found $MPI_LIB" >&5
4728 < echo "${ECHO_T}found $MPI_LIB" >&6
4729 <  ;;
4730 <  *)                             if test -f "$MPI_LIBDIR/libmpi.a" ; then
4731 <      MPI_LIB="-lmpi"
4732 <    elif test -f "$MPI_LIBDIR/libmpi.so" ; then
4733 <      MPI_LIB="-lmpi"
4734 <    elif test -f "$MPI_LIBDIR/libmpich.a" ; then
4735 <      MPI_LIB="-lmpich"
4736 <    else
4737 <      { { echo "$as_me:4737: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
4738 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
4739 <   { (exit 1); exit 1; }; }
4740 <    fi
4741 <    echo "$as_me:4741: result: found $MPI_LIB" >&5
4742 < echo "${ECHO_T}found $MPI_LIB" >&6
4743 <  ;;
4744 < esac
4745 <
4746 <        for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r
4747 < do
4748 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4749 < set dummy $ac_prog; ac_word=$2
4750 < echo "$as_me:4750: checking for $ac_word" >&5
4751 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4752 < if test "${ac_cv_prog_MPIF90+set}" = set; then
4753 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4754 < else
4755 <  if test -n "$MPIF90"; then
4756 <  ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test.
4757 < else
4758 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
4759 < ac_dummy="$PATH"
4760 < for ac_dir in $ac_dummy; do
4761 <  IFS=$ac_save_IFS
4762 <  test -z "$ac_dir" && ac_dir=.
4763 <  $as_executable_p "$ac_dir/$ac_word" || continue
4764 < ac_cv_prog_MPIF90="$ac_prog"
4765 < echo "$as_me:4765: found $ac_dir/$ac_word" >&5
4766 < break
4767 < done
4768 <
4769 < fi
4770 < fi
4771 < MPIF90=$ac_cv_prog_MPIF90
4772 < if test -n "$MPIF90"; then
4773 <  echo "$as_me:4773: result: $MPIF90" >&5
4774 < echo "${ECHO_T}$MPIF90" >&6
4775 < else
4776 <  echo "$as_me:4776: result: no" >&5
4777 < echo "${ECHO_T}no" >&6
4778 < fi
4779 <
4780 <  test -n "$MPIF90" && break
4781 < done
4782 < test -n "$MPIF90" || MPIF90="$F90"
4783 <
4784 <        acx_mpi_save_F90="$F90"
4785 <        F90="$MPIF90"
4786 <
4787 < if test x = x"$MPILIBS"; then
4788 <        echo "$as_me:4788: checking for MPI_Init" >&5
4789 < echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6
4790 <                        cat >conftest.$ac_ext <<_ACEOF
4791 <
4792 < program main
4793 <
4794 <      call MPI_Init
4795 < end program main
4796 <
4797 < _ACEOF
4798 < rm -f conftest.$ac_objext conftest$ac_exeext
4799 < if { (eval echo "$as_me:4799: \"$ac_link\"") >&5
4800 <  (eval $ac_link) 2>&5
4801 <  ac_status=$?
4802 <  echo "$as_me:4802: \$? = $ac_status" >&5
4803 <  (exit $ac_status); } &&
4804 <         { ac_try='test -s conftest$ac_exeext'
4805 <  { (eval echo "$as_me:4805: \"$ac_try\"") >&5
4806 <  (eval $ac_try) 2>&5
4807 <  ac_status=$?
4808 <  echo "$as_me:4808: \$? = $ac_status" >&5
4809 <  (exit $ac_status); }; }; then
4810 <  MPILIBS=" "
4811 <                                echo "$as_me:4811: result: yes" >&5
4812 < echo "${ECHO_T}yes" >&6
4813 < else
4814 <  echo "$as_me: failed program was:" >&5
4815 < cat conftest.$ac_ext >&5
4816 < echo "$as_me:4816: result: no" >&5
4817 < echo "${ECHO_T}no" >&6
4818 < fi
4819 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4820 < fi
4821 < if test x = x"$MPILIBS"; then
4822 <        echo "$as_me:4822: checking for MPI_Init in -lmpi" >&5
6117 > $as_unset ac_cv_lib_mpi_MPI_Init
6118 > if test x = x"$MPI_LIB"; then
6119 > echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
6120   echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
6121   if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
6122    echo $ECHO_N "(cached) $ECHO_C" >&6
6123   else
6124    ac_check_lib_save_LIBS=$LIBS
6125 < LIBS="-lmpi  $LIBS"
6125 > LIBS="-lmpi -llam -lpthread $LIBS"
6126   cat >conftest.$ac_ext <<_ACEOF
6127 + /* confdefs.h.  */
6128 + _ACEOF
6129 + cat confdefs.h >>conftest.$ac_ext
6130 + cat >>conftest.$ac_ext <<_ACEOF
6131 + /* end confdefs.h.  */
6132  
6133 < program main
6134 <
6135 < call MPI_Init
6136 < end program main
6137 <
6133 > /* Override any gcc2 internal prototype to avoid an error.  */
6134 > #ifdef __cplusplus
6135 > extern "C"
6136 > #endif
6137 > /* We use char because int might match the return type of a gcc2
6138 >   builtin and then its argument prototype would still apply.  */
6139 > char MPI_Init ();
6140 > int
6141 > main ()
6142 > {
6143 > MPI_Init ();
6144 >  ;
6145 >  return 0;
6146 > }
6147   _ACEOF
6148   rm -f conftest.$ac_objext conftest$ac_exeext
6149 < if { (eval echo "$as_me:4838: \"$ac_link\"") >&5
6150 <  (eval $ac_link) 2>&5
6149 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6150 >  (eval $ac_link) 2>conftest.er1
6151    ac_status=$?
6152 <  echo "$as_me:4841: \$? = $ac_status" >&5
6152 >  grep -v '^ *+' conftest.er1 >conftest.err
6153 >  rm -f conftest.er1
6154 >  cat conftest.err >&5
6155 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156    (exit $ac_status); } &&
6157 <         { ac_try='test -s conftest$ac_exeext'
6158 <  { (eval echo "$as_me:4844: \"$ac_try\"") >&5
6157 >         { ac_try='test -z "$ac_c_werror_flag"
6158 >                         || test ! -s conftest.err'
6159 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160    (eval $ac_try) 2>&5
6161    ac_status=$?
6162 <  echo "$as_me:4847: \$? = $ac_status" >&5
6162 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 >  (exit $ac_status); }; } &&
6164 >         { ac_try='test -s conftest$ac_exeext'
6165 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 >  (eval $ac_try) 2>&5
6167 >  ac_status=$?
6168 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169    (exit $ac_status); }; }; then
6170    ac_cv_lib_mpi_MPI_Init=yes
6171   else
6172    echo "$as_me: failed program was:" >&5
6173 < cat conftest.$ac_ext >&5
6173 > sed 's/^/| /' conftest.$ac_ext >&5
6174 >
6175   ac_cv_lib_mpi_MPI_Init=no
6176   fi
6177 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6177 > rm -f conftest.err conftest.$ac_objext \
6178 >      conftest$ac_exeext conftest.$ac_ext
6179   LIBS=$ac_check_lib_save_LIBS
6180   fi
6181 < echo "$as_me:4858: result: $ac_cv_lib_mpi_MPI_Init" >&5
6181 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
6182   echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
6183   if test $ac_cv_lib_mpi_MPI_Init = yes; then
6184 <  MPILIBS="-lmpi"
6184 >  MPI_LIB="-lmpi -llam -lpthread"
6185 > else
6186 >
6187 >             { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
6188 > echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
6189 >   { (exit 1); exit 1; }; }
6190 >             USE_MPI="no"
6191 >
6192   fi
6193  
6194   fi
4865 if test x = x"$MPILIBS"; then
4866        echo "$as_me:4866: checking for MPI_Init in -lmpich" >&5
4867 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
4868 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
4869  echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871  ac_check_lib_save_LIBS=$LIBS
4872 LIBS="-lmpich  $LIBS"
4873 cat >conftest.$ac_ext <<_ACEOF
6195  
4875 program main
6196  
4877 call MPI_Init
4878 end program main
6197  
6198 < _ACEOF
6199 < rm -f conftest.$ac_objext conftest$ac_exeext
6200 < if { (eval echo "$as_me:4882: \"$ac_link\"") >&5
6201 <  (eval $ac_link) 2>&5
6202 <  ac_status=$?
6203 <  echo "$as_me:4885: \$? = $ac_status" >&5
6204 <  (exit $ac_status); } &&
4887 <         { ac_try='test -s conftest$ac_exeext'
4888 <  { (eval echo "$as_me:4888: \"$ac_try\"") >&5
4889 <  (eval $ac_try) 2>&5
4890 <  ac_status=$?
4891 <  echo "$as_me:4891: \$? = $ac_status" >&5
4892 <  (exit $ac_status); }; }; then
4893 <  ac_cv_lib_mpich_MPI_Init=yes
6198 > echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
6199 > echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
6200 > MPI_F90_LIB=""
6201 > if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
6202 >        MPI_F90_LIB="-lfmpich"
6203 > elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
6204 >        MPI_F90_LIB="-llamf77mpi"
6205   else
6206 <  echo "$as_me: failed program was:" >&5
4896 < cat conftest.$ac_ext >&5
4897 < ac_cv_lib_mpich_MPI_Init=no
6206 >                        MPI_F90_LIB="  "
6207   fi
6208 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6209 < LIBS=$ac_check_lib_save_LIBS
4901 < fi
4902 < echo "$as_me:4902: result: $ac_cv_lib_mpich_MPI_Init" >&5
4903 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
4904 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
4905 <  MPILIBS="-lmpich"
4906 < fi
6208 > echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
6209 > echo "${ECHO_T}found $MPI_F90_LIB" >&6
6210  
6211 +
6212   fi
6213  
4910 F90="$acx_mpi_save_F90"
6214  
4912 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4913 if test x = x"$MPILIBS"; then
6215  
4915        :
4916 else
4917
4918 cat >>confdefs.h <<\EOF
4919 #define HAVE_MPI 1
4920 EOF
4921
4922        :
4923 fi
4924
6216   ac_ext=c
6217   ac_cpp='$CPP $CPPFLAGS'
6218   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6221 < echo "$as_me:4930: checking how to run the C preprocessor" >&5
6221 > echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6222   echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6223   # On Suns, sometimes $CPP names a directory.
6224   if test -n "$CPP" && test -d "$CPP"; then
# Line 4940 | Line 6231 | else
6231        # Double quotes because CPP needs to be expanded
6232      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6233      do
4943      # break 2 since there is a loop in there.
6234        ac_preproc_ok=false
6235   for ac_c_preproc_warn_flag in '' yes
6236   do
6237    # Use a header file that comes with gcc, so configuring glibc
6238    # with a fresh cross-compiler works.
6239 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6240 +  # <limits.h> exists even on freestanding compilers.
6241    # On the NeXT, cc -E runs the code through the compiler's parser,
6242    # not just through cpp. "Syntax error" is here to catch this case.
6243    cat >conftest.$ac_ext <<_ACEOF
6244 < #line 4952 "configure"
4953 < #include "confdefs.h"
4954 < #include <assert.h>
4955 <                     Syntax error
6244 > /* confdefs.h.  */
6245   _ACEOF
6246 < if { (eval echo "$as_me:4957: \"$ac_cpp conftest.$ac_ext\"") >&5
6246 > cat confdefs.h >>conftest.$ac_ext
6247 > cat >>conftest.$ac_ext <<_ACEOF
6248 > /* end confdefs.h.  */
6249 > #ifdef __STDC__
6250 > # include <limits.h>
6251 > #else
6252 > # include <assert.h>
6253 > #endif
6254 >                     Syntax error
6255 > _ACEOF
6256 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6257    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6258    ac_status=$?
6259 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6259 >  grep -v '^ *+' conftest.er1 >conftest.err
6260    rm -f conftest.er1
6261    cat conftest.err >&5
6262 <  echo "$as_me:4963: \$? = $ac_status" >&5
6262 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263    (exit $ac_status); } >/dev/null; then
6264    if test -s conftest.err; then
6265      ac_cpp_err=$ac_c_preproc_warn_flag
6266 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6267    else
6268      ac_cpp_err=
6269    fi
# Line 4974 | Line 6274 | else
6274    :
6275   else
6276    echo "$as_me: failed program was:" >&5
6277 <  cat conftest.$ac_ext >&5
6277 > sed 's/^/| /' conftest.$ac_ext >&5
6278 >
6279    # Broken: fails on valid input.
6280   continue
6281   fi
# Line 4983 | Line 6284 | rm -f conftest.err conftest.$ac_ext
6284    # OK, works on sane cases.  Now check whether non-existent headers
6285    # can be detected and how.
6286    cat >conftest.$ac_ext <<_ACEOF
6287 < #line 4986 "configure"
6288 < #include "confdefs.h"
6287 > /* confdefs.h.  */
6288 > _ACEOF
6289 > cat confdefs.h >>conftest.$ac_ext
6290 > cat >>conftest.$ac_ext <<_ACEOF
6291 > /* end confdefs.h.  */
6292   #include <ac_nonexistent.h>
6293   _ACEOF
6294 < if { (eval echo "$as_me:4990: \"$ac_cpp conftest.$ac_ext\"") >&5
6294 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6295    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6296    ac_status=$?
6297 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6297 >  grep -v '^ *+' conftest.er1 >conftest.err
6298    rm -f conftest.er1
6299    cat conftest.err >&5
6300 <  echo "$as_me:4996: \$? = $ac_status" >&5
6300 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301    (exit $ac_status); } >/dev/null; then
6302    if test -s conftest.err; then
6303      ac_cpp_err=$ac_c_preproc_warn_flag
6304 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6305    else
6306      ac_cpp_err=
6307    fi
# Line 5008 | Line 6313 | else
6313   continue
6314   else
6315    echo "$as_me: failed program was:" >&5
6316 <  cat conftest.$ac_ext >&5
6316 > sed 's/^/| /' conftest.$ac_ext >&5
6317 >
6318    # Passes both tests.
6319   ac_preproc_ok=:
6320   break
# Line 5019 | Line 6325 | if $ac_preproc_ok; then
6325   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6326   rm -f conftest.err conftest.$ac_ext
6327   if $ac_preproc_ok; then
6328 <  break 2
6328 >  break
6329   fi
6330  
6331      done
# Line 5030 | Line 6336 | echo "$as_me:5033: result: $CPP" >&5
6336   else
6337    ac_cv_prog_CPP=$CPP
6338   fi
6339 < echo "$as_me:5033: result: $CPP" >&5
6339 > echo "$as_me:$LINENO: result: $CPP" >&5
6340   echo "${ECHO_T}$CPP" >&6
6341   ac_preproc_ok=false
6342   for ac_c_preproc_warn_flag in '' yes
6343   do
6344    # Use a header file that comes with gcc, so configuring glibc
6345    # with a fresh cross-compiler works.
6346 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6347 +  # <limits.h> exists even on freestanding compilers.
6348    # On the NeXT, cc -E runs the code through the compiler's parser,
6349    # not just through cpp. "Syntax error" is here to catch this case.
6350    cat >conftest.$ac_ext <<_ACEOF
6351 < #line 5043 "configure"
5044 < #include "confdefs.h"
5045 < #include <assert.h>
5046 <                     Syntax error
6351 > /* confdefs.h.  */
6352   _ACEOF
6353 < if { (eval echo "$as_me:5048: \"$ac_cpp conftest.$ac_ext\"") >&5
6353 > cat confdefs.h >>conftest.$ac_ext
6354 > cat >>conftest.$ac_ext <<_ACEOF
6355 > /* end confdefs.h.  */
6356 > #ifdef __STDC__
6357 > # include <limits.h>
6358 > #else
6359 > # include <assert.h>
6360 > #endif
6361 >                     Syntax error
6362 > _ACEOF
6363 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6364    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6365    ac_status=$?
6366 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6366 >  grep -v '^ *+' conftest.er1 >conftest.err
6367    rm -f conftest.er1
6368    cat conftest.err >&5
6369 <  echo "$as_me:5054: \$? = $ac_status" >&5
6369 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370    (exit $ac_status); } >/dev/null; then
6371    if test -s conftest.err; then
6372      ac_cpp_err=$ac_c_preproc_warn_flag
6373 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6374    else
6375      ac_cpp_err=
6376    fi
# Line 5065 | Line 6381 | else
6381    :
6382   else
6383    echo "$as_me: failed program was:" >&5
6384 <  cat conftest.$ac_ext >&5
6384 > sed 's/^/| /' conftest.$ac_ext >&5
6385 >
6386    # Broken: fails on valid input.
6387   continue
6388   fi
# Line 5074 | Line 6391 | rm -f conftest.err conftest.$ac_ext
6391    # OK, works on sane cases.  Now check whether non-existent headers
6392    # can be detected and how.
6393    cat >conftest.$ac_ext <<_ACEOF
6394 < #line 5077 "configure"
6395 < #include "confdefs.h"
6394 > /* confdefs.h.  */
6395 > _ACEOF
6396 > cat confdefs.h >>conftest.$ac_ext
6397 > cat >>conftest.$ac_ext <<_ACEOF
6398 > /* end confdefs.h.  */
6399   #include <ac_nonexistent.h>
6400   _ACEOF
6401 < if { (eval echo "$as_me:5081: \"$ac_cpp conftest.$ac_ext\"") >&5
6401 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6402    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6403    ac_status=$?
6404 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6404 >  grep -v '^ *+' conftest.er1 >conftest.err
6405    rm -f conftest.er1
6406    cat conftest.err >&5
6407 <  echo "$as_me:5087: \$? = $ac_status" >&5
6407 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408    (exit $ac_status); } >/dev/null; then
6409    if test -s conftest.err; then
6410      ac_cpp_err=$ac_c_preproc_warn_flag
6411 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6412    else
6413      ac_cpp_err=
6414    fi
# Line 5099 | Line 6420 | else
6420   continue
6421   else
6422    echo "$as_me: failed program was:" >&5
6423 <  cat conftest.$ac_ext >&5
6423 > sed 's/^/| /' conftest.$ac_ext >&5
6424 >
6425    # Passes both tests.
6426   ac_preproc_ok=:
6427   break
# Line 5112 | Line 6434 | else
6434   if $ac_preproc_ok; then
6435    :
6436   else
6437 <  { { echo "$as_me:5115: error: C preprocessor \"$CPP\" fails sanity check" >&5
6438 < echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
6437 >  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6438 > See \`config.log' for more details." >&5
6439 > echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6440 > See \`config.log' for more details." >&2;}
6441     { (exit 1); exit 1; }; }
6442   fi
6443  
# Line 5123 | Line 6447 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6447   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6448   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6449  
6450 +
6451 + echo "$as_me:$LINENO: checking for egrep" >&5
6452 + echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6453 + if test "${ac_cv_prog_egrep+set}" = set; then
6454 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6455 + else
6456 +  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6457 +    then ac_cv_prog_egrep='grep -E'
6458 +    else ac_cv_prog_egrep='egrep'
6459 +    fi
6460 + fi
6461 + echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6462 + echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6463 + EGREP=$ac_cv_prog_egrep
6464 +
6465 +
6466 + echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6467 + echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6468 + if test "${ac_cv_header_stdc+set}" = set; then
6469 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6470 + else
6471 +  cat >conftest.$ac_ext <<_ACEOF
6472 + /* confdefs.h.  */
6473 + _ACEOF
6474 + cat confdefs.h >>conftest.$ac_ext
6475 + cat >>conftest.$ac_ext <<_ACEOF
6476 + /* end confdefs.h.  */
6477 + #include <stdlib.h>
6478 + #include <stdarg.h>
6479 + #include <string.h>
6480 + #include <float.h>
6481 +
6482 + int
6483 + main ()
6484 + {
6485 +
6486 +  ;
6487 +  return 0;
6488 + }
6489 + _ACEOF
6490 + rm -f conftest.$ac_objext
6491 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6492 +  (eval $ac_compile) 2>conftest.er1
6493 +  ac_status=$?
6494 +  grep -v '^ *+' conftest.er1 >conftest.err
6495 +  rm -f conftest.er1
6496 +  cat conftest.err >&5
6497 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 +  (exit $ac_status); } &&
6499 +         { ac_try='test -z "$ac_c_werror_flag"
6500 +                         || test ! -s conftest.err'
6501 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 +  (eval $ac_try) 2>&5
6503 +  ac_status=$?
6504 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 +  (exit $ac_status); }; } &&
6506 +         { ac_try='test -s conftest.$ac_objext'
6507 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 +  (eval $ac_try) 2>&5
6509 +  ac_status=$?
6510 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 +  (exit $ac_status); }; }; then
6512 +  ac_cv_header_stdc=yes
6513 + else
6514 +  echo "$as_me: failed program was:" >&5
6515 + sed 's/^/| /' conftest.$ac_ext >&5
6516 +
6517 + ac_cv_header_stdc=no
6518 + fi
6519 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6520 +
6521 + if test $ac_cv_header_stdc = yes; then
6522 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6523 +  cat >conftest.$ac_ext <<_ACEOF
6524 + /* confdefs.h.  */
6525 + _ACEOF
6526 + cat confdefs.h >>conftest.$ac_ext
6527 + cat >>conftest.$ac_ext <<_ACEOF
6528 + /* end confdefs.h.  */
6529 + #include <string.h>
6530 +
6531 + _ACEOF
6532 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6533 +  $EGREP "memchr" >/dev/null 2>&1; then
6534 +  :
6535 + else
6536 +  ac_cv_header_stdc=no
6537 + fi
6538 + rm -f conftest*
6539 +
6540 + fi
6541 +
6542 + if test $ac_cv_header_stdc = yes; then
6543 +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6544 +  cat >conftest.$ac_ext <<_ACEOF
6545 + /* confdefs.h.  */
6546 + _ACEOF
6547 + cat confdefs.h >>conftest.$ac_ext
6548 + cat >>conftest.$ac_ext <<_ACEOF
6549 + /* end confdefs.h.  */
6550 + #include <stdlib.h>
6551 +
6552 + _ACEOF
6553 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6554 +  $EGREP "free" >/dev/null 2>&1; then
6555 +  :
6556 + else
6557 +  ac_cv_header_stdc=no
6558 + fi
6559 + rm -f conftest*
6560 +
6561 + fi
6562 +
6563 + if test $ac_cv_header_stdc = yes; then
6564 +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6565 +  if test "$cross_compiling" = yes; then
6566 +  :
6567 + else
6568 +  cat >conftest.$ac_ext <<_ACEOF
6569 + /* confdefs.h.  */
6570 + _ACEOF
6571 + cat confdefs.h >>conftest.$ac_ext
6572 + cat >>conftest.$ac_ext <<_ACEOF
6573 + /* end confdefs.h.  */
6574 + #include <ctype.h>
6575 + #if ((' ' & 0x0FF) == 0x020)
6576 + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6577 + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6578 + #else
6579 + # define ISLOWER(c) \
6580 +                   (('a' <= (c) && (c) <= 'i') \
6581 +                     || ('j' <= (c) && (c) <= 'r') \
6582 +                     || ('s' <= (c) && (c) <= 'z'))
6583 + # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6584 + #endif
6585 +
6586 + #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6587 + int
6588 + main ()
6589 + {
6590 +  int i;
6591 +  for (i = 0; i < 256; i++)
6592 +    if (XOR (islower (i), ISLOWER (i))
6593 +        || toupper (i) != TOUPPER (i))
6594 +      exit(2);
6595 +  exit (0);
6596 + }
6597 + _ACEOF
6598 + rm -f conftest$ac_exeext
6599 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600 +  (eval $ac_link) 2>&5
6601 +  ac_status=$?
6602 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6604 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 +  (eval $ac_try) 2>&5
6606 +  ac_status=$?
6607 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 +  (exit $ac_status); }; }; then
6609 +  :
6610 + else
6611 +  echo "$as_me: program exited with status $ac_status" >&5
6612 + echo "$as_me: failed program was:" >&5
6613 + sed 's/^/| /' conftest.$ac_ext >&5
6614 +
6615 + ( exit $ac_status )
6616 + ac_cv_header_stdc=no
6617 + fi
6618 + rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6619 + fi
6620 + fi
6621 + fi
6622 + echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6623 + echo "${ECHO_T}$ac_cv_header_stdc" >&6
6624 + if test $ac_cv_header_stdc = yes; then
6625 +
6626 + cat >>confdefs.h <<\_ACEOF
6627 + #define STDC_HEADERS 1
6628 + _ACEOF
6629 +
6630 + fi
6631 +
6632 + # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6633 +
6634 +
6635 +
6636 +
6637 +
6638 +
6639 +
6640 +
6641 +
6642 + for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6643 +                  inttypes.h stdint.h unistd.h
6644 + do
6645 + as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6646 + echo "$as_me:$LINENO: checking for $ac_header" >&5
6647 + echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6648 + if eval "test \"\${$as_ac_Header+set}\" = set"; then
6649 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6650 + else
6651 +  cat >conftest.$ac_ext <<_ACEOF
6652 + /* confdefs.h.  */
6653 + _ACEOF
6654 + cat confdefs.h >>conftest.$ac_ext
6655 + cat >>conftest.$ac_ext <<_ACEOF
6656 + /* end confdefs.h.  */
6657 + $ac_includes_default
6658 +
6659 + #include <$ac_header>
6660 + _ACEOF
6661 + rm -f conftest.$ac_objext
6662 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663 +  (eval $ac_compile) 2>conftest.er1
6664 +  ac_status=$?
6665 +  grep -v '^ *+' conftest.er1 >conftest.err
6666 +  rm -f conftest.er1
6667 +  cat conftest.err >&5
6668 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 +  (exit $ac_status); } &&
6670 +         { ac_try='test -z "$ac_c_werror_flag"
6671 +                         || test ! -s conftest.err'
6672 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 +  (eval $ac_try) 2>&5
6674 +  ac_status=$?
6675 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 +  (exit $ac_status); }; } &&
6677 +         { ac_try='test -s conftest.$ac_objext'
6678 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 +  (eval $ac_try) 2>&5
6680 +  ac_status=$?
6681 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 +  (exit $ac_status); }; }; then
6683 +  eval "$as_ac_Header=yes"
6684 + else
6685 +  echo "$as_me: failed program was:" >&5
6686 + sed 's/^/| /' conftest.$ac_ext >&5
6687 +
6688 + eval "$as_ac_Header=no"
6689 + fi
6690 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6691 + fi
6692 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6693 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6694 + if test `eval echo '${'$as_ac_Header'}'` = yes; then
6695 +  cat >>confdefs.h <<_ACEOF
6696 + #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6697 + _ACEOF
6698 +
6699 + fi
6700 +
6701 + done
6702 +
6703 +
6704 +
6705 +
6706 +
6707   # Check whether --with-sprng_prefix or --without-sprng_prefix was given.
6708   if test "${with_sprng_prefix+set}" = set; then
6709    withval="$with_sprng_prefix"
# Line 5155 | Line 6736 | fi;
6736      sprng_include=${sprng_prefix}/include
6737    fi
6738  
6739 <  echo "$as_me:5158: checking for SPRNG include files in $sprng_include" >&5
6739 >  echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include" >&5
6740   echo $ECHO_N "checking for SPRNG include files in $sprng_include... $ECHO_C" >&6
6741    if test -f ${sprng_include}/sprng.h; then
6742      have_sprngincl=yes
6743 <    echo "$as_me:5162: result: yes" >&5
6743 >    echo "$as_me:$LINENO: result: yes" >&5
6744   echo "${ECHO_T}yes" >&6
6745    else
6746      have_sprngincl=no
6747 <    echo "$as_me:5166: result: no" >&5
6747 >    echo "$as_me:$LINENO: result: no" >&5
6748   echo "${ECHO_T}no" >&6
6749 <    { { echo "$as_me:5168: error: Could not locate the SPRNG include files" >&5
6749 >    { { echo "$as_me:$LINENO: error: Could not locate the SPRNG include files" >&5
6750   echo "$as_me: error: Could not locate the SPRNG include files" >&2;}
6751     { (exit 1); exit 1; }; }
6752    fi
6753  
6754 <  echo "$as_me:5173: checking for SPRNG libraries in $sprng_libdir" >&5
6754 >  echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_libdir" >&5
6755   echo $ECHO_N "checking for SPRNG libraries in $sprng_libdir... $ECHO_C" >&6
6756    if test -f ${sprng_libdir}/libsprng.a; then
6757      have_sprnglib=yes
6758 <    echo "$as_me:5177: result: yes" >&5
6758 >    echo "$as_me:$LINENO: result: yes" >&5
6759   echo "${ECHO_T}yes" >&6
6760    else
6761      have_sprnglib=no
6762 <    echo "$as_me:5181: result: no" >&5
6762 >    echo "$as_me:$LINENO: result: no" >&5
6763   echo "${ECHO_T}no" >&6
6764 <    { { echo "$as_me:5183: error: Could not locate the SPRNG libraries" >&5
6764 >    { { echo "$as_me:$LINENO: error: Could not locate the SPRNG libraries" >&5
6765   echo "$as_me: error: Could not locate the SPRNG libraries" >&2;}
6766     { (exit 1); exit 1; }; }
6767    fi
6768  
6769 +
6770 +
6771    ac_ext=c
6772   ac_cpp='$CPP $CPPFLAGS'
6773   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5195 | Line 6778 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6778    CPPFLAGS="${CPPFLAGS} -I${sprng_include}"
6779    ac_save_LDFLAGS=$LDFLAGS
6780    LDFLAGS="${LDFLAGS} -L${sprng_libdir} -lsprng"
6781 <  echo "$as_me:5198: checking for sprng.h" >&5
6781 >  if test "${ac_cv_header_sprng_h+set}" = set; then
6782 >  echo "$as_me:$LINENO: checking for sprng.h" >&5
6783   echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6784   if test "${ac_cv_header_sprng_h+set}" = set; then
6785    echo $ECHO_N "(cached) $ECHO_C" >&6
6786 + fi
6787 + echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6788 + echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6789   else
6790 <  cat >conftest.$ac_ext <<_ACEOF
6791 < #line 5204 "configure"
6792 < #include "confdefs.h"
6790 >  # Is the header compilable?
6791 > echo "$as_me:$LINENO: checking sprng.h usability" >&5
6792 > echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6
6793 > cat >conftest.$ac_ext <<_ACEOF
6794 > /* confdefs.h.  */
6795 > _ACEOF
6796 > cat confdefs.h >>conftest.$ac_ext
6797 > cat >>conftest.$ac_ext <<_ACEOF
6798 > /* end confdefs.h.  */
6799 > $ac_includes_default
6800   #include <sprng.h>
6801   _ACEOF
6802 < if { (eval echo "$as_me:5208: \"$ac_cpp conftest.$ac_ext\"") >&5
6802 > rm -f conftest.$ac_objext
6803 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804 >  (eval $ac_compile) 2>conftest.er1
6805 >  ac_status=$?
6806 >  grep -v '^ *+' conftest.er1 >conftest.err
6807 >  rm -f conftest.er1
6808 >  cat conftest.err >&5
6809 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 >  (exit $ac_status); } &&
6811 >         { ac_try='test -z "$ac_c_werror_flag"
6812 >                         || test ! -s conftest.err'
6813 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 >  (eval $ac_try) 2>&5
6815 >  ac_status=$?
6816 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 >  (exit $ac_status); }; } &&
6818 >         { ac_try='test -s conftest.$ac_objext'
6819 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 >  (eval $ac_try) 2>&5
6821 >  ac_status=$?
6822 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 >  (exit $ac_status); }; }; then
6824 >  ac_header_compiler=yes
6825 > else
6826 >  echo "$as_me: failed program was:" >&5
6827 > sed 's/^/| /' conftest.$ac_ext >&5
6828 >
6829 > ac_header_compiler=no
6830 > fi
6831 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6832 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6833 > echo "${ECHO_T}$ac_header_compiler" >&6
6834 >
6835 > # Is the header present?
6836 > echo "$as_me:$LINENO: checking sprng.h presence" >&5
6837 > echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6
6838 > cat >conftest.$ac_ext <<_ACEOF
6839 > /* confdefs.h.  */
6840 > _ACEOF
6841 > cat confdefs.h >>conftest.$ac_ext
6842 > cat >>conftest.$ac_ext <<_ACEOF
6843 > /* end confdefs.h.  */
6844 > #include <sprng.h>
6845 > _ACEOF
6846 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6847    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6848    ac_status=$?
6849 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6849 >  grep -v '^ *+' conftest.er1 >conftest.err
6850    rm -f conftest.er1
6851    cat conftest.err >&5
6852 <  echo "$as_me:5214: \$? = $ac_status" >&5
6852 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853    (exit $ac_status); } >/dev/null; then
6854    if test -s conftest.err; then
6855      ac_cpp_err=$ac_c_preproc_warn_flag
6856 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6857    else
6858      ac_cpp_err=
6859    fi
# Line 5222 | Line 6861 | if test -z "$ac_cpp_err"; then
6861    ac_cpp_err=yes
6862   fi
6863   if test -z "$ac_cpp_err"; then
6864 <  ac_cv_header_sprng_h=yes
6864 >  ac_header_preproc=yes
6865   else
6866    echo "$as_me: failed program was:" >&5
6867 <  cat conftest.$ac_ext >&5
6868 <  ac_cv_header_sprng_h=no
6867 > sed 's/^/| /' conftest.$ac_ext >&5
6868 >
6869 >  ac_header_preproc=no
6870   fi
6871   rm -f conftest.err conftest.$ac_ext
6872 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6873 + echo "${ECHO_T}$ac_header_preproc" >&6
6874 +
6875 + # So?  What about this header?
6876 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6877 +  yes:no: )
6878 +    { echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5
6879 + echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6880 +    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the compiler's result" >&5
6881 + echo "$as_me: WARNING: sprng.h: proceeding with the compiler's result" >&2;}
6882 +    ac_header_preproc=yes
6883 +    ;;
6884 +  no:yes:* )
6885 +    { echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5
6886 + echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;}
6887 +    { echo "$as_me:$LINENO: WARNING: sprng.h:     check for missing prerequisite headers?" >&5
6888 + echo "$as_me: WARNING: sprng.h:     check for missing prerequisite headers?" >&2;}
6889 +    { echo "$as_me:$LINENO: WARNING: sprng.h: see the Autoconf documentation" >&5
6890 + echo "$as_me: WARNING: sprng.h: see the Autoconf documentation" >&2;}
6891 +    { echo "$as_me:$LINENO: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&5
6892 + echo "$as_me: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6893 +    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6894 + echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6895 +    { echo "$as_me:$LINENO: WARNING: sprng.h: in the future, the compiler will take precedence" >&5
6896 + echo "$as_me: WARNING: sprng.h: in the future, the compiler will take precedence" >&2;}
6897 +    (
6898 +      cat <<\_ASBOX
6899 + ## ------------------------------ ##
6900 + ## Report this to gezelter@nd.edu ##
6901 + ## ------------------------------ ##
6902 + _ASBOX
6903 +    ) |
6904 +      sed "s/^/$as_me: WARNING:     /" >&2
6905 +    ;;
6906 + esac
6907 + echo "$as_me:$LINENO: checking for sprng.h" >&5
6908 + echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6909 + if test "${ac_cv_header_sprng_h+set}" = set; then
6910 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6911 + else
6912 +  ac_cv_header_sprng_h=$ac_header_preproc
6913   fi
6914 < echo "$as_me:5233: result: $ac_cv_header_sprng_h" >&5
6914 > echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6915   echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6916 +
6917 + fi
6918   if test $ac_cv_header_sprng_h = yes; then
6919  
6920 <    echo "$as_me:5237: checking for init_rng in -lsprng" >&5
6920 >    echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5
6921   echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6
6922   if test "${ac_cv_lib_sprng_init_rng+set}" = set; then
6923    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5242 | Line 6925 | cat >conftest.$ac_ext <<_ACEOF
6925    ac_check_lib_save_LIBS=$LIBS
6926   LIBS="-lsprng  $LIBS"
6927   cat >conftest.$ac_ext <<_ACEOF
6928 < #line 5245 "configure"
6929 < #include "confdefs.h"
6928 > /* confdefs.h.  */
6929 > _ACEOF
6930 > cat confdefs.h >>conftest.$ac_ext
6931 > cat >>conftest.$ac_ext <<_ACEOF
6932 > /* end confdefs.h.  */
6933  
6934   /* Override any gcc2 internal prototype to avoid an error.  */
6935   #ifdef __cplusplus
# Line 5261 | Line 6947 | if { (eval echo "$as_me:5264: \"$ac_link\"") >&5
6947   }
6948   _ACEOF
6949   rm -f conftest.$ac_objext conftest$ac_exeext
6950 < if { (eval echo "$as_me:5264: \"$ac_link\"") >&5
6951 <  (eval $ac_link) 2>&5
6950 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6951 >  (eval $ac_link) 2>conftest.er1
6952    ac_status=$?
6953 <  echo "$as_me:5267: \$? = $ac_status" >&5
6953 >  grep -v '^ *+' conftest.er1 >conftest.err
6954 >  rm -f conftest.er1
6955 >  cat conftest.err >&5
6956 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957    (exit $ac_status); } &&
6958 <         { ac_try='test -s conftest$ac_exeext'
6959 <  { (eval echo "$as_me:5270: \"$ac_try\"") >&5
6958 >         { ac_try='test -z "$ac_c_werror_flag"
6959 >                         || test ! -s conftest.err'
6960 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961    (eval $ac_try) 2>&5
6962    ac_status=$?
6963 <  echo "$as_me:5273: \$? = $ac_status" >&5
6963 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 >  (exit $ac_status); }; } &&
6965 >         { ac_try='test -s conftest$ac_exeext'
6966 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 >  (eval $ac_try) 2>&5
6968 >  ac_status=$?
6969 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970    (exit $ac_status); }; }; then
6971    ac_cv_lib_sprng_init_rng=yes
6972   else
6973    echo "$as_me: failed program was:" >&5
6974 < cat conftest.$ac_ext >&5
6974 > sed 's/^/| /' conftest.$ac_ext >&5
6975 >
6976   ac_cv_lib_sprng_init_rng=no
6977   fi
6978 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6978 > rm -f conftest.err conftest.$ac_objext \
6979 >      conftest$ac_exeext conftest.$ac_ext
6980   LIBS=$ac_check_lib_save_LIBS
6981   fi
6982 < echo "$as_me:5284: result: $ac_cv_lib_sprng_init_rng" >&5
6982 > echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
6983   echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
6984   if test $ac_cv_lib_sprng_init_rng = yes; then
6985    SPRNG_LIBDIR="${sprng_libdir}"
# Line 5291 | Line 6989 | fi
6989  
6990   fi
6991  
6992 +
6993    CPPFLAGS=$ac_save_CPPFLAGS
6994    LDFLAGS=$ac_save_LDFLAGS
6995 <  ac_ext=f90
6996 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6997 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6995 >  ac_ext=c
6996 > ac_cpp='$CPP $CPPFLAGS'
6997 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6998 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6999 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
7000  
7001 +
7002    if test x_$HAVE_SPRNG != x_yes; then
7003 <        { { echo "$as_me:5302: error: Can't build with SPRNG" >&5
7003 >        { { echo "$as_me:$LINENO: error: Can't build with SPRNG" >&5
7004   echo "$as_me: error: Can't build with SPRNG" >&2;}
7005     { (exit 1); exit 1; }; }
7006    fi
7007  
7008 < echo "$as_me:5307: checking if MKL is wanted" >&5
7008 >
7009 >
7010 >
7011 >
7012 > echo "$as_me:$LINENO: checking if MKL is wanted" >&5
7013   echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6
7014  
7015   # Check whether --with-mkl or --without-mkl was given.
7016   if test "${with_mkl+set}" = set; then
7017    withval="$with_mkl"
7018 <     echo "$as_me:5313: result: yes" >&5
7018 >     echo "$as_me:$LINENO: result: yes" >&5
7019   echo "${ECHO_T}yes" >&6
7020 <    for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do
7020 >    for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do
7021          mkldir="$dir"
7022          if test -f "$dir/include/mkl.h"; then
7023              found_mkl="yes";
# Line 5320 | Line 7025 | echo "${ECHO_T}yes" >&6
7025          fi
7026      done
7027      if test x_$found_mkl != x_yes; then
7028 <        { { echo "$as_me:5323: error: Cannot find MKL includes" >&5
7028 >        { { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5
7029   echo "$as_me: error: Cannot find MKL includes" >&2;}
7030     { (exit 1); exit 1; }; }
7031      else
7032          printf "MKL includes found in $mkldir/include\n";
7033      fi
7034  
7035 +
7036 +
7037    ac_ext=c
7038   ac_cpp='$CPP $CPPFLAGS'
7039   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5337 | Line 7044 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
7044    CPPFLAGS="${CPPFLAGS} -I${mkldir}/include"
7045    ac_save_LDFLAGS=$LDFLAGS
7046    LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide"
7047 <  echo "$as_me:5340: checking for mkl.h" >&5
7047 >  if test "${ac_cv_header_mkl_h+set}" = set; then
7048 >  echo "$as_me:$LINENO: checking for mkl.h" >&5
7049   echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
7050   if test "${ac_cv_header_mkl_h+set}" = set; then
7051    echo $ECHO_N "(cached) $ECHO_C" >&6
7052 + fi
7053 + echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
7054 + echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
7055   else
7056 <  cat >conftest.$ac_ext <<_ACEOF
7057 < #line 5346 "configure"
7058 < #include "confdefs.h"
7056 >  # Is the header compilable?
7057 > echo "$as_me:$LINENO: checking mkl.h usability" >&5
7058 > echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
7059 > cat >conftest.$ac_ext <<_ACEOF
7060 > /* confdefs.h.  */
7061 > _ACEOF
7062 > cat confdefs.h >>conftest.$ac_ext
7063 > cat >>conftest.$ac_ext <<_ACEOF
7064 > /* end confdefs.h.  */
7065 > $ac_includes_default
7066   #include <mkl.h>
7067   _ACEOF
7068 < if { (eval echo "$as_me:5350: \"$ac_cpp conftest.$ac_ext\"") >&5
7068 > rm -f conftest.$ac_objext
7069 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7070 >  (eval $ac_compile) 2>conftest.er1
7071 >  ac_status=$?
7072 >  grep -v '^ *+' conftest.er1 >conftest.err
7073 >  rm -f conftest.er1
7074 >  cat conftest.err >&5
7075 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 >  (exit $ac_status); } &&
7077 >         { ac_try='test -z "$ac_c_werror_flag"
7078 >                         || test ! -s conftest.err'
7079 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 >  (eval $ac_try) 2>&5
7081 >  ac_status=$?
7082 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 >  (exit $ac_status); }; } &&
7084 >         { ac_try='test -s conftest.$ac_objext'
7085 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 >  (eval $ac_try) 2>&5
7087 >  ac_status=$?
7088 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 >  (exit $ac_status); }; }; then
7090 >  ac_header_compiler=yes
7091 > else
7092 >  echo "$as_me: failed program was:" >&5
7093 > sed 's/^/| /' conftest.$ac_ext >&5
7094 >
7095 > ac_header_compiler=no
7096 > fi
7097 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7098 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7099 > echo "${ECHO_T}$ac_header_compiler" >&6
7100 >
7101 > # Is the header present?
7102 > echo "$as_me:$LINENO: checking mkl.h presence" >&5
7103 > echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
7104 > cat >conftest.$ac_ext <<_ACEOF
7105 > /* confdefs.h.  */
7106 > _ACEOF
7107 > cat confdefs.h >>conftest.$ac_ext
7108 > cat >>conftest.$ac_ext <<_ACEOF
7109 > /* end confdefs.h.  */
7110 > #include <mkl.h>
7111 > _ACEOF
7112 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7113    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7114    ac_status=$?
7115 <  egrep -v '^ *\+' conftest.er1 >conftest.err
7115 >  grep -v '^ *+' conftest.er1 >conftest.err
7116    rm -f conftest.er1
7117    cat conftest.err >&5
7118 <  echo "$as_me:5356: \$? = $ac_status" >&5
7118 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119    (exit $ac_status); } >/dev/null; then
7120    if test -s conftest.err; then
7121      ac_cpp_err=$ac_c_preproc_warn_flag
7122 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7123    else
7124      ac_cpp_err=
7125    fi
# Line 5364 | Line 7127 | if test -z "$ac_cpp_err"; then
7127    ac_cpp_err=yes
7128   fi
7129   if test -z "$ac_cpp_err"; then
7130 <  ac_cv_header_mkl_h=yes
7130 >  ac_header_preproc=yes
7131   else
7132    echo "$as_me: failed program was:" >&5
7133 <  cat conftest.$ac_ext >&5
7134 <  ac_cv_header_mkl_h=no
7133 > sed 's/^/| /' conftest.$ac_ext >&5
7134 >
7135 >  ac_header_preproc=no
7136   fi
7137   rm -f conftest.err conftest.$ac_ext
7138 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7139 + echo "${ECHO_T}$ac_header_preproc" >&6
7140 +
7141 + # So?  What about this header?
7142 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7143 +  yes:no: )
7144 +    { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7145 + echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7146 +    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5
7147 + echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;}
7148 +    ac_header_preproc=yes
7149 +    ;;
7150 +  no:yes:* )
7151 +    { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
7152 + echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
7153 +    { echo "$as_me:$LINENO: WARNING: mkl.h:     check for missing prerequisite headers?" >&5
7154 + echo "$as_me: WARNING: mkl.h:     check for missing prerequisite headers?" >&2;}
7155 +    { echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5
7156 + echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;}
7157 +    { echo "$as_me:$LINENO: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&5
7158 + echo "$as_me: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7159 +    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
7160 + echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
7161 +    { echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5
7162 + echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;}
7163 +    (
7164 +      cat <<\_ASBOX
7165 + ## ------------------------------ ##
7166 + ## Report this to gezelter@nd.edu ##
7167 + ## ------------------------------ ##
7168 + _ASBOX
7169 +    ) |
7170 +      sed "s/^/$as_me: WARNING:     /" >&2
7171 +    ;;
7172 + esac
7173 + echo "$as_me:$LINENO: checking for mkl.h" >&5
7174 + echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
7175 + if test "${ac_cv_header_mkl_h+set}" = set; then
7176 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7177 + else
7178 +  ac_cv_header_mkl_h=$ac_header_preproc
7179   fi
7180 < echo "$as_me:5375: result: $ac_cv_header_mkl_h" >&5
7180 > echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
7181   echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
7182 +
7183 + fi
7184   if test $ac_cv_header_mkl_h = yes; then
7185  
7186 <    echo "$as_me:5379: checking for vslNewStream in -lmkl" >&5
7186 >    echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5
7187   echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6
7188   if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then
7189    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5384 | Line 7191 | cat >conftest.$ac_ext <<_ACEOF
7191    ac_check_lib_save_LIBS=$LIBS
7192   LIBS="-lmkl  $LIBS"
7193   cat >conftest.$ac_ext <<_ACEOF
7194 < #line 5387 "configure"
7195 < #include "confdefs.h"
7194 > /* confdefs.h.  */
7195 > _ACEOF
7196 > cat confdefs.h >>conftest.$ac_ext
7197 > cat >>conftest.$ac_ext <<_ACEOF
7198 > /* end confdefs.h.  */
7199  
7200   /* Override any gcc2 internal prototype to avoid an error.  */
7201   #ifdef __cplusplus
# Line 5403 | Line 7213 | if { (eval echo "$as_me:5406: \"$ac_link\"") >&5
7213   }
7214   _ACEOF
7215   rm -f conftest.$ac_objext conftest$ac_exeext
7216 < if { (eval echo "$as_me:5406: \"$ac_link\"") >&5
7217 <  (eval $ac_link) 2>&5
7216 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7217 >  (eval $ac_link) 2>conftest.er1
7218    ac_status=$?
7219 <  echo "$as_me:5409: \$? = $ac_status" >&5
7219 >  grep -v '^ *+' conftest.er1 >conftest.err
7220 >  rm -f conftest.er1
7221 >  cat conftest.err >&5
7222 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223    (exit $ac_status); } &&
7224 <         { ac_try='test -s conftest$ac_exeext'
7225 <  { (eval echo "$as_me:5412: \"$ac_try\"") >&5
7224 >         { ac_try='test -z "$ac_c_werror_flag"
7225 >                         || test ! -s conftest.err'
7226 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227    (eval $ac_try) 2>&5
7228    ac_status=$?
7229 <  echo "$as_me:5415: \$? = $ac_status" >&5
7229 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 >  (exit $ac_status); }; } &&
7231 >         { ac_try='test -s conftest$ac_exeext'
7232 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 >  (eval $ac_try) 2>&5
7234 >  ac_status=$?
7235 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236    (exit $ac_status); }; }; then
7237    ac_cv_lib_mkl_vslNewStream=yes
7238   else
7239    echo "$as_me: failed program was:" >&5
7240 < cat conftest.$ac_ext >&5
7240 > sed 's/^/| /' conftest.$ac_ext >&5
7241 >
7242   ac_cv_lib_mkl_vslNewStream=no
7243   fi
7244 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7244 > rm -f conftest.err conftest.$ac_objext \
7245 >      conftest$ac_exeext conftest.$ac_ext
7246   LIBS=$ac_check_lib_save_LIBS
7247   fi
7248 < echo "$as_me:5426: result: $ac_cv_lib_mkl_vslNewStream" >&5
7248 > echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
7249   echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6
7250   if test $ac_cv_lib_mkl_vslNewStream = yes; then
7251    MKL_LIBDIR="${mkldir}/lib/32",
# Line 5431 | Line 7253 | else
7253                       HAVE_MKL="yes"
7254   fi
7255  
7256 +
7257   else
7258    MKL_INC="-I${mkldir}/include"
7259   fi
7260  
7261 +
7262    CPPFLAGS=$ac_save_CPPFLAGS
7263    LDFLAGS=$ac_save_LDFLAGS
7264 <  ac_ext=f90
7265 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
7266 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
7264 >  ac_ext=c
7265 > ac_cpp='$CPP $CPPFLAGS'
7266 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269  
7270 +
7271    if test x_$HAVE_MKL != x_yes; then
7272 <        { { echo "$as_me:5446: error: Can't build with MKL" >&5
7272 >        { { echo "$as_me:$LINENO: error: Can't build with MKL" >&5
7273   echo "$as_me: error: Can't build with MKL" >&2;}
7274     { (exit 1); exit 1; }; }
7275    fi
7276  
5451 else
7277  
5453    echo "$as_me:5453: result: no" >&5
5454 echo "${ECHO_T}no" >&6
7278  
5456 fi;
7279  
5458 # Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given.
5459 if test "${with_mpi_f90_mods+set}" = set; then
5460  withval="$with_mpi_f90_mods"
5461  mpi_f90_mods="$withval"
5462 else
5463  mpi_f90_mods="/usr/local/include/f90choice"
5464 fi;
7280  
5466  echo "$as_me:5466: checking for MPI F90 modules" >&5
5467 echo $ECHO_N "checking for MPI F90 modules... $ECHO_C" >&6
5468
5469  ac_ext=f90
5470 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5471 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5472 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5473
5474  ac_save_F90FLAGS=$F90FLAGS
5475
5476  if test "$mpi_f90_mods"; then
5477  F90FLAGS="${F90FLAGS} ${MODDIRFLAG}${mpi_f90_mods}"
5478 fi
5479
5480    cat >conftest.$ac_ext <<_ACEOF
5481
5482 program main
5483
5484 use mpi
5485 integer :: ierr
5486 call MPI_Init(ierr)
5487
5488 end program main
5489
5490 _ACEOF
5491 rm -f conftest.$ac_objext
5492 if { (eval echo "$as_me:5492: \"$ac_compile\"") >&5
5493  (eval $ac_compile) 2>&5
5494  ac_status=$?
5495  echo "$as_me:5495: \$? = $ac_status" >&5
5496  (exit $ac_status); } &&
5497         { ac_try='test -s conftest.$ac_objext'
5498  { (eval echo "$as_me:5498: \"$ac_try\"") >&5
5499  (eval $ac_try) 2>&5
5500  ac_status=$?
5501  echo "$as_me:5501: \$? = $ac_status" >&5
5502  (exit $ac_status); }; }; then
5503  HAVE_MPI_MOD=1
7281   else
5505  echo "$as_me: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5507 HAVE_MPI_MOD=0
5508 fi
5509 rm -f conftest.$ac_objext conftest.$ac_ext
7282  
7283 <  F90FLAGS=$ac_save_F90FLAGS
7284 <  ac_ext=f90
5513 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5514 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
7283 >    echo "$as_me:$LINENO: result: no" >&5
7284 > echo "${ECHO_T}no" >&6
7285  
7286 <  if test "$HAVE_MPI_MOD" = 1; then
5518 <    echo "$as_me:5518: result: yes" >&5
5519 < echo "${ECHO_T}yes" >&6
7286 > fi;
7287  
5521 cat >>confdefs.h <<\EOF
5522 #define MPI_MOD 1
5523 EOF
7288  
5525    MPI_F90_MODS="${mpi_f90_mods}"
7289  
5527    # The library name:
5528    if test -z "$MPI_LIB" ; then
5529       MPI_LIBNAME=-lmpich
5530    else
5531       MPI_LIBNAME="$MPI_LIB"
5532    fi
5533    if test -z "$MPIMODLIBNAME" ; then
5534       MPIMODLIBNAME="${MPI_LIBNAME}f90"
5535    fi
7290  
5537  else
5538    echo "$as_me:5538: result: no" >&5
5539 echo "${ECHO_T}no" >&6
5540    { { echo "$as_me:5540: error: Couldn't locate MPI F90 Modules" >&5
5541 echo "$as_me: error: Couldn't locate MPI F90 Modules" >&2;}
5542   { (exit 1); exit 1; }; }
5543  fi
7291  
7292   OBJEXT=".$OBJEXT"
7293  
# Line 5565 | Line 7312 | SUBDIRS="libBASS libmdtools src forceFields samples ut
7312  
7313   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
7314  
7315 < SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps"
7315 > SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps third-party "
7316  
7317   CFLAGS=${CFLAGS-""}
7318   CXXFLAGS=${CXXFLAGS-""}
# Line 5584 | Line 7331 | ac_config_headers="$ac_config_headers libmdtools/confi
7331       ;;
7332   esac
7333  
5587 ac_config_headers="$ac_config_headers libmdtools/config.h"
7334  
5589 ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile staticProps/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile"
7335  
7336 +
7337 +
7338 +
7339 +
7340 +
7341 +
7342 +
7343 +
7344 +
7345 +
7346 +
7347 +
7348 +
7349 +
7350 +                    ac_config_headers="$ac_config_headers libBASS/config.h libmdtools/config.h"
7351 +
7352 +                                                                                                                                                                ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile staticProps/Makefile third-party/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile"
7353 +
7354 +
7355   cat >confcache <<\_ACEOF
7356   # This file is a shell script that caches the results of configure
7357   # tests run on this system so they can be shared between configure
# Line 5598 | Line 7362 | cat >confcache <<\_ACEOF
7362   # config.status only pays attention to the cache file if you give it
7363   # the --recheck option to rerun configure.
7364   #
7365 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
7365 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
7366   # loading this file, other *unset* `ac_cv_foo' will be assigned the
7367   # following values.
7368  
# Line 5616 | Line 7380 | _ACEOF
7380        # `set' does not quote correctly, so add quotes (double-quote
7381        # substitution turns \\\\ into \\, and sed turns \\ into \).
7382        sed -n \
7383 <        "s/'/'\\\\''/g;
7384 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7383 >        "s/'/'\\\\''/g;
7384 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7385        ;;
7386      *)
7387        # `set' quotes correctly as required by POSIX, so do not add quotes.
7388        sed -n \
7389 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7389 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7390        ;;
7391      esac;
7392   } |
# Line 5633 | Line 7397 | if cmp -s $cache_file confcache; then :; else
7397       t end
7398       /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7399       : end' >>confcache
7400 < if cmp -s $cache_file confcache; then :; else
7400 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
7401    if test -w $cache_file; then
7402      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7403      cat confcache >$cache_file
# Line 5652 | Line 7416 | if test "x$srcdir" = x.; then
7416   # trailing colons and then remove the whole line if VPATH becomes empty
7417   # (actually we leave an empty line to preserve line numbers).
7418   if test "x$srcdir" = x.; then
7419 <  ac_vpsub='/^[         ]*VPATH[        ]*=/{
7419 >  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7420   s/:*\$(srcdir):*/:/;
7421   s/:*\${srcdir}:*/:/;
7422   s/:*@srcdir@:*/:/;
7423 < s/^\([^=]*=[    ]*\):*/\1/;
7423 > s/^\([^=]*=[     ]*\):*/\1/;
7424   s/:*$//;
7425 < s/^[^=]*=[      ]*$//;
7425 > s/^[^=]*=[       ]*$//;
7426   }'
7427   fi
7428  
7429   DEFS=-DHAVE_CONFIG_H
7430  
7431 + ac_libobjs=
7432 + ac_ltlibobjs=
7433 + for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7434 +  # 1. Remove the extension, and $U if already installed.
7435 +  ac_i=`echo "$ac_i" |
7436 +         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7437 +  # 2. Add them.
7438 +  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7439 +  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7440 + done
7441 + LIBOBJS=$ac_libobjs
7442 +
7443 + LTLIBOBJS=$ac_ltlibobjs
7444 +
7445 +
7446 +
7447   : ${CONFIG_STATUS=./config.status}
7448   ac_clean_files_save=$ac_clean_files
7449   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7450 < { echo "$as_me:5670: creating $CONFIG_STATUS" >&5
7450 > { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7451   echo "$as_me: creating $CONFIG_STATUS" >&6;}
7452   cat >$CONFIG_STATUS <<_ACEOF
7453   #! $SHELL
7454 < # Generated automatically by configure.
7454 > # Generated by $as_me.
7455   # Run this file to recreate the current configuration.
7456   # Compiler output produced by configure, useful for debugging
7457   # configure, is in config.log if it exists.
7458  
7459   debug=false
7460 + ac_cs_recheck=false
7461 + ac_cs_silent=false
7462   SHELL=\${CONFIG_SHELL-$SHELL}
5681 ac_cs_invocation="\$0 \$@"
5682
7463   _ACEOF
7464  
7465   cat >>$CONFIG_STATUS <<\_ACEOF
7466 + ## --------------------- ##
7467 + ## M4sh Initialization.  ##
7468 + ## --------------------- ##
7469 +
7470   # Be Bourne compatible
7471   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7472    emulate sh
7473    NULLCMD=:
7474 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7475 +  # is contrary to our usage.  Disable this feature.
7476 +  alias -g '${1+"$@"}'='"$@"'
7477   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7478    set -o posix
7479   fi
7480 + DUALCASE=1; export DUALCASE # for MKS sh
7481  
7482 + # Support unset when possible.
7483 + if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7484 +  as_unset=unset
7485 + else
7486 +  as_unset=false
7487 + fi
7488 +
7489 +
7490 + # Work around bugs in pre-3.0 UWIN ksh.
7491 + $as_unset ENV MAIL MAILPATH
7492 + PS1='$ '
7493 + PS2='> '
7494 + PS4='+ '
7495 +
7496 + # NLS nuisances.
7497 + for as_var in \
7498 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7499 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7500 +  LC_TELEPHONE LC_TIME
7501 + do
7502 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7503 +    eval $as_var=C; export $as_var
7504 +  else
7505 +    $as_unset $as_var
7506 +  fi
7507 + done
7508 +
7509 + # Required to use basename.
7510 + if expr a : '\(a\)' >/dev/null 2>&1; then
7511 +  as_expr=expr
7512 + else
7513 +  as_expr=false
7514 + fi
7515 +
7516 + if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7517 +  as_basename=basename
7518 + else
7519 +  as_basename=false
7520 + fi
7521 +
7522 +
7523   # Name of the executable.
7524 < as_me=`echo "$0" |sed 's,.*[\\/],,'`
7524 > as_me=`$as_basename "$0" ||
7525 > $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7526 >         X"$0" : 'X\(//\)$' \| \
7527 >         X"$0" : 'X\(/\)$' \| \
7528 >         .     : '\(.\)' 2>/dev/null ||
7529 > echo X/"$0" |
7530 >    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7531 >          /^X\/\(\/\/\)$/{ s//\1/; q; }
7532 >          /^X\/\(\/\).*/{ s//\1/; q; }
7533 >          s/.*/./; q'`
7534  
7535 +
7536 + # PATH needs CR, and LINENO needs CR and PATH.
7537 + # Avoid depending upon Character Ranges.
7538 + as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7539 + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7540 + as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7541 + as_cr_digits='0123456789'
7542 + as_cr_alnum=$as_cr_Letters$as_cr_digits
7543 +
7544 + # The user is always right.
7545 + if test "${PATH_SEPARATOR+set}" != set; then
7546 +  echo "#! /bin/sh" >conf$$.sh
7547 +  echo  "exit 0"   >>conf$$.sh
7548 +  chmod +x conf$$.sh
7549 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7550 +    PATH_SEPARATOR=';'
7551 +  else
7552 +    PATH_SEPARATOR=:
7553 +  fi
7554 +  rm -f conf$$.sh
7555 + fi
7556 +
7557 +
7558 +  as_lineno_1=$LINENO
7559 +  as_lineno_2=$LINENO
7560 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7561 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
7562 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7563 +  # Find who we are.  Look in the path if we contain no path at all
7564 +  # relative or not.
7565 +  case $0 in
7566 +    *[\\/]* ) as_myself=$0 ;;
7567 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 + for as_dir in $PATH
7569 + do
7570 +  IFS=$as_save_IFS
7571 +  test -z "$as_dir" && as_dir=.
7572 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7573 + done
7574 +
7575 +       ;;
7576 +  esac
7577 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
7578 +  # in which case we are not to be found in the path.
7579 +  if test "x$as_myself" = x; then
7580 +    as_myself=$0
7581 +  fi
7582 +  if test ! -f "$as_myself"; then
7583 +    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7584 + echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7585 +   { (exit 1); exit 1; }; }
7586 +  fi
7587 +  case $CONFIG_SHELL in
7588 +  '')
7589 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 + for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7591 + do
7592 +  IFS=$as_save_IFS
7593 +  test -z "$as_dir" && as_dir=.
7594 +  for as_base in sh bash ksh sh5; do
7595 +         case $as_dir in
7596 +         /*)
7597 +           if ("$as_dir/$as_base" -c '
7598 +  as_lineno_1=$LINENO
7599 +  as_lineno_2=$LINENO
7600 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7601 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
7602 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7603 +             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7604 +             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7605 +             CONFIG_SHELL=$as_dir/$as_base
7606 +             export CONFIG_SHELL
7607 +             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7608 +           fi;;
7609 +         esac
7610 +       done
7611 + done
7612 + ;;
7613 +  esac
7614 +
7615 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7616 +  # uniformly replaced by the line number.  The first 'sed' inserts a
7617 +  # line-number line before each line; the second 'sed' does the real
7618 +  # work.  The second script uses 'N' to pair each line-number line
7619 +  # with the numbered line, and appends trailing '-' during
7620 +  # substitution so that $LINENO is not a special case at line end.
7621 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7622 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7623 +  sed '=' <$as_myself |
7624 +    sed '
7625 +      N
7626 +      s,$,-,
7627 +      : loop
7628 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7629 +      t loop
7630 +      s,-$,,
7631 +      s,^['$as_cr_digits']*\n,,
7632 +    ' >$as_me.lineno &&
7633 +  chmod +x $as_me.lineno ||
7634 +    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7635 + echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7636 +   { (exit 1); exit 1; }; }
7637 +
7638 +  # Don't try to exec as it changes $[0], causing all sort of problems
7639 +  # (the dirname of $[0] is not the place where we might find the
7640 +  # original and so on.  Autoconf is especially sensible to this).
7641 +  . ./$as_me.lineno
7642 +  # Exit status is that of the last command.
7643 +  exit
7644 + }
7645 +
7646 +
7647 + case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7648 +  *c*,-n*) ECHO_N= ECHO_C='
7649 + ' ECHO_T='      ' ;;
7650 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7651 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7652 + esac
7653 +
7654   if expr a : '\(a\)' >/dev/null 2>&1; then
7655    as_expr=expr
7656   else
# Line 5718 | Line 7675 | as_executable_p="test -f"
7675   fi
7676   rm -f conf$$ conf$$.exe conf$$.file
7677  
7678 < as_executable_p="test -f"
7679 <
5723 < # Support unset when possible.
5724 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5725 <  as_unset=unset
7678 > if mkdir -p . 2>/dev/null; then
7679 >  as_mkdir_p=:
7680   else
7681 <  as_unset=false
7681 >  test -d ./-p && rmdir ./-p
7682 >  as_mkdir_p=false
7683   fi
7684  
7685 < # NLS nuisances.
5731 < $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5732 < $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5733 < $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5734 < $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5735 < $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5736 < $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5737 < $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5738 < $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7685 > as_executable_p="test -f"
7686  
7687 + # Sed expression to map a string onto a valid CPP name.
7688 + as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7689 +
7690 + # Sed expression to map a string onto a valid variable name.
7691 + as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7692 +
7693 +
7694   # IFS
7695   # We need space, tab and new line, in precisely that order.
7696   as_nl='
# Line 5744 | Line 7698 | $as_unset CDPATH || test "${CDPATH+set}" != set || { C
7698   IFS="   $as_nl"
7699  
7700   # CDPATH.
7701 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7701 > $as_unset CDPATH
7702  
7703   exec 6>&1
7704  
7705 + # Open the log real soon, to keep \$[0] and so on meaningful, and to
7706 + # report actual input values of CONFIG_FILES etc. instead of their
7707 + # values after options handling.  Logging --version etc. is OK.
7708 + exec 5>>config.log
7709 + {
7710 +  echo
7711 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7712 + ## Running $as_me. ##
7713 + _ASBOX
7714 + } >&5
7715 + cat >&5 <<_CSEOF
7716 +
7717 + This file was extended by OOPSE $as_me 1.0, which was
7718 + generated by GNU Autoconf 2.59.  Invocation command line was
7719 +
7720 +  CONFIG_FILES    = $CONFIG_FILES
7721 +  CONFIG_HEADERS  = $CONFIG_HEADERS
7722 +  CONFIG_LINKS    = $CONFIG_LINKS
7723 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
7724 +  $ $0 $@
7725 +
7726 + _CSEOF
7727 + echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7728 + echo >&5
7729   _ACEOF
7730  
7731   # Files that config.status was made for.
# Line 5767 | Line 7745 | cat >>$CONFIG_STATUS <<\EOF
7745    echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7746   fi
7747  
7748 < cat >>$CONFIG_STATUS <<\EOF
7748 > cat >>$CONFIG_STATUS <<\_ACEOF
7749  
7750   ac_cs_usage="\
7751   \`$as_me' instantiates files from templates according to the
# Line 5777 | Line 7755 | Usage: $0 [OPTIONS] [FILE]...
7755  
7756    -h, --help       print this help, then exit
7757    -V, --version    print version number, then exit
7758 +  -q, --quiet      do not print progress messages
7759    -d, --debug      don't remove temporary files
7760        --recheck    update $as_me by reconfiguring in the same conditions
7761    --file=FILE[:TEMPLATE]
7762 <                   instantiate the configuration file FILE
7762 >                   instantiate the configuration file FILE
7763    --header=FILE[:TEMPLATE]
7764 <                   instantiate the configuration header FILE
7764 >                   instantiate the configuration header FILE
7765  
7766   Configuration files:
7767   $config_files
# Line 5791 | Line 7770 | EOF
7770   $config_headers
7771  
7772   Report bugs to <bug-autoconf@gnu.org>."
7773 < EOF
7773 > _ACEOF
7774  
7775 < cat >>$CONFIG_STATUS <<EOF
7775 > cat >>$CONFIG_STATUS <<_ACEOF
7776   ac_cs_version="\\
7777   OOPSE config.status 1.0
7778 < configured by $0, generated by GNU Autoconf 2.50,
7778 > configured by $0, generated by GNU Autoconf 2.59,
7779    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7780  
7781 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5803 < Free Software Foundation, Inc.
7781 > Copyright (C) 2003 Free Software Foundation, Inc.
7782   This config.status script is free software; the Free Software Foundation
7783   gives unlimited permission to copy, distribute and modify it."
7784   srcdir=$srcdir
7785   INSTALL="$INSTALL"
7786 < EOF
7786 > _ACEOF
7787  
7788 < cat >>$CONFIG_STATUS <<\EOF
7788 > cat >>$CONFIG_STATUS <<\_ACEOF
7789   # If no file are specified by the user, then we need to provide default
7790   # value.  By we need to know if files were specified by the user.
7791   ac_need_defaults=:
# Line 5817 | Line 7795 | do
7795    --*=*)
7796      ac_option=`expr "x$1" : 'x\([^=]*\)='`
7797      ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7798 <    shift
5821 <    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5822 <    shift
7798 >    ac_shift=:
7799      ;;
7800 <  -*);;
7800 >  -*)
7801 >    ac_option=$1
7802 >    ac_optarg=$2
7803 >    ac_shift=shift
7804 >    ;;
7805    *) # This is not an option, so the user has probably given explicit
7806       # arguments.
7807 +     ac_option=$1
7808       ac_need_defaults=false;;
7809    esac
7810  
7811 <  case $1 in
7811 >  case $ac_option in
7812    # Handling of the options.
7813 < EOF
7814 < cat >>$CONFIG_STATUS <<EOF
7813 > _ACEOF
7814 > cat >>$CONFIG_STATUS <<\_ACEOF
7815    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7816 <    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5836 <    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5837 < EOF
5838 < cat >>$CONFIG_STATUS <<\EOF
7816 >    ac_cs_recheck=: ;;
7817    --version | --vers* | -V )
7818      echo "$ac_cs_version"; exit 0 ;;
7819    --he | --h)
7820      # Conflict between --help and --header
7821 <    { { echo "$as_me:5843: error: ambiguous option: $1
7821 >    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7822   Try \`$0 --help' for more information." >&5
7823   echo "$as_me: error: ambiguous option: $1
7824   Try \`$0 --help' for more information." >&2;}
# Line 5850 | Line 7828 | Try \`$0 --help' for more information." >&2;}
7828    --debug | --d* | -d )
7829      debug=: ;;
7830    --file | --fil | --fi | --f )
7831 <    shift
7832 <    CONFIG_FILES="$CONFIG_FILES $1"
7831 >    $ac_shift
7832 >    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7833      ac_need_defaults=false;;
7834    --header | --heade | --head | --hea )
7835 <    shift
7836 <    CONFIG_HEADERS="$CONFIG_HEADERS $1"
7835 >    $ac_shift
7836 >    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7837      ac_need_defaults=false;;
7838 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7839 +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7840 +    ac_cs_silent=: ;;
7841  
5861  # Handling of arguments.
5862  'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5863  'libBASS/Makefile' ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;;
5864  'libmdtools/Makefile' ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;;
5865  'src/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5866  'utils/Makefile' ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
5867  'utils/sysbuilder/Makefile' ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
5868  'forceFields/Makefile' ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
5869  'samples/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
5870  'staticProps/Makefile' ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
5871  'samples/alkane/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
5872  'samples/argon/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
5873  'samples/beadLipid/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
5874  'samples/lipid/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
5875  'samples/metals/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
5876  'samples/water/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
5877  'libmdtools/config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
5878
7842    # This is an error.
7843 <  -*) { { echo "$as_me:5880: error: unrecognized option: $1
7843 >  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7844   Try \`$0 --help' for more information." >&5
7845   echo "$as_me: error: unrecognized option: $1
7846   Try \`$0 --help' for more information." >&2;}
7847     { (exit 1); exit 1; }; } ;;
7848 <  *) { { echo "$as_me:5885: error: invalid argument: $1" >&5
7849 < echo "$as_me: error: invalid argument: $1" >&2;}
7850 <   { (exit 1); exit 1; }; };;
7848 >
7849 >  *) ac_config_targets="$ac_config_targets $1" ;;
7850 >
7851    esac
7852    shift
7853   done
7854  
7855 < exec 5>>config.log
5893 < cat >&5 << _ACEOF
7855 > ac_configure_extra_args=
7856  
7857 < ## ----------------------- ##
7858 < ## Running config.status.  ##
7859 < ## ----------------------- ##
7857 > if $ac_cs_silent; then
7858 >  exec 6>/dev/null
7859 >  ac_configure_extra_args="$ac_configure_extra_args --silent"
7860 > fi
7861  
7862 < This file was extended by $as_me (OOPSE 1.0) 2.50, executed with
7863 <  > $ac_cs_invocation
7864 < on `(hostname || uname -n) 2>/dev/null | sed 1q`
7862 > _ACEOF
7863 > cat >>$CONFIG_STATUS <<_ACEOF
7864 > if \$ac_cs_recheck; then
7865 >  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7866 >  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7867 > fi
7868  
7869   _ACEOF
5904 EOF
7870  
7871 < cat >>$CONFIG_STATUS <<\EOF
7871 >
7872 >
7873 >
7874 >
7875 > cat >>$CONFIG_STATUS <<\_ACEOF
7876 > for ac_config_target in $ac_config_targets
7877 > do
7878 >  case "$ac_config_target" in
7879 >  # Handling of arguments.
7880 >  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7881 >  "libBASS/Makefile" ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;;
7882 >  "libmdtools/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;;
7883 >  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7884 >  "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
7885 >  "utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
7886 >  "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7887 >  "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7888 >  "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7889 >  "third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
7890 >  "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7891 >  "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7892 >  "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
7893 >  "samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
7894 >  "samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
7895 >  "samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
7896 >  "libBASS/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libBASS/config.h" ;;
7897 >  "libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
7898 >  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7899 > echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7900 >   { (exit 1); exit 1; }; };;
7901 >  esac
7902 > done
7903 >
7904   # If the user did not use the arguments to specify the items to instantiate,
7905   # then the envvar interface is used.  Set only those that are not.
7906   # We use the long form for the default assignment because of an extremely
# Line 5913 | Line 7910 | fi
7910    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7911   fi
7912  
7913 + # Have a temporary directory for convenience.  Make it in the build tree
7914 + # simply because there is no reason to put it here, and in addition,
7915 + # creating and moving files from /tmp can sometimes cause problems.
7916   # Create a temporary directory, and hook for its removal unless debugging.
7917   $debug ||
7918   {
7919    trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7920 <  trap '{ (exit $?); exit $?; }' 1 2 13 15
7920 >  trap '{ (exit 1); exit 1; }' 1 2 13 15
7921   }
7922  
7923   # Create a (secure) tmp directory for tmp files.
7924 < : ${TMPDIR=/tmp}
7924 >
7925   {
7926 <  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7926 >  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7927    test -n "$tmp" && test -d "$tmp"
7928   }  ||
7929   {
7930 <  tmp=$TMPDIR/cs$$-$RANDOM
7930 >  tmp=./confstat$$-$RANDOM
7931    (umask 077 && mkdir $tmp)
7932   } ||
7933   {
7934 <   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7934 >   echo "$me: cannot create a temporary directory in ." >&2
7935     { (exit 1); exit 1; }
7936   }
7937  
7938 < EOF
7938 > _ACEOF
7939  
7940 < cat >>$CONFIG_STATUS <<EOF
7940 > cat >>$CONFIG_STATUS <<_ACEOF
7941  
7942   #
7943   # CONFIG_FILES section.
# Line 5950 | Line 7950 | s,@exec_prefix@,$exec_prefix,;t t
7950    sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7951     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7952   s,@SHELL@,$SHELL,;t t
7953 + s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7954 + s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7955 + s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7956 + s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7957 + s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7958 + s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7959   s,@exec_prefix@,$exec_prefix,;t t
7960   s,@prefix@,$prefix,;t t
7961   s,@program_transform_name@,$program_transform_name,;t t
# Line 5965 | Line 7971 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7971   s,@oldincludedir@,$oldincludedir,;t t
7972   s,@infodir@,$infodir,;t t
7973   s,@mandir@,$mandir,;t t
7974 < s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7975 < s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7976 < s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7977 < s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5972 < s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7974 > s,@build_alias@,$build_alias,;t t
7975 > s,@host_alias@,$host_alias,;t t
7976 > s,@target_alias@,$target_alias,;t t
7977 > s,@DEFS@,$DEFS,;t t
7978   s,@ECHO_C@,$ECHO_C,;t t
7979   s,@ECHO_N@,$ECHO_N,;t t
7980   s,@ECHO_T@,$ECHO_T,;t t
5976 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5977 s,@DEFS@,$DEFS,;t t
7981   s,@LIBS@,$LIBS,;t t
7982   s,@PROGNAME@,$PROGNAME,;t t
7983   s,@debug@,$debug,;t t
# Line 5996 | Line 7999 | s,@F90@,$F90,;t t
7999   s,@CXX@,$CXX,;t t
8000   s,@CXXFLAGS@,$CXXFLAGS,;t t
8001   s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8002 + s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
8003 + s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
8004   s,@F90@,$F90,;t t
8005   s,@F90FLAGS@,$F90FLAGS,;t t
8006   s,@ac_ct_F90@,$ac_ct_F90,;t t
8007   s,@PREPFLAG@,$PREPFLAG,;t t
8008   s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
8009 + s,@F90LIBS@,$F90LIBS,;t t
8010 + s,@F90_FUNC@,$F90_FUNC,;t t
8011 + s,@F90_FUNC_@,$F90_FUNC_,;t t
8012 + s,@MOD@,$MOD,;t t
8013 + s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
8014 + s,@MODDIRFLAG@,$MODDIRFLAG,;t t
8015 + s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
8016   s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8017   s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8018   s,@INSTALL_DATA@,$INSTALL_DATA,;t t
# Line 6013 | Line 8025 | s,@F90LIBS@,$F90LIBS,;t t
8025   s,@LEXLIB@,$LEXLIB,;t t
8026   s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8027   s,@AR@,$AR,;t t
8028 < s,@F90LIBS@,$F90LIBS,;t t
8029 < s,@F90_FUNC@,$F90_FUNC,;t t
8030 < s,@F90_FUNC_@,$F90_FUNC_,;t t
6019 < s,@MOD@,$MOD,;t t
6020 < s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
6021 < s,@MODDIRFLAG@,$MODDIRFLAG,;t t
6022 < s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
6023 < s,@mpi_dir@,$mpi_dir,;t t
6024 < s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
6025 < s,@MPI_INC@,$MPI_INC,;t t
8028 > s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t
8029 > s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t
8030 > s,@MPI_F90_INC@,$MPI_F90_INC,;t t
8031   s,@MPI_LIB@,$MPI_LIB,;t t
8032 < s,@MPIF77@,$MPIF77,;t t
8033 < s,@MPIF90@,$MPIF90,;t t
6029 < s,@MPILIBS@,$MPILIBS,;t t
8032 > s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
8033 > s,@USE_MPI@,$USE_MPI,;t t
8034   s,@CPP@,$CPP,;t t
8035 + s,@EGREP@,$EGREP,;t t
8036   s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
8037   s,@SPRNG_LIB@,$SPRNG_LIB,;t t
8038   s,@SPRNG_INC@,$SPRNG_INC,;t t
# Line 6036 | Line 8041 | s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
8041   s,@MKL_LIB@,$MKL_LIB,;t t
8042   s,@MKL_INC@,$MKL_INC,;t t
8043   s,@HAVE_MKL@,$HAVE_MKL,;t t
6039 s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
6040 s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t
8044   s,@BATEXT@,$BATEXT,;t t
8045   s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8046   s,@OOPSE@,$OOPSE,;t t
8047   s,@OOPSE_HOME@,$OOPSE_HOME,;t t
8048   s,@SUBDIRS@,$SUBDIRS,;t t
8049   s,@FFLAGS@,$FFLAGS,;t t
8050 + s,@LIBOBJS@,$LIBOBJS,;t t
8051 + s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8052   CEOF
8053  
8054 < EOF
8054 > _ACEOF
8055  
8056 <  cat >>$CONFIG_STATUS <<\EOF
8056 >  cat >>$CONFIG_STATUS <<\_ACEOF
8057    # Split the substitutions into bite-sized pieces for seds with
8058    # small command number limits, like on Digital OSF/1 and HP-UX.
8059    ac_max_sed_lines=48
# Line 6073 | Line 8078 | EOF
8078        (echo ':t
8079    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8080        if test -z "$ac_sed_cmds"; then
8081 <        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8081 >        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8082        else
8083 <        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8083 >        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8084        fi
8085        ac_sed_frag=`expr $ac_sed_frag + 1`
8086        ac_beg=$ac_end
# Line 6087 | Line 8092 | EOF
8092    fi
8093   fi # test -n "$CONFIG_FILES"
8094  
8095 < EOF
8096 < cat >>$CONFIG_STATUS <<\EOF
8095 > _ACEOF
8096 > cat >>$CONFIG_STATUS <<\_ACEOF
8097   for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8098    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8099    case $ac_file in
8100    - | *:- | *:-:* ) # input from stdin
8101 <        cat >$tmp/stdin
8102 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8103 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8101 >        cat >$tmp/stdin
8102 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8103 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8104    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8105 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8105 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8106    * )   ac_file_in=$ac_file.in ;;
8107    esac
8108  
8109    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8110 <  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8111 <         X"$ac_file" : 'X\(//\)[^/]' \| \
8112 <         X"$ac_file" : 'X\(//\)$' \| \
8113 <         X"$ac_file" : 'X\(/\)' \| \
8114 <         .     : '\(.\)' 2>/dev/null ||
8110 >  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8111 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8112 >         X"$ac_file" : 'X\(//\)[^/]' \| \
8113 >         X"$ac_file" : 'X\(//\)$' \| \
8114 >         X"$ac_file" : 'X\(/\)' \| \
8115 >         .     : '\(.\)' 2>/dev/null ||
8116   echo X"$ac_file" |
8117      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8118            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8119            /^X\(\/\/\)$/{ s//\1/; q; }
8120            /^X\(\/\).*/{ s//\1/; q; }
8121            s/.*/./; q'`
8122 <  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8123 <    { case "$ac_dir" in
6118 <  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6119 <  *)                      as_incr_dir=.;;
6120 < esac
6121 < as_dummy="$ac_dir"
6122 < for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6123 <  case $as_mkdir_dir in
6124 <    # Skip DOS drivespec
6125 <    ?:) as_incr_dir=$as_mkdir_dir ;;
6126 <    *)
6127 <      as_incr_dir=$as_incr_dir/$as_mkdir_dir
6128 <      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6129 <    ;;
6130 <  esac
6131 < done; }
6132 <
6133 <    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
6134 <    # A "../" for each directory in $ac_dir_suffix.
6135 <    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
8122 >  { if $as_mkdir_p; then
8123 >    mkdir -p "$ac_dir"
8124    else
8125 <    ac_dir_suffix= ac_dots=
8126 <  fi
8125 >    as_dir="$ac_dir"
8126 >    as_dirs=
8127 >    while test ! -d "$as_dir"; do
8128 >      as_dirs="$as_dir $as_dirs"
8129 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8130 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8131 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8132 >         X"$as_dir" : 'X\(//\)$' \| \
8133 >         X"$as_dir" : 'X\(/\)' \| \
8134 >         .     : '\(.\)' 2>/dev/null ||
8135 > echo X"$as_dir" |
8136 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8137 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8138 >          /^X\(\/\/\)$/{ s//\1/; q; }
8139 >          /^X\(\/\).*/{ s//\1/; q; }
8140 >          s/.*/./; q'`
8141 >    done
8142 >    test ! -n "$as_dirs" || mkdir $as_dirs
8143 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8144 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8145 >   { (exit 1); exit 1; }; }; }
8146  
8147 <  case $srcdir in
8148 <  .)  ac_srcdir=.
8149 <      if test -z "$ac_dots"; then
8150 <         ac_top_srcdir=.
8151 <      else
8152 <         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
8153 <      fi ;;
8154 <  [\\/]* | ?:[\\/]* )
8155 <      ac_srcdir=$srcdir$ac_dir_suffix;
8156 <      ac_top_srcdir=$srcdir ;;
8147 >  ac_builddir=.
8148 >
8149 > if test "$ac_dir" != .; then
8150 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8151 >  # A "../" for each directory in $ac_dir_suffix.
8152 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8153 > else
8154 >  ac_dir_suffix= ac_top_builddir=
8155 > fi
8156 >
8157 > case $srcdir in
8158 >  .)  # No --srcdir option.  We are building in place.
8159 >    ac_srcdir=.
8160 >    if test -z "$ac_top_builddir"; then
8161 >       ac_top_srcdir=.
8162 >    else
8163 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8164 >    fi ;;
8165 >  [\\/]* | ?:[\\/]* )  # Absolute path.
8166 >    ac_srcdir=$srcdir$ac_dir_suffix;
8167 >    ac_top_srcdir=$srcdir ;;
8168    *) # Relative path.
8169 <    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
8170 <    ac_top_srcdir=$ac_dots$srcdir ;;
8171 <  esac
8169 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8170 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8171 > esac
8172 >
8173 > # Do not use `cd foo && pwd` to compute absolute paths, because
8174 > # the directories may not exist.
8175 > case `pwd` in
8176 > .) ac_abs_builddir="$ac_dir";;
8177 > *)
8178 >  case "$ac_dir" in
8179 >  .) ac_abs_builddir=`pwd`;;
8180 >  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8181 >  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8182 >  esac;;
8183 > esac
8184 > case $ac_abs_builddir in
8185 > .) ac_abs_top_builddir=${ac_top_builddir}.;;
8186 > *)
8187 >  case ${ac_top_builddir}. in
8188 >  .) ac_abs_top_builddir=$ac_abs_builddir;;
8189 >  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8190 >  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8191 >  esac;;
8192 > esac
8193 > case $ac_abs_builddir in
8194 > .) ac_abs_srcdir=$ac_srcdir;;
8195 > *)
8196 >  case $ac_srcdir in
8197 >  .) ac_abs_srcdir=$ac_abs_builddir;;
8198 >  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8199 >  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8200 >  esac;;
8201 > esac
8202 > case $ac_abs_builddir in
8203 > .) ac_abs_top_srcdir=$ac_top_srcdir;;
8204 > *)
8205 >  case $ac_top_srcdir in
8206 >  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8207 >  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8208 >  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8209 >  esac;;
8210 > esac
8211  
8212 +
8213    case $INSTALL in
8214    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8215 <  *) ac_INSTALL=$ac_dots$INSTALL ;;
8215 >  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8216    esac
8217  
8218    if test x"$ac_file" != x-; then
8219 <    { echo "$as_me:6161: creating $ac_file" >&5
8219 >    { echo "$as_me:$LINENO: creating $ac_file" >&5
8220   echo "$as_me: creating $ac_file" >&6;}
8221      rm -f "$ac_file"
8222    fi
8223    # Let's still pretend it is `configure' which instantiates (i.e., don't
8224    # use $as_me), people would be surprised to read:
8225 <  #    /* config.h.  Generated automatically by config.status.  */
8226 <  configure_input="Generated automatically from `echo $ac_file_in |
8227 <                                                 sed 's,.*/,,'` by configure."
8225 >  #    /* config.h.  Generated by config.status.  */
8226 >  if test x"$ac_file" = x-; then
8227 >    configure_input=
8228 >  else
8229 >    configure_input="$ac_file.  "
8230 >  fi
8231 >  configure_input=$configure_input"Generated from `echo $ac_file_in |
8232 >                                     sed 's,.*/,,'` by configure."
8233  
8234    # First look for the input files in the build tree, otherwise in the
8235    # src tree.
# Line 6175 | Line 8238 | echo "$as_me: creating $ac_file" >&6;}
8238        case $f in
8239        -) echo $tmp/stdin ;;
8240        [\\/$]*)
8241 <         # Absolute (can't be DOS-style, as IFS=:)
8242 <         test -f "$f" || { { echo "$as_me:6179: error: cannot find input file: $f" >&5
8241 >         # Absolute (can't be DOS-style, as IFS=:)
8242 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8243   echo "$as_me: error: cannot find input file: $f" >&2;}
8244     { (exit 1); exit 1; }; }
8245 <         echo $f;;
8245 >         echo "$f";;
8246        *) # Relative
8247 <         if test -f "$f"; then
8248 <           # Build tree
8249 <           echo $f
8250 <         elif test -f "$srcdir/$f"; then
8251 <           # Source tree
8252 <           echo $srcdir/$f
8253 <         else
8254 <           # /dev/null tree
8255 <           { { echo "$as_me:6192: error: cannot find input file: $f" >&5
8247 >         if test -f "$f"; then
8248 >           # Build tree
8249 >           echo "$f"
8250 >         elif test -f "$srcdir/$f"; then
8251 >           # Source tree
8252 >           echo "$srcdir/$f"
8253 >         else
8254 >           # /dev/null tree
8255 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8256   echo "$as_me: error: cannot find input file: $f" >&2;}
8257     { (exit 1); exit 1; }; }
8258 <         fi;;
8258 >         fi;;
8259        esac
8260      done` || { (exit 1); exit 1; }
8261 < EOF
8262 < cat >>$CONFIG_STATUS <<EOF
8261 > _ACEOF
8262 > cat >>$CONFIG_STATUS <<_ACEOF
8263    sed "$ac_vpsub
8264   $extrasub
8265 < EOF
8266 < cat >>$CONFIG_STATUS <<\EOF
8265 > _ACEOF
8266 > cat >>$CONFIG_STATUS <<\_ACEOF
8267   :t
8268   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8269   s,@configure_input@,$configure_input,;t t
8270   s,@srcdir@,$ac_srcdir,;t t
8271 + s,@abs_srcdir@,$ac_abs_srcdir,;t t
8272   s,@top_srcdir@,$ac_top_srcdir,;t t
8273 + s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8274 + s,@builddir@,$ac_builddir,;t t
8275 + s,@abs_builddir@,$ac_abs_builddir,;t t
8276 + s,@top_builddir@,$ac_top_builddir,;t t
8277 + s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8278   s,@INSTALL@,$ac_INSTALL,;t t
8279   " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8280    rm -f $tmp/stdin
# Line 6217 | Line 8286 | EOF
8286    fi
8287  
8288   done
8289 < EOF
8290 < cat >>$CONFIG_STATUS <<\EOF
8289 > _ACEOF
8290 > cat >>$CONFIG_STATUS <<\_ACEOF
8291  
8292   #
8293   # CONFIG_HEADER section.
# Line 6228 | Line 8297 | ac_dA='s,^\([  ]*\)#\([        ]*define[       ][      ]*\)'
8297   # NAME is the cpp macro being defined and VALUE is the value it is being given.
8298   #
8299   # ac_d sets the value in "#define NAME VALUE" lines.
8300 < ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8301 < ac_dB='[        ].*$,\1#\2'
8300 > ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8301 > ac_dB='[         ].*$,\1#\2'
8302   ac_dC=' '
8303   ac_dD=',;t'
8304   # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8305 < ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8305 > ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8306   ac_uB='$,\1#\2define\3'
8307   ac_uC=' '
8308   ac_uD=',;t'
# Line 6242 | Line 8311 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file"
8311    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8312    case $ac_file in
8313    - | *:- | *:-:* ) # input from stdin
8314 <        cat >$tmp/stdin
8315 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8316 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8314 >        cat >$tmp/stdin
8315 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8316 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8317    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8318 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8318 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8319    * )   ac_file_in=$ac_file.in ;;
8320    esac
8321  
8322 <  test x"$ac_file" != x- && { echo "$as_me:6253: creating $ac_file" >&5
8322 >  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8323   echo "$as_me: creating $ac_file" >&6;}
8324  
8325    # First look for the input files in the build tree, otherwise in the
# Line 6260 | Line 8329 | echo "$as_me: creating $ac_file" >&6;}
8329        case $f in
8330        -) echo $tmp/stdin ;;
8331        [\\/$]*)
8332 <         # Absolute (can't be DOS-style, as IFS=:)
8333 <         test -f "$f" || { { echo "$as_me:6264: error: cannot find input file: $f" >&5
8332 >         # Absolute (can't be DOS-style, as IFS=:)
8333 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8334   echo "$as_me: error: cannot find input file: $f" >&2;}
8335     { (exit 1); exit 1; }; }
8336 <         echo $f;;
8336 >         # Do quote $f, to prevent DOS paths from being IFS'd.
8337 >         echo "$f";;
8338        *) # Relative
8339 <         if test -f "$f"; then
8340 <           # Build tree
8341 <           echo $f
8342 <         elif test -f "$srcdir/$f"; then
8343 <           # Source tree
8344 <           echo $srcdir/$f
8345 <         else
8346 <           # /dev/null tree
8347 <           { { echo "$as_me:6277: error: cannot find input file: $f" >&5
8339 >         if test -f "$f"; then
8340 >           # Build tree
8341 >           echo "$f"
8342 >         elif test -f "$srcdir/$f"; then
8343 >           # Source tree
8344 >           echo "$srcdir/$f"
8345 >         else
8346 >           # /dev/null tree
8347 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8348   echo "$as_me: error: cannot find input file: $f" >&2;}
8349     { (exit 1); exit 1; }; }
8350 <         fi;;
8350 >         fi;;
8351        esac
8352      done` || { (exit 1); exit 1; }
8353    # Remove the trailing spaces.
8354 <  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
8354 >  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8355  
8356 < EOF
8356 > _ACEOF
8357  
8358   # Transform confdefs.h into two sed scripts, `conftest.defines' and
8359   # `conftest.undefs', that substitutes the proper values into
# Line 6299 | Line 8369 | cat >confdef2sed.sed <<\EOF
8369   # `end' is used to avoid that the second main sed command (meant for
8370   # 0-ary CPP macros) applies to n-ary macro definitions.
8371   # See the Autoconf documentation for `clear'.
8372 < cat >confdef2sed.sed <<\EOF
8372 > cat >confdef2sed.sed <<\_ACEOF
8373   s/[\\&,]/\\&/g
8374   s,[\\$`],\\&,g
8375   t clear
8376   : clear
8377 < s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8377 > s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8378   t end
8379 < s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8379 > s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8380   : end
8381 < EOF
8381 > _ACEOF
8382   # If some macros were called several times there might be several times
8383   # the same #defines, which is useless.  Nevertheless, we may not want to
8384   # sort them, since we want the *last* AC-DEFINE to be honored.
# Line 6319 | Line 8389 | cat >>conftest.undefs <<\EOF
8389   # This sed command replaces #undef with comments.  This is necessary, for
8390   # example, in the case of _POSIX_SOURCE, which is predefined and required
8391   # on some systems where configure will not decide to define it.
8392 < cat >>conftest.undefs <<\EOF
8393 < s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8394 < EOF
8392 > cat >>conftest.undefs <<\_ACEOF
8393 > s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8394 > _ACEOF
8395  
8396   # Break up conftest.defines because some shells have a limit on the size
8397   # of here documents, and old seds have small limits too (100 cmds).
8398   echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8399 < echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8399 > echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8400   echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8401   echo '  :' >>$CONFIG_STATUS
8402   rm -f conftest.tail
# Line 6335 | Line 8405 | do
8405    # Write a limited-size here document to $tmp/defines.sed.
8406    echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8407    # Speed up: don't consider the non `#define' lines.
8408 <  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
8408 >  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8409    # Work around the forget-to-reset-the-flag bug.
8410    echo 't clr' >>$CONFIG_STATUS
8411    echo ': clr' >>$CONFIG_STATUS
# Line 6350 | Line 8420 | echo '  fi # egrep' >>$CONFIG_STATUS
8420    mv conftest.tail conftest.defines
8421   done
8422   rm -f conftest.defines
8423 < echo '  fi # egrep' >>$CONFIG_STATUS
8423 > echo '  fi # grep' >>$CONFIG_STATUS
8424   echo >>$CONFIG_STATUS
8425  
8426   # Break up conftest.undefs because some shells have a limit on the size
# Line 6362 | Line 8432 | do
8432    # Write a limited-size here document to $tmp/undefs.sed.
8433    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8434    # Speed up: don't consider the non `#undef'
8435 <  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8435 >  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8436    # Work around the forget-to-reset-the-flag bug.
8437    echo 't clr' >>$CONFIG_STATUS
8438    echo ': clr' >>$CONFIG_STATUS
# Line 6378 | Line 8448 | cat >>$CONFIG_STATUS <<\EOF
8448   done
8449   rm -f conftest.undefs
8450  
8451 < cat >>$CONFIG_STATUS <<\EOF
8451 > cat >>$CONFIG_STATUS <<\_ACEOF
8452    # Let's still pretend it is `configure' which instantiates (i.e., don't
8453    # use $as_me), people would be surprised to read:
8454 <  #    /* config.h.  Generated automatically by config.status.  */
8454 >  #    /* config.h.  Generated by config.status.  */
8455    if test x"$ac_file" = x-; then
8456 <    echo "/* Generated automatically by configure.  */" >$tmp/config.h
8456 >    echo "/* Generated by configure.  */" >$tmp/config.h
8457    else
8458 <    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
8458 >    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8459    fi
8460    cat $tmp/in >>$tmp/config.h
8461    rm -f $tmp/in
8462    if test x"$ac_file" != x-; then
8463 <    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8464 <      { echo "$as_me:6394: $ac_file is unchanged" >&5
8463 >    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8464 >      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8465   echo "$as_me: $ac_file is unchanged" >&6;}
8466      else
8467 <      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8468 <         X"$ac_file" : 'X\(//\)[^/]' \| \
8469 <         X"$ac_file" : 'X\(//\)$' \| \
8470 <         X"$ac_file" : 'X\(/\)' \| \
8471 <         .     : '\(.\)' 2>/dev/null ||
8467 >      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8468 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8469 >         X"$ac_file" : 'X\(//\)[^/]' \| \
8470 >         X"$ac_file" : 'X\(//\)$' \| \
8471 >         X"$ac_file" : 'X\(/\)' \| \
8472 >         .     : '\(.\)' 2>/dev/null ||
8473   echo X"$ac_file" |
8474      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8475            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8476            /^X\(\/\/\)$/{ s//\1/; q; }
8477            /^X\(\/\).*/{ s//\1/; q; }
8478            s/.*/./; q'`
8479 <      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8480 <        { case "$ac_dir" in
8481 <  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8482 <  *)                      as_incr_dir=.;;
8483 < esac
8484 < as_dummy="$ac_dir"
8485 < for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8486 <  case $as_mkdir_dir in
8487 <    # Skip DOS drivespec
8488 <    ?:) as_incr_dir=$as_mkdir_dir ;;
8489 <    *)
8490 <      as_incr_dir=$as_incr_dir/$as_mkdir_dir
8491 <      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8492 <    ;;
8493 <  esac
8494 < done; }
8479 >      { if $as_mkdir_p; then
8480 >    mkdir -p "$ac_dir"
8481 >  else
8482 >    as_dir="$ac_dir"
8483 >    as_dirs=
8484 >    while test ! -d "$as_dir"; do
8485 >      as_dirs="$as_dir $as_dirs"
8486 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8487 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8488 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8489 >         X"$as_dir" : 'X\(//\)$' \| \
8490 >         X"$as_dir" : 'X\(/\)' \| \
8491 >         .     : '\(.\)' 2>/dev/null ||
8492 > echo X"$as_dir" |
8493 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8494 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8495 >          /^X\(\/\/\)$/{ s//\1/; q; }
8496 >          /^X\(\/\).*/{ s//\1/; q; }
8497 >          s/.*/./; q'`
8498 >    done
8499 >    test ! -n "$as_dirs" || mkdir $as_dirs
8500 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8501 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8502 >   { (exit 1); exit 1; }; }; }
8503  
6425      fi
8504        rm -f $ac_file
8505        mv $tmp/config.h $ac_file
8506      fi
# Line 6431 | Line 8509 | EOF
8509      rm -f $tmp/config.h
8510    fi
8511   done
8512 < EOF
8512 > _ACEOF
8513  
8514 < cat >>$CONFIG_STATUS <<\EOF
8514 > cat >>$CONFIG_STATUS <<\_ACEOF
8515  
8516   { (exit 0); exit 0; }
8517 < EOF
8517 > _ACEOF
8518   chmod +x $CONFIG_STATUS
8519   ac_clean_files=$ac_clean_files_save
8520  
8521 +
8522   # configure is writing to config.log, and then calls config.status.
8523   # config.status does its own redirection, appending to config.log.
8524   # Unfortunately, on DOS this fails, as config.log is still kept open
# Line 6450 | Line 8529 | if test "$no_create" != yes; then
8529   # need to make the FD available again.
8530   if test "$no_create" != yes; then
8531    ac_cs_success=:
8532 +  ac_config_status_args=
8533 +  test "$silent" = yes &&
8534 +    ac_config_status_args="$ac_config_status_args --quiet"
8535    exec 5>/dev/null
8536 <  $SHELL $CONFIG_STATUS || ac_cs_success=false
8536 >  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8537    exec 5>>config.log
8538    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8539    # would make configure fail if this is the last instruction.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines