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 942 by gezelter, Wed Jan 14 15:49:26 2004 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by Autoconf 2.50 for OOPSE 1.0.
3 > # Generated by GNU Autoconf 2.59 for OOPSE 1.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7 < # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 < # Free Software Foundation, Inc.
7 > # Copyright (C) 2003 Free Software Foundation, Inc.
8   # This configure script is free software; the Free Software Foundation
9   # gives unlimited permission to copy, distribute and modify it.
10 + ## --------------------- ##
11 + ## M4sh Initialization.  ##
12 + ## --------------------- ##
13  
14   # Be Bourne compatible
15   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16    emulate sh
17    NULLCMD=:
18 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 +  # is contrary to our usage.  Disable this feature.
20 +  alias -g '${1+"$@"}'='"$@"'
21   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22    set -o posix
23   fi
24 + DUALCASE=1; export DUALCASE # for MKS sh
25  
26 + # Support unset when possible.
27 + if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 +  as_unset=unset
29 + else
30 +  as_unset=false
31 + fi
32 +
33 +
34 + # Work around bugs in pre-3.0 UWIN ksh.
35 + $as_unset ENV MAIL MAILPATH
36 + PS1='$ '
37 + PS2='> '
38 + PS4='+ '
39 +
40 + # NLS nuisances.
41 + for as_var in \
42 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 +  LC_TELEPHONE LC_TIME
45 + do
46 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 +    eval $as_var=C; export $as_var
48 +  else
49 +    $as_unset $as_var
50 +  fi
51 + done
52 +
53 + # Required to use basename.
54 + if expr a : '\(a\)' >/dev/null 2>&1; then
55 +  as_expr=expr
56 + else
57 +  as_expr=false
58 + fi
59 +
60 + if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 +  as_basename=basename
62 + else
63 +  as_basename=false
64 + fi
65 +
66 +
67   # Name of the executable.
68 < as_me=`echo "$0" |sed 's,.*[\\/],,'`
68 > as_me=`$as_basename "$0" ||
69 > $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 >         X"$0" : 'X\(//\)$' \| \
71 >         X"$0" : 'X\(/\)$' \| \
72 >         .     : '\(.\)' 2>/dev/null ||
73 > echo X/"$0" |
74 >    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 >          /^X\/\(\/\/\)$/{ s//\1/; q; }
76 >          /^X\/\(\/\).*/{ s//\1/; q; }
77 >          s/.*/./; q'`
78  
79 +
80 + # PATH needs CR, and LINENO needs CR and PATH.
81 + # Avoid depending upon Character Ranges.
82 + as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 + as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 + as_cr_digits='0123456789'
86 + as_cr_alnum=$as_cr_Letters$as_cr_digits
87 +
88 + # The user is always right.
89 + if test "${PATH_SEPARATOR+set}" != set; then
90 +  echo "#! /bin/sh" >conf$$.sh
91 +  echo  "exit 0"   >>conf$$.sh
92 +  chmod +x conf$$.sh
93 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 +    PATH_SEPARATOR=';'
95 +  else
96 +    PATH_SEPARATOR=:
97 +  fi
98 +  rm -f conf$$.sh
99 + fi
100 +
101 +
102 +  as_lineno_1=$LINENO
103 +  as_lineno_2=$LINENO
104 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
106 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107 +  # Find who we are.  Look in the path if we contain no path at all
108 +  # relative or not.
109 +  case $0 in
110 +    *[\\/]* ) as_myself=$0 ;;
111 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 + for as_dir in $PATH
113 + do
114 +  IFS=$as_save_IFS
115 +  test -z "$as_dir" && as_dir=.
116 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 + done
118 +
119 +       ;;
120 +  esac
121 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
122 +  # in which case we are not to be found in the path.
123 +  if test "x$as_myself" = x; then
124 +    as_myself=$0
125 +  fi
126 +  if test ! -f "$as_myself"; then
127 +    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 +   { (exit 1); exit 1; }; }
129 +  fi
130 +  case $CONFIG_SHELL in
131 +  '')
132 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 + for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 + do
135 +  IFS=$as_save_IFS
136 +  test -z "$as_dir" && as_dir=.
137 +  for as_base in sh bash ksh sh5; do
138 +         case $as_dir in
139 +         /*)
140 +           if ("$as_dir/$as_base" -c '
141 +  as_lineno_1=$LINENO
142 +  as_lineno_2=$LINENO
143 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
145 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146 +             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 +             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 +             CONFIG_SHELL=$as_dir/$as_base
149 +             export CONFIG_SHELL
150 +             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 +           fi;;
152 +         esac
153 +       done
154 + done
155 + ;;
156 +  esac
157 +
158 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 +  # uniformly replaced by the line number.  The first 'sed' inserts a
160 +  # line-number line before each line; the second 'sed' does the real
161 +  # work.  The second script uses 'N' to pair each line-number line
162 +  # with the numbered line, and appends trailing '-' during
163 +  # substitution so that $LINENO is not a special case at line end.
164 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166 +  sed '=' <$as_myself |
167 +    sed '
168 +      N
169 +      s,$,-,
170 +      : loop
171 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 +      t loop
173 +      s,-$,,
174 +      s,^['$as_cr_digits']*\n,,
175 +    ' >$as_me.lineno &&
176 +  chmod +x $as_me.lineno ||
177 +    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 +   { (exit 1); exit 1; }; }
179 +
180 +  # Don't try to exec as it changes $[0], causing all sort of problems
181 +  # (the dirname of $[0] is not the place where we might find the
182 +  # original and so on.  Autoconf is especially sensible to this).
183 +  . ./$as_me.lineno
184 +  # Exit status is that of the last command.
185 +  exit
186 + }
187 +
188 +
189 + case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 +  *c*,-n*) ECHO_N= ECHO_C='
191 + ' ECHO_T='      ' ;;
192 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 + esac
195 +
196   if expr a : '\(a\)' >/dev/null 2>&1; then
197    as_expr=expr
198   else
# Line 44 | Line 217 | as_executable_p="test -f"
217   fi
218   rm -f conf$$ conf$$.exe conf$$.file
219  
220 < as_executable_p="test -f"
221 <
49 < # Support unset when possible.
50 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
51 <  as_unset=unset
220 > if mkdir -p . 2>/dev/null; then
221 >  as_mkdir_p=:
222   else
223 <  as_unset=false
223 >  test -d ./-p && rmdir ./-p
224 >  as_mkdir_p=false
225   fi
226  
227 < # NLS nuisances.
57 < $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
58 < $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
59 < $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
60 < $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
61 < $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
62 < $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
63 < $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
64 < $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
227 > as_executable_p="test -f"
228  
229 + # Sed expression to map a string onto a valid CPP name.
230 + as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 +
232 + # Sed expression to map a string onto a valid variable name.
233 + as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 +
235 +
236   # IFS
237   # We need space, tab and new line, in precisely that order.
238   as_nl='
# Line 70 | Line 240 | $as_unset CDPATH || test "${CDPATH+set}" != set || { C
240   IFS="   $as_nl"
241  
242   # CDPATH.
243 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
243 > $as_unset CDPATH
244  
245 +
246   # Name of the host.
247   # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248   # so uname gets run too.
# Line 83 | Line 254 | cross_compiling=no
254   # Initializations.
255   #
256   ac_default_prefix=/usr/local
257 + ac_config_libobj_dir=.
258   cross_compiling=no
259   subdirs=
260 < MFLAGS= MAKEFLAGS=
260 > MFLAGS=
261 > MAKEFLAGS=
262   SHELL=${CONFIG_SHELL-/bin/sh}
263  
264   # Maximum number of lines to put in a shell here document.
# Line 93 | Line 266 | SHELL=${CONFIG_SHELL-/bin/sh}
266   # only ac_max_sed_lines should be used.
267   : ${ac_max_here_lines=38}
268  
269 < # Avoid depending upon Character Ranges.
270 < ac_cr_az='abcdefghijklmnopqrstuvwxyz'
271 < ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
272 < ac_cr_09='0123456789'
273 < ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
269 > # Identity of this package.
270 > PACKAGE_NAME='OOPSE'
271 > PACKAGE_TARNAME='oopse'
272 > PACKAGE_VERSION='1.0'
273 > PACKAGE_STRING='OOPSE 1.0'
274 > PACKAGE_BUGREPORT='gezelter@nd.edu'
275  
102 # Sed expression to map a string onto a valid sh and CPP variable names.
103 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
104 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
105
276   ac_unique_file="src/oopse.cpp"
277   ac_default_prefix="/usr/local"
278 + # Factoring default headers for most tests.
279 + ac_includes_default="\
280 + #include <stdio.h>
281 + #if HAVE_SYS_TYPES_H
282 + # include <sys/types.h>
283 + #endif
284 + #if HAVE_SYS_STAT_H
285 + # include <sys/stat.h>
286 + #endif
287 + #if STDC_HEADERS
288 + # include <stdlib.h>
289 + # include <stddef.h>
290 + #else
291 + # if HAVE_STDLIB_H
292 + #  include <stdlib.h>
293 + # endif
294 + #endif
295 + #if HAVE_STRING_H
296 + # if !STDC_HEADERS && HAVE_MEMORY_H
297 + #  include <memory.h>
298 + # endif
299 + # include <string.h>
300 + #endif
301 + #if HAVE_STRINGS_H
302 + # include <strings.h>
303 + #endif
304 + #if HAVE_INTTYPES_H
305 + # include <inttypes.h>
306 + #else
307 + # if HAVE_STDINT_H
308 + #  include <stdint.h>
309 + # endif
310 + #endif
311 + #if HAVE_UNISTD_H
312 + # include <unistd.h>
313 + #endif"
314  
315 + ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR mpi MPI_LIBDIR MPI_INC MPI_LIB CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS'
316 + ac_subst_files=''
317 +
318   # Initialize some variables set by options.
319   ac_init_help=
320   ac_init_version=false
# Line 144 | Line 353 | mandir='${prefix}/man'
353   infodir='${prefix}/info'
354   mandir='${prefix}/man'
355  
147 # Identity of this package.
148 PACKAGE_NAME='OOPSE'
149 PACKAGE_TARNAME='oopse'
150 PACKAGE_VERSION='1.0'
151 PACKAGE_STRING='OOPSE 1.0'
152 PACKAGE_BUGREPORT='gezelter@nd.edu'
153
356   ac_prev=
357   for ac_option
358   do
# Line 196 | Line 398 | do
398    -disable-* | --disable-*)
399      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400      # Reject names that are not valid shell variable names.
401 <    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
401 >    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403     { (exit 1); exit 1; }; }
404      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
# Line 205 | Line 407 | do
407    -enable-* | --enable-*)
408      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409      # Reject names that are not valid shell variable names.
410 <    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
410 >    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412     { (exit 1); exit 1; }; }
413      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
# Line 283 | Line 485 | do
485      with_fp=no ;;
486  
487    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 <  | --no-cr | --no-c)
488 >  | --no-cr | --no-c | -n)
489      no_create=yes ;;
490  
491    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 387 | Line 589 | do
589    -with-* | --with-*)
590      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591      # Reject names that are not valid shell variable names.
592 <    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
592 >    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593        { echo "$as_me: error: invalid package name: $ac_package" >&2
594     { (exit 1); exit 1; }; }
595      ac_package=`echo $ac_package| sed 's/-/_/g'`
# Line 400 | Line 602 | do
602    -without-* | --without-*)
603      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604      # Reject names that are not valid shell variable names.
605 <    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
605 >    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606        { echo "$as_me: error: invalid package name: $ac_package" >&2
607     { (exit 1); exit 1; }; }
608      ac_package=`echo $ac_package | sed 's/-/_/g'`
# Line 432 | Line 634 | Try \`$0 --help' for more information." >&2
634    *=*)
635      ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636      # Reject names that are not valid shell variable names.
637 <    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
637 >    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638        { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639     { (exit 1); exit 1; }; }
640      ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
# Line 442 | Line 644 | Try \`$0 --help' for more information." >&2
644    *)
645      # FIXME: should be removed in autoconf 3.0.
646      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 <    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
647 >    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650      ;;
# Line 457 | Line 659 | for ac_var in bindir sbindir libexecdir datadir syscon
659   fi
660  
661   # Be sure to have absolute paths.
662 + for ac_var in exec_prefix prefix
663 + do
664 +  eval ac_val=$`echo $ac_var`
665 +  case $ac_val in
666 +    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 +   { (exit 1); exit 1; }; };;
669 +  esac
670 + done
671 +
672 + # Be sure to have absolute paths.
673   for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 <              localstatedir libdir includedir oldincludedir infodir mandir \
462 <              exec_prefix prefix
674 >              localstatedir libdir includedir oldincludedir infodir mandir
675   do
676    eval ac_val=$`echo $ac_var`
677    case $ac_val in
678      [\\/$]* | ?:[\\/]* ) ;;
679 <    NONE ) ;;
468 <    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
679 >    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680     { (exit 1); exit 1; }; };;
681    esac
682   done
683  
684   # There might be people who depend on the old broken behavior: `$host'
685   # used to hold the argument of --host etc.
686 + # FIXME: To remove some day.
687   build=$build_alias
688   host=$host_alias
689   target=$target_alias
690  
691 < # FIXME: should be removed in autoconf 3.0.
691 > # FIXME: To remove some day.
692   if test "x$host_alias" != x; then
693    if test "x$build_alias" = x; then
694      cross_compiling=maybe
# Line 492 | Line 704 | test "$silent" = yes && exec 6>/dev/null
704  
705   test "$silent" = yes && exec 6>/dev/null
706  
707 +
708   # Find the source files, if location was not specified.
709   if test -z "$srcdir"; then
710    ac_srcdir_defaulted=yes
711    # Try the directory containing this script, then its parent.
712 <  ac_prog=$0
713 <  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
714 <  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
712 >  ac_confdir=`(dirname "$0") 2>/dev/null ||
713 > $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 >         X"$0" : 'X\(//\)[^/]' \| \
715 >         X"$0" : 'X\(//\)$' \| \
716 >         X"$0" : 'X\(/\)' \| \
717 >         .     : '\(.\)' 2>/dev/null ||
718 > echo X"$0" |
719 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 >          /^X\(\/\/\)$/{ s//\1/; q; }
722 >          /^X\(\/\).*/{ s//\1/; q; }
723 >          s/.*/./; q'`
724    srcdir=$ac_confdir
725    if test ! -r $srcdir/$ac_unique_file; then
726      srcdir=..
# Line 508 | Line 730 | if test ! -r $srcdir/$ac_unique_file; then
730   fi
731   if test ! -r $srcdir/$ac_unique_file; then
732    if test "$ac_srcdir_defaulted" = yes; then
733 <    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
733 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734     { (exit 1); exit 1; }; }
735    else
736 <    { echo "$as_me: error: cannot find sources in $srcdir" >&2
736 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737     { (exit 1); exit 1; }; }
738    fi
739   fi
740 + (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 +  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 +   { (exit 1); exit 1; }; }
743   srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744   ac_env_build_alias_set=${build_alias+set}
745   ac_env_build_alias_value=$build_alias
# Line 560 | Line 785 | ac_env_MPIF77_set=${MPIF77+set}
785   ac_env_F90FLAGS_value=$F90FLAGS
786   ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
787   ac_cv_env_F90FLAGS_value=$F90FLAGS
563 ac_env_MPIF77_set=${MPIF77+set}
564 ac_env_MPIF77_value=$MPIF77
565 ac_cv_env_MPIF77_set=${MPIF77+set}
566 ac_cv_env_MPIF77_value=$MPIF77
788   ac_env_CPP_set=${CPP+set}
789   ac_env_CPP_value=$CPP
790   ac_cv_env_CPP_set=${CPP+set}
# Line 575 | Line 796 | if test "$ac_init_help" = "long"; then
796   if test "$ac_init_help" = "long"; then
797    # Omit some internal or obsolete options to make the list less imposing.
798    # This message is too long to be a string in the A/UX 3.1 sh.
799 <  cat <<EOF
799 >  cat <<_ACEOF
800   \`configure' configures OOPSE 1.0 to adapt to many kinds of systems.
801  
802   Usage: $0 [OPTION]... [VAR=VALUE]...
# Line 596 | Line 817 | EOF
817    -n, --no-create         do not create output files
818        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
819  
820 < EOF
820 > _ACEOF
821  
822 <  cat <<EOF
822 >  cat <<_ACEOF
823   Installation directories:
824    --prefix=PREFIX         install architecture-independent files in PREFIX
825 <                          [$ac_default_prefix]
825 >                          [$ac_default_prefix]
826    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
827 <                          [PREFIX]
827 >                          [PREFIX]
828  
829   By default, \`make install' will install all the files in
830   \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
# Line 625 | Line 846 | EOF
846    --oldincludedir=DIR    C header files for non-gcc [/usr/include]
847    --infodir=DIR          info documentation [PREFIX/info]
848    --mandir=DIR           man documentation [PREFIX/man]
849 < EOF
849 > _ACEOF
850  
851 <  cat <<\EOF
851 >  cat <<\_ACEOF
852  
853   System types:
854    --build=BUILD     configure for building on BUILD [guessed]
855 <  --host=HOST       build programs to run on HOST [BUILD]
856 < EOF
855 >  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
856 > _ACEOF
857   fi
858  
859   if test -n "$ac_init_help"; then
860    case $ac_init_help in
861       short | recursive ) echo "Configuration of OOPSE 1.0:";;
862     esac
863 <  cat <<\EOF
863 >  cat <<\_ACEOF
864  
865   Optional Features:
866    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
# Line 650 | Line 871 | Optional Packages:
871   Optional Packages:
872    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
873    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
874 <  --with-mpi_dir=MPIDIR   give the path for MPI /usr/local
874 >  --with-mpi=MPIDIR   give the path for MPI /usr/local
875    --with-mpi-libdir=dir  give the path for MPI-libraries MPI_DIR/lib
876    --with-mpi_inc=dir  give the path for MPI-include-files MPI_DIR/include
877    --with-sprng_prefix=PREFIX
878                            Prefix where SPRNG is installed
879 <  --with-sprng_lib_prefix=PREFIX  SPRNG library directory
880 <  --with-sprng_include_prefix=PREFIX
879 >  --with-sprng-libdir=PREFIX  SPRNG library directory
880 >  --with-sprng-include=PREFIX
881                            SPRNG include directory
882    --with-mkl              Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60
883  
# Line 671 | Line 892 | Some influential environment variables:
892    CXXFLAGS    C++ compiler flags
893    F90         Fortran 90 compiler command
894    F90FLAGS    Fortran 90 compiler flags
674  MPIF77      MPI Fortran compiler command
895    CPP         C preprocessor
896  
897   Use these variables to override the choices made by `configure' or to help
898   it to find libraries and programs with nonstandard names/locations.
899  
900   Report bugs to <gezelter@nd.edu>.
901 < EOF
901 > _ACEOF
902   fi
903  
904   if test "$ac_init_help" = "recursive"; then
905    # If there are subdirs, report their specific --help.
906    ac_popdir=`pwd`
907 <  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
908 <    cd $ac_subdir
909 <    # A "../" for each directory in /$ac_subdir.
690 <    ac_dots=`echo $ac_subdir |
691 <             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
907 >  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
908 >    test -d $ac_dir || continue
909 >    ac_builddir=.
910  
911 <    case $srcdir in
912 <    .) # No --srcdir option.  We are building in place.
913 <      ac_sub_srcdir=$srcdir ;;
914 <    [\\/]* | ?:[\\/]* ) # Absolute path.
915 <      ac_sub_srcdir=$srcdir/$ac_subdir ;;
916 <    *) # Relative path.
917 <      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
700 <    esac
911 > if test "$ac_dir" != .; then
912 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
913 >  # A "../" for each directory in $ac_dir_suffix.
914 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
915 > else
916 >  ac_dir_suffix= ac_top_builddir=
917 > fi
918  
919 <    # Check for guested configure; otherwise get Cygnus style configure.
920 <    if test -f $ac_sub_srcdir/configure.gnu; then
921 <      echo
922 <      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
923 <    elif test -f $ac_sub_srcdir/configure; then
919 > case $srcdir in
920 >  .)  # No --srcdir option.  We are building in place.
921 >    ac_srcdir=.
922 >    if test -z "$ac_top_builddir"; then
923 >       ac_top_srcdir=.
924 >    else
925 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
926 >    fi ;;
927 >  [\\/]* | ?:[\\/]* )  # Absolute path.
928 >    ac_srcdir=$srcdir$ac_dir_suffix;
929 >    ac_top_srcdir=$srcdir ;;
930 >  *) # Relative path.
931 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
932 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 > esac
934 >
935 > # Do not use `cd foo && pwd` to compute absolute paths, because
936 > # the directories may not exist.
937 > case `pwd` in
938 > .) ac_abs_builddir="$ac_dir";;
939 > *)
940 >  case "$ac_dir" in
941 >  .) ac_abs_builddir=`pwd`;;
942 >  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
943 >  *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 >  esac;;
945 > esac
946 > case $ac_abs_builddir in
947 > .) ac_abs_top_builddir=${ac_top_builddir}.;;
948 > *)
949 >  case ${ac_top_builddir}. in
950 >  .) ac_abs_top_builddir=$ac_abs_builddir;;
951 >  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
952 >  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 >  esac;;
954 > esac
955 > case $ac_abs_builddir in
956 > .) ac_abs_srcdir=$ac_srcdir;;
957 > *)
958 >  case $ac_srcdir in
959 >  .) ac_abs_srcdir=$ac_abs_builddir;;
960 >  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
961 >  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 >  esac;;
963 > esac
964 > case $ac_abs_builddir in
965 > .) ac_abs_top_srcdir=$ac_top_srcdir;;
966 > *)
967 >  case $ac_top_srcdir in
968 >  .) ac_abs_top_srcdir=$ac_abs_builddir;;
969 >  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
970 >  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
971 >  esac;;
972 > esac
973 >
974 >    cd $ac_dir
975 >    # Check for guested configure; otherwise get Cygnus style configure.
976 >    if test -f $ac_srcdir/configure.gnu; then
977        echo
978 <      $SHELL $ac_sub_srcdir/configure  --help=recursive
979 <    elif test -f $ac_sub_srcdir/configure.ac ||
710 <           test -f $ac_sub_srcdir/configure.in; then
978 >      $SHELL $ac_srcdir/configure.gnu  --help=recursive
979 >    elif test -f $ac_srcdir/configure; then
980        echo
981 +      $SHELL $ac_srcdir/configure  --help=recursive
982 +    elif test -f $ac_srcdir/configure.ac ||
983 +           test -f $ac_srcdir/configure.in; then
984 +      echo
985        $ac_configure --help
986      else
987 <      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
987 >      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988      fi
989      cd $ac_popdir
990    done
# Line 719 | Line 992 | if $ac_init_version; then
992  
993   test -n "$ac_init_help" && exit 0
994   if $ac_init_version; then
995 <  cat <<\EOF
995 >  cat <<\_ACEOF
996   OOPSE configure 1.0
997 < generated by GNU Autoconf 2.50
997 > generated by GNU Autoconf 2.59
998  
999 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
727 < Free Software Foundation, Inc.
999 > Copyright (C) 2003 Free Software Foundation, Inc.
1000   This configure script is free software; the Free Software Foundation
1001   gives unlimited permission to copy, distribute and modify it.
1002 < EOF
1002 > _ACEOF
1003    exit 0
1004   fi
1005   exec 5>config.log
1006 < cat >&5 <<EOF
1006 > cat >&5 <<_ACEOF
1007   This file contains any messages produced by compilers while
1008   running configure, to aid debugging if configure makes a mistake.
1009  
1010   It was created by OOPSE $as_me 1.0, which was
1011 < generated by GNU Autoconf 2.50.  Invocation command line was
1011 > generated by GNU Autoconf 2.59.  Invocation command line was
1012  
1013    $ $0 $@
1014  
1015 < EOF
1015 > _ACEOF
1016   {
1017   cat <<_ASUNAME
1018 < ## ---------- ##
1019 < ## Platform.  ##
1020 < ## ---------- ##
1018 > ## --------- ##
1019 > ## Platform. ##
1020 > ## --------- ##
1021  
1022   hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023   uname -m = `(uname -m) 2>/dev/null || echo unknown`
# Line 764 | Line 1036 | PATH = $PATH
1036   /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1037   /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1038  
767 PATH = $PATH
768
1039   _ASUNAME
1040 +
1041 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 + for as_dir in $PATH
1043 + do
1044 +  IFS=$as_save_IFS
1045 +  test -z "$as_dir" && as_dir=.
1046 +  echo "PATH: $as_dir"
1047 + done
1048 +
1049   } >&5
1050  
1051 < cat >&5 <<EOF
773 < ## ------------ ##
774 < ## Core tests.  ##
775 < ## ------------ ##
1051 > cat >&5 <<_ACEOF
1052  
777 EOF
1053  
1054 + ## ----------- ##
1055 + ## Core tests. ##
1056 + ## ----------- ##
1057 +
1058 + _ACEOF
1059 +
1060 +
1061   # Keep a trace of the command line.
1062   # Strip out --no-create and --no-recursion so they do not pile up.
1063 + # Strip out --silent because we don't want to record it for future runs.
1064   # Also quote any args containing shell meta-characters.
1065 + # Make two passes to allow for proper duplicate-argument suppression.
1066   ac_configure_args=
1067 + ac_configure_args0=
1068 + ac_configure_args1=
1069   ac_sep=
1070 < for ac_arg
1070 > ac_must_keep_next=false
1071 > for ac_pass in 1 2
1072   do
1073 <  case $ac_arg in
1074 <  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075 <  | --no-cr | --no-c) ;;
1076 <  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 <  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1078 <  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 <    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1080 <    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081 <    ac_sep=" " ;;
1082 <  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1083 <     ac_sep=" " ;;
1084 <  esac
1085 <  # Get rid of the leading space.
1073 >  for ac_arg
1074 >  do
1075 >    case $ac_arg in
1076 >    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 >    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 >    | -silent | --silent | --silen | --sile | --sil)
1079 >      continue ;;
1080 >    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 >      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 >    esac
1083 >    case $ac_pass in
1084 >    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1085 >    2)
1086 >      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 >      if test $ac_must_keep_next = true; then
1088 >        ac_must_keep_next=false # Got value, back to normal.
1089 >      else
1090 >        case $ac_arg in
1091 >          *=* | --config-cache | -C | -disable-* | --disable-* \
1092 >          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 >          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 >          | -with-* | --with-* | -without-* | --without-* | --x)
1095 >            case "$ac_configure_args0 " in
1096 >              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 >            esac
1098 >            ;;
1099 >          -* ) ac_must_keep_next=true ;;
1100 >        esac
1101 >      fi
1102 >      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 >      # Get rid of the leading space.
1104 >      ac_sep=" "
1105 >      ;;
1106 >    esac
1107 >  done
1108   done
1109 + $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 + $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1111  
1112   # When interrupted or exit'd, cleanup temporary files, and complete
1113   # config.log.  We remove comments because anyway the quotes in there
1114   # would cause problems or look ugly.
1115 + # WARNING: Be sure not to use single quotes in there, as some shells,
1116 + # such as our DU 5.0 friend, will then `close' the trap.
1117   trap 'exit_status=$?
1118    # Save into config.log some information that might help in debugging.
1119 <  echo >&5
1120 <  echo "## ----------------- ##" >&5
1121 <  echo "## Cache variables.  ##" >&5
1122 <  echo "## ----------------- ##" >&5
1123 <  echo >&5
1124 <  # The following way of writing the cache mishandles newlines in values,
1119 >  {
1120 >    echo
1121 >
1122 >    cat <<\_ASBOX
1123 > ## ---------------- ##
1124 > ## Cache variables. ##
1125 > ## ---------------- ##
1126 > _ASBOX
1127 >    echo
1128 >    # The following way of writing the cache mishandles newlines in values,
1129   {
1130    (set) 2>&1 |
1131      case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132      *ac_space=\ *)
1133        sed -n \
1134 <        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 >        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136        ;;
1137      *)
1138        sed -n \
1139 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140        ;;
1141      esac;
1142 < } >&5
1143 <  sed "/^$/d" confdefs.h >conftest.log
1144 <  if test -s conftest.log; then
1145 <    echo >&5
1146 <    echo "## ------------ ##" >&5
1147 <    echo "## confdefs.h.  ##" >&5
1148 <    echo "## ------------ ##" >&5
1149 <    echo >&5
1150 <    cat conftest.log >&5
1151 <  fi
1152 <  (echo; echo) >&5
1153 <  test "$ac_signal" != 0 &&
1154 <    echo "$as_me: caught signal $ac_signal" >&5
1155 <  echo "$as_me: exit $exit_status" >&5
1156 <  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1142 > }
1143 >    echo
1144 >
1145 >    cat <<\_ASBOX
1146 > ## ----------------- ##
1147 > ## Output variables. ##
1148 > ## ----------------- ##
1149 > _ASBOX
1150 >    echo
1151 >    for ac_var in $ac_subst_vars
1152 >    do
1153 >      eval ac_val=$`echo $ac_var`
1154 >      echo "$ac_var='"'"'$ac_val'"'"'"
1155 >    done | sort
1156 >    echo
1157 >
1158 >    if test -n "$ac_subst_files"; then
1159 >      cat <<\_ASBOX
1160 > ## ------------- ##
1161 > ## Output files. ##
1162 > ## ------------- ##
1163 > _ASBOX
1164 >      echo
1165 >      for ac_var in $ac_subst_files
1166 >      do
1167 >        eval ac_val=$`echo $ac_var`
1168 >        echo "$ac_var='"'"'$ac_val'"'"'"
1169 >      done | sort
1170 >      echo
1171 >    fi
1172 >
1173 >    if test -s confdefs.h; then
1174 >      cat <<\_ASBOX
1175 > ## ----------- ##
1176 > ## confdefs.h. ##
1177 > ## ----------- ##
1178 > _ASBOX
1179 >      echo
1180 >      sed "/^$/d" confdefs.h | sort
1181 >      echo
1182 >    fi
1183 >    test "$ac_signal" != 0 &&
1184 >      echo "$as_me: caught signal $ac_signal"
1185 >    echo "$as_me: exit $exit_status"
1186 >  } >&5
1187 >  rm -f core *.core &&
1188 >  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189      exit $exit_status
1190       ' 0
1191   for ac_signal in 1 2 13 15; do
1192 <  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
1192 >  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193   done
1194   ac_signal=0
1195  
# Line 849 | Line 1198 | echo >confdefs.h
1198   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199   echo >confdefs.h
1200  
1201 + # Predefined preprocessor variables.
1202 +
1203 + cat >>confdefs.h <<_ACEOF
1204 + #define PACKAGE_NAME "$PACKAGE_NAME"
1205 + _ACEOF
1206 +
1207 +
1208 + cat >>confdefs.h <<_ACEOF
1209 + #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 + _ACEOF
1211 +
1212 +
1213 + cat >>confdefs.h <<_ACEOF
1214 + #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 + _ACEOF
1216 +
1217 +
1218 + cat >>confdefs.h <<_ACEOF
1219 + #define PACKAGE_STRING "$PACKAGE_STRING"
1220 + _ACEOF
1221 +
1222 +
1223 + cat >>confdefs.h <<_ACEOF
1224 + #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 + _ACEOF
1226 +
1227 +
1228   # Let the site file select an alternate cache file if it wants to.
1229   # Prefer explicitly selected file to automatically selected ones.
1230   if test -z "$CONFIG_SITE"; then
# Line 860 | Line 1236 | for ac_site_file in $CONFIG_SITE; do
1236   fi
1237   for ac_site_file in $CONFIG_SITE; do
1238    if test -r "$ac_site_file"; then
1239 <    { echo "$as_me:863: loading site script $ac_site_file" >&5
1239 >    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240   echo "$as_me: loading site script $ac_site_file" >&6;}
1241 <    cat "$ac_site_file" >&5
1241 >    sed 's/^/| /' "$ac_site_file" >&5
1242      . "$ac_site_file"
1243    fi
1244   done
# Line 871 | Line 1247 | if test -r "$cache_file"; then
1247    # Some versions of bash will fail to source /dev/null (special
1248    # files actually), so we avoid doing that.
1249    if test -f "$cache_file"; then
1250 <    { echo "$as_me:874: loading cache $cache_file" >&5
1250 >    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251   echo "$as_me: loading cache $cache_file" >&6;}
1252      case $cache_file in
1253        [\\/]* | ?:[\\/]* ) . $cache_file;;
# Line 879 | Line 1255 | else
1255      esac
1256    fi
1257   else
1258 <  { echo "$as_me:882: creating cache $cache_file" >&5
1258 >  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259   echo "$as_me: creating cache $cache_file" >&6;}
1260    >$cache_file
1261   fi
1262  
1263   # Check that the precious variables saved in the cache have kept the same
1264   # value.
1265 < ac_suggest_removing_cache=false
1265 > ac_cache_corrupted=false
1266   for ac_var in `(set) 2>&1 |
1267 <               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1267 >               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268    eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269    eval ac_new_set=\$ac_env_${ac_var}_set
1270    eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271    eval ac_new_val="\$ac_env_${ac_var}_value"
1272    case $ac_old_set,$ac_new_set in
1273      set,)
1274 <      { echo "$as_me:898: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 < echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 <      ac_suggest_removing_cache=: ;;
1274 >      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 > echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 >      ac_cache_corrupted=: ;;
1277      ,set)
1278 <      { echo "$as_me:902: WARNING: \`$ac_var' was not set in the previous run" >&5
1279 < echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1280 <      ac_suggest_removing_cache=: ;;
1278 >      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 > echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 >      ac_cache_corrupted=: ;;
1281      ,);;
1282      *)
1283        if test "x$ac_old_val" != "x$ac_new_val"; then
1284 <        { echo "$as_me:908: WARNING: \`$ac_var' has changed since the previous run:" >&5
1285 < echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1286 <        { echo "$as_me:910: WARNING:   former value:  $ac_old_val" >&5
1287 < echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
1288 <        { echo "$as_me:912: WARNING:   current value: $ac_new_val" >&5
1289 < echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
1290 <        ac_suggest_removing_cache=:
1284 >        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 > echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 >        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1287 > echo "$as_me:   former value:  $ac_old_val" >&2;}
1288 >        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1289 > echo "$as_me:   current value: $ac_new_val" >&2;}
1290 >        ac_cache_corrupted=:
1291        fi;;
1292    esac
1293 +  # Pass precious variables to config.status.
1294 +  if test "$ac_new_set" = set; then
1295 +    case $ac_new_val in
1296 +    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 +      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 +    *) ac_arg=$ac_var=$ac_new_val ;;
1299 +    esac
1300 +    case " $ac_configure_args " in
1301 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1302 +      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 +    esac
1304 +  fi
1305   done
1306 < if $ac_suggest_removing_cache; then
1307 <  { echo "$as_me:919: WARNING: changes in the environment can compromise the build" >&5
1308 < echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1309 <  { echo "$as_me:921: WARNING: consider removing $cache_file and starting over" >&5
1310 < echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
1306 > if $ac_cache_corrupted; then
1307 >  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 > echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 >  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 > echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 >   { (exit 1); exit 1; }; }
1312   fi
1313  
1314   ac_ext=c
# Line 928 | Line 1317 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing;
1317   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318   ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319  
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
1320  
1321 +
1322 +
1323 +
1324 +
1325 +
1326 +
1327 +
1328 +
1329 +
1330 +
1331 +
1332 +
1333 +
1334 +
1335 +
1336 +
1337 +
1338 +
1339 +
1340 +
1341 +
1342 +
1343 +
1344 +
1345 +
1346   ac_aux_dir=
1347   for ac_dir in ac-tools $srcdir/ac-tools; do
1348    if test -f $ac_dir/install-sh; then
# Line 966 | Line 1360 | if test -z "$ac_aux_dir"; then
1360    fi
1361   done
1362   if test -z "$ac_aux_dir"; then
1363 <  { { echo "$as_me:969: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1363 >  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1364   echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
1365     { (exit 1); exit 1; }; }
1366   fi
# Line 974 | Line 1368 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1368   ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1369   ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1370  
1371 +
1372   # This file is part of Autoconf.                       -*- Autoconf -*-
1373   # Programming languages support.
1374   # Copyright 2000, 2001
# Line 1024 | Line 1419 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1419   # Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably
1420   # many others).
1421  
1422 +
1423   # Table of Contents:
1424   #
1425   # 1. Language selection
# Line 1059 | Line 1455 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1455   # ACTION-IF-NOT-FOUND.
1456   # _AC_LIST_MEMBER_IF
1457  
1458 +
1459 +
1460   # _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE)
1461   # -------------------------------------------------
1462   #
# Line 1089 | Line 1487 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1487   # FIXME: Get rid of this macro.
1488   # _AC_LINKER_OPTION
1489  
1490 +
1491 +
1492   ## ----------------------- ##
1493   ## 1. Language selection.  ##
1494   ## ----------------------- ##
# Line 1100 | Line 1500 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1500   # AC_LANG(Fortran 90)
1501   # -------------------
1502  
1503 +
1504 +
1505   # _AC_LANG_ABBREV(Fortran 90)
1506   # ---------------------------
1507  
1508 +
1509 +
1510   # ----------------------------- #
1511   # 1c. The Fortran 95 language.  #
1512   # ----------------------------- #
# Line 1110 | Line 1514 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1514   # AC_LANG(Fortran 95)
1515   # -------------------
1516  
1517 +
1518 +
1519   # _AC_LANG_ABBREV(Fortran 95)
1520   # ---------------------------
1521  
1522 +
1523 +
1524   ## ---------------------- ##
1525   ## 2.Producing programs.  ##
1526   ## ---------------------- ##
# Line 1124 | Line 1532 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1532   # AC_LANG_SOURCE(Fortran 90)(BODY)
1533   # --------------------------------
1534  
1535 +
1536 +
1537   # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY])
1538   # -----------------------------------------------
1539  
1540 +
1541   # AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION)
1542   # --------------------------------------------
1543  
1544 +
1545 +
1546   # ------------------------ #
1547   # 2c. Fortran 95 sources.  #
1548   # ------------------------ #
# Line 1137 | Line 1550 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1550   # AC_LANG_SOURCE(Fortran 95)(BODY)
1551   # --------------------------------
1552  
1553 +
1554   # AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY])
1555   # -----------------------------------------------
1556  
1557 +
1558   # AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION)
1559   # --------------------------------------------
1560  
1561 +
1562 +
1563   ## -------------------------------------------- ##
1564   ## 3. Looking for Compilers and Preprocessors.  ##
1565   ## -------------------------------------------- ##
# Line 1151 | Line 1568 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1568   # 3b. The Fortran 90 compiler.  #
1569   # ----------------------------- #
1570  
1571 +
1572   # AC_LANG_PREPROC(Fortran 90)
1573   # ---------------------------
1574   # Find the Fortran 90 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able.
1575  
1576 +
1577 +
1578   # AC_LANG_COMPILER(Fortran 90)
1579   # ----------------------------
1580   # Find the Fortran 90 compiler.  Must be AC_DEFUN'd to be
1581   # AC_REQUIRE'able.
1582  
1583 +
1584 +
1585   # AC_PROG_F90([COMPILERS...])
1586   # ---------------------------
1587   # COMPILERS is a space separated list of Fortran 90 compilers to search
# Line 1176 | Line 1598 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1598   # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1599   # AC_PROG_F90
1600  
1601 +
1602   # ----------------------------- #
1603   # 3c. The Fortran 95 compiler.  #
1604   # ----------------------------- #
1605  
1606 +
1607   # AC_LANG_PREPROC(Fortran 95)
1608   # ---------------------------
1609   # Find the Fortran 95 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able.
1610  
1611 +
1612 +
1613   # AC_LANG_COMPILER(Fortran 95)
1614   # ----------------------------
1615   # Find the Fortran 95 compiler.  Must be AC_DEFUN'd to be
1616   # AC_REQUIRE'able.
1617  
1618 +
1619 +
1620   # AC_PROG_F95([COMPILERS...])
1621   # ---------------------------
1622   # COMPILERS is a space separated list of Fortran 95 compilers to search
# Line 1202 | Line 1630 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1630   # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1631   # AC_PROG_F95
1632  
1633 +
1634   ## ------------------------------- ##
1635   ## 4. Compilers' characteristics.  ##
1636   ## ------------------------------- ##
1637  
1638 +
1639   # ---------------------------------------- #
1640   # 4b. Fortan 90 compiler characteristics.  #
1641   # ---------------------------------------- #
1642  
1643 +
1644   # _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v])
1645   # -------------------------------------------------
1646   # Link a trivial Fortran program, compiling with a verbose output FLAG
# Line 1220 | Line 1651 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1651   # space-separated items.
1652   # _AC_PROG_F90_V_OUTPUT
1653  
1654 +
1655   # _AC_PROG_F90_V
1656   # --------------
1657   #
# Line 1229 | Line 1661 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1661   # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1662   # _AC_PROG_F90_V
1663  
1664 +
1665   # AC_F90_LIBRARY_LDFLAGS
1666   # ----------------------
1667   #
# Line 1256 | Line 1689 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1689   # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1690   # AC_F90_LIBRARY_LDFLAGS
1691  
1692 +
1693   # _AC_F90_NAME_MANGLING
1694   # ---------------------
1695   # Test for the name mangling scheme used by the Fortran 90 compiler.
# Line 1275 | Line 1709 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1709  
1710   # The replacement is empty.
1711  
1712 +
1713 +
1714   # AC_F90_WRAPPERS
1715   # ---------------
1716   # Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to
# Line 1283 | Line 1719 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1719   # scheme used by the Fortran 90 compiler.
1720   # AC_F90_WRAPPERS
1721  
1722 +
1723   # AC_F90_FUNC(NAME, [SHELLVAR = NAME])
1724   # ------------------------------------
1725   # For a Fortran subroutine of given NAME, define a shell variable
# Line 1290 | Line 1727 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1727   # argument is not supplied, it defaults to NAME.
1728   # AC_F90_FUNC
1729  
1730 +
1731   # ---------------------------------------- #
1732   # 4c. Fortan 95 compiler characteristics.  #
1733   # ---------------------------------------- #
1734  
1735 +
1736   # _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v])
1737   # -------------------------------------------------
1738   # Link a trivial Fortran program, compiling with a verbose output FLAG
# Line 1304 | Line 1743 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1743   # space-separated items.
1744   # _AC_PROG_F95_V_OUTPUT
1745  
1746 +
1747   # _AC_PROG_F95_V
1748   # --------------
1749   #
# Line 1313 | Line 1753 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1753   # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1754   # _AC_PROG_F95_V
1755  
1756 +
1757   # AC_F95_LIBRARY_LDFLAGS
1758   # ----------------------
1759   #
# Line 1340 | Line 1781 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1781   # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1782   # AC_F95_LIBRARY_LDFLAGS
1783  
1784 +
1785   # _AC_F95_NAME_MANGLING
1786   # ---------------------
1787   # Test for the name mangling scheme used by the Fortran 95 compiler.
# Line 1359 | Line 1801 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1801  
1802   # The replacement is empty.
1803  
1804 +
1805 +
1806   # AC_F95_WRAPPERS
1807   # ---------------
1808   # Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to
# Line 1367 | Line 1811 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1811   # scheme used by the Fortran 95 compiler.
1812   # AC_F95_WRAPPERS
1813  
1814 +
1815   # AC_F95_FUNC(NAME, [SHELLVAR = NAME])
1816   # ------------------------------------
1817   # For a Fortran subroutine of given NAME, define a shell variable
# Line 1374 | Line 1819 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1819   # argument is not supplied, it defaults to NAME.
1820   # AC_F95_FUNC
1821  
1377 # what should I build?
1822  
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;
1823  
1824 +
1825 +
1826 +
1827 +
1828 +
1829 +
1830 +
1831 +
1832 +
1833 +
1834 +
1835 +
1836 +
1837 +
1838 +
1839 +
1840 +
1841 +
1842 +
1843 +
1844 +
1845 +
1846 +
1847 +
1848 +
1849 +
1850 +
1851 +
1852 +
1853 +
1854 +
1855 +
1856 +
1857 +
1858 +
1859 +
1860 +
1861 +
1862 +
1863 +
1864 +
1865 +
1866 +
1867 +
1868 +
1869 +
1870 +
1871 +
1872   # set program name
1873   PROGNAME="oopse"
1874  
1875 +
1876 + # there are two ways to do debugging.  One with the --enable-debug flag
1877 + # and one using the DEBUG environment variable
1878 +
1879 + debug=0
1880 + # Check whether --enable-debug or --disable-debug was given.
1881 + if test "${enable_debug+set}" = set; then
1882 +  enableval="$enable_debug"
1883 +  debug=1
1884 + fi;
1885   if test "${DEBUG}"; then
1886  
1887 < cat >>confdefs.h <<\EOF
1888 < #define DEBUG 1
1889 < EOF
1887 > cat >>confdefs.h <<\_ACEOF
1888 > #define debug 1
1889 > _ACEOF
1890  
1891    msg="$msg, debug mode"
1892   fi
1893 +
1894  
1895   # who am i
1896   # Make sure we can run config.sub.
1897   $ac_config_sub sun4 >/dev/null 2>&1 ||
1898 <  { { echo "$as_me:1400: error: cannot run $ac_config_sub" >&5
1898 >  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1899   echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1900     { (exit 1); exit 1; }; }
1901  
1902 < echo "$as_me:1404: checking build system type" >&5
1902 > echo "$as_me:$LINENO: checking build system type" >&5
1903   echo $ECHO_N "checking build system type... $ECHO_C" >&6
1904   if test "${ac_cv_build+set}" = set; then
1905    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1410 | Line 1908 | test -z "$ac_cv_build_alias" &&
1908   test -z "$ac_cv_build_alias" &&
1909    ac_cv_build_alias=`$ac_config_guess`
1910   test -z "$ac_cv_build_alias" &&
1911 <  { { echo "$as_me:1413: error: cannot guess build type; you must specify one" >&5
1911 >  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1912   echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1913     { (exit 1); exit 1; }; }
1914   ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1915 <  { { echo "$as_me:1417: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1916 < echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1915 >  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1916 > echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1917     { (exit 1); exit 1; }; }
1918  
1919   fi
1920 < echo "$as_me:1422: result: $ac_cv_build" >&5
1920 > echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1921   echo "${ECHO_T}$ac_cv_build" >&6
1922   build=$ac_cv_build
1923   build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1924   build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1925   build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1926  
1927 < echo "$as_me:1429: checking host system type" >&5
1927 >
1928 > echo "$as_me:$LINENO: checking host system type" >&5
1929   echo $ECHO_N "checking host system type... $ECHO_C" >&6
1930   if test "${ac_cv_host+set}" = set; then
1931    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1435 | Line 1934 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1934   test -z "$ac_cv_host_alias" &&
1935    ac_cv_host_alias=$ac_cv_build_alias
1936   ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1937 <  { { echo "$as_me:1438: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1937 >  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1938   echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1939     { (exit 1); exit 1; }; }
1940  
1941   fi
1942 < echo "$as_me:1443: result: $ac_cv_host" >&5
1942 > echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1943   echo "${ECHO_T}$ac_cv_host" >&6
1944   host=$ac_cv_host
1945   host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1946   host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1947   host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1948  
1949 +
1950 +
1951   ac_ext=c
1952   ac_cpp='$CPP $CPPFLAGS'
1953   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 1457 | Line 1958 | echo "$as_me:1460: checking for $ac_word" >&5
1958    do
1959      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1960   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1961 < echo "$as_me:1460: checking for $ac_word" >&5
1961 > echo "$as_me:$LINENO: checking for $ac_word" >&5
1962   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1963   if test "${ac_cv_prog_CC+set}" = set; then
1964    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1465 | Line 1966 | else
1966    if test -n "$CC"; then
1967    ac_cv_prog_CC="$CC" # Let the user override the test.
1968   else
1969 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
1970 < ac_dummy="$PATH"
1971 < for ac_dir in $ac_dummy; do
1972 <  IFS=$ac_save_IFS
1973 <  test -z "$ac_dir" && ac_dir=.
1974 <  $as_executable_p "$ac_dir/$ac_word" || continue
1975 < ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1976 < echo "$as_me:1475: found $ac_dir/$ac_word" >&5
1977 < break
1969 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 > for as_dir in $PATH
1971 > do
1972 >  IFS=$as_save_IFS
1973 >  test -z "$as_dir" && as_dir=.
1974 >  for ac_exec_ext in '' $ac_executable_extensions; do
1975 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976 >    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1977 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978 >    break 2
1979 >  fi
1980   done
1981 + done
1982  
1983   fi
1984   fi
1985   CC=$ac_cv_prog_CC
1986   if test -n "$CC"; then
1987 <  echo "$as_me:1483: result: $CC" >&5
1987 >  echo "$as_me:$LINENO: result: $CC" >&5
1988   echo "${ECHO_T}$CC" >&6
1989   else
1990 <  echo "$as_me:1486: result: no" >&5
1990 >  echo "$as_me:$LINENO: result: no" >&5
1991   echo "${ECHO_T}no" >&6
1992   fi
1993  
# Line 1496 | Line 2000 | echo "$as_me:1499: checking for $ac_word" >&5
2000   do
2001    # Extract the first word of "$ac_prog", so it can be a program name with args.
2002   set dummy $ac_prog; ac_word=$2
2003 < echo "$as_me:1499: checking for $ac_word" >&5
2003 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2004   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005   if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2006    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1504 | Line 2008 | else
2008    if test -n "$ac_ct_CC"; then
2009    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2010   else
2011 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2012 < ac_dummy="$PATH"
2013 < for ac_dir in $ac_dummy; do
2014 <  IFS=$ac_save_IFS
2015 <  test -z "$ac_dir" && ac_dir=.
2016 <  $as_executable_p "$ac_dir/$ac_word" || continue
2017 < ac_cv_prog_ac_ct_CC="$ac_prog"
2018 < echo "$as_me:1514: found $ac_dir/$ac_word" >&5
2019 < break
2011 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 > for as_dir in $PATH
2013 > do
2014 >  IFS=$as_save_IFS
2015 >  test -z "$as_dir" && as_dir=.
2016 >  for ac_exec_ext in '' $ac_executable_extensions; do
2017 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 >    ac_cv_prog_ac_ct_CC="$ac_prog"
2019 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 >    break 2
2021 >  fi
2022   done
2023 + done
2024  
2025   fi
2026   fi
2027   ac_ct_CC=$ac_cv_prog_ac_ct_CC
2028   if test -n "$ac_ct_CC"; then
2029 <  echo "$as_me:1522: result: $ac_ct_CC" >&5
2029 >  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2030   echo "${ECHO_T}$ac_ct_CC" >&6
2031   else
2032 <  echo "$as_me:1525: result: no" >&5
2032 >  echo "$as_me:$LINENO: result: no" >&5
2033   echo "${ECHO_T}no" >&6
2034   fi
2035  
# Line 1532 | Line 2039 | test -z "$CC" && { { echo "$as_me:1535: error: no acce
2039    CC=$ac_ct_CC
2040   fi
2041  
2042 < test -z "$CC" && { { echo "$as_me:1535: error: no acceptable cc found in \$PATH" >&5
2043 < echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2042 >
2043 > test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2044 > See \`config.log' for more details." >&5
2045 > echo "$as_me: error: no acceptable C compiler found in \$PATH
2046 > See \`config.log' for more details." >&2;}
2047     { (exit 1); exit 1; }; }
2048  
2049 + # Provide some information about the compiler.
2050 + echo "$as_me:$LINENO:" \
2051 +     "checking for C compiler version" >&5
2052 + ac_compiler=`set X $ac_compile; echo $2`
2053 + { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2054 +  (eval $ac_compiler --version </dev/null >&5) 2>&5
2055 +  ac_status=$?
2056 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 +  (exit $ac_status); }
2058 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2059 +  (eval $ac_compiler -v </dev/null >&5) 2>&5
2060 +  ac_status=$?
2061 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 +  (exit $ac_status); }
2063 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2064 +  (eval $ac_compiler -V </dev/null >&5) 2>&5
2065 +  ac_status=$?
2066 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 +  (exit $ac_status); }
2068 +
2069   cat >conftest.$ac_ext <<_ACEOF
2070 < #line 1540 "configure"
2071 < #include "confdefs.h"
2070 > /* confdefs.h.  */
2071 > _ACEOF
2072 > cat confdefs.h >>conftest.$ac_ext
2073 > cat >>conftest.$ac_ext <<_ACEOF
2074 > /* end confdefs.h.  */
2075  
2076   int
2077   main ()
# Line 1549 | Line 2082 | ac_clean_files="$ac_clean_files a.out a.exe"
2082   }
2083   _ACEOF
2084   ac_clean_files_save=$ac_clean_files
2085 < ac_clean_files="$ac_clean_files a.out a.exe"
2085 > ac_clean_files="$ac_clean_files a.out a.exe b.out"
2086   # Try to create an executable without -o first, disregard a.out.
2087 < # It will help us diagnose broken compiler, and finding out an intuition
2087 > # It will help us diagnose broken compilers, and finding out an intuition
2088   # of exeext.
2089 < echo "$as_me:1556: checking for C compiler default output" >&5
2090 < echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2089 > echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2090 > echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2091   ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2092 < if { (eval echo "$as_me:1559: \"$ac_link_default\"") >&5
2092 > if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2093    (eval $ac_link_default) 2>&5
2094    ac_status=$?
2095 <  echo "$as_me:1562: \$? = $ac_status" >&5
2095 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096    (exit $ac_status); }; then
2097 <  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
2097 >  # Find the output, starting from the most likely.  This scheme is
2098 > # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2099 > # resort.
2100 >
2101 > # Be careful to initialize this variable, since it used to be cached.
2102 > # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2103 > ac_cv_exeext=
2104 > # b.out is created by i960 compilers.
2105 > for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2106 > do
2107 >  test -f "$ac_file" || continue
2108    case $ac_file in
2109 <    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2110 <    a.out ) # We found the default executable, but exeext='' is most
2111 <            # certainly right.
2112 <            break;;
2113 <    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2114 <          export ac_cv_exeext
2115 <          break;;
2116 <    * ) break;;
2109 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2110 >        ;;
2111 >    conftest.$ac_ext )
2112 >        # This is the source file.
2113 >        ;;
2114 >    [ab].out )
2115 >        # We found the default executable, but exeext='' is most
2116 >        # certainly right.
2117 >        break;;
2118 >    *.* )
2119 >        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2120 >        # FIXME: I believe we export ac_cv_exeext for Libtool,
2121 >        # but it would be cool to find out if it's true.  Does anybody
2122 >        # maintain Libtool? --akim.
2123 >        export ac_cv_exeext
2124 >        break;;
2125 >    * )
2126 >        break;;
2127    esac
2128   done
2129   else
2130    echo "$as_me: failed program was:" >&5
2131 < cat conftest.$ac_ext >&5
2132 < { { echo "$as_me:1579: error: C compiler cannot create executables" >&5
2133 < echo "$as_me: error: C compiler cannot create executables" >&2;}
2131 > sed 's/^/| /' conftest.$ac_ext >&5
2132 >
2133 > { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2134 > See \`config.log' for more details." >&5
2135 > echo "$as_me: error: C compiler cannot create executables
2136 > See \`config.log' for more details." >&2;}
2137     { (exit 77); exit 77; }; }
2138   fi
2139  
2140   ac_exeext=$ac_cv_exeext
2141 < echo "$as_me:1585: result: $ac_file" >&5
2141 > echo "$as_me:$LINENO: result: $ac_file" >&5
2142   echo "${ECHO_T}$ac_file" >&6
2143  
2144   # Check the compiler produces executables we can run.  If not, either
2145   # the compiler is broken, or we cross compile.
2146 < echo "$as_me:1590: checking whether the C compiler works" >&5
2146 > echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2147   echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2148   # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2149   # If not cross compiling, check that we can run a simple program.
2150   if test "$cross_compiling" != yes; then
2151    if { ac_try='./$ac_file'
2152 <  { (eval echo "$as_me:1596: \"$ac_try\"") >&5
2152 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153    (eval $ac_try) 2>&5
2154    ac_status=$?
2155 <  echo "$as_me:1599: \$? = $ac_status" >&5
2155 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156    (exit $ac_status); }; }; then
2157      cross_compiling=no
2158    else
2159      if test "$cross_compiling" = maybe; then
2160          cross_compiling=yes
2161      else
2162 <        { { echo "$as_me:1606: error: cannot run C compiled programs.
2163 < If you meant to cross compile, use \`--host'." >&5
2162 >        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2163 > If you meant to cross compile, use \`--host'.
2164 > See \`config.log' for more details." >&5
2165   echo "$as_me: error: cannot run C compiled programs.
2166 < If you meant to cross compile, use \`--host'." >&2;}
2166 > If you meant to cross compile, use \`--host'.
2167 > See \`config.log' for more details." >&2;}
2168     { (exit 1); exit 1; }; }
2169      fi
2170    fi
2171   fi
2172 < echo "$as_me:1614: result: yes" >&5
2172 > echo "$as_me:$LINENO: result: yes" >&5
2173   echo "${ECHO_T}yes" >&6
2174  
2175 < rm -f a.out a.exe conftest$ac_cv_exeext
2175 > rm -f a.out a.exe conftest$ac_cv_exeext b.out
2176   ac_clean_files=$ac_clean_files_save
2177   # Check the compiler produces executables we can run.  If not, either
2178   # the compiler is broken, or we cross compile.
2179 < echo "$as_me:1621: checking whether we are cross compiling" >&5
2179 > echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2180   echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2181 < echo "$as_me:1623: result: $cross_compiling" >&5
2181 > echo "$as_me:$LINENO: result: $cross_compiling" >&5
2182   echo "${ECHO_T}$cross_compiling" >&6
2183  
2184 < echo "$as_me:1626: checking for executable suffix" >&5
2185 < echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2186 < if { (eval echo "$as_me:1628: \"$ac_link\"") >&5
2184 > echo "$as_me:$LINENO: checking for suffix of executables" >&5
2185 > echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2186 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2187    (eval $ac_link) 2>&5
2188    ac_status=$?
2189 <  echo "$as_me:1631: \$? = $ac_status" >&5
2189 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190    (exit $ac_status); }; then
2191    # If both `conftest.exe' and `conftest' are `present' (well, observable)
2192   # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2193   # work properly (i.e., refer to `conftest.exe'), while it won't with
2194   # `rm'.
2195 < for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2195 > for ac_file in conftest.exe conftest conftest.*; do
2196 >  test -f "$ac_file" || continue
2197    case $ac_file in
2198 <    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2198 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2199      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 <          export ac_cv_exeext
2201 <          break;;
2200 >          export ac_cv_exeext
2201 >          break;;
2202      * ) break;;
2203    esac
2204   done
2205   else
2206 <  { { echo "$as_me:1647: error: cannot compute EXEEXT: cannot compile and link" >&5
2207 < echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2206 >  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2207 > See \`config.log' for more details." >&5
2208 > echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2209 > See \`config.log' for more details." >&2;}
2210     { (exit 1); exit 1; }; }
2211   fi
2212  
2213   rm -f conftest$ac_cv_exeext
2214 < echo "$as_me:1653: result: $ac_cv_exeext" >&5
2214 > echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2215   echo "${ECHO_T}$ac_cv_exeext" >&6
2216  
2217   rm -f conftest.$ac_ext
2218   EXEEXT=$ac_cv_exeext
2219   ac_exeext=$EXEEXT
2220 < echo "$as_me:1659: checking for object suffix" >&5
2221 < echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2220 > echo "$as_me:$LINENO: checking for suffix of object files" >&5
2221 > echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2222   if test "${ac_cv_objext+set}" = set; then
2223    echo $ECHO_N "(cached) $ECHO_C" >&6
2224   else
2225    cat >conftest.$ac_ext <<_ACEOF
2226 < #line 1665 "configure"
2227 < #include "confdefs.h"
2226 > /* confdefs.h.  */
2227 > _ACEOF
2228 > cat confdefs.h >>conftest.$ac_ext
2229 > cat >>conftest.$ac_ext <<_ACEOF
2230 > /* end confdefs.h.  */
2231  
2232   int
2233   main ()
# Line 1674 | Line 2238 | if { (eval echo "$as_me:1677: \"$ac_compile\"") >&5
2238   }
2239   _ACEOF
2240   rm -f conftest.o conftest.obj
2241 < if { (eval echo "$as_me:1677: \"$ac_compile\"") >&5
2241 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242    (eval $ac_compile) 2>&5
2243    ac_status=$?
2244 <  echo "$as_me:1680: \$? = $ac_status" >&5
2244 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245    (exit $ac_status); }; then
2246    for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2247    case $ac_file in
2248 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2248 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2249      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2250         break;;
2251    esac
2252   done
2253   else
2254    echo "$as_me: failed program was:" >&5
2255 < cat conftest.$ac_ext >&5
2256 < { { echo "$as_me:1692: error: cannot compute OBJEXT: cannot compile" >&5
2257 < echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2255 > sed 's/^/| /' conftest.$ac_ext >&5
2256 >
2257 > { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2258 > See \`config.log' for more details." >&5
2259 > echo "$as_me: error: cannot compute suffix of object files: cannot compile
2260 > See \`config.log' for more details." >&2;}
2261     { (exit 1); exit 1; }; }
2262   fi
2263  
2264   rm -f conftest.$ac_cv_objext conftest.$ac_ext
2265   fi
2266 < echo "$as_me:1699: result: $ac_cv_objext" >&5
2266 > echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2267   echo "${ECHO_T}$ac_cv_objext" >&6
2268   OBJEXT=$ac_cv_objext
2269   ac_objext=$OBJEXT
2270 < echo "$as_me:1703: checking whether we are using the GNU C compiler" >&5
2270 > echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2271   echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2272   if test "${ac_cv_c_compiler_gnu+set}" = set; then
2273    echo $ECHO_N "(cached) $ECHO_C" >&6
2274   else
2275    cat >conftest.$ac_ext <<_ACEOF
2276 < #line 1709 "configure"
2277 < #include "confdefs.h"
2276 > /* confdefs.h.  */
2277 > _ACEOF
2278 > cat confdefs.h >>conftest.$ac_ext
2279 > cat >>conftest.$ac_ext <<_ACEOF
2280 > /* end confdefs.h.  */
2281  
2282   int
2283   main ()
# Line 1721 | Line 2291 | if { (eval echo "$as_me:1724: \"$ac_compile\"") >&5
2291   }
2292   _ACEOF
2293   rm -f conftest.$ac_objext
2294 < if { (eval echo "$as_me:1724: \"$ac_compile\"") >&5
2295 <  (eval $ac_compile) 2>&5
2294 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 >  (eval $ac_compile) 2>conftest.er1
2296    ac_status=$?
2297 <  echo "$as_me:1727: \$? = $ac_status" >&5
2297 >  grep -v '^ *+' conftest.er1 >conftest.err
2298 >  rm -f conftest.er1
2299 >  cat conftest.err >&5
2300 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301    (exit $ac_status); } &&
2302 <         { ac_try='test -s conftest.$ac_objext'
2303 <  { (eval echo "$as_me:1730: \"$ac_try\"") >&5
2302 >         { ac_try='test -z "$ac_c_werror_flag"
2303 >                         || test ! -s conftest.err'
2304 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305    (eval $ac_try) 2>&5
2306    ac_status=$?
2307 <  echo "$as_me:1733: \$? = $ac_status" >&5
2307 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 >  (exit $ac_status); }; } &&
2309 >         { ac_try='test -s conftest.$ac_objext'
2310 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 >  (eval $ac_try) 2>&5
2312 >  ac_status=$?
2313 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314    (exit $ac_status); }; }; then
2315    ac_compiler_gnu=yes
2316   else
2317    echo "$as_me: failed program was:" >&5
2318 < cat conftest.$ac_ext >&5
2318 > sed 's/^/| /' conftest.$ac_ext >&5
2319 >
2320   ac_compiler_gnu=no
2321   fi
2322 < rm -f conftest.$ac_objext conftest.$ac_ext
2322 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2323   ac_cv_c_compiler_gnu=$ac_compiler_gnu
2324  
2325   fi
2326 < echo "$as_me:1745: result: $ac_cv_c_compiler_gnu" >&5
2326 > echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2327   echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2328   GCC=`test $ac_compiler_gnu = yes && echo yes`
2329   ac_test_CFLAGS=${CFLAGS+set}
2330   ac_save_CFLAGS=$CFLAGS
2331   CFLAGS="-g"
2332 < echo "$as_me:1751: checking whether $CC accepts -g" >&5
2332 > echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2333   echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2334   if test "${ac_cv_prog_cc_g+set}" = set; then
2335    echo $ECHO_N "(cached) $ECHO_C" >&6
2336   else
2337    cat >conftest.$ac_ext <<_ACEOF
2338 < #line 1757 "configure"
2339 < #include "confdefs.h"
2338 > /* confdefs.h.  */
2339 > _ACEOF
2340 > cat confdefs.h >>conftest.$ac_ext
2341 > cat >>conftest.$ac_ext <<_ACEOF
2342 > /* end confdefs.h.  */
2343  
2344   int
2345   main ()
# Line 1766 | Line 2350 | if { (eval echo "$as_me:1769: \"$ac_compile\"") >&5
2350   }
2351   _ACEOF
2352   rm -f conftest.$ac_objext
2353 < if { (eval echo "$as_me:1769: \"$ac_compile\"") >&5
2354 <  (eval $ac_compile) 2>&5
2353 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354 >  (eval $ac_compile) 2>conftest.er1
2355    ac_status=$?
2356 <  echo "$as_me:1772: \$? = $ac_status" >&5
2356 >  grep -v '^ *+' conftest.er1 >conftest.err
2357 >  rm -f conftest.er1
2358 >  cat conftest.err >&5
2359 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360    (exit $ac_status); } &&
2361 <         { ac_try='test -s conftest.$ac_objext'
2362 <  { (eval echo "$as_me:1775: \"$ac_try\"") >&5
2361 >         { ac_try='test -z "$ac_c_werror_flag"
2362 >                         || test ! -s conftest.err'
2363 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364    (eval $ac_try) 2>&5
2365    ac_status=$?
2366 <  echo "$as_me:1778: \$? = $ac_status" >&5
2366 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 >  (exit $ac_status); }; } &&
2368 >         { ac_try='test -s conftest.$ac_objext'
2369 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 >  (eval $ac_try) 2>&5
2371 >  ac_status=$?
2372 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373    (exit $ac_status); }; }; then
2374    ac_cv_prog_cc_g=yes
2375   else
2376    echo "$as_me: failed program was:" >&5
2377 < cat conftest.$ac_ext >&5
2377 > sed 's/^/| /' conftest.$ac_ext >&5
2378 >
2379   ac_cv_prog_cc_g=no
2380   fi
2381 < rm -f conftest.$ac_objext conftest.$ac_ext
2381 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2382   fi
2383 < echo "$as_me:1788: result: $ac_cv_prog_cc_g" >&5
2383 > echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2384   echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2385   if test "$ac_test_CFLAGS" = set; then
2386    CFLAGS=$ac_save_CFLAGS
# Line 1802 | Line 2397 | fi
2397      CFLAGS=
2398    fi
2399   fi
2400 + echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2401 + echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2402 + if test "${ac_cv_prog_cc_stdc+set}" = set; then
2403 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2404 + else
2405 +  ac_cv_prog_cc_stdc=no
2406 + ac_save_CC=$CC
2407 + cat >conftest.$ac_ext <<_ACEOF
2408 + /* confdefs.h.  */
2409 + _ACEOF
2410 + cat confdefs.h >>conftest.$ac_ext
2411 + cat >>conftest.$ac_ext <<_ACEOF
2412 + /* end confdefs.h.  */
2413 + #include <stdarg.h>
2414 + #include <stdio.h>
2415 + #include <sys/types.h>
2416 + #include <sys/stat.h>
2417 + /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2418 + struct buf { int x; };
2419 + FILE * (*rcsopen) (struct buf *, struct stat *, int);
2420 + static char *e (p, i)
2421 +     char **p;
2422 +     int i;
2423 + {
2424 +  return p[i];
2425 + }
2426 + static char *f (char * (*g) (char **, int), char **p, ...)
2427 + {
2428 +  char *s;
2429 +  va_list v;
2430 +  va_start (v,p);
2431 +  s = g (p, va_arg (v,int));
2432 +  va_end (v);
2433 +  return s;
2434 + }
2435 +
2436 + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2437 +   function prototypes and stuff, but not '\xHH' hex character constants.
2438 +   These don't provoke an error unfortunately, instead are silently treated
2439 +   as 'x'.  The following induces an error, until -std1 is added to get
2440 +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2441 +   array size at least.  It's necessary to write '\x00'==0 to get something
2442 +   that's true only with -std1.  */
2443 + int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2444 +
2445 + int test (int i, double x);
2446 + struct s1 {int (*f) (int a);};
2447 + struct s2 {int (*f) (double a);};
2448 + int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2449 + int argc;
2450 + char **argv;
2451 + int
2452 + main ()
2453 + {
2454 + return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2455 +  ;
2456 +  return 0;
2457 + }
2458 + _ACEOF
2459 + # Don't try gcc -ansi; that turns off useful extensions and
2460 + # breaks some systems' header files.
2461 + # AIX                   -qlanglvl=ansi
2462 + # Ultrix and OSF/1      -std1
2463 + # HP-UX 10.20 and later -Ae
2464 + # HP-UX older versions  -Aa -D_HPUX_SOURCE
2465 + # SVR4                  -Xc -D__EXTENSIONS__
2466 + for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2467 + do
2468 +  CC="$ac_save_CC $ac_arg"
2469 +  rm -f conftest.$ac_objext
2470 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2471 +  (eval $ac_compile) 2>conftest.er1
2472 +  ac_status=$?
2473 +  grep -v '^ *+' conftest.er1 >conftest.err
2474 +  rm -f conftest.er1
2475 +  cat conftest.err >&5
2476 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 +  (exit $ac_status); } &&
2478 +         { ac_try='test -z "$ac_c_werror_flag"
2479 +                         || test ! -s conftest.err'
2480 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 +  (eval $ac_try) 2>&5
2482 +  ac_status=$?
2483 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 +  (exit $ac_status); }; } &&
2485 +         { ac_try='test -s conftest.$ac_objext'
2486 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 +  (eval $ac_try) 2>&5
2488 +  ac_status=$?
2489 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 +  (exit $ac_status); }; }; then
2491 +  ac_cv_prog_cc_stdc=$ac_arg
2492 + break
2493 + else
2494 +  echo "$as_me: failed program was:" >&5
2495 + sed 's/^/| /' conftest.$ac_ext >&5
2496 +
2497 + fi
2498 + rm -f conftest.err conftest.$ac_objext
2499 + done
2500 + rm -f conftest.$ac_ext conftest.$ac_objext
2501 + CC=$ac_save_CC
2502 +
2503 + fi
2504 +
2505 + case "x$ac_cv_prog_cc_stdc" in
2506 +  x|xno)
2507 +    echo "$as_me:$LINENO: result: none needed" >&5
2508 + echo "${ECHO_T}none needed" >&6 ;;
2509 +  *)
2510 +    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2511 + echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2512 +    CC="$CC $ac_cv_prog_cc_stdc" ;;
2513 + esac
2514 +
2515   # Some people use a C++ compiler to compile C.  Since we use `exit',
2516   # in C++ we need to declare it.  In case someone uses the same compiler
2517   # for both compiling C and C++ we need to have the C++ compiler decide
# Line 1812 | Line 2522 | if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5
2522   #endif
2523   _ACEOF
2524   rm -f conftest.$ac_objext
2525 < if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5
2526 <  (eval $ac_compile) 2>&5
2525 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 >  (eval $ac_compile) 2>conftest.er1
2527    ac_status=$?
2528 <  echo "$as_me:1818: \$? = $ac_status" >&5
2528 >  grep -v '^ *+' conftest.er1 >conftest.err
2529 >  rm -f conftest.er1
2530 >  cat conftest.err >&5
2531 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532    (exit $ac_status); } &&
2533 <         { ac_try='test -s conftest.$ac_objext'
2534 <  { (eval echo "$as_me:1821: \"$ac_try\"") >&5
2533 >         { ac_try='test -z "$ac_c_werror_flag"
2534 >                         || test ! -s conftest.err'
2535 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536    (eval $ac_try) 2>&5
2537    ac_status=$?
2538 <  echo "$as_me:1824: \$? = $ac_status" >&5
2538 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 >  (exit $ac_status); }; } &&
2540 >         { ac_try='test -s conftest.$ac_objext'
2541 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542 >  (eval $ac_try) 2>&5
2543 >  ac_status=$?
2544 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545    (exit $ac_status); }; }; then
2546    for ac_declaration in \
2547 <   ''\
1828 <   '#include <stdlib.h>' \
2547 >   '' \
2548     'extern "C" void std::exit (int) throw (); using std::exit;' \
2549     'extern "C" void std::exit (int); using std::exit;' \
2550     'extern "C" void exit (int) throw ();' \
# Line 1833 | Line 2552 | do
2552     'void exit (int);'
2553   do
2554    cat >conftest.$ac_ext <<_ACEOF
2555 < #line 1836 "configure"
2556 < #include "confdefs.h"
2557 < #include <stdlib.h>
2555 > /* confdefs.h.  */
2556 > _ACEOF
2557 > cat confdefs.h >>conftest.$ac_ext
2558 > cat >>conftest.$ac_ext <<_ACEOF
2559 > /* end confdefs.h.  */
2560   $ac_declaration
2561 + #include <stdlib.h>
2562   int
2563   main ()
2564   {
# Line 1846 | Line 2568 | if { (eval echo "$as_me:1849: \"$ac_compile\"") >&5
2568   }
2569   _ACEOF
2570   rm -f conftest.$ac_objext
2571 < if { (eval echo "$as_me:1849: \"$ac_compile\"") >&5
2572 <  (eval $ac_compile) 2>&5
2571 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 >  (eval $ac_compile) 2>conftest.er1
2573    ac_status=$?
2574 <  echo "$as_me:1852: \$? = $ac_status" >&5
2574 >  grep -v '^ *+' conftest.er1 >conftest.err
2575 >  rm -f conftest.er1
2576 >  cat conftest.err >&5
2577 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578    (exit $ac_status); } &&
2579 <         { ac_try='test -s conftest.$ac_objext'
2580 <  { (eval echo "$as_me:1855: \"$ac_try\"") >&5
2579 >         { ac_try='test -z "$ac_c_werror_flag"
2580 >                         || test ! -s conftest.err'
2581 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582    (eval $ac_try) 2>&5
2583    ac_status=$?
2584 <  echo "$as_me:1858: \$? = $ac_status" >&5
2584 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 >  (exit $ac_status); }; } &&
2586 >         { ac_try='test -s conftest.$ac_objext'
2587 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 >  (eval $ac_try) 2>&5
2589 >  ac_status=$?
2590 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591    (exit $ac_status); }; }; then
2592    :
2593   else
2594    echo "$as_me: failed program was:" >&5
2595 < cat conftest.$ac_ext >&5
2595 > sed 's/^/| /' conftest.$ac_ext >&5
2596 >
2597   continue
2598   fi
2599 < rm -f conftest.$ac_objext conftest.$ac_ext
2599 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2600    cat >conftest.$ac_ext <<_ACEOF
2601 < #line 1868 "configure"
2602 < #include "confdefs.h"
2601 > /* confdefs.h.  */
2602 > _ACEOF
2603 > cat confdefs.h >>conftest.$ac_ext
2604 > cat >>conftest.$ac_ext <<_ACEOF
2605 > /* end confdefs.h.  */
2606   $ac_declaration
2607   int
2608   main ()
# Line 1877 | Line 2613 | if { (eval echo "$as_me:1880: \"$ac_compile\"") >&5
2613   }
2614   _ACEOF
2615   rm -f conftest.$ac_objext
2616 < if { (eval echo "$as_me:1880: \"$ac_compile\"") >&5
2617 <  (eval $ac_compile) 2>&5
2616 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 >  (eval $ac_compile) 2>conftest.er1
2618    ac_status=$?
2619 <  echo "$as_me:1883: \$? = $ac_status" >&5
2619 >  grep -v '^ *+' conftest.er1 >conftest.err
2620 >  rm -f conftest.er1
2621 >  cat conftest.err >&5
2622 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623    (exit $ac_status); } &&
2624 <         { ac_try='test -s conftest.$ac_objext'
2625 <  { (eval echo "$as_me:1886: \"$ac_try\"") >&5
2624 >         { ac_try='test -z "$ac_c_werror_flag"
2625 >                         || test ! -s conftest.err'
2626 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627    (eval $ac_try) 2>&5
2628    ac_status=$?
2629 <  echo "$as_me:1889: \$? = $ac_status" >&5
2629 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 >  (exit $ac_status); }; } &&
2631 >         { ac_try='test -s conftest.$ac_objext'
2632 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 >  (eval $ac_try) 2>&5
2634 >  ac_status=$?
2635 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636    (exit $ac_status); }; }; then
2637    break
2638   else
2639    echo "$as_me: failed program was:" >&5
2640 < cat conftest.$ac_ext >&5
2640 > sed 's/^/| /' conftest.$ac_ext >&5
2641 >
2642   fi
2643 < rm -f conftest.$ac_objext conftest.$ac_ext
2643 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2644   done
2645 < echo '#ifdef __cplusplus' >>confdefs.h
2646 < echo $ac_declaration      >>confdefs.h
2647 < echo '#endif'             >>confdefs.h
2645 > rm -f conftest*
2646 > if test -n "$ac_declaration"; then
2647 >  echo '#ifdef __cplusplus' >>confdefs.h
2648 >  echo $ac_declaration      >>confdefs.h
2649 >  echo '#endif'             >>confdefs.h
2650 > fi
2651  
2652   else
2653    echo "$as_me: failed program was:" >&5
2654 < cat conftest.$ac_ext >&5
2654 > sed 's/^/| /' conftest.$ac_ext >&5
2655 >
2656   fi
2657 < rm -f conftest.$ac_objext conftest.$ac_ext
2657 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658   ac_ext=c
2659   ac_cpp='$CPP $CPPFLAGS'
2660   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663  
1913 # Try to determine "good" native compiler flags if none specified on command
1914 # line
1915 if test "$ac_test_CFLAGS" != "set"; then
1916  CFLAGS=""
1917  case "${host_cpu}-${host_os}" in
2664  
1919  *linux*) if test "$CC" = icc; then
1920                    CFLAGS="-O"
1921                fi;;
1922  sparc-solaris2*) if test "$CC" = cc; then
1923                    CFLAGS="-native -fast -xO5 -dalign"
1924                 fi;;
1925
1926  alpha*-osf*)  if test "$CC" = cc; then
1927                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
1928                fi;;
1929
1930  hppa*-hpux*)  if test "$CC" = cc; then
1931                    CFLAGS="-Ae +O3 +Oall"
1932                fi;;
1933
1934   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
1935                    CFLAGS="-O3 -qtune=auto -qansialias -w"
1936                fi;;
1937   powerpc*-aix*)
1938        if test "$CC" = cc -o "$CC" = xlc; then
1939                CFLAGS="-O3 -qtune=auto -qansialias -w"
1940                echo "*******************************************************"
1941                echo "*  You have AIX on an unknown powerpc system.  It is  *"
1942                echo "*  recommended that you use                           *"
1943                echo "*                                                     *"
1944                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
1945                echo "*                                 ^^^                 *"
1946                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
1947                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
1948                echo "*******************************************************"
1949        fi;;
1950   *darwin*)
1951        if test "$CC" = xlc -o "$CC" = cc; then
1952                CFLAGS="-O3 -qtune=auto -w"
1953                echo "*******************************************************"
1954                echo "*  You have Darwin on an unknown powerpc system.      *"
1955                echo "*  It is recommended that you use                     *"
1956                echo "*                                                     *"
1957                echo "*  CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
1958                echo "*                               ^^^                   *"
1959                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
1960                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
1961                echo "*******************************************************"
1962        fi;;
1963  esac
1964
1965  # use default flags for gcc on all systems
1966  if test $ac_cv_c_compiler_gnu = yes; then
1967     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
1968  fi
1969
1970  # test for gcc-specific flags:
1971  if test $ac_cv_c_compiler_gnu = yes; then
1972    # -malign-double for x86 systems
1973
1974 echo "$as_me:1974: checking whether ${CC-cc} accepts -malign-double" >&5
1975 echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
1976 if test "${ac_align_double+set}" = set; then
1977  echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979  echo 'void f(){}' > conftest.c
1980 if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
1981        ac_align_double=yes
1982 else
1983        ac_align_double=no
1984 fi
1985 rm -f conftest*
1986
1987 fi
1988 echo "$as_me:1988: result: $ac_align_double" >&5
1989 echo "${ECHO_T}$ac_align_double" >&6
1990 if test "$ac_align_double" = yes; then
1991        :
1992        CFLAGS="$CFLAGS -malign-double"
1993 else
1994        :
1995
1996 fi
1997
1998    # -fstrict-aliasing for gcc-2.95+
1999
2000 echo "$as_me:2000: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
2001 echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
2002 if test "${ac_fstrict_aliasing+set}" = set; then
2003  echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005  echo 'void f(){}' > conftest.c
2006 if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
2007        ac_fstrict_aliasing=yes
2008 else
2009        ac_fstrict_aliasing=no
2010 fi
2011 rm -f conftest*
2012
2013 fi
2014 echo "$as_me:2014: result: $ac_fstrict_aliasing" >&5
2015 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
2016 if test "$ac_fstrict_aliasing" = yes; then
2017        :
2018        CFLAGS="$CFLAGS -fstrict-aliasing"
2019 else
2020        :
2021
2022 fi
2023
2024  fi
2025
2026  CPU_FLAGS=""
2027  if test "$GCC" = "yes"; then
2028                  case "${host_cpu}" in
2029          i586*)
2030
2031 echo "$as_me:2031: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
2032 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
2033 if test "${ac_cpu_pentium+set}" = set; then
2034  echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036  echo 'void f(){}' > conftest.c
2037 if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
2038        ac_cpu_pentium=yes
2039 else
2040        ac_cpu_pentium=no
2041 fi
2042 rm -f conftest*
2043
2044 fi
2045 echo "$as_me:2045: result: $ac_cpu_pentium" >&5
2046 echo "${ECHO_T}$ac_cpu_pentium" >&6
2047 if test "$ac_cpu_pentium" = yes; then
2048        :
2049        CPU_FLAGS=-mcpu=pentium
2050 else
2051        :
2052
2053 echo "$as_me:2053: checking whether ${CC-cc} accepts -mpentium" >&5
2054 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
2055 if test "${ac_pentium+set}" = set; then
2056  echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058  echo 'void f(){}' > conftest.c
2059 if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
2060        ac_pentium=yes
2061 else
2062        ac_pentium=no
2063 fi
2064 rm -f conftest*
2065
2066 fi
2067 echo "$as_me:2067: result: $ac_pentium" >&5
2068 echo "${ECHO_T}$ac_pentium" >&6
2069 if test "$ac_pentium" = yes; then
2070        :
2071        CPU_FLAGS=-mpentium
2072 else
2073        :
2074
2075 fi
2076
2077 fi
2078
2079                  ;;
2080          i686*)
2081
2082 echo "$as_me:2082: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
2083 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
2084 if test "${ac_cpu_pentiumpro+set}" = set; then
2085  echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087  echo 'void f(){}' > conftest.c
2088 if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
2089        ac_cpu_pentiumpro=yes
2090 else
2091        ac_cpu_pentiumpro=no
2092 fi
2093 rm -f conftest*
2094
2095 fi
2096 echo "$as_me:2096: result: $ac_cpu_pentiumpro" >&5
2097 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
2098 if test "$ac_cpu_pentiumpro" = yes; then
2099        :
2100        CPU_FLAGS=-mcpu=pentiumpro
2101 else
2102        :
2103
2104 echo "$as_me:2104: checking whether ${CC-cc} accepts -mpentiumpro" >&5
2105 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
2106 if test "${ac_pentiumpro+set}" = set; then
2107  echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109  echo 'void f(){}' > conftest.c
2110 if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
2111        ac_pentiumpro=yes
2112 else
2113        ac_pentiumpro=no
2114 fi
2115 rm -f conftest*
2116
2117 fi
2118 echo "$as_me:2118: result: $ac_pentiumpro" >&5
2119 echo "${ECHO_T}$ac_pentiumpro" >&6
2120 if test "$ac_pentiumpro" = yes; then
2121        :
2122        CPU_FLAGS=-mpentiumpro
2123 else
2124        :
2125
2126 fi
2127
2128 fi
2129
2130                  ;;
2131          powerpc*)
2132                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
2133                is60x=`echo $cputype | egrep "^600-9e?$"`
2134                if test -n "$is60x"; then
2135
2136 echo "$as_me:2136: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
2137 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
2138 if test "${ac_m_cpu_60x+set}" = set; then
2139  echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141  echo 'void f(){}' > conftest.c
2142 if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
2143        ac_m_cpu_60x=yes
2144 else
2145        ac_m_cpu_60x=no
2146 fi
2147 rm -f conftest*
2148
2149 fi
2150 echo "$as_me:2150: result: $ac_m_cpu_60x" >&5
2151 echo "${ECHO_T}$ac_m_cpu_60x" >&6
2152 if test "$ac_m_cpu_60x" = yes; then
2153        :
2154        CPU_FLAGS=-mcpu=$cputype
2155 else
2156        :
2157
2158 fi
2159
2160                elif test "$cputype" = 750; then
2161
2162 echo "$as_me:2162: checking whether we are using gcc 2.95 or later" >&5
2163 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
2164 if test "${ac_cv_prog_gcc_2_95+set}" = set; then
2165  echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167
2168 cat > conftest.c <<EOF
2169 #ifdef __GNUC__
2170 #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
2171     yes;
2172 #  endif
2173 #endif
2174 EOF
2175 if { ac_try='${CC-cc} -E conftest.c'
2176  { (eval echo "$as_me:2176: \"$ac_try\"") >&5
2177  (eval $ac_try) 2>&5
2178  ac_status=$?
2179  echo "$as_me:2179: \$? = $ac_status" >&5
2180  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2181  ac_cv_prog_gcc_2_95=yes
2182 else
2183  ac_cv_prog_gcc_2_95=no
2184 fi
2185
2186 fi
2187 echo "$as_me:2187: result: $ac_cv_prog_gcc_2_95" >&5
2188 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
2189 if test "$ac_cv_prog_gcc_2_95" = yes; then
2190        :
2191
2192 echo "$as_me:2192: checking whether ${CC-cc} accepts -mcpu=750" >&5
2193 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
2194 if test "${ac_m_cpu_750+set}" = set; then
2195  echo $ECHO_N "(cached) $ECHO_C" >&6
2196 else
2197  echo 'void f(){}' > conftest.c
2198 if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
2199        ac_m_cpu_750=yes
2200 else
2201        ac_m_cpu_750=no
2202 fi
2203 rm -f conftest*
2204
2205 fi
2206 echo "$as_me:2206: result: $ac_m_cpu_750" >&5
2207 echo "${ECHO_T}$ac_m_cpu_750" >&6
2208 if test "$ac_m_cpu_750" = yes; then
2209        :
2210        CPU_FLAGS=-mcpu=750
2211 else
2212        :
2213
2214 fi
2215
2216 else
2217        :
2218
2219 fi
2220
2221                fi
2222                if test -z "$CPU_FLAGS"; then
2223
2224 echo "$as_me:2224: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
2225 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
2226 if test "${ac_m_cpu_powerpc+set}" = set; then
2227  echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229  echo 'void f(){}' > conftest.c
2230 if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
2231        ac_m_cpu_powerpc=yes
2232 else
2233        ac_m_cpu_powerpc=no
2234 fi
2235 rm -f conftest*
2236
2237 fi
2238 echo "$as_me:2238: result: $ac_m_cpu_powerpc" >&5
2239 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
2240 if test "$ac_m_cpu_powerpc" = yes; then
2241        :
2242        CPU_FLAGS=-mcpu=powerpc
2243 else
2244        :
2245
2246 fi
2247
2248                fi
2249                if test -z "$CPU_FLAGS"; then
2250
2251 echo "$as_me:2251: checking whether ${CC-cc} accepts -mpowerpc" >&5
2252 echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
2253 if test "${ac_m_powerpc+set}" = set; then
2254  echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256  echo 'void f(){}' > conftest.c
2257 if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
2258        ac_m_powerpc=yes
2259 else
2260        ac_m_powerpc=no
2261 fi
2262 rm -f conftest*
2263
2264 fi
2265 echo "$as_me:2265: result: $ac_m_powerpc" >&5
2266 echo "${ECHO_T}$ac_m_powerpc" >&6
2267 if test "$ac_m_powerpc" = yes; then
2268        :
2269        CPU_FLAGS=-mpowerpc
2270 else
2271        :
2272
2273 fi
2274
2275                fi
2276          esac
2277  fi
2278
2279  if test -n "$CPU_FLAGS"; then
2280        CFLAGS="$CFLAGS $CPU_FLAGS"
2281  fi
2282
2283  if test -z "$CFLAGS"; then
2284        echo ""
2285        echo "********************************************************"
2286        echo "* WARNING: Don't know the best CFLAGS for this system  *"
2287        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
2288        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
2289        echo "********************************************************"
2290        echo ""
2291        CFLAGS="-O3"
2292  fi
2293
2294 echo "$as_me:2294: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
2295 echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
2296 if test "${ac_guessed_cflags+set}" = set; then
2297  echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299  echo 'void f(){}' > conftest.c
2300 if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
2301        ac_guessed_cflags=yes
2302 else
2303        ac_guessed_cflags=no
2304 fi
2305 rm -f conftest*
2306
2307 fi
2308 echo "$as_me:2308: result: $ac_guessed_cflags" >&5
2309 echo "${ECHO_T}$ac_guessed_cflags" >&6
2310 if test "$ac_guessed_cflags" = yes; then
2311        :
2312
2313 else
2314        :
2315
2316        echo ""
2317        echo "********************************************************"
2318        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
2319        echo "* your compiler.                                       *"
2320        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
2321        echo "********************************************************"
2322        echo ""
2323        CFLAGS=""
2324
2325 fi
2326
2327 fi
2328
2665   ac_ext=cc
2666   ac_cpp='$CXXCPP $CPPFLAGS'
2667   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2670   if test -n "$ac_tool_prefix"; then
2671 <  for ac_prog in $CCC icpc icc xlC g++ c++
2671 >  for ac_prog in $CCC icpc icc xlC CC g++ c++
2672    do
2673      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2674   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2675 < echo "$as_me:2339: checking for $ac_word" >&5
2675 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2676   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2677   if test "${ac_cv_prog_CXX+set}" = set; then
2678    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2344 | Line 2680 | else
2680    if test -n "$CXX"; then
2681    ac_cv_prog_CXX="$CXX" # Let the user override the test.
2682   else
2683 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2684 < ac_dummy="$PATH"
2685 < for ac_dir in $ac_dummy; do
2686 <  IFS=$ac_save_IFS
2687 <  test -z "$ac_dir" && ac_dir=.
2688 <  $as_executable_p "$ac_dir/$ac_word" || continue
2689 < ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2690 < echo "$as_me:2354: found $ac_dir/$ac_word" >&5
2691 < break
2683 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 > for as_dir in $PATH
2685 > do
2686 >  IFS=$as_save_IFS
2687 >  test -z "$as_dir" && as_dir=.
2688 >  for ac_exec_ext in '' $ac_executable_extensions; do
2689 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690 >    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2691 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 >    break 2
2693 >  fi
2694   done
2695 + done
2696  
2697   fi
2698   fi
2699   CXX=$ac_cv_prog_CXX
2700   if test -n "$CXX"; then
2701 <  echo "$as_me:2362: result: $CXX" >&5
2701 >  echo "$as_me:$LINENO: result: $CXX" >&5
2702   echo "${ECHO_T}$CXX" >&6
2703   else
2704 <  echo "$as_me:2365: result: no" >&5
2704 >  echo "$as_me:$LINENO: result: no" >&5
2705   echo "${ECHO_T}no" >&6
2706   fi
2707  
# Line 2371 | Line 2710 | if test -z "$CXX"; then
2710   fi
2711   if test -z "$CXX"; then
2712    ac_ct_CXX=$CXX
2713 <  for ac_prog in $CCC icpc icc xlC g++ c++
2713 >  for ac_prog in $CCC icpc icc xlC CC g++ c++
2714   do
2715    # Extract the first word of "$ac_prog", so it can be a program name with args.
2716   set dummy $ac_prog; ac_word=$2
2717 < echo "$as_me:2378: checking for $ac_word" >&5
2717 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2718   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2719   if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2720    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2383 | Line 2722 | else
2722    if test -n "$ac_ct_CXX"; then
2723    ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2724   else
2725 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2726 < ac_dummy="$PATH"
2727 < for ac_dir in $ac_dummy; do
2728 <  IFS=$ac_save_IFS
2729 <  test -z "$ac_dir" && ac_dir=.
2730 <  $as_executable_p "$ac_dir/$ac_word" || continue
2731 < ac_cv_prog_ac_ct_CXX="$ac_prog"
2732 < echo "$as_me:2393: found $ac_dir/$ac_word" >&5
2733 < break
2725 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 > for as_dir in $PATH
2727 > do
2728 >  IFS=$as_save_IFS
2729 >  test -z "$as_dir" && as_dir=.
2730 >  for ac_exec_ext in '' $ac_executable_extensions; do
2731 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732 >    ac_cv_prog_ac_ct_CXX="$ac_prog"
2733 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 >    break 2
2735 >  fi
2736   done
2737 + done
2738  
2739   fi
2740   fi
2741   ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2742   if test -n "$ac_ct_CXX"; then
2743 <  echo "$as_me:2401: result: $ac_ct_CXX" >&5
2743 >  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2744   echo "${ECHO_T}$ac_ct_CXX" >&6
2745   else
2746 <  echo "$as_me:2404: result: no" >&5
2746 >  echo "$as_me:$LINENO: result: no" >&5
2747   echo "${ECHO_T}no" >&6
2748   fi
2749  
# Line 2412 | Line 2754 | echo "$as_me:2415: checking whether we are using the G
2754    CXX=$ac_ct_CXX
2755   fi
2756  
2757 < echo "$as_me:2415: checking whether we are using the GNU C++ compiler" >&5
2757 >
2758 > # Provide some information about the compiler.
2759 > echo "$as_me:$LINENO:" \
2760 >     "checking for C++ compiler version" >&5
2761 > ac_compiler=`set X $ac_compile; echo $2`
2762 > { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2763 >  (eval $ac_compiler --version </dev/null >&5) 2>&5
2764 >  ac_status=$?
2765 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 >  (exit $ac_status); }
2767 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2768 >  (eval $ac_compiler -v </dev/null >&5) 2>&5
2769 >  ac_status=$?
2770 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 >  (exit $ac_status); }
2772 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2773 >  (eval $ac_compiler -V </dev/null >&5) 2>&5
2774 >  ac_status=$?
2775 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 >  (exit $ac_status); }
2777 >
2778 > echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2779   echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2780   if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2781    echo $ECHO_N "(cached) $ECHO_C" >&6
2782   else
2783    cat >conftest.$ac_ext <<_ACEOF
2784 < #line 2421 "configure"
2785 < #include "confdefs.h"
2784 > /* confdefs.h.  */
2785 > _ACEOF
2786 > cat confdefs.h >>conftest.$ac_ext
2787 > cat >>conftest.$ac_ext <<_ACEOF
2788 > /* end confdefs.h.  */
2789  
2790   int
2791   main ()
# Line 2433 | Line 2799 | if { (eval echo "$as_me:2436: \"$ac_compile\"") >&5
2799   }
2800   _ACEOF
2801   rm -f conftest.$ac_objext
2802 < if { (eval echo "$as_me:2436: \"$ac_compile\"") >&5
2803 <  (eval $ac_compile) 2>&5
2802 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2803 >  (eval $ac_compile) 2>conftest.er1
2804    ac_status=$?
2805 <  echo "$as_me:2439: \$? = $ac_status" >&5
2805 >  grep -v '^ *+' conftest.er1 >conftest.err
2806 >  rm -f conftest.er1
2807 >  cat conftest.err >&5
2808 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809    (exit $ac_status); } &&
2810 <         { ac_try='test -s conftest.$ac_objext'
2811 <  { (eval echo "$as_me:2442: \"$ac_try\"") >&5
2810 >         { ac_try='test -z "$ac_cxx_werror_flag"
2811 >                         || test ! -s conftest.err'
2812 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813    (eval $ac_try) 2>&5
2814    ac_status=$?
2815 <  echo "$as_me:2445: \$? = $ac_status" >&5
2815 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 >  (exit $ac_status); }; } &&
2817 >         { ac_try='test -s conftest.$ac_objext'
2818 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 >  (eval $ac_try) 2>&5
2820 >  ac_status=$?
2821 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822    (exit $ac_status); }; }; then
2823    ac_compiler_gnu=yes
2824   else
2825    echo "$as_me: failed program was:" >&5
2826 < cat conftest.$ac_ext >&5
2826 > sed 's/^/| /' conftest.$ac_ext >&5
2827 >
2828   ac_compiler_gnu=no
2829   fi
2830 < rm -f conftest.$ac_objext conftest.$ac_ext
2830 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2831   ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2832  
2833   fi
2834 < echo "$as_me:2457: result: $ac_cv_cxx_compiler_gnu" >&5
2834 > echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2835   echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2836   GXX=`test $ac_compiler_gnu = yes && echo yes`
2837   ac_test_CXXFLAGS=${CXXFLAGS+set}
2838   ac_save_CXXFLAGS=$CXXFLAGS
2839   CXXFLAGS="-g"
2840 < echo "$as_me:2463: checking whether $CXX accepts -g" >&5
2840 > echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2841   echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2842   if test "${ac_cv_prog_cxx_g+set}" = set; then
2843    echo $ECHO_N "(cached) $ECHO_C" >&6
2844   else
2845    cat >conftest.$ac_ext <<_ACEOF
2846 < #line 2469 "configure"
2847 < #include "confdefs.h"
2846 > /* confdefs.h.  */
2847 > _ACEOF
2848 > cat confdefs.h >>conftest.$ac_ext
2849 > cat >>conftest.$ac_ext <<_ACEOF
2850 > /* end confdefs.h.  */
2851  
2852   int
2853   main ()
# Line 2478 | Line 2858 | if { (eval echo "$as_me:2481: \"$ac_compile\"") >&5
2858   }
2859   _ACEOF
2860   rm -f conftest.$ac_objext
2861 < if { (eval echo "$as_me:2481: \"$ac_compile\"") >&5
2862 <  (eval $ac_compile) 2>&5
2861 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 >  (eval $ac_compile) 2>conftest.er1
2863    ac_status=$?
2864 <  echo "$as_me:2484: \$? = $ac_status" >&5
2864 >  grep -v '^ *+' conftest.er1 >conftest.err
2865 >  rm -f conftest.er1
2866 >  cat conftest.err >&5
2867 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868    (exit $ac_status); } &&
2869 <         { ac_try='test -s conftest.$ac_objext'
2870 <  { (eval echo "$as_me:2487: \"$ac_try\"") >&5
2869 >         { ac_try='test -z "$ac_cxx_werror_flag"
2870 >                         || test ! -s conftest.err'
2871 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872    (eval $ac_try) 2>&5
2873    ac_status=$?
2874 <  echo "$as_me:2490: \$? = $ac_status" >&5
2874 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 >  (exit $ac_status); }; } &&
2876 >         { ac_try='test -s conftest.$ac_objext'
2877 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 >  (eval $ac_try) 2>&5
2879 >  ac_status=$?
2880 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881    (exit $ac_status); }; }; then
2882    ac_cv_prog_cxx_g=yes
2883   else
2884    echo "$as_me: failed program was:" >&5
2885 < cat conftest.$ac_ext >&5
2885 > sed 's/^/| /' conftest.$ac_ext >&5
2886 >
2887   ac_cv_prog_cxx_g=no
2888   fi
2889 < rm -f conftest.$ac_objext conftest.$ac_ext
2889 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890   fi
2891 < echo "$as_me:2500: result: $ac_cv_prog_cxx_g" >&5
2891 > echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2892   echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2893   if test "$ac_test_CXXFLAGS" = set; then
2894    CXXFLAGS=$ac_save_CXXFLAGS
# Line 2515 | Line 2906 | for ac_declaration in \
2906    fi
2907   fi
2908   for ac_declaration in \
2909 <   ''\
2519 <   '#include <stdlib.h>' \
2909 >   '' \
2910     'extern "C" void std::exit (int) throw (); using std::exit;' \
2911     'extern "C" void std::exit (int); using std::exit;' \
2912     'extern "C" void exit (int) throw ();' \
# Line 2524 | Line 2914 | do
2914     'void exit (int);'
2915   do
2916    cat >conftest.$ac_ext <<_ACEOF
2917 < #line 2527 "configure"
2918 < #include "confdefs.h"
2919 < #include <stdlib.h>
2917 > /* confdefs.h.  */
2918 > _ACEOF
2919 > cat confdefs.h >>conftest.$ac_ext
2920 > cat >>conftest.$ac_ext <<_ACEOF
2921 > /* end confdefs.h.  */
2922   $ac_declaration
2923 + #include <stdlib.h>
2924   int
2925   main ()
2926   {
# Line 2537 | Line 2930 | if { (eval echo "$as_me:2540: \"$ac_compile\"") >&5
2930   }
2931   _ACEOF
2932   rm -f conftest.$ac_objext
2933 < if { (eval echo "$as_me:2540: \"$ac_compile\"") >&5
2934 <  (eval $ac_compile) 2>&5
2933 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2934 >  (eval $ac_compile) 2>conftest.er1
2935    ac_status=$?
2936 <  echo "$as_me:2543: \$? = $ac_status" >&5
2936 >  grep -v '^ *+' conftest.er1 >conftest.err
2937 >  rm -f conftest.er1
2938 >  cat conftest.err >&5
2939 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940    (exit $ac_status); } &&
2941 <         { ac_try='test -s conftest.$ac_objext'
2942 <  { (eval echo "$as_me:2546: \"$ac_try\"") >&5
2941 >         { ac_try='test -z "$ac_cxx_werror_flag"
2942 >                         || test ! -s conftest.err'
2943 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944    (eval $ac_try) 2>&5
2945    ac_status=$?
2946 <  echo "$as_me:2549: \$? = $ac_status" >&5
2947 <  (exit $ac_status); }; }; then
2948 <  :
2946 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 >  (exit $ac_status); }; } &&
2948 >         { ac_try='test -s conftest.$ac_objext'
2949 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 >  (eval $ac_try) 2>&5
2951 >  ac_status=$?
2952 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 >  (exit $ac_status); }; }; then
2954 >  :
2955   else
2956    echo "$as_me: failed program was:" >&5
2957 < cat conftest.$ac_ext >&5
2957 > sed 's/^/| /' conftest.$ac_ext >&5
2958 >
2959   continue
2960 + fi
2961 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962 +  cat >conftest.$ac_ext <<_ACEOF
2963 + /* confdefs.h.  */
2964 + _ACEOF
2965 + cat confdefs.h >>conftest.$ac_ext
2966 + cat >>conftest.$ac_ext <<_ACEOF
2967 + /* end confdefs.h.  */
2968 + $ac_declaration
2969 + int
2970 + main ()
2971 + {
2972 + exit (42);
2973 +  ;
2974 +  return 0;
2975 + }
2976 + _ACEOF
2977 + rm -f conftest.$ac_objext
2978 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979 +  (eval $ac_compile) 2>conftest.er1
2980 +  ac_status=$?
2981 +  grep -v '^ *+' conftest.er1 >conftest.err
2982 +  rm -f conftest.er1
2983 +  cat conftest.err >&5
2984 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 +  (exit $ac_status); } &&
2986 +         { ac_try='test -z "$ac_cxx_werror_flag"
2987 +                         || test ! -s conftest.err'
2988 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 +  (eval $ac_try) 2>&5
2990 +  ac_status=$?
2991 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 +  (exit $ac_status); }; } &&
2993 +         { ac_try='test -s conftest.$ac_objext'
2994 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 +  (eval $ac_try) 2>&5
2996 +  ac_status=$?
2997 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 +  (exit $ac_status); }; }; then
2999 +  break
3000 + else
3001 +  echo "$as_me: failed program was:" >&5
3002 + sed 's/^/| /' conftest.$ac_ext >&5
3003 +
3004 + fi
3005 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006 + done
3007 + rm -f conftest*
3008 + if test -n "$ac_declaration"; then
3009 +  echo '#ifdef __cplusplus' >>confdefs.h
3010 +  echo $ac_declaration      >>confdefs.h
3011 +  echo '#endif'             >>confdefs.h
3012 + fi
3013 +
3014 + ac_ext=c
3015 + ac_cpp='$CPP $CPPFLAGS'
3016 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019 +
3020 +
3021 + OOPSE_TEMPLATE_FLAGS=""
3022 + if test $ac_cv_cxx_compiler_gnu = no; then
3023 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
3024 + echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
3025 +  echo 'void f(){}' > conftest.cc
3026 +  if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
3027 +    echo "$as_me:$LINENO: result: yes" >&5
3028 + echo "${ECHO_T}yes" >&6
3029 +    OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
3030 +  else
3031 +    echo "$as_me:$LINENO: result: no" >&5
3032 + echo "${ECHO_T}no" >&6
3033 +  fi
3034 +  rm -f conftest*
3035 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
3036 + echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
3037 +  echo 'void f(){}' > conftest.cc
3038 +  if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
3039 +    echo "$as_me:$LINENO: result: yes" >&5
3040 + echo "${ECHO_T}yes" >&6
3041 +    OOPSE_TEMPLATE_FLAGS="-instances=static"
3042 +  else
3043 +    echo "$as_me:$LINENO: result: no" >&5
3044 + echo "${ECHO_T}no" >&6
3045 +  fi
3046 +  rm -f conftest*
3047 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
3048 + echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
3049 +  echo 'void f(){}' > conftest.cc
3050 +  if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
3051 +    echo "$as_me:$LINENO: result: yes" >&5
3052 + echo "${ECHO_T}yes" >&6
3053 +    OOPSE_TEMPLATE_FLAGS="-pto"
3054 +  else
3055 +    echo "$as_me:$LINENO: result: no" >&5
3056 + echo "${ECHO_T}no" >&6
3057 +  fi
3058 +  rm -f conftest*
3059 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
3060 + echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
3061 +  echo 'void f(){}' > conftest.cc
3062 +  if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
3063 +    echo "$as_me:$LINENO: result: yes" >&5
3064 + echo "${ECHO_T}yes" >&6
3065 +
3066 +
3067 +    EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
3068 +  else
3069 +    echo "$as_me:$LINENO: result: no" >&5
3070 + echo "${ECHO_T}no" >&6
3071 +  fi
3072 + fi
3073 +
3074 +
3075 +
3076 +
3077 + ac_ext=f90
3078 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3079 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3081 + if test -n "$ac_tool_prefix"; then
3082 +  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3083 +  do
3084 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3085 + set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3086 + echo "$as_me:$LINENO: checking for $ac_word" >&5
3087 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3088 + if test "${ac_cv_prog_F90+set}" = set; then
3089 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3090 + else
3091 +  if test -n "$F90"; then
3092 +  ac_cv_prog_F90="$F90" # Let the user override the test.
3093 + else
3094 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 + for as_dir in $PATH
3096 + do
3097 +  IFS=$as_save_IFS
3098 +  test -z "$as_dir" && as_dir=.
3099 +  for ac_exec_ext in '' $ac_executable_extensions; do
3100 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 +    ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3102 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 +    break 2
3104 +  fi
3105 + done
3106 + done
3107 +
3108 + fi
3109 + fi
3110 + F90=$ac_cv_prog_F90
3111 + if test -n "$F90"; then
3112 +  echo "$as_me:$LINENO: result: $F90" >&5
3113 + echo "${ECHO_T}$F90" >&6
3114 + else
3115 +  echo "$as_me:$LINENO: result: no" >&5
3116 + echo "${ECHO_T}no" >&6
3117 + fi
3118 +
3119 +    test -n "$F90" && break
3120 +  done
3121 + fi
3122 + if test -z "$F90"; then
3123 +  ac_ct_F90=$F90
3124 +  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3125 + do
3126 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
3127 + set dummy $ac_prog; ac_word=$2
3128 + echo "$as_me:$LINENO: checking for $ac_word" >&5
3129 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3130 + if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3131 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3132 + else
3133 +  if test -n "$ac_ct_F90"; then
3134 +  ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3135 + else
3136 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 + for as_dir in $PATH
3138 + do
3139 +  IFS=$as_save_IFS
3140 +  test -z "$as_dir" && as_dir=.
3141 +  for ac_exec_ext in '' $ac_executable_extensions; do
3142 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143 +    ac_cv_prog_ac_ct_F90="$ac_prog"
3144 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 +    break 2
3146 +  fi
3147 + done
3148 + done
3149 +
3150 + fi
3151 + fi
3152 + ac_ct_F90=$ac_cv_prog_ac_ct_F90
3153 + if test -n "$ac_ct_F90"; then
3154 +  echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3155 + echo "${ECHO_T}$ac_ct_F90" >&6
3156 + else
3157 +  echo "$as_me:$LINENO: result: no" >&5
3158 + echo "${ECHO_T}no" >&6
3159 + fi
3160 +
3161 +  test -n "$ac_ct_F90" && break
3162 + done
3163 +
3164 +  F90=$ac_ct_F90
3165 + fi
3166 +
3167 +
3168 + # If we don't use `.F90' as extension, the preprocessor is not run on the
3169 + # input file.
3170 + ac_save_ext=$ac_ext
3171 + ac_ext=F90
3172 + echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3173 + echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3174 + if test "${ac_cv_f90_compiler_gnu+set}" = set; then
3175 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3176 + else
3177 +  cat >conftest.$ac_ext <<_ACEOF
3178 +
3179 + program main
3180 +
3181 + #ifndef __GNUC__
3182 +       choke me
3183 + #endif
3184 +
3185 + end program main
3186 +
3187 + _ACEOF
3188 + rm -f conftest.$ac_objext
3189 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190 +  (eval $ac_compile) 2>conftest.er1
3191 +  ac_status=$?
3192 +  grep -v '^ *+' conftest.er1 >conftest.err
3193 +  rm -f conftest.er1
3194 +  cat conftest.err >&5
3195 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 +  (exit $ac_status); } &&
3197 +         { ac_try='test -z "$ac_f90_werror_flag"
3198 +                         || test ! -s conftest.err'
3199 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 +  (eval $ac_try) 2>&5
3201 +  ac_status=$?
3202 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 +  (exit $ac_status); }; } &&
3204 +         { ac_try='test -s conftest.$ac_objext'
3205 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 +  (eval $ac_try) 2>&5
3207 +  ac_status=$?
3208 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 +  (exit $ac_status); }; }; then
3210 +  ac_compiler_gnu=yes
3211 + else
3212 +  echo "$as_me: failed program was:" >&5
3213 + sed 's/^/| /' conftest.$ac_ext >&5
3214 +
3215 + ac_compiler_gnu=no
3216 + fi
3217 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3218 + ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3219 +
3220 + fi
3221 + echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3222 + echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3223 + ac_ext=$ac_save_ext
3224 + G95=`test $ac_compiler_gnu = yes && echo yes`
3225 + ac_ext=c
3226 + ac_cpp='$CPP $CPPFLAGS'
3227 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230 +
3231 +
3232 +
3233 +
3234 +
3235 + # Try to determine native compiler flags that allow us to use F90 suffix
3236 + # for preprocessed f90 source.
3237 +
3238 + if test "$ac_test_PREPFLAG" != "set"; then
3239 +  PREPFLAG=""
3240 +  case "${host_cpu}-${host_os}" in
3241 +
3242 +  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3243 +                    PREPFLAG="-fpp1 "
3244 +                fi;;
3245 +  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3246 +                    PREPFLAG="-qsuffix=cpp=F90 "
3247 +                fi;;
3248 +  *darwin*)
3249 +        if test "$F90" = f90 -o "$F90" = xlf90; then
3250 +                PREPFLAG="-qsuffix=cpp=F90 "
3251 +        fi;;
3252 +  esac
3253 +
3254 +  if test -z "$PREPFLAG"; then
3255 +        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3256 + echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3257 +        PREPFLAG=""
3258 +  fi
3259 +
3260 +  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3261 + echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3262 +
3263 +
3264 +  ac_ext=f90
3265 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3266 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3268 +
3269 +  ac_save_ext=$ac_ext
3270 +  ac_ext=F90
3271 +  ac_save_F90FLAGS=$F90FLAGS
3272 +
3273 +  if test "$PREPFLAG"; then
3274 +  F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3275 + fi
3276 +
3277 +    cat >conftest.$ac_ext <<_ACEOF
3278 +
3279 +
3280 + program main
3281 +
3282 +  integer :: i
3283 +  i = 1
3284 +
3285 +
3286 + end program main
3287 +
3288 + _ACEOF
3289 + rm -f conftest.$ac_objext
3290 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291 +  (eval $ac_compile) 2>conftest.er1
3292 +  ac_status=$?
3293 +  grep -v '^ *+' conftest.er1 >conftest.err
3294 +  rm -f conftest.er1
3295 +  cat conftest.err >&5
3296 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 +  (exit $ac_status); } &&
3298 +         { ac_try='test -z "$ac_f90_werror_flag"
3299 +                         || test ! -s conftest.err'
3300 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 +  (eval $ac_try) 2>&5
3302 +  ac_status=$?
3303 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 +  (exit $ac_status); }; } &&
3305 +         { ac_try='test -s conftest.$ac_objext'
3306 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 +  (eval $ac_try) 2>&5
3308 +  ac_status=$?
3309 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 +  (exit $ac_status); }; }; then
3311 +  prepflagworks=1
3312 + else
3313 +  echo "$as_me: failed program was:" >&5
3314 + sed 's/^/| /' conftest.$ac_ext >&5
3315 +
3316 + prepflagworks=0
3317 + fi
3318 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3319 +
3320 +  F90FLAGS=$ac_save_F90FLAGS
3321 +  ac_ext=$ac_save_ext
3322 +  ac_ext=c
3323 + ac_cpp='$CPP $CPPFLAGS'
3324 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327 +
3328 +
3329 +  if test "$prepflagworks" = 1; then
3330 +    echo "$as_me:$LINENO: result: yes" >&5
3331 + echo "${ECHO_T}yes" >&6
3332 +
3333 +  else
3334 +    echo "$as_me:$LINENO: result: no" >&5
3335 + echo "${ECHO_T}no" >&6
3336 +    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3337 + echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3338 +   { (exit 1); exit 1; }; }
3339 +  fi
3340 + fi
3341 +
3342 +
3343 +
3344 +
3345 +
3346 + # Try to determine native compiler flags that allow us to use F90 suffix
3347 + # for preprocessed f90 source with -D type defines
3348 +
3349 + if test "$ac_test_PREPDEFFLAG" != "set"; then
3350 +  PREPDEFFLAG=""
3351 +  case "${host_cpu}-${host_os}" in
3352 +
3353 +  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3354 +                    PREPDEFFLAG=" "
3355 +                fi;;
3356 +  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3357 +                    PREPDEFFLAG="-WF,"
3358 +                fi;;
3359 +  *darwin*)
3360 +        if test "$F90" = f90 -o "$F90" = xlf90; then
3361 +                PREPDEFFLAG="-WF,"
3362 +        fi;;
3363 +  esac
3364 +
3365 +  if test -z "$PREPDEFFLAG"; then
3366 +        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3367 + echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3368 +        PREPDEFFLAG=" "
3369 +  fi
3370 +
3371 +  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3372 + echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3373 +
3374 +
3375 +  ac_ext=f90
3376 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3377 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3379 +
3380 +  ac_save_ext=$ac_ext
3381 +  ac_ext=F90
3382 +  ac_save_F90FLAGS=$F90FLAGS
3383 +
3384 +  if test "$PREPDEFFLAG"; then
3385 +  F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3386 + fi
3387 +
3388 +    cat >conftest.$ac_ext <<_ACEOF
3389 +
3390 +
3391 + program main
3392 +
3393 +  integer :: i
3394 + #ifdef TEST
3395 +  i = 1
3396 + #else
3397 +  choke me
3398 + #endif
3399 +
3400 +
3401 + end program main
3402 +
3403 + _ACEOF
3404 + rm -f conftest.$ac_objext
3405 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3406 +  (eval $ac_compile) 2>conftest.er1
3407 +  ac_status=$?
3408 +  grep -v '^ *+' conftest.er1 >conftest.err
3409 +  rm -f conftest.er1
3410 +  cat conftest.err >&5
3411 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 +  (exit $ac_status); } &&
3413 +         { ac_try='test -z "$ac_f90_werror_flag"
3414 +                         || test ! -s conftest.err'
3415 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 +  (eval $ac_try) 2>&5
3417 +  ac_status=$?
3418 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 +  (exit $ac_status); }; } &&
3420 +         { ac_try='test -s conftest.$ac_objext'
3421 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 +  (eval $ac_try) 2>&5
3423 +  ac_status=$?
3424 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 +  (exit $ac_status); }; }; then
3426 +  prepdefflagworks=1
3427 + else
3428 +  echo "$as_me: failed program was:" >&5
3429 + sed 's/^/| /' conftest.$ac_ext >&5
3430 +
3431 + prepdefflagworks=0
3432 + fi
3433 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3434 +
3435 +  F90FLAGS=$ac_save_F90FLAGS
3436 +  ac_ext=$ac_save_ext
3437 +  ac_ext=c
3438 + ac_cpp='$CPP $CPPFLAGS'
3439 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3442 +
3443 +
3444 +
3445 +  if test "$prepdefflagworks" = 1; then
3446 +    echo "$as_me:$LINENO: result: yes" >&5
3447 + echo "${ECHO_T}yes" >&6
3448 +
3449 +  else
3450 +    echo "$as_me:$LINENO: result: no" >&5
3451 + echo "${ECHO_T}no" >&6
3452 +    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3453 + echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3454 +   { (exit 1); exit 1; }; }
3455 +  fi
3456 + fi
3457 +
3458 + ac_ext=f90
3459 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3460 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3462 +
3463 +
3464 +
3465 + ac_ext=f90
3466 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3467 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3469 + echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3470 + echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3471 + if test "${ac_cv_prog_f90_v+set}" = set; then
3472 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3473 + else
3474 +
3475 + cat >conftest.$ac_ext <<_ACEOF
3476 +
3477 + program main
3478 +
3479 +
3480 + end program main
3481 +
3482 + _ACEOF
3483 + rm -f conftest.$ac_objext
3484 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485 +  (eval $ac_compile) 2>conftest.er1
3486 +  ac_status=$?
3487 +  grep -v '^ *+' conftest.er1 >conftest.err
3488 +  rm -f conftest.er1
3489 +  cat conftest.err >&5
3490 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 +  (exit $ac_status); } &&
3492 +         { ac_try='test -z "$ac_f90_werror_flag"
3493 +                         || test ! -s conftest.err'
3494 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 +  (eval $ac_try) 2>&5
3496 +  ac_status=$?
3497 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 +  (exit $ac_status); }; } &&
3499 +         { ac_try='test -s conftest.$ac_objext'
3500 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 +  (eval $ac_try) 2>&5
3502 +  ac_status=$?
3503 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 +  (exit $ac_status); }; }; then
3505 +  ac_cv_prog_f90_v=
3506 + # Try some options frequently used verbose output
3507 + for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3508 +  ac_ext=f90
3509 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3510 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3512 +
3513 + cat >conftest.$ac_ext <<_ACEOF
3514 +
3515 + program main
3516 +
3517 +
3518 + end program main
3519 +
3520 + _ACEOF
3521 +
3522 + # Compile and link our simple test program by passing a flag (argument
3523 + # 1 to this macro) to the Fortran 90 compiler in order to get
3524 + # "verbose" output that we can then parse for the Fortran 90 linker
3525 + # flags.
3526 + ac_save_F90FLAGS=$F90FLAGS
3527 + F90FLAGS="$F90FLAGS $ac_verb"
3528 +
3529 + (eval echo $as_me:3529: \"$ac_link\") >&5
3530 + ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3531 + echo "$ac_f90_v_output" >&5
3532 + F90FLAGS=$ac_save_F90FLAGS
3533 +
3534 + rm -f conftest.*
3535 + ac_ext=f90
3536 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3537 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3539 +
3540 + # If we are using xlf then replace all the commas with spaces.
3541 + if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3542 +  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3543 + fi
3544 +
3545 + # If we are using Cray Fortran then delete quotes.
3546 + # Use "\"" instead of '"' for font-lock-mode.
3547 + # FIXME: a more general fix for quoted arguments with spaces?
3548 + if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3549 +  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3550 + fi
3551 +  # look for -l* and *.a constructs in the output
3552 +  for ac_arg in $ac_f90_v_output; do
3553 +     case $ac_arg in
3554 +        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3555 +          ac_cv_prog_f90_v=$ac_verb
3556 +          break 2 ;;
3557 +     esac
3558 +  done
3559 + done
3560 + if test -z "$ac_cv_prog_f90_v"; then
3561 +   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3562 + echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3563 + fi
3564 + else
3565 +  echo "$as_me: failed program was:" >&5
3566 + sed 's/^/| /' conftest.$ac_ext >&5
3567 +
3568 + { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3569 + echo "$as_me: WARNING: compilation failed" >&2;}
3570 + fi
3571 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3572 +
3573 + fi
3574 + echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3575 + echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3576 + echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3577 + echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3578 + if test "${ac_cv_flibs+set}" = set; then
3579 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3580 + else
3581 +  if test "x$F90LIBS" != "x"; then
3582 +  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3583 + else
3584 +
3585 + ac_ext=f90
3586 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3587 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3589 +
3590 + cat >conftest.$ac_ext <<_ACEOF
3591 +
3592 + program main
3593 +
3594 +
3595 + end program main
3596 +
3597 + _ACEOF
3598 +
3599 + # Compile and link our simple test program by passing a flag (argument
3600 + # 1 to this macro) to the Fortran 90 compiler in order to get
3601 + # "verbose" output that we can then parse for the Fortran 90 linker
3602 + # flags.
3603 + ac_save_F90FLAGS=$F90FLAGS
3604 + F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3605 +
3606 + (eval echo $as_me:3606: \"$ac_link\") >&5
3607 + ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3608 + echo "$ac_f90_v_output" >&5
3609 + F90FLAGS=$ac_save_F90FLAGS
3610 +
3611 + rm -f conftest.*
3612 + ac_ext=f90
3613 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3614 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3616 +
3617 + # If we are using xlf then replace all the commas with spaces.
3618 + if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3619 +  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3620 + fi
3621 +
3622 + # If we are using Cray Fortran then delete quotes.
3623 + # Use "\"" instead of '"' for font-lock-mode.
3624 + # FIXME: a more general fix for quoted arguments with spaces?
3625 + if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3626 +  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3627 + fi
3628 +
3629 + ac_cv_f90libs=
3630 +
3631 + # Save positional arguments (if any)
3632 + ac_save_positional="$@"
3633 +
3634 + set X $ac_f90_v_output
3635 + while test $# != 1; do
3636 +  shift
3637 +  ac_arg=$1
3638 +  case $ac_arg in
3639 +        [\\/]*.a | ?:[\\/]*.a)
3640 +            ac_exists=false
3641 +  for ac_i in $ac_cv_f90libs; do
3642 +    if test x"$ac_arg" = x"$ac_i"; then
3643 +      ac_exists=true
3644 +      break
3645 +    fi
3646 +  done
3647 +
3648 +  if test x"$ac_exists" = xtrue; then
3649 +  :
3650 + else
3651 +  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3652 + fi
3653 +
3654 +          ;;
3655 +        -bI:*)
3656 +            ac_exists=false
3657 +  for ac_i in $ac_cv_f90libs; do
3658 +    if test x"$ac_arg" = x"$ac_i"; then
3659 +      ac_exists=true
3660 +      break
3661 +    fi
3662 +  done
3663 +
3664 +  if test x"$ac_exists" = xtrue; then
3665 +  :
3666 + else
3667 +  if test "$ac_compiler_gnu" = yes; then
3668 +  for ac_link_opt in $ac_arg; do
3669 +    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3670 +  done
3671 + else
3672 +  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3673 + fi
3674 + fi
3675 +
3676 +          ;;
3677 +          # Ignore these flags.
3678 +        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
3679 +          ;;
3680 +        -lkernel32)
3681 +          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3682 +          ;;
3683 +        -[LRuY])
3684 +          # These flags, when seen by themselves, take an argument.
3685 +          # We remove the space between option and argument and re-iterate
3686 +          # unless we find an empty arg or a new option (starting with -)
3687 +          case $2 in
3688 +             "" | -*);;
3689 +             *)
3690 +                ac_arg="$ac_arg$2"
3691 +
3692 +                shift; shift
3693 +                set X $ac_arg "$@"
3694 +                ;;
3695 +          esac
3696 +          ;;
3697 +        -YP,*)
3698 +          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3699 +              ac_exists=false
3700 +  for ac_i in $ac_cv_f90libs; do
3701 +    if test x"$ac_j" = x"$ac_i"; then
3702 +      ac_exists=true
3703 +      break
3704 +    fi
3705 +  done
3706 +
3707 +  if test x"$ac_exists" = xtrue; then
3708 +  :
3709 + else
3710 +  ac_arg="$ac_arg $ac_j"
3711 +                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3712 + fi
3713 +
3714 +          done
3715 +          ;;
3716 +        -[lLR]*)
3717 +            ac_exists=false
3718 +  for ac_i in $ac_cv_f90libs; do
3719 +    if test x"$ac_arg" = x"$ac_i"; then
3720 +      ac_exists=true
3721 +      break
3722 +    fi
3723 +  done
3724 +
3725 +  if test x"$ac_exists" = xtrue; then
3726 +  :
3727 + else
3728 +  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3729 + fi
3730 +
3731 +          ;;
3732 +          # Ignore everything else.
3733 +  esac
3734 + done
3735 + # restore positional arguments
3736 + set X $ac_save_positional; shift
3737 +
3738 + # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
3739 + # then we insist that the "run path" must be an absolute path (i.e. it
3740 + # must begin with a "/").
3741 + case `(uname -sr) 2>/dev/null` in
3742 +   "SunOS 5"*)
3743 +      ac_ld_run_path=`echo $ac_f90_v_output |
3744 +                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3745 +      test "x$ac_ld_run_path" != x &&
3746 +
3747 +        if test "$ac_compiler_gnu" = yes; then
3748 +  for ac_link_opt in $ac_ld_run_path; do
3749 +    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3750 +  done
3751 + else
3752 +  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
3753 + fi
3754 +      ;;
3755 + esac
3756 + fi # test "x$F90LIBS" = "x"
3757 +
3758 + fi
3759 + echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
3760 + echo "${ECHO_T}$ac_cv_flibs" >&6
3761 + F90LIBS="$ac_cv_f90libs"
3762 +
3763 + ac_ext=f90
3764 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3765 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3767 +
3768 +
3769 + echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
3770 + echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
3771 + if test "${ac_cv_f90_mangling+set}" = set; then
3772 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3773 + else
3774 +  ac_ext=f90
3775 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3776 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3778 + cat >conftest.$ac_ext <<_ACEOF
3779 + subroutine foobar()
3780 + return
3781 + end
3782 + subroutine foo_bar()
3783 + return
3784 + end
3785 + _ACEOF
3786 + rm -f conftest.$ac_objext
3787 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788 +  (eval $ac_compile) 2>conftest.er1
3789 +  ac_status=$?
3790 +  grep -v '^ *+' conftest.er1 >conftest.err
3791 +  rm -f conftest.er1
3792 +  cat conftest.err >&5
3793 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 +  (exit $ac_status); } &&
3795 +         { ac_try='test -z "$ac_f90_werror_flag"
3796 +                         || test ! -s conftest.err'
3797 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 +  (eval $ac_try) 2>&5
3799 +  ac_status=$?
3800 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 +  (exit $ac_status); }; } &&
3802 +         { ac_try='test -s conftest.$ac_objext'
3803 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 +  (eval $ac_try) 2>&5
3805 +  ac_status=$?
3806 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 +  (exit $ac_status); }; }; then
3808 +  mv conftest.$ac_objext cf90_test.$ac_objext
3809 +
3810 +  ac_ext=c
3811 + ac_cpp='$CPP $CPPFLAGS'
3812 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815 +
3816 +  ac_save_LIBS=$LIBS
3817 +  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
3818 +
3819 +  ac_success=no
3820 +  for ac_foobar in foobar FOOBAR; do
3821 +    for ac_underscore in "" "_"; do
3822 +      ac_func="$ac_foobar$ac_underscore"
3823 +      cat >conftest.$ac_ext <<_ACEOF
3824 + /* confdefs.h.  */
3825 + _ACEOF
3826 + cat confdefs.h >>conftest.$ac_ext
3827 + cat >>conftest.$ac_ext <<_ACEOF
3828 + /* end confdefs.h.  */
3829 +
3830 + /* Override any gcc2 internal prototype to avoid an error.  */
3831 + #ifdef __cplusplus
3832 + extern "C"
3833 + #endif
3834 + /* We use char because int might match the return type of a gcc2
3835 +   builtin and then its argument prototype would still apply.  */
3836 + char $ac_func ();
3837 + int
3838 + main ()
3839 + {
3840 + $ac_func ();
3841 +  ;
3842 +  return 0;
3843 + }
3844 + _ACEOF
3845 + rm -f conftest.$ac_objext conftest$ac_exeext
3846 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 +  (eval $ac_link) 2>conftest.er1
3848 +  ac_status=$?
3849 +  grep -v '^ *+' conftest.er1 >conftest.err
3850 +  rm -f conftest.er1
3851 +  cat conftest.err >&5
3852 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 +  (exit $ac_status); } &&
3854 +         { ac_try='test -z "$ac_c_werror_flag"
3855 +                         || test ! -s conftest.err'
3856 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 +  (eval $ac_try) 2>&5
3858 +  ac_status=$?
3859 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 +  (exit $ac_status); }; } &&
3861 +         { ac_try='test -s conftest$ac_exeext'
3862 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 +  (eval $ac_try) 2>&5
3864 +  ac_status=$?
3865 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 +  (exit $ac_status); }; }; then
3867 +  ac_success=yes; break 2
3868 + else
3869 +  echo "$as_me: failed program was:" >&5
3870 + sed 's/^/| /' conftest.$ac_ext >&5
3871 +
3872 + fi
3873 + rm -f conftest.err conftest.$ac_objext \
3874 +      conftest$ac_exeext conftest.$ac_ext
3875 +    done
3876 +  done
3877 +
3878 +  if test "$ac_success" = "yes"; then
3879 +     case $ac_foobar in
3880 +        foobar)
3881 +           ac_case=lower
3882 +           ac_foo_bar=foo_bar
3883 +           ;;
3884 +        FOOBAR)
3885 +           ac_case=upper
3886 +           ac_foo_bar=FOO_BAR
3887 +           ;;
3888 +     esac
3889 +
3890 +     ac_success_extra=no
3891 +     for ac_extra in "" "_"; do
3892 +        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3893 +
3894 +        cat >conftest.$ac_ext <<_ACEOF
3895 + /* confdefs.h.  */
3896 + _ACEOF
3897 + cat confdefs.h >>conftest.$ac_ext
3898 + cat >>conftest.$ac_ext <<_ACEOF
3899 + /* end confdefs.h.  */
3900 +
3901 + /* Override any gcc2 internal prototype to avoid an error.  */
3902 + #ifdef __cplusplus
3903 + extern "C"
3904 + #endif
3905 + /* We use char because int might match the return type of a gcc2
3906 +   builtin and then its argument prototype would still apply.  */
3907 + char $ac_func ();
3908 + int
3909 + main ()
3910 + {
3911 + $ac_func ();
3912 +  ;
3913 +  return 0;
3914 + }
3915 + _ACEOF
3916 + rm -f conftest.$ac_objext conftest$ac_exeext
3917 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3918 +  (eval $ac_link) 2>conftest.er1
3919 +  ac_status=$?
3920 +  grep -v '^ *+' conftest.er1 >conftest.err
3921 +  rm -f conftest.er1
3922 +  cat conftest.err >&5
3923 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 +  (exit $ac_status); } &&
3925 +         { ac_try='test -z "$ac_c_werror_flag"
3926 +                         || test ! -s conftest.err'
3927 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928 +  (eval $ac_try) 2>&5
3929 +  ac_status=$?
3930 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 +  (exit $ac_status); }; } &&
3932 +         { ac_try='test -s conftest$ac_exeext'
3933 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 +  (eval $ac_try) 2>&5
3935 +  ac_status=$?
3936 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 +  (exit $ac_status); }; }; then
3938 +  ac_success_extra=yes; break
3939 + else
3940 +  echo "$as_me: failed program was:" >&5
3941 + sed 's/^/| /' conftest.$ac_ext >&5
3942 +
3943 + fi
3944 + rm -f conftest.err conftest.$ac_objext \
3945 +      conftest$ac_exeext conftest.$ac_ext
3946 +     done
3947 +
3948 +     if test "$ac_success_extra" = "yes"; then
3949 +        ac_cv_f90_mangling="$ac_case case"
3950 +        if test -z "$ac_underscore"; then
3951 +           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
3952 +        else
3953 +           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3954 +
3955 +        fi
3956 +        if test -z "$ac_extra"; then
3957 +           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
3958 +        else
3959 +           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
3960 +        fi
3961 +      else
3962 +        ac_cv_f90_mangling="unknown"
3963 +      fi
3964 +  else
3965 +     ac_cv_f90_mangling="unknown"
3966 +
3967 +  fi
3968 +
3969 +  LIBS=$ac_save_LIBS
3970 +  ac_ext=f90
3971 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3972 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3974 +  rm -f cf90_test* conftest*
3975 + else
3976 +  echo "$as_me: failed program was:" >&5
3977 + sed 's/^/| /' conftest.$ac_ext >&5
3978 +
3979 + fi
3980 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3981 + ac_ext=f90
3982 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3983 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3984 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3985 +
3986 + fi
3987 + echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
3988 + echo "${ECHO_T}$ac_cv_f90_mangling" >&6
3989 +
3990 +
3991 +
3992 + case $ac_cv_f90_mangling in
3993 +  "lower case, no underscore, no extra underscore")
3994 +          cat >>confdefs.h <<\_ACEOF
3995 + #define F90_FUNC(name,NAME) name
3996 + _ACEOF
3997 +
3998 +          cat >>confdefs.h <<\_ACEOF
3999 + #define F90_FUNC_(name,NAME) name
4000 + _ACEOF
4001 + ;;
4002 +  "lower case, no underscore, extra underscore")
4003 +          cat >>confdefs.h <<\_ACEOF
4004 + #define F90_FUNC(name,NAME) name
4005 + _ACEOF
4006 +
4007 +          cat >>confdefs.h <<\_ACEOF
4008 + #define F90_FUNC_(name,NAME) name ## _
4009 + _ACEOF
4010 + ;;
4011 +  "lower case, underscore, no extra underscore")
4012 +          cat >>confdefs.h <<\_ACEOF
4013 + #define F90_FUNC(name,NAME) name ## _
4014 + _ACEOF
4015 +
4016 +          cat >>confdefs.h <<\_ACEOF
4017 + #define F90_FUNC_(name,NAME) name ## _
4018 + _ACEOF
4019 + ;;
4020 +  "lower case, underscore, extra underscore")
4021 +          cat >>confdefs.h <<\_ACEOF
4022 + #define F90_FUNC(name,NAME) name ## _
4023 + _ACEOF
4024 +
4025 +          cat >>confdefs.h <<\_ACEOF
4026 + #define F90_FUNC_(name,NAME) name ## __
4027 + _ACEOF
4028 + ;;
4029 +  "upper case, no underscore, no extra underscore")
4030 +          cat >>confdefs.h <<\_ACEOF
4031 + #define F90_FUNC(name,NAME) NAME
4032 + _ACEOF
4033 +
4034 +          cat >>confdefs.h <<\_ACEOF
4035 + #define F90_FUNC_(name,NAME) NAME
4036 + _ACEOF
4037 + ;;
4038 +  "upper case, no underscore, extra underscore")
4039 +          cat >>confdefs.h <<\_ACEOF
4040 + #define F90_FUNC(name,NAME) NAME
4041 + _ACEOF
4042 +
4043 +          cat >>confdefs.h <<\_ACEOF
4044 + #define F90_FUNC_(name,NAME) NAME ## _
4045 + _ACEOF
4046 + ;;
4047 +  "upper case, underscore, no extra underscore")
4048 +          cat >>confdefs.h <<\_ACEOF
4049 + #define F90_FUNC(name,NAME) NAME ## _
4050 + _ACEOF
4051 +
4052 +          cat >>confdefs.h <<\_ACEOF
4053 + #define F90_FUNC_(name,NAME) NAME ## _
4054 + _ACEOF
4055 + ;;
4056 +  "upper case, underscore, extra underscore")
4057 +          cat >>confdefs.h <<\_ACEOF
4058 + #define F90_FUNC(name,NAME) NAME ## _
4059 + _ACEOF
4060 +
4061 +          cat >>confdefs.h <<\_ACEOF
4062 + #define F90_FUNC_(name,NAME) NAME ## __
4063 + _ACEOF
4064 + ;;
4065 +  *)
4066 +          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4067 + echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4068 +          ;;
4069 + esac
4070 +
4071 +
4072 +
4073 +
4074 +
4075 + echo "$as_me:$LINENO: checking for module suffix" >&5
4076 + echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
4077 + rm -f conftest*
4078 + # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4079 + rm -f work*
4080 + cat >conftest.f90 <<EOF
4081 +        module conftest
4082 +        integer n
4083 +        parameter (n=1)
4084 +        end module conftest
4085 + EOF
4086 + # SGI and absoft compilers generates module name in upper case!
4087 + testname="conftest"
4088 + modcase="lower"
4089 + if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4090 +    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
4091 +    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
4092 +    if test -z "$MOD" ; then
4093 +        MOD=`ls CONFTEST* 2>/dev/null \
4094 +                | grep -v CONFTEST.f | grep -v CONFTEST.o`
4095 +        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
4096 +        if test -n "$MOD" ; then
4097 +            testname="CONFTEST"
4098 +            modcase="upper"
4099 +        fi
4100 +    fi
4101 +    if test -z "$MOD" ; then
4102 +        echo "$as_me:$LINENO: result: unknown" >&5
4103 + echo "${ECHO_T}unknown" >&6
4104 +        # Use mod if we can't figure it out
4105 +        MOD="mod"
4106 +    else
4107 +        echo "$as_me:$LINENO: result: $MOD" >&5
4108 + echo "${ECHO_T}$MOD" >&6
4109 +    fi
4110 +    if test -s work.pcl ; then
4111 +        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
4112 + echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4113 +    fi
4114 + else
4115 +    echo "$as_me:$LINENO: result: unknown" >&5
4116 + echo "${ECHO_T}unknown" >&6
4117 + fi
4118 +
4119 +
4120 +
4121 +
4122 +
4123 + # Check for module include path (some use -I, some (Solaris) use -M, some
4124 + # (absoft) use -p).
4125 + # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
4126 + # specified, work.pcl and work.pc are created.  However, if you specify
4127 + # a file, it must contain a the name of a file ending in .pc .  Ugh!
4128 + # Use the module made above
4129 + echo "$as_me:$LINENO: checking for module directory path flag" >&5
4130 + echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
4131 + rm -f conftest*
4132 + # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4133 + rm -f work*
4134 + cat >conftest.f90 <<EOF
4135 +        module conftest
4136 +        integer n
4137 +        parameter (n=1)
4138 +        end module conftest
4139 + EOF
4140 + # SGI and absoft compilers generates module name in upper case!
4141 + testname="conftest"
4142 + if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4143 +   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
4144 +   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
4145 +   if test -n "$mod" ; then
4146 +      testname="CONFTEST"
4147 +   fi
4148 +   madedir=0
4149 +   if test ! -d conf ; then mkdir conf ; madedir=1; fi
4150 +   cp $testname.$MOD conf
4151 +   rm -f conftest* CONFTEST*
4152 +   cat >conftest1.f90 <<EOF
4153 +        program main
4154 +        use conftest
4155 +        print *, n
4156 +        end
4157 + EOF
4158 +   F90_WORK_FILES_ARG=""
4159 +   F90MODINCSPEC=""
4160 +   if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
4161 +       MODDIRFLAG="-I"
4162 +       F90MODINCSPEC="-I<dir>"
4163 +       echo "$as_me:$LINENO: result: -I" >&5
4164 + echo "${ECHO_T}-I" >&6
4165 +   elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
4166 +       MODDIRFLAG="-M"
4167 +       F90MODINCSPEC="-M<dir>"
4168 +       echo "$as_me:$LINENO: result: -M" >&5
4169 + echo "${ECHO_T}-M" >&6
4170 +   elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
4171 +       MODDIRFLAG="-p"
4172 +       F90MODINCSPEC="-p<dir>"
4173 +       echo "$as_me:$LINENO: result: -p" >&5
4174 + echo "${ECHO_T}-p" >&6
4175 +   elif test -s work.pc ; then
4176 +        cp work.pc conf/mpimod.pc
4177 +        echo "mpimod.pc" > conf/mpimod.pcl
4178 +        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
4179 +        if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
4180 +            MODDIRFLAG='-cl,mpimod.pcl'
4181 +            echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
4182 + echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
4183 +            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
4184 +            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
4185 +
4186 +        else
4187 +            # The version of the Intel compiler that I have refuses to let
4188 +            # you put the "work catalog" list anywhere but the current
4189 +            # directory. For example, you cannot in
4190 +         :
4191 +        fi
4192 +   fi
4193 +   if test -z "MODDIRFLAG" ; then
4194 +       echo "$as_me:$LINENO: result: unknown" >&5
4195 + echo "${ECHO_T}unknown" >&6
4196 +   fi
4197 +
4198 +
4199 +   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4200 +   if test $madedir = 1 ; then rmdir conf ; fi
4201   fi
4202 < rm -f conftest.$ac_objext conftest.$ac_ext
4203 <  cat >conftest.$ac_ext <<_ACEOF
4204 < #line 2559 "configure"
4205 < #include "confdefs.h"
4206 < $ac_declaration
4207 < int
4208 < main ()
4209 < {
4210 < exit (42);
4211 <  ;
4212 <  return 0;
4213 < }
4214 < _ACEOF
4215 < rm -f conftest.$ac_objext
4216 < if { (eval echo "$as_me:2571: \"$ac_compile\"") >&5
4217 <  (eval $ac_compile) 2>&5
4218 <  ac_status=$?
4219 <  echo "$as_me:2574: \$? = $ac_status" >&5
4220 <  (exit $ac_status); } &&
4221 <         { ac_try='test -s conftest.$ac_objext'
4222 <  { (eval echo "$as_me:2577: \"$ac_try\"") >&5
4202 >
4203 >
4204 >
4205 >
4206 > case $debug in
4207 >  1)
4208 >     ;;
4209 >  *)
4210 >
4211 >
4212 >
4213 >
4214 >
4215 >
4216 > echo "$as_me:$LINENO: checking whether we are *really* using gcc" >&5
4217 > echo $ECHO_N "checking whether we are *really* using gcc... $ECHO_C" >&6
4218 > if test "${ac_cv_prog_really_gcc+set}" = set; then
4219 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4220 > else
4221 >
4222 > cat > conftest.c <<EOF
4223 > #ifdef __GNUC__
4224 >  #ifndef __INTEL_COMPILER
4225 >     yes;
4226 >  #endif
4227 > #endif
4228 > EOF
4229 > if { ac_try='${CC-cc} -E conftest.c'
4230 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231    (eval $ac_try) 2>&5
4232    ac_status=$?
4233 <  echo "$as_me:2580: \$? = $ac_status" >&5
4234 <  (exit $ac_status); }; }; then
4235 <  break
4233 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4235 >  ac_cv_prog_really_gcc=yes
4236   else
4237 <  echo "$as_me: failed program was:" >&5
2585 < cat conftest.$ac_ext >&5
4237 >  ac_cv_prog_really_gcc=no
4238   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
4239  
4240 < ac_ext=c
4241 < ac_cpp='$CPP $CPPFLAGS'
4242 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240 > fi
4241 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
4242 > echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
4243 > if test "$ac_cv_prog_really_gcc" = yes; then
4244 >        :
4245 >
4246 > else
4247 >        :
4248 >
4249 > fi
4250 >
4251 >
4252 > # Try to determine "good" native compiler flags if none specified on command
4253 > # line
4254 > if test "$ac_test_CFLAGS" != "set"; then
4255 >  CFLAGS=""
4256 >  case "${host_cpu}-${host_os}" in
4257 >
4258 >  *linux*) if test "$CC" = icc; then
4259 >                    CFLAGS="-O"
4260 >                fi;;
4261 >  sparc-solaris2*) if test "$CC" = cc; then
4262 >                    CFLAGS="-native -fast -xO5 -dalign"
4263 >                 fi;;
4264 >
4265 >  alpha*-osf*)  if test "$CC" = cc; then
4266 >                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
4267 >                fi;;
4268 >
4269 >  hppa*-hpux*)  if test "$CC" = cc; then
4270 >                    CFLAGS="-Ae +O3 +Oall"
4271 >                fi;;
4272 >
4273 >   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
4274 >                    CFLAGS="-O3 -qtune=auto -qansialias -w"
4275 >                fi;;
4276 >   powerpc*-aix*)
4277 >        if test "$CC" = cc -o "$CC" = xlc; then
4278 >                CFLAGS="-O3 -qtune=auto -qansialias -w"
4279 >                echo "*******************************************************"
4280 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4281 >                echo "*  recommended that you use                           *"
4282 >                echo "*                                                     *"
4283 >                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4284 >                echo "*                                 ^^^                 *"
4285 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4286 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4287 >                echo "*******************************************************"
4288 >        fi;;
4289 >   *darwin*)
4290 >        if test "$CC" = xlc -o "$CC" = cc; then
4291 >                CFLAGS="-O3 -qtune=auto -w"
4292 >                echo "*******************************************************"
4293 >                echo "*  You have Darwin on an unknown powerpc system.      *"
4294 >                echo "*  It is recommended that you use                     *"
4295 >                echo "*                                                     *"
4296 >                echo "*  CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
4297 >                echo "*                               ^^^                   *"
4298 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4299 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4300 >                echo "*******************************************************"
4301 >        fi;;
4302 >  esac
4303 >
4304 >  # use default flags for gcc on all systems
4305 >  if test $ac_cv_prog_really_gcc = yes; then
4306 >     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4307 >  fi
4308 >
4309 >  # test for gcc-specific flags:
4310 >  if test $ac_cv_prog_really_gcc = yes; then
4311 >    # -malign-double for x86 systems
4312 >
4313 >
4314 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
4315 > echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
4316 > if test "${ac_align_double+set}" = set; then
4317 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4318 > else
4319 >  echo 'void f(){}' > conftest.c
4320 > if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
4321 >        ac_align_double=yes
4322 > else
4323 >        ac_align_double=no
4324 > fi
4325 > rm -f conftest*
4326 >
4327 > fi
4328 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4329 > echo "${ECHO_T}$ac_align_double" >&6
4330 > if test "$ac_align_double" = yes; then
4331 >        :
4332 >        CFLAGS="$CFLAGS -malign-double"
4333 > else
4334 >        :
4335 >
4336 > fi
4337 >
4338 >    # -fstrict-aliasing for gcc-2.95+
4339 >
4340 >
4341 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
4342 > echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
4343 > if test "${ac_fstrict_aliasing+set}" = set; then
4344 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4345 > else
4346 >  echo 'void f(){}' > conftest.c
4347 > if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
4348 >        ac_fstrict_aliasing=yes
4349 > else
4350 >        ac_fstrict_aliasing=no
4351 > fi
4352 > rm -f conftest*
4353  
4354 + fi
4355 + echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4356 + echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4357 + if test "$ac_fstrict_aliasing" = yes; then
4358 +        :
4359 +        CFLAGS="$CFLAGS -fstrict-aliasing"
4360 + else
4361 +        :
4362 +
4363 + fi
4364 +
4365 +  fi
4366 +
4367 +  CPU_FLAGS=""
4368 +  if test $ac_cv_prog_really_gcc = yes; then
4369 +                  case "${host_cpu}" in
4370 +          i586*)
4371 +
4372 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4373 + echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4374 + if test "${ac_cpu_pentium+set}" = set; then
4375 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4376 + else
4377 +  echo 'void f(){}' > conftest.c
4378 + if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
4379 +        ac_cpu_pentium=yes
4380 + else
4381 +        ac_cpu_pentium=no
4382 + fi
4383 + rm -f conftest*
4384 +
4385 + fi
4386 + echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4387 + echo "${ECHO_T}$ac_cpu_pentium" >&6
4388 + if test "$ac_cpu_pentium" = yes; then
4389 +        :
4390 +        CPU_FLAGS=-mcpu=pentium
4391 + else
4392 +        :
4393 +
4394 +
4395 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
4396 + echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
4397 + if test "${ac_pentium+set}" = set; then
4398 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4399 + else
4400 +  echo 'void f(){}' > conftest.c
4401 + if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
4402 +        ac_pentium=yes
4403 + else
4404 +        ac_pentium=no
4405 + fi
4406 + rm -f conftest*
4407 +
4408 + fi
4409 + echo "$as_me:$LINENO: result: $ac_pentium" >&5
4410 + echo "${ECHO_T}$ac_pentium" >&6
4411 + if test "$ac_pentium" = yes; then
4412 +        :
4413 +        CPU_FLAGS=-mpentium
4414 + else
4415 +        :
4416 +
4417 + fi
4418 +
4419 + fi
4420 +
4421 +                  ;;
4422 +          i686*)
4423 +
4424 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
4425 + echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4426 + if test "${ac_cpu_pentiumpro+set}" = set; then
4427 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4428 + else
4429 +  echo 'void f(){}' > conftest.c
4430 + if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
4431 +        ac_cpu_pentiumpro=yes
4432 + else
4433 +        ac_cpu_pentiumpro=no
4434 + fi
4435 + rm -f conftest*
4436 +
4437 + fi
4438 + echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4439 + echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4440 + if test "$ac_cpu_pentiumpro" = yes; then
4441 +        :
4442 +        CPU_FLAGS=-mcpu=pentiumpro
4443 + else
4444 +        :
4445 +
4446 +
4447 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
4448 + echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
4449 + if test "${ac_pentiumpro+set}" = set; then
4450 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4451 + else
4452 +  echo 'void f(){}' > conftest.c
4453 + if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
4454 +        ac_pentiumpro=yes
4455 + else
4456 +        ac_pentiumpro=no
4457 + fi
4458 + rm -f conftest*
4459 +
4460 + fi
4461 + echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4462 + echo "${ECHO_T}$ac_pentiumpro" >&6
4463 + if test "$ac_pentiumpro" = yes; then
4464 +        :
4465 +        CPU_FLAGS=-mpentiumpro
4466 + else
4467 +        :
4468 +
4469 + fi
4470 +
4471 + fi
4472 +
4473 +                  ;;
4474 +          powerpc*)
4475 +                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4476 +                is60x=`echo $cputype | egrep "^600-9e?$"`
4477 +                if test -n "$is60x"; then
4478 +
4479 +
4480 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
4481 + echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
4482 + if test "${ac_m_cpu_60x+set}" = set; then
4483 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4484 + else
4485 +  echo 'void f(){}' > conftest.c
4486 + if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
4487 +        ac_m_cpu_60x=yes
4488 + else
4489 +        ac_m_cpu_60x=no
4490 + fi
4491 + rm -f conftest*
4492 +
4493 + fi
4494 + echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4495 + echo "${ECHO_T}$ac_m_cpu_60x" >&6
4496 + if test "$ac_m_cpu_60x" = yes; then
4497 +        :
4498 +        CPU_FLAGS=-mcpu=$cputype
4499 + else
4500 +        :
4501 +
4502 + fi
4503 +
4504 +                elif test "$cputype" = 750; then
4505 +
4506 +
4507 + echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
4508 + echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4509 + if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4510 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4511 + else
4512 +
4513 + cat > conftest.c <<EOF
4514 + #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4515 + #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4516 +     yes;
4517 + #  endif
4518 + #endif
4519 + EOF
4520 + if { ac_try='${CC-cc} -E conftest.c'
4521 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 +  (eval $ac_try) 2>&5
4523 +  ac_status=$?
4524 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 +  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4526 +  ac_cv_prog_gcc_2_95=yes
4527 + else
4528 +  ac_cv_prog_gcc_2_95=no
4529 + fi
4530 +
4531 + fi
4532 + echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
4533 + echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4534 + if test "$ac_cv_prog_gcc_2_95" = yes; then
4535 +        :
4536 +
4537 +
4538 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
4539 + echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
4540 + if test "${ac_m_cpu_750+set}" = set; then
4541 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4542 + else
4543 +  echo 'void f(){}' > conftest.c
4544 + if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
4545 +        ac_m_cpu_750=yes
4546 + else
4547 +        ac_m_cpu_750=no
4548 + fi
4549 + rm -f conftest*
4550 +
4551 + fi
4552 + echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4553 + echo "${ECHO_T}$ac_m_cpu_750" >&6
4554 + if test "$ac_m_cpu_750" = yes; then
4555 +        :
4556 +        CPU_FLAGS=-mcpu=750
4557 + else
4558 +        :
4559 +
4560 + fi
4561 +
4562 + else
4563 +        :
4564 +
4565 + fi
4566 +
4567 +                fi
4568 +                if test -z "$CPU_FLAGS"; then
4569 +
4570 +
4571 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
4572 + echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
4573 + if test "${ac_m_cpu_powerpc+set}" = set; then
4574 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4575 + else
4576 +  echo 'void f(){}' > conftest.c
4577 + if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
4578 +        ac_m_cpu_powerpc=yes
4579 + else
4580 +        ac_m_cpu_powerpc=no
4581 + fi
4582 + rm -f conftest*
4583 +
4584 + fi
4585 + echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
4586 + echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4587 + if test "$ac_m_cpu_powerpc" = yes; then
4588 +        :
4589 +        CPU_FLAGS=-mcpu=powerpc
4590 + else
4591 +        :
4592 +
4593 + fi
4594 +
4595 +                fi
4596 +                if test -z "$CPU_FLAGS"; then
4597 +
4598 +
4599 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
4600 + echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
4601 + if test "${ac_m_powerpc+set}" = set; then
4602 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4603 + else
4604 +  echo 'void f(){}' > conftest.c
4605 + if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
4606 +        ac_m_powerpc=yes
4607 + else
4608 +        ac_m_powerpc=no
4609 + fi
4610 + rm -f conftest*
4611 +
4612 + fi
4613 + echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
4614 + echo "${ECHO_T}$ac_m_powerpc" >&6
4615 + if test "$ac_m_powerpc" = yes; then
4616 +        :
4617 +        CPU_FLAGS=-mpowerpc
4618 + else
4619 +        :
4620 +
4621 + fi
4622 +
4623 +                fi
4624 +          esac
4625 +  fi
4626 +
4627 +  if test -n "$CPU_FLAGS"; then
4628 +        CFLAGS="$CFLAGS $CPU_FLAGS"
4629 +  fi
4630 +
4631 +  if test -z "$CFLAGS"; then
4632 +        echo ""
4633 +        echo "********************************************************"
4634 +        echo "* WARNING: Don't know the best CFLAGS for this system  *"
4635 +        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4636 +        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
4637 +        echo "********************************************************"
4638 +        echo ""
4639 +        CFLAGS="-O3"
4640 +  fi
4641 +
4642 +
4643 +
4644 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
4645 + echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
4646 + if test "${ac_guessed_cflags+set}" = set; then
4647 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4648 + else
4649 +  echo 'void f(){}' > conftest.c
4650 + if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
4651 +        ac_guessed_cflags=yes
4652 + else
4653 +        ac_guessed_cflags=no
4654 + fi
4655 + rm -f conftest*
4656 +
4657 + fi
4658 + echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
4659 + echo "${ECHO_T}$ac_guessed_cflags" >&6
4660 + if test "$ac_guessed_cflags" = yes; then
4661 +        :
4662 +
4663 + else
4664 +        :
4665 +
4666 +        echo ""
4667 +        echo "********************************************************"
4668 +        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
4669 +        echo "* your compiler.                                       *"
4670 +        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4671 +        echo "********************************************************"
4672 +        echo ""
4673 +        CFLAGS=""
4674 +
4675 + fi
4676 +
4677 +
4678 + fi
4679 +
4680 +
4681 +
4682 +
4683 +
4684 +
4685 +
4686 + echo "$as_me:$LINENO: checking whether we are *really* using g++" >&5
4687 + echo $ECHO_N "checking whether we are *really* using g++... $ECHO_C" >&6
4688 + if test "${ac_cv_prog_really_gxx+set}" = set; then
4689 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4690 + else
4691 +
4692 + cat > conftest.cpp <<EOF
4693 + #ifdef __GNUC__
4694 +  #ifndef __INTEL_COMPILER
4695 +     yes;
4696 +  #endif
4697 + #endif
4698 + EOF
4699 + if { ac_try='${CXX-c++} -E conftest.cpp'
4700 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 +  (eval $ac_try) 2>&5
4702 +  ac_status=$?
4703 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 +  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4705 +  ac_cv_prog_really_gxx=yes
4706 + else
4707 +  ac_cv_prog_really_gxx=no
4708 + fi
4709 +
4710 + fi
4711 + echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
4712 + echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
4713 + if test "$ac_cv_prog_really_gxx" = yes; then
4714 +        :
4715 +
4716 + else
4717 +        :
4718 +
4719 + fi
4720 +
4721 +
4722   # Try to determine "good" native compiler flags if none specified on command
4723   # line
4724   if test "$ac_test_CXXFLAGS" != "set"; then
# Line 2640 | Line 4763 | if test "$ac_test_CXXFLAGS" != "set"; then
4763    esac
4764  
4765    # use default flags for gcc on all systems
4766 <  if test $ac_cv_c_compiler_gnu = yes; then
4766 >  if test $ac_cv_prog_really_gxx = yes; then
4767       CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4768    fi
4769  
4770    # test for gcc-specific flags:
4771 <  if test $ac_cv_c_compiler_gnu = yes; then
4771 >  if test $ac_cv_prog_really_gxx = yes; then
4772      # -malign-double for x86 systems
4773  
4774 < echo "$as_me:2651: checking whether ${CXX-c++} accepts -malign-double" >&5
4774 >
4775 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
4776   echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
4777   if test "${ac_align_double+set}" = set; then
4778    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2662 | Line 4786 | echo "$as_me:2665: result: $ac_align_double" >&5
4786   rm -f conftest*
4787  
4788   fi
4789 < echo "$as_me:2665: result: $ac_align_double" >&5
4789 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4790   echo "${ECHO_T}$ac_align_double" >&6
4791   if test "$ac_align_double" = yes; then
4792          :
# Line 2674 | Line 4798 | echo "$as_me:2677: checking whether ${CXX-c++} accepts
4798  
4799      # -fstrict-aliasing for gcc-2.95+
4800  
4801 < echo "$as_me:2677: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
4801 >
4802 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
4803   echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
4804   if test "${ac_fstrict_aliasing+set}" = set; then
4805    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2688 | Line 4813 | echo "$as_me:2691: result: $ac_fstrict_aliasing" >&5
4813   rm -f conftest*
4814  
4815   fi
4816 < echo "$as_me:2691: result: $ac_fstrict_aliasing" >&5
4816 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4817   echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4818   if test "$ac_fstrict_aliasing" = yes; then
4819          :
# Line 2701 | Line 4826 | fi
4826    fi
4827  
4828    CPU_FLAGS=""
4829 <  if test "$GCC" = "yes"; then
4829 >  if test $ac_cv_prog_really_gxx = yes; then
4830                    case "${host_cpu}" in
4831            i586*)
4832  
4833 < echo "$as_me:2708: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4834 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4833 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
4834 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
4835   if test "${ac_cpu_pentium+set}" = set; then
4836    echo $ECHO_N "(cached) $ECHO_C" >&6
4837   else
4838 <  echo 'void f(){}' > conftest.c
4839 < if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
4838 >  echo 'void f(){}' > conftest.cpp
4839 > if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
4840          ac_cpu_pentium=yes
4841   else
4842          ac_cpu_pentium=no
# Line 2719 | Line 4844 | echo "$as_me:2722: result: $ac_cpu_pentium" >&5
4844   rm -f conftest*
4845  
4846   fi
4847 < echo "$as_me:2722: result: $ac_cpu_pentium" >&5
4847 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4848   echo "${ECHO_T}$ac_cpu_pentium" >&6
4849   if test "$ac_cpu_pentium" = yes; then
4850          :
# Line 2727 | Line 4852 | echo "$as_me:2730: checking whether ${CXX-c++} accepts
4852   else
4853          :
4854  
4855 < echo "$as_me:2730: checking whether ${CXX-c++} accepts -mpentium" >&5
4855 >
4856 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
4857   echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
4858   if test "${ac_pentium+set}" = set; then
4859    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2741 | Line 4867 | echo "$as_me:2744: result: $ac_pentium" >&5
4867   rm -f conftest*
4868  
4869   fi
4870 < echo "$as_me:2744: result: $ac_pentium" >&5
4870 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4871   echo "${ECHO_T}$ac_pentium" >&6
4872   if test "$ac_pentium" = yes; then
4873          :
# Line 2756 | Line 4882 | echo "$as_me:2759: checking whether ${CXX-c++} accepts
4882                    ;;
4883            i686*)
4884  
4885 < echo "$as_me:2759: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4885 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4886   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4887   if test "${ac_cpu_pentiumpro+set}" = set; then
4888    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2770 | Line 4896 | echo "$as_me:2773: result: $ac_cpu_pentiumpro" >&5
4896   rm -f conftest*
4897  
4898   fi
4899 < echo "$as_me:2773: result: $ac_cpu_pentiumpro" >&5
4899 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4900   echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4901   if test "$ac_cpu_pentiumpro" = yes; then
4902          :
# Line 2778 | Line 4904 | echo "$as_me:2781: checking whether ${CXX-c++} accepts
4904   else
4905          :
4906  
4907 < echo "$as_me:2781: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4907 >
4908 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4909   echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
4910   if test "${ac_pentiumpro+set}" = set; then
4911    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2792 | Line 4919 | echo "$as_me:2795: result: $ac_pentiumpro" >&5
4919   rm -f conftest*
4920  
4921   fi
4922 < echo "$as_me:2795: result: $ac_pentiumpro" >&5
4922 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4923   echo "${ECHO_T}$ac_pentiumpro" >&6
4924   if test "$ac_pentiumpro" = yes; then
4925          :
# Line 2810 | Line 4937 | echo "$as_me:2813: checking whether ${CXX-c++} accepts
4937                  is60x=`echo $cputype | egrep "^600-9e?$"`
4938                  if test -n "$is60x"; then
4939  
4940 < echo "$as_me:2813: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4940 >
4941 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4942   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
4943   if test "${ac_m_cpu_60x+set}" = set; then
4944    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2824 | Line 4952 | echo "$as_me:2827: result: $ac_m_cpu_60x" >&5
4952   rm -f conftest*
4953  
4954   fi
4955 < echo "$as_me:2827: result: $ac_m_cpu_60x" >&5
4955 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4956   echo "${ECHO_T}$ac_m_cpu_60x" >&6
4957   if test "$ac_m_cpu_60x" = yes; then
4958          :
# Line 2836 | Line 4964 | echo "$as_me:2839: checking whether we are using gcc 2
4964  
4965                  elif test "$cputype" = 750; then
4966  
4967 < echo "$as_me:2839: checking whether we are using gcc 2.95 or later" >&5
4968 < echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4969 < if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4967 >
4968 > echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
4969 > echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
4970 > if test "${ac_cv_prog_gxx_2_95+set}" = set; then
4971    echo $ECHO_N "(cached) $ECHO_C" >&6
4972   else
4973  
4974 < cat > conftest.c <<EOF
4975 < #ifdef __GNUC__
4974 > cat > conftest.cpp <<EOF
4975 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4976   #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4977       yes;
4978   #  endif
4979   #endif
4980   EOF
4981 < if { ac_try='${CC-cc} -E conftest.c'
4982 <  { (eval echo "$as_me:2853: \"$ac_try\"") >&5
4981 > if { ac_try='${CXX-c++} -E conftest.cpp'
4982 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983    (eval $ac_try) 2>&5
4984    ac_status=$?
4985 <  echo "$as_me:2856: \$? = $ac_status" >&5
4985 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986    (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4987 <  ac_cv_prog_gcc_2_95=yes
4987 >  ac_cv_prog_gxx_2_95=yes
4988   else
4989 <  ac_cv_prog_gcc_2_95=no
4989 >  ac_cv_prog_gxx_2_95=no
4990   fi
4991  
4992   fi
4993 < echo "$as_me:2864: result: $ac_cv_prog_gcc_2_95" >&5
4994 < echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4995 < if test "$ac_cv_prog_gcc_2_95" = yes; then
4993 > echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
4994 > echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
4995 > if test "$ac_cv_prog_gxx_2_95" = yes; then
4996          :
4997  
4998 < echo "$as_me:2869: checking whether ${CXX-c++} accepts -mcpu=750" >&5
4998 >
4999 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
5000   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
5001   if test "${ac_m_cpu_750+set}" = set; then
5002    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2880 | Line 5010 | echo "$as_me:2883: result: $ac_m_cpu_750" >&5
5010   rm -f conftest*
5011  
5012   fi
5013 < echo "$as_me:2883: result: $ac_m_cpu_750" >&5
5013 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
5014   echo "${ECHO_T}$ac_m_cpu_750" >&6
5015   if test "$ac_m_cpu_750" = yes; then
5016          :
# Line 2898 | Line 5028 | echo "$as_me:2901: checking whether ${CXX-c++} accepts
5028                  fi
5029                  if test -z "$CPU_FLAGS"; then
5030  
5031 < echo "$as_me:2901: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
5031 >
5032 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
5033   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
5034   if test "${ac_m_cpu_powerpc+set}" = set; then
5035    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2912 | Line 5043 | echo "$as_me:2915: result: $ac_m_cpu_powerpc" >&5
5043   rm -f conftest*
5044  
5045   fi
5046 < echo "$as_me:2915: result: $ac_m_cpu_powerpc" >&5
5046 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
5047   echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
5048   if test "$ac_m_cpu_powerpc" = yes; then
5049          :
# Line 2925 | Line 5056 | echo "$as_me:2928: checking whether ${CXX-c++} accepts
5056                  fi
5057                  if test -z "$CPU_FLAGS"; then
5058  
5059 < echo "$as_me:2928: checking whether ${CXX-c++} accepts -mpowerpc" >&5
5059 >
5060 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
5061   echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
5062   if test "${ac_m_powerpc+set}" = set; then
5063    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2939 | Line 5071 | echo "$as_me:2942: result: $ac_m_powerpc" >&5
5071   rm -f conftest*
5072  
5073   fi
5074 < echo "$as_me:2942: result: $ac_m_powerpc" >&5
5074 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
5075   echo "${ECHO_T}$ac_m_powerpc" >&6
5076   if test "$ac_m_powerpc" = yes; then
5077          :
# Line 2968 | Line 5100 | echo "$as_me:2971: checking whether ${CXX-c++} accepts
5100          CXXFLAGS="-O3"
5101    fi
5102  
5103 < echo "$as_me:2971: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
5103 >
5104 >
5105 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
5106   echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
5107   if test "${ac_guessed_cxxflags+set}" = set; then
5108    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2982 | Line 5116 | echo "$as_me:2985: result: $ac_guessed_cxxflags" >&5
5116   rm -f conftest*
5117  
5118   fi
5119 < echo "$as_me:2985: result: $ac_guessed_cxxflags" >&5
5119 > echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
5120   echo "${ECHO_T}$ac_guessed_cxxflags" >&6
5121   if test "$ac_guessed_cxxflags" = yes; then
5122          :
# Line 2998 | Line 5132 | else
5132          echo "**********************************************************"
5133          echo ""
5134          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
5135  
5136   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
5137  
3084  test -n "$ac_ct_F90" && break
3085 done
5138  
3087  F90=$ac_ct_F90
5139   fi
5140  
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
5141  
3101 program main
5142  
3103 #ifndef __GNUC__
3104       choke me
3105 #endif
5143  
3107 end program main
5144  
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
5145   # Try to determine "good" native compiler flags if none specified on command
5146   # line
5147  
5148 < if test "$ac_test_F90FLAGS" != "set"; then
5148 > if test x"$F90FLAGS" = x ; then
5149    F90FLAGS=""
5150    case "${host_cpu}-${host_os}" in
5151  
5152 <  *linux*) if test "$F90" = ifc; then
5152 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
5153                      F90FLAGS="-O"
5154                  fi;;
5155     rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 3195 | Line 5198 | echo "$as_me:3198: checking whether ${F90-f90} accepts
5198          F90FLAGS="-O3"
5199    fi
5200  
5201 < echo "$as_me:3198: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
5201 >
5202 > echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
5203   echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
5204   if test "${ac_guessed_f90flags+set}" = set; then
5205    echo $ECHO_N "(cached) $ECHO_C" >&6
5206   else
5207  
5208 +
5209 +
5210   ac_ext=f90
5211   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5212   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# Line 3209 | Line 5215 | if { (eval echo "$as_me:3212: \"$ac_compile\"") >&5
5215   echo 'program main' > conftest.$ac_ext
5216   echo 'end program main' >> conftest.$ac_ext
5217   ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
5218 < if { (eval echo "$as_me:3212: \"$ac_compile\"") >&5
5218 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219    (eval $ac_compile) 2>&5
5220    ac_status=$?
5221 <  echo "$as_me:3215: \$? = $ac_status" >&5
5221 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222    (exit $ac_status); }; then
5223          ac_guessed_f90flags=yes
5224   else
5225          ac_guessed_f90flags=no
5226   fi
5227   rm -f conftest*
5228 < ac_ext=c
3223 < ac_cpp='$CPP $CPPFLAGS'
3224 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227 <
3228 < fi
3229 < echo "$as_me:3229: result: $ac_guessed_f90flags" >&5
3230 < echo "${ECHO_T}$ac_guessed_f90flags" >&6
3231 < if test "$ac_guessed_f90flags" = yes; then
3232 <        :
3233 <
3234 < else
3235 <        :
3236 <
3237 <        echo ""
3238 <        echo "**********************************************************"
3239 <        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
3240 <        echo "* your compiler.                                         *"
3241 <        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
3242 <        echo "**********************************************************"
3243 <        echo ""
3244 <        F90FLAGS=""
3245 <
3246 < fi
3247 <
3248 < fi
3249 <
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"
3294 < fi
3295 <
3296 <    cat >conftest.$ac_ext <<_ACEOF
3297 <
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
5228 > ac_ext=f90
5229   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5230   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5231   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5232  
3385  ac_save_ext=$ac_ext
3386  ac_ext=F90
3387  ac_save_F90FLAGS=$F90FLAGS
5233  
3389  if test "$PREPDEFFLAG"; then
3390  F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
5234   fi
5235 + echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
5236 + echo "${ECHO_T}$ac_guessed_f90flags" >&6
5237 + if test "$ac_guessed_f90flags" = yes; then
5238 +        :
5239  
5240 <    cat >conftest.$ac_ext <<_ACEOF
5240 > else
5241 >        :
5242  
5243 < program main
5243 >        echo ""
5244 >        echo "**********************************************************"
5245 >        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
5246 >        echo "* your compiler.                                         *"
5247 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
5248 >        echo "**********************************************************"
5249 >        echo ""
5250 >        F90FLAGS=""
5251  
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
5252   fi
3425 rm -f conftest.$ac_objext conftest.$ac_ext
5253  
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
5254  
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
5255   fi
5256  
5257 +     ;;
5258 + esac
5259 +
5260   # Find a good install program.  We prefer a C program (faster),
5261   # so one script is as good as another.  But avoid the broken or
5262   # incompatible versions:
# Line 3456 | Line 5268 | fi
5268   # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5269   # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5270   # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5271 + # OS/2's system install, which has a completely different semantic
5272   # ./install, which can be erroneously created by make from ./install.sh.
5273 < echo "$as_me:3460: checking for a BSD compatible install" >&5
5274 < echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5273 > echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5274 > echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5275   if test -z "$INSTALL"; then
5276   if test "${ac_cv_path_install+set}" = set; then
5277    echo $ECHO_N "(cached) $ECHO_C" >&6
5278   else
5279 <    ac_save_IFS=$IFS; IFS=$ac_path_separator
5280 <  for ac_dir in $PATH; do
5281 <    IFS=$ac_save_IFS
5282 <    # Account for people who put trailing slashes in PATH elements.
5283 <    case $ac_dir/ in
5284 <    / | ./ | .// | /cC/* \
5285 <    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
5286 <    | /usr/ucb/* ) ;;
5287 <    *)
5288 <      # OSF1 and SCO ODT 3.0 have their own names for install.
5289 <      # Don't use installbsd from OSF since it installs stuff as root
5290 <      # by default.
5291 <      for ac_prog in ginstall scoinst install; do
5292 <        if $as_executable_p "$ac_dir/$ac_prog"; then
5279 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 > for as_dir in $PATH
5281 > do
5282 >  IFS=$as_save_IFS
5283 >  test -z "$as_dir" && as_dir=.
5284 >  # Account for people who put trailing slashes in PATH elements.
5285 > case $as_dir/ in
5286 >  ./ | .// | /cC/* | \
5287 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5288 >  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5289 >  /usr/ucb/* ) ;;
5290 >  *)
5291 >    # OSF1 and SCO ODT 3.0 have their own names for install.
5292 >    # Don't use installbsd from OSF since it installs stuff as root
5293 >    # by default.
5294 >    for ac_prog in ginstall scoinst install; do
5295 >      for ac_exec_ext in '' $ac_executable_extensions; do
5296 >        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5297            if test $ac_prog = install &&
5298 <            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
5298 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5299              # AIX install.  It has an incompatible calling convention.
5300              :
5301            elif test $ac_prog = install &&
5302 <            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
5302 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5303              # program-specific install script used by HP pwplus--don't use.
5304              :
5305            else
5306 <            ac_cv_path_install="$ac_dir/$ac_prog -c"
5307 <            break 2
5306 >            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5307 >            break 3
5308            fi
5309          fi
5310        done
5311 <      ;;
5312 <    esac
5313 <  done
5311 >    done
5312 >    ;;
5313 > esac
5314 > done
5315  
5316 +
5317   fi
5318    if test "${ac_cv_path_install+set}" = set; then
5319      INSTALL=$ac_cv_path_install
# Line 3506 | Line 5325 | echo "$as_me:3509: result: $INSTALL" >&5
5325      INSTALL=$ac_install_sh
5326    fi
5327   fi
5328 < echo "$as_me:3509: result: $INSTALL" >&5
5328 > echo "$as_me:$LINENO: result: $INSTALL" >&5
5329   echo "${ECHO_T}$INSTALL" >&6
5330  
5331   # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# Line 3517 | Line 5336 | echo "$as_me:3520: checking whether ln -s works" >&5
5336  
5337   test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5338  
5339 < echo "$as_me:3520: checking whether ln -s works" >&5
5339 > echo "$as_me:$LINENO: checking whether ln -s works" >&5
5340   echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5341   LN_S=$as_ln_s
5342   if test "$LN_S" = "ln -s"; then
5343 <  echo "$as_me:3524: result: yes" >&5
5343 >  echo "$as_me:$LINENO: result: yes" >&5
5344   echo "${ECHO_T}yes" >&6
5345   else
5346 <  echo "$as_me:3527: result: no, using $LN_S" >&5
5346 >  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5347   echo "${ECHO_T}no, using $LN_S" >&6
5348   fi
5349  
5350 < echo "$as_me:3531: checking whether ${MAKE-make} sets \${MAKE}" >&5
5351 < echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5352 < set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5350 > echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5351 > echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5352 > set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5353   if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5354    echo $ECHO_N "(cached) $ECHO_C" >&6
5355   else
5356 <  cat >conftest.make <<\EOF
5356 >  cat >conftest.make <<\_ACEOF
5357   all:
5358 <        @echo 'ac_maketemp="${MAKE}"'
5359 < EOF
5358 >        @echo 'ac_maketemp="$(MAKE)"'
5359 > _ACEOF
5360   # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5361   eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5362   if test -n "$ac_maketemp"; then
# Line 3548 | Line 5367 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_se
5367   rm -f conftest.make
5368   fi
5369   if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5370 <  echo "$as_me:3551: result: yes" >&5
5370 >  echo "$as_me:$LINENO: result: yes" >&5
5371   echo "${ECHO_T}yes" >&6
5372    SET_MAKE=
5373   else
5374 <  echo "$as_me:3555: result: no" >&5
5374 >  echo "$as_me:$LINENO: result: no" >&5
5375   echo "${ECHO_T}no" >&6
5376    SET_MAKE="MAKE=${MAKE-make}"
5377   fi
# Line 3560 | Line 5379 | echo "$as_me:3563: checking for $ac_word" >&5
5379   if test -n "$ac_tool_prefix"; then
5380    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5381   set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5382 < echo "$as_me:3563: checking for $ac_word" >&5
5382 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5383   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5384   if test "${ac_cv_prog_RANLIB+set}" = set; then
5385    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3568 | Line 5387 | else
5387    if test -n "$RANLIB"; then
5388    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5389   else
5390 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5391 < ac_dummy="$PATH"
5392 < for ac_dir in $ac_dummy; do
5393 <  IFS=$ac_save_IFS
5394 <  test -z "$ac_dir" && ac_dir=.
5395 <  $as_executable_p "$ac_dir/$ac_word" || continue
5396 < ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5397 < echo "$as_me:3578: found $ac_dir/$ac_word" >&5
5398 < break
5390 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 > for as_dir in $PATH
5392 > do
5393 >  IFS=$as_save_IFS
5394 >  test -z "$as_dir" && as_dir=.
5395 >  for ac_exec_ext in '' $ac_executable_extensions; do
5396 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5398 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 >    break 2
5400 >  fi
5401   done
5402 + done
5403  
5404   fi
5405   fi
5406   RANLIB=$ac_cv_prog_RANLIB
5407   if test -n "$RANLIB"; then
5408 <  echo "$as_me:3586: result: $RANLIB" >&5
5408 >  echo "$as_me:$LINENO: result: $RANLIB" >&5
5409   echo "${ECHO_T}$RANLIB" >&6
5410   else
5411 <  echo "$as_me:3589: result: no" >&5
5411 >  echo "$as_me:$LINENO: result: no" >&5
5412   echo "${ECHO_T}no" >&6
5413   fi
5414  
# Line 3595 | Line 5417 | echo "$as_me:3598: checking for $ac_word" >&5
5417    ac_ct_RANLIB=$RANLIB
5418    # Extract the first word of "ranlib", so it can be a program name with args.
5419   set dummy ranlib; ac_word=$2
5420 < echo "$as_me:3598: checking for $ac_word" >&5
5420 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5421   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422   if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5423    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3603 | Line 5425 | else
5425    if test -n "$ac_ct_RANLIB"; then
5426    ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5427   else
5428 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5429 < ac_dummy="$PATH"
5430 < for ac_dir in $ac_dummy; do
5431 <  IFS=$ac_save_IFS
5432 <  test -z "$ac_dir" && ac_dir=.
5433 <  $as_executable_p "$ac_dir/$ac_word" || continue
5434 < ac_cv_prog_ac_ct_RANLIB="ranlib"
5435 < echo "$as_me:3613: found $ac_dir/$ac_word" >&5
5436 < break
5428 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 > for as_dir in $PATH
5430 > do
5431 >  IFS=$as_save_IFS
5432 >  test -z "$as_dir" && as_dir=.
5433 >  for ac_exec_ext in '' $ac_executable_extensions; do
5434 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
5436 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 >    break 2
5438 >  fi
5439   done
5440 + done
5441  
5442    test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5443   fi
5444   fi
5445   ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5446   if test -n "$ac_ct_RANLIB"; then
5447 <  echo "$as_me:3622: result: $ac_ct_RANLIB" >&5
5447 >  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5448   echo "${ECHO_T}$ac_ct_RANLIB" >&6
5449   else
5450 <  echo "$as_me:3625: result: no" >&5
5450 >  echo "$as_me:$LINENO: result: no" >&5
5451   echo "${ECHO_T}no" >&6
5452   fi
5453  
# Line 3635 | Line 5460 | echo "$as_me:3638: checking for $ac_word" >&5
5460   do
5461    # Extract the first word of "$ac_prog", so it can be a program name with args.
5462   set dummy $ac_prog; ac_word=$2
5463 < echo "$as_me:3638: checking for $ac_word" >&5
5463 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5464   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5465   if test "${ac_cv_prog_YACC+set}" = set; then
5466    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3643 | Line 5468 | else
5468    if test -n "$YACC"; then
5469    ac_cv_prog_YACC="$YACC" # Let the user override the test.
5470   else
5471 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5472 < ac_dummy="$PATH"
5473 < for ac_dir in $ac_dummy; do
5474 <  IFS=$ac_save_IFS
5475 <  test -z "$ac_dir" && ac_dir=.
5476 <  $as_executable_p "$ac_dir/$ac_word" || continue
5477 < ac_cv_prog_YACC="$ac_prog"
5478 < echo "$as_me:3653: found $ac_dir/$ac_word" >&5
5479 < break
5471 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 > for as_dir in $PATH
5473 > do
5474 >  IFS=$as_save_IFS
5475 >  test -z "$as_dir" && as_dir=.
5476 >  for ac_exec_ext in '' $ac_executable_extensions; do
5477 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478 >    ac_cv_prog_YACC="$ac_prog"
5479 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 >    break 2
5481 >  fi
5482   done
5483 + done
5484  
5485   fi
5486   fi
5487   YACC=$ac_cv_prog_YACC
5488   if test -n "$YACC"; then
5489 <  echo "$as_me:3661: result: $YACC" >&5
5489 >  echo "$as_me:$LINENO: result: $YACC" >&5
5490   echo "${ECHO_T}$YACC" >&6
5491   else
5492 <  echo "$as_me:3664: result: no" >&5
5492 >  echo "$as_me:$LINENO: result: no" >&5
5493   echo "${ECHO_T}no" >&6
5494   fi
5495  
# Line 3673 | Line 5501 | echo "$as_me:3676: checking for $ac_word" >&5
5501   do
5502    # Extract the first word of "$ac_prog", so it can be a program name with args.
5503   set dummy $ac_prog; ac_word=$2
5504 < echo "$as_me:3676: checking for $ac_word" >&5
5504 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5505   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5506   if test "${ac_cv_prog_LEX+set}" = set; then
5507    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3681 | Line 5509 | else
5509    if test -n "$LEX"; then
5510    ac_cv_prog_LEX="$LEX" # Let the user override the test.
5511   else
5512 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5513 < ac_dummy="$PATH"
5514 < for ac_dir in $ac_dummy; do
5515 <  IFS=$ac_save_IFS
5516 <  test -z "$ac_dir" && ac_dir=.
5517 <  $as_executable_p "$ac_dir/$ac_word" || continue
5518 < ac_cv_prog_LEX="$ac_prog"
5519 < echo "$as_me:3691: found $ac_dir/$ac_word" >&5
5520 < break
5512 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 > for as_dir in $PATH
5514 > do
5515 >  IFS=$as_save_IFS
5516 >  test -z "$as_dir" && as_dir=.
5517 >  for ac_exec_ext in '' $ac_executable_extensions; do
5518 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519 >    ac_cv_prog_LEX="$ac_prog"
5520 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 >    break 2
5522 >  fi
5523   done
5524 + done
5525  
5526   fi
5527   fi
5528   LEX=$ac_cv_prog_LEX
5529   if test -n "$LEX"; then
5530 <  echo "$as_me:3699: result: $LEX" >&5
5530 >  echo "$as_me:$LINENO: result: $LEX" >&5
5531   echo "${ECHO_T}$LEX" >&6
5532   else
5533 <  echo "$as_me:3702: result: no" >&5
5533 >  echo "$as_me:$LINENO: result: no" >&5
5534   echo "${ECHO_T}no" >&6
5535   fi
5536  
# Line 3709 | Line 5540 | then
5540  
5541   if test -z "$LEXLIB"
5542   then
5543 <  echo "$as_me:3712: checking for yywrap in -lfl" >&5
5543 >  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5544   echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5545   if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5546    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3717 | Line 5548 | cat >conftest.$ac_ext <<_ACEOF
5548    ac_check_lib_save_LIBS=$LIBS
5549   LIBS="-lfl  $LIBS"
5550   cat >conftest.$ac_ext <<_ACEOF
3720 #line 3720 "configure"
3721 #include "confdefs.h"
5551  
5552 < /* Override any gcc2 internal prototype to avoid an error.  */
5553 < #ifdef __cplusplus
5554 < extern "C"
5555 < #endif
5556 < /* We use char because int might match the return type of a gcc2
3728 <   builtin and then its argument prototype would still apply.  */
3729 < char yywrap ();
3730 < int
3731 < main ()
3732 < {
3733 < yywrap ();
3734 <  ;
3735 <  return 0;
3736 < }
5552 > program main
5553 >
5554 > call yywrap
5555 > end program main
5556 >
5557   _ACEOF
5558   rm -f conftest.$ac_objext conftest$ac_exeext
5559 < if { (eval echo "$as_me:3739: \"$ac_link\"") >&5
5560 <  (eval $ac_link) 2>&5
5559 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5560 >  (eval $ac_link) 2>conftest.er1
5561    ac_status=$?
5562 <  echo "$as_me:3742: \$? = $ac_status" >&5
5562 >  grep -v '^ *+' conftest.er1 >conftest.err
5563 >  rm -f conftest.er1
5564 >  cat conftest.err >&5
5565 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566    (exit $ac_status); } &&
5567 <         { ac_try='test -s conftest$ac_exeext'
5568 <  { (eval echo "$as_me:3745: \"$ac_try\"") >&5
5567 >         { ac_try='test -z "$ac_f90_werror_flag"
5568 >                         || test ! -s conftest.err'
5569 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570    (eval $ac_try) 2>&5
5571    ac_status=$?
5572 <  echo "$as_me:3748: \$? = $ac_status" >&5
5572 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 >  (exit $ac_status); }; } &&
5574 >         { ac_try='test -s conftest$ac_exeext'
5575 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 >  (eval $ac_try) 2>&5
5577 >  ac_status=$?
5578 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579    (exit $ac_status); }; }; then
5580    ac_cv_lib_fl_yywrap=yes
5581   else
5582    echo "$as_me: failed program was:" >&5
5583 < cat conftest.$ac_ext >&5
5583 > sed 's/^/| /' conftest.$ac_ext >&5
5584 >
5585   ac_cv_lib_fl_yywrap=no
5586   fi
5587 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5587 > rm -f conftest.err conftest.$ac_objext \
5588 >      conftest$ac_exeext conftest.$ac_ext
5589   LIBS=$ac_check_lib_save_LIBS
5590   fi
5591 < echo "$as_me:3759: result: $ac_cv_lib_fl_yywrap" >&5
5591 > echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5592   echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5593   if test $ac_cv_lib_fl_yywrap = yes; then
5594    LEXLIB="-lfl"
5595   else
5596 <  echo "$as_me:3764: checking for yywrap in -ll" >&5
5596 >  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5597   echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5598   if test "${ac_cv_lib_l_yywrap+set}" = set; then
5599    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3769 | Line 5601 | cat >conftest.$ac_ext <<_ACEOF
5601    ac_check_lib_save_LIBS=$LIBS
5602   LIBS="-ll  $LIBS"
5603   cat >conftest.$ac_ext <<_ACEOF
3772 #line 3772 "configure"
3773 #include "confdefs.h"
5604  
5605 < /* Override any gcc2 internal prototype to avoid an error.  */
5606 < #ifdef __cplusplus
5607 < extern "C"
5608 < #endif
5609 < /* We use char because int might match the return type of a gcc2
3780 <   builtin and then its argument prototype would still apply.  */
3781 < char yywrap ();
3782 < int
3783 < main ()
3784 < {
3785 < yywrap ();
3786 <  ;
3787 <  return 0;
3788 < }
5605 > program main
5606 >
5607 > call yywrap
5608 > end program main
5609 >
5610   _ACEOF
5611   rm -f conftest.$ac_objext conftest$ac_exeext
5612 < if { (eval echo "$as_me:3791: \"$ac_link\"") >&5
5613 <  (eval $ac_link) 2>&5
5612 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5613 >  (eval $ac_link) 2>conftest.er1
5614    ac_status=$?
5615 <  echo "$as_me:3794: \$? = $ac_status" >&5
5615 >  grep -v '^ *+' conftest.er1 >conftest.err
5616 >  rm -f conftest.er1
5617 >  cat conftest.err >&5
5618 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619    (exit $ac_status); } &&
5620 <         { ac_try='test -s conftest$ac_exeext'
5621 <  { (eval echo "$as_me:3797: \"$ac_try\"") >&5
5620 >         { ac_try='test -z "$ac_f90_werror_flag"
5621 >                         || test ! -s conftest.err'
5622 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623    (eval $ac_try) 2>&5
5624    ac_status=$?
5625 <  echo "$as_me:3800: \$? = $ac_status" >&5
5625 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 >  (exit $ac_status); }; } &&
5627 >         { ac_try='test -s conftest$ac_exeext'
5628 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 >  (eval $ac_try) 2>&5
5630 >  ac_status=$?
5631 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632    (exit $ac_status); }; }; then
5633    ac_cv_lib_l_yywrap=yes
5634   else
5635    echo "$as_me: failed program was:" >&5
5636 < cat conftest.$ac_ext >&5
5636 > sed 's/^/| /' conftest.$ac_ext >&5
5637 >
5638   ac_cv_lib_l_yywrap=no
5639   fi
5640 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5640 > rm -f conftest.err conftest.$ac_objext \
5641 >      conftest$ac_exeext conftest.$ac_ext
5642   LIBS=$ac_check_lib_save_LIBS
5643   fi
5644 < echo "$as_me:3811: result: $ac_cv_lib_l_yywrap" >&5
5644 > echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5645   echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5646   if test $ac_cv_lib_l_yywrap = yes; then
5647    LEXLIB="-ll"
# Line 3819 | Line 5652 | if test "x$LEX" != "x:"; then
5652   fi
5653  
5654   if test "x$LEX" != "x:"; then
5655 <  echo "$as_me:3822: checking lex output file root" >&5
5655 >  echo "$as_me:$LINENO: checking lex output file root" >&5
5656   echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5657   if test "${ac_cv_prog_lex_root+set}" = set; then
5658    echo $ECHO_N "(cached) $ECHO_C" >&6
5659   else
5660    # The minimal lex program is just a single line: %%.  But some broken lexes
5661   # (Solaris, I think it was) want two %% lines, so accommodate them.
5662 < echo '%%
5663 < %%' | $LEX
5662 > cat >conftest.l <<_ACEOF
5663 > %%
5664 > %%
5665 > _ACEOF
5666 > { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5667 >  (eval $LEX conftest.l) 2>&5
5668 >  ac_status=$?
5669 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 >  (exit $ac_status); }
5671   if test -f lex.yy.c; then
5672    ac_cv_prog_lex_root=lex.yy
5673   elif test -f lexyy.c; then
5674    ac_cv_prog_lex_root=lexyy
5675   else
5676 <  { { echo "$as_me:3836: error: cannot find output from $LEX; giving up" >&5
5676 >  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5677   echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5678     { (exit 1); exit 1; }; }
5679   fi
5680   fi
5681 < echo "$as_me:3841: result: $ac_cv_prog_lex_root" >&5
5681 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5682   echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5683 + rm -f conftest.l
5684   LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5685  
5686 < echo "$as_me:3845: checking whether yytext is a pointer" >&5
5686 > echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5687   echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5688   if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5689    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3858 | Line 5699 | if { (eval echo "$as_me:3861: \"$ac_link\"") >&5
5699   `cat $LEX_OUTPUT_ROOT.c`
5700   _ACEOF
5701   rm -f conftest.$ac_objext conftest$ac_exeext
5702 < if { (eval echo "$as_me:3861: \"$ac_link\"") >&5
5703 <  (eval $ac_link) 2>&5
5702 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5703 >  (eval $ac_link) 2>conftest.er1
5704    ac_status=$?
5705 <  echo "$as_me:3864: \$? = $ac_status" >&5
5705 >  grep -v '^ *+' conftest.er1 >conftest.err
5706 >  rm -f conftest.er1
5707 >  cat conftest.err >&5
5708 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709    (exit $ac_status); } &&
5710 <         { ac_try='test -s conftest$ac_exeext'
5711 <  { (eval echo "$as_me:3867: \"$ac_try\"") >&5
5710 >         { ac_try='test -z "$ac_f90_werror_flag"
5711 >                         || test ! -s conftest.err'
5712 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713    (eval $ac_try) 2>&5
5714    ac_status=$?
5715 <  echo "$as_me:3870: \$? = $ac_status" >&5
5715 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 >  (exit $ac_status); }; } &&
5717 >         { ac_try='test -s conftest$ac_exeext'
5718 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 >  (eval $ac_try) 2>&5
5720 >  ac_status=$?
5721 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722    (exit $ac_status); }; }; then
5723    ac_cv_prog_lex_yytext_pointer=yes
5724   else
5725    echo "$as_me: failed program was:" >&5
5726 < cat conftest.$ac_ext >&5
5726 > sed 's/^/| /' conftest.$ac_ext >&5
5727 >
5728   fi
5729 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5729 > rm -f conftest.err conftest.$ac_objext \
5730 >      conftest$ac_exeext conftest.$ac_ext
5731   LIBS=$ac_save_LIBS
5732   rm -f "${LEX_OUTPUT_ROOT}.c"
5733  
5734   fi
5735 < echo "$as_me:3882: result: $ac_cv_prog_lex_yytext_pointer" >&5
5735 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5736   echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5737   if test $ac_cv_prog_lex_yytext_pointer = yes; then
5738  
5739 < cat >>confdefs.h <<\EOF
5739 > cat >>confdefs.h <<\_ACEOF
5740   #define YYTEXT_POINTER 1
5741 < EOF
5741 > _ACEOF
5742  
5743   fi
5744  
5745   fi
5746   # Extract the first word of "ar", so it can be a program name with args.
5747   set dummy ar; ac_word=$2
5748 < echo "$as_me:3895: checking for $ac_word" >&5
5748 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5749   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5750   if test "${ac_cv_prog_AR+set}" = set; then
5751    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3900 | Line 5753 | else
5753    if test -n "$AR"; then
5754    ac_cv_prog_AR="$AR" # Let the user override the test.
5755   else
5756 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5757 < ac_dummy="$PATH"
5758 < for ac_dir in $ac_dummy; do
5759 <  IFS=$ac_save_IFS
5760 <  test -z "$ac_dir" && ac_dir=.
5761 <  $as_executable_p "$ac_dir/$ac_word" || continue
5762 < ac_cv_prog_AR="ar"
5763 < echo "$as_me:3910: found $ac_dir/$ac_word" >&5
5764 < break
5756 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 > for as_dir in $PATH
5758 > do
5759 >  IFS=$as_save_IFS
5760 >  test -z "$as_dir" && as_dir=.
5761 >  for ac_exec_ext in '' $ac_executable_extensions; do
5762 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763 >    ac_cv_prog_AR="ar"
5764 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 >    break 2
5766 >  fi
5767   done
5768 + done
5769  
5770    test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
5771   fi
5772   fi
5773   AR=$ac_cv_prog_AR
5774   if test -n "$AR"; then
5775 <  echo "$as_me:3919: result: $AR" >&5
5775 >  echo "$as_me:$LINENO: result: $AR" >&5
5776   echo "${ECHO_T}$AR" >&6
5777   else
5778 <  echo "$as_me:3922: result: no" >&5
5778 >  echo "$as_me:$LINENO: result: no" >&5
5779   echo "${ECHO_T}no" >&6
5780   fi
5781  
5782   if test "$AR" = "NONE"; then
5783 <  { { echo "$as_me:3927: error: --> Can't find \`ar'!" >&5
5783 >  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
5784   echo "$as_me: error: --> Can't find \`ar'!" >&2;}
5785     { (exit 1); exit 1; }; }
5786    cat >confcache <<\_ACEOF
# Line 3937 | Line 5793 | echo "$as_me: error: --> Can't find \`ar'!" >&2;}
5793   # config.status only pays attention to the cache file if you give it
5794   # the --recheck option to rerun configure.
5795   #
5796 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
5796 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
5797   # loading this file, other *unset* `ac_cv_foo' will be assigned the
5798   # following values.
5799  
# Line 3955 | Line 5811 | _ACEOF
5811        # `set' does not quote correctly, so add quotes (double-quote
5812        # substitution turns \\\\ into \\, and sed turns \\ into \).
5813        sed -n \
5814 <        "s/'/'\\\\''/g;
5815 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5814 >        "s/'/'\\\\''/g;
5815 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5816        ;;
5817      *)
5818        # `set' quotes correctly as required by POSIX, so do not add quotes.
5819        sed -n \
5820 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5820 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5821        ;;
5822      esac;
5823   } |
# Line 3972 | Line 5828 | if cmp -s $cache_file confcache; then :; else
5828       t end
5829       /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5830       : end' >>confcache
5831 < if cmp -s $cache_file confcache; then :; else
5831 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
5832    if test -w $cache_file; then
5833      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5834      cat confcache >$cache_file
5835    else
5836      echo "not updating unwritable cache $cache_file"
5837 <  fi
5838 < fi
5839 < rm -f confcache
5840 <  exit 1
5841 < fi
3986 <
3987 < ac_ext=f90
3988 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3989 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3991 <
3992 < ac_ext=f90
3993 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3994 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3996 < echo "$as_me:3996: checking how to get verbose linking output from $F90" >&5
3997 < echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3998 < if test "${ac_cv_prog_f90_v+set}" = set; then
3999 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4000 < else
4001 <
4002 < cat >conftest.$ac_ext <<_ACEOF
4003 <
4004 < program main
4005 <
4006 < end program main
4007 <
4008 < _ACEOF
4009 < rm -f conftest.$ac_objext
4010 < if { (eval echo "$as_me:4010: \"$ac_compile\"") >&5
4011 <  (eval $ac_compile) 2>&5
4012 <  ac_status=$?
4013 <  echo "$as_me:4013: \$? = $ac_status" >&5
4014 <  (exit $ac_status); } &&
4015 <         { ac_try='test -s conftest.$ac_objext'
4016 <  { (eval echo "$as_me:4016: \"$ac_try\"") >&5
4017 <  (eval $ac_try) 2>&5
4018 <  ac_status=$?
4019 <  echo "$as_me:4019: \$? = $ac_status" >&5
4020 <  (exit $ac_status); }; }; then
4021 <  ac_cv_prog_f90_v=
4022 < # Try some options frequently used verbose output
4023 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4024 <  ac_ext=f90
4025 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4026 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4027 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4028 <
4029 < cat >conftest.$ac_ext <<_ACEOF
4030 <
4031 < program main
4032 <
4033 < end program main
4034 <
4035 < _ACEOF
4036 <
4037 < # Compile and link our simple test program by passing a flag (argument
4038 < # 1 to this macro) to the Fortran 90 compiler in order to get
4039 < # "verbose" output that we can then parse for the Fortran 90 linker
4040 < # flags.
4041 < ac_save_F90FLAGS=$F90FLAGS
4042 < F90FLAGS="$F90FLAGS $ac_verb"
4043 <
4044 < (eval echo $as_me:4044: \"$ac_link\") >&5
4045 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4046 < echo "$ac_f90_v_output" >&5
4047 < F90FLAGS=$ac_save_F90FLAGS
4048 <
4049 < rm -f conftest.*
4050 < ac_ext=f90
4051 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4052 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4053 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4054 <
4055 < # If we are using xlf then replace all the commas with spaces.
4056 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4057 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4058 < fi
4059 <
4060 < # If we are using Cray Fortran then delete quotes.
4061 < # Use "\"" instead of '"' for font-lock-mode.
4062 < # FIXME: a more general fix for quoted arguments with spaces?
4063 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4064 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4065 < fi
4066 <  # look for -l* and *.a constructs in the output
4067 <  for ac_arg in $ac_f90_v_output; do
4068 <     case $ac_arg in
4069 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4070 <          ac_cv_prog_f90_v=$ac_verb
4071 <          break 2 ;;
4072 <     esac
4073 <  done
4074 < done
4075 < if test -z "$ac_cv_prog_f90_v"; then
4076 <   { echo "$as_me:4076: WARNING: cannot determine how to obtain linking information from $F90" >&5
4077 < echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
4078 < fi
4079 < else
4080 <  echo "$as_me: failed program was:" >&5
4081 < cat conftest.$ac_ext >&5
4082 < { echo "$as_me:4082: WARNING: compilation failed" >&5
4083 < echo "$as_me: WARNING: compilation failed" >&2;}
4084 < fi
4085 < rm -f conftest.$ac_objext conftest.$ac_ext
4086 <
4087 < fi
4088 < echo "$as_me:4088: result: $ac_cv_prog_f90_v" >&5
4089 < echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
4090 < echo "$as_me:4090: checking for Fortran 90 libraries" >&5
4091 < echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
4092 < if test "${ac_cv_flibs+set}" = set; then
4093 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4094 < else
4095 <  if test "x$F90LIBS" != "x"; then
4096 <  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
4097 < else
4098 <
4099 < ac_ext=f90
4100 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4101 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4103 <
4104 < cat >conftest.$ac_ext <<_ACEOF
4105 <
4106 < program main
4107 <
4108 < end program main
4109 <
4110 < _ACEOF
4111 <
4112 < # Compile and link our simple test program by passing a flag (argument
4113 < # 1 to this macro) to the Fortran 90 compiler in order to get
4114 < # "verbose" output that we can then parse for the Fortran 90 linker
4115 < # flags.
4116 < ac_save_F90FLAGS=$F90FLAGS
4117 < F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4118 <
4119 < (eval echo $as_me:4119: \"$ac_link\") >&5
4120 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4121 < echo "$ac_f90_v_output" >&5
4122 < F90FLAGS=$ac_save_F90FLAGS
4123 <
4124 < rm -f conftest.*
4125 < ac_ext=f90
4126 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4127 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4129 <
4130 < # If we are using xlf then replace all the commas with spaces.
4131 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4132 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4133 < fi
4134 <
4135 < # If we are using Cray Fortran then delete quotes.
4136 < # Use "\"" instead of '"' for font-lock-mode.
4137 < # FIXME: a more general fix for quoted arguments with spaces?
4138 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4139 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4140 < fi
4141 <
4142 < ac_cv_f90libs=
4143 <
4144 < # Save positional arguments (if any)
4145 < ac_save_positional="$@"
4146 <
4147 < set X $ac_f90_v_output
4148 < while test $# != 1; do
4149 <  shift
4150 <  ac_arg=$1
4151 <  case $ac_arg in
4152 <        [\\/]*.a | ?:[\\/]*.a)
4153 <            ac_exists=false
4154 <  for ac_i in $ac_cv_f90libs; do
4155 <    if test x"$ac_arg" = x"$ac_i"; then
4156 <      ac_exists=true
4157 <      break
4158 <    fi
4159 <  done
4160 <
4161 <  if test x"$ac_exists" = xtrue; then
4162 <  :
4163 < else
4164 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4165 < fi
4166 <
4167 <          ;;
4168 <        -bI:*)
4169 <            ac_exists=false
4170 <  for ac_i in $ac_cv_f90libs; do
4171 <    if test x"$ac_arg" = x"$ac_i"; then
4172 <      ac_exists=true
4173 <      break
4174 <    fi
4175 <  done
4176 <
4177 <  if test x"$ac_exists" = xtrue; then
4178 <  :
4179 < else
4180 <  if test "$ac_compiler_gnu" = yes; then
4181 <  for ac_link_opt in $ac_arg; do
4182 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4183 <  done
4184 < else
4185 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4186 < fi
4187 < fi
4188 <
4189 <          ;;
4190 <          # Ignore these flags.
4191 <        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
4192 <          ;;
4193 <        -lkernel32)
4194 <          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4195 <          ;;
4196 <        -[LRuY])
4197 <          # These flags, when seen by themselves, take an argument.
4198 <          # We remove the space between option and argument and re-iterate
4199 <          # unless we find an empty arg or a new option (starting with -)
4200 <          case $2 in
4201 <             "" | -*);;
4202 <             *)
4203 <                ac_arg="$ac_arg$2"
4204 <
4205 <                shift; shift
4206 <                set X $ac_arg "$@"
4207 <                ;;
4208 <          esac
4209 <          ;;
4210 <        -YP,*)
4211 <          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4212 <              ac_exists=false
4213 <  for ac_i in $ac_cv_f90libs; do
4214 <    if test x"$ac_j" = x"$ac_i"; then
4215 <      ac_exists=true
4216 <      break
4217 <    fi
4218 <  done
4219 <
4220 <  if test x"$ac_exists" = xtrue; then
4221 <  :
4222 < else
4223 <  ac_arg="$ac_arg $ac_j"
4224 <                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
4225 < fi
4226 <
4227 <          done
4228 <          ;;
4229 <        -[lLR]*)
4230 <            ac_exists=false
4231 <  for ac_i in $ac_cv_f90libs; do
4232 <    if test x"$ac_arg" = x"$ac_i"; then
4233 <      ac_exists=true
4234 <      break
4235 <    fi
4236 <  done
4237 <
4238 <  if test x"$ac_exists" = xtrue; then
4239 <  :
4240 < else
4241 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4242 < fi
4243 <
4244 <          ;;
4245 <          # Ignore everything else.
4246 <  esac
4247 < done
4248 < # restore positional arguments
4249 < set X $ac_save_positional; shift
4250 <
4251 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4252 < # then we insist that the "run path" must be an absolute path (i.e. it
4253 < # must begin with a "/").
4254 < case `(uname -sr) 2>/dev/null` in
4255 <   "SunOS 5"*)
4256 <      ac_ld_run_path=`echo $ac_f90_v_output |
4257 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4258 <      test "x$ac_ld_run_path" != x &&
4259 <
4260 <        if test "$ac_compiler_gnu" = yes; then
4261 <  for ac_link_opt in $ac_ld_run_path; do
4262 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4263 <  done
4264 < else
4265 <  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
4266 < fi
4267 <      ;;
4268 < esac
4269 < fi # test "x$F90LIBS" = "x"
4270 <
4271 < fi
4272 < echo "$as_me:4272: result: $ac_cv_flibs" >&5
4273 < echo "${ECHO_T}$ac_cv_flibs" >&6
4274 < F90LIBS="$ac_cv_f90libs"
4275 <
4276 < ac_ext=f90
4277 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4278 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4280 <
4281 < echo "$as_me:4281: checking for Fortran 90 name-mangling scheme" >&5
4282 < echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
4283 < if test "${ac_cv_f90_mangling+set}" = set; then
4284 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4285 < else
4286 <  ac_ext=f90
4287 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4288 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4290 < cat >conftest.$ac_ext <<_ACEOF
4291 < subroutine foobar()
4292 < return
4293 < end
4294 < subroutine foo_bar()
4295 < return
4296 < end
4297 < _ACEOF
4298 < rm -f conftest.$ac_objext
4299 < if { (eval echo "$as_me:4299: \"$ac_compile\"") >&5
4300 <  (eval $ac_compile) 2>&5
4301 <  ac_status=$?
4302 <  echo "$as_me:4302: \$? = $ac_status" >&5
4303 <  (exit $ac_status); } &&
4304 <         { ac_try='test -s conftest.$ac_objext'
4305 <  { (eval echo "$as_me:4305: \"$ac_try\"") >&5
4306 <  (eval $ac_try) 2>&5
4307 <  ac_status=$?
4308 <  echo "$as_me:4308: \$? = $ac_status" >&5
4309 <  (exit $ac_status); }; }; then
4310 <  mv conftest.$ac_objext cf90_test.$ac_objext
4311 <
4312 <  ac_ext=c
4313 < ac_cpp='$CPP $CPPFLAGS'
4314 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317 <
4318 <  ac_save_LIBS=$LIBS
4319 <  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
4320 <
4321 <  ac_success=no
4322 <  for ac_foobar in foobar FOOBAR; do
4323 <    for ac_underscore in "" "_"; do
4324 <      ac_func="$ac_foobar$ac_underscore"
4325 <      cat >conftest.$ac_ext <<_ACEOF
4326 < #line 4326 "configure"
4327 < #include "confdefs.h"
4328 <
4329 < /* Override any gcc2 internal prototype to avoid an error.  */
4330 < #ifdef __cplusplus
4331 < extern "C"
4332 < #endif
4333 < /* We use char because int might match the return type of a gcc2
4334 <   builtin and then its argument prototype would still apply.  */
4335 < char $ac_func ();
4336 < int
4337 < main ()
4338 < {
4339 < $ac_func ();
4340 <  ;
4341 <  return 0;
4342 < }
4343 < _ACEOF
4344 < rm -f conftest.$ac_objext conftest$ac_exeext
4345 < if { (eval echo "$as_me:4345: \"$ac_link\"") >&5
4346 <  (eval $ac_link) 2>&5
4347 <  ac_status=$?
4348 <  echo "$as_me:4348: \$? = $ac_status" >&5
4349 <  (exit $ac_status); } &&
4350 <         { ac_try='test -s conftest$ac_exeext'
4351 <  { (eval echo "$as_me:4351: \"$ac_try\"") >&5
4352 <  (eval $ac_try) 2>&5
4353 <  ac_status=$?
4354 <  echo "$as_me:4354: \$? = $ac_status" >&5
4355 <  (exit $ac_status); }; }; then
4356 <  ac_success=yes; break 2
4357 < else
4358 <  echo "$as_me: failed program was:" >&5
4359 < cat conftest.$ac_ext >&5
4360 < fi
4361 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4362 <    done
4363 <  done
4364 <
4365 <  if test "$ac_success" = "yes"; then
4366 <     case $ac_foobar in
4367 <        foobar)
4368 <           ac_case=lower
4369 <           ac_foo_bar=foo_bar
4370 <           ;;
4371 <        FOOBAR)
4372 <           ac_case=upper
4373 <           ac_foo_bar=FOO_BAR
4374 <           ;;
4375 <     esac
4376 <
4377 <     ac_success_extra=no
4378 <     for ac_extra in "" "_"; do
4379 <        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4380 <
4381 <        cat >conftest.$ac_ext <<_ACEOF
4382 < #line 4382 "configure"
4383 < #include "confdefs.h"
4384 <
4385 < /* Override any gcc2 internal prototype to avoid an error.  */
4386 < #ifdef __cplusplus
4387 < extern "C"
4388 < #endif
4389 < /* We use char because int might match the return type of a gcc2
4390 <   builtin and then its argument prototype would still apply.  */
4391 < char $ac_func ();
4392 < int
4393 < main ()
4394 < {
4395 < $ac_func ();
4396 <  ;
4397 <  return 0;
4398 < }
4399 < _ACEOF
4400 < rm -f conftest.$ac_objext conftest$ac_exeext
4401 < if { (eval echo "$as_me:4401: \"$ac_link\"") >&5
4402 <  (eval $ac_link) 2>&5
4403 <  ac_status=$?
4404 <  echo "$as_me:4404: \$? = $ac_status" >&5
4405 <  (exit $ac_status); } &&
4406 <         { ac_try='test -s conftest$ac_exeext'
4407 <  { (eval echo "$as_me:4407: \"$ac_try\"") >&5
4408 <  (eval $ac_try) 2>&5
4409 <  ac_status=$?
4410 <  echo "$as_me:4410: \$? = $ac_status" >&5
4411 <  (exit $ac_status); }; }; then
4412 <  ac_success_extra=yes; break
4413 < else
4414 <  echo "$as_me: failed program was:" >&5
4415 < cat conftest.$ac_ext >&5
4416 < fi
4417 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4418 <     done
4419 <
4420 <     if test "$ac_success_extra" = "yes"; then
4421 <        ac_cv_f90_mangling="$ac_case case"
4422 <        if test -z "$ac_underscore"; then
4423 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
4424 <        else
4425 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
4426 <
4427 <        fi
4428 <        if test -z "$ac_extra"; then
4429 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
4430 <        else
4431 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
4432 <        fi
4433 <      else
4434 <        ac_cv_f90_mangling="unknown"
4435 <      fi
4436 <  else
4437 <     ac_cv_f90_mangling="unknown"
4438 <
4439 <  fi
4440 <
4441 <  LIBS=$ac_save_LIBS
4442 <  ac_ext=f90
4443 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4444 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4446 <  rm -f cf90_test* conftest*
4447 < else
4448 <  echo "$as_me: failed program was:" >&5
4449 < cat conftest.$ac_ext >&5
4450 < fi
4451 < rm -f conftest.$ac_objext conftest.$ac_ext
4452 < ac_ext=f90
4453 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4454 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4456 <
4457 < fi
4458 < echo "$as_me:4458: result: $ac_cv_f90_mangling" >&5
4459 < echo "${ECHO_T}$ac_cv_f90_mangling" >&6
4460 <
4461 < case $ac_cv_f90_mangling in
4462 <  "lower case, no underscore, no extra underscore")
4463 <          cat >>confdefs.h <<\EOF
4464 < #define F90_FUNC(name,NAME) name
4465 < EOF
4466 <
4467 <          cat >>confdefs.h <<\EOF
4468 < #define F90_FUNC_(name,NAME) name
4469 < EOF
4470 < ;;
4471 <  "lower case, no underscore, extra underscore")
4472 <          cat >>confdefs.h <<\EOF
4473 < #define F90_FUNC(name,NAME) name
4474 < EOF
4475 <
4476 <          cat >>confdefs.h <<\EOF
4477 < #define F90_FUNC_(name,NAME) name ## _
4478 < EOF
4479 < ;;
4480 <  "lower case, underscore, no extra underscore")
4481 <          cat >>confdefs.h <<\EOF
4482 < #define F90_FUNC(name,NAME) name ## _
4483 < EOF
4484 <
4485 <          cat >>confdefs.h <<\EOF
4486 < #define F90_FUNC_(name,NAME) name ## _
4487 < EOF
4488 < ;;
4489 <  "lower case, underscore, extra underscore")
4490 <          cat >>confdefs.h <<\EOF
4491 < #define F90_FUNC(name,NAME) name ## _
4492 < EOF
4493 <
4494 <          cat >>confdefs.h <<\EOF
4495 < #define F90_FUNC_(name,NAME) name ## __
4496 < EOF
4497 < ;;
4498 <  "upper case, no underscore, no extra underscore")
4499 <          cat >>confdefs.h <<\EOF
4500 < #define F90_FUNC(name,NAME) NAME
4501 < EOF
4502 <
4503 <          cat >>confdefs.h <<\EOF
4504 < #define F90_FUNC_(name,NAME) NAME
4505 < EOF
4506 < ;;
4507 <  "upper case, no underscore, extra underscore")
4508 <          cat >>confdefs.h <<\EOF
4509 < #define F90_FUNC(name,NAME) NAME
4510 < EOF
5837 >  fi
5838 > fi
5839 > rm -f confcache
5840 >  exit 1
5841 > fi
5842  
5843 <          cat >>confdefs.h <<\EOF
4513 < #define F90_FUNC_(name,NAME) NAME ## _
4514 < EOF
4515 < ;;
4516 <  "upper case, underscore, no extra underscore")
4517 <          cat >>confdefs.h <<\EOF
4518 < #define F90_FUNC(name,NAME) NAME ## _
4519 < EOF
4520 <
4521 <          cat >>confdefs.h <<\EOF
4522 < #define F90_FUNC_(name,NAME) NAME ## _
4523 < EOF
4524 < ;;
4525 <  "upper case, underscore, extra underscore")
4526 <          cat >>confdefs.h <<\EOF
4527 < #define F90_FUNC(name,NAME) NAME ## _
4528 < EOF
4529 <
4530 <          cat >>confdefs.h <<\EOF
4531 < #define F90_FUNC_(name,NAME) NAME ## __
4532 < EOF
4533 < ;;
4534 <  *)
4535 <          { echo "$as_me:4535: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4536 < echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4537 <          ;;
4538 < esac
4539 <
4540 < echo "$as_me:4540: checking for mpi-directory" >&5
5843 > echo "$as_me:$LINENO: checking for mpi-directory" >&5
5844   echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
5845  
5846 < # Check whether --with-mpi_dir or --without-mpi_dir was given.
5847 < if test "${with_mpi_dir+set}" = set; then
5848 <  withval="$with_mpi_dir"
5846 > # Check whether --with-mpi or --without-mpi was given.
5847 > if test "${with_mpi+set}" = set; then
5848 >  withval="$with_mpi"
5849    MPI_DIR="$withval"
5850   else
5851    MPI_DIR="/usr/local"
5852   fi;
5853 < echo "$as_me:4550: result: $MPI_DIR" >&5
5853 > echo "$as_me:$LINENO: result: $MPI_DIR" >&5
5854   echo "${ECHO_T}$MPI_DIR" >&6
5855  
5856 < echo "$as_me:4553: checking for mpi-lib-directory" >&5
5856 >
5857 > echo "$as_me:$LINENO: checking for mpi-lib-directory" >&5
5858   echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
5859  
5860   # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
# Line 4560 | Line 5864 | echo "$as_me:4563: result: $MPI_LIBDIR" >&5
5864   else
5865    MPI_LIBDIR="$MPI_DIR/lib"
5866   fi;
5867 < echo "$as_me:4563: result: $MPI_LIBDIR" >&5
5867 > echo "$as_me:$LINENO: result: $MPI_LIBDIR" >&5
5868   echo "${ECHO_T}$MPI_LIBDIR" >&6
5869  
5870 < echo "$as_me:4566: checking for mpi-inc-directory" >&5
5870 >
5871 > echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5
5872   echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
5873  
5874   # Check whether --with-mpi_inc or --without-mpi_inc was given.
# Line 4573 | Line 5878 | echo "$as_me:4576: result: $MPI_INC" >&5
5878   else
5879    MPI_INC="$MPI_DIR/include"
5880   fi;
5881 < echo "$as_me:4576: result: $MPI_INC" >&5
5881 > echo "$as_me:$LINENO: result: $MPI_INC" >&5
5882   echo "${ECHO_T}$MPI_INC" >&6
5883  
5884 < echo "$as_me:4579: checking for MPI library" >&5
5884 >
5885 >
5886 > echo "$as_me:$LINENO: checking for MPI library" >&5
5887   echo $ECHO_N "checking for MPI library... $ECHO_C" >&6
5888   MPI_LIB=""
5889   case "$host" in
5890    *-ibm-aix*)
5891 <    echo "$as_me:4584: checking whether to use signal-based MPI library" >&5
5891 >    echo "$as_me:$LINENO: checking whether to use signal-based MPI library" >&5
5892   echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6
5893 <    echo "$as_me:4586: result: $PACX_SIGNAL" >&5
5893 >    echo "$as_me:$LINENO: result: $PACX_SIGNAL" >&5
5894   echo "${ECHO_T}$PACX_SIGNAL" >&6
5895      if test "x$PACX_SIGNAL" = "xyes" ; then
5896        if test -f "$MPI_LIBDIR/libmpi.a" ; then
# Line 4593 | Line 5900 | echo "${ECHO_T}$PACX_SIGNAL" >&6
5900        elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5901          MPI_LIB="-lmpich"
5902        else
5903 <        { { echo "$as_me:4596: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5903 >        { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5904   echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5905     { (exit 1); exit 1; }; }
5906        fi
# Line 4601 | Line 5908 | echo "$as_me: error: neither libmpi nor libmpich found
5908        if test -f "$MPI_LIBDIR/libmpi_r.a" ; then
5909           MPI_LIB="-lmpi_r"
5910        else
5911 <         { { echo "$as_me:4604: error: libmpi_r not found; check path for MPI package..." >&5
5911 >         { { echo "$as_me:$LINENO: error: libmpi_r not found; check path for MPI package..." >&5
5912   echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;}
5913     { (exit 1); exit 1; }; }
5914        fi
5915      fi
5916 <    echo "$as_me:4609: result: found $MPI_LIB" >&5
5916 >    echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5917   echo "${ECHO_T}found $MPI_LIB" >&6
5918    ;;
5919 <  *)                             if test -f "$MPI_LIBDIR/libmpi.a" ; then
5920 <      MPI_LIB="-lmpi"
5919 >  *)                             if test -f "$MPI_LIBDIR/libmpich.a" ; then
5920 >      MPI_LIB="-lmpich"
5921      elif test -f "$MPI_LIBDIR/libmpi.so" ; then
5922        MPI_LIB="-lmpi"
5923 <    elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5924 <      MPI_LIB="-lmpich"
5923 >    elif test -f "$MPI_LIBDIR/libmpi.a" ; then
5924 >      MPI_LIB="-lmpi"
5925      else
5926 <      { { echo "$as_me:4619: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5926 >      { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5927   echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5928     { (exit 1); exit 1; }; }
5929      fi
5930 <    echo "$as_me:4623: result: found $MPI_LIB" >&5
5930 >    echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5931   echo "${ECHO_T}found $MPI_LIB" >&6
5932    ;;
5933   esac
5934  
4628        for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r
4629 do
4630  # Extract the first word of "$ac_prog", so it can be a program name with args.
4631 set dummy $ac_prog; ac_word=$2
4632 echo "$as_me:4632: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4634 if test "${ac_cv_prog_MPIF90+set}" = set; then
4635  echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637  if test -n "$MPIF90"; then
4638  ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test.
4639 else
4640  ac_save_IFS=$IFS; IFS=$ac_path_separator
4641 ac_dummy="$PATH"
4642 for ac_dir in $ac_dummy; do
4643  IFS=$ac_save_IFS
4644  test -z "$ac_dir" && ac_dir=.
4645  $as_executable_p "$ac_dir/$ac_word" || continue
4646 ac_cv_prog_MPIF90="$ac_prog"
4647 echo "$as_me:4647: found $ac_dir/$ac_word" >&5
4648 break
4649 done
5935  
4651 fi
4652 fi
4653 MPIF90=$ac_cv_prog_MPIF90
4654 if test -n "$MPIF90"; then
4655  echo "$as_me:4655: result: $MPIF90" >&5
4656 echo "${ECHO_T}$MPIF90" >&6
4657 else
4658  echo "$as_me:4658: result: no" >&5
4659 echo "${ECHO_T}no" >&6
4660 fi
4661
4662  test -n "$MPIF90" && break
4663 done
4664 test -n "$MPIF90" || MPIF90="$F90"
4665
4666        acx_mpi_save_F90="$F90"
4667        F90="$MPIF90"
4668
4669 if test x = x"$MPILIBS"; then
4670        echo "$as_me:4670: checking for MPI_Init" >&5
4671 echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6
4672                        cat >conftest.$ac_ext <<_ACEOF
4673
4674 program main
4675
4676      call MPI_Init
4677 end program main
4678
4679 _ACEOF
4680 rm -f conftest.$ac_objext conftest$ac_exeext
4681 if { (eval echo "$as_me:4681: \"$ac_link\"") >&5
4682  (eval $ac_link) 2>&5
4683  ac_status=$?
4684  echo "$as_me:4684: \$? = $ac_status" >&5
4685  (exit $ac_status); } &&
4686         { ac_try='test -s conftest$ac_exeext'
4687  { (eval echo "$as_me:4687: \"$ac_try\"") >&5
4688  (eval $ac_try) 2>&5
4689  ac_status=$?
4690  echo "$as_me:4690: \$? = $ac_status" >&5
4691  (exit $ac_status); }; }; then
4692  MPILIBS=" "
4693                                echo "$as_me:4693: result: yes" >&5
4694 echo "${ECHO_T}yes" >&6
4695 else
4696  echo "$as_me: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4698 echo "$as_me:4698: result: no" >&5
4699 echo "${ECHO_T}no" >&6
4700 fi
4701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4702 fi
4703 if test x = x"$MPILIBS"; then
4704        echo "$as_me:4704: checking for MPI_Init in -lmpi" >&5
4705 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
4706 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
4707  echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709  ac_check_lib_save_LIBS=$LIBS
4710 LIBS="-lmpi  $LIBS"
4711 cat >conftest.$ac_ext <<_ACEOF
4712
4713 program main
4714
4715 call MPI_Init
4716 end program main
4717
4718 _ACEOF
4719 rm -f conftest.$ac_objext conftest$ac_exeext
4720 if { (eval echo "$as_me:4720: \"$ac_link\"") >&5
4721  (eval $ac_link) 2>&5
4722  ac_status=$?
4723  echo "$as_me:4723: \$? = $ac_status" >&5
4724  (exit $ac_status); } &&
4725         { ac_try='test -s conftest$ac_exeext'
4726  { (eval echo "$as_me:4726: \"$ac_try\"") >&5
4727  (eval $ac_try) 2>&5
4728  ac_status=$?
4729  echo "$as_me:4729: \$? = $ac_status" >&5
4730  (exit $ac_status); }; }; then
4731  ac_cv_lib_mpi_MPI_Init=yes
4732 else
4733  echo "$as_me: failed program was:" >&5
4734 cat conftest.$ac_ext >&5
4735 ac_cv_lib_mpi_MPI_Init=no
4736 fi
4737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4738 LIBS=$ac_check_lib_save_LIBS
4739 fi
4740 echo "$as_me:4740: result: $ac_cv_lib_mpi_MPI_Init" >&5
4741 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
4742 if test $ac_cv_lib_mpi_MPI_Init = yes; then
4743  MPILIBS="-lmpi"
4744 fi
4745
4746 fi
4747 if test x = x"$MPILIBS"; then
4748        echo "$as_me:4748: checking for MPI_Init in -lmpich" >&5
4749 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
4750 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
4751  echo $ECHO_N "(cached) $ECHO_C" >&6
4752 else
4753  ac_check_lib_save_LIBS=$LIBS
4754 LIBS="-lmpich  $LIBS"
4755 cat >conftest.$ac_ext <<_ACEOF
4756
4757 program main
4758
4759 call MPI_Init
4760 end program main
4761
4762 _ACEOF
4763 rm -f conftest.$ac_objext conftest$ac_exeext
4764 if { (eval echo "$as_me:4764: \"$ac_link\"") >&5
4765  (eval $ac_link) 2>&5
4766  ac_status=$?
4767  echo "$as_me:4767: \$? = $ac_status" >&5
4768  (exit $ac_status); } &&
4769         { ac_try='test -s conftest$ac_exeext'
4770  { (eval echo "$as_me:4770: \"$ac_try\"") >&5
4771  (eval $ac_try) 2>&5
4772  ac_status=$?
4773  echo "$as_me:4773: \$? = $ac_status" >&5
4774  (exit $ac_status); }; }; then
4775  ac_cv_lib_mpich_MPI_Init=yes
4776 else
4777  echo "$as_me: failed program was:" >&5
4778 cat conftest.$ac_ext >&5
4779 ac_cv_lib_mpich_MPI_Init=no
4780 fi
4781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4782 LIBS=$ac_check_lib_save_LIBS
4783 fi
4784 echo "$as_me:4784: result: $ac_cv_lib_mpich_MPI_Init" >&5
4785 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
4786 if test $ac_cv_lib_mpich_MPI_Init = yes; then
4787  MPILIBS="-lmpich"
4788 fi
4789
4790 fi
4791
4792 F90="$acx_mpi_save_F90"
4793
4794 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4795 if test x = x"$MPILIBS"; then
4796
4797        :
4798 else
4799
4800 cat >>confdefs.h <<\EOF
4801 #define HAVE_MPI 1
4802 EOF
4803
4804        :
4805 fi
5936  
5937   ac_ext=c
5938   ac_cpp='$CPP $CPPFLAGS'
5939   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941   ac_compiler_gnu=$ac_cv_c_compiler_gnu
5942 < echo "$as_me:4812: checking how to run the C preprocessor" >&5
5942 > echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5943   echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5944   # On Suns, sometimes $CPP names a directory.
5945   if test -n "$CPP" && test -d "$CPP"; then
# Line 4822 | Line 5952 | else
5952        # Double quotes because CPP needs to be expanded
5953      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5954      do
4825      # break 2 since there is a loop in there.
5955        ac_preproc_ok=false
5956   for ac_c_preproc_warn_flag in '' yes
5957   do
5958    # Use a header file that comes with gcc, so configuring glibc
5959    # with a fresh cross-compiler works.
5960 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5961 +  # <limits.h> exists even on freestanding compilers.
5962    # On the NeXT, cc -E runs the code through the compiler's parser,
5963    # not just through cpp. "Syntax error" is here to catch this case.
5964    cat >conftest.$ac_ext <<_ACEOF
5965 < #line 4834 "configure"
4835 < #include "confdefs.h"
4836 < #include <assert.h>
4837 <                     Syntax error
5965 > /* confdefs.h.  */
5966   _ACEOF
5967 < if { (eval echo "$as_me:4839: \"$ac_cpp conftest.$ac_ext\"") >&5
5967 > cat confdefs.h >>conftest.$ac_ext
5968 > cat >>conftest.$ac_ext <<_ACEOF
5969 > /* end confdefs.h.  */
5970 > #ifdef __STDC__
5971 > # include <limits.h>
5972 > #else
5973 > # include <assert.h>
5974 > #endif
5975 >                     Syntax error
5976 > _ACEOF
5977 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5978    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5979    ac_status=$?
5980 <  egrep -v '^ *\+' conftest.er1 >conftest.err
5980 >  grep -v '^ *+' conftest.er1 >conftest.err
5981    rm -f conftest.er1
5982    cat conftest.err >&5
5983 <  echo "$as_me:4845: \$? = $ac_status" >&5
5983 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984    (exit $ac_status); } >/dev/null; then
5985    if test -s conftest.err; then
5986      ac_cpp_err=$ac_c_preproc_warn_flag
5987 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5988    else
5989      ac_cpp_err=
5990    fi
# Line 4856 | Line 5995 | else
5995    :
5996   else
5997    echo "$as_me: failed program was:" >&5
5998 <  cat conftest.$ac_ext >&5
5998 > sed 's/^/| /' conftest.$ac_ext >&5
5999 >
6000    # Broken: fails on valid input.
6001   continue
6002   fi
# Line 4865 | Line 6005 | rm -f conftest.err conftest.$ac_ext
6005    # OK, works on sane cases.  Now check whether non-existent headers
6006    # can be detected and how.
6007    cat >conftest.$ac_ext <<_ACEOF
6008 < #line 4868 "configure"
6009 < #include "confdefs.h"
6008 > /* confdefs.h.  */
6009 > _ACEOF
6010 > cat confdefs.h >>conftest.$ac_ext
6011 > cat >>conftest.$ac_ext <<_ACEOF
6012 > /* end confdefs.h.  */
6013   #include <ac_nonexistent.h>
6014   _ACEOF
6015 < if { (eval echo "$as_me:4872: \"$ac_cpp conftest.$ac_ext\"") >&5
6015 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6016    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6017    ac_status=$?
6018 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6018 >  grep -v '^ *+' conftest.er1 >conftest.err
6019    rm -f conftest.er1
6020    cat conftest.err >&5
6021 <  echo "$as_me:4878: \$? = $ac_status" >&5
6021 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022    (exit $ac_status); } >/dev/null; then
6023    if test -s conftest.err; then
6024      ac_cpp_err=$ac_c_preproc_warn_flag
6025 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6026    else
6027      ac_cpp_err=
6028    fi
# Line 4890 | Line 6034 | else
6034   continue
6035   else
6036    echo "$as_me: failed program was:" >&5
6037 <  cat conftest.$ac_ext >&5
6037 > sed 's/^/| /' conftest.$ac_ext >&5
6038 >
6039    # Passes both tests.
6040   ac_preproc_ok=:
6041   break
# Line 4901 | Line 6046 | if $ac_preproc_ok; then
6046   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6047   rm -f conftest.err conftest.$ac_ext
6048   if $ac_preproc_ok; then
6049 <  break 2
6049 >  break
6050   fi
6051  
6052      done
# Line 4912 | Line 6057 | echo "$as_me:4915: result: $CPP" >&5
6057   else
6058    ac_cv_prog_CPP=$CPP
6059   fi
6060 < echo "$as_me:4915: result: $CPP" >&5
6060 > echo "$as_me:$LINENO: result: $CPP" >&5
6061   echo "${ECHO_T}$CPP" >&6
6062   ac_preproc_ok=false
6063   for ac_c_preproc_warn_flag in '' yes
6064   do
6065    # Use a header file that comes with gcc, so configuring glibc
6066    # with a fresh cross-compiler works.
6067 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6068 +  # <limits.h> exists even on freestanding compilers.
6069    # On the NeXT, cc -E runs the code through the compiler's parser,
6070    # not just through cpp. "Syntax error" is here to catch this case.
6071    cat >conftest.$ac_ext <<_ACEOF
6072 < #line 4925 "configure"
4926 < #include "confdefs.h"
4927 < #include <assert.h>
4928 <                     Syntax error
6072 > /* confdefs.h.  */
6073   _ACEOF
6074 < if { (eval echo "$as_me:4930: \"$ac_cpp conftest.$ac_ext\"") >&5
6074 > cat confdefs.h >>conftest.$ac_ext
6075 > cat >>conftest.$ac_ext <<_ACEOF
6076 > /* end confdefs.h.  */
6077 > #ifdef __STDC__
6078 > # include <limits.h>
6079 > #else
6080 > # include <assert.h>
6081 > #endif
6082 >                     Syntax error
6083 > _ACEOF
6084 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6085    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6086    ac_status=$?
6087 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6087 >  grep -v '^ *+' conftest.er1 >conftest.err
6088    rm -f conftest.er1
6089    cat conftest.err >&5
6090 <  echo "$as_me:4936: \$? = $ac_status" >&5
6090 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091    (exit $ac_status); } >/dev/null; then
6092    if test -s conftest.err; then
6093      ac_cpp_err=$ac_c_preproc_warn_flag
6094 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6095    else
6096      ac_cpp_err=
6097    fi
# Line 4947 | Line 6102 | else
6102    :
6103   else
6104    echo "$as_me: failed program was:" >&5
6105 <  cat conftest.$ac_ext >&5
6105 > sed 's/^/| /' conftest.$ac_ext >&5
6106 >
6107    # Broken: fails on valid input.
6108   continue
6109   fi
# Line 4956 | Line 6112 | rm -f conftest.err conftest.$ac_ext
6112    # OK, works on sane cases.  Now check whether non-existent headers
6113    # can be detected and how.
6114    cat >conftest.$ac_ext <<_ACEOF
6115 < #line 4959 "configure"
6116 < #include "confdefs.h"
6115 > /* confdefs.h.  */
6116 > _ACEOF
6117 > cat confdefs.h >>conftest.$ac_ext
6118 > cat >>conftest.$ac_ext <<_ACEOF
6119 > /* end confdefs.h.  */
6120   #include <ac_nonexistent.h>
6121   _ACEOF
6122 < if { (eval echo "$as_me:4963: \"$ac_cpp conftest.$ac_ext\"") >&5
6122 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6123    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6124    ac_status=$?
6125 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6125 >  grep -v '^ *+' conftest.er1 >conftest.err
6126    rm -f conftest.er1
6127    cat conftest.err >&5
6128 <  echo "$as_me:4969: \$? = $ac_status" >&5
6128 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129    (exit $ac_status); } >/dev/null; then
6130    if test -s conftest.err; then
6131      ac_cpp_err=$ac_c_preproc_warn_flag
6132 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6133    else
6134      ac_cpp_err=
6135    fi
# Line 4981 | Line 6141 | else
6141   continue
6142   else
6143    echo "$as_me: failed program was:" >&5
6144 <  cat conftest.$ac_ext >&5
6144 > sed 's/^/| /' conftest.$ac_ext >&5
6145 >
6146    # Passes both tests.
6147   ac_preproc_ok=:
6148   break
# Line 4994 | Line 6155 | else
6155   if $ac_preproc_ok; then
6156    :
6157   else
6158 <  { { echo "$as_me:4997: error: C preprocessor \"$CPP\" fails sanity check" >&5
6159 < echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
6158 >  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6159 > See \`config.log' for more details." >&5
6160 > echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6161 > See \`config.log' for more details." >&2;}
6162     { (exit 1); exit 1; }; }
6163   fi
6164  
# Line 5004 | Line 6167 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6167   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6170 +
6171 +
6172 + echo "$as_me:$LINENO: checking for egrep" >&5
6173 + echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6174 + if test "${ac_cv_prog_egrep+set}" = set; then
6175 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6176 + else
6177 +  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6178 +    then ac_cv_prog_egrep='grep -E'
6179 +    else ac_cv_prog_egrep='egrep'
6180 +    fi
6181 + fi
6182 + echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6183 + echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6184 + EGREP=$ac_cv_prog_egrep
6185 +
6186 +
6187 + echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6188 + echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6189 + if test "${ac_cv_header_stdc+set}" = set; then
6190 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6191 + else
6192 +  cat >conftest.$ac_ext <<_ACEOF
6193 + /* confdefs.h.  */
6194 + _ACEOF
6195 + cat confdefs.h >>conftest.$ac_ext
6196 + cat >>conftest.$ac_ext <<_ACEOF
6197 + /* end confdefs.h.  */
6198 + #include <stdlib.h>
6199 + #include <stdarg.h>
6200 + #include <string.h>
6201 + #include <float.h>
6202  
6203 + int
6204 + main ()
6205 + {
6206 +
6207 +  ;
6208 +  return 0;
6209 + }
6210 + _ACEOF
6211 + rm -f conftest.$ac_objext
6212 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6213 +  (eval $ac_compile) 2>conftest.er1
6214 +  ac_status=$?
6215 +  grep -v '^ *+' conftest.er1 >conftest.err
6216 +  rm -f conftest.er1
6217 +  cat conftest.err >&5
6218 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 +  (exit $ac_status); } &&
6220 +         { ac_try='test -z "$ac_c_werror_flag"
6221 +                         || test ! -s conftest.err'
6222 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 +  (eval $ac_try) 2>&5
6224 +  ac_status=$?
6225 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 +  (exit $ac_status); }; } &&
6227 +         { ac_try='test -s conftest.$ac_objext'
6228 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 +  (eval $ac_try) 2>&5
6230 +  ac_status=$?
6231 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 +  (exit $ac_status); }; }; then
6233 +  ac_cv_header_stdc=yes
6234 + else
6235 +  echo "$as_me: failed program was:" >&5
6236 + sed 's/^/| /' conftest.$ac_ext >&5
6237 +
6238 + ac_cv_header_stdc=no
6239 + fi
6240 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6241 +
6242 + if test $ac_cv_header_stdc = yes; then
6243 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6244 +  cat >conftest.$ac_ext <<_ACEOF
6245 + /* confdefs.h.  */
6246 + _ACEOF
6247 + cat confdefs.h >>conftest.$ac_ext
6248 + cat >>conftest.$ac_ext <<_ACEOF
6249 + /* end confdefs.h.  */
6250 + #include <string.h>
6251 +
6252 + _ACEOF
6253 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6254 +  $EGREP "memchr" >/dev/null 2>&1; then
6255 +  :
6256 + else
6257 +  ac_cv_header_stdc=no
6258 + fi
6259 + rm -f conftest*
6260 +
6261 + fi
6262 +
6263 + if test $ac_cv_header_stdc = yes; then
6264 +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6265 +  cat >conftest.$ac_ext <<_ACEOF
6266 + /* confdefs.h.  */
6267 + _ACEOF
6268 + cat confdefs.h >>conftest.$ac_ext
6269 + cat >>conftest.$ac_ext <<_ACEOF
6270 + /* end confdefs.h.  */
6271 + #include <stdlib.h>
6272 +
6273 + _ACEOF
6274 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6275 +  $EGREP "free" >/dev/null 2>&1; then
6276 +  :
6277 + else
6278 +  ac_cv_header_stdc=no
6279 + fi
6280 + rm -f conftest*
6281 +
6282 + fi
6283 +
6284 + if test $ac_cv_header_stdc = yes; then
6285 +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6286 +  if test "$cross_compiling" = yes; then
6287 +  :
6288 + else
6289 +  cat >conftest.$ac_ext <<_ACEOF
6290 + /* confdefs.h.  */
6291 + _ACEOF
6292 + cat confdefs.h >>conftest.$ac_ext
6293 + cat >>conftest.$ac_ext <<_ACEOF
6294 + /* end confdefs.h.  */
6295 + #include <ctype.h>
6296 + #if ((' ' & 0x0FF) == 0x020)
6297 + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6298 + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6299 + #else
6300 + # define ISLOWER(c) \
6301 +                   (('a' <= (c) && (c) <= 'i') \
6302 +                     || ('j' <= (c) && (c) <= 'r') \
6303 +                     || ('s' <= (c) && (c) <= 'z'))
6304 + # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6305 + #endif
6306 +
6307 + #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6308 + int
6309 + main ()
6310 + {
6311 +  int i;
6312 +  for (i = 0; i < 256; i++)
6313 +    if (XOR (islower (i), ISLOWER (i))
6314 +        || toupper (i) != TOUPPER (i))
6315 +      exit(2);
6316 +  exit (0);
6317 + }
6318 + _ACEOF
6319 + rm -f conftest$ac_exeext
6320 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6321 +  (eval $ac_link) 2>&5
6322 +  ac_status=$?
6323 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6325 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326 +  (eval $ac_try) 2>&5
6327 +  ac_status=$?
6328 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 +  (exit $ac_status); }; }; then
6330 +  :
6331 + else
6332 +  echo "$as_me: program exited with status $ac_status" >&5
6333 + echo "$as_me: failed program was:" >&5
6334 + sed 's/^/| /' conftest.$ac_ext >&5
6335 +
6336 + ( exit $ac_status )
6337 + ac_cv_header_stdc=no
6338 + fi
6339 + rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6340 + fi
6341 + fi
6342 + fi
6343 + echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6344 + echo "${ECHO_T}$ac_cv_header_stdc" >&6
6345 + if test $ac_cv_header_stdc = yes; then
6346 +
6347 + cat >>confdefs.h <<\_ACEOF
6348 + #define STDC_HEADERS 1
6349 + _ACEOF
6350 +
6351 + fi
6352 +
6353 + # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6354 +
6355 +
6356 +
6357 +
6358 +
6359 +
6360 +
6361 +
6362 +
6363 + for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6364 +                  inttypes.h stdint.h unistd.h
6365 + do
6366 + as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6367 + echo "$as_me:$LINENO: checking for $ac_header" >&5
6368 + echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6369 + if eval "test \"\${$as_ac_Header+set}\" = set"; then
6370 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6371 + else
6372 +  cat >conftest.$ac_ext <<_ACEOF
6373 + /* confdefs.h.  */
6374 + _ACEOF
6375 + cat confdefs.h >>conftest.$ac_ext
6376 + cat >>conftest.$ac_ext <<_ACEOF
6377 + /* end confdefs.h.  */
6378 + $ac_includes_default
6379 +
6380 + #include <$ac_header>
6381 + _ACEOF
6382 + rm -f conftest.$ac_objext
6383 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 +  (eval $ac_compile) 2>conftest.er1
6385 +  ac_status=$?
6386 +  grep -v '^ *+' conftest.er1 >conftest.err
6387 +  rm -f conftest.er1
6388 +  cat conftest.err >&5
6389 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 +  (exit $ac_status); } &&
6391 +         { ac_try='test -z "$ac_c_werror_flag"
6392 +                         || test ! -s conftest.err'
6393 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 +  (eval $ac_try) 2>&5
6395 +  ac_status=$?
6396 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 +  (exit $ac_status); }; } &&
6398 +         { ac_try='test -s conftest.$ac_objext'
6399 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 +  (eval $ac_try) 2>&5
6401 +  ac_status=$?
6402 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 +  (exit $ac_status); }; }; then
6404 +  eval "$as_ac_Header=yes"
6405 + else
6406 +  echo "$as_me: failed program was:" >&5
6407 + sed 's/^/| /' conftest.$ac_ext >&5
6408 +
6409 + eval "$as_ac_Header=no"
6410 + fi
6411 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6412 + fi
6413 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6415 + if test `eval echo '${'$as_ac_Header'}'` = yes; then
6416 +  cat >>confdefs.h <<_ACEOF
6417 + #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6418 + _ACEOF
6419 +
6420 + fi
6421 +
6422 + done
6423 +
6424 +
6425 +
6426 +
6427 +
6428   # Check whether --with-sprng_prefix or --without-sprng_prefix was given.
6429   if test "${with_sprng_prefix+set}" = set; then
6430    withval="$with_sprng_prefix"
# Line 5013 | Line 6433 | fi;
6433    sprng_prefix="/usr/local"
6434   fi;
6435  
6436 < # Check whether --with-sprng_lib_prefix or --without-sprng_lib_prefix was given.
6437 < if test "${with_sprng_lib_prefix+set}" = set; then
6438 <  withval="$with_sprng_lib_prefix"
6439 <  sprng_lib_prefix="$withval"
6436 > # Check whether --with-sprng-libdir or --without-sprng-libdir was given.
6437 > if test "${with_sprng_libdir+set}" = set; then
6438 >  withval="$with_sprng_libdir"
6439 >  sprng_libdir="$withval"
6440   else
6441 <  sprng_lib_prefix="/usr/local/lib"
6441 >  sprng_libdir="/usr/local/lib"
6442   fi;
6443  
6444 < # Check whether --with-sprng_include_prefix or --without-sprng_include_prefix was given.
6445 < if test "${with_sprng_include_prefix+set}" = set; then
6446 <  withval="$with_sprng_include_prefix"
6447 <  sprng_include_prefix="$withval"
6444 > # Check whether --with-sprng-include or --without-sprng-include was given.
6445 > if test "${with_sprng_include+set}" = set; then
6446 >  withval="$with_sprng_include"
6447 >  sprng_include="$withval"
6448   else
6449 <  sprng_include_prefix="/usr/local/include/sprng"
6449 >  sprng_include="/usr/local/include/sprng"
6450   fi;
6451  
6452 <  if test x$sprng_lib_prefix = x ; then
6453 <    sprng_lib_prefix=${sprng_prefix}/lib
6452 >  if test x$sprng_libdir = x ; then
6453 >    sprng_libdir=${sprng_prefix}/lib
6454    fi
6455  
6456 <  if test x$sprng_include_prefix = x ; then
6457 <    sprng_include_prefix=${sprng_prefix}/include
6456 >  if test x$sprng_include = x ; then
6457 >    sprng_include=${sprng_prefix}/include
6458    fi
6459  
6460 <  echo "$as_me:5040: checking for SPRNG include files in $sprng_include_prefix" >&5
6461 < echo $ECHO_N "checking for SPRNG include files in $sprng_include_prefix... $ECHO_C" >&6
6462 <  if test -f ${sprng_include_prefix}/sprng.h; then
6460 >  echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include" >&5
6461 > echo $ECHO_N "checking for SPRNG include files in $sprng_include... $ECHO_C" >&6
6462 >  if test -f ${sprng_include}/sprng.h; then
6463      have_sprngincl=yes
6464 <    echo "$as_me:5044: result: yes" >&5
6464 >    echo "$as_me:$LINENO: result: yes" >&5
6465   echo "${ECHO_T}yes" >&6
6466    else
6467      have_sprngincl=no
6468 <    echo "$as_me:5048: result: no" >&5
6468 >    echo "$as_me:$LINENO: result: no" >&5
6469   echo "${ECHO_T}no" >&6
6470 <    { { echo "$as_me:5050: error: Could not locate the SPRNG include files" >&5
6470 >    { { echo "$as_me:$LINENO: error: Could not locate the SPRNG include files" >&5
6471   echo "$as_me: error: Could not locate the SPRNG include files" >&2;}
6472     { (exit 1); exit 1; }; }
6473    fi
6474  
6475 <  echo "$as_me:5055: checking for SPRNG libraries in $sprng_lib_prefix" >&5
6476 < echo $ECHO_N "checking for SPRNG libraries in $sprng_lib_prefix... $ECHO_C" >&6
6477 <  if test -f ${sprng_lib_prefix}/libsprng.a; then
6475 >  echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_libdir" >&5
6476 > echo $ECHO_N "checking for SPRNG libraries in $sprng_libdir... $ECHO_C" >&6
6477 >  if test -f ${sprng_libdir}/libsprng.a; then
6478      have_sprnglib=yes
6479 <    echo "$as_me:5059: result: yes" >&5
6479 >    echo "$as_me:$LINENO: result: yes" >&5
6480   echo "${ECHO_T}yes" >&6
6481    else
6482      have_sprnglib=no
6483 <    echo "$as_me:5063: result: no" >&5
6483 >    echo "$as_me:$LINENO: result: no" >&5
6484   echo "${ECHO_T}no" >&6
6485 <    { { echo "$as_me:5065: error: Could not locate the SPRNG libraries" >&5
6485 >    { { echo "$as_me:$LINENO: error: Could not locate the SPRNG libraries" >&5
6486   echo "$as_me: error: Could not locate the SPRNG libraries" >&2;}
6487     { (exit 1); exit 1; }; }
6488    fi
6489  
6490 +
6491 +
6492    ac_ext=c
6493   ac_cpp='$CPP $CPPFLAGS'
6494   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5074 | Line 6496 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6496   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6497  
6498    ac_save_CPPFLAGS=$CPPFLAGS
6499 <  CPPFLAGS="${CPPFLAGS} -I${sprng_include_prefix}"
6499 >  CPPFLAGS="${CPPFLAGS} -I${sprng_include}"
6500    ac_save_LDFLAGS=$LDFLAGS
6501 <  LDFLAGS="${LDFLAGS} -L${sprng_lib_prefix} -lsprng"
6502 <  echo "$as_me:5080: checking for sprng.h" >&5
6501 >  LDFLAGS="${LDFLAGS} -L${sprng_libdir} -lsprng"
6502 >  if test "${ac_cv_header_sprng_h+set}" = set; then
6503 >  echo "$as_me:$LINENO: checking for sprng.h" >&5
6504   echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6505   if test "${ac_cv_header_sprng_h+set}" = set; then
6506    echo $ECHO_N "(cached) $ECHO_C" >&6
6507 + fi
6508 + echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6509 + echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6510   else
6511 <  cat >conftest.$ac_ext <<_ACEOF
6512 < #line 5086 "configure"
6513 < #include "confdefs.h"
6511 >  # Is the header compilable?
6512 > echo "$as_me:$LINENO: checking sprng.h usability" >&5
6513 > echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6
6514 > cat >conftest.$ac_ext <<_ACEOF
6515 > /* confdefs.h.  */
6516 > _ACEOF
6517 > cat confdefs.h >>conftest.$ac_ext
6518 > cat >>conftest.$ac_ext <<_ACEOF
6519 > /* end confdefs.h.  */
6520 > $ac_includes_default
6521   #include <sprng.h>
6522   _ACEOF
6523 < if { (eval echo "$as_me:5090: \"$ac_cpp conftest.$ac_ext\"") >&5
6523 > rm -f conftest.$ac_objext
6524 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6525 >  (eval $ac_compile) 2>conftest.er1
6526 >  ac_status=$?
6527 >  grep -v '^ *+' conftest.er1 >conftest.err
6528 >  rm -f conftest.er1
6529 >  cat conftest.err >&5
6530 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 >  (exit $ac_status); } &&
6532 >         { ac_try='test -z "$ac_c_werror_flag"
6533 >                         || test ! -s conftest.err'
6534 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 >  (eval $ac_try) 2>&5
6536 >  ac_status=$?
6537 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 >  (exit $ac_status); }; } &&
6539 >         { ac_try='test -s conftest.$ac_objext'
6540 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 >  (eval $ac_try) 2>&5
6542 >  ac_status=$?
6543 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 >  (exit $ac_status); }; }; then
6545 >  ac_header_compiler=yes
6546 > else
6547 >  echo "$as_me: failed program was:" >&5
6548 > sed 's/^/| /' conftest.$ac_ext >&5
6549 >
6550 > ac_header_compiler=no
6551 > fi
6552 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6553 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6554 > echo "${ECHO_T}$ac_header_compiler" >&6
6555 >
6556 > # Is the header present?
6557 > echo "$as_me:$LINENO: checking sprng.h presence" >&5
6558 > echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6
6559 > cat >conftest.$ac_ext <<_ACEOF
6560 > /* confdefs.h.  */
6561 > _ACEOF
6562 > cat confdefs.h >>conftest.$ac_ext
6563 > cat >>conftest.$ac_ext <<_ACEOF
6564 > /* end confdefs.h.  */
6565 > #include <sprng.h>
6566 > _ACEOF
6567 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6568    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6569    ac_status=$?
6570 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6570 >  grep -v '^ *+' conftest.er1 >conftest.err
6571    rm -f conftest.er1
6572    cat conftest.err >&5
6573 <  echo "$as_me:5096: \$? = $ac_status" >&5
6573 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574    (exit $ac_status); } >/dev/null; then
6575    if test -s conftest.err; then
6576      ac_cpp_err=$ac_c_preproc_warn_flag
6577 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6578    else
6579      ac_cpp_err=
6580    fi
# Line 5104 | Line 6582 | if test -z "$ac_cpp_err"; then
6582    ac_cpp_err=yes
6583   fi
6584   if test -z "$ac_cpp_err"; then
6585 <  ac_cv_header_sprng_h=yes
6585 >  ac_header_preproc=yes
6586   else
6587    echo "$as_me: failed program was:" >&5
6588 <  cat conftest.$ac_ext >&5
6589 <  ac_cv_header_sprng_h=no
6588 > sed 's/^/| /' conftest.$ac_ext >&5
6589 >
6590 >  ac_header_preproc=no
6591   fi
6592   rm -f conftest.err conftest.$ac_ext
6593 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6594 + echo "${ECHO_T}$ac_header_preproc" >&6
6595 +
6596 + # So?  What about this header?
6597 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6598 +  yes:no: )
6599 +    { echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5
6600 + echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6601 +    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the compiler's result" >&5
6602 + echo "$as_me: WARNING: sprng.h: proceeding with the compiler's result" >&2;}
6603 +    ac_header_preproc=yes
6604 +    ;;
6605 +  no:yes:* )
6606 +    { echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5
6607 + echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;}
6608 +    { echo "$as_me:$LINENO: WARNING: sprng.h:     check for missing prerequisite headers?" >&5
6609 + echo "$as_me: WARNING: sprng.h:     check for missing prerequisite headers?" >&2;}
6610 +    { echo "$as_me:$LINENO: WARNING: sprng.h: see the Autoconf documentation" >&5
6611 + echo "$as_me: WARNING: sprng.h: see the Autoconf documentation" >&2;}
6612 +    { echo "$as_me:$LINENO: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&5
6613 + echo "$as_me: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6614 +    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6615 + echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6616 +    { echo "$as_me:$LINENO: WARNING: sprng.h: in the future, the compiler will take precedence" >&5
6617 + echo "$as_me: WARNING: sprng.h: in the future, the compiler will take precedence" >&2;}
6618 +    (
6619 +      cat <<\_ASBOX
6620 + ## ------------------------------ ##
6621 + ## Report this to gezelter@nd.edu ##
6622 + ## ------------------------------ ##
6623 + _ASBOX
6624 +    ) |
6625 +      sed "s/^/$as_me: WARNING:     /" >&2
6626 +    ;;
6627 + esac
6628 + echo "$as_me:$LINENO: checking for sprng.h" >&5
6629 + echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6630 + if test "${ac_cv_header_sprng_h+set}" = set; then
6631 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6632 + else
6633 +  ac_cv_header_sprng_h=$ac_header_preproc
6634   fi
6635 < echo "$as_me:5115: result: $ac_cv_header_sprng_h" >&5
6635 > echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6636   echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6637 +
6638 + fi
6639   if test $ac_cv_header_sprng_h = yes; then
6640  
6641 <    echo "$as_me:5119: checking for init_rng in -lsprng" >&5
6641 >    echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5
6642   echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6
6643   if test "${ac_cv_lib_sprng_init_rng+set}" = set; then
6644    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5124 | Line 6646 | cat >conftest.$ac_ext <<_ACEOF
6646    ac_check_lib_save_LIBS=$LIBS
6647   LIBS="-lsprng  $LIBS"
6648   cat >conftest.$ac_ext <<_ACEOF
6649 < #line 5127 "configure"
6650 < #include "confdefs.h"
6649 > /* confdefs.h.  */
6650 > _ACEOF
6651 > cat confdefs.h >>conftest.$ac_ext
6652 > cat >>conftest.$ac_ext <<_ACEOF
6653 > /* end confdefs.h.  */
6654  
6655   /* Override any gcc2 internal prototype to avoid an error.  */
6656   #ifdef __cplusplus
# Line 5143 | Line 6668 | if { (eval echo "$as_me:5146: \"$ac_link\"") >&5
6668   }
6669   _ACEOF
6670   rm -f conftest.$ac_objext conftest$ac_exeext
6671 < if { (eval echo "$as_me:5146: \"$ac_link\"") >&5
6672 <  (eval $ac_link) 2>&5
6671 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6672 >  (eval $ac_link) 2>conftest.er1
6673    ac_status=$?
6674 <  echo "$as_me:5149: \$? = $ac_status" >&5
6674 >  grep -v '^ *+' conftest.er1 >conftest.err
6675 >  rm -f conftest.er1
6676 >  cat conftest.err >&5
6677 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678    (exit $ac_status); } &&
6679 <         { ac_try='test -s conftest$ac_exeext'
6680 <  { (eval echo "$as_me:5152: \"$ac_try\"") >&5
6679 >         { ac_try='test -z "$ac_c_werror_flag"
6680 >                         || test ! -s conftest.err'
6681 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682    (eval $ac_try) 2>&5
6683    ac_status=$?
6684 <  echo "$as_me:5155: \$? = $ac_status" >&5
6684 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 >  (exit $ac_status); }; } &&
6686 >         { ac_try='test -s conftest$ac_exeext'
6687 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 >  (eval $ac_try) 2>&5
6689 >  ac_status=$?
6690 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691    (exit $ac_status); }; }; then
6692    ac_cv_lib_sprng_init_rng=yes
6693   else
6694    echo "$as_me: failed program was:" >&5
6695 < cat conftest.$ac_ext >&5
6695 > sed 's/^/| /' conftest.$ac_ext >&5
6696 >
6697   ac_cv_lib_sprng_init_rng=no
6698   fi
6699 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6699 > rm -f conftest.err conftest.$ac_objext \
6700 >      conftest$ac_exeext conftest.$ac_ext
6701   LIBS=$ac_check_lib_save_LIBS
6702   fi
6703 < echo "$as_me:5166: result: $ac_cv_lib_sprng_init_rng" >&5
6703 > echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
6704   echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
6705   if test $ac_cv_lib_sprng_init_rng = yes; then
6706 <  SPRNG_LIBDIR="${sprng_lib_prefix}"
6707 <                     SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include_prefix}"
6706 >  SPRNG_LIBDIR="${sprng_libdir}"
6707 >                     SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include}"
6708                       HAVE_SPRNG="yes"
6709   fi
6710  
6711   fi
6712  
6713 +
6714    CPPFLAGS=$ac_save_CPPFLAGS
6715    LDFLAGS=$ac_save_LDFLAGS
6716    ac_ext=f90
# Line 5180 | Line 6718 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6718   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6719   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6720  
6721 +
6722    if test x_$HAVE_SPRNG != x_yes; then
6723 <        { { echo "$as_me:5184: error: Can't build with SPRNG" >&5
6723 >        { { echo "$as_me:$LINENO: error: Can't build with SPRNG" >&5
6724   echo "$as_me: error: Can't build with SPRNG" >&2;}
6725     { (exit 1); exit 1; }; }
6726    fi
6727  
6728 < echo "$as_me:5189: checking if MKL is wanted" >&5
6728 >
6729 >
6730 >
6731 >
6732 > echo "$as_me:$LINENO: checking if MKL is wanted" >&5
6733   echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6
6734  
6735   # Check whether --with-mkl or --without-mkl was given.
6736   if test "${with_mkl+set}" = set; then
6737    withval="$with_mkl"
6738 <     echo "$as_me:5195: result: yes" >&5
6738 >     echo "$as_me:$LINENO: result: yes" >&5
6739   echo "${ECHO_T}yes" >&6
6740      for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do
6741          mkldir="$dir"
# Line 5202 | Line 6745 | echo "${ECHO_T}yes" >&6
6745          fi
6746      done
6747      if test x_$found_mkl != x_yes; then
6748 <        { { echo "$as_me:5205: error: Cannot find MKL includes" >&5
6748 >        { { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5
6749   echo "$as_me: error: Cannot find MKL includes" >&2;}
6750     { (exit 1); exit 1; }; }
6751      else
6752          printf "MKL includes found in $mkldir/include\n";
6753      fi
6754  
6755 +
6756 +
6757    ac_ext=c
6758   ac_cpp='$CPP $CPPFLAGS'
6759   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5218 | Line 6763 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6763    ac_save_CPPFLAGS=$CPPFLAGS
6764    CPPFLAGS="${CPPFLAGS} -I${mkldir}/include"
6765    ac_save_LDFLAGS=$LDFLAGS
6766 <  LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide"
6767 <  echo "$as_me:5222: checking for mkl.h" >&5
6766 >  LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide"
6767 >  if test "${ac_cv_header_mkl_h+set}" = set; then
6768 >  echo "$as_me:$LINENO: checking for mkl.h" >&5
6769 > echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
6770 > if test "${ac_cv_header_mkl_h+set}" = set; then
6771 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6772 > fi
6773 > echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
6774 > echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
6775 > else
6776 >  # Is the header compilable?
6777 > echo "$as_me:$LINENO: checking mkl.h usability" >&5
6778 > echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
6779 > cat >conftest.$ac_ext <<_ACEOF
6780 > /* confdefs.h.  */
6781 > _ACEOF
6782 > cat confdefs.h >>conftest.$ac_ext
6783 > cat >>conftest.$ac_ext <<_ACEOF
6784 > /* end confdefs.h.  */
6785 > $ac_includes_default
6786 > #include <mkl.h>
6787 > _ACEOF
6788 > rm -f conftest.$ac_objext
6789 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790 >  (eval $ac_compile) 2>conftest.er1
6791 >  ac_status=$?
6792 >  grep -v '^ *+' conftest.er1 >conftest.err
6793 >  rm -f conftest.er1
6794 >  cat conftest.err >&5
6795 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 >  (exit $ac_status); } &&
6797 >         { ac_try='test -z "$ac_c_werror_flag"
6798 >                         || test ! -s conftest.err'
6799 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 >  (eval $ac_try) 2>&5
6801 >  ac_status=$?
6802 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 >  (exit $ac_status); }; } &&
6804 >         { ac_try='test -s conftest.$ac_objext'
6805 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 >  (eval $ac_try) 2>&5
6807 >  ac_status=$?
6808 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 >  (exit $ac_status); }; }; then
6810 >  ac_header_compiler=yes
6811 > else
6812 >  echo "$as_me: failed program was:" >&5
6813 > sed 's/^/| /' conftest.$ac_ext >&5
6814 >
6815 > ac_header_compiler=no
6816 > fi
6817 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6818 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6819 > echo "${ECHO_T}$ac_header_compiler" >&6
6820 >
6821 > # Is the header present?
6822 > echo "$as_me:$LINENO: checking mkl.h presence" >&5
6823 > echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
6824 > cat >conftest.$ac_ext <<_ACEOF
6825 > /* confdefs.h.  */
6826 > _ACEOF
6827 > cat confdefs.h >>conftest.$ac_ext
6828 > cat >>conftest.$ac_ext <<_ACEOF
6829 > /* end confdefs.h.  */
6830 > #include <mkl.h>
6831 > _ACEOF
6832 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6833 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6834 >  ac_status=$?
6835 >  grep -v '^ *+' conftest.er1 >conftest.err
6836 >  rm -f conftest.er1
6837 >  cat conftest.err >&5
6838 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 >  (exit $ac_status); } >/dev/null; then
6840 >  if test -s conftest.err; then
6841 >    ac_cpp_err=$ac_c_preproc_warn_flag
6842 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6843 >  else
6844 >    ac_cpp_err=
6845 >  fi
6846 > else
6847 >  ac_cpp_err=yes
6848 > fi
6849 > if test -z "$ac_cpp_err"; then
6850 >  ac_header_preproc=yes
6851 > else
6852 >  echo "$as_me: failed program was:" >&5
6853 > sed 's/^/| /' conftest.$ac_ext >&5
6854 >
6855 >  ac_header_preproc=no
6856 > fi
6857 > rm -f conftest.err conftest.$ac_ext
6858 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6859 > echo "${ECHO_T}$ac_header_preproc" >&6
6860 >
6861 > # So?  What about this header?
6862 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6863 >  yes:no: )
6864 >    { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6865 > echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6866 >    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5
6867 > echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;}
6868 >    ac_header_preproc=yes
6869 >    ;;
6870 >  no:yes:* )
6871 >    { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
6872 > echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
6873 >    { echo "$as_me:$LINENO: WARNING: mkl.h:     check for missing prerequisite headers?" >&5
6874 > echo "$as_me: WARNING: mkl.h:     check for missing prerequisite headers?" >&2;}
6875 >    { echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5
6876 > echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;}
6877 >    { echo "$as_me:$LINENO: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&5
6878 > echo "$as_me: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6879 >    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
6880 > echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
6881 >    { echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5
6882 > echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;}
6883 >    (
6884 >      cat <<\_ASBOX
6885 > ## ------------------------------ ##
6886 > ## Report this to gezelter@nd.edu ##
6887 > ## ------------------------------ ##
6888 > _ASBOX
6889 >    ) |
6890 >      sed "s/^/$as_me: WARNING:     /" >&2
6891 >    ;;
6892 > esac
6893 > echo "$as_me:$LINENO: checking for mkl.h" >&5
6894   echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
6895   if test "${ac_cv_header_mkl_h+set}" = set; then
6896    echo $ECHO_N "(cached) $ECHO_C" >&6
6897   else
6898 <  cat >conftest.$ac_ext <<_ACEOF
5228 < #line 5228 "configure"
5229 < #include "confdefs.h"
5230 < #include <mkl.h>
5231 < _ACEOF
5232 < if { (eval echo "$as_me:5232: \"$ac_cpp conftest.$ac_ext\"") >&5
5233 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5234 <  ac_status=$?
5235 <  egrep -v '^ *\+' conftest.er1 >conftest.err
5236 <  rm -f conftest.er1
5237 <  cat conftest.err >&5
5238 <  echo "$as_me:5238: \$? = $ac_status" >&5
5239 <  (exit $ac_status); } >/dev/null; then
5240 <  if test -s conftest.err; then
5241 <    ac_cpp_err=$ac_c_preproc_warn_flag
5242 <  else
5243 <    ac_cpp_err=
5244 <  fi
5245 < else
5246 <  ac_cpp_err=yes
6898 >  ac_cv_header_mkl_h=$ac_header_preproc
6899   fi
6900 < if test -z "$ac_cpp_err"; then
5249 <  ac_cv_header_mkl_h=yes
5250 < else
5251 <  echo "$as_me: failed program was:" >&5
5252 <  cat conftest.$ac_ext >&5
5253 <  ac_cv_header_mkl_h=no
5254 < fi
5255 < rm -f conftest.err conftest.$ac_ext
5256 < fi
5257 < echo "$as_me:5257: result: $ac_cv_header_mkl_h" >&5
6900 > echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
6901   echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
6902 +
6903 + fi
6904   if test $ac_cv_header_mkl_h = yes; then
6905  
6906 <    echo "$as_me:5261: checking for vslNewStream in -lmkl" >&5
6906 >    echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5
6907   echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6
6908   if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then
6909    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5266 | Line 6911 | cat >conftest.$ac_ext <<_ACEOF
6911    ac_check_lib_save_LIBS=$LIBS
6912   LIBS="-lmkl  $LIBS"
6913   cat >conftest.$ac_ext <<_ACEOF
6914 < #line 5269 "configure"
6915 < #include "confdefs.h"
6914 > /* confdefs.h.  */
6915 > _ACEOF
6916 > cat confdefs.h >>conftest.$ac_ext
6917 > cat >>conftest.$ac_ext <<_ACEOF
6918 > /* end confdefs.h.  */
6919  
6920   /* Override any gcc2 internal prototype to avoid an error.  */
6921   #ifdef __cplusplus
# Line 5285 | Line 6933 | if { (eval echo "$as_me:5288: \"$ac_link\"") >&5
6933   }
6934   _ACEOF
6935   rm -f conftest.$ac_objext conftest$ac_exeext
6936 < if { (eval echo "$as_me:5288: \"$ac_link\"") >&5
6937 <  (eval $ac_link) 2>&5
6936 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937 >  (eval $ac_link) 2>conftest.er1
6938    ac_status=$?
6939 <  echo "$as_me:5291: \$? = $ac_status" >&5
6939 >  grep -v '^ *+' conftest.er1 >conftest.err
6940 >  rm -f conftest.er1
6941 >  cat conftest.err >&5
6942 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943    (exit $ac_status); } &&
6944 <         { ac_try='test -s conftest$ac_exeext'
6945 <  { (eval echo "$as_me:5294: \"$ac_try\"") >&5
6944 >         { ac_try='test -z "$ac_c_werror_flag"
6945 >                         || test ! -s conftest.err'
6946 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947    (eval $ac_try) 2>&5
6948    ac_status=$?
6949 <  echo "$as_me:5297: \$? = $ac_status" >&5
6949 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 >  (exit $ac_status); }; } &&
6951 >         { ac_try='test -s conftest$ac_exeext'
6952 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 >  (eval $ac_try) 2>&5
6954 >  ac_status=$?
6955 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956    (exit $ac_status); }; }; then
6957    ac_cv_lib_mkl_vslNewStream=yes
6958   else
6959    echo "$as_me: failed program was:" >&5
6960 < cat conftest.$ac_ext >&5
6960 > sed 's/^/| /' conftest.$ac_ext >&5
6961 >
6962   ac_cv_lib_mkl_vslNewStream=no
6963   fi
6964 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6964 > rm -f conftest.err conftest.$ac_objext \
6965 >      conftest$ac_exeext conftest.$ac_ext
6966   LIBS=$ac_check_lib_save_LIBS
6967   fi
6968 < echo "$as_me:5308: result: $ac_cv_lib_mkl_vslNewStream" >&5
6968 > echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
6969   echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6
6970   if test $ac_cv_lib_mkl_vslNewStream = yes; then
6971    MKL_LIBDIR="${mkldir}/lib/32",
# Line 5313 | Line 6973 | else
6973                       HAVE_MKL="yes"
6974   fi
6975  
6976 +
6977   else
6978    MKL_INC="-I${mkldir}/include"
6979   fi
6980  
6981 +
6982    CPPFLAGS=$ac_save_CPPFLAGS
6983    LDFLAGS=$ac_save_LDFLAGS
6984    ac_ext=f90
# Line 5324 | Line 6986 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6986   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6988  
6989 +
6990    if test x_$HAVE_MKL != x_yes; then
6991 <        { { echo "$as_me:5328: error: Can't build with MKL" >&5
6991 >        { { echo "$as_me:$LINENO: error: Can't build with MKL" >&5
6992   echo "$as_me: error: Can't build with MKL" >&2;}
6993     { (exit 1); exit 1; }; }
6994    fi
6995  
6996 +
6997 +
6998 +
6999 +
7000   else
7001  
7002 <    echo "$as_me:5335: result: no" >&5
7002 >    echo "$as_me:$LINENO: result: no" >&5
7003   echo "${ECHO_T}no" >&6
7004  
7005   fi;
7006  
5340 #AC_CHECK_MPI_F90MOD
7007  
7008 +
7009 +
7010 +
7011   OBJEXT=".$OBJEXT"
7012  
7013   OOPSE=oopse
# Line 5362 | Line 7031 | SUBDIRS="libBASS libmdtools src forceFields samples ut
7031  
7032   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
7033  
7034 < SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder"
7034 > SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps third-party"
7035  
7036 < #CFLAGS=${CFLAGS-""}
7037 < #CXXFLAGS=${CXXFLAGS-""}
7038 < #CPPFLAGS=${CPPFLAGS-""}
7039 < #FFLAGS=${FFLAGS-""}
7040 < #LDFLAGS=${LDFLAGS-""}
7041 < #OPTIMIZE=${OPTIMIZE-"-O"}
7042 < #DEBUG=${DEBUG-"-g"}
7036 > CFLAGS=${CFLAGS-""}
7037 > CXXFLAGS=${CXXFLAGS-""}
7038 > CPPFLAGS=${CPPFLAGS-""}
7039 > FFLAGS=${FFLAGS-""}
7040 > F90FLAGS=${F90FLAGS-""}
7041 > LDFLAGS=${LDFLAGS-""}
7042 > DEBUG=${DEBUG-"-g"}
7043  
7044   case $debug in
7045 <  true)
5377 <     CFLAGS="$DEBUG $CFLAGS"
5378 <     CXXFLAGS="$DEBUG $CXXFLAGS"
7045 >  1)
7046       FFLAGS="$DEBUG $FFLAGS"
7047       F90FLAGS="$DEBUG $F90FLAGS"
7048       ;;
7049    *)
5383     CFLAGS="$OPTIMIZE $CFLAGS"
5384     CXXFLAGS="$OPTIMIZE $CXXFLAGS"
5385     FFLAGS="$OPTIMIZE $FFLAGS"
5386     F90FLAGS="$OPTIMIZE $F90FLAGS"
7050       ;;
7051   esac
7052  
5390 ac_config_headers="$ac_config_headers libmdtools/config.h"
7053  
7054 < 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"
7054 >
7055 >
7056 >
7057 >
7058 >
7059 >
7060 >
7061 >
7062 >
7063 >
7064 >
7065 >
7066 >
7067 >
7068  
7069 +          ac_config_headers="$ac_config_headers libmdtools/config.h"
7070 +
7071 +                                                                                                                                                                ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile staticProps/Makefile third-party/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile"
7072 +
7073 +
7074   cat >confcache <<\_ACEOF
7075   # This file is a shell script that caches the results of configure
7076   # tests run on this system so they can be shared between configure
# Line 5401 | Line 7081 | cat >confcache <<\_ACEOF
7081   # config.status only pays attention to the cache file if you give it
7082   # the --recheck option to rerun configure.
7083   #
7084 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
7084 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
7085   # loading this file, other *unset* `ac_cv_foo' will be assigned the
7086   # following values.
7087  
# Line 5419 | Line 7099 | _ACEOF
7099        # `set' does not quote correctly, so add quotes (double-quote
7100        # substitution turns \\\\ into \\, and sed turns \\ into \).
7101        sed -n \
7102 <        "s/'/'\\\\''/g;
7103 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7102 >        "s/'/'\\\\''/g;
7103 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7104        ;;
7105      *)
7106        # `set' quotes correctly as required by POSIX, so do not add quotes.
7107        sed -n \
7108 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7108 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7109        ;;
7110      esac;
7111   } |
# Line 5436 | Line 7116 | if cmp -s $cache_file confcache; then :; else
7116       t end
7117       /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7118       : end' >>confcache
7119 < if cmp -s $cache_file confcache; then :; else
7119 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
7120    if test -w $cache_file; then
7121      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7122      cat confcache >$cache_file
# Line 5455 | Line 7135 | if test "x$srcdir" = x.; then
7135   # trailing colons and then remove the whole line if VPATH becomes empty
7136   # (actually we leave an empty line to preserve line numbers).
7137   if test "x$srcdir" = x.; then
7138 <  ac_vpsub='/^[         ]*VPATH[        ]*=/{
7138 >  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7139   s/:*\$(srcdir):*/:/;
7140   s/:*\${srcdir}:*/:/;
7141   s/:*@srcdir@:*/:/;
7142 < s/^\([^=]*=[    ]*\):*/\1/;
7142 > s/^\([^=]*=[     ]*\):*/\1/;
7143   s/:*$//;
7144 < s/^[^=]*=[      ]*$//;
7144 > s/^[^=]*=[       ]*$//;
7145   }'
7146   fi
7147  
7148   DEFS=-DHAVE_CONFIG_H
7149  
7150 + ac_libobjs=
7151 + ac_ltlibobjs=
7152 + for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7153 +  # 1. Remove the extension, and $U if already installed.
7154 +  ac_i=`echo "$ac_i" |
7155 +         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7156 +  # 2. Add them.
7157 +  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7158 +  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7159 + done
7160 + LIBOBJS=$ac_libobjs
7161 +
7162 + LTLIBOBJS=$ac_ltlibobjs
7163 +
7164 +
7165 +
7166   : ${CONFIG_STATUS=./config.status}
7167   ac_clean_files_save=$ac_clean_files
7168   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7169 < { echo "$as_me:5473: creating $CONFIG_STATUS" >&5
7169 > { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7170   echo "$as_me: creating $CONFIG_STATUS" >&6;}
7171   cat >$CONFIG_STATUS <<_ACEOF
7172   #! $SHELL
7173 < # Generated automatically by configure.
7173 > # Generated by $as_me.
7174   # Run this file to recreate the current configuration.
7175   # Compiler output produced by configure, useful for debugging
7176   # configure, is in config.log if it exists.
7177  
7178   debug=false
7179 + ac_cs_recheck=false
7180 + ac_cs_silent=false
7181   SHELL=\${CONFIG_SHELL-$SHELL}
5484 ac_cs_invocation="\$0 \$@"
5485
7182   _ACEOF
7183  
7184   cat >>$CONFIG_STATUS <<\_ACEOF
7185 + ## --------------------- ##
7186 + ## M4sh Initialization.  ##
7187 + ## --------------------- ##
7188 +
7189   # Be Bourne compatible
7190   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7191    emulate sh
7192    NULLCMD=:
7193 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7194 +  # is contrary to our usage.  Disable this feature.
7195 +  alias -g '${1+"$@"}'='"$@"'
7196   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7197    set -o posix
7198   fi
7199 + DUALCASE=1; export DUALCASE # for MKS sh
7200  
7201 + # Support unset when possible.
7202 + if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7203 +  as_unset=unset
7204 + else
7205 +  as_unset=false
7206 + fi
7207 +
7208 +
7209 + # Work around bugs in pre-3.0 UWIN ksh.
7210 + $as_unset ENV MAIL MAILPATH
7211 + PS1='$ '
7212 + PS2='> '
7213 + PS4='+ '
7214 +
7215 + # NLS nuisances.
7216 + for as_var in \
7217 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7218 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7219 +  LC_TELEPHONE LC_TIME
7220 + do
7221 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7222 +    eval $as_var=C; export $as_var
7223 +  else
7224 +    $as_unset $as_var
7225 +  fi
7226 + done
7227 +
7228 + # Required to use basename.
7229 + if expr a : '\(a\)' >/dev/null 2>&1; then
7230 +  as_expr=expr
7231 + else
7232 +  as_expr=false
7233 + fi
7234 +
7235 + if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7236 +  as_basename=basename
7237 + else
7238 +  as_basename=false
7239 + fi
7240 +
7241 +
7242   # Name of the executable.
7243 < as_me=`echo "$0" |sed 's,.*[\\/],,'`
7243 > as_me=`$as_basename "$0" ||
7244 > $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7245 >         X"$0" : 'X\(//\)$' \| \
7246 >         X"$0" : 'X\(/\)$' \| \
7247 >         .     : '\(.\)' 2>/dev/null ||
7248 > echo X/"$0" |
7249 >    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7250 >          /^X\/\(\/\/\)$/{ s//\1/; q; }
7251 >          /^X\/\(\/\).*/{ s//\1/; q; }
7252 >          s/.*/./; q'`
7253 >
7254 >
7255 > # PATH needs CR, and LINENO needs CR and PATH.
7256 > # Avoid depending upon Character Ranges.
7257 > as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7258 > as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7259 > as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7260 > as_cr_digits='0123456789'
7261 > as_cr_alnum=$as_cr_Letters$as_cr_digits
7262 >
7263 > # The user is always right.
7264 > if test "${PATH_SEPARATOR+set}" != set; then
7265 >  echo "#! /bin/sh" >conf$$.sh
7266 >  echo  "exit 0"   >>conf$$.sh
7267 >  chmod +x conf$$.sh
7268 >  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7269 >    PATH_SEPARATOR=';'
7270 >  else
7271 >    PATH_SEPARATOR=:
7272 >  fi
7273 >  rm -f conf$$.sh
7274 > fi
7275  
7276 +
7277 +  as_lineno_1=$LINENO
7278 +  as_lineno_2=$LINENO
7279 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7280 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
7281 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7282 +  # Find who we are.  Look in the path if we contain no path at all
7283 +  # relative or not.
7284 +  case $0 in
7285 +    *[\\/]* ) as_myself=$0 ;;
7286 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 + for as_dir in $PATH
7288 + do
7289 +  IFS=$as_save_IFS
7290 +  test -z "$as_dir" && as_dir=.
7291 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7292 + done
7293 +
7294 +       ;;
7295 +  esac
7296 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
7297 +  # in which case we are not to be found in the path.
7298 +  if test "x$as_myself" = x; then
7299 +    as_myself=$0
7300 +  fi
7301 +  if test ! -f "$as_myself"; then
7302 +    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7303 + echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7304 +   { (exit 1); exit 1; }; }
7305 +  fi
7306 +  case $CONFIG_SHELL in
7307 +  '')
7308 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 + for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7310 + do
7311 +  IFS=$as_save_IFS
7312 +  test -z "$as_dir" && as_dir=.
7313 +  for as_base in sh bash ksh sh5; do
7314 +         case $as_dir in
7315 +         /*)
7316 +           if ("$as_dir/$as_base" -c '
7317 +  as_lineno_1=$LINENO
7318 +  as_lineno_2=$LINENO
7319 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7320 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
7321 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7322 +             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7323 +             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7324 +             CONFIG_SHELL=$as_dir/$as_base
7325 +             export CONFIG_SHELL
7326 +             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7327 +           fi;;
7328 +         esac
7329 +       done
7330 + done
7331 + ;;
7332 +  esac
7333 +
7334 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7335 +  # uniformly replaced by the line number.  The first 'sed' inserts a
7336 +  # line-number line before each line; the second 'sed' does the real
7337 +  # work.  The second script uses 'N' to pair each line-number line
7338 +  # with the numbered line, and appends trailing '-' during
7339 +  # substitution so that $LINENO is not a special case at line end.
7340 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7341 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7342 +  sed '=' <$as_myself |
7343 +    sed '
7344 +      N
7345 +      s,$,-,
7346 +      : loop
7347 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7348 +      t loop
7349 +      s,-$,,
7350 +      s,^['$as_cr_digits']*\n,,
7351 +    ' >$as_me.lineno &&
7352 +  chmod +x $as_me.lineno ||
7353 +    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7354 + echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7355 +   { (exit 1); exit 1; }; }
7356 +
7357 +  # Don't try to exec as it changes $[0], causing all sort of problems
7358 +  # (the dirname of $[0] is not the place where we might find the
7359 +  # original and so on.  Autoconf is especially sensible to this).
7360 +  . ./$as_me.lineno
7361 +  # Exit status is that of the last command.
7362 +  exit
7363 + }
7364 +
7365 +
7366 + case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7367 +  *c*,-n*) ECHO_N= ECHO_C='
7368 + ' ECHO_T='      ' ;;
7369 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7370 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7371 + esac
7372 +
7373   if expr a : '\(a\)' >/dev/null 2>&1; then
7374    as_expr=expr
7375   else
# Line 5521 | Line 7394 | as_executable_p="test -f"
7394   fi
7395   rm -f conf$$ conf$$.exe conf$$.file
7396  
7397 < as_executable_p="test -f"
7398 <
5526 < # Support unset when possible.
5527 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5528 <  as_unset=unset
7397 > if mkdir -p . 2>/dev/null; then
7398 >  as_mkdir_p=:
7399   else
7400 <  as_unset=false
7400 >  test -d ./-p && rmdir ./-p
7401 >  as_mkdir_p=false
7402   fi
7403  
7404 < # 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; }
7404 > as_executable_p="test -f"
7405  
7406 + # Sed expression to map a string onto a valid CPP name.
7407 + as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7408 +
7409 + # Sed expression to map a string onto a valid variable name.
7410 + as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7411 +
7412 +
7413   # IFS
7414   # We need space, tab and new line, in precisely that order.
7415   as_nl='
# Line 5547 | Line 7417 | $as_unset CDPATH || test "${CDPATH+set}" != set || { C
7417   IFS="   $as_nl"
7418  
7419   # CDPATH.
7420 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7420 > $as_unset CDPATH
7421  
7422   exec 6>&1
7423  
7424 + # Open the log real soon, to keep \$[0] and so on meaningful, and to
7425 + # report actual input values of CONFIG_FILES etc. instead of their
7426 + # values after options handling.  Logging --version etc. is OK.
7427 + exec 5>>config.log
7428 + {
7429 +  echo
7430 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7431 + ## Running $as_me. ##
7432 + _ASBOX
7433 + } >&5
7434 + cat >&5 <<_CSEOF
7435 +
7436 + This file was extended by OOPSE $as_me 1.0, which was
7437 + generated by GNU Autoconf 2.59.  Invocation command line was
7438 +
7439 +  CONFIG_FILES    = $CONFIG_FILES
7440 +  CONFIG_HEADERS  = $CONFIG_HEADERS
7441 +  CONFIG_LINKS    = $CONFIG_LINKS
7442 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
7443 +  $ $0 $@
7444 +
7445 + _CSEOF
7446 + echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7447 + echo >&5
7448   _ACEOF
7449  
7450   # Files that config.status was made for.
# Line 5570 | Line 7464 | cat >>$CONFIG_STATUS <<\EOF
7464    echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7465   fi
7466  
7467 < cat >>$CONFIG_STATUS <<\EOF
7467 > cat >>$CONFIG_STATUS <<\_ACEOF
7468  
7469   ac_cs_usage="\
7470   \`$as_me' instantiates files from templates according to the
# Line 5580 | Line 7474 | Usage: $0 [OPTIONS] [FILE]...
7474  
7475    -h, --help       print this help, then exit
7476    -V, --version    print version number, then exit
7477 +  -q, --quiet      do not print progress messages
7478    -d, --debug      don't remove temporary files
7479        --recheck    update $as_me by reconfiguring in the same conditions
7480    --file=FILE[:TEMPLATE]
7481 <                   instantiate the configuration file FILE
7481 >                   instantiate the configuration file FILE
7482    --header=FILE[:TEMPLATE]
7483 <                   instantiate the configuration header FILE
7483 >                   instantiate the configuration header FILE
7484  
7485   Configuration files:
7486   $config_files
# Line 5594 | Line 7489 | EOF
7489   $config_headers
7490  
7491   Report bugs to <bug-autoconf@gnu.org>."
7492 < EOF
7492 > _ACEOF
7493  
7494 < cat >>$CONFIG_STATUS <<EOF
7494 > cat >>$CONFIG_STATUS <<_ACEOF
7495   ac_cs_version="\\
7496   OOPSE config.status 1.0
7497 < configured by $0, generated by GNU Autoconf 2.50,
7497 > configured by $0, generated by GNU Autoconf 2.59,
7498    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7499  
7500 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5606 < Free Software Foundation, Inc.
7500 > Copyright (C) 2003 Free Software Foundation, Inc.
7501   This config.status script is free software; the Free Software Foundation
7502   gives unlimited permission to copy, distribute and modify it."
7503   srcdir=$srcdir
7504   INSTALL="$INSTALL"
7505 < EOF
7505 > _ACEOF
7506  
7507 < cat >>$CONFIG_STATUS <<\EOF
7507 > cat >>$CONFIG_STATUS <<\_ACEOF
7508   # If no file are specified by the user, then we need to provide default
7509   # value.  By we need to know if files were specified by the user.
7510   ac_need_defaults=:
# Line 5620 | Line 7514 | do
7514    --*=*)
7515      ac_option=`expr "x$1" : 'x\([^=]*\)='`
7516      ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7517 <    shift
5624 <    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5625 <    shift
7517 >    ac_shift=:
7518      ;;
7519 <  -*);;
7519 >  -*)
7520 >    ac_option=$1
7521 >    ac_optarg=$2
7522 >    ac_shift=shift
7523 >    ;;
7524    *) # This is not an option, so the user has probably given explicit
7525       # arguments.
7526 +     ac_option=$1
7527       ac_need_defaults=false;;
7528    esac
7529  
7530 <  case $1 in
7530 >  case $ac_option in
7531    # Handling of the options.
7532 < EOF
7533 < cat >>$CONFIG_STATUS <<EOF
7532 > _ACEOF
7533 > cat >>$CONFIG_STATUS <<\_ACEOF
7534    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7535 <    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
7535 >    ac_cs_recheck=: ;;
7536    --version | --vers* | -V )
7537      echo "$ac_cs_version"; exit 0 ;;
7538    --he | --h)
7539      # Conflict between --help and --header
7540 <    { { echo "$as_me:5646: error: ambiguous option: $1
7540 >    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7541   Try \`$0 --help' for more information." >&5
7542   echo "$as_me: error: ambiguous option: $1
7543   Try \`$0 --help' for more information." >&2;}
# Line 5653 | Line 7547 | Try \`$0 --help' for more information." >&2;}
7547    --debug | --d* | -d )
7548      debug=: ;;
7549    --file | --fil | --fi | --f )
7550 <    shift
7551 <    CONFIG_FILES="$CONFIG_FILES $1"
7550 >    $ac_shift
7551 >    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7552      ac_need_defaults=false;;
7553    --header | --heade | --head | --hea )
7554 <    shift
7555 <    CONFIG_HEADERS="$CONFIG_HEADERS $1"
7554 >    $ac_shift
7555 >    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7556      ac_need_defaults=false;;
7557 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7558 +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7559 +    ac_cs_silent=: ;;
7560  
5664  # Handling of arguments.
5665  '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" ;;
5680
7561    # This is an error.
7562 <  -*) { { echo "$as_me:5682: error: unrecognized option: $1
7562 >  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7563   Try \`$0 --help' for more information." >&5
7564   echo "$as_me: error: unrecognized option: $1
7565   Try \`$0 --help' for more information." >&2;}
7566     { (exit 1); exit 1; }; } ;;
7567 <  *) { { echo "$as_me:5687: error: invalid argument: $1" >&5
7568 < echo "$as_me: error: invalid argument: $1" >&2;}
7569 <   { (exit 1); exit 1; }; };;
7567 >
7568 >  *) ac_config_targets="$ac_config_targets $1" ;;
7569 >
7570    esac
7571    shift
7572   done
7573  
7574 < exec 5>>config.log
5695 < cat >&5 << _ACEOF
5696 <
5697 < ## ----------------------- ##
5698 < ## Running config.status.  ##
5699 < ## ----------------------- ##
5700 <
5701 < This file was extended by $as_me (OOPSE 1.0) 2.50, executed with
5702 <  > $ac_cs_invocation
5703 < on `(hostname || uname -n) 2>/dev/null | sed 1q`
7574 > ac_configure_extra_args=
7575  
7576 + if $ac_cs_silent; then
7577 +  exec 6>/dev/null
7578 +  ac_configure_extra_args="$ac_configure_extra_args --silent"
7579 + fi
7580 +
7581   _ACEOF
7582 < EOF
7582 > cat >>$CONFIG_STATUS <<_ACEOF
7583 > if \$ac_cs_recheck; then
7584 >  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7585 >  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7586 > fi
7587  
7588 < cat >>$CONFIG_STATUS <<\EOF
7588 > _ACEOF
7589 >
7590 >
7591 >
7592 >
7593 >
7594 > cat >>$CONFIG_STATUS <<\_ACEOF
7595 > for ac_config_target in $ac_config_targets
7596 > do
7597 >  case "$ac_config_target" in
7598 >  # Handling of arguments.
7599 >  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7600 >  "libBASS/Makefile" ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;;
7601 >  "libmdtools/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;;
7602 >  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7603 >  "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
7604 >  "utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
7605 >  "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7606 >  "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7607 >  "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7608 >  "third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
7609 >  "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7610 >  "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7611 >  "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
7612 >  "samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
7613 >  "samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
7614 >  "samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
7615 >  "libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
7616 >  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7617 > echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7618 >   { (exit 1); exit 1; }; };;
7619 >  esac
7620 > done
7621 >
7622   # If the user did not use the arguments to specify the items to instantiate,
7623   # then the envvar interface is used.  Set only those that are not.
7624   # We use the long form for the default assignment because of an extremely
# Line 5715 | Line 7628 | fi
7628    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7629   fi
7630  
7631 + # Have a temporary directory for convenience.  Make it in the build tree
7632 + # simply because there is no reason to put it here, and in addition,
7633 + # creating and moving files from /tmp can sometimes cause problems.
7634   # Create a temporary directory, and hook for its removal unless debugging.
7635   $debug ||
7636   {
7637    trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7638 <  trap '{ (exit $?); exit $?; }' 1 2 13 15
7638 >  trap '{ (exit 1); exit 1; }' 1 2 13 15
7639   }
7640  
7641   # Create a (secure) tmp directory for tmp files.
7642 < : ${TMPDIR=/tmp}
7642 >
7643   {
7644 <  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7644 >  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7645    test -n "$tmp" && test -d "$tmp"
7646   }  ||
7647   {
7648 <  tmp=$TMPDIR/cs$$-$RANDOM
7648 >  tmp=./confstat$$-$RANDOM
7649    (umask 077 && mkdir $tmp)
7650   } ||
7651   {
7652 <   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7652 >   echo "$me: cannot create a temporary directory in ." >&2
7653     { (exit 1); exit 1; }
7654   }
7655  
7656 < EOF
7656 > _ACEOF
7657  
7658 < cat >>$CONFIG_STATUS <<EOF
7658 > cat >>$CONFIG_STATUS <<_ACEOF
7659  
7660   #
7661   # CONFIG_FILES section.
# Line 5752 | Line 7668 | s,@exec_prefix@,$exec_prefix,;t t
7668    sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7669     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7670   s,@SHELL@,$SHELL,;t t
7671 + s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7672 + s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7673 + s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7674 + s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7675 + s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7676 + s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7677   s,@exec_prefix@,$exec_prefix,;t t
7678   s,@prefix@,$prefix,;t t
7679   s,@program_transform_name@,$program_transform_name,;t t
# Line 5767 | Line 7689 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7689   s,@oldincludedir@,$oldincludedir,;t t
7690   s,@infodir@,$infodir,;t t
7691   s,@mandir@,$mandir,;t t
7692 < s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7693 < s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7694 < s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7695 < s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5774 < s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7692 > s,@build_alias@,$build_alias,;t t
7693 > s,@host_alias@,$host_alias,;t t
7694 > s,@target_alias@,$target_alias,;t t
7695 > s,@DEFS@,$DEFS,;t t
7696   s,@ECHO_C@,$ECHO_C,;t t
7697   s,@ECHO_N@,$ECHO_N,;t t
7698   s,@ECHO_T@,$ECHO_T,;t t
5778 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5779 s,@DEFS@,$DEFS,;t t
7699   s,@LIBS@,$LIBS,;t t
7700   s,@PROGNAME@,$PROGNAME,;t t
7701 < s,@DEBUG@,$DEBUG,;t t
7701 > s,@debug@,$debug,;t t
7702   s,@build@,$build,;t t
7703   s,@build_cpu@,$build_cpu,;t t
7704   s,@build_vendor@,$build_vendor,;t t
# Line 5798 | Line 7717 | s,@F90@,$F90,;t t
7717   s,@CXX@,$CXX,;t t
7718   s,@CXXFLAGS@,$CXXFLAGS,;t t
7719   s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7720 + s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
7721 + s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
7722   s,@F90@,$F90,;t t
7723   s,@F90FLAGS@,$F90FLAGS,;t t
7724   s,@ac_ct_F90@,$ac_ct_F90,;t t
7725   s,@PREPFLAG@,$PREPFLAG,;t t
7726   s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
7727 + s,@F90LIBS@,$F90LIBS,;t t
7728 + s,@F90_FUNC@,$F90_FUNC,;t t
7729 + s,@F90_FUNC_@,$F90_FUNC_,;t t
7730 + s,@MOD@,$MOD,;t t
7731 + s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
7732 + s,@MODDIRFLAG@,$MODDIRFLAG,;t t
7733 + s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
7734   s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7735   s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7736   s,@INSTALL_DATA@,$INSTALL_DATA,;t t
# Line 5815 | Line 7743 | s,@F90LIBS@,$F90LIBS,;t t
7743   s,@LEXLIB@,$LEXLIB,;t t
7744   s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7745   s,@AR@,$AR,;t t
7746 < s,@F90LIBS@,$F90LIBS,;t t
5819 < s,@F90_FUNC@,$F90_FUNC,;t t
5820 < s,@F90_FUNC_@,$F90_FUNC_,;t t
5821 < s,@mpi_dir@,$mpi_dir,;t t
7746 > s,@mpi@,$mpi,;t t
7747   s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
7748   s,@MPI_INC@,$MPI_INC,;t t
7749   s,@MPI_LIB@,$MPI_LIB,;t t
5825 s,@MPIF77@,$MPIF77,;t t
5826 s,@MPIF90@,$MPIF90,;t t
5827 s,@MPILIBS@,$MPILIBS,;t t
7750   s,@CPP@,$CPP,;t t
7751 + s,@EGREP@,$EGREP,;t t
7752   s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
7753   s,@SPRNG_LIB@,$SPRNG_LIB,;t t
7754   s,@SPRNG_INC@,$SPRNG_INC,;t t
# Line 5840 | Line 7763 | CEOF
7763   s,@OOPSE_HOME@,$OOPSE_HOME,;t t
7764   s,@SUBDIRS@,$SUBDIRS,;t t
7765   s,@FFLAGS@,$FFLAGS,;t t
7766 + s,@LIBOBJS@,$LIBOBJS,;t t
7767 + s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7768   CEOF
7769  
7770 < EOF
7770 > _ACEOF
7771  
7772 <  cat >>$CONFIG_STATUS <<\EOF
7772 >  cat >>$CONFIG_STATUS <<\_ACEOF
7773    # Split the substitutions into bite-sized pieces for seds with
7774    # small command number limits, like on Digital OSF/1 and HP-UX.
7775    ac_max_sed_lines=48
# Line 5869 | Line 7794 | EOF
7794        (echo ':t
7795    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7796        if test -z "$ac_sed_cmds"; then
7797 <        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7797 >        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7798        else
7799 <        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7799 >        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7800        fi
7801        ac_sed_frag=`expr $ac_sed_frag + 1`
7802        ac_beg=$ac_end
# Line 5883 | Line 7808 | EOF
7808    fi
7809   fi # test -n "$CONFIG_FILES"
7810  
7811 < EOF
7812 < cat >>$CONFIG_STATUS <<\EOF
7811 > _ACEOF
7812 > cat >>$CONFIG_STATUS <<\_ACEOF
7813   for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7814    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7815    case $ac_file in
7816    - | *:- | *:-:* ) # input from stdin
7817 <        cat >$tmp/stdin
7818 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7819 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7817 >        cat >$tmp/stdin
7818 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7819 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7820    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7821 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7821 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7822    * )   ac_file_in=$ac_file.in ;;
7823    esac
7824  
7825    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7826 <  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7827 <         X"$ac_file" : 'X\(//\)[^/]' \| \
7828 <         X"$ac_file" : 'X\(//\)$' \| \
7829 <         X"$ac_file" : 'X\(/\)' \| \
7830 <         .     : '\(.\)' 2>/dev/null ||
7826 >  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7827 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7828 >         X"$ac_file" : 'X\(//\)[^/]' \| \
7829 >         X"$ac_file" : 'X\(//\)$' \| \
7830 >         X"$ac_file" : 'X\(/\)' \| \
7831 >         .     : '\(.\)' 2>/dev/null ||
7832   echo X"$ac_file" |
7833      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7834            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7835            /^X\(\/\/\)$/{ s//\1/; q; }
7836            /^X\(\/\).*/{ s//\1/; q; }
7837            s/.*/./; q'`
7838 <  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7839 <    { 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'`
7838 >  { if $as_mkdir_p; then
7839 >    mkdir -p "$ac_dir"
7840    else
7841 <    ac_dir_suffix= ac_dots=
7842 <  fi
7841 >    as_dir="$ac_dir"
7842 >    as_dirs=
7843 >    while test ! -d "$as_dir"; do
7844 >      as_dirs="$as_dir $as_dirs"
7845 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7846 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7847 >         X"$as_dir" : 'X\(//\)[^/]' \| \
7848 >         X"$as_dir" : 'X\(//\)$' \| \
7849 >         X"$as_dir" : 'X\(/\)' \| \
7850 >         .     : '\(.\)' 2>/dev/null ||
7851 > echo X"$as_dir" |
7852 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7853 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7854 >          /^X\(\/\/\)$/{ s//\1/; q; }
7855 >          /^X\(\/\).*/{ s//\1/; q; }
7856 >          s/.*/./; q'`
7857 >    done
7858 >    test ! -n "$as_dirs" || mkdir $as_dirs
7859 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7860 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7861 >   { (exit 1); exit 1; }; }; }
7862  
7863 <  case $srcdir in
7864 <  .)  ac_srcdir=.
7865 <      if test -z "$ac_dots"; then
7866 <         ac_top_srcdir=.
7867 <      else
7868 <         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7869 <      fi ;;
7870 <  [\\/]* | ?:[\\/]* )
7871 <      ac_srcdir=$srcdir$ac_dir_suffix;
7872 <      ac_top_srcdir=$srcdir ;;
7863 >  ac_builddir=.
7864 >
7865 > if test "$ac_dir" != .; then
7866 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7867 >  # A "../" for each directory in $ac_dir_suffix.
7868 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7869 > else
7870 >  ac_dir_suffix= ac_top_builddir=
7871 > fi
7872 >
7873 > case $srcdir in
7874 >  .)  # No --srcdir option.  We are building in place.
7875 >    ac_srcdir=.
7876 >    if test -z "$ac_top_builddir"; then
7877 >       ac_top_srcdir=.
7878 >    else
7879 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7880 >    fi ;;
7881 >  [\\/]* | ?:[\\/]* )  # Absolute path.
7882 >    ac_srcdir=$srcdir$ac_dir_suffix;
7883 >    ac_top_srcdir=$srcdir ;;
7884    *) # Relative path.
7885 <    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7886 <    ac_top_srcdir=$ac_dots$srcdir ;;
7887 <  esac
7885 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7886 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7887 > esac
7888 >
7889 > # Do not use `cd foo && pwd` to compute absolute paths, because
7890 > # the directories may not exist.
7891 > case `pwd` in
7892 > .) ac_abs_builddir="$ac_dir";;
7893 > *)
7894 >  case "$ac_dir" in
7895 >  .) ac_abs_builddir=`pwd`;;
7896 >  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7897 >  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7898 >  esac;;
7899 > esac
7900 > case $ac_abs_builddir in
7901 > .) ac_abs_top_builddir=${ac_top_builddir}.;;
7902 > *)
7903 >  case ${ac_top_builddir}. in
7904 >  .) ac_abs_top_builddir=$ac_abs_builddir;;
7905 >  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7906 >  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7907 >  esac;;
7908 > esac
7909 > case $ac_abs_builddir in
7910 > .) ac_abs_srcdir=$ac_srcdir;;
7911 > *)
7912 >  case $ac_srcdir in
7913 >  .) ac_abs_srcdir=$ac_abs_builddir;;
7914 >  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7915 >  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7916 >  esac;;
7917 > esac
7918 > case $ac_abs_builddir in
7919 > .) ac_abs_top_srcdir=$ac_top_srcdir;;
7920 > *)
7921 >  case $ac_top_srcdir in
7922 >  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7923 >  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7924 >  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7925 >  esac;;
7926 > esac
7927  
7928 +
7929    case $INSTALL in
7930    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7931 <  *) ac_INSTALL=$ac_dots$INSTALL ;;
7931 >  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7932    esac
7933  
7934    if test x"$ac_file" != x-; then
7935 <    { echo "$as_me:5957: creating $ac_file" >&5
7935 >    { echo "$as_me:$LINENO: creating $ac_file" >&5
7936   echo "$as_me: creating $ac_file" >&6;}
7937      rm -f "$ac_file"
7938    fi
7939    # Let's still pretend it is `configure' which instantiates (i.e., don't
7940    # use $as_me), people would be surprised to read:
7941 <  #    /* config.h.  Generated automatically by config.status.  */
7942 <  configure_input="Generated automatically from `echo $ac_file_in |
7943 <                                                 sed 's,.*/,,'` by configure."
7941 >  #    /* config.h.  Generated by config.status.  */
7942 >  if test x"$ac_file" = x-; then
7943 >    configure_input=
7944 >  else
7945 >    configure_input="$ac_file.  "
7946 >  fi
7947 >  configure_input=$configure_input"Generated from `echo $ac_file_in |
7948 >                                     sed 's,.*/,,'` by configure."
7949  
7950    # First look for the input files in the build tree, otherwise in the
7951    # src tree.
# Line 5971 | Line 7954 | echo "$as_me: creating $ac_file" >&6;}
7954        case $f in
7955        -) echo $tmp/stdin ;;
7956        [\\/$]*)
7957 <         # Absolute (can't be DOS-style, as IFS=:)
7958 <         test -f "$f" || { { echo "$as_me:5975: error: cannot find input file: $f" >&5
7957 >         # Absolute (can't be DOS-style, as IFS=:)
7958 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7959   echo "$as_me: error: cannot find input file: $f" >&2;}
7960     { (exit 1); exit 1; }; }
7961 <         echo $f;;
7961 >         echo "$f";;
7962        *) # Relative
7963 <         if test -f "$f"; then
7964 <           # Build tree
7965 <           echo $f
7966 <         elif test -f "$srcdir/$f"; then
7967 <           # Source tree
7968 <           echo $srcdir/$f
7969 <         else
7970 <           # /dev/null tree
7971 <           { { echo "$as_me:5988: error: cannot find input file: $f" >&5
7963 >         if test -f "$f"; then
7964 >           # Build tree
7965 >           echo "$f"
7966 >         elif test -f "$srcdir/$f"; then
7967 >           # Source tree
7968 >           echo "$srcdir/$f"
7969 >         else
7970 >           # /dev/null tree
7971 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7972   echo "$as_me: error: cannot find input file: $f" >&2;}
7973     { (exit 1); exit 1; }; }
7974 <         fi;;
7974 >         fi;;
7975        esac
7976      done` || { (exit 1); exit 1; }
7977 < EOF
7978 < cat >>$CONFIG_STATUS <<EOF
7977 > _ACEOF
7978 > cat >>$CONFIG_STATUS <<_ACEOF
7979    sed "$ac_vpsub
7980   $extrasub
7981 < EOF
7982 < cat >>$CONFIG_STATUS <<\EOF
7981 > _ACEOF
7982 > cat >>$CONFIG_STATUS <<\_ACEOF
7983   :t
7984   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7985   s,@configure_input@,$configure_input,;t t
7986   s,@srcdir@,$ac_srcdir,;t t
7987 + s,@abs_srcdir@,$ac_abs_srcdir,;t t
7988   s,@top_srcdir@,$ac_top_srcdir,;t t
7989 + s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7990 + s,@builddir@,$ac_builddir,;t t
7991 + s,@abs_builddir@,$ac_abs_builddir,;t t
7992 + s,@top_builddir@,$ac_top_builddir,;t t
7993 + s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7994   s,@INSTALL@,$ac_INSTALL,;t t
7995   " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7996    rm -f $tmp/stdin
# Line 6013 | Line 8002 | EOF
8002    fi
8003  
8004   done
8005 < EOF
8006 < cat >>$CONFIG_STATUS <<\EOF
8005 > _ACEOF
8006 > cat >>$CONFIG_STATUS <<\_ACEOF
8007  
8008   #
8009   # CONFIG_HEADER section.
# Line 6024 | Line 8013 | ac_dA='s,^\([  ]*\)#\([        ]*define[       ][      ]*\)'
8013   # NAME is the cpp macro being defined and VALUE is the value it is being given.
8014   #
8015   # ac_d sets the value in "#define NAME VALUE" lines.
8016 < ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8017 < ac_dB='[        ].*$,\1#\2'
8016 > ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8017 > ac_dB='[         ].*$,\1#\2'
8018   ac_dC=' '
8019   ac_dD=',;t'
8020   # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8021 < ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8021 > ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8022   ac_uB='$,\1#\2define\3'
8023   ac_uC=' '
8024   ac_uD=',;t'
# Line 6038 | Line 8027 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file"
8027    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8028    case $ac_file in
8029    - | *:- | *:-:* ) # input from stdin
8030 <        cat >$tmp/stdin
8031 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8032 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8030 >        cat >$tmp/stdin
8031 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8032 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8033    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8034 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8034 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8035    * )   ac_file_in=$ac_file.in ;;
8036    esac
8037  
8038 <  test x"$ac_file" != x- && { echo "$as_me:6049: creating $ac_file" >&5
8038 >  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8039   echo "$as_me: creating $ac_file" >&6;}
8040  
8041    # First look for the input files in the build tree, otherwise in the
# Line 6056 | Line 8045 | echo "$as_me: creating $ac_file" >&6;}
8045        case $f in
8046        -) echo $tmp/stdin ;;
8047        [\\/$]*)
8048 <         # Absolute (can't be DOS-style, as IFS=:)
8049 <         test -f "$f" || { { echo "$as_me:6060: error: cannot find input file: $f" >&5
8048 >         # Absolute (can't be DOS-style, as IFS=:)
8049 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8050   echo "$as_me: error: cannot find input file: $f" >&2;}
8051     { (exit 1); exit 1; }; }
8052 <         echo $f;;
8052 >         # Do quote $f, to prevent DOS paths from being IFS'd.
8053 >         echo "$f";;
8054        *) # Relative
8055 <         if test -f "$f"; then
8056 <           # Build tree
8057 <           echo $f
8058 <         elif test -f "$srcdir/$f"; then
8059 <           # Source tree
8060 <           echo $srcdir/$f
8061 <         else
8062 <           # /dev/null tree
8063 <           { { echo "$as_me:6073: error: cannot find input file: $f" >&5
8055 >         if test -f "$f"; then
8056 >           # Build tree
8057 >           echo "$f"
8058 >         elif test -f "$srcdir/$f"; then
8059 >           # Source tree
8060 >           echo "$srcdir/$f"
8061 >         else
8062 >           # /dev/null tree
8063 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8064   echo "$as_me: error: cannot find input file: $f" >&2;}
8065     { (exit 1); exit 1; }; }
8066 <         fi;;
8066 >         fi;;
8067        esac
8068      done` || { (exit 1); exit 1; }
8069    # Remove the trailing spaces.
8070 <  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
8070 >  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8071  
8072 < EOF
8072 > _ACEOF
8073  
8074   # Transform confdefs.h into two sed scripts, `conftest.defines' and
8075   # `conftest.undefs', that substitutes the proper values into
# Line 6095 | Line 8085 | cat >confdef2sed.sed <<\EOF
8085   # `end' is used to avoid that the second main sed command (meant for
8086   # 0-ary CPP macros) applies to n-ary macro definitions.
8087   # See the Autoconf documentation for `clear'.
8088 < cat >confdef2sed.sed <<\EOF
8088 > cat >confdef2sed.sed <<\_ACEOF
8089   s/[\\&,]/\\&/g
8090   s,[\\$`],\\&,g
8091   t clear
8092   : clear
8093 < s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8093 > s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8094   t end
8095 < s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8095 > s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8096   : end
8097 < EOF
8097 > _ACEOF
8098   # If some macros were called several times there might be several times
8099   # the same #defines, which is useless.  Nevertheless, we may not want to
8100   # sort them, since we want the *last* AC-DEFINE to be honored.
# Line 6115 | Line 8105 | cat >>conftest.undefs <<\EOF
8105   # This sed command replaces #undef with comments.  This is necessary, for
8106   # example, in the case of _POSIX_SOURCE, which is predefined and required
8107   # on some systems where configure will not decide to define it.
8108 < cat >>conftest.undefs <<\EOF
8109 < s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8110 < EOF
8108 > cat >>conftest.undefs <<\_ACEOF
8109 > s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8110 > _ACEOF
8111  
8112   # Break up conftest.defines because some shells have a limit on the size
8113   # of here documents, and old seds have small limits too (100 cmds).
8114   echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8115 < echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8115 > echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8116   echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8117   echo '  :' >>$CONFIG_STATUS
8118   rm -f conftest.tail
# Line 6131 | Line 8121 | do
8121    # Write a limited-size here document to $tmp/defines.sed.
8122    echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8123    # Speed up: don't consider the non `#define' lines.
8124 <  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
8124 >  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8125    # Work around the forget-to-reset-the-flag bug.
8126    echo 't clr' >>$CONFIG_STATUS
8127    echo ': clr' >>$CONFIG_STATUS
# Line 6146 | Line 8136 | echo '  fi # egrep' >>$CONFIG_STATUS
8136    mv conftest.tail conftest.defines
8137   done
8138   rm -f conftest.defines
8139 < echo '  fi # egrep' >>$CONFIG_STATUS
8139 > echo '  fi # grep' >>$CONFIG_STATUS
8140   echo >>$CONFIG_STATUS
8141  
8142   # Break up conftest.undefs because some shells have a limit on the size
# Line 6158 | Line 8148 | do
8148    # Write a limited-size here document to $tmp/undefs.sed.
8149    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8150    # Speed up: don't consider the non `#undef'
8151 <  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8151 >  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8152    # Work around the forget-to-reset-the-flag bug.
8153    echo 't clr' >>$CONFIG_STATUS
8154    echo ': clr' >>$CONFIG_STATUS
# Line 6174 | Line 8164 | cat >>$CONFIG_STATUS <<\EOF
8164   done
8165   rm -f conftest.undefs
8166  
8167 < cat >>$CONFIG_STATUS <<\EOF
8167 > cat >>$CONFIG_STATUS <<\_ACEOF
8168    # Let's still pretend it is `configure' which instantiates (i.e., don't
8169    # use $as_me), people would be surprised to read:
8170 <  #    /* config.h.  Generated automatically by config.status.  */
8170 >  #    /* config.h.  Generated by config.status.  */
8171    if test x"$ac_file" = x-; then
8172 <    echo "/* Generated automatically by configure.  */" >$tmp/config.h
8172 >    echo "/* Generated by configure.  */" >$tmp/config.h
8173    else
8174 <    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
8174 >    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8175    fi
8176    cat $tmp/in >>$tmp/config.h
8177    rm -f $tmp/in
8178    if test x"$ac_file" != x-; then
8179 <    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8180 <      { echo "$as_me:6190: $ac_file is unchanged" >&5
8179 >    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8180 >      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8181   echo "$as_me: $ac_file is unchanged" >&6;}
8182      else
8183 <      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8184 <         X"$ac_file" : 'X\(//\)[^/]' \| \
8185 <         X"$ac_file" : 'X\(//\)$' \| \
8186 <         X"$ac_file" : 'X\(/\)' \| \
8187 <         .     : '\(.\)' 2>/dev/null ||
8183 >      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8184 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8185 >         X"$ac_file" : 'X\(//\)[^/]' \| \
8186 >         X"$ac_file" : 'X\(//\)$' \| \
8187 >         X"$ac_file" : 'X\(/\)' \| \
8188 >         .     : '\(.\)' 2>/dev/null ||
8189   echo X"$ac_file" |
8190      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8191            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8192            /^X\(\/\/\)$/{ s//\1/; q; }
8193            /^X\(\/\).*/{ s//\1/; q; }
8194            s/.*/./; q'`
8195 <      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8196 <        { case "$ac_dir" in
8197 <  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8198 <  *)                      as_incr_dir=.;;
8199 < esac
8200 < as_dummy="$ac_dir"
8201 < for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8202 <  case $as_mkdir_dir in
8203 <    # Skip DOS drivespec
8204 <    ?:) as_incr_dir=$as_mkdir_dir ;;
8205 <    *)
8206 <      as_incr_dir=$as_incr_dir/$as_mkdir_dir
8207 <      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8208 <    ;;
8209 <  esac
8210 < done; }
8195 >      { if $as_mkdir_p; then
8196 >    mkdir -p "$ac_dir"
8197 >  else
8198 >    as_dir="$ac_dir"
8199 >    as_dirs=
8200 >    while test ! -d "$as_dir"; do
8201 >      as_dirs="$as_dir $as_dirs"
8202 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8203 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8204 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8205 >         X"$as_dir" : 'X\(//\)$' \| \
8206 >         X"$as_dir" : 'X\(/\)' \| \
8207 >         .     : '\(.\)' 2>/dev/null ||
8208 > echo X"$as_dir" |
8209 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8210 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8211 >          /^X\(\/\/\)$/{ s//\1/; q; }
8212 >          /^X\(\/\).*/{ s//\1/; q; }
8213 >          s/.*/./; q'`
8214 >    done
8215 >    test ! -n "$as_dirs" || mkdir $as_dirs
8216 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8217 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8218 >   { (exit 1); exit 1; }; }; }
8219  
6221      fi
8220        rm -f $ac_file
8221        mv $tmp/config.h $ac_file
8222      fi
# Line 6227 | Line 8225 | EOF
8225      rm -f $tmp/config.h
8226    fi
8227   done
8228 < EOF
8228 > _ACEOF
8229  
8230 < cat >>$CONFIG_STATUS <<\EOF
8230 > cat >>$CONFIG_STATUS <<\_ACEOF
8231  
8232   { (exit 0); exit 0; }
8233 < EOF
8233 > _ACEOF
8234   chmod +x $CONFIG_STATUS
8235   ac_clean_files=$ac_clean_files_save
8236  
8237 +
8238   # configure is writing to config.log, and then calls config.status.
8239   # config.status does its own redirection, appending to config.log.
8240   # Unfortunately, on DOS this fails, as config.log is still kept open
# Line 6246 | Line 8245 | if test "$no_create" != yes; then
8245   # need to make the FD available again.
8246   if test "$no_create" != yes; then
8247    ac_cs_success=:
8248 +  ac_config_status_args=
8249 +  test "$silent" = yes &&
8250 +    ac_config_status_args="$ac_config_status_args --quiet"
8251    exec 5>/dev/null
8252 <  $SHELL $CONFIG_STATUS || ac_cs_success=false
8252 >  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8253    exec 5>>config.log
8254    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8255    # would make configure fail if this is the last instruction.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines