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 790 by mmeineke, Mon Sep 29 21:16:11 2003 UTC vs.
Revision 826 by gezelter, Mon Oct 27 23:00:59 2003 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.57 for OOPSE 1.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7 < # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 > # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8   # Free Software Foundation, Inc.
9   # This configure script is free software; the Free Software Foundation
10   # gives unlimited permission to copy, distribute and modify it.
11 + ## --------------------- ##
12 + ## M4sh Initialization.  ##
13 + ## --------------------- ##
14  
15   # Be Bourne compatible
16   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17    emulate sh
18    NULLCMD=:
19 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 +  # is contrary to our usage.  Disable this feature.
21 +  alias -g '${1+"$@"}'='"$@"'
22   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23    set -o posix
24   fi
25  
26 + # Support unset when possible.
27 + if (FOO=FOO; unset FOO) >/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 -n "`(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 >  as_mkdir_p=false
224   fi
225  
226 < # 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; }
226 > as_executable_p="test -f"
227  
228 + # Sed expression to map a string onto a valid CPP name.
229 + as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230 +
231 + # Sed expression to map a string onto a valid variable name.
232 + as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 +
234 +
235   # IFS
236   # We need space, tab and new line, in precisely that order.
237   as_nl='
# Line 70 | Line 239 | $as_unset CDPATH || test "${CDPATH+set}" != set || { C
239   IFS="   $as_nl"
240  
241   # CDPATH.
242 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
242 > $as_unset CDPATH
243  
244 +
245   # Name of the host.
246   # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247   # so uname gets run too.
# Line 83 | Line 253 | cross_compiling=no
253   # Initializations.
254   #
255   ac_default_prefix=/usr/local
256 + ac_config_libobj_dir=.
257   cross_compiling=no
258   subdirs=
259 < MFLAGS= MAKEFLAGS=
259 > MFLAGS=
260 > MAKEFLAGS=
261   SHELL=${CONFIG_SHELL-/bin/sh}
262  
263   # Maximum number of lines to put in a shell here document.
# Line 93 | Line 265 | SHELL=${CONFIG_SHELL-/bin/sh}
265   # only ac_max_sed_lines should be used.
266   : ${ac_max_here_lines=38}
267  
268 < # Avoid depending upon Character Ranges.
269 < ac_cr_az='abcdefghijklmnopqrstuvwxyz'
270 < ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
271 < ac_cr_09='0123456789'
272 < ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
268 > # Identity of this package.
269 > PACKAGE_NAME='OOPSE'
270 > PACKAGE_TARNAME='oopse'
271 > PACKAGE_VERSION='1.0'
272 > PACKAGE_STRING='OOPSE 1.0'
273 > PACKAGE_BUGREPORT='gezelter@nd.edu'
274  
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
275   ac_unique_file="src/oopse.cpp"
276   ac_default_prefix="/usr/local"
277 + # Factoring default headers for most tests.
278 + ac_includes_default="\
279 + #include <stdio.h>
280 + #if HAVE_SYS_TYPES_H
281 + # include <sys/types.h>
282 + #endif
283 + #if HAVE_SYS_STAT_H
284 + # include <sys/stat.h>
285 + #endif
286 + #if STDC_HEADERS
287 + # include <stdlib.h>
288 + # include <stddef.h>
289 + #else
290 + # if HAVE_STDLIB_H
291 + #  include <stdlib.h>
292 + # endif
293 + #endif
294 + #if HAVE_STRING_H
295 + # if !STDC_HEADERS && HAVE_MEMORY_H
296 + #  include <memory.h>
297 + # endif
298 + # include <string.h>
299 + #endif
300 + #if HAVE_STRINGS_H
301 + # include <strings.h>
302 + #endif
303 + #if HAVE_INTTYPES_H
304 + # include <inttypes.h>
305 + #else
306 + # if HAVE_STDINT_H
307 + #  include <stdint.h>
308 + # endif
309 + #endif
310 + #if HAVE_UNISTD_H
311 + # include <unistd.h>
312 + #endif"
313  
314 + 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 F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC mpi_dir MPI_LIBDIR MPI_INC MPI_LIB MPIF77 MPIF90 MPILIBS CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL MPI_F90_MODS MPIMODLIBNAME BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS'
315 + ac_subst_files=''
316 +
317   # Initialize some variables set by options.
318   ac_init_help=
319   ac_init_version=false
# Line 143 | Line 351 | mandir='${prefix}/man'
351   oldincludedir='/usr/include'
352   infodir='${prefix}/info'
353   mandir='${prefix}/man'
146
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'
354  
355   ac_prev=
356   for ac_option
# Line 196 | Line 397 | do
397    -disable-* | --disable-*)
398      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399      # Reject names that are not valid shell variable names.
400 <    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
400 >    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402     { (exit 1); exit 1; }; }
403      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
# Line 205 | Line 406 | do
406    -enable-* | --enable-*)
407      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408      # Reject names that are not valid shell variable names.
409 <    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
409 >    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411     { (exit 1); exit 1; }; }
412      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
# Line 283 | Line 484 | do
484      with_fp=no ;;
485  
486    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 <  | --no-cr | --no-c)
487 >  | --no-cr | --no-c | -n)
488      no_create=yes ;;
489  
490    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 387 | Line 588 | do
588    -with-* | --with-*)
589      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590      # Reject names that are not valid shell variable names.
591 <    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
591 >    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592        { echo "$as_me: error: invalid package name: $ac_package" >&2
593     { (exit 1); exit 1; }; }
594      ac_package=`echo $ac_package| sed 's/-/_/g'`
# Line 400 | Line 601 | do
601    -without-* | --without-*)
602      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603      # Reject names that are not valid shell variable names.
604 <    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
604 >    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605        { echo "$as_me: error: invalid package name: $ac_package" >&2
606     { (exit 1); exit 1; }; }
607      ac_package=`echo $ac_package | sed 's/-/_/g'`
# Line 432 | Line 633 | Try \`$0 --help' for more information." >&2
633    *=*)
634      ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635      # Reject names that are not valid shell variable names.
636 <    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
636 >    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637        { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638     { (exit 1); exit 1; }; }
639      ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
# Line 442 | Line 643 | Try \`$0 --help' for more information." >&2
643    *)
644      # FIXME: should be removed in autoconf 3.0.
645      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 <    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
646 >    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649      ;;
# Line 457 | Line 658 | for ac_var in bindir sbindir libexecdir datadir syscon
658   fi
659  
660   # Be sure to have absolute paths.
661 + for ac_var in exec_prefix prefix
662 + do
663 +  eval ac_val=$`echo $ac_var`
664 +  case $ac_val in
665 +    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 +   { (exit 1); exit 1; }; };;
668 +  esac
669 + done
670 +
671 + # Be sure to have absolute paths.
672   for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 <              localstatedir libdir includedir oldincludedir infodir mandir \
462 <              exec_prefix prefix
673 >              localstatedir libdir includedir oldincludedir infodir mandir
674   do
675    eval ac_val=$`echo $ac_var`
676    case $ac_val in
677      [\\/$]* | ?:[\\/]* ) ;;
678 <    NONE ) ;;
468 <    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
678 >    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679     { (exit 1); exit 1; }; };;
680    esac
681   done
682  
683   # There might be people who depend on the old broken behavior: `$host'
684   # used to hold the argument of --host etc.
685 + # FIXME: To remove some day.
686   build=$build_alias
687   host=$host_alias
688   target=$target_alias
689  
690 < # FIXME: should be removed in autoconf 3.0.
690 > # FIXME: To remove some day.
691   if test "x$host_alias" != x; then
692    if test "x$build_alias" = x; then
693      cross_compiling=maybe
# Line 492 | Line 703 | test "$silent" = yes && exec 6>/dev/null
703  
704   test "$silent" = yes && exec 6>/dev/null
705  
706 +
707   # Find the source files, if location was not specified.
708   if test -z "$srcdir"; then
709    ac_srcdir_defaulted=yes
710    # Try the directory containing this script, then its parent.
711 <  ac_prog=$0
712 <  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
713 <  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
711 >  ac_confdir=`(dirname "$0") 2>/dev/null ||
712 > $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 >         X"$0" : 'X\(//\)[^/]' \| \
714 >         X"$0" : 'X\(//\)$' \| \
715 >         X"$0" : 'X\(/\)' \| \
716 >         .     : '\(.\)' 2>/dev/null ||
717 > echo X"$0" |
718 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 >          /^X\(\/\/\)$/{ s//\1/; q; }
721 >          /^X\(\/\).*/{ s//\1/; q; }
722 >          s/.*/./; q'`
723    srcdir=$ac_confdir
724    if test ! -r $srcdir/$ac_unique_file; then
725      srcdir=..
# Line 508 | Line 729 | if test ! -r $srcdir/$ac_unique_file; then
729   fi
730   if test ! -r $srcdir/$ac_unique_file; then
731    if test "$ac_srcdir_defaulted" = yes; then
732 <    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
732 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733     { (exit 1); exit 1; }; }
734    else
735 <    { echo "$as_me: error: cannot find sources in $srcdir" >&2
735 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736     { (exit 1); exit 1; }; }
737    fi
738   fi
739 + (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 +  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 +   { (exit 1); exit 1; }; }
742   srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743   ac_env_build_alias_set=${build_alias+set}
744   ac_env_build_alias_value=$build_alias
# Line 575 | Line 799 | if test "$ac_init_help" = "long"; then
799   if test "$ac_init_help" = "long"; then
800    # Omit some internal or obsolete options to make the list less imposing.
801    # This message is too long to be a string in the A/UX 3.1 sh.
802 <  cat <<EOF
802 >  cat <<_ACEOF
803   \`configure' configures OOPSE 1.0 to adapt to many kinds of systems.
804  
805   Usage: $0 [OPTION]... [VAR=VALUE]...
# Line 596 | Line 820 | EOF
820    -n, --no-create         do not create output files
821        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
822  
823 < EOF
823 > _ACEOF
824  
825 <  cat <<EOF
825 >  cat <<_ACEOF
826   Installation directories:
827    --prefix=PREFIX         install architecture-independent files in PREFIX
828                            [$ac_default_prefix]
# Line 625 | Line 849 | EOF
849    --oldincludedir=DIR    C header files for non-gcc [/usr/include]
850    --infodir=DIR          info documentation [PREFIX/info]
851    --mandir=DIR           man documentation [PREFIX/man]
852 < EOF
852 > _ACEOF
853  
854 <  cat <<\EOF
854 >  cat <<\_ACEOF
855  
856   System types:
857    --build=BUILD     configure for building on BUILD [guessed]
858 <  --host=HOST       build programs to run on HOST [BUILD]
859 < EOF
858 >  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
859 > _ACEOF
860   fi
861  
862   if test -n "$ac_init_help"; then
863    case $ac_init_help in
864       short | recursive ) echo "Configuration of OOPSE 1.0:";;
865     esac
866 <  cat <<\EOF
866 >  cat <<\_ACEOF
867  
868   Optional Features:
869    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
# Line 655 | Line 879 | Optional Packages:
879    --with-mpi_inc=dir  give the path for MPI-include-files MPI_DIR/include
880    --with-sprng_prefix=PREFIX
881                            Prefix where SPRNG is installed
882 <  --with-sprng_lib_prefix=PREFIX  SPRNG library directory
883 <  --with-sprng_include_prefix=PREFIX
882 >  --with-sprng-libdir=PREFIX  SPRNG library directory
883 >  --with-sprng-include=PREFIX
884                            SPRNG include directory
885    --with-mkl              Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60
886 +  --with-mpi_f90_mods=<dir>
887 +                          Location where MPI f90 modules are installed
888  
889   Some influential environment variables:
890    CC          C compiler command
# Line 678 | Line 904 | EOF
904   it to find libraries and programs with nonstandard names/locations.
905  
906   Report bugs to <gezelter@nd.edu>.
907 < EOF
907 > _ACEOF
908   fi
909  
910   if test "$ac_init_help" = "recursive"; then
911    # If there are subdirs, report their specific --help.
912    ac_popdir=`pwd`
913 <  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
914 <    cd $ac_subdir
915 <    # A "../" for each directory in /$ac_subdir.
690 <    ac_dots=`echo $ac_subdir |
691 <             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
913 >  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 >    test -d $ac_dir || continue
915 >    ac_builddir=.
916  
917 <    case $srcdir in
918 <    .) # No --srcdir option.  We are building in place.
919 <      ac_sub_srcdir=$srcdir ;;
920 <    [\\/]* | ?:[\\/]* ) # Absolute path.
921 <      ac_sub_srcdir=$srcdir/$ac_subdir ;;
922 <    *) # Relative path.
923 <      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
700 <    esac
917 > if test "$ac_dir" != .; then
918 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919 >  # A "../" for each directory in $ac_dir_suffix.
920 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921 > else
922 >  ac_dir_suffix= ac_top_builddir=
923 > fi
924  
925 <    # Check for guested configure; otherwise get Cygnus style configure.
926 <    if test -f $ac_sub_srcdir/configure.gnu; then
927 <      echo
928 <      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
929 <    elif test -f $ac_sub_srcdir/configure; then
925 > case $srcdir in
926 >  .)  # No --srcdir option.  We are building in place.
927 >    ac_srcdir=.
928 >    if test -z "$ac_top_builddir"; then
929 >       ac_top_srcdir=.
930 >    else
931 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932 >    fi ;;
933 >  [\\/]* | ?:[\\/]* )  # Absolute path.
934 >    ac_srcdir=$srcdir$ac_dir_suffix;
935 >    ac_top_srcdir=$srcdir ;;
936 >  *) # Relative path.
937 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
939 > esac
940 > # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
941 > # absolute.
942 > ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
943 > ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
944 > ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
945 > ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
946 >
947 >    cd $ac_dir
948 >    # Check for guested configure; otherwise get Cygnus style configure.
949 >    if test -f $ac_srcdir/configure.gnu; then
950        echo
951 <      $SHELL $ac_sub_srcdir/configure  --help=recursive
952 <    elif test -f $ac_sub_srcdir/configure.ac ||
710 <           test -f $ac_sub_srcdir/configure.in; then
951 >      $SHELL $ac_srcdir/configure.gnu  --help=recursive
952 >    elif test -f $ac_srcdir/configure; then
953        echo
954 +      $SHELL $ac_srcdir/configure  --help=recursive
955 +    elif test -f $ac_srcdir/configure.ac ||
956 +           test -f $ac_srcdir/configure.in; then
957 +      echo
958        $ac_configure --help
959      else
960 <      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
960 >      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961      fi
962      cd $ac_popdir
963    done
# Line 719 | Line 965 | if $ac_init_version; then
965  
966   test -n "$ac_init_help" && exit 0
967   if $ac_init_version; then
968 <  cat <<\EOF
968 >  cat <<\_ACEOF
969   OOPSE configure 1.0
970 < generated by GNU Autoconf 2.50
970 > generated by GNU Autoconf 2.57
971  
972 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
972 > Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
973   Free Software Foundation, Inc.
974   This configure script is free software; the Free Software Foundation
975   gives unlimited permission to copy, distribute and modify it.
976 < EOF
976 > _ACEOF
977    exit 0
978   fi
979   exec 5>config.log
980 < cat >&5 <<EOF
980 > cat >&5 <<_ACEOF
981   This file contains any messages produced by compilers while
982   running configure, to aid debugging if configure makes a mistake.
983  
984   It was created by OOPSE $as_me 1.0, which was
985 < generated by GNU Autoconf 2.50.  Invocation command line was
985 > generated by GNU Autoconf 2.57.  Invocation command line was
986  
987    $ $0 $@
988  
989 < EOF
989 > _ACEOF
990   {
991   cat <<_ASUNAME
992 < ## ---------- ##
993 < ## Platform.  ##
994 < ## ---------- ##
992 > ## --------- ##
993 > ## Platform. ##
994 > ## --------- ##
995  
996   hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997   uname -m = `(uname -m) 2>/dev/null || echo unknown`
# Line 764 | Line 1010 | PATH = $PATH
1010   /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1011   /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1012  
767 PATH = $PATH
768
1013   _ASUNAME
1014 +
1015 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016 + for as_dir in $PATH
1017 + do
1018 +  IFS=$as_save_IFS
1019 +  test -z "$as_dir" && as_dir=.
1020 +  echo "PATH: $as_dir"
1021 + done
1022 +
1023   } >&5
1024  
1025 < cat >&5 <<EOF
773 < ## ------------ ##
774 < ## Core tests.  ##
775 < ## ------------ ##
1025 > cat >&5 <<_ACEOF
1026  
777 EOF
1027  
1028 + ## ----------- ##
1029 + ## Core tests. ##
1030 + ## ----------- ##
1031 +
1032 + _ACEOF
1033 +
1034 +
1035   # Keep a trace of the command line.
1036   # Strip out --no-create and --no-recursion so they do not pile up.
1037 + # Strip out --silent because we don't want to record it for future runs.
1038   # Also quote any args containing shell meta-characters.
1039 + # Make two passes to allow for proper duplicate-argument suppression.
1040   ac_configure_args=
1041 + ac_configure_args0=
1042 + ac_configure_args1=
1043   ac_sep=
1044 < for ac_arg
1044 > ac_must_keep_next=false
1045 > for ac_pass in 1 2
1046   do
1047 <  case $ac_arg in
1048 <  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049 <  | --no-cr | --no-c) ;;
1050 <  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 <  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1052 <  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 <    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1054 <    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1055 <    ac_sep=" " ;;
1056 <  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1057 <     ac_sep=" " ;;
1058 <  esac
1059 <  # Get rid of the leading space.
1047 >  for ac_arg
1048 >  do
1049 >    case $ac_arg in
1050 >    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1051 >    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 >    | -silent | --silent | --silen | --sile | --sil)
1053 >      continue ;;
1054 >    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055 >      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 >    esac
1057 >    case $ac_pass in
1058 >    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1059 >    2)
1060 >      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1061 >      if test $ac_must_keep_next = true; then
1062 >        ac_must_keep_next=false # Got value, back to normal.
1063 >      else
1064 >        case $ac_arg in
1065 >          *=* | --config-cache | -C | -disable-* | --disable-* \
1066 >          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1067 >          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1068 >          | -with-* | --with-* | -without-* | --without-* | --x)
1069 >            case "$ac_configure_args0 " in
1070 >              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 >            esac
1072 >            ;;
1073 >          -* ) ac_must_keep_next=true ;;
1074 >        esac
1075 >      fi
1076 >      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1077 >      # Get rid of the leading space.
1078 >      ac_sep=" "
1079 >      ;;
1080 >    esac
1081 >  done
1082   done
1083 + $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1084 + $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1085  
1086   # When interrupted or exit'd, cleanup temporary files, and complete
1087   # config.log.  We remove comments because anyway the quotes in there
1088   # would cause problems or look ugly.
1089 + # WARNING: Be sure not to use single quotes in there, as some shells,
1090 + # such as our DU 5.0 friend, will then `close' the trap.
1091   trap 'exit_status=$?
1092    # Save into config.log some information that might help in debugging.
1093 <  echo >&5
1094 <  echo "## ----------------- ##" >&5
1095 <  echo "## Cache variables.  ##" >&5
1096 <  echo "## ----------------- ##" >&5
1097 <  echo >&5
1098 <  # The following way of writing the cache mishandles newlines in values,
1093 >  {
1094 >    echo
1095 >
1096 >    cat <<\_ASBOX
1097 > ## ---------------- ##
1098 > ## Cache variables. ##
1099 > ## ---------------- ##
1100 > _ASBOX
1101 >    echo
1102 >    # The following way of writing the cache mishandles newlines in values,
1103   {
1104    (set) 2>&1 |
1105      case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106      *ac_space=\ *)
1107        sed -n \
1108          "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1109 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1109 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110        ;;
1111      *)
1112        sed -n \
1113 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1113 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1114        ;;
1115      esac;
1116 < } >&5
1117 <  sed "/^$/d" confdefs.h >conftest.log
1118 <  if test -s conftest.log; then
1119 <    echo >&5
1120 <    echo "## ------------ ##" >&5
1121 <    echo "## confdefs.h.  ##" >&5
1122 <    echo "## ------------ ##" >&5
1123 <    echo >&5
1124 <    cat conftest.log >&5
1125 <  fi
1126 <  (echo; echo) >&5
1127 <  test "$ac_signal" != 0 &&
1128 <    echo "$as_me: caught signal $ac_signal" >&5
1129 <  echo "$as_me: exit $exit_status" >&5
1130 <  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1116 > }
1117 >    echo
1118 >
1119 >    cat <<\_ASBOX
1120 > ## ----------------- ##
1121 > ## Output variables. ##
1122 > ## ----------------- ##
1123 > _ASBOX
1124 >    echo
1125 >    for ac_var in $ac_subst_vars
1126 >    do
1127 >      eval ac_val=$`echo $ac_var`
1128 >      echo "$ac_var='"'"'$ac_val'"'"'"
1129 >    done | sort
1130 >    echo
1131 >
1132 >    if test -n "$ac_subst_files"; then
1133 >      cat <<\_ASBOX
1134 > ## ------------- ##
1135 > ## Output files. ##
1136 > ## ------------- ##
1137 > _ASBOX
1138 >      echo
1139 >      for ac_var in $ac_subst_files
1140 >      do
1141 >        eval ac_val=$`echo $ac_var`
1142 >        echo "$ac_var='"'"'$ac_val'"'"'"
1143 >      done | sort
1144 >      echo
1145 >    fi
1146 >
1147 >    if test -s confdefs.h; then
1148 >      cat <<\_ASBOX
1149 > ## ----------- ##
1150 > ## confdefs.h. ##
1151 > ## ----------- ##
1152 > _ASBOX
1153 >      echo
1154 >      sed "/^$/d" confdefs.h | sort
1155 >      echo
1156 >    fi
1157 >    test "$ac_signal" != 0 &&
1158 >      echo "$as_me: caught signal $ac_signal"
1159 >    echo "$as_me: exit $exit_status"
1160 >  } >&5
1161 >  rm -f core core.* *.core &&
1162 >  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163      exit $exit_status
1164       ' 0
1165   for ac_signal in 1 2 13 15; do
1166 <  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
1166 >  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167   done
1168   ac_signal=0
1169  
# Line 849 | Line 1172 | echo >confdefs.h
1172   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173   echo >confdefs.h
1174  
1175 + # Predefined preprocessor variables.
1176 +
1177 + cat >>confdefs.h <<_ACEOF
1178 + #define PACKAGE_NAME "$PACKAGE_NAME"
1179 + _ACEOF
1180 +
1181 +
1182 + cat >>confdefs.h <<_ACEOF
1183 + #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184 + _ACEOF
1185 +
1186 +
1187 + cat >>confdefs.h <<_ACEOF
1188 + #define PACKAGE_VERSION "$PACKAGE_VERSION"
1189 + _ACEOF
1190 +
1191 +
1192 + cat >>confdefs.h <<_ACEOF
1193 + #define PACKAGE_STRING "$PACKAGE_STRING"
1194 + _ACEOF
1195 +
1196 +
1197 + cat >>confdefs.h <<_ACEOF
1198 + #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199 + _ACEOF
1200 +
1201 +
1202   # Let the site file select an alternate cache file if it wants to.
1203   # Prefer explicitly selected file to automatically selected ones.
1204   if test -z "$CONFIG_SITE"; then
# Line 860 | Line 1210 | for ac_site_file in $CONFIG_SITE; do
1210   fi
1211   for ac_site_file in $CONFIG_SITE; do
1212    if test -r "$ac_site_file"; then
1213 <    { echo "$as_me:863: loading site script $ac_site_file" >&5
1213 >    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1214   echo "$as_me: loading site script $ac_site_file" >&6;}
1215 <    cat "$ac_site_file" >&5
1215 >    sed 's/^/| /' "$ac_site_file" >&5
1216      . "$ac_site_file"
1217    fi
1218   done
# Line 871 | Line 1221 | if test -r "$cache_file"; then
1221    # Some versions of bash will fail to source /dev/null (special
1222    # files actually), so we avoid doing that.
1223    if test -f "$cache_file"; then
1224 <    { echo "$as_me:874: loading cache $cache_file" >&5
1224 >    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1225   echo "$as_me: loading cache $cache_file" >&6;}
1226      case $cache_file in
1227        [\\/]* | ?:[\\/]* ) . $cache_file;;
# Line 879 | Line 1229 | else
1229      esac
1230    fi
1231   else
1232 <  { echo "$as_me:882: creating cache $cache_file" >&5
1232 >  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233   echo "$as_me: creating cache $cache_file" >&6;}
1234    >$cache_file
1235   fi
1236  
1237   # Check that the precious variables saved in the cache have kept the same
1238   # value.
1239 < ac_suggest_removing_cache=false
1239 > ac_cache_corrupted=false
1240   for ac_var in `(set) 2>&1 |
1241                 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1242    eval ac_old_set=\$ac_cv_env_${ac_var}_set
# Line 895 | Line 1245 | for ac_var in `(set) 2>&1 |
1245    eval ac_new_val="\$ac_env_${ac_var}_value"
1246    case $ac_old_set,$ac_new_set in
1247      set,)
1248 <      { echo "$as_me:898: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1249 < echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1250 <      ac_suggest_removing_cache=: ;;
1248 >      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1249 > echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1250 >      ac_cache_corrupted=: ;;
1251      ,set)
1252 <      { echo "$as_me:902: WARNING: \`$ac_var' was not set in the previous run" >&5
1253 < echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1254 <      ac_suggest_removing_cache=: ;;
1252 >      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1253 > echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1254 >      ac_cache_corrupted=: ;;
1255      ,);;
1256      *)
1257        if test "x$ac_old_val" != "x$ac_new_val"; then
1258 <        { echo "$as_me:908: WARNING: \`$ac_var' has changed since the previous run:" >&5
1259 < echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1260 <        { echo "$as_me:910: WARNING:   former value:  $ac_old_val" >&5
1261 < echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
1262 <        { echo "$as_me:912: WARNING:   current value: $ac_new_val" >&5
1263 < echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
1264 <        ac_suggest_removing_cache=:
1258 >        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1259 > echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1260 >        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1261 > echo "$as_me:   former value:  $ac_old_val" >&2;}
1262 >        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1263 > echo "$as_me:   current value: $ac_new_val" >&2;}
1264 >        ac_cache_corrupted=:
1265        fi;;
1266    esac
1267 +  # Pass precious variables to config.status.
1268 +  if test "$ac_new_set" = set; then
1269 +    case $ac_new_val in
1270 +    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 +      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1272 +    *) ac_arg=$ac_var=$ac_new_val ;;
1273 +    esac
1274 +    case " $ac_configure_args " in
1275 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1276 +      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1277 +    esac
1278 +  fi
1279   done
1280 < if $ac_suggest_removing_cache; then
1281 <  { echo "$as_me:919: WARNING: changes in the environment can compromise the build" >&5
1282 < echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1283 <  { echo "$as_me:921: WARNING: consider removing $cache_file and starting over" >&5
1284 < echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
1280 > if $ac_cache_corrupted; then
1281 >  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1282 > echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1283 >  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1284 > echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1285 >   { (exit 1); exit 1; }; }
1286   fi
1287  
1288   ac_ext=c
# Line 928 | Line 1291 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing;
1291   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1292   ac_compiler_gnu=$ac_cv_c_compiler_gnu
1293  
931 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
932  *c*,-n*) ECHO_N= ECHO_C='
933 ' ECHO_T='      ' ;;
934  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
935  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
936 esac
937 echo "#! $SHELL" >conftest.sh
938 echo  "exit 0"   >>conftest.sh
939 chmod +x conftest.sh
940 if { (echo "$as_me:940: PATH=\".;.\"; conftest.sh") >&5
941  (PATH=".;."; conftest.sh) 2>&5
942  ac_status=$?
943  echo "$as_me:943: \$? = $ac_status" >&5
944  (exit $ac_status); }; then
945  ac_path_separator=';'
946 else
947  ac_path_separator=:
948 fi
949 PATH_SEPARATOR="$ac_path_separator"
950 rm -f conftest.sh
1294  
1295 +
1296 +
1297 +
1298 +
1299 +
1300 +
1301 +
1302 +
1303 +
1304 +
1305 +
1306 +
1307 +
1308 +
1309 +
1310 +
1311 +
1312 +
1313 +
1314 +
1315 +
1316 +
1317 +
1318 +
1319 +
1320   ac_aux_dir=
1321   for ac_dir in ac-tools $srcdir/ac-tools; do
1322    if test -f $ac_dir/install-sh; then
# Line 966 | Line 1334 | if test -z "$ac_aux_dir"; then
1334    fi
1335   done
1336   if test -z "$ac_aux_dir"; then
1337 <  { { echo "$as_me:969: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1337 >  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1338   echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
1339     { (exit 1); exit 1; }; }
1340   fi
# Line 974 | Line 1342 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1342   ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1343   ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1344  
1345 +
1346   # This file is part of Autoconf.                       -*- Autoconf -*-
1347   # Programming languages support.
1348   # Copyright 2000, 2001
# Line 1024 | Line 1393 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1393   # Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably
1394   # many others).
1395  
1396 +
1397   # Table of Contents:
1398   #
1399   # 1. Language selection
# Line 1059 | Line 1429 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1429   # ACTION-IF-NOT-FOUND.
1430   # _AC_LIST_MEMBER_IF
1431  
1432 +
1433 +
1434   # _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE)
1435   # -------------------------------------------------
1436   #
# Line 1089 | Line 1461 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1461   # FIXME: Get rid of this macro.
1462   # _AC_LINKER_OPTION
1463  
1464 +
1465 +
1466   ## ----------------------- ##
1467   ## 1. Language selection.  ##
1468   ## ----------------------- ##
# Line 1100 | Line 1474 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1474   # AC_LANG(Fortran 90)
1475   # -------------------
1476  
1477 +
1478 +
1479   # _AC_LANG_ABBREV(Fortran 90)
1480   # ---------------------------
1481  
1482 +
1483 +
1484   # ----------------------------- #
1485   # 1c. The Fortran 95 language.  #
1486   # ----------------------------- #
# Line 1110 | Line 1488 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1488   # AC_LANG(Fortran 95)
1489   # -------------------
1490  
1491 +
1492 +
1493   # _AC_LANG_ABBREV(Fortran 95)
1494   # ---------------------------
1495 +
1496 +
1497  
1498   ## ---------------------- ##
1499   ## 2.Producing programs.  ##
# Line 1124 | Line 1506 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1506   # AC_LANG_SOURCE(Fortran 90)(BODY)
1507   # --------------------------------
1508  
1509 +
1510 +
1511   # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY])
1512   # -----------------------------------------------
1513  
1514 +
1515   # AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION)
1516   # --------------------------------------------
1517  
1518 +
1519 +
1520   # ------------------------ #
1521   # 2c. Fortran 95 sources.  #
1522   # ------------------------ #
# Line 1137 | Line 1524 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1524   # AC_LANG_SOURCE(Fortran 95)(BODY)
1525   # --------------------------------
1526  
1527 +
1528   # AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY])
1529   # -----------------------------------------------
1530  
1531 +
1532   # AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION)
1533   # --------------------------------------------
1534  
1535 +
1536 +
1537   ## -------------------------------------------- ##
1538   ## 3. Looking for Compilers and Preprocessors.  ##
1539   ## -------------------------------------------- ##
# Line 1151 | Line 1542 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1542   # 3b. The Fortran 90 compiler.  #
1543   # ----------------------------- #
1544  
1545 +
1546   # AC_LANG_PREPROC(Fortran 90)
1547   # ---------------------------
1548   # Find the Fortran 90 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able.
1549  
1550 +
1551 +
1552   # AC_LANG_COMPILER(Fortran 90)
1553   # ----------------------------
1554   # Find the Fortran 90 compiler.  Must be AC_DEFUN'd to be
1555   # AC_REQUIRE'able.
1556  
1557 +
1558 +
1559   # AC_PROG_F90([COMPILERS...])
1560   # ---------------------------
1561   # COMPILERS is a space separated list of Fortran 90 compilers to search
# Line 1176 | Line 1572 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1572   # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1573   # AC_PROG_F90
1574  
1575 +
1576   # ----------------------------- #
1577   # 3c. The Fortran 95 compiler.  #
1578   # ----------------------------- #
1579  
1580 +
1581   # AC_LANG_PREPROC(Fortran 95)
1582   # ---------------------------
1583   # Find the Fortran 95 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able.
1584  
1585 +
1586 +
1587   # AC_LANG_COMPILER(Fortran 95)
1588   # ----------------------------
1589   # Find the Fortran 95 compiler.  Must be AC_DEFUN'd to be
1590   # AC_REQUIRE'able.
1591  
1592 +
1593 +
1594   # AC_PROG_F95([COMPILERS...])
1595   # ---------------------------
1596   # COMPILERS is a space separated list of Fortran 95 compilers to search
# Line 1202 | Line 1604 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1604   # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1605   # AC_PROG_F95
1606  
1607 +
1608   ## ------------------------------- ##
1609   ## 4. Compilers' characteristics.  ##
1610   ## ------------------------------- ##
1611  
1612 +
1613   # ---------------------------------------- #
1614   # 4b. Fortan 90 compiler characteristics.  #
1615   # ---------------------------------------- #
1616  
1617 +
1618   # _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v])
1619   # -------------------------------------------------
1620   # Link a trivial Fortran program, compiling with a verbose output FLAG
# Line 1220 | Line 1625 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1625   # space-separated items.
1626   # _AC_PROG_F90_V_OUTPUT
1627  
1628 +
1629   # _AC_PROG_F90_V
1630   # --------------
1631   #
# Line 1229 | Line 1635 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1635   # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1636   # _AC_PROG_F90_V
1637  
1638 +
1639   # AC_F90_LIBRARY_LDFLAGS
1640   # ----------------------
1641   #
# Line 1256 | Line 1663 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1663   # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1664   # AC_F90_LIBRARY_LDFLAGS
1665  
1666 +
1667   # _AC_F90_NAME_MANGLING
1668   # ---------------------
1669   # Test for the name mangling scheme used by the Fortran 90 compiler.
# Line 1275 | Line 1683 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1683  
1684   # The replacement is empty.
1685  
1686 +
1687 +
1688   # AC_F90_WRAPPERS
1689   # ---------------
1690   # Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to
# Line 1283 | Line 1693 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1693   # scheme used by the Fortran 90 compiler.
1694   # AC_F90_WRAPPERS
1695  
1696 +
1697   # AC_F90_FUNC(NAME, [SHELLVAR = NAME])
1698   # ------------------------------------
1699   # For a Fortran subroutine of given NAME, define a shell variable
# Line 1290 | Line 1701 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1701   # argument is not supplied, it defaults to NAME.
1702   # AC_F90_FUNC
1703  
1704 +
1705   # ---------------------------------------- #
1706   # 4c. Fortan 95 compiler characteristics.  #
1707   # ---------------------------------------- #
1708 +
1709  
1710   # _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v])
1711   # -------------------------------------------------
# Line 1304 | Line 1717 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1717   # space-separated items.
1718   # _AC_PROG_F95_V_OUTPUT
1719  
1720 +
1721   # _AC_PROG_F95_V
1722   # --------------
1723   #
# Line 1313 | Line 1727 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1727   # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1728   # _AC_PROG_F95_V
1729  
1730 +
1731   # AC_F95_LIBRARY_LDFLAGS
1732   # ----------------------
1733   #
# Line 1340 | Line 1755 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1755   # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1756   # AC_F95_LIBRARY_LDFLAGS
1757  
1758 +
1759   # _AC_F95_NAME_MANGLING
1760   # ---------------------
1761   # Test for the name mangling scheme used by the Fortran 95 compiler.
# Line 1359 | Line 1775 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1775  
1776   # The replacement is empty.
1777  
1778 +
1779 +
1780   # AC_F95_WRAPPERS
1781   # ---------------
1782   # Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to
# Line 1367 | Line 1785 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1785   # scheme used by the Fortran 95 compiler.
1786   # AC_F95_WRAPPERS
1787  
1788 +
1789   # AC_F95_FUNC(NAME, [SHELLVAR = NAME])
1790   # ------------------------------------
1791   # For a Fortran subroutine of given NAME, define a shell variable
# Line 1374 | Line 1793 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1793   # argument is not supplied, it defaults to NAME.
1794   # AC_F95_FUNC
1795  
1377 # what should I build?
1796  
1379 # Check whether --enable-debug or --disable-debug was given.
1380 if test "${enable_debug+set}" = set; then
1381  enableval="$enable_debug"
1382  DEBUG=1
1383 fi;
1797  
1798 +
1799 +
1800 +
1801 +
1802 +
1803 +
1804 +
1805 +
1806 +
1807 +
1808 +
1809 +
1810 +
1811 +
1812 +
1813 +
1814 +
1815 +
1816 +
1817 +
1818 +
1819 +
1820 +
1821 +
1822 +
1823 +
1824 +
1825 +
1826 +
1827 +
1828 +
1829 +
1830 +
1831 +
1832 +
1833 +
1834 +
1835 +
1836 +
1837 +
1838 +
1839   # set program name
1840   PROGNAME="oopse"
1841  
1842 +
1843 + # there are two ways to do debugging.  One with the --enable-debug flag
1844 + # and one using the DEBUG environment variable
1845 +
1846 + debug=0
1847 + # Check whether --enable-debug or --disable-debug was given.
1848 + if test "${enable_debug+set}" = set; then
1849 +  enableval="$enable_debug"
1850 +  debug=1
1851 + fi;
1852   if test "${DEBUG}"; then
1853  
1854 < cat >>confdefs.h <<\EOF
1855 < #define DEBUG 1
1856 < EOF
1854 > cat >>confdefs.h <<\_ACEOF
1855 > #define debug 1
1856 > _ACEOF
1857  
1858    msg="$msg, debug mode"
1859   fi
1860  
1861 +
1862   # who am i
1863   # Make sure we can run config.sub.
1864   $ac_config_sub sun4 >/dev/null 2>&1 ||
1865 <  { { echo "$as_me:1400: error: cannot run $ac_config_sub" >&5
1865 >  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1866   echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1867     { (exit 1); exit 1; }; }
1868  
1869 < echo "$as_me:1404: checking build system type" >&5
1869 > echo "$as_me:$LINENO: checking build system type" >&5
1870   echo $ECHO_N "checking build system type... $ECHO_C" >&6
1871   if test "${ac_cv_build+set}" = set; then
1872    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1410 | Line 1875 | test -z "$ac_cv_build_alias" &&
1875   test -z "$ac_cv_build_alias" &&
1876    ac_cv_build_alias=`$ac_config_guess`
1877   test -z "$ac_cv_build_alias" &&
1878 <  { { echo "$as_me:1413: error: cannot guess build type; you must specify one" >&5
1878 >  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1879   echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1880     { (exit 1); exit 1; }; }
1881   ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1882 <  { { echo "$as_me:1417: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1883 < echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1882 >  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1883 > echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1884     { (exit 1); exit 1; }; }
1885  
1886   fi
1887 < echo "$as_me:1422: result: $ac_cv_build" >&5
1887 > echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1888   echo "${ECHO_T}$ac_cv_build" >&6
1889   build=$ac_cv_build
1890   build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1891   build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1892   build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1893  
1894 < echo "$as_me:1429: checking host system type" >&5
1894 >
1895 > echo "$as_me:$LINENO: checking host system type" >&5
1896   echo $ECHO_N "checking host system type... $ECHO_C" >&6
1897   if test "${ac_cv_host+set}" = set; then
1898    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1435 | Line 1901 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1901   test -z "$ac_cv_host_alias" &&
1902    ac_cv_host_alias=$ac_cv_build_alias
1903   ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1904 <  { { echo "$as_me:1438: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1904 >  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1905   echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1906     { (exit 1); exit 1; }; }
1907  
1908   fi
1909 < echo "$as_me:1443: result: $ac_cv_host" >&5
1909 > echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1910   echo "${ECHO_T}$ac_cv_host" >&6
1911   host=$ac_cv_host
1912   host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1913   host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1914   host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1915  
1916 +
1917 +
1918   ac_ext=c
1919   ac_cpp='$CPP $CPPFLAGS'
1920   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 1457 | Line 1925 | echo "$as_me:1460: checking for $ac_word" >&5
1925    do
1926      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1927   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1928 < echo "$as_me:1460: checking for $ac_word" >&5
1928 > echo "$as_me:$LINENO: checking for $ac_word" >&5
1929   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930   if test "${ac_cv_prog_CC+set}" = set; then
1931    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1465 | Line 1933 | else
1933    if test -n "$CC"; then
1934    ac_cv_prog_CC="$CC" # Let the user override the test.
1935   else
1936 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
1937 < ac_dummy="$PATH"
1938 < for ac_dir in $ac_dummy; do
1939 <  IFS=$ac_save_IFS
1940 <  test -z "$ac_dir" && ac_dir=.
1941 <  $as_executable_p "$ac_dir/$ac_word" || continue
1942 < ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1943 < echo "$as_me:1475: found $ac_dir/$ac_word" >&5
1944 < break
1936 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937 > for as_dir in $PATH
1938 > do
1939 >  IFS=$as_save_IFS
1940 >  test -z "$as_dir" && as_dir=.
1941 >  for ac_exec_ext in '' $ac_executable_extensions; do
1942 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1943 >    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1944 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 >    break 2
1946 >  fi
1947   done
1948 + done
1949  
1950   fi
1951   fi
1952   CC=$ac_cv_prog_CC
1953   if test -n "$CC"; then
1954 <  echo "$as_me:1483: result: $CC" >&5
1954 >  echo "$as_me:$LINENO: result: $CC" >&5
1955   echo "${ECHO_T}$CC" >&6
1956   else
1957 <  echo "$as_me:1486: result: no" >&5
1957 >  echo "$as_me:$LINENO: result: no" >&5
1958   echo "${ECHO_T}no" >&6
1959   fi
1960  
# Line 1496 | Line 1967 | echo "$as_me:1499: checking for $ac_word" >&5
1967   do
1968    # Extract the first word of "$ac_prog", so it can be a program name with args.
1969   set dummy $ac_prog; ac_word=$2
1970 < echo "$as_me:1499: checking for $ac_word" >&5
1970 > echo "$as_me:$LINENO: checking for $ac_word" >&5
1971   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972   if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1973    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1504 | Line 1975 | else
1975    if test -n "$ac_ct_CC"; then
1976    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1977   else
1978 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
1979 < ac_dummy="$PATH"
1980 < for ac_dir in $ac_dummy; do
1981 <  IFS=$ac_save_IFS
1982 <  test -z "$ac_dir" && ac_dir=.
1983 <  $as_executable_p "$ac_dir/$ac_word" || continue
1984 < ac_cv_prog_ac_ct_CC="$ac_prog"
1985 < echo "$as_me:1514: found $ac_dir/$ac_word" >&5
1986 < break
1978 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 > for as_dir in $PATH
1980 > do
1981 >  IFS=$as_save_IFS
1982 >  test -z "$as_dir" && as_dir=.
1983 >  for ac_exec_ext in '' $ac_executable_extensions; do
1984 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985 >    ac_cv_prog_ac_ct_CC="$ac_prog"
1986 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 >    break 2
1988 >  fi
1989   done
1990 + done
1991  
1992   fi
1993   fi
1994   ac_ct_CC=$ac_cv_prog_ac_ct_CC
1995   if test -n "$ac_ct_CC"; then
1996 <  echo "$as_me:1522: result: $ac_ct_CC" >&5
1996 >  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1997   echo "${ECHO_T}$ac_ct_CC" >&6
1998   else
1999 <  echo "$as_me:1525: result: no" >&5
1999 >  echo "$as_me:$LINENO: result: no" >&5
2000   echo "${ECHO_T}no" >&6
2001   fi
2002  
# Line 1532 | Line 2006 | test -z "$CC" && { { echo "$as_me:1535: error: no acce
2006    CC=$ac_ct_CC
2007   fi
2008  
2009 < test -z "$CC" && { { echo "$as_me:1535: error: no acceptable cc found in \$PATH" >&5
2010 < echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2009 >
2010 > test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2011 > See \`config.log' for more details." >&5
2012 > echo "$as_me: error: no acceptable C compiler found in \$PATH
2013 > See \`config.log' for more details." >&2;}
2014     { (exit 1); exit 1; }; }
2015  
2016 + # Provide some information about the compiler.
2017 + echo "$as_me:$LINENO:" \
2018 +     "checking for C compiler version" >&5
2019 + ac_compiler=`set X $ac_compile; echo $2`
2020 + { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2021 +  (eval $ac_compiler --version </dev/null >&5) 2>&5
2022 +  ac_status=$?
2023 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 +  (exit $ac_status); }
2025 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2026 +  (eval $ac_compiler -v </dev/null >&5) 2>&5
2027 +  ac_status=$?
2028 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 +  (exit $ac_status); }
2030 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2031 +  (eval $ac_compiler -V </dev/null >&5) 2>&5
2032 +  ac_status=$?
2033 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 +  (exit $ac_status); }
2035 +
2036   cat >conftest.$ac_ext <<_ACEOF
2037 < #line 1540 "configure"
2038 < #include "confdefs.h"
2037 > #line $LINENO "configure"
2038 > /* confdefs.h.  */
2039 > _ACEOF
2040 > cat confdefs.h >>conftest.$ac_ext
2041 > cat >>conftest.$ac_ext <<_ACEOF
2042 > /* end confdefs.h.  */
2043  
2044   int
2045   main ()
# Line 1549 | Line 2050 | ac_clean_files="$ac_clean_files a.out a.exe"
2050   }
2051   _ACEOF
2052   ac_clean_files_save=$ac_clean_files
2053 < ac_clean_files="$ac_clean_files a.out a.exe"
2053 > ac_clean_files="$ac_clean_files a.out a.exe b.out"
2054   # Try to create an executable without -o first, disregard a.out.
2055 < # It will help us diagnose broken compiler, and finding out an intuition
2055 > # It will help us diagnose broken compilers, and finding out an intuition
2056   # of exeext.
2057 < echo "$as_me:1556: checking for C compiler default output" >&5
2057 > echo "$as_me:$LINENO: checking for C compiler default output" >&5
2058   echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2059   ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2060 < if { (eval echo "$as_me:1559: \"$ac_link_default\"") >&5
2060 > if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2061    (eval $ac_link_default) 2>&5
2062    ac_status=$?
2063 <  echo "$as_me:1562: \$? = $ac_status" >&5
2063 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064    (exit $ac_status); }; then
2065 <  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
2065 >  # Find the output, starting from the most likely.  This scheme is
2066 > # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2067 > # resort.
2068 >
2069 > # Be careful to initialize this variable, since it used to be cached.
2070 > # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2071 > ac_cv_exeext=
2072 > # b.out is created by i960 compilers.
2073 > for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2074 > do
2075 >  test -f "$ac_file" || continue
2076    case $ac_file in
2077 <    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2078 <    a.out ) # We found the default executable, but exeext='' is most
2079 <            # certainly right.
2080 <            break;;
2081 <    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2082 <          export ac_cv_exeext
2083 <          break;;
2084 <    * ) break;;
2077 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2078 >        ;;
2079 >    conftest.$ac_ext )
2080 >        # This is the source file.
2081 >        ;;
2082 >    [ab].out )
2083 >        # We found the default executable, but exeext='' is most
2084 >        # certainly right.
2085 >        break;;
2086 >    *.* )
2087 >        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2088 >        # FIXME: I believe we export ac_cv_exeext for Libtool,
2089 >        # but it would be cool to find out if it's true.  Does anybody
2090 >        # maintain Libtool? --akim.
2091 >        export ac_cv_exeext
2092 >        break;;
2093 >    * )
2094 >        break;;
2095    esac
2096   done
2097   else
2098    echo "$as_me: failed program was:" >&5
2099 < cat conftest.$ac_ext >&5
2100 < { { echo "$as_me:1579: error: C compiler cannot create executables" >&5
2101 < echo "$as_me: error: C compiler cannot create executables" >&2;}
2099 > sed 's/^/| /' conftest.$ac_ext >&5
2100 >
2101 > { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2102 > See \`config.log' for more details." >&5
2103 > echo "$as_me: error: C compiler cannot create executables
2104 > See \`config.log' for more details." >&2;}
2105     { (exit 77); exit 77; }; }
2106   fi
2107  
2108   ac_exeext=$ac_cv_exeext
2109 < echo "$as_me:1585: result: $ac_file" >&5
2109 > echo "$as_me:$LINENO: result: $ac_file" >&5
2110   echo "${ECHO_T}$ac_file" >&6
2111  
2112   # Check the compiler produces executables we can run.  If not, either
2113   # the compiler is broken, or we cross compile.
2114 < echo "$as_me:1590: checking whether the C compiler works" >&5
2114 > echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2115   echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2116   # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2117   # If not cross compiling, check that we can run a simple program.
2118   if test "$cross_compiling" != yes; then
2119    if { ac_try='./$ac_file'
2120 <  { (eval echo "$as_me:1596: \"$ac_try\"") >&5
2120 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121    (eval $ac_try) 2>&5
2122    ac_status=$?
2123 <  echo "$as_me:1599: \$? = $ac_status" >&5
2123 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124    (exit $ac_status); }; }; then
2125      cross_compiling=no
2126    else
2127      if test "$cross_compiling" = maybe; then
2128          cross_compiling=yes
2129      else
2130 <        { { echo "$as_me:1606: error: cannot run C compiled programs.
2131 < If you meant to cross compile, use \`--host'." >&5
2130 >        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2131 > If you meant to cross compile, use \`--host'.
2132 > See \`config.log' for more details." >&5
2133   echo "$as_me: error: cannot run C compiled programs.
2134 < If you meant to cross compile, use \`--host'." >&2;}
2134 > If you meant to cross compile, use \`--host'.
2135 > See \`config.log' for more details." >&2;}
2136     { (exit 1); exit 1; }; }
2137      fi
2138    fi
2139   fi
2140 < echo "$as_me:1614: result: yes" >&5
2140 > echo "$as_me:$LINENO: result: yes" >&5
2141   echo "${ECHO_T}yes" >&6
2142  
2143 < rm -f a.out a.exe conftest$ac_cv_exeext
2143 > rm -f a.out a.exe conftest$ac_cv_exeext b.out
2144   ac_clean_files=$ac_clean_files_save
2145   # Check the compiler produces executables we can run.  If not, either
2146   # the compiler is broken, or we cross compile.
2147 < echo "$as_me:1621: checking whether we are cross compiling" >&5
2147 > echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2148   echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2149 < echo "$as_me:1623: result: $cross_compiling" >&5
2149 > echo "$as_me:$LINENO: result: $cross_compiling" >&5
2150   echo "${ECHO_T}$cross_compiling" >&6
2151  
2152 < echo "$as_me:1626: checking for executable suffix" >&5
2153 < echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2154 < if { (eval echo "$as_me:1628: \"$ac_link\"") >&5
2152 > echo "$as_me:$LINENO: checking for suffix of executables" >&5
2153 > echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2154 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2155    (eval $ac_link) 2>&5
2156    ac_status=$?
2157 <  echo "$as_me:1631: \$? = $ac_status" >&5
2157 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158    (exit $ac_status); }; then
2159    # If both `conftest.exe' and `conftest' are `present' (well, observable)
2160   # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2161   # work properly (i.e., refer to `conftest.exe'), while it won't with
2162   # `rm'.
2163 < for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2163 > for ac_file in conftest.exe conftest conftest.*; do
2164 >  test -f "$ac_file" || continue
2165    case $ac_file in
2166 <    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2166 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2167      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2168            export ac_cv_exeext
2169            break;;
# Line 1644 | Line 2171 | else
2171    esac
2172   done
2173   else
2174 <  { { echo "$as_me:1647: error: cannot compute EXEEXT: cannot compile and link" >&5
2175 < echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2174 >  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2175 > See \`config.log' for more details." >&5
2176 > echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2177 > See \`config.log' for more details." >&2;}
2178     { (exit 1); exit 1; }; }
2179   fi
2180  
2181   rm -f conftest$ac_cv_exeext
2182 < echo "$as_me:1653: result: $ac_cv_exeext" >&5
2182 > echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2183   echo "${ECHO_T}$ac_cv_exeext" >&6
2184  
2185   rm -f conftest.$ac_ext
2186   EXEEXT=$ac_cv_exeext
2187   ac_exeext=$EXEEXT
2188 < echo "$as_me:1659: checking for object suffix" >&5
2189 < echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2188 > echo "$as_me:$LINENO: checking for suffix of object files" >&5
2189 > echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2190   if test "${ac_cv_objext+set}" = set; then
2191    echo $ECHO_N "(cached) $ECHO_C" >&6
2192   else
2193    cat >conftest.$ac_ext <<_ACEOF
2194 < #line 1665 "configure"
2195 < #include "confdefs.h"
2194 > #line $LINENO "configure"
2195 > /* confdefs.h.  */
2196 > _ACEOF
2197 > cat confdefs.h >>conftest.$ac_ext
2198 > cat >>conftest.$ac_ext <<_ACEOF
2199 > /* end confdefs.h.  */
2200  
2201   int
2202   main ()
# Line 1674 | Line 2207 | if { (eval echo "$as_me:1677: \"$ac_compile\"") >&5
2207   }
2208   _ACEOF
2209   rm -f conftest.o conftest.obj
2210 < if { (eval echo "$as_me:1677: \"$ac_compile\"") >&5
2210 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211    (eval $ac_compile) 2>&5
2212    ac_status=$?
2213 <  echo "$as_me:1680: \$? = $ac_status" >&5
2213 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214    (exit $ac_status); }; then
2215    for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2216    case $ac_file in
2217 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2217 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2218      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2219         break;;
2220    esac
2221   done
2222   else
2223    echo "$as_me: failed program was:" >&5
2224 < cat conftest.$ac_ext >&5
2225 < { { echo "$as_me:1692: error: cannot compute OBJEXT: cannot compile" >&5
2226 < echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2224 > sed 's/^/| /' conftest.$ac_ext >&5
2225 >
2226 > { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2227 > See \`config.log' for more details." >&5
2228 > echo "$as_me: error: cannot compute suffix of object files: cannot compile
2229 > See \`config.log' for more details." >&2;}
2230     { (exit 1); exit 1; }; }
2231   fi
2232  
2233   rm -f conftest.$ac_cv_objext conftest.$ac_ext
2234   fi
2235 < echo "$as_me:1699: result: $ac_cv_objext" >&5
2235 > echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2236   echo "${ECHO_T}$ac_cv_objext" >&6
2237   OBJEXT=$ac_cv_objext
2238   ac_objext=$OBJEXT
2239 < echo "$as_me:1703: checking whether we are using the GNU C compiler" >&5
2239 > echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2240   echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2241   if test "${ac_cv_c_compiler_gnu+set}" = set; then
2242    echo $ECHO_N "(cached) $ECHO_C" >&6
2243   else
2244    cat >conftest.$ac_ext <<_ACEOF
2245 < #line 1709 "configure"
2246 < #include "confdefs.h"
2245 > #line $LINENO "configure"
2246 > /* confdefs.h.  */
2247 > _ACEOF
2248 > cat confdefs.h >>conftest.$ac_ext
2249 > cat >>conftest.$ac_ext <<_ACEOF
2250 > /* end confdefs.h.  */
2251  
2252   int
2253   main ()
# Line 1721 | Line 2261 | if { (eval echo "$as_me:1724: \"$ac_compile\"") >&5
2261   }
2262   _ACEOF
2263   rm -f conftest.$ac_objext
2264 < if { (eval echo "$as_me:1724: \"$ac_compile\"") >&5
2264 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265    (eval $ac_compile) 2>&5
2266    ac_status=$?
2267 <  echo "$as_me:1727: \$? = $ac_status" >&5
2267 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268    (exit $ac_status); } &&
2269           { ac_try='test -s conftest.$ac_objext'
2270 <  { (eval echo "$as_me:1730: \"$ac_try\"") >&5
2270 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271    (eval $ac_try) 2>&5
2272    ac_status=$?
2273 <  echo "$as_me:1733: \$? = $ac_status" >&5
2273 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274    (exit $ac_status); }; }; then
2275    ac_compiler_gnu=yes
2276   else
2277    echo "$as_me: failed program was:" >&5
2278 < cat conftest.$ac_ext >&5
2278 > sed 's/^/| /' conftest.$ac_ext >&5
2279 >
2280   ac_compiler_gnu=no
2281   fi
2282   rm -f conftest.$ac_objext conftest.$ac_ext
2283   ac_cv_c_compiler_gnu=$ac_compiler_gnu
2284  
2285   fi
2286 < echo "$as_me:1745: result: $ac_cv_c_compiler_gnu" >&5
2286 > echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2287   echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2288   GCC=`test $ac_compiler_gnu = yes && echo yes`
2289   ac_test_CFLAGS=${CFLAGS+set}
2290   ac_save_CFLAGS=$CFLAGS
2291   CFLAGS="-g"
2292 < echo "$as_me:1751: checking whether $CC accepts -g" >&5
2292 > echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2293   echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2294   if test "${ac_cv_prog_cc_g+set}" = set; then
2295    echo $ECHO_N "(cached) $ECHO_C" >&6
2296   else
2297    cat >conftest.$ac_ext <<_ACEOF
2298 < #line 1757 "configure"
2299 < #include "confdefs.h"
2298 > #line $LINENO "configure"
2299 > /* confdefs.h.  */
2300 > _ACEOF
2301 > cat confdefs.h >>conftest.$ac_ext
2302 > cat >>conftest.$ac_ext <<_ACEOF
2303 > /* end confdefs.h.  */
2304  
2305   int
2306   main ()
# Line 1766 | Line 2311 | if { (eval echo "$as_me:1769: \"$ac_compile\"") >&5
2311   }
2312   _ACEOF
2313   rm -f conftest.$ac_objext
2314 < if { (eval echo "$as_me:1769: \"$ac_compile\"") >&5
2314 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315    (eval $ac_compile) 2>&5
2316    ac_status=$?
2317 <  echo "$as_me:1772: \$? = $ac_status" >&5
2317 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318    (exit $ac_status); } &&
2319           { ac_try='test -s conftest.$ac_objext'
2320 <  { (eval echo "$as_me:1775: \"$ac_try\"") >&5
2320 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321    (eval $ac_try) 2>&5
2322    ac_status=$?
2323 <  echo "$as_me:1778: \$? = $ac_status" >&5
2323 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324    (exit $ac_status); }; }; then
2325    ac_cv_prog_cc_g=yes
2326   else
2327    echo "$as_me: failed program was:" >&5
2328 < cat conftest.$ac_ext >&5
2328 > sed 's/^/| /' conftest.$ac_ext >&5
2329 >
2330   ac_cv_prog_cc_g=no
2331   fi
2332   rm -f conftest.$ac_objext conftest.$ac_ext
2333   fi
2334 < echo "$as_me:1788: result: $ac_cv_prog_cc_g" >&5
2334 > echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2335   echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2336   if test "$ac_test_CFLAGS" = set; then
2337    CFLAGS=$ac_save_CFLAGS
# Line 1802 | Line 2348 | fi
2348      CFLAGS=
2349    fi
2350   fi
2351 + echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2352 + echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2353 + if test "${ac_cv_prog_cc_stdc+set}" = set; then
2354 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2355 + else
2356 +  ac_cv_prog_cc_stdc=no
2357 + ac_save_CC=$CC
2358 + cat >conftest.$ac_ext <<_ACEOF
2359 + #line $LINENO "configure"
2360 + /* confdefs.h.  */
2361 + _ACEOF
2362 + cat confdefs.h >>conftest.$ac_ext
2363 + cat >>conftest.$ac_ext <<_ACEOF
2364 + /* end confdefs.h.  */
2365 + #include <stdarg.h>
2366 + #include <stdio.h>
2367 + #include <sys/types.h>
2368 + #include <sys/stat.h>
2369 + /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2370 + struct buf { int x; };
2371 + FILE * (*rcsopen) (struct buf *, struct stat *, int);
2372 + static char *e (p, i)
2373 +     char **p;
2374 +     int i;
2375 + {
2376 +  return p[i];
2377 + }
2378 + static char *f (char * (*g) (char **, int), char **p, ...)
2379 + {
2380 +  char *s;
2381 +  va_list v;
2382 +  va_start (v,p);
2383 +  s = g (p, va_arg (v,int));
2384 +  va_end (v);
2385 +  return s;
2386 + }
2387 + int test (int i, double x);
2388 + struct s1 {int (*f) (int a);};
2389 + struct s2 {int (*f) (double a);};
2390 + int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2391 + int argc;
2392 + char **argv;
2393 + int
2394 + main ()
2395 + {
2396 + return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2397 +  ;
2398 +  return 0;
2399 + }
2400 + _ACEOF
2401 + # Don't try gcc -ansi; that turns off useful extensions and
2402 + # breaks some systems' header files.
2403 + # AIX                   -qlanglvl=ansi
2404 + # Ultrix and OSF/1      -std1
2405 + # HP-UX 10.20 and later -Ae
2406 + # HP-UX older versions  -Aa -D_HPUX_SOURCE
2407 + # SVR4                  -Xc -D__EXTENSIONS__
2408 + for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2409 + do
2410 +  CC="$ac_save_CC $ac_arg"
2411 +  rm -f conftest.$ac_objext
2412 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413 +  (eval $ac_compile) 2>&5
2414 +  ac_status=$?
2415 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 +  (exit $ac_status); } &&
2417 +         { ac_try='test -s conftest.$ac_objext'
2418 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 +  (eval $ac_try) 2>&5
2420 +  ac_status=$?
2421 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 +  (exit $ac_status); }; }; then
2423 +  ac_cv_prog_cc_stdc=$ac_arg
2424 + break
2425 + else
2426 +  echo "$as_me: failed program was:" >&5
2427 + sed 's/^/| /' conftest.$ac_ext >&5
2428 +
2429 + fi
2430 + rm -f conftest.$ac_objext
2431 + done
2432 + rm -f conftest.$ac_ext conftest.$ac_objext
2433 + CC=$ac_save_CC
2434 +
2435 + fi
2436 +
2437 + case "x$ac_cv_prog_cc_stdc" in
2438 +  x|xno)
2439 +    echo "$as_me:$LINENO: result: none needed" >&5
2440 + echo "${ECHO_T}none needed" >&6 ;;
2441 +  *)
2442 +    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2443 + echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2444 +    CC="$CC $ac_cv_prog_cc_stdc" ;;
2445 + esac
2446 +
2447   # Some people use a C++ compiler to compile C.  Since we use `exit',
2448   # in C++ we need to declare it.  In case someone uses the same compiler
2449   # for both compiling C and C++ we need to have the C++ compiler decide
# Line 1812 | Line 2454 | if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5
2454   #endif
2455   _ACEOF
2456   rm -f conftest.$ac_objext
2457 < if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5
2457 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2458    (eval $ac_compile) 2>&5
2459    ac_status=$?
2460 <  echo "$as_me:1818: \$? = $ac_status" >&5
2460 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461    (exit $ac_status); } &&
2462           { ac_try='test -s conftest.$ac_objext'
2463 <  { (eval echo "$as_me:1821: \"$ac_try\"") >&5
2463 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464    (eval $ac_try) 2>&5
2465    ac_status=$?
2466 <  echo "$as_me:1824: \$? = $ac_status" >&5
2466 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467    (exit $ac_status); }; }; then
2468    for ac_declaration in \
2469     ''\
# Line 1833 | Line 2475 | do
2475     'void exit (int);'
2476   do
2477    cat >conftest.$ac_ext <<_ACEOF
2478 < #line 1836 "configure"
2479 < #include "confdefs.h"
2478 > #line $LINENO "configure"
2479 > /* confdefs.h.  */
2480 > _ACEOF
2481 > cat confdefs.h >>conftest.$ac_ext
2482 > cat >>conftest.$ac_ext <<_ACEOF
2483 > /* end confdefs.h.  */
2484   #include <stdlib.h>
2485   $ac_declaration
2486   int
# Line 1846 | Line 2492 | if { (eval echo "$as_me:1849: \"$ac_compile\"") >&5
2492   }
2493   _ACEOF
2494   rm -f conftest.$ac_objext
2495 < if { (eval echo "$as_me:1849: \"$ac_compile\"") >&5
2495 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496    (eval $ac_compile) 2>&5
2497    ac_status=$?
2498 <  echo "$as_me:1852: \$? = $ac_status" >&5
2498 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499    (exit $ac_status); } &&
2500           { ac_try='test -s conftest.$ac_objext'
2501 <  { (eval echo "$as_me:1855: \"$ac_try\"") >&5
2501 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502    (eval $ac_try) 2>&5
2503    ac_status=$?
2504 <  echo "$as_me:1858: \$? = $ac_status" >&5
2504 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505    (exit $ac_status); }; }; then
2506    :
2507   else
2508    echo "$as_me: failed program was:" >&5
2509 < cat conftest.$ac_ext >&5
2509 > sed 's/^/| /' conftest.$ac_ext >&5
2510 >
2511   continue
2512   fi
2513   rm -f conftest.$ac_objext conftest.$ac_ext
2514    cat >conftest.$ac_ext <<_ACEOF
2515 < #line 1868 "configure"
2516 < #include "confdefs.h"
2515 > #line $LINENO "configure"
2516 > /* confdefs.h.  */
2517 > _ACEOF
2518 > cat confdefs.h >>conftest.$ac_ext
2519 > cat >>conftest.$ac_ext <<_ACEOF
2520 > /* end confdefs.h.  */
2521   $ac_declaration
2522   int
2523   main ()
# Line 1877 | Line 2528 | if { (eval echo "$as_me:1880: \"$ac_compile\"") >&5
2528   }
2529   _ACEOF
2530   rm -f conftest.$ac_objext
2531 < if { (eval echo "$as_me:1880: \"$ac_compile\"") >&5
2531 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2532    (eval $ac_compile) 2>&5
2533    ac_status=$?
2534 <  echo "$as_me:1883: \$? = $ac_status" >&5
2534 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535    (exit $ac_status); } &&
2536           { ac_try='test -s conftest.$ac_objext'
2537 <  { (eval echo "$as_me:1886: \"$ac_try\"") >&5
2537 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538    (eval $ac_try) 2>&5
2539    ac_status=$?
2540 <  echo "$as_me:1889: \$? = $ac_status" >&5
2540 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541    (exit $ac_status); }; }; then
2542    break
2543   else
2544    echo "$as_me: failed program was:" >&5
2545 < cat conftest.$ac_ext >&5
2545 > sed 's/^/| /' conftest.$ac_ext >&5
2546 >
2547   fi
2548   rm -f conftest.$ac_objext conftest.$ac_ext
2549   done
2550 < echo '#ifdef __cplusplus' >>confdefs.h
2551 < echo $ac_declaration      >>confdefs.h
2552 < echo '#endif'             >>confdefs.h
2550 > rm -f conftest*
2551 > if test -n "$ac_declaration"; then
2552 >  echo '#ifdef __cplusplus' >>confdefs.h
2553 >  echo $ac_declaration      >>confdefs.h
2554 >  echo '#endif'             >>confdefs.h
2555 > fi
2556  
2557   else
2558    echo "$as_me: failed program was:" >&5
2559 < cat conftest.$ac_ext >&5
2559 > sed 's/^/| /' conftest.$ac_ext >&5
2560 >
2561 > fi
2562 > rm -f conftest.$ac_objext conftest.$ac_ext
2563 > ac_ext=c
2564 > ac_cpp='$CPP $CPPFLAGS'
2565 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568 >
2569 > ac_ext=cc
2570 > ac_cpp='$CXXCPP $CPPFLAGS'
2571 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2574 > if test -n "$ac_tool_prefix"; then
2575 >  for ac_prog in $CCC icpc icc xlC CC g++ c++
2576 >  do
2577 >    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2578 > set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2579 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2581 > if test "${ac_cv_prog_CXX+set}" = set; then
2582 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2583 > else
2584 >  if test -n "$CXX"; then
2585 >  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2586 > else
2587 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 > for as_dir in $PATH
2589 > do
2590 >  IFS=$as_save_IFS
2591 >  test -z "$as_dir" && as_dir=.
2592 >  for ac_exec_ext in '' $ac_executable_extensions; do
2593 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594 >    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2595 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 >    break 2
2597 >  fi
2598 > done
2599 > done
2600 >
2601 > fi
2602 > fi
2603 > CXX=$ac_cv_prog_CXX
2604 > if test -n "$CXX"; then
2605 >  echo "$as_me:$LINENO: result: $CXX" >&5
2606 > echo "${ECHO_T}$CXX" >&6
2607 > else
2608 >  echo "$as_me:$LINENO: result: no" >&5
2609 > echo "${ECHO_T}no" >&6
2610 > fi
2611 >
2612 >    test -n "$CXX" && break
2613 >  done
2614 > fi
2615 > if test -z "$CXX"; then
2616 >  ac_ct_CXX=$CXX
2617 >  for ac_prog in $CCC icpc icc xlC CC g++ c++
2618 > do
2619 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
2620 > set dummy $ac_prog; ac_word=$2
2621 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623 > if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2624 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2625 > else
2626 >  if test -n "$ac_ct_CXX"; then
2627 >  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2628 > else
2629 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 > for as_dir in $PATH
2631 > do
2632 >  IFS=$as_save_IFS
2633 >  test -z "$as_dir" && as_dir=.
2634 >  for ac_exec_ext in '' $ac_executable_extensions; do
2635 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 >    ac_cv_prog_ac_ct_CXX="$ac_prog"
2637 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 >    break 2
2639 >  fi
2640 > done
2641 > done
2642 >
2643 > fi
2644 > fi
2645 > ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2646 > if test -n "$ac_ct_CXX"; then
2647 >  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2648 > echo "${ECHO_T}$ac_ct_CXX" >&6
2649 > else
2650 >  echo "$as_me:$LINENO: result: no" >&5
2651 > echo "${ECHO_T}no" >&6
2652 > fi
2653 >
2654 >  test -n "$ac_ct_CXX" && break
2655 > done
2656 > test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2657 >
2658 >  CXX=$ac_ct_CXX
2659 > fi
2660 >
2661 >
2662 > # Provide some information about the compiler.
2663 > echo "$as_me:$LINENO:" \
2664 >     "checking for C++ compiler version" >&5
2665 > ac_compiler=`set X $ac_compile; echo $2`
2666 > { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2667 >  (eval $ac_compiler --version </dev/null >&5) 2>&5
2668 >  ac_status=$?
2669 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 >  (exit $ac_status); }
2671 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2672 >  (eval $ac_compiler -v </dev/null >&5) 2>&5
2673 >  ac_status=$?
2674 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 >  (exit $ac_status); }
2676 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2677 >  (eval $ac_compiler -V </dev/null >&5) 2>&5
2678 >  ac_status=$?
2679 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 >  (exit $ac_status); }
2681 >
2682 > echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2683 > echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2684 > if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2685 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2686 > else
2687 >  cat >conftest.$ac_ext <<_ACEOF
2688 > #line $LINENO "configure"
2689 > /* confdefs.h.  */
2690 > _ACEOF
2691 > cat confdefs.h >>conftest.$ac_ext
2692 > cat >>conftest.$ac_ext <<_ACEOF
2693 > /* end confdefs.h.  */
2694 >
2695 > int
2696 > main ()
2697 > {
2698 > #ifndef __GNUC__
2699 >       choke me
2700 > #endif
2701 >
2702 >  ;
2703 >  return 0;
2704 > }
2705 > _ACEOF
2706 > rm -f conftest.$ac_objext
2707 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 >  (eval $ac_compile) 2>&5
2709 >  ac_status=$?
2710 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 >  (exit $ac_status); } &&
2712 >         { ac_try='test -s conftest.$ac_objext'
2713 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 >  (eval $ac_try) 2>&5
2715 >  ac_status=$?
2716 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 >  (exit $ac_status); }; }; then
2718 >  ac_compiler_gnu=yes
2719 > else
2720 >  echo "$as_me: failed program was:" >&5
2721 > sed 's/^/| /' conftest.$ac_ext >&5
2722 >
2723 > ac_compiler_gnu=no
2724 > fi
2725 > rm -f conftest.$ac_objext conftest.$ac_ext
2726 > ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2727 >
2728 > fi
2729 > echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2730 > echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2731 > GXX=`test $ac_compiler_gnu = yes && echo yes`
2732 > ac_test_CXXFLAGS=${CXXFLAGS+set}
2733 > ac_save_CXXFLAGS=$CXXFLAGS
2734 > CXXFLAGS="-g"
2735 > echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2736 > echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2737 > if test "${ac_cv_prog_cxx_g+set}" = set; then
2738 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2739 > else
2740 >  cat >conftest.$ac_ext <<_ACEOF
2741 > #line $LINENO "configure"
2742 > /* confdefs.h.  */
2743 > _ACEOF
2744 > cat confdefs.h >>conftest.$ac_ext
2745 > cat >>conftest.$ac_ext <<_ACEOF
2746 > /* end confdefs.h.  */
2747 >
2748 > int
2749 > main ()
2750 > {
2751 >
2752 >  ;
2753 >  return 0;
2754 > }
2755 > _ACEOF
2756 > rm -f conftest.$ac_objext
2757 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 >  (eval $ac_compile) 2>&5
2759 >  ac_status=$?
2760 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 >  (exit $ac_status); } &&
2762 >         { ac_try='test -s conftest.$ac_objext'
2763 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 >  (eval $ac_try) 2>&5
2765 >  ac_status=$?
2766 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 >  (exit $ac_status); }; }; then
2768 >  ac_cv_prog_cxx_g=yes
2769 > else
2770 >  echo "$as_me: failed program was:" >&5
2771 > sed 's/^/| /' conftest.$ac_ext >&5
2772 >
2773 > ac_cv_prog_cxx_g=no
2774 > fi
2775 > rm -f conftest.$ac_objext conftest.$ac_ext
2776 > fi
2777 > echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2778 > echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2779 > if test "$ac_test_CXXFLAGS" = set; then
2780 >  CXXFLAGS=$ac_save_CXXFLAGS
2781 > elif test $ac_cv_prog_cxx_g = yes; then
2782 >  if test "$GXX" = yes; then
2783 >    CXXFLAGS="-g -O2"
2784 >  else
2785 >    CXXFLAGS="-g"
2786 >  fi
2787 > else
2788 >  if test "$GXX" = yes; then
2789 >    CXXFLAGS="-O2"
2790 >  else
2791 >    CXXFLAGS=
2792 >  fi
2793 > fi
2794 > for ac_declaration in \
2795 >   ''\
2796 >   '#include <stdlib.h>' \
2797 >   'extern "C" void std::exit (int) throw (); using std::exit;' \
2798 >   'extern "C" void std::exit (int); using std::exit;' \
2799 >   'extern "C" void exit (int) throw ();' \
2800 >   'extern "C" void exit (int);' \
2801 >   'void exit (int);'
2802 > do
2803 >  cat >conftest.$ac_ext <<_ACEOF
2804 > #line $LINENO "configure"
2805 > /* confdefs.h.  */
2806 > _ACEOF
2807 > cat confdefs.h >>conftest.$ac_ext
2808 > cat >>conftest.$ac_ext <<_ACEOF
2809 > /* end confdefs.h.  */
2810 > #include <stdlib.h>
2811 > $ac_declaration
2812 > int
2813 > main ()
2814 > {
2815 > exit (42);
2816 >  ;
2817 >  return 0;
2818 > }
2819 > _ACEOF
2820 > rm -f conftest.$ac_objext
2821 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822 >  (eval $ac_compile) 2>&5
2823 >  ac_status=$?
2824 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 >  (exit $ac_status); } &&
2826 >         { ac_try='test -s conftest.$ac_objext'
2827 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 >  (eval $ac_try) 2>&5
2829 >  ac_status=$?
2830 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 >  (exit $ac_status); }; }; then
2832 >  :
2833 > else
2834 >  echo "$as_me: failed program was:" >&5
2835 > sed 's/^/| /' conftest.$ac_ext >&5
2836 >
2837 > continue
2838   fi
2839   rm -f conftest.$ac_objext conftest.$ac_ext
2840 +  cat >conftest.$ac_ext <<_ACEOF
2841 + #line $LINENO "configure"
2842 + /* confdefs.h.  */
2843 + _ACEOF
2844 + cat confdefs.h >>conftest.$ac_ext
2845 + cat >>conftest.$ac_ext <<_ACEOF
2846 + /* end confdefs.h.  */
2847 + $ac_declaration
2848 + int
2849 + main ()
2850 + {
2851 + exit (42);
2852 +  ;
2853 +  return 0;
2854 + }
2855 + _ACEOF
2856 + rm -f conftest.$ac_objext
2857 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2858 +  (eval $ac_compile) 2>&5
2859 +  ac_status=$?
2860 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 +  (exit $ac_status); } &&
2862 +         { ac_try='test -s conftest.$ac_objext'
2863 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 +  (eval $ac_try) 2>&5
2865 +  ac_status=$?
2866 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 +  (exit $ac_status); }; }; then
2868 +  break
2869 + else
2870 +  echo "$as_me: failed program was:" >&5
2871 + sed 's/^/| /' conftest.$ac_ext >&5
2872 +
2873 + fi
2874 + rm -f conftest.$ac_objext conftest.$ac_ext
2875 + done
2876 + rm -f conftest*
2877 + if test -n "$ac_declaration"; then
2878 +  echo '#ifdef __cplusplus' >>confdefs.h
2879 +  echo $ac_declaration      >>confdefs.h
2880 +  echo '#endif'             >>confdefs.h
2881 + fi
2882 +
2883   ac_ext=c
2884 + ac_cpp='$CPP $CPPFLAGS'
2885 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888 +
2889 + ac_ext=f90
2890 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
2891 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
2893 + if test -n "$ac_tool_prefix"; then
2894 +  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2895 +  do
2896 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897 + set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898 + echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900 + if test "${ac_cv_prog_F90+set}" = set; then
2901 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2902 + else
2903 +  if test -n "$F90"; then
2904 +  ac_cv_prog_F90="$F90" # Let the user override the test.
2905 + else
2906 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 + for as_dir in $PATH
2908 + do
2909 +  IFS=$as_save_IFS
2910 +  test -z "$as_dir" && as_dir=.
2911 +  for ac_exec_ext in '' $ac_executable_extensions; do
2912 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 +    ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
2914 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 +    break 2
2916 +  fi
2917 + done
2918 + done
2919 +
2920 + fi
2921 + fi
2922 + F90=$ac_cv_prog_F90
2923 + if test -n "$F90"; then
2924 +  echo "$as_me:$LINENO: result: $F90" >&5
2925 + echo "${ECHO_T}$F90" >&6
2926 + else
2927 +  echo "$as_me:$LINENO: result: no" >&5
2928 + echo "${ECHO_T}no" >&6
2929 + fi
2930 +
2931 +    test -n "$F90" && break
2932 +  done
2933 + fi
2934 + if test -z "$F90"; then
2935 +  ac_ct_F90=$F90
2936 +  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2937 + do
2938 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
2939 + set dummy $ac_prog; ac_word=$2
2940 + echo "$as_me:$LINENO: checking for $ac_word" >&5
2941 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942 + if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
2943 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2944 + else
2945 +  if test -n "$ac_ct_F90"; then
2946 +  ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
2947 + else
2948 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 + for as_dir in $PATH
2950 + do
2951 +  IFS=$as_save_IFS
2952 +  test -z "$as_dir" && as_dir=.
2953 +  for ac_exec_ext in '' $ac_executable_extensions; do
2954 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 +    ac_cv_prog_ac_ct_F90="$ac_prog"
2956 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 +    break 2
2958 +  fi
2959 + done
2960 + done
2961 +
2962 + fi
2963 + fi
2964 + ac_ct_F90=$ac_cv_prog_ac_ct_F90
2965 + if test -n "$ac_ct_F90"; then
2966 +  echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
2967 + echo "${ECHO_T}$ac_ct_F90" >&6
2968 + else
2969 +  echo "$as_me:$LINENO: result: no" >&5
2970 + echo "${ECHO_T}no" >&6
2971 + fi
2972 +
2973 +  test -n "$ac_ct_F90" && break
2974 + done
2975 +
2976 +  F90=$ac_ct_F90
2977 + fi
2978 +
2979 +
2980 + # If we don't use `.F90' as extension, the preprocessor is not run on the
2981 + # input file.
2982 + ac_save_ext=$ac_ext
2983 + ac_ext=F90
2984 + echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
2985 + echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
2986 + if test "${ac_cv_f90_compiler_gnu+set}" = set; then
2987 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2988 + else
2989 +  cat >conftest.$ac_ext <<_ACEOF
2990 +
2991 + program main
2992 +
2993 + #ifndef __GNUC__
2994 +       choke me
2995 + #endif
2996 +
2997 + end program main
2998 +
2999 + _ACEOF
3000 + rm -f conftest.$ac_objext
3001 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3002 +  (eval $ac_compile) 2>&5
3003 +  ac_status=$?
3004 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 +  (exit $ac_status); } &&
3006 +         { ac_try='test -s conftest.$ac_objext'
3007 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 +  (eval $ac_try) 2>&5
3009 +  ac_status=$?
3010 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 +  (exit $ac_status); }; }; then
3012 +  ac_compiler_gnu=yes
3013 + else
3014 +  echo "$as_me: failed program was:" >&5
3015 + sed 's/^/| /' conftest.$ac_ext >&5
3016 +
3017 + ac_compiler_gnu=no
3018 + fi
3019 + rm -f conftest.$ac_objext conftest.$ac_ext
3020 + ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3021 +
3022 + fi
3023 + echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3024 + echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3025 + ac_ext=$ac_save_ext
3026 + G95=`test $ac_compiler_gnu = yes && echo yes`
3027 + ac_ext=c
3028 + ac_cpp='$CPP $CPPFLAGS'
3029 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032 +
3033 +
3034 +
3035 +
3036 +
3037 + # Try to determine native compiler flags that allow us to use F90 suffix
3038 + # for preprocessed f90 source.
3039 +
3040 + if test "$ac_test_PREPFLAG" != "set"; then
3041 +  PREPFLAG=""
3042 +  case "${host_cpu}-${host_os}" in
3043 +
3044 +  *linux*) if test "$F90" = ifc; then
3045 +                    PREPFLAG="-fpp1 "
3046 +                fi;;
3047 +  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3048 +                    PREPFLAG="-qsuffix=cpp=F90 "
3049 +                fi;;
3050 +  *darwin*)
3051 +        if test "$F90" = f90 -o "$F90" = xlf90; then
3052 +                PREPFLAG="-qsuffix=cpp=F90 "
3053 +        fi;;
3054 +  esac
3055 +
3056 +  if test -z "$PREPFLAG"; then
3057 +        echo ""
3058 +        echo "**********************************************************"
3059 +        echo "* WARNING: Don't know the best PREPFLAG for this system  *"
3060 +        echo "* Use  make PREPFLAG=..., or edit the top level Makefile *"
3061 +        echo "* (otherwise, an empty PREPFLAG will be used)            *"
3062 +        echo "**********************************************************"
3063 +        echo ""
3064 +        PREPFLAG=""
3065 +  fi
3066 +
3067 +  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3068 + echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3069 +
3070 +
3071 +  ac_ext=f90
3072 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3073 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3075 +
3076 +  ac_save_ext=$ac_ext
3077 +  ac_ext=F90
3078 +  ac_save_F90FLAGS=$F90FLAGS
3079 +
3080 +  if test "$PREPFLAG"; then
3081 +  F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3082 + fi
3083 +
3084 +    cat >conftest.$ac_ext <<_ACEOF
3085 +
3086 +
3087 + program main
3088 +
3089 +  integer :: i
3090 +  i = 1
3091 +
3092 +
3093 + end program main
3094 +
3095 + _ACEOF
3096 + rm -f conftest.$ac_objext
3097 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098 +  (eval $ac_compile) 2>&5
3099 +  ac_status=$?
3100 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 +  (exit $ac_status); } &&
3102 +         { ac_try='test -s conftest.$ac_objext'
3103 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 +  (eval $ac_try) 2>&5
3105 +  ac_status=$?
3106 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 +  (exit $ac_status); }; }; then
3108 +  prepflagworks=1
3109 + else
3110 +  echo "$as_me: failed program was:" >&5
3111 + sed 's/^/| /' conftest.$ac_ext >&5
3112 +
3113 + prepflagworks=0
3114 + fi
3115 + rm -f conftest.$ac_objext conftest.$ac_ext
3116 +
3117 +  F90FLAGS=$ac_save_F90FLAGS
3118 +  ac_ext=$ac_save_ext
3119 +  ac_ext=c
3120 + ac_cpp='$CPP $CPPFLAGS'
3121 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124 +
3125 +
3126 +
3127 +  if test "$prepflagworks" = 1; then
3128 +    echo "$as_me:$LINENO: result: yes" >&5
3129 + echo "${ECHO_T}yes" >&6
3130 +
3131 +  else
3132 +    echo "$as_me:$LINENO: result: no" >&5
3133 + echo "${ECHO_T}no" >&6
3134 +    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3135 + echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3136 +   { (exit 1); exit 1; }; }
3137 +  fi
3138 + fi
3139 +
3140 +
3141 +
3142 +
3143 +
3144 + # Try to determine native compiler flags that allow us to use F90 suffix
3145 + # for preprocessed f90 source with -D type defines
3146 +
3147 + if test "$ac_test_PREPDEFFLAG" != "set"; then
3148 +  PREPDEFFLAG=""
3149 +  case "${host_cpu}-${host_os}" in
3150 +
3151 +  *linux*) if test "$F90" = ifc; then
3152 +                    PREPDEFFLAG=" "
3153 +                fi;;
3154 +  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3155 +                    PREPDEFFLAG="-WF,"
3156 +                fi;;
3157 +  *darwin*)
3158 +        if test "$F90" = f90 -o "$F90" = xlf90; then
3159 +                PREPDEFFLAG="-WF,"
3160 +        fi;;
3161 +  esac
3162 +
3163 +  if test -z "$PREPDEFFLAG"; then
3164 +        echo ""
3165 +        echo "*************************************************************"
3166 +        echo "* WARNING: Don't know the best PREPDEFFLAG for this system  *"
3167 +        echo "* Use  make PREPDEFFLAG=..., or edit the top level Makefile *"
3168 +        echo "* (otherwise, an empty PREPDEFFLAG will be used)            *"
3169 +        echo "*************************************************************"
3170 +        echo ""
3171 +        PREPDEFFLAG=" "
3172 +  fi
3173 +
3174 +  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3175 + echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3176 +
3177 +
3178 +  ac_ext=f90
3179 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3180 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3182 +
3183 +  ac_save_ext=$ac_ext
3184 +  ac_ext=F90
3185 +  ac_save_F90FLAGS=$F90FLAGS
3186 +
3187 +  if test "$PREPDEFFLAG"; then
3188 +  F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3189 + fi
3190 +
3191 +    cat >conftest.$ac_ext <<_ACEOF
3192 +
3193 +
3194 + program main
3195 +
3196 +  integer :: i
3197 + #ifdef TEST
3198 +  i = 1
3199 + #else
3200 +  choke me
3201 + #endif
3202 +
3203 +
3204 + end program main
3205 +
3206 + _ACEOF
3207 + rm -f conftest.$ac_objext
3208 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209 +  (eval $ac_compile) 2>&5
3210 +  ac_status=$?
3211 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 +  (exit $ac_status); } &&
3213 +         { ac_try='test -s conftest.$ac_objext'
3214 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215 +  (eval $ac_try) 2>&5
3216 +  ac_status=$?
3217 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 +  (exit $ac_status); }; }; then
3219 +  prepdefflagworks=1
3220 + else
3221 +  echo "$as_me: failed program was:" >&5
3222 + sed 's/^/| /' conftest.$ac_ext >&5
3223 +
3224 + prepdefflagworks=0
3225 + fi
3226 + rm -f conftest.$ac_objext conftest.$ac_ext
3227 +
3228 +  F90FLAGS=$ac_save_F90FLAGS
3229 +  ac_ext=$ac_save_ext
3230 +  ac_ext=c
3231   ac_cpp='$CPP $CPPFLAGS'
3232   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235  
3236 +
3237 +
3238 +  if test "$prepdefflagworks" = 1; then
3239 +    echo "$as_me:$LINENO: result: yes" >&5
3240 + echo "${ECHO_T}yes" >&6
3241 +
3242 +  else
3243 +    echo "$as_me:$LINENO: result: no" >&5
3244 + echo "${ECHO_T}no" >&6
3245 +    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3246 + echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3247 +   { (exit 1); exit 1; }; }
3248 +  fi
3249 + fi
3250 +
3251 +
3252 + case $debug in
3253 +  1)
3254 +     ;;
3255 +  *)
3256 +
3257 +
3258 +
3259 +
3260   # Try to determine "good" native compiler flags if none specified on command
3261   # line
3262   if test "$ac_test_CFLAGS" != "set"; then
# Line 1971 | Line 3318 | echo "$as_me:1974: checking whether ${CC-cc} accepts -
3318    if test $ac_cv_c_compiler_gnu = yes; then
3319      # -malign-double for x86 systems
3320  
3321 < echo "$as_me:1974: checking whether ${CC-cc} accepts -malign-double" >&5
3321 >
3322 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
3323   echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
3324   if test "${ac_align_double+set}" = set; then
3325    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1985 | Line 3333 | echo "$as_me:1988: result: $ac_align_double" >&5
3333   rm -f conftest*
3334  
3335   fi
3336 < echo "$as_me:1988: result: $ac_align_double" >&5
3336 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
3337   echo "${ECHO_T}$ac_align_double" >&6
3338   if test "$ac_align_double" = yes; then
3339          :
# Line 1997 | Line 3345 | echo "$as_me:2000: checking whether ${CC-cc} accepts -
3345  
3346      # -fstrict-aliasing for gcc-2.95+
3347  
3348 < echo "$as_me:2000: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
3348 >
3349 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
3350   echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
3351   if test "${ac_fstrict_aliasing+set}" = set; then
3352    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2011 | Line 3360 | echo "$as_me:2014: result: $ac_fstrict_aliasing" >&5
3360   rm -f conftest*
3361  
3362   fi
3363 < echo "$as_me:2014: result: $ac_fstrict_aliasing" >&5
3363 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
3364   echo "${ECHO_T}$ac_fstrict_aliasing" >&6
3365   if test "$ac_fstrict_aliasing" = yes; then
3366          :
# Line 2028 | Line 3377 | echo "$as_me:2031: checking whether ${CC-cc} accepts -
3377                    case "${host_cpu}" in
3378            i586*)
3379  
3380 < echo "$as_me:2031: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
3380 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
3381   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
3382   if test "${ac_cpu_pentium+set}" = set; then
3383    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2042 | Line 3391 | echo "$as_me:2045: result: $ac_cpu_pentium" >&5
3391   rm -f conftest*
3392  
3393   fi
3394 < echo "$as_me:2045: result: $ac_cpu_pentium" >&5
3394 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
3395   echo "${ECHO_T}$ac_cpu_pentium" >&6
3396   if test "$ac_cpu_pentium" = yes; then
3397          :
# Line 2050 | Line 3399 | echo "$as_me:2053: checking whether ${CC-cc} accepts -
3399   else
3400          :
3401  
3402 < echo "$as_me:2053: checking whether ${CC-cc} accepts -mpentium" >&5
3402 >
3403 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
3404   echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
3405   if test "${ac_pentium+set}" = set; then
3406    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2064 | Line 3414 | echo "$as_me:2067: result: $ac_pentium" >&5
3414   rm -f conftest*
3415  
3416   fi
3417 < echo "$as_me:2067: result: $ac_pentium" >&5
3417 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
3418   echo "${ECHO_T}$ac_pentium" >&6
3419   if test "$ac_pentium" = yes; then
3420          :
# Line 2079 | Line 3429 | echo "$as_me:2082: checking whether ${CC-cc} accepts -
3429                    ;;
3430            i686*)
3431  
3432 < echo "$as_me:2082: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
3432 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
3433   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
3434   if test "${ac_cpu_pentiumpro+set}" = set; then
3435    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2093 | Line 3443 | echo "$as_me:2096: result: $ac_cpu_pentiumpro" >&5
3443   rm -f conftest*
3444  
3445   fi
3446 < echo "$as_me:2096: result: $ac_cpu_pentiumpro" >&5
3446 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
3447   echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
3448   if test "$ac_cpu_pentiumpro" = yes; then
3449          :
# Line 2101 | Line 3451 | echo "$as_me:2104: checking whether ${CC-cc} accepts -
3451   else
3452          :
3453  
3454 < echo "$as_me:2104: checking whether ${CC-cc} accepts -mpentiumpro" >&5
3454 >
3455 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
3456   echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
3457   if test "${ac_pentiumpro+set}" = set; then
3458    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2115 | Line 3466 | echo "$as_me:2118: result: $ac_pentiumpro" >&5
3466   rm -f conftest*
3467  
3468   fi
3469 < echo "$as_me:2118: result: $ac_pentiumpro" >&5
3469 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
3470   echo "${ECHO_T}$ac_pentiumpro" >&6
3471   if test "$ac_pentiumpro" = yes; then
3472          :
# Line 2133 | Line 3484 | echo "$as_me:2136: checking whether ${CC-cc} accepts -
3484                  is60x=`echo $cputype | egrep "^600-9e?$"`
3485                  if test -n "$is60x"; then
3486  
3487 < echo "$as_me:2136: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
3487 >
3488 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
3489   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
3490   if test "${ac_m_cpu_60x+set}" = set; then
3491    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2147 | Line 3499 | echo "$as_me:2150: result: $ac_m_cpu_60x" >&5
3499   rm -f conftest*
3500  
3501   fi
3502 < echo "$as_me:2150: result: $ac_m_cpu_60x" >&5
3502 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
3503   echo "${ECHO_T}$ac_m_cpu_60x" >&6
3504   if test "$ac_m_cpu_60x" = yes; then
3505          :
# Line 2159 | Line 3511 | echo "$as_me:2162: checking whether we are using gcc 2
3511  
3512                  elif test "$cputype" = 750; then
3513  
3514 < echo "$as_me:2162: checking whether we are using gcc 2.95 or later" >&5
3514 >
3515 > echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
3516   echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
3517   if test "${ac_cv_prog_gcc_2_95+set}" = set; then
3518    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2173 | Line 3526 | if { ac_try='${CC-cc} -E conftest.c'
3526   #endif
3527   EOF
3528   if { ac_try='${CC-cc} -E conftest.c'
3529 <  { (eval echo "$as_me:2176: \"$ac_try\"") >&5
3529 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530    (eval $ac_try) 2>&5
3531    ac_status=$?
3532 <  echo "$as_me:2179: \$? = $ac_status" >&5
3532 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533    (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3534    ac_cv_prog_gcc_2_95=yes
3535   else
# Line 2184 | Line 3537 | echo "$as_me:2187: result: $ac_cv_prog_gcc_2_95" >&5
3537   fi
3538  
3539   fi
3540 < echo "$as_me:2187: result: $ac_cv_prog_gcc_2_95" >&5
3540 > echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
3541   echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
3542   if test "$ac_cv_prog_gcc_2_95" = yes; then
3543          :
3544  
3545 < echo "$as_me:2192: checking whether ${CC-cc} accepts -mcpu=750" >&5
3545 >
3546 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
3547   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
3548   if test "${ac_m_cpu_750+set}" = set; then
3549    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2203 | Line 3557 | echo "$as_me:2206: result: $ac_m_cpu_750" >&5
3557   rm -f conftest*
3558  
3559   fi
3560 < echo "$as_me:2206: result: $ac_m_cpu_750" >&5
3560 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
3561   echo "${ECHO_T}$ac_m_cpu_750" >&6
3562   if test "$ac_m_cpu_750" = yes; then
3563          :
# Line 2221 | Line 3575 | echo "$as_me:2224: checking whether ${CC-cc} accepts -
3575                  fi
3576                  if test -z "$CPU_FLAGS"; then
3577  
3578 < echo "$as_me:2224: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
3578 >
3579 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
3580   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
3581   if test "${ac_m_cpu_powerpc+set}" = set; then
3582    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2235 | Line 3590 | echo "$as_me:2238: result: $ac_m_cpu_powerpc" >&5
3590   rm -f conftest*
3591  
3592   fi
3593 < echo "$as_me:2238: result: $ac_m_cpu_powerpc" >&5
3593 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
3594   echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
3595   if test "$ac_m_cpu_powerpc" = yes; then
3596          :
# Line 2248 | Line 3603 | echo "$as_me:2251: checking whether ${CC-cc} accepts -
3603                  fi
3604                  if test -z "$CPU_FLAGS"; then
3605  
3606 < echo "$as_me:2251: checking whether ${CC-cc} accepts -mpowerpc" >&5
3606 >
3607 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
3608   echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
3609   if test "${ac_m_powerpc+set}" = set; then
3610    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2262 | Line 3618 | echo "$as_me:2265: result: $ac_m_powerpc" >&5
3618   rm -f conftest*
3619  
3620   fi
3621 < echo "$as_me:2265: result: $ac_m_powerpc" >&5
3621 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
3622   echo "${ECHO_T}$ac_m_powerpc" >&6
3623   if test "$ac_m_powerpc" = yes; then
3624          :
# Line 2291 | Line 3647 | echo "$as_me:2294: checking whether ${CC-cc} accepts $
3647          CFLAGS="-O3"
3648    fi
3649  
3650 < echo "$as_me:2294: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
3650 >
3651 >
3652 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
3653   echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
3654   if test "${ac_guessed_cflags+set}" = set; then
3655    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2305 | Line 3663 | echo "$as_me:2308: result: $ac_guessed_cflags" >&5
3663   rm -f conftest*
3664  
3665   fi
3666 < echo "$as_me:2308: result: $ac_guessed_cflags" >&5
3666 > echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
3667   echo "${ECHO_T}$ac_guessed_cflags" >&6
3668   if test "$ac_guessed_cflags" = yes; then
3669          :
# Line 2321 | Line 3679 | else
3679          echo "********************************************************"
3680          echo ""
3681          CFLAGS=""
2324
2325 fi
2326
2327 fi
3682  
2329 ac_ext=cc
2330 ac_cpp='$CXXCPP $CPPFLAGS'
2331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2334 if test -n "$ac_tool_prefix"; then
2335  for ac_prog in $CCC icpc icc xlC g++ c++
2336  do
2337    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2339 echo "$as_me:2339: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2341 if test "${ac_cv_prog_CXX+set}" = set; then
2342  echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344  if test -n "$CXX"; then
2345  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2346 else
2347  ac_save_IFS=$IFS; IFS=$ac_path_separator
2348 ac_dummy="$PATH"
2349 for ac_dir in $ac_dummy; do
2350  IFS=$ac_save_IFS
2351  test -z "$ac_dir" && ac_dir=.
2352  $as_executable_p "$ac_dir/$ac_word" || continue
2353 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2354 echo "$as_me:2354: found $ac_dir/$ac_word" >&5
2355 break
2356 done
2357
3683   fi
2359 fi
2360 CXX=$ac_cv_prog_CXX
2361 if test -n "$CXX"; then
2362  echo "$as_me:2362: result: $CXX" >&5
2363 echo "${ECHO_T}$CXX" >&6
2364 else
2365  echo "$as_me:2365: result: no" >&5
2366 echo "${ECHO_T}no" >&6
2367 fi
3684  
2369    test -n "$CXX" && break
2370  done
2371 fi
2372 if test -z "$CXX"; then
2373  ac_ct_CXX=$CXX
2374  for ac_prog in $CCC icpc icc xlC g++ c++
2375 do
2376  # Extract the first word of "$ac_prog", so it can be a program name with args.
2377 set dummy $ac_prog; ac_word=$2
2378 echo "$as_me:2378: checking for $ac_word" >&5
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2380 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2381  echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383  if test -n "$ac_ct_CXX"; then
2384  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2385 else
2386  ac_save_IFS=$IFS; IFS=$ac_path_separator
2387 ac_dummy="$PATH"
2388 for ac_dir in $ac_dummy; do
2389  IFS=$ac_save_IFS
2390  test -z "$ac_dir" && ac_dir=.
2391  $as_executable_p "$ac_dir/$ac_word" || continue
2392 ac_cv_prog_ac_ct_CXX="$ac_prog"
2393 echo "$as_me:2393: found $ac_dir/$ac_word" >&5
2394 break
2395 done
3685  
3686   fi
2398 fi
2399 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2400 if test -n "$ac_ct_CXX"; then
2401  echo "$as_me:2401: result: $ac_ct_CXX" >&5
2402 echo "${ECHO_T}$ac_ct_CXX" >&6
2403 else
2404  echo "$as_me:2404: result: no" >&5
2405 echo "${ECHO_T}no" >&6
2406 fi
3687  
2408  test -n "$ac_ct_CXX" && break
2409 done
2410 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3688  
2412  CXX=$ac_ct_CXX
2413 fi
3689  
2415 echo "$as_me:2415: checking whether we are using the GNU C++ compiler" >&5
2416 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2417 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2418  echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420  cat >conftest.$ac_ext <<_ACEOF
2421 #line 2421 "configure"
2422 #include "confdefs.h"
2423
2424 int
2425 main ()
2426 {
2427 #ifndef __GNUC__
2428       choke me
2429 #endif
2430
2431  ;
2432  return 0;
2433 }
2434 _ACEOF
2435 rm -f conftest.$ac_objext
2436 if { (eval echo "$as_me:2436: \"$ac_compile\"") >&5
2437  (eval $ac_compile) 2>&5
2438  ac_status=$?
2439  echo "$as_me:2439: \$? = $ac_status" >&5
2440  (exit $ac_status); } &&
2441         { ac_try='test -s conftest.$ac_objext'
2442  { (eval echo "$as_me:2442: \"$ac_try\"") >&5
2443  (eval $ac_try) 2>&5
2444  ac_status=$?
2445  echo "$as_me:2445: \$? = $ac_status" >&5
2446  (exit $ac_status); }; }; then
2447  ac_compiler_gnu=yes
2448 else
2449  echo "$as_me: failed program was:" >&5
2450 cat conftest.$ac_ext >&5
2451 ac_compiler_gnu=no
2452 fi
2453 rm -f conftest.$ac_objext conftest.$ac_ext
2454 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2455
2456 fi
2457 echo "$as_me:2457: result: $ac_cv_cxx_compiler_gnu" >&5
2458 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2459 GXX=`test $ac_compiler_gnu = yes && echo yes`
2460 ac_test_CXXFLAGS=${CXXFLAGS+set}
2461 ac_save_CXXFLAGS=$CXXFLAGS
2462 CXXFLAGS="-g"
2463 echo "$as_me:2463: checking whether $CXX accepts -g" >&5
2464 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2465 if test "${ac_cv_prog_cxx_g+set}" = set; then
2466  echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468  cat >conftest.$ac_ext <<_ACEOF
2469 #line 2469 "configure"
2470 #include "confdefs.h"
2471
2472 int
2473 main ()
2474 {
2475
2476  ;
2477  return 0;
2478 }
2479 _ACEOF
2480 rm -f conftest.$ac_objext
2481 if { (eval echo "$as_me:2481: \"$ac_compile\"") >&5
2482  (eval $ac_compile) 2>&5
2483  ac_status=$?
2484  echo "$as_me:2484: \$? = $ac_status" >&5
2485  (exit $ac_status); } &&
2486         { ac_try='test -s conftest.$ac_objext'
2487  { (eval echo "$as_me:2487: \"$ac_try\"") >&5
2488  (eval $ac_try) 2>&5
2489  ac_status=$?
2490  echo "$as_me:2490: \$? = $ac_status" >&5
2491  (exit $ac_status); }; }; then
2492  ac_cv_prog_cxx_g=yes
2493 else
2494  echo "$as_me: failed program was:" >&5
2495 cat conftest.$ac_ext >&5
2496 ac_cv_prog_cxx_g=no
2497 fi
2498 rm -f conftest.$ac_objext conftest.$ac_ext
2499 fi
2500 echo "$as_me:2500: result: $ac_cv_prog_cxx_g" >&5
2501 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2502 if test "$ac_test_CXXFLAGS" = set; then
2503  CXXFLAGS=$ac_save_CXXFLAGS
2504 elif test $ac_cv_prog_cxx_g = yes; then
2505  if test "$GXX" = yes; then
2506    CXXFLAGS="-g -O2"
2507  else
2508    CXXFLAGS="-g"
2509  fi
2510 else
2511  if test "$GXX" = yes; then
2512    CXXFLAGS="-O2"
2513  else
2514    CXXFLAGS=
2515  fi
2516 fi
2517 for ac_declaration in \
2518   ''\
2519   '#include <stdlib.h>' \
2520   'extern "C" void std::exit (int) throw (); using std::exit;' \
2521   'extern "C" void std::exit (int); using std::exit;' \
2522   'extern "C" void exit (int) throw ();' \
2523   'extern "C" void exit (int);' \
2524   'void exit (int);'
2525 do
2526  cat >conftest.$ac_ext <<_ACEOF
2527 #line 2527 "configure"
2528 #include "confdefs.h"
2529 #include <stdlib.h>
2530 $ac_declaration
2531 int
2532 main ()
2533 {
2534 exit (42);
2535  ;
2536  return 0;
2537 }
2538 _ACEOF
2539 rm -f conftest.$ac_objext
2540 if { (eval echo "$as_me:2540: \"$ac_compile\"") >&5
2541  (eval $ac_compile) 2>&5
2542  ac_status=$?
2543  echo "$as_me:2543: \$? = $ac_status" >&5
2544  (exit $ac_status); } &&
2545         { ac_try='test -s conftest.$ac_objext'
2546  { (eval echo "$as_me:2546: \"$ac_try\"") >&5
2547  (eval $ac_try) 2>&5
2548  ac_status=$?
2549  echo "$as_me:2549: \$? = $ac_status" >&5
2550  (exit $ac_status); }; }; then
2551  :
2552 else
2553  echo "$as_me: failed program was:" >&5
2554 cat conftest.$ac_ext >&5
2555 continue
2556 fi
2557 rm -f conftest.$ac_objext conftest.$ac_ext
2558  cat >conftest.$ac_ext <<_ACEOF
2559 #line 2559 "configure"
2560 #include "confdefs.h"
2561 $ac_declaration
2562 int
2563 main ()
2564 {
2565 exit (42);
2566  ;
2567  return 0;
2568 }
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:2571: \"$ac_compile\"") >&5
2572  (eval $ac_compile) 2>&5
2573  ac_status=$?
2574  echo "$as_me:2574: \$? = $ac_status" >&5
2575  (exit $ac_status); } &&
2576         { ac_try='test -s conftest.$ac_objext'
2577  { (eval echo "$as_me:2577: \"$ac_try\"") >&5
2578  (eval $ac_try) 2>&5
2579  ac_status=$?
2580  echo "$as_me:2580: \$? = $ac_status" >&5
2581  (exit $ac_status); }; }; then
2582  break
2583 else
2584  echo "$as_me: failed program was:" >&5
2585 cat conftest.$ac_ext >&5
2586 fi
2587 rm -f conftest.$ac_objext conftest.$ac_ext
2588 done
2589 echo '#ifdef __cplusplus' >>confdefs.h
2590 echo $ac_declaration      >>confdefs.h
2591 echo '#endif'             >>confdefs.h
3690  
2593 ac_ext=c
2594 ac_cpp='$CPP $CPPFLAGS'
2595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691  
3692   # Try to determine "good" native compiler flags if none specified on command
3693   # line
# Line 2648 | Line 3741 | echo "$as_me:2651: checking whether ${CXX-c++} accepts
3741    if test $ac_cv_c_compiler_gnu = yes; then
3742      # -malign-double for x86 systems
3743  
3744 < echo "$as_me:2651: checking whether ${CXX-c++} accepts -malign-double" >&5
3744 >
3745 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
3746   echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
3747   if test "${ac_align_double+set}" = set; then
3748    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2662 | Line 3756 | echo "$as_me:2665: result: $ac_align_double" >&5
3756   rm -f conftest*
3757  
3758   fi
3759 < echo "$as_me:2665: result: $ac_align_double" >&5
3759 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
3760   echo "${ECHO_T}$ac_align_double" >&6
3761   if test "$ac_align_double" = yes; then
3762          :
# Line 2674 | Line 3768 | echo "$as_me:2677: checking whether ${CXX-c++} accepts
3768  
3769      # -fstrict-aliasing for gcc-2.95+
3770  
3771 < echo "$as_me:2677: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
3771 >
3772 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
3773   echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
3774   if test "${ac_fstrict_aliasing+set}" = set; then
3775    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2688 | Line 3783 | echo "$as_me:2691: result: $ac_fstrict_aliasing" >&5
3783   rm -f conftest*
3784  
3785   fi
3786 < echo "$as_me:2691: result: $ac_fstrict_aliasing" >&5
3786 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
3787   echo "${ECHO_T}$ac_fstrict_aliasing" >&6
3788   if test "$ac_fstrict_aliasing" = yes; then
3789          :
# Line 2705 | Line 3800 | echo "$as_me:2708: checking whether ${CC-cc} accepts -
3800                    case "${host_cpu}" in
3801            i586*)
3802  
3803 < echo "$as_me:2708: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
3803 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
3804   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
3805   if test "${ac_cpu_pentium+set}" = set; then
3806    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2719 | Line 3814 | echo "$as_me:2722: result: $ac_cpu_pentium" >&5
3814   rm -f conftest*
3815  
3816   fi
3817 < echo "$as_me:2722: result: $ac_cpu_pentium" >&5
3817 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
3818   echo "${ECHO_T}$ac_cpu_pentium" >&6
3819   if test "$ac_cpu_pentium" = yes; then
3820          :
# Line 2727 | Line 3822 | echo "$as_me:2730: checking whether ${CXX-c++} accepts
3822   else
3823          :
3824  
3825 < echo "$as_me:2730: checking whether ${CXX-c++} accepts -mpentium" >&5
3825 >
3826 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
3827   echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
3828   if test "${ac_pentium+set}" = set; then
3829    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2741 | Line 3837 | echo "$as_me:2744: result: $ac_pentium" >&5
3837   rm -f conftest*
3838  
3839   fi
3840 < echo "$as_me:2744: result: $ac_pentium" >&5
3840 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
3841   echo "${ECHO_T}$ac_pentium" >&6
3842   if test "$ac_pentium" = yes; then
3843          :
# Line 2756 | Line 3852 | echo "$as_me:2759: checking whether ${CXX-c++} accepts
3852                    ;;
3853            i686*)
3854  
3855 < echo "$as_me:2759: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
3855 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
3856   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
3857   if test "${ac_cpu_pentiumpro+set}" = set; then
3858    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2770 | Line 3866 | echo "$as_me:2773: result: $ac_cpu_pentiumpro" >&5
3866   rm -f conftest*
3867  
3868   fi
3869 < echo "$as_me:2773: result: $ac_cpu_pentiumpro" >&5
3869 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
3870   echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
3871   if test "$ac_cpu_pentiumpro" = yes; then
3872          :
# Line 2778 | Line 3874 | echo "$as_me:2781: checking whether ${CXX-c++} accepts
3874   else
3875          :
3876  
3877 < echo "$as_me:2781: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
3877 >
3878 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
3879   echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
3880   if test "${ac_pentiumpro+set}" = set; then
3881    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2792 | Line 3889 | echo "$as_me:2795: result: $ac_pentiumpro" >&5
3889   rm -f conftest*
3890  
3891   fi
3892 < echo "$as_me:2795: result: $ac_pentiumpro" >&5
3892 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
3893   echo "${ECHO_T}$ac_pentiumpro" >&6
3894   if test "$ac_pentiumpro" = yes; then
3895          :
# Line 2810 | Line 3907 | echo "$as_me:2813: checking whether ${CXX-c++} accepts
3907                  is60x=`echo $cputype | egrep "^600-9e?$"`
3908                  if test -n "$is60x"; then
3909  
3910 < echo "$as_me:2813: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
3910 >
3911 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
3912   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
3913   if test "${ac_m_cpu_60x+set}" = set; then
3914    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2824 | Line 3922 | echo "$as_me:2827: result: $ac_m_cpu_60x" >&5
3922   rm -f conftest*
3923  
3924   fi
3925 < echo "$as_me:2827: result: $ac_m_cpu_60x" >&5
3925 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
3926   echo "${ECHO_T}$ac_m_cpu_60x" >&6
3927   if test "$ac_m_cpu_60x" = yes; then
3928          :
# Line 2836 | Line 3934 | echo "$as_me:2839: checking whether we are using gcc 2
3934  
3935                  elif test "$cputype" = 750; then
3936  
3937 < echo "$as_me:2839: checking whether we are using gcc 2.95 or later" >&5
3937 >
3938 > echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
3939   echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
3940   if test "${ac_cv_prog_gcc_2_95+set}" = set; then
3941    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2850 | Line 3949 | if { ac_try='${CC-cc} -E conftest.c'
3949   #endif
3950   EOF
3951   if { ac_try='${CC-cc} -E conftest.c'
3952 <  { (eval echo "$as_me:2853: \"$ac_try\"") >&5
3952 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953    (eval $ac_try) 2>&5
3954    ac_status=$?
3955 <  echo "$as_me:2856: \$? = $ac_status" >&5
3955 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956    (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3957    ac_cv_prog_gcc_2_95=yes
3958   else
# Line 2861 | Line 3960 | echo "$as_me:2864: result: $ac_cv_prog_gcc_2_95" >&5
3960   fi
3961  
3962   fi
3963 < echo "$as_me:2864: result: $ac_cv_prog_gcc_2_95" >&5
3963 > echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
3964   echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
3965   if test "$ac_cv_prog_gcc_2_95" = yes; then
3966          :
3967  
3968 < echo "$as_me:2869: checking whether ${CXX-c++} accepts -mcpu=750" >&5
3968 >
3969 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
3970   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
3971   if test "${ac_m_cpu_750+set}" = set; then
3972    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2880 | Line 3980 | echo "$as_me:2883: result: $ac_m_cpu_750" >&5
3980   rm -f conftest*
3981  
3982   fi
3983 < echo "$as_me:2883: result: $ac_m_cpu_750" >&5
3983 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
3984   echo "${ECHO_T}$ac_m_cpu_750" >&6
3985   if test "$ac_m_cpu_750" = yes; then
3986          :
# Line 2898 | Line 3998 | echo "$as_me:2901: checking whether ${CXX-c++} accepts
3998                  fi
3999                  if test -z "$CPU_FLAGS"; then
4000  
4001 < echo "$as_me:2901: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
4001 >
4002 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
4003   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
4004   if test "${ac_m_cpu_powerpc+set}" = set; then
4005    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2912 | Line 4013 | echo "$as_me:2915: result: $ac_m_cpu_powerpc" >&5
4013   rm -f conftest*
4014  
4015   fi
4016 < echo "$as_me:2915: result: $ac_m_cpu_powerpc" >&5
4016 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
4017   echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4018   if test "$ac_m_cpu_powerpc" = yes; then
4019          :
# Line 2925 | Line 4026 | echo "$as_me:2928: checking whether ${CXX-c++} accepts
4026                  fi
4027                  if test -z "$CPU_FLAGS"; then
4028  
4029 < echo "$as_me:2928: checking whether ${CXX-c++} accepts -mpowerpc" >&5
4029 >
4030 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
4031   echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
4032   if test "${ac_m_powerpc+set}" = set; then
4033    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2939 | Line 4041 | echo "$as_me:2942: result: $ac_m_powerpc" >&5
4041   rm -f conftest*
4042  
4043   fi
4044 < echo "$as_me:2942: result: $ac_m_powerpc" >&5
4044 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
4045   echo "${ECHO_T}$ac_m_powerpc" >&6
4046   if test "$ac_m_powerpc" = yes; then
4047          :
# Line 2968 | Line 4070 | echo "$as_me:2971: checking whether ${CXX-c++} accepts
4070          CXXFLAGS="-O3"
4071    fi
4072  
4073 < echo "$as_me:2971: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
4073 >
4074 >
4075 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
4076   echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
4077   if test "${ac_guessed_cxxflags+set}" = set; then
4078    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2982 | Line 4086 | echo "$as_me:2985: result: $ac_guessed_cxxflags" >&5
4086   rm -f conftest*
4087  
4088   fi
4089 < echo "$as_me:2985: result: $ac_guessed_cxxflags" >&5
4089 > echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
4090   echo "${ECHO_T}$ac_guessed_cxxflags" >&6
4091   if test "$ac_guessed_cxxflags" = yes; then
4092          :
# Line 2998 | Line 4102 | else
4102          echo "**********************************************************"
4103          echo ""
4104          CXXFLAGS=""
3001
3002 fi
3003
3004 fi
3005
3006 ac_ext=f90
3007 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3008 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3010 if test -n "$ac_tool_prefix"; then
3011  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3012  do
3013    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3015 echo "$as_me:3015: checking for $ac_word" >&5
3016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3017 if test "${ac_cv_prog_F90+set}" = set; then
3018  echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020  if test -n "$F90"; then
3021  ac_cv_prog_F90="$F90" # Let the user override the test.
3022 else
3023  ac_save_IFS=$IFS; IFS=$ac_path_separator
3024 ac_dummy="$PATH"
3025 for ac_dir in $ac_dummy; do
3026  IFS=$ac_save_IFS
3027  test -z "$ac_dir" && ac_dir=.
3028  $as_executable_p "$ac_dir/$ac_word" || continue
3029 ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3030 echo "$as_me:3030: found $ac_dir/$ac_word" >&5
3031 break
3032 done
3033
3034 fi
3035 fi
3036 F90=$ac_cv_prog_F90
3037 if test -n "$F90"; then
3038  echo "$as_me:3038: result: $F90" >&5
3039 echo "${ECHO_T}$F90" >&6
3040 else
3041  echo "$as_me:3041: result: no" >&5
3042 echo "${ECHO_T}no" >&6
3043 fi
3044
3045    test -n "$F90" && break
3046  done
3047 fi
3048 if test -z "$F90"; then
3049  ac_ct_F90=$F90
3050  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3051 do
3052  # Extract the first word of "$ac_prog", so it can be a program name with args.
3053 set dummy $ac_prog; ac_word=$2
3054 echo "$as_me:3054: checking for $ac_word" >&5
3055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3056 if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3057  echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059  if test -n "$ac_ct_F90"; then
3060  ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3061 else
3062  ac_save_IFS=$IFS; IFS=$ac_path_separator
3063 ac_dummy="$PATH"
3064 for ac_dir in $ac_dummy; do
3065  IFS=$ac_save_IFS
3066  test -z "$ac_dir" && ac_dir=.
3067  $as_executable_p "$ac_dir/$ac_word" || continue
3068 ac_cv_prog_ac_ct_F90="$ac_prog"
3069 echo "$as_me:3069: found $ac_dir/$ac_word" >&5
3070 break
3071 done
4105  
4106   fi
3074 fi
3075 ac_ct_F90=$ac_cv_prog_ac_ct_F90
3076 if test -n "$ac_ct_F90"; then
3077  echo "$as_me:3077: result: $ac_ct_F90" >&5
3078 echo "${ECHO_T}$ac_ct_F90" >&6
3079 else
3080  echo "$as_me:3080: result: no" >&5
3081 echo "${ECHO_T}no" >&6
3082 fi
4107  
3084  test -n "$ac_ct_F90" && break
3085 done
4108  
3087  F90=$ac_ct_F90
4109   fi
4110  
3090 # If we don't use `.F90' as extension, the preprocessor is not run on the
3091 # input file.
3092 ac_save_ext=$ac_ext
3093 ac_ext=F90
3094 echo "$as_me:3094: checking whether we are using the GNU Fortran 90 compiler" >&5
3095 echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3096 if test "${ac_cv_f90_compiler_gnu+set}" = set; then
3097  echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099  cat >conftest.$ac_ext <<_ACEOF
4111  
3101 program main
4112  
3103 #ifndef __GNUC__
3104       choke me
3105 #endif
4113  
3107 end program main
4114  
3109 _ACEOF
3110 rm -f conftest.$ac_objext
3111 if { (eval echo "$as_me:3111: \"$ac_compile\"") >&5
3112  (eval $ac_compile) 2>&5
3113  ac_status=$?
3114  echo "$as_me:3114: \$? = $ac_status" >&5
3115  (exit $ac_status); } &&
3116         { ac_try='test -s conftest.$ac_objext'
3117  { (eval echo "$as_me:3117: \"$ac_try\"") >&5
3118  (eval $ac_try) 2>&5
3119  ac_status=$?
3120  echo "$as_me:3120: \$? = $ac_status" >&5
3121  (exit $ac_status); }; }; then
3122  ac_compiler_gnu=yes
3123 else
3124  echo "$as_me: failed program was:" >&5
3125 cat conftest.$ac_ext >&5
3126 ac_compiler_gnu=no
3127 fi
3128 rm -f conftest.$ac_objext conftest.$ac_ext
3129 ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3130
3131 fi
3132 echo "$as_me:3132: result: $ac_cv_f90_compiler_gnu" >&5
3133 echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3134 ac_ext=$ac_save_ext
3135 G95=`test $ac_compiler_gnu = yes && echo yes`
3136 ac_ext=c
3137 ac_cpp='$CPP $CPPFLAGS'
3138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3141
4115   # Try to determine "good" native compiler flags if none specified on command
4116   # line
4117  
4118 < if test "$ac_test_F90FLAGS" != "set"; then
4118 > if test x"$F90FLAGS" == x ; then
4119    F90FLAGS=""
4120    case "${host_cpu}-${host_os}" in
4121  
# Line 3195 | Line 4168 | echo "$as_me:3198: checking whether ${F90-f90} accepts
4168          F90FLAGS="-O3"
4169    fi
4170  
4171 < echo "$as_me:3198: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
4171 >
4172 > echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
4173   echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
4174   if test "${ac_guessed_f90flags+set}" = set; then
4175    echo $ECHO_N "(cached) $ECHO_C" >&6
4176   else
4177  
4178 +
4179 +
4180   ac_ext=f90
4181   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4182   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# Line 3209 | Line 4185 | if { (eval echo "$as_me:3212: \"$ac_compile\"") >&5
4185   echo 'program main' > conftest.$ac_ext
4186   echo 'end program main' >> conftest.$ac_ext
4187   ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
4188 < if { (eval echo "$as_me:3212: \"$ac_compile\"") >&5
4188 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4189    (eval $ac_compile) 2>&5
4190    ac_status=$?
4191 <  echo "$as_me:3215: \$? = $ac_status" >&5
4191 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192    (exit $ac_status); }; then
4193          ac_guessed_f90flags=yes
4194   else
# Line 3225 | Line 4201 | fi
4201   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202   ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203  
4204 +
4205   fi
4206 < echo "$as_me:3229: result: $ac_guessed_f90flags" >&5
4206 > echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
4207   echo "${ECHO_T}$ac_guessed_f90flags" >&6
4208   if test "$ac_guessed_f90flags" = yes; then
4209          :
# Line 3245 | Line 4222 | fi
4222  
4223   fi
4224  
3248 fi
4225  
3250 # Try to determine native compiler flags that allow us to use F90 suffix
3251 # for preprocessed f90 source.
3252
3253 if test "$ac_test_PREPFLAG" != "set"; then
3254  PREPFLAG=""
3255  case "${host_cpu}-${host_os}" in
3256
3257  *linux*) if test "$F90" = ifc; then
3258                    PREPFLAG="-fpp1 "
3259                fi;;
3260  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3261                    PREPFLAG="-qsuffix=cpp=F90 "
3262                fi;;
3263  *darwin*)
3264        if test "$F90" = f90 -o "$F90" = xlf90; then
3265                PREPFLAG="-qsuffix=cpp=F90 "
3266        fi;;
3267  esac
3268
3269  if test -z "$PREPFLAG"; then
3270        echo ""
3271        echo "**********************************************************"
3272        echo "* WARNING: Don't know the best PREPFLAG for this system  *"
3273        echo "* Use  make PREPFLAG=..., or edit the top level Makefile *"
3274        echo "* (otherwise, an empty PREPFLAG will be used)            *"
3275        echo "**********************************************************"
3276        echo ""
3277        PREPFLAG=""
3278  fi
3279
3280  echo "$as_me:3280: checking to make sure F90 preprocessor flag works" >&5
3281 echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3282
3283  ac_ext=f90
3284 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3285 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3286 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3287
3288  ac_save_ext=$ac_ext
3289  ac_ext=F90
3290  ac_save_F90FLAGS=$F90FLAGS
3291
3292  if test "$PREPFLAG"; then
3293  F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
4226   fi
4227  
4228 <    cat >conftest.$ac_ext <<_ACEOF
4228 >     ;;
4229 > esac
4230  
3298 program main
3299
3300  integer :: i
3301  i = 1
3302
3303 end program main
3304
3305 _ACEOF
3306 rm -f conftest.$ac_objext
3307 if { (eval echo "$as_me:3307: \"$ac_compile\"") >&5
3308  (eval $ac_compile) 2>&5
3309  ac_status=$?
3310  echo "$as_me:3310: \$? = $ac_status" >&5
3311  (exit $ac_status); } &&
3312         { ac_try='test -s conftest.$ac_objext'
3313  { (eval echo "$as_me:3313: \"$ac_try\"") >&5
3314  (eval $ac_try) 2>&5
3315  ac_status=$?
3316  echo "$as_me:3316: \$? = $ac_status" >&5
3317  (exit $ac_status); }; }; then
3318  prepflagworks=1
3319 else
3320  echo "$as_me: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3322 prepflagworks=0
3323 fi
3324 rm -f conftest.$ac_objext conftest.$ac_ext
3325
3326  F90FLAGS=$ac_save_F90FLAGS
3327  ac_ext=$ac_save_ext
3328  ac_ext=c
3329 ac_cpp='$CPP $CPPFLAGS'
3330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3333
3334  if test "$prepflagworks" = 1; then
3335    echo "$as_me:3335: result: yes" >&5
3336 echo "${ECHO_T}yes" >&6
3337
3338  else
3339    echo "$as_me:3339: result: no" >&5
3340 echo "${ECHO_T}no" >&6
3341    { { echo "$as_me:3341: error: Can't figure out working Fortran90 preprocessor flag" >&5
3342 echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3343   { (exit 1); exit 1; }; }
3344  fi
3345 fi
3346
3347 # Try to determine native compiler flags that allow us to use F90 suffix
3348 # for preprocessed f90 source with -D type defines
3349
3350 if test "$ac_test_PREPDEFFLAG" != "set"; then
3351  PREPDEFFLAG=""
3352  case "${host_cpu}-${host_os}" in
3353
3354  *linux*) if test "$F90" = ifc; then
3355                    PREPDEFFLAG=" "
3356                fi;;
3357  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3358                    PREPDEFFLAG="-WF,"
3359                fi;;
3360  *darwin*)
3361        if test "$F90" = f90 -o "$F90" = xlf90; then
3362                PREPDEFFLAG="-WF,"
3363        fi;;
3364  esac
3365
3366  if test -z "$PREPDEFFLAG"; then
3367        echo ""
3368        echo "*************************************************************"
3369        echo "* WARNING: Don't know the best PREPDEFFLAG for this system  *"
3370        echo "* Use  make PREPDEFFLAG=..., or edit the top level Makefile *"
3371        echo "* (otherwise, an empty PREPDEFFLAG will be used)            *"
3372        echo "*************************************************************"
3373        echo ""
3374        PREPDEFFLAG=" "
3375  fi
3376
3377  echo "$as_me:3377: checking to make sure F90 preprocessor define flag works" >&5
3378 echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3379
3380  ac_ext=f90
3381 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3382 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3384
3385  ac_save_ext=$ac_ext
3386  ac_ext=F90
3387  ac_save_F90FLAGS=$F90FLAGS
3388
3389  if test "$PREPDEFFLAG"; then
3390  F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3391 fi
3392
3393    cat >conftest.$ac_ext <<_ACEOF
3394
3395 program main
3396
3397  integer :: i
3398 #ifdef TEST
3399  i = 1
3400 #else
3401  choke me
3402 #endif
3403
3404 end program main
3405
3406 _ACEOF
3407 rm -f conftest.$ac_objext
3408 if { (eval echo "$as_me:3408: \"$ac_compile\"") >&5
3409  (eval $ac_compile) 2>&5
3410  ac_status=$?
3411  echo "$as_me:3411: \$? = $ac_status" >&5
3412  (exit $ac_status); } &&
3413         { ac_try='test -s conftest.$ac_objext'
3414  { (eval echo "$as_me:3414: \"$ac_try\"") >&5
3415  (eval $ac_try) 2>&5
3416  ac_status=$?
3417  echo "$as_me:3417: \$? = $ac_status" >&5
3418  (exit $ac_status); }; }; then
3419  prepdefflagworks=1
3420 else
3421  echo "$as_me: failed program was:" >&5
3422 cat conftest.$ac_ext >&5
3423 prepdefflagworks=0
3424 fi
3425 rm -f conftest.$ac_objext conftest.$ac_ext
3426
3427  F90FLAGS=$ac_save_F90FLAGS
3428  ac_ext=$ac_save_ext
3429  ac_ext=c
3430 ac_cpp='$CPP $CPPFLAGS'
3431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434
3435  if test "$prepdefflagworks" = 1; then
3436    echo "$as_me:3436: result: yes" >&5
3437 echo "${ECHO_T}yes" >&6
3438
3439  else
3440    echo "$as_me:3440: result: no" >&5
3441 echo "${ECHO_T}no" >&6
3442    { { echo "$as_me:3442: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3443 echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3444   { (exit 1); exit 1; }; }
3445  fi
3446 fi
3447
4231   # Find a good install program.  We prefer a C program (faster),
4232   # so one script is as good as another.  But avoid the broken or
4233   # incompatible versions:
# Line 3457 | Line 4240 | echo "$as_me:3460: checking for a BSD compatible insta
4240   # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4241   # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4242   # ./install, which can be erroneously created by make from ./install.sh.
4243 < echo "$as_me:3460: checking for a BSD compatible install" >&5
4244 < echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4243 > echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4244 > echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4245   if test -z "$INSTALL"; then
4246   if test "${ac_cv_path_install+set}" = set; then
4247    echo $ECHO_N "(cached) $ECHO_C" >&6
4248   else
4249 <    ac_save_IFS=$IFS; IFS=$ac_path_separator
4250 <  for ac_dir in $PATH; do
4251 <    IFS=$ac_save_IFS
4252 <    # Account for people who put trailing slashes in PATH elements.
4253 <    case $ac_dir/ in
4254 <    / | ./ | .// | /cC/* \
4255 <    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
4256 <    | /usr/ucb/* ) ;;
4257 <    *)
4258 <      # OSF1 and SCO ODT 3.0 have their own names for install.
4259 <      # Don't use installbsd from OSF since it installs stuff as root
4260 <      # by default.
4261 <      for ac_prog in ginstall scoinst install; do
4262 <        if $as_executable_p "$ac_dir/$ac_prog"; then
4263 <          if test $ac_prog = install &&
4264 <            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
4265 <            # AIX install.  It has an incompatible calling convention.
4266 <            :
4267 <          elif test $ac_prog = install &&
4268 <            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
4269 <            # program-specific install script used by HP pwplus--don't use.
4270 <            :
4271 <          else
4272 <            ac_cv_path_install="$ac_dir/$ac_prog -c"
4273 <            break 2
4274 <          fi
4275 <        fi
4249 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 > for as_dir in $PATH
4251 > do
4252 >  IFS=$as_save_IFS
4253 >  test -z "$as_dir" && as_dir=.
4254 >  # Account for people who put trailing slashes in PATH elements.
4255 > case $as_dir/ in
4256 >  ./ | .// | /cC/* | \
4257 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4258 >  /usr/ucb/* ) ;;
4259 >  *)
4260 >    # OSF1 and SCO ODT 3.0 have their own names for install.
4261 >    # Don't use installbsd from OSF since it installs stuff as root
4262 >    # by default.
4263 >    for ac_prog in ginstall scoinst install; do
4264 >      for ac_exec_ext in '' $ac_executable_extensions; do
4265 >        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4266 >          if test $ac_prog = install &&
4267 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4268 >            # AIX install.  It has an incompatible calling convention.
4269 >            :
4270 >          elif test $ac_prog = install &&
4271 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4272 >            # program-specific install script used by HP pwplus--don't use.
4273 >            :
4274 >          else
4275 >            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4276 >            break 3
4277 >          fi
4278 >        fi
4279        done
4280 <      ;;
4281 <    esac
4282 <  done
4280 >    done
4281 >    ;;
4282 > esac
4283 > done
4284  
4285 +
4286   fi
4287    if test "${ac_cv_path_install+set}" = set; then
4288      INSTALL=$ac_cv_path_install
# Line 3506 | Line 4294 | echo "$as_me:3509: result: $INSTALL" >&5
4294      INSTALL=$ac_install_sh
4295    fi
4296   fi
4297 < echo "$as_me:3509: result: $INSTALL" >&5
4297 > echo "$as_me:$LINENO: result: $INSTALL" >&5
4298   echo "${ECHO_T}$INSTALL" >&6
4299  
4300   # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# Line 3517 | Line 4305 | echo "$as_me:3520: checking whether ln -s works" >&5
4305  
4306   test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4307  
4308 < echo "$as_me:3520: checking whether ln -s works" >&5
4308 > echo "$as_me:$LINENO: checking whether ln -s works" >&5
4309   echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4310   LN_S=$as_ln_s
4311   if test "$LN_S" = "ln -s"; then
4312 <  echo "$as_me:3524: result: yes" >&5
4312 >  echo "$as_me:$LINENO: result: yes" >&5
4313   echo "${ECHO_T}yes" >&6
4314   else
4315 <  echo "$as_me:3527: result: no, using $LN_S" >&5
4315 >  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4316   echo "${ECHO_T}no, using $LN_S" >&6
4317   fi
4318  
4319 < echo "$as_me:3531: checking whether ${MAKE-make} sets \${MAKE}" >&5
4320 < echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4319 > echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4320 > echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4321   set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4322   if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4323    echo $ECHO_N "(cached) $ECHO_C" >&6
4324   else
4325 <  cat >conftest.make <<\EOF
4325 >  cat >conftest.make <<\_ACEOF
4326   all:
4327 <        @echo 'ac_maketemp="${MAKE}"'
4328 < EOF
4327 >        @echo 'ac_maketemp="$(MAKE)"'
4328 > _ACEOF
4329   # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4330   eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4331   if test -n "$ac_maketemp"; then
# Line 3548 | Line 4336 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_se
4336   rm -f conftest.make
4337   fi
4338   if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4339 <  echo "$as_me:3551: result: yes" >&5
4339 >  echo "$as_me:$LINENO: result: yes" >&5
4340   echo "${ECHO_T}yes" >&6
4341    SET_MAKE=
4342   else
4343 <  echo "$as_me:3555: result: no" >&5
4343 >  echo "$as_me:$LINENO: result: no" >&5
4344   echo "${ECHO_T}no" >&6
4345    SET_MAKE="MAKE=${MAKE-make}"
4346   fi
# Line 3560 | Line 4348 | echo "$as_me:3563: checking for $ac_word" >&5
4348   if test -n "$ac_tool_prefix"; then
4349    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4350   set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4351 < echo "$as_me:3563: checking for $ac_word" >&5
4351 > echo "$as_me:$LINENO: checking for $ac_word" >&5
4352   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4353   if test "${ac_cv_prog_RANLIB+set}" = set; then
4354    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3568 | Line 4356 | else
4356    if test -n "$RANLIB"; then
4357    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4358   else
4359 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
4360 < ac_dummy="$PATH"
4361 < for ac_dir in $ac_dummy; do
4362 <  IFS=$ac_save_IFS
4363 <  test -z "$ac_dir" && ac_dir=.
4364 <  $as_executable_p "$ac_dir/$ac_word" || continue
4365 < ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4366 < echo "$as_me:3578: found $ac_dir/$ac_word" >&5
4367 < break
4359 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 > for as_dir in $PATH
4361 > do
4362 >  IFS=$as_save_IFS
4363 >  test -z "$as_dir" && as_dir=.
4364 >  for ac_exec_ext in '' $ac_executable_extensions; do
4365 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4367 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 >    break 2
4369 >  fi
4370   done
4371 + done
4372  
4373   fi
4374   fi
4375   RANLIB=$ac_cv_prog_RANLIB
4376   if test -n "$RANLIB"; then
4377 <  echo "$as_me:3586: result: $RANLIB" >&5
4377 >  echo "$as_me:$LINENO: result: $RANLIB" >&5
4378   echo "${ECHO_T}$RANLIB" >&6
4379   else
4380 <  echo "$as_me:3589: result: no" >&5
4380 >  echo "$as_me:$LINENO: result: no" >&5
4381   echo "${ECHO_T}no" >&6
4382   fi
4383  
# Line 3595 | Line 4386 | echo "$as_me:3598: checking for $ac_word" >&5
4386    ac_ct_RANLIB=$RANLIB
4387    # Extract the first word of "ranlib", so it can be a program name with args.
4388   set dummy ranlib; ac_word=$2
4389 < echo "$as_me:3598: checking for $ac_word" >&5
4389 > echo "$as_me:$LINENO: checking for $ac_word" >&5
4390   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4391   if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4392    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3603 | Line 4394 | else
4394    if test -n "$ac_ct_RANLIB"; then
4395    ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4396   else
4397 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
4398 < ac_dummy="$PATH"
4399 < for ac_dir in $ac_dummy; do
4400 <  IFS=$ac_save_IFS
4401 <  test -z "$ac_dir" && ac_dir=.
4402 <  $as_executable_p "$ac_dir/$ac_word" || continue
4403 < ac_cv_prog_ac_ct_RANLIB="ranlib"
4404 < echo "$as_me:3613: found $ac_dir/$ac_word" >&5
4405 < break
4397 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 > for as_dir in $PATH
4399 > do
4400 >  IFS=$as_save_IFS
4401 >  test -z "$as_dir" && as_dir=.
4402 >  for ac_exec_ext in '' $ac_executable_extensions; do
4403 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
4405 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 >    break 2
4407 >  fi
4408   done
4409 + done
4410  
4411    test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4412   fi
4413   fi
4414   ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4415   if test -n "$ac_ct_RANLIB"; then
4416 <  echo "$as_me:3622: result: $ac_ct_RANLIB" >&5
4416 >  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4417   echo "${ECHO_T}$ac_ct_RANLIB" >&6
4418   else
4419 <  echo "$as_me:3625: result: no" >&5
4419 >  echo "$as_me:$LINENO: result: no" >&5
4420   echo "${ECHO_T}no" >&6
4421   fi
4422  
# Line 3635 | Line 4429 | echo "$as_me:3638: checking for $ac_word" >&5
4429   do
4430    # Extract the first word of "$ac_prog", so it can be a program name with args.
4431   set dummy $ac_prog; ac_word=$2
4432 < echo "$as_me:3638: checking for $ac_word" >&5
4432 > echo "$as_me:$LINENO: checking for $ac_word" >&5
4433   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4434   if test "${ac_cv_prog_YACC+set}" = set; then
4435    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3643 | Line 4437 | else
4437    if test -n "$YACC"; then
4438    ac_cv_prog_YACC="$YACC" # Let the user override the test.
4439   else
4440 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
4441 < ac_dummy="$PATH"
4442 < for ac_dir in $ac_dummy; do
4443 <  IFS=$ac_save_IFS
4444 <  test -z "$ac_dir" && ac_dir=.
4445 <  $as_executable_p "$ac_dir/$ac_word" || continue
4446 < ac_cv_prog_YACC="$ac_prog"
4447 < echo "$as_me:3653: found $ac_dir/$ac_word" >&5
4448 < break
4440 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 > for as_dir in $PATH
4442 > do
4443 >  IFS=$as_save_IFS
4444 >  test -z "$as_dir" && as_dir=.
4445 >  for ac_exec_ext in '' $ac_executable_extensions; do
4446 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447 >    ac_cv_prog_YACC="$ac_prog"
4448 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 >    break 2
4450 >  fi
4451   done
4452 + done
4453  
4454   fi
4455   fi
4456   YACC=$ac_cv_prog_YACC
4457   if test -n "$YACC"; then
4458 <  echo "$as_me:3661: result: $YACC" >&5
4458 >  echo "$as_me:$LINENO: result: $YACC" >&5
4459   echo "${ECHO_T}$YACC" >&6
4460   else
4461 <  echo "$as_me:3664: result: no" >&5
4461 >  echo "$as_me:$LINENO: result: no" >&5
4462   echo "${ECHO_T}no" >&6
4463   fi
4464  
# Line 3669 | Line 4466 | for ac_prog in flex lex
4466   done
4467   test -n "$YACC" || YACC="yacc"
4468  
4469 +
4470   for ac_prog in flex lex
4471   do
4472    # Extract the first word of "$ac_prog", so it can be a program name with args.
4473   set dummy $ac_prog; ac_word=$2
4474 < echo "$as_me:3676: checking for $ac_word" >&5
4474 > echo "$as_me:$LINENO: checking for $ac_word" >&5
4475   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476   if test "${ac_cv_prog_LEX+set}" = set; then
4477    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3681 | Line 4479 | else
4479    if test -n "$LEX"; then
4480    ac_cv_prog_LEX="$LEX" # Let the user override the test.
4481   else
4482 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
4483 < ac_dummy="$PATH"
4484 < for ac_dir in $ac_dummy; do
4485 <  IFS=$ac_save_IFS
4486 <  test -z "$ac_dir" && ac_dir=.
4487 <  $as_executable_p "$ac_dir/$ac_word" || continue
4488 < ac_cv_prog_LEX="$ac_prog"
4489 < echo "$as_me:3691: found $ac_dir/$ac_word" >&5
4490 < break
4482 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 > for as_dir in $PATH
4484 > do
4485 >  IFS=$as_save_IFS
4486 >  test -z "$as_dir" && as_dir=.
4487 >  for ac_exec_ext in '' $ac_executable_extensions; do
4488 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 >    ac_cv_prog_LEX="$ac_prog"
4490 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 >    break 2
4492 >  fi
4493   done
4494 + done
4495  
4496   fi
4497   fi
4498   LEX=$ac_cv_prog_LEX
4499   if test -n "$LEX"; then
4500 <  echo "$as_me:3699: result: $LEX" >&5
4500 >  echo "$as_me:$LINENO: result: $LEX" >&5
4501   echo "${ECHO_T}$LEX" >&6
4502   else
4503 <  echo "$as_me:3702: result: no" >&5
4503 >  echo "$as_me:$LINENO: result: no" >&5
4504   echo "${ECHO_T}no" >&6
4505   fi
4506  
# Line 3709 | Line 4510 | then
4510  
4511   if test -z "$LEXLIB"
4512   then
4513 <  echo "$as_me:3712: checking for yywrap in -lfl" >&5
4513 >  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4514   echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4515   if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4516    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3717 | Line 4518 | cat >conftest.$ac_ext <<_ACEOF
4518    ac_check_lib_save_LIBS=$LIBS
4519   LIBS="-lfl  $LIBS"
4520   cat >conftest.$ac_ext <<_ACEOF
4521 < #line 3720 "configure"
4522 < #include "confdefs.h"
4521 > #line $LINENO "configure"
4522 > /* confdefs.h.  */
4523 > _ACEOF
4524 > cat confdefs.h >>conftest.$ac_ext
4525 > cat >>conftest.$ac_ext <<_ACEOF
4526 > /* end confdefs.h.  */
4527  
4528   /* Override any gcc2 internal prototype to avoid an error.  */
4529   #ifdef __cplusplus
# Line 3736 | Line 4541 | if { (eval echo "$as_me:3739: \"$ac_link\"") >&5
4541   }
4542   _ACEOF
4543   rm -f conftest.$ac_objext conftest$ac_exeext
4544 < if { (eval echo "$as_me:3739: \"$ac_link\"") >&5
4544 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4545    (eval $ac_link) 2>&5
4546    ac_status=$?
4547 <  echo "$as_me:3742: \$? = $ac_status" >&5
4547 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548    (exit $ac_status); } &&
4549           { ac_try='test -s conftest$ac_exeext'
4550 <  { (eval echo "$as_me:3745: \"$ac_try\"") >&5
4550 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551    (eval $ac_try) 2>&5
4552    ac_status=$?
4553 <  echo "$as_me:3748: \$? = $ac_status" >&5
4553 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554    (exit $ac_status); }; }; then
4555    ac_cv_lib_fl_yywrap=yes
4556   else
4557    echo "$as_me: failed program was:" >&5
4558 < cat conftest.$ac_ext >&5
4558 > sed 's/^/| /' conftest.$ac_ext >&5
4559 >
4560   ac_cv_lib_fl_yywrap=no
4561   fi
4562   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4563   LIBS=$ac_check_lib_save_LIBS
4564   fi
4565 < echo "$as_me:3759: result: $ac_cv_lib_fl_yywrap" >&5
4565 > echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4566   echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4567   if test $ac_cv_lib_fl_yywrap = yes; then
4568    LEXLIB="-lfl"
4569   else
4570 <  echo "$as_me:3764: checking for yywrap in -ll" >&5
4570 >  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4571   echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4572   if test "${ac_cv_lib_l_yywrap+set}" = set; then
4573    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3769 | Line 4575 | cat >conftest.$ac_ext <<_ACEOF
4575    ac_check_lib_save_LIBS=$LIBS
4576   LIBS="-ll  $LIBS"
4577   cat >conftest.$ac_ext <<_ACEOF
4578 < #line 3772 "configure"
4579 < #include "confdefs.h"
4578 > #line $LINENO "configure"
4579 > /* confdefs.h.  */
4580 > _ACEOF
4581 > cat confdefs.h >>conftest.$ac_ext
4582 > cat >>conftest.$ac_ext <<_ACEOF
4583 > /* end confdefs.h.  */
4584  
4585   /* Override any gcc2 internal prototype to avoid an error.  */
4586   #ifdef __cplusplus
# Line 3788 | Line 4598 | if { (eval echo "$as_me:3791: \"$ac_link\"") >&5
4598   }
4599   _ACEOF
4600   rm -f conftest.$ac_objext conftest$ac_exeext
4601 < if { (eval echo "$as_me:3791: \"$ac_link\"") >&5
4601 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4602    (eval $ac_link) 2>&5
4603    ac_status=$?
4604 <  echo "$as_me:3794: \$? = $ac_status" >&5
4604 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605    (exit $ac_status); } &&
4606           { ac_try='test -s conftest$ac_exeext'
4607 <  { (eval echo "$as_me:3797: \"$ac_try\"") >&5
4607 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608    (eval $ac_try) 2>&5
4609    ac_status=$?
4610 <  echo "$as_me:3800: \$? = $ac_status" >&5
4610 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611    (exit $ac_status); }; }; then
4612    ac_cv_lib_l_yywrap=yes
4613   else
4614    echo "$as_me: failed program was:" >&5
4615 < cat conftest.$ac_ext >&5
4615 > sed 's/^/| /' conftest.$ac_ext >&5
4616 >
4617   ac_cv_lib_l_yywrap=no
4618   fi
4619   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4620   LIBS=$ac_check_lib_save_LIBS
4621   fi
4622 < echo "$as_me:3811: result: $ac_cv_lib_l_yywrap" >&5
4622 > echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4623   echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4624   if test $ac_cv_lib_l_yywrap = yes; then
4625    LEXLIB="-ll"
# Line 3819 | Line 4630 | if test "x$LEX" != "x:"; then
4630   fi
4631  
4632   if test "x$LEX" != "x:"; then
4633 <  echo "$as_me:3822: checking lex output file root" >&5
4633 >  echo "$as_me:$LINENO: checking lex output file root" >&5
4634   echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4635   if test "${ac_cv_prog_lex_root+set}" = set; then
4636    echo $ECHO_N "(cached) $ECHO_C" >&6
4637   else
4638    # The minimal lex program is just a single line: %%.  But some broken lexes
4639   # (Solaris, I think it was) want two %% lines, so accommodate them.
4640 < echo '%%
4641 < %%' | $LEX
4640 > cat >conftest.l <<_ACEOF
4641 > %%
4642 > %%
4643 > _ACEOF
4644 > { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4645 >  (eval $LEX conftest.l) 2>&5
4646 >  ac_status=$?
4647 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 >  (exit $ac_status); }
4649   if test -f lex.yy.c; then
4650    ac_cv_prog_lex_root=lex.yy
4651   elif test -f lexyy.c; then
4652    ac_cv_prog_lex_root=lexyy
4653   else
4654 <  { { echo "$as_me:3836: error: cannot find output from $LEX; giving up" >&5
4654 >  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4655   echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4656     { (exit 1); exit 1; }; }
4657   fi
4658   fi
4659 < echo "$as_me:3841: result: $ac_cv_prog_lex_root" >&5
4659 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4660   echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4661 + rm -f conftest.l
4662   LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4663  
4664 < echo "$as_me:3845: checking whether yytext is a pointer" >&5
4664 > echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4665   echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4666   if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4667    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3858 | Line 4677 | if { (eval echo "$as_me:3861: \"$ac_link\"") >&5
4677   `cat $LEX_OUTPUT_ROOT.c`
4678   _ACEOF
4679   rm -f conftest.$ac_objext conftest$ac_exeext
4680 < if { (eval echo "$as_me:3861: \"$ac_link\"") >&5
4680 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681    (eval $ac_link) 2>&5
4682    ac_status=$?
4683 <  echo "$as_me:3864: \$? = $ac_status" >&5
4683 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684    (exit $ac_status); } &&
4685           { ac_try='test -s conftest$ac_exeext'
4686 <  { (eval echo "$as_me:3867: \"$ac_try\"") >&5
4686 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687    (eval $ac_try) 2>&5
4688    ac_status=$?
4689 <  echo "$as_me:3870: \$? = $ac_status" >&5
4689 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690    (exit $ac_status); }; }; then
4691    ac_cv_prog_lex_yytext_pointer=yes
4692   else
4693    echo "$as_me: failed program was:" >&5
4694 < cat conftest.$ac_ext >&5
4694 > sed 's/^/| /' conftest.$ac_ext >&5
4695 >
4696   fi
4697   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4698   LIBS=$ac_save_LIBS
4699   rm -f "${LEX_OUTPUT_ROOT}.c"
4700  
4701   fi
4702 < echo "$as_me:3882: result: $ac_cv_prog_lex_yytext_pointer" >&5
4702 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4703   echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4704   if test $ac_cv_prog_lex_yytext_pointer = yes; then
4705  
4706 < cat >>confdefs.h <<\EOF
4706 > cat >>confdefs.h <<\_ACEOF
4707   #define YYTEXT_POINTER 1
4708 < EOF
4708 > _ACEOF
4709  
4710   fi
4711  
4712   fi
4713   # Extract the first word of "ar", so it can be a program name with args.
4714   set dummy ar; ac_word=$2
4715 < echo "$as_me:3895: checking for $ac_word" >&5
4715 > echo "$as_me:$LINENO: checking for $ac_word" >&5
4716   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4717   if test "${ac_cv_prog_AR+set}" = set; then
4718    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3900 | Line 4720 | else
4720    if test -n "$AR"; then
4721    ac_cv_prog_AR="$AR" # Let the user override the test.
4722   else
4723 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
4724 < ac_dummy="$PATH"
4725 < for ac_dir in $ac_dummy; do
4726 <  IFS=$ac_save_IFS
4727 <  test -z "$ac_dir" && ac_dir=.
4728 <  $as_executable_p "$ac_dir/$ac_word" || continue
4729 < ac_cv_prog_AR="ar"
4730 < echo "$as_me:3910: found $ac_dir/$ac_word" >&5
4731 < break
4723 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 > for as_dir in $PATH
4725 > do
4726 >  IFS=$as_save_IFS
4727 >  test -z "$as_dir" && as_dir=.
4728 >  for ac_exec_ext in '' $ac_executable_extensions; do
4729 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730 >    ac_cv_prog_AR="ar"
4731 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 >    break 2
4733 >  fi
4734   done
4735 + done
4736  
4737    test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
4738   fi
4739   fi
4740   AR=$ac_cv_prog_AR
4741   if test -n "$AR"; then
4742 <  echo "$as_me:3919: result: $AR" >&5
4742 >  echo "$as_me:$LINENO: result: $AR" >&5
4743   echo "${ECHO_T}$AR" >&6
4744   else
4745 <  echo "$as_me:3922: result: no" >&5
4745 >  echo "$as_me:$LINENO: result: no" >&5
4746   echo "${ECHO_T}no" >&6
4747   fi
4748  
4749   if test "$AR" = "NONE"; then
4750 <  { { echo "$as_me:3927: error: --> Can't find \`ar'!" >&5
4750 >  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
4751   echo "$as_me: error: --> Can't find \`ar'!" >&2;}
4752     { (exit 1); exit 1; }; }
4753    cat >confcache <<\_ACEOF
# Line 3937 | Line 4760 | echo "$as_me: error: --> Can't find \`ar'!" >&2;}
4760   # config.status only pays attention to the cache file if you give it
4761   # the --recheck option to rerun configure.
4762   #
4763 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
4763 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
4764   # loading this file, other *unset* `ac_cv_foo' will be assigned the
4765   # following values.
4766  
# Line 3956 | Line 4779 | _ACEOF
4779        # substitution turns \\\\ into \\, and sed turns \\ into \).
4780        sed -n \
4781          "s/'/'\\\\''/g;
4782 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4782 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4783        ;;
4784      *)
4785        # `set' quotes correctly as required by POSIX, so do not add quotes.
4786        sed -n \
4787 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4787 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4788        ;;
4789      esac;
4790   } |
# Line 3972 | Line 4795 | if cmp -s $cache_file confcache; then :; else
4795       t end
4796       /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4797       : end' >>confcache
4798 < if cmp -s $cache_file confcache; then :; else
4798 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
4799    if test -w $cache_file; then
4800      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4801      cat confcache >$cache_file
# Line 3989 | Line 4812 | ac_ext=f90
4812   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4814  
4815 +
4816 +
4817   ac_ext=f90
4818   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4819   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4821 < echo "$as_me:3996: checking how to get verbose linking output from $F90" >&5
4821 > echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
4822   echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
4823   if test "${ac_cv_prog_f90_v+set}" = set; then
4824    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 4003 | Line 4828 | end program main
4828  
4829   program main
4830  
4831 +
4832   end program main
4833  
4834   _ACEOF
4835   rm -f conftest.$ac_objext
4836 < if { (eval echo "$as_me:4010: \"$ac_compile\"") >&5
4836 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837    (eval $ac_compile) 2>&5
4838    ac_status=$?
4839 <  echo "$as_me:4013: \$? = $ac_status" >&5
4839 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840    (exit $ac_status); } &&
4841           { ac_try='test -s conftest.$ac_objext'
4842 <  { (eval echo "$as_me:4016: \"$ac_try\"") >&5
4842 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843    (eval $ac_try) 2>&5
4844    ac_status=$?
4845 <  echo "$as_me:4019: \$? = $ac_status" >&5
4845 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846    (exit $ac_status); }; }; then
4847    ac_cv_prog_f90_v=
4848   # Try some options frequently used verbose output
# Line 4030 | Line 4856 | end program main
4856  
4857   program main
4858  
4859 +
4860   end program main
4861  
4862   _ACEOF
# Line 4041 | Line 4868 | F90FLAGS="$F90FLAGS $ac_verb"
4868   ac_save_F90FLAGS=$F90FLAGS
4869   F90FLAGS="$F90FLAGS $ac_verb"
4870  
4871 < (eval echo $as_me:4044: \"$ac_link\") >&5
4871 > (eval echo $as_me:4871: \"$ac_link\") >&5
4872   ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4873   echo "$ac_f90_v_output" >&5
4874   F90FLAGS=$ac_save_F90FLAGS
# Line 4073 | Line 4900 | if test -z "$ac_cv_prog_f90_v"; then
4900    done
4901   done
4902   if test -z "$ac_cv_prog_f90_v"; then
4903 <   { echo "$as_me:4076: WARNING: cannot determine how to obtain linking information from $F90" >&5
4903 >   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
4904   echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
4905   fi
4906   else
4907    echo "$as_me: failed program was:" >&5
4908 < cat conftest.$ac_ext >&5
4909 < { echo "$as_me:4082: WARNING: compilation failed" >&5
4908 > sed 's/^/| /' conftest.$ac_ext >&5
4909 >
4910 > { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4911   echo "$as_me: WARNING: compilation failed" >&2;}
4912   fi
4913   rm -f conftest.$ac_objext conftest.$ac_ext
4914 <
4915 < fi
4916 < echo "$as_me:4088: result: $ac_cv_prog_f90_v" >&5
4914 >
4915 > fi
4916 > echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
4917   echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
4918 < echo "$as_me:4090: checking for Fortran 90 libraries" >&5
4918 > echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
4919   echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
4920   if test "${ac_cv_flibs+set}" = set; then
4921    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 4105 | Line 4933 | end program main
4933  
4934   program main
4935  
4936 +
4937   end program main
4938  
4939   _ACEOF
# Line 4116 | Line 4945 | F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4945   ac_save_F90FLAGS=$F90FLAGS
4946   F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4947  
4948 < (eval echo $as_me:4119: \"$ac_link\") >&5
4948 > (eval echo $as_me:4948: \"$ac_link\") >&5
4949   ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4950   echo "$ac_f90_v_output" >&5
4951   F90FLAGS=$ac_save_F90FLAGS
# Line 4269 | Line 5098 | echo "$as_me:4272: result: $ac_cv_flibs" >&5
5098   fi # test "x$F90LIBS" = "x"
5099  
5100   fi
5101 < echo "$as_me:4272: result: $ac_cv_flibs" >&5
5101 > echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
5102   echo "${ECHO_T}$ac_cv_flibs" >&6
5103   F90LIBS="$ac_cv_f90libs"
5104  
# Line 4278 | Line 5107 | echo "$as_me:4281: checking for Fortran 90 name-mangli
5107   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5109  
5110 < echo "$as_me:4281: checking for Fortran 90 name-mangling scheme" >&5
5110 > echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
5111   echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
5112   if test "${ac_cv_f90_mangling+set}" = set; then
5113    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 4296 | Line 5125 | if { (eval echo "$as_me:4299: \"$ac_compile\"") >&5
5125   end
5126   _ACEOF
5127   rm -f conftest.$ac_objext
5128 < if { (eval echo "$as_me:4299: \"$ac_compile\"") >&5
5128 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129    (eval $ac_compile) 2>&5
5130    ac_status=$?
5131 <  echo "$as_me:4302: \$? = $ac_status" >&5
5131 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132    (exit $ac_status); } &&
5133           { ac_try='test -s conftest.$ac_objext'
5134 <  { (eval echo "$as_me:4305: \"$ac_try\"") >&5
5134 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135    (eval $ac_try) 2>&5
5136    ac_status=$?
5137 <  echo "$as_me:4308: \$? = $ac_status" >&5
5137 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138    (exit $ac_status); }; }; then
5139    mv conftest.$ac_objext cf90_test.$ac_objext
5140  
# Line 4323 | Line 5152 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
5152      for ac_underscore in "" "_"; do
5153        ac_func="$ac_foobar$ac_underscore"
5154        cat >conftest.$ac_ext <<_ACEOF
5155 < #line 4326 "configure"
5156 < #include "confdefs.h"
5155 > #line $LINENO "configure"
5156 > /* confdefs.h.  */
5157 > _ACEOF
5158 > cat confdefs.h >>conftest.$ac_ext
5159 > cat >>conftest.$ac_ext <<_ACEOF
5160 > /* end confdefs.h.  */
5161  
5162   /* Override any gcc2 internal prototype to avoid an error.  */
5163   #ifdef __cplusplus
# Line 4342 | Line 5175 | if { (eval echo "$as_me:4345: \"$ac_link\"") >&5
5175   }
5176   _ACEOF
5177   rm -f conftest.$ac_objext conftest$ac_exeext
5178 < if { (eval echo "$as_me:4345: \"$ac_link\"") >&5
5178 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5179    (eval $ac_link) 2>&5
5180    ac_status=$?
5181 <  echo "$as_me:4348: \$? = $ac_status" >&5
5181 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182    (exit $ac_status); } &&
5183           { ac_try='test -s conftest$ac_exeext'
5184 <  { (eval echo "$as_me:4351: \"$ac_try\"") >&5
5184 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185    (eval $ac_try) 2>&5
5186    ac_status=$?
5187 <  echo "$as_me:4354: \$? = $ac_status" >&5
5187 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188    (exit $ac_status); }; }; then
5189    ac_success=yes; break 2
5190   else
5191    echo "$as_me: failed program was:" >&5
5192 < cat conftest.$ac_ext >&5
5192 > sed 's/^/| /' conftest.$ac_ext >&5
5193 >
5194   fi
5195   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5196      done
# Line 4379 | Line 5213 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
5213          ac_func="$ac_foo_bar$ac_underscore$ac_extra"
5214  
5215          cat >conftest.$ac_ext <<_ACEOF
5216 < #line 4382 "configure"
5217 < #include "confdefs.h"
5216 > #line $LINENO "configure"
5217 > /* confdefs.h.  */
5218 > _ACEOF
5219 > cat confdefs.h >>conftest.$ac_ext
5220 > cat >>conftest.$ac_ext <<_ACEOF
5221 > /* end confdefs.h.  */
5222  
5223   /* Override any gcc2 internal prototype to avoid an error.  */
5224   #ifdef __cplusplus
# Line 4398 | Line 5236 | if { (eval echo "$as_me:4401: \"$ac_link\"") >&5
5236   }
5237   _ACEOF
5238   rm -f conftest.$ac_objext conftest$ac_exeext
5239 < if { (eval echo "$as_me:4401: \"$ac_link\"") >&5
5239 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5240    (eval $ac_link) 2>&5
5241    ac_status=$?
5242 <  echo "$as_me:4404: \$? = $ac_status" >&5
5242 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243    (exit $ac_status); } &&
5244           { ac_try='test -s conftest$ac_exeext'
5245 <  { (eval echo "$as_me:4407: \"$ac_try\"") >&5
5245 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246    (eval $ac_try) 2>&5
5247    ac_status=$?
5248 <  echo "$as_me:4410: \$? = $ac_status" >&5
5248 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249    (exit $ac_status); }; }; then
5250    ac_success_extra=yes; break
5251   else
5252    echo "$as_me: failed program was:" >&5
5253 < cat conftest.$ac_ext >&5
5253 > sed 's/^/| /' conftest.$ac_ext >&5
5254 >
5255   fi
5256   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5257       done
# Line 4446 | Line 5285 | cat conftest.$ac_ext >&5
5285    rm -f cf90_test* conftest*
5286   else
5287    echo "$as_me: failed program was:" >&5
5288 < cat conftest.$ac_ext >&5
5288 > sed 's/^/| /' conftest.$ac_ext >&5
5289 >
5290   fi
5291   rm -f conftest.$ac_objext conftest.$ac_ext
5292   ac_ext=f90
# Line 4455 | Line 5295 | echo "$as_me:4458: result: $ac_cv_f90_mangling" >&5
5295   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5296  
5297   fi
5298 < echo "$as_me:4458: result: $ac_cv_f90_mangling" >&5
5298 > echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
5299   echo "${ECHO_T}$ac_cv_f90_mangling" >&6
5300  
5301 +
5302 +
5303   case $ac_cv_f90_mangling in
5304    "lower case, no underscore, no extra underscore")
5305 <          cat >>confdefs.h <<\EOF
5305 >          cat >>confdefs.h <<\_ACEOF
5306   #define F90_FUNC(name,NAME) name
5307 < EOF
5307 > _ACEOF
5308  
5309 <          cat >>confdefs.h <<\EOF
5309 >          cat >>confdefs.h <<\_ACEOF
5310   #define F90_FUNC_(name,NAME) name
5311 < EOF
5311 > _ACEOF
5312   ;;
5313    "lower case, no underscore, extra underscore")
5314 <          cat >>confdefs.h <<\EOF
5314 >          cat >>confdefs.h <<\_ACEOF
5315   #define F90_FUNC(name,NAME) name
5316 < EOF
5316 > _ACEOF
5317  
5318 <          cat >>confdefs.h <<\EOF
5318 >          cat >>confdefs.h <<\_ACEOF
5319   #define F90_FUNC_(name,NAME) name ## _
5320 < EOF
5320 > _ACEOF
5321   ;;
5322    "lower case, underscore, no extra underscore")
5323 <          cat >>confdefs.h <<\EOF
5323 >          cat >>confdefs.h <<\_ACEOF
5324   #define F90_FUNC(name,NAME) name ## _
5325 < EOF
5325 > _ACEOF
5326  
5327 <          cat >>confdefs.h <<\EOF
5327 >          cat >>confdefs.h <<\_ACEOF
5328   #define F90_FUNC_(name,NAME) name ## _
5329 < EOF
5329 > _ACEOF
5330   ;;
5331    "lower case, underscore, extra underscore")
5332 <          cat >>confdefs.h <<\EOF
5332 >          cat >>confdefs.h <<\_ACEOF
5333   #define F90_FUNC(name,NAME) name ## _
5334 < EOF
5334 > _ACEOF
5335  
5336 <          cat >>confdefs.h <<\EOF
5336 >          cat >>confdefs.h <<\_ACEOF
5337   #define F90_FUNC_(name,NAME) name ## __
5338 < EOF
5338 > _ACEOF
5339   ;;
5340    "upper case, no underscore, no extra underscore")
5341 <          cat >>confdefs.h <<\EOF
5341 >          cat >>confdefs.h <<\_ACEOF
5342   #define F90_FUNC(name,NAME) NAME
5343 < EOF
5343 > _ACEOF
5344  
5345 <          cat >>confdefs.h <<\EOF
5345 >          cat >>confdefs.h <<\_ACEOF
5346   #define F90_FUNC_(name,NAME) NAME
5347 < EOF
5347 > _ACEOF
5348   ;;
5349    "upper case, no underscore, extra underscore")
5350 <          cat >>confdefs.h <<\EOF
5350 >          cat >>confdefs.h <<\_ACEOF
5351   #define F90_FUNC(name,NAME) NAME
5352 < EOF
5352 > _ACEOF
5353  
5354 <          cat >>confdefs.h <<\EOF
5354 >          cat >>confdefs.h <<\_ACEOF
5355   #define F90_FUNC_(name,NAME) NAME ## _
5356 < EOF
5356 > _ACEOF
5357   ;;
5358    "upper case, underscore, no extra underscore")
5359 <          cat >>confdefs.h <<\EOF
5359 >          cat >>confdefs.h <<\_ACEOF
5360   #define F90_FUNC(name,NAME) NAME ## _
5361 < EOF
5361 > _ACEOF
5362  
5363 <          cat >>confdefs.h <<\EOF
5363 >          cat >>confdefs.h <<\_ACEOF
5364   #define F90_FUNC_(name,NAME) NAME ## _
5365 < EOF
5365 > _ACEOF
5366   ;;
5367    "upper case, underscore, extra underscore")
5368 <          cat >>confdefs.h <<\EOF
5368 >          cat >>confdefs.h <<\_ACEOF
5369   #define F90_FUNC(name,NAME) NAME ## _
5370 < EOF
5370 > _ACEOF
5371  
5372 <          cat >>confdefs.h <<\EOF
5372 >          cat >>confdefs.h <<\_ACEOF
5373   #define F90_FUNC_(name,NAME) NAME ## __
5374 < EOF
5374 > _ACEOF
5375   ;;
5376    *)
5377 <          { echo "$as_me:4535: WARNING: unknown Fortran 90 name-mangling scheme" >&5
5377 >          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
5378   echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
5379            ;;
5380   esac
5381  
5382 < echo "$as_me:4540: checking for mpi-directory" >&5
5382 >
5383 >
5384 >
5385 >
5386 > echo "$as_me:$LINENO: checking for module suffix" >&5
5387 > echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
5388 > rm -f conftest*
5389 > # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
5390 > rm -f work*
5391 > cat >conftest.f <<EOF
5392 >        module conftest
5393 >        integer n
5394 >        parameter (n=1)
5395 >        end module conftest
5396 > EOF
5397 > # SGI and absoft compilers generates module name in upper case!
5398 > testname="conftest"
5399 > modcase="lower"
5400 > if $F90 -c conftest.f > conftest.out 2>&1 ; then
5401 >    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
5402 >    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
5403 >    if test -z "$MOD" ; then
5404 >        MOD=`ls CONFTEST* 2>/dev/null \
5405 >                | grep -v CONFTEST.f | grep -v CONFTEST.o`
5406 >        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
5407 >        if test -n "$MOD" ; then
5408 >            testname="CONFTEST"
5409 >            modcase="upper"
5410 >        fi
5411 >    fi
5412 >    if test -z "$MOD" ; then
5413 >        echo "$as_me:$LINENO: result: unknown" >&5
5414 > echo "${ECHO_T}unknown" >&6
5415 >        # Use mod if we can't figure it out
5416 >        MOD="mod"
5417 >    else
5418 >        echo "$as_me:$LINENO: result: $MOD" >&5
5419 > echo "${ECHO_T}$MOD" >&6
5420 >    fi
5421 >    if test -s work.pcl ; then
5422 >        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
5423 > echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
5424 >    fi
5425 > else
5426 >    echo "$as_me:$LINENO: result: unknown" >&5
5427 > echo "${ECHO_T}unknown" >&6
5428 > fi
5429 >
5430 >
5431 >
5432 >
5433 >
5434 > # Check for module include path (some use -I, some (Solaris) use -M, some
5435 > # (absoft) use -p).
5436 > # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
5437 > # specified, work.pcl and work.pc are created.  However, if you specify
5438 > # a file, it must contain a the name of a file ending in .pc .  Ugh!
5439 > # Use the module made above
5440 > echo "$as_me:$LINENO: checking for module directory path flag" >&5
5441 > echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
5442 > madedir=0
5443 > if test ! -d conf ; then mkdir conf ; madedir=1; fi
5444 > cp $testname.$MOD conf
5445 > rm -f conftest* CONFTEST*
5446 > cat >conftest1.f <<EOF
5447 >        program main
5448 >        use conftest
5449 >        print *, n
5450 >        end
5451 > EOF
5452 > F90_WORK_FILES_ARG=""
5453 > F90MODINCSPEC=""
5454 > if $F90 -c -Iconf conftest1.f > conftest.out 2>&1 ; then
5455 >    MODDIRFLAG="-I"
5456 >    F90MODINCSPEC="-I<dir>"
5457 >    echo "$as_me:$LINENO: result: -I" >&5
5458 > echo "${ECHO_T}-I" >&6
5459 > elif $F90 -c -Mconf conftest1.f >> conftest.out 2>&1 ; then
5460 >    MODDIRFLAG="-M"
5461 >    F90MODINCSPEC="-M<dir>"
5462 >    echo "$as_me:$LINENO: result: -M" >&5
5463 > echo "${ECHO_T}-M" >&6
5464 > elif $F90 -c -pconf conftest1.f >> conftest.out 2>&1 ; then
5465 >    MODDIRFLAG="-p"
5466 >    F90MODINCSPEC="-p<dir>"
5467 >    echo "$as_me:$LINENO: result: -p" >&5
5468 > echo "${ECHO_T}-p" >&6
5469 > elif test -s work.pc ; then
5470 >     cp work.pc conf/mpimod.pc
5471 >     echo "mpimod.pc" > conf/mpimod.pcl
5472 >     echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
5473 >     if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
5474 >         MODDIRFLAG='-cl,mpimod.pcl'
5475 >         echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and
5476 > directories" >&5
5477 > echo "${ECHO_T}-cl,filename where filename contains a list of files and
5478 > directories" >&6
5479 >         F90_WORK_FILES_ARG="-cl,mpimod.pcl"
5480 >         F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
5481 >
5482 >     else
5483 >         # The version of the Intel compiler that I have refuses to let
5484 >         # you put the "work catalog" list anywhere but the current directory.
5485 >         # For example, you cannot in
5486 >         :
5487 >     fi
5488 > fi
5489 > if test -z "MODDIRFLAG" ; then
5490 >    echo "$as_me:$LINENO: result: unknown" >&5
5491 > echo "${ECHO_T}unknown" >&6
5492 > fi
5493 >
5494 >
5495 > rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
5496 > if test $madedir = 1 ; then rmdir conf ; fi
5497 >
5498 >
5499 >
5500 > echo "$as_me:$LINENO: checking for mpi-directory" >&5
5501   echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
5502  
5503   # Check whether --with-mpi_dir or --without-mpi_dir was given.
# Line 4547 | Line 5507 | echo "$as_me:4550: result: $MPI_DIR" >&5
5507   else
5508    MPI_DIR="/usr/local"
5509   fi;
5510 < echo "$as_me:4550: result: $MPI_DIR" >&5
5510 > echo "$as_me:$LINENO: result: $MPI_DIR" >&5
5511   echo "${ECHO_T}$MPI_DIR" >&6
5512  
5513 < echo "$as_me:4553: checking for mpi-lib-directory" >&5
5513 >
5514 > echo "$as_me:$LINENO: checking for mpi-lib-directory" >&5
5515   echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
5516  
5517   # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
# Line 4560 | Line 5521 | echo "$as_me:4563: result: $MPI_LIBDIR" >&5
5521   else
5522    MPI_LIBDIR="$MPI_DIR/lib"
5523   fi;
5524 < echo "$as_me:4563: result: $MPI_LIBDIR" >&5
5524 > echo "$as_me:$LINENO: result: $MPI_LIBDIR" >&5
5525   echo "${ECHO_T}$MPI_LIBDIR" >&6
5526  
5527 < echo "$as_me:4566: checking for mpi-inc-directory" >&5
5527 >
5528 > echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5
5529   echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
5530  
5531   # Check whether --with-mpi_inc or --without-mpi_inc was given.
# Line 4573 | Line 5535 | echo "$as_me:4576: result: $MPI_INC" >&5
5535   else
5536    MPI_INC="$MPI_DIR/include"
5537   fi;
5538 < echo "$as_me:4576: result: $MPI_INC" >&5
5538 > echo "$as_me:$LINENO: result: $MPI_INC" >&5
5539   echo "${ECHO_T}$MPI_INC" >&6
5540  
5541 < echo "$as_me:4579: checking for MPI library" >&5
5541 >
5542 >
5543 > echo "$as_me:$LINENO: checking for MPI library" >&5
5544   echo $ECHO_N "checking for MPI library... $ECHO_C" >&6
5545   MPI_LIB=""
5546   case "$host" in
5547    *-ibm-aix*)
5548 <    echo "$as_me:4584: checking whether to use signal-based MPI library" >&5
5548 >    echo "$as_me:$LINENO: checking whether to use signal-based MPI library" >&5
5549   echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6
5550 <    echo "$as_me:4586: result: $PACX_SIGNAL" >&5
5550 >    echo "$as_me:$LINENO: result: $PACX_SIGNAL" >&5
5551   echo "${ECHO_T}$PACX_SIGNAL" >&6
5552      if test "x$PACX_SIGNAL" = "xyes" ; then
5553        if test -f "$MPI_LIBDIR/libmpi.a" ; then
# Line 4593 | Line 5557 | echo "${ECHO_T}$PACX_SIGNAL" >&6
5557        elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5558          MPI_LIB="-lmpich"
5559        else
5560 <        { { echo "$as_me:4596: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5560 >        { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5561   echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5562     { (exit 1); exit 1; }; }
5563        fi
# Line 4601 | Line 5565 | echo "$as_me: error: neither libmpi nor libmpich found
5565        if test -f "$MPI_LIBDIR/libmpi_r.a" ; then
5566           MPI_LIB="-lmpi_r"
5567        else
5568 <         { { echo "$as_me:4604: error: libmpi_r not found; check path for MPI package..." >&5
5568 >         { { echo "$as_me:$LINENO: error: libmpi_r not found; check path for MPI package..." >&5
5569   echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;}
5570     { (exit 1); exit 1; }; }
5571        fi
5572      fi
5573 <    echo "$as_me:4609: result: found $MPI_LIB" >&5
5573 >    echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5574   echo "${ECHO_T}found $MPI_LIB" >&6
5575    ;;
5576    *)                             if test -f "$MPI_LIBDIR/libmpi.a" ; then
# Line 4616 | Line 5580 | echo "${ECHO_T}found $MPI_LIB" >&6
5580      elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5581        MPI_LIB="-lmpich"
5582      else
5583 <      { { echo "$as_me:4619: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5583 >      { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5584   echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5585     { (exit 1); exit 1; }; }
5586      fi
5587 <    echo "$as_me:4623: result: found $MPI_LIB" >&5
5587 >    echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5588   echo "${ECHO_T}found $MPI_LIB" >&6
5589    ;;
5590   esac
5591  
5592 +
5593 +
5594 +
5595 +
5596 +
5597 +
5598          for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r
5599   do
5600    # Extract the first word of "$ac_prog", so it can be a program name with args.
5601   set dummy $ac_prog; ac_word=$2
5602 < echo "$as_me:4632: checking for $ac_word" >&5
5602 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5603   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5604   if test "${ac_cv_prog_MPIF90+set}" = set; then
5605    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 4637 | Line 5607 | else
5607    if test -n "$MPIF90"; then
5608    ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test.
5609   else
5610 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5611 < ac_dummy="$PATH"
5612 < for ac_dir in $ac_dummy; do
5613 <  IFS=$ac_save_IFS
5614 <  test -z "$ac_dir" && ac_dir=.
5615 <  $as_executable_p "$ac_dir/$ac_word" || continue
5616 < ac_cv_prog_MPIF90="$ac_prog"
5617 < echo "$as_me:4647: found $ac_dir/$ac_word" >&5
5618 < break
5610 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 > for as_dir in $PATH
5612 > do
5613 >  IFS=$as_save_IFS
5614 >  test -z "$as_dir" && as_dir=.
5615 >  for ac_exec_ext in '' $ac_executable_extensions; do
5616 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5617 >    ac_cv_prog_MPIF90="$ac_prog"
5618 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 >    break 2
5620 >  fi
5621   done
5622 + done
5623  
5624   fi
5625   fi
5626   MPIF90=$ac_cv_prog_MPIF90
5627   if test -n "$MPIF90"; then
5628 <  echo "$as_me:4655: result: $MPIF90" >&5
5628 >  echo "$as_me:$LINENO: result: $MPIF90" >&5
5629   echo "${ECHO_T}$MPIF90" >&6
5630   else
5631 <  echo "$as_me:4658: result: no" >&5
5631 >  echo "$as_me:$LINENO: result: no" >&5
5632   echo "${ECHO_T}no" >&6
5633   fi
5634  
# Line 4666 | Line 5639 | if test x = x"$MPILIBS"; then
5639          acx_mpi_save_F90="$F90"
5640          F90="$MPIF90"
5641  
5642 +
5643 +
5644   if test x = x"$MPILIBS"; then
5645 <        echo "$as_me:4670: checking for MPI_Init" >&5
5645 >        echo "$as_me:$LINENO: checking for MPI_Init" >&5
5646   echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6
5647                          cat >conftest.$ac_ext <<_ACEOF
5648  
# Line 4678 | Line 5653 | if { (eval echo "$as_me:4681: \"$ac_link\"") >&5
5653  
5654   _ACEOF
5655   rm -f conftest.$ac_objext conftest$ac_exeext
5656 < if { (eval echo "$as_me:4681: \"$ac_link\"") >&5
5656 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5657    (eval $ac_link) 2>&5
5658    ac_status=$?
5659 <  echo "$as_me:4684: \$? = $ac_status" >&5
5659 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660    (exit $ac_status); } &&
5661           { ac_try='test -s conftest$ac_exeext'
5662 <  { (eval echo "$as_me:4687: \"$ac_try\"") >&5
5662 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663    (eval $ac_try) 2>&5
5664    ac_status=$?
5665 <  echo "$as_me:4690: \$? = $ac_status" >&5
5665 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666    (exit $ac_status); }; }; then
5667    MPILIBS=" "
5668 <                                echo "$as_me:4693: result: yes" >&5
5668 >                                echo "$as_me:$LINENO: result: yes" >&5
5669   echo "${ECHO_T}yes" >&6
5670   else
5671    echo "$as_me: failed program was:" >&5
5672 < cat conftest.$ac_ext >&5
5673 < echo "$as_me:4698: result: no" >&5
5672 > sed 's/^/| /' conftest.$ac_ext >&5
5673 >
5674 > echo "$as_me:$LINENO: result: no" >&5
5675   echo "${ECHO_T}no" >&6
5676   fi
5677   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5678   fi
5679   if test x = x"$MPILIBS"; then
5680 <        echo "$as_me:4704: checking for MPI_Init in -lmpi" >&5
5680 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5681   echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5682   if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5683    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 4717 | Line 5693 | if { (eval echo "$as_me:4720: \"$ac_link\"") >&5
5693  
5694   _ACEOF
5695   rm -f conftest.$ac_objext conftest$ac_exeext
5696 < if { (eval echo "$as_me:4720: \"$ac_link\"") >&5
5696 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697    (eval $ac_link) 2>&5
5698    ac_status=$?
5699 <  echo "$as_me:4723: \$? = $ac_status" >&5
5699 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700    (exit $ac_status); } &&
5701           { ac_try='test -s conftest$ac_exeext'
5702 <  { (eval echo "$as_me:4726: \"$ac_try\"") >&5
5702 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703    (eval $ac_try) 2>&5
5704    ac_status=$?
5705 <  echo "$as_me:4729: \$? = $ac_status" >&5
5705 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706    (exit $ac_status); }; }; then
5707    ac_cv_lib_mpi_MPI_Init=yes
5708   else
5709    echo "$as_me: failed program was:" >&5
5710 < cat conftest.$ac_ext >&5
5710 > sed 's/^/| /' conftest.$ac_ext >&5
5711 >
5712   ac_cv_lib_mpi_MPI_Init=no
5713   fi
5714   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5715   LIBS=$ac_check_lib_save_LIBS
5716   fi
5717 < echo "$as_me:4740: result: $ac_cv_lib_mpi_MPI_Init" >&5
5717 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5718   echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5719   if test $ac_cv_lib_mpi_MPI_Init = yes; then
5720    MPILIBS="-lmpi"
# Line 4745 | Line 5722 | if test x = x"$MPILIBS"; then
5722  
5723   fi
5724   if test x = x"$MPILIBS"; then
5725 <        echo "$as_me:4748: checking for MPI_Init in -lmpich" >&5
5725 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
5726   echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
5727   if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
5728    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 4761 | Line 5738 | if { (eval echo "$as_me:4764: \"$ac_link\"") >&5
5738  
5739   _ACEOF
5740   rm -f conftest.$ac_objext conftest$ac_exeext
5741 < if { (eval echo "$as_me:4764: \"$ac_link\"") >&5
5741 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5742    (eval $ac_link) 2>&5
5743    ac_status=$?
5744 <  echo "$as_me:4767: \$? = $ac_status" >&5
5744 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745    (exit $ac_status); } &&
5746           { ac_try='test -s conftest$ac_exeext'
5747 <  { (eval echo "$as_me:4770: \"$ac_try\"") >&5
5747 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748    (eval $ac_try) 2>&5
5749    ac_status=$?
5750 <  echo "$as_me:4773: \$? = $ac_status" >&5
5750 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751    (exit $ac_status); }; }; then
5752    ac_cv_lib_mpich_MPI_Init=yes
5753   else
5754    echo "$as_me: failed program was:" >&5
5755 < cat conftest.$ac_ext >&5
5755 > sed 's/^/| /' conftest.$ac_ext >&5
5756 >
5757   ac_cv_lib_mpich_MPI_Init=no
5758   fi
5759   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5760   LIBS=$ac_check_lib_save_LIBS
5761   fi
5762 < echo "$as_me:4784: result: $ac_cv_lib_mpich_MPI_Init" >&5
5762 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
5763   echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
5764   if test $ac_cv_lib_mpich_MPI_Init = yes; then
5765    MPILIBS="-lmpich"
# Line 4789 | Line 5767 | F90="$acx_mpi_save_F90"
5767  
5768   fi
5769  
5770 +
5771 +
5772   F90="$acx_mpi_save_F90"
5773  
5774 +
5775 +
5776   # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5777   if test x = x"$MPILIBS"; then
5778  
5779          :
5780   else
5781  
5782 < cat >>confdefs.h <<\EOF
5782 > cat >>confdefs.h <<\_ACEOF
5783   #define HAVE_MPI 1
5784 < EOF
5784 > _ACEOF
5785  
5786          :
5787   fi
5788  
5789 +
5790   ac_ext=c
5791   ac_cpp='$CPP $CPPFLAGS'
5792   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794   ac_compiler_gnu=$ac_cv_c_compiler_gnu
5795 < echo "$as_me:4812: checking how to run the C preprocessor" >&5
5795 > echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5796   echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5797   # On Suns, sometimes $CPP names a directory.
5798   if test -n "$CPP" && test -d "$CPP"; then
# Line 4822 | Line 5805 | else
5805        # Double quotes because CPP needs to be expanded
5806      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5807      do
4825      # break 2 since there is a loop in there.
5808        ac_preproc_ok=false
5809   for ac_c_preproc_warn_flag in '' yes
5810   do
5811    # Use a header file that comes with gcc, so configuring glibc
5812    # with a fresh cross-compiler works.
5813 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5814 +  # <limits.h> exists even on freestanding compilers.
5815    # On the NeXT, cc -E runs the code through the compiler's parser,
5816    # not just through cpp. "Syntax error" is here to catch this case.
5817    cat >conftest.$ac_ext <<_ACEOF
5818 < #line 4834 "configure"
5819 < #include "confdefs.h"
5820 < #include <assert.h>
5818 > #line $LINENO "configure"
5819 > /* confdefs.h.  */
5820 > _ACEOF
5821 > cat confdefs.h >>conftest.$ac_ext
5822 > cat >>conftest.$ac_ext <<_ACEOF
5823 > /* end confdefs.h.  */
5824 > #ifdef __STDC__
5825 > # include <limits.h>
5826 > #else
5827 > # include <assert.h>
5828 > #endif
5829                       Syntax error
5830   _ACEOF
5831 < if { (eval echo "$as_me:4839: \"$ac_cpp conftest.$ac_ext\"") >&5
5831 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5832    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5833    ac_status=$?
5834 <  egrep -v '^ *\+' conftest.er1 >conftest.err
5834 >  grep -v '^ *+' conftest.er1 >conftest.err
5835    rm -f conftest.er1
5836    cat conftest.err >&5
5837 <  echo "$as_me:4845: \$? = $ac_status" >&5
5837 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838    (exit $ac_status); } >/dev/null; then
5839    if test -s conftest.err; then
5840      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 4856 | Line 5848 | else
5848    :
5849   else
5850    echo "$as_me: failed program was:" >&5
5851 <  cat conftest.$ac_ext >&5
5851 > sed 's/^/| /' conftest.$ac_ext >&5
5852 >
5853    # Broken: fails on valid input.
5854   continue
5855   fi
# Line 4865 | Line 5858 | rm -f conftest.err conftest.$ac_ext
5858    # OK, works on sane cases.  Now check whether non-existent headers
5859    # can be detected and how.
5860    cat >conftest.$ac_ext <<_ACEOF
5861 < #line 4868 "configure"
5862 < #include "confdefs.h"
5861 > #line $LINENO "configure"
5862 > /* confdefs.h.  */
5863 > _ACEOF
5864 > cat confdefs.h >>conftest.$ac_ext
5865 > cat >>conftest.$ac_ext <<_ACEOF
5866 > /* end confdefs.h.  */
5867   #include <ac_nonexistent.h>
5868   _ACEOF
5869 < if { (eval echo "$as_me:4872: \"$ac_cpp conftest.$ac_ext\"") >&5
5869 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5870    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5871    ac_status=$?
5872 <  egrep -v '^ *\+' conftest.er1 >conftest.err
5872 >  grep -v '^ *+' conftest.er1 >conftest.err
5873    rm -f conftest.er1
5874    cat conftest.err >&5
5875 <  echo "$as_me:4878: \$? = $ac_status" >&5
5875 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876    (exit $ac_status); } >/dev/null; then
5877    if test -s conftest.err; then
5878      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 4890 | Line 5887 | else
5887   continue
5888   else
5889    echo "$as_me: failed program was:" >&5
5890 <  cat conftest.$ac_ext >&5
5890 > sed 's/^/| /' conftest.$ac_ext >&5
5891 >
5892    # Passes both tests.
5893   ac_preproc_ok=:
5894   break
# Line 4901 | Line 5899 | if $ac_preproc_ok; then
5899   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5900   rm -f conftest.err conftest.$ac_ext
5901   if $ac_preproc_ok; then
5902 <  break 2
5902 >  break
5903   fi
5904  
5905      done
# Line 4912 | Line 5910 | echo "$as_me:4915: result: $CPP" >&5
5910   else
5911    ac_cv_prog_CPP=$CPP
5912   fi
5913 < echo "$as_me:4915: result: $CPP" >&5
5913 > echo "$as_me:$LINENO: result: $CPP" >&5
5914   echo "${ECHO_T}$CPP" >&6
5915   ac_preproc_ok=false
5916   for ac_c_preproc_warn_flag in '' yes
5917   do
5918    # Use a header file that comes with gcc, so configuring glibc
5919    # with a fresh cross-compiler works.
5920 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5921 +  # <limits.h> exists even on freestanding compilers.
5922    # On the NeXT, cc -E runs the code through the compiler's parser,
5923    # not just through cpp. "Syntax error" is here to catch this case.
5924    cat >conftest.$ac_ext <<_ACEOF
5925 < #line 4925 "configure"
5926 < #include "confdefs.h"
5927 < #include <assert.h>
5925 > #line $LINENO "configure"
5926 > /* confdefs.h.  */
5927 > _ACEOF
5928 > cat confdefs.h >>conftest.$ac_ext
5929 > cat >>conftest.$ac_ext <<_ACEOF
5930 > /* end confdefs.h.  */
5931 > #ifdef __STDC__
5932 > # include <limits.h>
5933 > #else
5934 > # include <assert.h>
5935 > #endif
5936                       Syntax error
5937   _ACEOF
5938 < if { (eval echo "$as_me:4930: \"$ac_cpp conftest.$ac_ext\"") >&5
5938 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5939    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5940    ac_status=$?
5941 <  egrep -v '^ *\+' conftest.er1 >conftest.err
5941 >  grep -v '^ *+' conftest.er1 >conftest.err
5942    rm -f conftest.er1
5943    cat conftest.err >&5
5944 <  echo "$as_me:4936: \$? = $ac_status" >&5
5944 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945    (exit $ac_status); } >/dev/null; then
5946    if test -s conftest.err; then
5947      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 4947 | Line 5955 | else
5955    :
5956   else
5957    echo "$as_me: failed program was:" >&5
5958 <  cat conftest.$ac_ext >&5
5958 > sed 's/^/| /' conftest.$ac_ext >&5
5959 >
5960    # Broken: fails on valid input.
5961   continue
5962   fi
# Line 4956 | Line 5965 | rm -f conftest.err conftest.$ac_ext
5965    # OK, works on sane cases.  Now check whether non-existent headers
5966    # can be detected and how.
5967    cat >conftest.$ac_ext <<_ACEOF
5968 < #line 4959 "configure"
5969 < #include "confdefs.h"
5968 > #line $LINENO "configure"
5969 > /* confdefs.h.  */
5970 > _ACEOF
5971 > cat confdefs.h >>conftest.$ac_ext
5972 > cat >>conftest.$ac_ext <<_ACEOF
5973 > /* end confdefs.h.  */
5974   #include <ac_nonexistent.h>
5975   _ACEOF
5976 < if { (eval echo "$as_me:4963: \"$ac_cpp conftest.$ac_ext\"") >&5
5976 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5977    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5978    ac_status=$?
5979 <  egrep -v '^ *\+' conftest.er1 >conftest.err
5979 >  grep -v '^ *+' conftest.er1 >conftest.err
5980    rm -f conftest.er1
5981    cat conftest.err >&5
5982 <  echo "$as_me:4969: \$? = $ac_status" >&5
5982 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983    (exit $ac_status); } >/dev/null; then
5984    if test -s conftest.err; then
5985      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 4981 | Line 5994 | else
5994   continue
5995   else
5996    echo "$as_me: failed program was:" >&5
5997 <  cat conftest.$ac_ext >&5
5997 > sed 's/^/| /' conftest.$ac_ext >&5
5998 >
5999    # Passes both tests.
6000   ac_preproc_ok=:
6001   break
# Line 4994 | Line 6008 | else
6008   if $ac_preproc_ok; then
6009    :
6010   else
6011 <  { { echo "$as_me:4997: error: C preprocessor \"$CPP\" fails sanity check" >&5
6012 < echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
6011 >  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6012 > See \`config.log' for more details." >&5
6013 > echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6014 > See \`config.log' for more details." >&2;}
6015     { (exit 1); exit 1; }; }
6016   fi
6017  
# Line 5005 | Line 6021 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6021   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6022   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6023  
6024 +
6025 + echo "$as_me:$LINENO: checking for egrep" >&5
6026 + echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6027 + if test "${ac_cv_prog_egrep+set}" = set; then
6028 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6029 + else
6030 +  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6031 +    then ac_cv_prog_egrep='grep -E'
6032 +    else ac_cv_prog_egrep='egrep'
6033 +    fi
6034 + fi
6035 + echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6036 + echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6037 + EGREP=$ac_cv_prog_egrep
6038 +
6039 +
6040 + echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6041 + echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6042 + if test "${ac_cv_header_stdc+set}" = set; then
6043 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6044 + else
6045 +  cat >conftest.$ac_ext <<_ACEOF
6046 + #line $LINENO "configure"
6047 + /* confdefs.h.  */
6048 + _ACEOF
6049 + cat confdefs.h >>conftest.$ac_ext
6050 + cat >>conftest.$ac_ext <<_ACEOF
6051 + /* end confdefs.h.  */
6052 + #include <stdlib.h>
6053 + #include <stdarg.h>
6054 + #include <string.h>
6055 + #include <float.h>
6056 +
6057 + int
6058 + main ()
6059 + {
6060 +
6061 +  ;
6062 +  return 0;
6063 + }
6064 + _ACEOF
6065 + rm -f conftest.$ac_objext
6066 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067 +  (eval $ac_compile) 2>&5
6068 +  ac_status=$?
6069 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 +  (exit $ac_status); } &&
6071 +         { ac_try='test -s conftest.$ac_objext'
6072 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 +  (eval $ac_try) 2>&5
6074 +  ac_status=$?
6075 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 +  (exit $ac_status); }; }; then
6077 +  ac_cv_header_stdc=yes
6078 + else
6079 +  echo "$as_me: failed program was:" >&5
6080 + sed 's/^/| /' conftest.$ac_ext >&5
6081 +
6082 + ac_cv_header_stdc=no
6083 + fi
6084 + rm -f conftest.$ac_objext conftest.$ac_ext
6085 +
6086 + if test $ac_cv_header_stdc = yes; then
6087 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6088 +  cat >conftest.$ac_ext <<_ACEOF
6089 + #line $LINENO "configure"
6090 + /* confdefs.h.  */
6091 + _ACEOF
6092 + cat confdefs.h >>conftest.$ac_ext
6093 + cat >>conftest.$ac_ext <<_ACEOF
6094 + /* end confdefs.h.  */
6095 + #include <string.h>
6096 +
6097 + _ACEOF
6098 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6099 +  $EGREP "memchr" >/dev/null 2>&1; then
6100 +  :
6101 + else
6102 +  ac_cv_header_stdc=no
6103 + fi
6104 + rm -f conftest*
6105 +
6106 + fi
6107 +
6108 + if test $ac_cv_header_stdc = yes; then
6109 +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6110 +  cat >conftest.$ac_ext <<_ACEOF
6111 + #line $LINENO "configure"
6112 + /* confdefs.h.  */
6113 + _ACEOF
6114 + cat confdefs.h >>conftest.$ac_ext
6115 + cat >>conftest.$ac_ext <<_ACEOF
6116 + /* end confdefs.h.  */
6117 + #include <stdlib.h>
6118 +
6119 + _ACEOF
6120 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6121 +  $EGREP "free" >/dev/null 2>&1; then
6122 +  :
6123 + else
6124 +  ac_cv_header_stdc=no
6125 + fi
6126 + rm -f conftest*
6127 +
6128 + fi
6129 +
6130 + if test $ac_cv_header_stdc = yes; then
6131 +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6132 +  if test "$cross_compiling" = yes; then
6133 +  :
6134 + else
6135 +  cat >conftest.$ac_ext <<_ACEOF
6136 + #line $LINENO "configure"
6137 + /* confdefs.h.  */
6138 + _ACEOF
6139 + cat confdefs.h >>conftest.$ac_ext
6140 + cat >>conftest.$ac_ext <<_ACEOF
6141 + /* end confdefs.h.  */
6142 + #include <ctype.h>
6143 + #if ((' ' & 0x0FF) == 0x020)
6144 + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6145 + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6146 + #else
6147 + # define ISLOWER(c) \
6148 +                   (('a' <= (c) && (c) <= 'i') \
6149 +                     || ('j' <= (c) && (c) <= 'r') \
6150 +                     || ('s' <= (c) && (c) <= 'z'))
6151 + # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6152 + #endif
6153 +
6154 + #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6155 + int
6156 + main ()
6157 + {
6158 +  int i;
6159 +  for (i = 0; i < 256; i++)
6160 +    if (XOR (islower (i), ISLOWER (i))
6161 +        || toupper (i) != TOUPPER (i))
6162 +      exit(2);
6163 +  exit (0);
6164 + }
6165 + _ACEOF
6166 + rm -f conftest$ac_exeext
6167 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6168 +  (eval $ac_link) 2>&5
6169 +  ac_status=$?
6170 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6172 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 +  (eval $ac_try) 2>&5
6174 +  ac_status=$?
6175 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 +  (exit $ac_status); }; }; then
6177 +  :
6178 + else
6179 +  echo "$as_me: program exited with status $ac_status" >&5
6180 + echo "$as_me: failed program was:" >&5
6181 + sed 's/^/| /' conftest.$ac_ext >&5
6182 +
6183 + ( exit $ac_status )
6184 + ac_cv_header_stdc=no
6185 + fi
6186 + rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6187 + fi
6188 + fi
6189 + fi
6190 + echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6191 + echo "${ECHO_T}$ac_cv_header_stdc" >&6
6192 + if test $ac_cv_header_stdc = yes; then
6193 +
6194 + cat >>confdefs.h <<\_ACEOF
6195 + #define STDC_HEADERS 1
6196 + _ACEOF
6197 +
6198 + fi
6199 +
6200 + # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6201 +
6202 +
6203 +
6204 +
6205 +
6206 +
6207 +
6208 +
6209 +
6210 + for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6211 +                  inttypes.h stdint.h unistd.h
6212 + do
6213 + as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6214 + echo "$as_me:$LINENO: checking for $ac_header" >&5
6215 + echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6216 + if eval "test \"\${$as_ac_Header+set}\" = set"; then
6217 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6218 + else
6219 +  cat >conftest.$ac_ext <<_ACEOF
6220 + #line $LINENO "configure"
6221 + /* confdefs.h.  */
6222 + _ACEOF
6223 + cat confdefs.h >>conftest.$ac_ext
6224 + cat >>conftest.$ac_ext <<_ACEOF
6225 + /* end confdefs.h.  */
6226 + $ac_includes_default
6227 +
6228 + #include <$ac_header>
6229 + _ACEOF
6230 + rm -f conftest.$ac_objext
6231 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 +  (eval $ac_compile) 2>&5
6233 +  ac_status=$?
6234 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 +  (exit $ac_status); } &&
6236 +         { ac_try='test -s conftest.$ac_objext'
6237 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 +  (eval $ac_try) 2>&5
6239 +  ac_status=$?
6240 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 +  (exit $ac_status); }; }; then
6242 +  eval "$as_ac_Header=yes"
6243 + else
6244 +  echo "$as_me: failed program was:" >&5
6245 + sed 's/^/| /' conftest.$ac_ext >&5
6246 +
6247 + eval "$as_ac_Header=no"
6248 + fi
6249 + rm -f conftest.$ac_objext conftest.$ac_ext
6250 + fi
6251 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6252 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6253 + if test `eval echo '${'$as_ac_Header'}'` = yes; then
6254 +  cat >>confdefs.h <<_ACEOF
6255 + #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6256 + _ACEOF
6257 +
6258 + fi
6259 +
6260 + done
6261 +
6262 +
6263 +
6264 +
6265 +
6266   # Check whether --with-sprng_prefix or --without-sprng_prefix was given.
6267   if test "${with_sprng_prefix+set}" = set; then
6268    withval="$with_sprng_prefix"
# Line 5013 | Line 6271 | fi;
6271    sprng_prefix="/usr/local"
6272   fi;
6273  
6274 < # Check whether --with-sprng_lib_prefix or --without-sprng_lib_prefix was given.
6275 < if test "${with_sprng_lib_prefix+set}" = set; then
6276 <  withval="$with_sprng_lib_prefix"
6277 <  sprng_lib_prefix="$withval"
6274 > # Check whether --with-sprng-libdir or --without-sprng-libdir was given.
6275 > if test "${with_sprng_libdir+set}" = set; then
6276 >  withval="$with_sprng_libdir"
6277 >  sprng_libdir="$withval"
6278   else
6279 <  sprng_lib_prefix="/usr/local/lib"
6279 >  sprng_libdir="/usr/local/lib"
6280   fi;
6281  
6282 < # Check whether --with-sprng_include_prefix or --without-sprng_include_prefix was given.
6283 < if test "${with_sprng_include_prefix+set}" = set; then
6284 <  withval="$with_sprng_include_prefix"
6285 <  sprng_include_prefix="$withval"
6282 > # Check whether --with-sprng-include or --without-sprng-include was given.
6283 > if test "${with_sprng_include+set}" = set; then
6284 >  withval="$with_sprng_include"
6285 >  sprng_include="$withval"
6286   else
6287 <  sprng_include_prefix="/usr/local/include/sprng"
6287 >  sprng_include="/usr/local/include/sprng"
6288   fi;
6289  
6290 <  if test x$sprng_lib_prefix = x ; then
6291 <    sprng_lib_prefix=${sprng_prefix}/lib
6290 >  if test x$sprng_libdir = x ; then
6291 >    sprng_libdir=${sprng_prefix}/lib
6292    fi
6293  
6294 <  if test x$sprng_include_prefix = x ; then
6295 <    sprng_include_prefix=${sprng_prefix}/include
6294 >  if test x$sprng_include = x ; then
6295 >    sprng_include=${sprng_prefix}/include
6296    fi
6297  
6298 <  echo "$as_me:5040: checking for SPRNG include files in $sprng_include_prefix" >&5
6299 < echo $ECHO_N "checking for SPRNG include files in $sprng_include_prefix... $ECHO_C" >&6
6300 <  if test -f ${sprng_include_prefix}/sprng.h; then
6298 >  echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include" >&5
6299 > echo $ECHO_N "checking for SPRNG include files in $sprng_include... $ECHO_C" >&6
6300 >  if test -f ${sprng_include}/sprng.h; then
6301      have_sprngincl=yes
6302 <    echo "$as_me:5044: result: yes" >&5
6302 >    echo "$as_me:$LINENO: result: yes" >&5
6303   echo "${ECHO_T}yes" >&6
6304    else
6305      have_sprngincl=no
6306 <    echo "$as_me:5048: result: no" >&5
6306 >    echo "$as_me:$LINENO: result: no" >&5
6307   echo "${ECHO_T}no" >&6
6308 <    { { echo "$as_me:5050: error: Could not locate the SPRNG include files" >&5
6308 >    { { echo "$as_me:$LINENO: error: Could not locate the SPRNG include files" >&5
6309   echo "$as_me: error: Could not locate the SPRNG include files" >&2;}
6310     { (exit 1); exit 1; }; }
6311    fi
6312  
6313 <  echo "$as_me:5055: checking for SPRNG libraries in $sprng_lib_prefix" >&5
6314 < echo $ECHO_N "checking for SPRNG libraries in $sprng_lib_prefix... $ECHO_C" >&6
6315 <  if test -f ${sprng_lib_prefix}/libsprng.a; then
6313 >  echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_libdir" >&5
6314 > echo $ECHO_N "checking for SPRNG libraries in $sprng_libdir... $ECHO_C" >&6
6315 >  if test -f ${sprng_libdir}/libsprng.a; then
6316      have_sprnglib=yes
6317 <    echo "$as_me:5059: result: yes" >&5
6317 >    echo "$as_me:$LINENO: result: yes" >&5
6318   echo "${ECHO_T}yes" >&6
6319    else
6320      have_sprnglib=no
6321 <    echo "$as_me:5063: result: no" >&5
6321 >    echo "$as_me:$LINENO: result: no" >&5
6322   echo "${ECHO_T}no" >&6
6323 <    { { echo "$as_me:5065: error: Could not locate the SPRNG libraries" >&5
6323 >    { { echo "$as_me:$LINENO: error: Could not locate the SPRNG libraries" >&5
6324   echo "$as_me: error: Could not locate the SPRNG libraries" >&2;}
6325     { (exit 1); exit 1; }; }
6326    fi
6327  
6328 +
6329 +
6330    ac_ext=c
6331   ac_cpp='$CPP $CPPFLAGS'
6332   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5074 | Line 6334 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6334   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6335  
6336    ac_save_CPPFLAGS=$CPPFLAGS
6337 <  CPPFLAGS="${CPPFLAGS} -I${sprng_include_prefix}"
6337 >  CPPFLAGS="${CPPFLAGS} -I${sprng_include}"
6338    ac_save_LDFLAGS=$LDFLAGS
6339 <  LDFLAGS="${LDFLAGS} -L${sprng_lib_prefix} -lsprng"
6340 <  echo "$as_me:5080: checking for sprng.h" >&5
6339 >  LDFLAGS="${LDFLAGS} -L${sprng_libdir} -lsprng"
6340 >  if test "${ac_cv_header_sprng_h+set}" = set; then
6341 >  echo "$as_me:$LINENO: checking for sprng.h" >&5
6342   echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6343   if test "${ac_cv_header_sprng_h+set}" = set; then
6344    echo $ECHO_N "(cached) $ECHO_C" >&6
6345 + fi
6346 + echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6347 + echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6348   else
6349 <  cat >conftest.$ac_ext <<_ACEOF
6350 < #line 5086 "configure"
6351 < #include "confdefs.h"
6349 >  # Is the header compilable?
6350 > echo "$as_me:$LINENO: checking sprng.h usability" >&5
6351 > echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6
6352 > cat >conftest.$ac_ext <<_ACEOF
6353 > #line $LINENO "configure"
6354 > /* confdefs.h.  */
6355 > _ACEOF
6356 > cat confdefs.h >>conftest.$ac_ext
6357 > cat >>conftest.$ac_ext <<_ACEOF
6358 > /* end confdefs.h.  */
6359 > $ac_includes_default
6360   #include <sprng.h>
6361   _ACEOF
6362 < if { (eval echo "$as_me:5090: \"$ac_cpp conftest.$ac_ext\"") >&5
6362 > rm -f conftest.$ac_objext
6363 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6364 >  (eval $ac_compile) 2>&5
6365 >  ac_status=$?
6366 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 >  (exit $ac_status); } &&
6368 >         { ac_try='test -s conftest.$ac_objext'
6369 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 >  (eval $ac_try) 2>&5
6371 >  ac_status=$?
6372 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 >  (exit $ac_status); }; }; then
6374 >  ac_header_compiler=yes
6375 > else
6376 >  echo "$as_me: failed program was:" >&5
6377 > sed 's/^/| /' conftest.$ac_ext >&5
6378 >
6379 > ac_header_compiler=no
6380 > fi
6381 > rm -f conftest.$ac_objext conftest.$ac_ext
6382 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6383 > echo "${ECHO_T}$ac_header_compiler" >&6
6384 >
6385 > # Is the header present?
6386 > echo "$as_me:$LINENO: checking sprng.h presence" >&5
6387 > echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6
6388 > cat >conftest.$ac_ext <<_ACEOF
6389 > #line $LINENO "configure"
6390 > /* confdefs.h.  */
6391 > _ACEOF
6392 > cat confdefs.h >>conftest.$ac_ext
6393 > cat >>conftest.$ac_ext <<_ACEOF
6394 > /* end confdefs.h.  */
6395 > #include <sprng.h>
6396 > _ACEOF
6397 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6398    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6399    ac_status=$?
6400 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6400 >  grep -v '^ *+' conftest.er1 >conftest.err
6401    rm -f conftest.er1
6402    cat conftest.err >&5
6403 <  echo "$as_me:5096: \$? = $ac_status" >&5
6403 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404    (exit $ac_status); } >/dev/null; then
6405    if test -s conftest.err; then
6406      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 5104 | Line 6411 | if test -z "$ac_cpp_err"; then
6411    ac_cpp_err=yes
6412   fi
6413   if test -z "$ac_cpp_err"; then
6414 <  ac_cv_header_sprng_h=yes
6414 >  ac_header_preproc=yes
6415   else
6416    echo "$as_me: failed program was:" >&5
6417 <  cat conftest.$ac_ext >&5
6418 <  ac_cv_header_sprng_h=no
6417 > sed 's/^/| /' conftest.$ac_ext >&5
6418 >
6419 >  ac_header_preproc=no
6420   fi
6421   rm -f conftest.err conftest.$ac_ext
6422 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6423 + echo "${ECHO_T}$ac_header_preproc" >&6
6424 +
6425 + # So?  What about this header?
6426 + case $ac_header_compiler:$ac_header_preproc in
6427 +  yes:no )
6428 +    { echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5
6429 + echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6430 +    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6431 + echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6432 +    (
6433 +      cat <<\_ASBOX
6434 + ## ------------------------------------ ##
6435 + ## Report this to bug-autoconf@gnu.org. ##
6436 + ## ------------------------------------ ##
6437 + _ASBOX
6438 +    ) |
6439 +      sed "s/^/$as_me: WARNING:     /" >&2
6440 +    ;;
6441 +  no:yes )
6442 +    { echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5
6443 + echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;}
6444 +    { echo "$as_me:$LINENO: WARNING: sprng.h: check for missing prerequisite headers?" >&5
6445 + echo "$as_me: WARNING: sprng.h: check for missing prerequisite headers?" >&2;}
6446 +    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6447 + echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6448 +    (
6449 +      cat <<\_ASBOX
6450 + ## ------------------------------------ ##
6451 + ## Report this to bug-autoconf@gnu.org. ##
6452 + ## ------------------------------------ ##
6453 + _ASBOX
6454 +    ) |
6455 +      sed "s/^/$as_me: WARNING:     /" >&2
6456 +    ;;
6457 + esac
6458 + echo "$as_me:$LINENO: checking for sprng.h" >&5
6459 + echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6460 + if test "${ac_cv_header_sprng_h+set}" = set; then
6461 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6462 + else
6463 +  ac_cv_header_sprng_h=$ac_header_preproc
6464   fi
6465 < echo "$as_me:5115: result: $ac_cv_header_sprng_h" >&5
6465 > echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6466   echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6467 +
6468 + fi
6469   if test $ac_cv_header_sprng_h = yes; then
6470  
6471 <    echo "$as_me:5119: checking for init_rng in -lsprng" >&5
6471 >    echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5
6472   echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6
6473   if test "${ac_cv_lib_sprng_init_rng+set}" = set; then
6474    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5124 | Line 6476 | cat >conftest.$ac_ext <<_ACEOF
6476    ac_check_lib_save_LIBS=$LIBS
6477   LIBS="-lsprng  $LIBS"
6478   cat >conftest.$ac_ext <<_ACEOF
6479 < #line 5127 "configure"
6480 < #include "confdefs.h"
6479 > #line $LINENO "configure"
6480 > /* confdefs.h.  */
6481 > _ACEOF
6482 > cat confdefs.h >>conftest.$ac_ext
6483 > cat >>conftest.$ac_ext <<_ACEOF
6484 > /* end confdefs.h.  */
6485  
6486   /* Override any gcc2 internal prototype to avoid an error.  */
6487   #ifdef __cplusplus
# Line 5143 | Line 6499 | if { (eval echo "$as_me:5146: \"$ac_link\"") >&5
6499   }
6500   _ACEOF
6501   rm -f conftest.$ac_objext conftest$ac_exeext
6502 < if { (eval echo "$as_me:5146: \"$ac_link\"") >&5
6502 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6503    (eval $ac_link) 2>&5
6504    ac_status=$?
6505 <  echo "$as_me:5149: \$? = $ac_status" >&5
6505 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506    (exit $ac_status); } &&
6507           { ac_try='test -s conftest$ac_exeext'
6508 <  { (eval echo "$as_me:5152: \"$ac_try\"") >&5
6508 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509    (eval $ac_try) 2>&5
6510    ac_status=$?
6511 <  echo "$as_me:5155: \$? = $ac_status" >&5
6511 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512    (exit $ac_status); }; }; then
6513    ac_cv_lib_sprng_init_rng=yes
6514   else
6515    echo "$as_me: failed program was:" >&5
6516 < cat conftest.$ac_ext >&5
6516 > sed 's/^/| /' conftest.$ac_ext >&5
6517 >
6518   ac_cv_lib_sprng_init_rng=no
6519   fi
6520   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6521   LIBS=$ac_check_lib_save_LIBS
6522   fi
6523 < echo "$as_me:5166: result: $ac_cv_lib_sprng_init_rng" >&5
6523 > echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
6524   echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
6525   if test $ac_cv_lib_sprng_init_rng = yes; then
6526 <  SPRNG_LIBDIR="${sprng_lib_prefix}"
6527 <                     SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include_prefix}"
6526 >  SPRNG_LIBDIR="${sprng_libdir}"
6527 >                     SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include}"
6528                       HAVE_SPRNG="yes"
6529   fi
6530  
6531   fi
6532 +
6533  
6534    CPPFLAGS=$ac_save_CPPFLAGS
6535    LDFLAGS=$ac_save_LDFLAGS
# Line 5180 | Line 6538 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6538   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6539   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6540  
6541 +
6542    if test x_$HAVE_SPRNG != x_yes; then
6543 <        { { echo "$as_me:5184: error: Can't build with SPRNG" >&5
6543 >        { { echo "$as_me:$LINENO: error: Can't build with SPRNG" >&5
6544   echo "$as_me: error: Can't build with SPRNG" >&2;}
6545     { (exit 1); exit 1; }; }
6546    fi
6547  
6548 < echo "$as_me:5189: checking if MKL is wanted" >&5
6548 >
6549 >
6550 >
6551 >
6552 > echo "$as_me:$LINENO: checking if MKL is wanted" >&5
6553   echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6
6554  
6555   # Check whether --with-mkl or --without-mkl was given.
6556   if test "${with_mkl+set}" = set; then
6557    withval="$with_mkl"
6558 <     echo "$as_me:5195: result: yes" >&5
6558 >     echo "$as_me:$LINENO: result: yes" >&5
6559   echo "${ECHO_T}yes" >&6
6560      for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do
6561          mkldir="$dir"
# Line 5202 | Line 6565 | echo "${ECHO_T}yes" >&6
6565          fi
6566      done
6567      if test x_$found_mkl != x_yes; then
6568 <        { { echo "$as_me:5205: error: Cannot find MKL includes" >&5
6568 >        { { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5
6569   echo "$as_me: error: Cannot find MKL includes" >&2;}
6570     { (exit 1); exit 1; }; }
6571      else
6572          printf "MKL includes found in $mkldir/include\n";
6573      fi
6574  
6575 +
6576 +
6577    ac_ext=c
6578   ac_cpp='$CPP $CPPFLAGS'
6579   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5219 | Line 6584 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6584    CPPFLAGS="${CPPFLAGS} -I${mkldir}/include"
6585    ac_save_LDFLAGS=$LDFLAGS
6586    LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide"
6587 <  echo "$as_me:5222: checking for mkl.h" >&5
6587 >  if test "${ac_cv_header_mkl_h+set}" = set; then
6588 >  echo "$as_me:$LINENO: checking for mkl.h" >&5
6589   echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
6590   if test "${ac_cv_header_mkl_h+set}" = set; then
6591    echo $ECHO_N "(cached) $ECHO_C" >&6
6592 + fi
6593 + echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
6594 + echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
6595   else
6596 <  cat >conftest.$ac_ext <<_ACEOF
6597 < #line 5228 "configure"
6598 < #include "confdefs.h"
6596 >  # Is the header compilable?
6597 > echo "$as_me:$LINENO: checking mkl.h usability" >&5
6598 > echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
6599 > cat >conftest.$ac_ext <<_ACEOF
6600 > #line $LINENO "configure"
6601 > /* confdefs.h.  */
6602 > _ACEOF
6603 > cat confdefs.h >>conftest.$ac_ext
6604 > cat >>conftest.$ac_ext <<_ACEOF
6605 > /* end confdefs.h.  */
6606 > $ac_includes_default
6607   #include <mkl.h>
6608   _ACEOF
6609 < if { (eval echo "$as_me:5232: \"$ac_cpp conftest.$ac_ext\"") >&5
6609 > rm -f conftest.$ac_objext
6610 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6611 >  (eval $ac_compile) 2>&5
6612 >  ac_status=$?
6613 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 >  (exit $ac_status); } &&
6615 >         { ac_try='test -s conftest.$ac_objext'
6616 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 >  (eval $ac_try) 2>&5
6618 >  ac_status=$?
6619 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 >  (exit $ac_status); }; }; then
6621 >  ac_header_compiler=yes
6622 > else
6623 >  echo "$as_me: failed program was:" >&5
6624 > sed 's/^/| /' conftest.$ac_ext >&5
6625 >
6626 > ac_header_compiler=no
6627 > fi
6628 > rm -f conftest.$ac_objext conftest.$ac_ext
6629 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6630 > echo "${ECHO_T}$ac_header_compiler" >&6
6631 >
6632 > # Is the header present?
6633 > echo "$as_me:$LINENO: checking mkl.h presence" >&5
6634 > echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
6635 > cat >conftest.$ac_ext <<_ACEOF
6636 > #line $LINENO "configure"
6637 > /* confdefs.h.  */
6638 > _ACEOF
6639 > cat confdefs.h >>conftest.$ac_ext
6640 > cat >>conftest.$ac_ext <<_ACEOF
6641 > /* end confdefs.h.  */
6642 > #include <mkl.h>
6643 > _ACEOF
6644 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6645    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6646    ac_status=$?
6647 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6647 >  grep -v '^ *+' conftest.er1 >conftest.err
6648    rm -f conftest.er1
6649    cat conftest.err >&5
6650 <  echo "$as_me:5238: \$? = $ac_status" >&5
6650 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651    (exit $ac_status); } >/dev/null; then
6652    if test -s conftest.err; then
6653      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 5246 | Line 6658 | if test -z "$ac_cpp_err"; then
6658    ac_cpp_err=yes
6659   fi
6660   if test -z "$ac_cpp_err"; then
6661 <  ac_cv_header_mkl_h=yes
6661 >  ac_header_preproc=yes
6662   else
6663    echo "$as_me: failed program was:" >&5
6664 <  cat conftest.$ac_ext >&5
6665 <  ac_cv_header_mkl_h=no
6664 > sed 's/^/| /' conftest.$ac_ext >&5
6665 >
6666 >  ac_header_preproc=no
6667   fi
6668   rm -f conftest.err conftest.$ac_ext
6669 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6670 + echo "${ECHO_T}$ac_header_preproc" >&6
6671 +
6672 + # So?  What about this header?
6673 + case $ac_header_compiler:$ac_header_preproc in
6674 +  yes:no )
6675 +    { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6676 + echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6677 +    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
6678 + echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
6679 +    (
6680 +      cat <<\_ASBOX
6681 + ## ------------------------------------ ##
6682 + ## Report this to bug-autoconf@gnu.org. ##
6683 + ## ------------------------------------ ##
6684 + _ASBOX
6685 +    ) |
6686 +      sed "s/^/$as_me: WARNING:     /" >&2
6687 +    ;;
6688 +  no:yes )
6689 +    { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
6690 + echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
6691 +    { echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5
6692 + echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;}
6693 +    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
6694 + echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
6695 +    (
6696 +      cat <<\_ASBOX
6697 + ## ------------------------------------ ##
6698 + ## Report this to bug-autoconf@gnu.org. ##
6699 + ## ------------------------------------ ##
6700 + _ASBOX
6701 +    ) |
6702 +      sed "s/^/$as_me: WARNING:     /" >&2
6703 +    ;;
6704 + esac
6705 + echo "$as_me:$LINENO: checking for mkl.h" >&5
6706 + echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
6707 + if test "${ac_cv_header_mkl_h+set}" = set; then
6708 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6709 + else
6710 +  ac_cv_header_mkl_h=$ac_header_preproc
6711   fi
6712 < echo "$as_me:5257: result: $ac_cv_header_mkl_h" >&5
6712 > echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
6713   echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
6714 +
6715 + fi
6716   if test $ac_cv_header_mkl_h = yes; then
6717  
6718 <    echo "$as_me:5261: checking for vslNewStream in -lmkl" >&5
6718 >    echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5
6719   echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6
6720   if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then
6721    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5266 | Line 6723 | cat >conftest.$ac_ext <<_ACEOF
6723    ac_check_lib_save_LIBS=$LIBS
6724   LIBS="-lmkl  $LIBS"
6725   cat >conftest.$ac_ext <<_ACEOF
6726 < #line 5269 "configure"
6727 < #include "confdefs.h"
6726 > #line $LINENO "configure"
6727 > /* confdefs.h.  */
6728 > _ACEOF
6729 > cat confdefs.h >>conftest.$ac_ext
6730 > cat >>conftest.$ac_ext <<_ACEOF
6731 > /* end confdefs.h.  */
6732  
6733   /* Override any gcc2 internal prototype to avoid an error.  */
6734   #ifdef __cplusplus
# Line 5285 | Line 6746 | if { (eval echo "$as_me:5288: \"$ac_link\"") >&5
6746   }
6747   _ACEOF
6748   rm -f conftest.$ac_objext conftest$ac_exeext
6749 < if { (eval echo "$as_me:5288: \"$ac_link\"") >&5
6749 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750    (eval $ac_link) 2>&5
6751    ac_status=$?
6752 <  echo "$as_me:5291: \$? = $ac_status" >&5
6752 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753    (exit $ac_status); } &&
6754           { ac_try='test -s conftest$ac_exeext'
6755 <  { (eval echo "$as_me:5294: \"$ac_try\"") >&5
6755 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756    (eval $ac_try) 2>&5
6757    ac_status=$?
6758 <  echo "$as_me:5297: \$? = $ac_status" >&5
6758 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759    (exit $ac_status); }; }; then
6760    ac_cv_lib_mkl_vslNewStream=yes
6761   else
6762    echo "$as_me: failed program was:" >&5
6763 < cat conftest.$ac_ext >&5
6763 > sed 's/^/| /' conftest.$ac_ext >&5
6764 >
6765   ac_cv_lib_mkl_vslNewStream=no
6766   fi
6767   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6768   LIBS=$ac_check_lib_save_LIBS
6769   fi
6770 < echo "$as_me:5308: result: $ac_cv_lib_mkl_vslNewStream" >&5
6770 > echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
6771   echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6
6772   if test $ac_cv_lib_mkl_vslNewStream = yes; then
6773    MKL_LIBDIR="${mkldir}/lib/32",
# Line 5313 | Line 6775 | else
6775                       HAVE_MKL="yes"
6776   fi
6777  
6778 +
6779   else
6780    MKL_INC="-I${mkldir}/include"
6781   fi
6782  
6783 +
6784    CPPFLAGS=$ac_save_CPPFLAGS
6785    LDFLAGS=$ac_save_LDFLAGS
6786    ac_ext=f90
# Line 5324 | Line 6788 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6788   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6790  
6791 +
6792    if test x_$HAVE_MKL != x_yes; then
6793 <        { { echo "$as_me:5328: error: Can't build with MKL" >&5
6793 >        { { echo "$as_me:$LINENO: error: Can't build with MKL" >&5
6794   echo "$as_me: error: Can't build with MKL" >&2;}
6795     { (exit 1); exit 1; }; }
6796    fi
6797  
6798 +
6799 +
6800 +
6801 +
6802   else
6803  
6804 <    echo "$as_me:5335: result: no" >&5
6804 >    echo "$as_me:$LINENO: result: no" >&5
6805   echo "${ECHO_T}no" >&6
6806  
6807   fi;
6808  
6809 < #AC_CHECK_MPI_F90MOD
6809 >
6810 >
6811 >
6812 >
6813 > # Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given.
6814 > if test "${with_mpi_f90_mods+set}" = set; then
6815 >  withval="$with_mpi_f90_mods"
6816 >  mpi_f90_mods="$withval"
6817 > else
6818 >  mpi_f90_mods="/usr/local/include/f90choice"
6819 > fi;
6820 >
6821 >  echo "$as_me:$LINENO: checking for MPI F90 modules" >&5
6822 > echo $ECHO_N "checking for MPI F90 modules... $ECHO_C" >&6
6823 >
6824 >
6825 >  ac_ext=f90
6826 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6827 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6828 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6829 >
6830 >  ac_save_F90FLAGS=$F90FLAGS
6831 >
6832 >  if test "$mpi_f90_mods"; then
6833 >  F90FLAGS="${F90FLAGS} ${MODDIRFLAG}${mpi_f90_mods}"
6834 > fi
6835 >
6836 >    cat >conftest.$ac_ext <<_ACEOF
6837 >
6838 >
6839 > program main
6840 >
6841 > use mpi
6842 > integer :: ierr
6843 > call MPI_Init(ierr)
6844 >
6845 >
6846 > end program main
6847 >
6848 > _ACEOF
6849 > rm -f conftest.$ac_objext
6850 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6851 >  (eval $ac_compile) 2>&5
6852 >  ac_status=$?
6853 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 >  (exit $ac_status); } &&
6855 >         { ac_try='test -s conftest.$ac_objext'
6856 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857 >  (eval $ac_try) 2>&5
6858 >  ac_status=$?
6859 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 >  (exit $ac_status); }; }; then
6861 >  HAVE_MPI_MOD=1
6862 > else
6863 >  echo "$as_me: failed program was:" >&5
6864 > sed 's/^/| /' conftest.$ac_ext >&5
6865 >
6866 > HAVE_MPI_MOD=0
6867 > fi
6868 > rm -f conftest.$ac_objext conftest.$ac_ext
6869 >
6870 >  F90FLAGS=$ac_save_F90FLAGS
6871 >  ac_ext=f90
6872 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6873 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6875 >
6876 >
6877 >  if test "$HAVE_MPI_MOD" = 1; then
6878 >    echo "$as_me:$LINENO: result: yes" >&5
6879 > echo "${ECHO_T}yes" >&6
6880 >
6881 > cat >>confdefs.h <<\_ACEOF
6882 > #define MPI_MOD 1
6883 > _ACEOF
6884 >
6885 >    MPI_F90_MODS="${mpi_f90_mods}"
6886 >
6887 >    # The library name:
6888 >    if test -z "$MPI_LIB" ; then
6889 >       MPI_LIBNAME=-lmpich
6890 >    else
6891 >       MPI_LIBNAME="$MPI_LIB"
6892 >    fi
6893 >    if test -z "$MPIMODLIBNAME" ; then
6894 >       MPIMODLIBNAME="${MPI_LIBNAME}f90"
6895 >    fi
6896 >
6897 >  else
6898 >    echo "$as_me:$LINENO: result: no" >&5
6899 > echo "${ECHO_T}no" >&6
6900 >    { { echo "$as_me:$LINENO: error: Couldn't locate MPI F90 Modules" >&5
6901 > echo "$as_me: error: Couldn't locate MPI F90 Modules" >&2;}
6902 >   { (exit 1); exit 1; }; }
6903 >  fi
6904  
6905 +
6906 +
6907 +
6908 +
6909   OBJEXT=".$OBJEXT"
6910  
6911   OOPSE=oopse
# Line 5362 | Line 6929 | SUBDIRS="libBASS libmdtools src forceFields samples ut
6929  
6930   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
6931  
6932 < SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder"
6932 > SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps"
6933  
6934 < #CFLAGS=${CFLAGS-""}
6935 < #CXXFLAGS=${CXXFLAGS-""}
6936 < #CPPFLAGS=${CPPFLAGS-""}
6937 < #FFLAGS=${FFLAGS-""}
6938 < #LDFLAGS=${LDFLAGS-""}
6939 < #OPTIMIZE=${OPTIMIZE-"-O"}
6940 < #DEBUG=${DEBUG-"-g"}
6934 > CFLAGS=${CFLAGS-""}
6935 > CXXFLAGS=${CXXFLAGS-""}
6936 > CPPFLAGS=${CPPFLAGS-""}
6937 > FFLAGS=${FFLAGS-""}
6938 > F90FLAGS=${F90FLAGS-""}
6939 > LDFLAGS=${LDFLAGS-""}
6940 > DEBUG=${DEBUG-"-g"}
6941  
6942   case $debug in
6943 <  true)
5377 <     CFLAGS="$DEBUG $CFLAGS"
5378 <     CXXFLAGS="$DEBUG $CXXFLAGS"
6943 >  1)
6944       FFLAGS="$DEBUG $FFLAGS"
6945       F90FLAGS="$DEBUG $F90FLAGS"
6946       ;;
6947    *)
5383     CFLAGS="$OPTIMIZE $CFLAGS"
5384     CXXFLAGS="$OPTIMIZE $CXXFLAGS"
5385     FFLAGS="$OPTIMIZE $FFLAGS"
5386     F90FLAGS="$OPTIMIZE $F90FLAGS"
6948       ;;
6949   esac
6950  
5390 ac_config_headers="$ac_config_headers libmdtools/config.h"
6951  
5392 ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile"
6952  
6953 +
6954 +
6955 +
6956 +
6957 +
6958 +
6959 +
6960 +
6961 +
6962 +
6963 +
6964 +
6965 +
6966 +
6967 +          ac_config_headers="$ac_config_headers libmdtools/config.h"
6968 +
6969 +                                                                                                                                                      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"
6970 +
6971 +
6972   cat >confcache <<\_ACEOF
6973   # This file is a shell script that caches the results of configure
6974   # tests run on this system so they can be shared between configure
# Line 5401 | Line 6979 | cat >confcache <<\_ACEOF
6979   # config.status only pays attention to the cache file if you give it
6980   # the --recheck option to rerun configure.
6981   #
6982 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
6982 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
6983   # loading this file, other *unset* `ac_cv_foo' will be assigned the
6984   # following values.
6985  
# Line 5420 | Line 6998 | _ACEOF
6998        # substitution turns \\\\ into \\, and sed turns \\ into \).
6999        sed -n \
7000          "s/'/'\\\\''/g;
7001 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7001 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7002        ;;
7003      *)
7004        # `set' quotes correctly as required by POSIX, so do not add quotes.
7005        sed -n \
7006 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7006 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7007        ;;
7008      esac;
7009   } |
# Line 5436 | Line 7014 | if cmp -s $cache_file confcache; then :; else
7014       t end
7015       /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7016       : end' >>confcache
7017 < if cmp -s $cache_file confcache; then :; else
7017 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
7018    if test -w $cache_file; then
7019      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7020      cat confcache >$cache_file
# Line 5467 | Line 7045 | DEFS=-DHAVE_CONFIG_H
7045  
7046   DEFS=-DHAVE_CONFIG_H
7047  
7048 + ac_libobjs=
7049 + ac_ltlibobjs=
7050 + for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7051 +  # 1. Remove the extension, and $U if already installed.
7052 +  ac_i=`echo "$ac_i" |
7053 +         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7054 +  # 2. Add them.
7055 +  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7056 +  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7057 + done
7058 + LIBOBJS=$ac_libobjs
7059 +
7060 + LTLIBOBJS=$ac_ltlibobjs
7061 +
7062 +
7063 +
7064   : ${CONFIG_STATUS=./config.status}
7065   ac_clean_files_save=$ac_clean_files
7066   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7067 < { echo "$as_me:5473: creating $CONFIG_STATUS" >&5
7067 > { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7068   echo "$as_me: creating $CONFIG_STATUS" >&6;}
7069   cat >$CONFIG_STATUS <<_ACEOF
7070   #! $SHELL
7071 < # Generated automatically by configure.
7071 > # Generated by $as_me.
7072   # Run this file to recreate the current configuration.
7073   # Compiler output produced by configure, useful for debugging
7074   # configure, is in config.log if it exists.
7075  
7076   debug=false
7077 + ac_cs_recheck=false
7078 + ac_cs_silent=false
7079   SHELL=\${CONFIG_SHELL-$SHELL}
5484 ac_cs_invocation="\$0 \$@"
5485
7080   _ACEOF
7081  
7082   cat >>$CONFIG_STATUS <<\_ACEOF
7083 + ## --------------------- ##
7084 + ## M4sh Initialization.  ##
7085 + ## --------------------- ##
7086 +
7087   # Be Bourne compatible
7088   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7089    emulate sh
7090    NULLCMD=:
7091 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7092 +  # is contrary to our usage.  Disable this feature.
7093 +  alias -g '${1+"$@"}'='"$@"'
7094   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7095    set -o posix
7096   fi
7097  
7098 < # Name of the executable.
7099 < as_me=`echo "$0" |sed 's,.*[\\/],,'`
7098 > # Support unset when possible.
7099 > if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7100 >  as_unset=unset
7101 > else
7102 >  as_unset=false
7103 > fi
7104  
7105 +
7106 + # Work around bugs in pre-3.0 UWIN ksh.
7107 + $as_unset ENV MAIL MAILPATH
7108 + PS1='$ '
7109 + PS2='> '
7110 + PS4='+ '
7111 +
7112 + # NLS nuisances.
7113 + for as_var in \
7114 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7115 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7116 +  LC_TELEPHONE LC_TIME
7117 + do
7118 +  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7119 +    eval $as_var=C; export $as_var
7120 +  else
7121 +    $as_unset $as_var
7122 +  fi
7123 + done
7124 +
7125 + # Required to use basename.
7126 + if expr a : '\(a\)' >/dev/null 2>&1; then
7127 +  as_expr=expr
7128 + else
7129 +  as_expr=false
7130 + fi
7131 +
7132 + if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7133 +  as_basename=basename
7134 + else
7135 +  as_basename=false
7136 + fi
7137 +
7138 +
7139 + # Name of the executable.
7140 + as_me=`$as_basename "$0" ||
7141 + $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7142 +         X"$0" : 'X\(//\)$' \| \
7143 +         X"$0" : 'X\(/\)$' \| \
7144 +         .     : '\(.\)' 2>/dev/null ||
7145 + echo X/"$0" |
7146 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7147 +          /^X\/\(\/\/\)$/{ s//\1/; q; }
7148 +          /^X\/\(\/\).*/{ s//\1/; q; }
7149 +          s/.*/./; q'`
7150 +
7151 +
7152 + # PATH needs CR, and LINENO needs CR and PATH.
7153 + # Avoid depending upon Character Ranges.
7154 + as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7155 + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7156 + as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7157 + as_cr_digits='0123456789'
7158 + as_cr_alnum=$as_cr_Letters$as_cr_digits
7159 +
7160 + # The user is always right.
7161 + if test "${PATH_SEPARATOR+set}" != set; then
7162 +  echo "#! /bin/sh" >conf$$.sh
7163 +  echo  "exit 0"   >>conf$$.sh
7164 +  chmod +x conf$$.sh
7165 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7166 +    PATH_SEPARATOR=';'
7167 +  else
7168 +    PATH_SEPARATOR=:
7169 +  fi
7170 +  rm -f conf$$.sh
7171 + fi
7172 +
7173 +
7174 +  as_lineno_1=$LINENO
7175 +  as_lineno_2=$LINENO
7176 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7177 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
7178 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7179 +  # Find who we are.  Look in the path if we contain no path at all
7180 +  # relative or not.
7181 +  case $0 in
7182 +    *[\\/]* ) as_myself=$0 ;;
7183 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 + for as_dir in $PATH
7185 + do
7186 +  IFS=$as_save_IFS
7187 +  test -z "$as_dir" && as_dir=.
7188 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7189 + done
7190 +
7191 +       ;;
7192 +  esac
7193 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
7194 +  # in which case we are not to be found in the path.
7195 +  if test "x$as_myself" = x; then
7196 +    as_myself=$0
7197 +  fi
7198 +  if test ! -f "$as_myself"; then
7199 +    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7200 + echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7201 +   { (exit 1); exit 1; }; }
7202 +  fi
7203 +  case $CONFIG_SHELL in
7204 +  '')
7205 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 + for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7207 + do
7208 +  IFS=$as_save_IFS
7209 +  test -z "$as_dir" && as_dir=.
7210 +  for as_base in sh bash ksh sh5; do
7211 +         case $as_dir in
7212 +         /*)
7213 +           if ("$as_dir/$as_base" -c '
7214 +  as_lineno_1=$LINENO
7215 +  as_lineno_2=$LINENO
7216 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7217 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
7218 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7219 +             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7220 +             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7221 +             CONFIG_SHELL=$as_dir/$as_base
7222 +             export CONFIG_SHELL
7223 +             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7224 +           fi;;
7225 +         esac
7226 +       done
7227 + done
7228 + ;;
7229 +  esac
7230 +
7231 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7232 +  # uniformly replaced by the line number.  The first 'sed' inserts a
7233 +  # line-number line before each line; the second 'sed' does the real
7234 +  # work.  The second script uses 'N' to pair each line-number line
7235 +  # with the numbered line, and appends trailing '-' during
7236 +  # substitution so that $LINENO is not a special case at line end.
7237 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7238 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7239 +  sed '=' <$as_myself |
7240 +    sed '
7241 +      N
7242 +      s,$,-,
7243 +      : loop
7244 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7245 +      t loop
7246 +      s,-$,,
7247 +      s,^['$as_cr_digits']*\n,,
7248 +    ' >$as_me.lineno &&
7249 +  chmod +x $as_me.lineno ||
7250 +    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7251 + echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7252 +   { (exit 1); exit 1; }; }
7253 +
7254 +  # Don't try to exec as it changes $[0], causing all sort of problems
7255 +  # (the dirname of $[0] is not the place where we might find the
7256 +  # original and so on.  Autoconf is especially sensible to this).
7257 +  . ./$as_me.lineno
7258 +  # Exit status is that of the last command.
7259 +  exit
7260 + }
7261 +
7262 +
7263 + case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7264 +  *c*,-n*) ECHO_N= ECHO_C='
7265 + ' ECHO_T='      ' ;;
7266 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7267 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7268 + esac
7269 +
7270   if expr a : '\(a\)' >/dev/null 2>&1; then
7271    as_expr=expr
7272   else
# Line 5521 | Line 7291 | as_executable_p="test -f"
7291   fi
7292   rm -f conf$$ conf$$.exe conf$$.file
7293  
7294 < as_executable_p="test -f"
7295 <
5526 < # Support unset when possible.
5527 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5528 <  as_unset=unset
7294 > if mkdir -p . 2>/dev/null; then
7295 >  as_mkdir_p=:
7296   else
7297 <  as_unset=false
7297 >  as_mkdir_p=false
7298   fi
7299  
7300 < # NLS nuisances.
5534 < $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5535 < $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5536 < $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5537 < $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5538 < $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5539 < $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5540 < $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5541 < $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7300 > as_executable_p="test -f"
7301  
7302 + # Sed expression to map a string onto a valid CPP name.
7303 + as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7304 +
7305 + # Sed expression to map a string onto a valid variable name.
7306 + as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7307 +
7308 +
7309   # IFS
7310   # We need space, tab and new line, in precisely that order.
7311   as_nl='
# Line 5547 | Line 7313 | $as_unset CDPATH || test "${CDPATH+set}" != set || { C
7313   IFS="   $as_nl"
7314  
7315   # CDPATH.
7316 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7316 > $as_unset CDPATH
7317  
7318   exec 6>&1
7319  
7320 + # Open the log real soon, to keep \$[0] and so on meaningful, and to
7321 + # report actual input values of CONFIG_FILES etc. instead of their
7322 + # values after options handling.  Logging --version etc. is OK.
7323 + exec 5>>config.log
7324 + {
7325 +  echo
7326 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7327 + ## Running $as_me. ##
7328 + _ASBOX
7329 + } >&5
7330 + cat >&5 <<_CSEOF
7331 +
7332 + This file was extended by OOPSE $as_me 1.0, which was
7333 + generated by GNU Autoconf 2.57.  Invocation command line was
7334 +
7335 +  CONFIG_FILES    = $CONFIG_FILES
7336 +  CONFIG_HEADERS  = $CONFIG_HEADERS
7337 +  CONFIG_LINKS    = $CONFIG_LINKS
7338 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
7339 +  $ $0 $@
7340 +
7341 + _CSEOF
7342 + echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7343 + echo >&5
7344   _ACEOF
7345  
7346   # Files that config.status was made for.
# Line 5570 | Line 7360 | cat >>$CONFIG_STATUS <<\EOF
7360    echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7361   fi
7362  
7363 < cat >>$CONFIG_STATUS <<\EOF
7363 > cat >>$CONFIG_STATUS <<\_ACEOF
7364  
7365   ac_cs_usage="\
7366   \`$as_me' instantiates files from templates according to the
# Line 5580 | Line 7370 | Usage: $0 [OPTIONS] [FILE]...
7370  
7371    -h, --help       print this help, then exit
7372    -V, --version    print version number, then exit
7373 +  -q, --quiet      do not print progress messages
7374    -d, --debug      don't remove temporary files
7375        --recheck    update $as_me by reconfiguring in the same conditions
7376    --file=FILE[:TEMPLATE]
# Line 5594 | Line 7385 | EOF
7385   $config_headers
7386  
7387   Report bugs to <bug-autoconf@gnu.org>."
7388 < EOF
7388 > _ACEOF
7389  
7390 < cat >>$CONFIG_STATUS <<EOF
7390 > cat >>$CONFIG_STATUS <<_ACEOF
7391   ac_cs_version="\\
7392   OOPSE config.status 1.0
7393 < configured by $0, generated by GNU Autoconf 2.50,
7393 > configured by $0, generated by GNU Autoconf 2.57,
7394    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7395  
7396   Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
# Line 5608 | Line 7399 | EOF
7399   gives unlimited permission to copy, distribute and modify it."
7400   srcdir=$srcdir
7401   INSTALL="$INSTALL"
7402 < EOF
7402 > _ACEOF
7403  
7404 < cat >>$CONFIG_STATUS <<\EOF
7404 > cat >>$CONFIG_STATUS <<\_ACEOF
7405   # If no file are specified by the user, then we need to provide default
7406   # value.  By we need to know if files were specified by the user.
7407   ac_need_defaults=:
# Line 5620 | Line 7411 | do
7411    --*=*)
7412      ac_option=`expr "x$1" : 'x\([^=]*\)='`
7413      ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7414 <    shift
5624 <    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5625 <    shift
7414 >    ac_shift=:
7415      ;;
7416 <  -*);;
7416 >  -*)
7417 >    ac_option=$1
7418 >    ac_optarg=$2
7419 >    ac_shift=shift
7420 >    ;;
7421    *) # This is not an option, so the user has probably given explicit
7422       # arguments.
7423 +     ac_option=$1
7424       ac_need_defaults=false;;
7425    esac
7426  
7427 <  case $1 in
7427 >  case $ac_option in
7428    # Handling of the options.
7429 < EOF
7430 < cat >>$CONFIG_STATUS <<EOF
7429 > _ACEOF
7430 > cat >>$CONFIG_STATUS <<\_ACEOF
7431    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7432 <    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5639 <    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5640 < EOF
5641 < cat >>$CONFIG_STATUS <<\EOF
7432 >    ac_cs_recheck=: ;;
7433    --version | --vers* | -V )
7434      echo "$ac_cs_version"; exit 0 ;;
7435    --he | --h)
7436      # Conflict between --help and --header
7437 <    { { echo "$as_me:5646: error: ambiguous option: $1
7437 >    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7438   Try \`$0 --help' for more information." >&5
7439   echo "$as_me: error: ambiguous option: $1
7440   Try \`$0 --help' for more information." >&2;}
# Line 5653 | Line 7444 | Try \`$0 --help' for more information." >&2;}
7444    --debug | --d* | -d )
7445      debug=: ;;
7446    --file | --fil | --fi | --f )
7447 <    shift
7448 <    CONFIG_FILES="$CONFIG_FILES $1"
7447 >    $ac_shift
7448 >    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7449      ac_need_defaults=false;;
7450    --header | --heade | --head | --hea )
7451 <    shift
7452 <    CONFIG_HEADERS="$CONFIG_HEADERS $1"
7451 >    $ac_shift
7452 >    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7453      ac_need_defaults=false;;
7454 <
7455 <  # Handling of arguments.
7456 <  'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5666 <  'libBASS/Makefile' ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;;
5667 <  'libmdtools/Makefile' ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;;
5668 <  'src/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5669 <  'utils/Makefile' ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
5670 <  'utils/sysbuilder/Makefile' ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
5671 <  'forceFields/Makefile' ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
5672 <  'samples/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
5673 <  'samples/alkane/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
5674 <  'samples/argon/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
5675 <  'samples/beadLipid/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
5676 <  'samples/lipid/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
5677 <  'samples/metals/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
5678 <  'samples/water/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
5679 <  'libmdtools/config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
7454 >  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7455 >  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7456 >    ac_cs_silent=: ;;
7457  
7458    # This is an error.
7459 <  -*) { { echo "$as_me:5682: error: unrecognized option: $1
7459 >  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7460   Try \`$0 --help' for more information." >&5
7461   echo "$as_me: error: unrecognized option: $1
7462   Try \`$0 --help' for more information." >&2;}
7463     { (exit 1); exit 1; }; } ;;
7464 <  *) { { echo "$as_me:5687: error: invalid argument: $1" >&5
7465 < echo "$as_me: error: invalid argument: $1" >&2;}
7466 <   { (exit 1); exit 1; }; };;
7464 >
7465 >  *) ac_config_targets="$ac_config_targets $1" ;;
7466 >
7467    esac
7468    shift
7469   done
7470  
7471 < exec 5>>config.log
5695 < cat >&5 << _ACEOF
7471 > ac_configure_extra_args=
7472  
7473 < ## ----------------------- ##
7474 < ## Running config.status.  ##
7475 < ## ----------------------- ##
7473 > if $ac_cs_silent; then
7474 >  exec 6>/dev/null
7475 >  ac_configure_extra_args="$ac_configure_extra_args --silent"
7476 > fi
7477  
7478 < This file was extended by $as_me (OOPSE 1.0) 2.50, executed with
7479 <  > $ac_cs_invocation
7480 < on `(hostname || uname -n) 2>/dev/null | sed 1q`
7478 > _ACEOF
7479 > cat >>$CONFIG_STATUS <<_ACEOF
7480 > if \$ac_cs_recheck; then
7481 >  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7482 >  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7483 > fi
7484  
7485   _ACEOF
5706 EOF
7486  
7487 < cat >>$CONFIG_STATUS <<\EOF
7487 >
7488 >
7489 >
7490 >
7491 > cat >>$CONFIG_STATUS <<\_ACEOF
7492 > for ac_config_target in $ac_config_targets
7493 > do
7494 >  case "$ac_config_target" in
7495 >  # Handling of arguments.
7496 >  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7497 >  "libBASS/Makefile" ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;;
7498 >  "libmdtools/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;;
7499 >  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7500 >  "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
7501 >  "utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
7502 >  "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7503 >  "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7504 >  "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7505 >  "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7506 >  "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7507 >  "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
7508 >  "samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
7509 >  "samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
7510 >  "samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
7511 >  "libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
7512 >  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7513 > echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7514 >   { (exit 1); exit 1; }; };;
7515 >  esac
7516 > done
7517 >
7518   # If the user did not use the arguments to specify the items to instantiate,
7519   # then the envvar interface is used.  Set only those that are not.
7520   # We use the long form for the default assignment because of an extremely
# Line 5715 | Line 7524 | fi
7524    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7525   fi
7526  
7527 + # Have a temporary directory for convenience.  Make it in the build tree
7528 + # simply because there is no reason to put it here, and in addition,
7529 + # creating and moving files from /tmp can sometimes cause problems.
7530   # Create a temporary directory, and hook for its removal unless debugging.
7531   $debug ||
7532   {
7533    trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7534 <  trap '{ (exit $?); exit $?; }' 1 2 13 15
7534 >  trap '{ (exit 1); exit 1; }' 1 2 13 15
7535   }
7536  
7537   # Create a (secure) tmp directory for tmp files.
7538 < : ${TMPDIR=/tmp}
7538 >
7539   {
7540 <  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7540 >  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7541    test -n "$tmp" && test -d "$tmp"
7542   }  ||
7543   {
7544 <  tmp=$TMPDIR/cs$$-$RANDOM
7544 >  tmp=./confstat$$-$RANDOM
7545    (umask 077 && mkdir $tmp)
7546   } ||
7547   {
7548 <   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7548 >   echo "$me: cannot create a temporary directory in ." >&2
7549     { (exit 1); exit 1; }
7550   }
7551  
7552 < EOF
7552 > _ACEOF
7553  
7554 < cat >>$CONFIG_STATUS <<EOF
7554 > cat >>$CONFIG_STATUS <<_ACEOF
7555  
7556   #
7557   # CONFIG_FILES section.
# Line 5752 | Line 7564 | s,@exec_prefix@,$exec_prefix,;t t
7564    sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7565     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7566   s,@SHELL@,$SHELL,;t t
7567 + s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7568 + s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7569 + s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7570 + s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7571 + s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7572 + s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7573   s,@exec_prefix@,$exec_prefix,;t t
7574   s,@prefix@,$prefix,;t t
7575   s,@program_transform_name@,$program_transform_name,;t t
# Line 5767 | Line 7585 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7585   s,@oldincludedir@,$oldincludedir,;t t
7586   s,@infodir@,$infodir,;t t
7587   s,@mandir@,$mandir,;t t
7588 < s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7589 < s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7590 < s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7591 < s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5774 < s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7588 > s,@build_alias@,$build_alias,;t t
7589 > s,@host_alias@,$host_alias,;t t
7590 > s,@target_alias@,$target_alias,;t t
7591 > s,@DEFS@,$DEFS,;t t
7592   s,@ECHO_C@,$ECHO_C,;t t
7593   s,@ECHO_N@,$ECHO_N,;t t
7594   s,@ECHO_T@,$ECHO_T,;t t
5778 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5779 s,@DEFS@,$DEFS,;t t
7595   s,@LIBS@,$LIBS,;t t
7596   s,@PROGNAME@,$PROGNAME,;t t
7597 < s,@DEBUG@,$DEBUG,;t t
7597 > s,@debug@,$debug,;t t
7598   s,@build@,$build,;t t
7599   s,@build_cpu@,$build_cpu,;t t
7600   s,@build_vendor@,$build_vendor,;t t
# Line 5818 | Line 7633 | s,@mpi_dir@,$mpi_dir,;t t
7633   s,@F90LIBS@,$F90LIBS,;t t
7634   s,@F90_FUNC@,$F90_FUNC,;t t
7635   s,@F90_FUNC_@,$F90_FUNC_,;t t
7636 + s,@MOD@,$MOD,;t t
7637 + s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
7638 + s,@MODDIRFLAG@,$MODDIRFLAG,;t t
7639 + s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
7640   s,@mpi_dir@,$mpi_dir,;t t
7641   s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
7642   s,@MPI_INC@,$MPI_INC,;t t
# Line 5826 | Line 7645 | s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
7645   s,@MPIF90@,$MPIF90,;t t
7646   s,@MPILIBS@,$MPILIBS,;t t
7647   s,@CPP@,$CPP,;t t
7648 + s,@EGREP@,$EGREP,;t t
7649   s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
7650   s,@SPRNG_LIB@,$SPRNG_LIB,;t t
7651   s,@SPRNG_INC@,$SPRNG_INC,;t t
# Line 5834 | Line 7654 | s,@BATEXT@,$BATEXT,;t t
7654   s,@MKL_LIB@,$MKL_LIB,;t t
7655   s,@MKL_INC@,$MKL_INC,;t t
7656   s,@HAVE_MKL@,$HAVE_MKL,;t t
7657 + s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
7658 + s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t
7659   s,@BATEXT@,$BATEXT,;t t
7660   s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7661   s,@OOPSE@,$OOPSE,;t t
7662   s,@OOPSE_HOME@,$OOPSE_HOME,;t t
7663   s,@SUBDIRS@,$SUBDIRS,;t t
7664   s,@FFLAGS@,$FFLAGS,;t t
7665 + s,@LIBOBJS@,$LIBOBJS,;t t
7666 + s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7667   CEOF
7668  
7669 < EOF
7669 > _ACEOF
7670  
7671 <  cat >>$CONFIG_STATUS <<\EOF
7671 >  cat >>$CONFIG_STATUS <<\_ACEOF
7672    # Split the substitutions into bite-sized pieces for seds with
7673    # small command number limits, like on Digital OSF/1 and HP-UX.
7674    ac_max_sed_lines=48
# Line 5883 | Line 7707 | EOF
7707    fi
7708   fi # test -n "$CONFIG_FILES"
7709  
7710 < EOF
7711 < cat >>$CONFIG_STATUS <<\EOF
7710 > _ACEOF
7711 > cat >>$CONFIG_STATUS <<\_ACEOF
7712   for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7713    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7714    case $ac_file in
# Line 5898 | Line 7722 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" =
7722    esac
7723  
7724    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7725 <  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7725 >  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7726 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7727           X"$ac_file" : 'X\(//\)[^/]' \| \
7728           X"$ac_file" : 'X\(//\)$' \| \
7729           X"$ac_file" : 'X\(/\)' \| \
# Line 5909 | Line 7734 | echo X"$ac_file" |
7734            /^X\(\/\/\)$/{ s//\1/; q; }
7735            /^X\(\/\).*/{ s//\1/; q; }
7736            s/.*/./; q'`
7737 <  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7738 <    { case "$ac_dir" in
5914 <  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5915 <  *)                      as_incr_dir=.;;
5916 < esac
5917 < as_dummy="$ac_dir"
5918 < for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5919 <  case $as_mkdir_dir in
5920 <    # Skip DOS drivespec
5921 <    ?:) as_incr_dir=$as_mkdir_dir ;;
5922 <    *)
5923 <      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5924 <      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5925 <    ;;
5926 <  esac
5927 < done; }
5928 <
5929 <    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5930 <    # A "../" for each directory in $ac_dir_suffix.
5931 <    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7737 >  { if $as_mkdir_p; then
7738 >    mkdir -p "$ac_dir"
7739    else
7740 <    ac_dir_suffix= ac_dots=
7741 <  fi
7740 >    as_dir="$ac_dir"
7741 >    as_dirs=
7742 >    while test ! -d "$as_dir"; do
7743 >      as_dirs="$as_dir $as_dirs"
7744 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7745 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7746 >         X"$as_dir" : 'X\(//\)[^/]' \| \
7747 >         X"$as_dir" : 'X\(//\)$' \| \
7748 >         X"$as_dir" : 'X\(/\)' \| \
7749 >         .     : '\(.\)' 2>/dev/null ||
7750 > echo X"$as_dir" |
7751 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7752 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7753 >          /^X\(\/\/\)$/{ s//\1/; q; }
7754 >          /^X\(\/\).*/{ s//\1/; q; }
7755 >          s/.*/./; q'`
7756 >    done
7757 >    test ! -n "$as_dirs" || mkdir $as_dirs
7758 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7759 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7760 >   { (exit 1); exit 1; }; }; }
7761  
7762 <  case $srcdir in
7763 <  .)  ac_srcdir=.
7764 <      if test -z "$ac_dots"; then
7765 <         ac_top_srcdir=.
7766 <      else
7767 <         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7768 <      fi ;;
7769 <  [\\/]* | ?:[\\/]* )
7770 <      ac_srcdir=$srcdir$ac_dir_suffix;
7771 <      ac_top_srcdir=$srcdir ;;
7762 >  ac_builddir=.
7763 >
7764 > if test "$ac_dir" != .; then
7765 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7766 >  # A "../" for each directory in $ac_dir_suffix.
7767 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7768 > else
7769 >  ac_dir_suffix= ac_top_builddir=
7770 > fi
7771 >
7772 > case $srcdir in
7773 >  .)  # No --srcdir option.  We are building in place.
7774 >    ac_srcdir=.
7775 >    if test -z "$ac_top_builddir"; then
7776 >       ac_top_srcdir=.
7777 >    else
7778 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7779 >    fi ;;
7780 >  [\\/]* | ?:[\\/]* )  # Absolute path.
7781 >    ac_srcdir=$srcdir$ac_dir_suffix;
7782 >    ac_top_srcdir=$srcdir ;;
7783    *) # Relative path.
7784 <    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7785 <    ac_top_srcdir=$ac_dots$srcdir ;;
7786 <  esac
7784 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7785 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7786 > esac
7787 > # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7788 > # absolute.
7789 > ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7790 > ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7791 > ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7792 > ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7793  
7794 +
7795    case $INSTALL in
7796    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7797 <  *) ac_INSTALL=$ac_dots$INSTALL ;;
7797 >  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7798    esac
7799  
7800    if test x"$ac_file" != x-; then
7801 <    { echo "$as_me:5957: creating $ac_file" >&5
7801 >    { echo "$as_me:$LINENO: creating $ac_file" >&5
7802   echo "$as_me: creating $ac_file" >&6;}
7803      rm -f "$ac_file"
7804    fi
7805    # Let's still pretend it is `configure' which instantiates (i.e., don't
7806    # use $as_me), people would be surprised to read:
7807 <  #    /* config.h.  Generated automatically by config.status.  */
7808 <  configure_input="Generated automatically from `echo $ac_file_in |
7809 <                                                 sed 's,.*/,,'` by configure."
7807 >  #    /* config.h.  Generated by config.status.  */
7808 >  if test x"$ac_file" = x-; then
7809 >    configure_input=
7810 >  else
7811 >    configure_input="$ac_file.  "
7812 >  fi
7813 >  configure_input=$configure_input"Generated from `echo $ac_file_in |
7814 >                                     sed 's,.*/,,'` by configure."
7815  
7816    # First look for the input files in the build tree, otherwise in the
7817    # src tree.
# Line 5972 | Line 7821 | echo "$as_me: creating $ac_file" >&6;}
7821        -) echo $tmp/stdin ;;
7822        [\\/$]*)
7823           # Absolute (can't be DOS-style, as IFS=:)
7824 <         test -f "$f" || { { echo "$as_me:5975: error: cannot find input file: $f" >&5
7824 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7825   echo "$as_me: error: cannot find input file: $f" >&2;}
7826     { (exit 1); exit 1; }; }
7827           echo $f;;
# Line 5985 | Line 7834 | echo "$as_me: error: cannot find input file: $f" >&2;}
7834             echo $srcdir/$f
7835           else
7836             # /dev/null tree
7837 <           { { echo "$as_me:5988: error: cannot find input file: $f" >&5
7837 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7838   echo "$as_me: error: cannot find input file: $f" >&2;}
7839     { (exit 1); exit 1; }; }
7840           fi;;
7841        esac
7842      done` || { (exit 1); exit 1; }
7843 < EOF
7844 < cat >>$CONFIG_STATUS <<EOF
7843 > _ACEOF
7844 > cat >>$CONFIG_STATUS <<_ACEOF
7845    sed "$ac_vpsub
7846   $extrasub
7847 < EOF
7848 < cat >>$CONFIG_STATUS <<\EOF
7847 > _ACEOF
7848 > cat >>$CONFIG_STATUS <<\_ACEOF
7849   :t
7850   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7851   s,@configure_input@,$configure_input,;t t
7852   s,@srcdir@,$ac_srcdir,;t t
7853 + s,@abs_srcdir@,$ac_abs_srcdir,;t t
7854   s,@top_srcdir@,$ac_top_srcdir,;t t
7855 + s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7856 + s,@builddir@,$ac_builddir,;t t
7857 + s,@abs_builddir@,$ac_abs_builddir,;t t
7858 + s,@top_builddir@,$ac_top_builddir,;t t
7859 + s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7860   s,@INSTALL@,$ac_INSTALL,;t t
7861   " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7862    rm -f $tmp/stdin
# Line 6013 | Line 7868 | EOF
7868    fi
7869  
7870   done
7871 < EOF
7872 < cat >>$CONFIG_STATUS <<\EOF
7871 > _ACEOF
7872 > cat >>$CONFIG_STATUS <<\_ACEOF
7873  
7874   #
7875   # CONFIG_HEADER section.
# Line 6046 | Line 7901 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file"
7901    * )   ac_file_in=$ac_file.in ;;
7902    esac
7903  
7904 <  test x"$ac_file" != x- && { echo "$as_me:6049: creating $ac_file" >&5
7904 >  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7905   echo "$as_me: creating $ac_file" >&6;}
7906  
7907    # First look for the input files in the build tree, otherwise in the
# Line 6057 | Line 7912 | echo "$as_me: creating $ac_file" >&6;}
7912        -) echo $tmp/stdin ;;
7913        [\\/$]*)
7914           # Absolute (can't be DOS-style, as IFS=:)
7915 <         test -f "$f" || { { echo "$as_me:6060: error: cannot find input file: $f" >&5
7915 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7916   echo "$as_me: error: cannot find input file: $f" >&2;}
7917     { (exit 1); exit 1; }; }
7918           echo $f;;
# Line 6070 | Line 7925 | echo "$as_me: error: cannot find input file: $f" >&2;}
7925             echo $srcdir/$f
7926           else
7927             # /dev/null tree
7928 <           { { echo "$as_me:6073: error: cannot find input file: $f" >&5
7928 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7929   echo "$as_me: error: cannot find input file: $f" >&2;}
7930     { (exit 1); exit 1; }; }
7931           fi;;
# Line 6079 | Line 7934 | EOF
7934    # Remove the trailing spaces.
7935    sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
7936  
7937 < EOF
7937 > _ACEOF
7938  
7939   # Transform confdefs.h into two sed scripts, `conftest.defines' and
7940   # `conftest.undefs', that substitutes the proper values into
# Line 6095 | Line 7950 | cat >confdef2sed.sed <<\EOF
7950   # `end' is used to avoid that the second main sed command (meant for
7951   # 0-ary CPP macros) applies to n-ary macro definitions.
7952   # See the Autoconf documentation for `clear'.
7953 < cat >confdef2sed.sed <<\EOF
7953 > cat >confdef2sed.sed <<\_ACEOF
7954   s/[\\&,]/\\&/g
7955   s,[\\$`],\\&,g
7956   t clear
7957   : clear
7958 < s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7958 > s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7959   t end
7960   s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7961   : end
7962 < EOF
7962 > _ACEOF
7963   # If some macros were called several times there might be several times
7964   # the same #defines, which is useless.  Nevertheless, we may not want to
7965   # sort them, since we want the *last* AC-DEFINE to be honored.
# Line 6115 | Line 7970 | cat >>conftest.undefs <<\EOF
7970   # This sed command replaces #undef with comments.  This is necessary, for
7971   # example, in the case of _POSIX_SOURCE, which is predefined and required
7972   # on some systems where configure will not decide to define it.
7973 < cat >>conftest.undefs <<\EOF
7973 > cat >>conftest.undefs <<\_ACEOF
7974   s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7975 < EOF
7975 > _ACEOF
7976  
7977   # Break up conftest.defines because some shells have a limit on the size
7978   # of here documents, and old seds have small limits too (100 cmds).
7979   echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7980 < echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7980 > echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7981   echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7982   echo '  :' >>$CONFIG_STATUS
7983   rm -f conftest.tail
# Line 6146 | Line 8001 | echo '  fi # egrep' >>$CONFIG_STATUS
8001    mv conftest.tail conftest.defines
8002   done
8003   rm -f conftest.defines
8004 < echo '  fi # egrep' >>$CONFIG_STATUS
8004 > echo '  fi # grep' >>$CONFIG_STATUS
8005   echo >>$CONFIG_STATUS
8006  
8007   # Break up conftest.undefs because some shells have a limit on the size
# Line 6174 | Line 8029 | cat >>$CONFIG_STATUS <<\EOF
8029   done
8030   rm -f conftest.undefs
8031  
8032 < cat >>$CONFIG_STATUS <<\EOF
8032 > cat >>$CONFIG_STATUS <<\_ACEOF
8033    # Let's still pretend it is `configure' which instantiates (i.e., don't
8034    # use $as_me), people would be surprised to read:
8035 <  #    /* config.h.  Generated automatically by config.status.  */
8035 >  #    /* config.h.  Generated by config.status.  */
8036    if test x"$ac_file" = x-; then
8037 <    echo "/* Generated automatically by configure.  */" >$tmp/config.h
8037 >    echo "/* Generated by configure.  */" >$tmp/config.h
8038    else
8039 <    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
8039 >    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8040    fi
8041    cat $tmp/in >>$tmp/config.h
8042    rm -f $tmp/in
8043    if test x"$ac_file" != x-; then
8044 <    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8045 <      { echo "$as_me:6190: $ac_file is unchanged" >&5
8044 >    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8045 >      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8046   echo "$as_me: $ac_file is unchanged" >&6;}
8047      else
8048 <      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8048 >      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8049 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8050           X"$ac_file" : 'X\(//\)[^/]' \| \
8051           X"$ac_file" : 'X\(//\)$' \| \
8052           X"$ac_file" : 'X\(/\)' \| \
# Line 6201 | Line 8057 | echo X"$ac_file" |
8057            /^X\(\/\/\)$/{ s//\1/; q; }
8058            /^X\(\/\).*/{ s//\1/; q; }
8059            s/.*/./; q'`
8060 <      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8061 <        { case "$ac_dir" in
8062 <  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8063 <  *)                      as_incr_dir=.;;
8064 < esac
8065 < as_dummy="$ac_dir"
8066 < for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8067 <  case $as_mkdir_dir in
8068 <    # Skip DOS drivespec
8069 <    ?:) as_incr_dir=$as_mkdir_dir ;;
8070 <    *)
8071 <      as_incr_dir=$as_incr_dir/$as_mkdir_dir
8072 <      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8073 <    ;;
8074 <  esac
8075 < done; }
8060 >      { if $as_mkdir_p; then
8061 >    mkdir -p "$ac_dir"
8062 >  else
8063 >    as_dir="$ac_dir"
8064 >    as_dirs=
8065 >    while test ! -d "$as_dir"; do
8066 >      as_dirs="$as_dir $as_dirs"
8067 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8068 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8069 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8070 >         X"$as_dir" : 'X\(//\)$' \| \
8071 >         X"$as_dir" : 'X\(/\)' \| \
8072 >         .     : '\(.\)' 2>/dev/null ||
8073 > echo X"$as_dir" |
8074 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8075 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8076 >          /^X\(\/\/\)$/{ s//\1/; q; }
8077 >          /^X\(\/\).*/{ s//\1/; q; }
8078 >          s/.*/./; q'`
8079 >    done
8080 >    test ! -n "$as_dirs" || mkdir $as_dirs
8081 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8082 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8083 >   { (exit 1); exit 1; }; }; }
8084  
6221      fi
8085        rm -f $ac_file
8086        mv $tmp/config.h $ac_file
8087      fi
# Line 6227 | Line 8090 | EOF
8090      rm -f $tmp/config.h
8091    fi
8092   done
8093 < EOF
8093 > _ACEOF
8094  
8095 < cat >>$CONFIG_STATUS <<\EOF
8095 > cat >>$CONFIG_STATUS <<\_ACEOF
8096  
8097   { (exit 0); exit 0; }
8098 < EOF
8098 > _ACEOF
8099   chmod +x $CONFIG_STATUS
8100   ac_clean_files=$ac_clean_files_save
8101  
8102 +
8103   # configure is writing to config.log, and then calls config.status.
8104   # config.status does its own redirection, appending to config.log.
8105   # Unfortunately, on DOS this fails, as config.log is still kept open
# Line 6246 | Line 8110 | if test "$no_create" != yes; then
8110   # need to make the FD available again.
8111   if test "$no_create" != yes; then
8112    ac_cs_success=:
8113 +  ac_config_status_args=
8114 +  test "$silent" = yes &&
8115 +    ac_config_status_args="$ac_config_status_args --quiet"
8116    exec 5>/dev/null
8117 <  $SHELL $CONFIG_STATUS || ac_cs_success=false
8117 >  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8118    exec 5>>config.log
8119    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8120    # would make configure fail if this is the last instruction.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines