ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/configure
(Generate patch)

Comparing:
trunk/configure (file contents), Revision 1188 by chuckv, Thu Nov 22 16:39:45 2007 UTC vs.
branches/development/configure (file contents), Revision 1632 by gezelter, Wed Sep 14 21:44:08 2011 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by GNU Autoconf 2.61 for OOPSE 3.0.
3 > # Generated by GNU Autoconf 2.68 for OpenMD 2.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7 + #
8   # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 < # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 > # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 > # Foundation, Inc.
11 > #
12 > #
13   # This configure script is free software; the Free Software Foundation
14   # gives unlimited permission to copy, distribute and modify it.
15 < ## --------------------- ##
16 < ## M4sh Initialization.  ##
17 < ## --------------------- ##
15 > ## -------------------- ##
16 > ## M4sh Initialization. ##
17 > ## -------------------- ##
18  
19   # Be more Bourne compatible
20   DUALCASE=1; export DUALCASE # for MKS sh
21 < if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 > if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22    emulate sh
23    NULLCMD=:
24 <  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24 >  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25    # is contrary to our usage.  Disable this feature.
26    alias -g '${1+"$@"}'='"$@"'
27    setopt NO_GLOB_SUBST
28   else
29 <  case `(set -o) 2>/dev/null` in
30 <  *posix*) set -o posix ;;
29 >  case `(set -o) 2>/dev/null` in #(
30 >  *posix*) :
31 >    set -o posix ;; #(
32 >  *) :
33 >     ;;
34   esac
28
35   fi
36  
37  
38 <
39 <
40 < # PATH needs CR
41 < # Avoid depending upon Character Ranges.
42 < as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43 < as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44 < as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45 < as_cr_digits='0123456789'
46 < as_cr_alnum=$as_cr_Letters$as_cr_digits
47 <
48 < # The user is always right.
49 < if test "${PATH_SEPARATOR+set}" != set; then
50 <  echo "#! /bin/sh" >conf$$.sh
51 <  echo  "exit 0"   >>conf$$.sh
52 <  chmod +x conf$$.sh
53 <  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
54 <    PATH_SEPARATOR=';'
38 > as_nl='
39 > '
40 > export as_nl
41 > # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 > as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 > as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 > as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 > # Prefer a ksh shell builtin over an external printf program on Solaris,
46 > # but without wasting forks for bash or zsh.
47 > if test -z "$BASH_VERSION$ZSH_VERSION" \
48 >    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 >  as_echo='print -r --'
50 >  as_echo_n='print -rn --'
51 > elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 >  as_echo='printf %s\n'
53 >  as_echo_n='printf %s'
54 > else
55 >  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 >    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 >    as_echo_n='/usr/ucb/echo -n'
58    else
59 <    PATH_SEPARATOR=:
59 >    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 >    as_echo_n_body='eval
61 >      arg=$1;
62 >      case $arg in #(
63 >      *"$as_nl"*)
64 >        expr "X$arg" : "X\\(.*\\)$as_nl";
65 >        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 >      esac;
67 >      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 >    '
69 >    export as_echo_n_body
70 >    as_echo_n='sh -c $as_echo_n_body as_echo'
71    fi
72 <  rm -rf conf$$.sh
72 >  export as_echo_body
73 >  as_echo='sh -c $as_echo_body as_echo'
74   fi
75  
76 < # Support unset when possible.
77 < if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
78 <  as_unset=unset
79 < else
80 <  as_unset=false
76 > # The user is always right.
77 > if test "${PATH_SEPARATOR+set}" != set; then
78 >  PATH_SEPARATOR=:
79 >  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 >    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 >      PATH_SEPARATOR=';'
82 >  }
83   fi
84  
85  
# Line 65 | Line 88 | fi
88   # there to prevent editors from complaining about space-tab.
89   # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90   # splitting by setting IFS to empty value.)
68 as_nl='
69 '
91   IFS=" ""        $as_nl"
92  
93   # Find who we are.  Look in the path if we contain no directory separator.
94 < case $0 in
94 > as_myself=
95 > case $0 in #((
96    *[\\/]* ) as_myself=$0 ;;
97    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98   for as_dir in $PATH
99   do
100    IFS=$as_save_IFS
101    test -z "$as_dir" && as_dir=.
102 <  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 < done
102 >    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 >  done
104   IFS=$as_save_IFS
105  
106       ;;
# Line 89 | Line 111 | if test ! -f "$as_myself"; then
111    as_myself=$0
112   fi
113   if test ! -f "$as_myself"; then
114 <  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 <  { (exit 1); exit 1; }
114 >  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 >  exit 1
116   fi
117  
118 < # Work around bugs in pre-3.0 UWIN ksh.
119 < for as_var in ENV MAIL MAILPATH
120 < do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 > # Unset variables that we do not need and which cause bugs (e.g. in
119 > # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 > # suppresses any "Segmentation fault" message there.  '((' could
121 > # trigger a bug in pdksh 5.2.14.
122 > for as_var in BASH_ENV ENV MAIL MAILPATH
123 > do eval test x\${$as_var+set} = xset \
124 >  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125   done
126   PS1='$ '
127   PS2='> '
128   PS4='+ '
129  
130   # NLS nuisances.
131 < for as_var in \
132 <  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
133 <  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
134 <  LC_TELEPHONE LC_TIME
109 < do
110 <  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 <    eval $as_var=C; export $as_var
112 <  else
113 <    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 <  fi
115 < done
131 > LC_ALL=C
132 > export LC_ALL
133 > LANGUAGE=C
134 > export LANGUAGE
135  
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121 else
122  as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127 else
128  as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135         X"$0" : 'X\(//\)$' \| \
136         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139            s//\1/
140            q
141          }
142          /^X\/\(\/\/\)$/{
143            s//\1/
144            q
145          }
146          /^X\/\(\/\).*/{
147            s//\1/
148            q
149          }
150          s/.*/./; q'`
151
136   # CDPATH.
137 < $as_unset CDPATH
137 > (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138  
155
139   if test "x$CONFIG_SHELL" = x; then
140 <  if (eval ":") 2>/dev/null; then
141 <  as_have_required=yes
140 >  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 >  emulate sh
142 >  NULLCMD=:
143 >  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 >  # is contrary to our usage.  Disable this feature.
145 >  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 >  setopt NO_GLOB_SUBST
147   else
148 <  as_have_required=no
148 >  case \`(set -o) 2>/dev/null\` in #(
149 >  *posix*) :
150 >    set -o posix ;; #(
151 >  *) :
152 >     ;;
153 > esac
154   fi
155 + "
156 +  as_required="as_fn_return () { (exit \$1); }
157 + as_fn_success () { as_fn_return 0; }
158 + as_fn_failure () { as_fn_return 1; }
159 + as_fn_ret_success () { return 0; }
160 + as_fn_ret_failure () { return 1; }
161  
163  if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165  (exit \$1)
166 }
167 as_func_success () {
168  as_func_return 0
169 }
170 as_func_failure () {
171  as_func_return 1
172 }
173 as_func_ret_success () {
174  return 0
175 }
176 as_func_ret_failure () {
177  return 1
178 }
179
162   exitcode=0
163 < if as_func_success; then
164 <  :
165 < else
166 <  exitcode=1
167 <  echo as_func_success failed.
186 < fi
163 > as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 > as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 > as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 > as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 > if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168  
188 if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194  :
169   else
170 <  exitcode=1
197 <  echo as_func_ret_success failed.
170 >  exitcode=1; echo positional parameters were not saved.
171   fi
172 <
173 < if as_func_ret_failure; then
174 <  exitcode=1
175 <  echo as_func_ret_failure succeeded.
176 < fi
177 <
178 < if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
179 <  :
172 > test x\$exitcode = x0 || exit 1"
173 >  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 >  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 >  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 >  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 > test \$(( 1 + 1 )) = 2 || exit 1"
178 >  if (eval "$as_required") 2>/dev/null; then :
179 >  as_have_required=yes
180   else
181 <  exitcode=1
209 <  echo positional parameters were not saved.
181 >  as_have_required=no
182   fi
183 +  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184  
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220  :
185   else
186 <  as_candidate_shells=
187 <    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 > as_found=false
188   for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189   do
190    IFS=$as_save_IFS
191    test -z "$as_dir" && as_dir=.
192 <  case $as_dir in
192 >  as_found=:
193 >  case $as_dir in #(
194           /*)
195             for as_base in sh bash ksh sh5; do
196 <             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
196 >             # Try only shells that exist, to save several forks.
197 >             as_shell=$as_dir/$as_base
198 >             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 >                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 >  CONFIG_SHELL=$as_shell as_have_required=yes
201 >                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 >  break 2
203 > fi
204 > fi
205             done;;
206         esac
207 +  as_found=false
208   done
209 + $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 +              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 +  CONFIG_SHELL=$SHELL as_have_required=yes
212 + fi; }
213   IFS=$as_save_IFS
214  
215  
216 <      for as_shell in $as_candidate_shells $SHELL; do
217 <         # Try only shells that exist, to save several forks.
218 <         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
219 <                { ("$as_shell") 2> /dev/null <<\_ASEOF
220 < if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
221 <  emulate sh
222 <  NULLCMD=:
223 <  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
224 <  # is contrary to our usage.  Disable this feature.
225 <  alias -g '${1+"$@"}'='"$@"'
226 <  setopt NO_GLOB_SUBST
227 < else
228 <  case `(set -o) 2>/dev/null` in
229 <  *posix*) set -o posix ;;
230 < esac
231 <
216 >      if test "x$CONFIG_SHELL" != x; then :
217 >  # We cannot yet assume a decent shell, so we have to provide a
218 >        # neutralization value for shells without unset; and this also
219 >        # works around shells that cannot unset nonexistent variables.
220 >        # Preserve -v and -x to the replacement shell.
221 >        BASH_ENV=/dev/null
222 >        ENV=/dev/null
223 >        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 >        export CONFIG_SHELL
225 >        case $- in # ((((
226 >          *v*x* | *x*v* ) as_opts=-vx ;;
227 >          *v* ) as_opts=-v ;;
228 >          *x* ) as_opts=-x ;;
229 >          * ) as_opts= ;;
230 >        esac
231 >        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232   fi
233  
234 <
235 < :
236 < _ASEOF
237 < }; then
238 <  CONFIG_SHELL=$as_shell
239 <               as_have_required=yes
240 <               if { "$as_shell" 2> /dev/null <<\_ASEOF
241 < if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 <  emulate sh
243 <  NULLCMD=:
244 <  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 <  # is contrary to our usage.  Disable this feature.
246 <  alias -g '${1+"$@"}'='"$@"'
247 <  setopt NO_GLOB_SUBST
270 < else
271 <  case `(set -o) 2>/dev/null` in
272 <  *posix*) set -o posix ;;
273 < esac
274 <
234 >    if test x$as_have_required = xno; then :
235 >  $as_echo "$0: This script requires a shell more modern than all"
236 >  $as_echo "$0: the shells that I found on your system."
237 >  if test x${ZSH_VERSION+set} = xset ; then
238 >    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 >    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 >  else
241 >    $as_echo "$0: Please tell bug-autoconf@gnu.org and gezelter@nd.edu
242 > $0: about your system, including any error possibly output
243 > $0: before this message. Then install a modern shell, or
244 > $0: manually run the script under such a shell if you do
245 > $0: have one."
246 >  fi
247 >  exit 1
248   fi
276
277
278 :
279 (as_func_return () {
280  (exit $1)
281 }
282 as_func_success () {
283  as_func_return 0
284 }
285 as_func_failure () {
286  as_func_return 1
287 }
288 as_func_ret_success () {
289  return 0
290 }
291 as_func_ret_failure () {
292  return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297  :
298 else
299  exitcode=1
300  echo as_func_success failed.
249   fi
302
303 if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
250   fi
251 + SHELL=${CONFIG_SHELL-/bin/sh}
252 + export SHELL
253 + # Unset more variables known to interfere with behavior of common tools.
254 + CLICOLOR_FORCE= GREP_OPTIONS=
255 + unset CLICOLOR_FORCE GREP_OPTIONS
256  
257 < if as_func_ret_success; then
258 <  :
259 < else
260 <  exitcode=1
261 <  echo as_func_ret_success failed.
262 < fi
257 > ## --------------------- ##
258 > ## M4sh Shell Functions. ##
259 > ## --------------------- ##
260 > # as_fn_unset VAR
261 > # ---------------
262 > # Portably unset VAR.
263 > as_fn_unset ()
264 > {
265 >  { eval $1=; unset $1;}
266 > }
267 > as_unset=as_fn_unset
268  
269 < if as_func_ret_failure; then
270 <  exitcode=1
271 <  echo as_func_ret_failure succeeded.
272 < fi
269 > # as_fn_set_status STATUS
270 > # -----------------------
271 > # Set $? to STATUS, without forking.
272 > as_fn_set_status ()
273 > {
274 >  return $1
275 > } # as_fn_set_status
276  
277 < if ( set x; as_func_ret_success y && test x = "$1" ); then
278 <  :
279 < else
280 <  exitcode=1
281 <  echo positional parameters were not saved.
282 < fi
277 > # as_fn_exit STATUS
278 > # -----------------
279 > # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 > as_fn_exit ()
281 > {
282 >  set +e
283 >  as_fn_set_status $1
284 >  exit $1
285 > } # as_fn_exit
286  
287 < test $exitcode = 0) || { (exit 1); exit 1; }
287 > # as_fn_mkdir_p
288 > # -------------
289 > # Create "$as_dir" as a directory, including parents if necessary.
290 > as_fn_mkdir_p ()
291 > {
292  
293 < (
294 <  as_lineno_1=$LINENO
295 <  as_lineno_2=$LINENO
296 <  test "x$as_lineno_1" != "x$as_lineno_2" &&
297 <  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
293 >  case $as_dir in #(
294 >  -*) as_dir=./$as_dir;;
295 >  esac
296 >  test -d "$as_dir" || eval $as_mkdir_p || {
297 >    as_dirs=
298 >    while :; do
299 >      case $as_dir in #(
300 >      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 >      *) as_qdir=$as_dir;;
302 >      esac
303 >      as_dirs="'$as_qdir' $as_dirs"
304 >      as_dir=`$as_dirname -- "$as_dir" ||
305 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 >         X"$as_dir" : 'X\(//\)[^/]' \| \
307 >         X"$as_dir" : 'X\(//\)$' \| \
308 >         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 > $as_echo X"$as_dir" |
310 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 >            s//\1/
312 >            q
313 >          }
314 >          /^X\(\/\/\)[^/].*/{
315 >            s//\1/
316 >            q
317 >          }
318 >          /^X\(\/\/\)$/{
319 >            s//\1/
320 >            q
321 >          }
322 >          /^X\(\/\).*/{
323 >            s//\1/
324 >            q
325 >          }
326 >          s/.*/./; q'`
327 >      test -d "$as_dir" && break
328 >    done
329 >    test -z "$as_dirs" || eval "mkdir $as_dirs"
330 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331  
335 _ASEOF
336 }; then
337  break
338 fi
332  
333 < fi
333 > } # as_fn_mkdir_p
334 > # as_fn_append VAR VALUE
335 > # ----------------------
336 > # Append the text in VALUE to the end of the definition contained in VAR. Take
337 > # advantage of any shell optimizations that allow amortized linear growth over
338 > # repeated appends, instead of the typical quadratic growth present in naive
339 > # implementations.
340 > if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 >  eval 'as_fn_append ()
342 >  {
343 >    eval $1+=\$2
344 >  }'
345 > else
346 >  as_fn_append ()
347 >  {
348 >    eval $1=\$$1\$2
349 >  }
350 > fi # as_fn_append
351  
352 <      done
352 > # as_fn_arith ARG...
353 > # ------------------
354 > # Perform arithmetic evaluation on the ARGs, and store the result in the
355 > # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 > # must be portable across $(()) and expr.
357 > if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 >  eval 'as_fn_arith ()
359 >  {
360 >    as_val=$(( $* ))
361 >  }'
362 > else
363 >  as_fn_arith ()
364 >  {
365 >    as_val=`expr "$@" || test $? -eq 1`
366 >  }
367 > fi # as_fn_arith
368  
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
369  
370 + # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 + # ----------------------------------------
372 + # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 + # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 + # script with STATUS, using 1 if that was 0.
375 + as_fn_error ()
376 + {
377 +  as_status=$1; test $as_status -eq 0 && as_status=1
378 +  if test "$4"; then
379 +    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 +    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381 +  fi
382 +  $as_echo "$as_me: error: $2" >&2
383 +  as_fn_exit $as_status
384 + } # as_fn_error
385  
386 <    if test $as_have_required = no; then
387 <  echo This script requires a shell more modern than all the
388 <      echo shells that I found on your system.  Please install a
356 <      echo modern shell, or manually run the script under such a
357 <      echo shell if you do have one.
358 <      { (exit 1); exit 1; }
359 < fi
360 <
361 <
362 < fi
363 <
364 < fi
365 <
366 <
367 <
368 < (eval "as_func_return () {
369 <  (exit \$1)
370 < }
371 < as_func_success () {
372 <  as_func_return 0
373 < }
374 < as_func_failure () {
375 <  as_func_return 1
376 < }
377 < as_func_ret_success () {
378 <  return 0
379 < }
380 < as_func_ret_failure () {
381 <  return 1
382 < }
383 <
384 < exitcode=0
385 < if as_func_success; then
386 <  :
386 > if expr a : '\(a\)' >/dev/null 2>&1 &&
387 >   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 >  as_expr=expr
389   else
390 <  exitcode=1
389 <  echo as_func_success failed.
390 >  as_expr=false
391   fi
392  
393 < if as_func_failure; then
394 <  exitcode=1
394 <  echo as_func_failure succeeded.
395 < fi
396 <
397 < if as_func_ret_success; then
398 <  :
393 > if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 >  as_basename=basename
395   else
396 <  exitcode=1
401 <  echo as_func_ret_success failed.
396 >  as_basename=false
397   fi
398  
399 < if as_func_ret_failure; then
400 <  exitcode=1
406 <  echo as_func_ret_failure succeeded.
407 < fi
408 <
409 < if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 <  :
399 > if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 >  as_dirname=dirname
401   else
402 <  exitcode=1
413 <  echo positional parameters were not saved.
402 >  as_dirname=false
403   fi
404  
405 < test \$exitcode = 0") || {
406 <  echo No shell found that supports shell functions.
407 <  echo Please tell autoconf@gnu.org about your system,
408 <  echo including any error possibly output before this
409 <  echo message
410 < }
405 > as_me=`$as_basename -- "$0" ||
406 > $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 >         X"$0" : 'X\(//\)$' \| \
408 >         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 > $as_echo X/"$0" |
410 >    sed '/^.*\/\([^/][^/]*\)\/*$/{
411 >            s//\1/
412 >            q
413 >          }
414 >          /^X\/\(\/\/\)$/{
415 >            s//\1/
416 >            q
417 >          }
418 >          /^X\/\(\/\).*/{
419 >            s//\1/
420 >            q
421 >          }
422 >          s/.*/./; q'`
423  
424 + # Avoid depending upon Character Ranges.
425 + as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 + as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 + as_cr_digits='0123456789'
429 + as_cr_alnum=$as_cr_Letters$as_cr_digits
430  
431  
432 <  as_lineno_1=$LINENO
433 <  as_lineno_2=$LINENO
434 <  test "x$as_lineno_1" != "x$as_lineno_2" &&
435 <  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
436 <
430 <  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 <  # uniformly replaced by the line number.  The first 'sed' inserts a
432 <  # line-number line after each line using $LINENO; the second 'sed'
433 <  # does the real work.  The second script uses 'N' to pair each
434 <  # line-number line with the line containing $LINENO, and appends
435 <  # trailing '-' during substitution so that $LINENO is not a special
436 <  # case at line end.
437 <  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 <  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439 <  # E. McMahon (1931-1989) for sed's syntax.  :-)
432 >  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 >  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 >  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 >  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 >  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437    sed -n '
438      p
439      /[$]LINENO/=
# Line 453 | Line 450 | test \$exitcode = 0") || {
450        s/-\n.*//
451      ' >$as_me.lineno &&
452    chmod +x "$as_me.lineno" ||
453 <    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 <   { (exit 1); exit 1; }; }
453 >    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454  
455    # Don't try to exec as it changes $[0], causing all sort of problems
456    # (the dirname of $[0] is not the place where we might find the
# Line 464 | Line 460 | test \$exitcode = 0") || {
460    exit
461   }
462  
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470 else
471  as_dirname=false
472 fi
473
463   ECHO_C= ECHO_N= ECHO_T=
464 < case `echo -n x` in
464 > case `echo -n x` in #(((((
465   -n*)
466 <  case `echo 'x\c'` in
466 >  case `echo 'xy\c'` in
467    *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468 <  *)   ECHO_C='\c';;
468 >  xy)  ECHO_C='\c';;
469 >  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 >       ECHO_T=' ';;
471    esac;;
472   *)
473    ECHO_N='-n';;
474   esac
475  
476 < if expr a : '\(a\)' >/dev/null 2>&1 &&
486 <   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 <  as_expr=expr
488 < else
489 <  as_expr=false
490 < fi
491 <
492 < rm -rf conf$$ conf$$.exe conf$$.file
476 > rm -f conf$$ conf$$.exe conf$$.file
477   if test -d conf$$.dir; then
478 <  rm -rf conf$$.dir/conf$$.file
478 >  rm -f conf$$.dir/conf$$.file
479   else
480 <  rm -rf conf$$.dir
481 <  mkdir conf$$.dir
480 >  rm -f conf$$.dir
481 >  mkdir conf$$.dir 2>/dev/null
482   fi
483 < echo >conf$$.file
484 < if ln -s conf$$.file conf$$ 2>/dev/null; then
485 <  as_ln_s='ln -s'
486 <  # ... but there are two gotchas:
487 <  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 <  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 <  # In both cases, we have to default to `cp -p'.
490 <  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 > if (echo >conf$$.file) 2>/dev/null; then
484 >  if ln -s conf$$.file conf$$ 2>/dev/null; then
485 >    as_ln_s='ln -s'
486 >    # ... but there are two gotchas:
487 >    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 >    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 >    # In both cases, we have to default to `cp -p'.
490 >    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 >      as_ln_s='cp -p'
492 >  elif ln conf$$.file conf$$ 2>/dev/null; then
493 >    as_ln_s=ln
494 >  else
495      as_ln_s='cp -p'
496 < elif ln conf$$.file conf$$ 2>/dev/null; then
509 <  as_ln_s=ln
496 >  fi
497   else
498    as_ln_s='cp -p'
499   fi
500 < rm -rf conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
500 > rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501   rmdir conf$$.dir 2>/dev/null
502  
503   if mkdir -p . 2>/dev/null; then
504 <  as_mkdir_p=:
504 >  as_mkdir_p='mkdir -p "$as_dir"'
505   else
506    test -d ./-p && rmdir ./-p
507    as_mkdir_p=false
# Line 531 | Line 518 | else
518    as_test_x='
519      eval sh -c '\''
520        if test -d "$1"; then
521 <        test -d "$1/.";
521 >        test -d "$1/.";
522        else
523 <        case $1 in
524 <        -*)set "./$1";;
523 >        case $1 in #(
524 >        -*)set "./$1";;
525          esac;
526 <        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
526 >        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527          ???[sx]*):;;*)false;;esac;fi
528      '\'' sh
529    '
# Line 550 | Line 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537   as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538  
539  
540 + test -n "$DJDIR" || exec 7<&0 </dev/null
541 + exec 6>&1
542  
554 exec 7<&0 </dev/null 6>&1
555
543   # Name of the host.
544 < # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 > # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545   # so uname gets run too.
546   ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547  
# Line 569 | Line 556 | MAKEFLAGS=
556   subdirs=
557   MFLAGS=
558   MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
559  
560   # Identity of this package.
561 < PACKAGE_NAME='OOPSE'
562 < PACKAGE_TARNAME='oopse'
563 < PACKAGE_VERSION='3.0'
564 < PACKAGE_STRING='OOPSE 3.0'
561 > PACKAGE_NAME='OpenMD'
562 > PACKAGE_TARNAME='openmd'
563 > PACKAGE_VERSION='2.0'
564 > PACKAGE_STRING='OpenMD 2.0'
565   PACKAGE_BUGREPORT='gezelter@nd.edu'
566 + PACKAGE_URL=''
567  
568 < ac_unique_file="src/applications/oopse/oopse.cpp"
568 > ac_unique_file="src/applications/openmd/openmd.cpp"
569   ac_default_prefix="/usr/local"
570   # Factoring default headers for most tests.
571   ac_includes_default="\
# Line 616 | Line 603 | ac_includes_default="\
603   # include <unistd.h>
604   #endif"
605  
606 < ac_subst_vars='SHELL
607 < PATH_SEPARATOR
608 < PACKAGE_NAME
609 < PACKAGE_TARNAME
610 < PACKAGE_VERSION
611 < PACKAGE_STRING
612 < PACKAGE_BUGREPORT
613 < exec_prefix
614 < prefix
615 < program_transform_name
616 < bindir
617 < sbindir
631 < libexecdir
632 < datarootdir
633 < datadir
634 < sysconfdir
635 < sharedstatedir
636 < localstatedir
637 < includedir
638 < oldincludedir
639 < docdir
640 < infodir
641 < htmldir
642 < dvidir
643 < pdfdir
644 < psdir
645 < libdir
646 < localedir
647 < mandir
648 < DEFS
649 < ECHO_C
650 < ECHO_N
651 < ECHO_T
652 < LIBS
653 < build_alias
654 < host_alias
655 < target_alias
656 < build
657 < build_cpu
658 < build_vendor
659 < build_os
660 < host
661 < host_cpu
662 < host_vendor
663 < host_os
664 < PROGNAME
665 < debug
666 < USE_SINGLE_PRECISION
667 < CXX
668 < CXXFLAGS
669 < LDFLAGS
670 < CPPFLAGS
671 < ac_ct_CXX
672 < EXEEXT
673 < OBJEXT
674 < CC
675 < CFLAGS
676 < ac_ct_CC
677 < FC
678 < FCFLAGS
679 < ac_ct_FC
680 < CPP
681 < GREP
682 < EGREP
683 < LN_S
684 < SET_MAKE
685 < RANLIB
686 < PERLINTERP
687 < PERL_SHEBANG
688 < INSTALL_PROGRAM
689 < INSTALL_SCRIPT
690 < INSTALL_DATA
691 < AR
692 < PS
693 < FCFLAGS_F90
694 < FCFLAGS_SRCEXT
695 < PREPDEFFLAG
696 < FCLIBS
697 < FC_FUNC
698 < FC_FUNC_
699 < MOD
700 < F90_WORK_FILES_ARG
701 < MODDIRFLAG
702 < F90MODINCSPEC
703 < F90_MODULE_NAMES
704 < ZLIB_INC_DIR
705 < ZLIB_LIB_DIR
706 < ZLIB
707 < FFTW_INC_DIR
708 < FFTW_LIB_DIR
709 < FFTW_LIBS
710 < LIBOBJS
606 > ac_subst_vars='LTLIBOBJS
607 > SUBDIRS
608 > OPENMD_HOME
609 > OPENMD
610 > MKINSTALLDIRS
611 > BATEXT
612 > enable_latex_docs
613 > enable_html_docs
614 > enable_dot
615 > DOC
616 > DOT
617 > DOXYGEN
618   POW_LIB
619 + LIBOBJS
620 + USE_OPENBABEL
621 + OPENBABEL_LIB
622 + OPENBABEL_LIB_DIR
623 + OPENBABEL_INC_DIR
624   CXXCPP
625 < __func__
626 < MPI_LIB_DIR
627 < MPI_INC_DIR
628 < MPI_F90_INC
629 < MPI_LIB
630 < MPI_F90_LIB
625 > USE_QHULL
626 > QHULL
627 > QHULL_LIB_DIR
628 > QHULL_INC_DIR
629 > FFTW_LIBS
630 > FFTW_LIB_DIR
631 > FFTW_INC_DIR
632 > ZLIB
633 > ZLIB_LIB_DIR
634 > ZLIB_INC_DIR
635 > AR
636 > INSTALL_DATA
637 > INSTALL_SCRIPT
638 > INSTALL_PROGRAM
639 > PERL_SHEBANG
640 > PERLINTERP
641 > RANLIB
642 > SET_MAKE
643 > LN_S
644 > EGREP
645 > GREP
646 > CPP
647   USE_MPI
648 < DOXYGEN
649 < DOT
650 < DOC
648 > MPICC
649 > MPILIBS
650 > MPICXX
651 > LIBDL
652 > ac_ct_CC
653 > CFLAGS
654 > CC
655 > OBJEXT
656 > EXEEXT
657 > ac_ct_CXX
658 > CPPFLAGS
659 > LDFLAGS
660 > CXXFLAGS
661 > CXX
662 > USE_SINGLE_PRECISION
663 > debug
664 > PROGNAME
665 > host_os
666 > host_vendor
667 > host_cpu
668 > host
669 > build_os
670 > build_vendor
671 > build_cpu
672 > build
673 > target_alias
674 > host_alias
675 > build_alias
676 > LIBS
677 > ECHO_T
678 > ECHO_N
679 > ECHO_C
680 > DEFS
681 > mandir
682 > localedir
683 > libdir
684 > psdir
685 > pdfdir
686 > dvidir
687 > htmldir
688 > infodir
689 > docdir
690 > oldincludedir
691 > includedir
692 > localstatedir
693 > sharedstatedir
694 > sysconfdir
695 > datadir
696 > datarootdir
697 > libexecdir
698 > sbindir
699 > bindir
700 > program_transform_name
701 > prefix
702 > exec_prefix
703 > PACKAGE_URL
704 > PACKAGE_BUGREPORT
705 > PACKAGE_STRING
706 > PACKAGE_VERSION
707 > PACKAGE_TARNAME
708 > PACKAGE_NAME
709 > PATH_SEPARATOR
710 > SHELL'
711 > ac_subst_files=''
712 > ac_user_opts='
713 > enable_option_checking
714 > enable_openmd_home
715 > enable_debug
716 > enable_single
717 > enable_float
718 > with_perl_shebang
719 > with_zlib
720 > with_fftw
721 > with_qhull
722 > with_openbabel
723 > enable_doxygen
724   enable_dot
725   enable_html_docs
726   enable_latex_docs
727 < BATEXT
727 < MKINSTALLDIRS
728 < OOPSE
729 < OOPSE_HOME
730 < SUBDIRS
731 < LTLIBOBJS'
732 < ac_subst_files=''
727 > '
728        ac_precious_vars='build_alias
729   host_alias
730   target_alias
# Line 741 | Line 736 | CFLAGS
736   CCC
737   CC
738   CFLAGS
739 < FC
740 < FCFLAGS
739 > MPICXX
740 > MPICC
741   CPP
742   CXXCPP'
743  
# Line 750 | Line 745 | ac_init_version=false
745   # Initialize some variables set by options.
746   ac_init_help=
747   ac_init_version=false
748 + ac_unrecognized_opts=
749 + ac_unrecognized_sep=
750   # The variables have the same names as the options, with
751   # dashes changed to underlines.
752   cache_file=/dev/null
# Line 805 | Line 802 | do
802    fi
803  
804    case $ac_option in
805 <  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 <  *)    ac_optarg=yes ;;
805 >  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 >  *=)   ac_optarg= ;;
807 >  *)    ac_optarg=yes ;;
808    esac
809  
810    # Accept the important Cygnus configure options, so we can diagnose typos.
# Line 848 | Line 846 | do
846      datarootdir=$ac_optarg ;;
847  
848    -disable-* | --disable-*)
849 <    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849 >    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850      # Reject names that are not valid shell variable names.
851 <    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
852 <      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
853 <   { (exit 1); exit 1; }; }
854 <    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
855 <    eval enable_$ac_feature=no ;;
851 >    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 >      as_fn_error $? "invalid feature name: $ac_useropt"
853 >    ac_useropt_orig=$ac_useropt
854 >    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 >    case $ac_user_opts in
856 >      *"
857 > "enable_$ac_useropt"
858 > "*) ;;
859 >      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
860 >         ac_unrecognized_sep=', ';;
861 >    esac
862 >    eval enable_$ac_useropt=no ;;
863  
864    -docdir | --docdir | --docdi | --doc | --do)
865      ac_prev=docdir ;;
# Line 867 | Line 872 | do
872      dvidir=$ac_optarg ;;
873  
874    -enable-* | --enable-*)
875 <    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
875 >    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876      # Reject names that are not valid shell variable names.
877 <    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
878 <      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
879 <   { (exit 1); exit 1; }; }
880 <    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
881 <    eval enable_$ac_feature=\$ac_optarg ;;
877 >    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 >      as_fn_error $? "invalid feature name: $ac_useropt"
879 >    ac_useropt_orig=$ac_useropt
880 >    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 >    case $ac_user_opts in
882 >      *"
883 > "enable_$ac_useropt"
884 > "*) ;;
885 >      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
886 >         ac_unrecognized_sep=', ';;
887 >    esac
888 >    eval enable_$ac_useropt=\$ac_optarg ;;
889  
890    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
891    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
# Line 1064 | Line 1076 | do
1076      ac_init_version=: ;;
1077  
1078    -with-* | --with-*)
1079 <    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1079 >    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1080      # Reject names that are not valid shell variable names.
1081 <    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1082 <      { echo "$as_me: error: invalid package name: $ac_package" >&2
1083 <   { (exit 1); exit 1; }; }
1084 <    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1085 <    eval with_$ac_package=\$ac_optarg ;;
1081 >    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 >      as_fn_error $? "invalid package name: $ac_useropt"
1083 >    ac_useropt_orig=$ac_useropt
1084 >    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 >    case $ac_user_opts in
1086 >      *"
1087 > "with_$ac_useropt"
1088 > "*) ;;
1089 >      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1090 >         ac_unrecognized_sep=', ';;
1091 >    esac
1092 >    eval with_$ac_useropt=\$ac_optarg ;;
1093  
1094    -without-* | --without-*)
1095 <    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1095 >    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096      # Reject names that are not valid shell variable names.
1097 <    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1098 <      { echo "$as_me: error: invalid package name: $ac_package" >&2
1099 <   { (exit 1); exit 1; }; }
1100 <    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1101 <    eval with_$ac_package=no ;;
1097 >    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 >      as_fn_error $? "invalid package name: $ac_useropt"
1099 >    ac_useropt_orig=$ac_useropt
1100 >    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 >    case $ac_user_opts in
1102 >      *"
1103 > "with_$ac_useropt"
1104 > "*) ;;
1105 >      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1106 >         ac_unrecognized_sep=', ';;
1107 >    esac
1108 >    eval with_$ac_useropt=no ;;
1109  
1110    --x)
1111      # Obsolete; use --with-x.
# Line 1099 | Line 1125 | do
1125    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126      x_libraries=$ac_optarg ;;
1127  
1128 <  -*) { echo "$as_me: error: unrecognized option: $ac_option
1129 < Try \`$0 --help' for more information." >&2
1104 <   { (exit 1); exit 1; }; }
1128 >  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1129 > Try \`$0 --help' for more information"
1130      ;;
1131  
1132    *=*)
1133      ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1134      # Reject names that are not valid shell variable names.
1135 <    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1136 <      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1137 <   { (exit 1); exit 1; }; }
1135 >    case $ac_envvar in #(
1136 >      '' | [0-9]* | *[!_$as_cr_alnum]* )
1137 >      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1138 >    esac
1139      eval $ac_envvar=\$ac_optarg
1140      export $ac_envvar ;;
1141  
1142    *)
1143      # FIXME: should be removed in autoconf 3.0.
1144 <    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1144 >    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146 <      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147 <    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1146 >      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147 >    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1148      ;;
1149  
1150    esac
# Line 1126 | Line 1152 | if test -n "$ac_prev"; then
1152  
1153   if test -n "$ac_prev"; then
1154    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155 <  { echo "$as_me: error: missing argument to $ac_option" >&2
1130 <   { (exit 1); exit 1; }; }
1155 >  as_fn_error $? "missing argument to $ac_option"
1156   fi
1157  
1158 < # Be sure to have absolute directory names.
1158 > if test -n "$ac_unrecognized_opts"; then
1159 >  case $enable_option_checking in
1160 >    no) ;;
1161 >    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1162 >    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163 >  esac
1164 > fi
1165 >
1166 > # Check all directory arguments for consistency.
1167   for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168                  datadir sysconfdir sharedstatedir localstatedir includedir \
1169                  oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170                  libdir localedir mandir
1171   do
1172    eval ac_val=\$$ac_var
1173 +  # Remove trailing slashes.
1174    case $ac_val in
1175 +    */ )
1176 +      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1177 +      eval $ac_var=\$ac_val;;
1178 +  esac
1179 +  # Be sure to have absolute directory names.
1180 +  case $ac_val in
1181      [\\/$]* | ?:[\\/]* )  continue;;
1182      NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183    esac
1184 <  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1145 <   { (exit 1); exit 1; }; }
1184 >  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1185   done
1186  
1187   # There might be people who depend on the old broken behavior: `$host'
# Line 1156 | Line 1195 | if test "x$host_alias" != x; then
1195   if test "x$host_alias" != x; then
1196    if test "x$build_alias" = x; then
1197      cross_compiling=maybe
1198 <    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1199 <    If a cross compiler is detected then cross compile mode will be used." >&2
1198 >    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1199 >    If a cross compiler is detected then cross compile mode will be used" >&2
1200    elif test "x$build_alias" != "x$host_alias"; then
1201      cross_compiling=yes
1202    fi
# Line 1172 | Line 1211 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1211   ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212   ac_ls_di=`ls -di .` &&
1213   ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214 <  { echo "$as_me: error: Working directory cannot be determined" >&2
1176 <   { (exit 1); exit 1; }; }
1214 >  as_fn_error $? "working directory cannot be determined"
1215   test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216 <  { echo "$as_me: error: pwd does not report name of working directory" >&2
1179 <   { (exit 1); exit 1; }; }
1216 >  as_fn_error $? "pwd does not report name of working directory"
1217  
1218  
1219   # Find the source files, if location was not specified.
1220   if test -z "$srcdir"; then
1221    ac_srcdir_defaulted=yes
1222    # Try the directory containing this script, then the parent directory.
1223 <  ac_confdir=`$as_dirname -- "$0" ||
1224 < $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225 <         X"$0" : 'X\(//\)[^/]' \| \
1226 <         X"$0" : 'X\(//\)$' \| \
1227 <         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1228 < echo X"$0" |
1223 >  ac_confdir=`$as_dirname -- "$as_myself" ||
1224 > $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225 >         X"$as_myself" : 'X\(//\)[^/]' \| \
1226 >         X"$as_myself" : 'X\(//\)$' \| \
1227 >         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228 > $as_echo X"$as_myself" |
1229      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230              s//\1/
1231              q
# Line 1215 | Line 1252 | if test ! -r "$srcdir/$ac_unique_file"; then
1252   fi
1253   if test ! -r "$srcdir/$ac_unique_file"; then
1254    test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255 <  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1219 <   { (exit 1); exit 1; }; }
1255 >  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1256   fi
1257   ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258   ac_abs_confdir=`(
1259 <        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1224 <   { (exit 1); exit 1; }; }
1259 >        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1260          pwd)`
1261   # When building in place, set srcdir=.
1262   if test "$ac_abs_confdir" = "$ac_pwd"; then
# Line 1247 | Line 1282 | if test "$ac_init_help" = "long"; then
1282    # Omit some internal or obsolete options to make the list less imposing.
1283    # This message is too long to be a string in the A/UX 3.1 sh.
1284    cat <<_ACEOF
1285 < \`configure' configures OOPSE 3.0 to adapt to many kinds of systems.
1285 > \`configure' configures OpenMD 2.0 to adapt to many kinds of systems.
1286  
1287   Usage: $0 [OPTION]... [VAR=VALUE]...
1288  
# Line 1261 | Line 1296 | Configuration:
1296        --help=short        display options specific to this package
1297        --help=recursive    display the short help of all the included packages
1298    -V, --version           display version information and exit
1299 <  -q, --quiet, --silent   do not print \`checking...' messages
1299 >  -q, --quiet, --silent   do not print \`checking ...' messages
1300        --cache-file=FILE   cache test results in FILE [disabled]
1301    -C, --config-cache      alias for \`--cache-file=config.cache'
1302    -n, --no-create         do not create output files
# Line 1269 | Line 1304 | Installation directories:
1304  
1305   Installation directories:
1306    --prefix=PREFIX         install architecture-independent files in PREFIX
1307 <                          [$ac_default_prefix]
1307 >                          [$ac_default_prefix]
1308    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1309 <                          [PREFIX]
1309 >                          [PREFIX]
1310  
1311   By default, \`make install' will install all the files in
1312   \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
# Line 1281 | Line 1316 | Fine tuning of the installation directories:
1316   For better control, use the options below.
1317  
1318   Fine tuning of the installation directories:
1319 <  --bindir=DIR           user executables [EPREFIX/bin]
1320 <  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1321 <  --libexecdir=DIR       program executables [EPREFIX/libexec]
1322 <  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1323 <  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1324 <  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1325 <  --libdir=DIR           object code libraries [EPREFIX/lib]
1326 <  --includedir=DIR       C header files [PREFIX/include]
1327 <  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1328 <  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1329 <  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1330 <  --infodir=DIR          info documentation [DATAROOTDIR/info]
1331 <  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1332 <  --mandir=DIR           man documentation [DATAROOTDIR/man]
1333 <  --docdir=DIR           documentation root [DATAROOTDIR/doc/oopse]
1334 <  --htmldir=DIR          html documentation [DOCDIR]
1335 <  --dvidir=DIR           dvi documentation [DOCDIR]
1336 <  --pdfdir=DIR           pdf documentation [DOCDIR]
1337 <  --psdir=DIR            ps documentation [DOCDIR]
1319 >  --bindir=DIR            user executables [EPREFIX/bin]
1320 >  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1321 >  --libexecdir=DIR        program executables [EPREFIX/libexec]
1322 >  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1323 >  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1324 >  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1325 >  --libdir=DIR            object code libraries [EPREFIX/lib]
1326 >  --includedir=DIR        C header files [PREFIX/include]
1327 >  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1328 >  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1329 >  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1330 >  --infodir=DIR           info documentation [DATAROOTDIR/info]
1331 >  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1332 >  --mandir=DIR            man documentation [DATAROOTDIR/man]
1333 >  --docdir=DIR            documentation root [DATAROOTDIR/doc/openmd]
1334 >  --htmldir=DIR           html documentation [DOCDIR]
1335 >  --dvidir=DIR            dvi documentation [DOCDIR]
1336 >  --pdfdir=DIR            pdf documentation [DOCDIR]
1337 >  --psdir=DIR             ps documentation [DOCDIR]
1338   _ACEOF
1339  
1340    cat <<\_ACEOF
# Line 1312 | Line 1347 | if test -n "$ac_init_help"; then
1347  
1348   if test -n "$ac_init_help"; then
1349    case $ac_init_help in
1350 <     short | recursive ) echo "Configuration of OOPSE 3.0:";;
1350 >     short | recursive ) echo "Configuration of OpenMD 2.0:";;
1351     esac
1352    cat <<\_ACEOF
1353  
1354   Optional Features:
1355 +  --disable-option-checking  ignore unrecognized --enable/--with options
1356    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1357    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1358 <  --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse
1359 <  --enable-debug          Compile OOPSE in debug mode
1360 <  --enable-single         compile OOPSE in single precision
1358 >  --enable-openmd-home=DIR      define OpenMD home dir PREFIX/openmd
1359 >  --enable-debug          Compile OpenMD in debug mode
1360 >  --enable-single         compile OpenMD in single precision
1361    --enable-float          synonym for --enable-single
1362    --enable-doxygen        enable documentation generation with doxygen (auto)
1363    --enable-dot            use 'dot' to generate graphs in doxygen (auto)
# Line 1337 | Line 1373 | Optional Packages:
1373                            to /usr/local or /usr if not found in /usr/local)
1374    --with-fftw=DIR         root directory path of fftw installation (defaults
1375                            to /usr/local or /usr if not found in /usr/local)
1376 <  --with-mpi=<prefix>     compile with MPI installed in <prefix> [default=no]
1376 >  --with-qhull=DIR        root directory path of qhull installation (defaults
1377 >                          to /usr/local or /usr if not found in /usr/local)
1378 >  --with-openbabel=DIR    root directory path of openbabel-2.x installation
1379 >                          (defaults to /usr/local or /usr if not found in
1380 >                          /usr/local)
1381  
1382   Some influential environment variables:
1383    CXX         C++ compiler command
# Line 1345 | Line 1385 | Some influential environment variables:
1385    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1386                nonstandard directory <lib dir>
1387    LIBS        libraries to pass to the linker, e.g. -l<library>
1388 <  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1388 >  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1389                you have headers in a nonstandard directory <include dir>
1390    CC          C compiler command
1391    CFLAGS      C compiler flags
1392 <  FC          Fortran compiler command
1393 <  FCFLAGS     Fortran compiler flags
1392 >  MPICXX      MPI C++ compiler command
1393 >  MPICC       MPI C compiler command
1394    CPP         C preprocessor
1395    CXXCPP      C++ preprocessor
1396  
# Line 1365 | Line 1405 | if test "$ac_init_help" = "recursive"; then
1405   if test "$ac_init_help" = "recursive"; then
1406    # If there are subdirs, report their specific --help.
1407    for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1408 <    test -d "$ac_dir" || continue
1408 >    test -d "$ac_dir" ||
1409 >      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1410 >      continue
1411      ac_builddir=.
1412  
1413   case "$ac_dir" in
1414   .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415   *)
1416 <  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1416 >  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1417    # A ".." for each directory in $ac_dir_suffix.
1418 <  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1418 >  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1419    case $ac_top_builddir_sub in
1420    "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421    *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
# Line 1409 | Line 1451 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1451        echo &&
1452        $SHELL "$ac_srcdir/configure" --help=recursive
1453      else
1454 <      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1454 >      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1455      fi || ac_status=$?
1456      cd "$ac_pwd" || { ac_status=$?; break; }
1457    done
# Line 1418 | Line 1460 | if $ac_init_version; then
1460   test -n "$ac_init_help" && exit $ac_status
1461   if $ac_init_version; then
1462    cat <<\_ACEOF
1463 < OOPSE configure 3.0
1464 < generated by GNU Autoconf 2.61
1463 > OpenMD configure 2.0
1464 > generated by GNU Autoconf 2.68
1465  
1466 < Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1425 < 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1466 > Copyright (C) 2010 Free Software Foundation, Inc.
1467   This configure script is free software; the Free Software Foundation
1468   gives unlimited permission to copy, distribute and modify it.
1469   _ACEOF
1470    exit
1471 + fi
1472 +
1473 + ## ------------------------ ##
1474 + ## Autoconf initialization. ##
1475 + ## ------------------------ ##
1476 +
1477 + # ac_fn_cxx_try_compile LINENO
1478 + # ----------------------------
1479 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1480 + ac_fn_cxx_try_compile ()
1481 + {
1482 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483 +  rm -f conftest.$ac_objext
1484 +  if { { ac_try="$ac_compile"
1485 + case "(($ac_try" in
1486 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487 +  *) ac_try_echo=$ac_try;;
1488 + esac
1489 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490 + $as_echo "$ac_try_echo"; } >&5
1491 +  (eval "$ac_compile") 2>conftest.err
1492 +  ac_status=$?
1493 +  if test -s conftest.err; then
1494 +    grep -v '^ *+' conftest.err >conftest.er1
1495 +    cat conftest.er1 >&5
1496 +    mv -f conftest.er1 conftest.err
1497 +  fi
1498 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499 +  test $ac_status = 0; } && {
1500 +         test -z "$ac_cxx_werror_flag" ||
1501 +         test ! -s conftest.err
1502 +       } && test -s conftest.$ac_objext; then :
1503 +  ac_retval=0
1504 + else
1505 +  $as_echo "$as_me: failed program was:" >&5
1506 + sed 's/^/| /' conftest.$ac_ext >&5
1507 +
1508 +        ac_retval=1
1509 + fi
1510 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1511 +  as_fn_set_status $ac_retval
1512 +
1513 + } # ac_fn_cxx_try_compile
1514 +
1515 + # ac_fn_c_try_compile LINENO
1516 + # --------------------------
1517 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 + ac_fn_c_try_compile ()
1519 + {
1520 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 +  rm -f conftest.$ac_objext
1522 +  if { { ac_try="$ac_compile"
1523 + case "(($ac_try" in
1524 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 +  *) ac_try_echo=$ac_try;;
1526 + esac
1527 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 + $as_echo "$ac_try_echo"; } >&5
1529 +  (eval "$ac_compile") 2>conftest.err
1530 +  ac_status=$?
1531 +  if test -s conftest.err; then
1532 +    grep -v '^ *+' conftest.err >conftest.er1
1533 +    cat conftest.er1 >&5
1534 +    mv -f conftest.er1 conftest.err
1535 +  fi
1536 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 +  test $ac_status = 0; } && {
1538 +         test -z "$ac_c_werror_flag" ||
1539 +         test ! -s conftest.err
1540 +       } && test -s conftest.$ac_objext; then :
1541 +  ac_retval=0
1542 + else
1543 +  $as_echo "$as_me: failed program was:" >&5
1544 + sed 's/^/| /' conftest.$ac_ext >&5
1545 +
1546 +        ac_retval=1
1547 + fi
1548 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 +  as_fn_set_status $ac_retval
1550 +
1551 + } # ac_fn_c_try_compile
1552 +
1553 + # ac_fn_cxx_try_link LINENO
1554 + # -------------------------
1555 + # Try to link conftest.$ac_ext, and return whether this succeeded.
1556 + ac_fn_cxx_try_link ()
1557 + {
1558 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 +  rm -f conftest.$ac_objext conftest$ac_exeext
1560 +  if { { ac_try="$ac_link"
1561 + case "(($ac_try" in
1562 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 +  *) ac_try_echo=$ac_try;;
1564 + esac
1565 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 + $as_echo "$ac_try_echo"; } >&5
1567 +  (eval "$ac_link") 2>conftest.err
1568 +  ac_status=$?
1569 +  if test -s conftest.err; then
1570 +    grep -v '^ *+' conftest.err >conftest.er1
1571 +    cat conftest.er1 >&5
1572 +    mv -f conftest.er1 conftest.err
1573 +  fi
1574 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 +  test $ac_status = 0; } && {
1576 +         test -z "$ac_cxx_werror_flag" ||
1577 +         test ! -s conftest.err
1578 +       } && test -s conftest$ac_exeext && {
1579 +         test "$cross_compiling" = yes ||
1580 +         $as_test_x conftest$ac_exeext
1581 +       }; then :
1582 +  ac_retval=0
1583 + else
1584 +  $as_echo "$as_me: failed program was:" >&5
1585 + sed 's/^/| /' conftest.$ac_ext >&5
1586 +
1587 +        ac_retval=1
1588   fi
1589 +  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1590 +  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1591 +  # interfere with the next link command; also delete a directory that is
1592 +  # left behind by Apple's compiler.  We do this before executing the actions.
1593 +  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1594 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 +  as_fn_set_status $ac_retval
1596 +
1597 + } # ac_fn_cxx_try_link
1598 +
1599 + # ac_fn_cxx_check_func LINENO FUNC VAR
1600 + # ------------------------------------
1601 + # Tests whether FUNC exists, setting the cache variable VAR accordingly
1602 + ac_fn_cxx_check_func ()
1603 + {
1604 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606 + $as_echo_n "checking for $2... " >&6; }
1607 + if eval \${$3+:} false; then :
1608 +  $as_echo_n "(cached) " >&6
1609 + else
1610 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 + /* end confdefs.h.  */
1612 + /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1613 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1614 + #define $2 innocuous_$2
1615 +
1616 + /* System header to define __stub macros and hopefully few prototypes,
1617 +    which can conflict with char $2 (); below.
1618 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1619 +    <limits.h> exists even on freestanding compilers.  */
1620 +
1621 + #ifdef __STDC__
1622 + # include <limits.h>
1623 + #else
1624 + # include <assert.h>
1625 + #endif
1626 +
1627 + #undef $2
1628 +
1629 + /* Override any GCC internal prototype to avoid an error.
1630 +   Use char because int might match the return type of a GCC
1631 +   builtin and then its argument prototype would still apply.  */
1632 + #ifdef __cplusplus
1633 + extern "C"
1634 + #endif
1635 + char $2 ();
1636 + /* The GNU C library defines this for functions which it implements
1637 +    to always fail with ENOSYS.  Some functions are actually named
1638 +    something starting with __ and the normal name is an alias.  */
1639 + #if defined __stub_$2 || defined __stub___$2
1640 + choke me
1641 + #endif
1642 +
1643 + int
1644 + main ()
1645 + {
1646 + return $2 ();
1647 +  ;
1648 +  return 0;
1649 + }
1650 + _ACEOF
1651 + if ac_fn_cxx_try_link "$LINENO"; then :
1652 +  eval "$3=yes"
1653 + else
1654 +  eval "$3=no"
1655 + fi
1656 + rm -f core conftest.err conftest.$ac_objext \
1657 +    conftest$ac_exeext conftest.$ac_ext
1658 + fi
1659 + eval ac_res=\$$3
1660 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 + $as_echo "$ac_res" >&6; }
1662 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 +
1664 + } # ac_fn_cxx_check_func
1665 +
1666 + # ac_fn_c_try_link LINENO
1667 + # -----------------------
1668 + # Try to link conftest.$ac_ext, and return whether this succeeded.
1669 + ac_fn_c_try_link ()
1670 + {
1671 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 +  rm -f conftest.$ac_objext conftest$ac_exeext
1673 +  if { { ac_try="$ac_link"
1674 + case "(($ac_try" in
1675 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 +  *) ac_try_echo=$ac_try;;
1677 + esac
1678 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 + $as_echo "$ac_try_echo"; } >&5
1680 +  (eval "$ac_link") 2>conftest.err
1681 +  ac_status=$?
1682 +  if test -s conftest.err; then
1683 +    grep -v '^ *+' conftest.err >conftest.er1
1684 +    cat conftest.er1 >&5
1685 +    mv -f conftest.er1 conftest.err
1686 +  fi
1687 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 +  test $ac_status = 0; } && {
1689 +         test -z "$ac_c_werror_flag" ||
1690 +         test ! -s conftest.err
1691 +       } && test -s conftest$ac_exeext && {
1692 +         test "$cross_compiling" = yes ||
1693 +         $as_test_x conftest$ac_exeext
1694 +       }; then :
1695 +  ac_retval=0
1696 + else
1697 +  $as_echo "$as_me: failed program was:" >&5
1698 + sed 's/^/| /' conftest.$ac_ext >&5
1699 +
1700 +        ac_retval=1
1701 + fi
1702 +  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1703 +  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1704 +  # interfere with the next link command; also delete a directory that is
1705 +  # left behind by Apple's compiler.  We do this before executing the actions.
1706 +  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 +  as_fn_set_status $ac_retval
1709 +
1710 + } # ac_fn_c_try_link
1711 +
1712 + # ac_fn_c_check_func LINENO FUNC VAR
1713 + # ----------------------------------
1714 + # Tests whether FUNC exists, setting the cache variable VAR accordingly
1715 + ac_fn_c_check_func ()
1716 + {
1717 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 + $as_echo_n "checking for $2... " >&6; }
1720 + if eval \${$3+:} false; then :
1721 +  $as_echo_n "(cached) " >&6
1722 + else
1723 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 + /* end confdefs.h.  */
1725 + /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1726 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1727 + #define $2 innocuous_$2
1728 +
1729 + /* System header to define __stub macros and hopefully few prototypes,
1730 +    which can conflict with char $2 (); below.
1731 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1732 +    <limits.h> exists even on freestanding compilers.  */
1733 +
1734 + #ifdef __STDC__
1735 + # include <limits.h>
1736 + #else
1737 + # include <assert.h>
1738 + #endif
1739 +
1740 + #undef $2
1741 +
1742 + /* Override any GCC internal prototype to avoid an error.
1743 +   Use char because int might match the return type of a GCC
1744 +   builtin and then its argument prototype would still apply.  */
1745 + #ifdef __cplusplus
1746 + extern "C"
1747 + #endif
1748 + char $2 ();
1749 + /* The GNU C library defines this for functions which it implements
1750 +    to always fail with ENOSYS.  Some functions are actually named
1751 +    something starting with __ and the normal name is an alias.  */
1752 + #if defined __stub_$2 || defined __stub___$2
1753 + choke me
1754 + #endif
1755 +
1756 + int
1757 + main ()
1758 + {
1759 + return $2 ();
1760 +  ;
1761 +  return 0;
1762 + }
1763 + _ACEOF
1764 + if ac_fn_c_try_link "$LINENO"; then :
1765 +  eval "$3=yes"
1766 + else
1767 +  eval "$3=no"
1768 + fi
1769 + rm -f core conftest.err conftest.$ac_objext \
1770 +    conftest$ac_exeext conftest.$ac_ext
1771 + fi
1772 + eval ac_res=\$$3
1773 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 + $as_echo "$ac_res" >&6; }
1775 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 +
1777 + } # ac_fn_c_check_func
1778 +
1779 + # ac_fn_c_try_cpp LINENO
1780 + # ----------------------
1781 + # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1782 + ac_fn_c_try_cpp ()
1783 + {
1784 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 +  if { { ac_try="$ac_cpp conftest.$ac_ext"
1786 + case "(($ac_try" in
1787 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 +  *) ac_try_echo=$ac_try;;
1789 + esac
1790 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 + $as_echo "$ac_try_echo"; } >&5
1792 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1793 +  ac_status=$?
1794 +  if test -s conftest.err; then
1795 +    grep -v '^ *+' conftest.err >conftest.er1
1796 +    cat conftest.er1 >&5
1797 +    mv -f conftest.er1 conftest.err
1798 +  fi
1799 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 +  test $ac_status = 0; } > conftest.i && {
1801 +         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1802 +         test ! -s conftest.err
1803 +       }; then :
1804 +  ac_retval=0
1805 + else
1806 +  $as_echo "$as_me: failed program was:" >&5
1807 + sed 's/^/| /' conftest.$ac_ext >&5
1808 +
1809 +    ac_retval=1
1810 + fi
1811 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 +  as_fn_set_status $ac_retval
1813 +
1814 + } # ac_fn_c_try_cpp
1815 +
1816 + # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1817 + # -------------------------------------------------------
1818 + # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1819 + # the include files in INCLUDES and setting the cache variable VAR
1820 + # accordingly.
1821 + ac_fn_c_check_header_mongrel ()
1822 + {
1823 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 +  if eval \${$3+:} false; then :
1825 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 + $as_echo_n "checking for $2... " >&6; }
1827 + if eval \${$3+:} false; then :
1828 +  $as_echo_n "(cached) " >&6
1829 + fi
1830 + eval ac_res=\$$3
1831 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 + $as_echo "$ac_res" >&6; }
1833 + else
1834 +  # Is the header compilable?
1835 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1836 + $as_echo_n "checking $2 usability... " >&6; }
1837 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 + /* end confdefs.h.  */
1839 + $4
1840 + #include <$2>
1841 + _ACEOF
1842 + if ac_fn_c_try_compile "$LINENO"; then :
1843 +  ac_header_compiler=yes
1844 + else
1845 +  ac_header_compiler=no
1846 + fi
1847 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1849 + $as_echo "$ac_header_compiler" >&6; }
1850 +
1851 + # Is the header present?
1852 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1853 + $as_echo_n "checking $2 presence... " >&6; }
1854 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 + /* end confdefs.h.  */
1856 + #include <$2>
1857 + _ACEOF
1858 + if ac_fn_c_try_cpp "$LINENO"; then :
1859 +  ac_header_preproc=yes
1860 + else
1861 +  ac_header_preproc=no
1862 + fi
1863 + rm -f conftest.err conftest.i conftest.$ac_ext
1864 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1865 + $as_echo "$ac_header_preproc" >&6; }
1866 +
1867 + # So?  What about this header?
1868 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1869 +  yes:no: )
1870 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1871 + $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1872 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873 + $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 +    ;;
1875 +  no:yes:* )
1876 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1877 + $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1878 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1879 + $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1880 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1881 + $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1882 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1883 + $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1884 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885 + $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1886 + ( $as_echo "## ------------------------------ ##
1887 + ## Report this to gezelter@nd.edu ##
1888 + ## ------------------------------ ##"
1889 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
1890 +    ;;
1891 + esac
1892 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 + $as_echo_n "checking for $2... " >&6; }
1894 + if eval \${$3+:} false; then :
1895 +  $as_echo_n "(cached) " >&6
1896 + else
1897 +  eval "$3=\$ac_header_compiler"
1898 + fi
1899 + eval ac_res=\$$3
1900 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 + $as_echo "$ac_res" >&6; }
1902 + fi
1903 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 +
1905 + } # ac_fn_c_check_header_mongrel
1906 +
1907 + # ac_fn_c_try_run LINENO
1908 + # ----------------------
1909 + # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1910 + # that executables *can* be run.
1911 + ac_fn_c_try_run ()
1912 + {
1913 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 +  if { { ac_try="$ac_link"
1915 + case "(($ac_try" in
1916 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 +  *) ac_try_echo=$ac_try;;
1918 + esac
1919 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 + $as_echo "$ac_try_echo"; } >&5
1921 +  (eval "$ac_link") 2>&5
1922 +  ac_status=$?
1923 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 +  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1925 +  { { case "(($ac_try" in
1926 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 +  *) ac_try_echo=$ac_try;;
1928 + esac
1929 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 + $as_echo "$ac_try_echo"; } >&5
1931 +  (eval "$ac_try") 2>&5
1932 +  ac_status=$?
1933 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 +  test $ac_status = 0; }; }; then :
1935 +  ac_retval=0
1936 + else
1937 +  $as_echo "$as_me: program exited with status $ac_status" >&5
1938 +       $as_echo "$as_me: failed program was:" >&5
1939 + sed 's/^/| /' conftest.$ac_ext >&5
1940 +
1941 +       ac_retval=$ac_status
1942 + fi
1943 +  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1944 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 +  as_fn_set_status $ac_retval
1946 +
1947 + } # ac_fn_c_try_run
1948 +
1949 + # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1950 + # -------------------------------------------------------
1951 + # Tests whether HEADER exists and can be compiled using the include files in
1952 + # INCLUDES, setting the cache variable VAR accordingly.
1953 + ac_fn_c_check_header_compile ()
1954 + {
1955 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 + $as_echo_n "checking for $2... " >&6; }
1958 + if eval \${$3+:} false; then :
1959 +  $as_echo_n "(cached) " >&6
1960 + else
1961 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 + /* end confdefs.h.  */
1963 + $4
1964 + #include <$2>
1965 + _ACEOF
1966 + if ac_fn_c_try_compile "$LINENO"; then :
1967 +  eval "$3=yes"
1968 + else
1969 +  eval "$3=no"
1970 + fi
1971 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 + fi
1973 + eval ac_res=\$$3
1974 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 + $as_echo "$ac_res" >&6; }
1976 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 +
1978 + } # ac_fn_c_check_header_compile
1979 +
1980 + # ac_fn_cxx_try_cpp LINENO
1981 + # ------------------------
1982 + # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1983 + ac_fn_cxx_try_cpp ()
1984 + {
1985 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 +  if { { ac_try="$ac_cpp conftest.$ac_ext"
1987 + case "(($ac_try" in
1988 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 +  *) ac_try_echo=$ac_try;;
1990 + esac
1991 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 + $as_echo "$ac_try_echo"; } >&5
1993 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1994 +  ac_status=$?
1995 +  if test -s conftest.err; then
1996 +    grep -v '^ *+' conftest.err >conftest.er1
1997 +    cat conftest.er1 >&5
1998 +    mv -f conftest.er1 conftest.err
1999 +  fi
2000 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 +  test $ac_status = 0; } > conftest.i && {
2002 +         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2003 +         test ! -s conftest.err
2004 +       }; then :
2005 +  ac_retval=0
2006 + else
2007 +  $as_echo "$as_me: failed program was:" >&5
2008 + sed 's/^/| /' conftest.$ac_ext >&5
2009 +
2010 +    ac_retval=1
2011 + fi
2012 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 +  as_fn_set_status $ac_retval
2014 +
2015 + } # ac_fn_cxx_try_cpp
2016 +
2017 + # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2018 + # ---------------------------------------------------------
2019 + # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2020 + # the include files in INCLUDES and setting the cache variable VAR
2021 + # accordingly.
2022 + ac_fn_cxx_check_header_mongrel ()
2023 + {
2024 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 +  if eval \${$3+:} false; then :
2026 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 + $as_echo_n "checking for $2... " >&6; }
2028 + if eval \${$3+:} false; then :
2029 +  $as_echo_n "(cached) " >&6
2030 + fi
2031 + eval ac_res=\$$3
2032 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 + $as_echo "$ac_res" >&6; }
2034 + else
2035 +  # Is the header compilable?
2036 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2037 + $as_echo_n "checking $2 usability... " >&6; }
2038 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 + /* end confdefs.h.  */
2040 + $4
2041 + #include <$2>
2042 + _ACEOF
2043 + if ac_fn_cxx_try_compile "$LINENO"; then :
2044 +  ac_header_compiler=yes
2045 + else
2046 +  ac_header_compiler=no
2047 + fi
2048 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2050 + $as_echo "$ac_header_compiler" >&6; }
2051 +
2052 + # Is the header present?
2053 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2054 + $as_echo_n "checking $2 presence... " >&6; }
2055 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 + /* end confdefs.h.  */
2057 + #include <$2>
2058 + _ACEOF
2059 + if ac_fn_cxx_try_cpp "$LINENO"; then :
2060 +  ac_header_preproc=yes
2061 + else
2062 +  ac_header_preproc=no
2063 + fi
2064 + rm -f conftest.err conftest.i conftest.$ac_ext
2065 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2066 + $as_echo "$ac_header_preproc" >&6; }
2067 +
2068 + # So?  What about this header?
2069 + case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2070 +  yes:no: )
2071 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2072 + $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2073 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2074 + $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2075 +    ;;
2076 +  no:yes:* )
2077 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2078 + $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2079 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2080 + $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2081 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2082 + $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2083 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2084 + $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2085 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2086 + $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2087 + ( $as_echo "## ------------------------------ ##
2088 + ## Report this to gezelter@nd.edu ##
2089 + ## ------------------------------ ##"
2090 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
2091 +    ;;
2092 + esac
2093 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 + $as_echo_n "checking for $2... " >&6; }
2095 + if eval \${$3+:} false; then :
2096 +  $as_echo_n "(cached) " >&6
2097 + else
2098 +  eval "$3=\$ac_header_compiler"
2099 + fi
2100 + eval ac_res=\$$3
2101 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 + $as_echo "$ac_res" >&6; }
2103 + fi
2104 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105 +
2106 + } # ac_fn_cxx_check_header_mongrel
2107 +
2108 + # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2109 + # -------------------------------------------
2110 + # Tests whether TYPE exists after having included INCLUDES, setting cache
2111 + # variable VAR accordingly.
2112 + ac_fn_c_check_type ()
2113 + {
2114 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 + $as_echo_n "checking for $2... " >&6; }
2117 + if eval \${$3+:} false; then :
2118 +  $as_echo_n "(cached) " >&6
2119 + else
2120 +  eval "$3=no"
2121 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 + /* end confdefs.h.  */
2123 + $4
2124 + int
2125 + main ()
2126 + {
2127 + if (sizeof ($2))
2128 +         return 0;
2129 +  ;
2130 +  return 0;
2131 + }
2132 + _ACEOF
2133 + if ac_fn_c_try_compile "$LINENO"; then :
2134 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 + /* end confdefs.h.  */
2136 + $4
2137 + int
2138 + main ()
2139 + {
2140 + if (sizeof (($2)))
2141 +            return 0;
2142 +  ;
2143 +  return 0;
2144 + }
2145 + _ACEOF
2146 + if ac_fn_c_try_compile "$LINENO"; then :
2147 +
2148 + else
2149 +  eval "$3=yes"
2150 + fi
2151 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 + fi
2153 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 + fi
2155 + eval ac_res=\$$3
2156 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157 + $as_echo "$ac_res" >&6; }
2158 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159 +
2160 + } # ac_fn_c_check_type
2161   cat >config.log <<_ACEOF
2162   This file contains any messages produced by compilers while
2163   running configure, to aid debugging if configure makes a mistake.
2164  
2165 < It was created by OOPSE $as_me 3.0, which was
2166 < generated by GNU Autoconf 2.61.  Invocation command line was
2165 > It was created by OpenMD $as_me 2.0, which was
2166 > generated by GNU Autoconf 2.68.  Invocation command line was
2167  
2168    $ $0 $@
2169  
# Line 1469 | Line 2199 | do
2199   do
2200    IFS=$as_save_IFS
2201    test -z "$as_dir" && as_dir=.
2202 <  echo "PATH: $as_dir"
2203 < done
2202 >    $as_echo "PATH: $as_dir"
2203 >  done
2204   IFS=$as_save_IFS
2205  
2206   } >&5
# Line 1504 | Line 2234 | do
2234      | -silent | --silent | --silen | --sile | --sil)
2235        continue ;;
2236      *\'*)
2237 <      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2237 >      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2238      esac
2239      case $ac_pass in
2240 <    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2240 >    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2241      2)
2242 <      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2242 >      as_fn_append ac_configure_args1 " '$ac_arg'"
2243        if test $ac_must_keep_next = true; then
2244          ac_must_keep_next=false # Got value, back to normal.
2245        else
# Line 1525 | Line 2255 | do
2255            -* ) ac_must_keep_next=true ;;
2256          esac
2257        fi
2258 <      ac_configure_args="$ac_configure_args '$ac_arg'"
2258 >      as_fn_append ac_configure_args " '$ac_arg'"
2259        ;;
2260      esac
2261    done
2262   done
2263 < $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2264 < $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2263 > { ac_configure_args0=; unset ac_configure_args0;}
2264 > { ac_configure_args1=; unset ac_configure_args1;}
2265  
2266   # When interrupted or exit'd, cleanup temporary files, and complete
2267   # config.log.  We remove comments because anyway the quotes in there
# Line 1543 | Line 2273 | trap 'exit_status=$?
2273    {
2274      echo
2275  
2276 <    cat <<\_ASBOX
1547 < ## ---------------- ##
2276 >    $as_echo "## ---------------- ##
2277   ## Cache variables. ##
2278 < ## ---------------- ##
1550 < _ASBOX
2278 > ## ---------------- ##"
2279      echo
2280      # The following way of writing the cache mishandles newlines in values,
2281   (
# Line 1556 | Line 2284 | _ASBOX
2284      case $ac_val in #(
2285      *${as_nl}*)
2286        case $ac_var in #(
2287 <      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2288 < echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2287 >      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2288 > $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2289        esac
2290        case $ac_var in #(
2291        _ | IFS | as_nl) ;; #(
2292 <      *) $as_unset $ac_var ;;
2292 >      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2293 >      *) { eval $ac_var=; unset $ac_var;} ;;
2294        esac ;;
2295      esac
2296    done
# Line 1580 | Line 2309 | echo "$as_me: WARNING: Cache variable $ac_var contains
2309   )
2310      echo
2311  
2312 <    cat <<\_ASBOX
1584 < ## ----------------- ##
2312 >    $as_echo "## ----------------- ##
2313   ## Output variables. ##
2314 < ## ----------------- ##
1587 < _ASBOX
2314 > ## ----------------- ##"
2315      echo
2316      for ac_var in $ac_subst_vars
2317      do
2318        eval ac_val=\$$ac_var
2319        case $ac_val in
2320 <      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2320 >      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2321        esac
2322 <      echo "$ac_var='\''$ac_val'\''"
2322 >      $as_echo "$ac_var='\''$ac_val'\''"
2323      done | sort
2324      echo
2325  
2326      if test -n "$ac_subst_files"; then
2327 <      cat <<\_ASBOX
1601 < ## ------------------- ##
2327 >      $as_echo "## ------------------- ##
2328   ## File substitutions. ##
2329 < ## ------------------- ##
1604 < _ASBOX
2329 > ## ------------------- ##"
2330        echo
2331        for ac_var in $ac_subst_files
2332        do
2333          eval ac_val=\$$ac_var
2334          case $ac_val in
2335 <        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335 >        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2336          esac
2337 <        echo "$ac_var='\''$ac_val'\''"
2337 >        $as_echo "$ac_var='\''$ac_val'\''"
2338        done | sort
2339        echo
2340      fi
2341  
2342      if test -s confdefs.h; then
2343 <      cat <<\_ASBOX
1619 < ## ----------- ##
2343 >      $as_echo "## ----------- ##
2344   ## confdefs.h. ##
2345 < ## ----------- ##
1622 < _ASBOX
2345 > ## ----------- ##"
2346        echo
2347        cat confdefs.h
2348        echo
2349      fi
2350      test "$ac_signal" != 0 &&
2351 <      echo "$as_me: caught signal $ac_signal"
2352 <    echo "$as_me: exit $exit_status"
2351 >      $as_echo "$as_me: caught signal $ac_signal"
2352 >    $as_echo "$as_me: exit $exit_status"
2353    } >&5
2354 <  rm -rf core *.core core.conftest.* &&
2354 >  rm -f core *.core core.conftest.* &&
2355      rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2356      exit $exit_status
2357   ' 0
2358   for ac_signal in 1 2 13 15; do
2359 <  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2359 >  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2360   done
2361   ac_signal=0
2362  
2363   # confdefs.h avoids OS command line length limits that DEFS can exceed.
2364   rm -f -r conftest* confdefs.h
2365  
2366 + $as_echo "/* confdefs.h */" > confdefs.h
2367 +
2368   # Predefined preprocessor variables.
2369  
2370   cat >>confdefs.h <<_ACEOF
2371   #define PACKAGE_NAME "$PACKAGE_NAME"
2372   _ACEOF
2373  
1649
2374   cat >>confdefs.h <<_ACEOF
2375   #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2376   _ACEOF
2377  
1654
2378   cat >>confdefs.h <<_ACEOF
2379   #define PACKAGE_VERSION "$PACKAGE_VERSION"
2380   _ACEOF
2381  
1659
2382   cat >>confdefs.h <<_ACEOF
2383   #define PACKAGE_STRING "$PACKAGE_STRING"
2384   _ACEOF
2385  
1664
2386   cat >>confdefs.h <<_ACEOF
2387   #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2388   _ACEOF
2389  
2390 + cat >>confdefs.h <<_ACEOF
2391 + #define PACKAGE_URL "$PACKAGE_URL"
2392 + _ACEOF
2393  
2394 +
2395   # Let the site file select an alternate cache file if it wants to.
2396 < # Prefer explicitly selected file to automatically selected ones.
2396 > # Prefer an explicitly selected file to automatically selected ones.
2397 > ac_site_file1=NONE
2398 > ac_site_file2=NONE
2399   if test -n "$CONFIG_SITE"; then
2400 <  set x "$CONFIG_SITE"
2400 >  # We do not want a PATH search for config.site.
2401 >  case $CONFIG_SITE in #((
2402 >    -*)  ac_site_file1=./$CONFIG_SITE;;
2403 >    */*) ac_site_file1=$CONFIG_SITE;;
2404 >    *)   ac_site_file1=./$CONFIG_SITE;;
2405 >  esac
2406   elif test "x$prefix" != xNONE; then
2407 <  set x "$prefix/share/config.site" "$prefix/etc/config.site"
2407 >  ac_site_file1=$prefix/share/config.site
2408 >  ac_site_file2=$prefix/etc/config.site
2409   else
2410 <  set x "$ac_default_prefix/share/config.site" \
2411 <        "$ac_default_prefix/etc/config.site"
2410 >  ac_site_file1=$ac_default_prefix/share/config.site
2411 >  ac_site_file2=$ac_default_prefix/etc/config.site
2412   fi
2413 < shift
1681 < for ac_site_file
2413 > for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2414   do
2415 <  if test -r "$ac_site_file"; then
2416 <    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2417 < echo "$as_me: loading site script $ac_site_file" >&6;}
2415 >  test "x$ac_site_file" = xNONE && continue
2416 >  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2417 >    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2418 > $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2419      sed 's/^/| /' "$ac_site_file" >&5
2420 <    . "$ac_site_file"
2420 >    . "$ac_site_file" \
2421 >      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2422 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2423 > as_fn_error $? "failed to load site script $ac_site_file
2424 > See \`config.log' for more details" "$LINENO" 5; }
2425    fi
2426   done
2427  
2428   if test -r "$cache_file"; then
2429 <  # Some versions of bash will fail to source /dev/null (special
2430 <  # files actually), so we avoid doing that.
2431 <  if test -f "$cache_file"; then
2432 <    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2433 < echo "$as_me: loading cache $cache_file" >&6;}
2429 >  # Some versions of bash will fail to source /dev/null (special files
2430 >  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2431 >  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2432 >    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2433 > $as_echo "$as_me: loading cache $cache_file" >&6;}
2434      case $cache_file in
2435        [\\/]* | ?:[\\/]* ) . "$cache_file";;
2436        *)                      . "./$cache_file";;
2437      esac
2438    fi
2439   else
2440 <  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2441 < echo "$as_me: creating cache $cache_file" >&6;}
2440 >  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2441 > $as_echo "$as_me: creating cache $cache_file" >&6;}
2442    >$cache_file
2443   fi
2444  
# Line 1715 | Line 2452 | for ac_var in $ac_precious_vars; do
2452    eval ac_new_val=\$ac_env_${ac_var}_value
2453    case $ac_old_set,$ac_new_set in
2454      set,)
2455 <      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2456 < echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2455 >      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2456 > $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2457        ac_cache_corrupted=: ;;
2458      ,set)
2459 <      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2460 < echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2459 >      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2460 > $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2461        ac_cache_corrupted=: ;;
2462      ,);;
2463      *)
2464        if test "x$ac_old_val" != "x$ac_new_val"; then
2465 <        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2466 < echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2467 <        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2468 < echo "$as_me:   former value:  $ac_old_val" >&2;}
2469 <        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2470 < echo "$as_me:   current value: $ac_new_val" >&2;}
2471 <        ac_cache_corrupted=:
2465 >        # differences in whitespace do not lead to failure.
2466 >        ac_old_val_w=`echo x $ac_old_val`
2467 >        ac_new_val_w=`echo x $ac_new_val`
2468 >        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2469 >          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2470 > $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2471 >          ac_cache_corrupted=:
2472 >        else
2473 >          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2474 > $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2475 >          eval $ac_var=\$ac_old_val
2476 >        fi
2477 >        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2478 > $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2479 >        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2480 > $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2481        fi;;
2482    esac
2483    # Pass precious variables to config.status.
2484    if test "$ac_new_set" = set; then
2485      case $ac_new_val in
2486 <    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2486 >    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2487      *) ac_arg=$ac_var=$ac_new_val ;;
2488      esac
2489      case " $ac_configure_args " in
2490        *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2491 <      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2491 >      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2492      esac
2493    fi
2494   done
2495   if $ac_cache_corrupted; then
2496 <  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2497 < echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2498 <  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2499 < echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2500 <   { (exit 1); exit 1; }; }
2501 < fi
2496 >  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2497 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2498 >  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2499 > $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2500 >  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2501 > fi
2502 > ## -------------------- ##
2503 > ## Main body of script. ##
2504 > ## -------------------- ##
2505  
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
2506   ac_ext=c
2507   ac_cpp='$CPP $CPPFLAGS'
2508   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 1802 | Line 2527 | if test -z "$ac_aux_dir"; then
2527    fi
2528   done
2529   if test -z "$ac_aux_dir"; then
2530 <  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools \"$srcdir\"/ac-tools" >&5
1806 < echo "$as_me: error: cannot find install-sh or install.sh in ac-tools \"$srcdir\"/ac-tools" >&2;}
1807 <   { (exit 1); exit 1; }; }
2530 >  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2531   fi
2532  
2533   # These three variables are undocumented and unsupported,
# Line 1844 | Line 2567 | ac_config_headers="$ac_config_headers src/config.h"
2567  
2568  
2569  
2570 + #
2571 + #
2572 + #
2573  
2574  
2575  
# Line 1862 | Line 2588 | ac_config_headers="$ac_config_headers src/config.h"
2588  
2589  
2590  
1865 #
1866 #
1867 #
2591  
2592  
2593  
2594  
2595  
2596  
1874 # AC_F90_MODULE_NAMES
1875 # -------------------
1876 #
1877 # Figure out how the Fortran 90 compiler constructs module file names
1878 #
1879 # AC_F90_MODULE_NAMES
2597  
2598  
2599  
# Line 1950 | Line 2667 | ac_config_headers="$ac_config_headers src/config.h"
2667  
2668  
2669  
2670 + # ===========================================================================
2671 + #             http://www.nongnu.org/autoconf-archive/ax_mpi.html
2672 + # ===========================================================================
2673 + #
2674 + # SYNOPSIS
2675 + #
2676 + #   AX_MPI([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
2677 + #
2678 + # DESCRIPTION
2679 + #
2680 + #   This macro tries to find out how to compile programs that use MPI
2681 + #   (Message Passing Interface), a standard API for parallel process
2682 + #   communication (see http://www-unix.mcs.anl.gov/mpi/)
2683 + #
2684 + #   On success, it sets the MPICC, MPICXX, MPIF77, or MPIFC output variable
2685 + #   to the name of the MPI compiler, depending upon the current language.
2686 + #   (This may just be $CC/$CXX/$F77/$FC, but is more often something like
2687 + #   mpicc/mpiCC/mpif77/mpif90.) It also sets MPILIBS to any libraries that
2688 + #   are needed for linking MPI (e.g. -lmpi or -lfmpi, if a special
2689 + #   MPICC/MPICXX/MPIF77/MPIFC was not found).
2690 + #
2691 + #   If you want to compile everything with MPI, you should set:
2692 + #
2693 + #       CC="MPICC" #OR# CXX="MPICXX" #OR# F77="MPIF77" #OR# FC="MPIFC"
2694 + #       LIBS="$MPILIBS $LIBS"
2695 + #
2696 + #   NOTE: The above assumes that you will use $CC (or whatever) for linking
2697 + #   as well as for compiling. (This is the default for automake and most
2698 + #   Makefiles.)
2699 + #
2700 + #   The user can force a particular library/compiler by setting the
2701 + #   MPICC/MPICXX/MPIF77/MPIFC and/or MPILIBS environment variables.
2702 + #
2703 + #   ACTION-IF-FOUND is a list of shell commands to run if an MPI library is
2704 + #   found, and ACTION-IF-NOT-FOUND is a list of commands to run if it is not
2705 + #   found. If ACTION-IF-FOUND is not specified, the default action will
2706 + #   define HAVE_MPI.
2707 + #
2708 + # LICENSE
2709 + #
2710 + #   Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
2711 + #   Copyright (c) 2008 Julian C. Cummings <cummings@cacr.caltech.edu>
2712 + #
2713 + #   This program is free software: you can redistribute it and/or modify it
2714 + #   under the terms of the GNU General Public License as published by the
2715 + #   Free Software Foundation, either version 3 of the License, or (at your
2716 + #   option) any later version.
2717 + #
2718 + #   This program is distributed in the hope that it will be useful, but
2719 + #   WITHOUT ANY WARRANTY; without even the implied warranty of
2720 + #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
2721 + #   Public License for more details.
2722 + #
2723 + #   You should have received a copy of the GNU General Public License along
2724 + #   with this program. If not, see <http://www.gnu.org/licenses/>.
2725 + #
2726 + #   As a special exception, the respective Autoconf Macro's copyright owner
2727 + #   gives unlimited permission to copy, distribute and modify the configure
2728 + #   scripts that are the output of Autoconf when processing the Macro. You
2729 + #   need not follow the terms of the GNU General Public License when using
2730 + #   or distributing such scripts, even though portions of the text of the
2731 + #   Macro appear in them. The GNU General Public License (GPL) does govern
2732 + #   all other use of the material that constitutes the Autoconf Macro.
2733 + #
2734 + #   This special exception to the GPL applies to versions of the Autoconf
2735 + #   Macro released by the Autoconf Archive. When you make and distribute a
2736 + #   modified version of the Autoconf Macro, you may extend this special
2737 + #   exception to the GPL to apply to your modified version as well.
2738  
2739 + # This is what autoupdate's m4 run will expand.  It fires
2740 + # the warning (with _au_warn_XXX), outputs it into the
2741 + # updated configure.ac (with AC_DIAGNOSE), and then outputs
2742 + # the replacement expansion.
2743  
2744  
2745 + # This is an auxiliary macro that is also run when
2746 + # autoupdate runs m4.  It simply calls m4_warning, but
2747 + # we need a wrapper so that each warning is emitted only
2748 + # once.  We break the quoting in m4_warning's argument in
2749 + # order to expand this macro's arguments, not AU_DEFUN's.
2750  
2751  
2752 + # Finally, this is the expansion that is picked up by
2753 + # autoconf.  It tells the user to run autoupdate, and
2754 + # then outputs the replacement expansion.  We do not care
2755 + # about autoupdate's warning because that contains
2756 + # information on what to do *after* running autoupdate.
2757  
2758  
2759  
1961
1962
1963
1964
1965
1966
1967
2760   # who am i
2761   # Make sure we can run config.sub.
2762   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2763 <  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1972 < echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1973 <   { (exit 1); exit 1; }; }
2763 >  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2764  
2765 < { echo "$as_me:$LINENO: checking build system type" >&5
2766 < echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2767 < if test "${ac_cv_build+set}" = set; then
2768 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2765 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2766 > $as_echo_n "checking build system type... " >&6; }
2767 > if ${ac_cv_build+:} false; then :
2768 >  $as_echo_n "(cached) " >&6
2769   else
2770    ac_build_alias=$build_alias
2771   test "x$ac_build_alias" = x &&
2772    ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2773   test "x$ac_build_alias" = x &&
2774 <  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1985 < echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1986 <   { (exit 1); exit 1; }; }
2774 >  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2775   ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2776 <  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1989 < echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1990 <   { (exit 1); exit 1; }; }
2776 >  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2777  
2778   fi
2779 < { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2780 < echo "${ECHO_T}$ac_cv_build" >&6; }
2779 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2780 > $as_echo "$ac_cv_build" >&6; }
2781   case $ac_cv_build in
2782   *-*-*) ;;
2783 < *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1998 < echo "$as_me: error: invalid value of canonical build" >&2;}
1999 <   { (exit 1); exit 1; }; };;
2783 > *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2784   esac
2785   build=$ac_cv_build
2786   ac_save_IFS=$IFS; IFS='-'
# Line 2012 | Line 2796 | case $build_os in *\ *) build_os=`echo "$build_os" | s
2796   case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2797  
2798  
2799 < { echo "$as_me:$LINENO: checking host system type" >&5
2800 < echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2801 < if test "${ac_cv_host+set}" = set; then
2802 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2799 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2800 > $as_echo_n "checking host system type... " >&6; }
2801 > if ${ac_cv_host+:} false; then :
2802 >  $as_echo_n "(cached) " >&6
2803   else
2804    if test "x$host_alias" = x; then
2805    ac_cv_host=$ac_cv_build
2806   else
2807    ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2808 <    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2025 < echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2026 <   { (exit 1); exit 1; }; }
2808 >    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2809   fi
2810  
2811   fi
2812 < { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2813 < echo "${ECHO_T}$ac_cv_host" >&6; }
2812 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2813 > $as_echo "$ac_cv_host" >&6; }
2814   case $ac_cv_host in
2815   *-*-*) ;;
2816 < *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2035 < echo "$as_me: error: invalid value of canonical host" >&2;}
2036 <   { (exit 1); exit 1; }; };;
2816 > *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2817   esac
2818   host=$ac_cv_host
2819   ac_save_IFS=$IFS; IFS='-'
# Line 2053 | Line 2833 | case $host_os in *\ *) host_os=`echo "$host_os" | sed
2833  
2834  
2835   # set program name
2836 < PROGNAME="oopse"
2836 > PROGNAME="openmd"
2837  
2838  
2839  
2840  
2841   OBJEXT=".$OBJEXT"
2842  
2843 < OOPSE=oopse
2843 > OPENMD=openmd
2844  
2845   if test "x${prefix}" = "xNONE"
2846   then
2847 <  OOPSE_HOME=${ac_default_prefix}/oopse
2847 >  OPENMD_HOME=${ac_default_prefix}/openmd
2848   else
2849 <  OOPSE_HOME=${prefix}/oopse
2849 >  OPENMD_HOME=${prefix}/openmd
2850   fi
2851 < # Check whether --enable-oopse-home was given.
2852 < if test "${enable_oopse_home+set}" = set; then
2853 <  enableval=$enable_oopse_home; OOPSE_HOME="${enableval}"
2851 > # Check whether --enable-openmd-home was given.
2852 > if test "${enable_openmd_home+set}" = set; then :
2853 >  enableval=$enable_openmd_home; OPENMD_HOME="${enableval}"
2854   fi
2855  
2856  
# Line 2079 | Line 2859 | debug=0
2859  
2860   debug=0
2861   # Check whether --enable-debug was given.
2862 < if test "${enable_debug+set}" = set; then
2862 > if test "${enable_debug+set}" = set; then :
2863    enableval=$enable_debug; debug=1
2864   fi
2865  
2866   if test "${DEBUG}"; then
2867  
2868 < cat >>confdefs.h <<\_ACEOF
2089 < #define debug 1
2090 < _ACEOF
2868 > $as_echo "#define debug 1" >>confdefs.h
2869  
2870    msg="$msg, debug mode"
2871   fi
2872  
2873  
2874   # Check whether --enable-single was given.
2875 < if test "${enable_single+set}" = set; then
2875 > if test "${enable_single+set}" = set; then :
2876    enableval=$enable_single; ok=$enableval
2877   else
2878    ok=no
2879   fi
2880  
2881   # Check whether --enable-float was given.
2882 < if test "${enable_float+set}" = set; then
2882 > if test "${enable_float+set}" = set; then :
2883    enableval=$enable_float; ok=$enableval
2884   fi
2885  
2886   if test "$ok" = "yes"; then
2887  
2888 < cat >>confdefs.h <<\_ACEOF
2111 < #define SINGLE_PRECISION 1
2112 < _ACEOF
2888 > $as_echo "#define SINGLE_PRECISION 1" >>confdefs.h
2889  
2890          USE_SINGLE_PRECISION=yes
2891  
2892   fi
2893  
2118 # Checks for programs.
2894   ac_ext=cpp
2895   ac_cpp='$CXXCPP $CPPFLAGS'
2896   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 2126 | Line 2901 | if test -z "$CXX"; then
2901      CXX=$CCC
2902    else
2903      if test -n "$ac_tool_prefix"; then
2904 <  for ac_prog in mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
2904 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
2905    do
2906      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2907   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2908 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2910 < if test "${ac_cv_prog_CXX+set}" = set; then
2911 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2908 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909 > $as_echo_n "checking for $ac_word... " >&6; }
2910 > if ${ac_cv_prog_CXX+:} false; then :
2911 >  $as_echo_n "(cached) " >&6
2912   else
2913    if test -n "$CXX"; then
2914    ac_cv_prog_CXX="$CXX" # Let the user override the test.
# Line 2143 | Line 2918 | do
2918   do
2919    IFS=$as_save_IFS
2920    test -z "$as_dir" && as_dir=.
2921 <  for ac_exec_ext in '' $ac_executable_extensions; do
2921 >    for ac_exec_ext in '' $ac_executable_extensions; do
2922    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923      ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2924 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925      break 2
2926    fi
2927   done
2928 < done
2928 >  done
2929   IFS=$as_save_IFS
2930  
2931   fi
2932   fi
2933   CXX=$ac_cv_prog_CXX
2934   if test -n "$CXX"; then
2935 <  { echo "$as_me:$LINENO: result: $CXX" >&5
2936 < echo "${ECHO_T}$CXX" >&6; }
2935 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2936 > $as_echo "$CXX" >&6; }
2937   else
2938 <  { echo "$as_me:$LINENO: result: no" >&5
2939 < echo "${ECHO_T}no" >&6; }
2938 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 > $as_echo "no" >&6; }
2940   fi
2941  
2942  
# Line 2170 | Line 2945 | if test -z "$CXX"; then
2945   fi
2946   if test -z "$CXX"; then
2947    ac_ct_CXX=$CXX
2948 <  for ac_prog in mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
2948 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
2949   do
2950    # Extract the first word of "$ac_prog", so it can be a program name with args.
2951   set dummy $ac_prog; ac_word=$2
2952 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2954 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2955 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2952 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 > $as_echo_n "checking for $ac_word... " >&6; }
2954 > if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2955 >  $as_echo_n "(cached) " >&6
2956   else
2957    if test -n "$ac_ct_CXX"; then
2958    ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
# Line 2187 | Line 2962 | do
2962   do
2963    IFS=$as_save_IFS
2964    test -z "$as_dir" && as_dir=.
2965 <  for ac_exec_ext in '' $ac_executable_extensions; do
2965 >    for ac_exec_ext in '' $ac_executable_extensions; do
2966    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967      ac_cv_prog_ac_ct_CXX="$ac_prog"
2968 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969      break 2
2970    fi
2971   done
2972 < done
2972 >  done
2973   IFS=$as_save_IFS
2974  
2975   fi
2976   fi
2977   ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2978   if test -n "$ac_ct_CXX"; then
2979 <  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2980 < echo "${ECHO_T}$ac_ct_CXX" >&6; }
2979 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2980 > $as_echo "$ac_ct_CXX" >&6; }
2981   else
2982 <  { echo "$as_me:$LINENO: result: no" >&5
2983 < echo "${ECHO_T}no" >&6; }
2982 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 > $as_echo "no" >&6; }
2984   fi
2985  
2986  
# Line 2217 | Line 2992 | yes:)
2992    else
2993      case $cross_compiling:$ac_tool_warned in
2994   yes:)
2995 < { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2996 < whose name does not start with the host triplet.  If you think this
2222 < configuration is useful to you, please write to autoconf@gnu.org." >&5
2223 < echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2224 < whose name does not start with the host triplet.  If you think this
2225 < configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2995 > { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2996 > $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2997   ac_tool_warned=yes ;;
2998   esac
2999      CXX=$ac_ct_CXX
# Line 2232 | Line 3003 | fi
3003    fi
3004   fi
3005   # Provide some information about the compiler.
3006 < echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3007 < ac_compiler=`set X $ac_compile; echo $2`
3008 < { (ac_try="$ac_compiler --version >&5"
3009 < case "(($ac_try" in
3010 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240 <  *) ac_try_echo=$ac_try;;
2241 < esac
2242 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2243 <  (eval "$ac_compiler --version >&5") 2>&5
2244 <  ac_status=$?
2245 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 <  (exit $ac_status); }
2247 < { (ac_try="$ac_compiler -v >&5"
3006 > $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3007 > set X $ac_compile
3008 > ac_compiler=$2
3009 > for ac_option in --version -v -V -qversion; do
3010 >  { { ac_try="$ac_compiler $ac_option >&5"
3011   case "(($ac_try" in
3012    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013    *) ac_try_echo=$ac_try;;
3014   esac
3015 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 <  (eval "$ac_compiler -v >&5") 2>&5
3015 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016 > $as_echo "$ac_try_echo"; } >&5
3017 >  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3018    ac_status=$?
3019 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 <  (exit $ac_status); }
3021 < { (ac_try="$ac_compiler -V >&5"
3022 < case "(($ac_try" in
3023 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 <  *) ac_try_echo=$ac_try;;
3025 < esac
3026 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 <  (eval "$ac_compiler -V >&5") 2>&5
3028 <  ac_status=$?
2265 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 <  (exit $ac_status); }
3019 >  if test -s conftest.err; then
3020 >    sed '10a\
3021 > ... rest of stderr output deleted ...
3022 >         10q' conftest.err >conftest.er1
3023 >    cat conftest.er1 >&5
3024 >  fi
3025 >  rm -f conftest.er1 conftest.err
3026 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 >  test $ac_status = 0; }
3028 > done
3029  
3030 < cat >conftest.$ac_ext <<_ACEOF
2269 < /* confdefs.h.  */
2270 < _ACEOF
2271 < cat confdefs.h >>conftest.$ac_ext
2272 < cat >>conftest.$ac_ext <<_ACEOF
3030 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031   /* end confdefs.h.  */
3032  
3033   int
# Line 2281 | Line 3039 | ac_clean_files_save=$ac_clean_files
3039   }
3040   _ACEOF
3041   ac_clean_files_save=$ac_clean_files
3042 < ac_clean_files="$ac_clean_files a.out a.exe b.out"
3042 > ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3043   # Try to create an executable without -o first, disregard a.out.
3044   # It will help us diagnose broken compilers, and finding out an intuition
3045   # of exeext.
3046 < { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
3047 < echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
3048 < ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3049 < #
3050 < # List of possible output files, starting from the most likely.
3051 < # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3052 < # only as a last resort.  b.out is created by i960 compilers.
2295 < ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2296 < #
2297 < # The IRIX 6 linker writes into existing files which may not be
2298 < # executable, retaining their permissions.  Remove them first so a
2299 < # subsequent execution test works.
3046 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3047 > $as_echo_n "checking whether the C++ compiler works... " >&6; }
3048 > ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3049 >
3050 > # The possible output files:
3051 > ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3052 >
3053   ac_rmfiles=
3054   for ac_file in $ac_files
3055   do
3056    case $ac_file in
3057 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3057 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3058      * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3059    esac
3060   done
3061 < rm -rf $ac_rmfiles
3061 > rm -f $ac_rmfiles
3062  
3063 < if { (ac_try="$ac_link_default"
3063 > if { { ac_try="$ac_link_default"
3064   case "(($ac_try" in
3065    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066    *) ac_try_echo=$ac_try;;
3067   esac
3068 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069 > $as_echo "$ac_try_echo"; } >&5
3070    (eval "$ac_link_default") 2>&5
3071    ac_status=$?
3072 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 <  (exit $ac_status); }; then
3072 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073 >  test $ac_status = 0; }; then :
3074    # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3075   # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3076   # in a Makefile.  We should not override ac_cv_exeext if it was cached,
# Line 2326 | Line 3080 | do
3080   do
3081    test -f "$ac_file" || continue
3082    case $ac_file in
3083 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3083 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3084          ;;
3085      [ab].out )
3086          # We found the default executable, but exeext='' is most
3087          # certainly right.
3088          break;;
3089      *.* )
3090 <        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3090 >        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3091          then :; else
3092             ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3093          fi
# Line 2352 | Line 3106 | fi
3106   else
3107    ac_file=''
3108   fi
3109 <
3110 < { echo "$as_me:$LINENO: result: $ac_file" >&5
3111 < echo "${ECHO_T}$ac_file" >&6; }
3112 < if test -z "$ac_file"; then
2359 <  echo "$as_me: failed program was:" >&5
3109 > if test -z "$ac_file"; then :
3110 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 > $as_echo "no" >&6; }
3112 > $as_echo "$as_me: failed program was:" >&5
3113   sed 's/^/| /' conftest.$ac_ext >&5
3114  
3115 < { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
3116 < See \`config.log' for more details." >&5
3117 < echo "$as_me: error: C++ compiler cannot create executables
3118 < See \`config.log' for more details." >&2;}
3119 <   { (exit 77); exit 77; }; }
3115 > { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3116 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3117 > as_fn_error 77 "C++ compiler cannot create executables
3118 > See \`config.log' for more details" "$LINENO" 5; }
3119 > else
3120 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3121 > $as_echo "yes" >&6; }
3122   fi
3123 <
3123 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3124 > $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3125 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3126 > $as_echo "$ac_file" >&6; }
3127   ac_exeext=$ac_cv_exeext
3128  
3129 < # Check that the compiler produces executables we can run.  If not, either
2372 < # the compiler is broken, or we cross compile.
2373 < { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2374 < echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2375 < # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2376 < # If not cross compiling, check that we can run a simple program.
2377 < if test "$cross_compiling" != yes; then
2378 <  if { ac_try='./$ac_file'
2379 <  { (case "(($ac_try" in
2380 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 <  *) ac_try_echo=$ac_try;;
2382 < esac
2383 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2384 <  (eval "$ac_try") 2>&5
2385 <  ac_status=$?
2386 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 <  (exit $ac_status); }; }; then
2388 <    cross_compiling=no
2389 <  else
2390 <    if test "$cross_compiling" = maybe; then
2391 <        cross_compiling=yes
2392 <    else
2393 <        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2394 < If you meant to cross compile, use \`--host'.
2395 < See \`config.log' for more details." >&5
2396 < echo "$as_me: error: cannot run C++ compiled programs.
2397 < If you meant to cross compile, use \`--host'.
2398 < See \`config.log' for more details." >&2;}
2399 <   { (exit 1); exit 1; }; }
2400 <    fi
2401 <  fi
2402 < fi
2403 < { echo "$as_me:$LINENO: result: yes" >&5
2404 < echo "${ECHO_T}yes" >&6; }
2405 <
2406 < rm -rf a.out a.exe conftest$ac_cv_exeext b.out
3129 > rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3130   ac_clean_files=$ac_clean_files_save
3131 < # Check that the compiler produces executables we can run.  If not, either
3132 < # the compiler is broken, or we cross compile.
3133 < { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2411 < echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2412 < { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2413 < echo "${ECHO_T}$cross_compiling" >&6; }
2414 <
2415 < { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2416 < echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2417 < if { (ac_try="$ac_link"
3131 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3132 > $as_echo_n "checking for suffix of executables... " >&6; }
3133 > if { { ac_try="$ac_link"
3134   case "(($ac_try" in
3135    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136    *) ac_try_echo=$ac_try;;
3137   esac
3138 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139 > $as_echo "$ac_try_echo"; } >&5
3140    (eval "$ac_link") 2>&5
3141    ac_status=$?
3142 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 <  (exit $ac_status); }; then
3142 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 >  test $ac_status = 0; }; then :
3144    # If both `conftest.exe' and `conftest' are `present' (well, observable)
3145   # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3146   # work properly (i.e., refer to `conftest.exe'), while it won't with
# Line 2431 | Line 3148 | for ac_file in conftest.exe conftest conftest.*; do
3148   for ac_file in conftest.exe conftest conftest.*; do
3149    test -f "$ac_file" || continue
3150    case $ac_file in
3151 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3151 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3152      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3153            break;;
3154      * ) break;;
3155    esac
3156   done
3157   else
3158 <  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3159 < See \`config.log' for more details." >&5
3160 < echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3161 < See \`config.log' for more details." >&2;}
2445 <   { (exit 1); exit 1; }; }
3158 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 > as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3161 > See \`config.log' for more details" "$LINENO" 5; }
3162   fi
3163 + rm -f conftest conftest$ac_cv_exeext
3164 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3165 + $as_echo "$ac_cv_exeext" >&6; }
3166  
3167 < rm -rf conftest$ac_cv_exeext
2449 < { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2450 < echo "${ECHO_T}$ac_cv_exeext" >&6; }
2451 <
2452 < rm -rf conftest.$ac_ext
3167 > rm -f conftest.$ac_ext
3168   EXEEXT=$ac_cv_exeext
3169   ac_exeext=$EXEEXT
3170 < { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3171 < echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3172 < if test "${ac_cv_objext+set}" = set; then
3173 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3174 < else
3175 <  cat >conftest.$ac_ext <<_ACEOF
3176 < /* confdefs.h.  */
3170 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 > /* end confdefs.h.  */
3172 > #include <stdio.h>
3173 > int
3174 > main ()
3175 > {
3176 > FILE *f = fopen ("conftest.out", "w");
3177 > return ferror (f) || fclose (f) != 0;
3178 >
3179 >  ;
3180 >  return 0;
3181 > }
3182   _ACEOF
3183 < cat confdefs.h >>conftest.$ac_ext
3184 < cat >>conftest.$ac_ext <<_ACEOF
3183 > ac_clean_files="$ac_clean_files conftest.out"
3184 > # Check that the compiler produces executables we can run.  If not, either
3185 > # the compiler is broken, or we cross compile.
3186 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3187 > $as_echo_n "checking whether we are cross compiling... " >&6; }
3188 > if test "$cross_compiling" != yes; then
3189 >  { { ac_try="$ac_link"
3190 > case "(($ac_try" in
3191 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 >  *) ac_try_echo=$ac_try;;
3193 > esac
3194 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 > $as_echo "$ac_try_echo"; } >&5
3196 >  (eval "$ac_link") 2>&5
3197 >  ac_status=$?
3198 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 >  test $ac_status = 0; }
3200 >  if { ac_try='./conftest$ac_cv_exeext'
3201 >  { { case "(($ac_try" in
3202 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 >  *) ac_try_echo=$ac_try;;
3204 > esac
3205 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 > $as_echo "$ac_try_echo"; } >&5
3207 >  (eval "$ac_try") 2>&5
3208 >  ac_status=$?
3209 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 >  test $ac_status = 0; }; }; then
3211 >    cross_compiling=no
3212 >  else
3213 >    if test "$cross_compiling" = maybe; then
3214 >        cross_compiling=yes
3215 >    else
3216 >        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 > as_fn_error $? "cannot run C++ compiled programs.
3219 > If you meant to cross compile, use \`--host'.
3220 > See \`config.log' for more details" "$LINENO" 5; }
3221 >    fi
3222 >  fi
3223 > fi
3224 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3225 > $as_echo "$cross_compiling" >&6; }
3226 >
3227 > rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3228 > ac_clean_files=$ac_clean_files_save
3229 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3230 > $as_echo_n "checking for suffix of object files... " >&6; }
3231 > if ${ac_cv_objext+:} false; then :
3232 >  $as_echo_n "(cached) " >&6
3233 > else
3234 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235   /* end confdefs.h.  */
3236  
3237   int
# Line 2472 | Line 3242 | _ACEOF
3242    return 0;
3243   }
3244   _ACEOF
3245 < rm -rf conftest.o conftest.obj
3246 < if { (ac_try="$ac_compile"
3245 > rm -f conftest.o conftest.obj
3246 > if { { ac_try="$ac_compile"
3247   case "(($ac_try" in
3248    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249    *) ac_try_echo=$ac_try;;
3250   esac
3251 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 > $as_echo "$ac_try_echo"; } >&5
3253    (eval "$ac_compile") 2>&5
3254    ac_status=$?
3255 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 <  (exit $ac_status); }; then
3255 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 >  test $ac_status = 0; }; then :
3257    for ac_file in conftest.o conftest.obj conftest.*; do
3258    test -f "$ac_file" || continue;
3259    case $ac_file in
3260 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3260 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3261      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3262         break;;
3263    esac
3264   done
3265   else
3266 <  echo "$as_me: failed program was:" >&5
3266 >  $as_echo "$as_me: failed program was:" >&5
3267   sed 's/^/| /' conftest.$ac_ext >&5
3268  
3269 < { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3270 < See \`config.log' for more details." >&5
3271 < echo "$as_me: error: cannot compute suffix of object files: cannot compile
3272 < See \`config.log' for more details." >&2;}
2502 <   { (exit 1); exit 1; }; }
3269 > { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271 > as_fn_error $? "cannot compute suffix of object files: cannot compile
3272 > See \`config.log' for more details" "$LINENO" 5; }
3273   fi
3274 <
2505 < rm -rf conftest.$ac_cv_objext conftest.$ac_ext
3274 > rm -f conftest.$ac_cv_objext conftest.$ac_ext
3275   fi
3276 < { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3277 < echo "${ECHO_T}$ac_cv_objext" >&6; }
3276 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3277 > $as_echo "$ac_cv_objext" >&6; }
3278   OBJEXT=$ac_cv_objext
3279   ac_objext=$OBJEXT
3280 < { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3281 < echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3282 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3283 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3280 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3281 > $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3282 > if ${ac_cv_cxx_compiler_gnu+:} false; then :
3283 >  $as_echo_n "(cached) " >&6
3284   else
3285 <  cat >conftest.$ac_ext <<_ACEOF
2517 < /* confdefs.h.  */
2518 < _ACEOF
2519 < cat confdefs.h >>conftest.$ac_ext
2520 < cat >>conftest.$ac_ext <<_ACEOF
3285 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286   /* end confdefs.h.  */
3287  
3288   int
# Line 2531 | Line 3296 | _ACEOF
3296    return 0;
3297   }
3298   _ACEOF
3299 < rm -rf conftest.$ac_objext
2535 < if { (ac_try="$ac_compile"
2536 < case "(($ac_try" in
2537 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 <  *) ac_try_echo=$ac_try;;
2539 < esac
2540 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 <  (eval "$ac_compile") 2>conftest.er1
2542 <  ac_status=$?
2543 <  grep -v '^ *+' conftest.er1 >conftest.err
2544 <  rm -rf conftest.er1
2545 <  cat conftest.err >&5
2546 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 <  (exit $ac_status); } && {
2548 <         test -z "$ac_cxx_werror_flag" ||
2549 <         test ! -s conftest.err
2550 <       } && test -s conftest.$ac_objext; then
3299 > if ac_fn_cxx_try_compile "$LINENO"; then :
3300    ac_compiler_gnu=yes
3301   else
3302 <  echo "$as_me: failed program was:" >&5
2554 < sed 's/^/| /' conftest.$ac_ext >&5
2555 <
2556 <        ac_compiler_gnu=no
3302 >  ac_compiler_gnu=no
3303   fi
3304 <
2559 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305   ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3306  
3307   fi
3308 < { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3309 < echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3310 < GXX=`test $ac_compiler_gnu = yes && echo yes`
3308 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3309 > $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3310 > if test $ac_compiler_gnu = yes; then
3311 >  GXX=yes
3312 > else
3313 >  GXX=
3314 > fi
3315   ac_test_CXXFLAGS=${CXXFLAGS+set}
3316   ac_save_CXXFLAGS=$CXXFLAGS
3317 < { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3318 < echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3319 < if test "${ac_cv_prog_cxx_g+set}" = set; then
3320 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3317 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3318 > $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3319 > if ${ac_cv_prog_cxx_g+:} false; then :
3320 >  $as_echo_n "(cached) " >&6
3321   else
3322    ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3323     ac_cxx_werror_flag=yes
3324     ac_cv_prog_cxx_g=no
3325     CXXFLAGS="-g"
3326 <   cat >conftest.$ac_ext <<_ACEOF
2578 < /* confdefs.h.  */
2579 < _ACEOF
2580 < cat confdefs.h >>conftest.$ac_ext
2581 < cat >>conftest.$ac_ext <<_ACEOF
3326 >   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327   /* end confdefs.h.  */
3328  
3329   int
# Line 2589 | Line 3334 | _ACEOF
3334    return 0;
3335   }
3336   _ACEOF
3337 < rm -rf conftest.$ac_objext
2593 < if { (ac_try="$ac_compile"
2594 < case "(($ac_try" in
2595 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 <  *) ac_try_echo=$ac_try;;
2597 < esac
2598 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 <  (eval "$ac_compile") 2>conftest.er1
2600 <  ac_status=$?
2601 <  grep -v '^ *+' conftest.er1 >conftest.err
2602 <  rm -rf conftest.er1
2603 <  cat conftest.err >&5
2604 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 <  (exit $ac_status); } && {
2606 <         test -z "$ac_cxx_werror_flag" ||
2607 <         test ! -s conftest.err
2608 <       } && test -s conftest.$ac_objext; then
3337 > if ac_fn_cxx_try_compile "$LINENO"; then :
3338    ac_cv_prog_cxx_g=yes
3339   else
3340 <  echo "$as_me: failed program was:" >&5
3341 < sed 's/^/| /' conftest.$ac_ext >&5
2613 <
2614 <        CXXFLAGS=""
2615 <      cat >conftest.$ac_ext <<_ACEOF
2616 < /* confdefs.h.  */
2617 < _ACEOF
2618 < cat confdefs.h >>conftest.$ac_ext
2619 < cat >>conftest.$ac_ext <<_ACEOF
3340 >  CXXFLAGS=""
3341 >      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342   /* end confdefs.h.  */
3343  
3344   int
# Line 2627 | Line 3349 | _ACEOF
3349    return 0;
3350   }
3351   _ACEOF
3352 < rm -rf conftest.$ac_objext
2631 < if { (ac_try="$ac_compile"
2632 < case "(($ac_try" in
2633 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 <  *) ac_try_echo=$ac_try;;
2635 < esac
2636 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637 <  (eval "$ac_compile") 2>conftest.er1
2638 <  ac_status=$?
2639 <  grep -v '^ *+' conftest.er1 >conftest.err
2640 <  rm -rf conftest.er1
2641 <  cat conftest.err >&5
2642 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 <  (exit $ac_status); } && {
2644 <         test -z "$ac_cxx_werror_flag" ||
2645 <         test ! -s conftest.err
2646 <       } && test -s conftest.$ac_objext; then
2647 <  :
2648 < else
2649 <  echo "$as_me: failed program was:" >&5
2650 < sed 's/^/| /' conftest.$ac_ext >&5
3352 > if ac_fn_cxx_try_compile "$LINENO"; then :
3353  
3354 <        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3354 > else
3355 >  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3356           CXXFLAGS="-g"
3357 <         cat >conftest.$ac_ext <<_ACEOF
2655 < /* confdefs.h.  */
2656 < _ACEOF
2657 < cat confdefs.h >>conftest.$ac_ext
2658 < cat >>conftest.$ac_ext <<_ACEOF
3357 >         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358   /* end confdefs.h.  */
3359  
3360   int
# Line 2666 | Line 3365 | _ACEOF
3365    return 0;
3366   }
3367   _ACEOF
3368 < rm -rf conftest.$ac_objext
2670 < if { (ac_try="$ac_compile"
2671 < case "(($ac_try" in
2672 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 <  *) ac_try_echo=$ac_try;;
2674 < esac
2675 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2676 <  (eval "$ac_compile") 2>conftest.er1
2677 <  ac_status=$?
2678 <  grep -v '^ *+' conftest.er1 >conftest.err
2679 <  rm -rf conftest.er1
2680 <  cat conftest.err >&5
2681 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 <  (exit $ac_status); } && {
2683 <         test -z "$ac_cxx_werror_flag" ||
2684 <         test ! -s conftest.err
2685 <       } && test -s conftest.$ac_objext; then
3368 > if ac_fn_cxx_try_compile "$LINENO"; then :
3369    ac_cv_prog_cxx_g=yes
2687 else
2688  echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2690
2691
3370   fi
3371 <
2694 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372   fi
3373 <
2697 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374   fi
3375 <
2700 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376     ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3377   fi
3378 < { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3379 < echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3378 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3379 > $as_echo "$ac_cv_prog_cxx_g" >&6; }
3380   if test "$ac_test_CXXFLAGS" = set; then
3381    CXXFLAGS=$ac_save_CXXFLAGS
3382   elif test $ac_cv_prog_cxx_g = yes; then
# Line 2729 | Line 3404 | if test -n "$ac_tool_prefix"; then
3404   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406   if test -n "$ac_tool_prefix"; then
3407 <  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
3407 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3408    do
3409      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3410   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3411 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3413 < if test "${ac_cv_prog_CC+set}" = set; then
3414 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3411 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 > $as_echo_n "checking for $ac_word... " >&6; }
3413 > if ${ac_cv_prog_CC+:} false; then :
3414 >  $as_echo_n "(cached) " >&6
3415   else
3416    if test -n "$CC"; then
3417    ac_cv_prog_CC="$CC" # Let the user override the test.
# Line 2746 | Line 3421 | do
3421   do
3422    IFS=$as_save_IFS
3423    test -z "$as_dir" && as_dir=.
3424 <  for ac_exec_ext in '' $ac_executable_extensions; do
3424 >    for ac_exec_ext in '' $ac_executable_extensions; do
3425    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3427 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428      break 2
3429    fi
3430   done
3431 < done
3431 >  done
3432   IFS=$as_save_IFS
3433  
3434   fi
3435   fi
3436   CC=$ac_cv_prog_CC
3437   if test -n "$CC"; then
3438 <  { echo "$as_me:$LINENO: result: $CC" >&5
3439 < echo "${ECHO_T}$CC" >&6; }
3438 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3439 > $as_echo "$CC" >&6; }
3440   else
3441 <  { echo "$as_me:$LINENO: result: no" >&5
3442 < echo "${ECHO_T}no" >&6; }
3441 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 > $as_echo "no" >&6; }
3443   fi
3444  
3445  
# Line 2773 | Line 3448 | if test -z "$CC"; then
3448   fi
3449   if test -z "$CC"; then
3450    ac_ct_CC=$CC
3451 <  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
3451 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3452   do
3453    # Extract the first word of "$ac_prog", so it can be a program name with args.
3454   set dummy $ac_prog; ac_word=$2
3455 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
3456 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3457 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3458 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3455 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 > $as_echo_n "checking for $ac_word... " >&6; }
3457 > if ${ac_cv_prog_ac_ct_CC+:} false; then :
3458 >  $as_echo_n "(cached) " >&6
3459   else
3460    if test -n "$ac_ct_CC"; then
3461    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
# Line 2790 | Line 3465 | do
3465   do
3466    IFS=$as_save_IFS
3467    test -z "$as_dir" && as_dir=.
3468 <  for ac_exec_ext in '' $ac_executable_extensions; do
3468 >    for ac_exec_ext in '' $ac_executable_extensions; do
3469    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470      ac_cv_prog_ac_ct_CC="$ac_prog"
3471 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472      break 2
3473    fi
3474   done
3475 < done
3475 >  done
3476   IFS=$as_save_IFS
3477  
3478   fi
3479   fi
3480   ac_ct_CC=$ac_cv_prog_ac_ct_CC
3481   if test -n "$ac_ct_CC"; then
3482 <  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3483 < echo "${ECHO_T}$ac_ct_CC" >&6; }
3482 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3483 > $as_echo "$ac_ct_CC" >&6; }
3484   else
3485 <  { echo "$as_me:$LINENO: result: no" >&5
3486 < echo "${ECHO_T}no" >&6; }
3485 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 > $as_echo "no" >&6; }
3487   fi
3488  
3489  
# Line 2820 | Line 3495 | yes:)
3495    else
3496      case $cross_compiling:$ac_tool_warned in
3497   yes:)
3498 < { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3499 < whose name does not start with the host triplet.  If you think this
2825 < configuration is useful to you, please write to autoconf@gnu.org." >&5
2826 < echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2827 < whose name does not start with the host triplet.  If you think this
2828 < configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3498 > { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3499 > $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3500   ac_tool_warned=yes ;;
3501   esac
3502      CC=$ac_ct_CC
# Line 2833 | Line 3504 | fi
3504   fi
3505  
3506  
3507 < test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3508 < See \`config.log' for more details." >&5
3509 < echo "$as_me: error: no acceptable C compiler found in \$PATH
3510 < See \`config.log' for more details." >&2;}
2840 <   { (exit 1); exit 1; }; }
3507 > test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509 > as_fn_error $? "no acceptable C compiler found in \$PATH
3510 > See \`config.log' for more details" "$LINENO" 5; }
3511  
3512   # Provide some information about the compiler.
3513 < echo "$as_me:$LINENO: checking for C compiler version" >&5
3514 < ac_compiler=`set X $ac_compile; echo $2`
3515 < { (ac_try="$ac_compiler --version >&5"
3513 > $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3514 > set X $ac_compile
3515 > ac_compiler=$2
3516 > for ac_option in --version -v -V -qversion; do
3517 >  { { ac_try="$ac_compiler $ac_option >&5"
3518   case "(($ac_try" in
3519    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520    *) ac_try_echo=$ac_try;;
3521   esac
3522 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 <  (eval "$ac_compiler --version >&5") 2>&5
3522 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523 > $as_echo "$ac_try_echo"; } >&5
3524 >  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3525    ac_status=$?
3526 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 <  (exit $ac_status); }
3528 < { (ac_try="$ac_compiler -v >&5"
3529 < case "(($ac_try" in
3530 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 <  *) ac_try_echo=$ac_try;;
3532 < esac
3533 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534 <  (eval "$ac_compiler -v >&5") 2>&5
3535 <  ac_status=$?
2863 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 <  (exit $ac_status); }
2865 < { (ac_try="$ac_compiler -V >&5"
2866 < case "(($ac_try" in
2867 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 <  *) ac_try_echo=$ac_try;;
2869 < esac
2870 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871 <  (eval "$ac_compiler -V >&5") 2>&5
2872 <  ac_status=$?
2873 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 <  (exit $ac_status); }
3526 >  if test -s conftest.err; then
3527 >    sed '10a\
3528 > ... rest of stderr output deleted ...
3529 >         10q' conftest.err >conftest.er1
3530 >    cat conftest.er1 >&5
3531 >  fi
3532 >  rm -f conftest.er1 conftest.err
3533 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 >  test $ac_status = 0; }
3535 > done
3536  
3537 < { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3538 < echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3539 < if test "${ac_cv_c_compiler_gnu+set}" = set; then
3540 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3537 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3538 > $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3539 > if ${ac_cv_c_compiler_gnu+:} false; then :
3540 >  $as_echo_n "(cached) " >&6
3541   else
3542 <  cat >conftest.$ac_ext <<_ACEOF
2882 < /* confdefs.h.  */
2883 < _ACEOF
2884 < cat confdefs.h >>conftest.$ac_ext
2885 < cat >>conftest.$ac_ext <<_ACEOF
3542 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543   /* end confdefs.h.  */
3544  
3545   int
# Line 2896 | Line 3553 | _ACEOF
3553    return 0;
3554   }
3555   _ACEOF
3556 < rm -rf conftest.$ac_objext
2900 < if { (ac_try="$ac_compile"
2901 < case "(($ac_try" in
2902 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 <  *) ac_try_echo=$ac_try;;
2904 < esac
2905 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 <  (eval "$ac_compile") 2>conftest.er1
2907 <  ac_status=$?
2908 <  grep -v '^ *+' conftest.er1 >conftest.err
2909 <  rm -f conftest.er1
2910 <  cat conftest.err >&5
2911 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 <  (exit $ac_status); } && {
2913 <         test -z "$ac_c_werror_flag" ||
2914 <         test ! -s conftest.err
2915 <       } && test -s conftest.$ac_objext; then
3556 > if ac_fn_c_try_compile "$LINENO"; then :
3557    ac_compiler_gnu=yes
3558   else
3559 <  echo "$as_me: failed program was:" >&5
2919 < sed 's/^/| /' conftest.$ac_ext >&5
2920 <
2921 <        ac_compiler_gnu=no
3559 >  ac_compiler_gnu=no
3560   fi
3561 <
2924 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562   ac_cv_c_compiler_gnu=$ac_compiler_gnu
3563  
3564   fi
3565 < { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3566 < echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3567 < GCC=`test $ac_compiler_gnu = yes && echo yes`
3565 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3566 > $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3567 > if test $ac_compiler_gnu = yes; then
3568 >  GCC=yes
3569 > else
3570 >  GCC=
3571 > fi
3572   ac_test_CFLAGS=${CFLAGS+set}
3573   ac_save_CFLAGS=$CFLAGS
3574 < { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3575 < echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3576 < if test "${ac_cv_prog_cc_g+set}" = set; then
3577 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3574 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3575 > $as_echo_n "checking whether $CC accepts -g... " >&6; }
3576 > if ${ac_cv_prog_cc_g+:} false; then :
3577 >  $as_echo_n "(cached) " >&6
3578   else
3579    ac_save_c_werror_flag=$ac_c_werror_flag
3580     ac_c_werror_flag=yes
3581     ac_cv_prog_cc_g=no
3582     CFLAGS="-g"
3583 <   cat >conftest.$ac_ext <<_ACEOF
2943 < /* confdefs.h.  */
2944 < _ACEOF
2945 < cat confdefs.h >>conftest.$ac_ext
2946 < cat >>conftest.$ac_ext <<_ACEOF
3583 >   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584   /* end confdefs.h.  */
3585  
3586   int
# Line 2954 | Line 3591 | _ACEOF
3591    return 0;
3592   }
3593   _ACEOF
3594 < rm -rf conftest.$ac_objext
2958 < if { (ac_try="$ac_compile"
2959 < case "(($ac_try" in
2960 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 <  *) ac_try_echo=$ac_try;;
2962 < esac
2963 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964 <  (eval "$ac_compile") 2>conftest.er1
2965 <  ac_status=$?
2966 <  grep -v '^ *+' conftest.er1 >conftest.err
2967 <  rm -f conftest.er1
2968 <  cat conftest.err >&5
2969 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 <  (exit $ac_status); } && {
2971 <         test -z "$ac_c_werror_flag" ||
2972 <         test ! -s conftest.err
2973 <       } && test -s conftest.$ac_objext; then
3594 > if ac_fn_c_try_compile "$LINENO"; then :
3595    ac_cv_prog_cc_g=yes
3596   else
3597 <  echo "$as_me: failed program was:" >&5
3598 < sed 's/^/| /' conftest.$ac_ext >&5
2978 <
2979 <        CFLAGS=""
2980 <      cat >conftest.$ac_ext <<_ACEOF
2981 < /* confdefs.h.  */
2982 < _ACEOF
2983 < cat confdefs.h >>conftest.$ac_ext
2984 < cat >>conftest.$ac_ext <<_ACEOF
3597 >  CFLAGS=""
3598 >      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599   /* end confdefs.h.  */
3600  
3601   int
# Line 2992 | Line 3606 | _ACEOF
3606    return 0;
3607   }
3608   _ACEOF
3609 < rm -rf conftest.$ac_objext
2996 < if { (ac_try="$ac_compile"
2997 < case "(($ac_try" in
2998 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 <  *) ac_try_echo=$ac_try;;
3000 < esac
3001 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 <  (eval "$ac_compile") 2>conftest.er1
3003 <  ac_status=$?
3004 <  grep -v '^ *+' conftest.er1 >conftest.err
3005 <  rm -rf conftest.er1
3006 <  cat conftest.err >&5
3007 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 <  (exit $ac_status); } && {
3009 <         test -z "$ac_c_werror_flag" ||
3010 <         test ! -s conftest.err
3011 <       } && test -s conftest.$ac_objext; then
3012 <  :
3013 < else
3014 <  echo "$as_me: failed program was:" >&5
3015 < sed 's/^/| /' conftest.$ac_ext >&5
3609 > if ac_fn_c_try_compile "$LINENO"; then :
3610  
3611 <        ac_c_werror_flag=$ac_save_c_werror_flag
3611 > else
3612 >  ac_c_werror_flag=$ac_save_c_werror_flag
3613           CFLAGS="-g"
3614 <         cat >conftest.$ac_ext <<_ACEOF
3020 < /* confdefs.h.  */
3021 < _ACEOF
3022 < cat confdefs.h >>conftest.$ac_ext
3023 < cat >>conftest.$ac_ext <<_ACEOF
3614 >         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615   /* end confdefs.h.  */
3616  
3617   int
# Line 3031 | Line 3622 | _ACEOF
3622    return 0;
3623   }
3624   _ACEOF
3625 < rm -rf conftest.$ac_objext
3035 < if { (ac_try="$ac_compile"
3036 < case "(($ac_try" in
3037 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 <  *) ac_try_echo=$ac_try;;
3039 < esac
3040 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 <  (eval "$ac_compile") 2>conftest.er1
3042 <  ac_status=$?
3043 <  grep -v '^ *+' conftest.er1 >conftest.err
3044 <  rm -f conftest.er1
3045 <  cat conftest.err >&5
3046 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 <  (exit $ac_status); } && {
3048 <         test -z "$ac_c_werror_flag" ||
3049 <         test ! -s conftest.err
3050 <       } && test -s conftest.$ac_objext; then
3625 > if ac_fn_c_try_compile "$LINENO"; then :
3626    ac_cv_prog_cc_g=yes
3052 else
3053  echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056
3627   fi
3628 <
3059 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629   fi
3630 <
3062 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631   fi
3632 <
3065 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633     ac_c_werror_flag=$ac_save_c_werror_flag
3634   fi
3635 < { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3636 < echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3635 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3636 > $as_echo "$ac_cv_prog_cc_g" >&6; }
3637   if test "$ac_test_CFLAGS" = set; then
3638    CFLAGS=$ac_save_CFLAGS
3639   elif test $ac_cv_prog_cc_g = yes; then
# Line 3082 | Line 3649 | fi
3649      CFLAGS=
3650    fi
3651   fi
3652 < { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3653 < echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3654 < if test "${ac_cv_prog_cc_c89+set}" = set; then
3655 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3652 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3653 > $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3654 > if ${ac_cv_prog_cc_c89+:} false; then :
3655 >  $as_echo_n "(cached) " >&6
3656   else
3657    ac_cv_prog_cc_c89=no
3658   ac_save_CC=$CC
3659 < cat >conftest.$ac_ext <<_ACEOF
3093 < /* confdefs.h.  */
3094 < _ACEOF
3095 < cat confdefs.h >>conftest.$ac_ext
3096 < cat >>conftest.$ac_ext <<_ACEOF
3659 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660   /* end confdefs.h.  */
3661   #include <stdarg.h>
3662   #include <stdio.h>
# Line 3150 | Line 3713 | do
3713          -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3714   do
3715    CC="$ac_save_CC $ac_arg"
3716 <  rm -rf conftest.$ac_objext
3154 < if { (ac_try="$ac_compile"
3155 < case "(($ac_try" in
3156 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 <  *) ac_try_echo=$ac_try;;
3158 < esac
3159 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 <  (eval "$ac_compile") 2>conftest.er1
3161 <  ac_status=$?
3162 <  grep -v '^ *+' conftest.er1 >conftest.err
3163 <  rm -f conftest.er1
3164 <  cat conftest.err >&5
3165 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 <  (exit $ac_status); } && {
3167 <         test -z "$ac_c_werror_flag" ||
3168 <         test ! -s conftest.err
3169 <       } && test -s conftest.$ac_objext; then
3716 >  if ac_fn_c_try_compile "$LINENO"; then :
3717    ac_cv_prog_cc_c89=$ac_arg
3171 else
3172  echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175
3718   fi
3719 <
3178 < rm -rf core conftest.err conftest.$ac_objext
3719 > rm -f core conftest.err conftest.$ac_objext
3720    test "x$ac_cv_prog_cc_c89" != "xno" && break
3721   done
3722 < rm -rf conftest.$ac_ext
3722 > rm -f conftest.$ac_ext
3723   CC=$ac_save_CC
3724  
3725   fi
3726   # AC_CACHE_VAL
3727   case "x$ac_cv_prog_cc_c89" in
3728    x)
3729 <    { echo "$as_me:$LINENO: result: none needed" >&5
3730 < echo "${ECHO_T}none needed" >&6; } ;;
3729 >    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3730 > $as_echo "none needed" >&6; } ;;
3731    xno)
3732 <    { echo "$as_me:$LINENO: result: unsupported" >&5
3733 < echo "${ECHO_T}unsupported" >&6; } ;;
3732 >    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3733 > $as_echo "unsupported" >&6; } ;;
3734    *)
3735      CC="$CC $ac_cv_prog_cc_c89"
3736 <    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3737 < echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3736 >    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3737 > $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3738   esac
3739 + if test "x$ac_cv_prog_cc_c89" != xno; then :
3740  
3741 + fi
3742  
3743   ac_ext=c
3744   ac_cpp='$CPP $CPPFLAGS'
# Line 3203 | Line 3746 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748  
3749 < ac_ext=${ac_fc_srcext-f}
3750 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3751 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3752 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3753 < if test -n "$ac_tool_prefix"; then
3754 <  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3755 <  do
3756 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3757 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3758 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
3759 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3760 < if test "${ac_cv_prog_FC+set}" = set; then
3761 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3749 >
3750 > save_CXX=$CXX
3751 > save_CC=$CC
3752 > save_LIBS=$LIBS
3753 >
3754 > ac_ext=cpp
3755 > ac_cpp='$CXXCPP $CPPFLAGS'
3756 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3759 >
3760 >
3761 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
3762 > $as_echo_n "checking for dlopen in -lc... " >&6; }
3763 > if ${ac_cv_lib_c_dlopen+:} false; then :
3764 >  $as_echo_n "(cached) " >&6
3765   else
3766 <  if test -n "$FC"; then
3767 <  ac_cv_prog_FC="$FC" # Let the user override the test.
3766 >  ac_check_lib_save_LIBS=$LIBS
3767 > LIBS="-lc  $LIBS"
3768 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 > /* end confdefs.h.  */
3770 >
3771 > /* Override any GCC internal prototype to avoid an error.
3772 >   Use char because int might match the return type of a GCC
3773 >   builtin and then its argument prototype would still apply.  */
3774 > #ifdef __cplusplus
3775 > extern "C"
3776 > #endif
3777 > char dlopen ();
3778 > int
3779 > main ()
3780 > {
3781 > return dlopen ();
3782 >  ;
3783 >  return 0;
3784 > }
3785 > _ACEOF
3786 > if ac_fn_cxx_try_link "$LINENO"; then :
3787 >  ac_cv_lib_c_dlopen=yes
3788   else
3789 +  ac_cv_lib_c_dlopen=no
3790 + fi
3791 + rm -f core conftest.err conftest.$ac_objext \
3792 +    conftest$ac_exeext conftest.$ac_ext
3793 + LIBS=$ac_check_lib_save_LIBS
3794 + fi
3795 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
3796 + $as_echo "$ac_cv_lib_c_dlopen" >&6; }
3797 + if test "x$ac_cv_lib_c_dlopen" = xyes; then :
3798 +  LIBDL=""
3799 + else
3800 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3801 + $as_echo_n "checking for dlopen in -ldl... " >&6; }
3802 + if ${ac_cv_lib_dl_dlopen+:} false; then :
3803 +  $as_echo_n "(cached) " >&6
3804 + else
3805 +  ac_check_lib_save_LIBS=$LIBS
3806 + LIBS="-ldl  $LIBS"
3807 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 + /* end confdefs.h.  */
3809 +
3810 + /* Override any GCC internal prototype to avoid an error.
3811 +   Use char because int might match the return type of a GCC
3812 +   builtin and then its argument prototype would still apply.  */
3813 + #ifdef __cplusplus
3814 + extern "C"
3815 + #endif
3816 + char dlopen ();
3817 + int
3818 + main ()
3819 + {
3820 + return dlopen ();
3821 +  ;
3822 +  return 0;
3823 + }
3824 + _ACEOF
3825 + if ac_fn_cxx_try_link "$LINENO"; then :
3826 +  ac_cv_lib_dl_dlopen=yes
3827 + else
3828 +  ac_cv_lib_dl_dlopen=no
3829 + fi
3830 + rm -f core conftest.err conftest.$ac_objext \
3831 +    conftest$ac_exeext conftest.$ac_ext
3832 + LIBS=$ac_check_lib_save_LIBS
3833 + fi
3834 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3835 + $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3836 + if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3837 +  LIBDL="-ldl"
3838 + fi
3839 +
3840 + fi
3841 +
3842 +
3843 +
3844 +
3845 +
3846 +
3847 +
3848 +        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3849 + do
3850 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
3851 + set dummy $ac_prog; ac_word=$2
3852 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 + $as_echo_n "checking for $ac_word... " >&6; }
3854 + if ${ac_cv_prog_MPICXX+:} false; then :
3855 +  $as_echo_n "(cached) " >&6
3856 + else
3857 +  if test -n "$MPICXX"; then
3858 +  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3859 + else
3860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861   for as_dir in $PATH
3862   do
3863    IFS=$as_save_IFS
3864    test -z "$as_dir" && as_dir=.
3865 <  for ac_exec_ext in '' $ac_executable_extensions; do
3865 >    for ac_exec_ext in '' $ac_executable_extensions; do
3866    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3867 <    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
3868 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 >    ac_cv_prog_MPICXX="$ac_prog"
3868 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3869      break 2
3870    fi
3871   done
3872 < done
3872 >  done
3873   IFS=$as_save_IFS
3874  
3875   fi
3876   fi
3877 < FC=$ac_cv_prog_FC
3878 < if test -n "$FC"; then
3879 <  { echo "$as_me:$LINENO: result: $FC" >&5
3880 < echo "${ECHO_T}$FC" >&6; }
3877 > MPICXX=$ac_cv_prog_MPICXX
3878 > if test -n "$MPICXX"; then
3879 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3880 > $as_echo "$MPICXX" >&6; }
3881   else
3882 <  { echo "$as_me:$LINENO: result: no" >&5
3883 < echo "${ECHO_T}no" >&6; }
3882 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883 > $as_echo "no" >&6; }
3884   fi
3885  
3886  
3887 <    test -n "$FC" && break
3888 <  done
3887 >  test -n "$MPICXX" && break
3888 > done
3889 > test -n "$MPICXX" || MPICXX="$CXX"
3890 >
3891 >        ax_mpi_save_CXX="$CXX"
3892 >        CXX="$MPICXX"
3893 >
3894 >
3895 >
3896 > if test x = x"$MPILIBS"; then
3897 >        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3898 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
3899 >  MPILIBS=" "
3900   fi
3901 < if test -z "$FC"; then
3902 <  ac_ct_FC=$FC
3903 <  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3901 >
3902 > fi
3903 >
3904 > if test x = x"$MPILIBS"; then
3905 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3906 > $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3907 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
3908 >  $as_echo_n "(cached) " >&6
3909 > else
3910 >  ac_check_lib_save_LIBS=$LIBS
3911 > LIBS="-lmpi  $LIBS"
3912 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 > /* end confdefs.h.  */
3914 >
3915 > /* Override any GCC internal prototype to avoid an error.
3916 >   Use char because int might match the return type of a GCC
3917 >   builtin and then its argument prototype would still apply.  */
3918 > #ifdef __cplusplus
3919 > extern "C"
3920 > #endif
3921 > char MPI_Init ();
3922 > int
3923 > main ()
3924 > {
3925 > return MPI_Init ();
3926 >  ;
3927 >  return 0;
3928 > }
3929 > _ACEOF
3930 > if ac_fn_cxx_try_link "$LINENO"; then :
3931 >  ac_cv_lib_mpi_MPI_Init=yes
3932 > else
3933 >  ac_cv_lib_mpi_MPI_Init=no
3934 > fi
3935 > rm -f core conftest.err conftest.$ac_objext \
3936 >    conftest$ac_exeext conftest.$ac_ext
3937 > LIBS=$ac_check_lib_save_LIBS
3938 > fi
3939 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3940 > $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3941 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
3942 >  MPILIBS="-lmpi"
3943 > fi
3944 >
3945 > fi
3946 > if test x = x"$MPILIBS"; then
3947 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
3948 > $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
3949 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
3950 >  $as_echo_n "(cached) " >&6
3951 > else
3952 >  ac_check_lib_save_LIBS=$LIBS
3953 > LIBS="-lmpich  $LIBS"
3954 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 > /* end confdefs.h.  */
3956 >
3957 > /* Override any GCC internal prototype to avoid an error.
3958 >   Use char because int might match the return type of a GCC
3959 >   builtin and then its argument prototype would still apply.  */
3960 > #ifdef __cplusplus
3961 > extern "C"
3962 > #endif
3963 > char MPI_Init ();
3964 > int
3965 > main ()
3966 > {
3967 > return MPI_Init ();
3968 >  ;
3969 >  return 0;
3970 > }
3971 > _ACEOF
3972 > if ac_fn_cxx_try_link "$LINENO"; then :
3973 >  ac_cv_lib_mpich_MPI_Init=yes
3974 > else
3975 >  ac_cv_lib_mpich_MPI_Init=no
3976 > fi
3977 > rm -f core conftest.err conftest.$ac_objext \
3978 >    conftest$ac_exeext conftest.$ac_ext
3979 > LIBS=$ac_check_lib_save_LIBS
3980 > fi
3981 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
3982 > $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3983 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
3984 >  MPILIBS="-lmpich"
3985 > fi
3986 >
3987 > fi
3988 >
3989 > if test x != x"$MPILIBS"; then
3990 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
3991 > $as_echo_n "checking for mpi.h... " >&6; }
3992 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 > /* end confdefs.h.  */
3994 > #include <mpi.h>
3995 > int
3996 > main ()
3997 > {
3998 >
3999 >  ;
4000 >  return 0;
4001 > }
4002 > _ACEOF
4003 > if ac_fn_cxx_try_compile "$LINENO"; then :
4004 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4005 > $as_echo "yes" >&6; }
4006 > else
4007 >  MPILIBS=""
4008 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 > $as_echo "no" >&6; }
4010 > fi
4011 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 > fi
4013 >
4014 > CXX="$ax_mpi_save_CXX"
4015 >
4016 >
4017 >
4018 > # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4019 > if test x = x"$MPILIBS"; then
4020 >        USE_MPI="no"
4021 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5
4022 > $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;}
4023 >        :
4024 > else
4025 >        USE_MPI="yes"
4026 >        :
4027 > fi
4028 >
4029 >
4030 > if test $USE_MPI != no; then :
4031 >
4032 > ac_ext=c
4033 > ac_cpp='$CPP $CPPFLAGS'
4034 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037 >
4038 >
4039 >
4040 >
4041 >
4042 >
4043 >        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4044   do
4045    # Extract the first word of "$ac_prog", so it can be a program name with args.
4046   set dummy $ac_prog; ac_word=$2
4047 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
4048 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4049 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4050 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4047 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048 > $as_echo_n "checking for $ac_word... " >&6; }
4049 > if ${ac_cv_prog_MPICC+:} false; then :
4050 >  $as_echo_n "(cached) " >&6
4051   else
4052 <  if test -n "$ac_ct_FC"; then
4053 <  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4052 >  if test -n "$MPICC"; then
4053 >  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4054   else
4055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056   for as_dir in $PATH
4057   do
4058    IFS=$as_save_IFS
4059    test -z "$as_dir" && as_dir=.
4060 <  for ac_exec_ext in '' $ac_executable_extensions; do
4060 >    for ac_exec_ext in '' $ac_executable_extensions; do
4061    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4062 <    ac_cv_prog_ac_ct_FC="$ac_prog"
4063 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 >    ac_cv_prog_MPICC="$ac_prog"
4063 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064      break 2
4065    fi
4066   done
4067 < done
4067 >  done
4068   IFS=$as_save_IFS
4069  
4070   fi
4071   fi
4072 < ac_ct_FC=$ac_cv_prog_ac_ct_FC
4073 < if test -n "$ac_ct_FC"; then
4074 <  { echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4075 < echo "${ECHO_T}$ac_ct_FC" >&6; }
4072 > MPICC=$ac_cv_prog_MPICC
4073 > if test -n "$MPICC"; then
4074 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4075 > $as_echo "$MPICC" >&6; }
4076   else
4077 <  { echo "$as_me:$LINENO: result: no" >&5
4078 < echo "${ECHO_T}no" >&6; }
4077 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 > $as_echo "no" >&6; }
4079   fi
4080  
4081  
4082 <  test -n "$ac_ct_FC" && break
4082 >  test -n "$MPICC" && break
4083   done
4084 + test -n "$MPICC" || MPICC="$CC"
4085  
4086 <  if test "x$ac_ct_FC" = x; then
4087 <    FC=""
3299 <  else
3300 <    case $cross_compiling:$ac_tool_warned in
3301 < yes:)
3302 < { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3303 < whose name does not start with the host triplet.  If you think this
3304 < configuration is useful to you, please write to autoconf@gnu.org." >&5
3305 < echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3306 < whose name does not start with the host triplet.  If you think this
3307 < configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3308 < ac_tool_warned=yes ;;
3309 < esac
3310 <    FC=$ac_ct_FC
3311 <  fi
3312 < fi
4086 >        ax_mpi_save_CC="$CC"
4087 >        CC="$MPICC"
4088  
4089  
3315 # Provide some information about the compiler.
3316 echo "$as_me:$LINENO: checking for Fortran compiler version" >&5
3317 ac_compiler=`set X $ac_compile; echo $2`
3318 { (ac_try="$ac_compiler --version >&5"
3319 case "(($ac_try" in
3320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321  *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324  (eval "$ac_compiler --version >&5") 2>&5
3325  ac_status=$?
3326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327  (exit $ac_status); }
3328 { (ac_try="$ac_compiler -v >&5"
3329 case "(($ac_try" in
3330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331  *) ac_try_echo=$ac_try;;
3332 esac
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334  (eval "$ac_compiler -v >&5") 2>&5
3335  ac_status=$?
3336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337  (exit $ac_status); }
3338 { (ac_try="$ac_compiler -V >&5"
3339 case "(($ac_try" in
3340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341  *) ac_try_echo=$ac_try;;
3342 esac
3343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344  (eval "$ac_compiler -V >&5") 2>&5
3345  ac_status=$?
3346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347  (exit $ac_status); }
3348 rm -rf a.out
4090  
4091 < # If we don't use `.F' as extension, the preprocessor is not run on the
4092 < # input file.  (Note that this only needs to work for GNU compilers.)
4093 < ac_save_ext=$ac_ext
4094 < ac_ext=F
4095 < { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4096 < echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6; }
4097 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4098 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4091 > if test x = x"$MPILIBS"; then
4092 >        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4093 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
4094 >  MPILIBS=" "
4095 > fi
4096 >
4097 > fi
4098 >
4099 > if test x = x"$MPILIBS"; then
4100 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4101 > $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4102 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4103 >  $as_echo_n "(cached) " >&6
4104   else
4105 <  cat >conftest.$ac_ext <<_ACEOF
4106 <      program main
4107 < #ifndef __GNUC__
4108 <       choke me
3363 < #endif
4105 >  ac_check_lib_save_LIBS=$LIBS
4106 > LIBS="-lmpi  $LIBS"
4107 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 > /* end confdefs.h.  */
4109  
4110 <      end
4110 > /* Override any GCC internal prototype to avoid an error.
4111 >   Use char because int might match the return type of a GCC
4112 >   builtin and then its argument prototype would still apply.  */
4113 > #ifdef __cplusplus
4114 > extern "C"
4115 > #endif
4116 > char MPI_Init ();
4117 > int
4118 > main ()
4119 > {
4120 > return MPI_Init ();
4121 >  ;
4122 >  return 0;
4123 > }
4124   _ACEOF
4125 < rm -rf conftest.$ac_objext
4126 < if { (ac_try="$ac_compile"
3369 < case "(($ac_try" in
3370 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 <  *) ac_try_echo=$ac_try;;
3372 < esac
3373 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 <  (eval "$ac_compile") 2>conftest.er1
3375 <  ac_status=$?
3376 <  grep -v '^ *+' conftest.er1 >conftest.err
3377 <  rm -f conftest.er1
3378 <  cat conftest.err >&5
3379 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 <  (exit $ac_status); } && {
3381 <         test -z "$ac_fc_werror_flag" ||
3382 <         test ! -s conftest.err
3383 <       } && test -s conftest.$ac_objext; then
3384 <  ac_compiler_gnu=yes
4125 > if ac_fn_c_try_link "$LINENO"; then :
4126 >  ac_cv_lib_mpi_MPI_Init=yes
4127   else
4128 <  echo "$as_me: failed program was:" >&5
3387 < sed 's/^/| /' conftest.$ac_ext >&5
3388 <
3389 <        ac_compiler_gnu=no
4128 >  ac_cv_lib_mpi_MPI_Init=no
4129   fi
4130 + rm -f core conftest.err conftest.$ac_objext \
4131 +    conftest$ac_exeext conftest.$ac_ext
4132 + LIBS=$ac_check_lib_save_LIBS
4133 + fi
4134 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4135 + $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4136 + if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4137 +  MPILIBS="-lmpi"
4138 + fi
4139  
3392 rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
3394
4140   fi
4141 < { echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4142 < echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6; }
4143 < ac_ext=$ac_save_ext
4144 < ac_test_FFLAGS=${FCFLAGS+set}
4145 < ac_save_FFLAGS=$FCFLAGS
3401 < FCFLAGS=
3402 < { echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
3403 < echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6; }
3404 < if test "${ac_cv_prog_fc_g+set}" = set; then
3405 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4141 > if test x = x"$MPILIBS"; then
4142 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4143 > $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4144 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4145 >  $as_echo_n "(cached) " >&6
4146   else
4147 <  FCFLAGS=-g
4148 < cat >conftest.$ac_ext <<_ACEOF
4149 <      program main
4147 >  ac_check_lib_save_LIBS=$LIBS
4148 > LIBS="-lmpich  $LIBS"
4149 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 > /* end confdefs.h.  */
4151  
4152 <      end
4152 > /* Override any GCC internal prototype to avoid an error.
4153 >   Use char because int might match the return type of a GCC
4154 >   builtin and then its argument prototype would still apply.  */
4155 > #ifdef __cplusplus
4156 > extern "C"
4157 > #endif
4158 > char MPI_Init ();
4159 > int
4160 > main ()
4161 > {
4162 > return MPI_Init ();
4163 >  ;
4164 >  return 0;
4165 > }
4166   _ACEOF
4167 < rm -rf conftest.$ac_objext
4168 < if { (ac_try="$ac_compile"
3415 < case "(($ac_try" in
3416 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 <  *) ac_try_echo=$ac_try;;
3418 < esac
3419 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420 <  (eval "$ac_compile") 2>conftest.er1
3421 <  ac_status=$?
3422 <  grep -v '^ *+' conftest.er1 >conftest.err
3423 <  rm -f conftest.er1
3424 <  cat conftest.err >&5
3425 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 <  (exit $ac_status); } && {
3427 <         test -z "$ac_fc_werror_flag" ||
3428 <         test ! -s conftest.err
3429 <       } && test -s conftest.$ac_objext; then
3430 <  ac_cv_prog_fc_g=yes
4167 > if ac_fn_c_try_link "$LINENO"; then :
4168 >  ac_cv_lib_mpich_MPI_Init=yes
4169   else
4170 <  echo "$as_me: failed program was:" >&5
4171 < sed 's/^/| /' conftest.$ac_ext >&5
4170 >  ac_cv_lib_mpich_MPI_Init=no
4171 > fi
4172 > rm -f core conftest.err conftest.$ac_objext \
4173 >    conftest$ac_exeext conftest.$ac_ext
4174 > LIBS=$ac_check_lib_save_LIBS
4175 > fi
4176 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4177 > $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4178 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4179 >  MPILIBS="-lmpich"
4180 > fi
4181  
3435        ac_cv_prog_fc_g=no
4182   fi
4183  
4184 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 > if test x != x"$MPILIBS"; then
4185 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4186 > $as_echo_n "checking for mpi.h... " >&6; }
4187 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 > /* end confdefs.h.  */
4189 > #include <mpi.h>
4190 > int
4191 > main ()
4192 > {
4193  
4194 +  ;
4195 +  return 0;
4196 + }
4197 + _ACEOF
4198 + if ac_fn_c_try_compile "$LINENO"; then :
4199 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4200 + $as_echo "yes" >&6; }
4201 + else
4202 +  MPILIBS=""
4203 +                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 + $as_echo "no" >&6; }
4205   fi
4206 < { echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4207 < echo "${ECHO_T}$ac_cv_prog_fc_g" >&6; }
4208 < if test "$ac_test_FFLAGS" = set; then
4209 <  FCFLAGS=$ac_save_FFLAGS
4210 < elif test $ac_cv_prog_fc_g = yes; then
4211 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4212 <    FCFLAGS="-g -O2"
4213 <  else
4214 <    FCFLAGS="-g"
4215 <  fi
4206 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 > fi
4208 >
4209 > CC="$ax_mpi_save_CC"
4210 >
4211 >
4212 >
4213 > # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4214 > if test x = x"$MPILIBS"; then
4215 >        USE_MPI="no"
4216 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5
4217 > $as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;}
4218 >        :
4219   else
4220 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4221 <    FCFLAGS="-O2"
3454 <  else
3455 <    FCFLAGS=
3456 <  fi
4220 >        USE_MPI="yes"
4221 >        :
4222   fi
4223  
3459 ac_ext=c
3460 ac_cpp='$CPP $CPPFLAGS'
3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4224  
4225 + fi
4226 + if test $USE_MPI != no; then :
4227 +
4228 +        CXX=$MPICXX
4229 +        CC=$MPICC
4230 +        LIBS="$MPILIBS $LIBS"
4231 +
4232 + else
4233 +
4234 +        CXX=$save_CXX
4235 +        CC=$save_CC
4236 +        LIBS=$save_LIBS
4237 +
4238 +
4239 + fi
4240 +
4241 +
4242 + # Checks for programs.
4243   ac_ext=c
4244   ac_cpp='$CPP $CPPFLAGS'
4245   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247   ac_compiler_gnu=$ac_cv_c_compiler_gnu
4248 < { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4249 < echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4248 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4249 > $as_echo_n "checking how to run the C preprocessor... " >&6; }
4250   # On Suns, sometimes $CPP names a directory.
4251   if test -n "$CPP" && test -d "$CPP"; then
4252    CPP=
4253   fi
4254   if test -z "$CPP"; then
4255 <  if test "${ac_cv_prog_CPP+set}" = set; then
4256 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4255 >  if ${ac_cv_prog_CPP+:} false; then :
4256 >  $as_echo_n "(cached) " >&6
4257   else
4258        # Double quotes because CPP needs to be expanded
4259      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
# Line 3489 | Line 4267 | do
4267    # <limits.h> exists even on freestanding compilers.
4268    # On the NeXT, cc -E runs the code through the compiler's parser,
4269    # not just through cpp. "Syntax error" is here to catch this case.
4270 <  cat >conftest.$ac_ext <<_ACEOF
3493 < /* confdefs.h.  */
3494 < _ACEOF
3495 < cat confdefs.h >>conftest.$ac_ext
3496 < cat >>conftest.$ac_ext <<_ACEOF
4270 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271   /* end confdefs.h.  */
4272   #ifdef __STDC__
4273   # include <limits.h>
# Line 3502 | Line 4276 | _ACEOF
4276   #endif
4277                       Syntax error
4278   _ACEOF
4279 < if { (ac_try="$ac_cpp conftest.$ac_ext"
3506 < case "(($ac_try" in
3507 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 <  *) ac_try_echo=$ac_try;;
3509 < esac
3510 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3511 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3512 <  ac_status=$?
3513 <  grep -v '^ *+' conftest.er1 >conftest.err
3514 <  rm -rf conftest.er1
3515 <  cat conftest.err >&5
3516 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 <  (exit $ac_status); } >/dev/null && {
3518 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3519 <         test ! -s conftest.err
3520 <       }; then
3521 <  :
3522 < else
3523 <  echo "$as_me: failed program was:" >&5
3524 < sed 's/^/| /' conftest.$ac_ext >&5
4279 > if ac_fn_c_try_cpp "$LINENO"; then :
4280  
4281 + else
4282    # Broken: fails on valid input.
4283   continue
4284   fi
4285 + rm -f conftest.err conftest.i conftest.$ac_ext
4286  
3530 rm -rf conftest.err conftest.$ac_ext
3531
4287    # OK, works on sane cases.  Now check whether nonexistent headers
4288    # can be detected and how.
4289 <  cat >conftest.$ac_ext <<_ACEOF
3535 < /* confdefs.h.  */
3536 < _ACEOF
3537 < cat confdefs.h >>conftest.$ac_ext
3538 < cat >>conftest.$ac_ext <<_ACEOF
4289 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290   /* end confdefs.h.  */
4291   #include <ac_nonexistent.h>
4292   _ACEOF
4293 < if { (ac_try="$ac_cpp conftest.$ac_ext"
3543 < case "(($ac_try" in
3544 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 <  *) ac_try_echo=$ac_try;;
3546 < esac
3547 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3549 <  ac_status=$?
3550 <  grep -v '^ *+' conftest.er1 >conftest.err
3551 <  rm -f conftest.er1
3552 <  cat conftest.err >&5
3553 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 <  (exit $ac_status); } >/dev/null && {
3555 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3556 <         test ! -s conftest.err
3557 <       }; then
4293 > if ac_fn_c_try_cpp "$LINENO"; then :
4294    # Broken: success on invalid input.
4295   continue
4296   else
3561  echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
4297    # Passes both tests.
4298   ac_preproc_ok=:
4299   break
4300   fi
4301 + rm -f conftest.err conftest.i conftest.$ac_ext
4302  
3569 rm -rf conftest.err conftest.$ac_ext
3570
4303   done
4304   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4305 < rm -rf conftest.err conftest.$ac_ext
4306 < if $ac_preproc_ok; then
4305 > rm -f conftest.i conftest.err conftest.$ac_ext
4306 > if $ac_preproc_ok; then :
4307    break
4308   fi
4309  
# Line 3583 | Line 4315 | fi
4315   else
4316    ac_cv_prog_CPP=$CPP
4317   fi
4318 < { echo "$as_me:$LINENO: result: $CPP" >&5
4319 < echo "${ECHO_T}$CPP" >&6; }
4318 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4319 > $as_echo "$CPP" >&6; }
4320   ac_preproc_ok=false
4321   for ac_c_preproc_warn_flag in '' yes
4322   do
# Line 3594 | Line 4326 | do
4326    # <limits.h> exists even on freestanding compilers.
4327    # On the NeXT, cc -E runs the code through the compiler's parser,
4328    # not just through cpp. "Syntax error" is here to catch this case.
4329 <  cat >conftest.$ac_ext <<_ACEOF
3598 < /* confdefs.h.  */
3599 < _ACEOF
3600 < cat confdefs.h >>conftest.$ac_ext
3601 < cat >>conftest.$ac_ext <<_ACEOF
4329 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330   /* end confdefs.h.  */
4331   #ifdef __STDC__
4332   # include <limits.h>
# Line 3607 | Line 4335 | _ACEOF
4335   #endif
4336                       Syntax error
4337   _ACEOF
4338 < if { (ac_try="$ac_cpp conftest.$ac_ext"
3611 < case "(($ac_try" in
3612 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 <  *) ac_try_echo=$ac_try;;
3614 < esac
3615 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3617 <  ac_status=$?
3618 <  grep -v '^ *+' conftest.er1 >conftest.err
3619 <  rm -f conftest.er1
3620 <  cat conftest.err >&5
3621 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 <  (exit $ac_status); } >/dev/null && {
3623 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3624 <         test ! -s conftest.err
3625 <       }; then
3626 <  :
3627 < else
3628 <  echo "$as_me: failed program was:" >&5
3629 < sed 's/^/| /' conftest.$ac_ext >&5
4338 > if ac_fn_c_try_cpp "$LINENO"; then :
4339  
4340 + else
4341    # Broken: fails on valid input.
4342   continue
4343   fi
4344 + rm -f conftest.err conftest.i conftest.$ac_ext
4345  
3635 rm -rf conftest.err conftest.$ac_ext
3636
4346    # OK, works on sane cases.  Now check whether nonexistent headers
4347    # can be detected and how.
4348 <  cat >conftest.$ac_ext <<_ACEOF
3640 < /* confdefs.h.  */
3641 < _ACEOF
3642 < cat confdefs.h >>conftest.$ac_ext
3643 < cat >>conftest.$ac_ext <<_ACEOF
4348 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349   /* end confdefs.h.  */
4350   #include <ac_nonexistent.h>
4351   _ACEOF
4352 < if { (ac_try="$ac_cpp conftest.$ac_ext"
3648 < case "(($ac_try" in
3649 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 <  *) ac_try_echo=$ac_try;;
3651 < esac
3652 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3654 <  ac_status=$?
3655 <  grep -v '^ *+' conftest.er1 >conftest.err
3656 <  rm -f conftest.er1
3657 <  cat conftest.err >&5
3658 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 <  (exit $ac_status); } >/dev/null && {
3660 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3661 <         test ! -s conftest.err
3662 <       }; then
4352 > if ac_fn_c_try_cpp "$LINENO"; then :
4353    # Broken: success on invalid input.
4354   continue
4355   else
3666  echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3668
4356    # Passes both tests.
4357   ac_preproc_ok=:
4358   break
4359   fi
4360 + rm -f conftest.err conftest.i conftest.$ac_ext
4361  
3674 rm -rf conftest.err conftest.$ac_ext
3675
4362   done
4363   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4364 < rm -rf conftest.err conftest.$ac_ext
4365 < if $ac_preproc_ok; then
4366 <  :
4364 > rm -f conftest.i conftest.err conftest.$ac_ext
4365 > if $ac_preproc_ok; then :
4366 >
4367   else
4368 <  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4369 < See \`config.log' for more details." >&5
4370 < echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4371 < See \`config.log' for more details." >&2;}
3686 <   { (exit 1); exit 1; }; }
4368 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4369 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4370 > as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4371 > See \`config.log' for more details" "$LINENO" 5; }
4372   fi
4373  
4374   ac_ext=c
# Line 3692 | Line 4377 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378   ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379  
4380 < { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4381 < echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4382 < if test "${ac_cv_path_GREP+set}" = set; then
4383 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4380 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4381 > $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4382 > if ${ac_cv_path_GREP+:} false; then :
4383 >  $as_echo_n "(cached) " >&6
4384   else
4385 <  # Extract the first word of "grep ggrep" to use in msg output
3701 < if test -z "$GREP"; then
3702 < set dummy grep ggrep; ac_prog_name=$2
3703 < if test "${ac_cv_path_GREP+set}" = set; then
3704 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3705 < else
4385 >  if test -z "$GREP"; then
4386    ac_path_GREP_found=false
4387 < # Loop through the user's path and test for each of PROGNAME-LIST
4388 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 >  # Loop through the user's path and test for each of PROGNAME-LIST
4388 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389   for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4390   do
4391    IFS=$as_save_IFS
4392    test -z "$as_dir" && as_dir=.
4393 <  for ac_prog in grep ggrep; do
4394 <  for ac_exec_ext in '' $ac_executable_extensions; do
4395 <    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4396 <    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4397 <    # Check for GNU ac_path_GREP and select it if it is found.
4393 >    for ac_prog in grep ggrep; do
4394 >    for ac_exec_ext in '' $ac_executable_extensions; do
4395 >      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4396 >      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4397 > # Check for GNU ac_path_GREP and select it if it is found.
4398    # Check for GNU $ac_path_GREP
4399   case `"$ac_path_GREP" --version 2>&1` in
4400   *GNU*)
4401    ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4402   *)
4403    ac_count=0
4404 <  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4404 >  $as_echo_n 0123456789 >"conftest.in"
4405    while :
4406    do
4407      cat "conftest.in" "conftest.in" >"conftest.tmp"
4408      mv "conftest.tmp" "conftest.in"
4409      cp "conftest.in" "conftest.nl"
4410 <    echo 'GREP' >> "conftest.nl"
4410 >    $as_echo 'GREP' >> "conftest.nl"
4411      "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4412      diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4413 <    ac_count=`expr $ac_count + 1`
4413 >    as_fn_arith $ac_count + 1 && ac_count=$as_val
4414      if test $ac_count -gt ${ac_path_GREP_max-0}; then
4415        # Best one so far, save it but keep looking for a better one
4416        ac_cv_path_GREP="$ac_path_GREP"
# Line 3739 | Line 4419 | case `"$ac_path_GREP" --version 2>&1` in
4419      # 10*(2^10) chars as input seems more than enough
4420      test $ac_count -gt 10 && break
4421    done
4422 <  rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
4422 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4423   esac
4424  
4425 <
4426 <    $ac_path_GREP_found && break 3
4425 >      $ac_path_GREP_found && break 3
4426 >    done
4427    done
4428 < done
3749 <
3750 < done
4428 >  done
4429   IFS=$as_save_IFS
4430 <
4431 <
4432 < fi
3755 <
3756 < GREP="$ac_cv_path_GREP"
3757 < if test -z "$GREP"; then
3758 <  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3759 < echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3760 <   { (exit 1); exit 1; }; }
3761 < fi
3762 <
4430 >  if test -z "$ac_cv_path_GREP"; then
4431 >    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4432 >  fi
4433   else
4434    ac_cv_path_GREP=$GREP
4435   fi
4436  
3767
4437   fi
4438 < { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4439 < echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4438 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4439 > $as_echo "$ac_cv_path_GREP" >&6; }
4440   GREP="$ac_cv_path_GREP"
4441  
4442  
4443 < { echo "$as_me:$LINENO: checking for egrep" >&5
4444 < echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4445 < if test "${ac_cv_path_EGREP+set}" = set; then
4446 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4443 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4444 > $as_echo_n "checking for egrep... " >&6; }
4445 > if ${ac_cv_path_EGREP+:} false; then :
4446 >  $as_echo_n "(cached) " >&6
4447   else
4448    if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4449     then ac_cv_path_EGREP="$GREP -E"
4450     else
4451 <     # Extract the first word of "egrep" to use in msg output
3783 < if test -z "$EGREP"; then
3784 < set dummy egrep; ac_prog_name=$2
3785 < if test "${ac_cv_path_EGREP+set}" = set; then
3786 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3787 < else
4451 >     if test -z "$EGREP"; then
4452    ac_path_EGREP_found=false
4453 < # Loop through the user's path and test for each of PROGNAME-LIST
4454 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 >  # Loop through the user's path and test for each of PROGNAME-LIST
4454 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455   for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4456   do
4457    IFS=$as_save_IFS
4458    test -z "$as_dir" && as_dir=.
4459 <  for ac_prog in egrep; do
4460 <  for ac_exec_ext in '' $ac_executable_extensions; do
4461 <    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4462 <    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4463 <    # Check for GNU ac_path_EGREP and select it if it is found.
4459 >    for ac_prog in egrep; do
4460 >    for ac_exec_ext in '' $ac_executable_extensions; do
4461 >      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4462 >      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4463 > # Check for GNU ac_path_EGREP and select it if it is found.
4464    # Check for GNU $ac_path_EGREP
4465   case `"$ac_path_EGREP" --version 2>&1` in
4466   *GNU*)
4467    ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4468   *)
4469    ac_count=0
4470 <  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4470 >  $as_echo_n 0123456789 >"conftest.in"
4471    while :
4472    do
4473      cat "conftest.in" "conftest.in" >"conftest.tmp"
4474      mv "conftest.tmp" "conftest.in"
4475      cp "conftest.in" "conftest.nl"
4476 <    echo 'EGREP' >> "conftest.nl"
4476 >    $as_echo 'EGREP' >> "conftest.nl"
4477      "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4478      diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4479 <    ac_count=`expr $ac_count + 1`
4479 >    as_fn_arith $ac_count + 1 && ac_count=$as_val
4480      if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4481        # Best one so far, save it but keep looking for a better one
4482        ac_cv_path_EGREP="$ac_path_EGREP"
# Line 3821 | Line 4485 | case `"$ac_path_EGREP" --version 2>&1` in
4485      # 10*(2^10) chars as input seems more than enough
4486      test $ac_count -gt 10 && break
4487    done
4488 <  rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
4488 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4489   esac
4490  
4491 <
4492 <    $ac_path_EGREP_found && break 3
4491 >      $ac_path_EGREP_found && break 3
4492 >    done
4493    done
4494 < done
3831 <
3832 < done
4494 >  done
4495   IFS=$as_save_IFS
4496 <
4497 <
4498 < fi
3837 <
3838 < EGREP="$ac_cv_path_EGREP"
3839 < if test -z "$EGREP"; then
3840 <  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3841 < echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3842 <   { (exit 1); exit 1; }; }
3843 < fi
3844 <
4496 >  if test -z "$ac_cv_path_EGREP"; then
4497 >    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4498 >  fi
4499   else
4500    ac_cv_path_EGREP=$EGREP
4501   fi
4502  
3849
4503     fi
4504   fi
4505 < { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4506 < echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4505 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4506 > $as_echo "$ac_cv_path_EGREP" >&6; }
4507   EGREP="$ac_cv_path_EGREP"
4508  
4509  
4510 < { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4511 < echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4510 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4511 > $as_echo_n "checking whether ln -s works... " >&6; }
4512   LN_S=$as_ln_s
4513   if test "$LN_S" = "ln -s"; then
4514 <  { echo "$as_me:$LINENO: result: yes" >&5
4515 < echo "${ECHO_T}yes" >&6; }
4514 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4515 > $as_echo "yes" >&6; }
4516   else
4517 <  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4518 < echo "${ECHO_T}no, using $LN_S" >&6; }
4517 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4518 > $as_echo "no, using $LN_S" >&6; }
4519   fi
4520  
4521 < { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4522 < echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4523 < set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4524 < if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4525 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4521 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4522 > $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4523 > set x ${MAKE-make}
4524 > ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4525 > if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4526 >  $as_echo_n "(cached) " >&6
4527   else
4528    cat >conftest.make <<\_ACEOF
4529   SHELL = /bin/sh
4530   all:
4531          @echo '@@@%%%=$(MAKE)=@@@%%%'
4532   _ACEOF
4533 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4533 > # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4534   case `${MAKE-make} -f conftest.make 2>/dev/null` in
4535    *@@@%%%=?*=@@@%%%*)
4536      eval ac_cv_prog_make_${ac_make}_set=yes;;
4537    *)
4538      eval ac_cv_prog_make_${ac_make}_set=no;;
4539   esac
4540 < rm -rf conftest.make
4540 > rm -f conftest.make
4541   fi
4542   if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4543 <  { echo "$as_me:$LINENO: result: yes" >&5
4544 < echo "${ECHO_T}yes" >&6; }
4543 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4544 > $as_echo "yes" >&6; }
4545    SET_MAKE=
4546   else
4547 <  { echo "$as_me:$LINENO: result: no" >&5
4548 < echo "${ECHO_T}no" >&6; }
4547 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 > $as_echo "no" >&6; }
4549    SET_MAKE="MAKE=${MAKE-make}"
4550   fi
4551  
4552   if test -n "$ac_tool_prefix"; then
4553    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4554   set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4555 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4557 < if test "${ac_cv_prog_RANLIB+set}" = set; then
4558 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4555 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 > $as_echo_n "checking for $ac_word... " >&6; }
4557 > if ${ac_cv_prog_RANLIB+:} false; then :
4558 >  $as_echo_n "(cached) " >&6
4559   else
4560    if test -n "$RANLIB"; then
4561    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
# Line 3911 | Line 4565 | do
4565   do
4566    IFS=$as_save_IFS
4567    test -z "$as_dir" && as_dir=.
4568 <  for ac_exec_ext in '' $ac_executable_extensions; do
4568 >    for ac_exec_ext in '' $ac_executable_extensions; do
4569    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4571 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572      break 2
4573    fi
4574   done
4575 < done
4575 >  done
4576   IFS=$as_save_IFS
4577  
4578   fi
4579   fi
4580   RANLIB=$ac_cv_prog_RANLIB
4581   if test -n "$RANLIB"; then
4582 <  { echo "$as_me:$LINENO: result: $RANLIB" >&5
4583 < echo "${ECHO_T}$RANLIB" >&6; }
4582 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4583 > $as_echo "$RANLIB" >&6; }
4584   else
4585 <  { echo "$as_me:$LINENO: result: no" >&5
4586 < echo "${ECHO_T}no" >&6; }
4585 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 > $as_echo "no" >&6; }
4587   fi
4588  
4589  
# Line 3938 | Line 4592 | set dummy ranlib; ac_word=$2
4592    ac_ct_RANLIB=$RANLIB
4593    # Extract the first word of "ranlib", so it can be a program name with args.
4594   set dummy ranlib; ac_word=$2
4595 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
4596 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4597 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4598 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4595 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 > $as_echo_n "checking for $ac_word... " >&6; }
4597 > if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4598 >  $as_echo_n "(cached) " >&6
4599   else
4600    if test -n "$ac_ct_RANLIB"; then
4601    ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
# Line 3951 | Line 4605 | do
4605   do
4606    IFS=$as_save_IFS
4607    test -z "$as_dir" && as_dir=.
4608 <  for ac_exec_ext in '' $ac_executable_extensions; do
4608 >    for ac_exec_ext in '' $ac_executable_extensions; do
4609    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610      ac_cv_prog_ac_ct_RANLIB="ranlib"
4611 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612      break 2
4613    fi
4614   done
4615 < done
4615 >  done
4616   IFS=$as_save_IFS
4617  
4618   fi
4619   fi
4620   ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4621   if test -n "$ac_ct_RANLIB"; then
4622 <  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4623 < echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4622 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4623 > $as_echo "$ac_ct_RANLIB" >&6; }
4624   else
4625 <  { echo "$as_me:$LINENO: result: no" >&5
4626 < echo "${ECHO_T}no" >&6; }
4625 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 > $as_echo "no" >&6; }
4627   fi
4628  
4629    if test "x$ac_ct_RANLIB" = x; then
# Line 3977 | Line 4631 | yes:)
4631    else
4632      case $cross_compiling:$ac_tool_warned in
4633   yes:)
4634 < { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4635 < whose name does not start with the host triplet.  If you think this
3982 < configuration is useful to you, please write to autoconf@gnu.org." >&5
3983 < echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3984 < whose name does not start with the host triplet.  If you think this
3985 < configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4634 > { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 > $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636   ac_tool_warned=yes ;;
4637   esac
4638      RANLIB=$ac_ct_RANLIB
# Line 3994 | Line 4644 | set dummy perl; ac_word=$2
4644  
4645     # Extract the first word of "perl", so it can be a program name with args.
4646   set dummy perl; ac_word=$2
4647 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4649 < if test "${ac_cv_path_PERLINTERP+set}" = set; then
4650 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4647 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 > $as_echo_n "checking for $ac_word... " >&6; }
4649 > if ${ac_cv_path_PERLINTERP+:} false; then :
4650 >  $as_echo_n "(cached) " >&6
4651   else
4652    case $PERLINTERP in
4653    [\\/]* | ?:[\\/]*)
# Line 4009 | Line 4659 | do
4659   do
4660    IFS=$as_save_IFS
4661    test -z "$as_dir" && as_dir=.
4662 <  for ac_exec_ext in '' $ac_executable_extensions; do
4662 >    for ac_exec_ext in '' $ac_executable_extensions; do
4663    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664      ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
4665 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666      break 2
4667    fi
4668   done
4669 < done
4669 >  done
4670   IFS=$as_save_IFS
4671  
4672    test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
# Line 4025 | Line 4675 | if test -n "$PERLINTERP"; then
4675   fi
4676   PERLINTERP=$ac_cv_path_PERLINTERP
4677   if test -n "$PERLINTERP"; then
4678 <  { echo "$as_me:$LINENO: result: $PERLINTERP" >&5
4679 < echo "${ECHO_T}$PERLINTERP" >&6; }
4678 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLINTERP" >&5
4679 > $as_echo "$PERLINTERP" >&6; }
4680   else
4681 <  { echo "$as_me:$LINENO: result: no" >&5
4682 < echo "${ECHO_T}no" >&6; }
4681 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 > $as_echo "no" >&6; }
4683   fi
4684  
4685  
# Line 4038 | Line 4688 | fi
4688  
4689  
4690   # Check whether --with-perl-shebang was given.
4691 < if test "${with_perl_shebang+set}" = set; then
4691 > if test "${with_perl_shebang+set}" = set; then :
4692    withval=$with_perl_shebang; opt_perl_shebang="$withval"
4693   else
4694                  opt_perl_shebang="not_set"
4695   fi
4696  
4697 <   { echo "$as_me:$LINENO: checking whether explicit instead of detected sharpbang is to be used" >&5
4698 < echo $ECHO_N "checking whether explicit instead of detected sharpbang is to be used... $ECHO_C" >&6; }
4699 < if test "${ax_cv_opt_perl_shebang+set}" = set; then
4700 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4697 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5
4698 > $as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; }
4699 > if ${ax_cv_opt_perl_shebang+:} false; then :
4700 >  $as_echo_n "(cached) " >&6
4701   else
4702     case "$opt_perl_shebang" in
4703                        not_set  ) ax_cv_opt_perl_shebang=''
# Line 4057 | Line 4707 | fi
4707                      esac
4708  
4709   fi
4710 < { echo "$as_me:$LINENO: result: $ax_cv_opt_perl_shebang" >&5
4711 < echo "${ECHO_T}$ax_cv_opt_perl_shebang" >&6; }
4710 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_opt_perl_shebang" >&5
4711 > $as_echo "$ax_cv_opt_perl_shebang" >&6; }
4712     if test "A$ax_cv_opt_perl_shebang" != "A"
4713       then
4714         ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
4715         PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
4716 <              { echo "$as_me:$LINENO: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
4717 < echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
4716 >              { $as_echo "$as_me:${as_lineno-$LINENO}: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
4717 > $as_echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
4718  
4719   # Automatic detection of sharpbang formula starts here
4720       else
4721     _somian_shbangperl=`$PERLINTERP -V:startperl`
4722     negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
4723 <   { echo "$as_me:$LINENO: checking for kernel sharpbang invocation to start perl" >&5
4724 < echo $ECHO_N "checking for kernel sharpbang invocation to start perl... $ECHO_C" >&6; }
4725 < if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then
4726 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4723 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5
4724 > $as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; }
4725 > if ${ac_cv_sys_kernshrpbang_perl+:} false; then :
4726 >  $as_echo_n "(cached) " >&6
4727   else
4728    _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
4729          if test "x$_somian_kspb_perl" == x
# Line 4089 | Line 4739 | fi
4739          fi
4740  
4741   fi
4742 < { echo "$as_me:$LINENO: result: $ac_cv_sys_kernshrpbang_perl" >&5
4743 < echo "${ECHO_T}$ac_cv_sys_kernshrpbang_perl" >&6; }
4742 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_kernshrpbang_perl" >&5
4743 > $as_echo "$ac_cv_sys_kernshrpbang_perl" >&6; }
4744   # The above prints Checking ... result message to user.
4745     PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
4746  
4747      if test A${_somian_ksbp_warn_empty+set} == Aset
4748 <      then   { echo "$as_me:$LINENO: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
4749 < echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
4748 >      then   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
4749 > $as_echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
4750      fi
4751   # Inform user after printing result value
4752      if test A${_somian_ksbp_warn_defau+set} == Aset
4753 <      then { echo "$as_me:$LINENO: Maybe Not good -" >&5
4754 < echo "$as_me: Maybe Not good -" >&6;}
4755 <           { echo "$as_me:$LINENO: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
4756 < echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
4757 <      else { echo "$as_me:$LINENO: OK Good result - " >&5
4758 < echo "$as_me: OK Good result - " >&6;}
4759 <           { echo "$as_me:$LINENO: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
4760 < echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
4753 >      then { $as_echo "$as_me:${as_lineno-$LINENO}: Maybe Not good -" >&5
4754 > $as_echo "$as_me: Maybe Not good -" >&6;}
4755 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
4756 > $as_echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
4757 >      else { $as_echo "$as_me:${as_lineno-$LINENO}: OK Good result - " >&5
4758 > $as_echo "$as_me: OK Good result - " >&6;}
4759 >           { $as_echo "$as_me:${as_lineno-$LINENO}: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
4760 > $as_echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
4761      fi
4762    fi
4763  
# Line 4124 | Line 4774 | echo "$as_me: In last check we got a proper-looking an
4774   # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4775   # OS/2's system install, which has a completely different semantic
4776   # ./install, which can be erroneously created by make from ./install.sh.
4777 < { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4778 < echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4777 > # Reject install programs that cannot install multiple files.
4778 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4779 > $as_echo_n "checking for a BSD-compatible install... " >&6; }
4780   if test -z "$INSTALL"; then
4781 < if test "${ac_cv_path_install+set}" = set; then
4782 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4781 > if ${ac_cv_path_install+:} false; then :
4782 >  $as_echo_n "(cached) " >&6
4783   else
4784    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785   for as_dir in $PATH
4786   do
4787    IFS=$as_save_IFS
4788    test -z "$as_dir" && as_dir=.
4789 <  # Account for people who put trailing slashes in PATH elements.
4790 < case $as_dir/ in
4791 <  ./ | .// | /cC/* | \
4789 >    # Account for people who put trailing slashes in PATH elements.
4790 > case $as_dir/ in #((
4791 >  ./ | .// | /[cC]/* | \
4792    /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4793 <  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4793 >  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4794    /usr/ucb/* ) ;;
4795    *)
4796      # OSF1 and SCO ODT 3.0 have their own names for install.
# Line 4157 | Line 4808 | case $as_dir/ in
4808              # program-specific install script used by HP pwplus--don't use.
4809              :
4810            else
4811 <            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4812 <            break 3
4811 >            rm -rf conftest.one conftest.two conftest.dir
4812 >            echo one > conftest.one
4813 >            echo two > conftest.two
4814 >            mkdir conftest.dir
4815 >            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4816 >              test -s conftest.one && test -s conftest.two &&
4817 >              test -s conftest.dir/conftest.one &&
4818 >              test -s conftest.dir/conftest.two
4819 >            then
4820 >              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4821 >              break 3
4822 >            fi
4823            fi
4824          fi
4825        done
4826      done
4827      ;;
4828   esac
4829 < done
4829 >
4830 >  done
4831   IFS=$as_save_IFS
4832  
4833 + rm -rf conftest.one conftest.two conftest.dir
4834  
4835   fi
4836    if test "${ac_cv_path_install+set}" = set; then
# Line 4180 | Line 4843 | fi
4843      INSTALL=$ac_install_sh
4844    fi
4845   fi
4846 < { echo "$as_me:$LINENO: result: $INSTALL" >&5
4847 < echo "${ECHO_T}$INSTALL" >&6; }
4846 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4847 > $as_echo "$INSTALL" >&6; }
4848  
4849   # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4850   # It thinks the first close brace ends the variable substitution.
# Line 4195 | Line 4858 | esac
4858     x/*) ;;
4859     *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
4860   esac
4861 < MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
4861 > MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f -m 755"
4862   # Extract the first word of "ar", so it can be a program name with args.
4863   set dummy ar; ac_word=$2
4864 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 < if test "${ac_cv_prog_AR+set}" = set; then
4867 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4864 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 > $as_echo_n "checking for $ac_word... " >&6; }
4866 > if ${ac_cv_prog_AR+:} false; then :
4867 >  $as_echo_n "(cached) " >&6
4868   else
4869    if test -n "$AR"; then
4870    ac_cv_prog_AR="$AR" # Let the user override the test.
# Line 4211 | Line 4874 | do
4874   do
4875    IFS=$as_save_IFS
4876    test -z "$as_dir" && as_dir=.
4877 <  for ac_exec_ext in '' $ac_executable_extensions; do
4877 >    for ac_exec_ext in '' $ac_executable_extensions; do
4878    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879      ac_cv_prog_AR="ar"
4880 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881      break 2
4882    fi
4883   done
4884 < done
4884 >  done
4885   IFS=$as_save_IFS
4886  
4887    test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
# Line 4226 | Line 4889 | if test -n "$AR"; then
4889   fi
4890   AR=$ac_cv_prog_AR
4891   if test -n "$AR"; then
4892 <  { echo "$as_me:$LINENO: result: $AR" >&5
4893 < echo "${ECHO_T}$AR" >&6; }
4892 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4893 > $as_echo "$AR" >&6; }
4894   else
4895 <  { echo "$as_me:$LINENO: result: no" >&5
4896 < echo "${ECHO_T}no" >&6; }
4895 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 > $as_echo "no" >&6; }
4897   fi
4898  
4899  
# Line 4262 | Line 4925 | _ACEOF
4925      case $ac_val in #(
4926      *${as_nl}*)
4927        case $ac_var in #(
4928 <      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4929 < echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4928 >      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4929 > $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4930        esac
4931        case $ac_var in #(
4932        _ | IFS | as_nl) ;; #(
4933 <      *) $as_unset $ac_var ;;
4933 >      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4934 >      *) { eval $ac_var=; unset $ac_var;} ;;
4935        esac ;;
4936      esac
4937    done
# Line 4275 | Line 4939 | echo "$as_me: WARNING: Cache variable $ac_var contains
4939    (set) 2>&1 |
4940      case $as_nl`(ac_space=' '; set) 2>&1` in #(
4941      *${as_nl}ac_space=\ *)
4942 <      # `set' does not quote correctly, so add quotes (double-quote
4943 <      # substitution turns \\\\ into \\, and sed turns \\ into \).
4942 >      # `set' does not quote correctly, so add quotes: double-quote
4943 >      # substitution turns \\\\ into \\, and sed turns \\ into \.
4944        sed -n \
4945          "s/'/'\\\\''/g;
4946            s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
# Line 4298 | Line 4962 | if diff "$cache_file" confcache >/dev/null 2>&1; then
4962       :end' >>confcache
4963   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4964    if test -w "$cache_file"; then
4965 <    test "x$cache_file" != "x/dev/null" &&
4966 <      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4967 < echo "$as_me: updating cache $cache_file" >&6;}
4968 <    cat confcache >$cache_file
4965 >    if test "x$cache_file" != "x/dev/null"; then
4966 >      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4967 > $as_echo "$as_me: updating cache $cache_file" >&6;}
4968 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
4969 >        cat confcache >"$cache_file"
4970 >      else
4971 >        case $cache_file in #(
4972 >        */* | ?:*)
4973 >          mv -f confcache "$cache_file"$$ &&
4974 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
4975 >        *)
4976 >          mv -f confcache "$cache_file" ;;
4977 >        esac
4978 >      fi
4979 >    fi
4980    else
4981 <    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4982 < echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4981 >    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4982 > $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4983    fi
4984   fi
4985 < rm -rf confcache
4985 > rm -f confcache
4986    exit 1
4987   fi
4988 < # Extract the first word of "ps", so it can be a program name with args.
4989 < set dummy ps; ac_word=$2
4990 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
4991 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4992 < if test "${ac_cv_path_PS+set}" = set; then
4993 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4988 >
4989 >
4990 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4991 > $as_echo_n "checking for ANSI C header files... " >&6; }
4992 > if ${ac_cv_header_stdc+:} false; then :
4993 >  $as_echo_n "(cached) " >&6
4994   else
4995 <  case $PS in
4996 <  [\\/]* | ?:[\\/]*)
4997 <  ac_cv_path_PS="$PS" # Let the user override the test with a path.
4998 <  ;;
4999 <  *)
5000 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 < for as_dir in $PATH
4327 < do
4328 <  IFS=$as_save_IFS
4329 <  test -z "$as_dir" && as_dir=.
4330 <  for ac_exec_ext in '' $ac_executable_extensions; do
4331 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 <    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
4333 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 <    break 2
4335 <  fi
4336 < done
4337 < done
4338 < IFS=$as_save_IFS
4995 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 > /* end confdefs.h.  */
4997 > #include <stdlib.h>
4998 > #include <stdarg.h>
4999 > #include <string.h>
5000 > #include <float.h>
5001  
5002 <  ;;
5003 < esac
5004 < fi
5005 < PS=$ac_cv_path_PS
5006 < if test -n "$PS"; then
5007 <  { echo "$as_me:$LINENO: result: $PS" >&5
5008 < echo "${ECHO_T}$PS" >&6; }
5002 > int
5003 > main ()
5004 > {
5005 >
5006 >  ;
5007 >  return 0;
5008 > }
5009 > _ACEOF
5010 > if ac_fn_c_try_compile "$LINENO"; then :
5011 >  ac_cv_header_stdc=yes
5012   else
5013 <  { echo "$as_me:$LINENO: result: no" >&5
4349 < echo "${ECHO_T}no" >&6; }
5013 >  ac_cv_header_stdc=no
5014   fi
5015 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016  
5017 + if test $ac_cv_header_stdc = yes; then
5018 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5019 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 + /* end confdefs.h.  */
5021 + #include <string.h>
5022  
5023 < { echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5
5024 < echo $ECHO_N "checking for POSIX or BSD ps syntax... $ECHO_C" >&6; }
5025 < if test "${ac_cv_prog_ps_syntax+set}" = set; then
5026 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5023 > _ACEOF
5024 > if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5025 >  $EGREP "memchr" >/dev/null 2>&1; then :
5026 >
5027   else
5028 +  ac_cv_header_stdc=no
5029 + fi
5030 + rm -f conftest*
5031  
4359        if $PS ax -o rss > /dev/null 2>&1; then
4360                ac_cv_prog_ps_ax=yes
4361        else
4362                ac_cv_prog_ps_ax=no
4363        fi
4364        if $PS -ef -o rss > /dev/null 2>&1; then
4365                ac_cv_prog_ps_ef=yes
4366        else
4367                ac_cv_prog_ps_ef=no
4368        fi
4369        if test "$ac_cv_prog_ps_ax" = yes; then
4370                ac_cv_prog_ps_syntax=BSD
4371        else
4372                if test "$ac_cv_prog_ps_ef" = yes; then
4373                        ac_cv_prog_ps_syntax=POSIX
4374                else
4375                        { { echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5
4376 echo "$as_me: error: Could not determine ps syntax" >&2;}
4377   { (exit 1); exit 1; }; }
4378                fi
4379        fi
4380
5032   fi
4382 { echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5
4383 echo "${ECHO_T}$ac_cv_prog_ps_syntax" >&6; }
5033  
5034 < cat >>confdefs.h <<_ACEOF
5035 < #define PSCOMMAND $PS
5034 > if test $ac_cv_header_stdc = yes; then
5035 >  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5036 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 > /* end confdefs.h.  */
5038 > #include <stdlib.h>
5039 >
5040   _ACEOF
5041 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5042 +  $EGREP "free" >/dev/null 2>&1; then :
5043  
5044 < if test "$ac_cv_prog_ps_syntax" = BSD; then
5044 > else
5045 >  ac_cv_header_stdc=no
5046 > fi
5047 > rm -f conftest*
5048  
5049 < cat >>confdefs.h <<\_ACEOF
4392 < #define PSTYPE_IS_BSD 1
4393 < _ACEOF
5049 > fi
5050  
5051 + if test $ac_cv_header_stdc = yes; then
5052 +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5053 +  if test "$cross_compiling" = yes; then :
5054 +  :
5055   else
5056 <   if test "$ac_cv_prog_ps_syntax" = POSIX; then
5056 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 > /* end confdefs.h.  */
5058 > #include <ctype.h>
5059 > #include <stdlib.h>
5060 > #if ((' ' & 0x0FF) == 0x020)
5061 > # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5062 > # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5063 > #else
5064 > # define ISLOWER(c) \
5065 >                   (('a' <= (c) && (c) <= 'i') \
5066 >                     || ('j' <= (c) && (c) <= 'r') \
5067 >                     || ('s' <= (c) && (c) <= 'z'))
5068 > # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5069 > #endif
5070  
5071 < cat >>confdefs.h <<\_ACEOF
5072 < #define PSTYPE_IS_POSIX 1
5071 > #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5072 > int
5073 > main ()
5074 > {
5075 >  int i;
5076 >  for (i = 0; i < 256; i++)
5077 >    if (XOR (islower (i), ISLOWER (i))
5078 >        || toupper (i) != TOUPPER (i))
5079 >      return 2;
5080 >  return 0;
5081 > }
5082   _ACEOF
5083 + if ac_fn_c_try_run "$LINENO"; then :
5084  
5085 <   else
5086 <       { { echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5
4404 < echo "$as_me: error: Unknown ps syntax type!" >&2;}
4405 <   { (exit 1); exit 1; }; }
4406 <   fi
5085 > else
5086 >  ac_cv_header_stdc=no
5087   fi
5088 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5089 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
5090 + fi
5091  
5092 < ac_ext=${ac_fc_srcext-f}
5093 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5094 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5095 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5092 > fi
5093 > fi
5094 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5095 > $as_echo "$ac_cv_header_stdc" >&6; }
5096 > if test $ac_cv_header_stdc = yes; then
5097  
5098 + $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5099  
5100 < ac_ext=${ac_fc_srcext-f}
4416 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4417 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4418 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4419 < { echo "$as_me:$LINENO: checking for Fortran flag to compile .F90 files" >&5
4420 < echo $ECHO_N "checking for Fortran flag to compile .F90 files... $ECHO_C" >&6; }
4421 < if test "${ac_cv_fc_srcext_F90+set}" = set; then
4422 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4423 < else
4424 <  ac_ext=F90
4425 < ac_fcflags_srcext_save=$ac_fcflags_srcext
4426 < ac_fcflags_srcext=
4427 < ac_cv_fc_srcext_F90=unknown
4428 < for ac_flag in none -qsuffix=f=F90 -Tf; do
4429 <  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
4430 <  cat >conftest.$ac_ext <<_ACEOF
4431 <      program main
5100 > fi
5101  
5102 <      end
5102 > # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5103 > for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5104 >                  inttypes.h stdint.h unistd.h
5105 > do :
5106 >  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5107 > ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5108 > "
5109 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5110 >  cat >>confdefs.h <<_ACEOF
5111 > #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5112   _ACEOF
4435 rm -rf conftest.$ac_objext
4436 if { (ac_try="$ac_compile"
4437 case "(($ac_try" in
4438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439  *) ac_try_echo=$ac_try;;
4440 esac
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442  (eval "$ac_compile") 2>conftest.er1
4443  ac_status=$?
4444  grep -v '^ *+' conftest.er1 >conftest.err
4445  rm -f conftest.er1
4446  cat conftest.err >&5
4447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448  (exit $ac_status); } && {
4449         test -z "$ac_fc_werror_flag" ||
4450         test ! -s conftest.err
4451       } && test -s conftest.$ac_objext; then
4452  ac_cv_fc_srcext_F90=$ac_flag; break
4453 else
4454  echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
5113  
4457
5114   fi
5115  
4460 rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
5116   done
4462 rm -rf conftest.$ac_objext conftest.F90
4463 ac_fcflags_srcext=$ac_fcflags_srcext_save
5117  
4465 fi
4466 { echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_F90" >&5
4467 echo "${ECHO_T}$ac_cv_fc_srcext_F90" >&6; }
4468 if test "x$ac_cv_fc_srcext_F90" = xunknown; then
4469  { { echo "$as_me:$LINENO: error: Fortran could not compile .F90 files" >&5
4470 echo "$as_me: error: Fortran could not compile .F90 files" >&2;}
4471   { (exit 1); exit 1; }; }
4472 else
4473  ac_fc_srcext=F90
4474  if test "x$ac_cv_fc_srcext_F90" = xnone; then
4475    ac_fcflags_srcext=""
4476    FCFLAGS_F90=""
4477  else
4478    ac_fcflags_srcext=$ac_cv_fc_srcext_F90
4479    FCFLAGS_F90=$ac_cv_fc_srcext_F90
4480  fi
5118  
5119 + #
5120 + # Handle user hints
5121 + #
5122  
5123 + # Check whether --with-zlib was given.
5124 + if test "${with_zlib+set}" = set; then :
5125 +  withval=$with_zlib; zlib_dir="$withval"
5126 + else
5127 +                zlib_dir="not_set"
5128   fi
4484 ac_ext=${ac_fc_srcext-f}
4485 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4486 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5129  
5130 + if test "$zlib_dir" != "no"; then
5131  
5132 + if test "$zlib_dir" != "not_set" ; then
5133 +  if test -d "$zlib_dir"
5134 +  then
5135 +    ZLIB_HOME="$zlib_dir"
5136 +  else
5137 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5
5138 + $as_echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;}
5139 +        ZLIB_HOME=/usr/local
5140 +        if test ! -f "${ZLIB_HOME}/include/zlib.h"
5141 +        then
5142 +                ZLIB_HOME=/usr
5143 +        fi
5144 +  fi
5145 + fi
5146 + #
5147 + # Locate zlib, if wanted
5148 + #
5149 + if test -n "${ZLIB_HOME}"
5150 + then
5151 +        ZLIB_OLD_LDFLAGS=$LDFLAGS
5152 +        ZLIB_OLD_CFLAGS=$CFLAGS
5153 +        LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
5154 +        CFLAGS="$CFLAGS -I${ZLIB_HOME}/include"
5155  
5156 +        ac_ext=c
5157 + ac_cpp='$CPP $CPPFLAGS'
5158 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
5161  
5162 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
5163 + $as_echo_n "checking for inflateEnd in -lz... " >&6; }
5164 + if ${ac_cv_lib_z_inflateEnd+:} false; then :
5165 +  $as_echo_n "(cached) " >&6
5166 + else
5167 +  ac_check_lib_save_LIBS=$LIBS
5168 + LIBS="-lz  $LIBS"
5169 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 + /* end confdefs.h.  */
5171  
5172 < # Try to determine native compiler flags that allow us to use F90 suffix
5173 < # for preprocessed f90 source.
5172 > /* Override any GCC internal prototype to avoid an error.
5173 >   Use char because int might match the return type of a GCC
5174 >   builtin and then its argument prototype would still apply.  */
5175 > #ifdef __cplusplus
5176 > extern "C"
5177 > #endif
5178 > char inflateEnd ();
5179 > int
5180 > main ()
5181 > {
5182 > return inflateEnd ();
5183 >  ;
5184 >  return 0;
5185 > }
5186 > _ACEOF
5187 > if ac_fn_c_try_link "$LINENO"; then :
5188 >  ac_cv_lib_z_inflateEnd=yes
5189 > else
5190 >  ac_cv_lib_z_inflateEnd=no
5191 > fi
5192 > rm -f core conftest.err conftest.$ac_objext \
5193 >    conftest$ac_exeext conftest.$ac_ext
5194 > LIBS=$ac_check_lib_save_LIBS
5195 > fi
5196 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
5197 > $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
5198 > if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
5199 >  zlib_cv_libz=yes
5200 > else
5201 >  zlib_cv_libz=no
5202 > fi
5203  
5204 < if test "$ac_test_PREPFLAG" != "set"; then
5205 <  PREPFLAG=""
5206 <  case "${host_cpu}-${host_os}" in
5204 >        ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5205 > if test "x$ac_cv_header_zlib_h" = xyes; then :
5206 >  zlib_cv_zlib_h=yes
5207 > else
5208 >  zlib_cv_zlib_h=no
5209 > fi
5210  
4500  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
4501                    PREPFLAG="-fpp1 "
4502                fi;;
4503  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
4504                    PREPFLAG="-qsuffix=cpp=F90 "
4505                fi;;
4506  *darwin*)
4507        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
4508                PREPFLAG="-qsuffix=cpp=F90 "
4509        fi;;
4510  esac
5211  
5212 <  if test -z "$PREPFLAG"; then
5213 <        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
5214 < echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
5215 <        PREPFLAG=""
5216 <  fi
5212 >        ac_ext=c
5213 > ac_cpp='$CPP $CPPFLAGS'
5214 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217  
4518  { echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
4519 echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6; }
5218  
5219 <  ac_ext=${ac_fc_srcext-f}
4522 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4523 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4524 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5219 >        if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"; then
5220  
5221 <  ac_save_ext=$ac_ext
4527 <  ac_ext=F90
4528 <  ac_save_FCFLAGS_SRCEXT=$FCFLAGS_SRCEXT
5221 > $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
5222  
4530  if test "$PREPFLAG"; then
4531  FCFLAGS_SRCEXT="${PREPFLAG}"
4532 fi
5223  
5224 <    cat >conftest.$ac_ext <<_ACEOF
5224 > $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5225  
5226 <
5227 < program conftest
5228 <  integer :: i
5229 <  i = 1
5230 < end program conftest
5226 >                ZLIB_INC_DIR="${ZLIB_HOME}/include"
5227 >                ZLIB_LIB_DIR="${ZLIB_HOME}/lib"
5228 >                ZLIB="-lz"
5229 >        else
5230 >                { $as_echo "$as_me:${as_lineno-$LINENO}: checking zlib in ${ZLIB_HOME}" >&5
5231 > $as_echo_n "checking zlib in ${ZLIB_HOME}... " >&6; }
5232 >                ZLIB_INC_DIR=
5233 >                ZLIB_LIB_DIR=
5234 >                ZLIB=
5235 >                LDFLAGS="$ZLIB_OLD_LDFLAGS"
5236 >                CFLAGS="$ZLIB_OLD_CFLAGS"
5237 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5238 > $as_echo "failed" >&6; }
5239 >                echo ""
5240 >                echo "*********************************************************"
5241 >                echo "* WARNING: Could not find a working zlib installation   *"
5242 >                echo "* If you need OpenMD to be able to deal with compressed *"
5243 >                echo "* trajectory dump files be sure to specify a valid zlib *"
5244 >                echo "* installation with --with-zlib=DIR                     *"
5245 >                echo "*                                                       *"
5246 >                echo "* OpenMD will still work without zlib installed.        *"
5247 >                echo "*********************************************************"
5248 >                echo ""
5249 >        fi
5250  
4542 _ACEOF
4543 rm -rf conftest.$ac_objext
4544 if { (ac_try="$ac_compile"
4545 case "(($ac_try" in
4546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547  *) ac_try_echo=$ac_try;;
4548 esac
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550  (eval "$ac_compile") 2>conftest.er1
4551  ac_status=$?
4552  grep -v '^ *+' conftest.er1 >conftest.err
4553  rm -f conftest.er1
4554  cat conftest.err >&5
4555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); } && {
4557         test -z "$ac_fc_werror_flag" ||
4558         test ! -s conftest.err
4559       } && test -s conftest.$ac_objext; then
4560  prepflagworks=1
4561 else
4562  echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
5251  
5252 <        prepflagworks=0
5252 >
5253   fi
5254 + fi
5255  
5256 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
5256 > #
5257 > # Handle user hints
5258 > #
5259  
5260 <  FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT
5261 <  ac_ext=$ac_save_ext
5262 <  ac_ext=${ac_fc_srcext-f}
5263 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5264 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4575 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4576 <
4577 <
4578 <  if test "$prepflagworks" = 1; then
4579 <    { echo "$as_me:$LINENO: result: yes" >&5
4580 < echo "${ECHO_T}yes" >&6; }
4581 <    FCFLAGS_SRCEXT="${PREPFLAG}"
4582 <
4583 <  else
4584 <    { echo "$as_me:$LINENO: result: no" >&5
4585 < echo "${ECHO_T}no" >&6; }
4586 <    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
4587 < echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
4588 <   { (exit 1); exit 1; }; }
4589 <  fi
5260 > # Check whether --with-fftw was given.
5261 > if test "${with_fftw+set}" = set; then :
5262 >  withval=$with_fftw; fftw_dir="$withval"
5263 > else
5264 >             fftw_dir="not_set"
5265   fi
5266  
5267 + if test "$fftw_dir" != "no"; then
5268 +  if test "$fftw_dir" != "not_set" ; then
5269 +    if test -d "$fftw_dir"; then
5270 +      FFTW_HOME="$fftw_dir"
5271 +    else
5272 +      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&5
5273 + $as_echo "$as_me: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&2;}
5274 +      FFTW_HOME=/usr/local
5275 +      if test ! -f "${FFTW_HOME}/include/fftw3.h" -o -f "${FFTW_HOME}/include/fftw.h" -o  -f "${FFTW_HOME}/include/dfftw.h"; then
5276 +        FFTW_HOME=/usr
5277 +      fi
5278 +    fi
5279 +    #
5280 +    # Locate fftw, if wanted
5281 +    #
5282 +    if test -n "${FFTW_HOME}"; then
5283 +      FFTW_OLD_LDFLAGS=$LDFLAGS
5284 +      FFTW_OLD_CFLAGS=$CFLAGS
5285 +      LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib"
5286 +      CFLAGS="$CFLAGS -I${FFTW_HOME}/include"
5287  
5288 +      ac_ext=c
5289 + ac_cpp='$CPP $CPPFLAGS'
5290 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5291 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5292 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
5293  
5294 +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
5295 + $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
5296 + if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
5297 +  $as_echo_n "(cached) " >&6
5298 + else
5299 +  ac_check_lib_save_LIBS=$LIBS
5300 + LIBS="-lfftw3  $LIBS"
5301 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 + /* end confdefs.h.  */
5303  
5304 + /* Override any GCC internal prototype to avoid an error.
5305 +   Use char because int might match the return type of a GCC
5306 +   builtin and then its argument prototype would still apply.  */
5307 + #ifdef __cplusplus
5308 + extern "C"
5309 + #endif
5310 + char fftw_execute ();
5311 + int
5312 + main ()
5313 + {
5314 + return fftw_execute ();
5315 +  ;
5316 +  return 0;
5317 + }
5318 + _ACEOF
5319 + if ac_fn_c_try_link "$LINENO"; then :
5320 +  ac_cv_lib_fftw3_fftw_execute=yes
5321 + else
5322 +  ac_cv_lib_fftw3_fftw_execute=no
5323 + fi
5324 + rm -f core conftest.err conftest.$ac_objext \
5325 +    conftest$ac_exeext conftest.$ac_ext
5326 + LIBS=$ac_check_lib_save_LIBS
5327 + fi
5328 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
5329 + $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
5330 + if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
5331 +  fftw_cv_libfftw3=yes
5332 + else
5333 +  fftw_cv_libfftw3=no
5334 + fi
5335  
5336 < # Try to determine native compiler flags that allow us to use F90 suffix
5337 < # for preprocessed f90 source with -D type defines
5338 <
5339 < if test "$ac_test_PREPDEFFLAG" != "set"; then
5340 <  PREPDEFFLAG=""
4601 <  case "${host_cpu}-${host_os}" in
4602 <
4603 <  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
4604 <                    PREPDEFFLAG=" "
4605 <                fi;;
4606 <  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
4607 <                    PREPDEFFLAG="-WF,"
4608 <                fi;;
4609 <  *darwin*)
4610 <        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
4611 <                PREPDEFFLAG="-WF,"
4612 <        fi;;
4613 <  esac
4614 <
4615 <  if test -z "$PREPDEFFLAG"; then
4616 <        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
4617 < echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
4618 <        PREPDEFFLAG=" "
4619 <  fi
4620 <
4621 <  { echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
4622 < echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6; }
4623 <
4624 <  ac_ext=${ac_fc_srcext-f}
4625 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4626 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4627 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4628 <
4629 <  ac_save_ext=$ac_ext
4630 <  ac_ext=F90
4631 <  ac_save_FCFLAGS=$FCFLAGS
4632 <
4633 <  if test "$PREPDEFFLAG"; then
4634 <  FCFLAGS="${FCFLAGS} ${PREPDEFFLAG}-DTEST"
5336 >      ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
5337 > if test "x$ac_cv_header_fftw3_h" = xyes; then :
5338 >  fftw_cv_fftw3_h=yes
5339 > else
5340 >  fftw_cv_fftw3_h=no
5341   fi
5342  
4637    cat >conftest.$ac_ext <<_ACEOF
5343  
5344 +      if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then
5345 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -lfftw" >&5
5346 + $as_echo_n "checking for fftwnd_one in -lfftw... " >&6; }
5347 + if ${ac_cv_lib_fftw_fftwnd_one+:} false; then :
5348 +  $as_echo_n "(cached) " >&6
5349 + else
5350 +  ac_check_lib_save_LIBS=$LIBS
5351 + LIBS="-lfftw  $LIBS"
5352 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 + /* end confdefs.h.  */
5354  
5355 < program conftest
5356 <  integer :: i
5357 < #ifdef TEST
5358 <  i = 1
5359 < #else
4645 <  choke me
5355 > /* Override any GCC internal prototype to avoid an error.
5356 >   Use char because int might match the return type of a GCC
5357 >   builtin and then its argument prototype would still apply.  */
5358 > #ifdef __cplusplus
5359 > extern "C"
5360   #endif
5361 < end program conftest
5362 <
5361 > char fftwnd_one ();
5362 > int
5363 > main ()
5364 > {
5365 > return fftwnd_one ();
5366 >  ;
5367 >  return 0;
5368 > }
5369   _ACEOF
5370 < rm -rf conftest.$ac_objext
5371 < if { (ac_try="$ac_compile"
4652 < case "(($ac_try" in
4653 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 <  *) ac_try_echo=$ac_try;;
4655 < esac
4656 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4657 <  (eval "$ac_compile") 2>conftest.er1
4658 <  ac_status=$?
4659 <  grep -v '^ *+' conftest.er1 >conftest.err
4660 <  rm -f conftest.er1
4661 <  cat conftest.err >&5
4662 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 <  (exit $ac_status); } && {
4664 <         test -z "$ac_fc_werror_flag" ||
4665 <         test ! -s conftest.err
4666 <       } && test -s conftest.$ac_objext; then
4667 <  prepdefflagworks=1
5370 > if ac_fn_c_try_link "$LINENO"; then :
5371 >  ac_cv_lib_fftw_fftwnd_one=yes
5372   else
5373 <  echo "$as_me: failed program was:" >&5
4670 < sed 's/^/| /' conftest.$ac_ext >&5
4671 <
4672 <        prepdefflagworks=0
5373 >  ac_cv_lib_fftw_fftwnd_one=no
5374   fi
5375 + rm -f core conftest.err conftest.$ac_objext \
5376 +    conftest$ac_exeext conftest.$ac_ext
5377 + LIBS=$ac_check_lib_save_LIBS
5378 + fi
5379 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_fftwnd_one" >&5
5380 + $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
5381 + if test "x$ac_cv_lib_fftw_fftwnd_one" = xyes; then :
5382 +  fftw_cv_libfftw=yes
5383 + else
5384 +  fftw_cv_libfftw=no
5385 + fi
5386  
5387 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
5388 <
5389 <  FCFLAGS=$ac_save_FCFLAGS
5390 <  ac_ext=$ac_save_ext
5391 <  ac_ext=${ac_fc_srcext-f}
4680 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4681 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4682 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4683 <
4684 <
4685 <  if test "$prepdefflagworks" = 1; then
4686 <    { echo "$as_me:$LINENO: result: yes" >&5
4687 < echo "${ECHO_T}yes" >&6; }
4688 <
4689 <  else
4690 <    { echo "$as_me:$LINENO: result: no" >&5
4691 < echo "${ECHO_T}no" >&6; }
4692 <    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
4693 < echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
4694 <   { (exit 1); exit 1; }; }
4695 <  fi
5387 >        ac_fn_c_check_header_mongrel "$LINENO" "fftw.h" "ac_cv_header_fftw_h" "$ac_includes_default"
5388 > if test "x$ac_cv_header_fftw_h" = xyes; then :
5389 >  fftw_cv_fftw_h=yes
5390 > else
5391 >  fftw_cv_fftw_h=no
5392   fi
5393  
5394 < ac_ext=${ac_fc_srcext-f}
5395 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5396 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5397 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5398 < { echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5
5399 < echo $ECHO_N "checking how to get verbose linking output from $FC... $ECHO_C" >&6; }
4704 < if test "${ac_cv_prog_fc_v+set}" = set; then
4705 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5394 >
5395 >        if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
5396 >          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -ldfftw" >&5
5397 > $as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; }
5398 > if ${ac_cv_lib_dfftw_fftwnd_one+:} false; then :
5399 >  $as_echo_n "(cached) " >&6
5400   else
5401 <  cat >conftest.$ac_ext <<_ACEOF
5402 <      program main
5401 >  ac_check_lib_save_LIBS=$LIBS
5402 > LIBS="-ldfftw  $LIBS"
5403 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 > /* end confdefs.h.  */
5405  
5406 <      end
5406 > /* Override any GCC internal prototype to avoid an error.
5407 >   Use char because int might match the return type of a GCC
5408 >   builtin and then its argument prototype would still apply.  */
5409 > #ifdef __cplusplus
5410 > extern "C"
5411 > #endif
5412 > char fftwnd_one ();
5413 > int
5414 > main ()
5415 > {
5416 > return fftwnd_one ();
5417 >  ;
5418 >  return 0;
5419 > }
5420   _ACEOF
5421 < rm -rf conftest.$ac_objext
5422 < if { (ac_try="$ac_compile"
5423 < case "(($ac_try" in
5424 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 <  *) ac_try_echo=$ac_try;;
5426 < esac
5427 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428 <  (eval "$ac_compile") 2>conftest.er1
5429 <  ac_status=$?
5430 <  grep -v '^ *+' conftest.er1 >conftest.err
5431 <  rm -rf conftest.er1
5432 <  cat conftest.err >&5
5433 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 <  (exit $ac_status); } && {
5435 <         test -z "$ac_fc_werror_flag" ||
5436 <         test ! -s conftest.err
4728 <       } && test -s conftest.$ac_objext; then
4729 <  ac_cv_prog_fc_v=
4730 < # Try some options frequently used verbose output
4731 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4732 <  cat >conftest.$ac_ext <<_ACEOF
4733 <      program main
5421 > if ac_fn_c_try_link "$LINENO"; then :
5422 >  ac_cv_lib_dfftw_fftwnd_one=yes
5423 > else
5424 >  ac_cv_lib_dfftw_fftwnd_one=no
5425 > fi
5426 > rm -f core conftest.err conftest.$ac_objext \
5427 >    conftest$ac_exeext conftest.$ac_ext
5428 > LIBS=$ac_check_lib_save_LIBS
5429 > fi
5430 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
5431 > $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
5432 > if test "x$ac_cv_lib_dfftw_fftwnd_one" = xyes; then :
5433 >  fftw_cv_libdfftw=yes
5434 > else
5435 >  fftw_cv_libdfftw=no
5436 > fi
5437  
5438 <      end
5439 < _ACEOF
5438 >          ac_fn_c_check_header_mongrel "$LINENO" "dfftw.h" "ac_cv_header_dfftw_h" "$ac_includes_default"
5439 > if test "x$ac_cv_header_dfftw_h" = xyes; then :
5440 >  fftw_cv_dfftw_h=yes
5441 > else
5442 >  fftw_cv_dfftw_h=no
5443 > fi
5444  
4738 # Compile and link our simple test program by passing a flag (argument
4739 # 1 to this macro) to the Fortran compiler in order to get
4740 # "verbose" output that we can then parse for the Fortran linker
4741 # flags.
4742 ac_save_FFLAGS=$FCFLAGS
4743 FCFLAGS="$FCFLAGS $ac_verb"
4744 eval "set x $ac_link"
4745 shift
4746 echo "$as_me:$LINENO: $*" >&5
4747 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4748 echo "$ac_fc_v_output" >&5
4749 FCFLAGS=$ac_save_FFLAGS
5445  
5446 < rm -rf conftest*
5446 >        fi
5447 >      fi
5448 >      ac_ext=c
5449 > ac_cpp='$CPP $CPPFLAGS'
5450 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5451 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5452 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
5453  
5454 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4754 < # /foo, /bar, and /baz are search directories for the Fortran linker.
4755 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4756 < ac_fc_v_output="`echo $ac_fc_v_output |
4757 <        grep 'LPATH is:' |
4758 <        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
5454 >      if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"; then
5455  
5456 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
4761 < #        that detects unbalanced quotes in FLIBS should be implemented
4762 < #        and (ugh) tested at some point.
4763 < case $ac_fc_v_output in
4764 <  # If we are using xlf then replace all the commas with spaces.
4765 <  *xlfentry*)
4766 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
5456 > $as_echo "#define HAVE_FFTW3_H 1" >>confdefs.h
5457  
5458 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
5459 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
5460 <  *mGLOB_options_string*)
5461 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
5458 >        FFTW_INC_DIR="${FFTW_HOME}/include"
5459 >        FFTW_LIB_DIR="${FFTW_HOME}/lib"
5460 >        FFTW_LIBS="-lfftw3"
5461 >      else
5462 >        if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"; then
5463  
5464 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
4774 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
4775 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
4776 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
4777 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
4778 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
4779 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
4780 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
5464 > $as_echo "#define HAVE_FFTW_H 1" >>confdefs.h
5465  
5466 <  # If we are using Cray Fortran then delete quotes.
5467 <  *cft90*)
5468 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
5469 < esac
5466 >          FFTW_INC_DIR="${FFTW_HOME}/include"
5467 >          FFTW_LIB_DIR="${FFTW_HOME}/lib"
5468 >          FFTW_LIBS="-lfftw"
5469 >        else
5470 >          if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"; then
5471  
5472 + $as_echo "#define HAVE_DFFTW_H 1" >>confdefs.h
5473  
5474 <  # look for -l* and *.a constructs in the output
5475 <  for ac_arg in $ac_fc_v_output; do
5476 <     case $ac_arg in
5477 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
5478 <          ac_cv_prog_fc_v=$ac_verb
5479 <          break 2 ;;
5480 <     esac
5481 <  done
5482 < done
5483 < if test -z "$ac_cv_prog_fc_v"; then
5484 <   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5
5485 < echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
5486 < fi
5487 < else
5488 <  echo "$as_me: failed program was:" >&5
5489 < sed 's/^/| /' conftest.$ac_ext >&5
5474 >            FFTW_INC_DIR="${FFTW_HOME}/include"
5475 >            FFTW_LIB_DIR="${FFTW_HOME}/lib"
5476 >            FFTW_LIBS="-ldfftw"
5477 >          else
5478 >            { $as_echo "$as_me:${as_lineno-$LINENO}: checking fftw in ${FFTW_HOME}" >&5
5479 > $as_echo_n "checking fftw in ${FFTW_HOME}... " >&6; }
5480 >            FFTW_INC_DIR=
5481 >            FFTW_LIB_DIR=
5482 >            FFTW_LIBS=
5483 >            LDFLAGS="$FFTW_OLD_LDFLAGS"
5484 >            CFLAGS="$FFTW_OLD_CFLAGS"
5485 >            { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5486 > $as_echo "failed" >&6; }
5487 >            echo ""
5488 >            echo "*********************************************************"
5489 >            echo "* WARNING: Could not find a working FFTW installation   *"
5490 >            echo "* If you need the staticProps program to be able to     *"
5491 >            echo "* compute undulation spectra, be sure to specify a      *"
5492 >            echo "* valid fftw installation with --with-fftw=DIR          *"
5493 >            echo "*                                                       *"
5494 >            echo "* OpenMD will still work without fftw installed.        *"
5495 >            echo "*********************************************************"
5496 >            echo ""
5497 >          fi
5498 >        fi
5499 >      fi
5500  
4805        { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4806 echo "$as_me: WARNING: compilation failed" >&2;}
4807 fi
5501  
4809 rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
5502  
5503 +    fi
5504 +  fi
5505   fi
4812 { echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5
4813 echo "${ECHO_T}$ac_cv_prog_fc_v" >&6; }
4814 { echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5
4815 echo $ECHO_N "checking for Fortran libraries of $FC... $ECHO_C" >&6; }
4816 if test "${ac_cv_fc_libs+set}" = set; then
4817  echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819  if test "x$FCLIBS" != "x"; then
4820  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
4821 else
5506  
5507 < cat >conftest.$ac_ext <<_ACEOF
5508 <      program main
5507 > #
5508 > # Handle user hints
5509 > #
5510  
5511 <      end
5512 < _ACEOF
5511 > # Check whether --with-qhull was given.
5512 > if test "${with_qhull+set}" = set; then :
5513 >  withval=$with_qhull; qhull_dir="$withval"
5514 > else
5515 >  qhull_dir="not_set"
5516 > fi
5517  
5518 < # Compile and link our simple test program by passing a flag (argument
5519 < # 1 to this macro) to the Fortran compiler in order to get
5520 < # "verbose" output that we can then parse for the Fortran linker
5521 < # flags.
5522 < ac_save_FFLAGS=$FCFLAGS
5523 < FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
5524 < eval "set x $ac_link"
5525 < shift
5526 < echo "$as_me:$LINENO: $*" >&5
5527 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
5528 < echo "$ac_fc_v_output" >&5
5529 < FCFLAGS=$ac_save_FFLAGS
5530 <
5531 < rm -rf conftest*
5532 <
5533 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5534 < # /foo, /bar, and /baz are search directories for the Fortran linker.
5535 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
5536 < ac_fc_v_output="`echo $ac_fc_v_output |
5537 <        grep 'LPATH is:' |
5538 <        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
5539 <
5540 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
5541 < #        that detects unbalanced quotes in FLIBS should be implemented
5542 < #        and (ugh) tested at some point.
5543 < case $ac_fc_v_output in
5544 <  # If we are using xlf then replace all the commas with spaces.
5545 <  *xlfentry*)
5546 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
5547 <
5548 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
5549 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
5550 <  *mGLOB_options_string*)
5551 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
5552 <
5553 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
5554 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
5555 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
5556 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
5557 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
5558 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
5559 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
5560 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
5561 <
5562 <  # If we are using Cray Fortran then delete quotes.
5563 <  *cft90*)
5564 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
5565 < esac
5566 <
5567 <
5568 <
5569 < ac_cv_fc_libs=
5570 <
5571 < # Save positional arguments (if any)
5572 < ac_save_positional="$@"
5573 <
5574 < set X $ac_fc_v_output
5575 < while test $# != 1; do
5576 <  shift
5577 <  ac_arg=$1
5578 <  case $ac_arg in
5579 <        [\\/]*.a | ?:[\\/]*.a)
5580 <            ac_exists=false
5581 <  for ac_i in $ac_cv_fc_libs; do
5582 <    if test x"$ac_arg" = x"$ac_i"; then
5583 <      ac_exists=true
5584 <      break
5585 <    fi
5586 <  done
5587 <
5588 <  if test x"$ac_exists" = xtrue; then
5589 <  :
5590 < else
5591 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5592 < fi
5593 <
5594 <          ;;
5595 <        -bI:*)
5596 <            ac_exists=false
5597 <  for ac_i in $ac_cv_fc_libs; do
5598 <    if test x"$ac_arg" = x"$ac_i"; then
5599 <      ac_exists=true
5600 <      break
5601 <    fi
5602 <  done
5603 <
5604 <  if test x"$ac_exists" = xtrue; then
5605 <  :
5606 < else
5607 <  if test "$ac_compiler_gnu" = yes; then
5608 <  for ac_link_opt in $ac_arg; do
5609 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
5610 <  done
5611 < else
5612 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5613 < fi
5614 < fi
5615 <
5616 <          ;;
5617 <          # Ignore these flags.
5618 <        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*)
5619 <          ;;
5620 <        -lkernel32)
5621 <          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5622 <          ;;
5623 <        -[LRuYz])
5624 <          # These flags, when seen by themselves, take an argument.
5625 <          # We remove the space between option and argument and re-iterate
5626 <          # unless we find an empty arg or a new option (starting with -)
5627 <          case $2 in
5628 <             "" | -*);;
5629 <             *)
5630 <                ac_arg="$ac_arg$2"
5631 <                shift; shift
5632 <                set X $ac_arg "$@"
5633 <                ;;
5634 <          esac
5635 <          ;;
5636 <        -YP,*)
5637 <          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
5638 <              ac_exists=false
5639 <  for ac_i in $ac_cv_fc_libs; do
5640 <    if test x"$ac_j" = x"$ac_i"; then
5641 <      ac_exists=true
5642 <      break
5643 <    fi
5644 <  done
5645 <
5646 <  if test x"$ac_exists" = xtrue; then
5647 <  :
5648 < else
5649 <  ac_arg="$ac_arg $ac_j"
5650 <                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
5651 < fi
5652 <
5653 <          done
5654 <          ;;
5655 <        -[lLR]*)
5656 <            ac_exists=false
5657 <  for ac_i in $ac_cv_fc_libs; do
5658 <    if test x"$ac_arg" = x"$ac_i"; then
5659 <      ac_exists=true
5660 <      break
5661 <    fi
5662 <  done
5663 <
5664 <  if test x"$ac_exists" = xtrue; then
5665 <  :
5666 < else
5667 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5668 < fi
5669 <
5670 <          ;;
5671 <        -zallextract*| -zdefaultextract)
5672 <          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5673 <          ;;
5674 <          # Ignore everything else.
5675 <  esac
5676 < done
5677 < # restore positional arguments
5678 < set X $ac_save_positional; shift
5679 <
5680 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
5681 < # then we insist that the "run path" must be an absolute path (i.e. it
5682 < # must begin with a "/").
5683 < case `(uname -sr) 2>/dev/null` in
5684 <   "SunOS 5"*)
5685 <      ac_ld_run_path=`echo $ac_fc_v_output |
5686 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
5687 <      test "x$ac_ld_run_path" != x &&
5688 <        if test "$ac_compiler_gnu" = yes; then
5689 <  for ac_link_opt in $ac_ld_run_path; do
5690 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
5691 <  done
5692 < else
5693 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
5694 < fi
5695 <      ;;
5696 < esac
5697 < fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
5698 <
5699 < fi
5700 < { echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5
5701 < echo "${ECHO_T}$ac_cv_fc_libs" >&6; }
5702 < FCLIBS="$ac_cv_fc_libs"
5703 <
5704 <
5705 < ac_ext=${ac_fc_srcext-f}
5706 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5707 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5708 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5709 <
5710 <
5711 < ac_ext=${ac_fc_srcext-f}
5712 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5713 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5714 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5715 <
5716 < { echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
5717 < echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6; }
5718 < if test "${ac_cv_fc_dummy_main+set}" = set; then
5719 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5720 < else
5721 <  ac_fc_dm_save_LIBS=$LIBS
5722 < LIBS="$LIBS $FCLIBS"
5723 < ac_fortran_dm_var=FC_DUMMY_MAIN
5724 < ac_ext=c
5725 < ac_cpp='$CPP $CPPFLAGS'
5726 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5727 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5728 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
5729 <
5730 < # First, try linking without a dummy main:
5731 < cat >conftest.$ac_ext <<_ACEOF
5732 < /* confdefs.h.  */
5733 < _ACEOF
5734 < cat confdefs.h >>conftest.$ac_ext
5735 < cat >>conftest.$ac_ext <<_ACEOF
5736 < /* end confdefs.h.  */
5737 <
5738 < #ifdef FC_DUMMY_MAIN
5739 < #ifndef FC_DUMMY_MAIN_EQ_F77
5740 < #  ifdef __cplusplus
5741 <     extern "C"
5742 < #  endif
5743 <   int FC_DUMMY_MAIN() { return 1; }
5744 < #endif
5745 < #endif
5746 < int
5747 < main ()
5748 < {
5749 <
5750 <  ;
5751 <  return 0;
5752 < }
5753 < _ACEOF
5754 < rm -rf conftest.$ac_objext conftest$ac_exeext
5755 < if { (ac_try="$ac_link"
5756 < case "(($ac_try" in
5757 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 <  *) ac_try_echo=$ac_try;;
5759 < esac
5760 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 <  (eval "$ac_link") 2>conftest.er1
5762 <  ac_status=$?
5763 <  grep -v '^ *+' conftest.er1 >conftest.err
5764 <  rm -f conftest.er1
5765 <  cat conftest.err >&5
5766 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 <  (exit $ac_status); } && {
5768 <         test -z "$ac_c_werror_flag" ||
5769 <         test ! -s conftest.err
5770 <       } && test -s conftest$ac_exeext &&
5771 <       $as_test_x conftest$ac_exeext; then
5772 <  ac_cv_fortran_dummy_main=none
5773 < else
5774 <  echo "$as_me: failed program was:" >&5
5775 < sed 's/^/| /' conftest.$ac_ext >&5
5776 <
5777 <        ac_cv_fortran_dummy_main=unknown
5778 < fi
5779 <
5780 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5781 <      conftest$ac_exeext conftest.$ac_ext
5782 <
5783 < if test $ac_cv_fortran_dummy_main = unknown; then
5784 <   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
5785 <     cat >conftest.$ac_ext <<_ACEOF
5786 < /* confdefs.h.  */
5787 < _ACEOF
5788 < cat confdefs.h >>conftest.$ac_ext
5789 < cat >>conftest.$ac_ext <<_ACEOF
5790 < /* end confdefs.h.  */
5791 < #define $ac_fortran_dm_var $ac_func
5792 < #ifdef FC_DUMMY_MAIN
5793 < #ifndef FC_DUMMY_MAIN_EQ_F77
5794 < #  ifdef __cplusplus
5795 <     extern "C"
5796 < #  endif
5797 <   int FC_DUMMY_MAIN() { return 1; }
5798 < #endif
5799 < #endif
5800 < int
5801 < main ()
5802 < {
5803 <
5804 <  ;
5805 <  return 0;
5806 < }
5807 < _ACEOF
5808 < rm -rf conftest.$ac_objext conftest$ac_exeext
5809 < if { (ac_try="$ac_link"
5810 < case "(($ac_try" in
5811 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812 <  *) ac_try_echo=$ac_try;;
5813 < esac
5814 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815 <  (eval "$ac_link") 2>conftest.er1
5816 <  ac_status=$?
5817 <  grep -v '^ *+' conftest.er1 >conftest.err
5818 <  rm -f conftest.er1
5819 <  cat conftest.err >&5
5820 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 <  (exit $ac_status); } && {
5822 <         test -z "$ac_c_werror_flag" ||
5823 <         test ! -s conftest.err
5824 <       } && test -s conftest$ac_exeext &&
5825 <       $as_test_x conftest$ac_exeext; then
5826 <  ac_cv_fortran_dummy_main=$ac_func; break
5827 < else
5828 <  echo "$as_me: failed program was:" >&5
5829 < sed 's/^/| /' conftest.$ac_ext >&5
5830 <
5831 <
5832 < fi
5833 <
5834 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5835 <      conftest$ac_exeext conftest.$ac_ext
5836 <   done
5837 < fi
5838 < ac_ext=${ac_fc_srcext-f}
5839 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5840 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5841 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5842 < ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
5843 < rm -rf conftest*
5844 < LIBS=$ac_fc_dm_save_LIBS
5845 <
5846 < fi
5847 < { echo "$as_me:$LINENO: result: $ac_cv_fc_dummy_main" >&5
5848 < echo "${ECHO_T}$ac_cv_fc_dummy_main" >&6; }
5849 < FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
5850 < if test "$FC_DUMMY_MAIN" != unknown; then
5851 <  if test $FC_DUMMY_MAIN != none; then
5852 <
5853 < cat >>confdefs.h <<_ACEOF
5854 < #define FC_DUMMY_MAIN $FC_DUMMY_MAIN
5855 < _ACEOF
5856 <
5857 <  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
5858 <
5859 < cat >>confdefs.h <<\_ACEOF
5860 < #define FC_DUMMY_MAIN_EQ_F77 1
5861 < _ACEOF
5862 <
5863 <  fi
5864 < fi
5865 < else
5866 <  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
5867 < See \`config.log' for more details." >&5
5868 < echo "$as_me: error: linking to Fortran libraries from C fails
5869 < See \`config.log' for more details." >&2;}
5870 <   { (exit 1); exit 1; }; }
5871 < fi
5872 <
5873 <
5874 < ac_ext=${ac_fc_srcext-f}
5875 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5876 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5877 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5878 <
5879 < ac_ext=${ac_fc_srcext-f}
5880 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5881 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5882 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5883 < { echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
5884 < echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6; }
5885 < if test "${ac_cv_fc_mangling+set}" = set; then
5886 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5887 < else
5888 <  cat >conftest.$ac_ext <<_ACEOF
5889 <      subroutine foobar()
5890 <      return
5891 <      end
5892 <      subroutine foo_bar()
5893 <      return
5894 <      end
5895 < _ACEOF
5896 < rm -rf conftest.$ac_objext
5897 < if { (ac_try="$ac_compile"
5898 < case "(($ac_try" in
5899 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5900 <  *) ac_try_echo=$ac_try;;
5901 < esac
5902 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5903 <  (eval "$ac_compile") 2>conftest.er1
5904 <  ac_status=$?
5905 <  grep -v '^ *+' conftest.er1 >conftest.err
5906 <  rm -f conftest.er1
5907 <  cat conftest.err >&5
5908 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 <  (exit $ac_status); } && {
5910 <         test -z "$ac_fc_werror_flag" ||
5911 <         test ! -s conftest.err
5912 <       } && test -s conftest.$ac_objext; then
5913 <  mv conftest.$ac_objext cfortran_test.$ac_objext
5914 <
5915 <  ac_save_LIBS=$LIBS
5916 <  LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"
5917 <
5918 <  ac_ext=c
5919 < ac_cpp='$CPP $CPPFLAGS'
5920 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
5923 <  ac_success=no
5924 <  for ac_foobar in foobar FOOBAR; do
5925 <    for ac_underscore in "" "_"; do
5926 <      ac_func="$ac_foobar$ac_underscore"
5927 <      cat >conftest.$ac_ext <<_ACEOF
5928 < /* confdefs.h.  */
5929 < _ACEOF
5930 < cat confdefs.h >>conftest.$ac_ext
5931 < cat >>conftest.$ac_ext <<_ACEOF
5932 < /* end confdefs.h.  */
5933 <
5934 < /* Override any GCC internal prototype to avoid an error.
5935 <   Use char because int might match the return type of a GCC
5936 <   builtin and then its argument prototype would still apply.  */
5937 < #ifdef __cplusplus
5938 < extern "C"
5939 < #endif
5940 < char $ac_func ();
5941 < #ifdef FC_DUMMY_MAIN
5942 < #ifndef FC_DUMMY_MAIN_EQ_F77
5943 < #  ifdef __cplusplus
5944 <     extern "C"
5945 < #  endif
5946 <   int FC_DUMMY_MAIN() { return 1; }
5947 < #endif
5948 < #endif
5949 < int
5950 < main ()
5951 < {
5952 < return $ac_func ();
5953 <  ;
5954 <  return 0;
5955 < }
5956 < _ACEOF
5957 < rm -rf conftest.$ac_objext conftest$ac_exeext
5958 < if { (ac_try="$ac_link"
5959 < case "(($ac_try" in
5960 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 <  *) ac_try_echo=$ac_try;;
5962 < esac
5963 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 <  (eval "$ac_link") 2>conftest.er1
5965 <  ac_status=$?
5966 <  grep -v '^ *+' conftest.er1 >conftest.err
5967 <  rm -f conftest.er1
5968 <  cat conftest.err >&5
5969 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 <  (exit $ac_status); } && {
5971 <         test -z "$ac_c_werror_flag" ||
5972 <         test ! -s conftest.err
5973 <       } && test -s conftest$ac_exeext &&
5974 <       $as_test_x conftest$ac_exeext; then
5975 <  ac_success=yes; break 2
5976 < else
5977 <  echo "$as_me: failed program was:" >&5
5978 < sed 's/^/| /' conftest.$ac_ext >&5
5979 <
5980 <
5981 < fi
5982 <
5983 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5984 <      conftest$ac_exeext conftest.$ac_ext
5985 <    done
5986 <  done
5987 <  ac_ext=${ac_fc_srcext-f}
5988 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5989 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5990 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5991 <
5992 <  if test "$ac_success" = "yes"; then
5993 <     case $ac_foobar in
5994 <        foobar)
5995 <           ac_case=lower
5996 <           ac_foo_bar=foo_bar
5997 <           ;;
5998 <        FOOBAR)
5999 <           ac_case=upper
6000 <           ac_foo_bar=FOO_BAR
6001 <           ;;
6002 <     esac
6003 <
6004 <     ac_ext=c
6005 < ac_cpp='$CPP $CPPFLAGS'
6006 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
6009 <     ac_success_extra=no
6010 <     for ac_extra in "" "_"; do
6011 <        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
6012 <        cat >conftest.$ac_ext <<_ACEOF
6013 < /* confdefs.h.  */
6014 < _ACEOF
6015 < cat confdefs.h >>conftest.$ac_ext
6016 < cat >>conftest.$ac_ext <<_ACEOF
6017 < /* end confdefs.h.  */
6018 <
6019 < /* Override any GCC internal prototype to avoid an error.
6020 <   Use char because int might match the return type of a GCC
6021 <   builtin and then its argument prototype would still apply.  */
6022 < #ifdef __cplusplus
6023 < extern "C"
6024 < #endif
6025 < char $ac_func ();
6026 < #ifdef FC_DUMMY_MAIN
6027 < #ifndef FC_DUMMY_MAIN_EQ_F77
6028 < #  ifdef __cplusplus
6029 <     extern "C"
6030 < #  endif
6031 <   int FC_DUMMY_MAIN() { return 1; }
6032 < #endif
6033 < #endif
6034 < int
6035 < main ()
6036 < {
6037 < return $ac_func ();
6038 <  ;
6039 <  return 0;
6040 < }
6041 < _ACEOF
6042 < rm -rf conftest.$ac_objext conftest$ac_exeext
6043 < if { (ac_try="$ac_link"
6044 < case "(($ac_try" in
6045 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 <  *) ac_try_echo=$ac_try;;
6047 < esac
6048 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 <  (eval "$ac_link") 2>conftest.er1
6050 <  ac_status=$?
6051 <  grep -v '^ *+' conftest.er1 >conftest.err
6052 <  rm -f conftest.er1
6053 <  cat conftest.err >&5
6054 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 <  (exit $ac_status); } && {
6056 <         test -z "$ac_c_werror_flag" ||
6057 <         test ! -s conftest.err
6058 <       } && test -s conftest$ac_exeext &&
6059 <       $as_test_x conftest$ac_exeext; then
6060 <  ac_success_extra=yes; break
6061 < else
6062 <  echo "$as_me: failed program was:" >&5
6063 < sed 's/^/| /' conftest.$ac_ext >&5
6064 <
6065 <
6066 < fi
6067 <
6068 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6069 <      conftest$ac_exeext conftest.$ac_ext
6070 <     done
6071 <     ac_ext=${ac_fc_srcext-f}
6072 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6073 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6074 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6075 <
6076 <     if test "$ac_success_extra" = "yes"; then
6077 <        ac_cv_fc_mangling="$ac_case case"
6078 <        if test -z "$ac_underscore"; then
6079 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
6080 <        else
6081 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
6082 <        fi
6083 <        if test -z "$ac_extra"; then
6084 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
6085 <        else
6086 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
6087 <        fi
6088 <      else
6089 <        ac_cv_fc_mangling="unknown"
6090 <      fi
6091 <  else
6092 <     ac_cv_fc_mangling="unknown"
6093 <  fi
6094 <
6095 <  LIBS=$ac_save_LIBS
6096 <  rm -rf cfortran_test* conftest*
6097 < else
6098 <  echo "$as_me: failed program was:" >&5
6099 < sed 's/^/| /' conftest.$ac_ext >&5
6100 <
6101 <        { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
6102 < See \`config.log' for more details." >&5
6103 < echo "$as_me: error: cannot compile a simple Fortran program
6104 < See \`config.log' for more details." >&2;}
6105 <   { (exit 1); exit 1; }; }
6106 < fi
6107 <
6108 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 <
6110 < fi
6111 < { echo "$as_me:$LINENO: result: $ac_cv_fc_mangling" >&5
6112 < echo "${ECHO_T}$ac_cv_fc_mangling" >&6; }
6113 <
6114 < ac_ext=${ac_fc_srcext-f}
6115 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6116 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6117 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6118 <
6119 < ac_ext=${ac_fc_srcext-f}
6120 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6121 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6122 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6123 <
6124 <
6125 < case $ac_cv_fc_mangling in
6126 <  "lower case, no underscore, no extra underscore")
6127 <          cat >>confdefs.h <<\_ACEOF
6128 < #define FC_FUNC(name,NAME) name
6129 < _ACEOF
6130 <
6131 <          cat >>confdefs.h <<\_ACEOF
6132 < #define FC_FUNC_(name,NAME) name
6133 < _ACEOF
6134 < ;;
6135 <  "lower case, no underscore, extra underscore")
6136 <          cat >>confdefs.h <<\_ACEOF
6137 < #define FC_FUNC(name,NAME) name
6138 < _ACEOF
6139 <
6140 <          cat >>confdefs.h <<\_ACEOF
6141 < #define FC_FUNC_(name,NAME) name ## _
6142 < _ACEOF
6143 < ;;
6144 <  "lower case, underscore, no extra underscore")
6145 <          cat >>confdefs.h <<\_ACEOF
6146 < #define FC_FUNC(name,NAME) name ## _
6147 < _ACEOF
6148 <
6149 <          cat >>confdefs.h <<\_ACEOF
6150 < #define FC_FUNC_(name,NAME) name ## _
6151 < _ACEOF
6152 < ;;
6153 <  "lower case, underscore, extra underscore")
6154 <          cat >>confdefs.h <<\_ACEOF
6155 < #define FC_FUNC(name,NAME) name ## _
6156 < _ACEOF
6157 <
6158 <          cat >>confdefs.h <<\_ACEOF
6159 < #define FC_FUNC_(name,NAME) name ## __
6160 < _ACEOF
6161 < ;;
6162 <  "upper case, no underscore, no extra underscore")
6163 <          cat >>confdefs.h <<\_ACEOF
6164 < #define FC_FUNC(name,NAME) NAME
6165 < _ACEOF
6166 <
6167 <          cat >>confdefs.h <<\_ACEOF
6168 < #define FC_FUNC_(name,NAME) NAME
6169 < _ACEOF
6170 < ;;
6171 <  "upper case, no underscore, extra underscore")
6172 <          cat >>confdefs.h <<\_ACEOF
6173 < #define FC_FUNC(name,NAME) NAME
6174 < _ACEOF
6175 <
6176 <          cat >>confdefs.h <<\_ACEOF
6177 < #define FC_FUNC_(name,NAME) NAME ## _
6178 < _ACEOF
6179 < ;;
6180 <  "upper case, underscore, no extra underscore")
6181 <          cat >>confdefs.h <<\_ACEOF
6182 < #define FC_FUNC(name,NAME) NAME ## _
6183 < _ACEOF
6184 <
6185 <          cat >>confdefs.h <<\_ACEOF
6186 < #define FC_FUNC_(name,NAME) NAME ## _
6187 < _ACEOF
6188 < ;;
6189 <  "upper case, underscore, extra underscore")
6190 <          cat >>confdefs.h <<\_ACEOF
6191 < #define FC_FUNC(name,NAME) NAME ## _
6192 < _ACEOF
6193 <
6194 <          cat >>confdefs.h <<\_ACEOF
6195 < #define FC_FUNC_(name,NAME) NAME ## __
6196 < _ACEOF
6197 < ;;
6198 <  *)
6199 <          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
6200 < echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
6201 <          ;;
6202 < esac
6203 <
6204 < ac_ext=${ac_fc_srcext-f}
6205 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6206 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6207 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6208 <
6209 <
6210 <
6211 < ac_ext=${ac_fc_srcext-f}
6212 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6213 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6214 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6215 < { echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5
6216 < echo $ECHO_N "checking how to get verbose linking output from $FC... $ECHO_C" >&6; }
6217 < if test "${ac_cv_prog_fc_v+set}" = set; then
6218 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6219 < else
5531 <  cat >conftest.$ac_ext <<_ACEOF
5532 <      program main
5533 <
5534 <      end
5535 < _ACEOF
5536 < rm -rf conftest.$ac_objext
5537 < if { (ac_try="$ac_compile"
5538 < case "(($ac_try" in
5539 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540 <  *) ac_try_echo=$ac_try;;
5541 < esac
5542 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543 <  (eval "$ac_compile") 2>conftest.er1
5544 <  ac_status=$?
5545 <  grep -v '^ *+' conftest.er1 >conftest.err
5546 <  rm -f conftest.er1
5547 <  cat conftest.err >&5
5548 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 <  (exit $ac_status); } && {
5550 <         test -z "$ac_fc_werror_flag" ||
5551 <         test ! -s conftest.err
5552 <       } && test -s conftest.$ac_objext; then
5553 <  ac_cv_prog_fc_v=
5554 < # Try some options frequently used verbose output
5555 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
5556 <  cat >conftest.$ac_ext <<_ACEOF
5557 <      program main
5558 <
5559 <      end
5560 < _ACEOF
5561 <
5562 < # Compile and link our simple test program by passing a flag (argument
5563 < # 1 to this macro) to the Fortran compiler in order to get
5564 < # "verbose" output that we can then parse for the Fortran linker
5565 < # flags.
5566 < ac_save_FFLAGS=$FCFLAGS
5567 < FCFLAGS="$FCFLAGS $ac_verb"
5568 < eval "set x $ac_link"
5569 < shift
5570 < echo "$as_me:$LINENO: $*" >&5
5571 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
5572 < echo "$ac_fc_v_output" >&5
5573 < FCFLAGS=$ac_save_FFLAGS
5574 <
5575 < rm -rf conftest*
5576 <
5577 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5578 < # /foo, /bar, and /baz are search directories for the Fortran linker.
5579 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
5580 < ac_fc_v_output="`echo $ac_fc_v_output |
5581 <        grep 'LPATH is:' |
5582 <        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
5583 <
5584 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
5585 < #        that detects unbalanced quotes in FLIBS should be implemented
5586 < #        and (ugh) tested at some point.
5587 < case $ac_fc_v_output in
5588 <  # If we are using xlf then replace all the commas with spaces.
5589 <  *xlfentry*)
5590 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
5591 <
5592 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
5593 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
5594 <  *mGLOB_options_string*)
5595 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
5596 <
5597 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
5598 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
5599 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
5600 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
5601 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
5602 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
5603 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
5604 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
5605 <
5606 <  # If we are using Cray Fortran then delete quotes.
5607 <  *cft90*)
5608 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
5609 < esac
5610 <
5611 <
5612 <  # look for -l* and *.a constructs in the output
5613 <  for ac_arg in $ac_fc_v_output; do
5614 <     case $ac_arg in
5615 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
5616 <          ac_cv_prog_fc_v=$ac_verb
5617 <          break 2 ;;
5618 <     esac
5619 <  done
5620 < done
5621 < if test -z "$ac_cv_prog_fc_v"; then
5622 <   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5
5623 < echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
5624 < fi
5625 < else
5626 <  echo "$as_me: failed program was:" >&5
5627 < sed 's/^/| /' conftest.$ac_ext >&5
5628 <
5629 <        { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
5630 < echo "$as_me: WARNING: compilation failed" >&2;}
5631 < fi
5632 <
5633 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634 <
5635 < fi
5636 < { echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5
5637 < echo "${ECHO_T}$ac_cv_prog_fc_v" >&6; }
5638 < { echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5
5639 < echo $ECHO_N "checking for Fortran libraries of $FC... $ECHO_C" >&6; }
5640 < if test "${ac_cv_fc_libs+set}" = set; then
5641 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5642 < else
5643 <  if test "x$FCLIBS" != "x"; then
5644 <  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
5645 < else
5646 <
5647 < cat >conftest.$ac_ext <<_ACEOF
5648 <      program main
5649 <
5650 <      end
5651 < _ACEOF
5652 <
5653 < # Compile and link our simple test program by passing a flag (argument
5654 < # 1 to this macro) to the Fortran compiler in order to get
5655 < # "verbose" output that we can then parse for the Fortran linker
5656 < # flags.
5657 < ac_save_FFLAGS=$FCFLAGS
5658 < FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
5659 < eval "set x $ac_link"
5660 < shift
5661 < echo "$as_me:$LINENO: $*" >&5
5662 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
5663 < echo "$ac_fc_v_output" >&5
5664 < FCFLAGS=$ac_save_FFLAGS
5665 <
5666 < rm -rf conftest*
5667 <
5668 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5669 < # /foo, /bar, and /baz are search directories for the Fortran linker.
5670 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
5671 < ac_fc_v_output="`echo $ac_fc_v_output |
5672 <        grep 'LPATH is:' |
5673 <        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
5674 <
5675 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
5676 < #        that detects unbalanced quotes in FLIBS should be implemented
5677 < #        and (ugh) tested at some point.
5678 < case $ac_fc_v_output in
5679 <  # If we are using xlf then replace all the commas with spaces.
5680 <  *xlfentry*)
5681 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
5682 <
5683 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
5684 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
5685 <  *mGLOB_options_string*)
5686 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
5687 <
5688 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
5689 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
5690 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
5691 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
5692 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
5693 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
5694 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
5695 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
5696 <
5697 <  # If we are using Cray Fortran then delete quotes.
5698 <  *cft90*)
5699 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
5700 < esac
5701 <
5702 <
5703 <
5704 < ac_cv_fc_libs=
5705 <
5706 < # Save positional arguments (if any)
5707 < ac_save_positional="$@"
5708 <
5709 < set X $ac_fc_v_output
5710 < while test $# != 1; do
5711 <  shift
5712 <  ac_arg=$1
5713 <  case $ac_arg in
5714 <        [\\/]*.a | ?:[\\/]*.a)
5715 <            ac_exists=false
5716 <  for ac_i in $ac_cv_fc_libs; do
5717 <    if test x"$ac_arg" = x"$ac_i"; then
5718 <      ac_exists=true
5719 <      break
5720 <    fi
5721 <  done
5722 <
5723 <  if test x"$ac_exists" = xtrue; then
5724 <  :
5725 < else
5726 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5727 < fi
5728 <
5729 <          ;;
5730 <        -bI:*)
5731 <            ac_exists=false
5732 <  for ac_i in $ac_cv_fc_libs; do
5733 <    if test x"$ac_arg" = x"$ac_i"; then
5734 <      ac_exists=true
5735 <      break
5736 <    fi
5737 <  done
5738 <
5739 <  if test x"$ac_exists" = xtrue; then
5740 <  :
5741 < else
5742 <  if test "$ac_compiler_gnu" = yes; then
5743 <  for ac_link_opt in $ac_arg; do
5744 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
5745 <  done
5746 < else
5747 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5748 < fi
5749 < fi
5750 <
5751 <          ;;
5752 <          # Ignore these flags.
5753 <        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*)
5754 <          ;;
5755 <        -lkernel32)
5756 <          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5757 <          ;;
5758 <        -[LRuYz])
5759 <          # These flags, when seen by themselves, take an argument.
5760 <          # We remove the space between option and argument and re-iterate
5761 <          # unless we find an empty arg or a new option (starting with -)
5762 <          case $2 in
5763 <             "" | -*);;
5764 <             *)
5765 <                ac_arg="$ac_arg$2"
5766 <                shift; shift
5767 <                set X $ac_arg "$@"
5768 <                ;;
5769 <          esac
5770 <          ;;
5771 <        -YP,*)
5772 <          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
5773 <              ac_exists=false
5774 <  for ac_i in $ac_cv_fc_libs; do
5775 <    if test x"$ac_j" = x"$ac_i"; then
5776 <      ac_exists=true
5777 <      break
5778 <    fi
5779 <  done
5780 <
5781 <  if test x"$ac_exists" = xtrue; then
5782 <  :
5783 < else
5784 <  ac_arg="$ac_arg $ac_j"
5785 <                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
5786 < fi
5787 <
5788 <          done
5789 <          ;;
5790 <        -[lLR]*)
5791 <            ac_exists=false
5792 <  for ac_i in $ac_cv_fc_libs; do
5793 <    if test x"$ac_arg" = x"$ac_i"; then
5794 <      ac_exists=true
5795 <      break
5796 <    fi
5797 <  done
5798 <
5799 <  if test x"$ac_exists" = xtrue; then
5800 <  :
5801 < else
5802 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5803 < fi
5804 <
5805 <          ;;
5806 <        -zallextract*| -zdefaultextract)
5807 <          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5808 <          ;;
5809 <          # Ignore everything else.
5810 <  esac
5811 < done
5812 < # restore positional arguments
5813 < set X $ac_save_positional; shift
5814 <
5815 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
5816 < # then we insist that the "run path" must be an absolute path (i.e. it
5817 < # must begin with a "/").
5818 < case `(uname -sr) 2>/dev/null` in
5819 <   "SunOS 5"*)
5820 <      ac_ld_run_path=`echo $ac_fc_v_output |
5821 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
5822 <      test "x$ac_ld_run_path" != x &&
5823 <        if test "$ac_compiler_gnu" = yes; then
5824 <  for ac_link_opt in $ac_ld_run_path; do
5825 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
5826 <  done
5827 < else
5828 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
5829 < fi
5830 <      ;;
5831 < esac
5832 < fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
5833 <
5834 < fi
5835 < { echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5
5836 < echo "${ECHO_T}$ac_cv_fc_libs" >&6; }
5837 < FCLIBS="$ac_cv_fc_libs"
5838 <
5839 <
5840 < ac_ext=${ac_fc_srcext-f}
5841 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5842 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5843 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5844 <
5845 <
5846 <
5847 < { echo "$as_me:$LINENO: checking for module suffix" >&5
5848 < echo $ECHO_N "checking for module suffix... $ECHO_C" >&6; }
5849 < rm -rf conftest*
5850 < # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
5851 < rm -f work*
5852 < cat >conftest.$ac_ext <<EOF
5853 <        module conftest
5854 <        integer n
5855 <        parameter (n=1)
5856 <        end module conftest
5857 < EOF
5858 < # SGI and absoft compilers generates module name in upper case!
5859 < testname="conftest"
5860 < modcase="lower"
5861 < if (eval $ac_compile) 2>/dev/null ; then
5862 <    MOD=`ls conftest* | grep -v conftest.$ac_ext | grep -v conftest.o`
5863 <    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
5864 <    if test -z "$MOD" ; then
5865 <        MOD=`ls CONFTEST* 2>/dev/null \
5866 <                | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
5867 <        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
5868 <        if test -n "$MOD" ; then
5869 <            testname="CONFTEST"
5870 <            modcase="upper"
5871 <        fi
5872 <    fi
5873 <    if test -z "$MOD" ; then
5874 <        { echo "$as_me:$LINENO: result: unknown" >&5
5875 < echo "${ECHO_T}unknown" >&6; }
5876 <        # Use mod if we can't figure it out
5877 <        MOD="mod"
5878 <    else
5879 <        { echo "$as_me:$LINENO: result: $MOD" >&5
5880 < echo "${ECHO_T}$MOD" >&6; }
5881 <    fi
5882 <    if test -s work.pcl ; then
5883 <        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
5884 < echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
5885 <    fi
5886 < else
5887 <    { echo "$as_me:$LINENO: result: unknown" >&5
5888 < echo "${ECHO_T}unknown" >&6; }
5889 < fi
5890 <
5891 <
5892 <
5893 <
5894 <
5895 < # Check for module include path (some use -I, some (Solaris) use -M, some
5896 < # (absoft) use -p).
5897 < # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
5898 < # specified, work.pcl and work.pc are created.  However, if you specify
5899 < # a file, it must contain a the name of a file ending in .pc .  Ugh!
5900 < # Use the module made above
5901 < { echo "$as_me:$LINENO: checking for module directory path flag" >&5
5902 < echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6; }
5903 < rm -rf conftest*
5904 < # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
5905 < rm -f work*
5906 < cat >conftest.$ac_ext <<EOF
5907 <        module conftest
5908 <        integer n
5909 <        parameter (n=1)
5910 <        end module conftest
5911 < EOF
5912 < # SGI and absoft compilers generates module name in upper case!
5913 < testname="conftest"
5914 < if (eval $ac_compile) 2>/dev/null ; then
5915 <   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
5916 <   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
5917 <   if test -n "$mod" ; then
5918 <      testname="CONFTEST"
5919 <   fi
5920 <   madedir=0
5921 <   if test ! -d conf ; then mkdir conf ; madedir=1; fi
5922 <   cp $testname.$MOD conf
5923 <   rm -f conftest* CONFTEST*
5924 <   cat >conftest1.$ac_ext <<EOF
5925 <        program main
5926 <        use conftest
5927 <        print *, n
5928 <        end
5929 < EOF
5930 <   F90_WORK_FILES_ARG=""
5931 <   F90MODINCSPEC=""
5932 <   if $FC -c -Iconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext > conftest.out 2>&1 ; then
5933 <       MODDIRFLAG="-I"
5934 <       F90MODINCSPEC="-I<dir>"
5935 <       { echo "$as_me:$LINENO: result: -I" >&5
5936 < echo "${ECHO_T}-I" >&6; }
5937 <   elif $FC -c -Mconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
5938 <       MODDIRFLAG="-M"
5939 <       F90MODINCSPEC="-M<dir>"
5940 <       { echo "$as_me:$LINENO: result: -M" >&5
5941 < echo "${ECHO_T}-M" >&6; }
5942 <   elif $FC -c -pconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
5943 <       MODDIRFLAG="-p"
5944 <       F90MODINCSPEC="-p<dir>"
5945 <       { echo "$as_me:$LINENO: result: -p" >&5
5946 < echo "${ECHO_T}-p" >&6; }
5947 <   elif test -s work.pc ; then
5948 <        cp work.pc conf/mpimod.pc
5949 <        echo "mpimod.pc" > conf/mpimod.pcl
5950 <        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
5951 <        if $FC -c -cl,conf/mpimod.pcl $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >>conftest.out 2>&1 ; then
5952 <            MODDIRFLAG='-cl,mpimod.pcl'
5953 <            { echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
5954 < echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6; }
5955 <            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
5956 <            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
5957 <
5958 <        else
5959 <            # The version of the Intel compiler that I have refuses to let
5960 <            # you put the "work catalog" list anywhere but the current
5961 <            # directory. For example, you cannot in
5962 <         :
5963 <        fi
5964 <   fi
5965 <   if test -z "MODDIRFLAG" ; then
5966 <       { echo "$as_me:$LINENO: result: unknown" >&5
5967 < echo "${ECHO_T}unknown" >&6; }
5968 <   fi
5969 <
5970 <
5971 <   rm -rf conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
5972 <   if test $madedir = 1 ; then rmdir conf ; fi
5973 < fi
5974 <
5975 <
5976 < { echo "$as_me:$LINENO: checking for Fortran 90 module file names" >&5
5977 < echo $ECHO_N "checking for Fortran 90 module file names... $ECHO_C" >&6; }
5978 < if test "${ac_cv_f90_module_names+set}" = set; then
5979 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5980 < else
5981 <  ac_ext=${ac_fc_srcext-f}
5982 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5983 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5984 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5985 <
5986 < # carry out the test in a new directory, so that we don't miss anything
5987 < mkdir conftest
5988 < cd conftest
5989 < cat >conftest.$ac_ext <<_ACEOF
5990 < MODULE Bar
5991 < END MODULE Bar
5992 < _ACEOF
5993 < rm -rf conftest.$ac_objext
5994 < if { (ac_try="$ac_compile"
5995 < case "(($ac_try" in
5996 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 <  *) ac_try_echo=$ac_try;;
5998 < esac
5999 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 <  (eval "$ac_compile") 2>conftest.er1
6001 <  ac_status=$?
6002 <  grep -v '^ *+' conftest.er1 >conftest.err
6003 <  rm -f conftest.er1
6004 <  cat conftest.err >&5
6005 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 <  (exit $ac_status); } && {
6007 <         test -z "$ac_fc_werror_flag" ||
6008 <         test ! -s conftest.err
6009 <       } && test -s conftest.$ac_objext; then
6010 <  ac_cv_f90_module_names=
6011 < ac_file_list=*
6012 < for ac_file in $ac_file_list; do
6013 <   case $ac_file in
6014 <      # don't care for original source and object files
6015 <      conftest.$ac_ext | conftest.$ac_objext | conftest.err )
6016 <          :
6017 <          ;;
6018 <      # look for new files derived from the file name
6019 <      *conftest*)
6020 <          ac_pat=`echo $ac_file | sed s/conftest/%FILE%/`
6021 <            ac_exists=false
6022 <  for ac_i in $ac_cv_f90_module_names; do
6023 <    if test x"$ac_pat" = x"$ac_i"; then
6024 <      ac_exists=true
6025 <      break
6026 <    fi
6027 <  done
6028 <
6029 <  if test x"$ac_exists" = xtrue; then
6030 <  :
6031 < else
6032 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
6033 < fi
6034 <
6035 <          ;;
6036 <      # look for new files derived from the module name,
6037 <      # with different case translation schemes
6038 <      *Bar*)
6039 <          ac_pat=`echo $ac_file | sed s/Bar/%Module%/`
6040 <            ac_exists=false
6041 <  for ac_i in $ac_cv_f90_module_names; do
6042 <    if test x"$ac_pat" = x"$ac_i"; then
6043 <      ac_exists=true
6044 <      break
6045 <    fi
6046 <  done
6047 <
6048 <  if test x"$ac_exists" = xtrue; then
6049 <  :
6050 < else
6051 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
6052 < fi
6053 <
6054 <          ;;
6055 <      *bar*)
6056 <          ac_pat=`echo $ac_file | sed s/bar/%module%/`
6057 <            ac_exists=false
6058 <  for ac_i in $ac_cv_f90_module_names; do
6059 <    if test x"$ac_pat" = x"$ac_i"; then
6060 <      ac_exists=true
6061 <      break
6062 <    fi
6063 <  done
6064 <
6065 <  if test x"$ac_exists" = xtrue; then
6066 <  :
6067 < else
6068 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
6069 < fi
6070 <
6071 <          ;;
6072 <      *BAR*)
6073 <          ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
6074 <            ac_exists=false
6075 <  for ac_i in $ac_cv_f90_module_names; do
6076 <    if test x"$ac_pat" = x"$ac_i"; then
6077 <      ac_exists=true
6078 <      break
6079 <    fi
6080 <  done
6081 <
6082 <  if test x"$ac_exists" = xtrue; then
6083 <  :
6084 < else
6085 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
6086 < fi
6087 <
6088 <          ;;
6089 <       # Other files - we have no idea how they are generated
6090 <       *)
6091 <          { echo "$as_me:$LINENO: WARNING: Bogus file found: $ac_file" >&5
6092 < echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
6093 <          ;;
6094 <   esac
6095 < done
6096 < if test "x$ac_cv_f90_module_names" = "x"; then
6097 <  { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
6098 < echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
6099 < fi
6100 <
6101 < else
6102 <  echo "$as_me: failed program was:" >&5
6103 < sed 's/^/| /' conftest.$ac_ext >&5
6104 <
6105 <        ac_cv_f90_module_names=
6106 < { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
6107 < echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
6108 < fi
6109 <
6110 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 < cd ..
6112 < # cleanup
6113 < rm -rf conftest
6114 < ac_ext=${ac_fc_srcext-f}
6115 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6116 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6117 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6118 <
6119 < fi
6120 < { echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5
6121 < echo "${ECHO_T}$ac_cv_f90_module_names" >&6; } # AC_CACHE_CHECK
6122 <
6123 < # We now generate a shell script that will help us to figure out the correct
6124 < # module file names, using the value of ac_cv_f90_module_names
6125 <
6126 < echo "Generating shell script modnam"
6127 <
6128 < cat > scripts/modnam << EOF
6129 < #! /bin/sh
6130 < # This script is auto-generated by configure
6131 < #
6132 < usage="\\
6133 < Usage: \$0 [FILES]
6134 <
6135 < [FILES] are Fortran 90 source files.
6136 < The output is a list of module file names that the Fortran 90 compiler
6137 < generates when compiling [FILES]."
6138 <
6139 < list=
6140 < empty=
6141 <
6142 < if test \$# -eq 0; then
6143 <   echo "\$usage"; exit 0
6144 < fi
6145 <
6146 < while test \$# != 0; do
6147 <
6148 <  file=\$1
6149 <  shift
6150 <
6151 < # strip suffix
6152 <  base=\`echo \$file | sed 's/[.][^.]*$//'\`
6153 <
6154 <  test ! -f \$file && continue
6155 <
6156 < # Look for module definitions and transform them to upper / lower case
6157 <  mods=\`cat \$file | sed '/^ *[mM][oO][dD][uU][lL][eE]/!d;s/^ *[mM][oO][dD][uU][lL][eE] *\([A-Za-z_][A-Za-z0-9_]*\).*\$/\1/'\`
6158 <  upper=\`echo \$mods | tr a-z A-Z\`
6159 <  lower=\`echo \$mods | tr A-Z a-z\`
6160 <
6161 < # Here, the patterns for generating module file names were inserted by configure
6162 <  for trans in $ac_cv_f90_module_names; do
6163 <
6164 <    pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
6165 <    var=empty
6166 <    case \$pat in
6167 <       %MODULE%)
6168 <          var=upper ;;
6169 <       %Module%)
6170 <          var=mods ;;
6171 <       %module%)
6172 <          var=lower ;;
6173 <       %FILE%)
6174 <          test -n "\$mods" && var=base ;;
6175 <    esac
6176 <    new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
6177 <    list="\$list \$new"
6178 <  done
6179 < done
6180 <
6181 < echo \$list
6182 < # end of configure-generated script
6183 < EOF
6184 < chmod 755 scripts/modnam
6185 <
6186 < pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
6187 < F90_MODULE_NAMES=empty
6188 < case $pat in
6189 <       %MODULE%)
6190 <          F90_MODULE_NAMES=UPPER ;;
6191 <       %Module%)
6192 <          F90_MODULE_NAMES=Mixed ;;
6193 <       %module%)
6194 <          F90_MODULE_NAMES=lower ;;
6195 <       *)
6196 <          F90_MODULE_NAMES=unknown ;;
6197 < esac
6198 <
6199 < ac_ext=c
6200 < ac_cpp='$CPP $CPPFLAGS'
6201 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
6204 <
6205 <
6206 < ac_ext=c
6207 < ac_cpp='$CPP $CPPFLAGS'
6208 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6209 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6210 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
6211 <
6212 <
6213 <
6214 < { echo "$as_me:$LINENO: checking for asin in -lm" >&5
6215 < echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6; }
6216 < if test "${ac_cv_lib_m_asin+set}" = set; then
6217 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6218 < else
6219 <  ac_check_lib_save_LIBS=$LIBS
6220 < LIBS="-lm  $LIBS"
6221 < cat >conftest.$ac_ext <<_ACEOF
6222 < /* confdefs.h.  */
6223 < _ACEOF
6224 < cat confdefs.h >>conftest.$ac_ext
6225 < cat >>conftest.$ac_ext <<_ACEOF
6226 < /* end confdefs.h.  */
6227 <
6228 < /* Override any GCC internal prototype to avoid an error.
6229 <   Use char because int might match the return type of a GCC
6230 <   builtin and then its argument prototype would still apply.  */
6231 < #ifdef __cplusplus
6232 < extern "C"
6233 < #endif
6234 < char asin ();
6235 < #ifdef FC_DUMMY_MAIN
6236 < #ifndef FC_DUMMY_MAIN_EQ_F77
6237 < #  ifdef __cplusplus
6238 <     extern "C"
6239 < #  endif
6240 <   int FC_DUMMY_MAIN() { return 1; }
6241 < #endif
6242 < #endif
6243 < int
6244 < main ()
6245 < {
6246 < return asin ();
6247 <  ;
6248 <  return 0;
6249 < }
6250 < _ACEOF
6251 < rm -rf conftest.$ac_objext conftest$ac_exeext
6252 < if { (ac_try="$ac_link"
6253 < case "(($ac_try" in
6254 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 <  *) ac_try_echo=$ac_try;;
6256 < esac
6257 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258 <  (eval "$ac_link") 2>conftest.er1
6259 <  ac_status=$?
6260 <  grep -v '^ *+' conftest.er1 >conftest.err
6261 <  rm -f conftest.er1
6262 <  cat conftest.err >&5
6263 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 <  (exit $ac_status); } && {
6265 <         test -z "$ac_c_werror_flag" ||
6266 <         test ! -s conftest.err
6267 <       } && test -s conftest$ac_exeext &&
6268 <       $as_test_x conftest$ac_exeext; then
6269 <  ac_cv_lib_m_asin=yes
6270 < else
6271 <  echo "$as_me: failed program was:" >&5
6272 < sed 's/^/| /' conftest.$ac_ext >&5
6273 <
6274 <        ac_cv_lib_m_asin=no
6275 < fi
6276 <
6277 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6278 <      conftest$ac_exeext conftest.$ac_ext
6279 < LIBS=$ac_check_lib_save_LIBS
6280 < fi
6281 < { echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5
6282 < echo "${ECHO_T}$ac_cv_lib_m_asin" >&6; }
6283 < if test $ac_cv_lib_m_asin = yes; then
6284 <  cat >>confdefs.h <<_ACEOF
6285 < #define HAVE_LIBM 1
6286 < _ACEOF
6287 <
6288 <  LIBS="-lm $LIBS"
6289 <
6290 < else
6291 <  exit
6292 < fi
6293 <
6294 <
6295 < { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6296 < echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6297 < if test "${ac_cv_header_stdc+set}" = set; then
6298 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6299 < else
6300 <  cat >conftest.$ac_ext <<_ACEOF
6301 < /* confdefs.h.  */
6302 < _ACEOF
6303 < cat confdefs.h >>conftest.$ac_ext
6304 < cat >>conftest.$ac_ext <<_ACEOF
6305 < /* end confdefs.h.  */
6306 < #include <stdlib.h>
6307 < #include <stdarg.h>
6308 < #include <string.h>
6309 < #include <float.h>
6310 <
6311 < #ifdef FC_DUMMY_MAIN
6312 < #ifndef FC_DUMMY_MAIN_EQ_F77
6313 < #  ifdef __cplusplus
6314 <     extern "C"
6315 < #  endif
6316 <   int FC_DUMMY_MAIN() { return 1; }
6317 < #endif
6318 < #endif
6319 < int
6320 < main ()
6321 < {
6322 <
6323 <  ;
6324 <  return 0;
6325 < }
6326 < _ACEOF
6327 < rm -rf conftest.$ac_objext
6328 < if { (ac_try="$ac_compile"
6329 < case "(($ac_try" in
6330 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 <  *) ac_try_echo=$ac_try;;
6332 < esac
6333 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334 <  (eval "$ac_compile") 2>conftest.er1
6335 <  ac_status=$?
6336 <  grep -v '^ *+' conftest.er1 >conftest.err
6337 <  rm -f conftest.er1
6338 <  cat conftest.err >&5
6339 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 <  (exit $ac_status); } && {
6341 <         test -z "$ac_c_werror_flag" ||
6342 <         test ! -s conftest.err
6343 <       } && test -s conftest.$ac_objext; then
6344 <  ac_cv_header_stdc=yes
6345 < else
6346 <  echo "$as_me: failed program was:" >&5
6347 < sed 's/^/| /' conftest.$ac_ext >&5
6348 <
6349 <        ac_cv_header_stdc=no
6350 < fi
6351 <
6352 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
6353 <
6354 < if test $ac_cv_header_stdc = yes; then
6355 <  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6356 <  cat >conftest.$ac_ext <<_ACEOF
6357 < /* confdefs.h.  */
6358 < _ACEOF
6359 < cat confdefs.h >>conftest.$ac_ext
6360 < cat >>conftest.$ac_ext <<_ACEOF
6361 < /* end confdefs.h.  */
6362 < #include <string.h>
6363 <
6364 < _ACEOF
6365 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6366 <  $EGREP "memchr" >/dev/null 2>&1; then
6367 <  :
6368 < else
6369 <  ac_cv_header_stdc=no
6370 < fi
6371 < rm -rf conftest*
6372 <
6373 < fi
6374 <
6375 < if test $ac_cv_header_stdc = yes; then
6376 <  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6377 <  cat >conftest.$ac_ext <<_ACEOF
6378 < /* confdefs.h.  */
6379 < _ACEOF
6380 < cat confdefs.h >>conftest.$ac_ext
6381 < cat >>conftest.$ac_ext <<_ACEOF
6382 < /* end confdefs.h.  */
6383 < #include <stdlib.h>
6384 <
6385 < _ACEOF
6386 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6387 <  $EGREP "free" >/dev/null 2>&1; then
6388 <  :
6389 < else
6390 <  ac_cv_header_stdc=no
6391 < fi
6392 < rm -rf conftest*
6393 <
6394 < fi
6395 <
6396 < if test $ac_cv_header_stdc = yes; then
6397 <  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6398 <  if test "$cross_compiling" = yes; then
6399 <  :
6400 < else
6401 <  cat >conftest.$ac_ext <<_ACEOF
6402 < /* confdefs.h.  */
6403 < _ACEOF
6404 < cat confdefs.h >>conftest.$ac_ext
6405 < cat >>conftest.$ac_ext <<_ACEOF
6406 < /* end confdefs.h.  */
6407 < #include <ctype.h>
6408 < #include <stdlib.h>
6409 < #if ((' ' & 0x0FF) == 0x020)
6410 < # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6411 < # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6412 < #else
6413 < # define ISLOWER(c) \
6414 <                   (('a' <= (c) && (c) <= 'i') \
6415 <                     || ('j' <= (c) && (c) <= 'r') \
6416 <                     || ('s' <= (c) && (c) <= 'z'))
6417 < # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6418 < #endif
6419 <
6420 < #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6421 < int
6422 < main ()
6423 < {
6424 <  int i;
6425 <  for (i = 0; i < 256; i++)
6426 <    if (XOR (islower (i), ISLOWER (i))
6427 <        || toupper (i) != TOUPPER (i))
6428 <      return 2;
6429 <  return 0;
6430 < }
6431 < _ACEOF
6432 < rm -rf conftest$ac_exeext
6433 < if { (ac_try="$ac_link"
6434 < case "(($ac_try" in
6435 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436 <  *) ac_try_echo=$ac_try;;
6437 < esac
6438 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439 <  (eval "$ac_link") 2>&5
6440 <  ac_status=$?
6441 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6443 <  { (case "(($ac_try" in
6444 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6445 <  *) ac_try_echo=$ac_try;;
6446 < esac
6447 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6448 <  (eval "$ac_try") 2>&5
6449 <  ac_status=$?
6450 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 <  (exit $ac_status); }; }; then
6452 <  :
6453 < else
6454 <  echo "$as_me: program exited with status $ac_status" >&5
6455 < echo "$as_me: failed program was:" >&5
6456 < sed 's/^/| /' conftest.$ac_ext >&5
6457 <
6458 < ( exit $ac_status )
6459 < ac_cv_header_stdc=no
6460 < fi
6461 < rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6462 < fi
6463 <
6464 <
6465 < fi
6466 < fi
6467 < { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6468 < echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6469 < if test $ac_cv_header_stdc = yes; then
6470 <
6471 < cat >>confdefs.h <<\_ACEOF
6472 < #define STDC_HEADERS 1
6473 < _ACEOF
6474 <
6475 < fi
6476 <
6477 < # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6478 <
6479 <
6480 <
6481 <
6482 <
6483 <
6484 <
6485 <
6486 <
6487 < for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6488 <                  inttypes.h stdint.h unistd.h
6489 < do
6490 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6491 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
6492 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6493 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6494 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6495 < else
6496 <  cat >conftest.$ac_ext <<_ACEOF
6497 < /* confdefs.h.  */
6498 < _ACEOF
6499 < cat confdefs.h >>conftest.$ac_ext
6500 < cat >>conftest.$ac_ext <<_ACEOF
6501 < /* end confdefs.h.  */
6502 < $ac_includes_default
6503 <
6504 < #include <$ac_header>
6505 < _ACEOF
6506 < rm -rf conftest.$ac_objext
6507 < if { (ac_try="$ac_compile"
6508 < case "(($ac_try" in
6509 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510 <  *) ac_try_echo=$ac_try;;
6511 < esac
6512 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513 <  (eval "$ac_compile") 2>conftest.er1
6514 <  ac_status=$?
6515 <  grep -v '^ *+' conftest.er1 >conftest.err
6516 <  rm -f conftest.er1
6517 <  cat conftest.err >&5
6518 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 <  (exit $ac_status); } && {
6520 <         test -z "$ac_c_werror_flag" ||
6521 <         test ! -s conftest.err
6522 <       } && test -s conftest.$ac_objext; then
6523 <  eval "$as_ac_Header=yes"
6524 < else
6525 <  echo "$as_me: failed program was:" >&5
6526 < sed 's/^/| /' conftest.$ac_ext >&5
6527 <
6528 <        eval "$as_ac_Header=no"
6529 < fi
6530 <
6531 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 < fi
6533 < ac_res=`eval echo '${'$as_ac_Header'}'`
6534 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
6535 < echo "${ECHO_T}$ac_res" >&6; }
6536 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
6537 <  cat >>confdefs.h <<_ACEOF
6538 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6539 < _ACEOF
6540 <
6541 < fi
6542 <
6543 < done
6544 <
6545 <
6546 < #
6547 < # Handle user hints
6548 < #
6549 <
6550 < # Check whether --with-zlib was given.
6551 < if test "${with_zlib+set}" = set; then
6552 <  withval=$with_zlib; zlib_dir="$withval"
6553 < else
6554 <                zlib_dir="not_set"
6555 < fi
6556 <
6557 < if test "$zlib_dir" != "no"; then
6558 <
6559 < if test "$zlib_dir" != "not_set" ; then
6560 <  if test -d "$zlib_dir"
6561 <  then
6562 <    ZLIB_HOME="$zlib_dir"
6563 <  else
6564 <    { echo "$as_me:$LINENO: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5
6565 < echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;}
6566 <  fi
6567 < fi
6568 <
6569 < ZLIB_HOME=/usr/local
6570 < if test ! -f "${ZLIB_HOME}/include/zlib.h"
6571 < then
6572 <        ZLIB_HOME=/usr
6573 < fi
6574 <
6575 < #
6576 < # Locate zlib, if wanted
6577 < #
6578 < if test -n "${ZLIB_HOME}"
6579 < then
6580 <        ZLIB_OLD_LDFLAGS=$LDFLAGS
6581 <        ZLIB_OLD_CPPFLAGS=$LDFLAGS
6582 <        LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
6583 <        CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
6584 <
6585 <        ac_ext=c
6586 < ac_cpp='$CPP $CPPFLAGS'
6587 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6588 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6589 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
6590 <
6591 <        { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
6592 < echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
6593 < if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
6594 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6595 < else
6596 <  ac_check_lib_save_LIBS=$LIBS
6597 < LIBS="-lz  $LIBS"
6598 < cat >conftest.$ac_ext <<_ACEOF
6599 < /* confdefs.h.  */
6600 < _ACEOF
6601 < cat confdefs.h >>conftest.$ac_ext
6602 < cat >>conftest.$ac_ext <<_ACEOF
6603 < /* end confdefs.h.  */
6604 <
6605 < /* Override any GCC internal prototype to avoid an error.
6606 <   Use char because int might match the return type of a GCC
6607 <   builtin and then its argument prototype would still apply.  */
6608 < #ifdef __cplusplus
6609 < extern "C"
6610 < #endif
6611 < char inflateEnd ();
6612 < #ifdef FC_DUMMY_MAIN
6613 < #ifndef FC_DUMMY_MAIN_EQ_F77
6614 < #  ifdef __cplusplus
6615 <     extern "C"
6616 < #  endif
6617 <   int FC_DUMMY_MAIN() { return 1; }
6618 < #endif
6619 < #endif
6620 < int
6621 < main ()
6622 < {
6623 < return inflateEnd ();
6624 <  ;
6625 <  return 0;
6626 < }
6627 < _ACEOF
6628 < rm -rf conftest.$ac_objext conftest$ac_exeext
6629 < if { (ac_try="$ac_link"
6630 < case "(($ac_try" in
6631 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 <  *) ac_try_echo=$ac_try;;
6633 < esac
6634 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635 <  (eval "$ac_link") 2>conftest.er1
6636 <  ac_status=$?
6637 <  grep -v '^ *+' conftest.er1 >conftest.err
6638 <  rm -f conftest.er1
6639 <  cat conftest.err >&5
6640 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 <  (exit $ac_status); } && {
6642 <         test -z "$ac_c_werror_flag" ||
6643 <         test ! -s conftest.err
6644 <       } && test -s conftest$ac_exeext &&
6645 <       $as_test_x conftest$ac_exeext; then
6646 <  ac_cv_lib_z_inflateEnd=yes
6647 < else
6648 <  echo "$as_me: failed program was:" >&5
6649 < sed 's/^/| /' conftest.$ac_ext >&5
6650 <
6651 <        ac_cv_lib_z_inflateEnd=no
6652 < fi
6653 <
6654 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6655 <      conftest$ac_exeext conftest.$ac_ext
6656 < LIBS=$ac_check_lib_save_LIBS
6657 < fi
6658 < { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
6659 < echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
6660 < if test $ac_cv_lib_z_inflateEnd = yes; then
6661 <  zlib_cv_libz=yes
6662 < else
6663 <  zlib_cv_libz=no
6664 < fi
6665 <
6666 <        if test "${ac_cv_header_zlib_h+set}" = set; then
6667 <  { echo "$as_me:$LINENO: checking for zlib.h" >&5
6668 < echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
6669 < if test "${ac_cv_header_zlib_h+set}" = set; then
6670 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6671 < fi
6672 < { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
6673 < echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
6674 < else
6675 <  # Is the header compilable?
6676 < { echo "$as_me:$LINENO: checking zlib.h usability" >&5
6677 < echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
6678 < cat >conftest.$ac_ext <<_ACEOF
6679 < /* confdefs.h.  */
6680 < _ACEOF
6681 < cat confdefs.h >>conftest.$ac_ext
6682 < cat >>conftest.$ac_ext <<_ACEOF
6683 < /* end confdefs.h.  */
6684 < $ac_includes_default
6685 < #include <zlib.h>
6686 < _ACEOF
6687 < rm -rf conftest.$ac_objext
6688 < if { (ac_try="$ac_compile"
6689 < case "(($ac_try" in
6690 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691 <  *) ac_try_echo=$ac_try;;
6692 < esac
6693 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6694 <  (eval "$ac_compile") 2>conftest.er1
6695 <  ac_status=$?
6696 <  grep -v '^ *+' conftest.er1 >conftest.err
6697 <  rm -f conftest.er1
6698 <  cat conftest.err >&5
6699 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 <  (exit $ac_status); } && {
6701 <         test -z "$ac_c_werror_flag" ||
6702 <         test ! -s conftest.err
6703 <       } && test -s conftest.$ac_objext; then
6704 <  ac_header_compiler=yes
6705 < else
6706 <  echo "$as_me: failed program was:" >&5
6707 < sed 's/^/| /' conftest.$ac_ext >&5
6708 <
6709 <        ac_header_compiler=no
6710 < fi
6711 <
6712 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
6713 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6714 < echo "${ECHO_T}$ac_header_compiler" >&6; }
6715 <
6716 < # Is the header present?
6717 < { echo "$as_me:$LINENO: checking zlib.h presence" >&5
6718 < echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
6719 < cat >conftest.$ac_ext <<_ACEOF
6720 < /* confdefs.h.  */
6721 < _ACEOF
6722 < cat confdefs.h >>conftest.$ac_ext
6723 < cat >>conftest.$ac_ext <<_ACEOF
6724 < /* end confdefs.h.  */
6725 < #include <zlib.h>
6726 < _ACEOF
6727 < if { (ac_try="$ac_cpp conftest.$ac_ext"
6728 < case "(($ac_try" in
6729 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730 <  *) ac_try_echo=$ac_try;;
6731 < esac
6732 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6734 <  ac_status=$?
6735 <  grep -v '^ *+' conftest.er1 >conftest.err
6736 <  rm -f conftest.er1
6737 <  cat conftest.err >&5
6738 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 <  (exit $ac_status); } >/dev/null && {
6740 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6741 <         test ! -s conftest.err
6742 <       }; then
6743 <  ac_header_preproc=yes
6744 < else
6745 <  echo "$as_me: failed program was:" >&5
6746 < sed 's/^/| /' conftest.$ac_ext >&5
6747 <
6748 <  ac_header_preproc=no
6749 < fi
6750 <
6751 < rm -rf conftest.err conftest.$ac_ext
6752 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6753 < echo "${ECHO_T}$ac_header_preproc" >&6; }
6754 <
6755 < # So?  What about this header?
6756 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6757 <  yes:no: )
6758 <    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6759 < echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6760 <    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
6761 < echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
6762 <    ac_header_preproc=yes
6763 <    ;;
6764 <  no:yes:* )
6765 <    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
6766 < echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
6767 <    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
6768 < echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
6769 <    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
6770 < echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
6771 <    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
6772 < echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6773 <    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
6774 < echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
6775 <    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
6776 < echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
6777 <    ( cat <<\_ASBOX
6778 < ## ------------------------------ ##
6779 < ## Report this to gezelter@nd.edu ##
6780 < ## ------------------------------ ##
6781 < _ASBOX
6782 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
6783 <    ;;
6784 < esac
6785 < { echo "$as_me:$LINENO: checking for zlib.h" >&5
6786 < echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
6787 < if test "${ac_cv_header_zlib_h+set}" = set; then
6788 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6789 < else
6790 <  ac_cv_header_zlib_h=$ac_header_preproc
6791 < fi
6792 < { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
6793 < echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
6794 <
6795 < fi
6796 < if test $ac_cv_header_zlib_h = yes; then
6797 <  zlib_cv_zlib_h=yes
6798 < else
6799 <  zlib_cv_zlib_h=no
6800 < fi
6801 <
6802 <
6803 <        ac_ext=c
6804 < ac_cpp='$CPP $CPPFLAGS'
6805 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
6808 <
6809 <
6810 <        if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"; then
6811 <
6812 < cat >>confdefs.h <<\_ACEOF
6813 < #define HAVE_ZLIB_H 1
6814 < _ACEOF
6815 <
6816 <
6817 < cat >>confdefs.h <<\_ACEOF
6818 < #define HAVE_LIBZ 1
6819 < _ACEOF
6820 <
6821 <                ZLIB_INC_DIR="${ZLIB_HOME}/include"
6822 <                ZLIB_LIB_DIR="${ZLIB_HOME}/lib"
6823 <                ZLIB="-lz"
6824 <        else
6825 <                { echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
6826 < echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6; }
6827 <                ZLIB_INC_DIR=
6828 <                ZLIB_LIB_DIR=
6829 <                ZLIB=
6830 <                LDFLAGS="$ZLIB_OLD_LDFLAGS"
6831 <                CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
6832 <                { echo "$as_me:$LINENO: result: failed" >&5
6833 < echo "${ECHO_T}failed" >&6; }
6834 <                echo ""
6835 <                echo "*********************************************************"
6836 <                echo "* WARNING: Could not find a working zlib installation   *"
6837 <                echo "* If you need OOPSE to be able to deal with compressed  *"
6838 <                echo "* trajectory dump files be sure to specify a valid zlib *"
6839 <                echo "* installation with --with-zlib=DIR                     *"
6840 <                echo "*                                                       *"
6841 <                echo "* OOPSE will still work without zlib installed.         *"
6842 <                echo "*********************************************************"
6843 <                echo ""
6844 <        fi
6845 <
6846 <
6847 <
6848 < fi
6849 < fi
6850 <
6851 < #
6852 < # Handle user hints
6853 < #
6854 <
6855 < # Check whether --with-fftw was given.
6856 < if test "${with_fftw+set}" = set; then
6857 <  withval=$with_fftw; fftw_dir="$withval"
6858 < else
6859 <             fftw_dir="not_set"
6860 < fi
6861 <
6862 < if test "$fftw_dir" != "no"; then
6863 <  if test "$fftw_dir" != "not_set" ; then
6864 <    if test -d "$fftw_dir"; then
6865 <      FFTW_HOME="$fftw_dir"
6866 <    else
6867 <      { echo "$as_me:$LINENO: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&5
6868 < echo "$as_me: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&2;}
6869 <      FFTW_HOME=/usr/local
6870 <      if test ! -f "${FFTW_HOME}/include/fftw3.h" -o -f "${FFTW_HOME}/include/fftw.h" -o  -f "${FFTW_HOME}/include/dfftw.h"; then
6871 <        FFTW_HOME=/usr
6872 <      fi
6873 <    fi
6874 <    #
6875 <    # Locate fftw, if wanted
6876 <    #
6877 <    if test -n "${FFTW_HOME}"; then
6878 <      FFTW_OLD_LDFLAGS=$LDFLAGS
6879 <      FFTW_OLD_CPPFLAGS=$LDFLAGS
6880 <      LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib"
6881 <      CPPFLAGS="$CPPFLAGS -I${FFTW_HOME}/include"
6882 <
6883 <      ac_ext=c
6884 < ac_cpp='$CPP $CPPFLAGS'
6885 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6886 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6887 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
6888 <
6889 <      { echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
6890 < echo $ECHO_N "checking for fftw_execute in -lfftw3... $ECHO_C" >&6; }
6891 < if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
6892 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6893 < else
6894 <  ac_check_lib_save_LIBS=$LIBS
6895 < LIBS="-lfftw3  $LIBS"
6896 < cat >conftest.$ac_ext <<_ACEOF
6897 < /* confdefs.h.  */
6898 < _ACEOF
6899 < cat confdefs.h >>conftest.$ac_ext
6900 < cat >>conftest.$ac_ext <<_ACEOF
6901 < /* end confdefs.h.  */
6902 <
6903 < /* Override any GCC internal prototype to avoid an error.
6904 <   Use char because int might match the return type of a GCC
6905 <   builtin and then its argument prototype would still apply.  */
6906 < #ifdef __cplusplus
6907 < extern "C"
6908 < #endif
6909 < char fftw_execute ();
6910 < #ifdef FC_DUMMY_MAIN
6911 < #ifndef FC_DUMMY_MAIN_EQ_F77
6912 < #  ifdef __cplusplus
6913 <     extern "C"
6914 < #  endif
6915 <   int FC_DUMMY_MAIN() { return 1; }
6916 < #endif
6917 < #endif
6918 < int
6919 < main ()
6920 < {
6921 < return fftw_execute ();
6922 <  ;
6923 <  return 0;
6924 < }
6925 < _ACEOF
6926 < rm -rf conftest.$ac_objext conftest$ac_exeext
6927 < if { (ac_try="$ac_link"
6928 < case "(($ac_try" in
6929 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6930 <  *) ac_try_echo=$ac_try;;
6931 < esac
6932 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6933 <  (eval "$ac_link") 2>conftest.er1
6934 <  ac_status=$?
6935 <  grep -v '^ *+' conftest.er1 >conftest.err
6936 <  rm -f conftest.er1
6937 <  cat conftest.err >&5
6938 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 <  (exit $ac_status); } && {
6940 <         test -z "$ac_c_werror_flag" ||
6941 <         test ! -s conftest.err
6942 <       } && test -s conftest$ac_exeext &&
6943 <       $as_test_x conftest$ac_exeext; then
6944 <  ac_cv_lib_fftw3_fftw_execute=yes
6945 < else
6946 <  echo "$as_me: failed program was:" >&5
6947 < sed 's/^/| /' conftest.$ac_ext >&5
6948 <
6949 <        ac_cv_lib_fftw3_fftw_execute=no
6950 < fi
6951 <
6952 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6953 <      conftest$ac_exeext conftest.$ac_ext
6954 < LIBS=$ac_check_lib_save_LIBS
6955 < fi
6956 < { echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
6957 < echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_execute" >&6; }
6958 < if test $ac_cv_lib_fftw3_fftw_execute = yes; then
6959 <  fftw_cv_libfftw3=yes
6960 < else
6961 <  fftw_cv_libfftw3=no
6962 < fi
6963 <
6964 <      if test "${ac_cv_header_fftw3_h+set}" = set; then
6965 <  { echo "$as_me:$LINENO: checking for fftw3.h" >&5
6966 < echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6; }
6967 < if test "${ac_cv_header_fftw3_h+set}" = set; then
6968 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6969 < fi
6970 < { echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
6971 < echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6; }
6972 < else
6973 <  # Is the header compilable?
6974 < { echo "$as_me:$LINENO: checking fftw3.h usability" >&5
6975 < echo $ECHO_N "checking fftw3.h usability... $ECHO_C" >&6; }
6976 < cat >conftest.$ac_ext <<_ACEOF
6977 < /* confdefs.h.  */
6978 < _ACEOF
6979 < cat confdefs.h >>conftest.$ac_ext
6980 < cat >>conftest.$ac_ext <<_ACEOF
6981 < /* end confdefs.h.  */
6982 < $ac_includes_default
6983 < #include <fftw3.h>
6984 < _ACEOF
6985 < rm -rf conftest.$ac_objext
6986 < if { (ac_try="$ac_compile"
6987 < case "(($ac_try" in
6988 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6989 <  *) ac_try_echo=$ac_try;;
6990 < esac
6991 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6992 <  (eval "$ac_compile") 2>conftest.er1
6993 <  ac_status=$?
6994 <  grep -v '^ *+' conftest.er1 >conftest.err
6995 <  rm -f conftest.er1
6996 <  cat conftest.err >&5
6997 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 <  (exit $ac_status); } && {
6999 <         test -z "$ac_c_werror_flag" ||
7000 <         test ! -s conftest.err
7001 <       } && test -s conftest.$ac_objext; then
7002 <  ac_header_compiler=yes
7003 < else
7004 <  echo "$as_me: failed program was:" >&5
7005 < sed 's/^/| /' conftest.$ac_ext >&5
7006 <
7007 <        ac_header_compiler=no
7008 < fi
7009 <
7010 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7011 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7012 < echo "${ECHO_T}$ac_header_compiler" >&6; }
7013 <
7014 < # Is the header present?
7015 < { echo "$as_me:$LINENO: checking fftw3.h presence" >&5
7016 < echo $ECHO_N "checking fftw3.h presence... $ECHO_C" >&6; }
7017 < cat >conftest.$ac_ext <<_ACEOF
7018 < /* confdefs.h.  */
7019 < _ACEOF
7020 < cat confdefs.h >>conftest.$ac_ext
7021 < cat >>conftest.$ac_ext <<_ACEOF
7022 < /* end confdefs.h.  */
7023 < #include <fftw3.h>
7024 < _ACEOF
7025 < if { (ac_try="$ac_cpp conftest.$ac_ext"
7026 < case "(($ac_try" in
7027 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7028 <  *) ac_try_echo=$ac_try;;
7029 < esac
7030 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7031 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7032 <  ac_status=$?
7033 <  grep -v '^ *+' conftest.er1 >conftest.err
7034 <  rm -f conftest.er1
7035 <  cat conftest.err >&5
7036 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 <  (exit $ac_status); } >/dev/null && {
7038 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7039 <         test ! -s conftest.err
7040 <       }; then
7041 <  ac_header_preproc=yes
7042 < else
7043 <  echo "$as_me: failed program was:" >&5
7044 < sed 's/^/| /' conftest.$ac_ext >&5
7045 <
7046 <  ac_header_preproc=no
7047 < fi
7048 <
7049 < rm -rf conftest.err conftest.$ac_ext
7050 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7051 < echo "${ECHO_T}$ac_header_preproc" >&6; }
7052 <
7053 < # So?  What about this header?
7054 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7055 <  yes:no: )
7056 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
7057 < echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7058 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5
7059 < echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;}
7060 <    ac_header_preproc=yes
7061 <    ;;
7062 <  no:yes:* )
7063 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
7064 < echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
7065 <    { echo "$as_me:$LINENO: WARNING: fftw3.h:     check for missing prerequisite headers?" >&5
7066 < echo "$as_me: WARNING: fftw3.h:     check for missing prerequisite headers?" >&2;}
7067 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5
7068 < echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;}
7069 <    { echo "$as_me:$LINENO: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&5
7070 < echo "$as_me: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7071 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
7072 < echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;}
7073 <    { echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5
7074 < echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;}
7075 <    ( cat <<\_ASBOX
7076 < ## ------------------------------ ##
7077 < ## Report this to gezelter@nd.edu ##
7078 < ## ------------------------------ ##
7079 < _ASBOX
7080 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
7081 <    ;;
7082 < esac
7083 < { echo "$as_me:$LINENO: checking for fftw3.h" >&5
7084 < echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6; }
7085 < if test "${ac_cv_header_fftw3_h+set}" = set; then
7086 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7087 < else
7088 <  ac_cv_header_fftw3_h=$ac_header_preproc
7089 < fi
7090 < { echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
7091 < echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6; }
7092 <
7093 < fi
7094 < if test $ac_cv_header_fftw3_h = yes; then
7095 <  fftw_cv_fftw3_h=yes
7096 < else
7097 <  fftw_cv_fftw3_h=no
7098 < fi
7099 <
7100 <
7101 <      if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then
7102 <        { echo "$as_me:$LINENO: checking for fftwnd_one in -lfftw" >&5
7103 < echo $ECHO_N "checking for fftwnd_one in -lfftw... $ECHO_C" >&6; }
7104 < if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then
7105 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7106 < else
7107 <  ac_check_lib_save_LIBS=$LIBS
7108 < LIBS="-lfftw  $LIBS"
7109 < cat >conftest.$ac_ext <<_ACEOF
7110 < /* confdefs.h.  */
7111 < _ACEOF
7112 < cat confdefs.h >>conftest.$ac_ext
7113 < cat >>conftest.$ac_ext <<_ACEOF
7114 < /* end confdefs.h.  */
7115 <
7116 < /* Override any GCC internal prototype to avoid an error.
7117 <   Use char because int might match the return type of a GCC
7118 <   builtin and then its argument prototype would still apply.  */
7119 < #ifdef __cplusplus
7120 < extern "C"
7121 < #endif
7122 < char fftwnd_one ();
7123 < #ifdef FC_DUMMY_MAIN
7124 < #ifndef FC_DUMMY_MAIN_EQ_F77
7125 < #  ifdef __cplusplus
7126 <     extern "C"
7127 < #  endif
7128 <   int FC_DUMMY_MAIN() { return 1; }
7129 < #endif
7130 < #endif
7131 < int
7132 < main ()
7133 < {
7134 < return fftwnd_one ();
7135 <  ;
7136 <  return 0;
7137 < }
7138 < _ACEOF
7139 < rm -rf conftest.$ac_objext conftest$ac_exeext
7140 < if { (ac_try="$ac_link"
7141 < case "(($ac_try" in
7142 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7143 <  *) ac_try_echo=$ac_try;;
7144 < esac
7145 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7146 <  (eval "$ac_link") 2>conftest.er1
7147 <  ac_status=$?
7148 <  grep -v '^ *+' conftest.er1 >conftest.err
7149 <  rm -f conftest.er1
7150 <  cat conftest.err >&5
7151 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 <  (exit $ac_status); } && {
7153 <         test -z "$ac_c_werror_flag" ||
7154 <         test ! -s conftest.err
7155 <       } && test -s conftest$ac_exeext &&
7156 <       $as_test_x conftest$ac_exeext; then
7157 <  ac_cv_lib_fftw_fftwnd_one=yes
7158 < else
7159 <  echo "$as_me: failed program was:" >&5
7160 < sed 's/^/| /' conftest.$ac_ext >&5
7161 <
7162 <        ac_cv_lib_fftw_fftwnd_one=no
7163 < fi
7164 <
7165 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7166 <      conftest$ac_exeext conftest.$ac_ext
7167 < LIBS=$ac_check_lib_save_LIBS
7168 < fi
7169 < { echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftwnd_one" >&5
7170 < echo "${ECHO_T}$ac_cv_lib_fftw_fftwnd_one" >&6; }
7171 < if test $ac_cv_lib_fftw_fftwnd_one = yes; then
7172 <  fftw_cv_libfftw=yes
7173 < else
7174 <  fftw_cv_libfftw=no
7175 < fi
7176 <
7177 <        if test "${ac_cv_header_fftw_h+set}" = set; then
7178 <  { echo "$as_me:$LINENO: checking for fftw.h" >&5
7179 < echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6; }
7180 < if test "${ac_cv_header_fftw_h+set}" = set; then
7181 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7182 < fi
7183 < { echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
7184 < echo "${ECHO_T}$ac_cv_header_fftw_h" >&6; }
7185 < else
7186 <  # Is the header compilable?
7187 < { echo "$as_me:$LINENO: checking fftw.h usability" >&5
7188 < echo $ECHO_N "checking fftw.h usability... $ECHO_C" >&6; }
7189 < cat >conftest.$ac_ext <<_ACEOF
7190 < /* confdefs.h.  */
7191 < _ACEOF
7192 < cat confdefs.h >>conftest.$ac_ext
7193 < cat >>conftest.$ac_ext <<_ACEOF
7194 < /* end confdefs.h.  */
7195 < $ac_includes_default
7196 < #include <fftw.h>
7197 < _ACEOF
7198 < rm -rf conftest.$ac_objext
7199 < if { (ac_try="$ac_compile"
7200 < case "(($ac_try" in
7201 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 <  *) ac_try_echo=$ac_try;;
7203 < esac
7204 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205 <  (eval "$ac_compile") 2>conftest.er1
7206 <  ac_status=$?
7207 <  grep -v '^ *+' conftest.er1 >conftest.err
7208 <  rm -f conftest.er1
7209 <  cat conftest.err >&5
7210 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 <  (exit $ac_status); } && {
7212 <         test -z "$ac_c_werror_flag" ||
7213 <         test ! -s conftest.err
7214 <       } && test -s conftest.$ac_objext; then
7215 <  ac_header_compiler=yes
7216 < else
7217 <  echo "$as_me: failed program was:" >&5
7218 < sed 's/^/| /' conftest.$ac_ext >&5
7219 <
7220 <        ac_header_compiler=no
7221 < fi
7222 <
7223 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7225 < echo "${ECHO_T}$ac_header_compiler" >&6; }
7226 <
7227 < # Is the header present?
7228 < { echo "$as_me:$LINENO: checking fftw.h presence" >&5
7229 < echo $ECHO_N "checking fftw.h presence... $ECHO_C" >&6; }
7230 < cat >conftest.$ac_ext <<_ACEOF
7231 < /* confdefs.h.  */
7232 < _ACEOF
7233 < cat confdefs.h >>conftest.$ac_ext
7234 < cat >>conftest.$ac_ext <<_ACEOF
7235 < /* end confdefs.h.  */
7236 < #include <fftw.h>
7237 < _ACEOF
7238 < if { (ac_try="$ac_cpp conftest.$ac_ext"
7239 < case "(($ac_try" in
7240 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7241 <  *) ac_try_echo=$ac_try;;
7242 < esac
7243 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7244 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7245 <  ac_status=$?
7246 <  grep -v '^ *+' conftest.er1 >conftest.err
7247 <  rm -f conftest.er1
7248 <  cat conftest.err >&5
7249 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 <  (exit $ac_status); } >/dev/null && {
7251 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7252 <         test ! -s conftest.err
7253 <       }; then
7254 <  ac_header_preproc=yes
7255 < else
7256 <  echo "$as_me: failed program was:" >&5
7257 < sed 's/^/| /' conftest.$ac_ext >&5
7258 <
7259 <  ac_header_preproc=no
7260 < fi
7261 <
7262 < rm -rf conftest.err conftest.$ac_ext
7263 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7264 < echo "${ECHO_T}$ac_header_preproc" >&6; }
7265 <
7266 < # So?  What about this header?
7267 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7268 <  yes:no: )
7269 <    { echo "$as_me:$LINENO: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
7270 < echo "$as_me: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7271 <    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the compiler's result" >&5
7272 < echo "$as_me: WARNING: fftw.h: proceeding with the compiler's result" >&2;}
7273 <    ac_header_preproc=yes
7274 <    ;;
7275 <  no:yes:* )
7276 <    { echo "$as_me:$LINENO: WARNING: fftw.h: present but cannot be compiled" >&5
7277 < echo "$as_me: WARNING: fftw.h: present but cannot be compiled" >&2;}
7278 <    { echo "$as_me:$LINENO: WARNING: fftw.h:     check for missing prerequisite headers?" >&5
7279 < echo "$as_me: WARNING: fftw.h:     check for missing prerequisite headers?" >&2;}
7280 <    { echo "$as_me:$LINENO: WARNING: fftw.h: see the Autoconf documentation" >&5
7281 < echo "$as_me: WARNING: fftw.h: see the Autoconf documentation" >&2;}
7282 <    { echo "$as_me:$LINENO: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&5
7283 < echo "$as_me: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7284 <    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5
7285 < echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;}
7286 <    { echo "$as_me:$LINENO: WARNING: fftw.h: in the future, the compiler will take precedence" >&5
7287 < echo "$as_me: WARNING: fftw.h: in the future, the compiler will take precedence" >&2;}
7288 <    ( cat <<\_ASBOX
7289 < ## ------------------------------ ##
7290 < ## Report this to gezelter@nd.edu ##
7291 < ## ------------------------------ ##
7292 < _ASBOX
7293 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
7294 <    ;;
7295 < esac
7296 < { echo "$as_me:$LINENO: checking for fftw.h" >&5
7297 < echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6; }
7298 < if test "${ac_cv_header_fftw_h+set}" = set; then
7299 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7300 < else
7301 <  ac_cv_header_fftw_h=$ac_header_preproc
7302 < fi
7303 < { echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
7304 < echo "${ECHO_T}$ac_cv_header_fftw_h" >&6; }
7305 <
7306 < fi
7307 < if test $ac_cv_header_fftw_h = yes; then
7308 <  fftw_cv_fftw_h=yes
7309 < else
7310 <  fftw_cv_fftw_h=no
7311 < fi
7312 <
7313 <
7314 <        if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
7315 <          { echo "$as_me:$LINENO: checking for fftwnd_one in -ldfftw" >&5
7316 < echo $ECHO_N "checking for fftwnd_one in -ldfftw... $ECHO_C" >&6; }
7317 < if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then
7318 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7319 < else
7320 <  ac_check_lib_save_LIBS=$LIBS
7321 < LIBS="-ldfftw  $LIBS"
7322 < cat >conftest.$ac_ext <<_ACEOF
7323 < /* confdefs.h.  */
7324 < _ACEOF
7325 < cat confdefs.h >>conftest.$ac_ext
7326 < cat >>conftest.$ac_ext <<_ACEOF
7327 < /* end confdefs.h.  */
7328 <
7329 < /* Override any GCC internal prototype to avoid an error.
7330 <   Use char because int might match the return type of a GCC
7331 <   builtin and then its argument prototype would still apply.  */
7332 < #ifdef __cplusplus
7333 < extern "C"
7334 < #endif
7335 < char fftwnd_one ();
7336 < #ifdef FC_DUMMY_MAIN
7337 < #ifndef FC_DUMMY_MAIN_EQ_F77
7338 < #  ifdef __cplusplus
7339 <     extern "C"
7340 < #  endif
7341 <   int FC_DUMMY_MAIN() { return 1; }
7342 < #endif
7343 < #endif
7344 < int
7345 < main ()
7346 < {
7347 < return fftwnd_one ();
7348 <  ;
7349 <  return 0;
7350 < }
7351 < _ACEOF
7352 < rm -rf conftest.$ac_objext conftest$ac_exeext
7353 < if { (ac_try="$ac_link"
7354 < case "(($ac_try" in
7355 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 <  *) ac_try_echo=$ac_try;;
7357 < esac
7358 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 <  (eval "$ac_link") 2>conftest.er1
7360 <  ac_status=$?
7361 <  grep -v '^ *+' conftest.er1 >conftest.err
7362 <  rm -f conftest.er1
7363 <  cat conftest.err >&5
7364 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 <  (exit $ac_status); } && {
7366 <         test -z "$ac_c_werror_flag" ||
7367 <         test ! -s conftest.err
7368 <       } && test -s conftest$ac_exeext &&
7369 <       $as_test_x conftest$ac_exeext; then
7370 <  ac_cv_lib_dfftw_fftwnd_one=yes
7371 < else
7372 <  echo "$as_me: failed program was:" >&5
7373 < sed 's/^/| /' conftest.$ac_ext >&5
7374 <
7375 <        ac_cv_lib_dfftw_fftwnd_one=no
7376 < fi
7377 <
7378 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7379 <      conftest$ac_exeext conftest.$ac_ext
7380 < LIBS=$ac_check_lib_save_LIBS
7381 < fi
7382 < { echo "$as_me:$LINENO: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
7383 < echo "${ECHO_T}$ac_cv_lib_dfftw_fftwnd_one" >&6; }
7384 < if test $ac_cv_lib_dfftw_fftwnd_one = yes; then
7385 <  fftw_cv_libdfftw=yes
7386 < else
7387 <  fftw_cv_libdfftw=no
7388 < fi
7389 <
7390 <          if test "${ac_cv_header_dfftw_h+set}" = set; then
7391 <  { echo "$as_me:$LINENO: checking for dfftw.h" >&5
7392 < echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6; }
7393 < if test "${ac_cv_header_dfftw_h+set}" = set; then
7394 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7395 < fi
7396 < { echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5
7397 < echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6; }
7398 < else
7399 <  # Is the header compilable?
7400 < { echo "$as_me:$LINENO: checking dfftw.h usability" >&5
7401 < echo $ECHO_N "checking dfftw.h usability... $ECHO_C" >&6; }
7402 < cat >conftest.$ac_ext <<_ACEOF
7403 < /* confdefs.h.  */
7404 < _ACEOF
7405 < cat confdefs.h >>conftest.$ac_ext
7406 < cat >>conftest.$ac_ext <<_ACEOF
7407 < /* end confdefs.h.  */
7408 < $ac_includes_default
7409 < #include <dfftw.h>
7410 < _ACEOF
7411 < rm -rf conftest.$ac_objext
7412 < if { (ac_try="$ac_compile"
7413 < case "(($ac_try" in
7414 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 <  *) ac_try_echo=$ac_try;;
7416 < esac
7417 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 <  (eval "$ac_compile") 2>conftest.er1
7419 <  ac_status=$?
7420 <  grep -v '^ *+' conftest.er1 >conftest.err
7421 <  rm -f conftest.er1
7422 <  cat conftest.err >&5
7423 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 <  (exit $ac_status); } && {
7425 <         test -z "$ac_c_werror_flag" ||
7426 <         test ! -s conftest.err
7427 <       } && test -s conftest.$ac_objext; then
7428 <  ac_header_compiler=yes
7429 < else
7430 <  echo "$as_me: failed program was:" >&5
7431 < sed 's/^/| /' conftest.$ac_ext >&5
7432 <
7433 <        ac_header_compiler=no
7434 < fi
7435 <
7436 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7438 < echo "${ECHO_T}$ac_header_compiler" >&6; }
7439 <
7440 < # Is the header present?
7441 < { echo "$as_me:$LINENO: checking dfftw.h presence" >&5
7442 < echo $ECHO_N "checking dfftw.h presence... $ECHO_C" >&6; }
7443 < cat >conftest.$ac_ext <<_ACEOF
7444 < /* confdefs.h.  */
7445 < _ACEOF
7446 < cat confdefs.h >>conftest.$ac_ext
7447 < cat >>conftest.$ac_ext <<_ACEOF
7448 < /* end confdefs.h.  */
7449 < #include <dfftw.h>
7450 < _ACEOF
7451 < if { (ac_try="$ac_cpp conftest.$ac_ext"
7452 < case "(($ac_try" in
7453 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454 <  *) ac_try_echo=$ac_try;;
7455 < esac
7456 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7457 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7458 <  ac_status=$?
7459 <  grep -v '^ *+' conftest.er1 >conftest.err
7460 <  rm -f conftest.er1
7461 <  cat conftest.err >&5
7462 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 <  (exit $ac_status); } >/dev/null && {
7464 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7465 <         test ! -s conftest.err
7466 <       }; then
7467 <  ac_header_preproc=yes
7468 < else
7469 <  echo "$as_me: failed program was:" >&5
7470 < sed 's/^/| /' conftest.$ac_ext >&5
7471 <
7472 <  ac_header_preproc=no
7473 < fi
7474 <
7475 < rm -rf conftest.err conftest.$ac_ext
7476 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7477 < echo "${ECHO_T}$ac_header_preproc" >&6; }
7478 <
7479 < # So?  What about this header?
7480 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7481 <  yes:no: )
7482 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
7483 < echo "$as_me: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7484 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the compiler's result" >&5
7485 < echo "$as_me: WARNING: dfftw.h: proceeding with the compiler's result" >&2;}
7486 <    ac_header_preproc=yes
7487 <    ;;
7488 <  no:yes:* )
7489 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: present but cannot be compiled" >&5
7490 < echo "$as_me: WARNING: dfftw.h: present but cannot be compiled" >&2;}
7491 <    { echo "$as_me:$LINENO: WARNING: dfftw.h:     check for missing prerequisite headers?" >&5
7492 < echo "$as_me: WARNING: dfftw.h:     check for missing prerequisite headers?" >&2;}
7493 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: see the Autoconf documentation" >&5
7494 < echo "$as_me: WARNING: dfftw.h: see the Autoconf documentation" >&2;}
7495 <    { echo "$as_me:$LINENO: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&5
7496 < echo "$as_me: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7497 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the preprocessor's result" >&5
7498 < echo "$as_me: WARNING: dfftw.h: proceeding with the preprocessor's result" >&2;}
7499 <    { echo "$as_me:$LINENO: WARNING: dfftw.h: in the future, the compiler will take precedence" >&5
7500 < echo "$as_me: WARNING: dfftw.h: in the future, the compiler will take precedence" >&2;}
7501 <    ( cat <<\_ASBOX
7502 < ## ------------------------------ ##
7503 < ## Report this to gezelter@nd.edu ##
7504 < ## ------------------------------ ##
7505 < _ASBOX
7506 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
7507 <    ;;
7508 < esac
7509 < { echo "$as_me:$LINENO: checking for dfftw.h" >&5
7510 < echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6; }
7511 < if test "${ac_cv_header_dfftw_h+set}" = set; then
7512 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7513 < else
7514 <  ac_cv_header_dfftw_h=$ac_header_preproc
7515 < fi
7516 < { echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5
7517 < echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6; }
7518 <
7519 < fi
7520 < if test $ac_cv_header_dfftw_h = yes; then
7521 <  fftw_cv_dfftw_h=yes
7522 < else
7523 <  fftw_cv_dfftw_h=no
7524 < fi
7525 <
7526 <
7527 <        fi
7528 <      fi
7529 <      ac_ext=c
7530 < ac_cpp='$CPP $CPPFLAGS'
7531 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7532 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7533 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7534 <
7535 <      if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"; then
7536 <
7537 < cat >>confdefs.h <<\_ACEOF
7538 < #define HAVE_FFTW3_H 1
7539 < _ACEOF
7540 <
7541 <        FFTW_INC_DIR="${FFTW_HOME}/include"
7542 <        FFTW_LIB_DIR="${FFTW_HOME}/lib"
7543 <        FFTW_LIBS="-lfftw3"
7544 <      else
7545 <        if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"; then
7546 <
7547 < cat >>confdefs.h <<\_ACEOF
7548 < #define HAVE_FFTW_H 1
7549 < _ACEOF
7550 <
7551 <          FFTW_INC_DIR="${FFTW_HOME}/include"
7552 <          FFTW_LIB_DIR="${FFTW_HOME}/lib"
7553 <          FFTW_LIBS="-lfftw"
7554 <        else
7555 <          if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"; then
7556 <
7557 < cat >>confdefs.h <<\_ACEOF
7558 < #define HAVE_DFFTW_H 1
7559 < _ACEOF
7560 <
7561 <            FFTW_INC_DIR="${FFTW_HOME}/include"
7562 <            FFTW_LIB_DIR="${FFTW_HOME}/lib"
7563 <            FFTW_LIBS="-ldfftw"
7564 <          else
7565 <            { echo "$as_me:$LINENO: checking fftw in ${FFTW_HOME}" >&5
7566 < echo $ECHO_N "checking fftw in ${FFTW_HOME}... $ECHO_C" >&6; }
7567 <            FFTW_INC_DIR=
7568 <            FFTW_LIB_DIR=
7569 <            FFTW_LIBS=
7570 <            LDFLAGS="$FFTW_OLD_LDFLAGS"
7571 <            CPPFLAGS="$FFTW_OLD_CPPFLAGS"
7572 <            { echo "$as_me:$LINENO: result: failed" >&5
7573 < echo "${ECHO_T}failed" >&6; }
7574 <            echo ""
7575 <            echo "*********************************************************"
7576 <            echo "* WARNING: Could not find a working FFTW installation   *"
7577 <            echo "* If you need the staticProps program to be able to     *"
7578 <            echo "* compute undulation spectra, be sure to specify a      *"
7579 <            echo "* valid fftw installation with --with-fftw=DIR          *"
7580 <            echo "*                                                       *"
7581 <            echo "* OOPSE will still work without fftw installed.         *"
7582 <            echo "*********************************************************"
7583 <            echo ""
7584 <          fi
7585 <        fi
7586 <      fi
7587 <
7588 <
7589 <
7590 <    fi
7591 <  fi
7592 < fi
7593 <
7594 <
7595 <
7596 < # Checks for header files.
7597 < { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7598 < echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7599 < if test "${ac_cv_header_stdc+set}" = set; then
7600 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7601 < else
7602 <  cat >conftest.$ac_ext <<_ACEOF
7603 < /* confdefs.h.  */
7604 < _ACEOF
7605 < cat confdefs.h >>conftest.$ac_ext
7606 < cat >>conftest.$ac_ext <<_ACEOF
7607 < /* end confdefs.h.  */
7608 < #include <stdlib.h>
7609 < #include <stdarg.h>
7610 < #include <string.h>
7611 < #include <float.h>
7612 <
7613 < #ifdef FC_DUMMY_MAIN
7614 < #ifndef FC_DUMMY_MAIN_EQ_F77
7615 < #  ifdef __cplusplus
7616 <     extern "C"
7617 < #  endif
7618 <   int FC_DUMMY_MAIN() { return 1; }
7619 < #endif
7620 < #endif
7621 < int
7622 < main ()
7623 < {
7624 <
7625 <  ;
7626 <  return 0;
7627 < }
7628 < _ACEOF
7629 < rm -rf conftest.$ac_objext
7630 < if { (ac_try="$ac_compile"
7631 < case "(($ac_try" in
7632 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 <  *) ac_try_echo=$ac_try;;
7634 < esac
7635 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 <  (eval "$ac_compile") 2>conftest.er1
7637 <  ac_status=$?
7638 <  grep -v '^ *+' conftest.er1 >conftest.err
7639 <  rm -f conftest.er1
7640 <  cat conftest.err >&5
7641 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 <  (exit $ac_status); } && {
7643 <         test -z "$ac_c_werror_flag" ||
7644 <         test ! -s conftest.err
7645 <       } && test -s conftest.$ac_objext; then
7646 <  ac_cv_header_stdc=yes
7647 < else
7648 <  echo "$as_me: failed program was:" >&5
7649 < sed 's/^/| /' conftest.$ac_ext >&5
7650 <
7651 <        ac_cv_header_stdc=no
7652 < fi
7653 <
7654 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7655 <
7656 < if test $ac_cv_header_stdc = yes; then
7657 <  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7658 <  cat >conftest.$ac_ext <<_ACEOF
7659 < /* confdefs.h.  */
7660 < _ACEOF
7661 < cat confdefs.h >>conftest.$ac_ext
7662 < cat >>conftest.$ac_ext <<_ACEOF
7663 < /* end confdefs.h.  */
7664 < #include <string.h>
7665 <
7666 < _ACEOF
7667 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7668 <  $EGREP "memchr" >/dev/null 2>&1; then
7669 <  :
7670 < else
7671 <  ac_cv_header_stdc=no
7672 < fi
7673 < rm -rf conftest*
7674 <
7675 < fi
7676 <
7677 < if test $ac_cv_header_stdc = yes; then
7678 <  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7679 <  cat >conftest.$ac_ext <<_ACEOF
7680 < /* confdefs.h.  */
7681 < _ACEOF
7682 < cat confdefs.h >>conftest.$ac_ext
7683 < cat >>conftest.$ac_ext <<_ACEOF
7684 < /* end confdefs.h.  */
7685 < #include <stdlib.h>
7686 <
7687 < _ACEOF
7688 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7689 <  $EGREP "free" >/dev/null 2>&1; then
7690 <  :
7691 < else
7692 <  ac_cv_header_stdc=no
7693 < fi
7694 < rm -rf conftest*
7695 <
7696 < fi
7697 <
7698 < if test $ac_cv_header_stdc = yes; then
7699 <  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7700 <  if test "$cross_compiling" = yes; then
7701 <  :
7702 < else
7703 <  cat >conftest.$ac_ext <<_ACEOF
7704 < /* confdefs.h.  */
7705 < _ACEOF
7706 < cat confdefs.h >>conftest.$ac_ext
7707 < cat >>conftest.$ac_ext <<_ACEOF
7708 < /* end confdefs.h.  */
7709 < #include <ctype.h>
7710 < #include <stdlib.h>
7711 < #if ((' ' & 0x0FF) == 0x020)
7712 < # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7713 < # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7714 < #else
7715 < # define ISLOWER(c) \
7716 <                   (('a' <= (c) && (c) <= 'i') \
7717 <                     || ('j' <= (c) && (c) <= 'r') \
7718 <                     || ('s' <= (c) && (c) <= 'z'))
7719 < # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7720 < #endif
7721 <
7722 < #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7723 < int
7724 < main ()
7725 < {
7726 <  int i;
7727 <  for (i = 0; i < 256; i++)
7728 <    if (XOR (islower (i), ISLOWER (i))
7729 <        || toupper (i) != TOUPPER (i))
7730 <      return 2;
7731 <  return 0;
7732 < }
7733 < _ACEOF
7734 < rm -rf conftest$ac_exeext
7735 < if { (ac_try="$ac_link"
7736 < case "(($ac_try" in
7737 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738 <  *) ac_try_echo=$ac_try;;
7739 < esac
7740 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741 <  (eval "$ac_link") 2>&5
7742 <  ac_status=$?
7743 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7745 <  { (case "(($ac_try" in
7746 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7747 <  *) ac_try_echo=$ac_try;;
7748 < esac
7749 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7750 <  (eval "$ac_try") 2>&5
7751 <  ac_status=$?
7752 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 <  (exit $ac_status); }; }; then
7754 <  :
7755 < else
7756 <  echo "$as_me: program exited with status $ac_status" >&5
7757 < echo "$as_me: failed program was:" >&5
7758 < sed 's/^/| /' conftest.$ac_ext >&5
7759 <
7760 < ( exit $ac_status )
7761 < ac_cv_header_stdc=no
7762 < fi
7763 < rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7764 < fi
7765 <
7766 <
7767 < fi
7768 < fi
7769 < { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7770 < echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7771 < if test $ac_cv_header_stdc = yes; then
7772 <
7773 < cat >>confdefs.h <<\_ACEOF
7774 < #define STDC_HEADERS 1
7775 < _ACEOF
7776 <
7777 < fi
7778 <
7779 <
7780 <
7781 <
7782 <
7783 <
7784 <
7785 <
7786 <
7787 <
7788 <
7789 <
7790 <
7791 <
7792 <
7793 <
7794 <
7795 <
7796 <
7797 <
7798 <
7799 <
7800 <
7801 <
7802 <
7803 <
7804 < for ac_header in conio.h dlfcn.h fstream.h iostream.h libintl.h limits.h machine/hal_sysinfo.h math.h stddef.h stdio.h stdlib.h string.h strings.h strstream.h sys/param.h sys/pstat.h sys/sysmp.h sys/sysctl.h sys/sysinfo.h sys/systemcfg.h sys/table.h sys/time.h time.h unistd.h zlib.h
7805 < do
7806 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7807 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7808 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7809 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7810 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7811 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7812 < fi
7813 < ac_res=`eval echo '${'$as_ac_Header'}'`
7814 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
7815 < echo "${ECHO_T}$ac_res" >&6; }
7816 < else
7817 <  # Is the header compilable?
7818 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7819 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7820 < cat >conftest.$ac_ext <<_ACEOF
7821 < /* confdefs.h.  */
7822 < _ACEOF
7823 < cat confdefs.h >>conftest.$ac_ext
7824 < cat >>conftest.$ac_ext <<_ACEOF
7825 < /* end confdefs.h.  */
7826 < $ac_includes_default
7827 < #include <$ac_header>
7828 < _ACEOF
7829 < rm -rf conftest.$ac_objext
7830 < if { (ac_try="$ac_compile"
7831 < case "(($ac_try" in
7832 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 <  *) ac_try_echo=$ac_try;;
7834 < esac
7835 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 <  (eval "$ac_compile") 2>conftest.er1
7837 <  ac_status=$?
7838 <  grep -v '^ *+' conftest.er1 >conftest.err
7839 <  rm -f conftest.er1
7840 <  cat conftest.err >&5
7841 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 <  (exit $ac_status); } && {
7843 <         test -z "$ac_c_werror_flag" ||
7844 <         test ! -s conftest.err
7845 <       } && test -s conftest.$ac_objext; then
7846 <  ac_header_compiler=yes
7847 < else
7848 <  echo "$as_me: failed program was:" >&5
7849 < sed 's/^/| /' conftest.$ac_ext >&5
7850 <
7851 <        ac_header_compiler=no
7852 < fi
7853 <
7854 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
7855 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7856 < echo "${ECHO_T}$ac_header_compiler" >&6; }
7857 <
7858 < # Is the header present?
7859 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7860 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7861 < cat >conftest.$ac_ext <<_ACEOF
7862 < /* confdefs.h.  */
7863 < _ACEOF
7864 < cat confdefs.h >>conftest.$ac_ext
7865 < cat >>conftest.$ac_ext <<_ACEOF
7866 < /* end confdefs.h.  */
7867 < #include <$ac_header>
7868 < _ACEOF
7869 < if { (ac_try="$ac_cpp conftest.$ac_ext"
7870 < case "(($ac_try" in
7871 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 <  *) ac_try_echo=$ac_try;;
7873 < esac
7874 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7876 <  ac_status=$?
7877 <  grep -v '^ *+' conftest.er1 >conftest.err
7878 <  rm -f conftest.er1
7879 <  cat conftest.err >&5
7880 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 <  (exit $ac_status); } >/dev/null && {
7882 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7883 <         test ! -s conftest.err
7884 <       }; then
7885 <  ac_header_preproc=yes
7886 < else
7887 <  echo "$as_me: failed program was:" >&5
7888 < sed 's/^/| /' conftest.$ac_ext >&5
7889 <
7890 <  ac_header_preproc=no
7891 < fi
7892 <
7893 < rm -rf conftest.err conftest.$ac_ext
7894 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7895 < echo "${ECHO_T}$ac_header_preproc" >&6; }
7896 <
7897 < # So?  What about this header?
7898 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7899 <  yes:no: )
7900 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7901 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7902 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7903 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7904 <    ac_header_preproc=yes
7905 <    ;;
7906 <  no:yes:* )
7907 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7908 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7909 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7910 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7911 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7912 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7913 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7914 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7915 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7916 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7917 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7918 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7919 <    ( cat <<\_ASBOX
7920 < ## ------------------------------ ##
7921 < ## Report this to gezelter@nd.edu ##
7922 < ## ------------------------------ ##
7923 < _ASBOX
7924 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
7925 <    ;;
7926 < esac
7927 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
7928 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7929 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7930 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7931 < else
7932 <  eval "$as_ac_Header=\$ac_header_preproc"
7933 < fi
7934 < ac_res=`eval echo '${'$as_ac_Header'}'`
7935 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
7936 < echo "${ECHO_T}$ac_res" >&6; }
7937 <
7938 < fi
7939 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
7940 <  cat >>confdefs.h <<_ACEOF
7941 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7942 < _ACEOF
7943 <
7944 < fi
7945 <
7946 < done
7947 <
7948 <
7949 < # Checks for typedefs, structures, and compiler characteristics.
7950 < { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7951 < echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
7952 < if test "${ac_cv_header_stdbool_h+set}" = set; then
7953 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7954 < else
7955 <  cat >conftest.$ac_ext <<_ACEOF
7956 < /* confdefs.h.  */
7957 < _ACEOF
7958 < cat confdefs.h >>conftest.$ac_ext
7959 < cat >>conftest.$ac_ext <<_ACEOF
7960 < /* end confdefs.h.  */
7961 <
7962 < #include <stdbool.h>
7963 < #ifndef bool
7964 < "error: bool is not defined"
7965 < #endif
7966 < #ifndef false
7967 < "error: false is not defined"
7968 < #endif
7969 < #if false
7970 < "error: false is not 0"
7971 < #endif
7972 < #ifndef true
7973 < "error: true is not defined"
7974 < #endif
7975 < #if true != 1
7976 < "error: true is not 1"
7977 < #endif
7978 < #ifndef __bool_true_false_are_defined
7979 < "error: __bool_true_false_are_defined is not defined"
7980 < #endif
7981 <
7982 <        struct s { _Bool s: 1; _Bool t; } s;
7983 <
7984 <        char a[true == 1 ? 1 : -1];
7985 <        char b[false == 0 ? 1 : -1];
7986 <        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7987 <        char d[(bool) 0.5 == true ? 1 : -1];
7988 <        bool e = &s;
7989 <        char f[(_Bool) 0.0 == false ? 1 : -1];
7990 <        char g[true];
7991 <        char h[sizeof (_Bool)];
7992 <        char i[sizeof s.t];
7993 <        enum { j = false, k = true, l = false * true, m = true * 256 };
7994 <        _Bool n[m];
7995 <        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7996 <        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7997 < #       if defined __xlc__ || defined __GNUC__
7998 <         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7999 <            reported by James Lemley on 2005-10-05; see
8000 <            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8001 <            This test is not quite right, since xlc is allowed to
8002 <            reject this program, as the initializer for xlcbug is
8003 <            not one of the forms that C requires support for.
8004 <            However, doing the test right would require a runtime
8005 <            test, and that would make cross-compilation harder.
8006 <            Let us hope that IBM fixes the xlc bug, and also adds
8007 <            support for this kind of constant expression.  In the
8008 <            meantime, this test will reject xlc, which is OK, since
8009 <            our stdbool.h substitute should suffice.  We also test
8010 <            this with GCC, where it should work, to detect more
8011 <            quickly whether someone messes up the test in the
8012 <            future.  */
8013 <         char digs[] = "0123456789";
8014 <         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8015 < #       endif
8016 <        /* Catch a bug in an HP-UX C compiler.  See
8017 <           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8018 <           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8019 <         */
8020 <        _Bool q = true;
8021 <        _Bool *pq = &q;
8022 <
8023 < #ifdef FC_DUMMY_MAIN
8024 < #ifndef FC_DUMMY_MAIN_EQ_F77
8025 < #  ifdef __cplusplus
8026 <     extern "C"
8027 < #  endif
8028 <   int FC_DUMMY_MAIN() { return 1; }
8029 < #endif
8030 < #endif
8031 < int
8032 < main ()
8033 < {
8034 <
8035 <        *pq |= q;
8036 <        *pq |= ! q;
8037 <        /* Refer to every declared value, to avoid compiler optimizations.  */
8038 <        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8039 <                + !m + !n + !o + !p + !q + !pq);
8040 <
8041 <  ;
8042 <  return 0;
8043 < }
8044 < _ACEOF
8045 < rm -rf conftest.$ac_objext
8046 < if { (ac_try="$ac_compile"
8047 < case "(($ac_try" in
8048 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 <  *) ac_try_echo=$ac_try;;
8050 < esac
8051 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 <  (eval "$ac_compile") 2>conftest.er1
8053 <  ac_status=$?
8054 <  grep -v '^ *+' conftest.er1 >conftest.err
8055 <  rm -f conftest.er1
8056 <  cat conftest.err >&5
8057 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 <  (exit $ac_status); } && {
8059 <         test -z "$ac_c_werror_flag" ||
8060 <         test ! -s conftest.err
8061 <       } && test -s conftest.$ac_objext; then
8062 <  ac_cv_header_stdbool_h=yes
8063 < else
8064 <  echo "$as_me: failed program was:" >&5
8065 < sed 's/^/| /' conftest.$ac_ext >&5
8066 <
8067 <        ac_cv_header_stdbool_h=no
8068 < fi
8069 <
8070 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8071 < fi
8072 < { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8073 < echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
8074 < { echo "$as_me:$LINENO: checking for _Bool" >&5
8075 < echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
8076 < if test "${ac_cv_type__Bool+set}" = set; then
8077 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8078 < else
8079 <  cat >conftest.$ac_ext <<_ACEOF
8080 < /* confdefs.h.  */
8081 < _ACEOF
8082 < cat confdefs.h >>conftest.$ac_ext
8083 < cat >>conftest.$ac_ext <<_ACEOF
8084 < /* end confdefs.h.  */
8085 < $ac_includes_default
8086 < typedef _Bool ac__type_new_;
8087 < #ifdef FC_DUMMY_MAIN
8088 < #ifndef FC_DUMMY_MAIN_EQ_F77
8089 < #  ifdef __cplusplus
8090 <     extern "C"
8091 < #  endif
8092 <   int FC_DUMMY_MAIN() { return 1; }
8093 < #endif
8094 < #endif
8095 < int
8096 < main ()
8097 < {
8098 < if ((ac__type_new_ *) 0)
8099 <  return 0;
8100 < if (sizeof (ac__type_new_))
8101 <  return 0;
8102 <  ;
8103 <  return 0;
8104 < }
8105 < _ACEOF
8106 < rm -rf conftest.$ac_objext
8107 < if { (ac_try="$ac_compile"
8108 < case "(($ac_try" in
8109 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 <  *) ac_try_echo=$ac_try;;
8111 < esac
8112 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 <  (eval "$ac_compile") 2>conftest.er1
8114 <  ac_status=$?
8115 <  grep -v '^ *+' conftest.er1 >conftest.err
8116 <  rm -f conftest.er1
8117 <  cat conftest.err >&5
8118 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 <  (exit $ac_status); } && {
8120 <         test -z "$ac_c_werror_flag" ||
8121 <         test ! -s conftest.err
8122 <       } && test -s conftest.$ac_objext; then
8123 <  ac_cv_type__Bool=yes
8124 < else
8125 <  echo "$as_me: failed program was:" >&5
8126 < sed 's/^/| /' conftest.$ac_ext >&5
8127 <
8128 <        ac_cv_type__Bool=no
8129 < fi
8130 <
8131 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 < fi
8133 < { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8134 < echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
8135 < if test $ac_cv_type__Bool = yes; then
8136 <
8137 < cat >>confdefs.h <<_ACEOF
8138 < #define HAVE__BOOL 1
8139 < _ACEOF
8140 <
8141 <
8142 < fi
8143 <
8144 < if test $ac_cv_header_stdbool_h = yes; then
8145 <
8146 < cat >>confdefs.h <<\_ACEOF
8147 < #define HAVE_STDBOOL_H 1
8148 < _ACEOF
8149 <
8150 < fi
8151 <
8152 < { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8153 < echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8154 < if test "${ac_cv_c_const+set}" = set; then
8155 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8156 < else
8157 <  cat >conftest.$ac_ext <<_ACEOF
8158 < /* confdefs.h.  */
8159 < _ACEOF
8160 < cat confdefs.h >>conftest.$ac_ext
8161 < cat >>conftest.$ac_ext <<_ACEOF
8162 < /* end confdefs.h.  */
8163 <
8164 < #ifdef FC_DUMMY_MAIN
8165 < #ifndef FC_DUMMY_MAIN_EQ_F77
8166 < #  ifdef __cplusplus
8167 <     extern "C"
8168 < #  endif
8169 <   int FC_DUMMY_MAIN() { return 1; }
8170 < #endif
8171 < #endif
8172 < int
8173 < main ()
8174 < {
8175 < /* FIXME: Include the comments suggested by Paul. */
8176 < #ifndef __cplusplus
8177 <  /* Ultrix mips cc rejects this.  */
8178 <  typedef int charset[2];
8179 <  const charset cs;
8180 <  /* SunOS 4.1.1 cc rejects this.  */
8181 <  char const *const *pcpcc;
8182 <  char **ppc;
8183 <  /* NEC SVR4.0.2 mips cc rejects this.  */
8184 <  struct point {int x, y;};
8185 <  static struct point const zero = {0,0};
8186 <  /* AIX XL C 1.02.0.0 rejects this.
8187 <     It does not let you subtract one const X* pointer from another in
8188 <     an arm of an if-expression whose if-part is not a constant
8189 <     expression */
8190 <  const char *g = "string";
8191 <  pcpcc = &g + (g ? g-g : 0);
8192 <  /* HPUX 7.0 cc rejects these. */
8193 <  ++pcpcc;
8194 <  ppc = (char**) pcpcc;
8195 <  pcpcc = (char const *const *) ppc;
8196 <  { /* SCO 3.2v4 cc rejects this.  */
8197 <    char *t;
8198 <    char const *s = 0 ? (char *) 0 : (char const *) 0;
8199 <
8200 <    *t++ = 0;
8201 <    if (s) return 0;
8202 <  }
8203 <  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8204 <    int x[] = {25, 17};
8205 <    const int *foo = &x[0];
8206 <    ++foo;
8207 <  }
8208 <  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8209 <    typedef const int *iptr;
8210 <    iptr p = 0;
8211 <    ++p;
8212 <  }
8213 <  { /* AIX XL C 1.02.0.0 rejects this saying
8214 <       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8215 <    struct s { int j; const int *ap[3]; };
8216 <    struct s *b; b->j = 5;
8217 <  }
8218 <  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8219 <    const int foo = 10;
8220 <    if (!foo) return 0;
8221 <  }
8222 <  return !cs[0] && !zero.x;
8223 < #endif
8224 <
8225 <  ;
8226 <  return 0;
8227 < }
8228 < _ACEOF
8229 < rm -rf conftest.$ac_objext
8230 < if { (ac_try="$ac_compile"
8231 < case "(($ac_try" in
8232 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233 <  *) ac_try_echo=$ac_try;;
8234 < esac
8235 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236 <  (eval "$ac_compile") 2>conftest.er1
8237 <  ac_status=$?
8238 <  grep -v '^ *+' conftest.er1 >conftest.err
8239 <  rm -f conftest.er1
8240 <  cat conftest.err >&5
8241 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 <  (exit $ac_status); } && {
8243 <         test -z "$ac_c_werror_flag" ||
8244 <         test ! -s conftest.err
8245 <       } && test -s conftest.$ac_objext; then
8246 <  ac_cv_c_const=yes
8247 < else
8248 <  echo "$as_me: failed program was:" >&5
8249 < sed 's/^/| /' conftest.$ac_ext >&5
8250 <
8251 <        ac_cv_c_const=no
8252 < fi
8253 <
8254 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8255 < fi
8256 < { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8257 < echo "${ECHO_T}$ac_cv_c_const" >&6; }
8258 < if test $ac_cv_c_const = no; then
8259 <
8260 < cat >>confdefs.h <<\_ACEOF
8261 < #define const
8262 < _ACEOF
8263 <
8264 < fi
8265 <
8266 < { echo "$as_me:$LINENO: checking for inline" >&5
8267 < echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8268 < if test "${ac_cv_c_inline+set}" = set; then
8269 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8270 < else
8271 <  ac_cv_c_inline=no
8272 < for ac_kw in inline __inline__ __inline; do
8273 <  cat >conftest.$ac_ext <<_ACEOF
8274 < /* confdefs.h.  */
8275 < _ACEOF
8276 < cat confdefs.h >>conftest.$ac_ext
8277 < cat >>conftest.$ac_ext <<_ACEOF
8278 < /* end confdefs.h.  */
8279 < #ifndef __cplusplus
8280 < typedef int foo_t;
8281 < static $ac_kw foo_t static_foo () {return 0; }
8282 < $ac_kw foo_t foo () {return 0; }
8283 < #endif
8284 <
8285 < _ACEOF
8286 < rm -rf conftest.$ac_objext
8287 < if { (ac_try="$ac_compile"
8288 < case "(($ac_try" in
8289 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290 <  *) ac_try_echo=$ac_try;;
8291 < esac
8292 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293 <  (eval "$ac_compile") 2>conftest.er1
8294 <  ac_status=$?
8295 <  grep -v '^ *+' conftest.er1 >conftest.err
8296 <  rm -f conftest.er1
8297 <  cat conftest.err >&5
8298 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 <  (exit $ac_status); } && {
8300 <         test -z "$ac_c_werror_flag" ||
8301 <         test ! -s conftest.err
8302 <       } && test -s conftest.$ac_objext; then
8303 <  ac_cv_c_inline=$ac_kw
8304 < else
8305 <  echo "$as_me: failed program was:" >&5
8306 < sed 's/^/| /' conftest.$ac_ext >&5
8307 <
8308 <
8309 < fi
8310 <
8311 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8312 <  test "$ac_cv_c_inline" != no && break
8313 < done
8314 <
8315 < fi
8316 < { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8317 < echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8318 <
8319 <
8320 < case $ac_cv_c_inline in
8321 <  inline | yes) ;;
8322 <  *)
8323 <    case $ac_cv_c_inline in
8324 <      no) ac_val=;;
8325 <      *) ac_val=$ac_cv_c_inline;;
8326 <    esac
8327 <    cat >>confdefs.h <<_ACEOF
8328 < #ifndef __cplusplus
8329 < #define inline $ac_val
8330 < #endif
8331 < _ACEOF
8332 <    ;;
8333 < esac
8334 <
8335 < { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
8336 < echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
8337 < if test "${ac_cv_c_restrict+set}" = set; then
8338 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8339 < else
8340 <  ac_cv_c_restrict=no
8341 <   # Try the official restrict keyword, then gcc's __restrict, and
8342 <   # the less common variants.
8343 <   for ac_kw in restrict __restrict __restrict__ _Restrict; do
8344 <     cat >conftest.$ac_ext <<_ACEOF
8345 < /* confdefs.h.  */
8346 < _ACEOF
8347 < cat confdefs.h >>conftest.$ac_ext
8348 < cat >>conftest.$ac_ext <<_ACEOF
8349 < /* end confdefs.h.  */
8350 < typedef int * int_ptr;
8351 <        int foo (int_ptr $ac_kw ip) {
8352 <        return ip[0];
8353 <       }
8354 < #ifdef FC_DUMMY_MAIN
8355 < #ifndef FC_DUMMY_MAIN_EQ_F77
8356 < #  ifdef __cplusplus
8357 <     extern "C"
8358 < #  endif
8359 <   int FC_DUMMY_MAIN() { return 1; }
8360 < #endif
8361 < #endif
8362 < int
8363 < main ()
8364 < {
8365 < int s[1];
8366 <        int * $ac_kw t = s;
8367 <        t[0] = 0;
8368 <        return foo(t)
8369 <  ;
8370 <  return 0;
8371 < }
8372 < _ACEOF
8373 < rm -rf conftest.$ac_objext
8374 < if { (ac_try="$ac_compile"
8375 < case "(($ac_try" in
8376 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 <  *) ac_try_echo=$ac_try;;
8378 < esac
8379 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 <  (eval "$ac_compile") 2>conftest.er1
8381 <  ac_status=$?
8382 <  grep -v '^ *+' conftest.er1 >conftest.err
8383 <  rm -f conftest.er1
8384 <  cat conftest.err >&5
8385 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 <  (exit $ac_status); } && {
8387 <         test -z "$ac_c_werror_flag" ||
8388 <         test ! -s conftest.err
8389 <       } && test -s conftest.$ac_objext; then
8390 <  ac_cv_c_restrict=$ac_kw
8391 < else
8392 <  echo "$as_me: failed program was:" >&5
8393 < sed 's/^/| /' conftest.$ac_ext >&5
8394 <
8395 <
8396 < fi
8397 <
8398 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8399 <     test "$ac_cv_c_restrict" != no && break
8400 <   done
8401 <
8402 < fi
8403 < { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
8404 < echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
8405 < case $ac_cv_c_restrict in
8406 <   restrict) ;;
8407 <   no)
8408 < cat >>confdefs.h <<\_ACEOF
8409 < #define restrict
8410 < _ACEOF
8411 < ;;
8412 <   *)  cat >>confdefs.h <<_ACEOF
8413 < #define restrict $ac_cv_c_restrict
8414 < _ACEOF
8415 < ;;
8416 < esac
8417 <
8418 < { echo "$as_me:$LINENO: checking for size_t" >&5
8419 < echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8420 < if test "${ac_cv_type_size_t+set}" = set; then
8421 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8422 < else
8423 <  cat >conftest.$ac_ext <<_ACEOF
8424 < /* confdefs.h.  */
8425 < _ACEOF
8426 < cat confdefs.h >>conftest.$ac_ext
8427 < cat >>conftest.$ac_ext <<_ACEOF
8428 < /* end confdefs.h.  */
8429 < $ac_includes_default
8430 < typedef size_t ac__type_new_;
8431 < #ifdef FC_DUMMY_MAIN
8432 < #ifndef FC_DUMMY_MAIN_EQ_F77
8433 < #  ifdef __cplusplus
8434 <     extern "C"
8435 < #  endif
8436 <   int FC_DUMMY_MAIN() { return 1; }
8437 < #endif
8438 < #endif
8439 < int
8440 < main ()
8441 < {
8442 < if ((ac__type_new_ *) 0)
8443 <  return 0;
8444 < if (sizeof (ac__type_new_))
8445 <  return 0;
8446 <  ;
8447 <  return 0;
8448 < }
8449 < _ACEOF
8450 < rm -rf conftest.$ac_objext
8451 < if { (ac_try="$ac_compile"
8452 < case "(($ac_try" in
8453 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 <  *) ac_try_echo=$ac_try;;
8455 < esac
8456 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457 <  (eval "$ac_compile") 2>conftest.er1
8458 <  ac_status=$?
8459 <  grep -v '^ *+' conftest.er1 >conftest.err
8460 <  rm -f conftest.er1
8461 <  cat conftest.err >&5
8462 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 <  (exit $ac_status); } && {
8464 <         test -z "$ac_c_werror_flag" ||
8465 <         test ! -s conftest.err
8466 <       } && test -s conftest.$ac_objext; then
8467 <  ac_cv_type_size_t=yes
8468 < else
8469 <  echo "$as_me: failed program was:" >&5
8470 < sed 's/^/| /' conftest.$ac_ext >&5
8471 <
8472 <        ac_cv_type_size_t=no
8473 < fi
8474 <
8475 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 < fi
8477 < { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8478 < echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8479 < if test $ac_cv_type_size_t = yes; then
8480 <  :
8481 < else
8482 <
8483 < cat >>confdefs.h <<_ACEOF
8484 < #define size_t unsigned int
8485 < _ACEOF
8486 <
8487 < fi
8488 <
8489 < { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8490 < echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
8491 < if test "${ac_cv_header_time+set}" = set; then
8492 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8493 < else
8494 <  cat >conftest.$ac_ext <<_ACEOF
8495 < /* confdefs.h.  */
8496 < _ACEOF
8497 < cat confdefs.h >>conftest.$ac_ext
8498 < cat >>conftest.$ac_ext <<_ACEOF
8499 < /* end confdefs.h.  */
8500 < #include <sys/types.h>
8501 < #include <sys/time.h>
8502 < #include <time.h>
8503 <
8504 < #ifdef FC_DUMMY_MAIN
8505 < #ifndef FC_DUMMY_MAIN_EQ_F77
8506 < #  ifdef __cplusplus
8507 <     extern "C"
8508 < #  endif
8509 <   int FC_DUMMY_MAIN() { return 1; }
8510 < #endif
8511 < #endif
8512 < int
8513 < main ()
8514 < {
8515 < if ((struct tm *) 0)
8516 < return 0;
8517 <  ;
8518 <  return 0;
8519 < }
8520 < _ACEOF
8521 < rm -rf conftest.$ac_objext
8522 < if { (ac_try="$ac_compile"
8523 < case "(($ac_try" in
8524 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8525 <  *) ac_try_echo=$ac_try;;
8526 < esac
8527 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8528 <  (eval "$ac_compile") 2>conftest.er1
8529 <  ac_status=$?
8530 <  grep -v '^ *+' conftest.er1 >conftest.err
8531 <  rm -f conftest.er1
8532 <  cat conftest.err >&5
8533 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 <  (exit $ac_status); } && {
8535 <         test -z "$ac_c_werror_flag" ||
8536 <         test ! -s conftest.err
8537 <       } && test -s conftest.$ac_objext; then
8538 <  ac_cv_header_time=yes
8539 < else
8540 <  echo "$as_me: failed program was:" >&5
8541 < sed 's/^/| /' conftest.$ac_ext >&5
8542 <
8543 <        ac_cv_header_time=no
8544 < fi
8545 <
8546 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 < fi
8548 < { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8549 < echo "${ECHO_T}$ac_cv_header_time" >&6; }
8550 < if test $ac_cv_header_time = yes; then
8551 <
8552 < cat >>confdefs.h <<\_ACEOF
8553 < #define TIME_WITH_SYS_TIME 1
8554 < _ACEOF
8555 <
8556 < fi
8557 <
8558 < { echo "$as_me:$LINENO: checking for clock_t" >&5
8559 < echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
8560 < if test "${ac_cv_type_clock_t+set}" = set; then
8561 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8562 < else
8563 <  cat >conftest.$ac_ext <<_ACEOF
8564 < /* confdefs.h.  */
8565 < _ACEOF
8566 < cat confdefs.h >>conftest.$ac_ext
8567 < cat >>conftest.$ac_ext <<_ACEOF
8568 < /* end confdefs.h.  */
8569 < $ac_includes_default
8570 < typedef clock_t ac__type_new_;
8571 < #ifdef FC_DUMMY_MAIN
8572 < #ifndef FC_DUMMY_MAIN_EQ_F77
8573 < #  ifdef __cplusplus
8574 <     extern "C"
8575 < #  endif
8576 <   int FC_DUMMY_MAIN() { return 1; }
8577 < #endif
8578 < #endif
8579 < int
8580 < main ()
8581 < {
8582 < if ((ac__type_new_ *) 0)
8583 <  return 0;
8584 < if (sizeof (ac__type_new_))
8585 <  return 0;
8586 <  ;
8587 <  return 0;
8588 < }
8589 < _ACEOF
8590 < rm -rf conftest.$ac_objext
8591 < if { (ac_try="$ac_compile"
8592 < case "(($ac_try" in
8593 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 <  *) ac_try_echo=$ac_try;;
8595 < esac
8596 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 <  (eval "$ac_compile") 2>conftest.er1
8598 <  ac_status=$?
8599 <  grep -v '^ *+' conftest.er1 >conftest.err
8600 <  rm -f conftest.er1
8601 <  cat conftest.err >&5
8602 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 <  (exit $ac_status); } && {
8604 <         test -z "$ac_c_werror_flag" ||
8605 <         test ! -s conftest.err
8606 <       } && test -s conftest.$ac_objext; then
8607 <  ac_cv_type_clock_t=yes
8608 < else
8609 <  echo "$as_me: failed program was:" >&5
8610 < sed 's/^/| /' conftest.$ac_ext >&5
8611 <
8612 <        ac_cv_type_clock_t=no
8613 < fi
8614 <
8615 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 < fi
8617 < { echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5
8618 < echo "${ECHO_T}$ac_cv_type_clock_t" >&6; }
8619 < if test $ac_cv_type_clock_t = yes; then
8620 <
8621 < cat >>confdefs.h <<_ACEOF
8622 < #define HAVE_CLOCK_T 1
8623 < _ACEOF
8624 <
8625 <
8626 < fi
8627 <
8628 < { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8629 < echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8630 < if test "${ac_cv_c_const+set}" = set; then
8631 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8632 < else
8633 <  cat >conftest.$ac_ext <<_ACEOF
8634 < /* confdefs.h.  */
8635 < _ACEOF
8636 < cat confdefs.h >>conftest.$ac_ext
8637 < cat >>conftest.$ac_ext <<_ACEOF
8638 < /* end confdefs.h.  */
8639 <
8640 < #ifdef FC_DUMMY_MAIN
8641 < #ifndef FC_DUMMY_MAIN_EQ_F77
8642 < #  ifdef __cplusplus
8643 <     extern "C"
8644 < #  endif
8645 <   int FC_DUMMY_MAIN() { return 1; }
8646 < #endif
8647 < #endif
8648 < int
8649 < main ()
8650 < {
8651 < /* FIXME: Include the comments suggested by Paul. */
8652 < #ifndef __cplusplus
8653 <  /* Ultrix mips cc rejects this.  */
8654 <  typedef int charset[2];
8655 <  const charset cs;
8656 <  /* SunOS 4.1.1 cc rejects this.  */
8657 <  char const *const *pcpcc;
8658 <  char **ppc;
8659 <  /* NEC SVR4.0.2 mips cc rejects this.  */
8660 <  struct point {int x, y;};
8661 <  static struct point const zero = {0,0};
8662 <  /* AIX XL C 1.02.0.0 rejects this.
8663 <     It does not let you subtract one const X* pointer from another in
8664 <     an arm of an if-expression whose if-part is not a constant
8665 <     expression */
8666 <  const char *g = "string";
8667 <  pcpcc = &g + (g ? g-g : 0);
8668 <  /* HPUX 7.0 cc rejects these. */
8669 <  ++pcpcc;
8670 <  ppc = (char**) pcpcc;
8671 <  pcpcc = (char const *const *) ppc;
8672 <  { /* SCO 3.2v4 cc rejects this.  */
8673 <    char *t;
8674 <    char const *s = 0 ? (char *) 0 : (char const *) 0;
8675 <
8676 <    *t++ = 0;
8677 <    if (s) return 0;
8678 <  }
8679 <  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8680 <    int x[] = {25, 17};
8681 <    const int *foo = &x[0];
8682 <    ++foo;
8683 <  }
8684 <  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8685 <    typedef const int *iptr;
8686 <    iptr p = 0;
8687 <    ++p;
8688 <  }
8689 <  { /* AIX XL C 1.02.0.0 rejects this saying
8690 <       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8691 <    struct s { int j; const int *ap[3]; };
8692 <    struct s *b; b->j = 5;
8693 <  }
8694 <  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8695 <    const int foo = 10;
8696 <    if (!foo) return 0;
8697 <  }
8698 <  return !cs[0] && !zero.x;
8699 < #endif
8700 <
8701 <  ;
8702 <  return 0;
8703 < }
8704 < _ACEOF
8705 < rm -rf conftest.$ac_objext
8706 < if { (ac_try="$ac_compile"
8707 < case "(($ac_try" in
8708 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709 <  *) ac_try_echo=$ac_try;;
8710 < esac
8711 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712 <  (eval "$ac_compile") 2>conftest.er1
8713 <  ac_status=$?
8714 <  grep -v '^ *+' conftest.er1 >conftest.err
8715 <  rm -f conftest.er1
8716 <  cat conftest.err >&5
8717 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 <  (exit $ac_status); } && {
8719 <         test -z "$ac_c_werror_flag" ||
8720 <         test ! -s conftest.err
8721 <       } && test -s conftest.$ac_objext; then
8722 <  ac_cv_c_const=yes
8723 < else
8724 <  echo "$as_me: failed program was:" >&5
8725 < sed 's/^/| /' conftest.$ac_ext >&5
8726 <
8727 <        ac_cv_c_const=no
8728 < fi
8729 <
8730 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8731 < fi
8732 < { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8733 < echo "${ECHO_T}$ac_cv_c_const" >&6; }
8734 < if test $ac_cv_c_const = no; then
8735 <
8736 < cat >>confdefs.h <<\_ACEOF
8737 < #define const
8738 < _ACEOF
8739 <
8740 < fi
8741 <
8742 < { echo "$as_me:$LINENO: checking for inline" >&5
8743 < echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8744 < if test "${ac_cv_c_inline+set}" = set; then
8745 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8746 < else
8747 <  ac_cv_c_inline=no
8748 < for ac_kw in inline __inline__ __inline; do
8749 <  cat >conftest.$ac_ext <<_ACEOF
8750 < /* confdefs.h.  */
8751 < _ACEOF
8752 < cat confdefs.h >>conftest.$ac_ext
8753 < cat >>conftest.$ac_ext <<_ACEOF
8754 < /* end confdefs.h.  */
8755 < #ifndef __cplusplus
8756 < typedef int foo_t;
8757 < static $ac_kw foo_t static_foo () {return 0; }
8758 < $ac_kw foo_t foo () {return 0; }
8759 < #endif
8760 <
8761 < _ACEOF
8762 < rm -rf conftest.$ac_objext
8763 < if { (ac_try="$ac_compile"
8764 < case "(($ac_try" in
8765 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 <  *) ac_try_echo=$ac_try;;
8767 < esac
8768 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 <  (eval "$ac_compile") 2>conftest.er1
8770 <  ac_status=$?
8771 <  grep -v '^ *+' conftest.er1 >conftest.err
8772 <  rm -f conftest.er1
8773 <  cat conftest.err >&5
8774 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 <  (exit $ac_status); } && {
8776 <         test -z "$ac_c_werror_flag" ||
8777 <         test ! -s conftest.err
8778 <       } && test -s conftest.$ac_objext; then
8779 <  ac_cv_c_inline=$ac_kw
8780 < else
8781 <  echo "$as_me: failed program was:" >&5
8782 < sed 's/^/| /' conftest.$ac_ext >&5
8783 <
8784 <
8785 < fi
8786 <
8787 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8788 <  test "$ac_cv_c_inline" != no && break
8789 < done
8790 <
8791 < fi
8792 < { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8793 < echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8794 <
8795 <
8796 < case $ac_cv_c_inline in
8797 <  inline | yes) ;;
8798 <  *)
8799 <    case $ac_cv_c_inline in
8800 <      no) ac_val=;;
8801 <      *) ac_val=$ac_cv_c_inline;;
8802 <    esac
8803 <    cat >>confdefs.h <<_ACEOF
8804 < #ifndef __cplusplus
8805 < #define inline $ac_val
8806 < #endif
8807 < _ACEOF
8808 <    ;;
8809 < esac
8810 <
8811 <
8812 < # Checks for library functions.
8813 <
8814 < for ac_header in stdlib.h
8815 < do
8816 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8817 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8818 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8819 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8820 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8821 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8822 < fi
8823 < ac_res=`eval echo '${'$as_ac_Header'}'`
8824 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
8825 < echo "${ECHO_T}$ac_res" >&6; }
8826 < else
8827 <  # Is the header compilable?
8828 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8829 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8830 < cat >conftest.$ac_ext <<_ACEOF
8831 < /* confdefs.h.  */
8832 < _ACEOF
8833 < cat confdefs.h >>conftest.$ac_ext
8834 < cat >>conftest.$ac_ext <<_ACEOF
8835 < /* end confdefs.h.  */
8836 < $ac_includes_default
8837 < #include <$ac_header>
8838 < _ACEOF
8839 < rm -rf conftest.$ac_objext
8840 < if { (ac_try="$ac_compile"
8841 < case "(($ac_try" in
8842 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 <  *) ac_try_echo=$ac_try;;
8844 < esac
8845 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846 <  (eval "$ac_compile") 2>conftest.er1
8847 <  ac_status=$?
8848 <  grep -v '^ *+' conftest.er1 >conftest.err
8849 <  rm -f conftest.er1
8850 <  cat conftest.err >&5
8851 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 <  (exit $ac_status); } && {
8853 <         test -z "$ac_c_werror_flag" ||
8854 <         test ! -s conftest.err
8855 <       } && test -s conftest.$ac_objext; then
8856 <  ac_header_compiler=yes
8857 < else
8858 <  echo "$as_me: failed program was:" >&5
8859 < sed 's/^/| /' conftest.$ac_ext >&5
8860 <
8861 <        ac_header_compiler=no
8862 < fi
8863 <
8864 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
8865 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8866 < echo "${ECHO_T}$ac_header_compiler" >&6; }
8867 <
8868 < # Is the header present?
8869 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8870 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8871 < cat >conftest.$ac_ext <<_ACEOF
8872 < /* confdefs.h.  */
8873 < _ACEOF
8874 < cat confdefs.h >>conftest.$ac_ext
8875 < cat >>conftest.$ac_ext <<_ACEOF
8876 < /* end confdefs.h.  */
8877 < #include <$ac_header>
8878 < _ACEOF
8879 < if { (ac_try="$ac_cpp conftest.$ac_ext"
8880 < case "(($ac_try" in
8881 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 <  *) ac_try_echo=$ac_try;;
8883 < esac
8884 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8886 <  ac_status=$?
8887 <  grep -v '^ *+' conftest.er1 >conftest.err
8888 <  rm -rf conftest.er1
8889 <  cat conftest.err >&5
8890 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 <  (exit $ac_status); } >/dev/null && {
8892 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8893 <         test ! -s conftest.err
8894 <       }; then
8895 <  ac_header_preproc=yes
8896 < else
8897 <  echo "$as_me: failed program was:" >&5
8898 < sed 's/^/| /' conftest.$ac_ext >&5
8899 <
8900 <  ac_header_preproc=no
8901 < fi
8902 <
8903 < rm -rf conftest.err conftest.$ac_ext
8904 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8905 < echo "${ECHO_T}$ac_header_preproc" >&6; }
8906 <
8907 < # So?  What about this header?
8908 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8909 <  yes:no: )
8910 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8911 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8912 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8913 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8914 <    ac_header_preproc=yes
8915 <    ;;
8916 <  no:yes:* )
8917 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8918 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8919 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8920 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8921 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8922 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8923 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8924 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8925 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8926 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8927 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8928 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8929 <    ( cat <<\_ASBOX
8930 < ## ------------------------------ ##
8931 < ## Report this to gezelter@nd.edu ##
8932 < ## ------------------------------ ##
8933 < _ASBOX
8934 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
8935 <    ;;
8936 < esac
8937 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
8938 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8939 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8940 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8941 < else
8942 <  eval "$as_ac_Header=\$ac_header_preproc"
8943 < fi
8944 < ac_res=`eval echo '${'$as_ac_Header'}'`
8945 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
8946 < echo "${ECHO_T}$ac_res" >&6; }
8947 <
8948 < fi
8949 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
8950 <  cat >>confdefs.h <<_ACEOF
8951 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8952 < _ACEOF
8953 <
8954 < fi
8955 <
8956 < done
8957 <
8958 < { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8959 < echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
8960 < if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8961 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8962 < else
8963 <  if test "$cross_compiling" = yes; then
8964 <  ac_cv_func_malloc_0_nonnull=no
8965 < else
8966 <  cat >conftest.$ac_ext <<_ACEOF
8967 < /* confdefs.h.  */
8968 < _ACEOF
8969 < cat confdefs.h >>conftest.$ac_ext
8970 < cat >>conftest.$ac_ext <<_ACEOF
8971 < /* end confdefs.h.  */
8972 < #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8973 < # include <stdlib.h>
8974 < #else
8975 < char *malloc ();
8976 < #endif
8977 <
8978 < #ifdef FC_DUMMY_MAIN
8979 < #ifndef FC_DUMMY_MAIN_EQ_F77
8980 < #  ifdef __cplusplus
8981 <     extern "C"
8982 < #  endif
8983 <   int FC_DUMMY_MAIN() { return 1; }
8984 < #endif
8985 < #endif
8986 < int
8987 < main ()
8988 < {
8989 < return ! malloc (0);
8990 <  ;
8991 <  return 0;
8992 < }
8993 < _ACEOF
8994 < rm -rf conftest$ac_exeext
8995 < if { (ac_try="$ac_link"
8996 < case "(($ac_try" in
8997 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 <  *) ac_try_echo=$ac_try;;
8999 < esac
9000 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001 <  (eval "$ac_link") 2>&5
9002 <  ac_status=$?
9003 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9005 <  { (case "(($ac_try" in
9006 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007 <  *) ac_try_echo=$ac_try;;
9008 < esac
9009 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9010 <  (eval "$ac_try") 2>&5
9011 <  ac_status=$?
9012 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 <  (exit $ac_status); }; }; then
9014 <  ac_cv_func_malloc_0_nonnull=yes
9015 < else
9016 <  echo "$as_me: program exited with status $ac_status" >&5
9017 < echo "$as_me: failed program was:" >&5
9018 < sed 's/^/| /' conftest.$ac_ext >&5
9019 <
9020 < ( exit $ac_status )
9021 < ac_cv_func_malloc_0_nonnull=no
9022 < fi
9023 < rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9024 < fi
9025 <
9026 <
9027 < fi
9028 < { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9029 < echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
9030 < if test $ac_cv_func_malloc_0_nonnull = yes; then
9031 <
9032 < cat >>confdefs.h <<\_ACEOF
9033 < #define HAVE_MALLOC 1
9034 < _ACEOF
9035 <
9036 < else
9037 <  cat >>confdefs.h <<\_ACEOF
9038 < #define HAVE_MALLOC 0
9039 < _ACEOF
9040 <
9041 <   case " $LIBOBJS " in
9042 <  *" malloc.$ac_objext "* ) ;;
9043 <  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9044 < ;;
9045 < esac
9046 <
9047 <
9048 < cat >>confdefs.h <<\_ACEOF
9049 < #define malloc rpl_malloc
9050 < _ACEOF
9051 <
9052 < fi
9053 <
9054 <
9055 <
9056 < { echo "$as_me:$LINENO: checking for working memcmp" >&5
9057 < echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
9058 < if test "${ac_cv_func_memcmp_working+set}" = set; then
9059 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9060 < else
9061 <  if test "$cross_compiling" = yes; then
9062 <  ac_cv_func_memcmp_working=no
9063 < else
9064 <  cat >conftest.$ac_ext <<_ACEOF
9065 < /* confdefs.h.  */
9066 < _ACEOF
9067 < cat confdefs.h >>conftest.$ac_ext
9068 < cat >>conftest.$ac_ext <<_ACEOF
9069 < /* end confdefs.h.  */
9070 < $ac_includes_default
9071 < #ifdef FC_DUMMY_MAIN
9072 < #ifndef FC_DUMMY_MAIN_EQ_F77
9073 < #  ifdef __cplusplus
9074 <     extern "C"
9075 < #  endif
9076 <   int FC_DUMMY_MAIN() { return 1; }
9077 < #endif
9078 < #endif
9079 < int
9080 < main ()
9081 < {
9082 <
9083 <  /* Some versions of memcmp are not 8-bit clean.  */
9084 <  char c0 = '\100', c1 = '\200', c2 = '\201';
9085 <  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9086 <    return 1;
9087 <
9088 <  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9089 <     or more and with at least one buffer not starting on a 4-byte boundary.
9090 <     William Lewis provided this test program.   */
9091 <  {
9092 <    char foo[21];
9093 <    char bar[21];
9094 <    int i;
9095 <    for (i = 0; i < 4; i++)
9096 <      {
9097 <        char *a = foo + i;
9098 <        char *b = bar + i;
9099 <        strcpy (a, "--------01111111");
9100 <        strcpy (b, "--------10000000");
9101 <        if (memcmp (a, b, 16) >= 0)
9102 <          return 1;
9103 <      }
9104 <    return 0;
9105 <  }
9106 <
9107 <  ;
9108 <  return 0;
9109 < }
9110 < _ACEOF
9111 < rm -rf conftest$ac_exeext
9112 < if { (ac_try="$ac_link"
9113 < case "(($ac_try" in
9114 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 <  *) ac_try_echo=$ac_try;;
9116 < esac
9117 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 <  (eval "$ac_link") 2>&5
9119 <  ac_status=$?
9120 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9122 <  { (case "(($ac_try" in
9123 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 <  *) ac_try_echo=$ac_try;;
9125 < esac
9126 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 <  (eval "$ac_try") 2>&5
9128 <  ac_status=$?
9129 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 <  (exit $ac_status); }; }; then
9131 <  ac_cv_func_memcmp_working=yes
9132 < else
9133 <  echo "$as_me: program exited with status $ac_status" >&5
9134 < echo "$as_me: failed program was:" >&5
9135 < sed 's/^/| /' conftest.$ac_ext >&5
9136 <
9137 < ( exit $ac_status )
9138 < ac_cv_func_memcmp_working=no
9139 < fi
9140 < rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9141 < fi
9142 <
9143 <
9144 < fi
9145 < { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9146 < echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
9147 < test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9148 <  *" memcmp.$ac_objext "* ) ;;
9149 <  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9150 < ;;
9151 < esac
9152 <
9153 <
9154 <
9155 < for ac_header in stdlib.h
9156 < do
9157 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9158 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9159 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9160 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9161 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9162 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9163 < fi
9164 < ac_res=`eval echo '${'$as_ac_Header'}'`
9165 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
9166 < echo "${ECHO_T}$ac_res" >&6; }
9167 < else
9168 <  # Is the header compilable?
9169 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9170 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9171 < cat >conftest.$ac_ext <<_ACEOF
9172 < /* confdefs.h.  */
9173 < _ACEOF
9174 < cat confdefs.h >>conftest.$ac_ext
9175 < cat >>conftest.$ac_ext <<_ACEOF
9176 < /* end confdefs.h.  */
9177 < $ac_includes_default
9178 < #include <$ac_header>
9179 < _ACEOF
9180 < rm -rf conftest.$ac_objext
9181 < if { (ac_try="$ac_compile"
9182 < case "(($ac_try" in
9183 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 <  *) ac_try_echo=$ac_try;;
9185 < esac
9186 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187 <  (eval "$ac_compile") 2>conftest.er1
9188 <  ac_status=$?
9189 <  grep -v '^ *+' conftest.er1 >conftest.err
9190 <  rm -f conftest.er1
9191 <  cat conftest.err >&5
9192 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 <  (exit $ac_status); } && {
9194 <         test -z "$ac_c_werror_flag" ||
9195 <         test ! -s conftest.err
9196 <       } && test -s conftest.$ac_objext; then
9197 <  ac_header_compiler=yes
9198 < else
9199 <  echo "$as_me: failed program was:" >&5
9200 < sed 's/^/| /' conftest.$ac_ext >&5
9201 <
9202 <        ac_header_compiler=no
9203 < fi
9204 <
9205 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
9206 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9207 < echo "${ECHO_T}$ac_header_compiler" >&6; }
9208 <
9209 < # Is the header present?
9210 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9211 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9212 < cat >conftest.$ac_ext <<_ACEOF
9213 < /* confdefs.h.  */
9214 < _ACEOF
9215 < cat confdefs.h >>conftest.$ac_ext
9216 < cat >>conftest.$ac_ext <<_ACEOF
9217 < /* end confdefs.h.  */
9218 < #include <$ac_header>
9219 < _ACEOF
9220 < if { (ac_try="$ac_cpp conftest.$ac_ext"
9221 < case "(($ac_try" in
9222 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223 <  *) ac_try_echo=$ac_try;;
9224 < esac
9225 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9227 <  ac_status=$?
9228 <  grep -v '^ *+' conftest.er1 >conftest.err
9229 <  rm -f conftest.er1
9230 <  cat conftest.err >&5
9231 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 <  (exit $ac_status); } >/dev/null && {
9233 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9234 <         test ! -s conftest.err
9235 <       }; then
9236 <  ac_header_preproc=yes
9237 < else
9238 <  echo "$as_me: failed program was:" >&5
9239 < sed 's/^/| /' conftest.$ac_ext >&5
9240 <
9241 <  ac_header_preproc=no
9242 < fi
9243 <
9244 < rm -rf conftest.err conftest.$ac_ext
9245 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9246 < echo "${ECHO_T}$ac_header_preproc" >&6; }
9247 <
9248 < # So?  What about this header?
9249 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9250 <  yes:no: )
9251 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9252 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9253 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9254 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9255 <    ac_header_preproc=yes
9256 <    ;;
9257 <  no:yes:* )
9258 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9259 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9260 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9261 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9262 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9263 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9264 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9265 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9266 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9267 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9268 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9269 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9270 <    ( cat <<\_ASBOX
9271 < ## ------------------------------ ##
9272 < ## Report this to gezelter@nd.edu ##
9273 < ## ------------------------------ ##
9274 < _ASBOX
9275 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
9276 <    ;;
9277 < esac
9278 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
9279 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9280 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9281 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9282 < else
9283 <  eval "$as_ac_Header=\$ac_header_preproc"
9284 < fi
9285 < ac_res=`eval echo '${'$as_ac_Header'}'`
9286 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
9287 < echo "${ECHO_T}$ac_res" >&6; }
9288 <
9289 < fi
9290 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
9291 <  cat >>confdefs.h <<_ACEOF
9292 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9293 < _ACEOF
9294 <
9295 < fi
9296 <
9297 < done
9298 <
9299 < { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
9300 < echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
9301 < if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
9302 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9303 < else
9304 <  if test "$cross_compiling" = yes; then
9305 <  ac_cv_func_realloc_0_nonnull=no
9306 < else
9307 <  cat >conftest.$ac_ext <<_ACEOF
9308 < /* confdefs.h.  */
9309 < _ACEOF
9310 < cat confdefs.h >>conftest.$ac_ext
9311 < cat >>conftest.$ac_ext <<_ACEOF
9312 < /* end confdefs.h.  */
9313 < #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9314 < # include <stdlib.h>
9315 < #else
9316 < char *realloc ();
9317 < #endif
9318 <
9319 < #ifdef FC_DUMMY_MAIN
9320 < #ifndef FC_DUMMY_MAIN_EQ_F77
9321 < #  ifdef __cplusplus
9322 <     extern "C"
9323 < #  endif
9324 <   int FC_DUMMY_MAIN() { return 1; }
9325 < #endif
9326 < #endif
9327 < int
9328 < main ()
9329 < {
9330 < return ! realloc (0, 0);
9331 <  ;
9332 <  return 0;
9333 < }
9334 < _ACEOF
9335 < rm -rf conftest$ac_exeext
9336 < if { (ac_try="$ac_link"
9337 < case "(($ac_try" in
9338 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339 <  *) ac_try_echo=$ac_try;;
9340 < esac
9341 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342 <  (eval "$ac_link") 2>&5
9343 <  ac_status=$?
9344 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9346 <  { (case "(($ac_try" in
9347 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348 <  *) ac_try_echo=$ac_try;;
9349 < esac
9350 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351 <  (eval "$ac_try") 2>&5
9352 <  ac_status=$?
9353 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 <  (exit $ac_status); }; }; then
9355 <  ac_cv_func_realloc_0_nonnull=yes
9356 < else
9357 <  echo "$as_me: program exited with status $ac_status" >&5
9358 < echo "$as_me: failed program was:" >&5
9359 < sed 's/^/| /' conftest.$ac_ext >&5
9360 <
9361 < ( exit $ac_status )
9362 < ac_cv_func_realloc_0_nonnull=no
9363 < fi
9364 < rm -rf core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9365 < fi
9366 <
9367 <
9368 < fi
9369 < { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
9370 < echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
9371 < if test $ac_cv_func_realloc_0_nonnull = yes; then
9372 <
9373 < cat >>confdefs.h <<\_ACEOF
9374 < #define HAVE_REALLOC 1
9375 < _ACEOF
9376 <
9377 < else
9378 <  cat >>confdefs.h <<\_ACEOF
9379 < #define HAVE_REALLOC 0
9380 < _ACEOF
9381 <
9382 <   case " $LIBOBJS " in
9383 <  *" realloc.$ac_objext "* ) ;;
9384 <  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
9385 < ;;
9386 < esac
9387 <
9388 <
9389 < cat >>confdefs.h <<\_ACEOF
9390 < #define realloc rpl_realloc
9391 < _ACEOF
9392 <
9393 < fi
9394 <
9395 <
9396 <
9397 <
9398 <
9399 < for ac_header in sys/select.h sys/socket.h
9400 < do
9401 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9402 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9403 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9404 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9405 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9406 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9407 < fi
9408 < ac_res=`eval echo '${'$as_ac_Header'}'`
9409 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
9410 < echo "${ECHO_T}$ac_res" >&6; }
9411 < else
9412 <  # Is the header compilable?
9413 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9414 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9415 < cat >conftest.$ac_ext <<_ACEOF
9416 < /* confdefs.h.  */
9417 < _ACEOF
9418 < cat confdefs.h >>conftest.$ac_ext
9419 < cat >>conftest.$ac_ext <<_ACEOF
9420 < /* end confdefs.h.  */
9421 < $ac_includes_default
9422 < #include <$ac_header>
9423 < _ACEOF
9424 < rm -rf conftest.$ac_objext
9425 < if { (ac_try="$ac_compile"
9426 < case "(($ac_try" in
9427 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428 <  *) ac_try_echo=$ac_try;;
9429 < esac
9430 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9431 <  (eval "$ac_compile") 2>conftest.er1
9432 <  ac_status=$?
9433 <  grep -v '^ *+' conftest.er1 >conftest.err
9434 <  rm -f conftest.er1
9435 <  cat conftest.err >&5
9436 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 <  (exit $ac_status); } && {
9438 <         test -z "$ac_c_werror_flag" ||
9439 <         test ! -s conftest.err
9440 <       } && test -s conftest.$ac_objext; then
9441 <  ac_header_compiler=yes
9442 < else
9443 <  echo "$as_me: failed program was:" >&5
9444 < sed 's/^/| /' conftest.$ac_ext >&5
9445 <
9446 <        ac_header_compiler=no
9447 < fi
9448 <
9449 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
9450 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9451 < echo "${ECHO_T}$ac_header_compiler" >&6; }
9452 <
9453 < # Is the header present?
9454 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9455 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9456 < cat >conftest.$ac_ext <<_ACEOF
9457 < /* confdefs.h.  */
9458 < _ACEOF
9459 < cat confdefs.h >>conftest.$ac_ext
9460 < cat >>conftest.$ac_ext <<_ACEOF
9461 < /* end confdefs.h.  */
9462 < #include <$ac_header>
9463 < _ACEOF
9464 < if { (ac_try="$ac_cpp conftest.$ac_ext"
9465 < case "(($ac_try" in
9466 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9467 <  *) ac_try_echo=$ac_try;;
9468 < esac
9469 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9471 <  ac_status=$?
9472 <  grep -v '^ *+' conftest.er1 >conftest.err
9473 <  rm -f conftest.er1
9474 <  cat conftest.err >&5
9475 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 <  (exit $ac_status); } >/dev/null && {
9477 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9478 <         test ! -s conftest.err
9479 <       }; then
9480 <  ac_header_preproc=yes
9481 < else
9482 <  echo "$as_me: failed program was:" >&5
9483 < sed 's/^/| /' conftest.$ac_ext >&5
9484 <
9485 <  ac_header_preproc=no
9486 < fi
9487 <
9488 < rm -rf conftest.err conftest.$ac_ext
9489 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9490 < echo "${ECHO_T}$ac_header_preproc" >&6; }
9491 <
9492 < # So?  What about this header?
9493 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9494 <  yes:no: )
9495 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9496 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9497 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9498 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9499 <    ac_header_preproc=yes
9500 <    ;;
9501 <  no:yes:* )
9502 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9503 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9504 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9505 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9506 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9507 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9508 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9509 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9510 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9511 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9512 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9513 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9514 <    ( cat <<\_ASBOX
9515 < ## ------------------------------ ##
9516 < ## Report this to gezelter@nd.edu ##
9517 < ## ------------------------------ ##
9518 < _ASBOX
9519 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
9520 <    ;;
9521 < esac
9522 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
9523 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9524 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9525 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9526 < else
9527 <  eval "$as_ac_Header=\$ac_header_preproc"
9528 < fi
9529 < ac_res=`eval echo '${'$as_ac_Header'}'`
9530 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
9531 < echo "${ECHO_T}$ac_res" >&6; }
9532 <
9533 < fi
9534 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
9535 <  cat >>confdefs.h <<_ACEOF
9536 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9537 < _ACEOF
9538 <
9539 < fi
9540 <
9541 < done
9542 <
9543 < { echo "$as_me:$LINENO: checking types of arguments for select" >&5
9544 < echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
9545 < if test "${ac_cv_func_select_args+set}" = set; then
9546 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9547 < else
9548 <  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9549 < for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9550 <  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9551 <   cat >conftest.$ac_ext <<_ACEOF
9552 < /* confdefs.h.  */
9553 < _ACEOF
9554 < cat confdefs.h >>conftest.$ac_ext
9555 < cat >>conftest.$ac_ext <<_ACEOF
9556 < /* end confdefs.h.  */
9557 < $ac_includes_default
9558 < #ifdef HAVE_SYS_SELECT_H
9559 < # include <sys/select.h>
9560 < #endif
9561 < #ifdef HAVE_SYS_SOCKET_H
9562 < # include <sys/socket.h>
9563 < #endif
9564 <
9565 < #ifdef FC_DUMMY_MAIN
9566 < #ifndef FC_DUMMY_MAIN_EQ_F77
9567 < #  ifdef __cplusplus
9568 <     extern "C"
9569 < #  endif
9570 <   int FC_DUMMY_MAIN() { return 1; }
9571 < #endif
9572 < #endif
9573 < int
9574 < main ()
9575 < {
9576 < extern int select ($ac_arg1,
9577 <                                            $ac_arg234, $ac_arg234, $ac_arg234,
9578 <                                            $ac_arg5);
9579 <  ;
9580 <  return 0;
9581 < }
9582 < _ACEOF
9583 < rm -rf conftest.$ac_objext
9584 < if { (ac_try="$ac_compile"
9585 < case "(($ac_try" in
9586 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587 <  *) ac_try_echo=$ac_try;;
9588 < esac
9589 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590 <  (eval "$ac_compile") 2>conftest.er1
9591 <  ac_status=$?
9592 <  grep -v '^ *+' conftest.er1 >conftest.err
9593 <  rm -f conftest.er1
9594 <  cat conftest.err >&5
9595 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 <  (exit $ac_status); } && {
9597 <         test -z "$ac_c_werror_flag" ||
9598 <         test ! -s conftest.err
9599 <       } && test -s conftest.$ac_objext; then
9600 <  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9601 < else
9602 <  echo "$as_me: failed program was:" >&5
9603 < sed 's/^/| /' conftest.$ac_ext >&5
9604 <
9605 <
9606 < fi
9607 <
9608 < rm -rf core conftest.err conftest.$ac_objext conftest.$ac_ext
9609 <  done
9610 < done
9611 < done
9612 < # Provide a safe default value.
9613 < : ${ac_cv_func_select_args='int,int *,struct timeval *'}
9614 <
9615 < fi
9616 < { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
9617 < echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
9618 < ac_save_IFS=$IFS; IFS=','
9619 < set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9620 < IFS=$ac_save_IFS
9621 < shift
9622 <
9623 < cat >>confdefs.h <<_ACEOF
9624 < #define SELECT_TYPE_ARG1 $1
9625 < _ACEOF
9626 <
9627 <
9628 < cat >>confdefs.h <<_ACEOF
9629 < #define SELECT_TYPE_ARG234 ($2)
9630 < _ACEOF
9631 <
9632 <
9633 < cat >>confdefs.h <<_ACEOF
9634 < #define SELECT_TYPE_ARG5 ($3)
9635 < _ACEOF
9636 <
9637 < rm -rf conftest*
9638 <
9639 <
9640 < for ac_func in strftime
9641 < do
9642 < as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9643 < { echo "$as_me:$LINENO: checking for $ac_func" >&5
9644 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9645 < if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9646 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9647 < else
9648 <  cat >conftest.$ac_ext <<_ACEOF
9649 < /* confdefs.h.  */
9650 < _ACEOF
9651 < cat confdefs.h >>conftest.$ac_ext
9652 < cat >>conftest.$ac_ext <<_ACEOF
9653 < /* end confdefs.h.  */
9654 < /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9655 <   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9656 < #define $ac_func innocuous_$ac_func
9657 <
9658 < /* System header to define __stub macros and hopefully few prototypes,
9659 <    which can conflict with char $ac_func (); below.
9660 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9661 <    <limits.h> exists even on freestanding compilers.  */
9662 <
9663 < #ifdef __STDC__
9664 < # include <limits.h>
9665 < #else
9666 < # include <assert.h>
9667 < #endif
9668 <
9669 < #undef $ac_func
9670 <
9671 < /* Override any GCC internal prototype to avoid an error.
9672 <   Use char because int might match the return type of a GCC
9673 <   builtin and then its argument prototype would still apply.  */
9674 < #ifdef __cplusplus
9675 < extern "C"
9676 < #endif
9677 < char $ac_func ();
9678 < /* The GNU C library defines this for functions which it implements
9679 <    to always fail with ENOSYS.  Some functions are actually named
9680 <    something starting with __ and the normal name is an alias.  */
9681 < #if defined __stub_$ac_func || defined __stub___$ac_func
9682 < choke me
9683 < #endif
9684 <
9685 < #ifdef FC_DUMMY_MAIN
9686 < #ifndef FC_DUMMY_MAIN_EQ_F77
9687 < #  ifdef __cplusplus
9688 <     extern "C"
9689 < #  endif
9690 <   int FC_DUMMY_MAIN() { return 1; }
9691 < #endif
9692 < #endif
9693 < int
9694 < main ()
9695 < {
9696 < return $ac_func ();
9697 <  ;
9698 <  return 0;
9699 < }
9700 < _ACEOF
9701 < rm -rf conftest.$ac_objext conftest$ac_exeext
9702 < if { (ac_try="$ac_link"
9703 < case "(($ac_try" in
9704 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 <  *) ac_try_echo=$ac_try;;
9706 < esac
9707 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708 <  (eval "$ac_link") 2>conftest.er1
9709 <  ac_status=$?
9710 <  grep -v '^ *+' conftest.er1 >conftest.err
9711 <  rm -f conftest.er1
9712 <  cat conftest.err >&5
9713 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 <  (exit $ac_status); } && {
9715 <         test -z "$ac_c_werror_flag" ||
9716 <         test ! -s conftest.err
9717 <       } && test -s conftest$ac_exeext &&
9718 <       $as_test_x conftest$ac_exeext; then
9719 <  eval "$as_ac_var=yes"
9720 < else
9721 <  echo "$as_me: failed program was:" >&5
9722 < sed 's/^/| /' conftest.$ac_ext >&5
9723 <
9724 <        eval "$as_ac_var=no"
9725 < fi
9726 <
9727 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9728 <      conftest$ac_exeext conftest.$ac_ext
9729 < fi
9730 < ac_res=`eval echo '${'$as_ac_var'}'`
9731 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
9732 < echo "${ECHO_T}$ac_res" >&6; }
9733 < if test `eval echo '${'$as_ac_var'}'` = yes; then
9734 <  cat >>confdefs.h <<_ACEOF
9735 < #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9736 < _ACEOF
9737 <
9738 < else
9739 <  # strftime is in -lintl on SCO UNIX.
9740 < { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9741 < echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
9742 < if test "${ac_cv_lib_intl_strftime+set}" = set; then
9743 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9744 < else
9745 <  ac_check_lib_save_LIBS=$LIBS
9746 < LIBS="-lintl  $LIBS"
9747 < cat >conftest.$ac_ext <<_ACEOF
9748 < /* confdefs.h.  */
9749 < _ACEOF
9750 < cat confdefs.h >>conftest.$ac_ext
9751 < cat >>conftest.$ac_ext <<_ACEOF
9752 < /* end confdefs.h.  */
9753 <
9754 < /* Override any GCC internal prototype to avoid an error.
9755 <   Use char because int might match the return type of a GCC
9756 <   builtin and then its argument prototype would still apply.  */
9757 < #ifdef __cplusplus
9758 < extern "C"
9759 < #endif
9760 < char strftime ();
9761 < #ifdef FC_DUMMY_MAIN
9762 < #ifndef FC_DUMMY_MAIN_EQ_F77
9763 < #  ifdef __cplusplus
9764 <     extern "C"
9765 < #  endif
9766 <   int FC_DUMMY_MAIN() { return 1; }
9767 < #endif
9768 < #endif
9769 < int
9770 < main ()
9771 < {
9772 < return strftime ();
9773 <  ;
9774 <  return 0;
9775 < }
9776 < _ACEOF
9777 < rm -rf conftest.$ac_objext conftest$ac_exeext
9778 < if { (ac_try="$ac_link"
9779 < case "(($ac_try" in
9780 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 <  *) ac_try_echo=$ac_try;;
9782 < esac
9783 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 <  (eval "$ac_link") 2>conftest.er1
9785 <  ac_status=$?
9786 <  grep -v '^ *+' conftest.er1 >conftest.err
9787 <  rm -f conftest.er1
9788 <  cat conftest.err >&5
9789 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 <  (exit $ac_status); } && {
9791 <         test -z "$ac_c_werror_flag" ||
9792 <         test ! -s conftest.err
9793 <       } && test -s conftest$ac_exeext &&
9794 <       $as_test_x conftest$ac_exeext; then
9795 <  ac_cv_lib_intl_strftime=yes
9796 < else
9797 <  echo "$as_me: failed program was:" >&5
9798 < sed 's/^/| /' conftest.$ac_ext >&5
9799 <
9800 <        ac_cv_lib_intl_strftime=no
9801 < fi
9802 <
9803 < rm -rf core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9804 <      conftest$ac_exeext conftest.$ac_ext
9805 < LIBS=$ac_check_lib_save_LIBS
9806 < fi
9807 < { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9808 < echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
9809 < if test $ac_cv_lib_intl_strftime = yes; then
9810 <  cat >>confdefs.h <<\_ACEOF
9811 < #define HAVE_STRFTIME 1
9812 < _ACEOF
9813 <
9814 < LIBS="-lintl $LIBS"
9815 < fi
9816 <
9817 < fi
9818 < done
9819 <
9820 < { echo "$as_me:$LINENO: checking for working strtod" >&5
9821 < echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
9822 < if test "${ac_cv_func_strtod+set}" = set; then
9823 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9824 < else
9825 <  if test "$cross_compiling" = yes; then
9826 <  ac_cv_func_strtod=no
9827 < else
9828 <  cat >conftest.$ac_ext <<_ACEOF
9829 < /* confdefs.h.  */
9830 < _ACEOF
9831 < cat confdefs.h >>conftest.$ac_ext
9832 < cat >>conftest.$ac_ext <<_ACEOF
9833 < /* end confdefs.h.  */
9834 <
9835 < $ac_includes_default
9836 < #ifndef strtod
9837 < double strtod ();
9838 < #endif
9839 < int
9840 < main()
9841 < {
9842 <  {
9843 <    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
9844 <    char *string = " +69";
9845 <    char *term;
9846 <    double value;
9847 <    value = strtod (string, &term);
9848 <    if (value != 69 || term != (string + 4))
9849 <      return 1;
9850 <  }
9851 <
9852 <  {
9853 <    /* Under Solaris 2.4, strtod returns the wrong value for the
9854 <       terminating character under some conditions.  */
9855 <    char *string = "NaN";
9856 <    char *term;
9857 <    strtod (string, &term);
9858 <    if (term != string && *(term - 1) == 0)
9859 <      return 1;
9860 <  }
9861 <  return 0;
9862 < }
9863 <
9864 < _ACEOF
9865 < rm -f conftest$ac_exeext
9866 < if { (ac_try="$ac_link"
9867 < case "(($ac_try" in
9868 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 <  *) ac_try_echo=$ac_try;;
9870 < esac
9871 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 <  (eval "$ac_link") 2>&5
9873 <  ac_status=$?
9874 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9876 <  { (case "(($ac_try" in
9877 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 <  *) ac_try_echo=$ac_try;;
9879 < esac
9880 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 <  (eval "$ac_try") 2>&5
9882 <  ac_status=$?
9883 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 <  (exit $ac_status); }; }; then
9885 <  ac_cv_func_strtod=yes
9886 < else
9887 <  echo "$as_me: program exited with status $ac_status" >&5
9888 < echo "$as_me: failed program was:" >&5
9889 < sed 's/^/| /' conftest.$ac_ext >&5
9890 <
9891 < ( exit $ac_status )
9892 < ac_cv_func_strtod=no
9893 < fi
9894 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9895 < fi
9896 <
9897 <
9898 < fi
9899 < { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
9900 < echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
9901 < if test $ac_cv_func_strtod = no; then
9902 <  case " $LIBOBJS " in
9903 <  *" strtod.$ac_objext "* ) ;;
9904 <  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
9905 < ;;
9906 < esac
9907 <
9908 < { echo "$as_me:$LINENO: checking for pow" >&5
9909 < echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
9910 < if test "${ac_cv_func_pow+set}" = set; then
9911 <  echo $ECHO_N "(cached) $ECHO_C" >&6
9912 < else
9913 <  cat >conftest.$ac_ext <<_ACEOF
9914 < /* confdefs.h.  */
9915 < _ACEOF
9916 < cat confdefs.h >>conftest.$ac_ext
9917 < cat >>conftest.$ac_ext <<_ACEOF
9918 < /* end confdefs.h.  */
9919 < /* Define pow to an innocuous variant, in case <limits.h> declares pow.
9920 <   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9921 < #define pow innocuous_pow
9922 <
9923 < /* System header to define __stub macros and hopefully few prototypes,
9924 <    which can conflict with char pow (); below.
9925 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9926 <    <limits.h> exists even on freestanding compilers.  */
9927 <
9928 < #ifdef __STDC__
9929 < # include <limits.h>
9930 < #else
9931 < # include <assert.h>
9932 < #endif
9933 <
9934 < #undef pow
9935 <
9936 < /* Override any GCC internal prototype to avoid an error.
9937 <   Use char because int might match the return type of a GCC
9938 <   builtin and then its argument prototype would still apply.  */
9939 < #ifdef __cplusplus
9940 < extern "C"
9941 < #endif
9942 < char pow ();
9943 < /* The GNU C library defines this for functions which it implements
9944 <    to always fail with ENOSYS.  Some functions are actually named
9945 <    something starting with __ and the normal name is an alias.  */
9946 < #if defined __stub_pow || defined __stub___pow
9947 < choke me
9948 < #endif
9949 <
9950 < #ifdef FC_DUMMY_MAIN
9951 < #ifndef FC_DUMMY_MAIN_EQ_F77
9952 < #  ifdef __cplusplus
9953 <     extern "C"
9954 < #  endif
9955 <   int FC_DUMMY_MAIN() { return 1; }
9956 < #endif
9957 < #endif
9958 < int
9959 < main ()
9960 < {
9961 < return pow ();
9962 <  ;
9963 <  return 0;
9964 < }
9965 < _ACEOF
9966 < rm -f conftest.$ac_objext conftest$ac_exeext
9967 < if { (ac_try="$ac_link"
9968 < case "(($ac_try" in
9969 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 <  *) ac_try_echo=$ac_try;;
9971 < esac
9972 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973 <  (eval "$ac_link") 2>conftest.er1
9974 <  ac_status=$?
9975 <  grep -v '^ *+' conftest.er1 >conftest.err
9976 <  rm -f conftest.er1
9977 <  cat conftest.err >&5
9978 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 <  (exit $ac_status); } && {
9980 <         test -z "$ac_c_werror_flag" ||
9981 <         test ! -s conftest.err
9982 <       } && test -s conftest$ac_exeext &&
9983 <       $as_test_x conftest$ac_exeext; then
9984 <  ac_cv_func_pow=yes
9985 < else
9986 <  echo "$as_me: failed program was:" >&5
9987 < sed 's/^/| /' conftest.$ac_ext >&5
9988 <
9989 <        ac_cv_func_pow=no
9990 < fi
9991 <
9992 < rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9993 <      conftest$ac_exeext conftest.$ac_ext
9994 < fi
9995 < { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
9996 < echo "${ECHO_T}$ac_cv_func_pow" >&6; }
9997 <
9998 < if test $ac_cv_func_pow = no; then
9999 <  { echo "$as_me:$LINENO: checking for pow in -lm" >&5
10000 < echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
10001 < if test "${ac_cv_lib_m_pow+set}" = set; then
10002 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10003 < else
10004 <  ac_check_lib_save_LIBS=$LIBS
10005 < LIBS="-lm  $LIBS"
10006 < cat >conftest.$ac_ext <<_ACEOF
10007 < /* confdefs.h.  */
10008 < _ACEOF
10009 < cat confdefs.h >>conftest.$ac_ext
10010 < cat >>conftest.$ac_ext <<_ACEOF
10011 < /* end confdefs.h.  */
10012 <
10013 < /* Override any GCC internal prototype to avoid an error.
10014 <   Use char because int might match the return type of a GCC
10015 <   builtin and then its argument prototype would still apply.  */
10016 < #ifdef __cplusplus
10017 < extern "C"
10018 < #endif
10019 < char pow ();
10020 < #ifdef FC_DUMMY_MAIN
10021 < #ifndef FC_DUMMY_MAIN_EQ_F77
10022 < #  ifdef __cplusplus
10023 <     extern "C"
10024 < #  endif
10025 <   int FC_DUMMY_MAIN() { return 1; }
10026 < #endif
10027 < #endif
10028 < int
10029 < main ()
10030 < {
10031 < return pow ();
10032 <  ;
10033 <  return 0;
10034 < }
10035 < _ACEOF
10036 < rm -f conftest.$ac_objext conftest$ac_exeext
10037 < if { (ac_try="$ac_link"
10038 < case "(($ac_try" in
10039 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 <  *) ac_try_echo=$ac_try;;
10041 < esac
10042 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 <  (eval "$ac_link") 2>conftest.er1
10044 <  ac_status=$?
10045 <  grep -v '^ *+' conftest.er1 >conftest.err
10046 <  rm -f conftest.er1
10047 <  cat conftest.err >&5
10048 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 <  (exit $ac_status); } && {
10050 <         test -z "$ac_c_werror_flag" ||
10051 <         test ! -s conftest.err
10052 <       } && test -s conftest$ac_exeext &&
10053 <       $as_test_x conftest$ac_exeext; then
10054 <  ac_cv_lib_m_pow=yes
10055 < else
10056 <  echo "$as_me: failed program was:" >&5
10057 < sed 's/^/| /' conftest.$ac_ext >&5
10058 <
10059 <        ac_cv_lib_m_pow=no
10060 < fi
10061 <
10062 < rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10063 <      conftest$ac_exeext conftest.$ac_ext
10064 < LIBS=$ac_check_lib_save_LIBS
10065 < fi
10066 < { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10067 < echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
10068 < if test $ac_cv_lib_m_pow = yes; then
10069 <  POW_LIB=-lm
10070 < else
10071 <  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10072 < echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10073 < fi
10074 <
10075 < fi
10076 <
10077 < fi
10078 <
10079 <
10080 <
10081 <
10082 <
10083 <
10084 <
10085 <
10086 <
10087 <
10088 <
10089 <
10090 <
10091 <
10092 <
10093 <
10094 <
10095 <
10096 <
10097 <
10098 <
10099 <
10100 <
10101 <
10102 <
10103 <
10104 <
10105 <
10106 < for ac_func in floor getpagesize gettimeofday memchr memmove memset pow pstat_getdynamic pstat_getstatic rint select snprintf sranddev sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strrchr strstr strtol sysmp getsysinfo sysctl table
10107 < do
10108 < as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10109 < { echo "$as_me:$LINENO: checking for $ac_func" >&5
10110 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10111 < if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10112 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10113 < else
10114 <  cat >conftest.$ac_ext <<_ACEOF
10115 < /* confdefs.h.  */
10116 < _ACEOF
10117 < cat confdefs.h >>conftest.$ac_ext
10118 < cat >>conftest.$ac_ext <<_ACEOF
10119 < /* end confdefs.h.  */
10120 < /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10121 <   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10122 < #define $ac_func innocuous_$ac_func
10123 <
10124 < /* System header to define __stub macros and hopefully few prototypes,
10125 <    which can conflict with char $ac_func (); below.
10126 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10127 <    <limits.h> exists even on freestanding compilers.  */
10128 <
10129 < #ifdef __STDC__
10130 < # include <limits.h>
10131 < #else
10132 < # include <assert.h>
10133 < #endif
10134 <
10135 < #undef $ac_func
10136 <
10137 < /* Override any GCC internal prototype to avoid an error.
10138 <   Use char because int might match the return type of a GCC
10139 <   builtin and then its argument prototype would still apply.  */
10140 < #ifdef __cplusplus
10141 < extern "C"
10142 < #endif
10143 < char $ac_func ();
10144 < /* The GNU C library defines this for functions which it implements
10145 <    to always fail with ENOSYS.  Some functions are actually named
10146 <    something starting with __ and the normal name is an alias.  */
10147 < #if defined __stub_$ac_func || defined __stub___$ac_func
10148 < choke me
10149 < #endif
10150 <
10151 < #ifdef FC_DUMMY_MAIN
10152 < #ifndef FC_DUMMY_MAIN_EQ_F77
10153 < #  ifdef __cplusplus
10154 <     extern "C"
10155 < #  endif
10156 <   int FC_DUMMY_MAIN() { return 1; }
10157 < #endif
10158 < #endif
10159 < int
10160 < main ()
10161 < {
10162 < return $ac_func ();
10163 <  ;
10164 <  return 0;
10165 < }
10166 < _ACEOF
10167 < rm -f conftest.$ac_objext conftest$ac_exeext
10168 < if { (ac_try="$ac_link"
10169 < case "(($ac_try" in
10170 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171 <  *) ac_try_echo=$ac_try;;
10172 < esac
10173 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174 <  (eval "$ac_link") 2>conftest.er1
10175 <  ac_status=$?
10176 <  grep -v '^ *+' conftest.er1 >conftest.err
10177 <  rm -f conftest.er1
10178 <  cat conftest.err >&5
10179 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 <  (exit $ac_status); } && {
10181 <         test -z "$ac_c_werror_flag" ||
10182 <         test ! -s conftest.err
10183 <       } && test -s conftest$ac_exeext &&
10184 <       $as_test_x conftest$ac_exeext; then
10185 <  eval "$as_ac_var=yes"
10186 < else
10187 <  echo "$as_me: failed program was:" >&5
10188 < sed 's/^/| /' conftest.$ac_ext >&5
10189 <
10190 <        eval "$as_ac_var=no"
10191 < fi
10192 <
10193 < rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10194 <      conftest$ac_exeext conftest.$ac_ext
10195 < fi
10196 < ac_res=`eval echo '${'$as_ac_var'}'`
10197 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
10198 < echo "${ECHO_T}$ac_res" >&6; }
10199 < if test `eval echo '${'$as_ac_var'}'` = yes; then
10200 <  cat >>confdefs.h <<_ACEOF
10201 < #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10202 < _ACEOF
10203 <
10204 < fi
10205 < done
10206 <
10207 <
10208 < # special check for _system_configuration because AIX <4.3.2 do not
10209 < # contain the `physmem' member.
10210 < { echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
10211 < echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6; }
10212 < cat >conftest.$ac_ext <<_ACEOF
10213 < /* confdefs.h.  */
10214 < _ACEOF
10215 < cat confdefs.h >>conftest.$ac_ext
10216 < cat >>conftest.$ac_ext <<_ACEOF
10217 < /* end confdefs.h.  */
10218 < #include <sys/systemcfg.h>
10219 < #ifdef FC_DUMMY_MAIN
10220 < #ifndef FC_DUMMY_MAIN_EQ_F77
10221 < #  ifdef __cplusplus
10222 <     extern "C"
10223 < #  endif
10224 <   int FC_DUMMY_MAIN() { return 1; }
10225 < #endif
10226 < #endif
10227 < int
10228 < main ()
10229 < {
10230 < double x = _system_configuration.physmem;
10231 <  ;
10232 <  return 0;
10233 < }
10234 < _ACEOF
10235 < rm -f conftest.$ac_objext
10236 < if { (ac_try="$ac_compile"
10237 < case "(($ac_try" in
10238 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 <  *) ac_try_echo=$ac_try;;
10240 < esac
10241 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242 <  (eval "$ac_compile") 2>conftest.er1
10243 <  ac_status=$?
10244 <  grep -v '^ *+' conftest.er1 >conftest.err
10245 <  rm -f conftest.er1
10246 <  cat conftest.err >&5
10247 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 <  (exit $ac_status); } && {
10249 <         test -z "$ac_c_werror_flag" ||
10250 <         test ! -s conftest.err
10251 <       } && test -s conftest.$ac_objext; then
10252 <  { echo "$as_me:$LINENO: result: yes" >&5
10253 < echo "${ECHO_T}yes" >&6; }
10254 <
10255 < cat >>confdefs.h <<\_ACEOF
10256 < #define HAVE__SYSTEM_CONFIGURATION 1
10257 < _ACEOF
10258 <
10259 < else
10260 <  echo "$as_me: failed program was:" >&5
10261 < sed 's/^/| /' conftest.$ac_ext >&5
10262 <
10263 <        { echo "$as_me:$LINENO: result: no" >&5
10264 < echo "${ECHO_T}no" >&6; }
10265 < fi
10266 <
10267 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10268 <
10269 <  # clean out junk possibly left behind by a previous configuration
10270 <  rm -f src/getopt.h
10271 <  # Check for getopt_long support
10272 <
10273 < for ac_header in getopt.h
10274 < do
10275 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10276 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10277 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10278 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10279 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10280 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10281 < fi
10282 < ac_res=`eval echo '${'$as_ac_Header'}'`
10283 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
10284 < echo "${ECHO_T}$ac_res" >&6; }
10285 < else
10286 <  # Is the header compilable?
10287 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10288 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10289 < cat >conftest.$ac_ext <<_ACEOF
10290 < /* confdefs.h.  */
10291 < _ACEOF
10292 < cat confdefs.h >>conftest.$ac_ext
10293 < cat >>conftest.$ac_ext <<_ACEOF
10294 < /* end confdefs.h.  */
10295 < $ac_includes_default
10296 < #include <$ac_header>
10297 < _ACEOF
10298 < rm -f conftest.$ac_objext
10299 < if { (ac_try="$ac_compile"
10300 < case "(($ac_try" in
10301 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 <  *) ac_try_echo=$ac_try;;
10303 < esac
10304 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305 <  (eval "$ac_compile") 2>conftest.er1
10306 <  ac_status=$?
10307 <  grep -v '^ *+' conftest.er1 >conftest.err
10308 <  rm -f conftest.er1
10309 <  cat conftest.err >&5
10310 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 <  (exit $ac_status); } && {
10312 <         test -z "$ac_c_werror_flag" ||
10313 <         test ! -s conftest.err
10314 <       } && test -s conftest.$ac_objext; then
10315 <  ac_header_compiler=yes
10316 < else
10317 <  echo "$as_me: failed program was:" >&5
10318 < sed 's/^/| /' conftest.$ac_ext >&5
10319 <
10320 <        ac_header_compiler=no
10321 < fi
10322 <
10323 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10324 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10325 < echo "${ECHO_T}$ac_header_compiler" >&6; }
10326 <
10327 < # Is the header present?
10328 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10329 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10330 < cat >conftest.$ac_ext <<_ACEOF
10331 < /* confdefs.h.  */
10332 < _ACEOF
10333 < cat confdefs.h >>conftest.$ac_ext
10334 < cat >>conftest.$ac_ext <<_ACEOF
10335 < /* end confdefs.h.  */
10336 < #include <$ac_header>
10337 < _ACEOF
10338 < if { (ac_try="$ac_cpp conftest.$ac_ext"
10339 < case "(($ac_try" in
10340 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 <  *) ac_try_echo=$ac_try;;
10342 < esac
10343 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10345 <  ac_status=$?
10346 <  grep -v '^ *+' conftest.er1 >conftest.err
10347 <  rm -f conftest.er1
10348 <  cat conftest.err >&5
10349 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 <  (exit $ac_status); } >/dev/null && {
10351 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10352 <         test ! -s conftest.err
10353 <       }; then
10354 <  ac_header_preproc=yes
10355 < else
10356 <  echo "$as_me: failed program was:" >&5
10357 < sed 's/^/| /' conftest.$ac_ext >&5
10358 <
10359 <  ac_header_preproc=no
10360 < fi
10361 <
10362 < rm -f conftest.err conftest.$ac_ext
10363 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10364 < echo "${ECHO_T}$ac_header_preproc" >&6; }
10365 <
10366 < # So?  What about this header?
10367 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10368 <  yes:no: )
10369 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10370 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10371 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10372 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10373 <    ac_header_preproc=yes
10374 <    ;;
10375 <  no:yes:* )
10376 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10377 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10378 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10379 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10380 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10381 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10382 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10383 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10384 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10385 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10386 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10387 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10388 <    ( cat <<\_ASBOX
10389 < ## ------------------------------ ##
10390 < ## Report this to gezelter@nd.edu ##
10391 < ## ------------------------------ ##
10392 < _ASBOX
10393 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
10394 <    ;;
10395 < esac
10396 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
10397 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10398 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10399 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10400 < else
10401 <  eval "$as_ac_Header=\$ac_header_preproc"
10402 < fi
10403 < ac_res=`eval echo '${'$as_ac_Header'}'`
10404 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
10405 < echo "${ECHO_T}$ac_res" >&6; }
10406 <
10407 < fi
10408 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
10409 <  cat >>confdefs.h <<_ACEOF
10410 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10411 < _ACEOF
10412 <
10413 < fi
10414 <
10415 < done
10416 <
10417 <
10418 < for ac_func in getopt_long
10419 < do
10420 < as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10421 < { echo "$as_me:$LINENO: checking for $ac_func" >&5
10422 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10423 < if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10424 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10425 < else
10426 <  cat >conftest.$ac_ext <<_ACEOF
10427 < /* confdefs.h.  */
10428 < _ACEOF
10429 < cat confdefs.h >>conftest.$ac_ext
10430 < cat >>conftest.$ac_ext <<_ACEOF
10431 < /* end confdefs.h.  */
10432 < /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10433 <   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10434 < #define $ac_func innocuous_$ac_func
10435 <
10436 < /* System header to define __stub macros and hopefully few prototypes,
10437 <    which can conflict with char $ac_func (); below.
10438 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10439 <    <limits.h> exists even on freestanding compilers.  */
10440 <
10441 < #ifdef __STDC__
10442 < # include <limits.h>
10443 < #else
10444 < # include <assert.h>
10445 < #endif
10446 <
10447 < #undef $ac_func
10448 <
10449 < /* Override any GCC internal prototype to avoid an error.
10450 <   Use char because int might match the return type of a GCC
10451 <   builtin and then its argument prototype would still apply.  */
10452 < #ifdef __cplusplus
10453 < extern "C"
10454 < #endif
10455 < char $ac_func ();
10456 < /* The GNU C library defines this for functions which it implements
10457 <    to always fail with ENOSYS.  Some functions are actually named
10458 <    something starting with __ and the normal name is an alias.  */
10459 < #if defined __stub_$ac_func || defined __stub___$ac_func
10460 < choke me
10461 < #endif
10462 <
10463 < #ifdef FC_DUMMY_MAIN
10464 < #ifndef FC_DUMMY_MAIN_EQ_F77
10465 < #  ifdef __cplusplus
10466 <     extern "C"
10467 < #  endif
10468 <   int FC_DUMMY_MAIN() { return 1; }
10469 < #endif
10470 < #endif
10471 < int
10472 < main ()
10473 < {
10474 < return $ac_func ();
10475 <  ;
10476 <  return 0;
10477 < }
10478 < _ACEOF
10479 < rm -f conftest.$ac_objext conftest$ac_exeext
10480 < if { (ac_try="$ac_link"
10481 < case "(($ac_try" in
10482 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483 <  *) ac_try_echo=$ac_try;;
10484 < esac
10485 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486 <  (eval "$ac_link") 2>conftest.er1
10487 <  ac_status=$?
10488 <  grep -v '^ *+' conftest.er1 >conftest.err
10489 <  rm -f conftest.er1
10490 <  cat conftest.err >&5
10491 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 <  (exit $ac_status); } && {
10493 <         test -z "$ac_c_werror_flag" ||
10494 <         test ! -s conftest.err
10495 <       } && test -s conftest$ac_exeext &&
10496 <       $as_test_x conftest$ac_exeext; then
10497 <  eval "$as_ac_var=yes"
10498 < else
10499 <  echo "$as_me: failed program was:" >&5
10500 < sed 's/^/| /' conftest.$ac_ext >&5
10501 <
10502 <        eval "$as_ac_var=no"
10503 < fi
10504 <
10505 < rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10506 <      conftest$ac_exeext conftest.$ac_ext
10507 < fi
10508 < ac_res=`eval echo '${'$as_ac_var'}'`
10509 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
10510 < echo "${ECHO_T}$ac_res" >&6; }
10511 < if test `eval echo '${'$as_ac_var'}'` = yes; then
10512 <  cat >>confdefs.h <<_ACEOF
10513 < #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10514 < _ACEOF
10515 <
10516 < else
10517 <  # FreeBSD has a gnugetopt library for this
10518 <    { echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
10519 < echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6; }
10520 < if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
10521 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10522 < else
10523 <  ac_check_lib_save_LIBS=$LIBS
10524 < LIBS="-lgnugetopt  $LIBS"
10525 < cat >conftest.$ac_ext <<_ACEOF
10526 < /* confdefs.h.  */
10527 < _ACEOF
10528 < cat confdefs.h >>conftest.$ac_ext
10529 < cat >>conftest.$ac_ext <<_ACEOF
10530 < /* end confdefs.h.  */
10531 <
10532 < /* Override any GCC internal prototype to avoid an error.
10533 <   Use char because int might match the return type of a GCC
10534 <   builtin and then its argument prototype would still apply.  */
10535 < #ifdef __cplusplus
10536 < extern "C"
10537 < #endif
10538 < char getopt_long ();
10539 < #ifdef FC_DUMMY_MAIN
10540 < #ifndef FC_DUMMY_MAIN_EQ_F77
10541 < #  ifdef __cplusplus
10542 <     extern "C"
10543 < #  endif
10544 <   int FC_DUMMY_MAIN() { return 1; }
10545 < #endif
10546 < #endif
10547 < int
10548 < main ()
10549 < {
10550 < return getopt_long ();
10551 <  ;
10552 <  return 0;
10553 < }
10554 < _ACEOF
10555 < rm -f conftest.$ac_objext conftest$ac_exeext
10556 < if { (ac_try="$ac_link"
10557 < case "(($ac_try" in
10558 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559 <  *) ac_try_echo=$ac_try;;
10560 < esac
10561 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562 <  (eval "$ac_link") 2>conftest.er1
10563 <  ac_status=$?
10564 <  grep -v '^ *+' conftest.er1 >conftest.err
10565 <  rm -f conftest.er1
10566 <  cat conftest.err >&5
10567 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 <  (exit $ac_status); } && {
10569 <         test -z "$ac_c_werror_flag" ||
10570 <         test ! -s conftest.err
10571 <       } && test -s conftest$ac_exeext &&
10572 <       $as_test_x conftest$ac_exeext; then
10573 <  ac_cv_lib_gnugetopt_getopt_long=yes
10574 < else
10575 <  echo "$as_me: failed program was:" >&5
10576 < sed 's/^/| /' conftest.$ac_ext >&5
10577 <
10578 <        ac_cv_lib_gnugetopt_getopt_long=no
10579 < fi
10580 <
10581 < rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10582 <      conftest$ac_exeext conftest.$ac_ext
10583 < LIBS=$ac_check_lib_save_LIBS
10584 < fi
10585 < { echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
10586 < echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6; }
10587 < if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
10588 <  cat >>confdefs.h <<\_ACEOF
10589 < #define HAVE_GETOPT_LONG 1
10590 < _ACEOF
10591 <
10592 < else
10593 <  # use the GNU replacement
10594 <      case " $LIBOBJS " in
10595 <  *" getopt.$ac_objext "* ) ;;
10596 <  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
10597 < ;;
10598 < esac
10599 <
10600 <      case " $LIBOBJS " in
10601 <  *" getopt1.$ac_objext "* ) ;;
10602 <  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
10603 < ;;
10604 < esac
10605 <
10606 <      ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h"
10607 <
10608 < fi
10609 <
10610 < fi
10611 < done
10612 <
10613 <
10614 < ac_ext=cpp
10615 < ac_cpp='$CXXCPP $CPPFLAGS'
10616 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10617 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10618 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10619 <
10620 <
10621 < { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
10622 < echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
10623 < if test "${ac_cv_cxx_namespaces+set}" = set; then
10624 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10625 < else
10626 <
10627 < ac_ext=cpp
10628 < ac_cpp='$CXXCPP $CPPFLAGS'
10629 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10630 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10631 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10632 <
10633 < cat >conftest.$ac_ext <<_ACEOF
10634 < /* confdefs.h.  */
10635 < _ACEOF
10636 < cat confdefs.h >>conftest.$ac_ext
10637 < cat >>conftest.$ac_ext <<_ACEOF
10638 < /* end confdefs.h.  */
10639 < namespace Outer { namespace Inner { int i = 0; }}
10640 < #ifdef FC_DUMMY_MAIN
10641 < #ifndef FC_DUMMY_MAIN_EQ_F77
10642 < #  ifdef __cplusplus
10643 <     extern "C"
10644 < #  endif
10645 <   int FC_DUMMY_MAIN() { return 1; }
10646 < #endif
10647 < #endif
10648 < int
10649 < main ()
10650 < {
10651 < using namespace Outer::Inner; return i;
10652 <  ;
10653 <  return 0;
10654 < }
10655 < _ACEOF
10656 < rm -f conftest.$ac_objext
10657 < if { (ac_try="$ac_compile"
10658 < case "(($ac_try" in
10659 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10660 <  *) ac_try_echo=$ac_try;;
10661 < esac
10662 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10663 <  (eval "$ac_compile") 2>conftest.er1
10664 <  ac_status=$?
10665 <  grep -v '^ *+' conftest.er1 >conftest.err
10666 <  rm -f conftest.er1
10667 <  cat conftest.err >&5
10668 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 <  (exit $ac_status); } && {
10670 <         test -z "$ac_cxx_werror_flag" ||
10671 <         test ! -s conftest.err
10672 <       } && test -s conftest.$ac_objext; then
10673 <  ac_cv_cxx_namespaces=yes
10674 < else
10675 <  echo "$as_me: failed program was:" >&5
10676 < sed 's/^/| /' conftest.$ac_ext >&5
10677 <
10678 <        ac_cv_cxx_namespaces=no
10679 < fi
10680 <
10681 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10682 < ac_ext=cpp
10683 < ac_cpp='$CXXCPP $CPPFLAGS'
10684 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10685 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10686 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10687 <
10688 <
10689 < fi
10690 < { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
10691 < echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
10692 < if test "$ac_cv_cxx_namespaces" = yes; then
10693 <
10694 < cat >>confdefs.h <<\_ACEOF
10695 < #define HAVE_NAMESPACES
10696 < _ACEOF
10697 <
10698 < fi
10699 <
10700 < ac_ext=cpp
10701 < ac_cpp='$CXXCPP $CPPFLAGS'
10702 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10703 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10704 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10705 < { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10706 < echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10707 < if test -z "$CXXCPP"; then
10708 <  if test "${ac_cv_prog_CXXCPP+set}" = set; then
10709 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10710 < else
10711 <      # Double quotes because CXXCPP needs to be expanded
10712 <    for CXXCPP in "$CXX -E" "/lib/cpp"
10713 <    do
10714 <      ac_preproc_ok=false
10715 < for ac_cxx_preproc_warn_flag in '' yes
10716 < do
10717 <  # Use a header file that comes with gcc, so configuring glibc
10718 <  # with a fresh cross-compiler works.
10719 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10720 <  # <limits.h> exists even on freestanding compilers.
10721 <  # On the NeXT, cc -E runs the code through the compiler's parser,
10722 <  # not just through cpp. "Syntax error" is here to catch this case.
10723 <  cat >conftest.$ac_ext <<_ACEOF
10724 < /* confdefs.h.  */
10725 < _ACEOF
10726 < cat confdefs.h >>conftest.$ac_ext
10727 < cat >>conftest.$ac_ext <<_ACEOF
10728 < /* end confdefs.h.  */
10729 < #ifdef __STDC__
10730 < # include <limits.h>
10731 < #else
10732 < # include <assert.h>
10733 < #endif
10734 <                     Syntax error
10735 < _ACEOF
10736 < if { (ac_try="$ac_cpp conftest.$ac_ext"
10737 < case "(($ac_try" in
10738 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 <  *) ac_try_echo=$ac_try;;
10740 < esac
10741 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10743 <  ac_status=$?
10744 <  grep -v '^ *+' conftest.er1 >conftest.err
10745 <  rm -f conftest.er1
10746 <  cat conftest.err >&5
10747 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 <  (exit $ac_status); } >/dev/null && {
10749 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10750 <         test ! -s conftest.err
10751 <       }; then
10752 <  :
10753 < else
10754 <  echo "$as_me: failed program was:" >&5
10755 < sed 's/^/| /' conftest.$ac_ext >&5
10756 <
10757 <  # Broken: fails on valid input.
10758 < continue
10759 < fi
10760 <
10761 < rm -f conftest.err conftest.$ac_ext
10762 <
10763 <  # OK, works on sane cases.  Now check whether nonexistent headers
10764 <  # can be detected and how.
10765 <  cat >conftest.$ac_ext <<_ACEOF
10766 < /* confdefs.h.  */
10767 < _ACEOF
10768 < cat confdefs.h >>conftest.$ac_ext
10769 < cat >>conftest.$ac_ext <<_ACEOF
10770 < /* end confdefs.h.  */
10771 < #include <ac_nonexistent.h>
10772 < _ACEOF
10773 < if { (ac_try="$ac_cpp conftest.$ac_ext"
10774 < case "(($ac_try" in
10775 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 <  *) ac_try_echo=$ac_try;;
10777 < esac
10778 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10780 <  ac_status=$?
10781 <  grep -v '^ *+' conftest.er1 >conftest.err
10782 <  rm -f conftest.er1
10783 <  cat conftest.err >&5
10784 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 <  (exit $ac_status); } >/dev/null && {
10786 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10787 <         test ! -s conftest.err
10788 <       }; then
10789 <  # Broken: success on invalid input.
10790 < continue
10791 < else
10792 <  echo "$as_me: failed program was:" >&5
10793 < sed 's/^/| /' conftest.$ac_ext >&5
10794 <
10795 <  # Passes both tests.
10796 < ac_preproc_ok=:
10797 < break
10798 < fi
10799 <
10800 < rm -f conftest.err conftest.$ac_ext
10801 <
10802 < done
10803 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10804 < rm -f conftest.err conftest.$ac_ext
10805 < if $ac_preproc_ok; then
10806 <  break
10807 < fi
10808 <
10809 <    done
10810 <    ac_cv_prog_CXXCPP=$CXXCPP
10811 <
10812 < fi
10813 <  CXXCPP=$ac_cv_prog_CXXCPP
10814 < else
10815 <  ac_cv_prog_CXXCPP=$CXXCPP
10816 < fi
10817 < { echo "$as_me:$LINENO: result: $CXXCPP" >&5
10818 < echo "${ECHO_T}$CXXCPP" >&6; }
10819 < ac_preproc_ok=false
10820 < for ac_cxx_preproc_warn_flag in '' yes
10821 < do
10822 <  # Use a header file that comes with gcc, so configuring glibc
10823 <  # with a fresh cross-compiler works.
10824 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10825 <  # <limits.h> exists even on freestanding compilers.
10826 <  # On the NeXT, cc -E runs the code through the compiler's parser,
10827 <  # not just through cpp. "Syntax error" is here to catch this case.
10828 <  cat >conftest.$ac_ext <<_ACEOF
10829 < /* confdefs.h.  */
10830 < _ACEOF
10831 < cat confdefs.h >>conftest.$ac_ext
10832 < cat >>conftest.$ac_ext <<_ACEOF
10833 < /* end confdefs.h.  */
10834 < #ifdef __STDC__
10835 < # include <limits.h>
10836 < #else
10837 < # include <assert.h>
10838 < #endif
10839 <                     Syntax error
10840 < _ACEOF
10841 < if { (ac_try="$ac_cpp conftest.$ac_ext"
10842 < case "(($ac_try" in
10843 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 <  *) ac_try_echo=$ac_try;;
10845 < esac
10846 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10848 <  ac_status=$?
10849 <  grep -v '^ *+' conftest.er1 >conftest.err
10850 <  rm -f conftest.er1
10851 <  cat conftest.err >&5
10852 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 <  (exit $ac_status); } >/dev/null && {
10854 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10855 <         test ! -s conftest.err
10856 <       }; then
10857 <  :
10858 < else
10859 <  echo "$as_me: failed program was:" >&5
10860 < sed 's/^/| /' conftest.$ac_ext >&5
10861 <
10862 <  # Broken: fails on valid input.
10863 < continue
10864 < fi
10865 <
10866 < rm -f conftest.err conftest.$ac_ext
10867 <
10868 <  # OK, works on sane cases.  Now check whether nonexistent headers
10869 <  # can be detected and how.
10870 <  cat >conftest.$ac_ext <<_ACEOF
10871 < /* confdefs.h.  */
10872 < _ACEOF
10873 < cat confdefs.h >>conftest.$ac_ext
10874 < cat >>conftest.$ac_ext <<_ACEOF
10875 < /* end confdefs.h.  */
10876 < #include <ac_nonexistent.h>
10877 < _ACEOF
10878 < if { (ac_try="$ac_cpp conftest.$ac_ext"
10879 < case "(($ac_try" in
10880 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 <  *) ac_try_echo=$ac_try;;
10882 < esac
10883 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10885 <  ac_status=$?
10886 <  grep -v '^ *+' conftest.er1 >conftest.err
10887 <  rm -f conftest.er1
10888 <  cat conftest.err >&5
10889 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 <  (exit $ac_status); } >/dev/null && {
10891 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10892 <         test ! -s conftest.err
10893 <       }; then
10894 <  # Broken: success on invalid input.
10895 < continue
10896 < else
10897 <  echo "$as_me: failed program was:" >&5
10898 < sed 's/^/| /' conftest.$ac_ext >&5
10899 <
10900 <  # Passes both tests.
10901 < ac_preproc_ok=:
10902 < break
10903 < fi
10904 <
10905 < rm -f conftest.err conftest.$ac_ext
10906 <
10907 < done
10908 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10909 < rm -f conftest.err conftest.$ac_ext
10910 < if $ac_preproc_ok; then
10911 <  :
10912 < else
10913 <  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10914 < See \`config.log' for more details." >&5
10915 < echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10916 < See \`config.log' for more details." >&2;}
10917 <   { (exit 1); exit 1; }; }
10918 < fi
10919 <
10920 < ac_ext=cpp
10921 < ac_cpp='$CXXCPP $CPPFLAGS'
10922 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10923 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10924 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10925 <
10926 <
10927 < { echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
10928 < echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6; }
10929 < if test "${ac_cv_cxx_have_stl+set}" = set; then
10930 <  echo $ECHO_N "(cached) $ECHO_C" >&6
10931 < else
10932 <
10933 <
10934 < ac_ext=cpp
10935 < ac_cpp='$CXXCPP $CPPFLAGS'
10936 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10937 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10938 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10939 <
10940 < cat >conftest.$ac_ext <<_ACEOF
10941 < /* confdefs.h.  */
10942 < _ACEOF
10943 < cat confdefs.h >>conftest.$ac_ext
10944 < cat >>conftest.$ac_ext <<_ACEOF
10945 < /* end confdefs.h.  */
10946 < #include <list>
10947 < #include <deque>
10948 < #ifdef HAVE_NAMESPACES
10949 < using namespace std;
10950 < #endif
10951 < #ifdef FC_DUMMY_MAIN
10952 < #ifndef FC_DUMMY_MAIN_EQ_F77
10953 < #  ifdef __cplusplus
10954 <     extern "C"
10955 < #  endif
10956 <   int FC_DUMMY_MAIN() { return 1; }
10957 < #endif
10958 < #endif
10959 < int
10960 < main ()
10961 < {
10962 < list<int> x; x.push_back(5);
10963 < list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
10964 <  ;
10965 <  return 0;
10966 < }
10967 < _ACEOF
10968 < rm -f conftest.$ac_objext
10969 < if { (ac_try="$ac_compile"
10970 < case "(($ac_try" in
10971 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972 <  *) ac_try_echo=$ac_try;;
10973 < esac
10974 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975 <  (eval "$ac_compile") 2>conftest.er1
10976 <  ac_status=$?
10977 <  grep -v '^ *+' conftest.er1 >conftest.err
10978 <  rm -f conftest.er1
10979 <  cat conftest.err >&5
10980 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 <  (exit $ac_status); } && {
10982 <         test -z "$ac_cxx_werror_flag" ||
10983 <         test ! -s conftest.err
10984 <       } && test -s conftest.$ac_objext; then
10985 <  ac_cv_cxx_have_stl=yes
10986 < else
10987 <  echo "$as_me: failed program was:" >&5
10988 < sed 's/^/| /' conftest.$ac_ext >&5
10989 <
10990 <        ac_cv_cxx_have_stl=no
10991 < fi
10992 <
10993 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10994 < ac_ext=cpp
10995 < ac_cpp='$CXXCPP $CPPFLAGS'
10996 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10997 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10998 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10999 <
11000 <
11001 < fi
11002 < { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
11003 < echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6; }
11004 < if test "$ac_cv_cxx_have_stl" = yes; then
11005 <
11006 < cat >>confdefs.h <<\_ACEOF
11007 < #define HAVE_STL
11008 < _ACEOF
11009 <
11010 < fi
11011 <
11012 <
11013 <
11014 <  if test "${ac_cv_header_iostream+set}" = set; then
11015 <  { echo "$as_me:$LINENO: checking for iostream" >&5
11016 < echo $ECHO_N "checking for iostream... $ECHO_C" >&6; }
11017 < if test "${ac_cv_header_iostream+set}" = set; then
11018 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11019 < fi
11020 < { echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5
11021 < echo "${ECHO_T}$ac_cv_header_iostream" >&6; }
11022 < else
11023 <  # Is the header compilable?
11024 < { echo "$as_me:$LINENO: checking iostream usability" >&5
11025 < echo $ECHO_N "checking iostream usability... $ECHO_C" >&6; }
11026 < cat >conftest.$ac_ext <<_ACEOF
11027 < /* confdefs.h.  */
11028 < _ACEOF
11029 < cat confdefs.h >>conftest.$ac_ext
11030 < cat >>conftest.$ac_ext <<_ACEOF
11031 < /* end confdefs.h.  */
11032 < $ac_includes_default
11033 < #include <iostream>
11034 < _ACEOF
11035 < rm -f conftest.$ac_objext
11036 < if { (ac_try="$ac_compile"
11037 < case "(($ac_try" in
11038 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 <  *) ac_try_echo=$ac_try;;
11040 < esac
11041 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 <  (eval "$ac_compile") 2>conftest.er1
11043 <  ac_status=$?
11044 <  grep -v '^ *+' conftest.er1 >conftest.err
11045 <  rm -f conftest.er1
11046 <  cat conftest.err >&5
11047 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 <  (exit $ac_status); } && {
11049 <         test -z "$ac_cxx_werror_flag" ||
11050 <         test ! -s conftest.err
11051 <       } && test -s conftest.$ac_objext; then
11052 <  ac_header_compiler=yes
11053 < else
11054 <  echo "$as_me: failed program was:" >&5
11055 < sed 's/^/| /' conftest.$ac_ext >&5
11056 <
11057 <        ac_header_compiler=no
11058 < fi
11059 <
11060 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11061 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11062 < echo "${ECHO_T}$ac_header_compiler" >&6; }
11063 <
11064 < # Is the header present?
11065 < { echo "$as_me:$LINENO: checking iostream presence" >&5
11066 < echo $ECHO_N "checking iostream presence... $ECHO_C" >&6; }
11067 < cat >conftest.$ac_ext <<_ACEOF
11068 < /* confdefs.h.  */
11069 < _ACEOF
11070 < cat confdefs.h >>conftest.$ac_ext
11071 < cat >>conftest.$ac_ext <<_ACEOF
11072 < /* end confdefs.h.  */
11073 < #include <iostream>
11074 < _ACEOF
11075 < if { (ac_try="$ac_cpp conftest.$ac_ext"
11076 < case "(($ac_try" in
11077 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 <  *) ac_try_echo=$ac_try;;
11079 < esac
11080 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11082 <  ac_status=$?
11083 <  grep -v '^ *+' conftest.er1 >conftest.err
11084 <  rm -f conftest.er1
11085 <  cat conftest.err >&5
11086 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 <  (exit $ac_status); } >/dev/null && {
11088 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11089 <         test ! -s conftest.err
11090 <       }; then
11091 <  ac_header_preproc=yes
11092 < else
11093 <  echo "$as_me: failed program was:" >&5
11094 < sed 's/^/| /' conftest.$ac_ext >&5
11095 <
11096 <  ac_header_preproc=no
11097 < fi
11098 <
11099 < rm -f conftest.err conftest.$ac_ext
11100 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11101 < echo "${ECHO_T}$ac_header_preproc" >&6; }
11102 <
11103 < # So?  What about this header?
11104 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11105 <  yes:no: )
11106 <    { echo "$as_me:$LINENO: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&5
11107 < echo "$as_me: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&2;}
11108 <    { echo "$as_me:$LINENO: WARNING: iostream: proceeding with the compiler's result" >&5
11109 < echo "$as_me: WARNING: iostream: proceeding with the compiler's result" >&2;}
11110 <    ac_header_preproc=yes
11111 <    ;;
11112 <  no:yes:* )
11113 <    { echo "$as_me:$LINENO: WARNING: iostream: present but cannot be compiled" >&5
11114 < echo "$as_me: WARNING: iostream: present but cannot be compiled" >&2;}
11115 <    { echo "$as_me:$LINENO: WARNING: iostream:     check for missing prerequisite headers?" >&5
11116 < echo "$as_me: WARNING: iostream:     check for missing prerequisite headers?" >&2;}
11117 <    { echo "$as_me:$LINENO: WARNING: iostream: see the Autoconf documentation" >&5
11118 < echo "$as_me: WARNING: iostream: see the Autoconf documentation" >&2;}
11119 <    { echo "$as_me:$LINENO: WARNING: iostream:     section \"Present But Cannot Be Compiled\"" >&5
11120 < echo "$as_me: WARNING: iostream:     section \"Present But Cannot Be Compiled\"" >&2;}
11121 <    { echo "$as_me:$LINENO: WARNING: iostream: proceeding with the preprocessor's result" >&5
11122 < echo "$as_me: WARNING: iostream: proceeding with the preprocessor's result" >&2;}
11123 <    { echo "$as_me:$LINENO: WARNING: iostream: in the future, the compiler will take precedence" >&5
11124 < echo "$as_me: WARNING: iostream: in the future, the compiler will take precedence" >&2;}
11125 <    ( cat <<\_ASBOX
11126 < ## ------------------------------ ##
11127 < ## Report this to gezelter@nd.edu ##
11128 < ## ------------------------------ ##
11129 < _ASBOX
11130 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
11131 <    ;;
11132 < esac
11133 < { echo "$as_me:$LINENO: checking for iostream" >&5
11134 < echo $ECHO_N "checking for iostream... $ECHO_C" >&6; }
11135 < if test "${ac_cv_header_iostream+set}" = set; then
11136 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11137 < else
11138 <  ac_cv_header_iostream=$ac_header_preproc
11139 < fi
11140 < { echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5
11141 < echo "${ECHO_T}$ac_cv_header_iostream" >&6; }
11142 <
11143 < fi
11144 < if test $ac_cv_header_iostream = yes; then
11145 <
11146 <
11147 < cat >>confdefs.h <<\_ACEOF
11148 < #define HAVE_IOSTREAM 1
11149 < _ACEOF
11150 <
11151 <
11152 < else
11153 <
11154 <
11155 < for ac_header in iostream.h
11156 < do
11157 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11158 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11159 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11160 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11161 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11162 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11163 < fi
11164 < ac_res=`eval echo '${'$as_ac_Header'}'`
11165 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
11166 < echo "${ECHO_T}$ac_res" >&6; }
11167 < else
11168 <  # Is the header compilable?
11169 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11170 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11171 < cat >conftest.$ac_ext <<_ACEOF
11172 < /* confdefs.h.  */
11173 < _ACEOF
11174 < cat confdefs.h >>conftest.$ac_ext
11175 < cat >>conftest.$ac_ext <<_ACEOF
11176 < /* end confdefs.h.  */
11177 < $ac_includes_default
11178 < #include <$ac_header>
11179 < _ACEOF
11180 < rm -f conftest.$ac_objext
11181 < if { (ac_try="$ac_compile"
11182 < case "(($ac_try" in
11183 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 <  *) ac_try_echo=$ac_try;;
11185 < esac
11186 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 <  (eval "$ac_compile") 2>conftest.er1
11188 <  ac_status=$?
11189 <  grep -v '^ *+' conftest.er1 >conftest.err
11190 <  rm -f conftest.er1
11191 <  cat conftest.err >&5
11192 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 <  (exit $ac_status); } && {
11194 <         test -z "$ac_cxx_werror_flag" ||
11195 <         test ! -s conftest.err
11196 <       } && test -s conftest.$ac_objext; then
11197 <  ac_header_compiler=yes
11198 < else
11199 <  echo "$as_me: failed program was:" >&5
11200 < sed 's/^/| /' conftest.$ac_ext >&5
11201 <
11202 <        ac_header_compiler=no
11203 < fi
11204 <
11205 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11207 < echo "${ECHO_T}$ac_header_compiler" >&6; }
11208 <
11209 < # Is the header present?
11210 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11211 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11212 < cat >conftest.$ac_ext <<_ACEOF
11213 < /* confdefs.h.  */
11214 < _ACEOF
11215 < cat confdefs.h >>conftest.$ac_ext
11216 < cat >>conftest.$ac_ext <<_ACEOF
11217 < /* end confdefs.h.  */
11218 < #include <$ac_header>
11219 < _ACEOF
11220 < if { (ac_try="$ac_cpp conftest.$ac_ext"
11221 < case "(($ac_try" in
11222 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 <  *) ac_try_echo=$ac_try;;
11224 < esac
11225 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11227 <  ac_status=$?
11228 <  grep -v '^ *+' conftest.er1 >conftest.err
11229 <  rm -f conftest.er1
11230 <  cat conftest.err >&5
11231 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 <  (exit $ac_status); } >/dev/null && {
11233 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11234 <         test ! -s conftest.err
11235 <       }; then
11236 <  ac_header_preproc=yes
11237 < else
11238 <  echo "$as_me: failed program was:" >&5
11239 < sed 's/^/| /' conftest.$ac_ext >&5
11240 <
11241 <  ac_header_preproc=no
11242 < fi
11243 <
11244 < rm -f conftest.err conftest.$ac_ext
11245 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11246 < echo "${ECHO_T}$ac_header_preproc" >&6; }
11247 <
11248 < # So?  What about this header?
11249 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11250 <  yes:no: )
11251 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11252 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11253 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11254 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11255 <    ac_header_preproc=yes
11256 <    ;;
11257 <  no:yes:* )
11258 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11259 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11260 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11261 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11262 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11263 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11264 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11265 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11266 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11267 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11268 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11269 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11270 <    ( cat <<\_ASBOX
11271 < ## ------------------------------ ##
11272 < ## Report this to gezelter@nd.edu ##
11273 < ## ------------------------------ ##
11274 < _ASBOX
11275 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
11276 <    ;;
11277 < esac
11278 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
11279 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11280 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11281 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11282 < else
11283 <  eval "$as_ac_Header=\$ac_header_preproc"
11284 < fi
11285 < ac_res=`eval echo '${'$as_ac_Header'}'`
11286 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
11287 < echo "${ECHO_T}$ac_res" >&6; }
11288 <
11289 < fi
11290 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
11291 <  cat >>confdefs.h <<_ACEOF
11292 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11293 < _ACEOF
11294 <
11295 < fi
11296 <
11297 < done
11298 <
11299 <
11300 < fi
11301 <
11302 <
11303 <
11304 <
11305 <  if test "${ac_cv_header_iomanip+set}" = set; then
11306 <  { echo "$as_me:$LINENO: checking for iomanip" >&5
11307 < echo $ECHO_N "checking for iomanip... $ECHO_C" >&6; }
11308 < if test "${ac_cv_header_iomanip+set}" = set; then
11309 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11310 < fi
11311 < { echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5
11312 < echo "${ECHO_T}$ac_cv_header_iomanip" >&6; }
11313 < else
11314 <  # Is the header compilable?
11315 < { echo "$as_me:$LINENO: checking iomanip usability" >&5
11316 < echo $ECHO_N "checking iomanip usability... $ECHO_C" >&6; }
11317 < cat >conftest.$ac_ext <<_ACEOF
11318 < /* confdefs.h.  */
11319 < _ACEOF
11320 < cat confdefs.h >>conftest.$ac_ext
11321 < cat >>conftest.$ac_ext <<_ACEOF
11322 < /* end confdefs.h.  */
11323 < $ac_includes_default
11324 < #include <iomanip>
11325 < _ACEOF
11326 < rm -f conftest.$ac_objext
11327 < if { (ac_try="$ac_compile"
11328 < case "(($ac_try" in
11329 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330 <  *) ac_try_echo=$ac_try;;
11331 < esac
11332 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11333 <  (eval "$ac_compile") 2>conftest.er1
11334 <  ac_status=$?
11335 <  grep -v '^ *+' conftest.er1 >conftest.err
11336 <  rm -f conftest.er1
11337 <  cat conftest.err >&5
11338 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 <  (exit $ac_status); } && {
11340 <         test -z "$ac_cxx_werror_flag" ||
11341 <         test ! -s conftest.err
11342 <       } && test -s conftest.$ac_objext; then
11343 <  ac_header_compiler=yes
11344 < else
11345 <  echo "$as_me: failed program was:" >&5
11346 < sed 's/^/| /' conftest.$ac_ext >&5
11347 <
11348 <        ac_header_compiler=no
11349 < fi
11350 <
11351 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11352 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11353 < echo "${ECHO_T}$ac_header_compiler" >&6; }
11354 <
11355 < # Is the header present?
11356 < { echo "$as_me:$LINENO: checking iomanip presence" >&5
11357 < echo $ECHO_N "checking iomanip presence... $ECHO_C" >&6; }
11358 < cat >conftest.$ac_ext <<_ACEOF
11359 < /* confdefs.h.  */
11360 < _ACEOF
11361 < cat confdefs.h >>conftest.$ac_ext
11362 < cat >>conftest.$ac_ext <<_ACEOF
11363 < /* end confdefs.h.  */
11364 < #include <iomanip>
11365 < _ACEOF
11366 < if { (ac_try="$ac_cpp conftest.$ac_ext"
11367 < case "(($ac_try" in
11368 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 <  *) ac_try_echo=$ac_try;;
11370 < esac
11371 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11373 <  ac_status=$?
11374 <  grep -v '^ *+' conftest.er1 >conftest.err
11375 <  rm -f conftest.er1
11376 <  cat conftest.err >&5
11377 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 <  (exit $ac_status); } >/dev/null && {
11379 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11380 <         test ! -s conftest.err
11381 <       }; then
11382 <  ac_header_preproc=yes
11383 < else
11384 <  echo "$as_me: failed program was:" >&5
11385 < sed 's/^/| /' conftest.$ac_ext >&5
11386 <
11387 <  ac_header_preproc=no
11388 < fi
11389 <
11390 < rm -f conftest.err conftest.$ac_ext
11391 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11392 < echo "${ECHO_T}$ac_header_preproc" >&6; }
11393 <
11394 < # So?  What about this header?
11395 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11396 <  yes:no: )
11397 <    { echo "$as_me:$LINENO: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&5
11398 < echo "$as_me: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&2;}
11399 <    { echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the compiler's result" >&5
11400 < echo "$as_me: WARNING: iomanip: proceeding with the compiler's result" >&2;}
11401 <    ac_header_preproc=yes
11402 <    ;;
11403 <  no:yes:* )
11404 <    { echo "$as_me:$LINENO: WARNING: iomanip: present but cannot be compiled" >&5
11405 < echo "$as_me: WARNING: iomanip: present but cannot be compiled" >&2;}
11406 <    { echo "$as_me:$LINENO: WARNING: iomanip:     check for missing prerequisite headers?" >&5
11407 < echo "$as_me: WARNING: iomanip:     check for missing prerequisite headers?" >&2;}
11408 <    { echo "$as_me:$LINENO: WARNING: iomanip: see the Autoconf documentation" >&5
11409 < echo "$as_me: WARNING: iomanip: see the Autoconf documentation" >&2;}
11410 <    { echo "$as_me:$LINENO: WARNING: iomanip:     section \"Present But Cannot Be Compiled\"" >&5
11411 < echo "$as_me: WARNING: iomanip:     section \"Present But Cannot Be Compiled\"" >&2;}
11412 <    { echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the preprocessor's result" >&5
11413 < echo "$as_me: WARNING: iomanip: proceeding with the preprocessor's result" >&2;}
11414 <    { echo "$as_me:$LINENO: WARNING: iomanip: in the future, the compiler will take precedence" >&5
11415 < echo "$as_me: WARNING: iomanip: in the future, the compiler will take precedence" >&2;}
11416 <    ( cat <<\_ASBOX
11417 < ## ------------------------------ ##
11418 < ## Report this to gezelter@nd.edu ##
11419 < ## ------------------------------ ##
11420 < _ASBOX
11421 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
11422 <    ;;
11423 < esac
11424 < { echo "$as_me:$LINENO: checking for iomanip" >&5
11425 < echo $ECHO_N "checking for iomanip... $ECHO_C" >&6; }
11426 < if test "${ac_cv_header_iomanip+set}" = set; then
11427 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11428 < else
11429 <  ac_cv_header_iomanip=$ac_header_preproc
11430 < fi
11431 < { echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5
11432 < echo "${ECHO_T}$ac_cv_header_iomanip" >&6; }
11433 <
11434 < fi
11435 < if test $ac_cv_header_iomanip = yes; then
11436 <
11437 <
11438 < cat >>confdefs.h <<\_ACEOF
11439 < #define HAVE_IOMANIP 1
11440 < _ACEOF
11441 <
11442 <
11443 < else
11444 <
11445 <
11446 < for ac_header in iomanip.h
11447 < do
11448 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11449 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11450 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11451 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11452 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11453 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11454 < fi
11455 < ac_res=`eval echo '${'$as_ac_Header'}'`
11456 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
11457 < echo "${ECHO_T}$ac_res" >&6; }
11458 < else
11459 <  # Is the header compilable?
11460 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11461 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11462 < cat >conftest.$ac_ext <<_ACEOF
11463 < /* confdefs.h.  */
11464 < _ACEOF
11465 < cat confdefs.h >>conftest.$ac_ext
11466 < cat >>conftest.$ac_ext <<_ACEOF
11467 < /* end confdefs.h.  */
11468 < $ac_includes_default
11469 < #include <$ac_header>
11470 < _ACEOF
11471 < rm -f conftest.$ac_objext
11472 < if { (ac_try="$ac_compile"
11473 < case "(($ac_try" in
11474 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 <  *) ac_try_echo=$ac_try;;
11476 < esac
11477 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478 <  (eval "$ac_compile") 2>conftest.er1
11479 <  ac_status=$?
11480 <  grep -v '^ *+' conftest.er1 >conftest.err
11481 <  rm -f conftest.er1
11482 <  cat conftest.err >&5
11483 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 <  (exit $ac_status); } && {
11485 <         test -z "$ac_cxx_werror_flag" ||
11486 <         test ! -s conftest.err
11487 <       } && test -s conftest.$ac_objext; then
11488 <  ac_header_compiler=yes
11489 < else
11490 <  echo "$as_me: failed program was:" >&5
11491 < sed 's/^/| /' conftest.$ac_ext >&5
11492 <
11493 <        ac_header_compiler=no
11494 < fi
11495 <
11496 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11497 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11498 < echo "${ECHO_T}$ac_header_compiler" >&6; }
11499 <
11500 < # Is the header present?
11501 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11502 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11503 < cat >conftest.$ac_ext <<_ACEOF
11504 < /* confdefs.h.  */
11505 < _ACEOF
11506 < cat confdefs.h >>conftest.$ac_ext
11507 < cat >>conftest.$ac_ext <<_ACEOF
11508 < /* end confdefs.h.  */
11509 < #include <$ac_header>
11510 < _ACEOF
11511 < if { (ac_try="$ac_cpp conftest.$ac_ext"
11512 < case "(($ac_try" in
11513 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 <  *) ac_try_echo=$ac_try;;
11515 < esac
11516 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11518 <  ac_status=$?
11519 <  grep -v '^ *+' conftest.er1 >conftest.err
11520 <  rm -f conftest.er1
11521 <  cat conftest.err >&5
11522 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 <  (exit $ac_status); } >/dev/null && {
11524 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11525 <         test ! -s conftest.err
11526 <       }; then
11527 <  ac_header_preproc=yes
11528 < else
11529 <  echo "$as_me: failed program was:" >&5
11530 < sed 's/^/| /' conftest.$ac_ext >&5
11531 <
11532 <  ac_header_preproc=no
11533 < fi
11534 <
11535 < rm -f conftest.err conftest.$ac_ext
11536 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11537 < echo "${ECHO_T}$ac_header_preproc" >&6; }
11538 <
11539 < # So?  What about this header?
11540 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11541 <  yes:no: )
11542 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11543 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11544 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11545 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11546 <    ac_header_preproc=yes
11547 <    ;;
11548 <  no:yes:* )
11549 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11550 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11551 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11552 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11553 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11554 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11555 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11556 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11557 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11558 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11559 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11560 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11561 <    ( cat <<\_ASBOX
11562 < ## ------------------------------ ##
11563 < ## Report this to gezelter@nd.edu ##
11564 < ## ------------------------------ ##
11565 < _ASBOX
11566 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
11567 <    ;;
11568 < esac
11569 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
11570 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11571 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11572 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11573 < else
11574 <  eval "$as_ac_Header=\$ac_header_preproc"
11575 < fi
11576 < ac_res=`eval echo '${'$as_ac_Header'}'`
11577 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
11578 < echo "${ECHO_T}$ac_res" >&6; }
11579 <
11580 < fi
11581 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
11582 <  cat >>confdefs.h <<_ACEOF
11583 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11584 < _ACEOF
11585 <
11586 < fi
11587 <
11588 < done
11589 <
11590 <
11591 < fi
11592 <
11593 <
11594 <
11595 <
11596 < for ac_header in cmath
11597 < do
11598 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11599 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11600 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11601 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11602 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11603 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11604 < fi
11605 < ac_res=`eval echo '${'$as_ac_Header'}'`
11606 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
11607 < echo "${ECHO_T}$ac_res" >&6; }
11608 < else
11609 <  # Is the header compilable?
11610 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11611 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11612 < cat >conftest.$ac_ext <<_ACEOF
11613 < /* confdefs.h.  */
11614 < _ACEOF
11615 < cat confdefs.h >>conftest.$ac_ext
11616 < cat >>conftest.$ac_ext <<_ACEOF
11617 < /* end confdefs.h.  */
11618 < $ac_includes_default
11619 < #include <$ac_header>
11620 < _ACEOF
11621 < rm -f conftest.$ac_objext
11622 < if { (ac_try="$ac_compile"
11623 < case "(($ac_try" in
11624 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 <  *) ac_try_echo=$ac_try;;
11626 < esac
11627 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 <  (eval "$ac_compile") 2>conftest.er1
11629 <  ac_status=$?
11630 <  grep -v '^ *+' conftest.er1 >conftest.err
11631 <  rm -f conftest.er1
11632 <  cat conftest.err >&5
11633 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 <  (exit $ac_status); } && {
11635 <         test -z "$ac_cxx_werror_flag" ||
11636 <         test ! -s conftest.err
11637 <       } && test -s conftest.$ac_objext; then
11638 <  ac_header_compiler=yes
11639 < else
11640 <  echo "$as_me: failed program was:" >&5
11641 < sed 's/^/| /' conftest.$ac_ext >&5
11642 <
11643 <        ac_header_compiler=no
11644 < fi
11645 <
11646 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11647 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11648 < echo "${ECHO_T}$ac_header_compiler" >&6; }
11649 <
11650 < # Is the header present?
11651 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11652 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11653 < cat >conftest.$ac_ext <<_ACEOF
11654 < /* confdefs.h.  */
11655 < _ACEOF
11656 < cat confdefs.h >>conftest.$ac_ext
11657 < cat >>conftest.$ac_ext <<_ACEOF
11658 < /* end confdefs.h.  */
11659 < #include <$ac_header>
11660 < _ACEOF
11661 < if { (ac_try="$ac_cpp conftest.$ac_ext"
11662 < case "(($ac_try" in
11663 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 <  *) ac_try_echo=$ac_try;;
11665 < esac
11666 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11668 <  ac_status=$?
11669 <  grep -v '^ *+' conftest.er1 >conftest.err
11670 <  rm -f conftest.er1
11671 <  cat conftest.err >&5
11672 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 <  (exit $ac_status); } >/dev/null && {
11674 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11675 <         test ! -s conftest.err
11676 <       }; then
11677 <  ac_header_preproc=yes
11678 < else
11679 <  echo "$as_me: failed program was:" >&5
11680 < sed 's/^/| /' conftest.$ac_ext >&5
11681 <
11682 <  ac_header_preproc=no
11683 < fi
11684 <
11685 < rm -f conftest.err conftest.$ac_ext
11686 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11687 < echo "${ECHO_T}$ac_header_preproc" >&6; }
11688 <
11689 < # So?  What about this header?
11690 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11691 <  yes:no: )
11692 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11693 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11694 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11695 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11696 <    ac_header_preproc=yes
11697 <    ;;
11698 <  no:yes:* )
11699 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11700 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11701 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11702 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11703 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11704 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11705 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11706 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11707 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11708 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11709 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11710 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11711 <    ( cat <<\_ASBOX
11712 < ## ------------------------------ ##
11713 < ## Report this to gezelter@nd.edu ##
11714 < ## ------------------------------ ##
11715 < _ASBOX
11716 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
11717 <    ;;
11718 < esac
11719 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
11720 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11721 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11722 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11723 < else
11724 <  eval "$as_ac_Header=\$ac_header_preproc"
11725 < fi
11726 < ac_res=`eval echo '${'$as_ac_Header'}'`
11727 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
11728 < echo "${ECHO_T}$ac_res" >&6; }
11729 <
11730 < fi
11731 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
11732 <  cat >>confdefs.h <<_ACEOF
11733 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11734 < _ACEOF
11735 <
11736 < fi
11737 <
11738 < done
11739 <
11740 <
11741 <
11742 <
11743 <  { echo "$as_me:$LINENO: checking for C++ iostream in namespace std" >&5
11744 < echo $ECHO_N "checking for C++ iostream in namespace std... $ECHO_C" >&6; }
11745 < if test "${ac_cv_cxx_have_std_iostream+set}" = set; then
11746 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11747 < else
11748 <
11749 <      ac_cv_cxx_have_std_iostream=no
11750 <      ac_cv_cxx_need_use_std_iostream=no
11751 <      if test "x$ac_cv_cxx_namespaces" = xyes; then
11752 <
11753 <        ac_ext=cpp
11754 < ac_cpp='$CXXCPP $CPPFLAGS'
11755 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11756 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11757 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11758 <
11759 <        cat >conftest.$ac_ext <<_ACEOF
11760 < /* confdefs.h.  */
11761 < _ACEOF
11762 < cat confdefs.h >>conftest.$ac_ext
11763 < cat >>conftest.$ac_ext <<_ACEOF
11764 < /* end confdefs.h.  */
11765 <
11766 < #ifdef HAVE_IOSTREAM
11767 < #include <iostream>
11768 < #else
11769 < #include <iostream.h>
11770 < #endif
11771 <
11772 < #ifdef FC_DUMMY_MAIN
11773 < #ifndef FC_DUMMY_MAIN_EQ_F77
11774 < #  ifdef __cplusplus
11775 <     extern "C"
11776 < #  endif
11777 <   int FC_DUMMY_MAIN() { return 1; }
11778 < #endif
11779 < #endif
11780 < int
11781 < main ()
11782 < {
11783 < std::cout<<"Hello World"<<std::endl;return 0;
11784 <  ;
11785 <  return 0;
11786 < }
11787 < _ACEOF
11788 < rm -f conftest.$ac_objext
11789 < if { (ac_try="$ac_compile"
11790 < case "(($ac_try" in
11791 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 <  *) ac_try_echo=$ac_try;;
11793 < esac
11794 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 <  (eval "$ac_compile") 2>conftest.er1
11796 <  ac_status=$?
11797 <  grep -v '^ *+' conftest.er1 >conftest.err
11798 <  rm -f conftest.er1
11799 <  cat conftest.err >&5
11800 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 <  (exit $ac_status); } && {
11802 <         test -z "$ac_cxx_werror_flag" ||
11803 <         test ! -s conftest.err
11804 <       } && test -s conftest.$ac_objext; then
11805 <  ac_cv_cxx_have_std_iostream=yes
11806 < else
11807 <  echo "$as_me: failed program was:" >&5
11808 < sed 's/^/| /' conftest.$ac_ext >&5
11809 <
11810 <
11811 < fi
11812 <
11813 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11814 <        cat >conftest.$ac_ext <<_ACEOF
11815 < /* confdefs.h.  */
11816 < _ACEOF
11817 < cat confdefs.h >>conftest.$ac_ext
11818 < cat >>conftest.$ac_ext <<_ACEOF
11819 < /* end confdefs.h.  */
11820 <
11821 < #define __USE_STD_IOSTREAM 1
11822 < #ifdef HAVE_IOSTREAM
11823 < #include <iostream>
11824 < #else
11825 < #include <iostream.h>
11826 < #endif
11827 <
11828 < #ifdef FC_DUMMY_MAIN
11829 < #ifndef FC_DUMMY_MAIN_EQ_F77
11830 < #  ifdef __cplusplus
11831 <     extern "C"
11832 < #  endif
11833 <   int FC_DUMMY_MAIN() { return 1; }
11834 < #endif
11835 < #endif
11836 < int
11837 < main ()
11838 < {
11839 < std::cout<<"Hello World"<<std::endl;return 0;
11840 <  ;
11841 <  return 0;
11842 < }
11843 < _ACEOF
11844 < rm -f conftest.$ac_objext
11845 < if { (ac_try="$ac_compile"
11846 < case "(($ac_try" in
11847 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 <  *) ac_try_echo=$ac_try;;
11849 < esac
11850 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 <  (eval "$ac_compile") 2>conftest.er1
11852 <  ac_status=$?
11853 <  grep -v '^ *+' conftest.er1 >conftest.err
11854 <  rm -f conftest.er1
11855 <  cat conftest.err >&5
11856 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 <  (exit $ac_status); } && {
11858 <         test -z "$ac_cxx_werror_flag" ||
11859 <         test ! -s conftest.err
11860 <       } && test -s conftest.$ac_objext; then
11861 <  ac_cv_cxx_have_std_iostream=yes;ac_cv_cxx_need_use_std_iostream=yes
11862 < else
11863 <  echo "$as_me: failed program was:" >&5
11864 < sed 's/^/| /' conftest.$ac_ext >&5
11865 <
11866 <
11867 < fi
11868 <
11869 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 <        ac_ext=cpp
11871 < ac_cpp='$CXXCPP $CPPFLAGS'
11872 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11873 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11874 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11875 <
11876 <      fi
11877 <
11878 < fi
11879 < { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iostream" >&5
11880 < echo "${ECHO_T}$ac_cv_cxx_have_std_iostream" >&6; }
11881 <  if test "$ac_cv_cxx_have_std_iostream" = yes; then
11882 <
11883 < cat >>confdefs.h <<\_ACEOF
11884 < #define HAVE_STD_IOSTREAM 1
11885 < _ACEOF
11886 <
11887 <  fi
11888 <  if test "$ac_cv_cxx_need_use_std_iostream" = yes; then
11889 <
11890 < cat >>confdefs.h <<\_ACEOF
11891 < #define __USE_STD_IOSTREAM 1
11892 < _ACEOF
11893 <
11894 <  fi
11895 <
11896 <
11897 <
11898 <
11899 <  { echo "$as_me:$LINENO: checking for C++ Standard Template Library in namespace std." >&5
11900 < echo $ECHO_N "checking for C++ Standard Template Library in namespace std.... $ECHO_C" >&6; }
11901 < if test "${ac_cv_cxx_have_std_stl+set}" = set; then
11902 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11903 < else
11904 <
11905 <      ac_cv_cxx_have_std_stl=no
11906 <      if test "x$ac_cv_cxx_namespaces" = xyes; then
11907 <
11908 <        ac_ext=cpp
11909 < ac_cpp='$CXXCPP $CPPFLAGS'
11910 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11911 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11912 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11913 <
11914 <        cat >conftest.$ac_ext <<_ACEOF
11915 < /* confdefs.h.  */
11916 < _ACEOF
11917 < cat confdefs.h >>conftest.$ac_ext
11918 < cat >>conftest.$ac_ext <<_ACEOF
11919 < /* end confdefs.h.  */
11920 < #include <list>
11921 <
11922 < #ifdef FC_DUMMY_MAIN
11923 < #ifndef FC_DUMMY_MAIN_EQ_F77
11924 < #  ifdef __cplusplus
11925 <     extern "C"
11926 < #  endif
11927 <   int FC_DUMMY_MAIN() { return 1; }
11928 < #endif
11929 < #endif
11930 < int
11931 < main ()
11932 < {
11933 < std::list<int> foo;return 0;
11934 <  ;
11935 <  return 0;
11936 < }
11937 < _ACEOF
11938 < rm -f conftest.$ac_objext
11939 < if { (ac_try="$ac_compile"
11940 < case "(($ac_try" in
11941 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942 <  *) ac_try_echo=$ac_try;;
11943 < esac
11944 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11945 <  (eval "$ac_compile") 2>conftest.er1
11946 <  ac_status=$?
11947 <  grep -v '^ *+' conftest.er1 >conftest.err
11948 <  rm -f conftest.er1
11949 <  cat conftest.err >&5
11950 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 <  (exit $ac_status); } && {
11952 <         test -z "$ac_cxx_werror_flag" ||
11953 <         test ! -s conftest.err
11954 <       } && test -s conftest.$ac_objext; then
11955 <  ac_cv_cxx_have_std_stl=yes
11956 < else
11957 <  echo "$as_me: failed program was:" >&5
11958 < sed 's/^/| /' conftest.$ac_ext >&5
11959 <
11960 <
11961 < fi
11962 <
11963 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11964 <        ac_ext=cpp
11965 < ac_cpp='$CXXCPP $CPPFLAGS'
11966 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11967 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11968 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11969 <
11970 <      fi
11971 <
11972 < fi
11973 < { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_stl" >&5
11974 < echo "${ECHO_T}$ac_cv_cxx_have_std_stl" >&6; }
11975 <  if test "$ac_cv_cxx_have_std_stl" = yes; then
11976 <
11977 < cat >>confdefs.h <<\_ACEOF
11978 < #define HAVE_STD_STL 1
11979 < _ACEOF
11980 <
11981 <  fi
11982 <
11983 <
11984 <
11985 <  { echo "$as_me:$LINENO: checking for fstream::attach()" >&5
11986 < echo $ECHO_N "checking for fstream::attach()... $ECHO_C" >&6; }
11987 < if test "${ac_cv_cxx_have_fstream_attach+set}" = set; then
11988 <  echo $ECHO_N "(cached) $ECHO_C" >&6
11989 < else
11990 <
11991 <    ac_cv_cxx_have_fstream_attach=no
11992 <
11993 <    ac_ext=cpp
11994 < ac_cpp='$CXXCPP $CPPFLAGS'
11995 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11996 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11997 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11998 <
11999 <    cat >conftest.$ac_ext <<_ACEOF
12000 < /* confdefs.h.  */
12001 < _ACEOF
12002 < cat confdefs.h >>conftest.$ac_ext
12003 < cat >>conftest.$ac_ext <<_ACEOF
12004 < /* end confdefs.h.  */
12005 <
12006 < #ifdef HAVE_IOSTREAM
12007 < #include <fstream>
12008 < #else
12009 < #include <fstream.h>
12010 < #endif
12011 < #ifdef HAVE_STD_IOSTREAM
12012 < using namespace std;
12013 < #endif
12014 <
12015 < #ifdef FC_DUMMY_MAIN
12016 < #ifndef FC_DUMMY_MAIN_EQ_F77
12017 < #  ifdef __cplusplus
12018 <     extern "C"
12019 < #  endif
12020 <   int FC_DUMMY_MAIN() { return 1; }
12021 < #endif
12022 < #endif
12023 < int
12024 < main ()
12025 < {
12026 < int fd=0;ofstream s;s.attach(fd);
12027 <  ;
12028 <  return 0;
12029 < }
12030 < _ACEOF
12031 < rm -f conftest.$ac_objext
12032 < if { (ac_try="$ac_compile"
12033 < case "(($ac_try" in
12034 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 <  *) ac_try_echo=$ac_try;;
12036 < esac
12037 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 <  (eval "$ac_compile") 2>conftest.er1
12039 <  ac_status=$?
12040 <  grep -v '^ *+' conftest.er1 >conftest.err
12041 <  rm -f conftest.er1
12042 <  cat conftest.err >&5
12043 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 <  (exit $ac_status); } && {
12045 <         test -z "$ac_cxx_werror_flag" ||
12046 <         test ! -s conftest.err
12047 <       } && test -s conftest.$ac_objext; then
12048 <  ac_cv_cxx_have_fstream_attach=yes
12049 < else
12050 <  echo "$as_me: failed program was:" >&5
12051 < sed 's/^/| /' conftest.$ac_ext >&5
12052 <
12053 <
12054 < fi
12055 <
12056 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 <    ac_ext=cpp
12058 < ac_cpp='$CXXCPP $CPPFLAGS'
12059 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12060 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12061 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12062 <
12063 <
12064 < fi
12065 < { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_attach" >&5
12066 < echo "${ECHO_T}$ac_cv_cxx_have_fstream_attach" >&6; }
12067 <  if test "$ac_cv_cxx_have_fstream_attach" = yes; then
12068 <
12069 < cat >>confdefs.h <<\_ACEOF
12070 < #define HAVE_FSTREAM_ATTACH 1
12071 < _ACEOF
12072 <
12073 <  fi
12074 <
12075 <
12076 <
12077 <  { echo "$as_me:$LINENO: checking for fstream::open()" >&5
12078 < echo $ECHO_N "checking for fstream::open()... $ECHO_C" >&6; }
12079 < if test "${ac_cv_cxx_have_fstream_open+set}" = set; then
12080 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12081 < else
12082 <
12083 <    ac_cv_cxx_have_fstream_open=no
12084 <    ac_cv_cxx_fstream_open_prot=no
12085 <
12086 <    ac_ext=cpp
12087 < ac_cpp='$CXXCPP $CPPFLAGS'
12088 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12089 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12090 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12091 <
12092 <    # Try with 2 parameters
12093 <    cat >conftest.$ac_ext <<_ACEOF
12094 < /* confdefs.h.  */
12095 < _ACEOF
12096 < cat confdefs.h >>conftest.$ac_ext
12097 < cat >>conftest.$ac_ext <<_ACEOF
12098 < /* end confdefs.h.  */
12099 <
12100 < #ifdef HAVE_IOSTREAM
12101 < #include <fstream>
12102 < #else
12103 < #include <fstream.h>
12104 < #endif
12105 < #ifdef HAVE_STD_IOSTREAM
12106 < using namespace std;
12107 < #endif
12108 <
12109 < #ifdef FC_DUMMY_MAIN
12110 < #ifndef FC_DUMMY_MAIN_EQ_F77
12111 < #  ifdef __cplusplus
12112 <     extern "C"
12113 < #  endif
12114 <   int FC_DUMMY_MAIN() { return 1; }
12115 < #endif
12116 < #endif
12117 < int
12118 < main ()
12119 < {
12120 < ofstream s;s.open("conftest.txt",ios::out|ios::trunc);
12121 <  ;
12122 <  return 0;
12123 < }
12124 < _ACEOF
12125 < rm -f conftest.$ac_objext
12126 < if { (ac_try="$ac_compile"
12127 < case "(($ac_try" in
12128 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 <  *) ac_try_echo=$ac_try;;
12130 < esac
12131 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 <  (eval "$ac_compile") 2>conftest.er1
12133 <  ac_status=$?
12134 <  grep -v '^ *+' conftest.er1 >conftest.err
12135 <  rm -f conftest.er1
12136 <  cat conftest.err >&5
12137 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 <  (exit $ac_status); } && {
12139 <         test -z "$ac_cxx_werror_flag" ||
12140 <         test ! -s conftest.err
12141 <       } && test -s conftest.$ac_objext; then
12142 <  ac_cv_cxx_have_fstream_open=yes
12143 < else
12144 <  echo "$as_me: failed program was:" >&5
12145 < sed 's/^/| /' conftest.$ac_ext >&5
12146 <
12147 <
12148 < fi
12149 <
12150 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12151 <    # Try with mode parameter
12152 <    cat >conftest.$ac_ext <<_ACEOF
12153 < /* confdefs.h.  */
12154 < _ACEOF
12155 < cat confdefs.h >>conftest.$ac_ext
12156 < cat >>conftest.$ac_ext <<_ACEOF
12157 < /* end confdefs.h.  */
12158 <
12159 < #ifdef HAVE_IOSTREAM
12160 < #include <fstream>
12161 < #else
12162 < #include <fstream.h>
12163 < #endif
12164 < #ifdef HAVE_STD_IOSTREAM
12165 < using namespace std;
12166 < #endif
12167 <
12168 < #ifdef FC_DUMMY_MAIN
12169 < #ifndef FC_DUMMY_MAIN_EQ_F77
12170 < #  ifdef __cplusplus
12171 <     extern "C"
12172 < #  endif
12173 <   int FC_DUMMY_MAIN() { return 1; }
12174 < #endif
12175 < #endif
12176 < int
12177 < main ()
12178 < {
12179 < ofstream s;s.open("conftest.txt",ios::out|ios::trunc,0666);
12180 <  ;
12181 <  return 0;
12182 < }
12183 < _ACEOF
12184 < rm -f conftest.$ac_objext
12185 < if { (ac_try="$ac_compile"
12186 < case "(($ac_try" in
12187 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 <  *) ac_try_echo=$ac_try;;
12189 < esac
12190 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 <  (eval "$ac_compile") 2>conftest.er1
12192 <  ac_status=$?
12193 <  grep -v '^ *+' conftest.er1 >conftest.err
12194 <  rm -f conftest.er1
12195 <  cat conftest.err >&5
12196 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 <  (exit $ac_status); } && {
12198 <         test -z "$ac_cxx_werror_flag" ||
12199 <         test ! -s conftest.err
12200 <       } && test -s conftest.$ac_objext; then
12201 <  ac_cv_cxx_fstream_open_prot=yes
12202 < else
12203 <  echo "$as_me: failed program was:" >&5
12204 < sed 's/^/| /' conftest.$ac_ext >&5
12205 <
12206 <
12207 < fi
12208 <
12209 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12210 <    ac_ext=cpp
12211 < ac_cpp='$CXXCPP $CPPFLAGS'
12212 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12213 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12214 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12215 <
12216 <
12217 < fi
12218 < { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_open" >&5
12219 < echo "${ECHO_T}$ac_cv_cxx_have_fstream_open" >&6; }
12220 <  if test "$ac_cv_cxx_have_fstream_open" = yes; then
12221 <
12222 < cat >>confdefs.h <<\_ACEOF
12223 < #define HAVE_FSTREAM_OPEN 1
12224 < _ACEOF
12225 <
12226 <  fi
12227 <  if test "$ac_cv_cxx_fstream_open_prot" = yes; then
12228 <
12229 < cat >>confdefs.h <<\_ACEOF
12230 < #define FSTREAM_OPEN_PROT 1
12231 < _ACEOF
12232 <
12233 <  fi
12234 <
12235 <
12236 <
12237 <
12238 <
12239 <
12240 <
12241 < for ac_header in ctype.h iostream fstream sstream strstream
12242 < do
12243 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12244 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12245 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12246 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12247 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12248 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12249 < fi
12250 < ac_res=`eval echo '${'$as_ac_Header'}'`
12251 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
12252 < echo "${ECHO_T}$ac_res" >&6; }
12253 < else
12254 <  # Is the header compilable?
12255 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12256 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12257 < cat >conftest.$ac_ext <<_ACEOF
12258 < /* confdefs.h.  */
12259 < _ACEOF
12260 < cat confdefs.h >>conftest.$ac_ext
12261 < cat >>conftest.$ac_ext <<_ACEOF
12262 < /* end confdefs.h.  */
12263 < $ac_includes_default
12264 < #include <$ac_header>
12265 < _ACEOF
12266 < rm -f conftest.$ac_objext
12267 < if { (ac_try="$ac_compile"
12268 < case "(($ac_try" in
12269 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 <  *) ac_try_echo=$ac_try;;
12271 < esac
12272 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 <  (eval "$ac_compile") 2>conftest.er1
12274 <  ac_status=$?
12275 <  grep -v '^ *+' conftest.er1 >conftest.err
12276 <  rm -f conftest.er1
12277 <  cat conftest.err >&5
12278 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 <  (exit $ac_status); } && {
12280 <         test -z "$ac_cxx_werror_flag" ||
12281 <         test ! -s conftest.err
12282 <       } && test -s conftest.$ac_objext; then
12283 <  ac_header_compiler=yes
12284 < else
12285 <  echo "$as_me: failed program was:" >&5
12286 < sed 's/^/| /' conftest.$ac_ext >&5
12287 <
12288 <        ac_header_compiler=no
12289 < fi
12290 <
12291 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12292 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12293 < echo "${ECHO_T}$ac_header_compiler" >&6; }
12294 <
12295 < # Is the header present?
12296 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12297 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12298 < cat >conftest.$ac_ext <<_ACEOF
12299 < /* confdefs.h.  */
12300 < _ACEOF
12301 < cat confdefs.h >>conftest.$ac_ext
12302 < cat >>conftest.$ac_ext <<_ACEOF
12303 < /* end confdefs.h.  */
12304 < #include <$ac_header>
12305 < _ACEOF
12306 < if { (ac_try="$ac_cpp conftest.$ac_ext"
12307 < case "(($ac_try" in
12308 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 <  *) ac_try_echo=$ac_try;;
12310 < esac
12311 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12313 <  ac_status=$?
12314 <  grep -v '^ *+' conftest.er1 >conftest.err
12315 <  rm -f conftest.er1
12316 <  cat conftest.err >&5
12317 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 <  (exit $ac_status); } >/dev/null && {
12319 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12320 <         test ! -s conftest.err
12321 <       }; then
12322 <  ac_header_preproc=yes
12323 < else
12324 <  echo "$as_me: failed program was:" >&5
12325 < sed 's/^/| /' conftest.$ac_ext >&5
12326 <
12327 <  ac_header_preproc=no
12328 < fi
12329 <
12330 < rm -f conftest.err conftest.$ac_ext
12331 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12332 < echo "${ECHO_T}$ac_header_preproc" >&6; }
12333 <
12334 < # So?  What about this header?
12335 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12336 <  yes:no: )
12337 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12338 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12339 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12340 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12341 <    ac_header_preproc=yes
12342 <    ;;
12343 <  no:yes:* )
12344 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12345 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12346 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12347 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12348 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12349 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12350 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12351 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12352 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12353 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12354 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12355 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12356 <    ( cat <<\_ASBOX
12357 < ## ------------------------------ ##
12358 < ## Report this to gezelter@nd.edu ##
12359 < ## ------------------------------ ##
12360 < _ASBOX
12361 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
12362 <    ;;
12363 < esac
12364 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
12365 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12366 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12367 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12368 < else
12369 <  eval "$as_ac_Header=\$ac_header_preproc"
12370 < fi
12371 < ac_res=`eval echo '${'$as_ac_Header'}'`
12372 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
12373 < echo "${ECHO_T}$ac_res" >&6; }
12374 <
12375 < fi
12376 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
12377 <  cat >>confdefs.h <<_ACEOF
12378 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12379 < _ACEOF
12380 <
12381 < fi
12382 <
12383 < done
12384 <
12385 < # AC_CPP_FUNC
12386 < # ------------------ #
12387 < # Checks to see if ANSI C99 CPP variable __func__ works.
12388 < # If not, perhaps __FUNCTION__ works instead.
12389 < # If not, we'll just define __func__ to "".
12390 < # AC_CPP_FUNC
12391 <
12392 <   case $ac_cv_prog_cc_stdc in
12393 <  no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
12394 <  *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
12395 < echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
12396 < if test "${ac_cv_prog_cc_c99+set}" = set; then
12397 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12398 < else
12399 <  ac_cv_prog_cc_c99=no
12400 < ac_save_CC=$CC
12401 < cat >conftest.$ac_ext <<_ACEOF
12402 < /* confdefs.h.  */
12403 < _ACEOF
12404 < cat confdefs.h >>conftest.$ac_ext
12405 < cat >>conftest.$ac_ext <<_ACEOF
12406 < /* end confdefs.h.  */
12407 < #include <stdarg.h>
12408 < #include <stdbool.h>
12409 < #include <stdlib.h>
12410 < #include <wchar.h>
12411 < #include <stdio.h>
12412 <
12413 < // Check varargs macros.  These examples are taken from C99 6.10.3.5.
12414 < #define debug(...) fprintf (stderr, __VA_ARGS__)
12415 < #define showlist(...) puts (#__VA_ARGS__)
12416 < #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12417 < static void
12418 < test_varargs_macros (void)
12419 < {
12420 <  int x = 1234;
12421 <  int y = 5678;
12422 <  debug ("Flag");
12423 <  debug ("X = %d\n", x);
12424 <  showlist (The first, second, and third items.);
12425 <  report (x>y, "x is %d but y is %d", x, y);
12426 < }
12427 <
12428 < // Check long long types.
12429 < #define BIG64 18446744073709551615ull
12430 < #define BIG32 4294967295ul
12431 < #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12432 < #if !BIG_OK
12433 <  your preprocessor is broken;
12434 < #endif
12435 < #if BIG_OK
12436 < #else
12437 <  your preprocessor is broken;
12438 < #endif
12439 < static long long int bignum = -9223372036854775807LL;
12440 < static unsigned long long int ubignum = BIG64;
12441 <
12442 < struct incomplete_array
12443 < {
12444 <  int datasize;
12445 <  double data[];
12446 < };
12447 <
12448 < struct named_init {
12449 <  int number;
12450 <  const wchar_t *name;
12451 <  double average;
12452 < };
12453 <
12454 < typedef const char *ccp;
12455 <
12456 < static inline int
12457 < test_restrict (ccp restrict text)
12458 < {
12459 <  // See if C++-style comments work.
12460 <  // Iterate through items via the restricted pointer.
12461 <  // Also check for declarations in for loops.
12462 <  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12463 <    continue;
12464 <  return 0;
12465 < }
12466 <
12467 < // Check varargs and va_copy.
12468 < static void
12469 < test_varargs (const char *format, ...)
12470 < {
12471 <  va_list args;
12472 <  va_start (args, format);
12473 <  va_list args_copy;
12474 <  va_copy (args_copy, args);
12475 <
12476 <  const char *str;
12477 <  int number;
12478 <  float fnumber;
12479 <
12480 <  while (*format)
12481 <    {
12482 <      switch (*format++)
12483 <        {
12484 <        case 's': // string
12485 <          str = va_arg (args_copy, const char *);
12486 <          break;
12487 <        case 'd': // int
12488 <          number = va_arg (args_copy, int);
12489 <          break;
12490 <        case 'f': // float
12491 <          fnumber = va_arg (args_copy, double);
12492 <          break;
12493 <        default:
12494 <          break;
12495 <        }
12496 <    }
12497 <  va_end (args_copy);
12498 <  va_end (args);
12499 < }
12500 <
12501 < #ifdef FC_DUMMY_MAIN
12502 < #ifndef FC_DUMMY_MAIN_EQ_F77
12503 < #  ifdef __cplusplus
12504 <     extern "C"
12505 < #  endif
12506 <   int FC_DUMMY_MAIN() { return 1; }
12507 < #endif
12508 < #endif
12509 < int
12510 < main ()
12511 < {
12512 <
12513 <  // Check bool.
12514 <  _Bool success = false;
12515 <
12516 <  // Check restrict.
12517 <  if (test_restrict ("String literal") == 0)
12518 <    success = true;
12519 <  char *restrict newvar = "Another string";
12520 <
12521 <  // Check varargs.
12522 <  test_varargs ("s, d' f .", "string", 65, 34.234);
12523 <  test_varargs_macros ();
12524 <
12525 <  // Check flexible array members.
12526 <  struct incomplete_array *ia =
12527 <    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12528 <  ia->datasize = 10;
12529 <  for (int i = 0; i < ia->datasize; ++i)
12530 <    ia->data[i] = i * 1.234;
12531 <
12532 <  // Check named initializers.
12533 <  struct named_init ni = {
12534 <    .number = 34,
12535 <    .name = L"Test wide string",
12536 <    .average = 543.34343,
12537 <  };
12538 <
12539 <  ni.number = 58;
12540 <
12541 <  int dynamic_array[ni.number];
12542 <  dynamic_array[ni.number - 1] = 543;
12543 <
12544 <  // work around unused variable warnings
12545 <  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12546 <          || dynamic_array[ni.number - 1] != 543);
12547 <
12548 <  ;
12549 <  return 0;
12550 < }
12551 < _ACEOF
12552 < for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
12553 < do
12554 <  CC="$ac_save_CC $ac_arg"
12555 <  rm -f conftest.$ac_objext
12556 < if { (ac_try="$ac_compile"
12557 < case "(($ac_try" in
12558 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 <  *) ac_try_echo=$ac_try;;
12560 < esac
12561 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 <  (eval "$ac_compile") 2>conftest.er1
12563 <  ac_status=$?
12564 <  grep -v '^ *+' conftest.er1 >conftest.err
12565 <  rm -f conftest.er1
12566 <  cat conftest.err >&5
12567 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 <  (exit $ac_status); } && {
12569 <         test -z "$ac_cxx_werror_flag" ||
12570 <         test ! -s conftest.err
12571 <       } && test -s conftest.$ac_objext; then
12572 <  ac_cv_prog_cc_c99=$ac_arg
12573 < else
12574 <  echo "$as_me: failed program was:" >&5
12575 < sed 's/^/| /' conftest.$ac_ext >&5
12576 <
12577 <
12578 < fi
12579 <
12580 < rm -f core conftest.err conftest.$ac_objext
12581 <  test "x$ac_cv_prog_cc_c99" != "xno" && break
12582 < done
12583 < rm -f conftest.$ac_ext
12584 < CC=$ac_save_CC
12585 <
12586 < fi
12587 < # AC_CACHE_VAL
12588 < case "x$ac_cv_prog_cc_c99" in
12589 <  x)
12590 <    { echo "$as_me:$LINENO: result: none needed" >&5
12591 < echo "${ECHO_T}none needed" >&6; } ;;
12592 <  xno)
12593 <    { echo "$as_me:$LINENO: result: unsupported" >&5
12594 < echo "${ECHO_T}unsupported" >&6; } ;;
12595 <  *)
12596 <    CC="$CC $ac_cv_prog_cc_c99"
12597 <    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
12598 < echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
12599 < esac
12600 < if test "x$ac_cv_prog_cc_c99" != xno; then
12601 <  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
12602 < else
12603 <  { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12604 < echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
12605 < if test "${ac_cv_prog_cc_c89+set}" = set; then
12606 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12607 < else
12608 <  ac_cv_prog_cc_c89=no
12609 < ac_save_CC=$CC
12610 < cat >conftest.$ac_ext <<_ACEOF
12611 < /* confdefs.h.  */
12612 < _ACEOF
12613 < cat confdefs.h >>conftest.$ac_ext
12614 < cat >>conftest.$ac_ext <<_ACEOF
12615 < /* end confdefs.h.  */
12616 < #include <stdarg.h>
12617 < #include <stdio.h>
12618 < #include <sys/types.h>
12619 < #include <sys/stat.h>
12620 < /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12621 < struct buf { int x; };
12622 < FILE * (*rcsopen) (struct buf *, struct stat *, int);
12623 < static char *e (p, i)
12624 <     char **p;
12625 <     int i;
12626 < {
12627 <  return p[i];
12628 < }
12629 < static char *f (char * (*g) (char **, int), char **p, ...)
12630 < {
12631 <  char *s;
12632 <  va_list v;
12633 <  va_start (v,p);
12634 <  s = g (p, va_arg (v,int));
12635 <  va_end (v);
12636 <  return s;
12637 < }
12638 <
12639 < /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12640 <   function prototypes and stuff, but not '\xHH' hex character constants.
12641 <   These don't provoke an error unfortunately, instead are silently treated
12642 <   as 'x'.  The following induces an error, until -std is added to get
12643 <   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12644 <   array size at least.  It's necessary to write '\x00'==0 to get something
12645 <   that's true only with -std.  */
12646 < int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12647 <
12648 < /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12649 <   inside strings and character constants.  */
12650 < #define FOO(x) 'x'
12651 < int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12652 <
12653 < int test (int i, double x);
12654 < struct s1 {int (*f) (int a);};
12655 < struct s2 {int (*f) (double a);};
12656 < int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12657 < int argc;
12658 < char **argv;
12659 < #ifdef FC_DUMMY_MAIN
12660 < #ifndef FC_DUMMY_MAIN_EQ_F77
12661 < #  ifdef __cplusplus
12662 <     extern "C"
12663 < #  endif
12664 <   int FC_DUMMY_MAIN() { return 1; }
12665 < #endif
12666 < #endif
12667 < int
12668 < main ()
12669 < {
12670 < return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12671 <  ;
12672 <  return 0;
12673 < }
12674 < _ACEOF
12675 < for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12676 <        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12677 < do
12678 <  CC="$ac_save_CC $ac_arg"
12679 <  rm -f conftest.$ac_objext
12680 < if { (ac_try="$ac_compile"
12681 < case "(($ac_try" in
12682 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 <  *) ac_try_echo=$ac_try;;
12684 < esac
12685 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 <  (eval "$ac_compile") 2>conftest.er1
12687 <  ac_status=$?
12688 <  grep -v '^ *+' conftest.er1 >conftest.err
12689 <  rm -f conftest.er1
12690 <  cat conftest.err >&5
12691 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 <  (exit $ac_status); } && {
12693 <         test -z "$ac_cxx_werror_flag" ||
12694 <         test ! -s conftest.err
12695 <       } && test -s conftest.$ac_objext; then
12696 <  ac_cv_prog_cc_c89=$ac_arg
12697 < else
12698 <  echo "$as_me: failed program was:" >&5
12699 < sed 's/^/| /' conftest.$ac_ext >&5
12700 <
12701 <
12702 < fi
12703 <
12704 < rm -f core conftest.err conftest.$ac_objext
12705 <  test "x$ac_cv_prog_cc_c89" != "xno" && break
12706 < done
12707 < rm -f conftest.$ac_ext
12708 < CC=$ac_save_CC
12709 <
12710 < fi
12711 < # AC_CACHE_VAL
12712 < case "x$ac_cv_prog_cc_c89" in
12713 <  x)
12714 <    { echo "$as_me:$LINENO: result: none needed" >&5
12715 < echo "${ECHO_T}none needed" >&6; } ;;
12716 <  xno)
12717 <    { echo "$as_me:$LINENO: result: unsupported" >&5
12718 < echo "${ECHO_T}unsupported" >&6; } ;;
12719 <  *)
12720 <    CC="$CC $ac_cv_prog_cc_c89"
12721 <    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12722 < echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
12723 < esac
12724 < if test "x$ac_cv_prog_cc_c89" != xno; then
12725 <  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
12726 < else
12727 <  ac_cv_prog_cc_stdc=no
12728 < fi
12729 <
12730 <
12731 < fi
12732 <
12733 < ;;
12734 < esac
12735 <  { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
12736 < echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
12737 <  if test "${ac_cv_prog_cc_stdc+set}" = set; then
12738 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12739 < fi
12740 <
12741 <  case $ac_cv_prog_cc_stdc in
12742 <  no) { echo "$as_me:$LINENO: result: unsupported" >&5
12743 < echo "${ECHO_T}unsupported" >&6; } ;;
12744 <  '') { echo "$as_me:$LINENO: result: none needed" >&5
12745 < echo "${ECHO_T}none needed" >&6; } ;;
12746 <  *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12747 < echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
12748 < esac
12749 <
12750 <
12751 < { echo "$as_me:$LINENO: checking for an ANSI C99-conforming __func__" >&5
12752 < echo $ECHO_N "checking for an ANSI C99-conforming __func__... $ECHO_C" >&6; }
12753 < if test "${ac_cv_cpp_func+set}" = set; then
12754 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12755 < else
12756 <  cat >conftest.$ac_ext <<_ACEOF
12757 < /* confdefs.h.  */
12758 < _ACEOF
12759 < cat confdefs.h >>conftest.$ac_ext
12760 < cat >>conftest.$ac_ext <<_ACEOF
12761 < /* end confdefs.h.  */
12762 <
12763 < #ifdef FC_DUMMY_MAIN
12764 < #ifndef FC_DUMMY_MAIN_EQ_F77
12765 < #  ifdef __cplusplus
12766 <     extern "C"
12767 < #  endif
12768 <   int FC_DUMMY_MAIN() { return 1; }
12769 < #endif
12770 < #endif
12771 < int
12772 < main ()
12773 < {
12774 < const char *foo = __func__;
12775 <  ;
12776 <  return 0;
12777 < }
12778 < _ACEOF
12779 < rm -f conftest.$ac_objext
12780 < if { (ac_try="$ac_compile"
12781 < case "(($ac_try" in
12782 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 <  *) ac_try_echo=$ac_try;;
12784 < esac
12785 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 <  (eval "$ac_compile") 2>conftest.er1
12787 <  ac_status=$?
12788 <  grep -v '^ *+' conftest.er1 >conftest.err
12789 <  rm -f conftest.er1
12790 <  cat conftest.err >&5
12791 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 <  (exit $ac_status); } && {
12793 <         test -z "$ac_cxx_werror_flag" ||
12794 <         test ! -s conftest.err
12795 <       } && test -s conftest.$ac_objext; then
12796 <  ac_cv_cpp_func=yes
12797 < else
12798 <  echo "$as_me: failed program was:" >&5
12799 < sed 's/^/| /' conftest.$ac_ext >&5
12800 <
12801 <        cat >conftest.$ac_ext <<_ACEOF
12802 < /* confdefs.h.  */
12803 < _ACEOF
12804 < cat confdefs.h >>conftest.$ac_ext
12805 < cat >>conftest.$ac_ext <<_ACEOF
12806 < /* end confdefs.h.  */
12807 <
12808 < #ifdef FC_DUMMY_MAIN
12809 < #ifndef FC_DUMMY_MAIN_EQ_F77
12810 < #  ifdef __cplusplus
12811 <     extern "C"
12812 < #  endif
12813 <   int FC_DUMMY_MAIN() { return 1; }
12814 < #endif
12815 < #endif
12816 < int
12817 < main ()
12818 < {
12819 < const char *foo = __FUNCTION__;
12820 <  ;
12821 <  return 0;
12822 < }
12823 < _ACEOF
12824 < rm -f conftest.$ac_objext
12825 < if { (ac_try="$ac_compile"
12826 < case "(($ac_try" in
12827 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828 <  *) ac_try_echo=$ac_try;;
12829 < esac
12830 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831 <  (eval "$ac_compile") 2>conftest.er1
12832 <  ac_status=$?
12833 <  grep -v '^ *+' conftest.er1 >conftest.err
12834 <  rm -f conftest.er1
12835 <  cat conftest.err >&5
12836 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 <  (exit $ac_status); } && {
12838 <         test -z "$ac_cxx_werror_flag" ||
12839 <         test ! -s conftest.err
12840 <       } && test -s conftest.$ac_objext; then
12841 <  ac_cv_cpp_func=__FUNCTION__
12842 < else
12843 <  echo "$as_me: failed program was:" >&5
12844 < sed 's/^/| /' conftest.$ac_ext >&5
12845 <
12846 <        ac_cv_cpp_func=no
12847 < fi
12848 <
12849 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12850 < fi
12851 <
12852 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12853 < fi
12854 < { echo "$as_me:$LINENO: result: $ac_cv_cpp_func" >&5
12855 < echo "${ECHO_T}$ac_cv_cpp_func" >&6; }
12856 < if test $ac_cv_cpp_func = __FUNCTION__; then
12857 <
12858 < cat >>confdefs.h <<\_ACEOF
12859 < #define __func__ __FUNCTION__
12860 < _ACEOF
12861 <
12862 < elif test $ac_cv_cpp_func = no; then
12863 <
12864 < cat >>confdefs.h <<\_ACEOF
12865 < #define __func__ ""
12866 < _ACEOF
12867 <
12868 < fi
12869 <
12870 <
12871 <
12872 <
12873 <
12874 < case $debug in
12875 <  1)
12876 <     ;;
12877 <  *)
12878 <
12879 <
12880 <
12881 <
12882 < # Try to determine "good" native compiler flags if none specified on command
12883 < # line
12884 <
12885 < if test "$ac_test_FFLAGS" != "set"; then
12886 <  FCFLAGS=""
12887 <  case "${host_cpu}-${host_os}" in
12888 <
12889 <  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
12890 <                    FCFLAGS="-O3 -ip -no-prec-div"
12891 <                fi;;
12892 <   rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
12893 <                    FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
12894 <                fi;;
12895 <   powerpc*-aix*)
12896 <        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
12897 <                FCFLAGS="-O3 -qarch=ppc -qansialias -w"
12898 <                echo "*******************************************************"
12899 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
12900 <                echo "*  recommended that you use                           *"
12901 <                echo "*                                                     *"
12902 <                echo "*   FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
12903 <                echo "*                                 ^^^                 *"
12904 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
12905 <                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
12906 <                echo "*******************************************************"
12907 <        fi;;
12908 <   *darwin*)
12909 <        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
12910 <                FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
12911 <        fi
12912 <        if test "$FC" = ifort; then
12913 <                FCFLAGS="-O3 -ip -no-prec-dev -mdynamic-no-pic"
12914 <        fi;;
12915 <  esac
12916 <
12917 <  if test -n "$CPU_FLAGS"; then
12918 <        FCFLAGS="$FCFLAGS $CPU_FLAGS"
12919 <  fi
12920 <
12921 <  if test -z "$FCFLAGS"; then
12922 <        echo ""
12923 <        echo "*********************************************************"
12924 <        echo "* WARNING: Don't know the best FCFLAGS for this system  *"
12925 <        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
12926 <        echo "* (otherwise, a default of FCFLAGS=-O3 will be used)    *"
12927 <        echo "*********************************************************"
12928 <        echo ""
12929 <        FCFLAGS="-O3"
12930 <  fi
12931 <
12932 <
12933 < { echo "$as_me:$LINENO: checking whether ${FC} accepts ${FCFLAGS}" >&5
12934 < echo $ECHO_N "checking whether ${FC} accepts ${FCFLAGS}... $ECHO_C" >&6; }
12935 < if test "${ac_guessed_f90flags+set}" = set; then
12936 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12937 < else
12938 <
12939 <
12940 < ac_ext=${ac_fc_srcext-f}
12941 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12942 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12943 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12944 <
12945 < echo 'program main' > conftest.$ac_ext
12946 < echo 'end program main' >> conftest.$ac_ext
12947 < ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5'
12948 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12949 <  (eval $ac_compile) 2>&5
12950 <  ac_status=$?
12951 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 <  (exit $ac_status); }; then
12953 <        ac_guessed_f90flags=yes
12954 < else
12955 <        ac_guessed_f90flags=no
12956 < fi
12957 < rm -rf conftest*
12958 < ac_ext=cpp
12959 < ac_cpp='$CXXCPP $CPPFLAGS'
12960 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12961 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12962 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12963 <
12964 <
12965 < fi
12966 < { echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
12967 < echo "${ECHO_T}$ac_guessed_f90flags" >&6; }
12968 < if test "$ac_guessed_f90flags" = yes; then
12969 <        :
12970 <
12971 < else
12972 <        :
12973 <
12974 <        echo ""
12975 <        echo "**********************************************************"
12976 <        echo "* WARNING: The guessed FCFLAGS don't seem to work with  *"
12977 <        echo "* your compiler.                                        *"
12978 <        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
12979 <        echo "*********************************************************"
12980 <        echo ""
12981 <        FCFLAGS=""
12982 <
12983 < fi
12984 <
12985 <
12986 < fi
12987 <
12988 <
12989 <
12990 <
12991 <
12992 <
12993 <
12994 < { echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
12995 < echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6; }
12996 < if test "${ac_cv_prog_really_gcc+set}" = set; then
12997 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12998 < else
12999 <
13000 < cat > conftest.c <<EOF
13001 < #ifdef __GNUC__
13002 <  #if defined(__INTEL_COMPILER) || defined(__PATHCC__)
13003 <     no;
13004 <  #else
13005 <     yes;
13006 <  #endif
13007 < #endif
13008 < EOF
13009 < if { ac_try='${CC-cc} -E conftest.c'
13010 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011 <  (eval $ac_try) 2>&5
13012 <  ac_status=$?
13013 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
13015 <  ac_cv_prog_really_gcc=yes
13016 < else
13017 <  ac_cv_prog_really_gcc=no
13018 < fi
13019 <
13020 < fi
13021 < { echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
13022 < echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6; }
13023 < if test "$ac_cv_prog_really_gcc" = yes; then
13024 <        :
13025 <
13026 < else
13027 <        :
13028 <
13029 < fi
13030 <
13031 <
13032 < # Try to determine "good" native compiler flags if none specified on command
13033 < # line
13034 < if test "$ac_test_CFLAGS" != "set"; then
13035 <  CFLAGS=""
13036 <  case "${host_cpu}-${host_os}" in
13037 <
13038 <  *linux*) if test "$CC" = icc; then
13039 <                    CFLAGS="-O"
13040 <                fi;;
13041 <  sparc-solaris2*) if test "$CC" = cc; then
13042 <                    CFLAGS="-O -dalign"
13043 <                 fi;;
13044 <
13045 <  alpha*-osf*)  if test "$CC" = cc; then
13046 <                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
13047 <                fi;;
13048 <
13049 <  hppa*-hpux*)  if test "$CC" = cc; then
13050 <                    CFLAGS="-Ae +O3 +Oall"
13051 <                fi;;
13052 <
13053 <   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
13054 <                    CFLAGS="-O3 -qtune=auto -qansialias -w"
13055 <                fi;;
13056 <   powerpc*-aix*)
13057 <        if test "$CC" = cc -o "$CC" = xlc; then
13058 <                CFLAGS="-O3 -qtune=auto -qansialias -w"
13059 <                echo "*******************************************************"
13060 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
13061 <                echo "*  recommended that you use                           *"
13062 <                echo "*                                                     *"
13063 <                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
13064 <                echo "*                                 ^^^                 *"
13065 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
13066 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
13067 <                echo "*******************************************************"
13068 <        fi;;
13069 <   *darwin*)
13070 <        if test "$CC" = xlc -o "$CC" = cc; then
13071 <                CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
13072 <        fi
13073 <        if test "$CC" = icc; then
13074 <                CFLAGS="-O3 -ip -no-prec-div -mdynamic-no-pic"
13075 <        fi;;
13076 <  esac
13077 <
13078 <  # use default flags for gcc on all systems
13079 <  if test $ac_cv_prog_really_gcc = yes; then
13080 <     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
13081 <  fi
13082 <
13083 <  # test for gcc-specific flags:
13084 <  if test $ac_cv_prog_really_gcc = yes; then
13085 <    # -malign-double for x86 systems
13086 <
13087 <
13088 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -malign-double" >&5
13089 < echo $ECHO_N "checking whether ${CC} accepts -malign-double... $ECHO_C" >&6; }
13090 < if test "${ac_align_double+set}" = set; then
13091 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13092 < else
13093 <  echo 'void f(){}' > conftest.c
13094 < if test -z "`${CC} -malign-double -c conftest.c 2>&1`"; then
13095 <        ac_align_double=yes
13096 < else
13097 <        ac_align_double=no
13098 < fi
13099 < rm -f conftest*
13100 <
13101 < fi
13102 < { echo "$as_me:$LINENO: result: $ac_align_double" >&5
13103 < echo "${ECHO_T}$ac_align_double" >&6; }
13104 < if test "$ac_align_double" = yes; then
13105 <        :
13106 <        CFLAGS="$CFLAGS -malign-double"
13107 < else
13108 <        :
13109 <
13110 < fi
13111 <
13112 <    # -fstrict-aliasing for gcc-2.95+
13113 <
13114 <
13115 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -fstrict-aliasing" >&5
13116 < echo $ECHO_N "checking whether ${CC} accepts -fstrict-aliasing... $ECHO_C" >&6; }
13117 < if test "${ac_fstrict_aliasing+set}" = set; then
13118 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13119 < else
13120 <  echo 'void f(){}' > conftest.c
13121 < if test -z "`${CC} -fstrict-aliasing -c conftest.c 2>&1`"; then
13122 <        ac_fstrict_aliasing=yes
13123 < else
13124 <        ac_fstrict_aliasing=no
13125 < fi
13126 < rm -f conftest*
13127 <
13128 < fi
13129 < { echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
13130 < echo "${ECHO_T}$ac_fstrict_aliasing" >&6; }
13131 < if test "$ac_fstrict_aliasing" = yes; then
13132 <        :
13133 <        CFLAGS="$CFLAGS -fstrict-aliasing"
13134 < else
13135 <        :
13136 <
13137 < fi
13138 <
13139 <  fi
13140 <
13141 <  CPU_FLAGS=""
13142 <  if test $ac_cv_prog_really_gcc = yes; then
13143 <                  case "${host_cpu}" in
13144 <          i586*)
13145 <
13146 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=pentium" >&5
13147 < echo $ECHO_N "checking whether ${CC} accepts -mcpu=pentium... $ECHO_C" >&6; }
13148 < if test "${ac_cpu_pentium+set}" = set; then
13149 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13150 < else
13151 <  echo 'void f(){}' > conftest.c
13152 < if test -z "`${CC} -mcpu=pentium -c conftest.c 2>&1`"; then
13153 <        ac_cpu_pentium=yes
13154 < else
13155 <        ac_cpu_pentium=no
13156 < fi
13157 < rm -f conftest*
13158 <
13159 < fi
13160 < { echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
13161 < echo "${ECHO_T}$ac_cpu_pentium" >&6; }
13162 < if test "$ac_cpu_pentium" = yes; then
13163 <        :
13164 <        CPU_FLAGS=-mcpu=pentium
13165 < else
13166 <        :
13167 <
13168 <
13169 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -mpentium" >&5
13170 < echo $ECHO_N "checking whether ${CC} accepts -mpentium... $ECHO_C" >&6; }
13171 < if test "${ac_pentium+set}" = set; then
13172 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13173 < else
13174 <  echo 'void f(){}' > conftest.c
13175 < if test -z "`${CC} -mpentium -c conftest.c 2>&1`"; then
13176 <        ac_pentium=yes
13177 < else
13178 <        ac_pentium=no
13179 < fi
13180 < rm -f conftest*
13181 <
13182 < fi
13183 < { echo "$as_me:$LINENO: result: $ac_pentium" >&5
13184 < echo "${ECHO_T}$ac_pentium" >&6; }
13185 < if test "$ac_pentium" = yes; then
13186 <        :
13187 <        CPU_FLAGS=-mpentium
13188 < else
13189 <        :
13190 <
13191 < fi
13192 <
13193 < fi
13194 <
13195 <                  ;;
13196 <          i686*)
13197 <
13198 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=pentiumpro" >&5
13199 < echo $ECHO_N "checking whether ${CC} accepts -mcpu=pentiumpro... $ECHO_C" >&6; }
13200 < if test "${ac_cpu_pentiumpro+set}" = set; then
13201 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13202 < else
13203 <  echo 'void f(){}' > conftest.c
13204 < if test -z "`${CC} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
13205 <        ac_cpu_pentiumpro=yes
13206 < else
13207 <        ac_cpu_pentiumpro=no
13208 < fi
13209 < rm -f conftest*
13210 <
13211 < fi
13212 < { echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
13213 < echo "${ECHO_T}$ac_cpu_pentiumpro" >&6; }
13214 < if test "$ac_cpu_pentiumpro" = yes; then
13215 <        :
13216 <        CPU_FLAGS=-mcpu=pentiumpro
13217 < else
13218 <        :
13219 <
13220 <
13221 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -mpentiumpro" >&5
13222 < echo $ECHO_N "checking whether ${CC} accepts -mpentiumpro... $ECHO_C" >&6; }
13223 < if test "${ac_pentiumpro+set}" = set; then
13224 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13225 < else
13226 <  echo 'void f(){}' > conftest.c
13227 < if test -z "`${CC} -mpentiumpro -c conftest.c 2>&1`"; then
13228 <        ac_pentiumpro=yes
13229 < else
13230 <        ac_pentiumpro=no
13231 < fi
13232 < rm -f conftest*
13233 <
13234 < fi
13235 < { echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
13236 < echo "${ECHO_T}$ac_pentiumpro" >&6; }
13237 < if test "$ac_pentiumpro" = yes; then
13238 <        :
13239 <        CPU_FLAGS=-mpentiumpro
13240 < else
13241 <        :
13242 <
13243 < fi
13244 <
13245 < fi
13246 <
13247 <                  ;;
13248 <          powerpc*)
13249 <                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
13250 <                is60x=`echo $cputype | egrep "^600-9e?$"`
13251 <                if test -n "$is60x"; then
13252 <
13253 <
13254 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=$cputype" >&5
13255 < echo $ECHO_N "checking whether ${CC} accepts -mcpu=$cputype... $ECHO_C" >&6; }
13256 < if test "${ac_m_cpu_60x+set}" = set; then
13257 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13258 < else
13259 <  echo 'void f(){}' > conftest.c
13260 < if test -z "`${CC} -mcpu=$cputype -c conftest.c 2>&1`"; then
13261 <        ac_m_cpu_60x=yes
13262 < else
13263 <        ac_m_cpu_60x=no
13264 < fi
13265 < rm -f conftest*
13266 <
13267 < fi
13268 < { echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
13269 < echo "${ECHO_T}$ac_m_cpu_60x" >&6; }
13270 < if test "$ac_m_cpu_60x" = yes; then
13271 <        :
13272 <        CPU_FLAGS=-mcpu=$cputype
13273 < else
13274 <        :
13275 <
13276 < fi
13277 <
13278 <                elif test "$cputype" = 750; then
13279 <
13280 <
13281 < { echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
13282 < echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6; }
13283 < if test "${ac_cv_prog_gcc_2_95+set}" = set; then
13284 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13285 < else
13286 <
13287 < cat > conftest.c <<EOF
13288 < #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
13289 < #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
13290 <     yes;
13291 < #  endif
13292 < #endif
13293 < EOF
13294 < if { ac_try='${CC-cc} -E conftest.c'
13295 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 <  (eval $ac_try) 2>&5
13297 <  ac_status=$?
13298 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
13300 <  ac_cv_prog_gcc_2_95=yes
13301 < else
13302 <  ac_cv_prog_gcc_2_95=no
13303 < fi
13304 <
13305 < fi
13306 < { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
13307 < echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6; }
13308 < if test "$ac_cv_prog_gcc_2_95" = yes; then
13309 <        :
13310 <
13311 <
13312 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=750" >&5
13313 < echo $ECHO_N "checking whether ${CC} accepts -mcpu=750... $ECHO_C" >&6; }
13314 < if test "${ac_m_cpu_750+set}" = set; then
13315 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13316 < else
13317 <  echo 'void f(){}' > conftest.c
13318 < if test -z "`${CC} -mcpu=750 -c conftest.c 2>&1`"; then
13319 <        ac_m_cpu_750=yes
13320 < else
13321 <        ac_m_cpu_750=no
13322 < fi
13323 < rm -f conftest*
13324 <
13325 < fi
13326 < { echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
13327 < echo "${ECHO_T}$ac_m_cpu_750" >&6; }
13328 < if test "$ac_m_cpu_750" = yes; then
13329 <        :
13330 <        CPU_FLAGS=-mcpu=750
13331 < else
13332 <        :
13333 <
13334 < fi
13335 <
13336 < else
13337 <        :
13338 <
13339 < fi
13340 <
13341 <                fi
13342 <                if test -z "$CPU_FLAGS"; then
13343 <
13344 <
13345 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=powerpc" >&5
13346 < echo $ECHO_N "checking whether ${CC} accepts -mcpu=powerpc... $ECHO_C" >&6; }
13347 < if test "${ac_m_cpu_powerpc+set}" = set; then
13348 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13349 < else
13350 <  echo 'void f(){}' > conftest.c
13351 < if test -z "`${CC} -mcpu=powerpc -c conftest.c 2>&1`"; then
13352 <        ac_m_cpu_powerpc=yes
13353 < else
13354 <        ac_m_cpu_powerpc=no
13355 < fi
13356 < rm -f conftest*
13357 <
13358 < fi
13359 < { echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
13360 < echo "${ECHO_T}$ac_m_cpu_powerpc" >&6; }
13361 < if test "$ac_m_cpu_powerpc" = yes; then
13362 <        :
13363 <        CPU_FLAGS=-mcpu=powerpc
13364 < else
13365 <        :
13366 <
13367 < fi
13368 <
13369 <                fi
13370 <                if test -z "$CPU_FLAGS"; then
13371 <
13372 <
13373 < { echo "$as_me:$LINENO: checking whether ${CC} accepts -mpowerpc" >&5
13374 < echo $ECHO_N "checking whether ${CC} accepts -mpowerpc... $ECHO_C" >&6; }
13375 < if test "${ac_m_powerpc+set}" = set; then
13376 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13377 < else
13378 <  echo 'void f(){}' > conftest.c
13379 < if test -z "`${CC} -mpowerpc -c conftest.c 2>&1`"; then
13380 <        ac_m_powerpc=yes
13381 < else
13382 <        ac_m_powerpc=no
13383 < fi
13384 < rm -f conftest*
13385 <
13386 < fi
13387 < { echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
13388 < echo "${ECHO_T}$ac_m_powerpc" >&6; }
13389 < if test "$ac_m_powerpc" = yes; then
13390 <        :
13391 <        CPU_FLAGS=-mpowerpc
13392 < else
13393 <        :
13394 <
13395 < fi
13396 <
13397 <                fi
13398 <          esac
13399 <  fi
13400 <
13401 <  if test -n "$CPU_FLAGS"; then
13402 <        CFLAGS="$CFLAGS $CPU_FLAGS"
13403 <  fi
13404 <
13405 <  if test -z "$CFLAGS"; then
13406 <        echo ""
13407 <        echo "********************************************************"
13408 <        echo "* WARNING: Don't know the best CFLAGS for this system  *"
13409 <        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
13410 <        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
13411 <        echo "********************************************************"
13412 <        echo ""
13413 <        CFLAGS="-O3"
13414 <  fi
13415 <
13416 <
13417 <
13418 < { echo "$as_me:$LINENO: checking whether ${CC} accepts ${CFLAGS}" >&5
13419 < echo $ECHO_N "checking whether ${CC} accepts ${CFLAGS}... $ECHO_C" >&6; }
13420 < if test "${ac_guessed_cflags+set}" = set; then
13421 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13422 < else
13423 <  echo 'void f(){}' > conftest.c
13424 < if test -z "`${CC} ${CFLAGS} -c conftest.c 2>&1`"; then
13425 <        ac_guessed_cflags=yes
13426 < else
13427 <        ac_guessed_cflags=no
13428 < fi
13429 < rm -f conftest*
13430 <
13431 < fi
13432 < { echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
13433 < echo "${ECHO_T}$ac_guessed_cflags" >&6; }
13434 < if test "$ac_guessed_cflags" = yes; then
13435 <        :
13436 <
13437 < else
13438 <        :
13439 <
13440 <        echo ""
13441 <        echo "********************************************************"
13442 <        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
13443 <        echo "* your compiler.                                       *"
13444 <        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
13445 <        echo "********************************************************"
13446 <        echo ""
13447 <        CFLAGS=""
13448 <
13449 < fi
13450 <
13451 <
13452 < fi
13453 <
13454 <
13455 <
13456 <
13457 <
13458 <
13459 <
13460 < { echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
13461 < echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6; }
13462 < if test "${ac_cv_prog_really_gxx+set}" = set; then
13463 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13464 < else
13465 <
13466 < cat > conftest.cpp <<EOF
13467 < #ifdef __GNUC__
13468 <  #if defined(__INTEL_COMPILER) || defined(__PATHCC__)
13469 <     no;
13470 <  #else
13471 <     yes;
13472 <  #endif
13473 < #endif
13474 < EOF
13475 < if { ac_try='${CXX-c++} -E conftest.cpp'
13476 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 <  (eval $ac_try) 2>&5
13478 <  ac_status=$?
13479 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
13481 <  ac_cv_prog_really_gxx=yes
13482 < else
13483 <  ac_cv_prog_really_gxx=no
13484 < fi
13485 <
13486 < fi
13487 < { echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
13488 < echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6; }
13489 < if test "$ac_cv_prog_really_gxx" = yes; then
13490 <        :
13491 <
13492 < else
13493 <        :
13494 <
13495 < fi
13496 <
13497 <
13498 < # Try to determine "good" native compiler flags if none specified on command
13499 < # line
13500 < if test "$ac_test_CXXFLAGS" != "set"; then
13501 <  CXXFLAGS=""
13502 <  case "${host_cpu}-${host_os}" in
13503 <
13504 <  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
13505 <                    CXXFLAGS="-O"
13506 <                fi;;
13507 <  sparc-solaris2*) if test "$CXX" = CC; then
13508 <                    CXXFLAGS="-features=extensions -O -dalign"
13509 <                 fi;;
13510 <   rs6000*-aix*)  if test "$CXX" = xlC; then
13511 <                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
13512 <                fi;;
13513 <   powerpc*-aix*)
13514 <        if test "$CXX" = xlC; then
13515 <                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
13516 <                echo "*******************************************************"
13517 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
13518 <                echo "*  recommended that you use                           *"
13519 <                echo "*                                                     *"
13520 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
13521 <                echo "*                                 ^^^                 *"
13522 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
13523 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
13524 <                echo "*******************************************************"
13525 <        fi;;
13526 <   *darwin*)
13527 <        if test "$CXX" = xlc++ -o "$CXX" = xlC ; then
13528 <                CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
13529 <        fi
13530 <        if test "$CXX" = icpc; then
13531 <                CXXFLAGS="-O3 -ip -no-prec-div -mdynamic-no-pic"
13532 <        fi;;
13533 <  esac
13534 <
13535 <  # use default flags for gcc on all systems
13536 <  if test $ac_cv_prog_really_gxx = yes; then
13537 <     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
13538 <  fi
13539 <
13540 <  # test for gcc-specific flags:
13541 <  if test $ac_cv_prog_really_gxx = yes; then
13542 <    # -malign-double for x86 systems
13543 <
13544 <
13545 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -malign-double" >&5
13546 < echo $ECHO_N "checking whether ${CXX} accepts -malign-double... $ECHO_C" >&6; }
13547 < if test "${ac_align_double+set}" = set; then
13548 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13549 < else
13550 <  echo 'void f(){}' > conftest.cpp
13551 < if test -z "`${CXX} -malign-double -c conftest.cpp 2>&1`"; then
13552 <        ac_align_double=yes
13553 < else
13554 <        ac_align_double=no
13555 < fi
13556 < rm -f conftest*
13557 <
13558 < fi
13559 < { echo "$as_me:$LINENO: result: $ac_align_double" >&5
13560 < echo "${ECHO_T}$ac_align_double" >&6; }
13561 < if test "$ac_align_double" = yes; then
13562 <        :
13563 <        CXXFLAGS="$CXXFLAGS -malign-double"
13564 < else
13565 <        :
13566 <
13567 < fi
13568 <
13569 <    # -fstrict-aliasing for gcc-2.95+
13570 <
13571 <
13572 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -fstrict-aliasing" >&5
13573 < echo $ECHO_N "checking whether ${CXX} accepts -fstrict-aliasing... $ECHO_C" >&6; }
13574 < if test "${ac_fstrict_aliasing+set}" = set; then
13575 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13576 < else
13577 <  echo 'void f(){}' > conftest.cpp
13578 < if test -z "`${CXX} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
13579 <        ac_fstrict_aliasing=yes
13580 < else
13581 <        ac_fstrict_aliasing=no
13582 < fi
13583 < rm -f conftest*
13584 <
13585 < fi
13586 < { echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
13587 < echo "${ECHO_T}$ac_fstrict_aliasing" >&6; }
13588 < if test "$ac_fstrict_aliasing" = yes; then
13589 <        :
13590 <        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
13591 < else
13592 <        :
13593 <
13594 < fi
13595 <
13596 <  fi
13597 <
13598 <  CPU_FLAGS=""
13599 <  if test $ac_cv_prog_really_gxx = yes; then
13600 <                  case "${host_cpu}" in
13601 <          i586*)
13602 <
13603 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=pentium" >&5
13604 < echo $ECHO_N "checking whether ${CXX} accepts -mcpu=pentium... $ECHO_C" >&6; }
13605 < if test "${ac_cpu_pentium+set}" = set; then
13606 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13607 < else
13608 <  echo 'void f(){}' > conftest.cpp
13609 < if test -z "`${CXX} -mcpu=pentium -c conftest.cpp 2>&1`"; then
13610 <        ac_cpu_pentium=yes
13611 < else
13612 <        ac_cpu_pentium=no
13613 < fi
13614 < rm -f conftest*
13615 <
13616 < fi
13617 < { echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
13618 < echo "${ECHO_T}$ac_cpu_pentium" >&6; }
13619 < if test "$ac_cpu_pentium" = yes; then
13620 <        :
13621 <        CPU_FLAGS=-mcpu=pentium
13622 < else
13623 <        :
13624 <
13625 <
13626 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpentium" >&5
13627 < echo $ECHO_N "checking whether ${CXX} accepts -mpentium... $ECHO_C" >&6; }
13628 < if test "${ac_pentium+set}" = set; then
13629 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13630 < else
13631 <  echo 'void f(){}' > conftest.cpp
13632 < if test -z "`${CXX} -mpentium -c conftest.cpp 2>&1`"; then
13633 <        ac_pentium=yes
13634 < else
13635 <        ac_pentium=no
13636 < fi
13637 < rm -f conftest*
13638 <
13639 < fi
13640 < { echo "$as_me:$LINENO: result: $ac_pentium" >&5
13641 < echo "${ECHO_T}$ac_pentium" >&6; }
13642 < if test "$ac_pentium" = yes; then
13643 <        :
13644 <        CPU_FLAGS=-mpentium
13645 < else
13646 <        :
13647 <
13648 < fi
13649 <
13650 < fi
13651 <
13652 <                  ;;
13653 <          i686*)
13654 <
13655 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=pentiumpro" >&5
13656 < echo $ECHO_N "checking whether ${CXX} accepts -mcpu=pentiumpro... $ECHO_C" >&6; }
13657 < if test "${ac_cpu_pentiumpro+set}" = set; then
13658 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13659 < else
13660 <  echo 'void f(){}' > conftest.cpp
13661 < if test -z "`${CXX} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
13662 <        ac_cpu_pentiumpro=yes
13663 < else
13664 <        ac_cpu_pentiumpro=no
13665 < fi
13666 < rm -f conftest*
13667 <
13668 < fi
13669 < { echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
13670 < echo "${ECHO_T}$ac_cpu_pentiumpro" >&6; }
13671 < if test "$ac_cpu_pentiumpro" = yes; then
13672 <        :
13673 <        CPU_FLAGS=-mcpu=pentiumpro
13674 < else
13675 <        :
13676 <
13677 <
13678 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpentiumpro" >&5
13679 < echo $ECHO_N "checking whether ${CXX} accepts -mpentiumpro... $ECHO_C" >&6; }
13680 < if test "${ac_pentiumpro+set}" = set; then
13681 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13682 < else
13683 <  echo 'void f(){}' > conftest.cpp
13684 < if test -z "`${CXX} -mpentiumpro -c conftest.cpp 2>&1`"; then
13685 <        ac_pentiumpro=yes
13686 < else
13687 <        ac_pentiumpro=no
13688 < fi
13689 < rm -f conftest*
13690 <
13691 < fi
13692 < { echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
13693 < echo "${ECHO_T}$ac_pentiumpro" >&6; }
13694 < if test "$ac_pentiumpro" = yes; then
13695 <        :
13696 <        CPU_FLAGS=-mpentiumpro
13697 < else
13698 <        :
13699 <
13700 < fi
13701 <
13702 < fi
13703 <
13704 <                  ;;
13705 <          powerpc*)
13706 <                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
13707 <                is60x=`echo $cputype | egrep "^600-9e?$"`
13708 <                if test -n "$is60x"; then
13709 <
13710 <
13711 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=$cputype" >&5
13712 < echo $ECHO_N "checking whether ${CXX} accepts -mcpu=$cputype... $ECHO_C" >&6; }
13713 < if test "${ac_m_cpu_60x+set}" = set; then
13714 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13715 < else
13716 <  echo 'void f(){}' > conftest.cpp
13717 < if test -z "`${CXX} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
13718 <        ac_m_cpu_60x=yes
13719 < else
13720 <        ac_m_cpu_60x=no
13721 < fi
13722 < rm -f conftest*
13723 <
13724 < fi
13725 < { echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
13726 < echo "${ECHO_T}$ac_m_cpu_60x" >&6; }
13727 < if test "$ac_m_cpu_60x" = yes; then
13728 <        :
13729 <        CPU_FLAGS=-mcpu=$cputype
13730 < else
13731 <        :
13732 <
13733 < fi
13734 <
13735 <                elif test "$cputype" = 750; then
13736 <
13737 <
13738 < { echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
13739 < echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6; }
13740 < if test "${ac_cv_prog_gxx_2_95+set}" = set; then
13741 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13742 < else
13743 <
13744 < cat > conftest.cpp <<EOF
13745 < #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
13746 < #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
13747 <     yes;
13748 < #  endif
13749 < #endif
13750 < EOF
13751 < if { ac_try='${CXX-c++} -E conftest.cpp'
13752 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 <  (eval $ac_try) 2>&5
13754 <  ac_status=$?
13755 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
13757 <  ac_cv_prog_gxx_2_95=yes
13758 < else
13759 <  ac_cv_prog_gxx_2_95=no
13760 < fi
13761 <
13762 < fi
13763 < { echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
13764 < echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6; }
13765 < if test "$ac_cv_prog_gxx_2_95" = yes; then
13766 <        :
13767 <
13768 <
13769 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=750" >&5
13770 < echo $ECHO_N "checking whether ${CXX} accepts -mcpu=750... $ECHO_C" >&6; }
13771 < if test "${ac_m_cpu_750+set}" = set; then
13772 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13773 < else
13774 <  echo 'void f(){}' > conftest.cpp
13775 < if test -z "`${CXX} -mcpu=750 -c conftest.cpp 2>&1`"; then
13776 <        ac_m_cpu_750=yes
13777 < else
13778 <        ac_m_cpu_750=no
13779 < fi
13780 < rm -f conftest*
13781 <
13782 < fi
13783 < { echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
13784 < echo "${ECHO_T}$ac_m_cpu_750" >&6; }
13785 < if test "$ac_m_cpu_750" = yes; then
13786 <        :
13787 <        CPU_FLAGS=-mcpu=750
13788 < else
13789 <        :
13790 <
13791 < fi
13792 <
13793 < else
13794 <        :
13795 <
13796 < fi
13797 <
13798 <                fi
13799 <                if test -z "$CPU_FLAGS"; then
13800 <
13801 <
13802 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=powerpc" >&5
13803 < echo $ECHO_N "checking whether ${CXX} accepts -mcpu=powerpc... $ECHO_C" >&6; }
13804 < if test "${ac_m_cpu_powerpc+set}" = set; then
13805 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13806 < else
13807 <  echo 'void f(){}' > conftest.cpp
13808 < if test -z "`${CXX} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
13809 <        ac_m_cpu_powerpc=yes
13810 < else
13811 <        ac_m_cpu_powerpc=no
13812 < fi
13813 < rm -f conftest*
13814 <
13815 < fi
13816 < { echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
13817 < echo "${ECHO_T}$ac_m_cpu_powerpc" >&6; }
13818 < if test "$ac_m_cpu_powerpc" = yes; then
13819 <        :
13820 <        CPU_FLAGS=-mcpu=powerpc
13821 < else
13822 <        :
13823 <
13824 < fi
13825 <
13826 <                fi
13827 <                if test -z "$CPU_FLAGS"; then
13828 <
13829 <
13830 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpowerpc" >&5
13831 < echo $ECHO_N "checking whether ${CXX} accepts -mpowerpc... $ECHO_C" >&6; }
13832 < if test "${ac_m_powerpc+set}" = set; then
13833 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13834 < else
13835 <  echo 'void f(){}' > conftest.cpp
13836 < if test -z "`${CXX} -mpowerpc -c conftest.cpp 2>&1`"; then
13837 <        ac_m_powerpc=yes
13838 < else
13839 <        ac_m_powerpc=no
13840 < fi
13841 < rm -f conftest*
13842 <
13843 < fi
13844 < { echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
13845 < echo "${ECHO_T}$ac_m_powerpc" >&6; }
13846 < if test "$ac_m_powerpc" = yes; then
13847 <        :
13848 <        CPU_FLAGS=-mpowerpc
13849 < else
13850 <        :
13851 <
13852 < fi
13853 <
13854 <                fi
13855 <          esac
13856 <  fi
13857 <
13858 <  if test -n "$CPU_FLAGS"; then
13859 <        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
13860 <  fi
13861 <
13862 <  if test -z "$CXXFLAGS"; then
13863 <        echo ""
13864 <        echo "**********************************************************"
13865 <        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
13866 <        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
13867 <        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
13868 <        echo "**********************************************************"
13869 <        echo ""
13870 <        CXXFLAGS="-O3"
13871 <  fi
13872 <
13873 <
13874 <
13875 < { echo "$as_me:$LINENO: checking whether ${CXX} accepts ${CXXFLAGS}" >&5
13876 < echo $ECHO_N "checking whether ${CXX} accepts ${CXXFLAGS}... $ECHO_C" >&6; }
13877 < if test "${ac_guessed_cxxflags+set}" = set; then
13878 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13879 < else
13880 <  echo 'void f(){}' > conftest.cpp
13881 < if test -z "`${CXX} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
13882 <        ac_guessed_cxxflags=yes
13883 < else
13884 <        ac_guessed_cxxflags=no
13885 < fi
13886 < rm -f conftest*
13887 <
13888 < fi
13889 < { echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
13890 < echo "${ECHO_T}$ac_guessed_cxxflags" >&6; }
13891 < if test "$ac_guessed_cxxflags" = yes; then
13892 <        :
13893 <
13894 < else
13895 <        :
13896 <
13897 <        echo ""
13898 <        echo "**********************************************************"
13899 <        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
13900 <        echo "* your compiler.                                         *"
13901 <        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
13902 <        echo "**********************************************************"
13903 <        echo ""
13904 <        CXXFLAGS=""
13905 <
13906 < fi
13907 <
13908 <
13909 < fi
13910 <
13911 <     ;;
13912 < esac
13913 <
13914 <
13915 < cat >>confdefs.h <<\_ACEOF
13916 < #define OBAPI
13917 < _ACEOF
13918 <
13919 <
13920 <
13921 <
13922 < # Check whether --with-mpi was given.
13923 < if test "${with_mpi+set}" = set; then
13924 <  withval=$with_mpi; with_mpi=$withval
13925 < else
13926 <  with_mpi="no"
13927 < fi
13928 <
13929 <
13930 < case "x$with_mpi" in
13931 <        xyes | "x")  USE_MPI=yes;;
13932 <        xno) USE_MPI=no ;;
13933 <        *) MPI="$with_mpi"; USE_MPI=yes ;;
13934 < esac
13935 < if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
13936 <        MPI="/usr/local"
13937 < fi
13938 < if test "$USE_MPI" = "yes"; then
13939 <
13940 <
13941 < # Set variables...
13942 < MPI_LIB_DIR="$MPI/lib"
13943 < MPI_INC_DIR="$MPI/include"
13944 <
13945 <
13946 <
13947 < ac_ext=c
13948 < ac_cpp='$CPP $CPPFLAGS'
13949 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13950 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13951 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
13952 <
13953 < { echo "$as_me:$LINENO: checking for mpi.h" >&5
13954 < echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6; }
13955 < have_mpi_h=0
13956 < rm -f conftest*
13957 < echo '#include <mpi.h>' > conftest.c
13958 < if ${CC} -I${MPI_INC_DIR} -c conftest.c 2>&1 ; then
13959 <        { echo "$as_me:$LINENO: result: yes" >&5
13960 < echo "${ECHO_T}yes" >&6; }
13961 <        have_mpi_h=1
13962 < else
13963 <        if test -s conftest.out ; then
13964 <                cat conftest.out >> config.log
13965 <        fi
13966 <        { echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
13967 < echo "${ECHO_T}no! Check MPI include paths" >&6; }
13968 <        USE_MPI="no"
13969 < fi
13970 < rm -f conftest*
13971 < if test "$have_mpi_h" = 1; then
13972 <
13973 < cat >>confdefs.h <<\_ACEOF
13974 < #define HAVE_MPI_H 1
13975 < _ACEOF
13976 <
13977 < fi
13978 <
13979 < { echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
13980 < echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6; }
13981 <
13982 < ac_ext=${ac_fc_srcext-f}
13983 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13984 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13985 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13986 <
13987 < ac_save_ext=$ac_ext
13988 < ac_ext=F90
13989 < ac_save_FCFLAGS=$FCFLAGS
13990 < have_mpif_h=0
13991 < rm -f conftest*
13992 < cat >conftest.$ac_ext <<EOF
13993 < program main
13994 <   include 'mpif.h'
13995 < end
13996 < EOF
13997 < if $FC -I$MPI_INC_DIR -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext > conftest.out 2>&1 ; then
13998 <        { echo "$as_me:$LINENO: result: yes" >&5
13999 < echo "${ECHO_T}yes" >&6; }
14000 <        MPI_F90_INC="$MPI_INC_DIR"
14001 <        have_mpif_h=1
14002 < else
14003 <        if test -s conftest.out ; then
14004 <                cat conftest.out >> config.log
14005 <        fi
14006 <        { echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
14007 < echo "${ECHO_T}no! Check MPI include paths" >&6; }
14008 <        USE_MPI="no"
14009 < fi
14010 < rm -f conftest*
14011 <
14012 < if test "$have_mpif_h" = 1; then
14013 <
14014 < cat >>confdefs.h <<\_ACEOF
14015 < #define HAVE_MPIF_H 1
14016 < _ACEOF
14017 <
14018 < fi
14019 < FCFLAGS=$ac_save_FCFLAGS
14020 < ac_ext=$ac_save_ext
14021 < ac_ext=c
14022 < ac_cpp='$CPP $CPPFLAGS'
14023 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14024 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14025 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
14026 <
14027 <
14028 < ac_ext=c
14029 < ac_cpp='$CPP $CPPFLAGS'
14030 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14031 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14032 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
14033 <
14034 < ac_save_LDFLAGS=$LDFLAGS
14035 < LDFLAGS="-L${MPI_LIB_DIR} ${LDFLAGS} "
14036 <
14037 < if test x = x"$MPI_LIB"; then
14038 <        { echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
14039 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6; }
14040 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
14041 <  echo $ECHO_N "(cached) $ECHO_C" >&6
14042 < else
14043 <  ac_check_lib_save_LIBS=$LIBS
14044 < LIBS="-lmpich  $LIBS"
14045 < cat >conftest.$ac_ext <<_ACEOF
14046 < /* confdefs.h.  */
14047 < _ACEOF
14048 < cat confdefs.h >>conftest.$ac_ext
14049 < cat >>conftest.$ac_ext <<_ACEOF
14050 < /* end confdefs.h.  */
14051 <
14052 < /* Override any GCC internal prototype to avoid an error.
14053 <   Use char because int might match the return type of a GCC
14054 <   builtin and then its argument prototype would still apply.  */
14055 < #ifdef __cplusplus
14056 < extern "C"
14057 < #endif
14058 < char MPI_Init ();
14059 < #ifdef FC_DUMMY_MAIN
14060 < #ifndef FC_DUMMY_MAIN_EQ_F77
14061 < #  ifdef __cplusplus
14062 <     extern "C"
14063 < #  endif
14064 <   int FC_DUMMY_MAIN() { return 1; }
14065 < #endif
14066 < #endif
14067 < int
14068 < main ()
14069 < {
14070 < return MPI_Init ();
14071 <  ;
14072 <  return 0;
14073 < }
14074 < _ACEOF
14075 < rm -f conftest.$ac_objext conftest$ac_exeext
14076 < if { (ac_try="$ac_link"
14077 < case "(($ac_try" in
14078 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 <  *) ac_try_echo=$ac_try;;
14080 < esac
14081 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082 <  (eval "$ac_link") 2>conftest.er1
14083 <  ac_status=$?
14084 <  grep -v '^ *+' conftest.er1 >conftest.err
14085 <  rm -f conftest.er1
14086 <  cat conftest.err >&5
14087 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 <  (exit $ac_status); } && {
14089 <         test -z "$ac_c_werror_flag" ||
14090 <         test ! -s conftest.err
14091 <       } && test -s conftest$ac_exeext &&
14092 <       $as_test_x conftest$ac_exeext; then
14093 <  ac_cv_lib_mpich_MPI_Init=yes
14094 < else
14095 <  echo "$as_me: failed program was:" >&5
14096 < sed 's/^/| /' conftest.$ac_ext >&5
14097 <
14098 <        ac_cv_lib_mpich_MPI_Init=no
14099 < fi
14100 <
14101 < rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14102 <      conftest$ac_exeext conftest.$ac_ext
14103 < LIBS=$ac_check_lib_save_LIBS
14104 < fi
14105 < { echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
14106 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6; }
14107 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
14108 <  MPI_LIB="-lmpich"
14109 < fi
14110 <
14111 < fi
14112 < $as_unset ac_cv_lib_mpich_MPI_Init
14113 < if test x = x"$MPI_LIB"; then
14114 <        { echo "$as_me:$LINENO: checking for MPI_Init in -lpmpich" >&5
14115 < echo $ECHO_N "checking for MPI_Init in -lpmpich... $ECHO_C" >&6; }
14116 < if test "${ac_cv_lib_pmpich_MPI_Init+set}" = set; then
14117 <  echo $ECHO_N "(cached) $ECHO_C" >&6
14118 < else
14119 <  ac_check_lib_save_LIBS=$LIBS
14120 < LIBS="-lpmpich -lmpich -lpmpich -lmpich $LIBS"
14121 < cat >conftest.$ac_ext <<_ACEOF
14122 < /* confdefs.h.  */
14123 < _ACEOF
14124 < cat confdefs.h >>conftest.$ac_ext
14125 < cat >>conftest.$ac_ext <<_ACEOF
14126 < /* end confdefs.h.  */
14127 <
14128 < /* Override any GCC internal prototype to avoid an error.
14129 <   Use char because int might match the return type of a GCC
14130 <   builtin and then its argument prototype would still apply.  */
14131 < #ifdef __cplusplus
14132 < extern "C"
14133 < #endif
14134 < char MPI_Init ();
14135 < #ifdef FC_DUMMY_MAIN
14136 < #ifndef FC_DUMMY_MAIN_EQ_F77
14137 < #  ifdef __cplusplus
14138 <     extern "C"
14139 < #  endif
14140 <   int FC_DUMMY_MAIN() { return 1; }
14141 < #endif
14142 < #endif
14143 < int
14144 < main ()
14145 < {
14146 < return MPI_Init ();
14147 <  ;
14148 <  return 0;
14149 < }
14150 < _ACEOF
14151 < rm -f conftest.$ac_objext conftest$ac_exeext
14152 < if { (ac_try="$ac_link"
14153 < case "(($ac_try" in
14154 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 <  *) ac_try_echo=$ac_try;;
14156 < esac
14157 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 <  (eval "$ac_link") 2>conftest.er1
14159 <  ac_status=$?
14160 <  grep -v '^ *+' conftest.er1 >conftest.err
14161 <  rm -f conftest.er1
14162 <  cat conftest.err >&5
14163 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 <  (exit $ac_status); } && {
14165 <         test -z "$ac_c_werror_flag" ||
14166 <         test ! -s conftest.err
14167 <       } && test -s conftest$ac_exeext &&
14168 <       $as_test_x conftest$ac_exeext; then
14169 <  ac_cv_lib_pmpich_MPI_Init=yes
14170 < else
14171 <  echo "$as_me: failed program was:" >&5
14172 < sed 's/^/| /' conftest.$ac_ext >&5
14173 <
14174 <        ac_cv_lib_pmpich_MPI_Init=no
14175 < fi
14176 <
14177 < rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14178 <      conftest$ac_exeext conftest.$ac_ext
14179 < LIBS=$ac_check_lib_save_LIBS
14180 < fi
14181 < { echo "$as_me:$LINENO: result: $ac_cv_lib_pmpich_MPI_Init" >&5
14182 < echo "${ECHO_T}$ac_cv_lib_pmpich_MPI_Init" >&6; }
14183 < if test $ac_cv_lib_pmpich_MPI_Init = yes; then
14184 <  MPI_LIB="-lpmpich -lmpich -lpmpich -lmpich"
14185 < fi
14186 <
14187 < fi
14188 < if test x = x"$MPI_LIB"; then
14189 <        { echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
14190 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; }
14191 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
14192 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5518 > QHULL_INC_DIR=
5519 > QHULL_LIB_DIR=
5520 > QHULL=
5521 > USE_QHULL=no
5522 >
5523 > if test "$qhull_dir" != "no"; then
5524 >   if test "$qhull_dir" != "not_set" ; then
5525 >     if test -d "$qhull_dir"; then
5526 >       QHULL_HOME="$qhull_dir"
5527 >     else
5528 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5
5529 > $as_echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;}
5530 >       QHULL_HOME=/usr/local
5531 >       if test ! -f "${QHULL_HOME}/include/qhull/libqhull.h"; then
5532 >          QHULL_HOME=/usr
5533 >       fi
5534 >     fi
5535 >   fi
5536 >   #
5537 >   # Locate qhull, if wanted
5538 >   #
5539 >   if test -n "${QHULL_HOME}"; then
5540 >        { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for qhull in ${QHULL_HOME}" >&5
5541 > $as_echo "$as_me: Checking for qhull in ${QHULL_HOME}" >&6;}
5542 >
5543 >        ac_ext=c
5544 > ac_cpp='$CPP $CPPFLAGS'
5545 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5546 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5547 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
5548 >
5549 >        QHULL_OLD_LDFLAGS=$LDFLAGS
5550 >        QHULL_OLD_CFLAGS=$CFLAGS
5551 >        QHULL_OLD_CPPFLAGS=$CPPFLAGS
5552 >        LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
5553 >        CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
5554 >        CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include"
5555 >        ac_fn_c_check_header_mongrel "$LINENO" "qhull/libqhull.h" "ac_cv_header_qhull_libqhull_h" "$ac_includes_default"
5556 > if test "x$ac_cv_header_qhull_libqhull_h" = xyes; then :
5557 >  qhull_cv_libqhull_h=yes
5558 > else
5559 >  qhull_cv_libqhull_h=no
5560 > fi
5561 >
5562 >
5563 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull" >&5
5564 > $as_echo_n "checking for qh_qhull in -lqhull... " >&6; }
5565 > if ${ac_cv_lib_qhull_qh_qhull+:} false; then :
5566 >  $as_echo_n "(cached) " >&6
5567 > else
5568 >  ac_check_lib_save_LIBS=$LIBS
5569 > LIBS="-lqhull  $LIBS"
5570 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 > /* end confdefs.h.  */
5572 >
5573 > /* Override any GCC internal prototype to avoid an error.
5574 >   Use char because int might match the return type of a GCC
5575 >   builtin and then its argument prototype would still apply.  */
5576 > #ifdef __cplusplus
5577 > extern "C"
5578 > #endif
5579 > char qh_qhull ();
5580 > int
5581 > main ()
5582 > {
5583 > return qh_qhull ();
5584 >  ;
5585 >  return 0;
5586 > }
5587 > _ACEOF
5588 > if ac_fn_c_try_link "$LINENO"; then :
5589 >  ac_cv_lib_qhull_qh_qhull=yes
5590 > else
5591 >  ac_cv_lib_qhull_qh_qhull=no
5592 > fi
5593 > rm -f core conftest.err conftest.$ac_objext \
5594 >    conftest$ac_exeext conftest.$ac_ext
5595 > LIBS=$ac_check_lib_save_LIBS
5596 > fi
5597 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull_qh_qhull" >&5
5598 > $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
5599 > if test "x$ac_cv_lib_qhull_qh_qhull" = xyes; then :
5600 >  qhull_cv_libqhull=yes
5601 > else
5602 >  qhull_cv_libqhull=no
5603 > fi
5604 >
5605 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull6" >&5
5606 > $as_echo_n "checking for qh_qhull in -lqhull6... " >&6; }
5607 > if ${ac_cv_lib_qhull6_qh_qhull+:} false; then :
5608 >  $as_echo_n "(cached) " >&6
5609 > else
5610 >  ac_check_lib_save_LIBS=$LIBS
5611 > LIBS="-lqhull6  $LIBS"
5612 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 > /* end confdefs.h.  */
5614 >
5615 > /* Override any GCC internal prototype to avoid an error.
5616 >   Use char because int might match the return type of a GCC
5617 >   builtin and then its argument prototype would still apply.  */
5618 > #ifdef __cplusplus
5619 > extern "C"
5620 > #endif
5621 > char qh_qhull ();
5622 > int
5623 > main ()
5624 > {
5625 > return qh_qhull ();
5626 >  ;
5627 >  return 0;
5628 > }
5629 > _ACEOF
5630 > if ac_fn_c_try_link "$LINENO"; then :
5631 >  ac_cv_lib_qhull6_qh_qhull=yes
5632 > else
5633 >  ac_cv_lib_qhull6_qh_qhull=no
5634 > fi
5635 > rm -f core conftest.err conftest.$ac_objext \
5636 >    conftest$ac_exeext conftest.$ac_ext
5637 > LIBS=$ac_check_lib_save_LIBS
5638 > fi
5639 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull6_qh_qhull" >&5
5640 > $as_echo "$ac_cv_lib_qhull6_qh_qhull" >&6; }
5641 > if test "x$ac_cv_lib_qhull6_qh_qhull" = xyes; then :
5642 >  qhull_cv_libqhull6=yes
5643 > else
5644 >  qhull_cv_libqhull6=no
5645 > fi
5646 >
5647 >        LDFLAGS="$QHULL_OLD_LDFLAGS"
5648 >        CFLAGS="$QHULL_OLD_CFLAGS"
5649 >        CPPFLAGS="$QHULL_OLD_CPPFLAGS"
5650 >        ac_ext=c
5651 > ac_cpp='$CPP $CPPFLAGS'
5652 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655 >
5656 >
5657 >        if test "$qhull_cv_libqhull_h" = "yes" -a "$qhull_cv_libqhull" = "yes" -o "$qhull_cv_libqhull6" = "yes"; then
5658 >
5659 > $as_echo "#define HAVE_LIBQHULL_H 1" >>confdefs.h
5660 >
5661 >           if test "$qhull_cv_libqhull" = "yes"; then
5662 >
5663 > $as_echo "#define HAVE_QHULL 1" >>confdefs.h
5664 >
5665 >                QHULL="-lqhull"
5666 >           fi
5667 >           if test "$qhull_cv_libqhull6" = "yes"; then
5668 >
5669 > $as_echo "#define HAVE_QHULL 1" >>confdefs.h
5670 >
5671 >                QHULL="-lqhull6"
5672 >           fi
5673 >           USE_QHULL=yes
5674 >           QHULL_INC_DIR="${QHULL_HOME}/include"
5675 >           QHULL_LIB_DIR="${QHULL_HOME}/lib"
5676 >           { $as_echo "$as_me:${as_lineno-$LINENO}: result: Working qhull found, will proceed." >&5
5677 > $as_echo "Working qhull found, will proceed." >&6; }
5678 >        else
5679 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
5680 > $as_echo "$as_me: WARNING: " >&2;}
5681 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a working qhull installation" >&5
5682 > $as_echo "$as_me: WARNING: Could not find a working qhull installation" >&2;}
5683 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OpenMD to be able to deal with convex    " >&5
5684 > $as_echo "$as_me: WARNING: If you need OpenMD to be able to deal with convex    " >&2;}
5685 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hulls be sure to specify a valid qhull installation " >&5
5686 > $as_echo "$as_me: WARNING: hulls be sure to specify a valid qhull installation " >&2;}
5687 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with --with-qhull=DIR                               " >&5
5688 > $as_echo "$as_me: WARNING: with --with-qhull=DIR                               " >&2;}
5689 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
5690 > $as_echo "$as_me: WARNING: " >&2;}
5691 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMD will still work without qhull installed.      " >&5
5692 > $as_echo "$as_me: WARNING: OpenMD will still work without qhull installed.      " >&2;}
5693 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
5694 > $as_echo "$as_me: WARNING: " >&2;}
5695 >        fi
5696 >    fi
5697 > fi
5698 >
5699 >
5700 >
5701 >
5702 >
5703 > ac_ext=cpp
5704 > ac_cpp='$CXXCPP $CPPFLAGS'
5705 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5706 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5707 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5708 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5709 > $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5710 > if test -z "$CXXCPP"; then
5711 >  if ${ac_cv_prog_CXXCPP+:} false; then :
5712 >  $as_echo_n "(cached) " >&6
5713 > else
5714 >      # Double quotes because CXXCPP needs to be expanded
5715 >    for CXXCPP in "$CXX -E" "/lib/cpp"
5716 >    do
5717 >      ac_preproc_ok=false
5718 > for ac_cxx_preproc_warn_flag in '' yes
5719 > do
5720 >  # Use a header file that comes with gcc, so configuring glibc
5721 >  # with a fresh cross-compiler works.
5722 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5723 >  # <limits.h> exists even on freestanding compilers.
5724 >  # On the NeXT, cc -E runs the code through the compiler's parser,
5725 >  # not just through cpp. "Syntax error" is here to catch this case.
5726 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 > /* end confdefs.h.  */
5728 > #ifdef __STDC__
5729 > # include <limits.h>
5730 > #else
5731 > # include <assert.h>
5732 > #endif
5733 >                     Syntax error
5734 > _ACEOF
5735 > if ac_fn_cxx_try_cpp "$LINENO"; then :
5736 >
5737 > else
5738 >  # Broken: fails on valid input.
5739 > continue
5740 > fi
5741 > rm -f conftest.err conftest.i conftest.$ac_ext
5742 >
5743 >  # OK, works on sane cases.  Now check whether nonexistent headers
5744 >  # can be detected and how.
5745 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 > /* end confdefs.h.  */
5747 > #include <ac_nonexistent.h>
5748 > _ACEOF
5749 > if ac_fn_cxx_try_cpp "$LINENO"; then :
5750 >  # Broken: success on invalid input.
5751 > continue
5752 > else
5753 >  # Passes both tests.
5754 > ac_preproc_ok=:
5755 > break
5756 > fi
5757 > rm -f conftest.err conftest.i conftest.$ac_ext
5758 >
5759 > done
5760 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5761 > rm -f conftest.i conftest.err conftest.$ac_ext
5762 > if $ac_preproc_ok; then :
5763 >  break
5764 > fi
5765 >
5766 >    done
5767 >    ac_cv_prog_CXXCPP=$CXXCPP
5768 >
5769 > fi
5770 >  CXXCPP=$ac_cv_prog_CXXCPP
5771 > else
5772 >  ac_cv_prog_CXXCPP=$CXXCPP
5773 > fi
5774 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5775 > $as_echo "$CXXCPP" >&6; }
5776 > ac_preproc_ok=false
5777 > for ac_cxx_preproc_warn_flag in '' yes
5778 > do
5779 >  # Use a header file that comes with gcc, so configuring glibc
5780 >  # with a fresh cross-compiler works.
5781 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5782 >  # <limits.h> exists even on freestanding compilers.
5783 >  # On the NeXT, cc -E runs the code through the compiler's parser,
5784 >  # not just through cpp. "Syntax error" is here to catch this case.
5785 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 > /* end confdefs.h.  */
5787 > #ifdef __STDC__
5788 > # include <limits.h>
5789 > #else
5790 > # include <assert.h>
5791 > #endif
5792 >                     Syntax error
5793 > _ACEOF
5794 > if ac_fn_cxx_try_cpp "$LINENO"; then :
5795 >
5796 > else
5797 >  # Broken: fails on valid input.
5798 > continue
5799 > fi
5800 > rm -f conftest.err conftest.i conftest.$ac_ext
5801 >
5802 >  # OK, works on sane cases.  Now check whether nonexistent headers
5803 >  # can be detected and how.
5804 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 > /* end confdefs.h.  */
5806 > #include <ac_nonexistent.h>
5807 > _ACEOF
5808 > if ac_fn_cxx_try_cpp "$LINENO"; then :
5809 >  # Broken: success on invalid input.
5810 > continue
5811 > else
5812 >  # Passes both tests.
5813 > ac_preproc_ok=:
5814 > break
5815 > fi
5816 > rm -f conftest.err conftest.i conftest.$ac_ext
5817 >
5818 > done
5819 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5820 > rm -f conftest.i conftest.err conftest.$ac_ext
5821 > if $ac_preproc_ok; then :
5822 >
5823 > else
5824 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5825 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5826 > as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5827 > See \`config.log' for more details" "$LINENO" 5; }
5828 > fi
5829 >
5830 > ac_ext=cpp
5831 > ac_cpp='$CXXCPP $CPPFLAGS'
5832 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5833 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5834 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5835 >
5836 >
5837 > #
5838 > # Handle user hints
5839 > #
5840 >
5841 > # Check whether --with-openbabel was given.
5842 > if test "${with_openbabel+set}" = set; then :
5843 >  withval=$with_openbabel; openbabel_dir="$withval"
5844 > else
5845 >                openbabel_dir="not_set"
5846 > fi
5847 >
5848 > if test "$openbabel_dir" != "no"; then
5849 >
5850 > if test "$openbabel_dir" != "not_set" ; then
5851 >  if test -d "$openbabel_dir"
5852 >  then
5853 >    OPENBABEL_HOME="$openbabel_dir"
5854 >  else
5855 >    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $openbabel_dir does not exist, checking usual places" >&5
5856 > $as_echo "$as_me: WARNING: Sorry, $openbabel_dir does not exist, checking usual places" >&2;}
5857 >        OPENBABEL_HOME=/usr/local
5858 >        if test ! -f "${OPENBABEL_HOME}/include/openbabel-2.0/openbabel/babelconfig.h" -a -f "${OPENBABEL_HOME}/include/openbabel-2.0/openbabel/obconversion.h"
5859 >        then
5860 >                OPENBABEL_HOME=/usr
5861 >        fi
5862 >  fi
5863 > fi
5864 > #
5865 > # Locate openbabel, if wanted
5866 > #
5867 > if test -n "${OPENBABEL_HOME}"
5868 > then
5869 >
5870 >        ac_ext=cpp
5871 > ac_cpp='$CXXCPP $CPPFLAGS'
5872 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5873 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5874 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5875 >
5876 >        OPENBABEL_OLD_LDFLAGS=$LDFLAGS
5877 >        OPENBABEL_OLD_CPPFLAGS=$CPPFLAGS
5878 >        LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel"
5879 >        CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0"
5880 >        ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/babelconfig.h" "ac_cv_header_openbabel_babelconfig_h" "$ac_includes_default"
5881 > if test "x$ac_cv_header_openbabel_babelconfig_h" = xyes; then :
5882 >  openbabel_cv_openbabel_h=yes
5883 > else
5884 >  openbabel_cv_openbabel_h=no
5885 > fi
5886 >
5887 >
5888 >        ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/obconversion.h" "ac_cv_header_openbabel_obconversion_h" "$ac_includes_default"
5889 > if test "x$ac_cv_header_openbabel_obconversion_h" = xyes; then :
5890 >  openbabel_cv_obconversion_h=yes
5891 > else
5892 >  openbabel_cv_obconversion_h=no
5893 > fi
5894 >
5895 >
5896 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 > /* end confdefs.h.  */
5898 >
5899 >
5900 > #include <openbabel/babelconfig.h>
5901 > #include <openbabel/obconversion.h>
5902 > using namespace std;
5903 > using namespace OpenBabel;
5904 >
5905 > int
5906 > main ()
5907 > {
5908 >
5909 > OBConversion Conv(&cin, &cout);
5910 >
5911 >
5912 >  ;
5913 >  return 0;
5914 > }
5915 > _ACEOF
5916 > if ac_fn_cxx_try_link "$LINENO"; then :
5917 >
5918 >                openbabel_lib_found="yes"
5919 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
5920 > $as_echo "found" >&6; }
5921 >
5922 > else
5923 >
5924 >                openbabel_lib_found="no"
5925 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5926 > $as_echo "not found" >&6; }
5927 >
5928 >
5929 > fi
5930 > rm -f core conftest.err conftest.$ac_objext \
5931 >    conftest$ac_exeext conftest.$ac_ext
5932 >        ac_ext=c
5933 > ac_cpp='$CPP $CPPFLAGS'
5934 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5935 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5936 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
5937 >
5938 >        LDFLAGS="$OPENBABEL_OLD_LDFLAGS"
5939 >        CPPFLAGS="$OPENBABEL_OLD_CPPFLAGS"
5940 >
5941 >        if test "$openbabel_lib_found" = "yes" -a "$openbabel_cv_openbabel_h" = "yes" -a "$openbabel_cv_obconversion_h" = "yes"; then
5942 >                USE_OPENBABEL=yes
5943 >                OPENBABEL_INC_DIR="${OPENBABEL_HOME}/include/openbabel-2.0"
5944 >                OPENBABEL_LIB_DIR="${OPENBABEL_HOME}/lib"
5945 >                OPENBABEL_LIB="-lopenbabel"
5946 >        else
5947 >                { $as_echo "$as_me:${as_lineno-$LINENO}: checking openbabel in ${OPENBABEL_HOME}" >&5
5948 > $as_echo_n "checking openbabel in ${OPENBABEL_HOME}... " >&6; }
5949 >                OPENBABEL_INC_DIR=
5950 >                OPENBABEL_LIB_DIR=
5951 >                OPENBABEL_LIB=
5952 >                USE_OPENBABEL=no
5953 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5954 > $as_echo "failed" >&6; }
5955 >                echo ""
5956 >                echo "*********************************************************"
5957 >                echo "* WARNING: Could not find a working openbabel-2.x       *"
5958 >                echo "* installation If you need OpenMD to be able to convert *"
5959 >                echo "* xyz or pdb files you need to specify a valid          *"
5960 >                echo "* openbabel-2.x installation with --with-openbabel=DIR  *"
5961 >                echo "*                                                       *"
5962 >                echo "* OpenMD will still work without openbabel installed.   *"
5963 >                echo "*********************************************************"
5964 >                echo ""
5965 >        fi
5966 >
5967 >
5968 >
5969 >
5970 > fi
5971 > fi
5972 >
5973 >
5974 > # Checks for header files.
5975 > for ac_header in limits.h stdlib.h string.h sys/ioctl.h unistd.h
5976 > do :
5977 >  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5978 > ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5979 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5980 >  cat >>confdefs.h <<_ACEOF
5981 > #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5982 > _ACEOF
5983 >
5984 > fi
5985 >
5986 > done
5987 >
5988 >
5989 > # Checks for typedefs, structures, and compiler characteristics.
5990 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5991 > $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
5992 > if ${ac_cv_header_stdbool_h+:} false; then :
5993 >  $as_echo_n "(cached) " >&6
5994 > else
5995 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 > /* end confdefs.h.  */
5997 >
5998 > #include <stdbool.h>
5999 > #ifndef bool
6000 > "error: bool is not defined"
6001 > #endif
6002 > #ifndef false
6003 > "error: false is not defined"
6004 > #endif
6005 > #if false
6006 > "error: false is not 0"
6007 > #endif
6008 > #ifndef true
6009 > "error: true is not defined"
6010 > #endif
6011 > #if true != 1
6012 > "error: true is not 1"
6013 > #endif
6014 > #ifndef __bool_true_false_are_defined
6015 > "error: __bool_true_false_are_defined is not defined"
6016 > #endif
6017 >
6018 >        struct s { _Bool s: 1; _Bool t; } s;
6019 >
6020 >        char a[true == 1 ? 1 : -1];
6021 >        char b[false == 0 ? 1 : -1];
6022 >        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6023 >        char d[(bool) 0.5 == true ? 1 : -1];
6024 >        /* See body of main program for 'e'.  */
6025 >        char f[(_Bool) 0.0 == false ? 1 : -1];
6026 >        char g[true];
6027 >        char h[sizeof (_Bool)];
6028 >        char i[sizeof s.t];
6029 >        enum { j = false, k = true, l = false * true, m = true * 256 };
6030 >        /* The following fails for
6031 >           HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
6032 >        _Bool n[m];
6033 >        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6034 >        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6035 >        /* Catch a bug in an HP-UX C compiler.  See
6036 >           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6037 >           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6038 >         */
6039 >        _Bool q = true;
6040 >        _Bool *pq = &q;
6041 >
6042 > int
6043 > main ()
6044 > {
6045 >
6046 >        bool e = &s;
6047 >        *pq |= q;
6048 >        *pq |= ! q;
6049 >        /* Refer to every declared value, to avoid compiler optimizations.  */
6050 >        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6051 >                + !m + !n + !o + !p + !q + !pq);
6052 >
6053 >  ;
6054 >  return 0;
6055 > }
6056 > _ACEOF
6057 > if ac_fn_c_try_compile "$LINENO"; then :
6058 >  ac_cv_header_stdbool_h=yes
6059 > else
6060 >  ac_cv_header_stdbool_h=no
6061 > fi
6062 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063 > fi
6064 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6065 > $as_echo "$ac_cv_header_stdbool_h" >&6; }
6066 > ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6067 > if test "x$ac_cv_type__Bool" = xyes; then :
6068 >
6069 > cat >>confdefs.h <<_ACEOF
6070 > #define HAVE__BOOL 1
6071 > _ACEOF
6072 >
6073 >
6074 > fi
6075 >
6076 > if test $ac_cv_header_stdbool_h = yes; then
6077 >
6078 > $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
6079 >
6080 > fi
6081 >
6082 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6083 > $as_echo_n "checking for inline... " >&6; }
6084 > if ${ac_cv_c_inline+:} false; then :
6085 >  $as_echo_n "(cached) " >&6
6086 > else
6087 >  ac_cv_c_inline=no
6088 > for ac_kw in inline __inline__ __inline; do
6089 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 > /* end confdefs.h.  */
6091 > #ifndef __cplusplus
6092 > typedef int foo_t;
6093 > static $ac_kw foo_t static_foo () {return 0; }
6094 > $ac_kw foo_t foo () {return 0; }
6095 > #endif
6096 >
6097 > _ACEOF
6098 > if ac_fn_c_try_compile "$LINENO"; then :
6099 >  ac_cv_c_inline=$ac_kw
6100 > fi
6101 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 >  test "$ac_cv_c_inline" != no && break
6103 > done
6104 >
6105 > fi
6106 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6107 > $as_echo "$ac_cv_c_inline" >&6; }
6108 >
6109 > case $ac_cv_c_inline in
6110 >  inline | yes) ;;
6111 >  *)
6112 >    case $ac_cv_c_inline in
6113 >      no) ac_val=;;
6114 >      *) ac_val=$ac_cv_c_inline;;
6115 >    esac
6116 >    cat >>confdefs.h <<_ACEOF
6117 > #ifndef __cplusplus
6118 > #define inline $ac_val
6119 > #endif
6120 > _ACEOF
6121 >    ;;
6122 > esac
6123 >
6124 > ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6125 > if test "x$ac_cv_type_size_t" = xyes; then :
6126 >
6127 > else
6128 >
6129 > cat >>confdefs.h <<_ACEOF
6130 > #define size_t unsigned int
6131 > _ACEOF
6132 >
6133 > fi
6134 >
6135 >
6136 > # Checks for library functions.
6137 > for ac_header in stdlib.h
6138 > do :
6139 >  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6140 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
6141 >  cat >>confdefs.h <<_ACEOF
6142 > #define HAVE_STDLIB_H 1
6143 > _ACEOF
6144 >
6145 > fi
6146 >
6147 > done
6148 >
6149 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6150 > $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6151 > if ${ac_cv_func_malloc_0_nonnull+:} false; then :
6152 >  $as_echo_n "(cached) " >&6
6153 > else
6154 >  if test "$cross_compiling" = yes; then :
6155 >  ac_cv_func_malloc_0_nonnull=no
6156 > else
6157 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 > /* end confdefs.h.  */
6159 > #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6160 > # include <stdlib.h>
6161 > #else
6162 > char *malloc ();
6163 > #endif
6164 >
6165 > int
6166 > main ()
6167 > {
6168 > return ! malloc (0);
6169 >  ;
6170 >  return 0;
6171 > }
6172 > _ACEOF
6173 > if ac_fn_c_try_run "$LINENO"; then :
6174 >  ac_cv_func_malloc_0_nonnull=yes
6175 > else
6176 >  ac_cv_func_malloc_0_nonnull=no
6177 > fi
6178 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6179 >  conftest.$ac_objext conftest.beam conftest.$ac_ext
6180 > fi
6181 >
6182 > fi
6183 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6184 > $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6185 > if test $ac_cv_func_malloc_0_nonnull = yes; then :
6186 >
6187 > $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6188 >
6189 > else
6190 >  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6191 >
6192 >   case " $LIBOBJS " in
6193 >  *" malloc.$ac_objext "* ) ;;
6194 >  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6195 > ;;
6196 > esac
6197 >
6198 >
6199 > $as_echo "#define malloc rpl_malloc" >>confdefs.h
6200 >
6201 > fi
6202 >
6203 >
6204 > for ac_header in stdlib.h
6205 > do :
6206 >  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6207 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
6208 >  cat >>confdefs.h <<_ACEOF
6209 > #define HAVE_STDLIB_H 1
6210 > _ACEOF
6211 >
6212 > fi
6213 >
6214 > done
6215 >
6216 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6217 > $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6218 > if ${ac_cv_func_realloc_0_nonnull+:} false; then :
6219 >  $as_echo_n "(cached) " >&6
6220   else
6221 <  ac_check_lib_save_LIBS=$LIBS
6222 < LIBS="-lmpi  $LIBS"
6223 < cat >conftest.$ac_ext <<_ACEOF
6224 < /* confdefs.h.  */
14198 < _ACEOF
14199 < cat confdefs.h >>conftest.$ac_ext
14200 < cat >>conftest.$ac_ext <<_ACEOF
6221 >  if test "$cross_compiling" = yes; then :
6222 >  ac_cv_func_realloc_0_nonnull=no
6223 > else
6224 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225   /* end confdefs.h.  */
6226 <
6227 < /* Override any GCC internal prototype to avoid an error.
6228 <   Use char because int might match the return type of a GCC
6229 <   builtin and then its argument prototype would still apply.  */
14206 < #ifdef __cplusplus
14207 < extern "C"
6226 > #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6227 > # include <stdlib.h>
6228 > #else
6229 > char *realloc ();
6230   #endif
6231 < char MPI_Init ();
14210 < #ifdef FC_DUMMY_MAIN
14211 < #ifndef FC_DUMMY_MAIN_EQ_F77
14212 < #  ifdef __cplusplus
14213 <     extern "C"
14214 < #  endif
14215 <   int FC_DUMMY_MAIN() { return 1; }
14216 < #endif
14217 < #endif
6231 >
6232   int
6233   main ()
6234   {
6235 < return MPI_Init ();
6235 > return ! realloc (0, 0);
6236    ;
6237    return 0;
6238   }
6239   _ACEOF
6240 < rm -f conftest.$ac_objext conftest$ac_exeext
6241 < if { (ac_try="$ac_link"
14228 < case "(($ac_try" in
14229 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 <  *) ac_try_echo=$ac_try;;
14231 < esac
14232 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 <  (eval "$ac_link") 2>conftest.er1
14234 <  ac_status=$?
14235 <  grep -v '^ *+' conftest.er1 >conftest.err
14236 <  rm -f conftest.er1
14237 <  cat conftest.err >&5
14238 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 <  (exit $ac_status); } && {
14240 <         test -z "$ac_c_werror_flag" ||
14241 <         test ! -s conftest.err
14242 <       } && test -s conftest$ac_exeext &&
14243 <       $as_test_x conftest$ac_exeext; then
14244 <  ac_cv_lib_mpi_MPI_Init=yes
6240 > if ac_fn_c_try_run "$LINENO"; then :
6241 >  ac_cv_func_realloc_0_nonnull=yes
6242   else
6243 <  echo "$as_me: failed program was:" >&5
14247 < sed 's/^/| /' conftest.$ac_ext >&5
14248 <
14249 <        ac_cv_lib_mpi_MPI_Init=no
6243 >  ac_cv_func_realloc_0_nonnull=no
6244   fi
6245 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6246 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
6247 + fi
6248  
14252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14253      conftest$ac_exeext conftest.$ac_ext
14254 LIBS=$ac_check_lib_save_LIBS
6249   fi
6250 < { echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
6251 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; }
6252 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
14259 <  MPI_LIB="-lmpi"
14260 < fi
6250 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6251 > $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6252 > if test $ac_cv_func_realloc_0_nonnull = yes; then :
6253  
6254 + $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
6255 +
6256 + else
6257 +  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6258 +
6259 +   case " $LIBOBJS " in
6260 +  *" realloc.$ac_objext "* ) ;;
6261 +  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6262 + ;;
6263 + esac
6264 +
6265 +
6266 + $as_echo "#define realloc rpl_realloc" >>confdefs.h
6267 +
6268   fi
6269 < $as_unset ac_cv_lib_mpi_MPI_Init
6270 < if test x = x"$MPI_LIB"; then
6271 <        { echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
6272 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; }
6273 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
6274 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6269 >
6270 >
6271 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6272 > $as_echo_n "checking for working strtod... " >&6; }
6273 > if ${ac_cv_func_strtod+:} false; then :
6274 >  $as_echo_n "(cached) " >&6
6275   else
6276 <  ac_check_lib_save_LIBS=$LIBS
6277 < LIBS="-lmpi -llam $LIBS"
6278 < cat >conftest.$ac_ext <<_ACEOF
6279 < /* confdefs.h.  */
14274 < _ACEOF
14275 < cat confdefs.h >>conftest.$ac_ext
14276 < cat >>conftest.$ac_ext <<_ACEOF
6276 >  if test "$cross_compiling" = yes; then :
6277 >  ac_cv_func_strtod=no
6278 > else
6279 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280   /* end confdefs.h.  */
6281  
6282 < /* Override any GCC internal prototype to avoid an error.
6283 <   Use char because int might match the return type of a GCC
6284 <   builtin and then its argument prototype would still apply.  */
14282 < #ifdef __cplusplus
14283 < extern "C"
6282 > $ac_includes_default
6283 > #ifndef strtod
6284 > double strtod ();
6285   #endif
14285 char MPI_Init ();
14286 #ifdef FC_DUMMY_MAIN
14287 #ifndef FC_DUMMY_MAIN_EQ_F77
14288 #  ifdef __cplusplus
14289     extern "C"
14290 #  endif
14291   int FC_DUMMY_MAIN() { return 1; }
14292 #endif
14293 #endif
6286   int
6287 < main ()
6287 > main()
6288   {
6289 < return MPI_Init ();
6290 <  ;
6289 >  {
6290 >    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
6291 >    char *string = " +69";
6292 >    char *term;
6293 >    double value;
6294 >    value = strtod (string, &term);
6295 >    if (value != 69 || term != (string + 4))
6296 >      return 1;
6297 >  }
6298 >
6299 >  {
6300 >    /* Under Solaris 2.4, strtod returns the wrong value for the
6301 >       terminating character under some conditions.  */
6302 >    char *string = "NaN";
6303 >    char *term;
6304 >    strtod (string, &term);
6305 >    if (term != string && *(term - 1) == 0)
6306 >      return 1;
6307 >  }
6308    return 0;
6309   }
6310 +
6311   _ACEOF
6312 < rm -f conftest.$ac_objext conftest$ac_exeext
6313 < if { (ac_try="$ac_link"
14304 < case "(($ac_try" in
14305 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 <  *) ac_try_echo=$ac_try;;
14307 < esac
14308 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 <  (eval "$ac_link") 2>conftest.er1
14310 <  ac_status=$?
14311 <  grep -v '^ *+' conftest.er1 >conftest.err
14312 <  rm -f conftest.er1
14313 <  cat conftest.err >&5
14314 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 <  (exit $ac_status); } && {
14316 <         test -z "$ac_c_werror_flag" ||
14317 <         test ! -s conftest.err
14318 <       } && test -s conftest$ac_exeext &&
14319 <       $as_test_x conftest$ac_exeext; then
14320 <  ac_cv_lib_mpi_MPI_Init=yes
6312 > if ac_fn_c_try_run "$LINENO"; then :
6313 >  ac_cv_func_strtod=yes
6314   else
6315 <  echo "$as_me: failed program was:" >&5
14323 < sed 's/^/| /' conftest.$ac_ext >&5
14324 <
14325 <        ac_cv_lib_mpi_MPI_Init=no
6315 >  ac_cv_func_strtod=no
6316   fi
6317 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6318 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
6319 + fi
6320  
14328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14329      conftest$ac_exeext conftest.$ac_ext
14330 LIBS=$ac_check_lib_save_LIBS
6321   fi
6322 < { echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
6323 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; }
6324 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
6325 <  MPI_LIB="-lmpi -llam"
6326 < fi
6322 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6323 > $as_echo "$ac_cv_func_strtod" >&6; }
6324 > if test $ac_cv_func_strtod = no; then
6325 >  case " $LIBOBJS " in
6326 >  *" strtod.$ac_objext "* ) ;;
6327 >  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6328 > ;;
6329 > esac
6330  
6331 + ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6332 + if test "x$ac_cv_func_pow" = xyes; then :
6333 +
6334   fi
6335 < $as_unset ac_cv_lib_mpi_MPI_Init
6336 < if test x = x"$MPI_LIB"; then
6337 < { echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
6338 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; }
6339 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
6340 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6335 >
6336 > if test $ac_cv_func_pow = no; then
6337 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6338 > $as_echo_n "checking for pow in -lm... " >&6; }
6339 > if ${ac_cv_lib_m_pow+:} false; then :
6340 >  $as_echo_n "(cached) " >&6
6341   else
6342    ac_check_lib_save_LIBS=$LIBS
6343 < LIBS="-lmpi -llam -lpthread $LIBS"
6344 < cat >conftest.$ac_ext <<_ACEOF
14349 < /* confdefs.h.  */
14350 < _ACEOF
14351 < cat confdefs.h >>conftest.$ac_ext
14352 < cat >>conftest.$ac_ext <<_ACEOF
6343 > LIBS="-lm  $LIBS"
6344 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345   /* end confdefs.h.  */
6346  
6347   /* Override any GCC internal prototype to avoid an error.
# Line 14358 | Line 6350 | extern "C"
6350   #ifdef __cplusplus
6351   extern "C"
6352   #endif
6353 < char MPI_Init ();
14362 < #ifdef FC_DUMMY_MAIN
14363 < #ifndef FC_DUMMY_MAIN_EQ_F77
14364 < #  ifdef __cplusplus
14365 <     extern "C"
14366 < #  endif
14367 <   int FC_DUMMY_MAIN() { return 1; }
14368 < #endif
14369 < #endif
6353 > char pow ();
6354   int
6355   main ()
6356   {
6357 < return MPI_Init ();
6357 > return pow ();
6358    ;
6359    return 0;
6360   }
6361   _ACEOF
6362 < rm -f conftest.$ac_objext conftest$ac_exeext
6363 < if { (ac_try="$ac_link"
14380 < case "(($ac_try" in
14381 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 <  *) ac_try_echo=$ac_try;;
14383 < esac
14384 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 <  (eval "$ac_link") 2>conftest.er1
14386 <  ac_status=$?
14387 <  grep -v '^ *+' conftest.er1 >conftest.err
14388 <  rm -f conftest.er1
14389 <  cat conftest.err >&5
14390 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 <  (exit $ac_status); } && {
14392 <         test -z "$ac_c_werror_flag" ||
14393 <         test ! -s conftest.err
14394 <       } && test -s conftest$ac_exeext &&
14395 <       $as_test_x conftest$ac_exeext; then
14396 <  ac_cv_lib_mpi_MPI_Init=yes
6362 > if ac_fn_c_try_link "$LINENO"; then :
6363 >  ac_cv_lib_m_pow=yes
6364   else
6365 <  echo "$as_me: failed program was:" >&5
6366 < sed 's/^/| /' conftest.$ac_ext >&5
6365 >  ac_cv_lib_m_pow=no
6366 > fi
6367 > rm -f core conftest.err conftest.$ac_objext \
6368 >    conftest$ac_exeext conftest.$ac_ext
6369 > LIBS=$ac_check_lib_save_LIBS
6370 > fi
6371 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6372 > $as_echo "$ac_cv_lib_m_pow" >&6; }
6373 > if test "x$ac_cv_lib_m_pow" = xyes; then :
6374 >  POW_LIB=-lm
6375 > else
6376 >  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6377 > $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6378 > fi
6379  
14401        ac_cv_lib_mpi_MPI_Init=no
6380   fi
6381  
14404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14405      conftest$ac_exeext conftest.$ac_ext
14406 LIBS=$ac_check_lib_save_LIBS
6382   fi
6383 < { echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
6384 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; }
6385 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
6386 <  MPI_LIB="-lmpi -llam -lpthread"
6383 >
6384 > for ac_func in atexit floor pow select sqrt strcasecmp strchr strdup strncasecmp strstr strtol strtoull
6385 > do :
6386 >  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6387 > ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6388 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6389 >  cat >>confdefs.h <<_ACEOF
6390 > #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6391 > _ACEOF
6392 >
6393 > fi
6394 > done
6395 >
6396 >
6397 >
6398 > case $debug in
6399 >  1)
6400 >     ;;
6401 >  *)
6402 >
6403 >
6404 >
6405 >
6406 >
6407 >
6408 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU cc" >&5
6409 > $as_echo_n "checking whether we are *really* using GNU cc... " >&6; }
6410 > if ${ac_cv_prog_really_gcc+:} false; then :
6411 >  $as_echo_n "(cached) " >&6
6412   else
6413  
6414 <             { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
6415 < echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
6416 <   { (exit 1); exit 1; }; }
6417 <             USE_MPI="no"
6414 > cat > conftest.c <<EOF
6415 > #ifdef __GNUC__
6416 >  #if defined(__INTEL_COMPILER) || defined(__PATHCC__)
6417 >     no;
6418 >  #else
6419 >     yes;
6420 >  #endif
6421 > #endif
6422 > EOF
6423 > if { ac_try='${CC-cc} -E conftest.c'
6424 >  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6425 >  (eval $ac_try) 2>&5
6426 >  ac_status=$?
6427 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6428 >  test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
6429 >  ac_cv_prog_really_gcc=yes
6430 > else
6431 >  ac_cv_prog_really_gcc=no
6432 > fi
6433  
6434   fi
6435 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_really_gcc" >&5
6436 + $as_echo "$ac_cv_prog_really_gcc" >&6; }
6437 + if test "$ac_cv_prog_really_gcc" = yes; then
6438 +        :
6439  
6440 + else
6441 +        :
6442 +
6443   fi
6444  
6445  
6446 + # Try to determine "good" native compiler flags if none specified on command
6447 + # line
6448 + if test "$ac_test_CFLAGS" != "set"; then
6449 +  CFLAGS=""
6450 +  case "${host_cpu}-${host_os}" in
6451  
6452 < { echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
6453 < echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6; }
6454 < MPI_F90_LIB=""
6455 < if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
6456 <        MPI_F90_LIB="-lfmpich"
6457 < elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
6458 <        MPI_F90_LIB="-llamf77mpi"
6452 >  *linux*) if test "$CC" = icc; then
6453 >                    CFLAGS="-O2"
6454 >                fi;;
6455 >  sparc-solaris2*) if test "$CC" = cc; then
6456 >                    CFLAGS="-O -dalign"
6457 >                 fi;;
6458 >
6459 >  alpha*-osf*)  if test "$CC" = cc; then
6460 >                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
6461 >                fi;;
6462 >
6463 >  hppa*-hpux*)  if test "$CC" = cc; then
6464 >                    CFLAGS="-Ae +O3 +Oall"
6465 >                fi;;
6466 >
6467 >   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
6468 >                    CFLAGS="-O3 -qtune=auto -qansialias -w"
6469 >                fi;;
6470 >   powerpc*-aix*)
6471 >        if test "$CC" = cc -o "$CC" = xlc; then
6472 >                CFLAGS="-O3 -qtune=auto -qansialias -w"
6473 >                echo "*******************************************************"
6474 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
6475 >                echo "*  recommended that you use                           *"
6476 >                echo "*                                                     *"
6477 >                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
6478 >                echo "*                                 ^^^                 *"
6479 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
6480 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
6481 >                echo "*******************************************************"
6482 >        fi;;
6483 >   *darwin*)
6484 >        if test "$CC" = xlc; then
6485 >                CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
6486 >        fi
6487 >        if test "$CC" = icc; then
6488 >                CFLAGS="-O2"
6489 >        fi
6490 >        if test $ac_cv_prog_really_gcc = yes; then
6491 >                CFLAGS="-Os"
6492 >        fi;;
6493 >  esac
6494 >
6495 >  # use default flags for gcc on all systems
6496 >  if test $ac_cv_prog_really_gcc = yes -a -z "$CFLAGS"; then
6497 >     CFLAGS="-O2"
6498 >  fi
6499 >
6500 >  if test -z "$CFLAGS"; then
6501 >        echo ""
6502 >        echo "********************************************************"
6503 >        echo "* WARNING: Don't know the best CFLAGS for this system  *"
6504 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
6505 >        echo "* (otherwise, a default of CFLAGS=-O will be used)     *"
6506 >        echo "********************************************************"
6507 >        echo ""
6508 >        CFLAGS="-O"
6509 >  fi
6510 >
6511 >
6512 >
6513 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${CFLAGS}" >&5
6514 > $as_echo_n "checking whether ${CC} accepts ${CFLAGS}... " >&6; }
6515 > if ${ac_cv_ac_cv_guessed_cflags+:} false; then :
6516 >  $as_echo_n "(cached) " >&6
6517   else
6518 <                        MPI_F90_LIB="  "
6518 >  echo 'void f(){}' > conftest.c
6519 > if test -z "`${CC} ${CFLAGS} -c conftest.c 2>&1`"; then
6520 >        ac_cv_ac_cv_guessed_cflags=yes
6521 > else
6522 >        ac_cv_ac_cv_guessed_cflags=no
6523   fi
6524 < { echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
14436 < echo "${ECHO_T}found $MPI_F90_LIB" >&6; }
6524 > rm -f conftest*
6525  
6526 + fi
6527 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ac_cv_guessed_cflags" >&5
6528 + $as_echo "$ac_cv_ac_cv_guessed_cflags" >&6; }
6529 + if test "$ac_cv_ac_cv_guessed_cflags" = yes; then
6530 +        :
6531  
6532 + else
6533 +        :
6534 +
6535 +        echo ""
6536 +        echo "********************************************************"
6537 +        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
6538 +        echo "* your compiler.                                       *"
6539 +        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
6540 +        echo "********************************************************"
6541 +        echo ""
6542 +        CFLAGS=""
6543 +
6544   fi
6545  
6546  
6547 + fi
6548  
6549 +
6550 +
6551 +
6552 +
6553 +
6554 +
6555 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU c++" >&5
6556 + $as_echo_n "checking whether we are *really* using GNU c++... " >&6; }
6557 + if ${ac_cv_prog_really_gxx+:} false; then :
6558 +  $as_echo_n "(cached) " >&6
6559 + else
6560 +
6561 + cat > conftest.cpp <<EOF
6562 + #ifdef __GNUC__
6563 +  #if defined(__INTEL_COMPILER) || defined(__PATHCC__)
6564 +     no;
6565 +  #else
6566 +     yes;
6567 +  #endif
6568 + #endif
6569 + EOF
6570 + if { ac_try='${CXX-c++} -E conftest.cpp'
6571 +  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6572 +  (eval $ac_try) 2>&5
6573 +  ac_status=$?
6574 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6575 +  test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
6576 +  ac_cv_prog_really_gxx=yes
6577 + else
6578 +  ac_cv_prog_really_gxx=no
6579 + fi
6580 +
6581 + fi
6582 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_really_gxx" >&5
6583 + $as_echo "$ac_cv_prog_really_gxx" >&6; }
6584 + if test "$ac_cv_prog_really_gxx" = yes; then
6585 +        :
6586 +
6587 + else
6588 +        :
6589 +
6590 + fi
6591 +
6592 +
6593 + # Try to determine "good" native compiler flags if none specified on command
6594 + # line
6595 + if test "$ac_test_CXXFLAGS" != "set"; then
6596 +  CXXFLAGS=""
6597 +  case "${host_cpu}-${host_os}" in
6598 +
6599 +  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
6600 +                    CXXFLAGS="-O2"
6601 +                fi;;
6602 +  sparc-solaris2*) if test "$CXX" = CC; then
6603 +                    CXXFLAGS="-features=extensions -O -dalign"
6604 +                 fi;;
6605 +   rs6000*-aix*)  if test "$CXX" = xlC; then
6606 +                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
6607 +                fi;;
6608 +   powerpc*-aix*)
6609 +        if test "$CXX" = xlC; then
6610 +                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
6611 +                echo "*******************************************************"
6612 +                echo "*  You have AIX on an unknown powerpc system.  It is  *"
6613 +                echo "*  recommended that you use                           *"
6614 +                echo "*                                                     *"
6615 +                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
6616 +                echo "*                                 ^^^                 *"
6617 +                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
6618 +                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
6619 +                echo "*******************************************************"
6620 +        fi;;
6621 +   *darwin*)
6622 +        if test "$CXX" = xlc++ -o "$CXX" = xlC ; then
6623 +                CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
6624 +        fi
6625 +        if test "$CXX" = icpc; then
6626 +                CXXFLAGS="-O2"
6627 +        fi
6628 +        if test $ac_cv_prog_really_gxx = yes; then
6629 +                CXXFLAGS="-Os"
6630 +        fi;;
6631 +  esac
6632  
6633 +  # use default flags for gcc on all systems
6634 +  if test $ac_cv_prog_really_gxx = yes -a -z "$CXXFLAGS"; then
6635 +     CXXFLAGS="-O2"
6636 +  fi
6637 +
6638 +  if test -z "$CXXFLAGS"; then
6639 +        echo ""
6640 +        echo "**********************************************************"
6641 +        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
6642 +        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
6643 +        echo "* (otherwise, a default of CXXFLAGS=-O will be used)     *"
6644 +        echo "**********************************************************"
6645 +        echo ""
6646 +        CXXFLAGS="-O"
6647 +  fi
6648 +
6649 +
6650 +
6651 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${CXXFLAGS}" >&5
6652 + $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS}... " >&6; }
6653 + if ${ac_cv_ac_cv_guessed_cxxflags+:} false; then :
6654 +  $as_echo_n "(cached) " >&6
6655 + else
6656 +  echo 'void f(){}' > conftest.cpp
6657 + if test -z "`${CXX} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
6658 +        ac_cv_ac_cv_guessed_cxxflags=yes
6659 + else
6660 +        ac_cv_ac_cv_guessed_cxxflags=no
6661 + fi
6662 + rm -f conftest*
6663 +
6664 + fi
6665 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ac_cv_guessed_cxxflags" >&5
6666 + $as_echo "$ac_cv_ac_cv_guessed_cxxflags" >&6; }
6667 + if test "$ac_cv_ac_cv_guessed_cxxflags" = yes; then
6668 +        :
6669 +
6670 + else
6671 +        :
6672 +
6673 +        echo ""
6674 +        echo "**********************************************************"
6675 +        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
6676 +        echo "* your compiler.                                         *"
6677 +        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
6678 +        echo "**********************************************************"
6679 +        echo ""
6680 +        CXXFLAGS=""
6681 +
6682 + fi
6683 +
6684 +
6685 + fi
6686 +
6687 +     ;;
6688 + esac
6689 +
6690 +
6691   # Check whether --enable-doxygen was given.
6692 < if test "${enable_doxygen+set}" = set; then
6692 > if test "${enable_doxygen+set}" = set; then :
6693    enableval=$enable_doxygen;
6694   fi
6695  
6696   # Check whether --enable-dot was given.
6697 < if test "${enable_dot+set}" = set; then
6697 > if test "${enable_dot+set}" = set; then :
6698    enableval=$enable_dot;
6699   fi
6700  
6701   # Check whether --enable-html-docs was given.
6702 < if test "${enable_html_docs+set}" = set; then
6702 > if test "${enable_html_docs+set}" = set; then :
6703    enableval=$enable_html_docs;
6704   else
6705     enable_html_docs=yes
6706   fi
6707  
6708   # Check whether --enable-latex-docs was given.
6709 < if test "${enable_latex_docs+set}" = set; then
6709 > if test "${enable_latex_docs+set}" = set; then :
6710    enableval=$enable_latex_docs;
6711   else
6712     enable_latex_docs=no
# Line 14470 | Line 6717 | set dummy doxygen; ac_word=$2
6717   else
6718          # Extract the first word of "doxygen", so it can be a program name with args.
6719   set dummy doxygen; ac_word=$2
6720 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 < if test "${ac_cv_path_DOXYGEN+set}" = set; then
6723 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6720 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 > $as_echo_n "checking for $ac_word... " >&6; }
6722 > if ${ac_cv_path_DOXYGEN+:} false; then :
6723 >  $as_echo_n "(cached) " >&6
6724   else
6725    case $DOXYGEN in
6726    [\\/]* | ?:[\\/]*)
# Line 14485 | Line 6732 | do
6732   do
6733    IFS=$as_save_IFS
6734    test -z "$as_dir" && as_dir=.
6735 <  for ac_exec_ext in '' $ac_executable_extensions; do
6735 >    for ac_exec_ext in '' $ac_executable_extensions; do
6736    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737      ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6738 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739      break 2
6740    fi
6741   done
6742 < done
6742 >  done
6743   IFS=$as_save_IFS
6744  
6745    ;;
# Line 14500 | Line 6747 | if test -n "$DOXYGEN"; then
6747   fi
6748   DOXYGEN=$ac_cv_path_DOXYGEN
6749   if test -n "$DOXYGEN"; then
6750 <  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6751 < echo "${ECHO_T}$DOXYGEN" >&6; }
6750 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
6751 > $as_echo "$DOXYGEN" >&6; }
6752   else
6753 <  { echo "$as_me:$LINENO: result: no" >&5
6754 < echo "${ECHO_T}no" >&6; }
6753 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 > $as_echo "no" >&6; }
6755   fi
6756  
6757  
6758          if test "x$DOXYGEN" = x; then
6759                  if test "x$enable_doxygen" = xyes; then
6760 <                        { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
14514 < echo "$as_me: error: could not find doxygen" >&2;}
14515 <   { (exit 1); exit 1; }; }
6760 >                        as_fn_error $? "could not find doxygen" "$LINENO" 5
6761                  fi
6762                  enable_doc=no
6763          else
6764                  enable_doc=yes
6765                  # Extract the first word of "dot", so it can be a program name with args.
6766   set dummy dot; ac_word=$2
6767 < { echo "$as_me:$LINENO: checking for $ac_word" >&5
6768 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6769 < if test "${ac_cv_path_DOT+set}" = set; then
6770 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6767 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 > $as_echo_n "checking for $ac_word... " >&6; }
6769 > if ${ac_cv_path_DOT+:} false; then :
6770 >  $as_echo_n "(cached) " >&6
6771   else
6772    case $DOT in
6773    [\\/]* | ?:[\\/]*)
# Line 14534 | Line 6779 | do
6779   do
6780    IFS=$as_save_IFS
6781    test -z "$as_dir" && as_dir=.
6782 <  for ac_exec_ext in '' $ac_executable_extensions; do
6782 >    for ac_exec_ext in '' $ac_executable_extensions; do
6783    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784      ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6785 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786      break 2
6787    fi
6788   done
6789 < done
6789 >  done
6790   IFS=$as_save_IFS
6791  
6792    ;;
# Line 14549 | Line 6794 | if test -n "$DOT"; then
6794   fi
6795   DOT=$ac_cv_path_DOT
6796   if test -n "$DOT"; then
6797 <  { echo "$as_me:$LINENO: result: $DOT" >&5
6798 < echo "${ECHO_T}$DOT" >&6; }
6797 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
6798 > $as_echo "$DOT" >&6; }
6799   else
6800 <  { echo "$as_me:$LINENO: result: no" >&5
6801 < echo "${ECHO_T}no" >&6; }
6800 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 > $as_echo "no" >&6; }
6802   fi
6803  
6804  
# Line 14569 | Line 6814 | if test x$DOT = x; then
6814  
6815   if test x$DOT = x; then
6816          if test "x$enable_dot" = xyes; then
6817 <                { { echo "$as_me:$LINENO: error: could not find dot" >&5
14573 < echo "$as_me: error: could not find dot" >&2;}
14574 <   { (exit 1); exit 1; }; }
6817 >                as_fn_error $? "could not find dot" "$LINENO" 5
6818          fi
6819          enable_dot=no
6820   else
# Line 14593 | Line 6836 | fi
6836  
6837  
6838  
6839 + ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/integrators/Makefile src/applications/atom2md/Makefile scripts/filepp"
6840  
6841  
14598
14599 ac_config_files="$ac_config_files make/Makefile src/utils/Makefile scripts/filepp"
14600
14601
6842   cat >confcache <<\_ACEOF
6843   # This file is a shell script that caches the results of configure
6844   # tests run on this system so they can be shared between configure
# Line 14626 | Line 6866 | _ACEOF
6866      case $ac_val in #(
6867      *${as_nl}*)
6868        case $ac_var in #(
6869 <      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6870 < echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6869 >      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6870 > $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6871        esac
6872        case $ac_var in #(
6873        _ | IFS | as_nl) ;; #(
6874 <      *) $as_unset $ac_var ;;
6874 >      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6875 >      *) { eval $ac_var=; unset $ac_var;} ;;
6876        esac ;;
6877      esac
6878    done
# Line 14639 | Line 6880 | echo "$as_me: WARNING: Cache variable $ac_var contains
6880    (set) 2>&1 |
6881      case $as_nl`(ac_space=' '; set) 2>&1` in #(
6882      *${as_nl}ac_space=\ *)
6883 <      # `set' does not quote correctly, so add quotes (double-quote
6884 <      # substitution turns \\\\ into \\, and sed turns \\ into \).
6883 >      # `set' does not quote correctly, so add quotes: double-quote
6884 >      # substitution turns \\\\ into \\, and sed turns \\ into \.
6885        sed -n \
6886          "s/'/'\\\\''/g;
6887            s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
# Line 14662 | Line 6903 | if diff "$cache_file" confcache >/dev/null 2>&1; then
6903       :end' >>confcache
6904   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6905    if test -w "$cache_file"; then
6906 <    test "x$cache_file" != "x/dev/null" &&
6907 <      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6908 < echo "$as_me: updating cache $cache_file" >&6;}
6909 <    cat confcache >$cache_file
6906 >    if test "x$cache_file" != "x/dev/null"; then
6907 >      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6908 > $as_echo "$as_me: updating cache $cache_file" >&6;}
6909 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
6910 >        cat confcache >"$cache_file"
6911 >      else
6912 >        case $cache_file in #(
6913 >        */* | ?:*)
6914 >          mv -f confcache "$cache_file"$$ &&
6915 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
6916 >        *)
6917 >          mv -f confcache "$cache_file" ;;
6918 >        esac
6919 >      fi
6920 >    fi
6921    else
6922 <    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6923 < echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6922 >    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6923 > $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6924    fi
6925   fi
6926   rm -f confcache
# Line 14681 | Line 6933 | ac_ltlibobjs=
6933  
6934   ac_libobjs=
6935   ac_ltlibobjs=
6936 + U=
6937   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6938    # 1. Remove the extension, and $U if already installed.
6939    ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6940 <  ac_i=`echo "$ac_i" | sed "$ac_script"`
6940 >  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6941    # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6942    #    will be set to the directory where LIBOBJS objects are built.
6943 <  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6944 <  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6943 >  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6944 >  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6945   done
6946   LIBOBJS=$ac_libobjs
6947  
# Line 14696 | Line 6949 | LTLIBOBJS=$ac_ltlibobjs
6949  
6950  
6951  
6952 < : ${CONFIG_STATUS=./config.status}
6952 > : "${CONFIG_STATUS=./config.status}"
6953 > ac_write_fail=0
6954   ac_clean_files_save=$ac_clean_files
6955   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6956 < { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6957 < echo "$as_me: creating $CONFIG_STATUS" >&6;}
6958 < cat >$CONFIG_STATUS <<_ACEOF
6956 > { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6957 > $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6958 > as_write_fail=0
6959 > cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6960   #! $SHELL
6961   # Generated by $as_me.
6962   # Run this file to recreate the current configuration.
# Line 14711 | Line 6966 | ac_cs_silent=false
6966   debug=false
6967   ac_cs_recheck=false
6968   ac_cs_silent=false
6969 +
6970   SHELL=\${CONFIG_SHELL-$SHELL}
6971 < _ACEOF
6971 > export SHELL
6972 > _ASEOF
6973 > cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6974 > ## -------------------- ##
6975 > ## M4sh Initialization. ##
6976 > ## -------------------- ##
6977  
14717 cat >>$CONFIG_STATUS <<\_ACEOF
14718 ## --------------------- ##
14719 ## M4sh Initialization.  ##
14720 ## --------------------- ##
14721
6978   # Be more Bourne compatible
6979   DUALCASE=1; export DUALCASE # for MKS sh
6980 < if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6980 > if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6981    emulate sh
6982    NULLCMD=:
6983 <  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6983 >  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6984    # is contrary to our usage.  Disable this feature.
6985    alias -g '${1+"$@"}'='"$@"'
6986    setopt NO_GLOB_SUBST
6987   else
6988 <  case `(set -o) 2>/dev/null` in
6989 <  *posix*) set -o posix ;;
6988 >  case `(set -o) 2>/dev/null` in #(
6989 >  *posix*) :
6990 >    set -o posix ;; #(
6991 >  *) :
6992 >     ;;
6993   esac
14735
6994   fi
6995  
6996  
6997 <
6998 <
6999 < # PATH needs CR
7000 < # Avoid depending upon Character Ranges.
7001 < as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7002 < as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7003 < as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7004 < as_cr_digits='0123456789'
7005 < as_cr_alnum=$as_cr_Letters$as_cr_digits
7006 <
7007 < # The user is always right.
7008 < if test "${PATH_SEPARATOR+set}" != set; then
7009 <  echo "#! /bin/sh" >conf$$.sh
7010 <  echo  "exit 0"   >>conf$$.sh
7011 <  chmod +x conf$$.sh
7012 <  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7013 <    PATH_SEPARATOR=';'
6997 > as_nl='
6998 > '
6999 > export as_nl
7000 > # Printing a long string crashes Solaris 7 /usr/bin/printf.
7001 > as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7002 > as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7003 > as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7004 > # Prefer a ksh shell builtin over an external printf program on Solaris,
7005 > # but without wasting forks for bash or zsh.
7006 > if test -z "$BASH_VERSION$ZSH_VERSION" \
7007 >    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7008 >  as_echo='print -r --'
7009 >  as_echo_n='print -rn --'
7010 > elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7011 >  as_echo='printf %s\n'
7012 >  as_echo_n='printf %s'
7013 > else
7014 >  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7015 >    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7016 >    as_echo_n='/usr/ucb/echo -n'
7017    else
7018 <    PATH_SEPARATOR=:
7018 >    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7019 >    as_echo_n_body='eval
7020 >      arg=$1;
7021 >      case $arg in #(
7022 >      *"$as_nl"*)
7023 >        expr "X$arg" : "X\\(.*\\)$as_nl";
7024 >        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7025 >      esac;
7026 >      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7027 >    '
7028 >    export as_echo_n_body
7029 >    as_echo_n='sh -c $as_echo_n_body as_echo'
7030    fi
7031 <  rm -f conf$$.sh
7031 >  export as_echo_body
7032 >  as_echo='sh -c $as_echo_body as_echo'
7033   fi
7034  
7035 < # Support unset when possible.
7036 < if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7037 <  as_unset=unset
7038 < else
7039 <  as_unset=false
7035 > # The user is always right.
7036 > if test "${PATH_SEPARATOR+set}" != set; then
7037 >  PATH_SEPARATOR=:
7038 >  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7039 >    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7040 >      PATH_SEPARATOR=';'
7041 >  }
7042   fi
7043  
7044  
# Line 14772 | Line 7047 | fi
7047   # there to prevent editors from complaining about space-tab.
7048   # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7049   # splitting by setting IFS to empty value.)
14775 as_nl='
14776 '
7050   IFS=" ""        $as_nl"
7051  
7052   # Find who we are.  Look in the path if we contain no directory separator.
7053 < case $0 in
7053 > as_myself=
7054 > case $0 in #((
7055    *[\\/]* ) as_myself=$0 ;;
7056    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057   for as_dir in $PATH
7058   do
7059    IFS=$as_save_IFS
7060    test -z "$as_dir" && as_dir=.
7061 <  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7062 < done
7061 >    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7062 >  done
7063   IFS=$as_save_IFS
7064  
7065       ;;
# Line 14796 | Line 7070 | if test ! -f "$as_myself"; then
7070    as_myself=$0
7071   fi
7072   if test ! -f "$as_myself"; then
7073 <  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7074 <  { (exit 1); exit 1; }
7073 >  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7074 >  exit 1
7075   fi
7076  
7077 < # Work around bugs in pre-3.0 UWIN ksh.
7078 < for as_var in ENV MAIL MAILPATH
7079 < do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7077 > # Unset variables that we do not need and which cause bugs (e.g. in
7078 > # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7079 > # suppresses any "Segmentation fault" message there.  '((' could
7080 > # trigger a bug in pdksh 5.2.14.
7081 > for as_var in BASH_ENV ENV MAIL MAILPATH
7082 > do eval test x\${$as_var+set} = xset \
7083 >  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7084   done
7085   PS1='$ '
7086   PS2='> '
7087   PS4='+ '
7088  
7089   # NLS nuisances.
7090 < for as_var in \
7091 <  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7092 <  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7093 <  LC_TELEPHONE LC_TIME
7094 < do
7095 <  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7096 <    eval $as_var=C; export $as_var
7097 <  else
7098 <    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7090 > LC_ALL=C
7091 > export LC_ALL
7092 > LANGUAGE=C
7093 > export LANGUAGE
7094 >
7095 > # CDPATH.
7096 > (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7097 >
7098 >
7099 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
7100 > # ----------------------------------------
7101 > # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7102 > # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7103 > # script with STATUS, using 1 if that was 0.
7104 > as_fn_error ()
7105 > {
7106 >  as_status=$1; test $as_status -eq 0 && as_status=1
7107 >  if test "$4"; then
7108 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7109 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7110    fi
7111 < done
7111 >  $as_echo "$as_me: error: $2" >&2
7112 >  as_fn_exit $as_status
7113 > } # as_fn_error
7114  
7115 < # Required to use basename.
7115 >
7116 > # as_fn_set_status STATUS
7117 > # -----------------------
7118 > # Set $? to STATUS, without forking.
7119 > as_fn_set_status ()
7120 > {
7121 >  return $1
7122 > } # as_fn_set_status
7123 >
7124 > # as_fn_exit STATUS
7125 > # -----------------
7126 > # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7127 > as_fn_exit ()
7128 > {
7129 >  set +e
7130 >  as_fn_set_status $1
7131 >  exit $1
7132 > } # as_fn_exit
7133 >
7134 > # as_fn_unset VAR
7135 > # ---------------
7136 > # Portably unset VAR.
7137 > as_fn_unset ()
7138 > {
7139 >  { eval $1=; unset $1;}
7140 > }
7141 > as_unset=as_fn_unset
7142 > # as_fn_append VAR VALUE
7143 > # ----------------------
7144 > # Append the text in VALUE to the end of the definition contained in VAR. Take
7145 > # advantage of any shell optimizations that allow amortized linear growth over
7146 > # repeated appends, instead of the typical quadratic growth present in naive
7147 > # implementations.
7148 > if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7149 >  eval 'as_fn_append ()
7150 >  {
7151 >    eval $1+=\$2
7152 >  }'
7153 > else
7154 >  as_fn_append ()
7155 >  {
7156 >    eval $1=\$$1\$2
7157 >  }
7158 > fi # as_fn_append
7159 >
7160 > # as_fn_arith ARG...
7161 > # ------------------
7162 > # Perform arithmetic evaluation on the ARGs, and store the result in the
7163 > # global $as_val. Take advantage of shells that can avoid forks. The arguments
7164 > # must be portable across $(()) and expr.
7165 > if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7166 >  eval 'as_fn_arith ()
7167 >  {
7168 >    as_val=$(( $* ))
7169 >  }'
7170 > else
7171 >  as_fn_arith ()
7172 >  {
7173 >    as_val=`expr "$@" || test $? -eq 1`
7174 >  }
7175 > fi # as_fn_arith
7176 >
7177 >
7178   if expr a : '\(a\)' >/dev/null 2>&1 &&
7179     test "X`expr 00001 : '.*\(...\)'`" = X001; then
7180    as_expr=expr
# Line 14835 | Line 7188 | fi
7188    as_basename=false
7189   fi
7190  
7191 + if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7192 +  as_dirname=dirname
7193 + else
7194 +  as_dirname=false
7195 + fi
7196  
14839 # Name of the executable.
7197   as_me=`$as_basename -- "$0" ||
7198   $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7199           X"$0" : 'X\(//\)$' \| \
7200           X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7201 < echo X/"$0" |
7201 > $as_echo X/"$0" |
7202      sed '/^.*\/\([^/][^/]*\)\/*$/{
7203              s//\1/
7204              q
# Line 14856 | Line 7213 | echo X/"$0" |
7213            }
7214            s/.*/./; q'`
7215  
7216 < # CDPATH.
7217 < $as_unset CDPATH
7216 > # Avoid depending upon Character Ranges.
7217 > as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7218 > as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7219 > as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7220 > as_cr_digits='0123456789'
7221 > as_cr_alnum=$as_cr_Letters$as_cr_digits
7222  
14862
14863
14864  as_lineno_1=$LINENO
14865  as_lineno_2=$LINENO
14866  test "x$as_lineno_1" != "x$as_lineno_2" &&
14867  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14868
14869  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14870  # uniformly replaced by the line number.  The first 'sed' inserts a
14871  # line-number line after each line using $LINENO; the second 'sed'
14872  # does the real work.  The second script uses 'N' to pair each
14873  # line-number line with the line containing $LINENO, and appends
14874  # trailing '-' during substitution so that $LINENO is not a special
14875  # case at line end.
14876  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14877  # scripts with optimization help from Paolo Bonzini.  Blame Lee
14878  # E. McMahon (1931-1989) for sed's syntax.  :-)
14879  sed -n '
14880    p
14881    /[$]LINENO/=
14882  ' <$as_myself |
14883    sed '
14884      s/[$]LINENO.*/&-/
14885      t lineno
14886      b
14887      :lineno
14888      N
14889      :loop
14890      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14891      t loop
14892      s/-\n.*//
14893    ' >$as_me.lineno &&
14894  chmod +x "$as_me.lineno" ||
14895    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14896   { (exit 1); exit 1; }; }
14897
14898  # Don't try to exec as it changes $[0], causing all sort of problems
14899  # (the dirname of $[0] is not the place where we might find the
14900  # original and so on.  Autoconf is especially sensitive to this).
14901  . "./$as_me.lineno"
14902  # Exit status is that of the last command.
14903  exit
14904 }
14905
14906
14907 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14908  as_dirname=dirname
14909 else
14910  as_dirname=false
14911 fi
14912
7223   ECHO_C= ECHO_N= ECHO_T=
7224 < case `echo -n x` in
7224 > case `echo -n x` in #(((((
7225   -n*)
7226 <  case `echo 'x\c'` in
7226 >  case `echo 'xy\c'` in
7227    *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7228 <  *)   ECHO_C='\c';;
7228 >  xy)  ECHO_C='\c';;
7229 >  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7230 >       ECHO_T=' ';;
7231    esac;;
7232   *)
7233    ECHO_N='-n';;
7234   esac
7235  
14924 if expr a : '\(a\)' >/dev/null 2>&1 &&
14925   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14926  as_expr=expr
14927 else
14928  as_expr=false
14929 fi
14930
7236   rm -f conf$$ conf$$.exe conf$$.file
7237   if test -d conf$$.dir; then
7238    rm -f conf$$.dir/conf$$.file
7239   else
7240    rm -f conf$$.dir
7241 <  mkdir conf$$.dir
7241 >  mkdir conf$$.dir 2>/dev/null
7242   fi
7243 < echo >conf$$.file
7244 < if ln -s conf$$.file conf$$ 2>/dev/null; then
7245 <  as_ln_s='ln -s'
7246 <  # ... but there are two gotchas:
7247 <  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7248 <  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7249 <  # In both cases, we have to default to `cp -p'.
7250 <  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7243 > if (echo >conf$$.file) 2>/dev/null; then
7244 >  if ln -s conf$$.file conf$$ 2>/dev/null; then
7245 >    as_ln_s='ln -s'
7246 >    # ... but there are two gotchas:
7247 >    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7248 >    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7249 >    # In both cases, we have to default to `cp -p'.
7250 >    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7251 >      as_ln_s='cp -p'
7252 >  elif ln conf$$.file conf$$ 2>/dev/null; then
7253 >    as_ln_s=ln
7254 >  else
7255      as_ln_s='cp -p'
7256 < elif ln conf$$.file conf$$ 2>/dev/null; then
14948 <  as_ln_s=ln
7256 >  fi
7257   else
7258    as_ln_s='cp -p'
7259   fi
7260   rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7261   rmdir conf$$.dir 2>/dev/null
7262  
7263 +
7264 + # as_fn_mkdir_p
7265 + # -------------
7266 + # Create "$as_dir" as a directory, including parents if necessary.
7267 + as_fn_mkdir_p ()
7268 + {
7269 +
7270 +  case $as_dir in #(
7271 +  -*) as_dir=./$as_dir;;
7272 +  esac
7273 +  test -d "$as_dir" || eval $as_mkdir_p || {
7274 +    as_dirs=
7275 +    while :; do
7276 +      case $as_dir in #(
7277 +      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7278 +      *) as_qdir=$as_dir;;
7279 +      esac
7280 +      as_dirs="'$as_qdir' $as_dirs"
7281 +      as_dir=`$as_dirname -- "$as_dir" ||
7282 + $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7283 +         X"$as_dir" : 'X\(//\)[^/]' \| \
7284 +         X"$as_dir" : 'X\(//\)$' \| \
7285 +         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7286 + $as_echo X"$as_dir" |
7287 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7288 +            s//\1/
7289 +            q
7290 +          }
7291 +          /^X\(\/\/\)[^/].*/{
7292 +            s//\1/
7293 +            q
7294 +          }
7295 +          /^X\(\/\/\)$/{
7296 +            s//\1/
7297 +            q
7298 +          }
7299 +          /^X\(\/\).*/{
7300 +            s//\1/
7301 +            q
7302 +          }
7303 +          s/.*/./; q'`
7304 +      test -d "$as_dir" && break
7305 +    done
7306 +    test -z "$as_dirs" || eval "mkdir $as_dirs"
7307 +  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7308 +
7309 +
7310 + } # as_fn_mkdir_p
7311   if mkdir -p . 2>/dev/null; then
7312 <  as_mkdir_p=:
7312 >  as_mkdir_p='mkdir -p "$as_dir"'
7313   else
7314    test -d ./-p && rmdir ./-p
7315    as_mkdir_p=false
# Line 14970 | Line 7326 | else
7326    as_test_x='
7327      eval sh -c '\''
7328        if test -d "$1"; then
7329 <        test -d "$1/.";
7329 >        test -d "$1/.";
7330        else
7331 <        case $1 in
7332 <        -*)set "./$1";;
7331 >        case $1 in #(
7332 >        -*)set "./$1";;
7333          esac;
7334 <        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7334 >        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7335          ???[sx]*):;;*)false;;esac;fi
7336      '\'' sh
7337    '
# Line 14990 | Line 7346 | exec 6>&1
7346  
7347  
7348   exec 6>&1
7349 + ## ----------------------------------- ##
7350 + ## Main body of $CONFIG_STATUS script. ##
7351 + ## ----------------------------------- ##
7352 + _ASEOF
7353 + test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7354  
7355 < # Save the log message, to keep $[0] and so on meaningful, and to
7355 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7356 > # Save the log message, to keep $0 and so on meaningful, and to
7357   # report actual input values of CONFIG_FILES etc. instead of their
7358   # values after options handling.
7359   ac_log="
7360 < This file was extended by OOPSE $as_me 3.0, which was
7361 < generated by GNU Autoconf 2.61.  Invocation command line was
7360 > This file was extended by OpenMD $as_me 2.0, which was
7361 > generated by GNU Autoconf 2.68.  Invocation command line was
7362  
7363    CONFIG_FILES    = $CONFIG_FILES
7364    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 15009 | Line 7371 | _ACEOF
7371  
7372   _ACEOF
7373  
7374 < cat >>$CONFIG_STATUS <<_ACEOF
7374 > case $ac_config_files in *"
7375 > "*) set x $ac_config_files; shift; ac_config_files=$*;;
7376 > esac
7377 >
7378 > case $ac_config_headers in *"
7379 > "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7380 > esac
7381 >
7382 >
7383 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7384   # Files that config.status was made for.
7385   config_files="$ac_config_files"
7386   config_headers="$ac_config_headers"
15016 config_links="$ac_config_links"
7387  
7388   _ACEOF
7389  
7390 < cat >>$CONFIG_STATUS <<\_ACEOF
7390 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7391   ac_cs_usage="\
7392 < \`$as_me' instantiates files from templates according to the
7393 < current configuration.
7392 > \`$as_me' instantiates files and other configuration actions
7393 > from templates according to the current configuration.  Unless the files
7394 > and actions are specified as TAGs, all are instantiated by default.
7395  
7396 < Usage: $0 [OPTIONS] [FILE]...
7396 > Usage: $0 [OPTION]... [TAG]...
7397  
7398    -h, --help       print this help, then exit
7399    -V, --version    print version number and configuration settings, then exit
7400 <  -q, --quiet      do not print progress messages
7400 >      --config     print configuration, then exit
7401 >  -q, --quiet, --silent
7402 >                   do not print progress messages
7403    -d, --debug      don't remove temporary files
7404        --recheck    update $as_me by reconfiguring in the same conditions
7405 <  --file=FILE[:TEMPLATE]
7406 <                   instantiate the configuration file FILE
7407 <  --header=FILE[:TEMPLATE]
7408 <                   instantiate the configuration header FILE
7405 >      --file=FILE[:TEMPLATE]
7406 >                   instantiate the configuration file FILE
7407 >      --header=FILE[:TEMPLATE]
7408 >                   instantiate the configuration header FILE
7409  
7410   Configuration files:
7411   $config_files
# Line 15040 | Line 7413 | $config_headers
7413   Configuration headers:
7414   $config_headers
7415  
7416 < Configuration links:
15044 < $config_links
7416 > Report bugs to <gezelter@nd.edu>."
7417  
15046 Report bugs to <bug-autoconf@gnu.org>."
15047
7418   _ACEOF
7419 < cat >>$CONFIG_STATUS <<_ACEOF
7419 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7420 > ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7421   ac_cs_version="\\
7422 < OOPSE config.status 3.0
7423 < configured by $0, generated by GNU Autoconf 2.61,
7424 <  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7422 > OpenMD config.status 2.0
7423 > configured by $0, generated by GNU Autoconf 2.68,
7424 >  with options \\"\$ac_cs_config\\"
7425  
7426 < Copyright (C) 2006 Free Software Foundation, Inc.
7426 > Copyright (C) 2010 Free Software Foundation, Inc.
7427   This config.status script is free software; the Free Software Foundation
7428   gives unlimited permission to copy, distribute and modify it."
7429  
7430   ac_pwd='$ac_pwd'
7431   srcdir='$srcdir'
7432   INSTALL='$INSTALL'
7433 + test -n "\$AWK" || AWK=awk
7434   _ACEOF
7435  
7436 < cat >>$CONFIG_STATUS <<\_ACEOF
7437 < # If no file are specified by the user, then we need to provide default
15066 < # value.  By we need to know if files were specified by the user.
7436 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7437 > # The default lists apply if the user does not specify any file.
7438   ac_need_defaults=:
7439   while test $# != 0
7440   do
7441    case $1 in
7442 <  --*=*)
7442 >  --*=?*)
7443      ac_option=`expr "X$1" : 'X\([^=]*\)='`
7444      ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7445      ac_shift=:
7446      ;;
7447 +  --*=)
7448 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7449 +    ac_optarg=
7450 +    ac_shift=:
7451 +    ;;
7452    *)
7453      ac_option=$1
7454      ac_optarg=$2
# Line 15085 | Line 7461 | do
7461    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7462      ac_cs_recheck=: ;;
7463    --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7464 <    echo "$ac_cs_version"; exit ;;
7464 >    $as_echo "$ac_cs_version"; exit ;;
7465 >  --config | --confi | --conf | --con | --co | --c )
7466 >    $as_echo "$ac_cs_config"; exit ;;
7467    --debug | --debu | --deb | --de | --d | -d )
7468      debug=: ;;
7469    --file | --fil | --fi | --f )
7470      $ac_shift
7471 <    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7471 >    case $ac_optarg in
7472 >    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7473 >    '') as_fn_error $? "missing file argument" ;;
7474 >    esac
7475 >    as_fn_append CONFIG_FILES " '$ac_optarg'"
7476      ac_need_defaults=false;;
7477    --header | --heade | --head | --hea )
7478      $ac_shift
7479 <    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7479 >    case $ac_optarg in
7480 >    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7481 >    esac
7482 >    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7483      ac_need_defaults=false;;
7484    --he | --h)
7485      # Conflict between --help and --header
7486 <    { echo "$as_me: error: ambiguous option: $1
7487 < Try \`$0 --help' for more information." >&2
15103 <   { (exit 1); exit 1; }; };;
7486 >    as_fn_error $? "ambiguous option: \`$1'
7487 > Try \`$0 --help' for more information.";;
7488    --help | --hel | -h )
7489 <    echo "$ac_cs_usage"; exit ;;
7489 >    $as_echo "$ac_cs_usage"; exit ;;
7490    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7491    | -silent | --silent | --silen | --sile | --sil | --si | --s)
7492      ac_cs_silent=: ;;
7493  
7494    # This is an error.
7495 <  -*) { echo "$as_me: error: unrecognized option: $1
7496 < Try \`$0 --help' for more information." >&2
15113 <   { (exit 1); exit 1; }; } ;;
7495 >  -*) as_fn_error $? "unrecognized option: \`$1'
7496 > Try \`$0 --help' for more information." ;;
7497  
7498 <  *) ac_config_targets="$ac_config_targets $1"
7498 >  *) as_fn_append ac_config_targets " $1"
7499       ac_need_defaults=false ;;
7500  
7501    esac
# Line 15127 | Line 7510 | _ACEOF
7510   fi
7511  
7512   _ACEOF
7513 < cat >>$CONFIG_STATUS <<_ACEOF
7513 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7514   if \$ac_cs_recheck; then
7515 <  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7516 <  CONFIG_SHELL=$SHELL
7515 >  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7516 >  shift
7517 >  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7518 >  CONFIG_SHELL='$SHELL'
7519    export CONFIG_SHELL
7520 <  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7520 >  exec "\$@"
7521   fi
7522  
7523   _ACEOF
7524 < cat >>$CONFIG_STATUS <<\_ACEOF
7524 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7525   exec 5>>config.log
7526   {
7527    echo
7528    sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7529   ## Running $as_me. ##
7530   _ASBOX
7531 <  echo "$ac_log"
7531 >  $as_echo "$ac_log"
7532   } >&5
7533  
7534   _ACEOF
7535 < cat >>$CONFIG_STATUS <<_ACEOF
7535 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7536   _ACEOF
7537  
7538 < cat >>$CONFIG_STATUS <<\_ACEOF
7538 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7539  
7540   # Handling of arguments.
7541   for ac_config_target in $ac_config_targets
7542   do
7543    case $ac_config_target in
7544      "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
15160    "src/getopt.h") CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
7545      "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
7546      "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
7547 +    "src/math/Makefile") CONFIG_FILES="$CONFIG_FILES src/math/Makefile" ;;
7548 +    "src/integrators/Makefile") CONFIG_FILES="$CONFIG_FILES src/integrators/Makefile" ;;
7549 +    "src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;;
7550      "scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
7551  
7552 <  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15166 < echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15167 <   { (exit 1); exit 1; }; };;
7552 >  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7553    esac
7554   done
7555  
# Line 15176 | Line 7561 | if $ac_need_defaults; then
7561   if $ac_need_defaults; then
7562    test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7563    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15179  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7564   fi
7565  
7566   # Have a temporary directory for convenience.  Make it in the build tree
# Line 15187 | Line 7571 | $debug ||
7571   # after its creation but before its name has been assigned to `$tmp'.
7572   $debug ||
7573   {
7574 <  tmp=
7574 >  tmp= ac_tmp=
7575    trap 'exit_status=$?
7576 <  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7576 >  : "${ac_tmp:=$tmp}"
7577 >  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7578   ' 0
7579 <  trap '{ (exit 1); exit 1; }' 1 2 13 15
7579 >  trap 'as_fn_exit 1' 1 2 13 15
7580   }
7581   # Create a (secure) tmp directory for tmp files.
7582  
7583   {
7584    tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7585 <  test -n "$tmp" && test -d "$tmp"
7585 >  test -d "$tmp"
7586   }  ||
7587   {
7588    tmp=./conf$$-$RANDOM
7589    (umask 077 && mkdir "$tmp")
7590 < } ||
7591 < {
15207 <   echo "$me: cannot create a temporary directory in ." >&2
15208 <   { (exit 1); exit 1; }
15209 < }
7590 > } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7591 > ac_tmp=$tmp
7592  
7593 < #
7594 < # Set up the sed scripts for CONFIG_FILES section.
7595 < #
15214 <
15215 < # No need to generate the scripts if there are no CONFIG_FILES.
15216 < # This happens for instance when ./config.status config.h
7593 > # Set up the scripts for CONFIG_FILES section.
7594 > # No need to generate them if there are no CONFIG_FILES.
7595 > # This happens for instance with `./config.status config.h'.
7596   if test -n "$CONFIG_FILES"; then
7597  
15219 _ACEOF
7598  
7599 + ac_cr=`echo X | tr X '\015'`
7600 + # On cygwin, bash can eat \r inside `` if the user requested igncr.
7601 + # But we know of no other shell where ac_cr would be empty at this
7602 + # point, so we can use a bashism as a fallback.
7603 + if test "x$ac_cr" = x; then
7604 +  eval ac_cr=\$\'\\r\'
7605 + fi
7606 + ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7607 + if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7608 +  ac_cs_awk_cr='\\r'
7609 + else
7610 +  ac_cs_awk_cr=$ac_cr
7611 + fi
7612  
7613 + echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7614 + _ACEOF
7615  
7616 +
7617 + {
7618 +  echo "cat >conf$$subs.awk <<_ACEOF" &&
7619 +  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7620 +  echo "_ACEOF"
7621 + } >conf$$subs.sh ||
7622 +  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7623 + ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7624   ac_delim='%!_!# '
7625   for ac_last_try in false false false false false :; do
7626 <  cat >conf$$subs.sed <<_ACEOF
7627 < SHELL!$SHELL$ac_delim
15227 < PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15228 < PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15229 < PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15230 < PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15231 < PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15232 < PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15233 < exec_prefix!$exec_prefix$ac_delim
15234 < prefix!$prefix$ac_delim
15235 < program_transform_name!$program_transform_name$ac_delim
15236 < bindir!$bindir$ac_delim
15237 < sbindir!$sbindir$ac_delim
15238 < libexecdir!$libexecdir$ac_delim
15239 < datarootdir!$datarootdir$ac_delim
15240 < datadir!$datadir$ac_delim
15241 < sysconfdir!$sysconfdir$ac_delim
15242 < sharedstatedir!$sharedstatedir$ac_delim
15243 < localstatedir!$localstatedir$ac_delim
15244 < includedir!$includedir$ac_delim
15245 < oldincludedir!$oldincludedir$ac_delim
15246 < docdir!$docdir$ac_delim
15247 < infodir!$infodir$ac_delim
15248 < htmldir!$htmldir$ac_delim
15249 < dvidir!$dvidir$ac_delim
15250 < pdfdir!$pdfdir$ac_delim
15251 < psdir!$psdir$ac_delim
15252 < libdir!$libdir$ac_delim
15253 < localedir!$localedir$ac_delim
15254 < mandir!$mandir$ac_delim
15255 < DEFS!$DEFS$ac_delim
15256 < ECHO_C!$ECHO_C$ac_delim
15257 < ECHO_N!$ECHO_N$ac_delim
15258 < ECHO_T!$ECHO_T$ac_delim
15259 < LIBS!$LIBS$ac_delim
15260 < build_alias!$build_alias$ac_delim
15261 < host_alias!$host_alias$ac_delim
15262 < target_alias!$target_alias$ac_delim
15263 < build!$build$ac_delim
15264 < build_cpu!$build_cpu$ac_delim
15265 < build_vendor!$build_vendor$ac_delim
15266 < build_os!$build_os$ac_delim
15267 < host!$host$ac_delim
15268 < host_cpu!$host_cpu$ac_delim
15269 < host_vendor!$host_vendor$ac_delim
15270 < host_os!$host_os$ac_delim
15271 < PROGNAME!$PROGNAME$ac_delim
15272 < debug!$debug$ac_delim
15273 < USE_SINGLE_PRECISION!$USE_SINGLE_PRECISION$ac_delim
15274 < CXX!$CXX$ac_delim
15275 < CXXFLAGS!$CXXFLAGS$ac_delim
15276 < LDFLAGS!$LDFLAGS$ac_delim
15277 < CPPFLAGS!$CPPFLAGS$ac_delim
15278 < ac_ct_CXX!$ac_ct_CXX$ac_delim
15279 < EXEEXT!$EXEEXT$ac_delim
15280 < OBJEXT!$OBJEXT$ac_delim
15281 < CC!$CC$ac_delim
15282 < CFLAGS!$CFLAGS$ac_delim
15283 < ac_ct_CC!$ac_ct_CC$ac_delim
15284 < FC!$FC$ac_delim
15285 < FCFLAGS!$FCFLAGS$ac_delim
15286 < ac_ct_FC!$ac_ct_FC$ac_delim
15287 < CPP!$CPP$ac_delim
15288 < GREP!$GREP$ac_delim
15289 < EGREP!$EGREP$ac_delim
15290 < LN_S!$LN_S$ac_delim
15291 < SET_MAKE!$SET_MAKE$ac_delim
15292 < RANLIB!$RANLIB$ac_delim
15293 < PERLINTERP!$PERLINTERP$ac_delim
15294 < PERL_SHEBANG!$PERL_SHEBANG$ac_delim
15295 < INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15296 < INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15297 < INSTALL_DATA!$INSTALL_DATA$ac_delim
15298 < AR!$AR$ac_delim
15299 < PS!$PS$ac_delim
15300 < FCFLAGS_F90!$FCFLAGS_F90$ac_delim
15301 < FCFLAGS_SRCEXT!$FCFLAGS_SRCEXT$ac_delim
15302 < PREPDEFFLAG!$PREPDEFFLAG$ac_delim
15303 < FCLIBS!$FCLIBS$ac_delim
15304 < FC_FUNC!$FC_FUNC$ac_delim
15305 < FC_FUNC_!$FC_FUNC_$ac_delim
15306 < MOD!$MOD$ac_delim
15307 < F90_WORK_FILES_ARG!$F90_WORK_FILES_ARG$ac_delim
15308 < MODDIRFLAG!$MODDIRFLAG$ac_delim
15309 < F90MODINCSPEC!$F90MODINCSPEC$ac_delim
15310 < F90_MODULE_NAMES!$F90_MODULE_NAMES$ac_delim
15311 < ZLIB_INC_DIR!$ZLIB_INC_DIR$ac_delim
15312 < ZLIB_LIB_DIR!$ZLIB_LIB_DIR$ac_delim
15313 < ZLIB!$ZLIB$ac_delim
15314 < FFTW_INC_DIR!$FFTW_INC_DIR$ac_delim
15315 < FFTW_LIB_DIR!$FFTW_LIB_DIR$ac_delim
15316 < FFTW_LIBS!$FFTW_LIBS$ac_delim
15317 < LIBOBJS!$LIBOBJS$ac_delim
15318 < POW_LIB!$POW_LIB$ac_delim
15319 < CXXCPP!$CXXCPP$ac_delim
15320 < __func__!$__func__$ac_delim
15321 < MPI_LIB_DIR!$MPI_LIB_DIR$ac_delim
15322 < MPI_INC_DIR!$MPI_INC_DIR$ac_delim
15323 < _ACEOF
7626 >  . ./conf$$subs.sh ||
7627 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7628  
7629 <  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7629 >  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7630 >  if test $ac_delim_n = $ac_delim_num; then
7631      break
7632    elif $ac_last_try; then
7633 <    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15329 < echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15330 <   { (exit 1); exit 1; }; }
7633 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7634    else
7635      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7636    fi
7637   done
7638 + rm -f conf$$subs.sh
7639  
7640 < ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7641 < if test -n "$ac_eof"; then
7642 <  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7643 <  ac_eof=`expr $ac_eof + 1`
7644 < fi
7640 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7641 > cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7642 > _ACEOF
7643 > sed -n '
7644 > h
7645 > s/^/S["/; s/!.*/"]=/
7646 > p
7647 > g
7648 > s/^[^!]*!//
7649 > :repl
7650 > t repl
7651 > s/'"$ac_delim"'$//
7652 > t delim
7653 > :nl
7654 > h
7655 > s/\(.\{148\}\)..*/\1/
7656 > t more1
7657 > s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7658 > p
7659 > n
7660 > b repl
7661 > :more1
7662 > s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7663 > p
7664 > g
7665 > s/.\{148\}//
7666 > t nl
7667 > :delim
7668 > h
7669 > s/\(.\{148\}\)..*/\1/
7670 > t more2
7671 > s/["\\]/\\&/g; s/^/"/; s/$/"/
7672 > p
7673 > b
7674 > :more2
7675 > s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7676 > p
7677 > g
7678 > s/.\{148\}//
7679 > t delim
7680 > ' <conf$$subs.awk | sed '
7681 > /^[^""]/{
7682 >  N
7683 >  s/\n//
7684 > }
7685 > ' >>$CONFIG_STATUS || ac_write_fail=1
7686 > rm -f conf$$subs.awk
7687 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7688 > _ACAWK
7689 > cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7690 >  for (key in S) S_is_set[key] = 1
7691 >  FS = ""
7692  
7693 < cat >>$CONFIG_STATUS <<_ACEOF
7694 < cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7695 < /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7693 > }
7694 > {
7695 >  line = $ 0
7696 >  nfields = split(line, field, "@")
7697 >  substed = 0
7698 >  len = length(field[1])
7699 >  for (i = 2; i < nfields; i++) {
7700 >    key = field[i]
7701 >    keylen = length(key)
7702 >    if (S_is_set[key]) {
7703 >      value = S[key]
7704 >      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7705 >      len += length(value) + length(field[++i])
7706 >      substed = 1
7707 >    } else
7708 >      len += 1 + keylen
7709 >  }
7710 >
7711 >  print line
7712 > }
7713 >
7714 > _ACAWK
7715   _ACEOF
7716 < sed '
7717 < s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7718 < s/^/s,@/; s/!/@,|#_!!_#|/
7719 < :n
7720 < t n
7721 < s/'"$ac_delim"'$/,g/; t
7722 < s/$/\\/; p
15353 < N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15354 < ' >>$CONFIG_STATUS <conf$$subs.sed
15355 < rm -f conf$$subs.sed
15356 < cat >>$CONFIG_STATUS <<_ACEOF
15357 < CEOF$ac_eof
7716 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7717 > if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7718 >  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7719 > else
7720 >  cat
7721 > fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7722 >  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7723   _ACEOF
7724  
7725 + # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7726 + # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7727 + # trailing colons and then remove the whole line if VPATH becomes empty
7728 + # (actually we leave an empty line to preserve line numbers).
7729 + if test "x$srcdir" = x.; then
7730 +  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
7731 + h
7732 + s///
7733 + s/^/:/
7734 + s/[      ]*$/:/
7735 + s/:\$(srcdir):/:/g
7736 + s/:\${srcdir}:/:/g
7737 + s/:@srcdir@:/:/g
7738 + s/^:*//
7739 + s/:*$//
7740 + x
7741 + s/\(=[   ]*\).*/\1/
7742 + G
7743 + s/\n//
7744 + s/^[^=]*=[       ]*$//
7745 + }'
7746 + fi
7747  
7748 < ac_delim='%!_!# '
7749 < for ac_last_try in false false false false false :; do
7750 <  cat >conf$$subs.sed <<_ACEOF
7751 < MPI_F90_INC!$MPI_F90_INC$ac_delim
7752 < MPI_LIB!$MPI_LIB$ac_delim
7753 < MPI_F90_LIB!$MPI_F90_LIB$ac_delim
7754 < USE_MPI!$USE_MPI$ac_delim
7755 < DOXYGEN!$DOXYGEN$ac_delim
7756 < DOT!$DOT$ac_delim
15370 < DOC!$DOC$ac_delim
15371 < enable_dot!$enable_dot$ac_delim
15372 < enable_html_docs!$enable_html_docs$ac_delim
15373 < enable_latex_docs!$enable_latex_docs$ac_delim
15374 < BATEXT!$BATEXT$ac_delim
15375 < MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
15376 < OOPSE!$OOPSE$ac_delim
15377 < OOPSE_HOME!$OOPSE_HOME$ac_delim
15378 < SUBDIRS!$SUBDIRS$ac_delim
15379 < LTLIBOBJS!$LTLIBOBJS$ac_delim
7748 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7749 > fi # test -n "$CONFIG_FILES"
7750 >
7751 > # Set up the scripts for CONFIG_HEADERS section.
7752 > # No need to generate them if there are no CONFIG_HEADERS.
7753 > # This happens for instance with `./config.status Makefile'.
7754 > if test -n "$CONFIG_HEADERS"; then
7755 > cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7756 > BEGIN {
7757   _ACEOF
7758  
7759 <  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
7759 > # Transform confdefs.h into an awk script `defines.awk', embedded as
7760 > # here-document in config.status, that substitutes the proper values into
7761 > # config.h.in to produce config.h.
7762 >
7763 > # Create a delimiter string that does not exist in confdefs.h, to ease
7764 > # handling of long lines.
7765 > ac_delim='%!_!# '
7766 > for ac_last_try in false false :; do
7767 >  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7768 >  if test -z "$ac_tt"; then
7769      break
7770    elif $ac_last_try; then
7771 <    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15386 < echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15387 <   { (exit 1); exit 1; }; }
7771 >    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7772    else
7773      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7774    fi
7775   done
7776  
7777 < ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7778 < if test -n "$ac_eof"; then
7779 <  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15396 <  ac_eof=`expr $ac_eof + 1`
15397 < fi
7777 > # For the awk script, D is an array of macro values keyed by name,
7778 > # likewise P contains macro parameters if any.  Preserve backslash
7779 > # newline sequences.
7780  
7781 < cat >>$CONFIG_STATUS <<_ACEOF
7782 < cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
7783 < /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7781 > ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7782 > sed -n '
7783 > s/.\{148\}/&'"$ac_delim"'/g
7784 > t rset
7785 > :rset
7786 > s/^[     ]*#[    ]*define[       ][      ]*/ /
7787 > t def
7788 > d
7789 > :def
7790 > s/\\$//
7791 > t bsnl
7792 > s/["\\]/\\&/g
7793 > s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7794 > D["\1"]=" \3"/p
7795 > s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
7796 > d
7797 > :bsnl
7798 > s/["\\]/\\&/g
7799 > s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7800 > D["\1"]=" \3\\\\\\n"\\/p
7801 > t cont
7802 > s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7803 > t cont
7804 > d
7805 > :cont
7806 > n
7807 > s/.\{148\}/&'"$ac_delim"'/g
7808 > t clear
7809 > :clear
7810 > s/\\$//
7811 > t bsnlc
7812 > s/["\\]/\\&/g; s/^/"/; s/$/"/p
7813 > d
7814 > :bsnlc
7815 > s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7816 > b cont
7817 > ' <confdefs.h | sed '
7818 > s/'"$ac_delim"'/"\\\
7819 > "/g' >>$CONFIG_STATUS || ac_write_fail=1
7820 >
7821 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7822 >  for (key in D) D_is_set[key] = 1
7823 >  FS = ""
7824 > }
7825 > /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7826 >  line = \$ 0
7827 >  split(line, arg, " ")
7828 >  if (arg[1] == "#") {
7829 >    defundef = arg[2]
7830 >    mac1 = arg[3]
7831 >  } else {
7832 >    defundef = substr(arg[1], 2)
7833 >    mac1 = arg[2]
7834 >  }
7835 >  split(mac1, mac2, "(") #)
7836 >  macro = mac2[1]
7837 >  prefix = substr(line, 1, index(line, defundef) - 1)
7838 >  if (D_is_set[macro]) {
7839 >    # Preserve the white space surrounding the "#".
7840 >    print prefix "define", macro P[macro] D[macro]
7841 >    next
7842 >  } else {
7843 >    # Replace #undef with comments.  This is necessary, for example,
7844 >    # in the case of _POSIX_SOURCE, which is predefined and required
7845 >    # on some systems where configure will not decide to define it.
7846 >    if (defundef == "undef") {
7847 >      print "/*", prefix defundef, macro, "*/"
7848 >      next
7849 >    }
7850 >  }
7851 > }
7852 > { print }
7853 > _ACAWK
7854   _ACEOF
7855 < sed '
7856 < s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7857 < s/^/s,@/; s/!/@,|#_!!_#|/
15406 < :n
15407 < t n
15408 < s/'"$ac_delim"'$/,g/; t
15409 < s/$/\\/; p
15410 < N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15411 < ' >>$CONFIG_STATUS <conf$$subs.sed
15412 < rm -f conf$$subs.sed
15413 < cat >>$CONFIG_STATUS <<_ACEOF
15414 < :end
15415 < s/|#_!!_#|//g
15416 < CEOF$ac_eof
15417 < _ACEOF
7855 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7856 >  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7857 > fi # test -n "$CONFIG_HEADERS"
7858  
7859  
7860 < # VPATH may cause trouble with some makes, so we remove $(srcdir),
7861 < # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7862 < # trailing colons and then remove the whole line if VPATH becomes empty
15423 < # (actually we leave an empty line to preserve line numbers).
15424 < if test "x$srcdir" = x.; then
15425 <  ac_vpsub='/^[  ]*VPATH[        ]*=/{
15426 < s/:*\$(srcdir):*/:/
15427 < s/:*\${srcdir}:*/:/
15428 < s/:*@srcdir@:*/:/
15429 < s/^\([^=]*=[     ]*\):*/\1/
15430 < s/:*$//
15431 < s/^[^=]*=[       ]*$//
15432 < }'
15433 < fi
15434 <
15435 < cat >>$CONFIG_STATUS <<\_ACEOF
15436 < fi # test -n "$CONFIG_FILES"
15437 <
15438 <
15439 < for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS
7860 > eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
7861 > shift
7862 > for ac_tag
7863   do
7864    case $ac_tag in
7865    :[FHLC]) ac_mode=$ac_tag; continue;;
7866    esac
7867    case $ac_mode$ac_tag in
7868    :[FHL]*:*);;
7869 <  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15447 < echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15448 <   { (exit 1); exit 1; }; };;
7869 >  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7870    :[FH]-) ac_tag=-:-;;
7871    :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7872    esac
# Line 15464 | Line 7885 | echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7885      for ac_f
7886      do
7887        case $ac_f in
7888 <      -) ac_f="$tmp/stdin";;
7888 >      -) ac_f="$ac_tmp/stdin";;
7889        *) # Look for the file first in the build tree, then in the source tree
7890           # (if the path is not absolute).  The absolute path cannot be DOS-style,
7891           # because $ac_f cannot contain `:'.
# Line 15473 | Line 7894 | echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7894             [\\/$]*) false;;
7895             *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7896             esac ||
7897 <           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15477 < echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15478 <   { (exit 1); exit 1; }; };;
7897 >           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7898        esac
7899 <      ac_file_inputs="$ac_file_inputs $ac_f"
7899 >      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7900 >      as_fn_append ac_file_inputs " '$ac_f'"
7901      done
7902  
7903      # Let's still pretend it is `configure' which instantiates (i.e., don't
7904      # use $as_me), people would be surprised to read:
7905      #    /* config.h.  Generated by config.status.  */
7906 <    configure_input="Generated from "`IFS=:
7907 <          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7906 >    configure_input='Generated from '`
7907 >          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7908 >        `' by configure.'
7909      if test x"$ac_file" != x-; then
7910        configure_input="$ac_file.  $configure_input"
7911 <      { echo "$as_me:$LINENO: creating $ac_file" >&5
7912 < echo "$as_me: creating $ac_file" >&6;}
7911 >      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7912 > $as_echo "$as_me: creating $ac_file" >&6;}
7913      fi
7914 +    # Neutralize special characters interpreted by sed in replacement strings.
7915 +    case $configure_input in #(
7916 +    *\&* | *\|* | *\\* )
7917 +       ac_sed_conf_input=`$as_echo "$configure_input" |
7918 +       sed 's/[\\\\&|]/\\\\&/g'`;; #(
7919 +    *) ac_sed_conf_input=$configure_input;;
7920 +    esac
7921  
7922      case $ac_tag in
7923 <    *:-:* | *:-) cat >"$tmp/stdin";;
7923 >    *:-:* | *:-) cat >"$ac_tmp/stdin" \
7924 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7925      esac
7926      ;;
7927    esac
# Line 15502 | Line 7931 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
7931           X"$ac_file" : 'X\(//\)[^/]' \| \
7932           X"$ac_file" : 'X\(//\)$' \| \
7933           X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7934 < echo X"$ac_file" |
15506 <    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15507 <            s//\1/
15508 <            q
15509 <          }
15510 <          /^X\(\/\/\)[^/].*/{
15511 <            s//\1/
15512 <            q
15513 <          }
15514 <          /^X\(\/\/\)$/{
15515 <            s//\1/
15516 <            q
15517 <          }
15518 <          /^X\(\/\).*/{
15519 <            s//\1/
15520 <            q
15521 <          }
15522 <          s/.*/./; q'`
15523 <  { as_dir="$ac_dir"
15524 <  case $as_dir in #(
15525 <  -*) as_dir=./$as_dir;;
15526 <  esac
15527 <  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15528 <    as_dirs=
15529 <    while :; do
15530 <      case $as_dir in #(
15531 <      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15532 <      *) as_qdir=$as_dir;;
15533 <      esac
15534 <      as_dirs="'$as_qdir' $as_dirs"
15535 <      as_dir=`$as_dirname -- "$as_dir" ||
15536 < $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15537 <         X"$as_dir" : 'X\(//\)[^/]' \| \
15538 <         X"$as_dir" : 'X\(//\)$' \| \
15539 <         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15540 < echo X"$as_dir" |
7934 > $as_echo X"$ac_file" |
7935      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7936              s//\1/
7937              q
# Line 15555 | Line 7949 | echo X"$as_dir" |
7949              q
7950            }
7951            s/.*/./; q'`
7952 <      test -d "$as_dir" && break
15559 <    done
15560 <    test -z "$as_dirs" || eval "mkdir $as_dirs"
15561 <  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15562 < echo "$as_me: error: cannot create directory $as_dir" >&2;}
15563 <   { (exit 1); exit 1; }; }; }
7952 >  as_dir="$ac_dir"; as_fn_mkdir_p
7953    ac_builddir=.
7954  
7955   case "$ac_dir" in
7956   .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7957   *)
7958 <  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7958 >  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7959    # A ".." for each directory in $ac_dir_suffix.
7960 <  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7960 >  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7961    case $ac_top_builddir_sub in
7962    "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7963    *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
# Line 15608 | Line 7997 | _ACEOF
7997    esac
7998   _ACEOF
7999  
8000 < cat >>$CONFIG_STATUS <<\_ACEOF
8000 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8001   # If the template does not know about datarootdir, expand it.
8002   # FIXME: This hack should be removed a few years after 2.60.
8003   ac_datarootdir_hack=; ac_datarootdir_seen=
8004 <
8005 < case `sed -n '/datarootdir/ {
8004 > ac_sed_dataroot='
8005 > /datarootdir/ {
8006    p
8007    q
8008   }
# Line 15621 | Line 8010 | case `sed -n '/datarootdir/ {
8010   /@docdir@/p
8011   /@infodir@/p
8012   /@localedir@/p
8013 < /@mandir@/p
8014 < ' $ac_file_inputs` in
8013 > /@mandir@/p'
8014 > case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8015   *datarootdir*) ac_datarootdir_seen=yes;;
8016   *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8017 <  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8018 < echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8017 >  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8018 > $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8019   _ACEOF
8020 < cat >>$CONFIG_STATUS <<_ACEOF
8020 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8021    ac_datarootdir_hack='
8022    s&@datadir@&$datadir&g
8023    s&@docdir@&$docdir&g
8024    s&@infodir@&$infodir&g
8025    s&@localedir@&$localedir&g
8026    s&@mandir@&$mandir&g
8027 <    s&\\\${datarootdir}&$datarootdir&g' ;;
8027 >  s&\\\${datarootdir}&$datarootdir&g' ;;
8028   esac
8029   _ACEOF
8030  
8031   # Neutralize VPATH when `$srcdir' = `.'.
8032   # Shell code in configure.ac might set extrasub.
8033   # FIXME: do we really want to maintain this feature?
8034 < cat >>$CONFIG_STATUS <<_ACEOF
8035 <  sed "$ac_vpsub
8034 > cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8035 > ac_sed_extra="$ac_vpsub
8036   $extrasub
8037   _ACEOF
8038 < cat >>$CONFIG_STATUS <<\_ACEOF
8038 > cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8039   :t
8040   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8041 < s&@configure_input@&$configure_input&;t t
8041 > s|@configure_input@|$ac_sed_conf_input|;t t
8042   s&@top_builddir@&$ac_top_builddir_sub&;t t
8043 + s&@top_build_prefix@&$ac_top_build_prefix&;t t
8044   s&@srcdir@&$ac_srcdir&;t t
8045   s&@abs_srcdir@&$ac_abs_srcdir&;t t
8046   s&@top_srcdir@&$ac_top_srcdir&;t t
# Line 15660 | Line 8050 | $ac_datarootdir_hack
8050   s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8051   s&@INSTALL@&$ac_INSTALL&;t t
8052   $ac_datarootdir_hack
8053 < " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
8053 > "
8054 > eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8055 >  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8056  
8057   test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8058 <  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8059 <  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8060 <  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8061 < which seems to be undefined.  Please make sure it is defined." >&5
8062 < echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8063 < which seems to be undefined.  Please make sure it is defined." >&2;}
8058 >  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8059 >  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
8060 >      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8061 >  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8062 > which seems to be undefined.  Please make sure it is defined" >&5
8063 > $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8064 > which seems to be undefined.  Please make sure it is defined" >&2;}
8065  
8066 <  rm -f "$tmp/stdin"
8066 >  rm -f "$ac_tmp/stdin"
8067    case $ac_file in
8068 <  -) cat "$tmp/out"; rm -f "$tmp/out";;
8069 <  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8070 <  esac
8068 >  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8069 >  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8070 >  esac \
8071 >  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8072   ;;
8073    :H)
8074    #
8075    # CONFIG_HEADER
8076    #
8077 < _ACEOF
8078 <
8079 < # Transform confdefs.h into a sed script `conftest.defines', that
8080 < # substitutes the proper values into config.h.in to produce config.h.
8081 < rm -f conftest.defines conftest.tail
8082 < # First, append a space to every undef/define line, to ease matching.
8083 < echo 's/$/ /' >conftest.defines
8084 < # Then, protect against being on the right side of a sed subst, or in
8085 < # an unquoted here document, in config.status.  If some macros were
15692 < # called several times there might be several #defines for the same
15693 < # symbol, which is useless.  But do not sort them, since the last
15694 < # AC_DEFINE must be honored.
15695 < ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15696 < # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15697 < # NAME is the cpp macro being defined, VALUE is the value it is being given.
15698 < # PARAMS is the parameter list in the macro definition--in most cases, it's
15699 < # just an empty string.
15700 < ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
15701 < ac_dB='\\)[      (].*,\\1define\\2'
15702 < ac_dC=' '
15703 < ac_dD=' ,'
15704 <
15705 < uniq confdefs.h |
15706 <  sed -n '
15707 <        t rset
15708 <        :rset
15709 <        s/^[     ]*#[    ]*define[       ][      ]*//
15710 <        t ok
15711 <        d
15712 <        :ok
15713 <        s/[\\&,]/\\&/g
15714 <        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15715 <        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15716 <  ' >>conftest.defines
15717 <
15718 < # Remove the space that was appended to ease matching.
15719 < # Then replace #undef with comments.  This is necessary, for
15720 < # example, in the case of _POSIX_SOURCE, which is predefined and required
15721 < # on some systems where configure will not decide to define it.
15722 < # (The regexp can be short, since the line contains either #define or #undef.)
15723 < echo 's/ $//
15724 < s,^[     #]*u.*,/* & */,' >>conftest.defines
15725 <
15726 < # Break up conftest.defines:
15727 < ac_max_sed_lines=50
15728 <
15729 < # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15730 < # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15731 < # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15732 < # et cetera.
15733 < ac_in='$ac_file_inputs'
15734 < ac_out='"$tmp/out1"'
15735 < ac_nxt='"$tmp/out2"'
15736 <
15737 < while :
15738 < do
15739 <  # Write a here document:
15740 <    cat >>$CONFIG_STATUS <<_ACEOF
15741 <    # First, check the format of the line:
15742 <    cat >"\$tmp/defines.sed" <<\\CEOF
15743 < /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
15744 < /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
15745 < b
15746 < :def
15747 < _ACEOF
15748 <  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15749 <  echo 'CEOF
15750 <    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15751 <  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15752 <  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15753 <  grep . conftest.tail >/dev/null || break
15754 <  rm -f conftest.defines
15755 <  mv conftest.tail conftest.defines
15756 < done
15757 < rm -f conftest.defines conftest.tail
15758 <
15759 < echo "ac_result=$ac_in" >>$CONFIG_STATUS
15760 < cat >>$CONFIG_STATUS <<\_ACEOF
15761 <  if test x"$ac_file" != x-; then
15762 <    echo "/* $configure_input  */" >"$tmp/config.h"
15763 <    cat "$ac_result" >>"$tmp/config.h"
15764 <    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15765 <      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15766 < echo "$as_me: $ac_file is unchanged" >&6;}
8077 >  if test x"$ac_file" != x-; then
8078 >    {
8079 >      $as_echo "/* $configure_input  */" \
8080 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8081 >    } >"$ac_tmp/config.h" \
8082 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8083 >    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8084 >      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8085 > $as_echo "$as_me: $ac_file is unchanged" >&6;}
8086      else
8087 <      rm -f $ac_file
8088 <      mv "$tmp/config.h" $ac_file
8087 >      rm -f "$ac_file"
8088 >      mv "$ac_tmp/config.h" "$ac_file" \
8089 >        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8090      fi
8091    else
8092 <    echo "/* $configure_input  */"
8093 <    cat "$ac_result"
8092 >    $as_echo "/* $configure_input  */" \
8093 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8094 >      || as_fn_error $? "could not create -" "$LINENO" 5
8095    fi
15775  rm -f "$tmp/out12"
8096   ;;
15777  :L)
15778  #
15779  # CONFIG_LINK
15780  #
8097  
15782  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
15783 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
8098  
15785  if test ! -r "$srcdir/$ac_source"; then
15786    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
15787 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
15788   { (exit 1); exit 1; }; }
15789  fi
15790  rm -f "$ac_file"
15791
15792  # Try a relative symlink, then a hard link, then a copy.
15793  case $srcdir in
15794  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
15795      *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
8099    esac
15797  ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15798    ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
15799    cp -p "$srcdir/$ac_source" "$ac_file" ||
15800    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
15801 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
15802   { (exit 1); exit 1; }; }
15803 ;;
8100  
15805  esac
8101  
15807
8102    case $ac_file$ac_mode in
8103      "make/Makefile":F) chmod 0755 scripts/* ;;
8104      "src/utils/Makefile":F) chmod 0755 scripts/* ;;
8105 +    "src/math/Makefile":F) chmod 0755 scripts/* ;;
8106 +    "src/integrators/Makefile":F) chmod 0755 scripts/* ;;
8107 +    "src/applications/atom2md/Makefile":F) chmod 0755 scripts/* ;;
8108      "scripts/filepp":F) chmod 0755 scripts/* ;;
8109  
8110    esac
8111   done # for ac_tag
8112  
8113  
8114 < { (exit 0); exit 0; }
8114 > as_fn_exit 0
8115   _ACEOF
15819 chmod +x $CONFIG_STATUS
8116   ac_clean_files=$ac_clean_files_save
8117  
8118 + test $ac_write_fail = 0 ||
8119 +  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8120  
8121 +
8122   # configure is writing to config.log, and then calls config.status.
8123   # config.status does its own redirection, appending to config.log.
8124   # Unfortunately, on DOS this fails, as config.log is still kept open
# Line 15838 | Line 8137 | if test "$no_create" != yes; then
8137    exec 5>>config.log
8138    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8139    # would make configure fail if this is the last instruction.
8140 <  $ac_cs_success || { (exit 1); exit 1; }
8140 >  $ac_cs_success || as_fn_exit 1
8141   fi
8142 + if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8143 +  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8144 + $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8145 + fi
8146  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines