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 1202 by gezelter, Thu May 27 16:20:36 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.57 for OOPSE 1.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7 < # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 > # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8   # Free Software Foundation, Inc.
9   # This configure script is free software; the Free Software Foundation
10   # gives unlimited permission to copy, distribute and modify it.
11 + ## --------------------- ##
12 + ## M4sh Initialization.  ##
13 + ## --------------------- ##
14  
15   # Be Bourne compatible
16   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17    emulate sh
18    NULLCMD=:
19 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 +  # is contrary to our usage.  Disable this feature.
21 +  alias -g '${1+"$@"}'='"$@"'
22   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23    set -o posix
24   fi
25  
26 + # Support unset when possible.
27 + if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 +  as_unset=unset
29 + else
30 +  as_unset=false
31 + fi
32 +
33 +
34 + # Work around bugs in pre-3.0 UWIN ksh.
35 + $as_unset ENV MAIL MAILPATH
36 + PS1='$ '
37 + PS2='> '
38 + PS4='+ '
39 +
40 + # NLS nuisances.
41 + for as_var in \
42 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 +  LC_TELEPHONE LC_TIME
45 + do
46 +  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 +    eval $as_var=C; export $as_var
48 +  else
49 +    $as_unset $as_var
50 +  fi
51 + done
52 +
53 + # Required to use basename.
54 + if expr a : '\(a\)' >/dev/null 2>&1; then
55 +  as_expr=expr
56 + else
57 +  as_expr=false
58 + fi
59 +
60 + if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 +  as_basename=basename
62 + else
63 +  as_basename=false
64 + fi
65 +
66 +
67   # Name of the executable.
68 < as_me=`echo "$0" |sed 's,.*[\\/],,'`
68 > as_me=`$as_basename "$0" ||
69 > $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 >         X"$0" : 'X\(//\)$' \| \
71 >         X"$0" : 'X\(/\)$' \| \
72 >         .     : '\(.\)' 2>/dev/null ||
73 > echo X/"$0" |
74 >    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 >          /^X\/\(\/\/\)$/{ s//\1/; q; }
76 >          /^X\/\(\/\).*/{ s//\1/; q; }
77 >          s/.*/./; q'`
78  
79 +
80 + # PATH needs CR, and LINENO needs CR and PATH.
81 + # Avoid depending upon Character Ranges.
82 + as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 + as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 + as_cr_digits='0123456789'
86 + as_cr_alnum=$as_cr_Letters$as_cr_digits
87 +
88 + # The user is always right.
89 + if test "${PATH_SEPARATOR+set}" != set; then
90 +  echo "#! /bin/sh" >conf$$.sh
91 +  echo  "exit 0"   >>conf$$.sh
92 +  chmod +x conf$$.sh
93 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 +    PATH_SEPARATOR=';'
95 +  else
96 +    PATH_SEPARATOR=:
97 +  fi
98 +  rm -f conf$$.sh
99 + fi
100 +
101 +
102 +  as_lineno_1=$LINENO
103 +  as_lineno_2=$LINENO
104 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
106 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107 +  # Find who we are.  Look in the path if we contain no path at all
108 +  # relative or not.
109 +  case $0 in
110 +    *[\\/]* ) as_myself=$0 ;;
111 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 + for as_dir in $PATH
113 + do
114 +  IFS=$as_save_IFS
115 +  test -z "$as_dir" && as_dir=.
116 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 + done
118 +
119 +       ;;
120 +  esac
121 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
122 +  # in which case we are not to be found in the path.
123 +  if test "x$as_myself" = x; then
124 +    as_myself=$0
125 +  fi
126 +  if test ! -f "$as_myself"; then
127 +    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 +   { (exit 1); exit 1; }; }
129 +  fi
130 +  case $CONFIG_SHELL in
131 +  '')
132 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 + for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 + do
135 +  IFS=$as_save_IFS
136 +  test -z "$as_dir" && as_dir=.
137 +  for as_base in sh bash ksh sh5; do
138 +         case $as_dir in
139 +         /*)
140 +           if ("$as_dir/$as_base" -c '
141 +  as_lineno_1=$LINENO
142 +  as_lineno_2=$LINENO
143 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
145 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146 +             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 +             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 +             CONFIG_SHELL=$as_dir/$as_base
149 +             export CONFIG_SHELL
150 +             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 +           fi;;
152 +         esac
153 +       done
154 + done
155 + ;;
156 +  esac
157 +
158 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 +  # uniformly replaced by the line number.  The first 'sed' inserts a
160 +  # line-number line before each line; the second 'sed' does the real
161 +  # work.  The second script uses 'N' to pair each line-number line
162 +  # with the numbered line, and appends trailing '-' during
163 +  # substitution so that $LINENO is not a special case at line end.
164 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166 +  sed '=' <$as_myself |
167 +    sed '
168 +      N
169 +      s,$,-,
170 +      : loop
171 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 +      t loop
173 +      s,-$,,
174 +      s,^['$as_cr_digits']*\n,,
175 +    ' >$as_me.lineno &&
176 +  chmod +x $as_me.lineno ||
177 +    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 +   { (exit 1); exit 1; }; }
179 +
180 +  # Don't try to exec as it changes $[0], causing all sort of problems
181 +  # (the dirname of $[0] is not the place where we might find the
182 +  # original and so on.  Autoconf is especially sensible to this).
183 +  . ./$as_me.lineno
184 +  # Exit status is that of the last command.
185 +  exit
186 + }
187 +
188 +
189 + case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 +  *c*,-n*) ECHO_N= ECHO_C='
191 + ' ECHO_T='      ' ;;
192 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 + esac
195 +
196   if expr a : '\(a\)' >/dev/null 2>&1; then
197    as_expr=expr
198   else
# Line 44 | Line 217 | rm -f conf$$ conf$$.exe conf$$.file
217   fi
218   rm -f conf$$ conf$$.exe conf$$.file
219  
220 < as_executable_p="test -f"
221 <
49 < # Support unset when possible.
50 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
51 <  as_unset=unset
220 > if mkdir -p . 2>/dev/null; then
221 >  as_mkdir_p=:
222   else
223 <  as_unset=false
223 >  as_mkdir_p=false
224   fi
225  
226 < # NLS nuisances.
57 < $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
58 < $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
59 < $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
60 < $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
61 < $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
62 < $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
63 < $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
64 < $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
226 > as_executable_p="test -f"
227  
228 + # Sed expression to map a string onto a valid CPP name.
229 + as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230 +
231 + # Sed expression to map a string onto a valid variable name.
232 + as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 +
234 +
235   # IFS
236   # We need space, tab and new line, in precisely that order.
237   as_nl='
# Line 70 | Line 239 | IFS="  $as_nl"
239   IFS="   $as_nl"
240  
241   # CDPATH.
242 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
242 > $as_unset CDPATH
243  
244 +
245   # Name of the host.
246   # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247   # so uname gets run too.
# Line 83 | Line 253 | ac_default_prefix=/usr/local
253   # Initializations.
254   #
255   ac_default_prefix=/usr/local
256 + ac_config_libobj_dir=.
257   cross_compiling=no
258   subdirs=
259 < MFLAGS= MAKEFLAGS=
259 > MFLAGS=
260 > MAKEFLAGS=
261   SHELL=${CONFIG_SHELL-/bin/sh}
262  
263   # Maximum number of lines to put in a shell here document.
# Line 93 | Line 265 | SHELL=${CONFIG_SHELL-/bin/sh}
265   # only ac_max_sed_lines should be used.
266   : ${ac_max_here_lines=38}
267  
268 < # Avoid depending upon Character Ranges.
269 < ac_cr_az='abcdefghijklmnopqrstuvwxyz'
270 < ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
271 < ac_cr_09='0123456789'
272 < ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
268 > # Identity of this package.
269 > PACKAGE_NAME='OOPSE'
270 > PACKAGE_TARNAME='oopse'
271 > PACKAGE_VERSION='1.0'
272 > PACKAGE_STRING='OOPSE 1.0'
273 > PACKAGE_BUGREPORT='gezelter@nd.edu'
274  
102 # Sed expression to map a string onto a valid sh and CPP variable names.
103 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
104 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
105
275   ac_unique_file="src/oopse.cpp"
276   ac_default_prefix="/usr/local"
277 + # Factoring default headers for most tests.
278 + ac_includes_default="\
279 + #include <stdio.h>
280 + #if HAVE_SYS_TYPES_H
281 + # include <sys/types.h>
282 + #endif
283 + #if HAVE_SYS_STAT_H
284 + # include <sys/stat.h>
285 + #endif
286 + #if STDC_HEADERS
287 + # include <stdlib.h>
288 + # include <stddef.h>
289 + #else
290 + # if HAVE_STDLIB_H
291 + #  include <stdlib.h>
292 + # endif
293 + #endif
294 + #if HAVE_STRING_H
295 + # if !STDC_HEADERS && HAVE_MEMORY_H
296 + #  include <memory.h>
297 + # endif
298 + # include <string.h>
299 + #endif
300 + #if HAVE_STRINGS_H
301 + # include <strings.h>
302 + #endif
303 + #if HAVE_INTTYPES_H
304 + # include <inttypes.h>
305 + #else
306 + # if HAVE_STDINT_H
307 + #  include <stdint.h>
308 + # endif
309 + #endif
310 + #if HAVE_UNISTD_H
311 + # include <unistd.h>
312 + #endif"
313  
314 + ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX 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_F90INC MPI_LIB MPI_F90LIB 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'
315 + ac_subst_files=''
316 +
317   # Initialize some variables set by options.
318   ac_init_help=
319   ac_init_version=false
# Line 143 | Line 351 | mandir='${prefix}/man'
351   oldincludedir='/usr/include'
352   infodir='${prefix}/info'
353   mandir='${prefix}/man'
146
147 # Identity of this package.
148 PACKAGE_NAME='OOPSE'
149 PACKAGE_TARNAME='oopse'
150 PACKAGE_VERSION='1.0'
151 PACKAGE_STRING='OOPSE 1.0'
152 PACKAGE_BUGREPORT='gezelter@nd.edu'
354  
355   ac_prev=
356   for ac_option
# Line 196 | Line 397 | do
397    -disable-* | --disable-*)
398      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399      # Reject names that are not valid shell variable names.
400 <    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
400 >    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402     { (exit 1); exit 1; }; }
403      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
# Line 205 | Line 406 | do
406    -enable-* | --enable-*)
407      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408      # Reject names that are not valid shell variable names.
409 <    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
409 >    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411     { (exit 1); exit 1; }; }
412      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
# Line 283 | Line 484 | do
484      with_fp=no ;;
485  
486    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 <  | --no-cr | --no-c)
487 >  | --no-cr | --no-c | -n)
488      no_create=yes ;;
489  
490    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 387 | Line 588 | do
588    -with-* | --with-*)
589      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590      # Reject names that are not valid shell variable names.
591 <    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
591 >    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592        { echo "$as_me: error: invalid package name: $ac_package" >&2
593     { (exit 1); exit 1; }; }
594      ac_package=`echo $ac_package| sed 's/-/_/g'`
# Line 400 | Line 601 | do
601    -without-* | --without-*)
602      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603      # Reject names that are not valid shell variable names.
604 <    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
604 >    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605        { echo "$as_me: error: invalid package name: $ac_package" >&2
606     { (exit 1); exit 1; }; }
607      ac_package=`echo $ac_package | sed 's/-/_/g'`
# Line 432 | Line 633 | Try \`$0 --help' for more information." >&2
633    *=*)
634      ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635      # Reject names that are not valid shell variable names.
636 <    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
636 >    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637        { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638     { (exit 1); exit 1; }; }
639      ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
# Line 442 | Line 643 | Try \`$0 --help' for more information." >&2
643    *)
644      # FIXME: should be removed in autoconf 3.0.
645      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 <    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
646 >    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649      ;;
# Line 455 | Line 656 | fi
656    { echo "$as_me: error: missing argument to $ac_option" >&2
657     { (exit 1); exit 1; }; }
658   fi
659 +
660 + # Be sure to have absolute paths.
661 + for ac_var in exec_prefix prefix
662 + do
663 +  eval ac_val=$`echo $ac_var`
664 +  case $ac_val in
665 +    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 +   { (exit 1); exit 1; }; };;
668 +  esac
669 + done
670  
671   # Be sure to have absolute paths.
672   for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 <              localstatedir libdir includedir oldincludedir infodir mandir \
462 <              exec_prefix prefix
673 >              localstatedir libdir includedir oldincludedir infodir mandir
674   do
675    eval ac_val=$`echo $ac_var`
676    case $ac_val in
677      [\\/$]* | ?:[\\/]* ) ;;
678 <    NONE ) ;;
468 <    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
678 >    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679     { (exit 1); exit 1; }; };;
680    esac
681   done
682  
683   # There might be people who depend on the old broken behavior: `$host'
684   # used to hold the argument of --host etc.
685 + # FIXME: To remove some day.
686   build=$build_alias
687   host=$host_alias
688   target=$target_alias
689  
690 < # FIXME: should be removed in autoconf 3.0.
690 > # FIXME: To remove some day.
691   if test "x$host_alias" != x; then
692    if test "x$build_alias" = x; then
693      cross_compiling=maybe
# Line 492 | Line 703 | test "$silent" = yes && exec 6>/dev/null
703  
704   test "$silent" = yes && exec 6>/dev/null
705  
706 +
707   # Find the source files, if location was not specified.
708   if test -z "$srcdir"; then
709    ac_srcdir_defaulted=yes
710    # Try the directory containing this script, then its parent.
711 <  ac_prog=$0
712 <  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
713 <  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
711 >  ac_confdir=`(dirname "$0") 2>/dev/null ||
712 > $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 >         X"$0" : 'X\(//\)[^/]' \| \
714 >         X"$0" : 'X\(//\)$' \| \
715 >         X"$0" : 'X\(/\)' \| \
716 >         .     : '\(.\)' 2>/dev/null ||
717 > echo X"$0" |
718 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 >          /^X\(\/\/\)$/{ s//\1/; q; }
721 >          /^X\(\/\).*/{ s//\1/; q; }
722 >          s/.*/./; q'`
723    srcdir=$ac_confdir
724    if test ! -r $srcdir/$ac_unique_file; then
725      srcdir=..
# Line 508 | Line 729 | if test ! -r $srcdir/$ac_unique_file; then
729   fi
730   if test ! -r $srcdir/$ac_unique_file; then
731    if test "$ac_srcdir_defaulted" = yes; then
732 <    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
732 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733     { (exit 1); exit 1; }; }
734    else
735 <    { echo "$as_me: error: cannot find sources in $srcdir" >&2
735 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736     { (exit 1); exit 1; }; }
737    fi
738   fi
739 + (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 +  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 +   { (exit 1); exit 1; }; }
742   srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743   ac_env_build_alias_set=${build_alias+set}
744   ac_env_build_alias_value=$build_alias
# Line 560 | Line 784 | ac_cv_env_F90FLAGS_value=$F90FLAGS
784   ac_env_F90FLAGS_value=$F90FLAGS
785   ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
786   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
787   ac_env_CPP_set=${CPP+set}
788   ac_env_CPP_value=$CPP
789   ac_cv_env_CPP_set=${CPP+set}
# Line 575 | Line 795 | if test "$ac_init_help" = "long"; then
795   if test "$ac_init_help" = "long"; then
796    # Omit some internal or obsolete options to make the list less imposing.
797    # This message is too long to be a string in the A/UX 3.1 sh.
798 <  cat <<EOF
798 >  cat <<_ACEOF
799   \`configure' configures OOPSE 1.0 to adapt to many kinds of systems.
800  
801   Usage: $0 [OPTION]... [VAR=VALUE]...
# Line 596 | Line 816 | Configuration:
816    -n, --no-create         do not create output files
817        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
818  
819 < EOF
819 > _ACEOF
820  
821 <  cat <<EOF
821 >  cat <<_ACEOF
822   Installation directories:
823    --prefix=PREFIX         install architecture-independent files in PREFIX
824                            [$ac_default_prefix]
# Line 625 | Line 845 | Fine tuning of the installation directories:
845    --oldincludedir=DIR    C header files for non-gcc [/usr/include]
846    --infodir=DIR          info documentation [PREFIX/info]
847    --mandir=DIR           man documentation [PREFIX/man]
848 < EOF
848 > _ACEOF
849  
850 <  cat <<\EOF
850 >  cat <<\_ACEOF
851  
852   System types:
853    --build=BUILD     configure for building on BUILD [guessed]
854 <  --host=HOST       build programs to run on HOST [BUILD]
855 < EOF
854 >  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
855 > _ACEOF
856   fi
857  
858   if test -n "$ac_init_help"; then
859    case $ac_init_help in
860       short | recursive ) echo "Configuration of OOPSE 1.0:";;
861     esac
862 <  cat <<\EOF
862 >  cat <<\_ACEOF
863  
864   Optional Features:
865    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
# Line 650 | Line 870 | Optional Packages:
870   Optional Packages:
871    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
872    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
873 <  --with-mpi_dir=MPIDIR   give the path for MPI /usr/local
873 >  --with-mpi=MPIDIR   give the path for MPI /usr/local
874    --with-mpi-libdir=dir  give the path for MPI-libraries MPI_DIR/lib
875 <  --with-mpi_inc=dir  give the path for MPI-include-files MPI_DIR/include
875 >  --with-mpi-inc=dir  give the path for MPI-include-files MPI_DIR/include
876    --with-sprng_prefix=PREFIX
877                            Prefix where SPRNG is installed
878 <  --with-sprng_lib_prefix=PREFIX  SPRNG library directory
879 <  --with-sprng_include_prefix=PREFIX
878 >  --with-sprng-libdir=PREFIX  SPRNG library directory
879 >  --with-sprng-include=PREFIX
880                            SPRNG include directory
881 <  --with-mkl              Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60
881 >  --with-mkl              Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61
882  
883   Some influential environment variables:
884    CC          C compiler command
# Line 671 | Line 891 | Some influential environment variables:
891    CXXFLAGS    C++ compiler flags
892    F90         Fortran 90 compiler command
893    F90FLAGS    Fortran 90 compiler flags
674  MPIF77      MPI Fortran compiler command
894    CPP         C preprocessor
895  
896   Use these variables to override the choices made by `configure' or to help
897   it to find libraries and programs with nonstandard names/locations.
898  
899   Report bugs to <gezelter@nd.edu>.
900 < EOF
900 > _ACEOF
901   fi
902  
903   if test "$ac_init_help" = "recursive"; then
904    # If there are subdirs, report their specific --help.
905    ac_popdir=`pwd`
906 <  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
907 <    cd $ac_subdir
908 <    # A "../" for each directory in /$ac_subdir.
690 <    ac_dots=`echo $ac_subdir |
691 <             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
906 >  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907 >    test -d $ac_dir || continue
908 >    ac_builddir=.
909  
910 <    case $srcdir in
911 <    .) # No --srcdir option.  We are building in place.
912 <      ac_sub_srcdir=$srcdir ;;
913 <    [\\/]* | ?:[\\/]* ) # Absolute path.
914 <      ac_sub_srcdir=$srcdir/$ac_subdir ;;
915 <    *) # Relative path.
916 <      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
700 <    esac
910 > if test "$ac_dir" != .; then
911 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912 >  # A "../" for each directory in $ac_dir_suffix.
913 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914 > else
915 >  ac_dir_suffix= ac_top_builddir=
916 > fi
917  
918 <    # Check for guested configure; otherwise get Cygnus style configure.
919 <    if test -f $ac_sub_srcdir/configure.gnu; then
920 <      echo
921 <      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
922 <    elif test -f $ac_sub_srcdir/configure; then
918 > case $srcdir in
919 >  .)  # No --srcdir option.  We are building in place.
920 >    ac_srcdir=.
921 >    if test -z "$ac_top_builddir"; then
922 >       ac_top_srcdir=.
923 >    else
924 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925 >    fi ;;
926 >  [\\/]* | ?:[\\/]* )  # Absolute path.
927 >    ac_srcdir=$srcdir$ac_dir_suffix;
928 >    ac_top_srcdir=$srcdir ;;
929 >  *) # Relative path.
930 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
932 > esac
933 > # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
934 > # absolute.
935 > ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
936 > ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
937 > ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
938 > ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
939 >
940 >    cd $ac_dir
941 >    # Check for guested configure; otherwise get Cygnus style configure.
942 >    if test -f $ac_srcdir/configure.gnu; then
943        echo
944 <      $SHELL $ac_sub_srcdir/configure  --help=recursive
945 <    elif test -f $ac_sub_srcdir/configure.ac ||
710 <           test -f $ac_sub_srcdir/configure.in; then
944 >      $SHELL $ac_srcdir/configure.gnu  --help=recursive
945 >    elif test -f $ac_srcdir/configure; then
946        echo
947 +      $SHELL $ac_srcdir/configure  --help=recursive
948 +    elif test -f $ac_srcdir/configure.ac ||
949 +           test -f $ac_srcdir/configure.in; then
950 +      echo
951        $ac_configure --help
952      else
953 <      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
953 >      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
954      fi
955      cd $ac_popdir
956    done
# Line 719 | Line 958 | if $ac_init_version; then
958  
959   test -n "$ac_init_help" && exit 0
960   if $ac_init_version; then
961 <  cat <<\EOF
961 >  cat <<\_ACEOF
962   OOPSE configure 1.0
963 < generated by GNU Autoconf 2.50
963 > generated by GNU Autoconf 2.57
964  
965 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
965 > Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
966   Free Software Foundation, Inc.
967   This configure script is free software; the Free Software Foundation
968   gives unlimited permission to copy, distribute and modify it.
969 < EOF
969 > _ACEOF
970    exit 0
971   fi
972   exec 5>config.log
973 < cat >&5 <<EOF
973 > cat >&5 <<_ACEOF
974   This file contains any messages produced by compilers while
975   running configure, to aid debugging if configure makes a mistake.
976  
977   It was created by OOPSE $as_me 1.0, which was
978 < generated by GNU Autoconf 2.50.  Invocation command line was
978 > generated by GNU Autoconf 2.57.  Invocation command line was
979  
980    $ $0 $@
981  
982 < EOF
982 > _ACEOF
983   {
984   cat <<_ASUNAME
985 < ## ---------- ##
986 < ## Platform.  ##
987 < ## ---------- ##
985 > ## --------- ##
986 > ## Platform. ##
987 > ## --------- ##
988  
989   hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990   uname -m = `(uname -m) 2>/dev/null || echo unknown`
# Line 764 | Line 1003 | hostinfo               = `(hostinfo) 2>/dev/null      
1003   /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1004   /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1005  
767 PATH = $PATH
768
1006   _ASUNAME
1007 +
1008 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1009 + for as_dir in $PATH
1010 + do
1011 +  IFS=$as_save_IFS
1012 +  test -z "$as_dir" && as_dir=.
1013 +  echo "PATH: $as_dir"
1014 + done
1015 +
1016   } >&5
1017  
1018 < cat >&5 <<EOF
773 < ## ------------ ##
774 < ## Core tests.  ##
775 < ## ------------ ##
1018 > cat >&5 <<_ACEOF
1019  
777 EOF
1020  
1021 + ## ----------- ##
1022 + ## Core tests. ##
1023 + ## ----------- ##
1024 +
1025 + _ACEOF
1026 +
1027 +
1028   # Keep a trace of the command line.
1029   # Strip out --no-create and --no-recursion so they do not pile up.
1030 + # Strip out --silent because we don't want to record it for future runs.
1031   # Also quote any args containing shell meta-characters.
1032 + # Make two passes to allow for proper duplicate-argument suppression.
1033   ac_configure_args=
1034 + ac_configure_args0=
1035 + ac_configure_args1=
1036   ac_sep=
1037 < for ac_arg
1037 > ac_must_keep_next=false
1038 > for ac_pass in 1 2
1039   do
1040 <  case $ac_arg in
1041 <  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 <  | --no-cr | --no-c) ;;
1043 <  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 <  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1045 <  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1046 <    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1047 <    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1048 <    ac_sep=" " ;;
1049 <  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1050 <     ac_sep=" " ;;
1051 <  esac
1052 <  # Get rid of the leading space.
1040 >  for ac_arg
1041 >  do
1042 >    case $ac_arg in
1043 >    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044 >    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 >    | -silent | --silent | --silen | --sile | --sil)
1046 >      continue ;;
1047 >    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 >      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049 >    esac
1050 >    case $ac_pass in
1051 >    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1052 >    2)
1053 >      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054 >      if test $ac_must_keep_next = true; then
1055 >        ac_must_keep_next=false # Got value, back to normal.
1056 >      else
1057 >        case $ac_arg in
1058 >          *=* | --config-cache | -C | -disable-* | --disable-* \
1059 >          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060 >          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061 >          | -with-* | --with-* | -without-* | --without-* | --x)
1062 >            case "$ac_configure_args0 " in
1063 >              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1064 >            esac
1065 >            ;;
1066 >          -* ) ac_must_keep_next=true ;;
1067 >        esac
1068 >      fi
1069 >      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 >      # Get rid of the leading space.
1071 >      ac_sep=" "
1072 >      ;;
1073 >    esac
1074 >  done
1075   done
1076 + $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 + $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1078  
1079   # When interrupted or exit'd, cleanup temporary files, and complete
1080   # config.log.  We remove comments because anyway the quotes in there
1081   # would cause problems or look ugly.
1082 + # WARNING: Be sure not to use single quotes in there, as some shells,
1083 + # such as our DU 5.0 friend, will then `close' the trap.
1084   trap 'exit_status=$?
1085    # Save into config.log some information that might help in debugging.
1086 <  echo >&5
1087 <  echo "## ----------------- ##" >&5
1088 <  echo "## Cache variables.  ##" >&5
1089 <  echo "## ----------------- ##" >&5
1090 <  echo >&5
1091 <  # The following way of writing the cache mishandles newlines in values,
1086 >  {
1087 >    echo
1088 >
1089 >    cat <<\_ASBOX
1090 > ## ---------------- ##
1091 > ## Cache variables. ##
1092 > ## ---------------- ##
1093 > _ASBOX
1094 >    echo
1095 >    # The following way of writing the cache mishandles newlines in values,
1096   {
1097    (set) 2>&1 |
1098      case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099      *ac_space=\ *)
1100        sed -n \
1101          "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1102 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1103        ;;
1104      *)
1105        sed -n \
1106 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1106 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107        ;;
1108      esac;
1109 < } >&5
1110 <  sed "/^$/d" confdefs.h >conftest.log
1111 <  if test -s conftest.log; then
1112 <    echo >&5
1113 <    echo "## ------------ ##" >&5
1114 <    echo "## confdefs.h.  ##" >&5
1115 <    echo "## ------------ ##" >&5
1116 <    echo >&5
1117 <    cat conftest.log >&5
1118 <  fi
1119 <  (echo; echo) >&5
1120 <  test "$ac_signal" != 0 &&
1121 <    echo "$as_me: caught signal $ac_signal" >&5
1122 <  echo "$as_me: exit $exit_status" >&5
1123 <  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1109 > }
1110 >    echo
1111 >
1112 >    cat <<\_ASBOX
1113 > ## ----------------- ##
1114 > ## Output variables. ##
1115 > ## ----------------- ##
1116 > _ASBOX
1117 >    echo
1118 >    for ac_var in $ac_subst_vars
1119 >    do
1120 >      eval ac_val=$`echo $ac_var`
1121 >      echo "$ac_var='"'"'$ac_val'"'"'"
1122 >    done | sort
1123 >    echo
1124 >
1125 >    if test -n "$ac_subst_files"; then
1126 >      cat <<\_ASBOX
1127 > ## ------------- ##
1128 > ## Output files. ##
1129 > ## ------------- ##
1130 > _ASBOX
1131 >      echo
1132 >      for ac_var in $ac_subst_files
1133 >      do
1134 >        eval ac_val=$`echo $ac_var`
1135 >        echo "$ac_var='"'"'$ac_val'"'"'"
1136 >      done | sort
1137 >      echo
1138 >    fi
1139 >
1140 >    if test -s confdefs.h; then
1141 >      cat <<\_ASBOX
1142 > ## ----------- ##
1143 > ## confdefs.h. ##
1144 > ## ----------- ##
1145 > _ASBOX
1146 >      echo
1147 >      sed "/^$/d" confdefs.h | sort
1148 >      echo
1149 >    fi
1150 >    test "$ac_signal" != 0 &&
1151 >      echo "$as_me: caught signal $ac_signal"
1152 >    echo "$as_me: exit $exit_status"
1153 >  } >&5
1154 >  rm -f core core.* *.core &&
1155 >  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1156      exit $exit_status
1157       ' 0
1158   for ac_signal in 1 2 13 15; do
1159 <  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
1159 >  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1160   done
1161   ac_signal=0
1162  
# Line 849 | Line 1165 | echo >confdefs.h
1165   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166   echo >confdefs.h
1167  
1168 + # Predefined preprocessor variables.
1169 +
1170 + cat >>confdefs.h <<_ACEOF
1171 + #define PACKAGE_NAME "$PACKAGE_NAME"
1172 + _ACEOF
1173 +
1174 +
1175 + cat >>confdefs.h <<_ACEOF
1176 + #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1177 + _ACEOF
1178 +
1179 +
1180 + cat >>confdefs.h <<_ACEOF
1181 + #define PACKAGE_VERSION "$PACKAGE_VERSION"
1182 + _ACEOF
1183 +
1184 +
1185 + cat >>confdefs.h <<_ACEOF
1186 + #define PACKAGE_STRING "$PACKAGE_STRING"
1187 + _ACEOF
1188 +
1189 +
1190 + cat >>confdefs.h <<_ACEOF
1191 + #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1192 + _ACEOF
1193 +
1194 +
1195   # Let the site file select an alternate cache file if it wants to.
1196   # Prefer explicitly selected file to automatically selected ones.
1197   if test -z "$CONFIG_SITE"; then
# Line 860 | Line 1203 | for ac_site_file in $CONFIG_SITE; do
1203   fi
1204   for ac_site_file in $CONFIG_SITE; do
1205    if test -r "$ac_site_file"; then
1206 <    { echo "$as_me:863: loading site script $ac_site_file" >&5
1206 >    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207   echo "$as_me: loading site script $ac_site_file" >&6;}
1208 <    cat "$ac_site_file" >&5
1208 >    sed 's/^/| /' "$ac_site_file" >&5
1209      . "$ac_site_file"
1210    fi
1211   done
# Line 871 | Line 1214 | if test -r "$cache_file"; then
1214    # Some versions of bash will fail to source /dev/null (special
1215    # files actually), so we avoid doing that.
1216    if test -f "$cache_file"; then
1217 <    { echo "$as_me:874: loading cache $cache_file" >&5
1217 >    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218   echo "$as_me: loading cache $cache_file" >&6;}
1219      case $cache_file in
1220        [\\/]* | ?:[\\/]* ) . $cache_file;;
# Line 879 | Line 1222 | else
1222      esac
1223    fi
1224   else
1225 <  { echo "$as_me:882: creating cache $cache_file" >&5
1225 >  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226   echo "$as_me: creating cache $cache_file" >&6;}
1227    >$cache_file
1228   fi
1229  
1230   # Check that the precious variables saved in the cache have kept the same
1231   # value.
1232 < ac_suggest_removing_cache=false
1232 > ac_cache_corrupted=false
1233   for ac_var in `(set) 2>&1 |
1234                 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235    eval ac_old_set=\$ac_cv_env_${ac_var}_set
# Line 895 | Line 1238 | for ac_var in `(set) 2>&1 |
1238    eval ac_new_val="\$ac_env_${ac_var}_value"
1239    case $ac_old_set,$ac_new_set in
1240      set,)
1241 <      { echo "$as_me:898: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 < echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243 <      ac_suggest_removing_cache=: ;;
1241 >      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 > echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243 >      ac_cache_corrupted=: ;;
1244      ,set)
1245 <      { echo "$as_me:902: WARNING: \`$ac_var' was not set in the previous run" >&5
1246 < echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1247 <      ac_suggest_removing_cache=: ;;
1245 >      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246 > echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247 >      ac_cache_corrupted=: ;;
1248      ,);;
1249      *)
1250        if test "x$ac_old_val" != "x$ac_new_val"; then
1251 <        { echo "$as_me:908: WARNING: \`$ac_var' has changed since the previous run:" >&5
1252 < echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1253 <        { echo "$as_me:910: WARNING:   former value:  $ac_old_val" >&5
1254 < echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
1255 <        { echo "$as_me:912: WARNING:   current value: $ac_new_val" >&5
1256 < echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
1257 <        ac_suggest_removing_cache=:
1251 >        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1252 > echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1253 >        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1254 > echo "$as_me:   former value:  $ac_old_val" >&2;}
1255 >        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1256 > echo "$as_me:   current value: $ac_new_val" >&2;}
1257 >        ac_cache_corrupted=:
1258        fi;;
1259    esac
1260 +  # Pass precious variables to config.status.
1261 +  if test "$ac_new_set" = set; then
1262 +    case $ac_new_val in
1263 +    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 +      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 +    *) ac_arg=$ac_var=$ac_new_val ;;
1266 +    esac
1267 +    case " $ac_configure_args " in
1268 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1269 +      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1270 +    esac
1271 +  fi
1272   done
1273 < if $ac_suggest_removing_cache; then
1274 <  { echo "$as_me:919: WARNING: changes in the environment can compromise the build" >&5
1275 < echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1276 <  { echo "$as_me:921: WARNING: consider removing $cache_file and starting over" >&5
1277 < echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
1273 > if $ac_cache_corrupted; then
1274 >  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275 > echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276 >  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1277 > echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278 >   { (exit 1); exit 1; }; }
1279   fi
1280  
1281   ac_ext=c
# Line 928 | Line 1284 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
1284   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1285   ac_compiler_gnu=$ac_cv_c_compiler_gnu
1286  
1287 < 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
1287 >
1288  
1289 +
1290 +
1291 +
1292 +
1293 +
1294 +
1295 +
1296 +
1297 +
1298 +
1299 +
1300 +
1301 +
1302 +
1303 +
1304 +
1305 +
1306 +
1307 +
1308 +
1309 +
1310 +
1311 +
1312 +
1313   ac_aux_dir=
1314   for ac_dir in ac-tools $srcdir/ac-tools; do
1315    if test -f $ac_dir/install-sh; then
# Line 966 | Line 1327 | if test -z "$ac_aux_dir"; then
1327    fi
1328   done
1329   if test -z "$ac_aux_dir"; then
1330 <  { { echo "$as_me:969: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1330 >  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1331   echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
1332     { (exit 1); exit 1; }; }
1333   fi
# Line 974 | Line 1335 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1335   ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1336   ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1337  
1338 +
1339   # This file is part of Autoconf.                       -*- Autoconf -*-
1340   # Programming languages support.
1341   # Copyright 2000, 2001
# Line 1024 | Line 1386 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1386   # Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably
1387   # many others).
1388  
1389 +
1390   # Table of Contents:
1391   #
1392   # 1. Language selection
# Line 1059 | Line 1422 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1422   # ACTION-IF-NOT-FOUND.
1423   # _AC_LIST_MEMBER_IF
1424  
1425 +
1426 +
1427   # _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE)
1428   # -------------------------------------------------
1429   #
# Line 1089 | Line 1454 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1454   # FIXME: Get rid of this macro.
1455   # _AC_LINKER_OPTION
1456  
1457 +
1458 +
1459   ## ----------------------- ##
1460   ## 1. Language selection.  ##
1461   ## ----------------------- ##
# Line 1100 | Line 1467 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1467   # AC_LANG(Fortran 90)
1468   # -------------------
1469  
1470 +
1471 +
1472   # _AC_LANG_ABBREV(Fortran 90)
1473   # ---------------------------
1474  
1475 +
1476 +
1477   # ----------------------------- #
1478   # 1c. The Fortran 95 language.  #
1479   # ----------------------------- #
# Line 1110 | Line 1481 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1481   # AC_LANG(Fortran 95)
1482   # -------------------
1483  
1484 +
1485 +
1486   # _AC_LANG_ABBREV(Fortran 95)
1487   # ---------------------------
1488  
1489 +
1490 +
1491   ## ---------------------- ##
1492   ## 2.Producing programs.  ##
1493   ## ---------------------- ##
# Line 1124 | Line 1499 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1499   # AC_LANG_SOURCE(Fortran 90)(BODY)
1500   # --------------------------------
1501  
1502 +
1503 +
1504   # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY])
1505   # -----------------------------------------------
1506  
1507 +
1508   # AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION)
1509   # --------------------------------------------
1510  
1511 +
1512 +
1513   # ------------------------ #
1514   # 2c. Fortran 95 sources.  #
1515   # ------------------------ #
# Line 1137 | Line 1517 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1517   # AC_LANG_SOURCE(Fortran 95)(BODY)
1518   # --------------------------------
1519  
1520 +
1521   # AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY])
1522   # -----------------------------------------------
1523  
1524 +
1525   # AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION)
1526   # --------------------------------------------
1527  
1528 +
1529 +
1530   ## -------------------------------------------- ##
1531   ## 3. Looking for Compilers and Preprocessors.  ##
1532   ## -------------------------------------------- ##
# Line 1151 | Line 1535 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1535   # 3b. The Fortran 90 compiler.  #
1536   # ----------------------------- #
1537  
1538 +
1539   # AC_LANG_PREPROC(Fortran 90)
1540   # ---------------------------
1541   # Find the Fortran 90 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able.
1542  
1543 +
1544 +
1545   # AC_LANG_COMPILER(Fortran 90)
1546   # ----------------------------
1547   # Find the Fortran 90 compiler.  Must be AC_DEFUN'd to be
1548   # AC_REQUIRE'able.
1549  
1550 +
1551 +
1552   # AC_PROG_F90([COMPILERS...])
1553   # ---------------------------
1554   # COMPILERS is a space separated list of Fortran 90 compilers to search
# Line 1176 | Line 1565 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1565   # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1566   # AC_PROG_F90
1567  
1568 +
1569   # ----------------------------- #
1570   # 3c. The Fortran 95 compiler.  #
1571   # ----------------------------- #
1572  
1573 +
1574   # AC_LANG_PREPROC(Fortran 95)
1575   # ---------------------------
1576   # Find the Fortran 95 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able.
1577  
1578 +
1579 +
1580   # AC_LANG_COMPILER(Fortran 95)
1581   # ----------------------------
1582   # Find the Fortran 95 compiler.  Must be AC_DEFUN'd to be
1583   # AC_REQUIRE'able.
1584  
1585 +
1586 +
1587   # AC_PROG_F95([COMPILERS...])
1588   # ---------------------------
1589   # COMPILERS is a space separated list of Fortran 95 compilers to search
# Line 1202 | Line 1597 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1597   # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1598   # AC_PROG_F95
1599  
1600 +
1601   ## ------------------------------- ##
1602   ## 4. Compilers' characteristics.  ##
1603   ## ------------------------------- ##
1604 +
1605  
1606   # ---------------------------------------- #
1607   # 4b. Fortan 90 compiler characteristics.  #
1608   # ---------------------------------------- #
1609  
1610 +
1611   # _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v])
1612   # -------------------------------------------------
1613   # Link a trivial Fortran program, compiling with a verbose output FLAG
# Line 1220 | Line 1618 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1618   # space-separated items.
1619   # _AC_PROG_F90_V_OUTPUT
1620  
1621 +
1622   # _AC_PROG_F90_V
1623   # --------------
1624   #
# Line 1229 | Line 1628 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1628   # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1629   # _AC_PROG_F90_V
1630  
1631 +
1632   # AC_F90_LIBRARY_LDFLAGS
1633   # ----------------------
1634   #
# Line 1256 | Line 1656 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1656   # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1657   # AC_F90_LIBRARY_LDFLAGS
1658  
1659 +
1660   # _AC_F90_NAME_MANGLING
1661   # ---------------------
1662   # Test for the name mangling scheme used by the Fortran 90 compiler.
# Line 1275 | Line 1676 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1676  
1677   # The replacement is empty.
1678  
1679 +
1680 +
1681   # AC_F90_WRAPPERS
1682   # ---------------
1683   # Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to
# Line 1283 | Line 1686 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1686   # scheme used by the Fortran 90 compiler.
1687   # AC_F90_WRAPPERS
1688  
1689 +
1690   # AC_F90_FUNC(NAME, [SHELLVAR = NAME])
1691   # ------------------------------------
1692   # For a Fortran subroutine of given NAME, define a shell variable
# Line 1290 | Line 1694 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1694   # argument is not supplied, it defaults to NAME.
1695   # AC_F90_FUNC
1696  
1697 +
1698   # ---------------------------------------- #
1699   # 4c. Fortan 95 compiler characteristics.  #
1700   # ---------------------------------------- #
1701  
1702 +
1703   # _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v])
1704   # -------------------------------------------------
1705   # Link a trivial Fortran program, compiling with a verbose output FLAG
# Line 1304 | Line 1710 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1710   # space-separated items.
1711   # _AC_PROG_F95_V_OUTPUT
1712  
1713 +
1714   # _AC_PROG_F95_V
1715   # --------------
1716   #
# Line 1313 | Line 1720 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1720   # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1721   # _AC_PROG_F95_V
1722  
1723 +
1724   # AC_F95_LIBRARY_LDFLAGS
1725   # ----------------------
1726   #
# Line 1340 | Line 1748 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1748   # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1749   # AC_F95_LIBRARY_LDFLAGS
1750  
1751 +
1752   # _AC_F95_NAME_MANGLING
1753   # ---------------------
1754   # Test for the name mangling scheme used by the Fortran 95 compiler.
# Line 1359 | Line 1768 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1768  
1769   # The replacement is empty.
1770  
1771 +
1772 +
1773   # AC_F95_WRAPPERS
1774   # ---------------
1775   # Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to
# Line 1367 | Line 1778 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1778   # scheme used by the Fortran 95 compiler.
1779   # AC_F95_WRAPPERS
1780  
1781 +
1782   # AC_F95_FUNC(NAME, [SHELLVAR = NAME])
1783   # ------------------------------------
1784   # For a Fortran subroutine of given NAME, define a shell variable
# Line 1374 | Line 1786 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1786   # argument is not supplied, it defaults to NAME.
1787   # AC_F95_FUNC
1788  
1377 # what should I build?
1789  
1790 < # Check whether --enable-debug or --disable-debug was given.
1791 < if test "${enable_debug+set}" = set; then
1792 <  enableval="$enable_debug"
1793 <  DEBUG=1
1794 < fi;
1790 >
1791 >
1792 >
1793 >
1794 >
1795 >
1796 >
1797 >
1798 >
1799 >
1800 >
1801 >
1802 >
1803 >
1804 >
1805 >
1806 >
1807 >
1808 >
1809 >
1810 >
1811 >
1812 >
1813 >
1814 >
1815 >
1816 >
1817 >
1818 >
1819 >
1820 >
1821 >
1822 >
1823 >
1824 >
1825 >
1826 >
1827 >
1828 >
1829 >
1830 >
1831 >
1832 >
1833 >
1834  
1835 +
1836 +
1837 +
1838 +
1839 +
1840   # set program name
1841   PROGNAME="oopse"
1842  
1843 +
1844 + # there are two ways to do debugging.  One with the --enable-debug flag
1845 + # and one using the DEBUG environment variable
1846 +
1847 + debug=0
1848 + # Check whether --enable-debug or --disable-debug was given.
1849 + if test "${enable_debug+set}" = set; then
1850 +  enableval="$enable_debug"
1851 +  debug=1
1852 + fi;
1853   if test "${DEBUG}"; then
1854  
1855 < cat >>confdefs.h <<\EOF
1856 < #define DEBUG 1
1857 < EOF
1855 > cat >>confdefs.h <<\_ACEOF
1856 > #define debug 1
1857 > _ACEOF
1858  
1859    msg="$msg, debug mode"
1860   fi
1861  
1862 +
1863   # who am i
1864   # Make sure we can run config.sub.
1865   $ac_config_sub sun4 >/dev/null 2>&1 ||
1866 <  { { echo "$as_me:1400: error: cannot run $ac_config_sub" >&5
1866 >  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1867   echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1868     { (exit 1); exit 1; }; }
1869  
1870 < echo "$as_me:1404: checking build system type" >&5
1870 > echo "$as_me:$LINENO: checking build system type" >&5
1871   echo $ECHO_N "checking build system type... $ECHO_C" >&6
1872   if test "${ac_cv_build+set}" = set; then
1873    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1410 | Line 1876 | test -z "$ac_cv_build_alias" &&
1876   test -z "$ac_cv_build_alias" &&
1877    ac_cv_build_alias=`$ac_config_guess`
1878   test -z "$ac_cv_build_alias" &&
1879 <  { { echo "$as_me:1413: error: cannot guess build type; you must specify one" >&5
1879 >  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1880   echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1881     { (exit 1); exit 1; }; }
1882   ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1883 <  { { echo "$as_me:1417: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1884 < echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1883 >  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1884 > echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1885     { (exit 1); exit 1; }; }
1886  
1887   fi
1888 < echo "$as_me:1422: result: $ac_cv_build" >&5
1888 > echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1889   echo "${ECHO_T}$ac_cv_build" >&6
1890   build=$ac_cv_build
1891   build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1892   build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1893   build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1894  
1895 < echo "$as_me:1429: checking host system type" >&5
1895 >
1896 > echo "$as_me:$LINENO: checking host system type" >&5
1897   echo $ECHO_N "checking host system type... $ECHO_C" >&6
1898   if test "${ac_cv_host+set}" = set; then
1899    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1435 | Line 1902 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1902   test -z "$ac_cv_host_alias" &&
1903    ac_cv_host_alias=$ac_cv_build_alias
1904   ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1905 <  { { echo "$as_me:1438: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1905 >  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1906   echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1907     { (exit 1); exit 1; }; }
1908  
1909   fi
1910 < echo "$as_me:1443: result: $ac_cv_host" >&5
1910 > echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1911   echo "${ECHO_T}$ac_cv_host" >&6
1912   host=$ac_cv_host
1913   host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1914   host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1915   host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1916  
1917 +
1918 +
1919   ac_ext=c
1920   ac_cpp='$CPP $CPPFLAGS'
1921   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 1457 | Line 1926 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1926    do
1927      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1928   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1929 < echo "$as_me:1460: checking for $ac_word" >&5
1929 > echo "$as_me:$LINENO: checking for $ac_word" >&5
1930   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931   if test "${ac_cv_prog_CC+set}" = set; then
1932    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1465 | Line 1934 | else
1934    if test -n "$CC"; then
1935    ac_cv_prog_CC="$CC" # Let the user override the test.
1936   else
1937 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
1938 < ac_dummy="$PATH"
1939 < for ac_dir in $ac_dummy; do
1940 <  IFS=$ac_save_IFS
1941 <  test -z "$ac_dir" && ac_dir=.
1942 <  $as_executable_p "$ac_dir/$ac_word" || continue
1943 < ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1944 < echo "$as_me:1475: found $ac_dir/$ac_word" >&5
1945 < break
1937 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 > for as_dir in $PATH
1939 > do
1940 >  IFS=$as_save_IFS
1941 >  test -z "$as_dir" && as_dir=.
1942 >  for ac_exec_ext in '' $ac_executable_extensions; do
1943 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 >    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1945 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 >    break 2
1947 >  fi
1948   done
1949 + done
1950  
1951   fi
1952   fi
1953   CC=$ac_cv_prog_CC
1954   if test -n "$CC"; then
1955 <  echo "$as_me:1483: result: $CC" >&5
1955 >  echo "$as_me:$LINENO: result: $CC" >&5
1956   echo "${ECHO_T}$CC" >&6
1957   else
1958 <  echo "$as_me:1486: result: no" >&5
1958 >  echo "$as_me:$LINENO: result: no" >&5
1959   echo "${ECHO_T}no" >&6
1960   fi
1961  
# Line 1496 | Line 1968 | set dummy $ac_prog; ac_word=$2
1968   do
1969    # Extract the first word of "$ac_prog", so it can be a program name with args.
1970   set dummy $ac_prog; ac_word=$2
1971 < echo "$as_me:1499: checking for $ac_word" >&5
1971 > echo "$as_me:$LINENO: checking for $ac_word" >&5
1972   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973   if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1974    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1504 | Line 1976 | else
1976    if test -n "$ac_ct_CC"; then
1977    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1978   else
1979 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
1980 < ac_dummy="$PATH"
1981 < for ac_dir in $ac_dummy; do
1982 <  IFS=$ac_save_IFS
1983 <  test -z "$ac_dir" && ac_dir=.
1984 <  $as_executable_p "$ac_dir/$ac_word" || continue
1985 < ac_cv_prog_ac_ct_CC="$ac_prog"
1986 < echo "$as_me:1514: found $ac_dir/$ac_word" >&5
1987 < break
1979 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 > for as_dir in $PATH
1981 > do
1982 >  IFS=$as_save_IFS
1983 >  test -z "$as_dir" && as_dir=.
1984 >  for ac_exec_ext in '' $ac_executable_extensions; do
1985 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986 >    ac_cv_prog_ac_ct_CC="$ac_prog"
1987 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988 >    break 2
1989 >  fi
1990   done
1991 + done
1992  
1993   fi
1994   fi
1995   ac_ct_CC=$ac_cv_prog_ac_ct_CC
1996   if test -n "$ac_ct_CC"; then
1997 <  echo "$as_me:1522: result: $ac_ct_CC" >&5
1997 >  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1998   echo "${ECHO_T}$ac_ct_CC" >&6
1999   else
2000 <  echo "$as_me:1525: result: no" >&5
2000 >  echo "$as_me:$LINENO: result: no" >&5
2001   echo "${ECHO_T}no" >&6
2002   fi
2003  
# Line 1532 | Line 2007 | fi
2007    CC=$ac_ct_CC
2008   fi
2009  
2010 < test -z "$CC" && { { echo "$as_me:1535: error: no acceptable cc found in \$PATH" >&5
2011 < echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2010 >
2011 > test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2012 > See \`config.log' for more details." >&5
2013 > echo "$as_me: error: no acceptable C compiler found in \$PATH
2014 > See \`config.log' for more details." >&2;}
2015     { (exit 1); exit 1; }; }
2016  
2017 + # Provide some information about the compiler.
2018 + echo "$as_me:$LINENO:" \
2019 +     "checking for C compiler version" >&5
2020 + ac_compiler=`set X $ac_compile; echo $2`
2021 + { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2022 +  (eval $ac_compiler --version </dev/null >&5) 2>&5
2023 +  ac_status=$?
2024 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 +  (exit $ac_status); }
2026 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2027 +  (eval $ac_compiler -v </dev/null >&5) 2>&5
2028 +  ac_status=$?
2029 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 +  (exit $ac_status); }
2031 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2032 +  (eval $ac_compiler -V </dev/null >&5) 2>&5
2033 +  ac_status=$?
2034 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 +  (exit $ac_status); }
2036 +
2037   cat >conftest.$ac_ext <<_ACEOF
2038 < #line 1540 "configure"
2039 < #include "confdefs.h"
2038 > #line $LINENO "configure"
2039 > /* confdefs.h.  */
2040 > _ACEOF
2041 > cat confdefs.h >>conftest.$ac_ext
2042 > cat >>conftest.$ac_ext <<_ACEOF
2043 > /* end confdefs.h.  */
2044  
2045   int
2046   main ()
# Line 1549 | Line 2051 | ac_clean_files_save=$ac_clean_files
2051   }
2052   _ACEOF
2053   ac_clean_files_save=$ac_clean_files
2054 < ac_clean_files="$ac_clean_files a.out a.exe"
2054 > ac_clean_files="$ac_clean_files a.out a.exe b.out"
2055   # Try to create an executable without -o first, disregard a.out.
2056 < # It will help us diagnose broken compiler, and finding out an intuition
2056 > # It will help us diagnose broken compilers, and finding out an intuition
2057   # of exeext.
2058 < echo "$as_me:1556: checking for C compiler default output" >&5
2058 > echo "$as_me:$LINENO: checking for C compiler default output" >&5
2059   echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2060   ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2061 < if { (eval echo "$as_me:1559: \"$ac_link_default\"") >&5
2061 > if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2062    (eval $ac_link_default) 2>&5
2063    ac_status=$?
2064 <  echo "$as_me:1562: \$? = $ac_status" >&5
2064 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065    (exit $ac_status); }; then
2066 <  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
2066 >  # Find the output, starting from the most likely.  This scheme is
2067 > # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2068 > # resort.
2069 >
2070 > # Be careful to initialize this variable, since it used to be cached.
2071 > # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2072 > ac_cv_exeext=
2073 > # b.out is created by i960 compilers.
2074 > for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2075 > do
2076 >  test -f "$ac_file" || continue
2077    case $ac_file in
2078 <    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2079 <    a.out ) # We found the default executable, but exeext='' is most
2080 <            # certainly right.
2081 <            break;;
2082 <    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2083 <          export ac_cv_exeext
2084 <          break;;
2085 <    * ) break;;
2078 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2079 >        ;;
2080 >    conftest.$ac_ext )
2081 >        # This is the source file.
2082 >        ;;
2083 >    [ab].out )
2084 >        # We found the default executable, but exeext='' is most
2085 >        # certainly right.
2086 >        break;;
2087 >    *.* )
2088 >        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2089 >        # FIXME: I believe we export ac_cv_exeext for Libtool,
2090 >        # but it would be cool to find out if it's true.  Does anybody
2091 >        # maintain Libtool? --akim.
2092 >        export ac_cv_exeext
2093 >        break;;
2094 >    * )
2095 >        break;;
2096    esac
2097   done
2098   else
2099    echo "$as_me: failed program was:" >&5
2100 < cat conftest.$ac_ext >&5
2101 < { { echo "$as_me:1579: error: C compiler cannot create executables" >&5
2102 < echo "$as_me: error: C compiler cannot create executables" >&2;}
2100 > sed 's/^/| /' conftest.$ac_ext >&5
2101 >
2102 > { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2103 > See \`config.log' for more details." >&5
2104 > echo "$as_me: error: C compiler cannot create executables
2105 > See \`config.log' for more details." >&2;}
2106     { (exit 77); exit 77; }; }
2107   fi
2108  
2109   ac_exeext=$ac_cv_exeext
2110 < echo "$as_me:1585: result: $ac_file" >&5
2110 > echo "$as_me:$LINENO: result: $ac_file" >&5
2111   echo "${ECHO_T}$ac_file" >&6
2112  
2113   # Check the compiler produces executables we can run.  If not, either
2114   # the compiler is broken, or we cross compile.
2115 < echo "$as_me:1590: checking whether the C compiler works" >&5
2115 > echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2116   echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2117   # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2118   # If not cross compiling, check that we can run a simple program.
2119   if test "$cross_compiling" != yes; then
2120    if { ac_try='./$ac_file'
2121 <  { (eval echo "$as_me:1596: \"$ac_try\"") >&5
2121 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122    (eval $ac_try) 2>&5
2123    ac_status=$?
2124 <  echo "$as_me:1599: \$? = $ac_status" >&5
2124 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125    (exit $ac_status); }; }; then
2126      cross_compiling=no
2127    else
2128      if test "$cross_compiling" = maybe; then
2129          cross_compiling=yes
2130      else
2131 <        { { echo "$as_me:1606: error: cannot run C compiled programs.
2132 < If you meant to cross compile, use \`--host'." >&5
2131 >        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2132 > If you meant to cross compile, use \`--host'.
2133 > See \`config.log' for more details." >&5
2134   echo "$as_me: error: cannot run C compiled programs.
2135 < If you meant to cross compile, use \`--host'." >&2;}
2135 > If you meant to cross compile, use \`--host'.
2136 > See \`config.log' for more details." >&2;}
2137     { (exit 1); exit 1; }; }
2138      fi
2139    fi
2140   fi
2141 < echo "$as_me:1614: result: yes" >&5
2141 > echo "$as_me:$LINENO: result: yes" >&5
2142   echo "${ECHO_T}yes" >&6
2143  
2144 < rm -f a.out a.exe conftest$ac_cv_exeext
2144 > rm -f a.out a.exe conftest$ac_cv_exeext b.out
2145   ac_clean_files=$ac_clean_files_save
2146   # Check the compiler produces executables we can run.  If not, either
2147   # the compiler is broken, or we cross compile.
2148 < echo "$as_me:1621: checking whether we are cross compiling" >&5
2148 > echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2149   echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2150 < echo "$as_me:1623: result: $cross_compiling" >&5
2150 > echo "$as_me:$LINENO: result: $cross_compiling" >&5
2151   echo "${ECHO_T}$cross_compiling" >&6
2152  
2153 < echo "$as_me:1626: checking for executable suffix" >&5
2154 < echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2155 < if { (eval echo "$as_me:1628: \"$ac_link\"") >&5
2153 > echo "$as_me:$LINENO: checking for suffix of executables" >&5
2154 > echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2155 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2156    (eval $ac_link) 2>&5
2157    ac_status=$?
2158 <  echo "$as_me:1631: \$? = $ac_status" >&5
2158 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159    (exit $ac_status); }; then
2160    # If both `conftest.exe' and `conftest' are `present' (well, observable)
2161   # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2162   # work properly (i.e., refer to `conftest.exe'), while it won't with
2163   # `rm'.
2164 < for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2164 > for ac_file in conftest.exe conftest conftest.*; do
2165 >  test -f "$ac_file" || continue
2166    case $ac_file in
2167 <    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2167 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2168      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2169            export ac_cv_exeext
2170            break;;
# Line 1644 | Line 2172 | else
2172    esac
2173   done
2174   else
2175 <  { { echo "$as_me:1647: error: cannot compute EXEEXT: cannot compile and link" >&5
2176 < echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2175 >  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2176 > See \`config.log' for more details." >&5
2177 > echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2178 > See \`config.log' for more details." >&2;}
2179     { (exit 1); exit 1; }; }
2180   fi
2181  
2182   rm -f conftest$ac_cv_exeext
2183 < echo "$as_me:1653: result: $ac_cv_exeext" >&5
2183 > echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2184   echo "${ECHO_T}$ac_cv_exeext" >&6
2185  
2186   rm -f conftest.$ac_ext
2187   EXEEXT=$ac_cv_exeext
2188   ac_exeext=$EXEEXT
2189 < echo "$as_me:1659: checking for object suffix" >&5
2190 < echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2189 > echo "$as_me:$LINENO: checking for suffix of object files" >&5
2190 > echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2191   if test "${ac_cv_objext+set}" = set; then
2192    echo $ECHO_N "(cached) $ECHO_C" >&6
2193   else
2194    cat >conftest.$ac_ext <<_ACEOF
2195 < #line 1665 "configure"
2196 < #include "confdefs.h"
2195 > #line $LINENO "configure"
2196 > /* confdefs.h.  */
2197 > _ACEOF
2198 > cat confdefs.h >>conftest.$ac_ext
2199 > cat >>conftest.$ac_ext <<_ACEOF
2200 > /* end confdefs.h.  */
2201  
2202   int
2203   main ()
# Line 1674 | Line 2208 | rm -f conftest.o conftest.obj
2208   }
2209   _ACEOF
2210   rm -f conftest.o conftest.obj
2211 < if { (eval echo "$as_me:1677: \"$ac_compile\"") >&5
2211 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212    (eval $ac_compile) 2>&5
2213    ac_status=$?
2214 <  echo "$as_me:1680: \$? = $ac_status" >&5
2214 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215    (exit $ac_status); }; then
2216    for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2217    case $ac_file in
2218 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2218 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2219      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2220         break;;
2221    esac
2222   done
2223   else
2224    echo "$as_me: failed program was:" >&5
2225 < cat conftest.$ac_ext >&5
2226 < { { echo "$as_me:1692: error: cannot compute OBJEXT: cannot compile" >&5
2227 < echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2225 > sed 's/^/| /' conftest.$ac_ext >&5
2226 >
2227 > { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2228 > See \`config.log' for more details." >&5
2229 > echo "$as_me: error: cannot compute suffix of object files: cannot compile
2230 > See \`config.log' for more details." >&2;}
2231     { (exit 1); exit 1; }; }
2232   fi
2233  
2234   rm -f conftest.$ac_cv_objext conftest.$ac_ext
2235   fi
2236 < echo "$as_me:1699: result: $ac_cv_objext" >&5
2236 > echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2237   echo "${ECHO_T}$ac_cv_objext" >&6
2238   OBJEXT=$ac_cv_objext
2239   ac_objext=$OBJEXT
2240 < echo "$as_me:1703: checking whether we are using the GNU C compiler" >&5
2240 > echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2241   echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2242   if test "${ac_cv_c_compiler_gnu+set}" = set; then
2243    echo $ECHO_N "(cached) $ECHO_C" >&6
2244   else
2245    cat >conftest.$ac_ext <<_ACEOF
2246 < #line 1709 "configure"
2247 < #include "confdefs.h"
2246 > #line $LINENO "configure"
2247 > /* confdefs.h.  */
2248 > _ACEOF
2249 > cat confdefs.h >>conftest.$ac_ext
2250 > cat >>conftest.$ac_ext <<_ACEOF
2251 > /* end confdefs.h.  */
2252  
2253   int
2254   main ()
# Line 1721 | Line 2262 | rm -f conftest.$ac_objext
2262   }
2263   _ACEOF
2264   rm -f conftest.$ac_objext
2265 < if { (eval echo "$as_me:1724: \"$ac_compile\"") >&5
2265 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266    (eval $ac_compile) 2>&5
2267    ac_status=$?
2268 <  echo "$as_me:1727: \$? = $ac_status" >&5
2268 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269    (exit $ac_status); } &&
2270           { ac_try='test -s conftest.$ac_objext'
2271 <  { (eval echo "$as_me:1730: \"$ac_try\"") >&5
2271 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272    (eval $ac_try) 2>&5
2273    ac_status=$?
2274 <  echo "$as_me:1733: \$? = $ac_status" >&5
2274 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275    (exit $ac_status); }; }; then
2276    ac_compiler_gnu=yes
2277   else
2278    echo "$as_me: failed program was:" >&5
2279 < cat conftest.$ac_ext >&5
2279 > sed 's/^/| /' conftest.$ac_ext >&5
2280 >
2281   ac_compiler_gnu=no
2282   fi
2283   rm -f conftest.$ac_objext conftest.$ac_ext
2284   ac_cv_c_compiler_gnu=$ac_compiler_gnu
2285  
2286   fi
2287 < echo "$as_me:1745: result: $ac_cv_c_compiler_gnu" >&5
2287 > echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2288   echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2289   GCC=`test $ac_compiler_gnu = yes && echo yes`
2290   ac_test_CFLAGS=${CFLAGS+set}
2291   ac_save_CFLAGS=$CFLAGS
2292   CFLAGS="-g"
2293 < echo "$as_me:1751: checking whether $CC accepts -g" >&5
2293 > echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2294   echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2295   if test "${ac_cv_prog_cc_g+set}" = set; then
2296    echo $ECHO_N "(cached) $ECHO_C" >&6
2297   else
2298    cat >conftest.$ac_ext <<_ACEOF
2299 < #line 1757 "configure"
2300 < #include "confdefs.h"
2299 > #line $LINENO "configure"
2300 > /* confdefs.h.  */
2301 > _ACEOF
2302 > cat confdefs.h >>conftest.$ac_ext
2303 > cat >>conftest.$ac_ext <<_ACEOF
2304 > /* end confdefs.h.  */
2305  
2306   int
2307   main ()
# Line 1766 | Line 2312 | rm -f conftest.$ac_objext
2312   }
2313   _ACEOF
2314   rm -f conftest.$ac_objext
2315 < if { (eval echo "$as_me:1769: \"$ac_compile\"") >&5
2315 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316    (eval $ac_compile) 2>&5
2317    ac_status=$?
2318 <  echo "$as_me:1772: \$? = $ac_status" >&5
2318 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319    (exit $ac_status); } &&
2320           { ac_try='test -s conftest.$ac_objext'
2321 <  { (eval echo "$as_me:1775: \"$ac_try\"") >&5
2321 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322    (eval $ac_try) 2>&5
2323    ac_status=$?
2324 <  echo "$as_me:1778: \$? = $ac_status" >&5
2324 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325    (exit $ac_status); }; }; then
2326    ac_cv_prog_cc_g=yes
2327   else
2328    echo "$as_me: failed program was:" >&5
2329 < cat conftest.$ac_ext >&5
2329 > sed 's/^/| /' conftest.$ac_ext >&5
2330 >
2331   ac_cv_prog_cc_g=no
2332   fi
2333   rm -f conftest.$ac_objext conftest.$ac_ext
2334   fi
2335 < echo "$as_me:1788: result: $ac_cv_prog_cc_g" >&5
2335 > echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2336   echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2337   if test "$ac_test_CFLAGS" = set; then
2338    CFLAGS=$ac_save_CFLAGS
# Line 1801 | Line 2348 | else
2348    else
2349      CFLAGS=
2350    fi
2351 + fi
2352 + echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2353 + echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2354 + if test "${ac_cv_prog_cc_stdc+set}" = set; then
2355 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2356 + else
2357 +  ac_cv_prog_cc_stdc=no
2358 + ac_save_CC=$CC
2359 + cat >conftest.$ac_ext <<_ACEOF
2360 + #line $LINENO "configure"
2361 + /* confdefs.h.  */
2362 + _ACEOF
2363 + cat confdefs.h >>conftest.$ac_ext
2364 + cat >>conftest.$ac_ext <<_ACEOF
2365 + /* end confdefs.h.  */
2366 + #include <stdarg.h>
2367 + #include <stdio.h>
2368 + #include <sys/types.h>
2369 + #include <sys/stat.h>
2370 + /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2371 + struct buf { int x; };
2372 + FILE * (*rcsopen) (struct buf *, struct stat *, int);
2373 + static char *e (p, i)
2374 +     char **p;
2375 +     int i;
2376 + {
2377 +  return p[i];
2378 + }
2379 + static char *f (char * (*g) (char **, int), char **p, ...)
2380 + {
2381 +  char *s;
2382 +  va_list v;
2383 +  va_start (v,p);
2384 +  s = g (p, va_arg (v,int));
2385 +  va_end (v);
2386 +  return s;
2387 + }
2388 + int test (int i, double x);
2389 + struct s1 {int (*f) (int a);};
2390 + struct s2 {int (*f) (double a);};
2391 + int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2392 + int argc;
2393 + char **argv;
2394 + int
2395 + main ()
2396 + {
2397 + return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2398 +  ;
2399 +  return 0;
2400 + }
2401 + _ACEOF
2402 + # Don't try gcc -ansi; that turns off useful extensions and
2403 + # breaks some systems' header files.
2404 + # AIX                   -qlanglvl=ansi
2405 + # Ultrix and OSF/1      -std1
2406 + # HP-UX 10.20 and later -Ae
2407 + # HP-UX older versions  -Aa -D_HPUX_SOURCE
2408 + # SVR4                  -Xc -D__EXTENSIONS__
2409 + for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2410 + do
2411 +  CC="$ac_save_CC $ac_arg"
2412 +  rm -f conftest.$ac_objext
2413 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414 +  (eval $ac_compile) 2>&5
2415 +  ac_status=$?
2416 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 +  (exit $ac_status); } &&
2418 +         { ac_try='test -s conftest.$ac_objext'
2419 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 +  (eval $ac_try) 2>&5
2421 +  ac_status=$?
2422 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 +  (exit $ac_status); }; }; then
2424 +  ac_cv_prog_cc_stdc=$ac_arg
2425 + break
2426 + else
2427 +  echo "$as_me: failed program was:" >&5
2428 + sed 's/^/| /' conftest.$ac_ext >&5
2429 +
2430   fi
2431 + rm -f conftest.$ac_objext
2432 + done
2433 + rm -f conftest.$ac_ext conftest.$ac_objext
2434 + CC=$ac_save_CC
2435 +
2436 + fi
2437 +
2438 + case "x$ac_cv_prog_cc_stdc" in
2439 +  x|xno)
2440 +    echo "$as_me:$LINENO: result: none needed" >&5
2441 + echo "${ECHO_T}none needed" >&6 ;;
2442 +  *)
2443 +    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2444 + echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2445 +    CC="$CC $ac_cv_prog_cc_stdc" ;;
2446 + esac
2447 +
2448   # Some people use a C++ compiler to compile C.  Since we use `exit',
2449   # in C++ we need to declare it.  In case someone uses the same compiler
2450   # for both compiling C and C++ we need to have the C++ compiler decide
# Line 1812 | Line 2455 | rm -f conftest.$ac_objext
2455   #endif
2456   _ACEOF
2457   rm -f conftest.$ac_objext
2458 < if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5
2458 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459    (eval $ac_compile) 2>&5
2460    ac_status=$?
2461 <  echo "$as_me:1818: \$? = $ac_status" >&5
2461 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462    (exit $ac_status); } &&
2463           { ac_try='test -s conftest.$ac_objext'
2464 <  { (eval echo "$as_me:1821: \"$ac_try\"") >&5
2464 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465    (eval $ac_try) 2>&5
2466    ac_status=$?
2467 <  echo "$as_me:1824: \$? = $ac_status" >&5
2467 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468    (exit $ac_status); }; }; then
2469    for ac_declaration in \
2470     ''\
# Line 1833 | Line 2476 | do
2476     'void exit (int);'
2477   do
2478    cat >conftest.$ac_ext <<_ACEOF
2479 < #line 1836 "configure"
2480 < #include "confdefs.h"
2479 > #line $LINENO "configure"
2480 > /* confdefs.h.  */
2481 > _ACEOF
2482 > cat confdefs.h >>conftest.$ac_ext
2483 > cat >>conftest.$ac_ext <<_ACEOF
2484 > /* end confdefs.h.  */
2485   #include <stdlib.h>
2486   $ac_declaration
2487   int
# Line 1846 | Line 2493 | rm -f conftest.$ac_objext
2493   }
2494   _ACEOF
2495   rm -f conftest.$ac_objext
2496 < if { (eval echo "$as_me:1849: \"$ac_compile\"") >&5
2496 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497    (eval $ac_compile) 2>&5
2498    ac_status=$?
2499 <  echo "$as_me:1852: \$? = $ac_status" >&5
2499 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500    (exit $ac_status); } &&
2501           { ac_try='test -s conftest.$ac_objext'
2502 <  { (eval echo "$as_me:1855: \"$ac_try\"") >&5
2502 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503    (eval $ac_try) 2>&5
2504    ac_status=$?
2505 <  echo "$as_me:1858: \$? = $ac_status" >&5
2505 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506    (exit $ac_status); }; }; then
2507    :
2508   else
2509    echo "$as_me: failed program was:" >&5
2510 < cat conftest.$ac_ext >&5
2510 > sed 's/^/| /' conftest.$ac_ext >&5
2511 >
2512   continue
2513   fi
2514   rm -f conftest.$ac_objext conftest.$ac_ext
2515    cat >conftest.$ac_ext <<_ACEOF
2516 < #line 1868 "configure"
2517 < #include "confdefs.h"
2516 > #line $LINENO "configure"
2517 > /* confdefs.h.  */
2518 > _ACEOF
2519 > cat confdefs.h >>conftest.$ac_ext
2520 > cat >>conftest.$ac_ext <<_ACEOF
2521 > /* end confdefs.h.  */
2522   $ac_declaration
2523   int
2524   main ()
# Line 1877 | Line 2529 | rm -f conftest.$ac_objext
2529   }
2530   _ACEOF
2531   rm -f conftest.$ac_objext
2532 < if { (eval echo "$as_me:1880: \"$ac_compile\"") >&5
2532 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533    (eval $ac_compile) 2>&5
2534    ac_status=$?
2535 <  echo "$as_me:1883: \$? = $ac_status" >&5
2535 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536    (exit $ac_status); } &&
2537           { ac_try='test -s conftest.$ac_objext'
2538 <  { (eval echo "$as_me:1886: \"$ac_try\"") >&5
2538 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539    (eval $ac_try) 2>&5
2540    ac_status=$?
2541 <  echo "$as_me:1889: \$? = $ac_status" >&5
2541 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542    (exit $ac_status); }; }; then
2543    break
2544   else
2545    echo "$as_me: failed program was:" >&5
2546 < cat conftest.$ac_ext >&5
2546 > sed 's/^/| /' conftest.$ac_ext >&5
2547 >
2548   fi
2549   rm -f conftest.$ac_objext conftest.$ac_ext
2550   done
2551 < echo '#ifdef __cplusplus' >>confdefs.h
2552 < echo $ac_declaration      >>confdefs.h
2553 < echo '#endif'             >>confdefs.h
2551 > rm -f conftest*
2552 > if test -n "$ac_declaration"; then
2553 >  echo '#ifdef __cplusplus' >>confdefs.h
2554 >  echo $ac_declaration      >>confdefs.h
2555 >  echo '#endif'             >>confdefs.h
2556 > fi
2557  
2558   else
2559    echo "$as_me: failed program was:" >&5
2560 < cat conftest.$ac_ext >&5
2560 > sed 's/^/| /' conftest.$ac_ext >&5
2561 >
2562   fi
2563   rm -f conftest.$ac_objext conftest.$ac_ext
2564   ac_ext=c
# Line 1910 | Line 2567 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
2567   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569  
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
2570  
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
2571   ac_ext=cc
2572   ac_cpp='$CXXCPP $CPPFLAGS'
2573   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2576   if test -n "$ac_tool_prefix"; then
2577 <  for ac_prog in $CCC icpc icc xlC g++ c++
2577 >  for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2578    do
2579      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2580   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2581 < echo "$as_me:2339: checking for $ac_word" >&5
2581 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2582   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2583   if test "${ac_cv_prog_CXX+set}" = set; then
2584    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2344 | Line 2586 | else
2586    if test -n "$CXX"; then
2587    ac_cv_prog_CXX="$CXX" # Let the user override the test.
2588   else
2589 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2590 < ac_dummy="$PATH"
2591 < for ac_dir in $ac_dummy; do
2592 <  IFS=$ac_save_IFS
2593 <  test -z "$ac_dir" && ac_dir=.
2594 <  $as_executable_p "$ac_dir/$ac_word" || continue
2595 < ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2596 < echo "$as_me:2354: found $ac_dir/$ac_word" >&5
2597 < break
2589 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 > for as_dir in $PATH
2591 > do
2592 >  IFS=$as_save_IFS
2593 >  test -z "$as_dir" && as_dir=.
2594 >  for ac_exec_ext in '' $ac_executable_extensions; do
2595 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596 >    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2597 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 >    break 2
2599 >  fi
2600   done
2601 + done
2602  
2603   fi
2604   fi
2605   CXX=$ac_cv_prog_CXX
2606   if test -n "$CXX"; then
2607 <  echo "$as_me:2362: result: $CXX" >&5
2607 >  echo "$as_me:$LINENO: result: $CXX" >&5
2608   echo "${ECHO_T}$CXX" >&6
2609   else
2610 <  echo "$as_me:2365: result: no" >&5
2610 >  echo "$as_me:$LINENO: result: no" >&5
2611   echo "${ECHO_T}no" >&6
2612   fi
2613  
# Line 2371 | Line 2616 | if test -z "$CXX"; then
2616   fi
2617   if test -z "$CXX"; then
2618    ac_ct_CXX=$CXX
2619 <  for ac_prog in $CCC icpc icc xlC g++ c++
2619 >  for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2620   do
2621    # Extract the first word of "$ac_prog", so it can be a program name with args.
2622   set dummy $ac_prog; ac_word=$2
2623 < echo "$as_me:2378: checking for $ac_word" >&5
2623 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2624   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2625   if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2626    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2383 | Line 2628 | else
2628    if test -n "$ac_ct_CXX"; then
2629    ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2630   else
2631 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2632 < ac_dummy="$PATH"
2633 < for ac_dir in $ac_dummy; do
2634 <  IFS=$ac_save_IFS
2635 <  test -z "$ac_dir" && ac_dir=.
2636 <  $as_executable_p "$ac_dir/$ac_word" || continue
2637 < ac_cv_prog_ac_ct_CXX="$ac_prog"
2638 < echo "$as_me:2393: found $ac_dir/$ac_word" >&5
2639 < break
2631 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 > for as_dir in $PATH
2633 > do
2634 >  IFS=$as_save_IFS
2635 >  test -z "$as_dir" && as_dir=.
2636 >  for ac_exec_ext in '' $ac_executable_extensions; do
2637 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638 >    ac_cv_prog_ac_ct_CXX="$ac_prog"
2639 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 >    break 2
2641 >  fi
2642   done
2643 + done
2644  
2645   fi
2646   fi
2647   ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2648   if test -n "$ac_ct_CXX"; then
2649 <  echo "$as_me:2401: result: $ac_ct_CXX" >&5
2649 >  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2650   echo "${ECHO_T}$ac_ct_CXX" >&6
2651   else
2652 <  echo "$as_me:2404: result: no" >&5
2652 >  echo "$as_me:$LINENO: result: no" >&5
2653   echo "${ECHO_T}no" >&6
2654   fi
2655  
# Line 2412 | Line 2660 | fi
2660    CXX=$ac_ct_CXX
2661   fi
2662  
2663 < echo "$as_me:2415: checking whether we are using the GNU C++ compiler" >&5
2663 >
2664 > # Provide some information about the compiler.
2665 > echo "$as_me:$LINENO:" \
2666 >     "checking for C++ compiler version" >&5
2667 > ac_compiler=`set X $ac_compile; echo $2`
2668 > { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2669 >  (eval $ac_compiler --version </dev/null >&5) 2>&5
2670 >  ac_status=$?
2671 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 >  (exit $ac_status); }
2673 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2674 >  (eval $ac_compiler -v </dev/null >&5) 2>&5
2675 >  ac_status=$?
2676 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 >  (exit $ac_status); }
2678 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2679 >  (eval $ac_compiler -V </dev/null >&5) 2>&5
2680 >  ac_status=$?
2681 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 >  (exit $ac_status); }
2683 >
2684 > echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2685   echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2686   if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2687    echo $ECHO_N "(cached) $ECHO_C" >&6
2688   else
2689    cat >conftest.$ac_ext <<_ACEOF
2690 < #line 2421 "configure"
2691 < #include "confdefs.h"
2690 > #line $LINENO "configure"
2691 > /* confdefs.h.  */
2692 > _ACEOF
2693 > cat confdefs.h >>conftest.$ac_ext
2694 > cat >>conftest.$ac_ext <<_ACEOF
2695 > /* end confdefs.h.  */
2696  
2697   int
2698   main ()
# Line 2433 | Line 2706 | rm -f conftest.$ac_objext
2706   }
2707   _ACEOF
2708   rm -f conftest.$ac_objext
2709 < if { (eval echo "$as_me:2436: \"$ac_compile\"") >&5
2709 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710    (eval $ac_compile) 2>&5
2711    ac_status=$?
2712 <  echo "$as_me:2439: \$? = $ac_status" >&5
2712 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713    (exit $ac_status); } &&
2714           { ac_try='test -s conftest.$ac_objext'
2715 <  { (eval echo "$as_me:2442: \"$ac_try\"") >&5
2715 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716    (eval $ac_try) 2>&5
2717    ac_status=$?
2718 <  echo "$as_me:2445: \$? = $ac_status" >&5
2718 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719    (exit $ac_status); }; }; then
2720    ac_compiler_gnu=yes
2721   else
2722    echo "$as_me: failed program was:" >&5
2723 < cat conftest.$ac_ext >&5
2723 > sed 's/^/| /' conftest.$ac_ext >&5
2724 >
2725   ac_compiler_gnu=no
2726   fi
2727   rm -f conftest.$ac_objext conftest.$ac_ext
2728   ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2729  
2730   fi
2731 < echo "$as_me:2457: result: $ac_cv_cxx_compiler_gnu" >&5
2731 > echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2732   echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2733   GXX=`test $ac_compiler_gnu = yes && echo yes`
2734   ac_test_CXXFLAGS=${CXXFLAGS+set}
2735   ac_save_CXXFLAGS=$CXXFLAGS
2736   CXXFLAGS="-g"
2737 < echo "$as_me:2463: checking whether $CXX accepts -g" >&5
2737 > echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2738   echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2739   if test "${ac_cv_prog_cxx_g+set}" = set; then
2740    echo $ECHO_N "(cached) $ECHO_C" >&6
2741   else
2742    cat >conftest.$ac_ext <<_ACEOF
2743 < #line 2469 "configure"
2744 < #include "confdefs.h"
2743 > #line $LINENO "configure"
2744 > /* confdefs.h.  */
2745 > _ACEOF
2746 > cat confdefs.h >>conftest.$ac_ext
2747 > cat >>conftest.$ac_ext <<_ACEOF
2748 > /* end confdefs.h.  */
2749  
2750   int
2751   main ()
# Line 2478 | Line 2756 | rm -f conftest.$ac_objext
2756   }
2757   _ACEOF
2758   rm -f conftest.$ac_objext
2759 < if { (eval echo "$as_me:2481: \"$ac_compile\"") >&5
2759 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760    (eval $ac_compile) 2>&5
2761    ac_status=$?
2762 <  echo "$as_me:2484: \$? = $ac_status" >&5
2762 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763    (exit $ac_status); } &&
2764           { ac_try='test -s conftest.$ac_objext'
2765 <  { (eval echo "$as_me:2487: \"$ac_try\"") >&5
2765 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766    (eval $ac_try) 2>&5
2767    ac_status=$?
2768 <  echo "$as_me:2490: \$? = $ac_status" >&5
2768 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769    (exit $ac_status); }; }; then
2770    ac_cv_prog_cxx_g=yes
2771   else
2772    echo "$as_me: failed program was:" >&5
2773 < cat conftest.$ac_ext >&5
2773 > sed 's/^/| /' conftest.$ac_ext >&5
2774 >
2775   ac_cv_prog_cxx_g=no
2776   fi
2777   rm -f conftest.$ac_objext conftest.$ac_ext
2778   fi
2779 < echo "$as_me:2500: result: $ac_cv_prog_cxx_g" >&5
2779 > echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2780   echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2781   if test "$ac_test_CXXFLAGS" = set; then
2782    CXXFLAGS=$ac_save_CXXFLAGS
# Line 2524 | Line 2803 | do
2803     'void exit (int);'
2804   do
2805    cat >conftest.$ac_ext <<_ACEOF
2806 < #line 2527 "configure"
2807 < #include "confdefs.h"
2806 > #line $LINENO "configure"
2807 > /* confdefs.h.  */
2808 > _ACEOF
2809 > cat confdefs.h >>conftest.$ac_ext
2810 > cat >>conftest.$ac_ext <<_ACEOF
2811 > /* end confdefs.h.  */
2812   #include <stdlib.h>
2813   $ac_declaration
2814   int
# Line 2537 | Line 2820 | rm -f conftest.$ac_objext
2820   }
2821   _ACEOF
2822   rm -f conftest.$ac_objext
2823 < if { (eval echo "$as_me:2540: \"$ac_compile\"") >&5
2823 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824    (eval $ac_compile) 2>&5
2825    ac_status=$?
2826 <  echo "$as_me:2543: \$? = $ac_status" >&5
2826 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827    (exit $ac_status); } &&
2828           { ac_try='test -s conftest.$ac_objext'
2829 <  { (eval echo "$as_me:2546: \"$ac_try\"") >&5
2829 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830    (eval $ac_try) 2>&5
2831    ac_status=$?
2832 <  echo "$as_me:2549: \$? = $ac_status" >&5
2832 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833    (exit $ac_status); }; }; then
2834    :
2835   else
2836    echo "$as_me: failed program was:" >&5
2837 < cat conftest.$ac_ext >&5
2837 > sed 's/^/| /' conftest.$ac_ext >&5
2838 >
2839   continue
2840   fi
2841   rm -f conftest.$ac_objext conftest.$ac_ext
2842    cat >conftest.$ac_ext <<_ACEOF
2843 < #line 2559 "configure"
2844 < #include "confdefs.h"
2843 > #line $LINENO "configure"
2844 > /* confdefs.h.  */
2845 > _ACEOF
2846 > cat confdefs.h >>conftest.$ac_ext
2847 > cat >>conftest.$ac_ext <<_ACEOF
2848 > /* end confdefs.h.  */
2849   $ac_declaration
2850   int
2851   main ()
# Line 2568 | Line 2856 | rm -f conftest.$ac_objext
2856   }
2857   _ACEOF
2858   rm -f conftest.$ac_objext
2859 < if { (eval echo "$as_me:2571: \"$ac_compile\"") >&5
2859 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860    (eval $ac_compile) 2>&5
2861    ac_status=$?
2862 <  echo "$as_me:2574: \$? = $ac_status" >&5
2862 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863    (exit $ac_status); } &&
2864           { ac_try='test -s conftest.$ac_objext'
2865 <  { (eval echo "$as_me:2577: \"$ac_try\"") >&5
2865 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866    (eval $ac_try) 2>&5
2867    ac_status=$?
2868 <  echo "$as_me:2580: \$? = $ac_status" >&5
2868 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869    (exit $ac_status); }; }; then
2870    break
2871   else
2872    echo "$as_me: failed program was:" >&5
2873 < cat conftest.$ac_ext >&5
2873 > sed 's/^/| /' conftest.$ac_ext >&5
2874 >
2875   fi
2876   rm -f conftest.$ac_objext conftest.$ac_ext
2877   done
2878 < echo '#ifdef __cplusplus' >>confdefs.h
2879 < echo $ac_declaration      >>confdefs.h
2880 < echo '#endif'             >>confdefs.h
2878 > rm -f conftest*
2879 > if test -n "$ac_declaration"; then
2880 >  echo '#ifdef __cplusplus' >>confdefs.h
2881 >  echo $ac_declaration      >>confdefs.h
2882 >  echo '#endif'             >>confdefs.h
2883 > fi
2884  
2885   ac_ext=c
2886   ac_cpp='$CPP $CPPFLAGS'
# Line 2596 | Line 2888 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890  
2599 # Try to determine "good" native compiler flags if none specified on command
2600 # line
2601 if test "$ac_test_CXXFLAGS" != "set"; then
2602  CXXFLAGS=""
2603  case "${host_cpu}-${host_os}" in
2891  
2892 <  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
2893 <                    CXXFLAGS="-O"
2894 <                fi;;
2895 <  sparc-solaris2*) if test "$CXX" = CC; then
2896 <                    CXXFLAGS="-native -fast -xO5 -dalign"
2897 <                 fi;;
2898 <   rs6000*-aix*)  if test "$CXX" = xlC; then
2899 <                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
2900 <                fi;;
2901 <   powerpc*-aix*)
2902 <        if test "$CXX" = xlC; then
2903 <                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
2617 <                echo "*******************************************************"
2618 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
2619 <                echo "*  recommended that you use                           *"
2620 <                echo "*                                                     *"
2621 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
2622 <                echo "*                                 ^^^                 *"
2623 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
2624 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
2625 <                echo "*******************************************************"
2626 <        fi;;
2627 <   *darwin*)
2628 <        if test "$CXX" = xlC; then
2629 <                CXXFLAGS="-O3 -qtune=auto -qansialias -w"
2630 <                echo "*******************************************************"
2631 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
2632 <                echo "*  recommended that you use                           *"
2633 <                echo "*                                                     *"
2634 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
2635 <                echo "*                                 ^^^                 *"
2636 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
2637 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
2638 <                echo "*******************************************************"
2639 <        fi;;
2640 <  esac
2641 <
2642 <  # use default flags for gcc on all systems
2643 <  if test $ac_cv_c_compiler_gnu = yes; then
2644 <     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
2892 > OOPSE_TEMPLATE_FLAGS=""
2893 > if test $ac_cv_cxx_compiler_gnu = no; then
2894 >  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
2895 > echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
2896 >  echo 'void f(){}' > conftest.cc
2897 >  if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
2898 >    echo "$as_me:$LINENO: result: yes" >&5
2899 > echo "${ECHO_T}yes" >&6
2900 >    OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
2901 >  else
2902 >    echo "$as_me:$LINENO: result: no" >&5
2903 > echo "${ECHO_T}no" >&6
2904    fi
2905 +  rm -f conftest*
2906 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
2907 + echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
2908 +  echo 'void f(){}' > conftest.cc
2909 +  if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
2910 +    echo "$as_me:$LINENO: result: yes" >&5
2911 + echo "${ECHO_T}yes" >&6
2912 +    OOPSE_TEMPLATE_FLAGS="-instances=static"
2913 +  else
2914 +    echo "$as_me:$LINENO: result: no" >&5
2915 + echo "${ECHO_T}no" >&6
2916 +  fi
2917 +  rm -f conftest*
2918 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
2919 + echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
2920 +  echo 'void f(){}' > conftest.cc
2921 +  if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
2922 +    echo "$as_me:$LINENO: result: yes" >&5
2923 + echo "${ECHO_T}yes" >&6
2924 +    OOPSE_TEMPLATE_FLAGS="-pto"
2925 +  else
2926 +    echo "$as_me:$LINENO: result: no" >&5
2927 + echo "${ECHO_T}no" >&6
2928 +  fi
2929 +  rm -f conftest*
2930 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
2931 + echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
2932 +  echo 'void f(){}' > conftest.cc
2933 +  if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
2934 +    echo "$as_me:$LINENO: result: yes" >&5
2935 + echo "${ECHO_T}yes" >&6
2936  
2647  # test for gcc-specific flags:
2648  if test $ac_cv_c_compiler_gnu = yes; then
2649    # -malign-double for x86 systems
2937  
2938 < echo "$as_me:2651: checking whether ${CXX-c++} accepts -malign-double" >&5
2939 < echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
2940 < if test "${ac_align_double+set}" = set; then
2941 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2942 < else
2656 <  echo 'void f(){}' > conftest.cpp
2657 < if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
2658 <        ac_align_double=yes
2659 < else
2660 <        ac_align_double=no
2938 >    EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
2939 >  else
2940 >    echo "$as_me:$LINENO: result: no" >&5
2941 > echo "${ECHO_T}no" >&6
2942 >  fi
2943   fi
2662 rm -f conftest*
2944  
2664 fi
2665 echo "$as_me:2665: result: $ac_align_double" >&5
2666 echo "${ECHO_T}$ac_align_double" >&6
2667 if test "$ac_align_double" = yes; then
2668        :
2669        CXXFLAGS="$CXXFLAGS -malign-double"
2670 else
2671        :
2945  
2673 fi
2946  
2675    # -fstrict-aliasing for gcc-2.95+
2947  
2948 < echo "$as_me:2677: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
2949 < echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
2950 < if test "${ac_fstrict_aliasing+set}" = set; then
2948 > ac_ext=f90
2949 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
2950 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
2952 > if test -n "$ac_tool_prefix"; then
2953 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2954 >  do
2955 >    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2956 > set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2957 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2958 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2959 > if test "${ac_cv_prog_F90+set}" = set; then
2960    echo $ECHO_N "(cached) $ECHO_C" >&6
2961   else
2962 <  echo 'void f(){}' > conftest.cpp
2963 < if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
2684 <        ac_fstrict_aliasing=yes
2962 >  if test -n "$F90"; then
2963 >  ac_cv_prog_F90="$F90" # Let the user override the test.
2964   else
2965 <        ac_fstrict_aliasing=no
2966 < fi
2967 < rm -f conftest*
2965 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 > for as_dir in $PATH
2967 > do
2968 >  IFS=$as_save_IFS
2969 >  test -z "$as_dir" && as_dir=.
2970 >  for ac_exec_ext in '' $ac_executable_extensions; do
2971 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2972 >    ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
2973 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 >    break 2
2975 >  fi
2976 > done
2977 > done
2978  
2979   fi
2980 < echo "$as_me:2691: result: $ac_fstrict_aliasing" >&5
2981 < echo "${ECHO_T}$ac_fstrict_aliasing" >&6
2982 < if test "$ac_fstrict_aliasing" = yes; then
2980 > fi
2981 > F90=$ac_cv_prog_F90
2982 > if test -n "$F90"; then
2983 >  echo "$as_me:$LINENO: result: $F90" >&5
2984 > echo "${ECHO_T}$F90" >&6
2985 > else
2986 >  echo "$as_me:$LINENO: result: no" >&5
2987 > echo "${ECHO_T}no" >&6
2988 > fi
2989 >
2990 >    test -n "$F90" && break
2991 >  done
2992 > fi
2993 > if test -z "$F90"; then
2994 >  ac_ct_F90=$F90
2995 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2996 > do
2997 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
2998 > set dummy $ac_prog; ac_word=$2
2999 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3000 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3001 > if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3002 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3003 > else
3004 >  if test -n "$ac_ct_F90"; then
3005 >  ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3006 > else
3007 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 > for as_dir in $PATH
3009 > do
3010 >  IFS=$as_save_IFS
3011 >  test -z "$as_dir" && as_dir=.
3012 >  for ac_exec_ext in '' $ac_executable_extensions; do
3013 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3014 >    ac_cv_prog_ac_ct_F90="$ac_prog"
3015 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 >    break 2
3017 >  fi
3018 > done
3019 > done
3020 >
3021 > fi
3022 > fi
3023 > ac_ct_F90=$ac_cv_prog_ac_ct_F90
3024 > if test -n "$ac_ct_F90"; then
3025 >  echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3026 > echo "${ECHO_T}$ac_ct_F90" >&6
3027 > else
3028 >  echo "$as_me:$LINENO: result: no" >&5
3029 > echo "${ECHO_T}no" >&6
3030 > fi
3031 >
3032 >  test -n "$ac_ct_F90" && break
3033 > done
3034 >
3035 >  F90=$ac_ct_F90
3036 > fi
3037 >
3038 >
3039 > # If we don't use `.F90' as extension, the preprocessor is not run on the
3040 > # input file.
3041 > ac_save_ext=$ac_ext
3042 > ac_ext=F90
3043 > echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3044 > echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3045 > if test "${ac_cv_f90_compiler_gnu+set}" = set; then
3046 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3047 > else
3048 >  cat >conftest.$ac_ext <<_ACEOF
3049 >
3050 > program main
3051 >
3052 > #ifndef __GNUC__
3053 >       choke me
3054 > #endif
3055 >
3056 > end program main
3057 >
3058 > _ACEOF
3059 > rm -f conftest.$ac_objext
3060 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3061 >  (eval $ac_compile) 2>&5
3062 >  ac_status=$?
3063 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 >  (exit $ac_status); } &&
3065 >         { ac_try='test -s conftest.$ac_objext'
3066 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067 >  (eval $ac_try) 2>&5
3068 >  ac_status=$?
3069 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 >  (exit $ac_status); }; }; then
3071 >  ac_compiler_gnu=yes
3072 > else
3073 >  echo "$as_me: failed program was:" >&5
3074 > sed 's/^/| /' conftest.$ac_ext >&5
3075 >
3076 > ac_compiler_gnu=no
3077 > fi
3078 > rm -f conftest.$ac_objext conftest.$ac_ext
3079 > ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3080 >
3081 > fi
3082 > echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3083 > echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3084 > ac_ext=$ac_save_ext
3085 > G95=`test $ac_compiler_gnu = yes && echo yes`
3086 > ac_ext=c
3087 > ac_cpp='$CPP $CPPFLAGS'
3088 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091 >
3092 >
3093 >
3094 >
3095 >
3096 > # Try to determine native compiler flags that allow us to use F90 suffix
3097 > # for preprocessed f90 source.
3098 >
3099 > if test "$ac_test_PREPFLAG" != "set"; then
3100 >  PREPFLAG=""
3101 >  case "${host_cpu}-${host_os}" in
3102 >
3103 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3104 >                    PREPFLAG="-fpp1 "
3105 >                fi;;
3106 >  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3107 >                    PREPFLAG="-qsuffix=cpp=F90 "
3108 >                fi;;
3109 >  *darwin*)
3110 >        if test "$F90" = f90 -o "$F90" = xlf90; then
3111 >                PREPFLAG="-qsuffix=cpp=F90 "
3112 >        fi;;
3113 >  esac
3114 >
3115 >  if test -z "$PREPFLAG"; then
3116 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3117 > echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3118 >        PREPFLAG=""
3119 >  fi
3120 >
3121 >  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3122 > echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3123 >
3124 >
3125 >  ac_ext=f90
3126 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3127 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3129 >
3130 >  ac_save_ext=$ac_ext
3131 >  ac_ext=F90
3132 >  ac_save_F90FLAGS=$F90FLAGS
3133 >
3134 >  if test "$PREPFLAG"; then
3135 >  F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3136 > fi
3137 >
3138 >    cat >conftest.$ac_ext <<_ACEOF
3139 >
3140 >
3141 > program main
3142 >
3143 >  integer :: i
3144 >  i = 1
3145 >
3146 >
3147 > end program main
3148 >
3149 > _ACEOF
3150 > rm -f conftest.$ac_objext
3151 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152 >  (eval $ac_compile) 2>&5
3153 >  ac_status=$?
3154 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 >  (exit $ac_status); } &&
3156 >         { ac_try='test -s conftest.$ac_objext'
3157 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 >  (eval $ac_try) 2>&5
3159 >  ac_status=$?
3160 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 >  (exit $ac_status); }; }; then
3162 >  prepflagworks=1
3163 > else
3164 >  echo "$as_me: failed program was:" >&5
3165 > sed 's/^/| /' conftest.$ac_ext >&5
3166 >
3167 > prepflagworks=0
3168 > fi
3169 > rm -f conftest.$ac_objext conftest.$ac_ext
3170 >
3171 >  F90FLAGS=$ac_save_F90FLAGS
3172 >  ac_ext=$ac_save_ext
3173 >  ac_ext=c
3174 > ac_cpp='$CPP $CPPFLAGS'
3175 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178 >
3179 >
3180 >  if test "$prepflagworks" = 1; then
3181 >    echo "$as_me:$LINENO: result: yes" >&5
3182 > echo "${ECHO_T}yes" >&6
3183 >
3184 >  else
3185 >    echo "$as_me:$LINENO: result: no" >&5
3186 > echo "${ECHO_T}no" >&6
3187 >    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3188 > echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3189 >   { (exit 1); exit 1; }; }
3190 >  fi
3191 > fi
3192 >
3193 >
3194 >
3195 >
3196 >
3197 > # Try to determine native compiler flags that allow us to use F90 suffix
3198 > # for preprocessed f90 source with -D type defines
3199 >
3200 > if test "$ac_test_PREPDEFFLAG" != "set"; then
3201 >  PREPDEFFLAG=""
3202 >  case "${host_cpu}-${host_os}" in
3203 >
3204 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3205 >                    PREPDEFFLAG=" "
3206 >                fi;;
3207 >  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3208 >                    PREPDEFFLAG="-WF,"
3209 >                fi;;
3210 >  *darwin*)
3211 >        if test "$F90" = f90 -o "$F90" = xlf90; then
3212 >                PREPDEFFLAG="-WF,"
3213 >        fi;;
3214 >  esac
3215 >
3216 >  if test -z "$PREPDEFFLAG"; then
3217 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3218 > echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3219 >        PREPDEFFLAG=" "
3220 >  fi
3221 >
3222 >  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3223 > echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3224 >
3225 >
3226 >  ac_ext=f90
3227 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3228 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3230 >
3231 >  ac_save_ext=$ac_ext
3232 >  ac_ext=F90
3233 >  ac_save_F90FLAGS=$F90FLAGS
3234 >
3235 >  if test "$PREPDEFFLAG"; then
3236 >  F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3237 > fi
3238 >
3239 >    cat >conftest.$ac_ext <<_ACEOF
3240 >
3241 >
3242 > program main
3243 >
3244 >  integer :: i
3245 > #ifdef TEST
3246 >  i = 1
3247 > #else
3248 >  choke me
3249 > #endif
3250 >
3251 >
3252 > end program main
3253 >
3254 > _ACEOF
3255 > rm -f conftest.$ac_objext
3256 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257 >  (eval $ac_compile) 2>&5
3258 >  ac_status=$?
3259 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 >  (exit $ac_status); } &&
3261 >         { ac_try='test -s conftest.$ac_objext'
3262 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263 >  (eval $ac_try) 2>&5
3264 >  ac_status=$?
3265 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 >  (exit $ac_status); }; }; then
3267 >  prepdefflagworks=1
3268 > else
3269 >  echo "$as_me: failed program was:" >&5
3270 > sed 's/^/| /' conftest.$ac_ext >&5
3271 >
3272 > prepdefflagworks=0
3273 > fi
3274 > rm -f conftest.$ac_objext conftest.$ac_ext
3275 >
3276 >  F90FLAGS=$ac_save_F90FLAGS
3277 >  ac_ext=$ac_save_ext
3278 >  ac_ext=c
3279 > ac_cpp='$CPP $CPPFLAGS'
3280 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283 >
3284 >
3285 >
3286 >  if test "$prepdefflagworks" = 1; then
3287 >    echo "$as_me:$LINENO: result: yes" >&5
3288 > echo "${ECHO_T}yes" >&6
3289 >
3290 >  else
3291 >    echo "$as_me:$LINENO: result: no" >&5
3292 > echo "${ECHO_T}no" >&6
3293 >    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3294 > echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3295 >   { (exit 1); exit 1; }; }
3296 >  fi
3297 > fi
3298 >
3299 > ac_ext=f90
3300 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3301 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3303 >
3304 >
3305 >
3306 > ac_ext=f90
3307 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3308 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3310 > echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3311 > echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3312 > if test "${ac_cv_prog_f90_v+set}" = set; then
3313 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3314 > else
3315 >
3316 > cat >conftest.$ac_ext <<_ACEOF
3317 >
3318 > program main
3319 >
3320 >
3321 > end program main
3322 >
3323 > _ACEOF
3324 > rm -f conftest.$ac_objext
3325 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3326 >  (eval $ac_compile) 2>&5
3327 >  ac_status=$?
3328 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 >  (exit $ac_status); } &&
3330 >         { ac_try='test -s conftest.$ac_objext'
3331 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 >  (eval $ac_try) 2>&5
3333 >  ac_status=$?
3334 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 >  (exit $ac_status); }; }; then
3336 >  ac_cv_prog_f90_v=
3337 > # Try some options frequently used verbose output
3338 > for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3339 >  ac_ext=f90
3340 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3341 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3343 >
3344 > cat >conftest.$ac_ext <<_ACEOF
3345 >
3346 > program main
3347 >
3348 >
3349 > end program main
3350 >
3351 > _ACEOF
3352 >
3353 > # Compile and link our simple test program by passing a flag (argument
3354 > # 1 to this macro) to the Fortran 90 compiler in order to get
3355 > # "verbose" output that we can then parse for the Fortran 90 linker
3356 > # flags.
3357 > ac_save_F90FLAGS=$F90FLAGS
3358 > F90FLAGS="$F90FLAGS $ac_verb"
3359 >
3360 > (eval echo $as_me:3360: \"$ac_link\") >&5
3361 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3362 > echo "$ac_f90_v_output" >&5
3363 > F90FLAGS=$ac_save_F90FLAGS
3364 >
3365 > rm -f conftest.*
3366 > ac_ext=f90
3367 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3368 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3370 >
3371 > # If we are using xlf then replace all the commas with spaces.
3372 > if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3373 >  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3374 > fi
3375 >
3376 > # If we are using Cray Fortran then delete quotes.
3377 > # Use "\"" instead of '"' for font-lock-mode.
3378 > # FIXME: a more general fix for quoted arguments with spaces?
3379 > if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3380 >  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3381 > fi
3382 >  # look for -l* and *.a constructs in the output
3383 >  for ac_arg in $ac_f90_v_output; do
3384 >     case $ac_arg in
3385 >        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3386 >          ac_cv_prog_f90_v=$ac_verb
3387 >          break 2 ;;
3388 >     esac
3389 >  done
3390 > done
3391 > if test -z "$ac_cv_prog_f90_v"; then
3392 >   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3393 > echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3394 > fi
3395 > else
3396 >  echo "$as_me: failed program was:" >&5
3397 > sed 's/^/| /' conftest.$ac_ext >&5
3398 >
3399 > { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3400 > echo "$as_me: WARNING: compilation failed" >&2;}
3401 > fi
3402 > rm -f conftest.$ac_objext conftest.$ac_ext
3403 >
3404 > fi
3405 > echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3406 > echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3407 > echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3408 > echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3409 > if test "${ac_cv_flibs+set}" = set; then
3410 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3411 > else
3412 >  if test "x$F90LIBS" != "x"; then
3413 >  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3414 > else
3415 >
3416 > ac_ext=f90
3417 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3418 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3420 >
3421 > cat >conftest.$ac_ext <<_ACEOF
3422 >
3423 > program main
3424 >
3425 >
3426 > end program main
3427 >
3428 > _ACEOF
3429 >
3430 > # Compile and link our simple test program by passing a flag (argument
3431 > # 1 to this macro) to the Fortran 90 compiler in order to get
3432 > # "verbose" output that we can then parse for the Fortran 90 linker
3433 > # flags.
3434 > ac_save_F90FLAGS=$F90FLAGS
3435 > F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3436 >
3437 > (eval echo $as_me:3437: \"$ac_link\") >&5
3438 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3439 > echo "$ac_f90_v_output" >&5
3440 > F90FLAGS=$ac_save_F90FLAGS
3441 >
3442 > rm -f conftest.*
3443 > ac_ext=f90
3444 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3445 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3447 >
3448 > # If we are using xlf then replace all the commas with spaces.
3449 > if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3450 >  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3451 > fi
3452 >
3453 > # If we are using Cray Fortran then delete quotes.
3454 > # Use "\"" instead of '"' for font-lock-mode.
3455 > # FIXME: a more general fix for quoted arguments with spaces?
3456 > if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3457 >  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3458 > fi
3459 >
3460 > ac_cv_f90libs=
3461 >
3462 > # Save positional arguments (if any)
3463 > ac_save_positional="$@"
3464 >
3465 > set X $ac_f90_v_output
3466 > while test $# != 1; do
3467 >  shift
3468 >  ac_arg=$1
3469 >  case $ac_arg in
3470 >        [\\/]*.a | ?:[\\/]*.a)
3471 >            ac_exists=false
3472 >  for ac_i in $ac_cv_f90libs; do
3473 >    if test x"$ac_arg" = x"$ac_i"; then
3474 >      ac_exists=true
3475 >      break
3476 >    fi
3477 >  done
3478 >
3479 >  if test x"$ac_exists" = xtrue; then
3480 >  :
3481 > else
3482 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3483 > fi
3484 >
3485 >          ;;
3486 >        -bI:*)
3487 >            ac_exists=false
3488 >  for ac_i in $ac_cv_f90libs; do
3489 >    if test x"$ac_arg" = x"$ac_i"; then
3490 >      ac_exists=true
3491 >      break
3492 >    fi
3493 >  done
3494 >
3495 >  if test x"$ac_exists" = xtrue; then
3496 >  :
3497 > else
3498 >  if test "$ac_compiler_gnu" = yes; then
3499 >  for ac_link_opt in $ac_arg; do
3500 >    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3501 >  done
3502 > else
3503 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3504 > fi
3505 > fi
3506 >
3507 >          ;;
3508 >          # Ignore these flags.
3509 >        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
3510 >          ;;
3511 >        -lkernel32)
3512 >          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3513 >          ;;
3514 >        -[LRuY])
3515 >          # These flags, when seen by themselves, take an argument.
3516 >          # We remove the space between option and argument and re-iterate
3517 >          # unless we find an empty arg or a new option (starting with -)
3518 >          case $2 in
3519 >             "" | -*);;
3520 >             *)
3521 >                ac_arg="$ac_arg$2"
3522 >
3523 >                shift; shift
3524 >                set X $ac_arg "$@"
3525 >                ;;
3526 >          esac
3527 >          ;;
3528 >        -YP,*)
3529 >          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3530 >              ac_exists=false
3531 >  for ac_i in $ac_cv_f90libs; do
3532 >    if test x"$ac_j" = x"$ac_i"; then
3533 >      ac_exists=true
3534 >      break
3535 >    fi
3536 >  done
3537 >
3538 >  if test x"$ac_exists" = xtrue; then
3539 >  :
3540 > else
3541 >  ac_arg="$ac_arg $ac_j"
3542 >                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3543 > fi
3544 >
3545 >          done
3546 >          ;;
3547 >        -[lLR]*)
3548 >            ac_exists=false
3549 >  for ac_i in $ac_cv_f90libs; do
3550 >    if test x"$ac_arg" = x"$ac_i"; then
3551 >      ac_exists=true
3552 >      break
3553 >    fi
3554 >  done
3555 >
3556 >  if test x"$ac_exists" = xtrue; then
3557 >  :
3558 > else
3559 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3560 > fi
3561 >
3562 >          ;;
3563 >          # Ignore everything else.
3564 >  esac
3565 > done
3566 > # restore positional arguments
3567 > set X $ac_save_positional; shift
3568 >
3569 > # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
3570 > # then we insist that the "run path" must be an absolute path (i.e. it
3571 > # must begin with a "/").
3572 > case `(uname -sr) 2>/dev/null` in
3573 >   "SunOS 5"*)
3574 >      ac_ld_run_path=`echo $ac_f90_v_output |
3575 >                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3576 >      test "x$ac_ld_run_path" != x &&
3577 >
3578 >        if test "$ac_compiler_gnu" = yes; then
3579 >  for ac_link_opt in $ac_ld_run_path; do
3580 >    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3581 >  done
3582 > else
3583 >  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
3584 > fi
3585 >      ;;
3586 > esac
3587 > fi # test "x$F90LIBS" = "x"
3588 >
3589 > fi
3590 > echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
3591 > echo "${ECHO_T}$ac_cv_flibs" >&6
3592 > F90LIBS="$ac_cv_f90libs"
3593 >
3594 > ac_ext=f90
3595 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3596 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3598 >
3599 >
3600 > echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
3601 > echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
3602 > if test "${ac_cv_f90_mangling+set}" = set; then
3603 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3604 > else
3605 >  ac_ext=f90
3606 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3607 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3609 > cat >conftest.$ac_ext <<_ACEOF
3610 > subroutine foobar()
3611 > return
3612 > end
3613 > subroutine foo_bar()
3614 > return
3615 > end
3616 > _ACEOF
3617 > rm -f conftest.$ac_objext
3618 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3619 >  (eval $ac_compile) 2>&5
3620 >  ac_status=$?
3621 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 >  (exit $ac_status); } &&
3623 >         { ac_try='test -s conftest.$ac_objext'
3624 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 >  (eval $ac_try) 2>&5
3626 >  ac_status=$?
3627 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 >  (exit $ac_status); }; }; then
3629 >  mv conftest.$ac_objext cf90_test.$ac_objext
3630 >
3631 >  ac_ext=c
3632 > ac_cpp='$CPP $CPPFLAGS'
3633 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 >
3637 >  ac_save_LIBS=$LIBS
3638 >  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
3639 >
3640 >  ac_success=no
3641 >  for ac_foobar in foobar FOOBAR; do
3642 >    for ac_underscore in "" "_"; do
3643 >      ac_func="$ac_foobar$ac_underscore"
3644 >      cat >conftest.$ac_ext <<_ACEOF
3645 > #line $LINENO "configure"
3646 > /* confdefs.h.  */
3647 > _ACEOF
3648 > cat confdefs.h >>conftest.$ac_ext
3649 > cat >>conftest.$ac_ext <<_ACEOF
3650 > /* end confdefs.h.  */
3651 >
3652 > /* Override any gcc2 internal prototype to avoid an error.  */
3653 > #ifdef __cplusplus
3654 > extern "C"
3655 > #endif
3656 > /* We use char because int might match the return type of a gcc2
3657 >   builtin and then its argument prototype would still apply.  */
3658 > char $ac_func ();
3659 > int
3660 > main ()
3661 > {
3662 > $ac_func ();
3663 >  ;
3664 >  return 0;
3665 > }
3666 > _ACEOF
3667 > rm -f conftest.$ac_objext conftest$ac_exeext
3668 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3669 >  (eval $ac_link) 2>&5
3670 >  ac_status=$?
3671 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 >  (exit $ac_status); } &&
3673 >         { ac_try='test -s conftest$ac_exeext'
3674 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 >  (eval $ac_try) 2>&5
3676 >  ac_status=$?
3677 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 >  (exit $ac_status); }; }; then
3679 >  ac_success=yes; break 2
3680 > else
3681 >  echo "$as_me: failed program was:" >&5
3682 > sed 's/^/| /' conftest.$ac_ext >&5
3683 >
3684 > fi
3685 > rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3686 >    done
3687 >  done
3688 >
3689 >  if test "$ac_success" = "yes"; then
3690 >     case $ac_foobar in
3691 >        foobar)
3692 >           ac_case=lower
3693 >           ac_foo_bar=foo_bar
3694 >           ;;
3695 >        FOOBAR)
3696 >           ac_case=upper
3697 >           ac_foo_bar=FOO_BAR
3698 >           ;;
3699 >     esac
3700 >
3701 >     ac_success_extra=no
3702 >     for ac_extra in "" "_"; do
3703 >        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3704 >
3705 >        cat >conftest.$ac_ext <<_ACEOF
3706 > #line $LINENO "configure"
3707 > /* confdefs.h.  */
3708 > _ACEOF
3709 > cat confdefs.h >>conftest.$ac_ext
3710 > cat >>conftest.$ac_ext <<_ACEOF
3711 > /* end confdefs.h.  */
3712 >
3713 > /* Override any gcc2 internal prototype to avoid an error.  */
3714 > #ifdef __cplusplus
3715 > extern "C"
3716 > #endif
3717 > /* We use char because int might match the return type of a gcc2
3718 >   builtin and then its argument prototype would still apply.  */
3719 > char $ac_func ();
3720 > int
3721 > main ()
3722 > {
3723 > $ac_func ();
3724 >  ;
3725 >  return 0;
3726 > }
3727 > _ACEOF
3728 > rm -f conftest.$ac_objext conftest$ac_exeext
3729 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3730 >  (eval $ac_link) 2>&5
3731 >  ac_status=$?
3732 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 >  (exit $ac_status); } &&
3734 >         { ac_try='test -s conftest$ac_exeext'
3735 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736 >  (eval $ac_try) 2>&5
3737 >  ac_status=$?
3738 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 >  (exit $ac_status); }; }; then
3740 >  ac_success_extra=yes; break
3741 > else
3742 >  echo "$as_me: failed program was:" >&5
3743 > sed 's/^/| /' conftest.$ac_ext >&5
3744 >
3745 > fi
3746 > rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3747 >     done
3748 >
3749 >     if test "$ac_success_extra" = "yes"; then
3750 >        ac_cv_f90_mangling="$ac_case case"
3751 >        if test -z "$ac_underscore"; then
3752 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
3753 >        else
3754 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3755 >
3756 >        fi
3757 >        if test -z "$ac_extra"; then
3758 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
3759 >        else
3760 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
3761 >        fi
3762 >      else
3763 >        ac_cv_f90_mangling="unknown"
3764 >      fi
3765 >  else
3766 >     ac_cv_f90_mangling="unknown"
3767 >
3768 >  fi
3769 >
3770 >  LIBS=$ac_save_LIBS
3771 >  ac_ext=f90
3772 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3773 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3775 >  rm -f cf90_test* conftest*
3776 > else
3777 >  echo "$as_me: failed program was:" >&5
3778 > sed 's/^/| /' conftest.$ac_ext >&5
3779 >
3780 > fi
3781 > rm -f conftest.$ac_objext conftest.$ac_ext
3782 > ac_ext=f90
3783 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3784 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3786 >
3787 > fi
3788 > echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
3789 > echo "${ECHO_T}$ac_cv_f90_mangling" >&6
3790 >
3791 >
3792 >
3793 > case $ac_cv_f90_mangling in
3794 >  "lower case, no underscore, no extra underscore")
3795 >          cat >>confdefs.h <<\_ACEOF
3796 > #define F90_FUNC(name,NAME) name
3797 > _ACEOF
3798 >
3799 >          cat >>confdefs.h <<\_ACEOF
3800 > #define F90_FUNC_(name,NAME) name
3801 > _ACEOF
3802 > ;;
3803 >  "lower case, no underscore, extra underscore")
3804 >          cat >>confdefs.h <<\_ACEOF
3805 > #define F90_FUNC(name,NAME) name
3806 > _ACEOF
3807 >
3808 >          cat >>confdefs.h <<\_ACEOF
3809 > #define F90_FUNC_(name,NAME) name ## _
3810 > _ACEOF
3811 > ;;
3812 >  "lower case, underscore, no extra underscore")
3813 >          cat >>confdefs.h <<\_ACEOF
3814 > #define F90_FUNC(name,NAME) name ## _
3815 > _ACEOF
3816 >
3817 >          cat >>confdefs.h <<\_ACEOF
3818 > #define F90_FUNC_(name,NAME) name ## _
3819 > _ACEOF
3820 > ;;
3821 >  "lower case, underscore, extra underscore")
3822 >          cat >>confdefs.h <<\_ACEOF
3823 > #define F90_FUNC(name,NAME) name ## _
3824 > _ACEOF
3825 >
3826 >          cat >>confdefs.h <<\_ACEOF
3827 > #define F90_FUNC_(name,NAME) name ## __
3828 > _ACEOF
3829 > ;;
3830 >  "upper case, no underscore, no extra underscore")
3831 >          cat >>confdefs.h <<\_ACEOF
3832 > #define F90_FUNC(name,NAME) NAME
3833 > _ACEOF
3834 >
3835 >          cat >>confdefs.h <<\_ACEOF
3836 > #define F90_FUNC_(name,NAME) NAME
3837 > _ACEOF
3838 > ;;
3839 >  "upper case, no underscore, extra underscore")
3840 >          cat >>confdefs.h <<\_ACEOF
3841 > #define F90_FUNC(name,NAME) NAME
3842 > _ACEOF
3843 >
3844 >          cat >>confdefs.h <<\_ACEOF
3845 > #define F90_FUNC_(name,NAME) NAME ## _
3846 > _ACEOF
3847 > ;;
3848 >  "upper case, underscore, no extra underscore")
3849 >          cat >>confdefs.h <<\_ACEOF
3850 > #define F90_FUNC(name,NAME) NAME ## _
3851 > _ACEOF
3852 >
3853 >          cat >>confdefs.h <<\_ACEOF
3854 > #define F90_FUNC_(name,NAME) NAME ## _
3855 > _ACEOF
3856 > ;;
3857 >  "upper case, underscore, extra underscore")
3858 >          cat >>confdefs.h <<\_ACEOF
3859 > #define F90_FUNC(name,NAME) NAME ## _
3860 > _ACEOF
3861 >
3862 >          cat >>confdefs.h <<\_ACEOF
3863 > #define F90_FUNC_(name,NAME) NAME ## __
3864 > _ACEOF
3865 > ;;
3866 >  *)
3867 >          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
3868 > echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
3869 >          ;;
3870 > esac
3871 >
3872 >
3873 >
3874 >
3875 >
3876 > echo "$as_me:$LINENO: checking for module suffix" >&5
3877 > echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
3878 > rm -f conftest*
3879 > # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
3880 > rm -f work*
3881 > cat >conftest.f90 <<EOF
3882 >        module conftest
3883 >        integer n
3884 >        parameter (n=1)
3885 >        end module conftest
3886 > EOF
3887 > # SGI and absoft compilers generates module name in upper case!
3888 > testname="conftest"
3889 > modcase="lower"
3890 > if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
3891 >    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
3892 >    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
3893 >    if test -z "$MOD" ; then
3894 >        MOD=`ls CONFTEST* 2>/dev/null \
3895 >                | grep -v CONFTEST.f | grep -v CONFTEST.o`
3896 >        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
3897 >        if test -n "$MOD" ; then
3898 >            testname="CONFTEST"
3899 >            modcase="upper"
3900 >        fi
3901 >    fi
3902 >    if test -z "$MOD" ; then
3903 >        echo "$as_me:$LINENO: result: unknown" >&5
3904 > echo "${ECHO_T}unknown" >&6
3905 >        # Use mod if we can't figure it out
3906 >        MOD="mod"
3907 >    else
3908 >        echo "$as_me:$LINENO: result: $MOD" >&5
3909 > echo "${ECHO_T}$MOD" >&6
3910 >    fi
3911 >    if test -s work.pcl ; then
3912 >        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
3913 > echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
3914 >    fi
3915 > else
3916 >    echo "$as_me:$LINENO: result: unknown" >&5
3917 > echo "${ECHO_T}unknown" >&6
3918 > fi
3919 >
3920 >
3921 >
3922 >
3923 >
3924 > # Check for module include path (some use -I, some (Solaris) use -M, some
3925 > # (absoft) use -p).
3926 > # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
3927 > # specified, work.pcl and work.pc are created.  However, if you specify
3928 > # a file, it must contain a the name of a file ending in .pc .  Ugh!
3929 > # Use the module made above
3930 > echo "$as_me:$LINENO: checking for module directory path flag" >&5
3931 > echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
3932 > rm -f conftest*
3933 > # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
3934 > rm -f work*
3935 > cat >conftest.f90 <<EOF
3936 >        module conftest
3937 >        integer n
3938 >        parameter (n=1)
3939 >        end module conftest
3940 > EOF
3941 > # SGI and absoft compilers generates module name in upper case!
3942 > testname="conftest"
3943 > if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
3944 >   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
3945 >   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
3946 >   if test -n "$mod" ; then
3947 >      testname="CONFTEST"
3948 >   fi
3949 >   madedir=0
3950 >   if test ! -d conf ; then mkdir conf ; madedir=1; fi
3951 >   cp $testname.$MOD conf
3952 >   rm -f conftest* CONFTEST*
3953 >   cat >conftest1.f90 <<EOF
3954 >        program main
3955 >        use conftest
3956 >        print *, n
3957 >        end
3958 > EOF
3959 >   F90_WORK_FILES_ARG=""
3960 >   F90MODINCSPEC=""
3961 >   if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
3962 >       MODDIRFLAG="-I"
3963 >       F90MODINCSPEC="-I<dir>"
3964 >       echo "$as_me:$LINENO: result: -I" >&5
3965 > echo "${ECHO_T}-I" >&6
3966 >   elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
3967 >       MODDIRFLAG="-M"
3968 >       F90MODINCSPEC="-M<dir>"
3969 >       echo "$as_me:$LINENO: result: -M" >&5
3970 > echo "${ECHO_T}-M" >&6
3971 >   elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
3972 >       MODDIRFLAG="-p"
3973 >       F90MODINCSPEC="-p<dir>"
3974 >       echo "$as_me:$LINENO: result: -p" >&5
3975 > echo "${ECHO_T}-p" >&6
3976 >   elif test -s work.pc ; then
3977 >        cp work.pc conf/mpimod.pc
3978 >        echo "mpimod.pc" > conf/mpimod.pcl
3979 >        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
3980 >        if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
3981 >            MODDIRFLAG='-cl,mpimod.pcl'
3982 >            echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
3983 > echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
3984 >            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
3985 >            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
3986 >
3987 >        else
3988 >            # The version of the Intel compiler that I have refuses to let
3989 >            # you put the "work catalog" list anywhere but the current
3990 >            # directory. For example, you cannot in
3991 >         :
3992 >        fi
3993 >   fi
3994 >   if test -z "MODDIRFLAG" ; then
3995 >       echo "$as_me:$LINENO: result: unknown" >&5
3996 > echo "${ECHO_T}unknown" >&6
3997 >   fi
3998 >
3999 >
4000 >   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4001 >   if test $madedir = 1 ; then rmdir conf ; fi
4002 > fi
4003 >
4004 >
4005 >
4006 >
4007 > case $debug in
4008 >  1)
4009 >     ;;
4010 >  *)
4011 >
4012 >
4013 >
4014 >
4015 >
4016 >
4017 > echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
4018 > echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
4019 > if test "${ac_cv_prog_really_gcc+set}" = set; then
4020 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4021 > else
4022 >
4023 > cat > conftest.c <<EOF
4024 > #ifdef __GNUC__
4025 >  #ifndef __INTEL_COMPILER
4026 >     yes;
4027 >  #endif
4028 > #endif
4029 > EOF
4030 > if { ac_try='${CC-cc} -E conftest.c'
4031 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 >  (eval $ac_try) 2>&5
4033 >  ac_status=$?
4034 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4036 >  ac_cv_prog_really_gcc=yes
4037 > else
4038 >  ac_cv_prog_really_gcc=no
4039 > fi
4040 >
4041 > fi
4042 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
4043 > echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
4044 > if test "$ac_cv_prog_really_gcc" = yes; then
4045          :
4046 <        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
4046 >
4047 > else
4048 >        :
4049 >
4050 > fi
4051 >
4052 >
4053 > # Try to determine "good" native compiler flags if none specified on command
4054 > # line
4055 > if test "$ac_test_CFLAGS" != "set"; then
4056 >  CFLAGS=""
4057 >  case "${host_cpu}-${host_os}" in
4058 >
4059 >  *linux*) if test "$CC" = icc; then
4060 >                    CFLAGS="-O"
4061 >                fi;;
4062 >  sparc-solaris2*) if test "$CC" = cc; then
4063 >                    CFLAGS="-native -fast -xO5 -dalign"
4064 >                 fi;;
4065 >
4066 >  alpha*-osf*)  if test "$CC" = cc; then
4067 >                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
4068 >                fi;;
4069 >
4070 >  hppa*-hpux*)  if test "$CC" = cc; then
4071 >                    CFLAGS="-Ae +O3 +Oall"
4072 >                fi;;
4073 >
4074 >   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
4075 >                    CFLAGS="-O3 -qtune=auto -qansialias -w"
4076 >                fi;;
4077 >   powerpc*-aix*)
4078 >        if test "$CC" = cc -o "$CC" = xlc; then
4079 >                CFLAGS="-O3 -qtune=auto -qansialias -w"
4080 >                echo "*******************************************************"
4081 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4082 >                echo "*  recommended that you use                           *"
4083 >                echo "*                                                     *"
4084 >                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4085 >                echo "*                                 ^^^                 *"
4086 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4087 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4088 >                echo "*******************************************************"
4089 >        fi;;
4090 >   *darwin*)
4091 >        if test "$CC" = xlc -o "$CC" = cc; then
4092 >                CFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4093 >        fi;;
4094 >  esac
4095 >
4096 >  # use default flags for gcc on all systems
4097 >  if test $ac_cv_prog_really_gcc = yes; then
4098 >     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4099 >  fi
4100 >
4101 >  # test for gcc-specific flags:
4102 >  if test $ac_cv_prog_really_gcc = yes; then
4103 >    # -malign-double for x86 systems
4104 >
4105 >
4106 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
4107 > echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
4108 > if test "${ac_align_double+set}" = set; then
4109 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4110   else
4111 +  echo 'void f(){}' > conftest.c
4112 + if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
4113 +        ac_align_double=yes
4114 + else
4115 +        ac_align_double=no
4116 + fi
4117 + rm -f conftest*
4118 +
4119 + fi
4120 + echo "$as_me:$LINENO: result: $ac_align_double" >&5
4121 + echo "${ECHO_T}$ac_align_double" >&6
4122 + if test "$ac_align_double" = yes; then
4123          :
4124 +        CFLAGS="$CFLAGS -malign-double"
4125 + else
4126 +        :
4127  
4128   fi
4129  
4130 +    # -fstrict-aliasing for gcc-2.95+
4131 +
4132 +
4133 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
4134 + echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
4135 + if test "${ac_fstrict_aliasing+set}" = set; then
4136 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4137 + else
4138 +  echo 'void f(){}' > conftest.c
4139 + if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
4140 +        ac_fstrict_aliasing=yes
4141 + else
4142 +        ac_fstrict_aliasing=no
4143 + fi
4144 + rm -f conftest*
4145 +
4146 + fi
4147 + echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4148 + echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4149 + if test "$ac_fstrict_aliasing" = yes; then
4150 +        :
4151 +        CFLAGS="$CFLAGS -fstrict-aliasing"
4152 + else
4153 +        :
4154 +
4155 + fi
4156 +
4157    fi
4158  
4159    CPU_FLAGS=""
4160 <  if test "$GCC" = "yes"; then
4160 >  if test $ac_cv_prog_really_gcc = yes; then
4161                    case "${host_cpu}" in
4162            i586*)
4163  
4164 < echo "$as_me:2708: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4164 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4165   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4166   if test "${ac_cpu_pentium+set}" = set; then
4167    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2719 | Line 4175 | fi
4175   rm -f conftest*
4176  
4177   fi
4178 < echo "$as_me:2722: result: $ac_cpu_pentium" >&5
4178 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4179   echo "${ECHO_T}$ac_cpu_pentium" >&6
4180   if test "$ac_cpu_pentium" = yes; then
4181          :
# Line 2727 | Line 4183 | else
4183   else
4184          :
4185  
4186 < echo "$as_me:2730: checking whether ${CXX-c++} accepts -mpentium" >&5
4187 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
4186 >
4187 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
4188 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
4189   if test "${ac_pentium+set}" = set; then
4190    echo $ECHO_N "(cached) $ECHO_C" >&6
4191   else
4192 <  echo 'void f(){}' > conftest.cpp
4193 < if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
4192 >  echo 'void f(){}' > conftest.c
4193 > if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
4194          ac_pentium=yes
4195   else
4196          ac_pentium=no
# Line 2741 | Line 4198 | fi
4198   rm -f conftest*
4199  
4200   fi
4201 < echo "$as_me:2744: result: $ac_pentium" >&5
4201 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4202   echo "${ECHO_T}$ac_pentium" >&6
4203   if test "$ac_pentium" = yes; then
4204          :
# Line 2756 | Line 4213 | fi
4213                    ;;
4214            i686*)
4215  
4216 < echo "$as_me:2759: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4217 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4216 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
4217 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4218   if test "${ac_cpu_pentiumpro+set}" = set; then
4219    echo $ECHO_N "(cached) $ECHO_C" >&6
4220   else
4221 <  echo 'void f(){}' > conftest.cpp
4222 < if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
4221 >  echo 'void f(){}' > conftest.c
4222 > if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
4223          ac_cpu_pentiumpro=yes
4224   else
4225          ac_cpu_pentiumpro=no
# Line 2770 | Line 4227 | fi
4227   rm -f conftest*
4228  
4229   fi
4230 < echo "$as_me:2773: result: $ac_cpu_pentiumpro" >&5
4230 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4231   echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4232   if test "$ac_cpu_pentiumpro" = yes; then
4233          :
# Line 2778 | Line 4235 | else
4235   else
4236          :
4237  
4238 < echo "$as_me:2781: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4239 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
4238 >
4239 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
4240 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
4241   if test "${ac_pentiumpro+set}" = set; then
4242    echo $ECHO_N "(cached) $ECHO_C" >&6
4243   else
4244 <  echo 'void f(){}' > conftest.cpp
4245 < if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
4244 >  echo 'void f(){}' > conftest.c
4245 > if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
4246          ac_pentiumpro=yes
4247   else
4248          ac_pentiumpro=no
# Line 2792 | Line 4250 | fi
4250   rm -f conftest*
4251  
4252   fi
4253 < echo "$as_me:2795: result: $ac_pentiumpro" >&5
4253 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4254   echo "${ECHO_T}$ac_pentiumpro" >&6
4255   if test "$ac_pentiumpro" = yes; then
4256          :
# Line 2810 | Line 4268 | fi
4268                  is60x=`echo $cputype | egrep "^600-9e?$"`
4269                  if test -n "$is60x"; then
4270  
4271 < echo "$as_me:2813: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4272 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
4271 >
4272 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
4273 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
4274   if test "${ac_m_cpu_60x+set}" = set; then
4275    echo $ECHO_N "(cached) $ECHO_C" >&6
4276   else
4277 <  echo 'void f(){}' > conftest.cpp
4278 < if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
4277 >  echo 'void f(){}' > conftest.c
4278 > if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
4279          ac_m_cpu_60x=yes
4280   else
4281          ac_m_cpu_60x=no
# Line 2824 | Line 4283 | fi
4283   rm -f conftest*
4284  
4285   fi
4286 < echo "$as_me:2827: result: $ac_m_cpu_60x" >&5
4286 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4287   echo "${ECHO_T}$ac_m_cpu_60x" >&6
4288   if test "$ac_m_cpu_60x" = yes; then
4289          :
# Line 2836 | Line 4295 | fi
4295  
4296                  elif test "$cputype" = 750; then
4297  
4298 < echo "$as_me:2839: checking whether we are using gcc 2.95 or later" >&5
4298 >
4299 > echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
4300   echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4301   if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4302    echo $ECHO_N "(cached) $ECHO_C" >&6
4303   else
4304  
4305   cat > conftest.c <<EOF
4306 < #ifdef __GNUC__
4306 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4307   #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4308       yes;
4309   #  endif
4310   #endif
4311   EOF
4312   if { ac_try='${CC-cc} -E conftest.c'
4313 <  { (eval echo "$as_me:2853: \"$ac_try\"") >&5
4313 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314    (eval $ac_try) 2>&5
4315    ac_status=$?
4316 <  echo "$as_me:2856: \$? = $ac_status" >&5
4316 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317    (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4318    ac_cv_prog_gcc_2_95=yes
4319   else
# Line 2861 | Line 4321 | fi
4321   fi
4322  
4323   fi
4324 < echo "$as_me:2864: result: $ac_cv_prog_gcc_2_95" >&5
4324 > echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
4325   echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4326   if test "$ac_cv_prog_gcc_2_95" = yes; then
4327          :
4328  
4329 < echo "$as_me:2869: checking whether ${CXX-c++} accepts -mcpu=750" >&5
4330 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
4329 >
4330 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
4331 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
4332   if test "${ac_m_cpu_750+set}" = set; then
4333    echo $ECHO_N "(cached) $ECHO_C" >&6
4334   else
4335 <  echo 'void f(){}' > conftest.cpp
4336 < if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
4335 >  echo 'void f(){}' > conftest.c
4336 > if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
4337          ac_m_cpu_750=yes
4338   else
4339          ac_m_cpu_750=no
# Line 2880 | Line 4341 | fi
4341   rm -f conftest*
4342  
4343   fi
4344 < echo "$as_me:2883: result: $ac_m_cpu_750" >&5
4344 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4345   echo "${ECHO_T}$ac_m_cpu_750" >&6
4346   if test "$ac_m_cpu_750" = yes; then
4347          :
# Line 2898 | Line 4359 | fi
4359                  fi
4360                  if test -z "$CPU_FLAGS"; then
4361  
4362 < echo "$as_me:2901: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
4363 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
4362 >
4363 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
4364 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
4365   if test "${ac_m_cpu_powerpc+set}" = set; then
4366    echo $ECHO_N "(cached) $ECHO_C" >&6
4367   else
4368 <  echo 'void f(){}' > conftest.cpp
4369 < if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
4368 >  echo 'void f(){}' > conftest.c
4369 > if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
4370          ac_m_cpu_powerpc=yes
4371   else
4372          ac_m_cpu_powerpc=no
# Line 2912 | Line 4374 | fi
4374   rm -f conftest*
4375  
4376   fi
4377 < echo "$as_me:2915: result: $ac_m_cpu_powerpc" >&5
4377 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
4378   echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4379   if test "$ac_m_cpu_powerpc" = yes; then
4380          :
# Line 2925 | Line 4387 | fi
4387                  fi
4388                  if test -z "$CPU_FLAGS"; then
4389  
4390 < echo "$as_me:2928: checking whether ${CXX-c++} accepts -mpowerpc" >&5
4391 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
4390 >
4391 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
4392 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
4393   if test "${ac_m_powerpc+set}" = set; then
4394    echo $ECHO_N "(cached) $ECHO_C" >&6
4395   else
4396 <  echo 'void f(){}' > conftest.cpp
4397 < if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
4396 >  echo 'void f(){}' > conftest.c
4397 > if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
4398          ac_m_powerpc=yes
4399   else
4400          ac_m_powerpc=no
# Line 2939 | Line 4402 | fi
4402   rm -f conftest*
4403  
4404   fi
4405 < echo "$as_me:2942: result: $ac_m_powerpc" >&5
4405 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
4406   echo "${ECHO_T}$ac_m_powerpc" >&6
4407   if test "$ac_m_powerpc" = yes; then
4408          :
# Line 2954 | Line 4417 | fi
4417    fi
4418  
4419    if test -n "$CPU_FLAGS"; then
4420 <        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
4420 >        CFLAGS="$CFLAGS $CPU_FLAGS"
4421    fi
4422  
4423 <  if test -z "$CXXFLAGS"; then
4423 >  if test -z "$CFLAGS"; then
4424          echo ""
4425 <        echo "**********************************************************"
4426 <        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
4427 <        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
4428 <        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
4429 <        echo "**********************************************************"
4425 >        echo "********************************************************"
4426 >        echo "* WARNING: Don't know the best CFLAGS for this system  *"
4427 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4428 >        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
4429 >        echo "********************************************************"
4430          echo ""
4431 <        CXXFLAGS="-O3"
4431 >        CFLAGS="-O3"
4432    fi
4433  
4434 < echo "$as_me:2971: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
4435 < echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
4436 < if test "${ac_guessed_cxxflags+set}" = set; then
4434 >
4435 >
4436 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
4437 > echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
4438 > if test "${ac_guessed_cflags+set}" = set; then
4439    echo $ECHO_N "(cached) $ECHO_C" >&6
4440   else
4441 <  echo 'void f(){}' > conftest.cpp
4442 < if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
4443 <        ac_guessed_cxxflags=yes
4441 >  echo 'void f(){}' > conftest.c
4442 > if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
4443 >        ac_guessed_cflags=yes
4444   else
4445 <        ac_guessed_cxxflags=no
4445 >        ac_guessed_cflags=no
4446   fi
4447   rm -f conftest*
4448  
4449   fi
4450 < echo "$as_me:2985: result: $ac_guessed_cxxflags" >&5
4451 < echo "${ECHO_T}$ac_guessed_cxxflags" >&6
4452 < if test "$ac_guessed_cxxflags" = yes; then
4450 > echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
4451 > echo "${ECHO_T}$ac_guessed_cflags" >&6
4452 > if test "$ac_guessed_cflags" = yes; then
4453          :
4454  
4455   else
4456          :
4457  
4458          echo ""
4459 <        echo "**********************************************************"
4460 <        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
4461 <        echo "* your compiler.                                         *"
4462 <        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
4463 <        echo "**********************************************************"
4459 >        echo "********************************************************"
4460 >        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
4461 >        echo "* your compiler.                                       *"
4462 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4463 >        echo "********************************************************"
4464          echo ""
4465 <        CXXFLAGS=""
4465 >        CFLAGS=""
4466  
4467   fi
4468  
4469 +
4470   fi
4471  
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
4472  
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
4473  
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
4474  
3073 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
4475  
3084  test -n "$ac_ct_F90" && break
3085 done
4476  
3087  F90=$ac_ct_F90
3088 fi
4477  
4478 < # If we don't use `.F90' as extension, the preprocessor is not run on the
4479 < # input file.
4480 < 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
4478 > echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
4479 > echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
4480 > if test "${ac_cv_prog_really_gxx+set}" = set; then
4481    echo $ECHO_N "(cached) $ECHO_C" >&6
4482   else
3099  cat >conftest.$ac_ext <<_ACEOF
4483  
4484 < program main
4485 <
4486 < #ifndef __GNUC__
4487 <       choke me
4484 > cat > conftest.cpp <<EOF
4485 > #ifdef __GNUC__
4486 >  #ifndef __INTEL_COMPILER
4487 >     yes;
4488 >  #endif
4489   #endif
4490 <
4491 < end program main
4492 <
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
4490 > EOF
4491 > if { ac_try='${CXX-c++} -E conftest.cpp'
4492 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493    (eval $ac_try) 2>&5
4494    ac_status=$?
4495 <  echo "$as_me:3120: \$? = $ac_status" >&5
4496 <  (exit $ac_status); }; }; then
4497 <  ac_compiler_gnu=yes
4495 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4497 >  ac_cv_prog_really_gxx=yes
4498   else
4499 <  echo "$as_me: failed program was:" >&5
3125 < cat conftest.$ac_ext >&5
3126 < ac_compiler_gnu=no
4499 >  ac_cv_prog_really_gxx=no
4500   fi
3128 rm -f conftest.$ac_objext conftest.$ac_ext
3129 ac_cv_f90_compiler_gnu=$ac_compiler_gnu
4501  
4502   fi
4503 < echo "$as_me:3132: result: $ac_cv_f90_compiler_gnu" >&5
4504 < echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
4505 < ac_ext=$ac_save_ext
4506 < 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
4503 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
4504 > echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
4505 > if test "$ac_cv_prog_really_gxx" = yes; then
4506 >        :
4507  
4508 + else
4509 +        :
4510 +
4511 + fi
4512 +
4513 +
4514   # Try to determine "good" native compiler flags if none specified on command
4515   # line
4516 <
4517 < if test "$ac_test_F90FLAGS" != "set"; then
3146 <  F90FLAGS=""
4516 > if test "$ac_test_CXXFLAGS" != "set"; then
4517 >  CXXFLAGS=""
4518    case "${host_cpu}-${host_os}" in
4519  
4520 <  *linux*) if test "$F90" = ifc; then
4521 <                    F90FLAGS="-O"
4520 >  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
4521 >                    CXXFLAGS="-O"
4522                  fi;;
4523 <   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
4524 <                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
4523 >  sparc-solaris2*) if test "$CXX" = CC; then
4524 >                    CXXFLAGS="-native -fast -xO5 -dalign"
4525 >                 fi;;
4526 >   rs6000*-aix*)  if test "$CXX" = xlC; then
4527 >                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
4528                  fi;;
4529     powerpc*-aix*)
4530 <        if test "$F90" = f90 -o "$F90" = xlf90; then
4531 <                F90FLAGS="-O3 -qarch=ppc -qansialias -w"
4530 >        if test "$CXX" = xlC; then
4531 >                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
4532                  echo "*******************************************************"
4533                  echo "*  You have AIX on an unknown powerpc system.  It is  *"
4534                  echo "*  recommended that you use                           *"
4535                  echo "*                                                     *"
4536 <                echo "*  F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4536 >                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4537                  echo "*                                 ^^^                 *"
4538                  echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4539 <                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
4539 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4540                  echo "*******************************************************"
4541          fi;;
4542     *darwin*)
4543 <        if test "$F90" = f90 -o "$F90" = xlf90; then
4544 <                F90FLAGS="-O3 -qtune=auto -w"
3171 <                echo "*********************************************************"
3172 <                echo "*  You have Darwin on an unknown powerpc system.  It is *"
3173 <                echo "*  recommended that you use                             *"
3174 <                echo "*                                                       *"
3175 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
3176 <                echo "*                                 ^^^                   *"
3177 <                echo "*  where xxx is 601, 603, 604, or whatever kind of      *"
3178 <                echo "*  PowerPC CPU you have.   For more info, man xlf.      *"
3179 <                echo "*********************************************************"
4543 >        if test "$CXX" = xlc++; then
4544 >                CXXFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4545          fi;;
4546    esac
4547  
4548 <  if test -n "$CPU_FLAGS"; then
4549 <        F90FLAGS="$F90FLAGS $CPU_FLAGS"
4548 >  # use default flags for gcc on all systems
4549 >  if test $ac_cv_prog_really_gxx = yes; then
4550 >     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4551    fi
4552  
4553 <  if test -z "$F90FLAGS"; then
4554 <        echo ""
4555 <        echo "**********************************************************"
4556 <        echo "* WARNING: Don't know the best F90FLAGS for this system  *"
4557 <        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
4558 <        echo "* (otherwise, a default of F90FLAGS=-O3 will be used)    *"
4559 <        echo "**********************************************************"
4560 <        echo ""
4561 <        F90FLAGS="-O3"
4553 >  # test for gcc-specific flags:
4554 >  if test $ac_cv_prog_really_gxx = yes; then
4555 >    # -malign-double for x86 systems
4556 >
4557 >
4558 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
4559 > echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
4560 > if test "${ac_align_double+set}" = set; then
4561 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4562 > else
4563 >  echo 'void f(){}' > conftest.cpp
4564 > if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
4565 >        ac_align_double=yes
4566 > else
4567 >        ac_align_double=no
4568 > fi
4569 > rm -f conftest*
4570 >
4571 > fi
4572 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4573 > echo "${ECHO_T}$ac_align_double" >&6
4574 > if test "$ac_align_double" = yes; then
4575 >        :
4576 >        CXXFLAGS="$CXXFLAGS -malign-double"
4577 > else
4578 >        :
4579 >
4580 > fi
4581 >
4582 >    # -fstrict-aliasing for gcc-2.95+
4583 >
4584 >
4585 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
4586 > echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
4587 > if test "${ac_fstrict_aliasing+set}" = set; then
4588 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4589 > else
4590 >  echo 'void f(){}' > conftest.cpp
4591 > if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
4592 >        ac_fstrict_aliasing=yes
4593 > else
4594 >        ac_fstrict_aliasing=no
4595 > fi
4596 > rm -f conftest*
4597 >
4598 > fi
4599 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4600 > echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4601 > if test "$ac_fstrict_aliasing" = yes; then
4602 >        :
4603 >        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
4604 > else
4605 >        :
4606 >
4607 > fi
4608 >
4609    fi
4610  
4611 < echo "$as_me:3198: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
4612 < echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
4613 < if test "${ac_guessed_f90flags+set}" = set; then
4611 >  CPU_FLAGS=""
4612 >  if test $ac_cv_prog_really_gxx = yes; then
4613 >                  case "${host_cpu}" in
4614 >          i586*)
4615 >
4616 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
4617 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
4618 > if test "${ac_cpu_pentium+set}" = set; then
4619    echo $ECHO_N "(cached) $ECHO_C" >&6
4620   else
4621 +  echo 'void f(){}' > conftest.cpp
4622 + if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
4623 +        ac_cpu_pentium=yes
4624 + else
4625 +        ac_cpu_pentium=no
4626 + fi
4627 + rm -f conftest*
4628  
4629 < ac_ext=f90
4630 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4631 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4629 > fi
4630 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4631 > echo "${ECHO_T}$ac_cpu_pentium" >&6
4632 > if test "$ac_cpu_pentium" = yes; then
4633 >        :
4634 >        CPU_FLAGS=-mcpu=pentium
4635 > else
4636 >        :
4637  
4638 < echo 'program main' > conftest.$ac_ext
4639 < echo 'end program main' >> conftest.$ac_ext
4640 < ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
4641 < if { (eval echo "$as_me:3212: \"$ac_compile\"") >&5
4642 <  (eval $ac_compile) 2>&5
3214 <  ac_status=$?
3215 <  echo "$as_me:3215: \$? = $ac_status" >&5
3216 <  (exit $ac_status); }; then
3217 <        ac_guessed_f90flags=yes
4638 >
4639 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
4640 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
4641 > if test "${ac_pentium+set}" = set; then
4642 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4643   else
4644 <        ac_guessed_f90flags=no
4644 >  echo 'void f(){}' > conftest.cpp
4645 > if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
4646 >        ac_pentium=yes
4647 > else
4648 >        ac_pentium=no
4649   fi
4650   rm -f conftest*
3222 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
4651  
4652   fi
4653 < echo "$as_me:3229: result: $ac_guessed_f90flags" >&5
4654 < echo "${ECHO_T}$ac_guessed_f90flags" >&6
4655 < if test "$ac_guessed_f90flags" = yes; then
4653 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4654 > echo "${ECHO_T}$ac_pentium" >&6
4655 > if test "$ac_pentium" = yes; then
4656          :
4657 +        CPU_FLAGS=-mpentium
4658 + else
4659 +        :
4660  
4661 + fi
4662 +
4663 + fi
4664 +
4665 +                  ;;
4666 +          i686*)
4667 +
4668 + echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4669 + echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4670 + if test "${ac_cpu_pentiumpro+set}" = set; then
4671 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4672   else
4673 +  echo 'void f(){}' > conftest.cpp
4674 + if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
4675 +        ac_cpu_pentiumpro=yes
4676 + else
4677 +        ac_cpu_pentiumpro=no
4678 + fi
4679 + rm -f conftest*
4680 +
4681 + fi
4682 + echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4683 + echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4684 + if test "$ac_cpu_pentiumpro" = yes; then
4685          :
4686 +        CPU_FLAGS=-mcpu=pentiumpro
4687 + else
4688 +        :
4689  
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=""
4690  
4691 + echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4692 + echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
4693 + if test "${ac_pentiumpro+set}" = set; then
4694 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4695 + else
4696 +  echo 'void f(){}' > conftest.cpp
4697 + if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
4698 +        ac_pentiumpro=yes
4699 + else
4700 +        ac_pentiumpro=no
4701   fi
4702 + rm -f conftest*
4703  
4704   fi
4705 + echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4706 + echo "${ECHO_T}$ac_pentiumpro" >&6
4707 + if test "$ac_pentiumpro" = yes; then
4708 +        :
4709 +        CPU_FLAGS=-mpentiumpro
4710 + else
4711 +        :
4712  
4713 < # Try to determine native compiler flags that allow us to use F90 suffix
3251 < # for preprocessed f90 source.
4713 > fi
4714  
4715 < if test "$ac_test_PREPFLAG" != "set"; then
3254 <  PREPFLAG=""
3255 <  case "${host_cpu}-${host_os}" in
4715 > fi
4716  
4717 <  *linux*) if test "$F90" = ifc; then
4718 <                    PREPFLAG="-fpp1 "
4719 <                fi;;
4720 <  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
4721 <                    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
4717 >                  ;;
4718 >          powerpc*)
4719 >                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4720 >                is60x=`echo $cputype | egrep "^600-9e?$"`
4721 >                if test -n "$is60x"; then
4722  
4723 <  if test -z "$PREPFLAG"; then
4723 >
4724 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4725 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
4726 > if test "${ac_m_cpu_60x+set}" = set; then
4727 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4728 > else
4729 >  echo 'void f(){}' > conftest.cpp
4730 > if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
4731 >        ac_m_cpu_60x=yes
4732 > else
4733 >        ac_m_cpu_60x=no
4734 > fi
4735 > rm -f conftest*
4736 >
4737 > fi
4738 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4739 > echo "${ECHO_T}$ac_m_cpu_60x" >&6
4740 > if test "$ac_m_cpu_60x" = yes; then
4741 >        :
4742 >        CPU_FLAGS=-mcpu=$cputype
4743 > else
4744 >        :
4745 >
4746 > fi
4747 >
4748 >                elif test "$cputype" = 750; then
4749 >
4750 >
4751 > echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
4752 > echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
4753 > if test "${ac_cv_prog_gxx_2_95+set}" = set; then
4754 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4755 > else
4756 >
4757 > cat > conftest.cpp <<EOF
4758 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4759 > #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4760 >     yes;
4761 > #  endif
4762 > #endif
4763 > EOF
4764 > if { ac_try='${CXX-c++} -E conftest.cpp'
4765 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 >  (eval $ac_try) 2>&5
4767 >  ac_status=$?
4768 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4770 >  ac_cv_prog_gxx_2_95=yes
4771 > else
4772 >  ac_cv_prog_gxx_2_95=no
4773 > fi
4774 >
4775 > fi
4776 > echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
4777 > echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
4778 > if test "$ac_cv_prog_gxx_2_95" = yes; then
4779 >        :
4780 >
4781 >
4782 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
4783 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
4784 > if test "${ac_m_cpu_750+set}" = set; then
4785 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4786 > else
4787 >  echo 'void f(){}' > conftest.cpp
4788 > if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
4789 >        ac_m_cpu_750=yes
4790 > else
4791 >        ac_m_cpu_750=no
4792 > fi
4793 > rm -f conftest*
4794 >
4795 > fi
4796 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4797 > echo "${ECHO_T}$ac_m_cpu_750" >&6
4798 > if test "$ac_m_cpu_750" = yes; then
4799 >        :
4800 >        CPU_FLAGS=-mcpu=750
4801 > else
4802 >        :
4803 >
4804 > fi
4805 >
4806 > else
4807 >        :
4808 >
4809 > fi
4810 >
4811 >                fi
4812 >                if test -z "$CPU_FLAGS"; then
4813 >
4814 >
4815 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
4816 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
4817 > if test "${ac_m_cpu_powerpc+set}" = set; then
4818 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4819 > else
4820 >  echo 'void f(){}' > conftest.cpp
4821 > if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
4822 >        ac_m_cpu_powerpc=yes
4823 > else
4824 >        ac_m_cpu_powerpc=no
4825 > fi
4826 > rm -f conftest*
4827 >
4828 > fi
4829 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
4830 > echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4831 > if test "$ac_m_cpu_powerpc" = yes; then
4832 >        :
4833 >        CPU_FLAGS=-mcpu=powerpc
4834 > else
4835 >        :
4836 >
4837 > fi
4838 >
4839 >                fi
4840 >                if test -z "$CPU_FLAGS"; then
4841 >
4842 >
4843 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
4844 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
4845 > if test "${ac_m_powerpc+set}" = set; then
4846 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4847 > else
4848 >  echo 'void f(){}' > conftest.cpp
4849 > if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
4850 >        ac_m_powerpc=yes
4851 > else
4852 >        ac_m_powerpc=no
4853 > fi
4854 > rm -f conftest*
4855 >
4856 > fi
4857 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
4858 > echo "${ECHO_T}$ac_m_powerpc" >&6
4859 > if test "$ac_m_powerpc" = yes; then
4860 >        :
4861 >        CPU_FLAGS=-mpowerpc
4862 > else
4863 >        :
4864 >
4865 > fi
4866 >
4867 >                fi
4868 >          esac
4869 >  fi
4870 >
4871 >  if test -n "$CPU_FLAGS"; then
4872 >        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
4873 >  fi
4874 >
4875 >  if test -z "$CXXFLAGS"; then
4876          echo ""
4877          echo "**********************************************************"
4878 <        echo "* WARNING: Don't know the best PREPFLAG for this system  *"
4879 <        echo "* Use  make PREPFLAG=..., or edit the top level Makefile *"
4880 <        echo "* (otherwise, an empty PREPFLAG will be used)            *"
4878 >        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
4879 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
4880 >        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
4881          echo "**********************************************************"
4882          echo ""
4883 <        PREPFLAG=""
4883 >        CXXFLAGS="-O3"
4884    fi
4885  
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
4886  
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
4887  
4888 <  ac_save_ext=$ac_ext
4889 <  ac_ext=F90
4890 <  ac_save_F90FLAGS=$F90FLAGS
4888 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
4889 > echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
4890 > if test "${ac_guessed_cxxflags+set}" = set; then
4891 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4892 > else
4893 >  echo 'void f(){}' > conftest.cpp
4894 > if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
4895 >        ac_guessed_cxxflags=yes
4896 > else
4897 >        ac_guessed_cxxflags=no
4898 > fi
4899 > rm -f conftest*
4900  
3292  if test "$PREPFLAG"; then
3293  F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
4901   fi
4902 + echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
4903 + echo "${ECHO_T}$ac_guessed_cxxflags" >&6
4904 + if test "$ac_guessed_cxxflags" = yes; then
4905 +        :
4906  
4907 <    cat >conftest.$ac_ext <<_ACEOF
4907 > else
4908 >        :
4909  
4910 < program main
4910 >        echo ""
4911 >        echo "**********************************************************"
4912 >        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
4913 >        echo "* your compiler.                                         *"
4914 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
4915 >        echo "**********************************************************"
4916 >        echo ""
4917 >        CXXFLAGS=""
4918  
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
4919   fi
3324 rm -f conftest.$ac_objext conftest.$ac_ext
4920  
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
4921  
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
4922   fi
4923  
3347 # Try to determine native compiler flags that allow us to use F90 suffix
3348 # for preprocessed f90 source with -D type defines
4924  
4925 < if test "$ac_test_PREPDEFFLAG" != "set"; then
4926 <  PREPDEFFLAG=""
4925 >
4926 >
4927 >
4928 > # Try to determine "good" native compiler flags if none specified on command
4929 > # line
4930 >
4931 > if test x"$F90FLAGS" = x ; then
4932 >  F90FLAGS=""
4933    case "${host_cpu}-${host_os}" in
4934  
4935 <  *linux*) if test "$F90" = ifc; then
4936 <                    PREPDEFFLAG=" "
4935 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
4936 >                    F90FLAGS="-O"
4937                  fi;;
4938 <  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
4939 <                    PREPDEFFLAG="-WF,"
4938 >   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
4939 >                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
4940                  fi;;
4941 <  *darwin*)
4941 >   powerpc*-aix*)
4942          if test "$F90" = f90 -o "$F90" = xlf90; then
4943 <                PREPDEFFLAG="-WF,"
4943 >                F90FLAGS="-O3 -qarch=ppc -qansialias -w"
4944 >                echo "*******************************************************"
4945 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4946 >                echo "*  recommended that you use                           *"
4947 >                echo "*                                                     *"
4948 >                echo "*  F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4949 >                echo "*                                 ^^^                 *"
4950 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4951 >                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
4952 >                echo "*******************************************************"
4953          fi;;
4954 +   *darwin*)
4955 +        if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then
4956 +                F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto"
4957 +        fi;;
4958    esac
4959  
4960 <  if test -z "$PREPDEFFLAG"; then
4960 >  if test -n "$CPU_FLAGS"; then
4961 >        F90FLAGS="$F90FLAGS $CPU_FLAGS"
4962 >  fi
4963 >
4964 >  if test -z "$F90FLAGS"; then
4965          echo ""
4966 <        echo "*************************************************************"
4967 <        echo "* WARNING: Don't know the best PREPDEFFLAG for this system  *"
4968 <        echo "* Use  make PREPDEFFLAG=..., or edit the top level Makefile *"
4969 <        echo "* (otherwise, an empty PREPDEFFLAG will be used)            *"
4970 <        echo "*************************************************************"
4966 >        echo "**********************************************************"
4967 >        echo "* WARNING: Don't know the best F90FLAGS for this system  *"
4968 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
4969 >        echo "* (otherwise, a default of F90FLAGS=-O3 will be used)    *"
4970 >        echo "**********************************************************"
4971          echo ""
4972 <        PREPDEFFLAG=" "
4972 >        F90FLAGS="-O3"
4973    fi
4974  
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
4975  
4976 <  ac_ext=f90
4976 > echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
4977 > echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
4978 > if test "${ac_guessed_f90flags+set}" = set; then
4979 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4980 > else
4981 >
4982 >
4983 >
4984 > ac_ext=f90
4985   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4986   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4988  
4989 <  ac_save_ext=$ac_ext
4990 <  ac_ext=F90
4991 <  ac_save_F90FLAGS=$F90FLAGS
4992 <
4993 <  if test "$PREPDEFFLAG"; then
4994 <  F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
4989 > echo 'program main' > conftest.$ac_ext
4990 > echo 'end program main' >> conftest.$ac_ext
4991 > ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
4992 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 >  (eval $ac_compile) 2>&5
4994 >  ac_status=$?
4995 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 >  (exit $ac_status); }; then
4997 >        ac_guessed_f90flags=yes
4998 > else
4999 >        ac_guessed_f90flags=no
5000   fi
5001 + rm -f conftest*
5002 + ac_ext=f90
5003 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5004 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5006  
3393    cat >conftest.$ac_ext <<_ACEOF
5007  
5008 < program main
5008 > fi
5009 > echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
5010 > echo "${ECHO_T}$ac_guessed_f90flags" >&6
5011 > if test "$ac_guessed_f90flags" = yes; then
5012 >        :
5013  
5014 <  integer :: i
5015 < #ifdef TEST
3399 <  i = 1
3400 < #else
3401 <  choke me
3402 < #endif
5014 > else
5015 >        :
5016  
5017 < end program main
5017 >        echo ""
5018 >        echo "**********************************************************"
5019 >        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
5020 >        echo "* your compiler.                                         *"
5021 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
5022 >        echo "**********************************************************"
5023 >        echo ""
5024 >        F90FLAGS=""
5025  
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
5026   fi
3425 rm -f conftest.$ac_objext conftest.$ac_ext
5027  
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
5028  
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
5029   fi
5030  
5031 +     ;;
5032 + esac
5033 +
5034   # Find a good install program.  We prefer a C program (faster),
5035   # so one script is as good as another.  But avoid the broken or
5036   # incompatible versions:
# Line 3457 | Line 5043 | fi
5043   # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5044   # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5045   # ./install, which can be erroneously created by make from ./install.sh.
5046 < echo "$as_me:3460: checking for a BSD compatible install" >&5
5047 < echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5046 > echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5047 > echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5048   if test -z "$INSTALL"; then
5049   if test "${ac_cv_path_install+set}" = set; then
5050    echo $ECHO_N "(cached) $ECHO_C" >&6
5051   else
5052 <    ac_save_IFS=$IFS; IFS=$ac_path_separator
5053 <  for ac_dir in $PATH; do
5054 <    IFS=$ac_save_IFS
5055 <    # Account for people who put trailing slashes in PATH elements.
5056 <    case $ac_dir/ in
5057 <    / | ./ | .// | /cC/* \
5058 <    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
5059 <    | /usr/ucb/* ) ;;
5060 <    *)
5061 <      # OSF1 and SCO ODT 3.0 have their own names for install.
5062 <      # Don't use installbsd from OSF since it installs stuff as root
5063 <      # by default.
5064 <      for ac_prog in ginstall scoinst install; do
5065 <        if $as_executable_p "$ac_dir/$ac_prog"; then
5066 <          if test $ac_prog = install &&
5067 <            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
5068 <            # AIX install.  It has an incompatible calling convention.
5069 <            :
5070 <          elif test $ac_prog = install &&
5071 <            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
5072 <            # program-specific install script used by HP pwplus--don't use.
5073 <            :
5074 <          else
5075 <            ac_cv_path_install="$ac_dir/$ac_prog -c"
5076 <            break 2
5077 <          fi
5078 <        fi
5052 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 > for as_dir in $PATH
5054 > do
5055 >  IFS=$as_save_IFS
5056 >  test -z "$as_dir" && as_dir=.
5057 >  # Account for people who put trailing slashes in PATH elements.
5058 > case $as_dir/ in
5059 >  ./ | .// | /cC/* | \
5060 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5061 >  /usr/ucb/* ) ;;
5062 >  *)
5063 >    # OSF1 and SCO ODT 3.0 have their own names for install.
5064 >    # Don't use installbsd from OSF since it installs stuff as root
5065 >    # by default.
5066 >    for ac_prog in ginstall scoinst install; do
5067 >      for ac_exec_ext in '' $ac_executable_extensions; do
5068 >        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5069 >          if test $ac_prog = install &&
5070 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5071 >            # AIX install.  It has an incompatible calling convention.
5072 >            :
5073 >          elif test $ac_prog = install &&
5074 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5075 >            # program-specific install script used by HP pwplus--don't use.
5076 >            :
5077 >          else
5078 >            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5079 >            break 3
5080 >          fi
5081 >        fi
5082        done
5083 <      ;;
5084 <    esac
5085 <  done
5083 >    done
5084 >    ;;
5085 > esac
5086 > done
5087  
5088 +
5089   fi
5090    if test "${ac_cv_path_install+set}" = set; then
5091      INSTALL=$ac_cv_path_install
# Line 3506 | Line 5097 | fi
5097      INSTALL=$ac_install_sh
5098    fi
5099   fi
5100 < echo "$as_me:3509: result: $INSTALL" >&5
5100 > echo "$as_me:$LINENO: result: $INSTALL" >&5
5101   echo "${ECHO_T}$INSTALL" >&6
5102  
5103   # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# Line 3517 | Line 5108 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m
5108  
5109   test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5110  
5111 < echo "$as_me:3520: checking whether ln -s works" >&5
5111 > echo "$as_me:$LINENO: checking whether ln -s works" >&5
5112   echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5113   LN_S=$as_ln_s
5114   if test "$LN_S" = "ln -s"; then
5115 <  echo "$as_me:3524: result: yes" >&5
5115 >  echo "$as_me:$LINENO: result: yes" >&5
5116   echo "${ECHO_T}yes" >&6
5117   else
5118 <  echo "$as_me:3527: result: no, using $LN_S" >&5
5118 >  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5119   echo "${ECHO_T}no, using $LN_S" >&6
5120   fi
5121  
5122 < echo "$as_me:3531: checking whether ${MAKE-make} sets \${MAKE}" >&5
5123 < echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5122 > echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5123 > echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5124   set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5125   if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5126    echo $ECHO_N "(cached) $ECHO_C" >&6
5127   else
5128 <  cat >conftest.make <<\EOF
5128 >  cat >conftest.make <<\_ACEOF
5129   all:
5130 <        @echo 'ac_maketemp="${MAKE}"'
5131 < EOF
5130 >        @echo 'ac_maketemp="$(MAKE)"'
5131 > _ACEOF
5132   # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5133   eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5134   if test -n "$ac_maketemp"; then
# Line 3548 | Line 5139 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_se
5139   rm -f conftest.make
5140   fi
5141   if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5142 <  echo "$as_me:3551: result: yes" >&5
5142 >  echo "$as_me:$LINENO: result: yes" >&5
5143   echo "${ECHO_T}yes" >&6
5144    SET_MAKE=
5145   else
5146 <  echo "$as_me:3555: result: no" >&5
5146 >  echo "$as_me:$LINENO: result: no" >&5
5147   echo "${ECHO_T}no" >&6
5148    SET_MAKE="MAKE=${MAKE-make}"
5149   fi
# Line 3560 | Line 5151 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5151   if test -n "$ac_tool_prefix"; then
5152    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5153   set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5154 < echo "$as_me:3563: checking for $ac_word" >&5
5154 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5155   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156   if test "${ac_cv_prog_RANLIB+set}" = set; then
5157    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3568 | Line 5159 | else
5159    if test -n "$RANLIB"; then
5160    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5161   else
5162 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5163 < ac_dummy="$PATH"
5164 < for ac_dir in $ac_dummy; do
5165 <  IFS=$ac_save_IFS
5166 <  test -z "$ac_dir" && ac_dir=.
5167 <  $as_executable_p "$ac_dir/$ac_word" || continue
5168 < ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5169 < echo "$as_me:3578: found $ac_dir/$ac_word" >&5
5170 < break
5162 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 > for as_dir in $PATH
5164 > do
5165 >  IFS=$as_save_IFS
5166 >  test -z "$as_dir" && as_dir=.
5167 >  for ac_exec_ext in '' $ac_executable_extensions; do
5168 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5170 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 >    break 2
5172 >  fi
5173   done
5174 + done
5175  
5176   fi
5177   fi
5178   RANLIB=$ac_cv_prog_RANLIB
5179   if test -n "$RANLIB"; then
5180 <  echo "$as_me:3586: result: $RANLIB" >&5
5180 >  echo "$as_me:$LINENO: result: $RANLIB" >&5
5181   echo "${ECHO_T}$RANLIB" >&6
5182   else
5183 <  echo "$as_me:3589: result: no" >&5
5183 >  echo "$as_me:$LINENO: result: no" >&5
5184   echo "${ECHO_T}no" >&6
5185   fi
5186  
# Line 3595 | Line 5189 | set dummy ranlib; ac_word=$2
5189    ac_ct_RANLIB=$RANLIB
5190    # Extract the first word of "ranlib", so it can be a program name with args.
5191   set dummy ranlib; ac_word=$2
5192 < echo "$as_me:3598: checking for $ac_word" >&5
5192 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5193   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194   if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5195    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3603 | Line 5197 | else
5197    if test -n "$ac_ct_RANLIB"; then
5198    ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5199   else
5200 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5201 < ac_dummy="$PATH"
5202 < for ac_dir in $ac_dummy; do
5203 <  IFS=$ac_save_IFS
5204 <  test -z "$ac_dir" && ac_dir=.
5205 <  $as_executable_p "$ac_dir/$ac_word" || continue
5206 < ac_cv_prog_ac_ct_RANLIB="ranlib"
5207 < echo "$as_me:3613: found $ac_dir/$ac_word" >&5
5208 < break
5200 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 > for as_dir in $PATH
5202 > do
5203 >  IFS=$as_save_IFS
5204 >  test -z "$as_dir" && as_dir=.
5205 >  for ac_exec_ext in '' $ac_executable_extensions; do
5206 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
5208 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 >    break 2
5210 >  fi
5211   done
5212 + done
5213  
5214    test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5215   fi
5216   fi
5217   ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5218   if test -n "$ac_ct_RANLIB"; then
5219 <  echo "$as_me:3622: result: $ac_ct_RANLIB" >&5
5219 >  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5220   echo "${ECHO_T}$ac_ct_RANLIB" >&6
5221   else
5222 <  echo "$as_me:3625: result: no" >&5
5222 >  echo "$as_me:$LINENO: result: no" >&5
5223   echo "${ECHO_T}no" >&6
5224   fi
5225  
# Line 3635 | Line 5232 | set dummy $ac_prog; ac_word=$2
5232   do
5233    # Extract the first word of "$ac_prog", so it can be a program name with args.
5234   set dummy $ac_prog; ac_word=$2
5235 < echo "$as_me:3638: checking for $ac_word" >&5
5235 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5236   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5237   if test "${ac_cv_prog_YACC+set}" = set; then
5238    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3643 | Line 5240 | else
5240    if test -n "$YACC"; then
5241    ac_cv_prog_YACC="$YACC" # Let the user override the test.
5242   else
5243 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5244 < ac_dummy="$PATH"
5245 < for ac_dir in $ac_dummy; do
5246 <  IFS=$ac_save_IFS
5247 <  test -z "$ac_dir" && ac_dir=.
5248 <  $as_executable_p "$ac_dir/$ac_word" || continue
5249 < ac_cv_prog_YACC="$ac_prog"
5250 < echo "$as_me:3653: found $ac_dir/$ac_word" >&5
5251 < break
5243 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 > for as_dir in $PATH
5245 > do
5246 >  IFS=$as_save_IFS
5247 >  test -z "$as_dir" && as_dir=.
5248 >  for ac_exec_ext in '' $ac_executable_extensions; do
5249 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 >    ac_cv_prog_YACC="$ac_prog"
5251 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 >    break 2
5253 >  fi
5254   done
5255 + done
5256  
5257   fi
5258   fi
5259   YACC=$ac_cv_prog_YACC
5260   if test -n "$YACC"; then
5261 <  echo "$as_me:3661: result: $YACC" >&5
5261 >  echo "$as_me:$LINENO: result: $YACC" >&5
5262   echo "${ECHO_T}$YACC" >&6
5263   else
5264 <  echo "$as_me:3664: result: no" >&5
5264 >  echo "$as_me:$LINENO: result: no" >&5
5265   echo "${ECHO_T}no" >&6
5266   fi
5267  
# Line 3673 | Line 5273 | set dummy $ac_prog; ac_word=$2
5273   do
5274    # Extract the first word of "$ac_prog", so it can be a program name with args.
5275   set dummy $ac_prog; ac_word=$2
5276 < echo "$as_me:3676: checking for $ac_word" >&5
5276 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5277   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5278   if test "${ac_cv_prog_LEX+set}" = set; then
5279    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3681 | Line 5281 | else
5281    if test -n "$LEX"; then
5282    ac_cv_prog_LEX="$LEX" # Let the user override the test.
5283   else
5284 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5285 < ac_dummy="$PATH"
5286 < for ac_dir in $ac_dummy; do
5287 <  IFS=$ac_save_IFS
5288 <  test -z "$ac_dir" && ac_dir=.
5289 <  $as_executable_p "$ac_dir/$ac_word" || continue
5290 < ac_cv_prog_LEX="$ac_prog"
5291 < echo "$as_me:3691: found $ac_dir/$ac_word" >&5
5292 < break
5284 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 > for as_dir in $PATH
5286 > do
5287 >  IFS=$as_save_IFS
5288 >  test -z "$as_dir" && as_dir=.
5289 >  for ac_exec_ext in '' $ac_executable_extensions; do
5290 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291 >    ac_cv_prog_LEX="$ac_prog"
5292 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 >    break 2
5294 >  fi
5295   done
5296 + done
5297  
5298   fi
5299   fi
5300   LEX=$ac_cv_prog_LEX
5301   if test -n "$LEX"; then
5302 <  echo "$as_me:3699: result: $LEX" >&5
5302 >  echo "$as_me:$LINENO: result: $LEX" >&5
5303   echo "${ECHO_T}$LEX" >&6
5304   else
5305 <  echo "$as_me:3702: result: no" >&5
5305 >  echo "$as_me:$LINENO: result: no" >&5
5306   echo "${ECHO_T}no" >&6
5307   fi
5308  
# Line 3709 | Line 5312 | then
5312  
5313   if test -z "$LEXLIB"
5314   then
5315 <  echo "$as_me:3712: checking for yywrap in -lfl" >&5
5315 >  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5316   echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5317   if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5318    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3717 | Line 5320 | cat >conftest.$ac_ext <<_ACEOF
5320    ac_check_lib_save_LIBS=$LIBS
5321   LIBS="-lfl  $LIBS"
5322   cat >conftest.$ac_ext <<_ACEOF
3720 #line 3720 "configure"
3721 #include "confdefs.h"
5323  
5324 < /* Override any gcc2 internal prototype to avoid an error.  */
5325 < #ifdef __cplusplus
5326 < extern "C"
5327 < #endif
5328 < /* 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 < }
5324 > program main
5325 >
5326 > call yywrap
5327 > end program main
5328 >
5329   _ACEOF
5330   rm -f conftest.$ac_objext conftest$ac_exeext
5331 < if { (eval echo "$as_me:3739: \"$ac_link\"") >&5
5331 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5332    (eval $ac_link) 2>&5
5333    ac_status=$?
5334 <  echo "$as_me:3742: \$? = $ac_status" >&5
5334 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335    (exit $ac_status); } &&
5336           { ac_try='test -s conftest$ac_exeext'
5337 <  { (eval echo "$as_me:3745: \"$ac_try\"") >&5
5337 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338    (eval $ac_try) 2>&5
5339    ac_status=$?
5340 <  echo "$as_me:3748: \$? = $ac_status" >&5
5340 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341    (exit $ac_status); }; }; then
5342    ac_cv_lib_fl_yywrap=yes
5343   else
5344    echo "$as_me: failed program was:" >&5
5345 < cat conftest.$ac_ext >&5
5345 > sed 's/^/| /' conftest.$ac_ext >&5
5346 >
5347   ac_cv_lib_fl_yywrap=no
5348   fi
5349   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5350   LIBS=$ac_check_lib_save_LIBS
5351   fi
5352 < echo "$as_me:3759: result: $ac_cv_lib_fl_yywrap" >&5
5352 > echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5353   echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5354   if test $ac_cv_lib_fl_yywrap = yes; then
5355    LEXLIB="-lfl"
5356   else
5357 <  echo "$as_me:3764: checking for yywrap in -ll" >&5
5357 >  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5358   echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5359   if test "${ac_cv_lib_l_yywrap+set}" = set; then
5360    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3769 | Line 5362 | cat >conftest.$ac_ext <<_ACEOF
5362    ac_check_lib_save_LIBS=$LIBS
5363   LIBS="-ll  $LIBS"
5364   cat >conftest.$ac_ext <<_ACEOF
3772 #line 3772 "configure"
3773 #include "confdefs.h"
5365  
5366 < /* Override any gcc2 internal prototype to avoid an error.  */
5367 < #ifdef __cplusplus
5368 < extern "C"
5369 < #endif
5370 < /* 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 < }
5366 > program main
5367 >
5368 > call yywrap
5369 > end program main
5370 >
5371   _ACEOF
5372   rm -f conftest.$ac_objext conftest$ac_exeext
5373 < if { (eval echo "$as_me:3791: \"$ac_link\"") >&5
5373 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5374    (eval $ac_link) 2>&5
5375    ac_status=$?
5376 <  echo "$as_me:3794: \$? = $ac_status" >&5
5376 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377    (exit $ac_status); } &&
5378           { ac_try='test -s conftest$ac_exeext'
5379 <  { (eval echo "$as_me:3797: \"$ac_try\"") >&5
5379 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380    (eval $ac_try) 2>&5
5381    ac_status=$?
5382 <  echo "$as_me:3800: \$? = $ac_status" >&5
5382 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383    (exit $ac_status); }; }; then
5384    ac_cv_lib_l_yywrap=yes
5385   else
5386    echo "$as_me: failed program was:" >&5
5387 < cat conftest.$ac_ext >&5
5387 > sed 's/^/| /' conftest.$ac_ext >&5
5388 >
5389   ac_cv_lib_l_yywrap=no
5390   fi
5391   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5392   LIBS=$ac_check_lib_save_LIBS
5393   fi
5394 < echo "$as_me:3811: result: $ac_cv_lib_l_yywrap" >&5
5394 > echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5395   echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5396   if test $ac_cv_lib_l_yywrap = yes; then
5397    LEXLIB="-ll"
# Line 3819 | Line 5402 | if test "x$LEX" != "x:"; then
5402   fi
5403  
5404   if test "x$LEX" != "x:"; then
5405 <  echo "$as_me:3822: checking lex output file root" >&5
5405 >  echo "$as_me:$LINENO: checking lex output file root" >&5
5406   echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5407   if test "${ac_cv_prog_lex_root+set}" = set; then
5408    echo $ECHO_N "(cached) $ECHO_C" >&6
5409   else
5410    # The minimal lex program is just a single line: %%.  But some broken lexes
5411   # (Solaris, I think it was) want two %% lines, so accommodate them.
5412 < echo '%%
5413 < %%' | $LEX
5412 > cat >conftest.l <<_ACEOF
5413 > %%
5414 > %%
5415 > _ACEOF
5416 > { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5417 >  (eval $LEX conftest.l) 2>&5
5418 >  ac_status=$?
5419 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 >  (exit $ac_status); }
5421   if test -f lex.yy.c; then
5422    ac_cv_prog_lex_root=lex.yy
5423   elif test -f lexyy.c; then
5424    ac_cv_prog_lex_root=lexyy
5425   else
5426 <  { { echo "$as_me:3836: error: cannot find output from $LEX; giving up" >&5
5426 >  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5427   echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5428     { (exit 1); exit 1; }; }
5429   fi
5430   fi
5431 < echo "$as_me:3841: result: $ac_cv_prog_lex_root" >&5
5431 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5432   echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5433 + rm -f conftest.l
5434   LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5435  
5436 < echo "$as_me:3845: checking whether yytext is a pointer" >&5
5436 > echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5437   echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5438   if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5439    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3858 | Line 5449 | rm -f conftest.$ac_objext conftest$ac_exeext
5449   `cat $LEX_OUTPUT_ROOT.c`
5450   _ACEOF
5451   rm -f conftest.$ac_objext conftest$ac_exeext
5452 < if { (eval echo "$as_me:3861: \"$ac_link\"") >&5
5452 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5453    (eval $ac_link) 2>&5
5454    ac_status=$?
5455 <  echo "$as_me:3864: \$? = $ac_status" >&5
5455 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456    (exit $ac_status); } &&
5457           { ac_try='test -s conftest$ac_exeext'
5458 <  { (eval echo "$as_me:3867: \"$ac_try\"") >&5
5458 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459    (eval $ac_try) 2>&5
5460    ac_status=$?
5461 <  echo "$as_me:3870: \$? = $ac_status" >&5
5461 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462    (exit $ac_status); }; }; then
5463    ac_cv_prog_lex_yytext_pointer=yes
5464   else
5465    echo "$as_me: failed program was:" >&5
5466 < cat conftest.$ac_ext >&5
5466 > sed 's/^/| /' conftest.$ac_ext >&5
5467 >
5468   fi
5469   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5470   LIBS=$ac_save_LIBS
5471   rm -f "${LEX_OUTPUT_ROOT}.c"
5472  
5473   fi
5474 < echo "$as_me:3882: result: $ac_cv_prog_lex_yytext_pointer" >&5
5474 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5475   echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5476   if test $ac_cv_prog_lex_yytext_pointer = yes; then
5477  
5478 < cat >>confdefs.h <<\EOF
5478 > cat >>confdefs.h <<\_ACEOF
5479   #define YYTEXT_POINTER 1
5480 < EOF
5480 > _ACEOF
5481  
5482   fi
5483  
5484   fi
5485   # Extract the first word of "ar", so it can be a program name with args.
5486   set dummy ar; ac_word=$2
5487 < echo "$as_me:3895: checking for $ac_word" >&5
5487 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5488   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5489   if test "${ac_cv_prog_AR+set}" = set; then
5490    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3900 | Line 5492 | else
5492    if test -n "$AR"; then
5493    ac_cv_prog_AR="$AR" # Let the user override the test.
5494   else
5495 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5496 < ac_dummy="$PATH"
5497 < for ac_dir in $ac_dummy; do
5498 <  IFS=$ac_save_IFS
5499 <  test -z "$ac_dir" && ac_dir=.
5500 <  $as_executable_p "$ac_dir/$ac_word" || continue
5501 < ac_cv_prog_AR="ar"
5502 < echo "$as_me:3910: found $ac_dir/$ac_word" >&5
5503 < break
5495 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 > for as_dir in $PATH
5497 > do
5498 >  IFS=$as_save_IFS
5499 >  test -z "$as_dir" && as_dir=.
5500 >  for ac_exec_ext in '' $ac_executable_extensions; do
5501 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502 >    ac_cv_prog_AR="ar"
5503 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 >    break 2
5505 >  fi
5506   done
5507 + done
5508  
5509    test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
5510   fi
5511   fi
5512   AR=$ac_cv_prog_AR
5513   if test -n "$AR"; then
5514 <  echo "$as_me:3919: result: $AR" >&5
5514 >  echo "$as_me:$LINENO: result: $AR" >&5
5515   echo "${ECHO_T}$AR" >&6
5516   else
5517 <  echo "$as_me:3922: result: no" >&5
5517 >  echo "$as_me:$LINENO: result: no" >&5
5518   echo "${ECHO_T}no" >&6
5519   fi
5520  
5521   if test "$AR" = "NONE"; then
5522 <  { { echo "$as_me:3927: error: --> Can't find \`ar'!" >&5
5522 >  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
5523   echo "$as_me: error: --> Can't find \`ar'!" >&2;}
5524     { (exit 1); exit 1; }; }
5525    cat >confcache <<\_ACEOF
# Line 3937 | Line 5532 | echo "$as_me: error: --> Can't find \`ar'!" >&2;}
5532   # config.status only pays attention to the cache file if you give it
5533   # the --recheck option to rerun configure.
5534   #
5535 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
5535 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
5536   # loading this file, other *unset* `ac_cv_foo' will be assigned the
5537   # following values.
5538  
# Line 3956 | Line 5551 | _ACEOF
5551        # substitution turns \\\\ into \\, and sed turns \\ into \).
5552        sed -n \
5553          "s/'/'\\\\''/g;
5554 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5554 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5555        ;;
5556      *)
5557        # `set' quotes correctly as required by POSIX, so do not add quotes.
5558        sed -n \
5559 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5559 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5560        ;;
5561      esac;
5562   } |
# Line 3972 | Line 5567 | _ACEOF
5567       t end
5568       /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5569       : end' >>confcache
5570 < if cmp -s $cache_file confcache; then :; else
5570 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
5571    if test -w $cache_file; then
5572      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5573      cat confcache >$cache_file
5574    else
5575      echo "not updating unwritable cache $cache_file"
3981  fi
3982 fi
3983 rm -f confcache
3984  exit 1
3985 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
5576    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
5577   fi
5578 < rm -f conftest.$ac_objext conftest.$ac_ext
5579 < ac_ext=f90
5580 < 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
5578 > rm -f confcache
5579 >  exit 1
5580 > fi
5581  
5582 <          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
4511 <
4512 <          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
5582 > echo "$as_me:$LINENO: checking for mpi-directory" >&5
5583   echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
5584  
5585 < # Check whether --with-mpi_dir or --without-mpi_dir was given.
5586 < if test "${with_mpi_dir+set}" = set; then
5587 <  withval="$with_mpi_dir"
5585 > # Check whether --with-mpi or --without-mpi was given.
5586 > if test "${with_mpi+set}" = set; then
5587 >  withval="$with_mpi"
5588    MPI_DIR="$withval"
5589   else
5590    MPI_DIR="/usr/local"
5591   fi;
5592 < echo "$as_me:4550: result: $MPI_DIR" >&5
5592 > echo "$as_me:$LINENO: result: $MPI_DIR" >&5
5593   echo "${ECHO_T}$MPI_DIR" >&6
5594  
5595 < echo "$as_me:4553: checking for mpi-lib-directory" >&5
5595 >
5596 > echo "$as_me:$LINENO: checking for mpi-lib-directory" >&5
5597   echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
5598  
5599   # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
# Line 4560 | Line 5603 | fi;
5603   else
5604    MPI_LIBDIR="$MPI_DIR/lib"
5605   fi;
5606 < echo "$as_me:4563: result: $MPI_LIBDIR" >&5
5606 > echo "$as_me:$LINENO: result: $MPI_LIBDIR" >&5
5607   echo "${ECHO_T}$MPI_LIBDIR" >&6
5608  
5609 < echo "$as_me:4566: checking for mpi-inc-directory" >&5
5609 >
5610 > echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5
5611   echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
5612  
5613 < # Check whether --with-mpi_inc or --without-mpi_inc was given.
5613 > # Check whether --with-mpi-inc or --without-mpi-inc was given.
5614   if test "${with_mpi_inc+set}" = set; then
5615    withval="$with_mpi_inc"
5616    MPI_INC="$withval"
5617   else
5618    MPI_INC="$MPI_DIR/include"
5619   fi;
5620 < echo "$as_me:4576: result: $MPI_INC" >&5
5620 > echo "$as_me:$LINENO: result: $MPI_INC" >&5
5621   echo "${ECHO_T}$MPI_INC" >&6
5622  
4579 echo "$as_me:4579: checking for MPI library" >&5
4580 echo $ECHO_N "checking for MPI library... $ECHO_C" >&6
4581 MPI_LIB=""
4582 case "$host" in
4583  *-ibm-aix*)
4584    echo "$as_me:4584: checking whether to use signal-based MPI library" >&5
4585 echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6
4586    echo "$as_me:4586: result: $PACX_SIGNAL" >&5
4587 echo "${ECHO_T}$PACX_SIGNAL" >&6
4588    if test "x$PACX_SIGNAL" = "xyes" ; then
4589      if test -f "$MPI_LIBDIR/libmpi.a" ; then
4590        MPI_LIB="-lmpi"
4591      elif test -f "$MPI_LIBDIR/libmpi.so" ; then
4592        MPI_LIB="-lmpi"
4593      elif test -f "$MPI_LIBDIR/libmpich.a" ; then
4594        MPI_LIB="-lmpich"
4595      else
4596        { { echo "$as_me:4596: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
4597 echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
4598   { (exit 1); exit 1; }; }
4599      fi
4600    else
4601      if test -f "$MPI_LIBDIR/libmpi_r.a" ; then
4602         MPI_LIB="-lmpi_r"
4603      else
4604         { { echo "$as_me:4604: error: libmpi_r not found; check path for MPI package..." >&5
4605 echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;}
4606   { (exit 1); exit 1; }; }
4607      fi
4608    fi
4609    echo "$as_me:4609: result: found $MPI_LIB" >&5
4610 echo "${ECHO_T}found $MPI_LIB" >&6
4611  ;;
4612  *)                             if test -f "$MPI_LIBDIR/libmpi.a" ; then
4613      MPI_LIB="-lmpi"
4614    elif test -f "$MPI_LIBDIR/libmpi.so" ; then
4615      MPI_LIB="-lmpi"
4616    elif test -f "$MPI_LIBDIR/libmpich.a" ; then
4617      MPI_LIB="-lmpich"
4618    else
4619      { { echo "$as_me:4619: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
4620 echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
4621   { (exit 1); exit 1; }; }
4622    fi
4623    echo "$as_me:4623: result: found $MPI_LIB" >&5
4624 echo "${ECHO_T}found $MPI_LIB" >&6
4625  ;;
4626 esac
5623  
5624 <        for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r
5625 < do
5626 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
5627 < set dummy $ac_prog; ac_word=$2
5628 < echo "$as_me:4632: checking for $ac_word" >&5
5629 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5630 < if test "${ac_cv_prog_MPIF90+set}" = set; then
5631 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5624 > echo "$as_me:$LINENO: checking for mpi.h" >&5
5625 > echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
5626 > HAVE_MPIDOTH_C="no"
5627 > echo '#include <mpi.h>' > conftest.cc
5628 > if test -z "`${CXX} -I${MPI_INC} -c conftest.cc 2>&1`"; then
5629 >  echo "$as_me:$LINENO: result: yes" >&5
5630 > echo "${ECHO_T}yes" >&6
5631 >  HAVE_MPIDOTH_C="yes"
5632   else
5633 <  if test -n "$MPIF90"; then
5634 <  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
4650 <
5633 >  echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5634 > echo "${ECHO_T}no! Check MPI include paths" >&6
5635   fi
5636 < fi
5637 < MPIF90=$ac_cv_prog_MPIF90
5638 < if test -n "$MPIF90"; then
5639 <  echo "$as_me:4655: result: $MPIF90" >&5
5640 < echo "${ECHO_T}$MPIF90" >&6
5636 > rm -f conftest*
5637 >
5638 > echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
5639 > echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
5640 > HAVE_MPIFDOTH_F90="no"
5641 > rm -f conftest*
5642 > cat >conftest.f90 <<EOF
5643 > program main
5644 >  include 'mpif.h'
5645 > end
5646 > EOF
5647 > if $F90 -I$MPI_INC -c conftest.f90 > conftest.out 2>&1 ; then
5648 >   echo "$as_me:$LINENO: result: yes" >&5
5649 > echo "${ECHO_T}yes" >&6
5650 >   MPI_F90INC="$MPI_INC"
5651 >   HAVE_MPIFDOTH_F90="yes"
5652   else
5653 <  echo "$as_me:4658: result: no" >&5
5654 < echo "${ECHO_T}no" >&6
5653 >   if test -s conftest.out ; then cat conftest.out >> config.log ; fi
5654 >   echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5655 > echo "${ECHO_T}no! Check MPI include paths" >&6
5656   fi
5657 + rm -f conftest*
5658  
4662  test -n "$MPIF90" && break
4663 done
4664 test -n "$MPIF90" || MPIF90="$F90"
5659  
5660 <        acx_mpi_save_F90="$F90"
5661 <        F90="$MPIF90"
5660 > ac_ext=c
5661 > ac_cpp='$CPP $CPPFLAGS'
5662 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5663 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5664 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
5665  
5666 < if test x = x"$MPILIBS"; then
5667 <        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
5666 > ac_save_LDFLAGS=$LDFLAGS
5667 > LDFLAGS="${LDFLAGS} -L${MPI_LIBDIR} "
5668  
5669 < program main
5669 > if test x = x"$MPI_LIB"; then
5670 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5671 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5672 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5673 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5674 > else
5675 >  ac_check_lib_save_LIBS=$LIBS
5676 > LIBS="-lmpi  $LIBS"
5677 > cat >conftest.$ac_ext <<_ACEOF
5678 > #line $LINENO "configure"
5679 > /* confdefs.h.  */
5680 > _ACEOF
5681 > cat confdefs.h >>conftest.$ac_ext
5682 > cat >>conftest.$ac_ext <<_ACEOF
5683 > /* end confdefs.h.  */
5684  
5685 <      call MPI_Init
5686 < end program main
5685 > /* Override any gcc2 internal prototype to avoid an error.  */
5686 > #ifdef __cplusplus
5687 > extern "C"
5688 > #endif
5689 > /* We use char because int might match the return type of a gcc2
5690 >   builtin and then its argument prototype would still apply.  */
5691 > char MPI_Init ();
5692 > int
5693 > main ()
5694 > {
5695 > MPI_Init ();
5696 >  ;
5697 >  return 0;
5698 > }
5699 > _ACEOF
5700 > rm -f conftest.$ac_objext conftest$ac_exeext
5701 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5702 >  (eval $ac_link) 2>&5
5703 >  ac_status=$?
5704 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 >  (exit $ac_status); } &&
5706 >         { ac_try='test -s conftest$ac_exeext'
5707 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708 >  (eval $ac_try) 2>&5
5709 >  ac_status=$?
5710 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 >  (exit $ac_status); }; }; then
5712 >  ac_cv_lib_mpi_MPI_Init=yes
5713 > else
5714 >  echo "$as_me: failed program was:" >&5
5715 > sed 's/^/| /' conftest.$ac_ext >&5
5716  
5717 + ac_cv_lib_mpi_MPI_Init=no
5718 + fi
5719 + rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5720 + LIBS=$ac_check_lib_save_LIBS
5721 + fi
5722 + echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5723 + echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5724 + if test $ac_cv_lib_mpi_MPI_Init = yes; then
5725 +  MPI_LIB="-lmpi"
5726 + fi
5727 +
5728 + fi
5729 + if test x = x"$MPI_LIB"; then
5730 +   echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
5731 + echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
5732 + if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
5733 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5734 + else
5735 +  ac_check_lib_save_LIBS=$LIBS
5736 + LIBS="-lmpich  $LIBS"
5737 + cat >conftest.$ac_ext <<_ACEOF
5738 + #line $LINENO "configure"
5739 + /* confdefs.h.  */
5740   _ACEOF
5741 + cat confdefs.h >>conftest.$ac_ext
5742 + cat >>conftest.$ac_ext <<_ACEOF
5743 + /* end confdefs.h.  */
5744 +
5745 + /* Override any gcc2 internal prototype to avoid an error.  */
5746 + #ifdef __cplusplus
5747 + extern "C"
5748 + #endif
5749 + /* We use char because int might match the return type of a gcc2
5750 +   builtin and then its argument prototype would still apply.  */
5751 + char MPI_Init ();
5752 + int
5753 + main ()
5754 + {
5755 + MPI_Init ();
5756 +  ;
5757 +  return 0;
5758 + }
5759 + _ACEOF
5760   rm -f conftest.$ac_objext conftest$ac_exeext
5761 < if { (eval echo "$as_me:4681: \"$ac_link\"") >&5
5761 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5762    (eval $ac_link) 2>&5
5763    ac_status=$?
5764 <  echo "$as_me:4684: \$? = $ac_status" >&5
5764 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765    (exit $ac_status); } &&
5766           { ac_try='test -s conftest$ac_exeext'
5767 <  { (eval echo "$as_me:4687: \"$ac_try\"") >&5
5767 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768    (eval $ac_try) 2>&5
5769    ac_status=$?
5770 <  echo "$as_me:4690: \$? = $ac_status" >&5
5770 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771    (exit $ac_status); }; }; then
5772 <  MPILIBS=" "
4693 <                                echo "$as_me:4693: result: yes" >&5
4694 < echo "${ECHO_T}yes" >&6
5772 >  ac_cv_lib_mpich_MPI_Init=yes
5773   else
5774    echo "$as_me: failed program was:" >&5
5775 < cat conftest.$ac_ext >&5
5776 < echo "$as_me:4698: result: no" >&5
5777 < echo "${ECHO_T}no" >&6
5775 > sed 's/^/| /' conftest.$ac_ext >&5
5776 >
5777 > ac_cv_lib_mpich_MPI_Init=no
5778   fi
5779   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5780 + LIBS=$ac_check_lib_save_LIBS
5781   fi
5782 < if test x = x"$MPILIBS"; then
5783 <        echo "$as_me:4704: checking for MPI_Init in -lmpi" >&5
5782 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
5783 > echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
5784 > if test $ac_cv_lib_mpich_MPI_Init = yes; then
5785 >  MPI_LIB="-lmpich"
5786 > fi
5787 >
5788 > fi
5789 > $as_unset ac_cv_lib_mpi_MPI_Init
5790 > if test x = x"$MPI_LIB"; then
5791 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5792   echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5793   if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5794    echo $ECHO_N "(cached) $ECHO_C" >&6
5795   else
5796    ac_check_lib_save_LIBS=$LIBS
5797 < LIBS="-lmpi  $LIBS"
5797 > LIBS="-lmpi "-llam" $LIBS"
5798   cat >conftest.$ac_ext <<_ACEOF
5799 + #line $LINENO "configure"
5800 + /* confdefs.h.  */
5801 + _ACEOF
5802 + cat confdefs.h >>conftest.$ac_ext
5803 + cat >>conftest.$ac_ext <<_ACEOF
5804 + /* end confdefs.h.  */
5805  
5806 < program main
5807 <
5808 < call MPI_Init
5809 < end program main
5810 <
5806 > /* Override any gcc2 internal prototype to avoid an error.  */
5807 > #ifdef __cplusplus
5808 > extern "C"
5809 > #endif
5810 > /* We use char because int might match the return type of a gcc2
5811 >   builtin and then its argument prototype would still apply.  */
5812 > char MPI_Init ();
5813 > int
5814 > main ()
5815 > {
5816 > MPI_Init ();
5817 >  ;
5818 >  return 0;
5819 > }
5820   _ACEOF
5821   rm -f conftest.$ac_objext conftest$ac_exeext
5822 < if { (eval echo "$as_me:4720: \"$ac_link\"") >&5
5822 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5823    (eval $ac_link) 2>&5
5824    ac_status=$?
5825 <  echo "$as_me:4723: \$? = $ac_status" >&5
5825 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826    (exit $ac_status); } &&
5827           { ac_try='test -s conftest$ac_exeext'
5828 <  { (eval echo "$as_me:4726: \"$ac_try\"") >&5
5828 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829    (eval $ac_try) 2>&5
5830    ac_status=$?
5831 <  echo "$as_me:4729: \$? = $ac_status" >&5
5831 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832    (exit $ac_status); }; }; then
5833    ac_cv_lib_mpi_MPI_Init=yes
5834   else
5835    echo "$as_me: failed program was:" >&5
5836 < cat conftest.$ac_ext >&5
5836 > sed 's/^/| /' conftest.$ac_ext >&5
5837 >
5838   ac_cv_lib_mpi_MPI_Init=no
5839   fi
5840   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5841   LIBS=$ac_check_lib_save_LIBS
5842   fi
5843 < echo "$as_me:4740: result: $ac_cv_lib_mpi_MPI_Init" >&5
5843 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5844   echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5845   if test $ac_cv_lib_mpi_MPI_Init = yes; then
5846 <  MPILIBS="-lmpi"
5846 >  MPI_LIB="-lmpi -llam"
5847   fi
5848  
5849   fi
5850 < if test x = x"$MPILIBS"; then
5851 <        echo "$as_me:4748: checking for MPI_Init in -lmpich" >&5
5852 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
5853 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
5850 >
5851 > $as_unset ac_cv_lib_mpi_MPI_Init
5852 > if test x = x"$MPI_LIB"; then
5853 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5854 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5855 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5856    echo $ECHO_N "(cached) $ECHO_C" >&6
5857   else
5858    ac_check_lib_save_LIBS=$LIBS
5859 < LIBS="-lmpich  $LIBS"
5859 > LIBS="-lmpi -llam -lpthread $LIBS"
5860   cat >conftest.$ac_ext <<_ACEOF
5861 + #line $LINENO "configure"
5862 + /* confdefs.h.  */
5863 + _ACEOF
5864 + cat confdefs.h >>conftest.$ac_ext
5865 + cat >>conftest.$ac_ext <<_ACEOF
5866 + /* end confdefs.h.  */
5867  
5868 < program main
5869 <
5870 < call MPI_Init
5871 < end program main
5872 <
5868 > /* Override any gcc2 internal prototype to avoid an error.  */
5869 > #ifdef __cplusplus
5870 > extern "C"
5871 > #endif
5872 > /* We use char because int might match the return type of a gcc2
5873 >   builtin and then its argument prototype would still apply.  */
5874 > char MPI_Init ();
5875 > int
5876 > main ()
5877 > {
5878 > MPI_Init ();
5879 >  ;
5880 >  return 0;
5881 > }
5882   _ACEOF
5883   rm -f conftest.$ac_objext conftest$ac_exeext
5884 < if { (eval echo "$as_me:4764: \"$ac_link\"") >&5
5884 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5885    (eval $ac_link) 2>&5
5886    ac_status=$?
5887 <  echo "$as_me:4767: \$? = $ac_status" >&5
5887 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888    (exit $ac_status); } &&
5889           { ac_try='test -s conftest$ac_exeext'
5890 <  { (eval echo "$as_me:4770: \"$ac_try\"") >&5
5890 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891    (eval $ac_try) 2>&5
5892    ac_status=$?
5893 <  echo "$as_me:4773: \$? = $ac_status" >&5
5893 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894    (exit $ac_status); }; }; then
5895 <  ac_cv_lib_mpich_MPI_Init=yes
5895 >  ac_cv_lib_mpi_MPI_Init=yes
5896   else
5897    echo "$as_me: failed program was:" >&5
5898 < cat conftest.$ac_ext >&5
5899 < ac_cv_lib_mpich_MPI_Init=no
5898 > sed 's/^/| /' conftest.$ac_ext >&5
5899 >
5900 > ac_cv_lib_mpi_MPI_Init=no
5901   fi
5902   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5903   LIBS=$ac_check_lib_save_LIBS
5904   fi
5905 < echo "$as_me:4784: result: $ac_cv_lib_mpich_MPI_Init" >&5
5906 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
5907 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
5908 <  MPILIBS="-lmpich"
5905 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5906 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5907 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
5908 >  MPI_LIB="-lmpi -llam -lpthread"
5909 > else
5910 >  { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
5911 > echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
5912 >   { (exit 1); exit 1; }; }
5913   fi
5914  
5915   fi
5916  
5917 < F90="$acx_mpi_save_F90"
5917 > echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5918 > echo "${ECHO_T}found $MPI_LIB" >&6
5919  
4794 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4795 if test x = x"$MPILIBS"; then
5920  
5921 <        :
5921 > echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
5922 > echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
5923 > MPI_F90LIB=""
5924 > if test -f "$MPI_LIBDIR/libfmpich.a" ; then
5925 >  MPI_F90LIB="-lfmpich"
5926 > elif test -f "$MPI_LIBDIR/liblamf77mpi.a" ; then
5927 >  MPI_F90LIB="-llamf77mpi"
5928   else
5929 +  # nothing special found, we'll assume that the C library is all we need
5930 +  MPI_F90LIB="  "
5931 + fi
5932 + echo "$as_me:$LINENO: result: found $MPI_F90LIB" >&5
5933 + echo "${ECHO_T}found $MPI_F90LIB" >&6
5934  
4800 cat >>confdefs.h <<\EOF
4801 #define HAVE_MPI 1
4802 EOF
5935  
4804        :
4805 fi
5936  
5937 +
5938   ac_ext=c
5939   ac_cpp='$CPP $CPPFLAGS'
5940   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5941   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5942   ac_compiler_gnu=$ac_cv_c_compiler_gnu
5943 < echo "$as_me:4812: checking how to run the C preprocessor" >&5
5943 > echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5944   echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5945   # On Suns, sometimes $CPP names a directory.
5946   if test -n "$CPP" && test -d "$CPP"; then
# Line 4822 | Line 5953 | else
5953        # Double quotes because CPP needs to be expanded
5954      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5955      do
4825      # break 2 since there is a loop in there.
5956        ac_preproc_ok=false
5957   for ac_c_preproc_warn_flag in '' yes
5958   do
5959    # Use a header file that comes with gcc, so configuring glibc
5960    # with a fresh cross-compiler works.
5961 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5962 +  # <limits.h> exists even on freestanding compilers.
5963    # On the NeXT, cc -E runs the code through the compiler's parser,
5964    # not just through cpp. "Syntax error" is here to catch this case.
5965    cat >conftest.$ac_ext <<_ACEOF
5966 < #line 4834 "configure"
5967 < #include "confdefs.h"
5968 < #include <assert.h>
5966 > #line $LINENO "configure"
5967 > /* confdefs.h.  */
5968 > _ACEOF
5969 > cat confdefs.h >>conftest.$ac_ext
5970 > cat >>conftest.$ac_ext <<_ACEOF
5971 > /* end confdefs.h.  */
5972 > #ifdef __STDC__
5973 > # include <limits.h>
5974 > #else
5975 > # include <assert.h>
5976 > #endif
5977                       Syntax error
5978   _ACEOF
5979 < if { (eval echo "$as_me:4839: \"$ac_cpp conftest.$ac_ext\"") >&5
5979 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5980    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5981    ac_status=$?
5982 <  egrep -v '^ *\+' conftest.er1 >conftest.err
5982 >  grep -v '^ *+' conftest.er1 >conftest.err
5983    rm -f conftest.er1
5984    cat conftest.err >&5
5985 <  echo "$as_me:4845: \$? = $ac_status" >&5
5985 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986    (exit $ac_status); } >/dev/null; then
5987    if test -s conftest.err; then
5988      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 4856 | Line 5996 | else
5996    :
5997   else
5998    echo "$as_me: failed program was:" >&5
5999 <  cat conftest.$ac_ext >&5
5999 > sed 's/^/| /' conftest.$ac_ext >&5
6000 >
6001    # Broken: fails on valid input.
6002   continue
6003   fi
# Line 4865 | Line 6006 | rm -f conftest.err conftest.$ac_ext
6006    # OK, works on sane cases.  Now check whether non-existent headers
6007    # can be detected and how.
6008    cat >conftest.$ac_ext <<_ACEOF
6009 < #line 4868 "configure"
6010 < #include "confdefs.h"
6009 > #line $LINENO "configure"
6010 > /* confdefs.h.  */
6011 > _ACEOF
6012 > cat confdefs.h >>conftest.$ac_ext
6013 > cat >>conftest.$ac_ext <<_ACEOF
6014 > /* end confdefs.h.  */
6015   #include <ac_nonexistent.h>
6016   _ACEOF
6017 < if { (eval echo "$as_me:4872: \"$ac_cpp conftest.$ac_ext\"") >&5
6017 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6018    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6019    ac_status=$?
6020 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6020 >  grep -v '^ *+' conftest.er1 >conftest.err
6021    rm -f conftest.er1
6022    cat conftest.err >&5
6023 <  echo "$as_me:4878: \$? = $ac_status" >&5
6023 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024    (exit $ac_status); } >/dev/null; then
6025    if test -s conftest.err; then
6026      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 4890 | Line 6035 | else
6035   continue
6036   else
6037    echo "$as_me: failed program was:" >&5
6038 <  cat conftest.$ac_ext >&5
6038 > sed 's/^/| /' conftest.$ac_ext >&5
6039 >
6040    # Passes both tests.
6041   ac_preproc_ok=:
6042   break
# Line 4901 | Line 6047 | if $ac_preproc_ok; then
6047   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6048   rm -f conftest.err conftest.$ac_ext
6049   if $ac_preproc_ok; then
6050 <  break 2
6050 >  break
6051   fi
6052  
6053      done
# Line 4912 | Line 6058 | fi
6058   else
6059    ac_cv_prog_CPP=$CPP
6060   fi
6061 < echo "$as_me:4915: result: $CPP" >&5
6061 > echo "$as_me:$LINENO: result: $CPP" >&5
6062   echo "${ECHO_T}$CPP" >&6
6063   ac_preproc_ok=false
6064   for ac_c_preproc_warn_flag in '' yes
6065   do
6066    # Use a header file that comes with gcc, so configuring glibc
6067    # with a fresh cross-compiler works.
6068 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6069 +  # <limits.h> exists even on freestanding compilers.
6070    # On the NeXT, cc -E runs the code through the compiler's parser,
6071    # not just through cpp. "Syntax error" is here to catch this case.
6072    cat >conftest.$ac_ext <<_ACEOF
6073 < #line 4925 "configure"
6074 < #include "confdefs.h"
6075 < #include <assert.h>
6073 > #line $LINENO "configure"
6074 > /* confdefs.h.  */
6075 > _ACEOF
6076 > cat confdefs.h >>conftest.$ac_ext
6077 > cat >>conftest.$ac_ext <<_ACEOF
6078 > /* end confdefs.h.  */
6079 > #ifdef __STDC__
6080 > # include <limits.h>
6081 > #else
6082 > # include <assert.h>
6083 > #endif
6084                       Syntax error
6085   _ACEOF
6086 < if { (eval echo "$as_me:4930: \"$ac_cpp conftest.$ac_ext\"") >&5
6086 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6087    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6088    ac_status=$?
6089 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6089 >  grep -v '^ *+' conftest.er1 >conftest.err
6090    rm -f conftest.er1
6091    cat conftest.err >&5
6092 <  echo "$as_me:4936: \$? = $ac_status" >&5
6092 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093    (exit $ac_status); } >/dev/null; then
6094    if test -s conftest.err; then
6095      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 4947 | Line 6103 | else
6103    :
6104   else
6105    echo "$as_me: failed program was:" >&5
6106 <  cat conftest.$ac_ext >&5
6106 > sed 's/^/| /' conftest.$ac_ext >&5
6107 >
6108    # Broken: fails on valid input.
6109   continue
6110   fi
# Line 4956 | Line 6113 | rm -f conftest.err conftest.$ac_ext
6113    # OK, works on sane cases.  Now check whether non-existent headers
6114    # can be detected and how.
6115    cat >conftest.$ac_ext <<_ACEOF
6116 < #line 4959 "configure"
6117 < #include "confdefs.h"
6116 > #line $LINENO "configure"
6117 > /* confdefs.h.  */
6118 > _ACEOF
6119 > cat confdefs.h >>conftest.$ac_ext
6120 > cat >>conftest.$ac_ext <<_ACEOF
6121 > /* end confdefs.h.  */
6122   #include <ac_nonexistent.h>
6123   _ACEOF
6124 < if { (eval echo "$as_me:4963: \"$ac_cpp conftest.$ac_ext\"") >&5
6124 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6125    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6126    ac_status=$?
6127 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6127 >  grep -v '^ *+' conftest.er1 >conftest.err
6128    rm -f conftest.er1
6129    cat conftest.err >&5
6130 <  echo "$as_me:4969: \$? = $ac_status" >&5
6130 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131    (exit $ac_status); } >/dev/null; then
6132    if test -s conftest.err; then
6133      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 4981 | Line 6142 | else
6142   continue
6143   else
6144    echo "$as_me: failed program was:" >&5
6145 <  cat conftest.$ac_ext >&5
6145 > sed 's/^/| /' conftest.$ac_ext >&5
6146 >
6147    # Passes both tests.
6148   ac_preproc_ok=:
6149   break
# Line 4994 | Line 6156 | else
6156   if $ac_preproc_ok; then
6157    :
6158   else
6159 <  { { echo "$as_me:4997: error: C preprocessor \"$CPP\" fails sanity check" >&5
6160 < echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
6159 >  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6160 > See \`config.log' for more details." >&5
6161 > echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6162 > See \`config.log' for more details." >&2;}
6163     { (exit 1); exit 1; }; }
6164   fi
6165  
# Line 5004 | Line 6168 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6168   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6171 +
6172 +
6173 + echo "$as_me:$LINENO: checking for egrep" >&5
6174 + echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6175 + if test "${ac_cv_prog_egrep+set}" = set; then
6176 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6177 + else
6178 +  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6179 +    then ac_cv_prog_egrep='grep -E'
6180 +    else ac_cv_prog_egrep='egrep'
6181 +    fi
6182 + fi
6183 + echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6184 + echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6185 + EGREP=$ac_cv_prog_egrep
6186 +
6187 +
6188 + echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6189 + echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6190 + if test "${ac_cv_header_stdc+set}" = set; then
6191 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6192 + else
6193 +  cat >conftest.$ac_ext <<_ACEOF
6194 + #line $LINENO "configure"
6195 + /* confdefs.h.  */
6196 + _ACEOF
6197 + cat confdefs.h >>conftest.$ac_ext
6198 + cat >>conftest.$ac_ext <<_ACEOF
6199 + /* end confdefs.h.  */
6200 + #include <stdlib.h>
6201 + #include <stdarg.h>
6202 + #include <string.h>
6203 + #include <float.h>
6204 +
6205 + int
6206 + main ()
6207 + {
6208 +
6209 +  ;
6210 +  return 0;
6211 + }
6212 + _ACEOF
6213 + rm -f conftest.$ac_objext
6214 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6215 +  (eval $ac_compile) 2>&5
6216 +  ac_status=$?
6217 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 +  (exit $ac_status); } &&
6219 +         { ac_try='test -s conftest.$ac_objext'
6220 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 +  (eval $ac_try) 2>&5
6222 +  ac_status=$?
6223 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 +  (exit $ac_status); }; }; then
6225 +  ac_cv_header_stdc=yes
6226 + else
6227 +  echo "$as_me: failed program was:" >&5
6228 + sed 's/^/| /' conftest.$ac_ext >&5
6229 +
6230 + ac_cv_header_stdc=no
6231 + fi
6232 + rm -f conftest.$ac_objext conftest.$ac_ext
6233 +
6234 + if test $ac_cv_header_stdc = yes; then
6235 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6236 +  cat >conftest.$ac_ext <<_ACEOF
6237 + #line $LINENO "configure"
6238 + /* confdefs.h.  */
6239 + _ACEOF
6240 + cat confdefs.h >>conftest.$ac_ext
6241 + cat >>conftest.$ac_ext <<_ACEOF
6242 + /* end confdefs.h.  */
6243 + #include <string.h>
6244 +
6245 + _ACEOF
6246 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6247 +  $EGREP "memchr" >/dev/null 2>&1; then
6248 +  :
6249 + else
6250 +  ac_cv_header_stdc=no
6251 + fi
6252 + rm -f conftest*
6253 +
6254 + fi
6255 +
6256 + if test $ac_cv_header_stdc = yes; then
6257 +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6258 +  cat >conftest.$ac_ext <<_ACEOF
6259 + #line $LINENO "configure"
6260 + /* confdefs.h.  */
6261 + _ACEOF
6262 + cat confdefs.h >>conftest.$ac_ext
6263 + cat >>conftest.$ac_ext <<_ACEOF
6264 + /* end confdefs.h.  */
6265 + #include <stdlib.h>
6266 +
6267 + _ACEOF
6268 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6269 +  $EGREP "free" >/dev/null 2>&1; then
6270 +  :
6271 + else
6272 +  ac_cv_header_stdc=no
6273 + fi
6274 + rm -f conftest*
6275 +
6276 + fi
6277 +
6278 + if test $ac_cv_header_stdc = yes; then
6279 +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6280 +  if test "$cross_compiling" = yes; then
6281 +  :
6282 + else
6283 +  cat >conftest.$ac_ext <<_ACEOF
6284 + #line $LINENO "configure"
6285 + /* confdefs.h.  */
6286 + _ACEOF
6287 + cat confdefs.h >>conftest.$ac_ext
6288 + cat >>conftest.$ac_ext <<_ACEOF
6289 + /* end confdefs.h.  */
6290 + #include <ctype.h>
6291 + #if ((' ' & 0x0FF) == 0x020)
6292 + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6293 + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6294 + #else
6295 + # define ISLOWER(c) \
6296 +                   (('a' <= (c) && (c) <= 'i') \
6297 +                     || ('j' <= (c) && (c) <= 'r') \
6298 +                     || ('s' <= (c) && (c) <= 'z'))
6299 + # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6300 + #endif
6301 +
6302 + #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6303 + int
6304 + main ()
6305 + {
6306 +  int i;
6307 +  for (i = 0; i < 256; i++)
6308 +    if (XOR (islower (i), ISLOWER (i))
6309 +        || toupper (i) != TOUPPER (i))
6310 +      exit(2);
6311 +  exit (0);
6312 + }
6313 + _ACEOF
6314 + rm -f conftest$ac_exeext
6315 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6316 +  (eval $ac_link) 2>&5
6317 +  ac_status=$?
6318 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6320 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 +  (eval $ac_try) 2>&5
6322 +  ac_status=$?
6323 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 +  (exit $ac_status); }; }; then
6325 +  :
6326 + else
6327 +  echo "$as_me: program exited with status $ac_status" >&5
6328 + echo "$as_me: failed program was:" >&5
6329 + sed 's/^/| /' conftest.$ac_ext >&5
6330 +
6331 + ( exit $ac_status )
6332 + ac_cv_header_stdc=no
6333 + fi
6334 + rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6335 + fi
6336 + fi
6337 + fi
6338 + echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6339 + echo "${ECHO_T}$ac_cv_header_stdc" >&6
6340 + if test $ac_cv_header_stdc = yes; then
6341  
6342 + cat >>confdefs.h <<\_ACEOF
6343 + #define STDC_HEADERS 1
6344 + _ACEOF
6345 +
6346 + fi
6347 +
6348 + # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6349 +
6350 +
6351 +
6352 +
6353 +
6354 +
6355 +
6356 +
6357 +
6358 + for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6359 +                  inttypes.h stdint.h unistd.h
6360 + do
6361 + as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6362 + echo "$as_me:$LINENO: checking for $ac_header" >&5
6363 + echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6364 + if eval "test \"\${$as_ac_Header+set}\" = set"; then
6365 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6366 + else
6367 +  cat >conftest.$ac_ext <<_ACEOF
6368 + #line $LINENO "configure"
6369 + /* confdefs.h.  */
6370 + _ACEOF
6371 + cat confdefs.h >>conftest.$ac_ext
6372 + cat >>conftest.$ac_ext <<_ACEOF
6373 + /* end confdefs.h.  */
6374 + $ac_includes_default
6375 +
6376 + #include <$ac_header>
6377 + _ACEOF
6378 + rm -f conftest.$ac_objext
6379 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380 +  (eval $ac_compile) 2>&5
6381 +  ac_status=$?
6382 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 +  (exit $ac_status); } &&
6384 +         { ac_try='test -s conftest.$ac_objext'
6385 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 +  (eval $ac_try) 2>&5
6387 +  ac_status=$?
6388 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 +  (exit $ac_status); }; }; then
6390 +  eval "$as_ac_Header=yes"
6391 + else
6392 +  echo "$as_me: failed program was:" >&5
6393 + sed 's/^/| /' conftest.$ac_ext >&5
6394 +
6395 + eval "$as_ac_Header=no"
6396 + fi
6397 + rm -f conftest.$ac_objext conftest.$ac_ext
6398 + fi
6399 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6400 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6401 + if test `eval echo '${'$as_ac_Header'}'` = yes; then
6402 +  cat >>confdefs.h <<_ACEOF
6403 + #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6404 + _ACEOF
6405 +
6406 + fi
6407 +
6408 + done
6409 +
6410 +
6411 +
6412 +
6413 +
6414   # Check whether --with-sprng_prefix or --without-sprng_prefix was given.
6415   if test "${with_sprng_prefix+set}" = set; then
6416    withval="$with_sprng_prefix"
# Line 5013 | Line 6419 | fi;
6419    sprng_prefix="/usr/local"
6420   fi;
6421  
6422 < # Check whether --with-sprng_lib_prefix or --without-sprng_lib_prefix was given.
6423 < if test "${with_sprng_lib_prefix+set}" = set; then
6424 <  withval="$with_sprng_lib_prefix"
6425 <  sprng_lib_prefix="$withval"
6422 > # Check whether --with-sprng-libdir or --without-sprng-libdir was given.
6423 > if test "${with_sprng_libdir+set}" = set; then
6424 >  withval="$with_sprng_libdir"
6425 >  sprng_libdir="$withval"
6426   else
6427 <  sprng_lib_prefix="/usr/local/lib"
6427 >  sprng_libdir="/usr/local/lib"
6428   fi;
6429  
6430 < # Check whether --with-sprng_include_prefix or --without-sprng_include_prefix was given.
6431 < if test "${with_sprng_include_prefix+set}" = set; then
6432 <  withval="$with_sprng_include_prefix"
6433 <  sprng_include_prefix="$withval"
6430 > # Check whether --with-sprng-include or --without-sprng-include was given.
6431 > if test "${with_sprng_include+set}" = set; then
6432 >  withval="$with_sprng_include"
6433 >  sprng_include="$withval"
6434   else
6435 <  sprng_include_prefix="/usr/local/include/sprng"
6435 >  sprng_include="/usr/local/include/sprng"
6436   fi;
6437  
6438 <  if test x$sprng_lib_prefix = x ; then
6439 <    sprng_lib_prefix=${sprng_prefix}/lib
6438 >  if test x$sprng_libdir = x ; then
6439 >    sprng_libdir=${sprng_prefix}/lib
6440    fi
6441  
6442 <  if test x$sprng_include_prefix = x ; then
6443 <    sprng_include_prefix=${sprng_prefix}/include
6442 >  if test x$sprng_include = x ; then
6443 >    sprng_include=${sprng_prefix}/include
6444    fi
6445  
6446 <  echo "$as_me:5040: checking for SPRNG include files in $sprng_include_prefix" >&5
6447 < echo $ECHO_N "checking for SPRNG include files in $sprng_include_prefix... $ECHO_C" >&6
6448 <  if test -f ${sprng_include_prefix}/sprng.h; then
6446 >  echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include" >&5
6447 > echo $ECHO_N "checking for SPRNG include files in $sprng_include... $ECHO_C" >&6
6448 >  if test -f ${sprng_include}/sprng.h; then
6449      have_sprngincl=yes
6450 <    echo "$as_me:5044: result: yes" >&5
6450 >    echo "$as_me:$LINENO: result: yes" >&5
6451   echo "${ECHO_T}yes" >&6
6452    else
6453      have_sprngincl=no
6454 <    echo "$as_me:5048: result: no" >&5
6454 >    echo "$as_me:$LINENO: result: no" >&5
6455   echo "${ECHO_T}no" >&6
6456 <    { { echo "$as_me:5050: error: Could not locate the SPRNG include files" >&5
6456 >    { { echo "$as_me:$LINENO: error: Could not locate the SPRNG include files" >&5
6457   echo "$as_me: error: Could not locate the SPRNG include files" >&2;}
6458     { (exit 1); exit 1; }; }
6459    fi
6460  
6461 <  echo "$as_me:5055: checking for SPRNG libraries in $sprng_lib_prefix" >&5
6462 < echo $ECHO_N "checking for SPRNG libraries in $sprng_lib_prefix... $ECHO_C" >&6
6463 <  if test -f ${sprng_lib_prefix}/libsprng.a; then
6461 >  echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_libdir" >&5
6462 > echo $ECHO_N "checking for SPRNG libraries in $sprng_libdir... $ECHO_C" >&6
6463 >  if test -f ${sprng_libdir}/libsprng.a; then
6464      have_sprnglib=yes
6465 <    echo "$as_me:5059: result: yes" >&5
6465 >    echo "$as_me:$LINENO: result: yes" >&5
6466   echo "${ECHO_T}yes" >&6
6467    else
6468      have_sprnglib=no
6469 <    echo "$as_me:5063: result: no" >&5
6469 >    echo "$as_me:$LINENO: result: no" >&5
6470   echo "${ECHO_T}no" >&6
6471 <    { { echo "$as_me:5065: error: Could not locate the SPRNG libraries" >&5
6471 >    { { echo "$as_me:$LINENO: error: Could not locate the SPRNG libraries" >&5
6472   echo "$as_me: error: Could not locate the SPRNG libraries" >&2;}
6473     { (exit 1); exit 1; }; }
6474    fi
6475  
6476 +
6477 +
6478    ac_ext=c
6479   ac_cpp='$CPP $CPPFLAGS'
6480   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5074 | Line 6482 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6482   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6483  
6484    ac_save_CPPFLAGS=$CPPFLAGS
6485 <  CPPFLAGS="${CPPFLAGS} -I${sprng_include_prefix}"
6485 >  CPPFLAGS="${CPPFLAGS} -I${sprng_include}"
6486    ac_save_LDFLAGS=$LDFLAGS
6487 <  LDFLAGS="${LDFLAGS} -L${sprng_lib_prefix} -lsprng"
6488 <  echo "$as_me:5080: checking for sprng.h" >&5
6487 >  LDFLAGS="${LDFLAGS} -L${sprng_libdir} -lsprng"
6488 >  if test "${ac_cv_header_sprng_h+set}" = set; then
6489 >  echo "$as_me:$LINENO: checking for sprng.h" >&5
6490   echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6491   if test "${ac_cv_header_sprng_h+set}" = set; then
6492    echo $ECHO_N "(cached) $ECHO_C" >&6
6493 + fi
6494 + echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6495 + echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6496   else
6497 <  cat >conftest.$ac_ext <<_ACEOF
6498 < #line 5086 "configure"
6499 < #include "confdefs.h"
6497 >  # Is the header compilable?
6498 > echo "$as_me:$LINENO: checking sprng.h usability" >&5
6499 > echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6
6500 > cat >conftest.$ac_ext <<_ACEOF
6501 > #line $LINENO "configure"
6502 > /* confdefs.h.  */
6503 > _ACEOF
6504 > cat confdefs.h >>conftest.$ac_ext
6505 > cat >>conftest.$ac_ext <<_ACEOF
6506 > /* end confdefs.h.  */
6507 > $ac_includes_default
6508   #include <sprng.h>
6509   _ACEOF
6510 < if { (eval echo "$as_me:5090: \"$ac_cpp conftest.$ac_ext\"") >&5
6510 > rm -f conftest.$ac_objext
6511 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6512 >  (eval $ac_compile) 2>&5
6513 >  ac_status=$?
6514 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 >  (exit $ac_status); } &&
6516 >         { ac_try='test -s conftest.$ac_objext'
6517 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 >  (eval $ac_try) 2>&5
6519 >  ac_status=$?
6520 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 >  (exit $ac_status); }; }; then
6522 >  ac_header_compiler=yes
6523 > else
6524 >  echo "$as_me: failed program was:" >&5
6525 > sed 's/^/| /' conftest.$ac_ext >&5
6526 >
6527 > ac_header_compiler=no
6528 > fi
6529 > rm -f conftest.$ac_objext conftest.$ac_ext
6530 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6531 > echo "${ECHO_T}$ac_header_compiler" >&6
6532 >
6533 > # Is the header present?
6534 > echo "$as_me:$LINENO: checking sprng.h presence" >&5
6535 > echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6
6536 > cat >conftest.$ac_ext <<_ACEOF
6537 > #line $LINENO "configure"
6538 > /* confdefs.h.  */
6539 > _ACEOF
6540 > cat confdefs.h >>conftest.$ac_ext
6541 > cat >>conftest.$ac_ext <<_ACEOF
6542 > /* end confdefs.h.  */
6543 > #include <sprng.h>
6544 > _ACEOF
6545 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6546    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6547    ac_status=$?
6548 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6548 >  grep -v '^ *+' conftest.er1 >conftest.err
6549    rm -f conftest.er1
6550    cat conftest.err >&5
6551 <  echo "$as_me:5096: \$? = $ac_status" >&5
6551 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552    (exit $ac_status); } >/dev/null; then
6553    if test -s conftest.err; then
6554      ac_cpp_err=$ac_c_preproc_warn_flag
6555    else
6556      ac_cpp_err=
6557    fi
6558 + else
6559 +  ac_cpp_err=yes
6560 + fi
6561 + if test -z "$ac_cpp_err"; then
6562 +  ac_header_preproc=yes
6563 + else
6564 +  echo "$as_me: failed program was:" >&5
6565 + sed 's/^/| /' conftest.$ac_ext >&5
6566 +
6567 +  ac_header_preproc=no
6568 + fi
6569 + rm -f conftest.err conftest.$ac_ext
6570 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6571 + echo "${ECHO_T}$ac_header_preproc" >&6
6572 +
6573 + # So?  What about this header?
6574 + case $ac_header_compiler:$ac_header_preproc in
6575 +  yes:no )
6576 +    { echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5
6577 + echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6578 +    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6579 + echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6580 +    (
6581 +      cat <<\_ASBOX
6582 + ## ------------------------------------ ##
6583 + ## Report this to bug-autoconf@gnu.org. ##
6584 + ## ------------------------------------ ##
6585 + _ASBOX
6586 +    ) |
6587 +      sed "s/^/$as_me: WARNING:     /" >&2
6588 +    ;;
6589 +  no:yes )
6590 +    { echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5
6591 + echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;}
6592 +    { echo "$as_me:$LINENO: WARNING: sprng.h: check for missing prerequisite headers?" >&5
6593 + echo "$as_me: WARNING: sprng.h: check for missing prerequisite headers?" >&2;}
6594 +    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6595 + echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6596 +    (
6597 +      cat <<\_ASBOX
6598 + ## ------------------------------------ ##
6599 + ## Report this to bug-autoconf@gnu.org. ##
6600 + ## ------------------------------------ ##
6601 + _ASBOX
6602 +    ) |
6603 +      sed "s/^/$as_me: WARNING:     /" >&2
6604 +    ;;
6605 + esac
6606 + echo "$as_me:$LINENO: checking for sprng.h" >&5
6607 + echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6608 + if test "${ac_cv_header_sprng_h+set}" = set; then
6609 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6610   else
6611 <  ac_cpp_err=yes
6611 >  ac_cv_header_sprng_h=$ac_header_preproc
6612   fi
6613 < if test -z "$ac_cpp_err"; then
5107 <  ac_cv_header_sprng_h=yes
5108 < else
5109 <  echo "$as_me: failed program was:" >&5
5110 <  cat conftest.$ac_ext >&5
5111 <  ac_cv_header_sprng_h=no
5112 < fi
5113 < rm -f conftest.err conftest.$ac_ext
5114 < fi
5115 < echo "$as_me:5115: result: $ac_cv_header_sprng_h" >&5
6613 > echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6614   echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6615 +
6616 + fi
6617   if test $ac_cv_header_sprng_h = yes; then
6618  
6619 <    echo "$as_me:5119: checking for init_rng in -lsprng" >&5
6619 >    echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5
6620   echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6
6621   if test "${ac_cv_lib_sprng_init_rng+set}" = set; then
6622    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5124 | Line 6624 | cat >conftest.$ac_ext <<_ACEOF
6624    ac_check_lib_save_LIBS=$LIBS
6625   LIBS="-lsprng  $LIBS"
6626   cat >conftest.$ac_ext <<_ACEOF
6627 < #line 5127 "configure"
6628 < #include "confdefs.h"
6627 > #line $LINENO "configure"
6628 > /* confdefs.h.  */
6629 > _ACEOF
6630 > cat confdefs.h >>conftest.$ac_ext
6631 > cat >>conftest.$ac_ext <<_ACEOF
6632 > /* end confdefs.h.  */
6633  
6634   /* Override any gcc2 internal prototype to avoid an error.  */
6635   #ifdef __cplusplus
# Line 5143 | Line 6647 | rm -f conftest.$ac_objext conftest$ac_exeext
6647   }
6648   _ACEOF
6649   rm -f conftest.$ac_objext conftest$ac_exeext
6650 < if { (eval echo "$as_me:5146: \"$ac_link\"") >&5
6650 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651    (eval $ac_link) 2>&5
6652    ac_status=$?
6653 <  echo "$as_me:5149: \$? = $ac_status" >&5
6653 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654    (exit $ac_status); } &&
6655           { ac_try='test -s conftest$ac_exeext'
6656 <  { (eval echo "$as_me:5152: \"$ac_try\"") >&5
6656 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657    (eval $ac_try) 2>&5
6658    ac_status=$?
6659 <  echo "$as_me:5155: \$? = $ac_status" >&5
6659 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660    (exit $ac_status); }; }; then
6661    ac_cv_lib_sprng_init_rng=yes
6662   else
6663    echo "$as_me: failed program was:" >&5
6664 < cat conftest.$ac_ext >&5
6664 > sed 's/^/| /' conftest.$ac_ext >&5
6665 >
6666   ac_cv_lib_sprng_init_rng=no
6667   fi
6668   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6669   LIBS=$ac_check_lib_save_LIBS
6670   fi
6671 < echo "$as_me:5166: result: $ac_cv_lib_sprng_init_rng" >&5
6671 > echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
6672   echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
6673   if test $ac_cv_lib_sprng_init_rng = yes; then
6674 <  SPRNG_LIBDIR="${sprng_lib_prefix}"
6675 <                     SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include_prefix}"
6674 >  SPRNG_LIBDIR="${sprng_libdir}"
6675 >                     SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include}"
6676                       HAVE_SPRNG="yes"
6677   fi
6678  
6679   fi
6680  
6681 +
6682    CPPFLAGS=$ac_save_CPPFLAGS
6683    LDFLAGS=$ac_save_LDFLAGS
6684 <  ac_ext=f90
6685 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6686 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6687 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6684 >  ac_ext=c
6685 > ac_cpp='$CPP $CPPFLAGS'
6686 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6687 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6688 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6689  
6690 +
6691    if test x_$HAVE_SPRNG != x_yes; then
6692 <        { { echo "$as_me:5184: error: Can't build with SPRNG" >&5
6692 >        { { echo "$as_me:$LINENO: error: Can't build with SPRNG" >&5
6693   echo "$as_me: error: Can't build with SPRNG" >&2;}
6694     { (exit 1); exit 1; }; }
6695    fi
6696  
6697 < echo "$as_me:5189: checking if MKL is wanted" >&5
6697 >
6698 >
6699 >
6700 >
6701 > echo "$as_me:$LINENO: checking if MKL is wanted" >&5
6702   echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6
6703  
6704   # Check whether --with-mkl or --without-mkl was given.
6705   if test "${with_mkl+set}" = set; then
6706    withval="$with_mkl"
6707 <     echo "$as_me:5195: result: yes" >&5
6707 >     echo "$as_me:$LINENO: result: yes" >&5
6708   echo "${ECHO_T}yes" >&6
6709 <    for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do
6709 >    for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do
6710          mkldir="$dir"
6711          if test -f "$dir/include/mkl.h"; then
6712              found_mkl="yes";
# Line 5202 | Line 6714 | echo "${ECHO_T}yes" >&6
6714          fi
6715      done
6716      if test x_$found_mkl != x_yes; then
6717 <        { { echo "$as_me:5205: error: Cannot find MKL includes" >&5
6717 >        { { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5
6718   echo "$as_me: error: Cannot find MKL includes" >&2;}
6719     { (exit 1); exit 1; }; }
6720      else
6721          printf "MKL includes found in $mkldir/include\n";
6722      fi
6723  
6724 +
6725 +
6726    ac_ext=c
6727   ac_cpp='$CPP $CPPFLAGS'
6728   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5219 | Line 6733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6733    CPPFLAGS="${CPPFLAGS} -I${mkldir}/include"
6734    ac_save_LDFLAGS=$LDFLAGS
6735    LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide"
6736 <  echo "$as_me:5222: checking for mkl.h" >&5
6736 >  if test "${ac_cv_header_mkl_h+set}" = set; then
6737 >  echo "$as_me:$LINENO: checking for mkl.h" >&5
6738   echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
6739   if test "${ac_cv_header_mkl_h+set}" = set; then
6740    echo $ECHO_N "(cached) $ECHO_C" >&6
6741 + fi
6742 + echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
6743 + echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
6744   else
6745 <  cat >conftest.$ac_ext <<_ACEOF
6746 < #line 5228 "configure"
6747 < #include "confdefs.h"
6745 >  # Is the header compilable?
6746 > echo "$as_me:$LINENO: checking mkl.h usability" >&5
6747 > echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
6748 > cat >conftest.$ac_ext <<_ACEOF
6749 > #line $LINENO "configure"
6750 > /* confdefs.h.  */
6751 > _ACEOF
6752 > cat confdefs.h >>conftest.$ac_ext
6753 > cat >>conftest.$ac_ext <<_ACEOF
6754 > /* end confdefs.h.  */
6755 > $ac_includes_default
6756   #include <mkl.h>
6757   _ACEOF
6758 < if { (eval echo "$as_me:5232: \"$ac_cpp conftest.$ac_ext\"") >&5
6758 > rm -f conftest.$ac_objext
6759 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760 >  (eval $ac_compile) 2>&5
6761 >  ac_status=$?
6762 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 >  (exit $ac_status); } &&
6764 >         { ac_try='test -s conftest.$ac_objext'
6765 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 >  (eval $ac_try) 2>&5
6767 >  ac_status=$?
6768 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 >  (exit $ac_status); }; }; then
6770 >  ac_header_compiler=yes
6771 > else
6772 >  echo "$as_me: failed program was:" >&5
6773 > sed 's/^/| /' conftest.$ac_ext >&5
6774 >
6775 > ac_header_compiler=no
6776 > fi
6777 > rm -f conftest.$ac_objext conftest.$ac_ext
6778 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6779 > echo "${ECHO_T}$ac_header_compiler" >&6
6780 >
6781 > # Is the header present?
6782 > echo "$as_me:$LINENO: checking mkl.h presence" >&5
6783 > echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
6784 > cat >conftest.$ac_ext <<_ACEOF
6785 > #line $LINENO "configure"
6786 > /* confdefs.h.  */
6787 > _ACEOF
6788 > cat confdefs.h >>conftest.$ac_ext
6789 > cat >>conftest.$ac_ext <<_ACEOF
6790 > /* end confdefs.h.  */
6791 > #include <mkl.h>
6792 > _ACEOF
6793 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6794    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6795    ac_status=$?
6796 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6796 >  grep -v '^ *+' conftest.er1 >conftest.err
6797    rm -f conftest.er1
6798    cat conftest.err >&5
6799 <  echo "$as_me:5238: \$? = $ac_status" >&5
6799 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800    (exit $ac_status); } >/dev/null; then
6801    if test -s conftest.err; then
6802      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 5246 | Line 6807 | if test -z "$ac_cpp_err"; then
6807    ac_cpp_err=yes
6808   fi
6809   if test -z "$ac_cpp_err"; then
6810 <  ac_cv_header_mkl_h=yes
6810 >  ac_header_preproc=yes
6811   else
6812    echo "$as_me: failed program was:" >&5
6813 <  cat conftest.$ac_ext >&5
6814 <  ac_cv_header_mkl_h=no
6813 > sed 's/^/| /' conftest.$ac_ext >&5
6814 >
6815 >  ac_header_preproc=no
6816   fi
6817   rm -f conftest.err conftest.$ac_ext
6818 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6819 + echo "${ECHO_T}$ac_header_preproc" >&6
6820 +
6821 + # So?  What about this header?
6822 + case $ac_header_compiler:$ac_header_preproc in
6823 +  yes:no )
6824 +    { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6825 + echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6826 +    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
6827 + echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
6828 +    (
6829 +      cat <<\_ASBOX
6830 + ## ------------------------------------ ##
6831 + ## Report this to bug-autoconf@gnu.org. ##
6832 + ## ------------------------------------ ##
6833 + _ASBOX
6834 +    ) |
6835 +      sed "s/^/$as_me: WARNING:     /" >&2
6836 +    ;;
6837 +  no:yes )
6838 +    { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
6839 + echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
6840 +    { echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5
6841 + echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;}
6842 +    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
6843 + echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
6844 +    (
6845 +      cat <<\_ASBOX
6846 + ## ------------------------------------ ##
6847 + ## Report this to bug-autoconf@gnu.org. ##
6848 + ## ------------------------------------ ##
6849 + _ASBOX
6850 +    ) |
6851 +      sed "s/^/$as_me: WARNING:     /" >&2
6852 +    ;;
6853 + esac
6854 + echo "$as_me:$LINENO: checking for mkl.h" >&5
6855 + echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
6856 + if test "${ac_cv_header_mkl_h+set}" = set; then
6857 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6858 + else
6859 +  ac_cv_header_mkl_h=$ac_header_preproc
6860   fi
6861 < echo "$as_me:5257: result: $ac_cv_header_mkl_h" >&5
6861 > echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
6862   echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
6863 +
6864 + fi
6865   if test $ac_cv_header_mkl_h = yes; then
6866  
6867 <    echo "$as_me:5261: checking for vslNewStream in -lmkl" >&5
6867 >    echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5
6868   echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6
6869   if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then
6870    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5266 | Line 6872 | cat >conftest.$ac_ext <<_ACEOF
6872    ac_check_lib_save_LIBS=$LIBS
6873   LIBS="-lmkl  $LIBS"
6874   cat >conftest.$ac_ext <<_ACEOF
6875 < #line 5269 "configure"
6876 < #include "confdefs.h"
6875 > #line $LINENO "configure"
6876 > /* confdefs.h.  */
6877 > _ACEOF
6878 > cat confdefs.h >>conftest.$ac_ext
6879 > cat >>conftest.$ac_ext <<_ACEOF
6880 > /* end confdefs.h.  */
6881  
6882   /* Override any gcc2 internal prototype to avoid an error.  */
6883   #ifdef __cplusplus
# Line 5285 | Line 6895 | rm -f conftest.$ac_objext conftest$ac_exeext
6895   }
6896   _ACEOF
6897   rm -f conftest.$ac_objext conftest$ac_exeext
6898 < if { (eval echo "$as_me:5288: \"$ac_link\"") >&5
6898 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6899    (eval $ac_link) 2>&5
6900    ac_status=$?
6901 <  echo "$as_me:5291: \$? = $ac_status" >&5
6901 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902    (exit $ac_status); } &&
6903           { ac_try='test -s conftest$ac_exeext'
6904 <  { (eval echo "$as_me:5294: \"$ac_try\"") >&5
6904 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905    (eval $ac_try) 2>&5
6906    ac_status=$?
6907 <  echo "$as_me:5297: \$? = $ac_status" >&5
6907 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908    (exit $ac_status); }; }; then
6909    ac_cv_lib_mkl_vslNewStream=yes
6910   else
6911    echo "$as_me: failed program was:" >&5
6912 < cat conftest.$ac_ext >&5
6912 > sed 's/^/| /' conftest.$ac_ext >&5
6913 >
6914   ac_cv_lib_mkl_vslNewStream=no
6915   fi
6916   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6917   LIBS=$ac_check_lib_save_LIBS
6918   fi
6919 < echo "$as_me:5308: result: $ac_cv_lib_mkl_vslNewStream" >&5
6919 > echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
6920   echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6
6921   if test $ac_cv_lib_mkl_vslNewStream = yes; then
6922    MKL_LIBDIR="${mkldir}/lib/32",
# Line 5313 | Line 6924 | fi
6924                       HAVE_MKL="yes"
6925   fi
6926  
6927 +
6928   else
6929    MKL_INC="-I${mkldir}/include"
6930   fi
6931  
6932 +
6933    CPPFLAGS=$ac_save_CPPFLAGS
6934    LDFLAGS=$ac_save_LDFLAGS
6935 <  ac_ext=f90
6936 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6937 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6938 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6935 >  ac_ext=c
6936 > ac_cpp='$CPP $CPPFLAGS'
6937 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6940  
6941 +
6942    if test x_$HAVE_MKL != x_yes; then
6943 <        { { echo "$as_me:5328: error: Can't build with MKL" >&5
6943 >        { { echo "$as_me:$LINENO: error: Can't build with MKL" >&5
6944   echo "$as_me: error: Can't build with MKL" >&2;}
6945     { (exit 1); exit 1; }; }
6946    fi
6947  
6948 +
6949 +
6950 +
6951 +
6952   else
6953  
6954 <    echo "$as_me:5335: result: no" >&5
6954 >    echo "$as_me:$LINENO: result: no" >&5
6955   echo "${ECHO_T}no" >&6
6956  
6957   fi;
6958  
5340 #AC_CHECK_MPI_F90MOD
6959  
6960 +
6961 +
6962 +
6963   OBJEXT=".$OBJEXT"
6964  
6965   OOPSE=oopse
# Line 5362 | Line 6983 | MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
6983  
6984   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
6985  
6986 < SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder"
6986 > SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps third-party shapes"
6987  
6988 < #CFLAGS=${CFLAGS-""}
6989 < #CXXFLAGS=${CXXFLAGS-""}
6990 < #CPPFLAGS=${CPPFLAGS-""}
6991 < #FFLAGS=${FFLAGS-""}
6992 < #LDFLAGS=${LDFLAGS-""}
6993 < #OPTIMIZE=${OPTIMIZE-"-O"}
6994 < #DEBUG=${DEBUG-"-g"}
6988 > CFLAGS=${CFLAGS-""}
6989 > CXXFLAGS=${CXXFLAGS-""}
6990 > CPPFLAGS=${CPPFLAGS-""}
6991 > FFLAGS=${FFLAGS-""}
6992 > F90FLAGS=${F90FLAGS-""}
6993 > LDFLAGS=${LDFLAGS-""}
6994 > DEBUG=${DEBUG-"-g"}
6995  
6996   case $debug in
6997 <  true)
5377 <     CFLAGS="$DEBUG $CFLAGS"
5378 <     CXXFLAGS="$DEBUG $CXXFLAGS"
6997 >  1)
6998       FFLAGS="$DEBUG $FFLAGS"
6999       F90FLAGS="$DEBUG $F90FLAGS"
7000       ;;
7001    *)
5383     CFLAGS="$OPTIMIZE $CFLAGS"
5384     CXXFLAGS="$OPTIMIZE $CXXFLAGS"
5385     FFLAGS="$OPTIMIZE $FFLAGS"
5386     F90FLAGS="$OPTIMIZE $F90FLAGS"
7002       ;;
7003   esac
7004  
5390 ac_config_headers="$ac_config_headers libmdtools/config.h"
7005  
5392 ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile"
7006  
7007 +
7008 +
7009 +
7010 +
7011 +
7012 +
7013 +
7014 +
7015 +
7016 +
7017 +
7018 +
7019 +
7020 +
7021 +          ac_config_headers="$ac_config_headers libmdtools/config.h"
7022 +
7023 +                                                                                                                                                                          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 shapes/Makefile"
7024 +
7025 +
7026   cat >confcache <<\_ACEOF
7027   # This file is a shell script that caches the results of configure
7028   # tests run on this system so they can be shared between configure
# Line 5401 | Line 7033 | cat >confcache <<\_ACEOF
7033   # config.status only pays attention to the cache file if you give it
7034   # the --recheck option to rerun configure.
7035   #
7036 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
7036 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
7037   # loading this file, other *unset* `ac_cv_foo' will be assigned the
7038   # following values.
7039  
# Line 5420 | Line 7052 | _ACEOF
7052        # substitution turns \\\\ into \\, and sed turns \\ into \).
7053        sed -n \
7054          "s/'/'\\\\''/g;
7055 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7055 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7056        ;;
7057      *)
7058        # `set' quotes correctly as required by POSIX, so do not add quotes.
7059        sed -n \
7060 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7060 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7061        ;;
7062      esac;
7063   } |
# Line 5436 | Line 7068 | _ACEOF
7068       t end
7069       /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7070       : end' >>confcache
7071 < if cmp -s $cache_file confcache; then :; else
7071 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
7072    if test -w $cache_file; then
7073      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7074      cat confcache >$cache_file
# Line 5467 | Line 7099 | DEFS=-DHAVE_CONFIG_H
7099  
7100   DEFS=-DHAVE_CONFIG_H
7101  
7102 + ac_libobjs=
7103 + ac_ltlibobjs=
7104 + for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7105 +  # 1. Remove the extension, and $U if already installed.
7106 +  ac_i=`echo "$ac_i" |
7107 +         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7108 +  # 2. Add them.
7109 +  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7110 +  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7111 + done
7112 + LIBOBJS=$ac_libobjs
7113 +
7114 + LTLIBOBJS=$ac_ltlibobjs
7115 +
7116 +
7117 +
7118   : ${CONFIG_STATUS=./config.status}
7119   ac_clean_files_save=$ac_clean_files
7120   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7121 < { echo "$as_me:5473: creating $CONFIG_STATUS" >&5
7121 > { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7122   echo "$as_me: creating $CONFIG_STATUS" >&6;}
7123   cat >$CONFIG_STATUS <<_ACEOF
7124   #! $SHELL
7125 < # Generated automatically by configure.
7125 > # Generated by $as_me.
7126   # Run this file to recreate the current configuration.
7127   # Compiler output produced by configure, useful for debugging
7128   # configure, is in config.log if it exists.
7129  
7130   debug=false
7131 + ac_cs_recheck=false
7132 + ac_cs_silent=false
7133   SHELL=\${CONFIG_SHELL-$SHELL}
5484 ac_cs_invocation="\$0 \$@"
5485
7134   _ACEOF
7135  
7136   cat >>$CONFIG_STATUS <<\_ACEOF
7137 + ## --------------------- ##
7138 + ## M4sh Initialization.  ##
7139 + ## --------------------- ##
7140 +
7141   # Be Bourne compatible
7142   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7143    emulate sh
7144    NULLCMD=:
7145 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7146 +  # is contrary to our usage.  Disable this feature.
7147 +  alias -g '${1+"$@"}'='"$@"'
7148   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7149    set -o posix
7150   fi
7151  
7152 + # Support unset when possible.
7153 + if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7154 +  as_unset=unset
7155 + else
7156 +  as_unset=false
7157 + fi
7158 +
7159 +
7160 + # Work around bugs in pre-3.0 UWIN ksh.
7161 + $as_unset ENV MAIL MAILPATH
7162 + PS1='$ '
7163 + PS2='> '
7164 + PS4='+ '
7165 +
7166 + # NLS nuisances.
7167 + for as_var in \
7168 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7169 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7170 +  LC_TELEPHONE LC_TIME
7171 + do
7172 +  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7173 +    eval $as_var=C; export $as_var
7174 +  else
7175 +    $as_unset $as_var
7176 +  fi
7177 + done
7178 +
7179 + # Required to use basename.
7180 + if expr a : '\(a\)' >/dev/null 2>&1; then
7181 +  as_expr=expr
7182 + else
7183 +  as_expr=false
7184 + fi
7185 +
7186 + if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7187 +  as_basename=basename
7188 + else
7189 +  as_basename=false
7190 + fi
7191 +
7192 +
7193   # Name of the executable.
7194 < as_me=`echo "$0" |sed 's,.*[\\/],,'`
7194 > as_me=`$as_basename "$0" ||
7195 > $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7196 >         X"$0" : 'X\(//\)$' \| \
7197 >         X"$0" : 'X\(/\)$' \| \
7198 >         .     : '\(.\)' 2>/dev/null ||
7199 > echo X/"$0" |
7200 >    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7201 >          /^X\/\(\/\/\)$/{ s//\1/; q; }
7202 >          /^X\/\(\/\).*/{ s//\1/; q; }
7203 >          s/.*/./; q'`
7204  
7205 +
7206 + # PATH needs CR, and LINENO needs CR and PATH.
7207 + # Avoid depending upon Character Ranges.
7208 + as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7209 + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7210 + as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7211 + as_cr_digits='0123456789'
7212 + as_cr_alnum=$as_cr_Letters$as_cr_digits
7213 +
7214 + # The user is always right.
7215 + if test "${PATH_SEPARATOR+set}" != set; then
7216 +  echo "#! /bin/sh" >conf$$.sh
7217 +  echo  "exit 0"   >>conf$$.sh
7218 +  chmod +x conf$$.sh
7219 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7220 +    PATH_SEPARATOR=';'
7221 +  else
7222 +    PATH_SEPARATOR=:
7223 +  fi
7224 +  rm -f conf$$.sh
7225 + fi
7226 +
7227 +
7228 +  as_lineno_1=$LINENO
7229 +  as_lineno_2=$LINENO
7230 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7231 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
7232 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7233 +  # Find who we are.  Look in the path if we contain no path at all
7234 +  # relative or not.
7235 +  case $0 in
7236 +    *[\\/]* ) as_myself=$0 ;;
7237 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 + for as_dir in $PATH
7239 + do
7240 +  IFS=$as_save_IFS
7241 +  test -z "$as_dir" && as_dir=.
7242 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7243 + done
7244 +
7245 +       ;;
7246 +  esac
7247 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
7248 +  # in which case we are not to be found in the path.
7249 +  if test "x$as_myself" = x; then
7250 +    as_myself=$0
7251 +  fi
7252 +  if test ! -f "$as_myself"; then
7253 +    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7254 + echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7255 +   { (exit 1); exit 1; }; }
7256 +  fi
7257 +  case $CONFIG_SHELL in
7258 +  '')
7259 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 + for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7261 + do
7262 +  IFS=$as_save_IFS
7263 +  test -z "$as_dir" && as_dir=.
7264 +  for as_base in sh bash ksh sh5; do
7265 +         case $as_dir in
7266 +         /*)
7267 +           if ("$as_dir/$as_base" -c '
7268 +  as_lineno_1=$LINENO
7269 +  as_lineno_2=$LINENO
7270 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7271 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
7272 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7273 +             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7274 +             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7275 +             CONFIG_SHELL=$as_dir/$as_base
7276 +             export CONFIG_SHELL
7277 +             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7278 +           fi;;
7279 +         esac
7280 +       done
7281 + done
7282 + ;;
7283 +  esac
7284 +
7285 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7286 +  # uniformly replaced by the line number.  The first 'sed' inserts a
7287 +  # line-number line before each line; the second 'sed' does the real
7288 +  # work.  The second script uses 'N' to pair each line-number line
7289 +  # with the numbered line, and appends trailing '-' during
7290 +  # substitution so that $LINENO is not a special case at line end.
7291 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7292 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7293 +  sed '=' <$as_myself |
7294 +    sed '
7295 +      N
7296 +      s,$,-,
7297 +      : loop
7298 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7299 +      t loop
7300 +      s,-$,,
7301 +      s,^['$as_cr_digits']*\n,,
7302 +    ' >$as_me.lineno &&
7303 +  chmod +x $as_me.lineno ||
7304 +    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7305 + echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7306 +   { (exit 1); exit 1; }; }
7307 +
7308 +  # Don't try to exec as it changes $[0], causing all sort of problems
7309 +  # (the dirname of $[0] is not the place where we might find the
7310 +  # original and so on.  Autoconf is especially sensible to this).
7311 +  . ./$as_me.lineno
7312 +  # Exit status is that of the last command.
7313 +  exit
7314 + }
7315 +
7316 +
7317 + case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7318 +  *c*,-n*) ECHO_N= ECHO_C='
7319 + ' ECHO_T='      ' ;;
7320 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7321 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7322 + esac
7323 +
7324   if expr a : '\(a\)' >/dev/null 2>&1; then
7325    as_expr=expr
7326   else
# Line 5521 | Line 7345 | rm -f conf$$ conf$$.exe conf$$.file
7345   fi
7346   rm -f conf$$ conf$$.exe conf$$.file
7347  
7348 + if mkdir -p . 2>/dev/null; then
7349 +  as_mkdir_p=:
7350 + else
7351 +  as_mkdir_p=false
7352 + fi
7353 +
7354   as_executable_p="test -f"
7355  
7356 < # Support unset when possible.
7357 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5528 <  as_unset=unset
5529 < else
5530 <  as_unset=false
5531 < fi
7356 > # Sed expression to map a string onto a valid CPP name.
7357 > as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7358  
7359 < # NLS nuisances.
7360 < $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; }
7359 > # Sed expression to map a string onto a valid variable name.
7360 > as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7361  
7362 +
7363   # IFS
7364   # We need space, tab and new line, in precisely that order.
7365   as_nl='
# Line 5547 | Line 7367 | IFS="  $as_nl"
7367   IFS="   $as_nl"
7368  
7369   # CDPATH.
7370 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7370 > $as_unset CDPATH
7371  
7372   exec 6>&1
7373  
7374 + # Open the log real soon, to keep \$[0] and so on meaningful, and to
7375 + # report actual input values of CONFIG_FILES etc. instead of their
7376 + # values after options handling.  Logging --version etc. is OK.
7377 + exec 5>>config.log
7378 + {
7379 +  echo
7380 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7381 + ## Running $as_me. ##
7382 + _ASBOX
7383 + } >&5
7384 + cat >&5 <<_CSEOF
7385 +
7386 + This file was extended by OOPSE $as_me 1.0, which was
7387 + generated by GNU Autoconf 2.57.  Invocation command line was
7388 +
7389 +  CONFIG_FILES    = $CONFIG_FILES
7390 +  CONFIG_HEADERS  = $CONFIG_HEADERS
7391 +  CONFIG_LINKS    = $CONFIG_LINKS
7392 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
7393 +  $ $0 $@
7394 +
7395 + _CSEOF
7396 + echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7397 + echo >&5
7398   _ACEOF
7399  
7400   # Files that config.status was made for.
# Line 5570 | Line 7414 | fi
7414    echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7415   fi
7416  
7417 < cat >>$CONFIG_STATUS <<\EOF
7417 > cat >>$CONFIG_STATUS <<\_ACEOF
7418  
7419   ac_cs_usage="\
7420   \`$as_me' instantiates files from templates according to the
# Line 5580 | Line 7424 | Usage: $0 [OPTIONS] [FILE]...
7424  
7425    -h, --help       print this help, then exit
7426    -V, --version    print version number, then exit
7427 +  -q, --quiet      do not print progress messages
7428    -d, --debug      don't remove temporary files
7429        --recheck    update $as_me by reconfiguring in the same conditions
7430    --file=FILE[:TEMPLATE]
# Line 5594 | Line 7439 | Report bugs to <bug-autoconf@gnu.org>."
7439   $config_headers
7440  
7441   Report bugs to <bug-autoconf@gnu.org>."
7442 < EOF
7442 > _ACEOF
7443  
7444 < cat >>$CONFIG_STATUS <<EOF
7444 > cat >>$CONFIG_STATUS <<_ACEOF
7445   ac_cs_version="\\
7446   OOPSE config.status 1.0
7447 < configured by $0, generated by GNU Autoconf 2.50,
7447 > configured by $0, generated by GNU Autoconf 2.57,
7448    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7449  
7450   Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
# Line 5608 | Line 7453 | INSTALL="$INSTALL"
7453   gives unlimited permission to copy, distribute and modify it."
7454   srcdir=$srcdir
7455   INSTALL="$INSTALL"
7456 < EOF
7456 > _ACEOF
7457  
7458 < cat >>$CONFIG_STATUS <<\EOF
7458 > cat >>$CONFIG_STATUS <<\_ACEOF
7459   # If no file are specified by the user, then we need to provide default
7460   # value.  By we need to know if files were specified by the user.
7461   ac_need_defaults=:
# Line 5620 | Line 7465 | do
7465    --*=*)
7466      ac_option=`expr "x$1" : 'x\([^=]*\)='`
7467      ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7468 <    shift
5624 <    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5625 <    shift
7468 >    ac_shift=:
7469      ;;
7470 <  -*);;
7470 >  -*)
7471 >    ac_option=$1
7472 >    ac_optarg=$2
7473 >    ac_shift=shift
7474 >    ;;
7475    *) # This is not an option, so the user has probably given explicit
7476       # arguments.
7477 +     ac_option=$1
7478       ac_need_defaults=false;;
7479    esac
7480  
7481 <  case $1 in
7481 >  case $ac_option in
7482    # Handling of the options.
7483 < EOF
7484 < cat >>$CONFIG_STATUS <<EOF
7483 > _ACEOF
7484 > cat >>$CONFIG_STATUS <<\_ACEOF
7485    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7486 <    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
7486 >    ac_cs_recheck=: ;;
7487    --version | --vers* | -V )
7488      echo "$ac_cs_version"; exit 0 ;;
7489    --he | --h)
7490      # Conflict between --help and --header
7491 <    { { echo "$as_me:5646: error: ambiguous option: $1
7491 >    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7492   Try \`$0 --help' for more information." >&5
7493   echo "$as_me: error: ambiguous option: $1
7494   Try \`$0 --help' for more information." >&2;}
# Line 5653 | Line 7498 | Try \`$0 --help' for more information." >&2;}
7498    --debug | --d* | -d )
7499      debug=: ;;
7500    --file | --fil | --fi | --f )
7501 <    shift
7502 <    CONFIG_FILES="$CONFIG_FILES $1"
7501 >    $ac_shift
7502 >    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7503      ac_need_defaults=false;;
7504    --header | --heade | --head | --hea )
7505 <    shift
7506 <    CONFIG_HEADERS="$CONFIG_HEADERS $1"
7505 >    $ac_shift
7506 >    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7507      ac_need_defaults=false;;
7508 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7509 +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7510 +    ac_cs_silent=: ;;
7511  
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
7512    # This is an error.
7513 <  -*) { { echo "$as_me:5682: error: unrecognized option: $1
7513 >  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7514   Try \`$0 --help' for more information." >&5
7515   echo "$as_me: error: unrecognized option: $1
7516   Try \`$0 --help' for more information." >&2;}
7517     { (exit 1); exit 1; }; } ;;
7518 <  *) { { echo "$as_me:5687: error: invalid argument: $1" >&5
7519 < echo "$as_me: error: invalid argument: $1" >&2;}
7520 <   { (exit 1); exit 1; }; };;
7518 >
7519 >  *) ac_config_targets="$ac_config_targets $1" ;;
7520 >
7521    esac
7522    shift
7523   done
7524  
7525 < exec 5>>config.log
7526 < cat >&5 << _ACEOF
7525 > ac_configure_extra_args=
7526 >
7527 > if $ac_cs_silent; then
7528 >  exec 6>/dev/null
7529 >  ac_configure_extra_args="$ac_configure_extra_args --silent"
7530 > fi
7531  
7532 < ## ----------------------- ##
7533 < ## Running config.status.  ##
7534 < ## ----------------------- ##
7532 > _ACEOF
7533 > cat >>$CONFIG_STATUS <<_ACEOF
7534 > if \$ac_cs_recheck; then
7535 >  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7536 >  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7537 > fi
7538  
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`
5704
7539   _ACEOF
5706 EOF
7540  
7541 < cat >>$CONFIG_STATUS <<\EOF
7541 >
7542 >
7543 >
7544 >
7545 > cat >>$CONFIG_STATUS <<\_ACEOF
7546 > for ac_config_target in $ac_config_targets
7547 > do
7548 >  case "$ac_config_target" in
7549 >  # Handling of arguments.
7550 >  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7551 >  "libBASS/Makefile" ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;;
7552 >  "libmdtools/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;;
7553 >  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7554 >  "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
7555 >  "utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
7556 >  "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7557 >  "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7558 >  "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7559 >  "third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
7560 >  "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7561 >  "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7562 >  "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
7563 >  "samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
7564 >  "samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
7565 >  "samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
7566 >  "shapes/Makefile" ) CONFIG_FILES="$CONFIG_FILES shapes/Makefile" ;;
7567 >  "libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
7568 >  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7569 > echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7570 >   { (exit 1); exit 1; }; };;
7571 >  esac
7572 > done
7573 >
7574   # If the user did not use the arguments to specify the items to instantiate,
7575   # then the envvar interface is used.  Set only those that are not.
7576   # We use the long form for the default assignment because of an extremely
# Line 5715 | Line 7580 | fi
7580    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7581   fi
7582  
7583 + # Have a temporary directory for convenience.  Make it in the build tree
7584 + # simply because there is no reason to put it here, and in addition,
7585 + # creating and moving files from /tmp can sometimes cause problems.
7586   # Create a temporary directory, and hook for its removal unless debugging.
7587   $debug ||
7588   {
7589    trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7590 <  trap '{ (exit $?); exit $?; }' 1 2 13 15
7590 >  trap '{ (exit 1); exit 1; }' 1 2 13 15
7591   }
7592  
7593   # Create a (secure) tmp directory for tmp files.
7594 < : ${TMPDIR=/tmp}
7594 >
7595   {
7596 <  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7596 >  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7597    test -n "$tmp" && test -d "$tmp"
7598   }  ||
7599   {
7600 <  tmp=$TMPDIR/cs$$-$RANDOM
7600 >  tmp=./confstat$$-$RANDOM
7601    (umask 077 && mkdir $tmp)
7602   } ||
7603   {
7604 <   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7604 >   echo "$me: cannot create a temporary directory in ." >&2
7605     { (exit 1); exit 1; }
7606   }
7607  
7608 < EOF
7608 > _ACEOF
7609  
7610 < cat >>$CONFIG_STATUS <<EOF
7610 > cat >>$CONFIG_STATUS <<_ACEOF
7611  
7612   #
7613   # CONFIG_FILES section.
# Line 5752 | Line 7620 | s,@SHELL@,$SHELL,;t t
7620    sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7621     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7622   s,@SHELL@,$SHELL,;t t
7623 + s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7624 + s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7625 + s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7626 + s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7627 + s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7628 + s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7629   s,@exec_prefix@,$exec_prefix,;t t
7630   s,@prefix@,$prefix,;t t
7631   s,@program_transform_name@,$program_transform_name,;t t
# Line 5767 | Line 7641 | s,@mandir@,$mandir,;t t
7641   s,@oldincludedir@,$oldincludedir,;t t
7642   s,@infodir@,$infodir,;t t
7643   s,@mandir@,$mandir,;t t
7644 < s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7645 < s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7646 < s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7647 < s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5774 < s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7644 > s,@build_alias@,$build_alias,;t t
7645 > s,@host_alias@,$host_alias,;t t
7646 > s,@target_alias@,$target_alias,;t t
7647 > s,@DEFS@,$DEFS,;t t
7648   s,@ECHO_C@,$ECHO_C,;t t
7649   s,@ECHO_N@,$ECHO_N,;t t
7650   s,@ECHO_T@,$ECHO_T,;t t
5778 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5779 s,@DEFS@,$DEFS,;t t
7651   s,@LIBS@,$LIBS,;t t
7652   s,@PROGNAME@,$PROGNAME,;t t
7653 < s,@DEBUG@,$DEBUG,;t t
7653 > s,@debug@,$debug,;t t
7654   s,@build@,$build,;t t
7655   s,@build_cpu@,$build_cpu,;t t
7656   s,@build_vendor@,$build_vendor,;t t
# Line 5798 | Line 7669 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7669   s,@CXX@,$CXX,;t t
7670   s,@CXXFLAGS@,$CXXFLAGS,;t t
7671   s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7672 + s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
7673 + s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
7674   s,@F90@,$F90,;t t
7675   s,@F90FLAGS@,$F90FLAGS,;t t
7676   s,@ac_ct_F90@,$ac_ct_F90,;t t
7677   s,@PREPFLAG@,$PREPFLAG,;t t
7678   s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
7679 + s,@F90LIBS@,$F90LIBS,;t t
7680 + s,@F90_FUNC@,$F90_FUNC,;t t
7681 + s,@F90_FUNC_@,$F90_FUNC_,;t t
7682 + s,@MOD@,$MOD,;t t
7683 + s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
7684 + s,@MODDIRFLAG@,$MODDIRFLAG,;t t
7685 + s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
7686   s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7687   s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7688   s,@INSTALL_DATA@,$INSTALL_DATA,;t t
# Line 5815 | Line 7695 | s,@AR@,$AR,;t t
7695   s,@LEXLIB@,$LEXLIB,;t t
7696   s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7697   s,@AR@,$AR,;t t
7698 < 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
7698 > s,@mpi@,$mpi,;t t
7699   s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
7700   s,@MPI_INC@,$MPI_INC,;t t
7701 + s,@MPI_F90INC@,$MPI_F90INC,;t t
7702   s,@MPI_LIB@,$MPI_LIB,;t t
7703 < s,@MPIF77@,$MPIF77,;t t
5826 < s,@MPIF90@,$MPIF90,;t t
5827 < s,@MPILIBS@,$MPILIBS,;t t
7703 > s,@MPI_F90LIB@,$MPI_F90LIB,;t t
7704   s,@CPP@,$CPP,;t t
7705 + s,@EGREP@,$EGREP,;t t
7706   s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
7707   s,@SPRNG_LIB@,$SPRNG_LIB,;t t
7708   s,@SPRNG_INC@,$SPRNG_INC,;t t
# Line 5840 | Line 7717 | s,@FFLAGS@,$FFLAGS,;t t
7717   s,@OOPSE_HOME@,$OOPSE_HOME,;t t
7718   s,@SUBDIRS@,$SUBDIRS,;t t
7719   s,@FFLAGS@,$FFLAGS,;t t
7720 + s,@LIBOBJS@,$LIBOBJS,;t t
7721 + s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7722   CEOF
7723  
7724 < EOF
7724 > _ACEOF
7725  
7726 <  cat >>$CONFIG_STATUS <<\EOF
7726 >  cat >>$CONFIG_STATUS <<\_ACEOF
7727    # Split the substitutions into bite-sized pieces for seds with
7728    # small command number limits, like on Digital OSF/1 and HP-UX.
7729    ac_max_sed_lines=48
# Line 5883 | Line 7762 | fi # test -n "$CONFIG_FILES"
7762    fi
7763   fi # test -n "$CONFIG_FILES"
7764  
7765 < EOF
7766 < cat >>$CONFIG_STATUS <<\EOF
7765 > _ACEOF
7766 > cat >>$CONFIG_STATUS <<\_ACEOF
7767   for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7768    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7769    case $ac_file in
# Line 5898 | Line 7777 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" =
7777    esac
7778  
7779    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7780 <  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7780 >  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7781 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7782           X"$ac_file" : 'X\(//\)[^/]' \| \
7783           X"$ac_file" : 'X\(//\)$' \| \
7784           X"$ac_file" : 'X\(/\)' \| \
# Line 5909 | Line 7789 | echo X"$ac_file" |
7789            /^X\(\/\/\)$/{ s//\1/; q; }
7790            /^X\(\/\).*/{ s//\1/; q; }
7791            s/.*/./; q'`
7792 <  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7793 <    { 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'`
7792 >  { if $as_mkdir_p; then
7793 >    mkdir -p "$ac_dir"
7794    else
7795 <    ac_dir_suffix= ac_dots=
7796 <  fi
7795 >    as_dir="$ac_dir"
7796 >    as_dirs=
7797 >    while test ! -d "$as_dir"; do
7798 >      as_dirs="$as_dir $as_dirs"
7799 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7800 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7801 >         X"$as_dir" : 'X\(//\)[^/]' \| \
7802 >         X"$as_dir" : 'X\(//\)$' \| \
7803 >         X"$as_dir" : 'X\(/\)' \| \
7804 >         .     : '\(.\)' 2>/dev/null ||
7805 > echo X"$as_dir" |
7806 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7807 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7808 >          /^X\(\/\/\)$/{ s//\1/; q; }
7809 >          /^X\(\/\).*/{ s//\1/; q; }
7810 >          s/.*/./; q'`
7811 >    done
7812 >    test ! -n "$as_dirs" || mkdir $as_dirs
7813 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7814 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7815 >   { (exit 1); exit 1; }; }; }
7816  
7817 <  case $srcdir in
7818 <  .)  ac_srcdir=.
7819 <      if test -z "$ac_dots"; then
7820 <         ac_top_srcdir=.
7821 <      else
7822 <         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7823 <      fi ;;
7824 <  [\\/]* | ?:[\\/]* )
7825 <      ac_srcdir=$srcdir$ac_dir_suffix;
7826 <      ac_top_srcdir=$srcdir ;;
7817 >  ac_builddir=.
7818 >
7819 > if test "$ac_dir" != .; then
7820 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7821 >  # A "../" for each directory in $ac_dir_suffix.
7822 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7823 > else
7824 >  ac_dir_suffix= ac_top_builddir=
7825 > fi
7826 >
7827 > case $srcdir in
7828 >  .)  # No --srcdir option.  We are building in place.
7829 >    ac_srcdir=.
7830 >    if test -z "$ac_top_builddir"; then
7831 >       ac_top_srcdir=.
7832 >    else
7833 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7834 >    fi ;;
7835 >  [\\/]* | ?:[\\/]* )  # Absolute path.
7836 >    ac_srcdir=$srcdir$ac_dir_suffix;
7837 >    ac_top_srcdir=$srcdir ;;
7838    *) # Relative path.
7839 <    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7840 <    ac_top_srcdir=$ac_dots$srcdir ;;
7841 <  esac
7839 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7840 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7841 > esac
7842 > # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7843 > # absolute.
7844 > ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7845 > ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7846 > ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7847 > ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7848  
7849 +
7850    case $INSTALL in
7851    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7852 <  *) ac_INSTALL=$ac_dots$INSTALL ;;
7852 >  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7853    esac
7854  
7855    if test x"$ac_file" != x-; then
7856 <    { echo "$as_me:5957: creating $ac_file" >&5
7856 >    { echo "$as_me:$LINENO: creating $ac_file" >&5
7857   echo "$as_me: creating $ac_file" >&6;}
7858      rm -f "$ac_file"
7859    fi
7860    # Let's still pretend it is `configure' which instantiates (i.e., don't
7861    # use $as_me), people would be surprised to read:
7862 <  #    /* config.h.  Generated automatically by config.status.  */
7863 <  configure_input="Generated automatically from `echo $ac_file_in |
7864 <                                                 sed 's,.*/,,'` by configure."
7862 >  #    /* config.h.  Generated by config.status.  */
7863 >  if test x"$ac_file" = x-; then
7864 >    configure_input=
7865 >  else
7866 >    configure_input="$ac_file.  "
7867 >  fi
7868 >  configure_input=$configure_input"Generated from `echo $ac_file_in |
7869 >                                     sed 's,.*/,,'` by configure."
7870  
7871    # First look for the input files in the build tree, otherwise in the
7872    # src tree.
# Line 5972 | Line 7876 | echo "$as_me: creating $ac_file" >&6;}
7876        -) echo $tmp/stdin ;;
7877        [\\/$]*)
7878           # Absolute (can't be DOS-style, as IFS=:)
7879 <         test -f "$f" || { { echo "$as_me:5975: error: cannot find input file: $f" >&5
7879 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7880   echo "$as_me: error: cannot find input file: $f" >&2;}
7881     { (exit 1); exit 1; }; }
7882           echo $f;;
# Line 5985 | Line 7889 | echo "$as_me: error: cannot find input file: $f" >&2;}
7889             echo $srcdir/$f
7890           else
7891             # /dev/null tree
7892 <           { { echo "$as_me:5988: error: cannot find input file: $f" >&5
7892 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7893   echo "$as_me: error: cannot find input file: $f" >&2;}
7894     { (exit 1); exit 1; }; }
7895           fi;;
7896        esac
7897      done` || { (exit 1); exit 1; }
7898 < EOF
7899 < cat >>$CONFIG_STATUS <<EOF
7898 > _ACEOF
7899 > cat >>$CONFIG_STATUS <<_ACEOF
7900    sed "$ac_vpsub
7901   $extrasub
7902 < EOF
7903 < cat >>$CONFIG_STATUS <<\EOF
7902 > _ACEOF
7903 > cat >>$CONFIG_STATUS <<\_ACEOF
7904   :t
7905   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7906   s,@configure_input@,$configure_input,;t t
7907   s,@srcdir@,$ac_srcdir,;t t
7908 + s,@abs_srcdir@,$ac_abs_srcdir,;t t
7909   s,@top_srcdir@,$ac_top_srcdir,;t t
7910 + s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7911 + s,@builddir@,$ac_builddir,;t t
7912 + s,@abs_builddir@,$ac_abs_builddir,;t t
7913 + s,@top_builddir@,$ac_top_builddir,;t t
7914 + s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7915   s,@INSTALL@,$ac_INSTALL,;t t
7916   " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7917    rm -f $tmp/stdin
# Line 6013 | Line 7923 | done
7923    fi
7924  
7925   done
7926 < EOF
7927 < cat >>$CONFIG_STATUS <<\EOF
7926 > _ACEOF
7927 > cat >>$CONFIG_STATUS <<\_ACEOF
7928  
7929   #
7930   # CONFIG_HEADER section.
# Line 6046 | Line 7956 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file"
7956    * )   ac_file_in=$ac_file.in ;;
7957    esac
7958  
7959 <  test x"$ac_file" != x- && { echo "$as_me:6049: creating $ac_file" >&5
7959 >  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7960   echo "$as_me: creating $ac_file" >&6;}
7961  
7962    # First look for the input files in the build tree, otherwise in the
# Line 6057 | Line 7967 | echo "$as_me: creating $ac_file" >&6;}
7967        -) echo $tmp/stdin ;;
7968        [\\/$]*)
7969           # Absolute (can't be DOS-style, as IFS=:)
7970 <         test -f "$f" || { { echo "$as_me:6060: error: cannot find input file: $f" >&5
7970 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7971   echo "$as_me: error: cannot find input file: $f" >&2;}
7972     { (exit 1); exit 1; }; }
7973           echo $f;;
# Line 6070 | Line 7980 | echo "$as_me: error: cannot find input file: $f" >&2;}
7980             echo $srcdir/$f
7981           else
7982             # /dev/null tree
7983 <           { { echo "$as_me:6073: error: cannot find input file: $f" >&5
7983 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7984   echo "$as_me: error: cannot find input file: $f" >&2;}
7985     { (exit 1); exit 1; }; }
7986           fi;;
# Line 6079 | Line 7989 | echo "$as_me: error: cannot find input file: $f" >&2;}
7989    # Remove the trailing spaces.
7990    sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
7991  
7992 < EOF
7992 > _ACEOF
7993  
7994   # Transform confdefs.h into two sed scripts, `conftest.defines' and
7995   # `conftest.undefs', that substitutes the proper values into
# Line 6095 | Line 8005 | rm -f conftest.defines conftest.undefs
8005   # `end' is used to avoid that the second main sed command (meant for
8006   # 0-ary CPP macros) applies to n-ary macro definitions.
8007   # See the Autoconf documentation for `clear'.
8008 < cat >confdef2sed.sed <<\EOF
8008 > cat >confdef2sed.sed <<\_ACEOF
8009   s/[\\&,]/\\&/g
8010   s,[\\$`],\\&,g
8011   t clear
8012   : clear
8013 < s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8013 > s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8014   t end
8015   s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8016   : end
8017 < EOF
8017 > _ACEOF
8018   # If some macros were called several times there might be several times
8019   # the same #defines, which is useless.  Nevertheless, we may not want to
8020   # sort them, since we want the *last* AC-DEFINE to be honored.
# Line 6115 | Line 8025 | rm -f confdef2sed.sed
8025   # This sed command replaces #undef with comments.  This is necessary, for
8026   # example, in the case of _POSIX_SOURCE, which is predefined and required
8027   # on some systems where configure will not decide to define it.
8028 < cat >>conftest.undefs <<\EOF
8028 > cat >>conftest.undefs <<\_ACEOF
8029   s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8030 < EOF
8030 > _ACEOF
8031  
8032   # Break up conftest.defines because some shells have a limit on the size
8033   # of here documents, and old seds have small limits too (100 cmds).
8034   echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8035 < echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8035 > echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8036   echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8037   echo '  :' >>$CONFIG_STATUS
8038   rm -f conftest.tail
# Line 6146 | Line 8056 | rm -f conftest.defines
8056    mv conftest.tail conftest.defines
8057   done
8058   rm -f conftest.defines
8059 < echo '  fi # egrep' >>$CONFIG_STATUS
8059 > echo '  fi # grep' >>$CONFIG_STATUS
8060   echo >>$CONFIG_STATUS
8061  
8062   # Break up conftest.undefs because some shells have a limit on the size
# Line 6174 | Line 8084 | rm -f conftest.undefs
8084   done
8085   rm -f conftest.undefs
8086  
8087 < cat >>$CONFIG_STATUS <<\EOF
8087 > cat >>$CONFIG_STATUS <<\_ACEOF
8088    # Let's still pretend it is `configure' which instantiates (i.e., don't
8089    # use $as_me), people would be surprised to read:
8090 <  #    /* config.h.  Generated automatically by config.status.  */
8090 >  #    /* config.h.  Generated by config.status.  */
8091    if test x"$ac_file" = x-; then
8092 <    echo "/* Generated automatically by configure.  */" >$tmp/config.h
8092 >    echo "/* Generated by configure.  */" >$tmp/config.h
8093    else
8094 <    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
8094 >    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8095    fi
8096    cat $tmp/in >>$tmp/config.h
8097    rm -f $tmp/in
8098    if test x"$ac_file" != x-; then
8099 <    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8100 <      { echo "$as_me:6190: $ac_file is unchanged" >&5
8099 >    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8100 >      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8101   echo "$as_me: $ac_file is unchanged" >&6;}
8102      else
8103 <      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8103 >      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8104 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8105           X"$ac_file" : 'X\(//\)[^/]' \| \
8106           X"$ac_file" : 'X\(//\)$' \| \
8107           X"$ac_file" : 'X\(/\)' \| \
# Line 6201 | Line 8112 | echo X"$ac_file" |
8112            /^X\(\/\/\)$/{ s//\1/; q; }
8113            /^X\(\/\).*/{ s//\1/; q; }
8114            s/.*/./; q'`
8115 <      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8116 <        { case "$ac_dir" in
8117 <  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8118 <  *)                      as_incr_dir=.;;
8119 < esac
8120 < as_dummy="$ac_dir"
8121 < for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8122 <  case $as_mkdir_dir in
8123 <    # Skip DOS drivespec
8124 <    ?:) as_incr_dir=$as_mkdir_dir ;;
8125 <    *)
8126 <      as_incr_dir=$as_incr_dir/$as_mkdir_dir
8127 <      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8128 <    ;;
8129 <  esac
8130 < done; }
8115 >      { if $as_mkdir_p; then
8116 >    mkdir -p "$ac_dir"
8117 >  else
8118 >    as_dir="$ac_dir"
8119 >    as_dirs=
8120 >    while test ! -d "$as_dir"; do
8121 >      as_dirs="$as_dir $as_dirs"
8122 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8123 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8124 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8125 >         X"$as_dir" : 'X\(//\)$' \| \
8126 >         X"$as_dir" : 'X\(/\)' \| \
8127 >         .     : '\(.\)' 2>/dev/null ||
8128 > echo X"$as_dir" |
8129 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8130 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8131 >          /^X\(\/\/\)$/{ s//\1/; q; }
8132 >          /^X\(\/\).*/{ s//\1/; q; }
8133 >          s/.*/./; q'`
8134 >    done
8135 >    test ! -n "$as_dirs" || mkdir $as_dirs
8136 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8137 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8138 >   { (exit 1); exit 1; }; }; }
8139  
6221      fi
8140        rm -f $ac_file
8141        mv $tmp/config.h $ac_file
8142      fi
# Line 6227 | Line 8145 | done
8145      rm -f $tmp/config.h
8146    fi
8147   done
8148 < EOF
8148 > _ACEOF
8149  
8150 < cat >>$CONFIG_STATUS <<\EOF
8150 > cat >>$CONFIG_STATUS <<\_ACEOF
8151  
8152   { (exit 0); exit 0; }
8153 < EOF
8153 > _ACEOF
8154   chmod +x $CONFIG_STATUS
8155   ac_clean_files=$ac_clean_files_save
8156  
8157 +
8158   # configure is writing to config.log, and then calls config.status.
8159   # config.status does its own redirection, appending to config.log.
8160   # Unfortunately, on DOS this fails, as config.log is still kept open
# Line 6246 | Line 8165 | if test "$no_create" != yes; then
8165   # need to make the FD available again.
8166   if test "$no_create" != yes; then
8167    ac_cs_success=:
8168 +  ac_config_status_args=
8169 +  test "$silent" = yes &&
8170 +    ac_config_status_args="$ac_config_status_args --quiet"
8171    exec 5>/dev/null
8172 <  $SHELL $CONFIG_STATUS || ac_cs_success=false
8172 >  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8173    exec 5>>config.log
8174    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8175    # would make configure fail if this is the last instruction.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines