ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/configure
Revision: 840
Committed: Wed Oct 29 14:29:12 2003 UTC (20 years, 8 months ago) by gezelter
File size: 237944 byte(s)
Log Message:
C++ compatibility for templates

File Contents

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

Properties

Name Value
svn:executable *