ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/configure
Revision: 2265
Committed: Wed Jul 20 17:04:42 2005 UTC (18 years, 11 months ago) by gezelter
File size: 295753 byte(s)
Log Message:
fixed ACX_MPI to ignore some text error messages from pathscale compiler

File Contents

# User Rev Content
1 gezelter 1490 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 gezelter 2081 # Generated by GNU Autoconf 2.59 for OOPSE 2.0.
4 gezelter 1490 #
5     # Report bugs to <gezelter@nd.edu>.
6     #
7 gezelter 2081 # Copyright (C) 2003 Free Software Foundation, Inc.
8 gezelter 1490 # This configure script is free software; the Free Software Foundation
9     # gives unlimited permission to copy, distribute and modify it.
10 gezelter 2081 ## --------------------- ##
11     ## M4sh Initialization. ##
12     ## --------------------- ##
13 gezelter 1490
14     # Be Bourne compatible
15     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16     emulate sh
17     NULLCMD=:
18 gezelter 2081 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19     # is contrary to our usage. Disable this feature.
20     alias -g '${1+"$@"}'='"$@"'
21 gezelter 1490 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22     set -o posix
23     fi
24 gezelter 2081 DUALCASE=1; export DUALCASE # for MKS sh
25 gezelter 1490
26 gezelter 2081 # Support unset when possible.
27     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28     as_unset=unset
29     else
30     as_unset=false
31     fi
32    
33    
34     # Work around bugs in pre-3.0 UWIN ksh.
35     $as_unset ENV MAIL MAILPATH
36     PS1='$ '
37     PS2='> '
38     PS4='+ '
39    
40     # NLS nuisances.
41     for as_var in \
42     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44     LC_TELEPHONE LC_TIME
45     do
46     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48     else
49     $as_unset $as_var
50     fi
51     done
52    
53     # Required to use basename.
54     if expr a : '\(a\)' >/dev/null 2>&1; then
55     as_expr=expr
56     else
57     as_expr=false
58     fi
59    
60     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61     as_basename=basename
62     else
63     as_basename=false
64     fi
65    
66    
67 gezelter 1490 # Name of the executable.
68 gezelter 2081 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 gezelter 1490
79 gezelter 2081
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 gezelter 1490 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 gezelter 2081 if mkdir -p . 2>/dev/null; then
221     as_mkdir_p=:
222 gezelter 1490 else
223 gezelter 2081 test -d ./-p && rmdir ./-p
224     as_mkdir_p=false
225 gezelter 1490 fi
226    
227 gezelter 2081 as_executable_p="test -f"
228 gezelter 1490
229 gezelter 2081 # Sed expression to map a string onto a valid CPP name.
230     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231    
232     # Sed expression to map a string onto a valid variable name.
233     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234    
235    
236 gezelter 1490 # IFS
237     # We need space, tab and new line, in precisely that order.
238     as_nl='
239     '
240     IFS=" $as_nl"
241    
242     # CDPATH.
243 gezelter 2081 $as_unset CDPATH
244 gezelter 1490
245 gezelter 2081
246 gezelter 1490 # Name of the host.
247     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248     # so uname gets run too.
249     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250    
251     exec 6>&1
252    
253     #
254     # Initializations.
255     #
256     ac_default_prefix=/usr/local
257 gezelter 2081 ac_config_libobj_dir=.
258 gezelter 1490 cross_compiling=no
259     subdirs=
260 gezelter 2081 MFLAGS=
261     MAKEFLAGS=
262 gezelter 1490 SHELL=${CONFIG_SHELL-/bin/sh}
263    
264     # Maximum number of lines to put in a shell here document.
265     # This variable seems obsolete. It should probably be removed, and
266     # only ac_max_sed_lines should be used.
267     : ${ac_max_here_lines=38}
268    
269 gezelter 2081 # Identity of this package.
270     PACKAGE_NAME='OOPSE'
271     PACKAGE_TARNAME='oopse'
272     PACKAGE_VERSION='2.0'
273     PACKAGE_STRING='OOPSE 2.0'
274     PACKAGE_BUGREPORT='gezelter@nd.edu'
275 gezelter 1490
276 gezelter 1509 ac_unique_file="src/applications/oopse/oopse.cpp"
277 gezelter 1490 ac_default_prefix="/usr/local"
278 gezelter 2081 # Factoring default headers for most tests.
279     ac_includes_default="\
280     #include <stdio.h>
281     #if HAVE_SYS_TYPES_H
282     # include <sys/types.h>
283     #endif
284     #if HAVE_SYS_STAT_H
285     # include <sys/stat.h>
286     #endif
287     #if STDC_HEADERS
288     # include <stdlib.h>
289     # include <stddef.h>
290     #else
291     # if HAVE_STDLIB_H
292     # include <stdlib.h>
293     # endif
294     #endif
295     #if HAVE_STRING_H
296     # if !STDC_HEADERS && HAVE_MEMORY_H
297     # include <memory.h>
298     # endif
299     # include <string.h>
300     #endif
301     #if HAVE_STRINGS_H
302     # include <strings.h>
303     #endif
304     #if HAVE_INTTYPES_H
305     # include <inttypes.h>
306     #else
307     # if HAVE_STDINT_H
308     # include <stdint.h>
309     # endif
310     #endif
311     #if HAVE_UNISTD_H
312     # include <unistd.h>
313     #endif"
314 gezelter 1490
315 gezelter 2199 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 F90_MODULE_NAMES CPP EGREP LIBOBJS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT PERLINTERP PERL_SHEBANG AR PS MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI CXXCPP USE_CGAL CGAL_INC_DIR CGAL_LIB_DIR CGAL_RLIB_DIR CGAL_DEFINES CGAL_CXXFLAGS CGAL_LIBS DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LTLIBOBJS'
316 gezelter 2081 ac_subst_files=''
317    
318 gezelter 1490 # Initialize some variables set by options.
319     ac_init_help=
320     ac_init_version=false
321     # The variables have the same names as the options, with
322     # dashes changed to underlines.
323     cache_file=/dev/null
324     exec_prefix=NONE
325     no_create=
326     no_recursion=
327     prefix=NONE
328     program_prefix=NONE
329     program_suffix=NONE
330     program_transform_name=s,x,x,
331     silent=
332     site=
333     srcdir=
334     verbose=
335     x_includes=NONE
336     x_libraries=NONE
337    
338     # Installation directory options.
339     # These are left unexpanded so users can "make install exec_prefix=/foo"
340     # and all the variables that are supposed to be based on exec_prefix
341     # by default will actually change.
342     # Use braces instead of parens because sh, perl, etc. also accept them.
343     bindir='${exec_prefix}/bin'
344     sbindir='${exec_prefix}/sbin'
345     libexecdir='${exec_prefix}/libexec'
346     datadir='${prefix}/share'
347     sysconfdir='${prefix}/etc'
348     sharedstatedir='${prefix}/com'
349     localstatedir='${prefix}/var'
350     libdir='${exec_prefix}/lib'
351     includedir='${prefix}/include'
352     oldincludedir='/usr/include'
353     infodir='${prefix}/info'
354     mandir='${prefix}/man'
355    
356     ac_prev=
357     for ac_option
358     do
359     # If the previous option needs an argument, assign it.
360     if test -n "$ac_prev"; then
361     eval "$ac_prev=\$ac_option"
362     ac_prev=
363     continue
364     fi
365    
366     ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367    
368     # Accept the important Cygnus configure options, so we can diagnose typos.
369    
370     case $ac_option in
371    
372     -bindir | --bindir | --bindi | --bind | --bin | --bi)
373     ac_prev=bindir ;;
374     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375     bindir=$ac_optarg ;;
376    
377     -build | --build | --buil | --bui | --bu)
378     ac_prev=build_alias ;;
379     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380     build_alias=$ac_optarg ;;
381    
382     -cache-file | --cache-file | --cache-fil | --cache-fi \
383     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384     ac_prev=cache_file ;;
385     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387     cache_file=$ac_optarg ;;
388    
389     --config-cache | -C)
390     cache_file=config.cache ;;
391    
392     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393     ac_prev=datadir ;;
394     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395     | --da=*)
396     datadir=$ac_optarg ;;
397    
398     -disable-* | --disable-*)
399     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400     # Reject names that are not valid shell variable names.
401 gezelter 2081 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 gezelter 1490 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403     { (exit 1); exit 1; }; }
404     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405     eval "enable_$ac_feature=no" ;;
406    
407     -enable-* | --enable-*)
408     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409     # Reject names that are not valid shell variable names.
410 gezelter 2081 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 gezelter 1490 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412     { (exit 1); exit 1; }; }
413     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414     case $ac_option in
415     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416     *) ac_optarg=yes ;;
417     esac
418     eval "enable_$ac_feature='$ac_optarg'" ;;
419    
420     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422     | --exec | --exe | --ex)
423     ac_prev=exec_prefix ;;
424     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426     | --exec=* | --exe=* | --ex=*)
427     exec_prefix=$ac_optarg ;;
428    
429     -gas | --gas | --ga | --g)
430     # Obsolete; use --with-gas.
431     with_gas=yes ;;
432    
433     -help | --help | --hel | --he | -h)
434     ac_init_help=long ;;
435     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436     ac_init_help=recursive ;;
437     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438     ac_init_help=short ;;
439    
440     -host | --host | --hos | --ho)
441     ac_prev=host_alias ;;
442     -host=* | --host=* | --hos=* | --ho=*)
443     host_alias=$ac_optarg ;;
444    
445     -includedir | --includedir | --includedi | --included | --include \
446     | --includ | --inclu | --incl | --inc)
447     ac_prev=includedir ;;
448     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449     | --includ=* | --inclu=* | --incl=* | --inc=*)
450     includedir=$ac_optarg ;;
451    
452     -infodir | --infodir | --infodi | --infod | --info | --inf)
453     ac_prev=infodir ;;
454     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455     infodir=$ac_optarg ;;
456    
457     -libdir | --libdir | --libdi | --libd)
458     ac_prev=libdir ;;
459     -libdir=* | --libdir=* | --libdi=* | --libd=*)
460     libdir=$ac_optarg ;;
461    
462     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463     | --libexe | --libex | --libe)
464     ac_prev=libexecdir ;;
465     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466     | --libexe=* | --libex=* | --libe=*)
467     libexecdir=$ac_optarg ;;
468    
469     -localstatedir | --localstatedir | --localstatedi | --localstated \
470     | --localstate | --localstat | --localsta | --localst \
471     | --locals | --local | --loca | --loc | --lo)
472     ac_prev=localstatedir ;;
473     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476     localstatedir=$ac_optarg ;;
477    
478     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479     ac_prev=mandir ;;
480     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481     mandir=$ac_optarg ;;
482    
483     -nfp | --nfp | --nf)
484     # Obsolete; use --without-fp.
485     with_fp=no ;;
486    
487     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 gezelter 2081 | --no-cr | --no-c | -n)
489 gezelter 1490 no_create=yes ;;
490    
491     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493     no_recursion=yes ;;
494    
495     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497     | --oldin | --oldi | --old | --ol | --o)
498     ac_prev=oldincludedir ;;
499     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502     oldincludedir=$ac_optarg ;;
503    
504     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505     ac_prev=prefix ;;
506     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507     prefix=$ac_optarg ;;
508    
509     -program-prefix | --program-prefix | --program-prefi | --program-pref \
510     | --program-pre | --program-pr | --program-p)
511     ac_prev=program_prefix ;;
512     -program-prefix=* | --program-prefix=* | --program-prefi=* \
513     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514     program_prefix=$ac_optarg ;;
515    
516     -program-suffix | --program-suffix | --program-suffi | --program-suff \
517     | --program-suf | --program-su | --program-s)
518     ac_prev=program_suffix ;;
519     -program-suffix=* | --program-suffix=* | --program-suffi=* \
520     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521     program_suffix=$ac_optarg ;;
522    
523     -program-transform-name | --program-transform-name \
524     | --program-transform-nam | --program-transform-na \
525     | --program-transform-n | --program-transform- \
526     | --program-transform | --program-transfor \
527     | --program-transfo | --program-transf \
528     | --program-trans | --program-tran \
529     | --progr-tra | --program-tr | --program-t)
530     ac_prev=program_transform_name ;;
531     -program-transform-name=* | --program-transform-name=* \
532     | --program-transform-nam=* | --program-transform-na=* \
533     | --program-transform-n=* | --program-transform-=* \
534     | --program-transform=* | --program-transfor=* \
535     | --program-transfo=* | --program-transf=* \
536     | --program-trans=* | --program-tran=* \
537     | --progr-tra=* | --program-tr=* | --program-t=*)
538     program_transform_name=$ac_optarg ;;
539    
540     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541     | -silent | --silent | --silen | --sile | --sil)
542     silent=yes ;;
543    
544     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545     ac_prev=sbindir ;;
546     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547     | --sbi=* | --sb=*)
548     sbindir=$ac_optarg ;;
549    
550     -sharedstatedir | --sharedstatedir | --sharedstatedi \
551     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552     | --sharedst | --shareds | --shared | --share | --shar \
553     | --sha | --sh)
554     ac_prev=sharedstatedir ;;
555     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558     | --sha=* | --sh=*)
559     sharedstatedir=$ac_optarg ;;
560    
561     -site | --site | --sit)
562     ac_prev=site ;;
563     -site=* | --site=* | --sit=*)
564     site=$ac_optarg ;;
565    
566     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567     ac_prev=srcdir ;;
568     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569     srcdir=$ac_optarg ;;
570    
571     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572     | --syscon | --sysco | --sysc | --sys | --sy)
573     ac_prev=sysconfdir ;;
574     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576     sysconfdir=$ac_optarg ;;
577    
578     -target | --target | --targe | --targ | --tar | --ta | --t)
579     ac_prev=target_alias ;;
580     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581     target_alias=$ac_optarg ;;
582    
583     -v | -verbose | --verbose | --verbos | --verbo | --verb)
584     verbose=yes ;;
585    
586     -version | --version | --versio | --versi | --vers | -V)
587     ac_init_version=: ;;
588    
589     -with-* | --with-*)
590     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591     # Reject names that are not valid shell variable names.
592 gezelter 2081 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 gezelter 1490 { echo "$as_me: error: invalid package name: $ac_package" >&2
594     { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package| sed 's/-/_/g'`
596     case $ac_option in
597     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598     *) ac_optarg=yes ;;
599     esac
600     eval "with_$ac_package='$ac_optarg'" ;;
601    
602     -without-* | --without-*)
603     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604     # Reject names that are not valid shell variable names.
605 gezelter 2081 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 gezelter 1490 { echo "$as_me: error: invalid package name: $ac_package" >&2
607     { (exit 1); exit 1; }; }
608     ac_package=`echo $ac_package | sed 's/-/_/g'`
609     eval "with_$ac_package=no" ;;
610    
611     --x)
612     # Obsolete; use --with-x.
613     with_x=yes ;;
614    
615     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616     | --x-incl | --x-inc | --x-in | --x-i)
617     ac_prev=x_includes ;;
618     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620     x_includes=$ac_optarg ;;
621    
622     -x-libraries | --x-libraries | --x-librarie | --x-librari \
623     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624     ac_prev=x_libraries ;;
625     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627     x_libraries=$ac_optarg ;;
628    
629     -*) { echo "$as_me: error: unrecognized option: $ac_option
630     Try \`$0 --help' for more information." >&2
631     { (exit 1); exit 1; }; }
632     ;;
633    
634     *=*)
635     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636     # Reject names that are not valid shell variable names.
637 gezelter 2081 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 gezelter 1490 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639     { (exit 1); exit 1; }; }
640     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641     eval "$ac_envvar='$ac_optarg'"
642     export $ac_envvar ;;
643    
644     *)
645     # FIXME: should be removed in autoconf 3.0.
646     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 gezelter 2081 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 gezelter 1490 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650     ;;
651    
652     esac
653     done
654    
655     if test -n "$ac_prev"; then
656     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657     { echo "$as_me: error: missing argument to $ac_option" >&2
658     { (exit 1); exit 1; }; }
659     fi
660    
661     # Be sure to have absolute paths.
662 gezelter 2081 for ac_var in exec_prefix prefix
663     do
664     eval ac_val=$`echo $ac_var`
665     case $ac_val in
666     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668     { (exit 1); exit 1; }; };;
669     esac
670     done
671    
672     # Be sure to have absolute paths.
673 gezelter 1490 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 gezelter 2081 localstatedir libdir includedir oldincludedir infodir mandir
675 gezelter 1490 do
676     eval ac_val=$`echo $ac_var`
677     case $ac_val in
678     [\\/$]* | ?:[\\/]* ) ;;
679 gezelter 2081 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 gezelter 1490 { (exit 1); exit 1; }; };;
681     esac
682     done
683    
684     # There might be people who depend on the old broken behavior: `$host'
685     # used to hold the argument of --host etc.
686 gezelter 2081 # FIXME: To remove some day.
687 gezelter 1490 build=$build_alias
688     host=$host_alias
689     target=$target_alias
690    
691 gezelter 2081 # FIXME: To remove some day.
692 gezelter 1490 if test "x$host_alias" != x; then
693     if test "x$build_alias" = x; then
694     cross_compiling=maybe
695     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696     If a cross compiler is detected then cross compile mode will be used." >&2
697     elif test "x$build_alias" != "x$host_alias"; then
698     cross_compiling=yes
699     fi
700     fi
701    
702     ac_tool_prefix=
703     test -n "$host_alias" && ac_tool_prefix=$host_alias-
704    
705     test "$silent" = yes && exec 6>/dev/null
706    
707 gezelter 2081
708 gezelter 1490 # Find the source files, if location was not specified.
709     if test -z "$srcdir"; then
710     ac_srcdir_defaulted=yes
711     # Try the directory containing this script, then its parent.
712 gezelter 2081 ac_confdir=`(dirname "$0") 2>/dev/null ||
713     $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714     X"$0" : 'X\(//\)[^/]' \| \
715     X"$0" : 'X\(//\)$' \| \
716     X"$0" : 'X\(/\)' \| \
717     . : '\(.\)' 2>/dev/null ||
718     echo X"$0" |
719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721     /^X\(\/\/\)$/{ s//\1/; q; }
722     /^X\(\/\).*/{ s//\1/; q; }
723     s/.*/./; q'`
724 gezelter 1490 srcdir=$ac_confdir
725     if test ! -r $srcdir/$ac_unique_file; then
726     srcdir=..
727     fi
728     else
729     ac_srcdir_defaulted=no
730     fi
731     if test ! -r $srcdir/$ac_unique_file; then
732     if test "$ac_srcdir_defaulted" = yes; then
733 gezelter 2081 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 gezelter 1490 { (exit 1); exit 1; }; }
735     else
736 gezelter 2081 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 gezelter 1490 { (exit 1); exit 1; }; }
738     fi
739     fi
740 gezelter 2081 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741     { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742     { (exit 1); exit 1; }; }
743 gezelter 1490 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744     ac_env_build_alias_set=${build_alias+set}
745     ac_env_build_alias_value=$build_alias
746     ac_cv_env_build_alias_set=${build_alias+set}
747     ac_cv_env_build_alias_value=$build_alias
748     ac_env_host_alias_set=${host_alias+set}
749     ac_env_host_alias_value=$host_alias
750     ac_cv_env_host_alias_set=${host_alias+set}
751     ac_cv_env_host_alias_value=$host_alias
752     ac_env_target_alias_set=${target_alias+set}
753     ac_env_target_alias_value=$target_alias
754     ac_cv_env_target_alias_set=${target_alias+set}
755     ac_cv_env_target_alias_value=$target_alias
756     ac_env_CC_set=${CC+set}
757     ac_env_CC_value=$CC
758     ac_cv_env_CC_set=${CC+set}
759     ac_cv_env_CC_value=$CC
760     ac_env_CFLAGS_set=${CFLAGS+set}
761     ac_env_CFLAGS_value=$CFLAGS
762     ac_cv_env_CFLAGS_set=${CFLAGS+set}
763     ac_cv_env_CFLAGS_value=$CFLAGS
764     ac_env_LDFLAGS_set=${LDFLAGS+set}
765     ac_env_LDFLAGS_value=$LDFLAGS
766     ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767     ac_cv_env_LDFLAGS_value=$LDFLAGS
768     ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769     ac_env_CPPFLAGS_value=$CPPFLAGS
770     ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771     ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772     ac_env_CXX_set=${CXX+set}
773     ac_env_CXX_value=$CXX
774     ac_cv_env_CXX_set=${CXX+set}
775     ac_cv_env_CXX_value=$CXX
776     ac_env_CXXFLAGS_set=${CXXFLAGS+set}
777     ac_env_CXXFLAGS_value=$CXXFLAGS
778     ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
779     ac_cv_env_CXXFLAGS_value=$CXXFLAGS
780     ac_env_F90_set=${F90+set}
781     ac_env_F90_value=$F90
782     ac_cv_env_F90_set=${F90+set}
783     ac_cv_env_F90_value=$F90
784     ac_env_F90FLAGS_set=${F90FLAGS+set}
785     ac_env_F90FLAGS_value=$F90FLAGS
786     ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
787     ac_cv_env_F90FLAGS_value=$F90FLAGS
788     ac_env_CPP_set=${CPP+set}
789     ac_env_CPP_value=$CPP
790     ac_cv_env_CPP_set=${CPP+set}
791     ac_cv_env_CPP_value=$CPP
792 gezelter 2190 ac_env_CXXCPP_set=${CXXCPP+set}
793     ac_env_CXXCPP_value=$CXXCPP
794     ac_cv_env_CXXCPP_set=${CXXCPP+set}
795     ac_cv_env_CXXCPP_value=$CXXCPP
796 gezelter 1490
797     #
798     # Report the --help message.
799     #
800     if test "$ac_init_help" = "long"; then
801     # Omit some internal or obsolete options to make the list less imposing.
802     # This message is too long to be a string in the A/UX 3.1 sh.
803 gezelter 2081 cat <<_ACEOF
804 gezelter 1499 \`configure' configures OOPSE 2.0 to adapt to many kinds of systems.
805 gezelter 1490
806     Usage: $0 [OPTION]... [VAR=VALUE]...
807    
808     To assign environment variables (e.g., CC, CFLAGS...), specify them as
809     VAR=VALUE. See below for descriptions of some of the useful variables.
810    
811     Defaults for the options are specified in brackets.
812    
813     Configuration:
814     -h, --help display this help and exit
815     --help=short display options specific to this package
816     --help=recursive display the short help of all the included packages
817     -V, --version display version information and exit
818     -q, --quiet, --silent do not print \`checking...' messages
819     --cache-file=FILE cache test results in FILE [disabled]
820     -C, --config-cache alias for \`--cache-file=config.cache'
821     -n, --no-create do not create output files
822     --srcdir=DIR find the sources in DIR [configure dir or \`..']
823    
824 gezelter 2081 _ACEOF
825 gezelter 1490
826 gezelter 2081 cat <<_ACEOF
827 gezelter 1490 Installation directories:
828     --prefix=PREFIX install architecture-independent files in PREFIX
829 gezelter 2081 [$ac_default_prefix]
830 gezelter 1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
831 gezelter 2081 [PREFIX]
832 gezelter 1490
833     By default, \`make install' will install all the files in
834     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
835     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
836     for instance \`--prefix=\$HOME'.
837    
838     For better control, use the options below.
839    
840     Fine tuning of the installation directories:
841     --bindir=DIR user executables [EPREFIX/bin]
842     --sbindir=DIR system admin executables [EPREFIX/sbin]
843     --libexecdir=DIR program executables [EPREFIX/libexec]
844     --datadir=DIR read-only architecture-independent data [PREFIX/share]
845     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
846     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
847     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
848     --libdir=DIR object code libraries [EPREFIX/lib]
849     --includedir=DIR C header files [PREFIX/include]
850     --oldincludedir=DIR C header files for non-gcc [/usr/include]
851     --infodir=DIR info documentation [PREFIX/info]
852     --mandir=DIR man documentation [PREFIX/man]
853 gezelter 2081 _ACEOF
854 gezelter 1490
855 gezelter 2081 cat <<\_ACEOF
856 gezelter 1490
857     System types:
858     --build=BUILD configure for building on BUILD [guessed]
859 gezelter 2081 --host=HOST cross-compile to build programs to run on HOST [BUILD]
860     _ACEOF
861 gezelter 1490 fi
862    
863     if test -n "$ac_init_help"; then
864     case $ac_init_help in
865 gezelter 1499 short | recursive ) echo "Configuration of OOPSE 2.0:";;
866 gezelter 1490 esac
867 gezelter 2081 cat <<\_ACEOF
868 gezelter 1490
869     Optional Features:
870     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
871     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
872     --enable-debug Compile OOPSE in debug mode
873 gezelter 1540 --enable-doxygen enable documentation generation with doxygen (auto)
874     --enable-dot use 'dot' to generate graphs in doxygen (auto)
875     --enable-html-docs enable HTML generation with doxygen (yes)
876     --enable-latex-docs enable LaTeX documentation generation with doxygen (no)
877 gezelter 1490 --enable-oopse-home=DIR define oopse home dir PREFIX/oopse
878    
879     Optional Packages:
880     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
881     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
882 gezelter 2199 --with-perl-shebang override what perl thinks is the way for the kernel
883     to start it (seldom needed)
884 gezelter 1490 --with-mpi=<prefix> compile with MPI installed in <prefix> [default=no]
885 gezelter 2190 --with-cgal-makefile=FILE CGAL makefile that should be used
886 gezelter 1490
887     Some influential environment variables:
888     CC C compiler command
889     CFLAGS C compiler flags
890     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
891     nonstandard directory <lib dir>
892     CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
893     headers in a nonstandard directory <include dir>
894     CXX C++ compiler command
895     CXXFLAGS C++ compiler flags
896     F90 Fortran 90 compiler command
897     F90FLAGS Fortran 90 compiler flags
898     CPP C preprocessor
899 gezelter 2190 CXXCPP C++ preprocessor
900 gezelter 1490
901     Use these variables to override the choices made by `configure' or to help
902     it to find libraries and programs with nonstandard names/locations.
903    
904     Report bugs to <gezelter@nd.edu>.
905 gezelter 2081 _ACEOF
906 gezelter 1490 fi
907    
908     if test "$ac_init_help" = "recursive"; then
909     # If there are subdirs, report their specific --help.
910     ac_popdir=`pwd`
911 gezelter 2081 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
912     test -d $ac_dir || continue
913     ac_builddir=.
914 gezelter 1490
915 gezelter 2081 if test "$ac_dir" != .; then
916     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
917     # A "../" for each directory in $ac_dir_suffix.
918     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
919     else
920     ac_dir_suffix= ac_top_builddir=
921     fi
922 gezelter 1490
923 gezelter 2081 case $srcdir in
924     .) # No --srcdir option. We are building in place.
925     ac_srcdir=.
926     if test -z "$ac_top_builddir"; then
927     ac_top_srcdir=.
928     else
929     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
930     fi ;;
931     [\\/]* | ?:[\\/]* ) # Absolute path.
932     ac_srcdir=$srcdir$ac_dir_suffix;
933     ac_top_srcdir=$srcdir ;;
934     *) # Relative path.
935     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
936     ac_top_srcdir=$ac_top_builddir$srcdir ;;
937     esac
938    
939     # Do not use `cd foo && pwd` to compute absolute paths, because
940     # the directories may not exist.
941     case `pwd` in
942     .) ac_abs_builddir="$ac_dir";;
943     *)
944     case "$ac_dir" in
945     .) ac_abs_builddir=`pwd`;;
946     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
947     *) ac_abs_builddir=`pwd`/"$ac_dir";;
948     esac;;
949     esac
950     case $ac_abs_builddir in
951     .) ac_abs_top_builddir=${ac_top_builddir}.;;
952     *)
953     case ${ac_top_builddir}. in
954     .) ac_abs_top_builddir=$ac_abs_builddir;;
955     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
956     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
957     esac;;
958     esac
959     case $ac_abs_builddir in
960     .) ac_abs_srcdir=$ac_srcdir;;
961     *)
962     case $ac_srcdir in
963     .) ac_abs_srcdir=$ac_abs_builddir;;
964     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
965     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
966     esac;;
967     esac
968     case $ac_abs_builddir in
969     .) ac_abs_top_srcdir=$ac_top_srcdir;;
970     *)
971     case $ac_top_srcdir in
972     .) ac_abs_top_srcdir=$ac_abs_builddir;;
973     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
974     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
975     esac;;
976     esac
977    
978     cd $ac_dir
979 gezelter 1490 # Check for guested configure; otherwise get Cygnus style configure.
980 gezelter 2081 if test -f $ac_srcdir/configure.gnu; then
981 gezelter 1490 echo
982 gezelter 2081 $SHELL $ac_srcdir/configure.gnu --help=recursive
983     elif test -f $ac_srcdir/configure; then
984 gezelter 1490 echo
985 gezelter 2081 $SHELL $ac_srcdir/configure --help=recursive
986     elif test -f $ac_srcdir/configure.ac ||
987     test -f $ac_srcdir/configure.in; then
988 gezelter 1490 echo
989     $ac_configure --help
990     else
991 gezelter 2081 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
992 gezelter 1490 fi
993     cd $ac_popdir
994     done
995     fi
996    
997     test -n "$ac_init_help" && exit 0
998     if $ac_init_version; then
999 gezelter 2081 cat <<\_ACEOF
1000 gezelter 1499 OOPSE configure 2.0
1001 gezelter 2081 generated by GNU Autoconf 2.59
1002 gezelter 1490
1003 gezelter 2081 Copyright (C) 2003 Free Software Foundation, Inc.
1004 gezelter 1490 This configure script is free software; the Free Software Foundation
1005     gives unlimited permission to copy, distribute and modify it.
1006 gezelter 2081 _ACEOF
1007 gezelter 1490 exit 0
1008     fi
1009     exec 5>config.log
1010 gezelter 2081 cat >&5 <<_ACEOF
1011 gezelter 1490 This file contains any messages produced by compilers while
1012     running configure, to aid debugging if configure makes a mistake.
1013    
1014 gezelter 1499 It was created by OOPSE $as_me 2.0, which was
1015 gezelter 2081 generated by GNU Autoconf 2.59. Invocation command line was
1016 gezelter 1490
1017     $ $0 $@
1018    
1019 gezelter 2081 _ACEOF
1020 gezelter 1490 {
1021     cat <<_ASUNAME
1022 gezelter 2081 ## --------- ##
1023     ## Platform. ##
1024     ## --------- ##
1025 gezelter 1490
1026     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1027     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1028     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1029     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1030     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031    
1032     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1033     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1034    
1035     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1036     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1037     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1038     hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1039     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1040     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1041     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1042    
1043 gezelter 2081 _ASUNAME
1044 gezelter 2029
1045 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1046     for as_dir in $PATH
1047     do
1048     IFS=$as_save_IFS
1049     test -z "$as_dir" && as_dir=.
1050     echo "PATH: $as_dir"
1051     done
1052    
1053 gezelter 1490 } >&5
1054    
1055 gezelter 2081 cat >&5 <<_ACEOF
1056 gezelter 1490
1057    
1058 gezelter 2081 ## ----------- ##
1059     ## Core tests. ##
1060     ## ----------- ##
1061    
1062     _ACEOF
1063    
1064    
1065 gezelter 1490 # Keep a trace of the command line.
1066     # Strip out --no-create and --no-recursion so they do not pile up.
1067 gezelter 2081 # Strip out --silent because we don't want to record it for future runs.
1068 gezelter 1490 # Also quote any args containing shell meta-characters.
1069 gezelter 2081 # Make two passes to allow for proper duplicate-argument suppression.
1070 gezelter 1490 ac_configure_args=
1071 gezelter 2081 ac_configure_args0=
1072     ac_configure_args1=
1073 gezelter 1490 ac_sep=
1074 gezelter 2081 ac_must_keep_next=false
1075     for ac_pass in 1 2
1076 gezelter 1490 do
1077 gezelter 2081 for ac_arg
1078     do
1079     case $ac_arg in
1080     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082     | -silent | --silent | --silen | --sile | --sil)
1083     continue ;;
1084     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1086     esac
1087     case $ac_pass in
1088     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089     2)
1090     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091     if test $ac_must_keep_next = true; then
1092     ac_must_keep_next=false # Got value, back to normal.
1093     else
1094     case $ac_arg in
1095     *=* | --config-cache | -C | -disable-* | --disable-* \
1096     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098     | -with-* | --with-* | -without-* | --without-* | --x)
1099     case "$ac_configure_args0 " in
1100     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1101     esac
1102     ;;
1103     -* ) ac_must_keep_next=true ;;
1104     esac
1105     fi
1106     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107     # Get rid of the leading space.
1108     ac_sep=" "
1109     ;;
1110     esac
1111     done
1112 gezelter 1490 done
1113 gezelter 2081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115 gezelter 1490
1116     # When interrupted or exit'd, cleanup temporary files, and complete
1117     # config.log. We remove comments because anyway the quotes in there
1118     # would cause problems or look ugly.
1119 gezelter 2081 # WARNING: Be sure not to use single quotes in there, as some shells,
1120     # such as our DU 5.0 friend, will then `close' the trap.
1121 gezelter 1490 trap 'exit_status=$?
1122     # Save into config.log some information that might help in debugging.
1123 gezelter 2081 {
1124     echo
1125    
1126     cat <<\_ASBOX
1127     ## ---------------- ##
1128     ## Cache variables. ##
1129     ## ---------------- ##
1130     _ASBOX
1131     echo
1132     # The following way of writing the cache mishandles newlines in values,
1133 gezelter 1490 {
1134     (set) 2>&1 |
1135     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1136     *ac_space=\ *)
1137     sed -n \
1138 gezelter 2081 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1140 gezelter 1490 ;;
1141     *)
1142     sed -n \
1143 gezelter 2081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 gezelter 1490 ;;
1145     esac;
1146 gezelter 2081 }
1147     echo
1148    
1149     cat <<\_ASBOX
1150     ## ----------------- ##
1151     ## Output variables. ##
1152     ## ----------------- ##
1153     _ASBOX
1154     echo
1155     for ac_var in $ac_subst_vars
1156     do
1157     eval ac_val=$`echo $ac_var`
1158     echo "$ac_var='"'"'$ac_val'"'"'"
1159     done | sort
1160     echo
1161    
1162     if test -n "$ac_subst_files"; then
1163     cat <<\_ASBOX
1164     ## ------------- ##
1165     ## Output files. ##
1166     ## ------------- ##
1167     _ASBOX
1168     echo
1169     for ac_var in $ac_subst_files
1170     do
1171     eval ac_val=$`echo $ac_var`
1172     echo "$ac_var='"'"'$ac_val'"'"'"
1173     done | sort
1174     echo
1175     fi
1176    
1177     if test -s confdefs.h; then
1178     cat <<\_ASBOX
1179     ## ----------- ##
1180     ## confdefs.h. ##
1181     ## ----------- ##
1182     _ASBOX
1183     echo
1184     sed "/^$/d" confdefs.h | sort
1185     echo
1186     fi
1187     test "$ac_signal" != 0 &&
1188     echo "$as_me: caught signal $ac_signal"
1189     echo "$as_me: exit $exit_status"
1190     } >&5
1191     rm -f core *.core &&
1192     rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1193 gezelter 1490 exit $exit_status
1194     ' 0
1195     for ac_signal in 1 2 13 15; do
1196 gezelter 2081 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1197 gezelter 1490 done
1198     ac_signal=0
1199    
1200     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1201     rm -rf conftest* confdefs.h
1202     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1203     echo >confdefs.h
1204    
1205 gezelter 2081 # Predefined preprocessor variables.
1206    
1207     cat >>confdefs.h <<_ACEOF
1208     #define PACKAGE_NAME "$PACKAGE_NAME"
1209     _ACEOF
1210    
1211    
1212     cat >>confdefs.h <<_ACEOF
1213     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1214     _ACEOF
1215    
1216    
1217     cat >>confdefs.h <<_ACEOF
1218     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1219     _ACEOF
1220    
1221    
1222     cat >>confdefs.h <<_ACEOF
1223     #define PACKAGE_STRING "$PACKAGE_STRING"
1224     _ACEOF
1225    
1226    
1227     cat >>confdefs.h <<_ACEOF
1228     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1229     _ACEOF
1230    
1231    
1232 gezelter 1490 # Let the site file select an alternate cache file if it wants to.
1233     # Prefer explicitly selected file to automatically selected ones.
1234     if test -z "$CONFIG_SITE"; then
1235     if test "x$prefix" != xNONE; then
1236     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237     else
1238     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1239     fi
1240     fi
1241     for ac_site_file in $CONFIG_SITE; do
1242     if test -r "$ac_site_file"; then
1243 gezelter 2081 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244 gezelter 1490 echo "$as_me: loading site script $ac_site_file" >&6;}
1245 gezelter 2081 sed 's/^/| /' "$ac_site_file" >&5
1246 gezelter 1490 . "$ac_site_file"
1247     fi
1248     done
1249    
1250     if test -r "$cache_file"; then
1251     # Some versions of bash will fail to source /dev/null (special
1252     # files actually), so we avoid doing that.
1253     if test -f "$cache_file"; then
1254 gezelter 2081 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255 gezelter 1490 echo "$as_me: loading cache $cache_file" >&6;}
1256     case $cache_file in
1257     [\\/]* | ?:[\\/]* ) . $cache_file;;
1258     *) . ./$cache_file;;
1259     esac
1260     fi
1261     else
1262 gezelter 2081 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263 gezelter 1490 echo "$as_me: creating cache $cache_file" >&6;}
1264     >$cache_file
1265     fi
1266    
1267     # Check that the precious variables saved in the cache have kept the same
1268     # value.
1269 gezelter 2081 ac_cache_corrupted=false
1270 gezelter 1490 for ac_var in `(set) 2>&1 |
1271 gezelter 2081 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1272 gezelter 1490 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273     eval ac_new_set=\$ac_env_${ac_var}_set
1274     eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275     eval ac_new_val="\$ac_env_${ac_var}_value"
1276     case $ac_old_set,$ac_new_set in
1277     set,)
1278 gezelter 2081 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1279     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1280     ac_cache_corrupted=: ;;
1281 gezelter 1490 ,set)
1282 gezelter 2081 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1283     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284     ac_cache_corrupted=: ;;
1285 gezelter 1490 ,);;
1286     *)
1287     if test "x$ac_old_val" != "x$ac_new_val"; then
1288 gezelter 2081 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1289     echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1290     { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1291     echo "$as_me: former value: $ac_old_val" >&2;}
1292     { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1293     echo "$as_me: current value: $ac_new_val" >&2;}
1294     ac_cache_corrupted=:
1295 gezelter 1490 fi;;
1296     esac
1297 gezelter 2081 # Pass precious variables to config.status.
1298     if test "$ac_new_set" = set; then
1299     case $ac_new_val in
1300     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1302     *) ac_arg=$ac_var=$ac_new_val ;;
1303     esac
1304     case " $ac_configure_args " in
1305     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1306     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1307     esac
1308     fi
1309 gezelter 1490 done
1310 gezelter 2081 if $ac_cache_corrupted; then
1311     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1314     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315     { (exit 1); exit 1; }; }
1316 gezelter 1490 fi
1317    
1318     ac_ext=c
1319     ac_cpp='$CPP $CPPFLAGS'
1320     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323    
1324    
1325 gezelter 2081
1326    
1327    
1328    
1329    
1330    
1331    
1332    
1333    
1334    
1335    
1336    
1337    
1338    
1339    
1340    
1341    
1342    
1343    
1344    
1345    
1346    
1347    
1348    
1349    
1350 gezelter 1490 ac_aux_dir=
1351     for ac_dir in ac-tools $srcdir/ac-tools; do
1352     if test -f $ac_dir/install-sh; then
1353     ac_aux_dir=$ac_dir
1354     ac_install_sh="$ac_aux_dir/install-sh -c"
1355     break
1356     elif test -f $ac_dir/install.sh; then
1357     ac_aux_dir=$ac_dir
1358     ac_install_sh="$ac_aux_dir/install.sh -c"
1359     break
1360     elif test -f $ac_dir/shtool; then
1361     ac_aux_dir=$ac_dir
1362     ac_install_sh="$ac_aux_dir/shtool install -c"
1363     break
1364     fi
1365     done
1366     if test -z "$ac_aux_dir"; then
1367 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1368 gezelter 1490 echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
1369     { (exit 1); exit 1; }; }
1370     fi
1371     ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1372     ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1373     ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1374    
1375 gezelter 2081
1376 gezelter 1490 # This file is part of Autoconf. -*- Autoconf -*-
1377     # Programming languages support.
1378     # Copyright 2000, 2001
1379     # Free Software Foundation, Inc.
1380     #
1381     # This program is free software; you can redistribute it and/or modify
1382     # it under the terms of the GNU General Public License as published by
1383     # the Free Software Foundation; either version 2, or (at your option)
1384     # any later version.
1385     #
1386     # This program is distributed in the hope that it will be useful,
1387     # but WITHOUT ANY WARRANTY; without even the implied warranty of
1388     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1389     # GNU General Public License for more details.
1390     #
1391     # You should have received a copy of the GNU General Public License
1392     # along with this program; if not, write to the Free Software
1393     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1394     # 02111-1307, USA.
1395     #
1396     # As a special exception, the Free Software Foundation gives unlimited
1397     # permission to copy, distribute and modify the configure scripts that
1398     # are the output of Autoconf. You need not follow the terms of the GNU
1399     # General Public License when using or distributing such scripts, even
1400     # though portions of the text of Autoconf appear in them. The GNU
1401     # General Public License (GPL) does govern all other use of the material
1402     # that constitutes the Autoconf program.
1403     #
1404     # Certain portions of the Autoconf source text are designed to be copied
1405     # (in certain cases, depending on the input) into the output of
1406     # Autoconf. We call these the "data" portions. The rest of the Autoconf
1407     # source text consists of comments plus executable code that decides which
1408     # of the data portions to output in any given case. We call these
1409     # comments and executable code the "non-data" portions. Autoconf never
1410     # copies any of the non-data portions into its output.
1411     #
1412     # This special exception to the GPL applies to versions of Autoconf
1413     # released by the Free Software Foundation. When you make and
1414     # distribute a modified version of Autoconf, you may extend this special
1415     # exception to the GPL to apply to your modified version as well, *unless*
1416     # your modified version has the potential to copy into its output some
1417     # of the text that was the non-data portion of the version that you started
1418     # with. (In other words, unless your change moves or copies text from
1419     # the non-data portions to the data portions.) If your modification has
1420     # such potential, you must delete any notice of this special exception
1421     # to the GPL from your modified version.
1422     #
1423     # Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably
1424     # many others).
1425    
1426 gezelter 2081
1427 gezelter 1490 # Table of Contents:
1428     #
1429     # 1. Language selection
1430     # and routines to produce programs in a given language.
1431     # a. Fortran 77 (to be moved from aclang.m4)
1432     # b. Fortran 90
1433     # c. Fortran 95
1434     #
1435     # 2. Producing programs in a given language.
1436     # a. Fortran 77 (to be moved from aclang.m4)
1437     # b. Fortran 90
1438     # c. Fortran 95
1439     #
1440     # 3. Looking for a compiler
1441     # And possibly the associated preprocessor.
1442     # a. Fortran 77 (to be moved from aclang.m4)
1443     # b. Fortran 90
1444     # c. Fortran 95
1445     #
1446     # 4. Compilers' characteristics.
1447     # a. Fortran 77 (to be moved from aclang.m4)
1448     # b. Fortran 90
1449     # c. Fortran 95
1450    
1451     # _AC_LIST_MEMBER_IF(ELEMENT, LIST, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1452     # ---------------------------------------------------------------------------
1453     #
1454     # Processing the elements of a list is tedious in shell programming,
1455     # as lists tend to be implemented as space delimited strings.
1456     #
1457     # This macro searches LIST for ELEMENT, and executes ACTION-IF-FOUND
1458     # if ELEMENT is a member of LIST, otherwise it executes
1459     # ACTION-IF-NOT-FOUND.
1460     # _AC_LIST_MEMBER_IF
1461    
1462 gezelter 2081
1463    
1464 gezelter 1490 # _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE)
1465     # -------------------------------------------------
1466     #
1467     # Specifying options to the compiler (whether it be the C, C++ or
1468     # Fortran 77 compiler) that are meant for the linker is compiler
1469     # dependent. This macro lets you give options to the compiler that
1470     # are meant for the linker in a portable, compiler-independent way.
1471     #
1472     # This macro take two arguments, a list of linker options that the
1473     # compiler should pass to the linker (LINKER-OPTIONS) and the name of
1474     # a shell variable (SHELL-VARIABLE). The list of linker options are
1475     # appended to the shell variable in a compiler-dependent way.
1476     #
1477     # For example, if the selected language is C, then this:
1478     #
1479     # _AC_LINKER_OPTION([-R /usr/local/lib/foo], foo_LDFLAGS)
1480     #
1481     # will expand into this if the selected C compiler is gcc:
1482     #
1483     # foo_LDFLAGS="-Xlinker -R -Xlinker /usr/local/lib/foo"
1484     #
1485     # otherwise, it will expand into this:
1486     #
1487     # foo_LDFLAGS"-R /usr/local/lib/foo"
1488     #
1489     # You are encouraged to add support for compilers that this macro
1490     # doesn't currently support.
1491     # FIXME: Get rid of this macro.
1492     # _AC_LINKER_OPTION
1493    
1494 gezelter 2081
1495    
1496 gezelter 1490 ## ----------------------- ##
1497     ## 1. Language selection. ##
1498     ## ----------------------- ##
1499    
1500     # ----------------------------- #
1501     # 1b. The Fortran 90 language. #
1502     # ----------------------------- #
1503    
1504     # AC_LANG(Fortran 90)
1505     # -------------------
1506    
1507 gezelter 2081
1508    
1509 gezelter 1490 # _AC_LANG_ABBREV(Fortran 90)
1510     # ---------------------------
1511    
1512 gezelter 2081
1513    
1514 gezelter 1490 # ----------------------------- #
1515     # 1c. The Fortran 95 language. #
1516     # ----------------------------- #
1517    
1518     # AC_LANG(Fortran 95)
1519     # -------------------
1520    
1521 gezelter 2081
1522    
1523 gezelter 1490 # _AC_LANG_ABBREV(Fortran 95)
1524     # ---------------------------
1525    
1526 gezelter 2081
1527    
1528 gezelter 1490 ## ---------------------- ##
1529     ## 2.Producing programs. ##
1530     ## ---------------------- ##
1531    
1532     # ------------------------ #
1533     # 2b. Fortran 90 sources. #
1534     # ------------------------ #
1535    
1536     # AC_LANG_SOURCE(Fortran 90)(BODY)
1537     # --------------------------------
1538    
1539 gezelter 2081
1540    
1541 gezelter 1490 # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY])
1542     # -----------------------------------------------
1543    
1544 gezelter 2081
1545 gezelter 1490 # AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION)
1546     # --------------------------------------------
1547    
1548 gezelter 2081
1549    
1550 gezelter 1490 # ------------------------ #
1551     # 2c. Fortran 95 sources. #
1552     # ------------------------ #
1553    
1554     # AC_LANG_SOURCE(Fortran 95)(BODY)
1555     # --------------------------------
1556    
1557 gezelter 2081
1558 gezelter 1490 # AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY])
1559     # -----------------------------------------------
1560    
1561 gezelter 2081
1562 gezelter 1490 # AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION)
1563     # --------------------------------------------
1564    
1565 gezelter 2081
1566    
1567 gezelter 1490 ## -------------------------------------------- ##
1568     ## 3. Looking for Compilers and Preprocessors. ##
1569     ## -------------------------------------------- ##
1570    
1571     # ----------------------------- #
1572     # 3b. The Fortran 90 compiler. #
1573     # ----------------------------- #
1574    
1575 gezelter 2081
1576 gezelter 1490 # AC_LANG_PREPROC(Fortran 90)
1577     # ---------------------------
1578     # Find the Fortran 90 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able.
1579    
1580 gezelter 2081
1581    
1582 gezelter 1490 # AC_LANG_COMPILER(Fortran 90)
1583     # ----------------------------
1584     # Find the Fortran 90 compiler. Must be AC_DEFUN'd to be
1585     # AC_REQUIRE'able.
1586    
1587 gezelter 2081
1588    
1589 gezelter 1490 # AC_PROG_F90([COMPILERS...])
1590     # ---------------------------
1591     # COMPILERS is a space separated list of Fortran 90 compilers to search
1592     # for.
1593     #
1594     # Compilers are ordered by
1595     # 1. F90, F95
1596     # 2. Good/tested native compilers, bad/untested native compilers
1597     #
1598     # pgf90 is the Portland Group F90 compilers.
1599     # xlf90/xlf95 are IBM (AIX) F90/F95 compilers.
1600     # lf95 is the Lahey-Fujitsu compiler.
1601     # epcf90 is the "Edinburgh Portable Compiler" F90.
1602     # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1603     # AC_PROG_F90
1604    
1605 gezelter 2081
1606 gezelter 1490 # ----------------------------- #
1607     # 3c. The Fortran 95 compiler. #
1608     # ----------------------------- #
1609    
1610 gezelter 2081
1611 gezelter 1490 # AC_LANG_PREPROC(Fortran 95)
1612     # ---------------------------
1613     # Find the Fortran 95 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able.
1614    
1615 gezelter 2081
1616    
1617 gezelter 1490 # AC_LANG_COMPILER(Fortran 95)
1618     # ----------------------------
1619     # Find the Fortran 95 compiler. Must be AC_DEFUN'd to be
1620     # AC_REQUIRE'able.
1621    
1622 gezelter 2081
1623    
1624 gezelter 1490 # AC_PROG_F95([COMPILERS...])
1625     # ---------------------------
1626     # COMPILERS is a space separated list of Fortran 95 compilers to search
1627     # for.
1628     #
1629     # Compilers are ordered by
1630     # 1. Good/tested native compilers, bad/untested native compilers
1631     #
1632     # xlf95 is the IBM (AIX) F95 compiler.
1633     # lf95 is the Lahey-Fujitsu compiler.
1634     # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1635     # AC_PROG_F95
1636    
1637 gezelter 2081
1638 gezelter 1490 ## ------------------------------- ##
1639     ## 4. Compilers' characteristics. ##
1640     ## ------------------------------- ##
1641    
1642 gezelter 2081
1643 gezelter 1490 # ---------------------------------------- #
1644     # 4b. Fortan 90 compiler characteristics. #
1645     # ---------------------------------------- #
1646    
1647 gezelter 2081
1648 gezelter 1490 # _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v])
1649     # -------------------------------------------------
1650     # Link a trivial Fortran program, compiling with a verbose output FLAG
1651     # (which default value, $ac_cv_prog_f90_v, is computed by
1652     # _AC_PROG_F90_V), and return the output in $ac_f90_v_output. This
1653     # output is processed in the way expected by AC_F90_LIBRARY_LDFLAGS,
1654     # so that any link flags that are echoed by the compiler appear as
1655     # space-separated items.
1656     # _AC_PROG_F90_V_OUTPUT
1657    
1658 gezelter 2081
1659 gezelter 1490 # _AC_PROG_F90_V
1660     # --------------
1661     #
1662     # Determine the flag that causes the Fortran 90 compiler to print
1663     # information of library and object files (normally -v)
1664     # Needed for AC_F90_LIBRARY_FLAGS
1665     # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1666     # _AC_PROG_F90_V
1667    
1668 gezelter 2081
1669 gezelter 1490 # AC_F90_LIBRARY_LDFLAGS
1670     # ----------------------
1671     #
1672     # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 90
1673     # intrinsic and run-time libraries that are required to successfully
1674     # link a Fortran 90 program or shared library. The output variable
1675     # F90LIBS is set to these flags.
1676     #
1677     # This macro is intended to be used in those situations when it is
1678     # necessary to mix, e.g. C++ and Fortran 90, source code into a single
1679     # program or shared library.
1680     #
1681     # For example, if object files from a C++ and Fortran 90 compiler must
1682     # be linked together, then the C++ compiler/linker must be used for
1683     # linking (since special C++-ish things need to happen at link time
1684     # like calling global constructors, instantiating templates, enabling
1685     # exception support, etc.).
1686     #
1687     # However, the Fortran 90 intrinsic and run-time libraries must be
1688     # linked in as well, but the C++ compiler/linker doesn't know how to
1689     # add these Fortran 90 libraries. Hence, the macro
1690     # "AC_F90_LIBRARY_LDFLAGS" was created to determine these Fortran 90
1691     # libraries.
1692     #
1693     # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1694     # AC_F90_LIBRARY_LDFLAGS
1695    
1696 gezelter 2081
1697 gezelter 1490 # _AC_F90_NAME_MANGLING
1698     # ---------------------
1699     # Test for the name mangling scheme used by the Fortran 90 compiler.
1700     #
1701     # Sets ac_cv_f90_mangling. The value contains three fields, separated
1702     # by commas:
1703     #
1704     # lower case / upper case:
1705     # case translation of the Fortan 90 symbols
1706     # underscore / no underscore:
1707     # whether the compiler appends "_" to symbol names
1708     # extra underscore / no extra underscore:
1709     # whether the compiler appends an extra "_" to symbol names already
1710     # containing at least one underscore
1711     #
1712     # _AC_F90_NAME_MANGLING
1713    
1714     # The replacement is empty.
1715    
1716 gezelter 2081
1717    
1718 gezelter 1490 # AC_F90_WRAPPERS
1719     # ---------------
1720     # Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to
1721     # properly mangle the names of C identifiers, and C identifiers with
1722     # underscores, respectively, so that they match the name mangling
1723     # scheme used by the Fortran 90 compiler.
1724     # AC_F90_WRAPPERS
1725    
1726 gezelter 2081
1727 gezelter 1490 # AC_F90_FUNC(NAME, [SHELLVAR = NAME])
1728     # ------------------------------------
1729     # For a Fortran subroutine of given NAME, define a shell variable
1730     # $SHELLVAR to the Fortran 90 mangled name. If the SHELLVAR
1731     # argument is not supplied, it defaults to NAME.
1732     # AC_F90_FUNC
1733    
1734 gezelter 2081
1735 gezelter 1490 # ---------------------------------------- #
1736     # 4c. Fortan 95 compiler characteristics. #
1737     # ---------------------------------------- #
1738    
1739 gezelter 2081
1740 gezelter 1490 # _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v])
1741     # -------------------------------------------------
1742     # Link a trivial Fortran program, compiling with a verbose output FLAG
1743     # (which default value, $ac_cv_prog_f95_v, is computed by
1744     # _AC_PROG_F95_V), and return the output in $ac_f95_v_output. This
1745     # output is processed in the way expected by AC_F95_LIBRARY_LDFLAGS,
1746     # so that any link flags that are echoed by the compiler appear as
1747     # space-separated items.
1748     # _AC_PROG_F95_V_OUTPUT
1749    
1750 gezelter 2081
1751 gezelter 1490 # _AC_PROG_F95_V
1752     # --------------
1753     #
1754     # Determine the flag that causes the Fortran 95 compiler to print
1755     # information of library and object files (normally -v)
1756     # Needed for AC_F95_LIBRARY_FLAGS
1757     # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1758     # _AC_PROG_F95_V
1759    
1760 gezelter 2081
1761 gezelter 1490 # AC_F95_LIBRARY_LDFLAGS
1762     # ----------------------
1763     #
1764     # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 95
1765     # intrinsic and run-time libraries that are required to successfully
1766     # link a Fortran 95 program or shared library. The output variable
1767     # F95LIBS is set to these flags.
1768     #
1769     # This macro is intended to be used in those situations when it is
1770     # necessary to mix, e.g. C++ and Fortran 95, source code into a single
1771     # program or shared library.
1772     #
1773     # For example, if object files from a C++ and Fortran 95 compiler must
1774     # be linked together, then the C++ compiler/linker must be used for
1775     # linking (since special C++-ish things need to happen at link time
1776     # like calling global constructors, instantiating templates, enabling
1777     # exception support, etc.).
1778     #
1779     # However, the Fortran 95 intrinsic and run-time libraries must be
1780     # linked in as well, but the C++ compiler/linker doesn't know how to
1781     # add these Fortran 95 libraries. Hence, the macro
1782     # "AC_F95_LIBRARY_LDFLAGS" was created to determine these Fortran 95
1783     # libraries.
1784     #
1785     # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1786     # AC_F95_LIBRARY_LDFLAGS
1787    
1788 gezelter 2081
1789 gezelter 1490 # _AC_F95_NAME_MANGLING
1790     # ---------------------
1791     # Test for the name mangling scheme used by the Fortran 95 compiler.
1792     #
1793     # Sets ac_cv_f95_mangling. The value contains three fields, separated
1794     # by commas:
1795     #
1796     # lower case / upper case:
1797     # case translation of the Fortan 95 symbols
1798     # underscore / no underscore:
1799     # whether the compiler appends "_" to symbol names
1800     # extra underscore / no extra underscore:
1801     # whether the compiler appends an extra "_" to symbol names already
1802     # containing at least one underscore
1803     #
1804     # _AC_F95_NAME_MANGLING
1805    
1806     # The replacement is empty.
1807    
1808 gezelter 2081
1809    
1810 gezelter 1490 # AC_F95_WRAPPERS
1811     # ---------------
1812     # Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to
1813     # properly mangle the names of C identifiers, and C identifiers with
1814     # underscores, respectively, so that they match the name mangling
1815     # scheme used by the Fortran 95 compiler.
1816     # AC_F95_WRAPPERS
1817    
1818 gezelter 2081
1819 gezelter 1490 # AC_F95_FUNC(NAME, [SHELLVAR = NAME])
1820     # ------------------------------------
1821     # For a Fortran subroutine of given NAME, define a shell variable
1822     # $SHELLVAR to the Fortran 95 mangled name. If the SHELLVAR
1823     # argument is not supplied, it defaults to NAME.
1824     # AC_F95_FUNC
1825    
1826 gezelter 1535 # AC_F90_MODULE_NAMES
1827     # -------------------
1828     #
1829     # Figure out how the Fortran 90 compiler constructs module file names
1830     #
1831     # AC_F90_MODULE_NAMES
1832 gezelter 1490
1833 gezelter 2081
1834    
1835    
1836    
1837    
1838    
1839    
1840    
1841    
1842    
1843    
1844    
1845    
1846    
1847    
1848    
1849    
1850    
1851    
1852    
1853    
1854    
1855    
1856    
1857    
1858    
1859    
1860    
1861    
1862    
1863    
1864    
1865    
1866    
1867    
1868    
1869    
1870    
1871    
1872    
1873    
1874    
1875    
1876    
1877    
1878    
1879    
1880    
1881    
1882    
1883    
1884    
1885 gezelter 2199 #
1886     #
1887     #
1888 gezelter 2081
1889    
1890    
1891    
1892    
1893    
1894 gezelter 1490 # set program name
1895     PROGNAME="oopse"
1896    
1897 gezelter 2081
1898 gezelter 1490 # there are two ways to do debugging. One with the --enable-debug flag
1899     # and one using the DEBUG environment variable
1900    
1901     debug=0
1902     # Check whether --enable-debug or --disable-debug was given.
1903     if test "${enable_debug+set}" = set; then
1904     enableval="$enable_debug"
1905     debug=1
1906     fi;
1907     if test "${DEBUG}"; then
1908    
1909 gezelter 2081 cat >>confdefs.h <<\_ACEOF
1910 gezelter 1490 #define debug 1
1911 gezelter 2081 _ACEOF
1912 gezelter 1490
1913     msg="$msg, debug mode"
1914     fi
1915    
1916 gezelter 2081
1917 gezelter 1490 # who am i
1918     # Make sure we can run config.sub.
1919     $ac_config_sub sun4 >/dev/null 2>&1 ||
1920 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1921 gezelter 1490 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1922     { (exit 1); exit 1; }; }
1923    
1924 gezelter 2081 echo "$as_me:$LINENO: checking build system type" >&5
1925 gezelter 1490 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1926     if test "${ac_cv_build+set}" = set; then
1927     echo $ECHO_N "(cached) $ECHO_C" >&6
1928     else
1929     ac_cv_build_alias=$build_alias
1930     test -z "$ac_cv_build_alias" &&
1931     ac_cv_build_alias=`$ac_config_guess`
1932     test -z "$ac_cv_build_alias" &&
1933 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1934 gezelter 1490 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1935     { (exit 1); exit 1; }; }
1936     ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1937 gezelter 2081 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1938     echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1939 gezelter 1490 { (exit 1); exit 1; }; }
1940    
1941     fi
1942 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1943 gezelter 1490 echo "${ECHO_T}$ac_cv_build" >&6
1944     build=$ac_cv_build
1945     build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1946     build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1947     build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1948    
1949 gezelter 2081
1950     echo "$as_me:$LINENO: checking host system type" >&5
1951 gezelter 1490 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1952     if test "${ac_cv_host+set}" = set; then
1953     echo $ECHO_N "(cached) $ECHO_C" >&6
1954     else
1955     ac_cv_host_alias=$host_alias
1956     test -z "$ac_cv_host_alias" &&
1957     ac_cv_host_alias=$ac_cv_build_alias
1958     ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1959 gezelter 2081 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1960 gezelter 1490 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1961     { (exit 1); exit 1; }; }
1962    
1963     fi
1964 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1965 gezelter 1490 echo "${ECHO_T}$ac_cv_host" >&6
1966     host=$ac_cv_host
1967     host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1968     host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1969     host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1970    
1971 gezelter 2081
1972    
1973    
1974    
1975 gezelter 1490 ac_ext=c
1976     ac_cpp='$CPP $CPPFLAGS'
1977     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1978     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1980     if test -n "$ac_tool_prefix"; then
1981     for ac_prog in icc xlc gcc cc
1982     do
1983     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987     if test "${ac_cv_prog_CC+set}" = set; then
1988     echo $ECHO_N "(cached) $ECHO_C" >&6
1989     else
1990     if test -n "$CC"; then
1991     ac_cv_prog_CC="$CC" # Let the user override the test.
1992     else
1993 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994     for as_dir in $PATH
1995     do
1996     IFS=$as_save_IFS
1997     test -z "$as_dir" && as_dir=.
1998     for ac_exec_ext in '' $ac_executable_extensions; do
1999     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002     break 2
2003     fi
2004 gezelter 1490 done
2005 gezelter 2081 done
2006 gezelter 1490
2007     fi
2008     fi
2009     CC=$ac_cv_prog_CC
2010     if test -n "$CC"; then
2011 gezelter 2081 echo "$as_me:$LINENO: result: $CC" >&5
2012 gezelter 1490 echo "${ECHO_T}$CC" >&6
2013     else
2014 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
2015 gezelter 1490 echo "${ECHO_T}no" >&6
2016     fi
2017    
2018     test -n "$CC" && break
2019     done
2020     fi
2021     if test -z "$CC"; then
2022     ac_ct_CC=$CC
2023     for ac_prog in icc xlc gcc cc
2024     do
2025     # Extract the first word of "$ac_prog", so it can be a program name with args.
2026     set dummy $ac_prog; ac_word=$2
2027 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030     echo $ECHO_N "(cached) $ECHO_C" >&6
2031     else
2032     if test -n "$ac_ct_CC"; then
2033     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2034     else
2035 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036     for as_dir in $PATH
2037     do
2038     IFS=$as_save_IFS
2039     test -z "$as_dir" && as_dir=.
2040     for ac_exec_ext in '' $ac_executable_extensions; do
2041     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042     ac_cv_prog_ac_ct_CC="$ac_prog"
2043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044     break 2
2045     fi
2046 gezelter 1490 done
2047 gezelter 2081 done
2048 gezelter 1490
2049     fi
2050     fi
2051     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052     if test -n "$ac_ct_CC"; then
2053 gezelter 2081 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054 gezelter 1490 echo "${ECHO_T}$ac_ct_CC" >&6
2055     else
2056 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
2057 gezelter 1490 echo "${ECHO_T}no" >&6
2058     fi
2059    
2060     test -n "$ac_ct_CC" && break
2061     done
2062    
2063     CC=$ac_ct_CC
2064     fi
2065    
2066 gezelter 2081
2067     test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2068     See \`config.log' for more details." >&5
2069     echo "$as_me: error: no acceptable C compiler found in \$PATH
2070     See \`config.log' for more details." >&2;}
2071 gezelter 1490 { (exit 1); exit 1; }; }
2072    
2073 gezelter 2081 # Provide some information about the compiler.
2074     echo "$as_me:$LINENO:" \
2075     "checking for C compiler version" >&5
2076     ac_compiler=`set X $ac_compile; echo $2`
2077     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2078     (eval $ac_compiler --version </dev/null >&5) 2>&5
2079     ac_status=$?
2080     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081     (exit $ac_status); }
2082     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2083     (eval $ac_compiler -v </dev/null >&5) 2>&5
2084     ac_status=$?
2085     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086     (exit $ac_status); }
2087     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2088     (eval $ac_compiler -V </dev/null >&5) 2>&5
2089     ac_status=$?
2090     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091     (exit $ac_status); }
2092    
2093 gezelter 1490 cat >conftest.$ac_ext <<_ACEOF
2094 gezelter 2081 /* confdefs.h. */
2095     _ACEOF
2096     cat confdefs.h >>conftest.$ac_ext
2097     cat >>conftest.$ac_ext <<_ACEOF
2098     /* end confdefs.h. */
2099 gezelter 1490
2100     int
2101     main ()
2102     {
2103    
2104     ;
2105     return 0;
2106     }
2107     _ACEOF
2108     ac_clean_files_save=$ac_clean_files
2109 gezelter 2081 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2110 gezelter 1490 # Try to create an executable without -o first, disregard a.out.
2111 gezelter 2081 # It will help us diagnose broken compilers, and finding out an intuition
2112 gezelter 1490 # of exeext.
2113 gezelter 2081 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2114     echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2115 gezelter 1490 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2116 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2117 gezelter 1490 (eval $ac_link_default) 2>&5
2118     ac_status=$?
2119 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 gezelter 1490 (exit $ac_status); }; then
2121 gezelter 2081 # Find the output, starting from the most likely. This scheme is
2122     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2123     # resort.
2124    
2125     # Be careful to initialize this variable, since it used to be cached.
2126     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2127     ac_cv_exeext=
2128     # b.out is created by i960 compilers.
2129     for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2130     do
2131     test -f "$ac_file" || continue
2132 gezelter 1490 case $ac_file in
2133 gezelter 2081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2134     ;;
2135     conftest.$ac_ext )
2136     # This is the source file.
2137     ;;
2138     [ab].out )
2139     # We found the default executable, but exeext='' is most
2140     # certainly right.
2141     break;;
2142     *.* )
2143     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2144     # FIXME: I believe we export ac_cv_exeext for Libtool,
2145     # but it would be cool to find out if it's true. Does anybody
2146     # maintain Libtool? --akim.
2147     export ac_cv_exeext
2148     break;;
2149     * )
2150     break;;
2151 gezelter 1490 esac
2152     done
2153     else
2154     echo "$as_me: failed program was:" >&5
2155 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2156    
2157     { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2158     See \`config.log' for more details." >&5
2159     echo "$as_me: error: C compiler cannot create executables
2160     See \`config.log' for more details." >&2;}
2161 gezelter 1490 { (exit 77); exit 77; }; }
2162     fi
2163    
2164     ac_exeext=$ac_cv_exeext
2165 gezelter 2081 echo "$as_me:$LINENO: result: $ac_file" >&5
2166 gezelter 1490 echo "${ECHO_T}$ac_file" >&6
2167    
2168     # Check the compiler produces executables we can run. If not, either
2169     # the compiler is broken, or we cross compile.
2170 gezelter 2081 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2171 gezelter 1490 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2172     # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2173     # If not cross compiling, check that we can run a simple program.
2174     if test "$cross_compiling" != yes; then
2175     if { ac_try='./$ac_file'
2176 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 gezelter 1490 (eval $ac_try) 2>&5
2178     ac_status=$?
2179 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 gezelter 1490 (exit $ac_status); }; }; then
2181     cross_compiling=no
2182     else
2183     if test "$cross_compiling" = maybe; then
2184     cross_compiling=yes
2185     else
2186 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2187     If you meant to cross compile, use \`--host'.
2188     See \`config.log' for more details." >&5
2189 gezelter 1490 echo "$as_me: error: cannot run C compiled programs.
2190 gezelter 2081 If you meant to cross compile, use \`--host'.
2191     See \`config.log' for more details." >&2;}
2192 gezelter 1490 { (exit 1); exit 1; }; }
2193     fi
2194     fi
2195     fi
2196 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
2197 gezelter 1490 echo "${ECHO_T}yes" >&6
2198    
2199 gezelter 2081 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2200 gezelter 1490 ac_clean_files=$ac_clean_files_save
2201     # Check the compiler produces executables we can run. If not, either
2202     # the compiler is broken, or we cross compile.
2203 gezelter 2081 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2204 gezelter 1490 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2205 gezelter 2081 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2206 gezelter 1490 echo "${ECHO_T}$cross_compiling" >&6
2207    
2208 gezelter 2081 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2209     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2210     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2211 gezelter 1490 (eval $ac_link) 2>&5
2212     ac_status=$?
2213 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 gezelter 1490 (exit $ac_status); }; then
2215     # If both `conftest.exe' and `conftest' are `present' (well, observable)
2216     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2217     # work properly (i.e., refer to `conftest.exe'), while it won't with
2218     # `rm'.
2219 gezelter 2081 for ac_file in conftest.exe conftest conftest.*; do
2220     test -f "$ac_file" || continue
2221 gezelter 1490 case $ac_file in
2222 gezelter 2081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2223 gezelter 1490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2224 gezelter 2081 export ac_cv_exeext
2225     break;;
2226 gezelter 1490 * ) break;;
2227     esac
2228     done
2229     else
2230 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2231     See \`config.log' for more details." >&5
2232     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2233     See \`config.log' for more details." >&2;}
2234 gezelter 1490 { (exit 1); exit 1; }; }
2235     fi
2236    
2237     rm -f conftest$ac_cv_exeext
2238 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2239 gezelter 1490 echo "${ECHO_T}$ac_cv_exeext" >&6
2240    
2241     rm -f conftest.$ac_ext
2242     EXEEXT=$ac_cv_exeext
2243     ac_exeext=$EXEEXT
2244 gezelter 2081 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2245     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2246 gezelter 1490 if test "${ac_cv_objext+set}" = set; then
2247     echo $ECHO_N "(cached) $ECHO_C" >&6
2248     else
2249     cat >conftest.$ac_ext <<_ACEOF
2250 gezelter 2081 /* confdefs.h. */
2251     _ACEOF
2252     cat confdefs.h >>conftest.$ac_ext
2253     cat >>conftest.$ac_ext <<_ACEOF
2254     /* end confdefs.h. */
2255 gezelter 1490
2256     int
2257     main ()
2258     {
2259    
2260     ;
2261     return 0;
2262     }
2263     _ACEOF
2264     rm -f conftest.o conftest.obj
2265 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 gezelter 1490 (eval $ac_compile) 2>&5
2267     ac_status=$?
2268 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 gezelter 1490 (exit $ac_status); }; then
2270     for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2271     case $ac_file in
2272 gezelter 2081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2273 gezelter 1490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2274     break;;
2275     esac
2276     done
2277     else
2278     echo "$as_me: failed program was:" >&5
2279 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2280    
2281     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2282     See \`config.log' for more details." >&5
2283     echo "$as_me: error: cannot compute suffix of object files: cannot compile
2284     See \`config.log' for more details." >&2;}
2285 gezelter 1490 { (exit 1); exit 1; }; }
2286     fi
2287    
2288     rm -f conftest.$ac_cv_objext conftest.$ac_ext
2289     fi
2290 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2291 gezelter 1490 echo "${ECHO_T}$ac_cv_objext" >&6
2292     OBJEXT=$ac_cv_objext
2293     ac_objext=$OBJEXT
2294 gezelter 2081 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2295 gezelter 1490 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2296     if test "${ac_cv_c_compiler_gnu+set}" = set; then
2297     echo $ECHO_N "(cached) $ECHO_C" >&6
2298     else
2299     cat >conftest.$ac_ext <<_ACEOF
2300 gezelter 2081 /* confdefs.h. */
2301     _ACEOF
2302     cat confdefs.h >>conftest.$ac_ext
2303     cat >>conftest.$ac_ext <<_ACEOF
2304     /* end confdefs.h. */
2305 gezelter 1490
2306     int
2307     main ()
2308     {
2309     #ifndef __GNUC__
2310     choke me
2311     #endif
2312    
2313     ;
2314     return 0;
2315     }
2316     _ACEOF
2317     rm -f conftest.$ac_objext
2318 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319     (eval $ac_compile) 2>conftest.er1
2320 gezelter 1490 ac_status=$?
2321 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2322     rm -f conftest.er1
2323     cat conftest.err >&5
2324     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 gezelter 1490 (exit $ac_status); } &&
2326 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
2327     || test ! -s conftest.err'
2328     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 gezelter 1490 (eval $ac_try) 2>&5
2330     ac_status=$?
2331 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332     (exit $ac_status); }; } &&
2333     { ac_try='test -s conftest.$ac_objext'
2334     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335     (eval $ac_try) 2>&5
2336     ac_status=$?
2337     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 gezelter 1490 (exit $ac_status); }; }; then
2339     ac_compiler_gnu=yes
2340     else
2341     echo "$as_me: failed program was:" >&5
2342 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2343    
2344 gezelter 1490 ac_compiler_gnu=no
2345     fi
2346 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2347 gezelter 1490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2348    
2349     fi
2350 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2351 gezelter 1490 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2352     GCC=`test $ac_compiler_gnu = yes && echo yes`
2353     ac_test_CFLAGS=${CFLAGS+set}
2354     ac_save_CFLAGS=$CFLAGS
2355     CFLAGS="-g"
2356 gezelter 2081 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2357 gezelter 1490 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2358     if test "${ac_cv_prog_cc_g+set}" = set; then
2359     echo $ECHO_N "(cached) $ECHO_C" >&6
2360     else
2361     cat >conftest.$ac_ext <<_ACEOF
2362 gezelter 2081 /* confdefs.h. */
2363     _ACEOF
2364     cat confdefs.h >>conftest.$ac_ext
2365     cat >>conftest.$ac_ext <<_ACEOF
2366     /* end confdefs.h. */
2367 gezelter 1490
2368     int
2369     main ()
2370     {
2371    
2372     ;
2373     return 0;
2374     }
2375     _ACEOF
2376     rm -f conftest.$ac_objext
2377 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378     (eval $ac_compile) 2>conftest.er1
2379 gezelter 1490 ac_status=$?
2380 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2381     rm -f conftest.er1
2382     cat conftest.err >&5
2383     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 gezelter 1490 (exit $ac_status); } &&
2385 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
2386     || test ! -s conftest.err'
2387     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 gezelter 1490 (eval $ac_try) 2>&5
2389     ac_status=$?
2390 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391     (exit $ac_status); }; } &&
2392     { ac_try='test -s conftest.$ac_objext'
2393     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394     (eval $ac_try) 2>&5
2395     ac_status=$?
2396     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 gezelter 1490 (exit $ac_status); }; }; then
2398     ac_cv_prog_cc_g=yes
2399     else
2400     echo "$as_me: failed program was:" >&5
2401 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2402    
2403 gezelter 1490 ac_cv_prog_cc_g=no
2404     fi
2405 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2406 gezelter 1490 fi
2407 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2408 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2409     if test "$ac_test_CFLAGS" = set; then
2410     CFLAGS=$ac_save_CFLAGS
2411     elif test $ac_cv_prog_cc_g = yes; then
2412     if test "$GCC" = yes; then
2413     CFLAGS="-g -O2"
2414     else
2415     CFLAGS="-g"
2416     fi
2417     else
2418     if test "$GCC" = yes; then
2419     CFLAGS="-O2"
2420     else
2421     CFLAGS=
2422     fi
2423     fi
2424 gezelter 2081 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2425     echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2426     if test "${ac_cv_prog_cc_stdc+set}" = set; then
2427     echo $ECHO_N "(cached) $ECHO_C" >&6
2428     else
2429     ac_cv_prog_cc_stdc=no
2430     ac_save_CC=$CC
2431     cat >conftest.$ac_ext <<_ACEOF
2432     /* confdefs.h. */
2433     _ACEOF
2434     cat confdefs.h >>conftest.$ac_ext
2435     cat >>conftest.$ac_ext <<_ACEOF
2436     /* end confdefs.h. */
2437     #include <stdarg.h>
2438     #include <stdio.h>
2439     #include <sys/types.h>
2440     #include <sys/stat.h>
2441     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2442     struct buf { int x; };
2443     FILE * (*rcsopen) (struct buf *, struct stat *, int);
2444     static char *e (p, i)
2445     char **p;
2446     int i;
2447     {
2448     return p[i];
2449     }
2450     static char *f (char * (*g) (char **, int), char **p, ...)
2451     {
2452     char *s;
2453     va_list v;
2454     va_start (v,p);
2455     s = g (p, va_arg (v,int));
2456     va_end (v);
2457     return s;
2458     }
2459    
2460     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2461     function prototypes and stuff, but not '\xHH' hex character constants.
2462     These don't provoke an error unfortunately, instead are silently treated
2463     as 'x'. The following induces an error, until -std1 is added to get
2464     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2465     array size at least. It's necessary to write '\x00'==0 to get something
2466     that's true only with -std1. */
2467     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2468    
2469     int test (int i, double x);
2470     struct s1 {int (*f) (int a);};
2471     struct s2 {int (*f) (double a);};
2472     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2473     int argc;
2474     char **argv;
2475     int
2476     main ()
2477     {
2478     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2479     ;
2480     return 0;
2481     }
2482     _ACEOF
2483     # Don't try gcc -ansi; that turns off useful extensions and
2484     # breaks some systems' header files.
2485     # AIX -qlanglvl=ansi
2486     # Ultrix and OSF/1 -std1
2487     # HP-UX 10.20 and later -Ae
2488     # HP-UX older versions -Aa -D_HPUX_SOURCE
2489     # SVR4 -Xc -D__EXTENSIONS__
2490     for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2491     do
2492     CC="$ac_save_CC $ac_arg"
2493     rm -f conftest.$ac_objext
2494     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495     (eval $ac_compile) 2>conftest.er1
2496     ac_status=$?
2497     grep -v '^ *+' conftest.er1 >conftest.err
2498     rm -f conftest.er1
2499     cat conftest.err >&5
2500     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501     (exit $ac_status); } &&
2502     { ac_try='test -z "$ac_c_werror_flag"
2503     || test ! -s conftest.err'
2504     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505     (eval $ac_try) 2>&5
2506     ac_status=$?
2507     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508     (exit $ac_status); }; } &&
2509     { ac_try='test -s conftest.$ac_objext'
2510     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511     (eval $ac_try) 2>&5
2512     ac_status=$?
2513     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514     (exit $ac_status); }; }; then
2515     ac_cv_prog_cc_stdc=$ac_arg
2516     break
2517     else
2518     echo "$as_me: failed program was:" >&5
2519     sed 's/^/| /' conftest.$ac_ext >&5
2520    
2521     fi
2522     rm -f conftest.err conftest.$ac_objext
2523     done
2524     rm -f conftest.$ac_ext conftest.$ac_objext
2525     CC=$ac_save_CC
2526    
2527     fi
2528    
2529     case "x$ac_cv_prog_cc_stdc" in
2530     x|xno)
2531     echo "$as_me:$LINENO: result: none needed" >&5
2532     echo "${ECHO_T}none needed" >&6 ;;
2533     *)
2534     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2535     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2536     CC="$CC $ac_cv_prog_cc_stdc" ;;
2537     esac
2538    
2539 gezelter 1490 # Some people use a C++ compiler to compile C. Since we use `exit',
2540     # in C++ we need to declare it. In case someone uses the same compiler
2541     # for both compiling C and C++ we need to have the C++ compiler decide
2542     # the declaration of exit, since it's the most demanding environment.
2543     cat >conftest.$ac_ext <<_ACEOF
2544     #ifndef __cplusplus
2545     choke me
2546     #endif
2547     _ACEOF
2548     rm -f conftest.$ac_objext
2549 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550     (eval $ac_compile) 2>conftest.er1
2551 gezelter 1490 ac_status=$?
2552 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2553     rm -f conftest.er1
2554     cat conftest.err >&5
2555     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 gezelter 1490 (exit $ac_status); } &&
2557 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
2558     || test ! -s conftest.err'
2559     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 gezelter 1490 (eval $ac_try) 2>&5
2561     ac_status=$?
2562 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563     (exit $ac_status); }; } &&
2564     { ac_try='test -s conftest.$ac_objext'
2565     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566     (eval $ac_try) 2>&5
2567     ac_status=$?
2568     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 gezelter 1490 (exit $ac_status); }; }; then
2570     for ac_declaration in \
2571 gezelter 2081 '' \
2572 gezelter 1490 'extern "C" void std::exit (int) throw (); using std::exit;' \
2573     'extern "C" void std::exit (int); using std::exit;' \
2574     'extern "C" void exit (int) throw ();' \
2575     'extern "C" void exit (int);' \
2576     'void exit (int);'
2577     do
2578     cat >conftest.$ac_ext <<_ACEOF
2579 gezelter 2081 /* confdefs.h. */
2580     _ACEOF
2581     cat confdefs.h >>conftest.$ac_ext
2582     cat >>conftest.$ac_ext <<_ACEOF
2583     /* end confdefs.h. */
2584     $ac_declaration
2585 gezelter 2029 #include <stdlib.h>
2586 gezelter 1490 int
2587     main ()
2588     {
2589     exit (42);
2590     ;
2591     return 0;
2592     }
2593     _ACEOF
2594     rm -f conftest.$ac_objext
2595 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596     (eval $ac_compile) 2>conftest.er1
2597 gezelter 1490 ac_status=$?
2598 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2599     rm -f conftest.er1
2600     cat conftest.err >&5
2601     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 gezelter 1490 (exit $ac_status); } &&
2603 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
2604     || test ! -s conftest.err'
2605     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 gezelter 1490 (eval $ac_try) 2>&5
2607     ac_status=$?
2608 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609     (exit $ac_status); }; } &&
2610     { ac_try='test -s conftest.$ac_objext'
2611     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612     (eval $ac_try) 2>&5
2613     ac_status=$?
2614     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 gezelter 1490 (exit $ac_status); }; }; then
2616     :
2617     else
2618     echo "$as_me: failed program was:" >&5
2619 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2620    
2621 gezelter 1490 continue
2622     fi
2623 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2624 gezelter 1490 cat >conftest.$ac_ext <<_ACEOF
2625 gezelter 2081 /* confdefs.h. */
2626     _ACEOF
2627     cat confdefs.h >>conftest.$ac_ext
2628     cat >>conftest.$ac_ext <<_ACEOF
2629     /* end confdefs.h. */
2630 gezelter 1490 $ac_declaration
2631     int
2632     main ()
2633     {
2634     exit (42);
2635     ;
2636     return 0;
2637     }
2638     _ACEOF
2639     rm -f conftest.$ac_objext
2640 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641     (eval $ac_compile) 2>conftest.er1
2642 gezelter 1490 ac_status=$?
2643 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2644     rm -f conftest.er1
2645     cat conftest.err >&5
2646     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 gezelter 1490 (exit $ac_status); } &&
2648 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
2649     || test ! -s conftest.err'
2650     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 gezelter 1490 (eval $ac_try) 2>&5
2652     ac_status=$?
2653 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654     (exit $ac_status); }; } &&
2655     { ac_try='test -s conftest.$ac_objext'
2656     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657     (eval $ac_try) 2>&5
2658     ac_status=$?
2659     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 gezelter 1490 (exit $ac_status); }; }; then
2661     break
2662     else
2663     echo "$as_me: failed program was:" >&5
2664 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2665    
2666 gezelter 1490 fi
2667 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2668 gezelter 1490 done
2669 gezelter 2081 rm -f conftest*
2670     if test -n "$ac_declaration"; then
2671     echo '#ifdef __cplusplus' >>confdefs.h
2672     echo $ac_declaration >>confdefs.h
2673     echo '#endif' >>confdefs.h
2674     fi
2675 gezelter 1490
2676     else
2677     echo "$as_me: failed program was:" >&5
2678 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2679    
2680 gezelter 1490 fi
2681 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2682 gezelter 1490 ac_ext=c
2683     ac_cpp='$CPP $CPPFLAGS'
2684     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687    
2688 gezelter 2081
2689 gezelter 1490 ac_ext=cc
2690     ac_cpp='$CXXCPP $CPPFLAGS'
2691     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2694     if test -n "$ac_tool_prefix"; then
2695     for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2696     do
2697     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2698     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2699 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2700 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2701     if test "${ac_cv_prog_CXX+set}" = set; then
2702     echo $ECHO_N "(cached) $ECHO_C" >&6
2703     else
2704     if test -n "$CXX"; then
2705     ac_cv_prog_CXX="$CXX" # Let the user override the test.
2706     else
2707 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708     for as_dir in $PATH
2709     do
2710     IFS=$as_save_IFS
2711     test -z "$as_dir" && as_dir=.
2712     for ac_exec_ext in '' $ac_executable_extensions; do
2713     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2714     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2716     break 2
2717     fi
2718 gezelter 1490 done
2719 gezelter 2081 done
2720 gezelter 1490
2721     fi
2722     fi
2723     CXX=$ac_cv_prog_CXX
2724     if test -n "$CXX"; then
2725 gezelter 2081 echo "$as_me:$LINENO: result: $CXX" >&5
2726 gezelter 1490 echo "${ECHO_T}$CXX" >&6
2727     else
2728 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
2729 gezelter 1490 echo "${ECHO_T}no" >&6
2730     fi
2731    
2732     test -n "$CXX" && break
2733     done
2734     fi
2735     if test -z "$CXX"; then
2736     ac_ct_CXX=$CXX
2737     for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2738     do
2739     # Extract the first word of "$ac_prog", so it can be a program name with args.
2740     set dummy $ac_prog; ac_word=$2
2741 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2743     if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2744     echo $ECHO_N "(cached) $ECHO_C" >&6
2745     else
2746     if test -n "$ac_ct_CXX"; then
2747     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2748     else
2749 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750     for as_dir in $PATH
2751     do
2752     IFS=$as_save_IFS
2753     test -z "$as_dir" && as_dir=.
2754     for ac_exec_ext in '' $ac_executable_extensions; do
2755     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756     ac_cv_prog_ac_ct_CXX="$ac_prog"
2757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758     break 2
2759     fi
2760 gezelter 1490 done
2761 gezelter 2081 done
2762 gezelter 1490
2763     fi
2764     fi
2765     ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2766     if test -n "$ac_ct_CXX"; then
2767 gezelter 2081 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2768 gezelter 1490 echo "${ECHO_T}$ac_ct_CXX" >&6
2769     else
2770 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
2771 gezelter 1490 echo "${ECHO_T}no" >&6
2772     fi
2773    
2774     test -n "$ac_ct_CXX" && break
2775     done
2776     test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2777    
2778     CXX=$ac_ct_CXX
2779     fi
2780    
2781 gezelter 2081
2782     # Provide some information about the compiler.
2783     echo "$as_me:$LINENO:" \
2784     "checking for C++ compiler version" >&5
2785     ac_compiler=`set X $ac_compile; echo $2`
2786     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2787     (eval $ac_compiler --version </dev/null >&5) 2>&5
2788     ac_status=$?
2789     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790     (exit $ac_status); }
2791     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2792     (eval $ac_compiler -v </dev/null >&5) 2>&5
2793     ac_status=$?
2794     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795     (exit $ac_status); }
2796     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2797     (eval $ac_compiler -V </dev/null >&5) 2>&5
2798     ac_status=$?
2799     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800     (exit $ac_status); }
2801    
2802     echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2803 gezelter 1490 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2804     if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2805     echo $ECHO_N "(cached) $ECHO_C" >&6
2806     else
2807     cat >conftest.$ac_ext <<_ACEOF
2808 gezelter 2081 /* confdefs.h. */
2809     _ACEOF
2810     cat confdefs.h >>conftest.$ac_ext
2811     cat >>conftest.$ac_ext <<_ACEOF
2812     /* end confdefs.h. */
2813 gezelter 1490
2814     int
2815     main ()
2816     {
2817     #ifndef __GNUC__
2818     choke me
2819     #endif
2820    
2821     ;
2822     return 0;
2823     }
2824     _ACEOF
2825     rm -f conftest.$ac_objext
2826 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827     (eval $ac_compile) 2>conftest.er1
2828 gezelter 1490 ac_status=$?
2829 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2830     rm -f conftest.er1
2831     cat conftest.err >&5
2832     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 gezelter 1490 (exit $ac_status); } &&
2834 gezelter 2081 { ac_try='test -z "$ac_cxx_werror_flag"
2835     || test ! -s conftest.err'
2836     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 gezelter 1490 (eval $ac_try) 2>&5
2838     ac_status=$?
2839 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840     (exit $ac_status); }; } &&
2841     { ac_try='test -s conftest.$ac_objext'
2842     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843     (eval $ac_try) 2>&5
2844     ac_status=$?
2845     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 gezelter 1490 (exit $ac_status); }; }; then
2847     ac_compiler_gnu=yes
2848     else
2849     echo "$as_me: failed program was:" >&5
2850 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2851    
2852 gezelter 1490 ac_compiler_gnu=no
2853     fi
2854 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855 gezelter 1490 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2856    
2857     fi
2858 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2859 gezelter 1490 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2860     GXX=`test $ac_compiler_gnu = yes && echo yes`
2861     ac_test_CXXFLAGS=${CXXFLAGS+set}
2862     ac_save_CXXFLAGS=$CXXFLAGS
2863     CXXFLAGS="-g"
2864 gezelter 2081 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2865 gezelter 1490 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2866     if test "${ac_cv_prog_cxx_g+set}" = set; then
2867     echo $ECHO_N "(cached) $ECHO_C" >&6
2868     else
2869     cat >conftest.$ac_ext <<_ACEOF
2870 gezelter 2081 /* confdefs.h. */
2871     _ACEOF
2872     cat confdefs.h >>conftest.$ac_ext
2873     cat >>conftest.$ac_ext <<_ACEOF
2874     /* end confdefs.h. */
2875 gezelter 1490
2876     int
2877     main ()
2878     {
2879    
2880     ;
2881     return 0;
2882     }
2883     _ACEOF
2884     rm -f conftest.$ac_objext
2885 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886     (eval $ac_compile) 2>conftest.er1
2887 gezelter 1490 ac_status=$?
2888 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2889     rm -f conftest.er1
2890     cat conftest.err >&5
2891     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 gezelter 1490 (exit $ac_status); } &&
2893 gezelter 2081 { ac_try='test -z "$ac_cxx_werror_flag"
2894     || test ! -s conftest.err'
2895     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 gezelter 1490 (eval $ac_try) 2>&5
2897     ac_status=$?
2898 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899     (exit $ac_status); }; } &&
2900     { ac_try='test -s conftest.$ac_objext'
2901     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902     (eval $ac_try) 2>&5
2903     ac_status=$?
2904     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 gezelter 1490 (exit $ac_status); }; }; then
2906     ac_cv_prog_cxx_g=yes
2907     else
2908     echo "$as_me: failed program was:" >&5
2909 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2910    
2911 gezelter 1490 ac_cv_prog_cxx_g=no
2912     fi
2913 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914 gezelter 1490 fi
2915 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2916 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2917     if test "$ac_test_CXXFLAGS" = set; then
2918     CXXFLAGS=$ac_save_CXXFLAGS
2919     elif test $ac_cv_prog_cxx_g = yes; then
2920     if test "$GXX" = yes; then
2921     CXXFLAGS="-g -O2"
2922     else
2923     CXXFLAGS="-g"
2924     fi
2925     else
2926     if test "$GXX" = yes; then
2927     CXXFLAGS="-O2"
2928     else
2929     CXXFLAGS=
2930     fi
2931     fi
2932     for ac_declaration in \
2933 gezelter 2081 '' \
2934 gezelter 1490 'extern "C" void std::exit (int) throw (); using std::exit;' \
2935     'extern "C" void std::exit (int); using std::exit;' \
2936     'extern "C" void exit (int) throw ();' \
2937     'extern "C" void exit (int);' \
2938     'void exit (int);'
2939     do
2940     cat >conftest.$ac_ext <<_ACEOF
2941 gezelter 2081 /* confdefs.h. */
2942     _ACEOF
2943     cat confdefs.h >>conftest.$ac_ext
2944     cat >>conftest.$ac_ext <<_ACEOF
2945     /* end confdefs.h. */
2946     $ac_declaration
2947 gezelter 2029 #include <stdlib.h>
2948 gezelter 1490 int
2949     main ()
2950     {
2951     exit (42);
2952     ;
2953     return 0;
2954     }
2955     _ACEOF
2956     rm -f conftest.$ac_objext
2957 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2958     (eval $ac_compile) 2>conftest.er1
2959 gezelter 1490 ac_status=$?
2960 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
2961     rm -f conftest.er1
2962     cat conftest.err >&5
2963     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 gezelter 1490 (exit $ac_status); } &&
2965 gezelter 2081 { ac_try='test -z "$ac_cxx_werror_flag"
2966     || test ! -s conftest.err'
2967     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968 gezelter 1490 (eval $ac_try) 2>&5
2969     ac_status=$?
2970 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971     (exit $ac_status); }; } &&
2972     { ac_try='test -s conftest.$ac_objext'
2973     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974     (eval $ac_try) 2>&5
2975     ac_status=$?
2976     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 gezelter 1490 (exit $ac_status); }; }; then
2978     :
2979     else
2980     echo "$as_me: failed program was:" >&5
2981 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
2982    
2983 gezelter 1490 continue
2984     fi
2985 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2986 gezelter 1490 cat >conftest.$ac_ext <<_ACEOF
2987 gezelter 2081 /* confdefs.h. */
2988     _ACEOF
2989     cat confdefs.h >>conftest.$ac_ext
2990     cat >>conftest.$ac_ext <<_ACEOF
2991     /* end confdefs.h. */
2992 gezelter 1490 $ac_declaration
2993     int
2994     main ()
2995     {
2996     exit (42);
2997     ;
2998     return 0;
2999     }
3000     _ACEOF
3001     rm -f conftest.$ac_objext
3002 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3003     (eval $ac_compile) 2>conftest.er1
3004 gezelter 1490 ac_status=$?
3005 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3006     rm -f conftest.er1
3007     cat conftest.err >&5
3008     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 gezelter 1490 (exit $ac_status); } &&
3010 gezelter 2081 { ac_try='test -z "$ac_cxx_werror_flag"
3011     || test ! -s conftest.err'
3012     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 gezelter 1490 (eval $ac_try) 2>&5
3014     ac_status=$?
3015 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016     (exit $ac_status); }; } &&
3017     { ac_try='test -s conftest.$ac_objext'
3018     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019     (eval $ac_try) 2>&5
3020     ac_status=$?
3021     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 gezelter 1490 (exit $ac_status); }; }; then
3023     break
3024     else
3025     echo "$as_me: failed program was:" >&5
3026 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3027    
3028 gezelter 1490 fi
3029 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3030 gezelter 1490 done
3031 gezelter 2081 rm -f conftest*
3032     if test -n "$ac_declaration"; then
3033     echo '#ifdef __cplusplus' >>confdefs.h
3034     echo $ac_declaration >>confdefs.h
3035     echo '#endif' >>confdefs.h
3036     fi
3037 gezelter 1490
3038     ac_ext=c
3039     ac_cpp='$CPP $CPPFLAGS'
3040     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3043    
3044 gezelter 2081
3045 gezelter 1490 OOPSE_TEMPLATE_FLAGS=""
3046     if test $ac_cv_cxx_compiler_gnu = no; then
3047 gezelter 2081 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
3048 gezelter 1490 echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
3049     echo 'void f(){}' > conftest.cc
3050     if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
3051 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3052 gezelter 1490 echo "${ECHO_T}yes" >&6
3053     OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
3054     else
3055 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3056 gezelter 1490 echo "${ECHO_T}no" >&6
3057     fi
3058     rm -f conftest*
3059 gezelter 2081 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
3060 gezelter 1490 echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
3061     echo 'void f(){}' > conftest.cc
3062     if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
3063 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3064 gezelter 1490 echo "${ECHO_T}yes" >&6
3065     OOPSE_TEMPLATE_FLAGS="-instances=static"
3066     else
3067 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3068 gezelter 1490 echo "${ECHO_T}no" >&6
3069     fi
3070     rm -f conftest*
3071 gezelter 2081 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
3072 gezelter 1490 echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
3073     echo 'void f(){}' > conftest.cc
3074     if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
3075 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3076 gezelter 1490 echo "${ECHO_T}yes" >&6
3077     OOPSE_TEMPLATE_FLAGS="-pto"
3078     else
3079 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3080 gezelter 1490 echo "${ECHO_T}no" >&6
3081     fi
3082     rm -f conftest*
3083 gezelter 2081 echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
3084 gezelter 1490 echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
3085     echo 'void f(){}' > conftest.cc
3086     if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
3087 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3088 gezelter 1490 echo "${ECHO_T}yes" >&6
3089    
3090 gezelter 2081
3091 gezelter 1490 EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
3092     else
3093 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3094 gezelter 1490 echo "${ECHO_T}no" >&6
3095     fi
3096     fi
3097    
3098 gezelter 2081
3099    
3100    
3101 gezelter 1490 ac_ext=f90
3102     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3103     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3105     if test -n "$ac_tool_prefix"; then
3106     for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3107     do
3108     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3110 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3112     if test "${ac_cv_prog_F90+set}" = set; then
3113     echo $ECHO_N "(cached) $ECHO_C" >&6
3114     else
3115     if test -n "$F90"; then
3116     ac_cv_prog_F90="$F90" # Let the user override the test.
3117     else
3118 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119     for as_dir in $PATH
3120     do
3121     IFS=$as_save_IFS
3122     test -z "$as_dir" && as_dir=.
3123     for ac_exec_ext in '' $ac_executable_extensions; do
3124     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125     ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127     break 2
3128     fi
3129 gezelter 1490 done
3130 gezelter 2081 done
3131 gezelter 1490
3132     fi
3133     fi
3134     F90=$ac_cv_prog_F90
3135     if test -n "$F90"; then
3136 gezelter 2081 echo "$as_me:$LINENO: result: $F90" >&5
3137 gezelter 1490 echo "${ECHO_T}$F90" >&6
3138     else
3139 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3140 gezelter 1490 echo "${ECHO_T}no" >&6
3141     fi
3142    
3143     test -n "$F90" && break
3144     done
3145     fi
3146     if test -z "$F90"; then
3147     ac_ct_F90=$F90
3148     for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3149     do
3150     # Extract the first word of "$ac_prog", so it can be a program name with args.
3151     set dummy $ac_prog; ac_word=$2
3152 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
3153 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3154     if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3155     echo $ECHO_N "(cached) $ECHO_C" >&6
3156     else
3157     if test -n "$ac_ct_F90"; then
3158     ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3159     else
3160 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161     for as_dir in $PATH
3162     do
3163     IFS=$as_save_IFS
3164     test -z "$as_dir" && as_dir=.
3165     for ac_exec_ext in '' $ac_executable_extensions; do
3166     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167     ac_cv_prog_ac_ct_F90="$ac_prog"
3168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3169     break 2
3170     fi
3171 gezelter 1490 done
3172 gezelter 2081 done
3173 gezelter 1490
3174     fi
3175     fi
3176     ac_ct_F90=$ac_cv_prog_ac_ct_F90
3177     if test -n "$ac_ct_F90"; then
3178 gezelter 2081 echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3179 gezelter 1490 echo "${ECHO_T}$ac_ct_F90" >&6
3180     else
3181 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3182 gezelter 1490 echo "${ECHO_T}no" >&6
3183     fi
3184    
3185     test -n "$ac_ct_F90" && break
3186     done
3187    
3188     F90=$ac_ct_F90
3189     fi
3190    
3191 gezelter 2081
3192 gezelter 1490 # If we don't use `.F90' as extension, the preprocessor is not run on the
3193     # input file.
3194     ac_save_ext=$ac_ext
3195     ac_ext=F90
3196 gezelter 2081 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3197 gezelter 1490 echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3198     if test "${ac_cv_f90_compiler_gnu+set}" = set; then
3199     echo $ECHO_N "(cached) $ECHO_C" >&6
3200     else
3201     cat >conftest.$ac_ext <<_ACEOF
3202    
3203     program main
3204    
3205     #ifndef __GNUC__
3206     choke me
3207     #endif
3208    
3209     end program main
3210    
3211     _ACEOF
3212     rm -f conftest.$ac_objext
3213 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3214     (eval $ac_compile) 2>conftest.er1
3215 gezelter 1490 ac_status=$?
3216 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3217     rm -f conftest.er1
3218     cat conftest.err >&5
3219     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 gezelter 1490 (exit $ac_status); } &&
3221 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
3222     || test ! -s conftest.err'
3223     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224 gezelter 1490 (eval $ac_try) 2>&5
3225     ac_status=$?
3226 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227     (exit $ac_status); }; } &&
3228     { ac_try='test -s conftest.$ac_objext'
3229     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230     (eval $ac_try) 2>&5
3231     ac_status=$?
3232     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 gezelter 1490 (exit $ac_status); }; }; then
3234     ac_compiler_gnu=yes
3235     else
3236     echo "$as_me: failed program was:" >&5
3237 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3238    
3239 gezelter 1490 ac_compiler_gnu=no
3240     fi
3241 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3242 gezelter 1490 ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3243    
3244     fi
3245 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3246 gezelter 1490 echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3247     ac_ext=$ac_save_ext
3248     G95=`test $ac_compiler_gnu = yes && echo yes`
3249     ac_ext=c
3250     ac_cpp='$CPP $CPPFLAGS'
3251     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3252     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3253     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3254    
3255 gezelter 2081
3256    
3257    
3258    
3259 gezelter 1490 # Try to determine native compiler flags that allow us to use F90 suffix
3260     # for preprocessed f90 source.
3261    
3262     if test "$ac_test_PREPFLAG" != "set"; then
3263     PREPFLAG=""
3264     case "${host_cpu}-${host_os}" in
3265    
3266     *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3267     PREPFLAG="-fpp1 "
3268     fi;;
3269     *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
3270     PREPFLAG="-qsuffix=cpp=F90 "
3271     fi;;
3272     *darwin*)
3273     if test "$F90" = f90 -o "$F90" = xlf90; then
3274     PREPFLAG="-qsuffix=cpp=F90 "
3275     fi;;
3276     esac
3277    
3278     if test -z "$PREPFLAG"; then
3279 gezelter 2081 { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3280 gezelter 1490 echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3281     PREPFLAG=""
3282     fi
3283    
3284 gezelter 2081 echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3285 gezelter 1490 echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3286    
3287 gezelter 2081
3288 gezelter 1490 ac_ext=f90
3289     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3290     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3292    
3293     ac_save_ext=$ac_ext
3294     ac_ext=F90
3295     ac_save_F90FLAGS=$F90FLAGS
3296    
3297     if test "$PREPFLAG"; then
3298     F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3299     fi
3300    
3301     cat >conftest.$ac_ext <<_ACEOF
3302    
3303 gezelter 2081
3304 gezelter 1490 program main
3305    
3306     integer :: i
3307     i = 1
3308    
3309 gezelter 2081
3310 gezelter 1490 end program main
3311    
3312     _ACEOF
3313     rm -f conftest.$ac_objext
3314 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3315     (eval $ac_compile) 2>conftest.er1
3316 gezelter 1490 ac_status=$?
3317 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3318     rm -f conftest.er1
3319     cat conftest.err >&5
3320     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 gezelter 1490 (exit $ac_status); } &&
3322 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
3323     || test ! -s conftest.err'
3324     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 gezelter 1490 (eval $ac_try) 2>&5
3326     ac_status=$?
3327 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328     (exit $ac_status); }; } &&
3329     { ac_try='test -s conftest.$ac_objext'
3330     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331     (eval $ac_try) 2>&5
3332     ac_status=$?
3333     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 gezelter 1490 (exit $ac_status); }; }; then
3335     prepflagworks=1
3336     else
3337     echo "$as_me: failed program was:" >&5
3338 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3339    
3340 gezelter 1490 prepflagworks=0
3341     fi
3342 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3343 gezelter 1490
3344     F90FLAGS=$ac_save_F90FLAGS
3345     ac_ext=$ac_save_ext
3346     ac_ext=c
3347     ac_cpp='$CPP $CPPFLAGS'
3348     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351    
3352 gezelter 2081
3353 gezelter 1490 if test "$prepflagworks" = 1; then
3354 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3355 gezelter 1490 echo "${ECHO_T}yes" >&6
3356    
3357     else
3358 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3359 gezelter 1490 echo "${ECHO_T}no" >&6
3360 gezelter 2081 { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3361 gezelter 1490 echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3362     { (exit 1); exit 1; }; }
3363     fi
3364     fi
3365    
3366 gezelter 2081
3367    
3368    
3369    
3370 gezelter 1490 # Try to determine native compiler flags that allow us to use F90 suffix
3371     # for preprocessed f90 source with -D type defines
3372    
3373     if test "$ac_test_PREPDEFFLAG" != "set"; then
3374     PREPDEFFLAG=""
3375     case "${host_cpu}-${host_os}" in
3376    
3377     *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3378     PREPDEFFLAG=" "
3379     fi;;
3380     *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
3381     PREPDEFFLAG="-WF,"
3382     fi;;
3383     *darwin*)
3384     if test "$F90" = f90 -o "$F90" = xlf90; then
3385     PREPDEFFLAG="-WF,"
3386     fi;;
3387     esac
3388    
3389     if test -z "$PREPDEFFLAG"; then
3390 gezelter 2081 { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3391 gezelter 1490 echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3392     PREPDEFFLAG=" "
3393     fi
3394    
3395 gezelter 2081 echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3396 gezelter 1490 echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3397    
3398 gezelter 2081
3399 gezelter 1490 ac_ext=f90
3400     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3401     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3403    
3404     ac_save_ext=$ac_ext
3405     ac_ext=F90
3406     ac_save_F90FLAGS=$F90FLAGS
3407    
3408     if test "$PREPDEFFLAG"; then
3409     F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3410     fi
3411    
3412     cat >conftest.$ac_ext <<_ACEOF
3413    
3414 gezelter 2081
3415 gezelter 1490 program main
3416    
3417     integer :: i
3418     #ifdef TEST
3419     i = 1
3420     #else
3421     choke me
3422     #endif
3423    
3424 gezelter 2081
3425 gezelter 1490 end program main
3426    
3427     _ACEOF
3428     rm -f conftest.$ac_objext
3429 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430     (eval $ac_compile) 2>conftest.er1
3431 gezelter 1490 ac_status=$?
3432 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3433     rm -f conftest.er1
3434     cat conftest.err >&5
3435     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 gezelter 1490 (exit $ac_status); } &&
3437 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
3438     || test ! -s conftest.err'
3439     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 gezelter 1490 (eval $ac_try) 2>&5
3441     ac_status=$?
3442 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443     (exit $ac_status); }; } &&
3444     { ac_try='test -s conftest.$ac_objext'
3445     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446     (eval $ac_try) 2>&5
3447     ac_status=$?
3448     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 gezelter 1490 (exit $ac_status); }; }; then
3450     prepdefflagworks=1
3451     else
3452     echo "$as_me: failed program was:" >&5
3453 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3454    
3455 gezelter 1490 prepdefflagworks=0
3456     fi
3457 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3458 gezelter 1490
3459     F90FLAGS=$ac_save_F90FLAGS
3460     ac_ext=$ac_save_ext
3461     ac_ext=c
3462     ac_cpp='$CPP $CPPFLAGS'
3463     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466    
3467 gezelter 2081
3468    
3469 gezelter 1490 if test "$prepdefflagworks" = 1; then
3470 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
3471 gezelter 1490 echo "${ECHO_T}yes" >&6
3472    
3473     else
3474 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
3475 gezelter 1490 echo "${ECHO_T}no" >&6
3476 gezelter 2081 { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3477 gezelter 1490 echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3478     { (exit 1); exit 1; }; }
3479     fi
3480     fi
3481    
3482     ac_ext=f90
3483     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3484     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3486    
3487 gezelter 2081
3488    
3489 gezelter 1490 ac_ext=f90
3490     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3491     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3493 gezelter 2081 echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3494 gezelter 1490 echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3495     if test "${ac_cv_prog_f90_v+set}" = set; then
3496     echo $ECHO_N "(cached) $ECHO_C" >&6
3497     else
3498    
3499     cat >conftest.$ac_ext <<_ACEOF
3500    
3501     program main
3502    
3503 gezelter 2081
3504 gezelter 1490 end program main
3505    
3506     _ACEOF
3507     rm -f conftest.$ac_objext
3508 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509     (eval $ac_compile) 2>conftest.er1
3510 gezelter 1490 ac_status=$?
3511 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3512     rm -f conftest.er1
3513     cat conftest.err >&5
3514     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 gezelter 1490 (exit $ac_status); } &&
3516 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
3517     || test ! -s conftest.err'
3518     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 gezelter 1490 (eval $ac_try) 2>&5
3520     ac_status=$?
3521 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522     (exit $ac_status); }; } &&
3523     { ac_try='test -s conftest.$ac_objext'
3524     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525     (eval $ac_try) 2>&5
3526     ac_status=$?
3527     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 gezelter 1490 (exit $ac_status); }; }; then
3529     ac_cv_prog_f90_v=
3530     # Try some options frequently used verbose output
3531     for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3532     ac_ext=f90
3533     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3534     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3536    
3537     cat >conftest.$ac_ext <<_ACEOF
3538    
3539     program main
3540    
3541 gezelter 2081
3542 gezelter 1490 end program main
3543    
3544     _ACEOF
3545    
3546     # Compile and link our simple test program by passing a flag (argument
3547     # 1 to this macro) to the Fortran 90 compiler in order to get
3548     # "verbose" output that we can then parse for the Fortran 90 linker
3549     # flags.
3550     ac_save_F90FLAGS=$F90FLAGS
3551     F90FLAGS="$F90FLAGS $ac_verb"
3552    
3553 gezelter 2199 (eval echo $as_me:3553: \"$ac_link\") >&5
3554 gezelter 1490 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3555     echo "$ac_f90_v_output" >&5
3556     F90FLAGS=$ac_save_F90FLAGS
3557    
3558     rm -f conftest.*
3559     ac_ext=f90
3560     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3561     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3563    
3564     # If we are using xlf then replace all the commas with spaces.
3565     if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3566     ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3567     fi
3568    
3569     # If we are using Cray Fortran then delete quotes.
3570     # Use "\"" instead of '"' for font-lock-mode.
3571     # FIXME: a more general fix for quoted arguments with spaces?
3572     if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3573     ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3574     fi
3575     # look for -l* and *.a constructs in the output
3576     for ac_arg in $ac_f90_v_output; do
3577     case $ac_arg in
3578     [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3579     ac_cv_prog_f90_v=$ac_verb
3580     break 2 ;;
3581     esac
3582     done
3583     done
3584     if test -z "$ac_cv_prog_f90_v"; then
3585 gezelter 2081 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3586 gezelter 1490 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3587     fi
3588     else
3589     echo "$as_me: failed program was:" >&5
3590 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3591    
3592     { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3593 gezelter 1490 echo "$as_me: WARNING: compilation failed" >&2;}
3594     fi
3595 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3596 gezelter 1490
3597     fi
3598 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3599 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3600 gezelter 2081 echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3601 gezelter 1490 echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3602     if test "${ac_cv_flibs+set}" = set; then
3603     echo $ECHO_N "(cached) $ECHO_C" >&6
3604     else
3605     if test "x$F90LIBS" != "x"; then
3606     ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3607     else
3608    
3609     ac_ext=f90
3610     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3611     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3613    
3614     cat >conftest.$ac_ext <<_ACEOF
3615    
3616     program main
3617    
3618 gezelter 2081
3619 gezelter 1490 end program main
3620    
3621     _ACEOF
3622    
3623     # Compile and link our simple test program by passing a flag (argument
3624     # 1 to this macro) to the Fortran 90 compiler in order to get
3625     # "verbose" output that we can then parse for the Fortran 90 linker
3626     # flags.
3627     ac_save_F90FLAGS=$F90FLAGS
3628     F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3629    
3630 gezelter 2199 (eval echo $as_me:3630: \"$ac_link\") >&5
3631 gezelter 1490 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3632     echo "$ac_f90_v_output" >&5
3633     F90FLAGS=$ac_save_F90FLAGS
3634    
3635     rm -f conftest.*
3636     ac_ext=f90
3637     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3638     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3640    
3641     # If we are using xlf then replace all the commas with spaces.
3642     if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3643     ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3644     fi
3645    
3646     # If we are using Cray Fortran then delete quotes.
3647     # Use "\"" instead of '"' for font-lock-mode.
3648     # FIXME: a more general fix for quoted arguments with spaces?
3649     if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3650     ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3651     fi
3652    
3653     ac_cv_f90libs=
3654    
3655     # Save positional arguments (if any)
3656     ac_save_positional="$@"
3657    
3658     set X $ac_f90_v_output
3659     while test $# != 1; do
3660     shift
3661     ac_arg=$1
3662     case $ac_arg in
3663     [\\/]*.a | ?:[\\/]*.a)
3664     ac_exists=false
3665     for ac_i in $ac_cv_f90libs; do
3666     if test x"$ac_arg" = x"$ac_i"; then
3667     ac_exists=true
3668     break
3669     fi
3670     done
3671    
3672     if test x"$ac_exists" = xtrue; then
3673     :
3674     else
3675     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3676     fi
3677    
3678     ;;
3679     -bI:*)
3680     ac_exists=false
3681     for ac_i in $ac_cv_f90libs; do
3682     if test x"$ac_arg" = x"$ac_i"; then
3683     ac_exists=true
3684     break
3685     fi
3686     done
3687    
3688     if test x"$ac_exists" = xtrue; then
3689     :
3690     else
3691     if test "$ac_compiler_gnu" = yes; then
3692     for ac_link_opt in $ac_arg; do
3693     ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3694     done
3695     else
3696     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3697     fi
3698     fi
3699    
3700     ;;
3701     # Ignore these flags.
3702     -lang* | -lcrt[012].o | -lc | -lgcc | -LANG:=*)
3703     ;;
3704     -lkernel32)
3705     test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3706     ;;
3707     -[LRuY])
3708     # These flags, when seen by themselves, take an argument.
3709     # We remove the space between option and argument and re-iterate
3710     # unless we find an empty arg or a new option (starting with -)
3711     case $2 in
3712     "" | -*);;
3713     *)
3714     ac_arg="$ac_arg$2"
3715    
3716     shift; shift
3717     set X $ac_arg "$@"
3718     ;;
3719     esac
3720     ;;
3721     -YP,*)
3722     for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3723     ac_exists=false
3724     for ac_i in $ac_cv_f90libs; do
3725     if test x"$ac_j" = x"$ac_i"; then
3726     ac_exists=true
3727     break
3728     fi
3729     done
3730    
3731     if test x"$ac_exists" = xtrue; then
3732     :
3733     else
3734     ac_arg="$ac_arg $ac_j"
3735     ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3736     fi
3737    
3738     done
3739     ;;
3740     -[lLR]*)
3741     ac_exists=false
3742     for ac_i in $ac_cv_f90libs; do
3743     if test x"$ac_arg" = x"$ac_i"; then
3744     ac_exists=true
3745     break
3746     fi
3747     done
3748    
3749     if test x"$ac_exists" = xtrue; then
3750     :
3751     else
3752     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3753     fi
3754    
3755     ;;
3756     # Ignore everything else.
3757     esac
3758     done
3759     # restore positional arguments
3760     set X $ac_save_positional; shift
3761    
3762     # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
3763     # then we insist that the "run path" must be an absolute path (i.e. it
3764     # must begin with a "/").
3765     case `(uname -sr) 2>/dev/null` in
3766     "SunOS 5"*)
3767     ac_ld_run_path=`echo $ac_f90_v_output |
3768     sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3769     test "x$ac_ld_run_path" != x &&
3770    
3771     if test "$ac_compiler_gnu" = yes; then
3772     for ac_link_opt in $ac_ld_run_path; do
3773     ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3774     done
3775     else
3776     ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
3777     fi
3778     ;;
3779     esac
3780     fi # test "x$F90LIBS" = "x"
3781    
3782     fi
3783 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
3784 gezelter 1490 echo "${ECHO_T}$ac_cv_flibs" >&6
3785     F90LIBS="$ac_cv_f90libs"
3786    
3787     ac_ext=f90
3788     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3789     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3791    
3792 gezelter 2081
3793     echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
3794 gezelter 1490 echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
3795     if test "${ac_cv_f90_mangling+set}" = set; then
3796     echo $ECHO_N "(cached) $ECHO_C" >&6
3797     else
3798     ac_ext=f90
3799     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3800     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3801     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3802     cat >conftest.$ac_ext <<_ACEOF
3803     subroutine foobar()
3804     return
3805     end
3806     subroutine foo_bar()
3807     return
3808     end
3809     _ACEOF
3810     rm -f conftest.$ac_objext
3811 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812     (eval $ac_compile) 2>conftest.er1
3813 gezelter 1490 ac_status=$?
3814 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3815     rm -f conftest.er1
3816     cat conftest.err >&5
3817     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 gezelter 1490 (exit $ac_status); } &&
3819 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
3820     || test ! -s conftest.err'
3821     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 gezelter 1490 (eval $ac_try) 2>&5
3823     ac_status=$?
3824 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825     (exit $ac_status); }; } &&
3826     { ac_try='test -s conftest.$ac_objext'
3827     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828     (eval $ac_try) 2>&5
3829     ac_status=$?
3830     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 gezelter 1490 (exit $ac_status); }; }; then
3832     mv conftest.$ac_objext cf90_test.$ac_objext
3833    
3834     ac_ext=c
3835     ac_cpp='$CPP $CPPFLAGS'
3836     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3839    
3840     ac_save_LIBS=$LIBS
3841     LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
3842    
3843     ac_success=no
3844     for ac_foobar in foobar FOOBAR; do
3845     for ac_underscore in "" "_"; do
3846     ac_func="$ac_foobar$ac_underscore"
3847     cat >conftest.$ac_ext <<_ACEOF
3848 gezelter 2081 /* confdefs.h. */
3849     _ACEOF
3850     cat confdefs.h >>conftest.$ac_ext
3851     cat >>conftest.$ac_ext <<_ACEOF
3852     /* end confdefs.h. */
3853 gezelter 1490
3854     /* Override any gcc2 internal prototype to avoid an error. */
3855     #ifdef __cplusplus
3856     extern "C"
3857     #endif
3858     /* We use char because int might match the return type of a gcc2
3859     builtin and then its argument prototype would still apply. */
3860     char $ac_func ();
3861     int
3862     main ()
3863     {
3864     $ac_func ();
3865     ;
3866     return 0;
3867     }
3868     _ACEOF
3869     rm -f conftest.$ac_objext conftest$ac_exeext
3870 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3871     (eval $ac_link) 2>conftest.er1
3872 gezelter 1490 ac_status=$?
3873 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3874     rm -f conftest.er1
3875     cat conftest.err >&5
3876     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 gezelter 1490 (exit $ac_status); } &&
3878 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
3879     || test ! -s conftest.err'
3880     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881 gezelter 1490 (eval $ac_try) 2>&5
3882     ac_status=$?
3883 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884     (exit $ac_status); }; } &&
3885     { ac_try='test -s conftest$ac_exeext'
3886     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887     (eval $ac_try) 2>&5
3888     ac_status=$?
3889     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 gezelter 1490 (exit $ac_status); }; }; then
3891     ac_success=yes; break 2
3892     else
3893     echo "$as_me: failed program was:" >&5
3894 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3895    
3896 gezelter 1490 fi
3897 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
3898     conftest$ac_exeext conftest.$ac_ext
3899 gezelter 1490 done
3900     done
3901    
3902     if test "$ac_success" = "yes"; then
3903     case $ac_foobar in
3904     foobar)
3905     ac_case=lower
3906     ac_foo_bar=foo_bar
3907     ;;
3908     FOOBAR)
3909     ac_case=upper
3910     ac_foo_bar=FOO_BAR
3911     ;;
3912     esac
3913    
3914     ac_success_extra=no
3915     for ac_extra in "" "_"; do
3916     ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3917    
3918     cat >conftest.$ac_ext <<_ACEOF
3919 gezelter 2081 /* confdefs.h. */
3920     _ACEOF
3921     cat confdefs.h >>conftest.$ac_ext
3922     cat >>conftest.$ac_ext <<_ACEOF
3923     /* end confdefs.h. */
3924 gezelter 1490
3925     /* Override any gcc2 internal prototype to avoid an error. */
3926     #ifdef __cplusplus
3927     extern "C"
3928     #endif
3929     /* We use char because int might match the return type of a gcc2
3930     builtin and then its argument prototype would still apply. */
3931     char $ac_func ();
3932     int
3933     main ()
3934     {
3935     $ac_func ();
3936     ;
3937     return 0;
3938     }
3939     _ACEOF
3940     rm -f conftest.$ac_objext conftest$ac_exeext
3941 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3942     (eval $ac_link) 2>conftest.er1
3943 gezelter 1490 ac_status=$?
3944 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
3945     rm -f conftest.er1
3946     cat conftest.err >&5
3947     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 gezelter 1490 (exit $ac_status); } &&
3949 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
3950     || test ! -s conftest.err'
3951     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 gezelter 1490 (eval $ac_try) 2>&5
3953     ac_status=$?
3954 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955     (exit $ac_status); }; } &&
3956     { ac_try='test -s conftest$ac_exeext'
3957     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958     (eval $ac_try) 2>&5
3959     ac_status=$?
3960     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 gezelter 1490 (exit $ac_status); }; }; then
3962     ac_success_extra=yes; break
3963     else
3964     echo "$as_me: failed program was:" >&5
3965 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
3966    
3967 gezelter 1490 fi
3968 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
3969     conftest$ac_exeext conftest.$ac_ext
3970 gezelter 1490 done
3971    
3972     if test "$ac_success_extra" = "yes"; then
3973     ac_cv_f90_mangling="$ac_case case"
3974     if test -z "$ac_underscore"; then
3975     ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
3976     else
3977     ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3978    
3979     fi
3980     if test -z "$ac_extra"; then
3981     ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
3982     else
3983     ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
3984     fi
3985     else
3986     ac_cv_f90_mangling="unknown"
3987     fi
3988     else
3989     ac_cv_f90_mangling="unknown"
3990    
3991     fi
3992    
3993     LIBS=$ac_save_LIBS
3994     ac_ext=f90
3995     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3996     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3998     rm -f cf90_test* conftest*
3999     else
4000     echo "$as_me: failed program was:" >&5
4001 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4002    
4003 gezelter 1490 fi
4004 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4005 gezelter 1490 ac_ext=f90
4006     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4007     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4009    
4010     fi
4011 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
4012 gezelter 1490 echo "${ECHO_T}$ac_cv_f90_mangling" >&6
4013    
4014 gezelter 2081
4015    
4016 gezelter 1490 case $ac_cv_f90_mangling in
4017     "lower case, no underscore, no extra underscore")
4018 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4019 gezelter 1490 #define F90_FUNC(name,NAME) name
4020 gezelter 2081 _ACEOF
4021 gezelter 1490
4022 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4023 gezelter 1490 #define F90_FUNC_(name,NAME) name
4024 gezelter 2081 _ACEOF
4025 gezelter 1490 ;;
4026     "lower case, no underscore, extra underscore")
4027 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4028 gezelter 1490 #define F90_FUNC(name,NAME) name
4029 gezelter 2081 _ACEOF
4030 gezelter 1490
4031 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4032 gezelter 1490 #define F90_FUNC_(name,NAME) name ## _
4033 gezelter 2081 _ACEOF
4034 gezelter 1490 ;;
4035     "lower case, underscore, no extra underscore")
4036 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4037 gezelter 1490 #define F90_FUNC(name,NAME) name ## _
4038 gezelter 2081 _ACEOF
4039 gezelter 1490
4040 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4041 gezelter 1490 #define F90_FUNC_(name,NAME) name ## _
4042 gezelter 2081 _ACEOF
4043 gezelter 1490 ;;
4044     "lower case, underscore, extra underscore")
4045 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4046 gezelter 1490 #define F90_FUNC(name,NAME) name ## _
4047 gezelter 2081 _ACEOF
4048 gezelter 1490
4049 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4050 gezelter 1490 #define F90_FUNC_(name,NAME) name ## __
4051 gezelter 2081 _ACEOF
4052 gezelter 1490 ;;
4053     "upper case, no underscore, no extra underscore")
4054 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4055 gezelter 1490 #define F90_FUNC(name,NAME) NAME
4056 gezelter 2081 _ACEOF
4057 gezelter 1490
4058 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4059 gezelter 1490 #define F90_FUNC_(name,NAME) NAME
4060 gezelter 2081 _ACEOF
4061 gezelter 1490 ;;
4062     "upper case, no underscore, extra underscore")
4063 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4064 gezelter 1490 #define F90_FUNC(name,NAME) NAME
4065 gezelter 2081 _ACEOF
4066 gezelter 1490
4067 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4068 gezelter 1490 #define F90_FUNC_(name,NAME) NAME ## _
4069 gezelter 2081 _ACEOF
4070 gezelter 1490 ;;
4071     "upper case, underscore, no extra underscore")
4072 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4073 gezelter 1490 #define F90_FUNC(name,NAME) NAME ## _
4074 gezelter 2081 _ACEOF
4075 gezelter 1490
4076 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4077 gezelter 1490 #define F90_FUNC_(name,NAME) NAME ## _
4078 gezelter 2081 _ACEOF
4079 gezelter 1490 ;;
4080     "upper case, underscore, extra underscore")
4081 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4082 gezelter 1490 #define F90_FUNC(name,NAME) NAME ## _
4083 gezelter 2081 _ACEOF
4084 gezelter 1490
4085 gezelter 2081 cat >>confdefs.h <<\_ACEOF
4086 gezelter 1490 #define F90_FUNC_(name,NAME) NAME ## __
4087 gezelter 2081 _ACEOF
4088 gezelter 1490 ;;
4089     *)
4090 gezelter 2081 { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4091 gezelter 1490 echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4092     ;;
4093     esac
4094    
4095 gezelter 2081
4096    
4097    
4098    
4099     echo "$as_me:$LINENO: checking for module suffix" >&5
4100 gezelter 1490 echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
4101     rm -f conftest*
4102     # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4103     rm -f work*
4104     cat >conftest.f90 <<EOF
4105     module conftest
4106     integer n
4107     parameter (n=1)
4108     end module conftest
4109     EOF
4110     # SGI and absoft compilers generates module name in upper case!
4111     testname="conftest"
4112     modcase="lower"
4113     if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4114     MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
4115     MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
4116     if test -z "$MOD" ; then
4117     MOD=`ls CONFTEST* 2>/dev/null \
4118     | grep -v CONFTEST.f | grep -v CONFTEST.o`
4119     MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
4120     if test -n "$MOD" ; then
4121     testname="CONFTEST"
4122     modcase="upper"
4123     fi
4124     fi
4125     if test -z "$MOD" ; then
4126 gezelter 2081 echo "$as_me:$LINENO: result: unknown" >&5
4127 gezelter 1490 echo "${ECHO_T}unknown" >&6
4128     # Use mod if we can't figure it out
4129     MOD="mod"
4130     else
4131 gezelter 2081 echo "$as_me:$LINENO: result: $MOD" >&5
4132 gezelter 1490 echo "${ECHO_T}$MOD" >&6
4133     fi
4134     if test -s work.pcl ; then
4135 gezelter 2081 { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
4136 gezelter 1490 echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4137     fi
4138     else
4139 gezelter 2081 echo "$as_me:$LINENO: result: unknown" >&5
4140 gezelter 1490 echo "${ECHO_T}unknown" >&6
4141     fi
4142    
4143 gezelter 2081
4144    
4145    
4146    
4147 gezelter 1490 # Check for module include path (some use -I, some (Solaris) use -M, some
4148     # (absoft) use -p).
4149     # Intel compilers use a wierd system: -cl,filename.pcl . If no file is
4150     # specified, work.pcl and work.pc are created. However, if you specify
4151     # a file, it must contain a the name of a file ending in .pc . Ugh!
4152     # Use the module made above
4153 gezelter 2081 echo "$as_me:$LINENO: checking for module directory path flag" >&5
4154 gezelter 1490 echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
4155     rm -f conftest*
4156     # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4157     rm -f work*
4158     cat >conftest.f90 <<EOF
4159     module conftest
4160     integer n
4161     parameter (n=1)
4162     end module conftest
4163     EOF
4164     # SGI and absoft compilers generates module name in upper case!
4165     testname="conftest"
4166     if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4167     mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
4168     mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
4169     if test -n "$mod" ; then
4170     testname="CONFTEST"
4171     fi
4172     madedir=0
4173     if test ! -d conf ; then mkdir conf ; madedir=1; fi
4174     cp $testname.$MOD conf
4175     rm -f conftest* CONFTEST*
4176     cat >conftest1.f90 <<EOF
4177     program main
4178     use conftest
4179     print *, n
4180     end
4181     EOF
4182     F90_WORK_FILES_ARG=""
4183     F90MODINCSPEC=""
4184     if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
4185     MODDIRFLAG="-I"
4186     F90MODINCSPEC="-I<dir>"
4187 gezelter 2081 echo "$as_me:$LINENO: result: -I" >&5
4188 gezelter 1490 echo "${ECHO_T}-I" >&6
4189     elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
4190     MODDIRFLAG="-M"
4191     F90MODINCSPEC="-M<dir>"
4192 gezelter 2081 echo "$as_me:$LINENO: result: -M" >&5
4193 gezelter 1490 echo "${ECHO_T}-M" >&6
4194     elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
4195     MODDIRFLAG="-p"
4196     F90MODINCSPEC="-p<dir>"
4197 gezelter 2081 echo "$as_me:$LINENO: result: -p" >&5
4198 gezelter 1490 echo "${ECHO_T}-p" >&6
4199     elif test -s work.pc ; then
4200     cp work.pc conf/mpimod.pc
4201     echo "mpimod.pc" > conf/mpimod.pcl
4202     echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
4203     if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
4204     MODDIRFLAG='-cl,mpimod.pcl'
4205 gezelter 2081 echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
4206 gezelter 1490 echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
4207     F90_WORK_FILES_ARG="-cl,mpimod.pcl"
4208     F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
4209    
4210     else
4211     # The version of the Intel compiler that I have refuses to let
4212     # you put the "work catalog" list anywhere but the current
4213     # directory. For example, you cannot in
4214     :
4215     fi
4216     fi
4217     if test -z "MODDIRFLAG" ; then
4218 gezelter 2081 echo "$as_me:$LINENO: result: unknown" >&5
4219 gezelter 1490 echo "${ECHO_T}unknown" >&6
4220     fi
4221    
4222 gezelter 2081
4223 gezelter 1490 rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4224     if test $madedir = 1 ; then rmdir conf ; fi
4225     fi
4226    
4227 gezelter 2081
4228     echo "$as_me:$LINENO: checking for Fortran 90 module file names" >&5
4229 gezelter 1535 echo $ECHO_N "checking for Fortran 90 module file names... $ECHO_C" >&6
4230     if test "${ac_cv_f90_module_names+set}" = set; then
4231     echo $ECHO_N "(cached) $ECHO_C" >&6
4232     else
4233     ac_ext=f90
4234     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4235     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4237    
4238     # carry out the test in a new directory, so that we don't miss anything
4239     mkdir conftest
4240     cd conftest
4241     cat >conftest.$ac_ext <<_ACEOF
4242     MODULE Bar
4243     END MODULE Bar
4244     _ACEOF
4245     rm -f conftest.$ac_objext
4246 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4247     (eval $ac_compile) 2>conftest.er1
4248 gezelter 1535 ac_status=$?
4249 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4250     rm -f conftest.er1
4251     cat conftest.err >&5
4252     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 gezelter 1535 (exit $ac_status); } &&
4254 gezelter 2081 { ac_try='test -z "$ac_f90_werror_flag"
4255     || test ! -s conftest.err'
4256     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 gezelter 1535 (eval $ac_try) 2>&5
4258     ac_status=$?
4259 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260     (exit $ac_status); }; } &&
4261     { ac_try='test -s conftest.$ac_objext'
4262     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263     (eval $ac_try) 2>&5
4264     ac_status=$?
4265     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 gezelter 1535 (exit $ac_status); }; }; then
4267     ac_cv_f90_module_names=
4268     ac_file_list=*
4269     for ac_file in $ac_file_list; do
4270     case $ac_file in
4271     # don't care for original source and object files
4272     conftest.$ac_ext | conftest.$ac_objext | conftest.err )
4273     :
4274     ;;
4275     # look for new files derived from the file name
4276     *conftest*)
4277     ac_pat=`echo $ac_file | sed s/conftest/%FILE%/`
4278     ac_exists=false
4279     for ac_i in $ac_cv_f90_module_names; do
4280     if test x"$ac_pat" = x"$ac_i"; then
4281     ac_exists=true
4282     break
4283     fi
4284     done
4285    
4286     if test x"$ac_exists" = xtrue; then
4287     :
4288     else
4289     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4290     fi
4291    
4292     ;;
4293     # look for new files derived from the module name,
4294     # with different case translation schemes
4295     *Bar*)
4296     ac_pat=`echo $ac_file | sed s/Bar/%Module%/`
4297     ac_exists=false
4298     for ac_i in $ac_cv_f90_module_names; do
4299     if test x"$ac_pat" = x"$ac_i"; then
4300     ac_exists=true
4301     break
4302     fi
4303     done
4304    
4305     if test x"$ac_exists" = xtrue; then
4306     :
4307     else
4308     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4309     fi
4310    
4311     ;;
4312     *bar*)
4313     ac_pat=`echo $ac_file | sed s/bar/%module%/`
4314     ac_exists=false
4315     for ac_i in $ac_cv_f90_module_names; do
4316     if test x"$ac_pat" = x"$ac_i"; then
4317     ac_exists=true
4318     break
4319     fi
4320     done
4321    
4322     if test x"$ac_exists" = xtrue; then
4323     :
4324     else
4325     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4326     fi
4327    
4328     ;;
4329     *BAR*)
4330     ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
4331     ac_exists=false
4332     for ac_i in $ac_cv_f90_module_names; do
4333     if test x"$ac_pat" = x"$ac_i"; then
4334     ac_exists=true
4335     break
4336     fi
4337     done
4338    
4339     if test x"$ac_exists" = xtrue; then
4340     :
4341     else
4342     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4343     fi
4344    
4345     ;;
4346     # Other files - we have no idea how they are generated
4347     *)
4348 gezelter 2081 { echo "$as_me:$LINENO: WARNING: Bogus file found: $ac_file" >&5
4349 gezelter 1535 echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
4350     ;;
4351     esac
4352     done
4353     if test "x$ac_cv_f90_module_names" = "x"; then
4354 gezelter 2081 { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
4355 gezelter 1535 echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
4356     fi
4357    
4358     else
4359     echo "$as_me: failed program was:" >&5
4360 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4361    
4362 gezelter 1535 ac_cv_f90_module_names=
4363 gezelter 2081 { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
4364 gezelter 1535 echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
4365     fi
4366 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4367 gezelter 1535 cd ..
4368     # cleanup
4369     rm -rf conftest
4370     ac_ext=f90
4371     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4372     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4374    
4375     fi
4376 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5
4377 gezelter 1535 echo "${ECHO_T}$ac_cv_f90_module_names" >&6 # AC_CACHE_CHECK
4378    
4379     # We now generate a shell script that will help us to figure out the correct
4380     # module file names, using the value of ac_cv_f90_module_names
4381    
4382     echo "Generating shell script modnam"
4383    
4384     cat > scripts/modnam << EOF
4385     #! /bin/sh
4386     # This script is auto-generated by configure
4387     #
4388     usage="\\
4389     Usage: \$0 [FILES]
4390    
4391     [FILES] are Fortran 90 source files.
4392     The output is a list of module file names that the Fortran 90 compiler
4393     generates when compiling [FILES]."
4394    
4395     list=
4396     empty=
4397    
4398     if test \$# -eq 0; then
4399     echo "\$usage"; exit 0
4400     fi
4401    
4402     while test \$# != 0; do
4403    
4404     file=\$1
4405     shift
4406    
4407     # strip suffix
4408     base=\`echo \$file | sed 's/[.][^.]*$//'\`
4409    
4410     test ! -f \$file && continue
4411    
4412     # Look for module definitions and transform them to upper / lower case
4413     mods=\`cat \$file | sed '/^ *[mM][oO][dD][uU][lL][eE]/!d;s/^ *[mM][oO][dD][uU][lL][eE] *\([A-Za-z_][A-Za-z0-9_]*\).*\$/\1/'\`
4414     upper=\`echo \$mods | tr a-z A-Z\`
4415     lower=\`echo \$mods | tr A-Z a-z\`
4416    
4417     # Here, the patterns for generating module file names were inserted by configure
4418     for trans in $ac_cv_f90_module_names; do
4419    
4420     pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
4421     var=empty
4422     case \$pat in
4423     %MODULE%)
4424     var=upper ;;
4425     %Module%)
4426     var=mods ;;
4427     %module%)
4428     var=lower ;;
4429     %FILE%)
4430     test -n "\$mods" && var=base ;;
4431     esac
4432     new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
4433     list="\$list \$new"
4434     done
4435     done
4436    
4437     echo \$list
4438     # end of configure-generated script
4439     EOF
4440     chmod 755 scripts/modnam
4441    
4442     pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
4443     F90_MODULE_NAMES=empty
4444     case $pat in
4445     %MODULE%)
4446     F90_MODULE_NAMES=UPPER ;;
4447     %Module%)
4448     F90_MODULE_NAMES=Mixed ;;
4449     %module%)
4450     F90_MODULE_NAMES=lower ;;
4451     *)
4452     F90_MODULE_NAMES=unknown ;;
4453     esac
4454    
4455 gezelter 1490 ac_ext=c
4456     ac_cpp='$CPP $CPPFLAGS'
4457     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460    
4461 gezelter 2081
4462 gezelter 1490 ac_ext=c
4463     ac_cpp='$CPP $CPPFLAGS'
4464     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467    
4468     ac_ext=c
4469     ac_cpp='$CPP $CPPFLAGS'
4470     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4471     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4472     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4473 gezelter 2081 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4474 gezelter 1490 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4475     # On Suns, sometimes $CPP names a directory.
4476     if test -n "$CPP" && test -d "$CPP"; then
4477     CPP=
4478     fi
4479     if test -z "$CPP"; then
4480     if test "${ac_cv_prog_CPP+set}" = set; then
4481     echo $ECHO_N "(cached) $ECHO_C" >&6
4482     else
4483     # Double quotes because CPP needs to be expanded
4484     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4485     do
4486     ac_preproc_ok=false
4487     for ac_c_preproc_warn_flag in '' yes
4488     do
4489     # Use a header file that comes with gcc, so configuring glibc
4490     # with a fresh cross-compiler works.
4491 gezelter 2081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4492     # <limits.h> exists even on freestanding compilers.
4493 gezelter 1490 # On the NeXT, cc -E runs the code through the compiler's parser,
4494     # not just through cpp. "Syntax error" is here to catch this case.
4495     cat >conftest.$ac_ext <<_ACEOF
4496 gezelter 2081 /* confdefs.h. */
4497 gezelter 1490 _ACEOF
4498 gezelter 2081 cat confdefs.h >>conftest.$ac_ext
4499     cat >>conftest.$ac_ext <<_ACEOF
4500     /* end confdefs.h. */
4501     #ifdef __STDC__
4502     # include <limits.h>
4503     #else
4504     # include <assert.h>
4505     #endif
4506     Syntax error
4507     _ACEOF
4508     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4509 gezelter 1490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4510     ac_status=$?
4511 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4512 gezelter 1490 rm -f conftest.er1
4513     cat conftest.err >&5
4514 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 gezelter 1490 (exit $ac_status); } >/dev/null; then
4516     if test -s conftest.err; then
4517     ac_cpp_err=$ac_c_preproc_warn_flag
4518 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4519 gezelter 1490 else
4520     ac_cpp_err=
4521     fi
4522     else
4523     ac_cpp_err=yes
4524     fi
4525     if test -z "$ac_cpp_err"; then
4526     :
4527     else
4528     echo "$as_me: failed program was:" >&5
4529 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4530    
4531 gezelter 1490 # Broken: fails on valid input.
4532     continue
4533     fi
4534     rm -f conftest.err conftest.$ac_ext
4535    
4536     # OK, works on sane cases. Now check whether non-existent headers
4537     # can be detected and how.
4538     cat >conftest.$ac_ext <<_ACEOF
4539 gezelter 2081 /* confdefs.h. */
4540     _ACEOF
4541     cat confdefs.h >>conftest.$ac_ext
4542     cat >>conftest.$ac_ext <<_ACEOF
4543     /* end confdefs.h. */
4544 gezelter 1490 #include <ac_nonexistent.h>
4545     _ACEOF
4546 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4547 gezelter 1490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4548     ac_status=$?
4549 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4550 gezelter 1490 rm -f conftest.er1
4551     cat conftest.err >&5
4552 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 gezelter 1490 (exit $ac_status); } >/dev/null; then
4554     if test -s conftest.err; then
4555     ac_cpp_err=$ac_c_preproc_warn_flag
4556 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4557 gezelter 1490 else
4558     ac_cpp_err=
4559     fi
4560     else
4561     ac_cpp_err=yes
4562     fi
4563     if test -z "$ac_cpp_err"; then
4564     # Broken: success on invalid input.
4565     continue
4566     else
4567     echo "$as_me: failed program was:" >&5
4568 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4569    
4570 gezelter 1490 # Passes both tests.
4571     ac_preproc_ok=:
4572     break
4573     fi
4574     rm -f conftest.err conftest.$ac_ext
4575    
4576     done
4577     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4578     rm -f conftest.err conftest.$ac_ext
4579     if $ac_preproc_ok; then
4580 gezelter 2081 break
4581 gezelter 1490 fi
4582    
4583     done
4584     ac_cv_prog_CPP=$CPP
4585    
4586     fi
4587     CPP=$ac_cv_prog_CPP
4588     else
4589     ac_cv_prog_CPP=$CPP
4590     fi
4591 gezelter 2081 echo "$as_me:$LINENO: result: $CPP" >&5
4592 gezelter 1490 echo "${ECHO_T}$CPP" >&6
4593     ac_preproc_ok=false
4594     for ac_c_preproc_warn_flag in '' yes
4595     do
4596     # Use a header file that comes with gcc, so configuring glibc
4597     # with a fresh cross-compiler works.
4598 gezelter 2081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4599     # <limits.h> exists even on freestanding compilers.
4600 gezelter 1490 # On the NeXT, cc -E runs the code through the compiler's parser,
4601     # not just through cpp. "Syntax error" is here to catch this case.
4602     cat >conftest.$ac_ext <<_ACEOF
4603 gezelter 2081 /* confdefs.h. */
4604 gezelter 1490 _ACEOF
4605 gezelter 2081 cat confdefs.h >>conftest.$ac_ext
4606     cat >>conftest.$ac_ext <<_ACEOF
4607     /* end confdefs.h. */
4608     #ifdef __STDC__
4609     # include <limits.h>
4610     #else
4611     # include <assert.h>
4612     #endif
4613     Syntax error
4614     _ACEOF
4615     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4616 gezelter 1490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4617     ac_status=$?
4618 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4619 gezelter 1490 rm -f conftest.er1
4620     cat conftest.err >&5
4621 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 gezelter 1490 (exit $ac_status); } >/dev/null; then
4623     if test -s conftest.err; then
4624     ac_cpp_err=$ac_c_preproc_warn_flag
4625 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4626 gezelter 1490 else
4627     ac_cpp_err=
4628     fi
4629     else
4630     ac_cpp_err=yes
4631     fi
4632     if test -z "$ac_cpp_err"; then
4633     :
4634     else
4635     echo "$as_me: failed program was:" >&5
4636 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4637    
4638 gezelter 1490 # Broken: fails on valid input.
4639     continue
4640     fi
4641     rm -f conftest.err conftest.$ac_ext
4642    
4643     # OK, works on sane cases. Now check whether non-existent headers
4644     # can be detected and how.
4645     cat >conftest.$ac_ext <<_ACEOF
4646 gezelter 2081 /* confdefs.h. */
4647     _ACEOF
4648     cat confdefs.h >>conftest.$ac_ext
4649     cat >>conftest.$ac_ext <<_ACEOF
4650     /* end confdefs.h. */
4651 gezelter 1490 #include <ac_nonexistent.h>
4652     _ACEOF
4653 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4654 gezelter 1490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4655     ac_status=$?
4656 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
4657 gezelter 1490 rm -f conftest.er1
4658     cat conftest.err >&5
4659 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 gezelter 1490 (exit $ac_status); } >/dev/null; then
4661     if test -s conftest.err; then
4662     ac_cpp_err=$ac_c_preproc_warn_flag
4663 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4664 gezelter 1490 else
4665     ac_cpp_err=
4666     fi
4667     else
4668     ac_cpp_err=yes
4669     fi
4670     if test -z "$ac_cpp_err"; then
4671     # Broken: success on invalid input.
4672     continue
4673     else
4674     echo "$as_me: failed program was:" >&5
4675 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
4676    
4677 gezelter 1490 # Passes both tests.
4678     ac_preproc_ok=:
4679     break
4680     fi
4681     rm -f conftest.err conftest.$ac_ext
4682    
4683     done
4684     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4685     rm -f conftest.err conftest.$ac_ext
4686     if $ac_preproc_ok; then
4687     :
4688     else
4689 gezelter 2081 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4690     See \`config.log' for more details." >&5
4691     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4692     See \`config.log' for more details." >&2;}
4693 gezelter 1490 { (exit 1); exit 1; }; }
4694     fi
4695    
4696     ac_ext=c
4697     ac_cpp='$CPP $CPPFLAGS'
4698     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4701    
4702 gezelter 2081
4703     echo "$as_me:$LINENO: checking for egrep" >&5
4704     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4705     if test "${ac_cv_prog_egrep+set}" = set; then
4706     echo $ECHO_N "(cached) $ECHO_C" >&6
4707     else
4708     if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4709     then ac_cv_prog_egrep='grep -E'
4710     else ac_cv_prog_egrep='egrep'
4711     fi
4712     fi
4713     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4714     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4715     EGREP=$ac_cv_prog_egrep
4716    
4717    
4718     echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4719     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4720     if test "${ac_cv_header_stdc+set}" = set; then
4721     echo $ECHO_N "(cached) $ECHO_C" >&6
4722     else
4723     cat >conftest.$ac_ext <<_ACEOF
4724     /* confdefs.h. */
4725     _ACEOF
4726     cat confdefs.h >>conftest.$ac_ext
4727     cat >>conftest.$ac_ext <<_ACEOF
4728     /* end confdefs.h. */
4729     #include <stdlib.h>
4730     #include <stdarg.h>
4731     #include <string.h>
4732     #include <float.h>
4733    
4734     int
4735     main ()
4736     {
4737    
4738     ;
4739     return 0;
4740     }
4741     _ACEOF
4742     rm -f conftest.$ac_objext
4743     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744     (eval $ac_compile) 2>conftest.er1
4745     ac_status=$?
4746     grep -v '^ *+' conftest.er1 >conftest.err
4747     rm -f conftest.er1
4748     cat conftest.err >&5
4749     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750     (exit $ac_status); } &&
4751     { ac_try='test -z "$ac_c_werror_flag"
4752     || test ! -s conftest.err'
4753     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754     (eval $ac_try) 2>&5
4755     ac_status=$?
4756     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757     (exit $ac_status); }; } &&
4758     { ac_try='test -s conftest.$ac_objext'
4759     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760     (eval $ac_try) 2>&5
4761     ac_status=$?
4762     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763     (exit $ac_status); }; }; then
4764     ac_cv_header_stdc=yes
4765     else
4766     echo "$as_me: failed program was:" >&5
4767     sed 's/^/| /' conftest.$ac_ext >&5
4768    
4769     ac_cv_header_stdc=no
4770     fi
4771     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4772    
4773     if test $ac_cv_header_stdc = yes; then
4774     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4775     cat >conftest.$ac_ext <<_ACEOF
4776     /* confdefs.h. */
4777     _ACEOF
4778     cat confdefs.h >>conftest.$ac_ext
4779     cat >>conftest.$ac_ext <<_ACEOF
4780     /* end confdefs.h. */
4781     #include <string.h>
4782    
4783     _ACEOF
4784     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4785     $EGREP "memchr" >/dev/null 2>&1; then
4786     :
4787     else
4788     ac_cv_header_stdc=no
4789     fi
4790     rm -f conftest*
4791    
4792     fi
4793    
4794     if test $ac_cv_header_stdc = yes; then
4795     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4796     cat >conftest.$ac_ext <<_ACEOF
4797     /* confdefs.h. */
4798     _ACEOF
4799     cat confdefs.h >>conftest.$ac_ext
4800     cat >>conftest.$ac_ext <<_ACEOF
4801     /* end confdefs.h. */
4802     #include <stdlib.h>
4803    
4804     _ACEOF
4805     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4806     $EGREP "free" >/dev/null 2>&1; then
4807     :
4808     else
4809     ac_cv_header_stdc=no
4810     fi
4811     rm -f conftest*
4812    
4813     fi
4814    
4815     if test $ac_cv_header_stdc = yes; then
4816     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4817     if test "$cross_compiling" = yes; then
4818     :
4819     else
4820     cat >conftest.$ac_ext <<_ACEOF
4821     /* confdefs.h. */
4822     _ACEOF
4823     cat confdefs.h >>conftest.$ac_ext
4824     cat >>conftest.$ac_ext <<_ACEOF
4825     /* end confdefs.h. */
4826     #include <ctype.h>
4827     #if ((' ' & 0x0FF) == 0x020)
4828     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4829     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4830     #else
4831     # define ISLOWER(c) \
4832     (('a' <= (c) && (c) <= 'i') \
4833     || ('j' <= (c) && (c) <= 'r') \
4834     || ('s' <= (c) && (c) <= 'z'))
4835     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4836     #endif
4837    
4838     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4839     int
4840     main ()
4841     {
4842     int i;
4843     for (i = 0; i < 256; i++)
4844     if (XOR (islower (i), ISLOWER (i))
4845     || toupper (i) != TOUPPER (i))
4846     exit(2);
4847     exit (0);
4848     }
4849     _ACEOF
4850     rm -f conftest$ac_exeext
4851     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4852     (eval $ac_link) 2>&5
4853     ac_status=$?
4854     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4856     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857     (eval $ac_try) 2>&5
4858     ac_status=$?
4859     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860     (exit $ac_status); }; }; then
4861     :
4862     else
4863     echo "$as_me: program exited with status $ac_status" >&5
4864     echo "$as_me: failed program was:" >&5
4865     sed 's/^/| /' conftest.$ac_ext >&5
4866    
4867     ( exit $ac_status )
4868     ac_cv_header_stdc=no
4869     fi
4870     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4871     fi
4872     fi
4873     fi
4874     echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4875     echo "${ECHO_T}$ac_cv_header_stdc" >&6
4876     if test $ac_cv_header_stdc = yes; then
4877    
4878     cat >>confdefs.h <<\_ACEOF
4879     #define STDC_HEADERS 1
4880     _ACEOF
4881    
4882     fi
4883    
4884     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4885    
4886    
4887    
4888    
4889    
4890    
4891    
4892    
4893    
4894     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4895     inttypes.h stdint.h unistd.h
4896 gezelter 1490 do
4897 gezelter 2081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4898     echo "$as_me:$LINENO: checking for $ac_header" >&5
4899 gezelter 1490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4900 gezelter 2081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4901 gezelter 1490 echo $ECHO_N "(cached) $ECHO_C" >&6
4902     else
4903     cat >conftest.$ac_ext <<_ACEOF
4904 gezelter 2081 /* confdefs.h. */
4905     _ACEOF
4906     cat confdefs.h >>conftest.$ac_ext
4907     cat >>conftest.$ac_ext <<_ACEOF
4908     /* end confdefs.h. */
4909     $ac_includes_default
4910    
4911 gezelter 1490 #include <$ac_header>
4912     _ACEOF
4913 gezelter 2081 rm -f conftest.$ac_objext
4914     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4915     (eval $ac_compile) 2>conftest.er1
4916     ac_status=$?
4917     grep -v '^ *+' conftest.er1 >conftest.err
4918     rm -f conftest.er1
4919     cat conftest.err >&5
4920     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921     (exit $ac_status); } &&
4922     { ac_try='test -z "$ac_c_werror_flag"
4923     || test ! -s conftest.err'
4924     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925     (eval $ac_try) 2>&5
4926     ac_status=$?
4927     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928     (exit $ac_status); }; } &&
4929     { ac_try='test -s conftest.$ac_objext'
4930     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931     (eval $ac_try) 2>&5
4932     ac_status=$?
4933     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934     (exit $ac_status); }; }; then
4935     eval "$as_ac_Header=yes"
4936     else
4937     echo "$as_me: failed program was:" >&5
4938     sed 's/^/| /' conftest.$ac_ext >&5
4939    
4940     eval "$as_ac_Header=no"
4941     fi
4942     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4943     fi
4944     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4945     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4946     if test `eval echo '${'$as_ac_Header'}'` = yes; then
4947     cat >>confdefs.h <<_ACEOF
4948     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4949     _ACEOF
4950    
4951     fi
4952    
4953     done
4954    
4955    
4956    
4957    
4958    
4959    
4960    
4961    
4962    
4963    
4964    
4965     for ac_header in unistd.h sys/pstat.h sys/sysmp.h sys/sysinfo.h sys/table.h sys/param.h sys/sysctl.h sys/sytemcfg.h machine/hal_sysinfo.h
4966     do
4967     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4968     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4969     echo "$as_me:$LINENO: checking for $ac_header" >&5
4970     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4971     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4972     echo $ECHO_N "(cached) $ECHO_C" >&6
4973     fi
4974     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4975     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4976     else
4977     # Is the header compilable?
4978     echo "$as_me:$LINENO: checking $ac_header usability" >&5
4979     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4980     cat >conftest.$ac_ext <<_ACEOF
4981     /* confdefs.h. */
4982     _ACEOF
4983     cat confdefs.h >>conftest.$ac_ext
4984     cat >>conftest.$ac_ext <<_ACEOF
4985     /* end confdefs.h. */
4986     $ac_includes_default
4987     #include <$ac_header>
4988     _ACEOF
4989     rm -f conftest.$ac_objext
4990     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991     (eval $ac_compile) 2>conftest.er1
4992     ac_status=$?
4993     grep -v '^ *+' conftest.er1 >conftest.err
4994     rm -f conftest.er1
4995     cat conftest.err >&5
4996     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997     (exit $ac_status); } &&
4998     { ac_try='test -z "$ac_c_werror_flag"
4999     || test ! -s conftest.err'
5000     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001     (eval $ac_try) 2>&5
5002     ac_status=$?
5003     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004     (exit $ac_status); }; } &&
5005     { ac_try='test -s conftest.$ac_objext'
5006     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007     (eval $ac_try) 2>&5
5008     ac_status=$?
5009     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010     (exit $ac_status); }; }; then
5011     ac_header_compiler=yes
5012     else
5013     echo "$as_me: failed program was:" >&5
5014     sed 's/^/| /' conftest.$ac_ext >&5
5015    
5016     ac_header_compiler=no
5017     fi
5018     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5019     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5020     echo "${ECHO_T}$ac_header_compiler" >&6
5021    
5022     # Is the header present?
5023     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5024     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5025     cat >conftest.$ac_ext <<_ACEOF
5026     /* confdefs.h. */
5027     _ACEOF
5028     cat confdefs.h >>conftest.$ac_ext
5029     cat >>conftest.$ac_ext <<_ACEOF
5030     /* end confdefs.h. */
5031     #include <$ac_header>
5032     _ACEOF
5033     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5034 tim 1998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5035     ac_status=$?
5036 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
5037 tim 1998 rm -f conftest.er1
5038     cat conftest.err >&5
5039 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 tim 1998 (exit $ac_status); } >/dev/null; then
5041     if test -s conftest.err; then
5042     ac_cpp_err=$ac_c_preproc_warn_flag
5043 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5044 tim 1998 else
5045     ac_cpp_err=
5046     fi
5047     else
5048     ac_cpp_err=yes
5049     fi
5050     if test -z "$ac_cpp_err"; then
5051 gezelter 2081 ac_header_preproc=yes
5052 tim 1998 else
5053     echo "$as_me: failed program was:" >&5
5054 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
5055    
5056     ac_header_preproc=no
5057 tim 1998 fi
5058     rm -f conftest.err conftest.$ac_ext
5059 gezelter 2081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5060     echo "${ECHO_T}$ac_header_preproc" >&6
5061    
5062     # So? What about this header?
5063     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5064     yes:no: )
5065     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5066     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5068     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5069     ac_header_preproc=yes
5070     ;;
5071     no:yes:* )
5072     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5073     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5074     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5075     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5076     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5077     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5078     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5079     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5080     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5081     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5082     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5083     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5084     (
5085     cat <<\_ASBOX
5086     ## ------------------------------ ##
5087     ## Report this to gezelter@nd.edu ##
5088     ## ------------------------------ ##
5089     _ASBOX
5090     ) |
5091     sed "s/^/$as_me: WARNING: /" >&2
5092     ;;
5093     esac
5094     echo "$as_me:$LINENO: checking for $ac_header" >&5
5095     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5096     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5097     echo $ECHO_N "(cached) $ECHO_C" >&6
5098     else
5099     eval "$as_ac_Header=\$ac_header_preproc"
5100 tim 1998 fi
5101 gezelter 2081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5102     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5103 tim 1998
5104     fi
5105 gezelter 2081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5106     cat >>confdefs.h <<_ACEOF
5107     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5108     _ACEOF
5109    
5110     fi
5111    
5112 tim 1998 done
5113    
5114 gezelter 2081
5115    
5116    
5117    
5118    
5119 tim 1998 for ac_func in pstat_getstatic sysmp getsysinfo sysctl table
5120     do
5121 gezelter 2081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5122     echo "$as_me:$LINENO: checking for $ac_func" >&5
5123 tim 1998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5124 gezelter 2081 if eval "test \"\${$as_ac_var+set}\" = set"; then
5125 tim 1998 echo $ECHO_N "(cached) $ECHO_C" >&6
5126     else
5127     cat >conftest.$ac_ext <<_ACEOF
5128 gezelter 2081 /* confdefs.h. */
5129     _ACEOF
5130     cat confdefs.h >>conftest.$ac_ext
5131     cat >>conftest.$ac_ext <<_ACEOF
5132     /* end confdefs.h. */
5133     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5134     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5135     #define $ac_func innocuous_$ac_func
5136    
5137 tim 1998 /* System header to define __stub macros and hopefully few prototypes,
5138 gezelter 2081 which can conflict with char $ac_func (); below.
5139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5140     <limits.h> exists even on freestanding compilers. */
5141    
5142     #ifdef __STDC__
5143     # include <limits.h>
5144     #else
5145     # include <assert.h>
5146     #endif
5147    
5148     #undef $ac_func
5149    
5150 tim 1998 /* Override any gcc2 internal prototype to avoid an error. */
5151     #ifdef __cplusplus
5152     extern "C"
5153 gezelter 2081 {
5154 tim 1998 #endif
5155     /* We use char because int might match the return type of a gcc2
5156     builtin and then its argument prototype would still apply. */
5157     char $ac_func ();
5158     /* The GNU C library defines this for functions which it implements
5159     to always fail with ENOSYS. Some functions are actually named
5160     something starting with __ and the normal name is an alias. */
5161     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5162     choke me
5163     #else
5164 gezelter 2081 char (*f) () = $ac_func;
5165 tim 1998 #endif
5166 gezelter 2081 #ifdef __cplusplus
5167     }
5168     #endif
5169 tim 1998
5170 gezelter 2081 int
5171     main ()
5172     {
5173     return f != $ac_func;
5174 tim 1998 ;
5175     return 0;
5176     }
5177     _ACEOF
5178     rm -f conftest.$ac_objext conftest$ac_exeext
5179 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5180     (eval $ac_link) 2>conftest.er1
5181 tim 1998 ac_status=$?
5182 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
5183     rm -f conftest.er1
5184     cat conftest.err >&5
5185     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 tim 1998 (exit $ac_status); } &&
5187 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
5188     || test ! -s conftest.err'
5189     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190 tim 1998 (eval $ac_try) 2>&5
5191     ac_status=$?
5192 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193     (exit $ac_status); }; } &&
5194     { ac_try='test -s conftest$ac_exeext'
5195     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196     (eval $ac_try) 2>&5
5197     ac_status=$?
5198     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 tim 1998 (exit $ac_status); }; }; then
5200 gezelter 2081 eval "$as_ac_var=yes"
5201 tim 1998 else
5202     echo "$as_me: failed program was:" >&5
5203 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
5204    
5205     eval "$as_ac_var=no"
5206 tim 1998 fi
5207 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
5208     conftest$ac_exeext conftest.$ac_ext
5209 tim 1998 fi
5210 gezelter 2081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5211     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5212     if test `eval echo '${'$as_ac_var'}'` = yes; then
5213     cat >>confdefs.h <<_ACEOF
5214     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5215     _ACEOF
5216 tim 1998
5217     fi
5218     done
5219    
5220     # special check for _system_configuration because AIX <4.3.2 do not
5221     # contain the `physmem' member.
5222 gezelter 2081 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
5223 tim 1998 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
5224     cat >conftest.$ac_ext <<_ACEOF
5225 gezelter 2081 /* confdefs.h. */
5226     _ACEOF
5227     cat confdefs.h >>conftest.$ac_ext
5228     cat >>conftest.$ac_ext <<_ACEOF
5229     /* end confdefs.h. */
5230 tim 1998 #include <sys/systemcfg.h>
5231     int
5232     main ()
5233     {
5234     double x = _system_configuration.physmem;
5235     ;
5236     return 0;
5237     }
5238     _ACEOF
5239     rm -f conftest.$ac_objext
5240 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241     (eval $ac_compile) 2>conftest.er1
5242 tim 1998 ac_status=$?
5243 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
5244     rm -f conftest.er1
5245     cat conftest.err >&5
5246     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 tim 1998 (exit $ac_status); } &&
5248 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
5249     || test ! -s conftest.err'
5250     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251 tim 1998 (eval $ac_try) 2>&5
5252     ac_status=$?
5253 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254     (exit $ac_status); }; } &&
5255     { ac_try='test -s conftest.$ac_objext'
5256     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257     (eval $ac_try) 2>&5
5258     ac_status=$?
5259     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 tim 1998 (exit $ac_status); }; }; then
5261 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
5262 tim 1998 echo "${ECHO_T}yes" >&6
5263    
5264 gezelter 2081 cat >>confdefs.h <<\_ACEOF
5265 tim 1998 #define HAVE__SYSTEM_CONFIGURATION 1
5266 gezelter 2081 _ACEOF
5267 tim 1998
5268     else
5269     echo "$as_me: failed program was:" >&5
5270 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
5271    
5272     echo "$as_me:$LINENO: result: no" >&5
5273 tim 1998 echo "${ECHO_T}no" >&6
5274     fi
5275 gezelter 2081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5276 tim 1998
5277 gezelter 1490 # clean out junk possibly left behind by a previous configuration
5278 gezelter 1947 rm -f src/getopt.h
5279 gezelter 1490 # Check for getopt_long support
5280    
5281     for ac_header in getopt.h
5282     do
5283 gezelter 2081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5284     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5285     echo "$as_me:$LINENO: checking for $ac_header" >&5
5286 gezelter 1490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5287 gezelter 2081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5288 gezelter 1490 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 gezelter 2081 fi
5290     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5291     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5292 gezelter 1490 else
5293 gezelter 2081 # Is the header compilable?
5294     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5295     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5296     cat >conftest.$ac_ext <<_ACEOF
5297     /* confdefs.h. */
5298     _ACEOF
5299     cat confdefs.h >>conftest.$ac_ext
5300     cat >>conftest.$ac_ext <<_ACEOF
5301     /* end confdefs.h. */
5302     $ac_includes_default
5303 gezelter 1490 #include <$ac_header>
5304     _ACEOF
5305 gezelter 2081 rm -f conftest.$ac_objext
5306     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5307     (eval $ac_compile) 2>conftest.er1
5308     ac_status=$?
5309     grep -v '^ *+' conftest.er1 >conftest.err
5310     rm -f conftest.er1
5311     cat conftest.err >&5
5312     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313     (exit $ac_status); } &&
5314     { ac_try='test -z "$ac_c_werror_flag"
5315     || test ! -s conftest.err'
5316     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317     (eval $ac_try) 2>&5
5318     ac_status=$?
5319     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320     (exit $ac_status); }; } &&
5321     { ac_try='test -s conftest.$ac_objext'
5322     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323     (eval $ac_try) 2>&5
5324     ac_status=$?
5325     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326     (exit $ac_status); }; }; then
5327     ac_header_compiler=yes
5328     else
5329     echo "$as_me: failed program was:" >&5
5330     sed 's/^/| /' conftest.$ac_ext >&5
5331    
5332     ac_header_compiler=no
5333     fi
5334     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5335     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5336     echo "${ECHO_T}$ac_header_compiler" >&6
5337    
5338     # Is the header present?
5339     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5340     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5341     cat >conftest.$ac_ext <<_ACEOF
5342     /* confdefs.h. */
5343     _ACEOF
5344     cat confdefs.h >>conftest.$ac_ext
5345     cat >>conftest.$ac_ext <<_ACEOF
5346     /* end confdefs.h. */
5347     #include <$ac_header>
5348     _ACEOF
5349     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5350 gezelter 1490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5351     ac_status=$?
5352 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
5353 gezelter 1490 rm -f conftest.er1
5354     cat conftest.err >&5
5355 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 gezelter 1490 (exit $ac_status); } >/dev/null; then
5357     if test -s conftest.err; then
5358     ac_cpp_err=$ac_c_preproc_warn_flag
5359 gezelter 2081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5360 gezelter 1490 else
5361     ac_cpp_err=
5362     fi
5363     else
5364     ac_cpp_err=yes
5365     fi
5366     if test -z "$ac_cpp_err"; then
5367 gezelter 2081 ac_header_preproc=yes
5368 gezelter 1490 else
5369     echo "$as_me: failed program was:" >&5
5370 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
5371    
5372     ac_header_preproc=no
5373 gezelter 1490 fi
5374     rm -f conftest.err conftest.$ac_ext
5375 gezelter 2081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5376     echo "${ECHO_T}$ac_header_preproc" >&6
5377    
5378     # So? What about this header?
5379     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5380     yes:no: )
5381     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5382     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5384     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5385     ac_header_preproc=yes
5386     ;;
5387     no:yes:* )
5388     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5389     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5390     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5391     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5392     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5393     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5394     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5395     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5397     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5398     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5399     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5400     (
5401     cat <<\_ASBOX
5402     ## ------------------------------ ##
5403     ## Report this to gezelter@nd.edu ##
5404     ## ------------------------------ ##
5405     _ASBOX
5406     ) |
5407     sed "s/^/$as_me: WARNING: /" >&2
5408     ;;
5409     esac
5410     echo "$as_me:$LINENO: checking for $ac_header" >&5
5411     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5412     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5413     echo $ECHO_N "(cached) $ECHO_C" >&6
5414     else
5415     eval "$as_ac_Header=\$ac_header_preproc"
5416 gezelter 1490 fi
5417 gezelter 2081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5418     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5419 gezelter 1490
5420     fi
5421 gezelter 2081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5422     cat >>confdefs.h <<_ACEOF
5423     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5424     _ACEOF
5425    
5426     fi
5427    
5428 gezelter 1490 done
5429    
5430 gezelter 2081
5431 gezelter 1490 for ac_func in getopt_long
5432     do
5433 gezelter 2081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5434     echo "$as_me:$LINENO: checking for $ac_func" >&5
5435 gezelter 1490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5436 gezelter 2081 if eval "test \"\${$as_ac_var+set}\" = set"; then
5437 gezelter 1490 echo $ECHO_N "(cached) $ECHO_C" >&6
5438     else
5439     cat >conftest.$ac_ext <<_ACEOF
5440 gezelter 2081 /* confdefs.h. */
5441     _ACEOF
5442     cat confdefs.h >>conftest.$ac_ext
5443     cat >>conftest.$ac_ext <<_ACEOF
5444     /* end confdefs.h. */
5445     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5446     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5447     #define $ac_func innocuous_$ac_func
5448    
5449 gezelter 1490 /* System header to define __stub macros and hopefully few prototypes,
5450 gezelter 2081 which can conflict with char $ac_func (); below.
5451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5452     <limits.h> exists even on freestanding compilers. */
5453    
5454     #ifdef __STDC__
5455     # include <limits.h>
5456     #else
5457     # include <assert.h>
5458     #endif
5459    
5460     #undef $ac_func
5461    
5462 gezelter 1490 /* Override any gcc2 internal prototype to avoid an error. */
5463     #ifdef __cplusplus
5464     extern "C"
5465 gezelter 2081 {
5466 gezelter 1490 #endif
5467     /* We use char because int might match the return type of a gcc2
5468     builtin and then its argument prototype would still apply. */
5469     char $ac_func ();
5470     /* The GNU C library defines this for functions which it implements
5471     to always fail with ENOSYS. Some functions are actually named
5472     something starting with __ and the normal name is an alias. */
5473     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5474     choke me
5475     #else
5476 gezelter 2081 char (*f) () = $ac_func;
5477 gezelter 1490 #endif
5478 gezelter 2081 #ifdef __cplusplus
5479     }
5480     #endif
5481 gezelter 1490
5482 gezelter 2081 int
5483     main ()
5484     {
5485     return f != $ac_func;
5486 gezelter 1490 ;
5487     return 0;
5488     }
5489     _ACEOF
5490     rm -f conftest.$ac_objext conftest$ac_exeext
5491 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5492     (eval $ac_link) 2>conftest.er1
5493 gezelter 1490 ac_status=$?
5494 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
5495     rm -f conftest.er1
5496     cat conftest.err >&5
5497     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 gezelter 1490 (exit $ac_status); } &&
5499 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
5500     || test ! -s conftest.err'
5501     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 gezelter 1490 (eval $ac_try) 2>&5
5503     ac_status=$?
5504 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505     (exit $ac_status); }; } &&
5506     { ac_try='test -s conftest$ac_exeext'
5507     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508     (eval $ac_try) 2>&5
5509     ac_status=$?
5510     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 gezelter 1490 (exit $ac_status); }; }; then
5512 gezelter 2081 eval "$as_ac_var=yes"
5513 gezelter 1490 else
5514     echo "$as_me: failed program was:" >&5
5515 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
5516    
5517     eval "$as_ac_var=no"
5518 gezelter 1490 fi
5519 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
5520     conftest$ac_exeext conftest.$ac_ext
5521 gezelter 1490 fi
5522 gezelter 2081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5523     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5524     if test `eval echo '${'$as_ac_var'}'` = yes; then
5525     cat >>confdefs.h <<_ACEOF
5526     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5527     _ACEOF
5528 gezelter 1490
5529     else
5530     # FreeBSD has a gnugetopt library for this
5531 gezelter 2081 echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
5532 gezelter 1490 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
5533     if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
5534     echo $ECHO_N "(cached) $ECHO_C" >&6
5535     else
5536     ac_check_lib_save_LIBS=$LIBS
5537     LIBS="-lgnugetopt $LIBS"
5538     cat >conftest.$ac_ext <<_ACEOF
5539 gezelter 2081 /* confdefs.h. */
5540     _ACEOF
5541     cat confdefs.h >>conftest.$ac_ext
5542     cat >>conftest.$ac_ext <<_ACEOF
5543     /* end confdefs.h. */
5544 gezelter 1490
5545     /* Override any gcc2 internal prototype to avoid an error. */
5546     #ifdef __cplusplus
5547     extern "C"
5548     #endif
5549     /* We use char because int might match the return type of a gcc2
5550     builtin and then its argument prototype would still apply. */
5551     char getopt_long ();
5552     int
5553     main ()
5554     {
5555     getopt_long ();
5556     ;
5557     return 0;
5558     }
5559     _ACEOF
5560     rm -f conftest.$ac_objext conftest$ac_exeext
5561 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562     (eval $ac_link) 2>conftest.er1
5563 gezelter 1490 ac_status=$?
5564 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
5565     rm -f conftest.er1
5566     cat conftest.err >&5
5567     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 gezelter 1490 (exit $ac_status); } &&
5569 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
5570     || test ! -s conftest.err'
5571     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572 gezelter 1490 (eval $ac_try) 2>&5
5573     ac_status=$?
5574 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575     (exit $ac_status); }; } &&
5576     { ac_try='test -s conftest$ac_exeext'
5577     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578     (eval $ac_try) 2>&5
5579     ac_status=$?
5580     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 gezelter 1490 (exit $ac_status); }; }; then
5582     ac_cv_lib_gnugetopt_getopt_long=yes
5583     else
5584     echo "$as_me: failed program was:" >&5
5585 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
5586    
5587 gezelter 1490 ac_cv_lib_gnugetopt_getopt_long=no
5588     fi
5589 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
5590     conftest$ac_exeext conftest.$ac_ext
5591 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
5592     fi
5593 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
5594 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
5595     if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
5596 gezelter 2081 cat >>confdefs.h <<\_ACEOF
5597 gezelter 1490 #define HAVE_GETOPT_LONG 1
5598 gezelter 2081 _ACEOF
5599 gezelter 1490
5600     else
5601     # use the GNU replacement
5602 gezelter 2081 case $LIBOBJS in
5603     "getopt.$ac_objext" | \
5604     *" getopt.$ac_objext" | \
5605     "getopt.$ac_objext "* | \
5606     *" getopt.$ac_objext "* ) ;;
5607     *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
5608     esac
5609 gezelter 2026
5610 gezelter 2081 case $LIBOBJS in
5611     "getopt1.$ac_objext" | \
5612     *" getopt1.$ac_objext" | \
5613     "getopt1.$ac_objext "* | \
5614     *" getopt1.$ac_objext "* ) ;;
5615     *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
5616     esac
5617    
5618     ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h"
5619    
5620 gezelter 1490 fi
5621    
5622     fi
5623     done
5624    
5625 gezelter 2081
5626    
5627 gezelter 1490 case $debug in
5628     1)
5629     ;;
5630     *)
5631    
5632 gezelter 2081
5633    
5634    
5635    
5636    
5637     echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
5638 gezelter 1490 echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
5639     if test "${ac_cv_prog_really_gcc+set}" = set; then
5640     echo $ECHO_N "(cached) $ECHO_C" >&6
5641     else
5642    
5643     cat > conftest.c <<EOF
5644     #ifdef __GNUC__
5645     #ifndef __INTEL_COMPILER
5646     yes;
5647     #endif
5648     #endif
5649     EOF
5650     if { ac_try='${CC-cc} -E conftest.c'
5651 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 gezelter 1490 (eval $ac_try) 2>&5
5653     ac_status=$?
5654 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 gezelter 1490 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
5656     ac_cv_prog_really_gcc=yes
5657     else
5658     ac_cv_prog_really_gcc=no
5659     fi
5660    
5661     fi
5662 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
5663 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
5664     if test "$ac_cv_prog_really_gcc" = yes; then
5665     :
5666    
5667     else
5668     :
5669    
5670     fi
5671    
5672 gezelter 2081
5673 gezelter 1490 # Try to determine "good" native compiler flags if none specified on command
5674     # line
5675     if test "$ac_test_CFLAGS" != "set"; then
5676     CFLAGS=""
5677     case "${host_cpu}-${host_os}" in
5678    
5679     *linux*) if test "$CC" = icc; then
5680     CFLAGS="-O"
5681     fi;;
5682     sparc-solaris2*) if test "$CC" = cc; then
5683     CFLAGS="-native -fast -xO5 -dalign"
5684     fi;;
5685    
5686     alpha*-osf*) if test "$CC" = cc; then
5687     CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
5688     fi;;
5689    
5690     hppa*-hpux*) if test "$CC" = cc; then
5691     CFLAGS="-Ae +O3 +Oall"
5692     fi;;
5693    
5694     rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then
5695     CFLAGS="-O3 -qtune=auto -qansialias -w"
5696     fi;;
5697     powerpc*-aix*)
5698     if test "$CC" = cc -o "$CC" = xlc; then
5699     CFLAGS="-O3 -qtune=auto -qansialias -w"
5700     echo "*******************************************************"
5701     echo "* You have AIX on an unknown powerpc system. It is *"
5702     echo "* recommended that you use *"
5703     echo "* *"
5704     echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
5705     echo "* ^^^ *"
5706     echo "* where xxx is 601, 603, 604, or whatever kind of *"
5707     echo "* PowerPC CPU you have. For more info, man cc. *"
5708     echo "*******************************************************"
5709     fi;;
5710     *darwin*)
5711     if test "$CC" = xlc -o "$CC" = cc; then
5712 chuckv 1579 CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
5713 gezelter 1490 fi;;
5714     esac
5715    
5716     # use default flags for gcc on all systems
5717     if test $ac_cv_prog_really_gcc = yes; then
5718     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
5719     fi
5720    
5721     # test for gcc-specific flags:
5722     if test $ac_cv_prog_really_gcc = yes; then
5723     # -malign-double for x86 systems
5724    
5725 gezelter 2081
5726     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
5727 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
5728     if test "${ac_align_double+set}" = set; then
5729     echo $ECHO_N "(cached) $ECHO_C" >&6
5730     else
5731     echo 'void f(){}' > conftest.c
5732     if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
5733     ac_align_double=yes
5734     else
5735     ac_align_double=no
5736     fi
5737     rm -f conftest*
5738    
5739     fi
5740 gezelter 2081 echo "$as_me:$LINENO: result: $ac_align_double" >&5
5741 gezelter 1490 echo "${ECHO_T}$ac_align_double" >&6
5742     if test "$ac_align_double" = yes; then
5743     :
5744     CFLAGS="$CFLAGS -malign-double"
5745     else
5746     :
5747    
5748     fi
5749    
5750     # -fstrict-aliasing for gcc-2.95+
5751    
5752 gezelter 2081
5753     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
5754 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
5755     if test "${ac_fstrict_aliasing+set}" = set; then
5756     echo $ECHO_N "(cached) $ECHO_C" >&6
5757     else
5758     echo 'void f(){}' > conftest.c
5759     if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
5760     ac_fstrict_aliasing=yes
5761     else
5762     ac_fstrict_aliasing=no
5763     fi
5764     rm -f conftest*
5765    
5766     fi
5767 gezelter 2081 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
5768 gezelter 1490 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
5769     if test "$ac_fstrict_aliasing" = yes; then
5770     :
5771     CFLAGS="$CFLAGS -fstrict-aliasing"
5772     else
5773     :
5774    
5775     fi
5776    
5777     fi
5778    
5779     CPU_FLAGS=""
5780     if test $ac_cv_prog_really_gcc = yes; then
5781     case "${host_cpu}" in
5782     i586*)
5783    
5784 gezelter 2081 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
5785 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
5786     if test "${ac_cpu_pentium+set}" = set; then
5787     echo $ECHO_N "(cached) $ECHO_C" >&6
5788     else
5789     echo 'void f(){}' > conftest.c
5790     if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
5791     ac_cpu_pentium=yes
5792     else
5793     ac_cpu_pentium=no
5794     fi
5795     rm -f conftest*
5796    
5797     fi
5798 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
5799 gezelter 1490 echo "${ECHO_T}$ac_cpu_pentium" >&6
5800     if test "$ac_cpu_pentium" = yes; then
5801     :
5802     CPU_FLAGS=-mcpu=pentium
5803     else
5804     :
5805    
5806 gezelter 2081
5807     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
5808 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
5809     if test "${ac_pentium+set}" = set; then
5810     echo $ECHO_N "(cached) $ECHO_C" >&6
5811     else
5812     echo 'void f(){}' > conftest.c
5813     if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
5814     ac_pentium=yes
5815     else
5816     ac_pentium=no
5817     fi
5818     rm -f conftest*
5819    
5820     fi
5821 gezelter 2081 echo "$as_me:$LINENO: result: $ac_pentium" >&5
5822 gezelter 1490 echo "${ECHO_T}$ac_pentium" >&6
5823     if test "$ac_pentium" = yes; then
5824     :
5825     CPU_FLAGS=-mpentium
5826     else
5827     :
5828    
5829     fi
5830    
5831     fi
5832    
5833     ;;
5834     i686*)
5835    
5836 gezelter 2081 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
5837 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
5838     if test "${ac_cpu_pentiumpro+set}" = set; then
5839     echo $ECHO_N "(cached) $ECHO_C" >&6
5840     else
5841     echo 'void f(){}' > conftest.c
5842     if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
5843     ac_cpu_pentiumpro=yes
5844     else
5845     ac_cpu_pentiumpro=no
5846     fi
5847     rm -f conftest*
5848    
5849     fi
5850 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
5851 gezelter 1490 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
5852     if test "$ac_cpu_pentiumpro" = yes; then
5853     :
5854     CPU_FLAGS=-mcpu=pentiumpro
5855     else
5856     :
5857    
5858 gezelter 2081
5859     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
5860 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
5861     if test "${ac_pentiumpro+set}" = set; then
5862     echo $ECHO_N "(cached) $ECHO_C" >&6
5863     else
5864     echo 'void f(){}' > conftest.c
5865     if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
5866     ac_pentiumpro=yes
5867     else
5868     ac_pentiumpro=no
5869     fi
5870     rm -f conftest*
5871    
5872     fi
5873 gezelter 2081 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
5874 gezelter 1490 echo "${ECHO_T}$ac_pentiumpro" >&6
5875     if test "$ac_pentiumpro" = yes; then
5876     :
5877     CPU_FLAGS=-mpentiumpro
5878     else
5879     :
5880    
5881     fi
5882    
5883     fi
5884    
5885     ;;
5886     powerpc*)
5887     cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
5888     is60x=`echo $cputype | egrep "^600-9e?$"`
5889     if test -n "$is60x"; then
5890    
5891 gezelter 2081
5892     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
5893 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
5894     if test "${ac_m_cpu_60x+set}" = set; then
5895     echo $ECHO_N "(cached) $ECHO_C" >&6
5896     else
5897     echo 'void f(){}' > conftest.c
5898     if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
5899     ac_m_cpu_60x=yes
5900     else
5901     ac_m_cpu_60x=no
5902     fi
5903     rm -f conftest*
5904    
5905     fi
5906 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
5907 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_60x" >&6
5908     if test "$ac_m_cpu_60x" = yes; then
5909     :
5910     CPU_FLAGS=-mcpu=$cputype
5911     else
5912     :
5913    
5914     fi
5915    
5916     elif test "$cputype" = 750; then
5917    
5918 gezelter 2081
5919     echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
5920 gezelter 1490 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
5921     if test "${ac_cv_prog_gcc_2_95+set}" = set; then
5922     echo $ECHO_N "(cached) $ECHO_C" >&6
5923     else
5924    
5925     cat > conftest.c <<EOF
5926     #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
5927     # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
5928     yes;
5929     # endif
5930     #endif
5931     EOF
5932     if { ac_try='${CC-cc} -E conftest.c'
5933 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 gezelter 1490 (eval $ac_try) 2>&5
5935     ac_status=$?
5936 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 gezelter 1490 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
5938     ac_cv_prog_gcc_2_95=yes
5939     else
5940     ac_cv_prog_gcc_2_95=no
5941     fi
5942    
5943     fi
5944 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
5945 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
5946     if test "$ac_cv_prog_gcc_2_95" = yes; then
5947     :
5948    
5949 gezelter 2081
5950     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
5951 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
5952     if test "${ac_m_cpu_750+set}" = set; then
5953     echo $ECHO_N "(cached) $ECHO_C" >&6
5954     else
5955     echo 'void f(){}' > conftest.c
5956     if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
5957     ac_m_cpu_750=yes
5958     else
5959     ac_m_cpu_750=no
5960     fi
5961     rm -f conftest*
5962    
5963     fi
5964 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
5965 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_750" >&6
5966     if test "$ac_m_cpu_750" = yes; then
5967     :
5968     CPU_FLAGS=-mcpu=750
5969     else
5970     :
5971    
5972     fi
5973    
5974     else
5975     :
5976    
5977     fi
5978    
5979     fi
5980     if test -z "$CPU_FLAGS"; then
5981    
5982 gezelter 2081
5983     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
5984 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
5985     if test "${ac_m_cpu_powerpc+set}" = set; then
5986     echo $ECHO_N "(cached) $ECHO_C" >&6
5987     else
5988     echo 'void f(){}' > conftest.c
5989     if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
5990     ac_m_cpu_powerpc=yes
5991     else
5992     ac_m_cpu_powerpc=no
5993     fi
5994     rm -f conftest*
5995    
5996     fi
5997 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
5998 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
5999     if test "$ac_m_cpu_powerpc" = yes; then
6000     :
6001     CPU_FLAGS=-mcpu=powerpc
6002     else
6003     :
6004    
6005     fi
6006    
6007     fi
6008     if test -z "$CPU_FLAGS"; then
6009    
6010 gezelter 2081
6011     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
6012 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
6013     if test "${ac_m_powerpc+set}" = set; then
6014     echo $ECHO_N "(cached) $ECHO_C" >&6
6015     else
6016     echo 'void f(){}' > conftest.c
6017     if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
6018     ac_m_powerpc=yes
6019     else
6020     ac_m_powerpc=no
6021     fi
6022     rm -f conftest*
6023    
6024     fi
6025 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
6026 gezelter 1490 echo "${ECHO_T}$ac_m_powerpc" >&6
6027     if test "$ac_m_powerpc" = yes; then
6028     :
6029     CPU_FLAGS=-mpowerpc
6030     else
6031     :
6032    
6033     fi
6034    
6035     fi
6036     esac
6037     fi
6038    
6039     if test -n "$CPU_FLAGS"; then
6040     CFLAGS="$CFLAGS $CPU_FLAGS"
6041     fi
6042    
6043     if test -z "$CFLAGS"; then
6044     echo ""
6045     echo "********************************************************"
6046     echo "* WARNING: Don't know the best CFLAGS for this system *"
6047     echo "* Use make CFLAGS=..., or edit the top level Makefile *"
6048     echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
6049     echo "********************************************************"
6050     echo ""
6051     CFLAGS="-O3"
6052     fi
6053    
6054 gezelter 2081
6055    
6056     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
6057 gezelter 1490 echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
6058     if test "${ac_guessed_cflags+set}" = set; then
6059     echo $ECHO_N "(cached) $ECHO_C" >&6
6060     else
6061     echo 'void f(){}' > conftest.c
6062     if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
6063     ac_guessed_cflags=yes
6064     else
6065     ac_guessed_cflags=no
6066     fi
6067     rm -f conftest*
6068    
6069     fi
6070 gezelter 2081 echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
6071 gezelter 1490 echo "${ECHO_T}$ac_guessed_cflags" >&6
6072     if test "$ac_guessed_cflags" = yes; then
6073     :
6074    
6075     else
6076     :
6077    
6078     echo ""
6079     echo "********************************************************"
6080     echo "* WARNING: The guessed CFLAGS don't seem to work with *"
6081     echo "* your compiler. *"
6082     echo "* Use make CFLAGS=..., or edit the top level Makefile *"
6083     echo "********************************************************"
6084     echo ""
6085     CFLAGS=""
6086    
6087     fi
6088    
6089 gezelter 2081
6090 gezelter 1490 fi
6091    
6092 gezelter 2081
6093    
6094    
6095    
6096    
6097    
6098     echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
6099 gezelter 1490 echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
6100     if test "${ac_cv_prog_really_gxx+set}" = set; then
6101     echo $ECHO_N "(cached) $ECHO_C" >&6
6102     else
6103    
6104     cat > conftest.cpp <<EOF
6105     #ifdef __GNUC__
6106     #ifndef __INTEL_COMPILER
6107     yes;
6108     #endif
6109     #endif
6110     EOF
6111     if { ac_try='${CXX-c++} -E conftest.cpp'
6112 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113 gezelter 1490 (eval $ac_try) 2>&5
6114     ac_status=$?
6115 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 gezelter 1490 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
6117     ac_cv_prog_really_gxx=yes
6118     else
6119     ac_cv_prog_really_gxx=no
6120     fi
6121    
6122     fi
6123 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
6124 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
6125     if test "$ac_cv_prog_really_gxx" = yes; then
6126     :
6127    
6128     else
6129     :
6130    
6131     fi
6132    
6133 gezelter 2081
6134 gezelter 1490 # Try to determine "good" native compiler flags if none specified on command
6135     # line
6136     if test "$ac_test_CXXFLAGS" != "set"; then
6137     CXXFLAGS=""
6138     case "${host_cpu}-${host_os}" in
6139    
6140     *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
6141     CXXFLAGS="-O"
6142     fi;;
6143     sparc-solaris2*) if test "$CXX" = CC; then
6144     CXXFLAGS="-native -fast -xO5 -dalign"
6145     fi;;
6146     rs6000*-aix*) if test "$CXX" = xlC; then
6147     CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
6148     fi;;
6149     powerpc*-aix*)
6150     if test "$CXX" = xlC; then
6151     CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
6152     echo "*******************************************************"
6153     echo "* You have AIX on an unknown powerpc system. It is *"
6154     echo "* recommended that you use *"
6155     echo "* *"
6156     echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
6157     echo "* ^^^ *"
6158     echo "* where xxx is 601, 603, 604, or whatever kind of *"
6159     echo "* PowerPC CPU you have. For more info, man cc. *"
6160     echo "*******************************************************"
6161     fi;;
6162     *darwin*)
6163 gezelter 2022 if test "$CXX" = xlc++ -o "$CXX" = xlC ; then
6164 chuckv 1579 CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
6165 gezelter 1490 fi;;
6166     esac
6167    
6168     # use default flags for gcc on all systems
6169     if test $ac_cv_prog_really_gxx = yes; then
6170     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
6171     fi
6172    
6173     # test for gcc-specific flags:
6174     if test $ac_cv_prog_really_gxx = yes; then
6175     # -malign-double for x86 systems
6176    
6177 gezelter 2081
6178     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
6179 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
6180     if test "${ac_align_double+set}" = set; then
6181     echo $ECHO_N "(cached) $ECHO_C" >&6
6182     else
6183     echo 'void f(){}' > conftest.cpp
6184     if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
6185     ac_align_double=yes
6186     else
6187     ac_align_double=no
6188     fi
6189     rm -f conftest*
6190    
6191     fi
6192 gezelter 2081 echo "$as_me:$LINENO: result: $ac_align_double" >&5
6193 gezelter 1490 echo "${ECHO_T}$ac_align_double" >&6
6194     if test "$ac_align_double" = yes; then
6195     :
6196     CXXFLAGS="$CXXFLAGS -malign-double"
6197     else
6198     :
6199    
6200     fi
6201    
6202     # -fstrict-aliasing for gcc-2.95+
6203    
6204 gezelter 2081
6205     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
6206 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
6207     if test "${ac_fstrict_aliasing+set}" = set; then
6208     echo $ECHO_N "(cached) $ECHO_C" >&6
6209     else
6210     echo 'void f(){}' > conftest.cpp
6211     if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
6212     ac_fstrict_aliasing=yes
6213     else
6214     ac_fstrict_aliasing=no
6215     fi
6216     rm -f conftest*
6217    
6218     fi
6219 gezelter 2081 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
6220 gezelter 1490 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
6221     if test "$ac_fstrict_aliasing" = yes; then
6222     :
6223     CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
6224     else
6225     :
6226    
6227     fi
6228    
6229     fi
6230    
6231     CPU_FLAGS=""
6232     if test $ac_cv_prog_really_gxx = yes; then
6233     case "${host_cpu}" in
6234     i586*)
6235    
6236 gezelter 2081 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
6237 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
6238     if test "${ac_cpu_pentium+set}" = set; then
6239     echo $ECHO_N "(cached) $ECHO_C" >&6
6240     else
6241     echo 'void f(){}' > conftest.cpp
6242     if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
6243     ac_cpu_pentium=yes
6244     else
6245     ac_cpu_pentium=no
6246     fi
6247     rm -f conftest*
6248    
6249     fi
6250 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
6251 gezelter 1490 echo "${ECHO_T}$ac_cpu_pentium" >&6
6252     if test "$ac_cpu_pentium" = yes; then
6253     :
6254     CPU_FLAGS=-mcpu=pentium
6255     else
6256     :
6257    
6258 gezelter 2081
6259     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
6260 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
6261     if test "${ac_pentium+set}" = set; then
6262     echo $ECHO_N "(cached) $ECHO_C" >&6
6263     else
6264     echo 'void f(){}' > conftest.cpp
6265     if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
6266     ac_pentium=yes
6267     else
6268     ac_pentium=no
6269     fi
6270     rm -f conftest*
6271    
6272     fi
6273 gezelter 2081 echo "$as_me:$LINENO: result: $ac_pentium" >&5
6274 gezelter 1490 echo "${ECHO_T}$ac_pentium" >&6
6275     if test "$ac_pentium" = yes; then
6276     :
6277     CPU_FLAGS=-mpentium
6278     else
6279     :
6280    
6281     fi
6282    
6283     fi
6284    
6285     ;;
6286     i686*)
6287    
6288 gezelter 2081 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
6289 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
6290     if test "${ac_cpu_pentiumpro+set}" = set; then
6291     echo $ECHO_N "(cached) $ECHO_C" >&6
6292     else
6293     echo 'void f(){}' > conftest.cpp
6294     if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
6295     ac_cpu_pentiumpro=yes
6296     else
6297     ac_cpu_pentiumpro=no
6298     fi
6299     rm -f conftest*
6300    
6301     fi
6302 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
6303 gezelter 1490 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
6304     if test "$ac_cpu_pentiumpro" = yes; then
6305     :
6306     CPU_FLAGS=-mcpu=pentiumpro
6307     else
6308     :
6309    
6310 gezelter 2081
6311     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
6312 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
6313     if test "${ac_pentiumpro+set}" = set; then
6314     echo $ECHO_N "(cached) $ECHO_C" >&6
6315     else
6316     echo 'void f(){}' > conftest.cpp
6317     if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
6318     ac_pentiumpro=yes
6319     else
6320     ac_pentiumpro=no
6321     fi
6322     rm -f conftest*
6323    
6324     fi
6325 gezelter 2081 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
6326 gezelter 1490 echo "${ECHO_T}$ac_pentiumpro" >&6
6327     if test "$ac_pentiumpro" = yes; then
6328     :
6329     CPU_FLAGS=-mpentiumpro
6330     else
6331     :
6332    
6333     fi
6334    
6335     fi
6336    
6337     ;;
6338     powerpc*)
6339     cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
6340     is60x=`echo $cputype | egrep "^600-9e?$"`
6341     if test -n "$is60x"; then
6342    
6343 gezelter 2081
6344     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
6345 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
6346     if test "${ac_m_cpu_60x+set}" = set; then
6347     echo $ECHO_N "(cached) $ECHO_C" >&6
6348     else
6349     echo 'void f(){}' > conftest.cpp
6350     if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
6351     ac_m_cpu_60x=yes
6352     else
6353     ac_m_cpu_60x=no
6354     fi
6355     rm -f conftest*
6356    
6357     fi
6358 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
6359 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_60x" >&6
6360     if test "$ac_m_cpu_60x" = yes; then
6361     :
6362     CPU_FLAGS=-mcpu=$cputype
6363     else
6364     :
6365    
6366     fi
6367    
6368     elif test "$cputype" = 750; then
6369    
6370 gezelter 2081
6371     echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
6372 gezelter 1490 echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
6373     if test "${ac_cv_prog_gxx_2_95+set}" = set; then
6374     echo $ECHO_N "(cached) $ECHO_C" >&6
6375     else
6376    
6377     cat > conftest.cpp <<EOF
6378     #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
6379     # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
6380     yes;
6381     # endif
6382     #endif
6383     EOF
6384     if { ac_try='${CXX-c++} -E conftest.cpp'
6385 gezelter 2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 gezelter 1490 (eval $ac_try) 2>&5
6387     ac_status=$?
6388 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 gezelter 1490 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
6390     ac_cv_prog_gxx_2_95=yes
6391     else
6392     ac_cv_prog_gxx_2_95=no
6393     fi
6394    
6395     fi
6396 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
6397 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
6398     if test "$ac_cv_prog_gxx_2_95" = yes; then
6399     :
6400    
6401 gezelter 2081
6402     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
6403 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
6404     if test "${ac_m_cpu_750+set}" = set; then
6405     echo $ECHO_N "(cached) $ECHO_C" >&6
6406     else
6407     echo 'void f(){}' > conftest.cpp
6408     if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
6409     ac_m_cpu_750=yes
6410     else
6411     ac_m_cpu_750=no
6412     fi
6413     rm -f conftest*
6414    
6415     fi
6416 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
6417 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_750" >&6
6418     if test "$ac_m_cpu_750" = yes; then
6419     :
6420     CPU_FLAGS=-mcpu=750
6421     else
6422     :
6423    
6424     fi
6425    
6426     else
6427     :
6428    
6429     fi
6430    
6431     fi
6432     if test -z "$CPU_FLAGS"; then
6433    
6434 gezelter 2081
6435     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
6436 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
6437     if test "${ac_m_cpu_powerpc+set}" = set; then
6438     echo $ECHO_N "(cached) $ECHO_C" >&6
6439     else
6440     echo 'void f(){}' > conftest.cpp
6441     if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
6442     ac_m_cpu_powerpc=yes
6443     else
6444     ac_m_cpu_powerpc=no
6445     fi
6446     rm -f conftest*
6447    
6448     fi
6449 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
6450 gezelter 1490 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
6451     if test "$ac_m_cpu_powerpc" = yes; then
6452     :
6453     CPU_FLAGS=-mcpu=powerpc
6454     else
6455     :
6456    
6457     fi
6458    
6459     fi
6460     if test -z "$CPU_FLAGS"; then
6461    
6462 gezelter 2081
6463     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
6464 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
6465     if test "${ac_m_powerpc+set}" = set; then
6466     echo $ECHO_N "(cached) $ECHO_C" >&6
6467     else
6468     echo 'void f(){}' > conftest.cpp
6469     if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
6470     ac_m_powerpc=yes
6471     else
6472     ac_m_powerpc=no
6473     fi
6474     rm -f conftest*
6475    
6476     fi
6477 gezelter 2081 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
6478 gezelter 1490 echo "${ECHO_T}$ac_m_powerpc" >&6
6479     if test "$ac_m_powerpc" = yes; then
6480     :
6481     CPU_FLAGS=-mpowerpc
6482     else
6483     :
6484    
6485     fi
6486    
6487     fi
6488     esac
6489     fi
6490    
6491     if test -n "$CPU_FLAGS"; then
6492     CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
6493     fi
6494    
6495     if test -z "$CXXFLAGS"; then
6496     echo ""
6497     echo "**********************************************************"
6498     echo "* WARNING: Don't know the best CXXFLAGS for this system *"
6499     echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
6500     echo "* (otherwise, a default of CXXFLAGS=-O3 will be used) *"
6501     echo "**********************************************************"
6502     echo ""
6503     CXXFLAGS="-O3"
6504     fi
6505    
6506 gezelter 2081
6507    
6508     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
6509 gezelter 1490 echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
6510     if test "${ac_guessed_cxxflags+set}" = set; then
6511     echo $ECHO_N "(cached) $ECHO_C" >&6
6512     else
6513     echo 'void f(){}' > conftest.cpp
6514     if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
6515     ac_guessed_cxxflags=yes
6516     else
6517     ac_guessed_cxxflags=no
6518     fi
6519     rm -f conftest*
6520    
6521     fi
6522 gezelter 2081 echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
6523 gezelter 1490 echo "${ECHO_T}$ac_guessed_cxxflags" >&6
6524     if test "$ac_guessed_cxxflags" = yes; then
6525     :
6526    
6527     else
6528     :
6529    
6530     echo ""
6531     echo "**********************************************************"
6532     echo "* WARNING: The guessed CXXFLAGS don't seem to work with *"
6533     echo "* your compiler. *"
6534     echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
6535     echo "**********************************************************"
6536     echo ""
6537     CXXFLAGS=""
6538    
6539     fi
6540    
6541 gezelter 2081
6542 gezelter 1490 fi
6543    
6544 gezelter 2081
6545    
6546    
6547    
6548 gezelter 1490 # Try to determine "good" native compiler flags if none specified on command
6549     # line
6550    
6551     if test x"$F90FLAGS" = x ; then
6552     F90FLAGS=""
6553     case "${host_cpu}-${host_os}" in
6554    
6555     *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
6556     F90FLAGS="-O"
6557     fi;;
6558     rs6000*-aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
6559     F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
6560     fi;;
6561     powerpc*-aix*)
6562     if test "$F90" = f90 -o "$F90" = xlf90; then
6563     F90FLAGS="-O3 -qarch=ppc -qansialias -w"
6564     echo "*******************************************************"
6565     echo "* You have AIX on an unknown powerpc system. It is *"
6566     echo "* recommended that you use *"
6567     echo "* *"
6568     echo "* F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
6569     echo "* ^^^ *"
6570     echo "* where xxx is 601, 603, 604, or whatever kind of *"
6571     echo "* PowerPC CPU you have. For more info, man xlf. *"
6572     echo "*******************************************************"
6573     fi;;
6574     *darwin*)
6575     if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then
6576 chuckv 1579 F90FLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
6577 gezelter 1490 fi;;
6578     esac
6579    
6580     if test -n "$CPU_FLAGS"; then
6581     F90FLAGS="$F90FLAGS $CPU_FLAGS"
6582     fi
6583    
6584     if test -z "$F90FLAGS"; then
6585     echo ""
6586     echo "**********************************************************"
6587     echo "* WARNING: Don't know the best F90FLAGS for this system *"
6588     echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
6589     echo "* (otherwise, a default of F90FLAGS=-O3 will be used) *"
6590     echo "**********************************************************"
6591     echo ""
6592     F90FLAGS="-O3"
6593     fi
6594    
6595 gezelter 2081
6596     echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
6597 gezelter 1490 echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
6598     if test "${ac_guessed_f90flags+set}" = set; then
6599     echo $ECHO_N "(cached) $ECHO_C" >&6
6600     else
6601    
6602 gezelter 2081
6603    
6604 gezelter 1490 ac_ext=f90
6605     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6606     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6607     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6608    
6609     echo 'program main' > conftest.$ac_ext
6610     echo 'end program main' >> conftest.$ac_ext
6611     ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
6612 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6613 gezelter 1490 (eval $ac_compile) 2>&5
6614     ac_status=$?
6615 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 gezelter 1490 (exit $ac_status); }; then
6617     ac_guessed_f90flags=yes
6618     else
6619     ac_guessed_f90flags=no
6620     fi
6621     rm -f conftest*
6622     ac_ext=c
6623     ac_cpp='$CPP $CPPFLAGS'
6624     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6625     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6626     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6627    
6628 gezelter 2081
6629 gezelter 1490 fi
6630 gezelter 2081 echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
6631 gezelter 1490 echo "${ECHO_T}$ac_guessed_f90flags" >&6
6632     if test "$ac_guessed_f90flags" = yes; then
6633     :
6634    
6635     else
6636     :
6637    
6638     echo ""
6639     echo "**********************************************************"
6640     echo "* WARNING: The guessed F90FLAGS don't seem to work with *"
6641     echo "* your compiler. *"
6642     echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
6643     echo "**********************************************************"
6644     echo ""
6645     F90FLAGS=""
6646    
6647     fi
6648    
6649 gezelter 2081
6650 gezelter 1490 fi
6651    
6652     ;;
6653     esac
6654    
6655     # Find a good install program. We prefer a C program (faster),
6656     # so one script is as good as another. But avoid the broken or
6657     # incompatible versions:
6658     # SysV /etc/install, /usr/sbin/install
6659     # SunOS /usr/etc/install
6660     # IRIX /sbin/install
6661     # AIX /bin/install
6662     # AmigaOS /C/install, which installs bootblocks on floppy discs
6663     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6664     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6665     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6666 gezelter 2081 # OS/2's system install, which has a completely different semantic
6667 gezelter 1490 # ./install, which can be erroneously created by make from ./install.sh.
6668 gezelter 2081 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6669     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6670 gezelter 1490 if test -z "$INSTALL"; then
6671     if test "${ac_cv_path_install+set}" = set; then
6672     echo $ECHO_N "(cached) $ECHO_C" >&6
6673     else
6674 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675     for as_dir in $PATH
6676     do
6677     IFS=$as_save_IFS
6678     test -z "$as_dir" && as_dir=.
6679     # Account for people who put trailing slashes in PATH elements.
6680     case $as_dir/ in
6681     ./ | .// | /cC/* | \
6682     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6683     ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6684     /usr/ucb/* ) ;;
6685     *)
6686     # OSF1 and SCO ODT 3.0 have their own names for install.
6687     # Don't use installbsd from OSF since it installs stuff as root
6688     # by default.
6689     for ac_prog in ginstall scoinst install; do
6690     for ac_exec_ext in '' $ac_executable_extensions; do
6691     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6692 gezelter 2026 if test $ac_prog = install &&
6693 gezelter 2081 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6694 gezelter 2026 # AIX install. It has an incompatible calling convention.
6695     :
6696     elif test $ac_prog = install &&
6697 gezelter 2081 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6698 gezelter 2026 # program-specific install script used by HP pwplus--don't use.
6699     :
6700     else
6701 gezelter 2081 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6702     break 3
6703 gezelter 2026 fi
6704     fi
6705 gezelter 1490 done
6706 gezelter 2081 done
6707     ;;
6708     esac
6709     done
6710 gezelter 1490
6711 gezelter 2081
6712 gezelter 1490 fi
6713     if test "${ac_cv_path_install+set}" = set; then
6714     INSTALL=$ac_cv_path_install
6715     else
6716     # As a last resort, use the slow shell script. We don't cache a
6717     # path for INSTALL within a source directory, because that will
6718     # break other packages using the cache if that directory is
6719     # removed, or if the path is relative.
6720     INSTALL=$ac_install_sh
6721     fi
6722     fi
6723 gezelter 2081 echo "$as_me:$LINENO: result: $INSTALL" >&5
6724 gezelter 1490 echo "${ECHO_T}$INSTALL" >&6
6725    
6726     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6727     # It thinks the first close brace ends the variable substitution.
6728     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6729    
6730     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6731    
6732     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6733    
6734 gezelter 2081 echo "$as_me:$LINENO: checking whether ln -s works" >&5
6735 gezelter 1490 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6736     LN_S=$as_ln_s
6737     if test "$LN_S" = "ln -s"; then
6738 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
6739 gezelter 1490 echo "${ECHO_T}yes" >&6
6740     else
6741 gezelter 2081 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6742 gezelter 1490 echo "${ECHO_T}no, using $LN_S" >&6
6743     fi
6744    
6745 gezelter 2081 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6746     echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6747     set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6748 gezelter 1490 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6749     echo $ECHO_N "(cached) $ECHO_C" >&6
6750     else
6751 gezelter 2081 cat >conftest.make <<\_ACEOF
6752 gezelter 1490 all:
6753 gezelter 2081 @echo 'ac_maketemp="$(MAKE)"'
6754     _ACEOF
6755 gezelter 1490 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6756     eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6757     if test -n "$ac_maketemp"; then
6758     eval ac_cv_prog_make_${ac_make}_set=yes
6759     else
6760     eval ac_cv_prog_make_${ac_make}_set=no
6761     fi
6762     rm -f conftest.make
6763     fi
6764     if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6765 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
6766 gezelter 1490 echo "${ECHO_T}yes" >&6
6767     SET_MAKE=
6768     else
6769 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
6770 gezelter 1490 echo "${ECHO_T}no" >&6
6771     SET_MAKE="MAKE=${MAKE-make}"
6772     fi
6773    
6774     if test -n "$ac_tool_prefix"; then
6775     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6776     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6777 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6779     if test "${ac_cv_prog_RANLIB+set}" = set; then
6780     echo $ECHO_N "(cached) $ECHO_C" >&6
6781     else
6782     if test -n "$RANLIB"; then
6783     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6784     else
6785 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786     for as_dir in $PATH
6787     do
6788     IFS=$as_save_IFS
6789     test -z "$as_dir" && as_dir=.
6790     for ac_exec_ext in '' $ac_executable_extensions; do
6791     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6792     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794     break 2
6795     fi
6796 gezelter 1490 done
6797 gezelter 2081 done
6798 gezelter 1490
6799     fi
6800     fi
6801     RANLIB=$ac_cv_prog_RANLIB
6802     if test -n "$RANLIB"; then
6803 gezelter 2081 echo "$as_me:$LINENO: result: $RANLIB" >&5
6804 gezelter 1490 echo "${ECHO_T}$RANLIB" >&6
6805     else
6806 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
6807 gezelter 1490 echo "${ECHO_T}no" >&6
6808     fi
6809    
6810     fi
6811     if test -z "$ac_cv_prog_RANLIB"; then
6812     ac_ct_RANLIB=$RANLIB
6813     # Extract the first word of "ranlib", so it can be a program name with args.
6814     set dummy ranlib; ac_word=$2
6815 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6817     if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6818     echo $ECHO_N "(cached) $ECHO_C" >&6
6819     else
6820     if test -n "$ac_ct_RANLIB"; then
6821     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6822     else
6823 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824     for as_dir in $PATH
6825     do
6826     IFS=$as_save_IFS
6827     test -z "$as_dir" && as_dir=.
6828     for ac_exec_ext in '' $ac_executable_extensions; do
6829     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830     ac_cv_prog_ac_ct_RANLIB="ranlib"
6831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832     break 2
6833     fi
6834 gezelter 1490 done
6835 gezelter 2081 done
6836 gezelter 1490
6837     test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6838     fi
6839     fi
6840     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6841     if test -n "$ac_ct_RANLIB"; then
6842 gezelter 2081 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6843 gezelter 1490 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6844     else
6845 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
6846 gezelter 1490 echo "${ECHO_T}no" >&6
6847     fi
6848    
6849     RANLIB=$ac_ct_RANLIB
6850     else
6851     RANLIB="$ac_cv_prog_RANLIB"
6852     fi
6853    
6854     for ac_prog in 'bison -y' byacc
6855     do
6856     # Extract the first word of "$ac_prog", so it can be a program name with args.
6857     set dummy $ac_prog; ac_word=$2
6858 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
6859 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6860     if test "${ac_cv_prog_YACC+set}" = set; then
6861     echo $ECHO_N "(cached) $ECHO_C" >&6
6862     else
6863     if test -n "$YACC"; then
6864     ac_cv_prog_YACC="$YACC" # Let the user override the test.
6865     else
6866 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867     for as_dir in $PATH
6868     do
6869     IFS=$as_save_IFS
6870     test -z "$as_dir" && as_dir=.
6871     for ac_exec_ext in '' $ac_executable_extensions; do
6872     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873     ac_cv_prog_YACC="$ac_prog"
6874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875     break 2
6876     fi
6877 gezelter 1490 done
6878 gezelter 2081 done
6879 gezelter 1490
6880     fi
6881     fi
6882     YACC=$ac_cv_prog_YACC
6883     if test -n "$YACC"; then
6884 gezelter 2081 echo "$as_me:$LINENO: result: $YACC" >&5
6885 gezelter 1490 echo "${ECHO_T}$YACC" >&6
6886     else
6887 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
6888 gezelter 1490 echo "${ECHO_T}no" >&6
6889     fi
6890    
6891     test -n "$YACC" && break
6892     done
6893     test -n "$YACC" || YACC="yacc"
6894    
6895     for ac_prog in flex lex
6896     do
6897     # Extract the first word of "$ac_prog", so it can be a program name with args.
6898     set dummy $ac_prog; ac_word=$2
6899 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
6900 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6901     if test "${ac_cv_prog_LEX+set}" = set; then
6902     echo $ECHO_N "(cached) $ECHO_C" >&6
6903     else
6904     if test -n "$LEX"; then
6905     ac_cv_prog_LEX="$LEX" # Let the user override the test.
6906     else
6907 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908     for as_dir in $PATH
6909     do
6910     IFS=$as_save_IFS
6911     test -z "$as_dir" && as_dir=.
6912     for ac_exec_ext in '' $ac_executable_extensions; do
6913     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6914     ac_cv_prog_LEX="$ac_prog"
6915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916     break 2
6917     fi
6918 gezelter 1490 done
6919 gezelter 2081 done
6920 gezelter 1490
6921     fi
6922     fi
6923     LEX=$ac_cv_prog_LEX
6924     if test -n "$LEX"; then
6925 gezelter 2081 echo "$as_me:$LINENO: result: $LEX" >&5
6926 gezelter 1490 echo "${ECHO_T}$LEX" >&6
6927     else
6928 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
6929 gezelter 1490 echo "${ECHO_T}no" >&6
6930     fi
6931    
6932     test -n "$LEX" && break
6933     done
6934     test -n "$LEX" || LEX=":"
6935    
6936     if test -z "$LEXLIB"
6937     then
6938 gezelter 2081 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6939 gezelter 1490 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
6940     if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6941     echo $ECHO_N "(cached) $ECHO_C" >&6
6942     else
6943     ac_check_lib_save_LIBS=$LIBS
6944     LIBS="-lfl $LIBS"
6945     cat >conftest.$ac_ext <<_ACEOF
6946 gezelter 2081 /* confdefs.h. */
6947     _ACEOF
6948     cat confdefs.h >>conftest.$ac_ext
6949     cat >>conftest.$ac_ext <<_ACEOF
6950     /* end confdefs.h. */
6951 gezelter 1490
6952     /* Override any gcc2 internal prototype to avoid an error. */
6953     #ifdef __cplusplus
6954     extern "C"
6955     #endif
6956     /* We use char because int might match the return type of a gcc2
6957     builtin and then its argument prototype would still apply. */
6958     char yywrap ();
6959     int
6960     main ()
6961     {
6962     yywrap ();
6963     ;
6964     return 0;
6965     }
6966     _ACEOF
6967     rm -f conftest.$ac_objext conftest$ac_exeext
6968 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6969     (eval $ac_link) 2>conftest.er1
6970 gezelter 1490 ac_status=$?
6971 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
6972     rm -f conftest.er1
6973     cat conftest.err >&5
6974     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 gezelter 1490 (exit $ac_status); } &&
6976 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
6977     || test ! -s conftest.err'
6978     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 gezelter 1490 (eval $ac_try) 2>&5
6980     ac_status=$?
6981 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982     (exit $ac_status); }; } &&
6983     { ac_try='test -s conftest$ac_exeext'
6984     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985     (eval $ac_try) 2>&5
6986     ac_status=$?
6987     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 gezelter 1490 (exit $ac_status); }; }; then
6989     ac_cv_lib_fl_yywrap=yes
6990     else
6991     echo "$as_me: failed program was:" >&5
6992 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
6993    
6994 gezelter 1490 ac_cv_lib_fl_yywrap=no
6995     fi
6996 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
6997     conftest$ac_exeext conftest.$ac_ext
6998 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
6999     fi
7000 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
7001 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
7002     if test $ac_cv_lib_fl_yywrap = yes; then
7003     LEXLIB="-lfl"
7004     else
7005 gezelter 2081 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
7006 gezelter 1490 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
7007     if test "${ac_cv_lib_l_yywrap+set}" = set; then
7008     echo $ECHO_N "(cached) $ECHO_C" >&6
7009     else
7010     ac_check_lib_save_LIBS=$LIBS
7011     LIBS="-ll $LIBS"
7012     cat >conftest.$ac_ext <<_ACEOF
7013 gezelter 2081 /* confdefs.h. */
7014     _ACEOF
7015     cat confdefs.h >>conftest.$ac_ext
7016     cat >>conftest.$ac_ext <<_ACEOF
7017     /* end confdefs.h. */
7018 gezelter 1490
7019     /* Override any gcc2 internal prototype to avoid an error. */
7020     #ifdef __cplusplus
7021     extern "C"
7022     #endif
7023     /* We use char because int might match the return type of a gcc2
7024     builtin and then its argument prototype would still apply. */
7025     char yywrap ();
7026     int
7027     main ()
7028     {
7029     yywrap ();
7030     ;
7031     return 0;
7032     }
7033     _ACEOF
7034     rm -f conftest.$ac_objext conftest$ac_exeext
7035 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7036     (eval $ac_link) 2>conftest.er1
7037 gezelter 1490 ac_status=$?
7038 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
7039     rm -f conftest.er1
7040     cat conftest.err >&5
7041     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 gezelter 1490 (exit $ac_status); } &&
7043 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
7044     || test ! -s conftest.err'
7045     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 gezelter 1490 (eval $ac_try) 2>&5
7047     ac_status=$?
7048 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049     (exit $ac_status); }; } &&
7050     { ac_try='test -s conftest$ac_exeext'
7051     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052     (eval $ac_try) 2>&5
7053     ac_status=$?
7054     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 gezelter 1490 (exit $ac_status); }; }; then
7056     ac_cv_lib_l_yywrap=yes
7057     else
7058     echo "$as_me: failed program was:" >&5
7059 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
7060    
7061 gezelter 1490 ac_cv_lib_l_yywrap=no
7062     fi
7063 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
7064     conftest$ac_exeext conftest.$ac_ext
7065 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
7066     fi
7067 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
7068 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
7069     if test $ac_cv_lib_l_yywrap = yes; then
7070     LEXLIB="-ll"
7071     fi
7072    
7073     fi
7074    
7075     fi
7076    
7077     if test "x$LEX" != "x:"; then
7078 gezelter 2081 echo "$as_me:$LINENO: checking lex output file root" >&5
7079 gezelter 1490 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
7080     if test "${ac_cv_prog_lex_root+set}" = set; then
7081     echo $ECHO_N "(cached) $ECHO_C" >&6
7082     else
7083     # The minimal lex program is just a single line: %%. But some broken lexes
7084     # (Solaris, I think it was) want two %% lines, so accommodate them.
7085 gezelter 2081 cat >conftest.l <<_ACEOF
7086     %%
7087     %%
7088     _ACEOF
7089     { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
7090     (eval $LEX conftest.l) 2>&5
7091     ac_status=$?
7092     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093     (exit $ac_status); }
7094 gezelter 1490 if test -f lex.yy.c; then
7095     ac_cv_prog_lex_root=lex.yy
7096     elif test -f lexyy.c; then
7097     ac_cv_prog_lex_root=lexyy
7098     else
7099 gezelter 2081 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
7100 gezelter 1490 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
7101     { (exit 1); exit 1; }; }
7102     fi
7103     fi
7104 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
7105 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
7106 gezelter 2081 rm -f conftest.l
7107 gezelter 1490 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7108    
7109 gezelter 2081 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
7110 gezelter 1490 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
7111     if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
7112     echo $ECHO_N "(cached) $ECHO_C" >&6
7113     else
7114     # POSIX says lex can declare yytext either as a pointer or an array; the
7115     # default is implementation-dependent. Figure out which it is, since
7116     # not all implementations provide the %pointer and %array declarations.
7117     ac_cv_prog_lex_yytext_pointer=no
7118     echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
7119     ac_save_LIBS=$LIBS
7120     LIBS="$LIBS $LEXLIB"
7121     cat >conftest.$ac_ext <<_ACEOF
7122     `cat $LEX_OUTPUT_ROOT.c`
7123     _ACEOF
7124     rm -f conftest.$ac_objext conftest$ac_exeext
7125 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7126     (eval $ac_link) 2>conftest.er1
7127 gezelter 1490 ac_status=$?
7128 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
7129     rm -f conftest.er1
7130     cat conftest.err >&5
7131     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 gezelter 1490 (exit $ac_status); } &&
7133 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
7134     || test ! -s conftest.err'
7135     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 gezelter 1490 (eval $ac_try) 2>&5
7137     ac_status=$?
7138 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139     (exit $ac_status); }; } &&
7140     { ac_try='test -s conftest$ac_exeext'
7141     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142     (eval $ac_try) 2>&5
7143     ac_status=$?
7144     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 gezelter 1490 (exit $ac_status); }; }; then
7146     ac_cv_prog_lex_yytext_pointer=yes
7147     else
7148     echo "$as_me: failed program was:" >&5
7149 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
7150    
7151 gezelter 1490 fi
7152 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
7153     conftest$ac_exeext conftest.$ac_ext
7154 gezelter 1490 LIBS=$ac_save_LIBS
7155     rm -f "${LEX_OUTPUT_ROOT}.c"
7156    
7157     fi
7158 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
7159 gezelter 1490 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
7160     if test $ac_cv_prog_lex_yytext_pointer = yes; then
7161    
7162 gezelter 2081 cat >>confdefs.h <<\_ACEOF
7163 gezelter 1490 #define YYTEXT_POINTER 1
7164 gezelter 2081 _ACEOF
7165 gezelter 1490
7166     fi
7167    
7168     fi
7169 gezelter 2199
7170     # Extract the first word of "perl", so it can be a program name with args.
7171     set dummy perl; ac_word=$2
7172     echo "$as_me:$LINENO: checking for $ac_word" >&5
7173     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7174     if test "${ac_cv_path_PERLINTERP+set}" = set; then
7175     echo $ECHO_N "(cached) $ECHO_C" >&6
7176     else
7177     case $PERLINTERP in
7178     [\\/]* | ?:[\\/]*)
7179     ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
7180     ;;
7181     *)
7182     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183     for as_dir in $PATH
7184     do
7185     IFS=$as_save_IFS
7186     test -z "$as_dir" && as_dir=.
7187     for ac_exec_ext in '' $ac_executable_extensions; do
7188     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189     ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
7190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191     break 2
7192     fi
7193     done
7194     done
7195    
7196     test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
7197     ;;
7198     esac
7199     fi
7200     PERLINTERP=$ac_cv_path_PERLINTERP
7201    
7202     if test -n "$PERLINTERP"; then
7203     echo "$as_me:$LINENO: result: $PERLINTERP" >&5
7204     echo "${ECHO_T}$PERLINTERP" >&6
7205     else
7206     echo "$as_me:$LINENO: result: no" >&5
7207     echo "${ECHO_T}no" >&6
7208     fi
7209    
7210     ac_cv_path_perlinterp="$PERLINTERP"
7211     _sHpB='#!'
7212    
7213    
7214     # Check whether --with-perl-shebang or --without-perl-shebang was given.
7215     if test "${with_perl_shebang+set}" = set; then
7216     withval="$with_perl_shebang"
7217     opt_perl_shebang="$withval"
7218     else
7219     opt_perl_shebang="not_set"
7220     fi;
7221     echo "$as_me:$LINENO: checking whether explicit instead of detected sharpbang is to be used" >&5
7222     echo $ECHO_N "checking whether explicit instead of detected sharpbang is to be used... $ECHO_C" >&6
7223     if test "${ax_cv_opt_perl_shebang+set}" = set; then
7224     echo $ECHO_N "(cached) $ECHO_C" >&6
7225     else
7226     case "$opt_perl_shebang" in
7227     not_set ) ax_cv_opt_perl_shebang=''
7228     ;;
7229     * )
7230     ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
7231     esac
7232    
7233     fi
7234     echo "$as_me:$LINENO: result: $ax_cv_opt_perl_shebang" >&5
7235     echo "${ECHO_T}$ax_cv_opt_perl_shebang" >&6
7236     if test "A$ax_cv_opt_perl_shebang" != "A"
7237     then
7238     ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
7239     PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
7240     { echo "$as_me:$LINENO: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
7241     echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
7242    
7243     # Automatic detection of sharpbang formula starts here
7244     else
7245     _somian_shbangperl=`$PERLINTERP -V:startperl`
7246     negclass="[^']"; # must leave this comment: m4 will remove the outer brackets for us, heheh
7247     echo "$as_me:$LINENO: checking for kernel sharpbang invocation to start perl" >&5
7248     echo $ECHO_N "checking for kernel sharpbang invocation to start perl... $ECHO_C" >&6
7249     if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then
7250     echo $ECHO_N "(cached) $ECHO_C" >&6
7251     else
7252     _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
7253     if test "x$_somian_kspb_perl" == x
7254     then _somian_ksbp_warn_empty='durnit'
7255     else
7256     case "A$_somian_kspb_perl" in
7257     A#!*perl* )
7258     ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
7259     ;;
7260     A* ) _somian_ksbp_warn_defau='trouble'
7261     ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
7262     esac
7263     fi
7264    
7265     fi
7266     echo "$as_me:$LINENO: result: $ac_cv_sys_kernshrpbang_perl" >&5
7267     echo "${ECHO_T}$ac_cv_sys_kernshrpbang_perl" >&6
7268     # The above prints Checking ... result message to user.
7269     PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
7270    
7271     if test A${_somian_ksbp_warn_empty+set} == Aset
7272     then { echo "$as_me:$LINENO: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
7273     echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
7274     fi
7275     # Inform user after printing result value
7276     if test A${_somian_ksbp_warn_defau+set} == Aset
7277     then { echo "$as_me:$LINENO: Maybe Not good -" >&5
7278     echo "$as_me: Maybe Not good -" >&6;}
7279     { echo "$as_me:$LINENO: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
7280     echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
7281     else { echo "$as_me:$LINENO: OK Good result - " >&5
7282     echo "$as_me: OK Good result - " >&6;}
7283     { echo "$as_me:$LINENO: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
7284     echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
7285     fi
7286     fi
7287    
7288 gezelter 1490 # Extract the first word of "ar", so it can be a program name with args.
7289     set dummy ar; ac_word=$2
7290 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 gezelter 1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7292     if test "${ac_cv_prog_AR+set}" = set; then
7293     echo $ECHO_N "(cached) $ECHO_C" >&6
7294     else
7295     if test -n "$AR"; then
7296     ac_cv_prog_AR="$AR" # Let the user override the test.
7297     else
7298 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299     for as_dir in $PATH
7300     do
7301     IFS=$as_save_IFS
7302     test -z "$as_dir" && as_dir=.
7303     for ac_exec_ext in '' $ac_executable_extensions; do
7304     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305     ac_cv_prog_AR="ar"
7306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308     fi
7309 gezelter 1490 done
7310 gezelter 2081 done
7311 gezelter 1490
7312     test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
7313     fi
7314     fi
7315     AR=$ac_cv_prog_AR
7316     if test -n "$AR"; then
7317 gezelter 2081 echo "$as_me:$LINENO: result: $AR" >&5
7318 gezelter 1490 echo "${ECHO_T}$AR" >&6
7319     else
7320 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
7321 gezelter 1490 echo "${ECHO_T}no" >&6
7322     fi
7323    
7324     if test "$AR" = "NONE"; then
7325 gezelter 2081 { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
7326 gezelter 1490 echo "$as_me: error: --> Can't find \`ar'!" >&2;}
7327     { (exit 1); exit 1; }; }
7328     cat >confcache <<\_ACEOF
7329     # This file is a shell script that caches the results of configure
7330     # tests run on this system so they can be shared between configure
7331     # scripts and configure runs, see configure's option --config-cache.
7332     # It is not useful on other systems. If it contains results you don't
7333     # want to keep, you may remove or edit it.
7334     #
7335     # config.status only pays attention to the cache file if you give it
7336     # the --recheck option to rerun configure.
7337     #
7338 gezelter 2081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7339 gezelter 1490 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7340     # following values.
7341    
7342     _ACEOF
7343    
7344     # The following way of writing the cache mishandles newlines in values,
7345     # but we know of no workaround that is simple, portable, and efficient.
7346     # So, don't put newlines in cache variables' values.
7347     # Ultrix sh set writes to stderr and can't be redirected directly,
7348     # and sets the high bit in the cache file unless we assign to the vars.
7349     {
7350     (set) 2>&1 |
7351     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7352     *ac_space=\ *)
7353     # `set' does not quote correctly, so add quotes (double-quote
7354     # substitution turns \\\\ into \\, and sed turns \\ into \).
7355     sed -n \
7356 gezelter 2081 "s/'/'\\\\''/g;
7357     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7358 gezelter 1490 ;;
7359     *)
7360     # `set' quotes correctly as required by POSIX, so do not add quotes.
7361     sed -n \
7362 gezelter 2081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7363 gezelter 1490 ;;
7364     esac;
7365     } |
7366     sed '
7367     t clear
7368     : clear
7369     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7370     t end
7371     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7372     : end' >>confcache
7373 gezelter 2081 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7374 gezelter 1490 if test -w $cache_file; then
7375     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7376     cat confcache >$cache_file
7377     else
7378     echo "not updating unwritable cache $cache_file"
7379     fi
7380     fi
7381     rm -f confcache
7382     exit 1
7383     fi
7384    
7385 gezelter 2022 # Extract the first word of "ps", so it can be a program name with args.
7386     set dummy ps; ac_word=$2
7387 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 gezelter 2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7389 gezelter 2023 if test "${ac_cv_path_PS+set}" = set; then
7390 gezelter 2022 echo $ECHO_N "(cached) $ECHO_C" >&6
7391     else
7392 gezelter 2023 case $PS in
7393 gezelter 2022 [\\/]* | ?:[\\/]*)
7394 gezelter 2023 ac_cv_path_PS="$PS" # Let the user override the test with a path.
7395 gezelter 2022 ;;
7396     *)
7397 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398     for as_dir in $PATH
7399     do
7400     IFS=$as_save_IFS
7401     test -z "$as_dir" && as_dir=.
7402     for ac_exec_ext in '' $ac_executable_extensions; do
7403     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
7405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407     fi
7408 gezelter 2022 done
7409 gezelter 2081 done
7410 gezelter 1490
7411 gezelter 2022 ;;
7412     esac
7413     fi
7414 gezelter 2023 PS=$ac_cv_path_PS
7415 gezelter 1490
7416 gezelter 2023 if test -n "$PS"; then
7417 gezelter 2081 echo "$as_me:$LINENO: result: $PS" >&5
7418 gezelter 2023 echo "${ECHO_T}$PS" >&6
7419 gezelter 2022 else
7420 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
7421 gezelter 2022 echo "${ECHO_T}no" >&6
7422     fi
7423    
7424 gezelter 2081 echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5
7425 gezelter 2024 echo $ECHO_N "checking for POSIX or BSD ps syntax... $ECHO_C" >&6
7426     if test "${ac_cv_prog_ps_syntax+set}" = set; then
7427 gezelter 2022 echo $ECHO_N "(cached) $ECHO_C" >&6
7428     else
7429    
7430 gezelter 2026 if $PS ax -o rss > /dev/null 2>&1; then
7431     ac_cv_prog_ps_ax=yes
7432     else
7433     ac_cv_prog_ps_ax=no
7434     fi
7435 gezelter 2024 if $PS -ef -o rss > /dev/null 2>&1; then
7436     ac_cv_prog_ps_ef=yes
7437 gezelter 2022 else
7438 gezelter 2024 ac_cv_prog_ps_ef=no
7439 gezelter 2022 fi
7440 gezelter 2026 if test "$ac_cv_prog_ps_ax" = yes; then
7441     ac_cv_prog_ps_syntax=BSD
7442 gezelter 2024 else
7443 gezelter 2029 if test "$ac_cv_prog_ps_ef" = yes; then
7444 gezelter 2026 ac_cv_prog_ps_syntax=POSIX
7445 gezelter 2024 else
7446 gezelter 2081 { { echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5
7447 gezelter 2024 echo "$as_me: error: Could not determine ps syntax" >&2;}
7448     { (exit 1); exit 1; }; }
7449     fi
7450     fi
7451 gezelter 2022
7452     fi
7453 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5
7454 gezelter 2024 echo "${ECHO_T}$ac_cv_prog_ps_syntax" >&6
7455 gezelter 2022
7456 gezelter 2081
7457     cat >>confdefs.h <<_ACEOF
7458 gezelter 2027 #define PSCOMMAND $PS
7459 gezelter 2081 _ACEOF
7460 gezelter 2022
7461 gezelter 2081
7462 gezelter 2029 if test "$ac_cv_prog_ps_syntax" = BSD; then
7463 gezelter 2081 cat >>confdefs.h <<\_ACEOF
7464 gezelter 2029 #define PSTYPE_IS_BSD 1
7465 gezelter 2081 _ACEOF
7466 gezelter 2022
7467 gezelter 2029 else
7468     if test "$ac_cv_prog_ps_syntax" = POSIX; then
7469 gezelter 2081 cat >>confdefs.h <<\_ACEOF
7470 gezelter 2029 #define PSTYPE_IS_POSIX 1
7471 gezelter 2081 _ACEOF
7472 gezelter 2022
7473 gezelter 2029 else
7474 gezelter 2081 { { echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5
7475 gezelter 2029 echo "$as_me: error: Unknown ps syntax type!" >&2;}
7476     { (exit 1); exit 1; }; }
7477     fi
7478     fi
7479 gezelter 2022
7480 gezelter 2081
7481 gezelter 1490 # Check whether --with-mpi or --without-mpi was given.
7482     if test "${with_mpi+set}" = set; then
7483     withval="$with_mpi"
7484     with_mpi=$withval
7485     else
7486     with_mpi="no"
7487     fi;
7488    
7489     case "x$with_mpi" in
7490     xyes | "x") USE_MPI=yes;;
7491     xno) USE_MPI=no ;;
7492     *) MPI="$with_mpi"; USE_MPI=yes ;;
7493     esac
7494     if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
7495     MPI="/usr/local"
7496     fi
7497     if test "$USE_MPI" = "yes"; then
7498    
7499 gezelter 2081
7500 gezelter 1490 # Set variables...
7501     MPI_LIB_DIR="$MPI/lib"
7502     MPI_INC_DIR="$MPI/include"
7503    
7504 gezelter 2081
7505    
7506     echo "$as_me:$LINENO: checking for mpi.h" >&5
7507 gezelter 1490 echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
7508     have_mpi_h=0
7509 gezelter 2265 rm -f conftest*
7510 gezelter 1490 echo '#include <mpi.h>' > conftest.cc
7511 gezelter 2265 if ${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1 ; then
7512 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
7513 gezelter 1490 echo "${ECHO_T}yes" >&6
7514     have_mpi_h=1
7515     else
7516 gezelter 2265 if test -s conftest.out ; then
7517     cat conftest.out >> config.log
7518     fi
7519 gezelter 2081 echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
7520 gezelter 1490 echo "${ECHO_T}no! Check MPI include paths" >&6
7521     USE_MPI="no"
7522     fi
7523     rm -f conftest*
7524     if test "$have_mpi_h" = 1; then
7525    
7526 gezelter 2081 cat >>confdefs.h <<\_ACEOF
7527 gezelter 1490 #define HAVE_MPI_H 1
7528 gezelter 2081 _ACEOF
7529 gezelter 1490
7530     fi
7531    
7532 gezelter 2081 echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
7533 gezelter 1490 echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
7534     have_mpif_h=0
7535     rm -f conftest*
7536     cat >conftest.f90 <<EOF
7537     program main
7538     include 'mpif.h'
7539     end
7540     EOF
7541     if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then
7542 gezelter 2081 echo "$as_me:$LINENO: result: yes" >&5
7543 gezelter 1490 echo "${ECHO_T}yes" >&6
7544     MPI_F90_INC="$MPI_INC_DIR"
7545     have_mpif_h=1
7546     else
7547     if test -s conftest.out ; then
7548     cat conftest.out >> config.log
7549     fi
7550 gezelter 2081 echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
7551 gezelter 1490 echo "${ECHO_T}no! Check MPI include paths" >&6
7552     USE_MPI="no"
7553     fi
7554     rm -f conftest*
7555    
7556     if test "$have_mpif_h" = 1; then
7557    
7558 gezelter 2081 cat >>confdefs.h <<\_ACEOF
7559 gezelter 1490 #define HAVE_MPIF_H 1
7560 gezelter 2081 _ACEOF
7561 gezelter 1490
7562     fi
7563    
7564     ac_ext=c
7565     ac_cpp='$CPP $CPPFLAGS'
7566     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7567     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7568     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7569    
7570     ac_save_LDFLAGS=$LDFLAGS
7571     LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
7572    
7573     if test x = x"$MPI_LIB"; then
7574 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
7575 gezelter 1490 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
7576     if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
7577     echo $ECHO_N "(cached) $ECHO_C" >&6
7578     else
7579     ac_check_lib_save_LIBS=$LIBS
7580     LIBS="-lmpich $LIBS"
7581     cat >conftest.$ac_ext <<_ACEOF
7582 gezelter 2081 /* confdefs.h. */
7583     _ACEOF
7584     cat confdefs.h >>conftest.$ac_ext
7585     cat >>conftest.$ac_ext <<_ACEOF
7586     /* end confdefs.h. */
7587 gezelter 1490
7588     /* Override any gcc2 internal prototype to avoid an error. */
7589     #ifdef __cplusplus
7590     extern "C"
7591     #endif
7592     /* We use char because int might match the return type of a gcc2
7593     builtin and then its argument prototype would still apply. */
7594     char MPI_Init ();
7595     int
7596     main ()
7597     {
7598     MPI_Init ();
7599     ;
7600     return 0;
7601     }
7602     _ACEOF
7603     rm -f conftest.$ac_objext conftest$ac_exeext
7604 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605     (eval $ac_link) 2>conftest.er1
7606 gezelter 1490 ac_status=$?
7607 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
7608     rm -f conftest.er1
7609     cat conftest.err >&5
7610     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 gezelter 1490 (exit $ac_status); } &&
7612 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
7613     || test ! -s conftest.err'
7614     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 gezelter 1490 (eval $ac_try) 2>&5
7616     ac_status=$?
7617 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618     (exit $ac_status); }; } &&
7619     { ac_try='test -s conftest$ac_exeext'
7620     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621     (eval $ac_try) 2>&5
7622     ac_status=$?
7623     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 gezelter 1490 (exit $ac_status); }; }; then
7625     ac_cv_lib_mpich_MPI_Init=yes
7626     else
7627     echo "$as_me: failed program was:" >&5
7628 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
7629    
7630 gezelter 1490 ac_cv_lib_mpich_MPI_Init=no
7631     fi
7632 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
7633     conftest$ac_exeext conftest.$ac_ext
7634 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
7635     fi
7636 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
7637 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
7638     if test $ac_cv_lib_mpich_MPI_Init = yes; then
7639     MPI_LIB="-lmpich"
7640     fi
7641    
7642     fi
7643     if test x = x"$MPI_LIB"; then
7644 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
7645 gezelter 1490 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
7646     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
7647     echo $ECHO_N "(cached) $ECHO_C" >&6
7648     else
7649     ac_check_lib_save_LIBS=$LIBS
7650     LIBS="-lmpi $LIBS"
7651     cat >conftest.$ac_ext <<_ACEOF
7652 gezelter 2081 /* confdefs.h. */
7653     _ACEOF
7654     cat confdefs.h >>conftest.$ac_ext
7655     cat >>conftest.$ac_ext <<_ACEOF
7656     /* end confdefs.h. */
7657 gezelter 1490
7658     /* Override any gcc2 internal prototype to avoid an error. */
7659     #ifdef __cplusplus
7660     extern "C"
7661     #endif
7662     /* We use char because int might match the return type of a gcc2
7663     builtin and then its argument prototype would still apply. */
7664     char MPI_Init ();
7665     int
7666     main ()
7667     {
7668     MPI_Init ();
7669     ;
7670     return 0;
7671     }
7672     _ACEOF
7673     rm -f conftest.$ac_objext conftest$ac_exeext
7674 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7675     (eval $ac_link) 2>conftest.er1
7676 gezelter 1490 ac_status=$?
7677 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
7678     rm -f conftest.er1
7679     cat conftest.err >&5
7680     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 gezelter 1490 (exit $ac_status); } &&
7682 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
7683     || test ! -s conftest.err'
7684     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685 gezelter 1490 (eval $ac_try) 2>&5
7686     ac_status=$?
7687 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688     (exit $ac_status); }; } &&
7689     { ac_try='test -s conftest$ac_exeext'
7690     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691     (eval $ac_try) 2>&5
7692     ac_status=$?
7693     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 gezelter 1490 (exit $ac_status); }; }; then
7695     ac_cv_lib_mpi_MPI_Init=yes
7696     else
7697     echo "$as_me: failed program was:" >&5
7698 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
7699    
7700 gezelter 1490 ac_cv_lib_mpi_MPI_Init=no
7701     fi
7702 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
7703     conftest$ac_exeext conftest.$ac_ext
7704 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
7705     fi
7706 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
7707 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
7708     if test $ac_cv_lib_mpi_MPI_Init = yes; then
7709     MPI_LIB="-lmpi"
7710     fi
7711    
7712     fi
7713     $as_unset ac_cv_lib_mpi_MPI_Init
7714     if test x = x"$MPI_LIB"; then
7715 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
7716 gezelter 1490 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
7717     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
7718     echo $ECHO_N "(cached) $ECHO_C" >&6
7719     else
7720     ac_check_lib_save_LIBS=$LIBS
7721     LIBS="-lmpi "-llam" $LIBS"
7722     cat >conftest.$ac_ext <<_ACEOF
7723 gezelter 2081 /* confdefs.h. */
7724     _ACEOF
7725     cat confdefs.h >>conftest.$ac_ext
7726     cat >>conftest.$ac_ext <<_ACEOF
7727     /* end confdefs.h. */
7728 gezelter 1490
7729     /* Override any gcc2 internal prototype to avoid an error. */
7730     #ifdef __cplusplus
7731     extern "C"
7732     #endif
7733     /* We use char because int might match the return type of a gcc2
7734     builtin and then its argument prototype would still apply. */
7735     char MPI_Init ();
7736     int
7737     main ()
7738     {
7739     MPI_Init ();
7740     ;
7741     return 0;
7742     }
7743     _ACEOF
7744     rm -f conftest.$ac_objext conftest$ac_exeext
7745 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746     (eval $ac_link) 2>conftest.er1
7747 gezelter 1490 ac_status=$?
7748 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
7749     rm -f conftest.er1
7750     cat conftest.err >&5
7751     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 gezelter 1490 (exit $ac_status); } &&
7753 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
7754     || test ! -s conftest.err'
7755     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 gezelter 1490 (eval $ac_try) 2>&5
7757     ac_status=$?
7758 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759     (exit $ac_status); }; } &&
7760     { ac_try='test -s conftest$ac_exeext'
7761     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762     (eval $ac_try) 2>&5
7763     ac_status=$?
7764     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 gezelter 1490 (exit $ac_status); }; }; then
7766     ac_cv_lib_mpi_MPI_Init=yes
7767     else
7768     echo "$as_me: failed program was:" >&5
7769 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
7770    
7771 gezelter 1490 ac_cv_lib_mpi_MPI_Init=no
7772     fi
7773 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
7774     conftest$ac_exeext conftest.$ac_ext
7775 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
7776     fi
7777 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
7778 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
7779     if test $ac_cv_lib_mpi_MPI_Init = yes; then
7780     MPI_LIB="-lmpi -llam"
7781     fi
7782    
7783     fi
7784 chuckv 1619 $as_unset ac_cv_lib_mpich_MPI_Init
7785     if test x = x"$MPI_LIB"; then
7786 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
7787 chuckv 1619 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
7788     if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
7789     echo $ECHO_N "(cached) $ECHO_C" >&6
7790     else
7791     ac_check_lib_save_LIBS=$LIBS
7792     LIBS="-lmpich "-lpmpich" $LIBS"
7793     cat >conftest.$ac_ext <<_ACEOF
7794 gezelter 2081 /* confdefs.h. */
7795     _ACEOF
7796     cat confdefs.h >>conftest.$ac_ext
7797     cat >>conftest.$ac_ext <<_ACEOF
7798     /* end confdefs.h. */
7799 gezelter 1490
7800 chuckv 1619 /* Override any gcc2 internal prototype to avoid an error. */
7801     #ifdef __cplusplus
7802     extern "C"
7803     #endif
7804     /* We use char because int might match the return type of a gcc2
7805     builtin and then its argument prototype would still apply. */
7806     char MPI_Init ();
7807     int
7808     main ()
7809     {
7810     MPI_Init ();
7811     ;
7812     return 0;
7813     }
7814     _ACEOF
7815     rm -f conftest.$ac_objext conftest$ac_exeext
7816 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7817     (eval $ac_link) 2>conftest.er1
7818 chuckv 1619 ac_status=$?
7819 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
7820     rm -f conftest.er1
7821     cat conftest.err >&5
7822     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 chuckv 1619 (exit $ac_status); } &&
7824 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
7825     || test ! -s conftest.err'
7826     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 chuckv 1619 (eval $ac_try) 2>&5
7828     ac_status=$?
7829 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830     (exit $ac_status); }; } &&
7831     { ac_try='test -s conftest$ac_exeext'
7832     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833     (eval $ac_try) 2>&5
7834     ac_status=$?
7835     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 chuckv 1619 (exit $ac_status); }; }; then
7837     ac_cv_lib_mpich_MPI_Init=yes
7838     else
7839     echo "$as_me: failed program was:" >&5
7840 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
7841    
7842 chuckv 1619 ac_cv_lib_mpich_MPI_Init=no
7843     fi
7844 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
7845     conftest$ac_exeext conftest.$ac_ext
7846 chuckv 1619 LIBS=$ac_check_lib_save_LIBS
7847     fi
7848 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
7849 chuckv 1619 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
7850     if test $ac_cv_lib_mpich_MPI_Init = yes; then
7851     MPI_LIB="-lmpich -lpmpich"
7852     fi
7853    
7854     fi
7855    
7856 gezelter 1490 $as_unset ac_cv_lib_mpi_MPI_Init
7857     if test x = x"$MPI_LIB"; then
7858 gezelter 2081 echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
7859 gezelter 1490 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
7860     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
7861     echo $ECHO_N "(cached) $ECHO_C" >&6
7862     else
7863     ac_check_lib_save_LIBS=$LIBS
7864     LIBS="-lmpi -llam -lpthread $LIBS"
7865     cat >conftest.$ac_ext <<_ACEOF
7866 gezelter 2081 /* confdefs.h. */
7867     _ACEOF
7868     cat confdefs.h >>conftest.$ac_ext
7869     cat >>conftest.$ac_ext <<_ACEOF
7870     /* end confdefs.h. */
7871 gezelter 1490
7872     /* Override any gcc2 internal prototype to avoid an error. */
7873     #ifdef __cplusplus
7874     extern "C"
7875     #endif
7876     /* We use char because int might match the return type of a gcc2
7877     builtin and then its argument prototype would still apply. */
7878     char MPI_Init ();
7879     int
7880     main ()
7881     {
7882     MPI_Init ();
7883     ;
7884     return 0;
7885     }
7886     _ACEOF
7887     rm -f conftest.$ac_objext conftest$ac_exeext
7888 gezelter 2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7889     (eval $ac_link) 2>conftest.er1
7890 gezelter 1490 ac_status=$?
7891 gezelter 2081 grep -v '^ *+' conftest.er1 >conftest.err
7892     rm -f conftest.er1
7893     cat conftest.err >&5
7894     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 gezelter 1490 (exit $ac_status); } &&
7896 gezelter 2081 { ac_try='test -z "$ac_c_werror_flag"
7897     || test ! -s conftest.err'
7898     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 gezelter 1490 (eval $ac_try) 2>&5
7900     ac_status=$?
7901 gezelter 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902     (exit $ac_status); }; } &&
7903     { ac_try='test -s conftest$ac_exeext'
7904     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905     (eval $ac_try) 2>&5
7906     ac_status=$?
7907     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 gezelter 1490 (exit $ac_status); }; }; then
7909     ac_cv_lib_mpi_MPI_Init=yes
7910     else
7911     echo "$as_me: failed program was:" >&5
7912 gezelter 2081 sed 's/^/| /' conftest.$ac_ext >&5
7913    
7914 gezelter 1490 ac_cv_lib_mpi_MPI_Init=no
7915     fi
7916 gezelter 2081 rm -f conftest.err conftest.$ac_objext \
7917     conftest$ac_exeext conftest.$ac_ext
7918 gezelter 1490 LIBS=$ac_check_lib_save_LIBS
7919     fi
7920 gezelter 2081 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
7921 gezelter 1490 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
7922     if test $ac_cv_lib_mpi_MPI_Init = yes; then
7923     MPI_LIB="-lmpi -llam -lpthread"
7924     else
7925    
7926 gezelter 2081 { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
7927 gezelter 1490 echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
7928     { (exit 1); exit 1; }; }
7929     USE_MPI="no"
7930    
7931     fi
7932    
7933     fi
7934    
7935 gezelter 2081
7936    
7937     echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
7938 gezelter 1490 echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
7939     MPI_F90_LIB=""
7940     if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
7941     MPI_F90_LIB="-lfmpich"
7942     elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
7943     MPI_F90_LIB="-llamf77mpi"
7944     else
7945     MPI_F90_LIB=" "
7946     fi
7947 gezelter 2081 echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
7948 gezelter 1490 echo "${ECHO_T}found $MPI_F90_LIB" >&6
7949    
7950    
7951     fi
7952    
7953    
7954    
7955    
7956 gezelter 2190 USE_CGAL=no
7957     cgal_makefile=auto
7958 gezelter 1490
7959 gezelter 2190 # Check whether --with-cgal-makefile or --without-cgal-makefile was given.
7960     if test "${with_cgal_makefile+set}" = set; then
7961     withval="$with_cgal_makefile"
7962     cgal_makefile="$withval"
7963     fi;
7964    
7965     if test "x$cgal_makefile" != xno; then
7966    
7967     if test "x$cgal_makefile" = xauto -a "x$CGAL_MAKEFILE" != x; then
7968     cgal_makefile="$CGAL_MAKEFILE"
7969     fi
7970    
7971 gezelter 2203 echo "$as_me:$LINENO: checking for cgal_makefile: $cgal_makefile" >&5
7972     echo $ECHO_N "checking for cgal_makefile: $cgal_makefile... $ECHO_C" >&6
7973 gezelter 2190
7974     if test -f "$cgal_makefile"; then
7975    
7976     cat >config.tmp.Makefile <<EOF
7977     include $cgal_makefile
7978     default:
7979     @echo CGAL_OS_COMPILER=\"\${CGAL_OS_COMPILER}\" >config.tmp.cgalvariables
7980     @echo CGAL_INCLDIR=\"\${CGAL_INCL_DIR}\" >>config.tmp.cgalvariables
7981     @echo CGAL_INCLCONFDIR=\"\${CGAL_INCL_CONF_DIR}\" >>config.tmp.cgalvariables
7982     @echo CGAL_LIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
7983     @echo CGAL_RLIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
7984     @echo CGAL_CXXFLAGS=\"\${CGAL_CXXFLAGS}\" >>config.tmp.cgalvariables
7985     @echo GMP_INCLDIR=\"\${GMP_INCL_DIR}\" >>config.tmp.cgalvariables
7986     @echo GMP_LIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
7987     @echo GMP_RLIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
7988     @echo LEDA_INCLDIR=\"\${LEDA_INCL_DIR}\" >>config.tmp.cgalvariables
7989     @echo LEDA_LIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
7990     @echo LEDA_RLIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
7991     EOF
7992    
7993     make -s -f config.tmp.Makefile
7994     . config.tmp.cgalvariables
7995    
7996     rm -f config.tmp.Makefile config.tmp.cgalvariables
7997    
7998     if test "x$CGAL_INCLDIR" = "x"; then
7999     CGAL_INCLDIR=""
8000     fi
8001    
8002     if test "x$CGAL_LIBDIR" = "x"; then
8003     CGAL_LIBDIR=""
8004     fi
8005    
8006     if test "x$CGAL_RLIBDIR" = "x"; then
8007     CGAL_RLIBDIR=""
8008     fi
8009    
8010     if test "x$LEDA_INCLDIR" = "x"; then
8011     LEDA_INCLDIR=""
8012     fi
8013    
8014     if test "x$LEDA_LIBDIR" = "x"; then
8015     LEDA_LIBDIR=""
8016     fi
8017    
8018     if test "x$LEDA_RLIBDIR" = "x"; then
8019     LEDA_RLIBDIR=""
8020     fi
8021    
8022     if test "x$GMP_INCLDIR" = "x"; then
8023     GMP_INCLDIR=""
8024     fi
8025    
8026     if test "x$GMP_LIBDIR" = "x"; then
8027     GMP_LIBDIR=""
8028     fi
8029    
8030     if test "x$GMP_RLIBDIR" = "x"; then
8031     GMP_RLIBDIR=""
8032     fi
8033    
8034 gezelter 2203 echo "$as_me:$LINENO: result: CGAL_OS_COMPILER= $CGAL_OS_COMPILER" >&5
8035     echo "${ECHO_T}CGAL_OS_COMPILER= $CGAL_OS_COMPILER" >&6
8036     echo "$as_me:$LINENO: result: CGAL_INCLDIR= $CGAL_INCLDIR" >&5
8037     echo "${ECHO_T}CGAL_INCLDIR= $CGAL_INCLDIR" >&6
8038     echo "$as_me:$LINENO: result: CGAL_INCLCONFDIR= $CGAL_INCLCONFDIR" >&5
8039     echo "${ECHO_T}CGAL_INCLCONFDIR= $CGAL_INCLCONFDIR" >&6
8040     echo "$as_me:$LINENO: result: CGAL_LIBDIR= $CGAL_LIBDIR" >&5
8041     echo "${ECHO_T}CGAL_LIBDIR= $CGAL_LIBDIR" >&6
8042     echo "$as_me:$LINENO: result: CGAL_CXXFLAGS= $CGAL_CXXFLAGS" >&5
8043     echo "${ECHO_T}CGAL_CXXFLAGS= $CGAL_CXXFLAGS" >&6
8044     echo "$as_me:$LINENO: result: LEDA_INCLDIR= $LEDA_INCLDIR" >&5
8045     echo "${ECHO_T}LEDA_INCLDIR= $LEDA_INCLDIR" >&6
8046     echo "$as_me:$LINENO: result: LEDA_LIBDIR= $LEDA_LIBDIR" >&5
8047     echo "${ECHO_T}LEDA_LIBDIR= $LEDA_LIBDIR" >&6
8048     echo "$as_me:$LINENO: result: GMP_INCLDIR= $GMP_INCLDIR" >&5
8049     echo "${ECHO_T}GMP_INCLDIR= $GMP_INCLDIR" >&6
8050     echo "$as_me:$LINENO: result: GMP_LIBDIR= $GMP_LIBDIR" >&5
8051     echo "${ECHO_T}GMP_LIBDIR= $GMP_LIBDIR" >&6
8052 gezelter 2190
8053     ac_ext=cc
8054     ac_cpp='$CXXCPP $CPPFLAGS'
8055     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8056     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8057     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8058    
8059     save_CXXFLAGS="$CXXFLAGS"
8060     CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
8061    
8062     ac_ext=cc
8063     ac_cpp='$CXXCPP $CPPFLAGS'
8064     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8065     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8066     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8067     echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8068     echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8069     if test -z "$CXXCPP"; then
8070     if test "${ac_cv_prog_CXXCPP+set}" = set; then
8071     echo $ECHO_N "(cached) $ECHO_C" >&6
8072     else
8073     # Double quotes because CXXCPP needs to be expanded
8074     for CXXCPP in "$CXX -E" "/lib/cpp"
8075     do
8076     ac_preproc_ok=false
8077     for ac_cxx_preproc_warn_flag in '' yes
8078     do
8079     # Use a header file that comes with gcc, so configuring glibc
8080     # with a fresh cross-compiler works.
8081     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8082     # <limits.h> exists even on freestanding compilers.
8083     # On the NeXT, cc -E runs the code through the compiler's parser,
8084     # not just through cpp. "Syntax error" is here to catch this case.
8085     cat >conftest.$ac_ext <<_ACEOF
8086     /* confdefs.h. */
8087     _ACEOF
8088     cat confdefs.h >>conftest.$ac_ext
8089     cat >>conftest.$ac_ext <<_ACEOF
8090     /* end confdefs.h. */
8091     #ifdef __STDC__
8092     # include <limits.h>
8093     #else
8094     # include <assert.h>
8095     #endif
8096     Syntax error
8097     _ACEOF
8098     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8099     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8100     ac_status=$?
8101     grep -v '^ *+' conftest.er1 >conftest.err
8102     rm -f conftest.er1
8103     cat conftest.err >&5
8104     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105     (exit $ac_status); } >/dev/null; then
8106     if test -s conftest.err; then
8107     ac_cpp_err=$ac_cxx_preproc_warn_flag
8108     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8109     else
8110     ac_cpp_err=
8111     fi
8112     else
8113     ac_cpp_err=yes
8114     fi
8115     if test -z "$ac_cpp_err"; then
8116     :
8117     else
8118     echo "$as_me: failed program was:" >&5
8119     sed 's/^/| /' conftest.$ac_ext >&5
8120    
8121     # Broken: fails on valid input.
8122     continue
8123     fi
8124     rm -f conftest.err conftest.$ac_ext
8125    
8126     # OK, works on sane cases. Now check whether non-existent headers
8127     # can be detected and how.
8128     cat >conftest.$ac_ext <<_ACEOF
8129     /* confdefs.h. */
8130     _ACEOF
8131     cat confdefs.h >>conftest.$ac_ext
8132     cat >>conftest.$ac_ext <<_ACEOF
8133     /* end confdefs.h. */
8134     #include <ac_nonexistent.h>
8135     _ACEOF
8136     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8137     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8138     ac_status=$?
8139     grep -v '^ *+' conftest.er1 >conftest.err
8140     rm -f conftest.er1
8141     cat conftest.err >&5
8142     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143     (exit $ac_status); } >/dev/null; then
8144     if test -s conftest.err; then
8145     ac_cpp_err=$ac_cxx_preproc_warn_flag
8146     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8147     else
8148     ac_cpp_err=
8149     fi
8150     else
8151     ac_cpp_err=yes
8152     fi
8153     if test -z "$ac_cpp_err"; then
8154     # Broken: success on invalid input.
8155     continue
8156     else
8157     echo "$as_me: failed program was:" >&5
8158     sed 's/^/| /' conftest.$ac_ext >&5
8159    
8160     # Passes both tests.
8161     ac_preproc_ok=:
8162     break
8163     fi
8164     rm -f conftest.err conftest.$ac_ext
8165    
8166     done
8167     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8168     rm -f conftest.err conftest.$ac_ext
8169     if $ac_preproc_ok; then
8170     break
8171     fi
8172    
8173     done
8174     ac_cv_prog_CXXCPP=$CXXCPP
8175    
8176     fi
8177     CXXCPP=$ac_cv_prog_CXXCPP
8178     else
8179     ac_cv_prog_CXXCPP=$CXXCPP
8180     fi
8181     echo "$as_me:$LINENO: result: $CXXCPP" >&5
8182     echo "${ECHO_T}$CXXCPP" >&6
8183     ac_preproc_ok=false
8184     for ac_cxx_preproc_warn_flag in '' yes
8185     do
8186     # Use a header file that comes with gcc, so configuring glibc
8187     # with a fresh cross-compiler works.
8188     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8189     # <limits.h> exists even on freestanding compilers.
8190     # On the NeXT, cc -E runs the code through the compiler's parser,
8191     # not just through cpp. "Syntax error" is here to catch this case.
8192     cat >conftest.$ac_ext <<_ACEOF
8193     /* confdefs.h. */
8194     _ACEOF
8195     cat confdefs.h >>conftest.$ac_ext
8196     cat >>conftest.$ac_ext <<_ACEOF
8197     /* end confdefs.h. */
8198     #ifdef __STDC__
8199     # include <limits.h>
8200     #else
8201     # include <assert.h>
8202     #endif
8203     Syntax error
8204     _ACEOF
8205     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8206     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8207     ac_status=$?
8208     grep -v '^ *+' conftest.er1 >conftest.err
8209     rm -f conftest.er1
8210     cat conftest.err >&5
8211     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212     (exit $ac_status); } >/dev/null; then
8213     if test -s conftest.err; then
8214     ac_cpp_err=$ac_cxx_preproc_warn_flag
8215     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8216     else
8217     ac_cpp_err=
8218     fi
8219     else
8220     ac_cpp_err=yes
8221     fi
8222     if test -z "$ac_cpp_err"; then
8223     :
8224     else
8225     echo "$as_me: failed program was:" >&5
8226     sed 's/^/| /' conftest.$ac_ext >&5
8227    
8228     # Broken: fails on valid input.
8229     continue
8230     fi
8231     rm -f conftest.err conftest.$ac_ext
8232    
8233     # OK, works on sane cases. Now check whether non-existent headers
8234     # can be detected and how.
8235     cat >conftest.$ac_ext <<_ACEOF
8236     /* confdefs.h. */
8237     _ACEOF
8238     cat confdefs.h >>conftest.$ac_ext
8239     cat >>conftest.$ac_ext <<_ACEOF
8240     /* end confdefs.h. */
8241     #include <ac_nonexistent.h>
8242     _ACEOF
8243     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8244     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8245     ac_status=$?
8246     grep -v '^ *+' conftest.er1 >conftest.err
8247     rm -f conftest.er1
8248     cat conftest.err >&5
8249     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250     (exit $ac_status); } >/dev/null; then
8251     if test -s conftest.err; then
8252     ac_cpp_err=$ac_cxx_preproc_warn_flag
8253     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8254     else
8255     ac_cpp_err=
8256     fi
8257     else
8258     ac_cpp_err=yes
8259     fi
8260     if test -z "$ac_cpp_err"; then
8261     # Broken: success on invalid input.
8262     continue
8263     else
8264     echo "$as_me: failed program was:" >&5
8265     sed 's/^/| /' conftest.$ac_ext >&5
8266    
8267     # Passes both tests.
8268     ac_preproc_ok=:
8269     break
8270     fi
8271     rm -f conftest.err conftest.$ac_ext
8272    
8273     done
8274     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8275     rm -f conftest.err conftest.$ac_ext
8276     if $ac_preproc_ok; then
8277     :
8278     else
8279     { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8280     See \`config.log' for more details." >&5
8281     echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8282     See \`config.log' for more details." >&2;}
8283     { (exit 1); exit 1; }; }
8284     fi
8285    
8286     ac_ext=cc
8287     ac_cpp='$CXXCPP $CPPFLAGS'
8288     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8289     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8290     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8291    
8292    
8293     if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
8294     echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
8295     echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
8296     if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
8297     echo $ECHO_N "(cached) $ECHO_C" >&6
8298     fi
8299     echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
8300     echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
8301     else
8302     # Is the header compilable?
8303     echo "$as_me:$LINENO: checking CGAL/Cartesian.h usability" >&5
8304     echo $ECHO_N "checking CGAL/Cartesian.h usability... $ECHO_C" >&6
8305     cat >conftest.$ac_ext <<_ACEOF
8306     /* confdefs.h. */
8307     _ACEOF
8308     cat confdefs.h >>conftest.$ac_ext
8309     cat >>conftest.$ac_ext <<_ACEOF
8310     /* end confdefs.h. */
8311     $ac_includes_default
8312     #include <CGAL/Cartesian.h>
8313     _ACEOF
8314     rm -f conftest.$ac_objext
8315     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8316     (eval $ac_compile) 2>conftest.er1
8317     ac_status=$?
8318     grep -v '^ *+' conftest.er1 >conftest.err
8319     rm -f conftest.er1
8320     cat conftest.err >&5
8321     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322     (exit $ac_status); } &&
8323     { ac_try='test -z "$ac_cxx_werror_flag"
8324     || test ! -s conftest.err'
8325     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326     (eval $ac_try) 2>&5
8327     ac_status=$?
8328     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329     (exit $ac_status); }; } &&
8330     { ac_try='test -s conftest.$ac_objext'
8331     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332     (eval $ac_try) 2>&5
8333     ac_status=$?
8334     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335     (exit $ac_status); }; }; then
8336     ac_header_compiler=yes
8337     else
8338     echo "$as_me: failed program was:" >&5
8339     sed 's/^/| /' conftest.$ac_ext >&5
8340    
8341     ac_header_compiler=no
8342     fi
8343     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8344     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8345     echo "${ECHO_T}$ac_header_compiler" >&6
8346    
8347     # Is the header present?
8348     echo "$as_me:$LINENO: checking CGAL/Cartesian.h presence" >&5
8349     echo $ECHO_N "checking CGAL/Cartesian.h presence... $ECHO_C" >&6
8350     cat >conftest.$ac_ext <<_ACEOF
8351     /* confdefs.h. */
8352     _ACEOF
8353     cat confdefs.h >>conftest.$ac_ext
8354     cat >>conftest.$ac_ext <<_ACEOF
8355     /* end confdefs.h. */
8356     #include <CGAL/Cartesian.h>
8357     _ACEOF
8358     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8359     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8360     ac_status=$?
8361     grep -v '^ *+' conftest.er1 >conftest.err
8362     rm -f conftest.er1
8363     cat conftest.err >&5
8364     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365     (exit $ac_status); } >/dev/null; then
8366     if test -s conftest.err; then
8367     ac_cpp_err=$ac_cxx_preproc_warn_flag
8368     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8369     else
8370     ac_cpp_err=
8371     fi
8372     else
8373     ac_cpp_err=yes
8374     fi
8375     if test -z "$ac_cpp_err"; then
8376     ac_header_preproc=yes
8377     else
8378     echo "$as_me: failed program was:" >&5
8379     sed 's/^/| /' conftest.$ac_ext >&5
8380    
8381     ac_header_preproc=no
8382     fi
8383     rm -f conftest.err conftest.$ac_ext
8384     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8385     echo "${ECHO_T}$ac_header_preproc" >&6
8386    
8387     # So? What about this header?
8388     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8389     yes:no: )
8390     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&5
8391     echo "$as_me: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8392     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&5
8393     echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&2;}
8394     ac_header_preproc=yes
8395     ;;
8396     no:yes:* )
8397     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&5
8398     echo "$as_me: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&2;}
8399     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&5
8400     echo "$as_me: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&2;}
8401     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&5
8402     echo "$as_me: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&2;}
8403     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&5
8404     echo "$as_me: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&2;}
8405     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&5
8406     echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&2;}
8407     { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&5
8408     echo "$as_me: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&2;}
8409     (
8410     cat <<\_ASBOX
8411     ## ------------------------------ ##
8412     ## Report this to gezelter@nd.edu ##
8413     ## ------------------------------ ##
8414     _ASBOX
8415     ) |
8416     sed "s/^/$as_me: WARNING: /" >&2
8417     ;;
8418     esac
8419     echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
8420     echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
8421     if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
8422     echo $ECHO_N "(cached) $ECHO_C" >&6
8423     else
8424     ac_cv_header_CGAL_Cartesian_h=$ac_header_preproc
8425     fi
8426     echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
8427     echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
8428    
8429     fi
8430     if test $ac_cv_header_CGAL_Cartesian_h = yes; then
8431     cgal=yes
8432     else
8433     cgal=no
8434     fi
8435    
8436    
8437     CXXFLAGS="$save_CXXFLAGS"
8438    
8439     if test "x$cgal" = xyes; then
8440     echo "$as_me:$LINENO: checking for CGAL version" >&5
8441     echo $ECHO_N "checking for CGAL version... $ECHO_C" >&6
8442     LOCATION=${CGAL_INCLDIR}
8443     LOCATION=${LOCATION:-/usr/include}
8444     if test -f $LOCATION/CGAL/version.h; then
8445     CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/version.h | sed 's/[^0-9\.]*//g'`
8446     else
8447     CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/config.h | sed 's/[^0-9\.]*//g'`
8448     fi
8449     if echo $CGAL_VERSION | grep -q "^[3456789]"; then
8450     echo "$as_me:$LINENO: result: ($CGAL_VERSION) yes" >&5
8451     echo "${ECHO_T}($CGAL_VERSION) yes" >&6
8452     else
8453     echo "$as_me:$LINENO: result: ($CGAL_VERSION) no" >&5
8454     echo "${ECHO_T}($CGAL_VERSION) no" >&6
8455     cgal=no
8456     fi
8457     fi
8458    
8459     if test "x$cgal" = xyes; then
8460     CGAL_LIBS="-lCGAL"
8461     echo "$as_me:$LINENO: checking whether CGAL uses LEDA" >&5
8462     echo $ECHO_N "checking whether CGAL uses LEDA... $ECHO_C" >&6
8463     if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_LEDA; then
8464     CGAL_USES_LEDA=yes
8465     echo "$as_me:$LINENO: result: yes" >&5
8466     echo "${ECHO_T}yes" >&6
8467     CGAL_DEFINES="-DCGAL_USE_LEDA -DLEDA_PREFIX"
8468     else
8469     echo "$as_me:$LINENO: result: no" >&5
8470     echo "${ECHO_T}no" >&6
8471     CGAL_USES_LEDA=no
8472     fi
8473    
8474     echo "$as_me:$LINENO: checking whether CGAL uses GMP" >&5
8475     echo $ECHO_N "checking whether CGAL uses GMP... $ECHO_C" >&6
8476     if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_GMP; then
8477     CGAL_USES_GMP=yes
8478     echo "$as_me:$LINENO: result: yes" >&5
8479     echo "${ECHO_T}yes" >&6
8480     CGAL_DEFINES="-DCGAL_USE_GMP $CGAL_DEFINES"
8481     else
8482     echo "$as_me:$LINENO: result: no" >&5
8483     echo "${ECHO_T}no" >&6
8484     CGAL_USES_GMP=no
8485     fi
8486    
8487     CGAL_LIBS="$CGAL_LIBS -lm"
8488    
8489     CGAL_CXXFLAGS="-ftemplate-depth-50"
8490    
8491 gezelter 2203 echo "$as_me:$LINENO: result: CGAL_USES_LEDA= $CGAL_USES_LEDA" >&5
8492     echo "${ECHO_T}CGAL_USES_LEDA= $CGAL_USES_LEDA" >&6
8493     echo "$as_me:$LINENO: result: CGAL_USES_GMP = $CGAL_USES_GMP" >&5
8494     echo "${ECHO_T}CGAL_USES_GMP = $CGAL_USES_GMP" >&6
8495     echo "$as_me:$LINENO: result: CGAL_INCLDIR = $CGAL_INCLDIR" >&5
8496     echo "${ECHO_T}CGAL_INCLDIR = $CGAL_INCLDIR" >&6
8497     echo "$as_me:$LINENO: result: CGAL_LIBDIR = $CGAL_LIBDIR" >&5
8498     echo "${ECHO_T}CGAL_LIBDIR = $CGAL_LIBDIR" >&6
8499     echo "$as_me:$LINENO: result: CGAL_DEFINES = $CGAL_DEFINES" >&5
8500     echo "${ECHO_T}CGAL_DEFINES = $CGAL_DEFINES" >&6
8501     echo "$as_me:$LINENO: result: CGAL_CXXFLAGS = $CGAL_CXXFLAGS" >&5
8502     echo "${ECHO_T}CGAL_CXXFLAGS = $CGAL_CXXFLAGS" >&6
8503     echo "$as_me:$LINENO: result: CGAL_LIBS = $CGAL_LIBS" >&5
8504     echo "${ECHO_T}CGAL_LIBS = $CGAL_LIBS" >&6
8505 gezelter 2190 fi
8506    
8507     if test "x$cgal" = xyes; then
8508     save_LIBS="$LIBS"
8509     LIBS="$LIBS -L$CGAL_LIBDIR"
8510     if test "x$CGAL_USES_LEDA" = xyes; then
8511     LIBS="-lL $LIBS -L$LEDA_LIBDIR"
8512     fi
8513     # if test "x$CGAL_USES_GMP" = xyes; then
8514     # LIBS="-lgmp $LIBS $GMP_LIBDIR"
8515     # fi
8516     echo "$as_me:$LINENO: checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL" >&5
8517     echo $ECHO_N "checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL... $ECHO_C" >&6
8518     save_CXXFLAGS_CHECK_CXX_LIB="$CXXFLAGS"
8519     CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
8520     save_LIBS_CHECK_CXX_LIB="$LIBS"
8521     LIBS="-lCGAL $LIBS"
8522     cat >conftest.$ac_ext <<_ACEOF
8523     /* confdefs.h. */
8524     _ACEOF
8525     cat confdefs.h >>conftest.$ac_ext
8526     cat >>conftest.$ac_ext <<_ACEOF
8527     /* end confdefs.h. */
8528     #include <CGAL/Cartesian.h>
8529     int
8530     main ()
8531     {
8532     ::CGAL::Cartesian<int>::Point_2 P
8533     ;
8534     return 0;
8535     }
8536     _ACEOF
8537     rm -f conftest.$ac_objext conftest$ac_exeext
8538     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8539     (eval $ac_link) 2>conftest.er1
8540     ac_status=$?
8541     grep -v '^ *+' conftest.er1 >conftest.err
8542     rm -f conftest.er1
8543     cat conftest.err >&5
8544     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545     (exit $ac_status); } &&
8546     { ac_try='test -z "$ac_cxx_werror_flag"
8547     || test ! -s conftest.err'
8548     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549     (eval $ac_try) 2>&5
8550     ac_status=$?
8551     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552     (exit $ac_status); }; } &&
8553     { ac_try='test -s conftest$ac_exeext'
8554     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555     (eval $ac_try) 2>&5
8556     ac_status=$?
8557     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558     (exit $ac_status); }; }; then
8559     echo "$as_me:$LINENO: result: yes" >&5
8560     echo "${ECHO_T}yes" >&6
8561     cgal=yes
8562     else
8563     echo "$as_me: failed program was:" >&5
8564     sed 's/^/| /' conftest.$ac_ext >&5
8565    
8566     echo "$as_me:$LINENO: result: no" >&5
8567     echo "${ECHO_T}no" >&6
8568     cgal=no
8569     fi
8570     rm -f conftest.err conftest.$ac_objext \
8571     conftest$ac_exeext conftest.$ac_ext
8572     CXXFLAGS="$save_CXXFLAGS_CHECK_CXX_LIB"
8573     LIBS="$save_LIBS_CHECK_CXX_LIB"
8574     LIBS="$save_LIBS"
8575     fi
8576    
8577     fi
8578     ac_ext=c
8579     ac_cpp='$CPP $CPPFLAGS'
8580     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8581     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8582     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8583    
8584    
8585     fi
8586    
8587     if test "x$cgal" = xyes; then
8588     USE_CGAL=yes
8589    
8590     cat >>confdefs.h <<\_ACEOF
8591     #define HAVE_CGAL 1
8592     _ACEOF
8593    
8594    
8595     cat >>confdefs.h <<_ACEOF
8596     #define CGAL_VERSION $CGAL_VERSION
8597     _ACEOF
8598    
8599     if ! echo $CGAL_VERSION | grep -q "^3.0"; then
8600     { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
8601     echo "$as_me: WARNING: *****************************************************" >&2;}
8602     { echo "$as_me:$LINENO: WARNING: *** Warning: Your CGAL version is newer than the ***" >&5
8603     echo "$as_me: WARNING: *** Warning: Your CGAL version is newer than the ***" >&2;}
8604     { echo "$as_me:$LINENO: WARNING: *** supported versions. It may still work though. ***" >&5
8605     echo "$as_me: WARNING: *** supported versions. It may still work though. ***" >&2;}
8606     { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
8607     echo "$as_me: WARNING: *****************************************************" >&2;}
8608     fi
8609     else
8610     if test "x$cgal_makefile" != xno; then
8611 gezelter 2203 echo "$as_me:$LINENO: result: No CGAL support. These are not the droids you want." >&5
8612     echo "${ECHO_T}No CGAL support. These are not the droids you want." >&6
8613 gezelter 2190 fi
8614     CGAL_INCLDIR=
8615     CGAL_LIBDIR=
8616     CGAL_RLIBDIR=
8617     CGAL_DEFINES=
8618     CGAL_CXXFLAGS=
8619     CGAL_LIBS=
8620     fi
8621    
8622    
8623     CGAL_INC_DIR="${CGAL_INCLDIR} ${CGAL_INCLCONFDIR}"
8624    
8625     CGAL_LIB_DIR=${CGAL_LIBDIR}
8626    
8627     CGAL_RLIB_DIR=${CGAL_RLIBDIR}
8628    
8629    
8630    
8631    
8632    
8633    
8634    
8635 gezelter 1540 # Check whether --enable-doxygen or --disable-doxygen was given.
8636     if test "${enable_doxygen+set}" = set; then
8637     enableval="$enable_doxygen"
8638 gezelter 1490
8639 gezelter 1540 fi;
8640     # Check whether --enable-dot or --disable-dot was given.
8641     if test "${enable_dot+set}" = set; then
8642     enableval="$enable_dot"
8643 gezelter 1490
8644 gezelter 1540 fi;
8645     # Check whether --enable-html-docs or --disable-html-docs was given.
8646     if test "${enable_html_docs+set}" = set; then
8647     enableval="$enable_html_docs"
8648    
8649     else
8650     enable_html_docs=yes
8651     fi;
8652     # Check whether --enable-latex-docs or --disable-latex-docs was given.
8653     if test "${enable_latex_docs+set}" = set; then
8654     enableval="$enable_latex_docs"
8655    
8656     else
8657     enable_latex_docs=no
8658     fi;
8659     if test "x$enable_doxygen" = xno; then
8660     enable_doc=no
8661     else
8662     # Extract the first word of "doxygen", so it can be a program name with args.
8663     set dummy doxygen; ac_word=$2
8664 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
8665 gezelter 1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8666     if test "${ac_cv_path_DOXYGEN+set}" = set; then
8667     echo $ECHO_N "(cached) $ECHO_C" >&6
8668     else
8669     case $DOXYGEN in
8670     [\\/]* | ?:[\\/]*)
8671     ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8672     ;;
8673     *)
8674 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675     for as_dir in $PATH
8676     do
8677     IFS=$as_save_IFS
8678     test -z "$as_dir" && as_dir=.
8679     for ac_exec_ext in '' $ac_executable_extensions; do
8680     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8681     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8683     break 2
8684     fi
8685 gezelter 1540 done
8686 gezelter 2081 done
8687 gezelter 1540
8688     ;;
8689     esac
8690     fi
8691     DOXYGEN=$ac_cv_path_DOXYGEN
8692    
8693     if test -n "$DOXYGEN"; then
8694 gezelter 2081 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8695 gezelter 1540 echo "${ECHO_T}$DOXYGEN" >&6
8696     else
8697 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
8698 gezelter 1540 echo "${ECHO_T}no" >&6
8699     fi
8700    
8701     if test "x$DOXYGEN" = x; then
8702     if test "x$enable_doxygen" = xyes; then
8703 gezelter 2081 { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
8704 gezelter 1540 echo "$as_me: error: could not find doxygen" >&2;}
8705     { (exit 1); exit 1; }; }
8706     fi
8707     enable_doc=no
8708     else
8709     enable_doc=yes
8710     # Extract the first word of "dot", so it can be a program name with args.
8711     set dummy dot; ac_word=$2
8712 gezelter 2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
8713 gezelter 1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8714     if test "${ac_cv_path_DOT+set}" = set; then
8715     echo $ECHO_N "(cached) $ECHO_C" >&6
8716     else
8717     case $DOT in
8718     [\\/]* | ?:[\\/]*)
8719     ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
8720     ;;
8721     *)
8722 gezelter 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723     for as_dir in $PATH
8724     do
8725     IFS=$as_save_IFS
8726     test -z "$as_dir" && as_dir=.
8727     for ac_exec_ext in '' $ac_executable_extensions; do
8728     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8729     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
8730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8731     break 2
8732     fi
8733 gezelter 1540 done
8734 gezelter 2081 done
8735 gezelter 1540
8736     ;;
8737     esac
8738     fi
8739     DOT=$ac_cv_path_DOT
8740    
8741     if test -n "$DOT"; then
8742 gezelter 2081 echo "$as_me:$LINENO: result: $DOT" >&5
8743 gezelter 1540 echo "${ECHO_T}$DOT" >&6
8744     else
8745 gezelter 2081 echo "$as_me:$LINENO: result: no" >&5
8746 gezelter 1540 echo "${ECHO_T}no" >&6
8747     fi
8748    
8749     fi
8750     fi
8751    
8752     if test "x$enable_doc" = xyes; then
8753     DOC=1
8754     else
8755     DOC=0
8756     fi
8757    
8758 gezelter 2081
8759 gezelter 1540 if test x$DOT = x; then
8760     if test "x$enable_dot" = xyes; then
8761 gezelter 2081 { { echo "$as_me:$LINENO: error: could not find dot" >&5
8762 gezelter 1540 echo "$as_me: error: could not find dot" >&2;}
8763     { (exit 1); exit 1; }; }
8764     fi
8765     enable_dot=no
8766     else
8767     enable_dot=yes
8768     fi
8769    
8770 gezelter 2081
8771    
8772    
8773    
8774    
8775    
8776 gezelter 1490 OBJEXT=".$OBJEXT"
8777    
8778     OOPSE=oopse
8779    
8780     if test "x${prefix}" = "xNONE"
8781     then
8782     OOPSE_HOME=${ac_default_prefix}/oopse
8783     else
8784     OOPSE_HOME=${prefix}/oopse
8785     fi
8786     # Check whether --enable-oopse-home or --disable-oopse-home was given.
8787     if test "${enable_oopse_home+set}" = set; then
8788     enableval="$enable_oopse_home"
8789     OOPSE_HOME="${enableval}"
8790     fi;
8791    
8792     case "x$INSTALL" in
8793     x/*) ;;
8794     *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
8795     esac
8796    
8797     MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
8798    
8799     CFLAGS=${CFLAGS-""}
8800     CXXFLAGS=${CXXFLAGS-""}
8801     CPPFLAGS=${CPPFLAGS-""}
8802     FFLAGS=${FFLAGS-""}
8803     F90FLAGS=${F90FLAGS-""}
8804     LDFLAGS=${LDFLAGS-""}
8805     DEBUG=${DEBUG-"-g"}
8806    
8807     case $debug in
8808     1)
8809     FFLAGS="$DEBUG $FFLAGS"
8810     F90FLAGS="$DEBUG $F90FLAGS"
8811     ;;
8812     *)
8813     ;;
8814     esac
8815    
8816    
8817    
8818 gezelter 2081
8819    
8820    
8821    
8822    
8823    
8824    
8825    
8826    
8827    
8828    
8829    
8830    
8831    
8832    
8833     ac_config_headers="$ac_config_headers src/config.h"
8834    
8835 gezelter 2199 ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/applications/nanoRodBuilder/Makefile scripts/filepp"
8836 gezelter 2081
8837    
8838 gezelter 1490 cat >confcache <<\_ACEOF
8839     # This file is a shell script that caches the results of configure
8840     # tests run on this system so they can be shared between configure
8841     # scripts and configure runs, see configure's option --config-cache.
8842     # It is not useful on other systems. If it contains results you don't
8843     # want to keep, you may remove or edit it.
8844     #
8845     # config.status only pays attention to the cache file if you give it
8846     # the --recheck option to rerun configure.
8847     #
8848 gezelter 2081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8849 gezelter 1490 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8850     # following values.
8851    
8852     _ACEOF
8853    
8854     # The following way of writing the cache mishandles newlines in values,
8855     # but we know of no workaround that is simple, portable, and efficient.
8856     # So, don't put newlines in cache variables' values.
8857     # Ultrix sh set writes to stderr and can't be redirected directly,
8858     # and sets the high bit in the cache file unless we assign to the vars.
8859     {
8860     (set) 2>&1 |
8861     case `(ac_space=' '; set | grep ac_space) 2>&1` in
8862     *ac_space=\ *)
8863     # `set' does not quote correctly, so add quotes (double-quote
8864     # substitution turns \\\\ into \\, and sed turns \\ into \).
8865     sed -n \
8866 gezelter 2081 "s/'/'\\\\''/g;
8867     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8868 gezelter 1490 ;;
8869     *)
8870     # `set' quotes correctly as required by POSIX, so do not add quotes.
8871     sed -n \
8872 gezelter 2081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8873 gezelter 1490 ;;
8874     esac;
8875     } |
8876     sed '
8877     t clear
8878     : clear
8879     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8880     t end
8881     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8882     : end' >>confcache
8883 gezelter 2081 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8884 gezelter 1490 if test -w $cache_file; then
8885     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8886     cat confcache >$cache_file
8887     else
8888     echo "not updating unwritable cache $cache_file"
8889     fi
8890     fi
8891     rm -f confcache
8892    
8893     test "x$prefix" = xNONE && prefix=$ac_default_prefix
8894     # Let make expand exec_prefix.
8895     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8896    
8897     # VPATH may cause trouble with some makes, so we remove $(srcdir),
8898     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8899     # trailing colons and then remove the whole line if VPATH becomes empty
8900     # (actually we leave an empty line to preserve line numbers).
8901     if test "x$srcdir" = x.; then
8902 gezelter 2081 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8903 gezelter 1490 s/:*\$(srcdir):*/:/;
8904     s/:*\${srcdir}:*/:/;
8905     s/:*@srcdir@:*/:/;
8906 gezelter 2081 s/^\([^=]*=[ ]*\):*/\1/;
8907 gezelter 1490 s/:*$//;
8908 gezelter 2081 s/^[^=]*=[ ]*$//;
8909 gezelter 1490 }'
8910     fi
8911    
8912     DEFS=-DHAVE_CONFIG_H
8913    
8914 gezelter 2081 ac_libobjs=
8915     ac_ltlibobjs=
8916     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8917     # 1. Remove the extension, and $U if already installed.
8918     ac_i=`echo "$ac_i" |
8919     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8920     # 2. Add them.
8921     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8922     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8923     done
8924     LIBOBJS=$ac_libobjs
8925    
8926     LTLIBOBJS=$ac_ltlibobjs
8927    
8928    
8929    
8930 gezelter 1490 : ${CONFIG_STATUS=./config.status}
8931     ac_clean_files_save=$ac_clean_files
8932     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8933 gezelter 2081 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8934 gezelter 1490 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8935     cat >$CONFIG_STATUS <<_ACEOF
8936     #! $SHELL
8937 gezelter 2081 # Generated by $as_me.
8938 gezelter 1490 # Run this file to recreate the current configuration.
8939     # Compiler output produced by configure, useful for debugging
8940     # configure, is in config.log if it exists.
8941    
8942     debug=false
8943 gezelter 2081 ac_cs_recheck=false
8944     ac_cs_silent=false
8945 gezelter 1490 SHELL=\${CONFIG_SHELL-$SHELL}
8946     _ACEOF
8947    
8948     cat >>$CONFIG_STATUS <<\_ACEOF
8949 gezelter 2081 ## --------------------- ##
8950     ## M4sh Initialization. ##
8951     ## --------------------- ##
8952    
8953 gezelter 1490 # Be Bourne compatible
8954     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8955     emulate sh
8956     NULLCMD=:
8957 gezelter 2081 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8958     # is contrary to our usage. Disable this feature.
8959     alias -g '${1+"$@"}'='"$@"'
8960 gezelter 1490 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8961     set -o posix
8962     fi
8963 gezelter 2081 DUALCASE=1; export DUALCASE # for MKS sh
8964 gezelter 1490
8965 gezelter 2081 # Support unset when possible.
8966     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8967     as_unset=unset
8968     else
8969     as_unset=false
8970     fi
8971    
8972    
8973     # Work around bugs in pre-3.0 UWIN ksh.
8974     $as_unset ENV MAIL MAILPATH
8975     PS1='$ '
8976     PS2='> '
8977     PS4='+ '
8978    
8979     # NLS nuisances.
8980     for as_var in \
8981     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8982     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8983     LC_TELEPHONE LC_TIME
8984     do
8985     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8986     eval $as_var=C; export $as_var
8987     else
8988     $as_unset $as_var
8989     fi
8990     done
8991    
8992     # Required to use basename.
8993     if expr a : '\(a\)' >/dev/null 2>&1; then
8994     as_expr=expr
8995     else
8996     as_expr=false
8997     fi
8998    
8999     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9000     as_basename=basename
9001     else
9002     as_basename=false
9003     fi
9004    
9005    
9006 gezelter 1490 # Name of the executable.
9007 gezelter 2081 as_me=`$as_basename "$0" ||
9008     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9009     X"$0" : 'X\(//\)$' \| \
9010     X"$0" : 'X\(/\)$' \| \
9011     . : '\(.\)' 2>/dev/null ||
9012     echo X/"$0" |
9013     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9014     /^X\/\(\/\/\)$/{ s//\1/; q; }
9015     /^X\/\(\/\).*/{ s//\1/; q; }
9016     s/.*/./; q'`
9017 gezelter 1490
9018 gezelter 2081
9019     # PATH needs CR, and LINENO needs CR and PATH.
9020     # Avoid depending upon Character Ranges.
9021     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9022     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9023     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9024     as_cr_digits='0123456789'
9025     as_cr_alnum=$as_cr_Letters$as_cr_digits
9026    
9027     # The user is always right.
9028     if test "${PATH_SEPARATOR+set}" != set; then
9029     echo "#! /bin/sh" >conf$$.sh
9030     echo "exit 0" >>conf$$.sh
9031     chmod +x conf$$.sh
9032     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9033     PATH_SEPARATOR=';'
9034     else
9035     PATH_SEPARATOR=:
9036     fi
9037     rm -f conf$$.sh
9038     fi
9039    
9040    
9041     as_lineno_1=$LINENO
9042     as_lineno_2=$LINENO
9043     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9044     test "x$as_lineno_1" != "x$as_lineno_2" &&
9045     test "x$as_lineno_3" = "x$as_lineno_2" || {
9046     # Find who we are. Look in the path if we contain no path at all
9047     # relative or not.
9048     case $0 in
9049     *[\\/]* ) as_myself=$0 ;;
9050     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051     for as_dir in $PATH
9052     do
9053     IFS=$as_save_IFS
9054     test -z "$as_dir" && as_dir=.
9055     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9056     done
9057    
9058     ;;
9059     esac
9060     # We did not find ourselves, most probably we were run as `sh COMMAND'
9061     # in which case we are not to be found in the path.
9062     if test "x$as_myself" = x; then
9063     as_myself=$0
9064     fi
9065     if test ! -f "$as_myself"; then
9066     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9067     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9068     { (exit 1); exit 1; }; }
9069     fi
9070     case $CONFIG_SHELL in
9071     '')
9072     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9074     do
9075     IFS=$as_save_IFS
9076     test -z "$as_dir" && as_dir=.
9077     for as_base in sh bash ksh sh5; do
9078     case $as_dir in
9079     /*)
9080     if ("$as_dir/$as_base" -c '
9081     as_lineno_1=$LINENO
9082     as_lineno_2=$LINENO
9083     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9084     test "x$as_lineno_1" != "x$as_lineno_2" &&
9085     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9086     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9087     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9088     CONFIG_SHELL=$as_dir/$as_base
9089     export CONFIG_SHELL
9090     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9091     fi;;
9092     esac
9093     done
9094     done
9095     ;;
9096     esac
9097    
9098     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9099     # uniformly replaced by the line number. The first 'sed' inserts a
9100     # line-number line before each line; the second 'sed' does the real
9101     # work. The second script uses 'N' to pair each line-number line
9102     # with the numbered line, and appends trailing '-' during
9103     # substitution so that $LINENO is not a special case at line end.
9104     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9105     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9106     sed '=' <$as_myself |
9107     sed '
9108     N
9109     s,$,-,
9110     : loop
9111     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9112     t loop
9113     s,-$,,
9114     s,^['$as_cr_digits']*\n,,
9115     ' >$as_me.lineno &&
9116     chmod +x $as_me.lineno ||
9117     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9118     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9119     { (exit 1); exit 1; }; }
9120    
9121     # Don't try to exec as it changes $[0], causing all sort of problems
9122     # (the dirname of $[0] is not the place where we might find the
9123     # original and so on. Autoconf is especially sensible to this).
9124     . ./$as_me.lineno
9125     # Exit status is that of the last command.
9126     exit
9127     }
9128    
9129    
9130     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9131     *c*,-n*) ECHO_N= ECHO_C='
9132     ' ECHO_T=' ' ;;
9133     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9134     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9135     esac
9136    
9137 gezelter 1490 if expr a : '\(a\)' >/dev/null 2>&1; then
9138     as_expr=expr
9139     else
9140     as_expr=false
9141     fi
9142    
9143     rm -f conf$$ conf$$.exe conf$$.file
9144     echo >conf$$.file
9145     if ln -s conf$$.file conf$$ 2>/dev/null; then
9146     # We could just check for DJGPP; but this test a) works b) is more generic
9147     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9148     if test -f conf$$.exe; then
9149     # Don't use ln at all; we don't have any links
9150     as_ln_s='cp -p'
9151     else
9152     as_ln_s='ln -s'
9153     fi
9154     elif ln conf$$.file conf$$ 2>/dev/null; then
9155     as_ln_s=ln
9156     else
9157     as_ln_s='cp -p'
9158     fi
9159     rm -f conf$$ conf$$.exe conf$$.file
9160    
9161 gezelter 2081 if mkdir -p . 2>/dev/null; then
9162     as_mkdir_p=:
9163 gezelter 1490 else
9164 gezelter 2081 test -d ./-p && rmdir ./-p
9165     as_mkdir_p=false
9166 gezelter 1490 fi
9167    
9168 gezelter 2081 as_executable_p="test -f"
9169 gezelter 1490
9170 gezelter 2081 # Sed expression to map a string onto a valid CPP name.
9171     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9172    
9173     # Sed expression to map a string onto a valid variable name.
9174     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9175    
9176    
9177 gezelter 1490 # IFS
9178     # We need space, tab and new line, in precisely that order.
9179     as_nl='
9180     '
9181     IFS=" $as_nl"
9182    
9183     # CDPATH.
9184 gezelter 2081 $as_unset CDPATH
9185 gezelter 1490
9186     exec 6>&1
9187    
9188 gezelter 2081 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9189     # report actual input values of CONFIG_FILES etc. instead of their
9190     # values after options handling. Logging --version etc. is OK.
9191     exec 5>>config.log
9192     {
9193     echo
9194     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9195     ## Running $as_me. ##
9196     _ASBOX
9197     } >&5
9198     cat >&5 <<_CSEOF
9199    
9200     This file was extended by OOPSE $as_me 2.0, which was
9201     generated by GNU Autoconf 2.59. Invocation command line was
9202    
9203     CONFIG_FILES = $CONFIG_FILES
9204     CONFIG_HEADERS = $CONFIG_HEADERS
9205     CONFIG_LINKS = $CONFIG_LINKS
9206     CONFIG_COMMANDS = $CONFIG_COMMANDS
9207     $ $0 $@
9208    
9209     _CSEOF
9210     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9211     echo >&5
9212 gezelter 1490 _ACEOF
9213    
9214     # Files that config.status was made for.
9215     if test -n "$ac_config_files"; then
9216     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9217     fi
9218    
9219     if test -n "$ac_config_headers"; then
9220     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9221     fi
9222    
9223     if test -n "$ac_config_links"; then
9224     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9225     fi
9226    
9227     if test -n "$ac_config_commands"; then
9228     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9229     fi
9230    
9231 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
9232 gezelter 1490
9233     ac_cs_usage="\
9234     \`$as_me' instantiates files from templates according to the
9235     current configuration.
9236    
9237     Usage: $0 [OPTIONS] [FILE]...
9238    
9239     -h, --help print this help, then exit
9240     -V, --version print version number, then exit
9241 gezelter 2081 -q, --quiet do not print progress messages
9242 gezelter 1490 -d, --debug don't remove temporary files
9243     --recheck update $as_me by reconfiguring in the same conditions
9244     --file=FILE[:TEMPLATE]
9245 gezelter 2081 instantiate the configuration file FILE
9246 gezelter 1490 --header=FILE[:TEMPLATE]
9247 gezelter 2081 instantiate the configuration header FILE
9248 gezelter 1490
9249     Configuration files:
9250     $config_files
9251    
9252     Configuration headers:
9253     $config_headers
9254    
9255     Configuration links:
9256     $config_links
9257    
9258     Report bugs to <bug-autoconf@gnu.org>."
9259 gezelter 2081 _ACEOF
9260 gezelter 1490
9261 gezelter 2081 cat >>$CONFIG_STATUS <<_ACEOF
9262 gezelter 1490 ac_cs_version="\\
9263 gezelter 1499 OOPSE config.status 2.0
9264 gezelter 2081 configured by $0, generated by GNU Autoconf 2.59,
9265 gezelter 1490 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9266    
9267 gezelter 2081 Copyright (C) 2003 Free Software Foundation, Inc.
9268 gezelter 1490 This config.status script is free software; the Free Software Foundation
9269     gives unlimited permission to copy, distribute and modify it."
9270     srcdir=$srcdir
9271     INSTALL="$INSTALL"
9272 gezelter 2081 _ACEOF
9273 gezelter 1490
9274 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
9275 gezelter 1490 # If no file are specified by the user, then we need to provide default
9276     # value. By we need to know if files were specified by the user.
9277     ac_need_defaults=:
9278     while test $# != 0
9279     do
9280     case $1 in
9281     --*=*)
9282     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9283     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9284 gezelter 2081 ac_shift=:
9285 gezelter 1490 ;;
9286 gezelter 2081 -*)
9287     ac_option=$1
9288     ac_optarg=$2
9289     ac_shift=shift
9290     ;;
9291 gezelter 1490 *) # This is not an option, so the user has probably given explicit
9292     # arguments.
9293 gezelter 2081 ac_option=$1
9294 gezelter 1490 ac_need_defaults=false;;
9295     esac
9296    
9297 gezelter 2081 case $ac_option in
9298 gezelter 1490 # Handling of the options.
9299 gezelter 2081 _ACEOF
9300     cat >>$CONFIG_STATUS <<\_ACEOF
9301 gezelter 1490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9302 gezelter 2081 ac_cs_recheck=: ;;
9303 gezelter 1490 --version | --vers* | -V )
9304     echo "$ac_cs_version"; exit 0 ;;
9305     --he | --h)
9306     # Conflict between --help and --header
9307 gezelter 2081 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9308 gezelter 1490 Try \`$0 --help' for more information." >&5
9309     echo "$as_me: error: ambiguous option: $1
9310     Try \`$0 --help' for more information." >&2;}
9311     { (exit 1); exit 1; }; };;
9312     --help | --hel | -h )
9313     echo "$ac_cs_usage"; exit 0 ;;
9314     --debug | --d* | -d )
9315     debug=: ;;
9316     --file | --fil | --fi | --f )
9317 gezelter 2081 $ac_shift
9318     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9319 gezelter 1490 ac_need_defaults=false;;
9320     --header | --heade | --head | --hea )
9321 gezelter 2081 $ac_shift
9322     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9323 gezelter 1490 ac_need_defaults=false;;
9324 gezelter 2081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9325     | -silent | --silent | --silen | --sile | --sil | --si | --s)
9326     ac_cs_silent=: ;;
9327 gezelter 1490
9328     # This is an error.
9329 gezelter 2081 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9330 gezelter 1490 Try \`$0 --help' for more information." >&5
9331     echo "$as_me: error: unrecognized option: $1
9332     Try \`$0 --help' for more information." >&2;}
9333     { (exit 1); exit 1; }; } ;;
9334 gezelter 2081
9335     *) ac_config_targets="$ac_config_targets $1" ;;
9336    
9337 gezelter 1490 esac
9338     shift
9339     done
9340    
9341 gezelter 2081 ac_configure_extra_args=
9342 gezelter 1490
9343 gezelter 2081 if $ac_cs_silent; then
9344     exec 6>/dev/null
9345     ac_configure_extra_args="$ac_configure_extra_args --silent"
9346     fi
9347 gezelter 1490
9348 gezelter 2081 _ACEOF
9349     cat >>$CONFIG_STATUS <<_ACEOF
9350     if \$ac_cs_recheck; then
9351     echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9352     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9353     fi
9354 gezelter 1490
9355     _ACEOF
9356    
9357 gezelter 2081
9358    
9359    
9360    
9361     cat >>$CONFIG_STATUS <<\_ACEOF
9362     for ac_config_target in $ac_config_targets
9363     do
9364     case "$ac_config_target" in
9365     # Handling of arguments.
9366     "make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
9367     "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
9368 gezelter 2190 "src/applications/nanoRodBuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/applications/nanoRodBuilder/Makefile" ;;
9369 gezelter 2199 "scripts/filepp" ) CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
9370 gezelter 2081 "src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
9371     "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
9372     *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9373     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9374     { (exit 1); exit 1; }; };;
9375     esac
9376     done
9377    
9378 gezelter 1490 # If the user did not use the arguments to specify the items to instantiate,
9379     # then the envvar interface is used. Set only those that are not.
9380     # We use the long form for the default assignment because of an extremely
9381     # bizarre bug on SunOS 4.1.3.
9382     if $ac_need_defaults; then
9383     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9384     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9385     test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
9386     fi
9387    
9388 gezelter 2081 # Have a temporary directory for convenience. Make it in the build tree
9389     # simply because there is no reason to put it here, and in addition,
9390     # creating and moving files from /tmp can sometimes cause problems.
9391 gezelter 1490 # Create a temporary directory, and hook for its removal unless debugging.
9392     $debug ||
9393     {
9394     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9395 gezelter 2081 trap '{ (exit 1); exit 1; }' 1 2 13 15
9396 gezelter 1490 }
9397    
9398     # Create a (secure) tmp directory for tmp files.
9399 gezelter 2081
9400 gezelter 1490 {
9401 gezelter 2081 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9402 gezelter 1490 test -n "$tmp" && test -d "$tmp"
9403     } ||
9404     {
9405 gezelter 2081 tmp=./confstat$$-$RANDOM
9406 gezelter 1490 (umask 077 && mkdir $tmp)
9407     } ||
9408     {
9409 gezelter 2081 echo "$me: cannot create a temporary directory in ." >&2
9410 gezelter 1490 { (exit 1); exit 1; }
9411     }
9412    
9413 gezelter 2081 _ACEOF
9414 gezelter 1490
9415 gezelter 2081 cat >>$CONFIG_STATUS <<_ACEOF
9416 gezelter 1490
9417     #
9418     # CONFIG_FILES section.
9419     #
9420    
9421     # No need to generate the scripts if there are no CONFIG_FILES.
9422     # This happens for instance when ./config.status config.h
9423     if test -n "\$CONFIG_FILES"; then
9424     # Protect against being on the right side of a sed subst in config.status.
9425     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9426     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9427     s,@SHELL@,$SHELL,;t t
9428 gezelter 2081 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9429     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9430     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9431     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9432     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9433     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9434 gezelter 1490 s,@exec_prefix@,$exec_prefix,;t t
9435     s,@prefix@,$prefix,;t t
9436     s,@program_transform_name@,$program_transform_name,;t t
9437     s,@bindir@,$bindir,;t t
9438     s,@sbindir@,$sbindir,;t t
9439     s,@libexecdir@,$libexecdir,;t t
9440     s,@datadir@,$datadir,;t t
9441     s,@sysconfdir@,$sysconfdir,;t t
9442     s,@sharedstatedir@,$sharedstatedir,;t t
9443     s,@localstatedir@,$localstatedir,;t t
9444     s,@libdir@,$libdir,;t t
9445     s,@includedir@,$includedir,;t t
9446     s,@oldincludedir@,$oldincludedir,;t t
9447     s,@infodir@,$infodir,;t t
9448     s,@mandir@,$mandir,;t t
9449 gezelter 2081 s,@build_alias@,$build_alias,;t t
9450     s,@host_alias@,$host_alias,;t t
9451     s,@target_alias@,$target_alias,;t t
9452     s,@DEFS@,$DEFS,;t t
9453 gezelter 1490 s,@ECHO_C@,$ECHO_C,;t t
9454     s,@ECHO_N@,$ECHO_N,;t t
9455     s,@ECHO_T@,$ECHO_T,;t t
9456     s,@LIBS@,$LIBS,;t t
9457     s,@PROGNAME@,$PROGNAME,;t t
9458     s,@debug@,$debug,;t t
9459     s,@build@,$build,;t t
9460     s,@build_cpu@,$build_cpu,;t t
9461     s,@build_vendor@,$build_vendor,;t t
9462     s,@build_os@,$build_os,;t t
9463     s,@host@,$host,;t t
9464     s,@host_cpu@,$host_cpu,;t t
9465     s,@host_vendor@,$host_vendor,;t t
9466     s,@host_os@,$host_os,;t t
9467     s,@CC@,$CC,;t t
9468     s,@CFLAGS@,$CFLAGS,;t t
9469     s,@LDFLAGS@,$LDFLAGS,;t t
9470     s,@CPPFLAGS@,$CPPFLAGS,;t t
9471     s,@ac_ct_CC@,$ac_ct_CC,;t t
9472     s,@EXEEXT@,$EXEEXT,;t t
9473     s,@OBJEXT@,$OBJEXT,;t t
9474     s,@CXX@,$CXX,;t t
9475     s,@CXXFLAGS@,$CXXFLAGS,;t t
9476     s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9477     s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
9478     s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
9479     s,@F90@,$F90,;t t
9480     s,@F90FLAGS@,$F90FLAGS,;t t
9481     s,@ac_ct_F90@,$ac_ct_F90,;t t
9482     s,@PREPFLAG@,$PREPFLAG,;t t
9483     s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
9484     s,@F90LIBS@,$F90LIBS,;t t
9485     s,@F90_FUNC@,$F90_FUNC,;t t
9486     s,@F90_FUNC_@,$F90_FUNC_,;t t
9487     s,@MOD@,$MOD,;t t
9488     s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
9489     s,@MODDIRFLAG@,$MODDIRFLAG,;t t
9490     s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
9491 gezelter 1535 s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
9492 gezelter 1490 s,@CPP@,$CPP,;t t
9493 gezelter 2081 s,@EGREP@,$EGREP,;t t
9494 gezelter 1490 s,@LIBOBJS@,$LIBOBJS,;t t
9495     s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9496     s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9497     s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9498     s,@LN_S@,$LN_S,;t t
9499     s,@SET_MAKE@,$SET_MAKE,;t t
9500     s,@RANLIB@,$RANLIB,;t t
9501     s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9502     s,@YACC@,$YACC,;t t
9503     s,@LEX@,$LEX,;t t
9504     s,@LEXLIB@,$LEXLIB,;t t
9505     s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9506 gezelter 2199 s,@PERLINTERP@,$PERLINTERP,;t t
9507     s,@PERL_SHEBANG@,$PERL_SHEBANG,;t t
9508 gezelter 1490 s,@AR@,$AR,;t t
9509 gezelter 2023 s,@PS@,$PS,;t t
9510 gezelter 1490 s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t
9511     s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t
9512     s,@MPI_F90_INC@,$MPI_F90_INC,;t t
9513     s,@MPI_LIB@,$MPI_LIB,;t t
9514     s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
9515     s,@USE_MPI@,$USE_MPI,;t t
9516 gezelter 2190 s,@CXXCPP@,$CXXCPP,;t t
9517     s,@USE_CGAL@,$USE_CGAL,;t t
9518     s,@CGAL_INC_DIR@,$CGAL_INC_DIR,;t t
9519     s,@CGAL_LIB_DIR@,$CGAL_LIB_DIR,;t t
9520     s,@CGAL_RLIB_DIR@,$CGAL_RLIB_DIR,;t t
9521     s,@CGAL_DEFINES@,$CGAL_DEFINES,;t t
9522     s,@CGAL_CXXFLAGS@,$CGAL_CXXFLAGS,;t t
9523     s,@CGAL_LIBS@,$CGAL_LIBS,;t t
9524 gezelter 1540 s,@DOXYGEN@,$DOXYGEN,;t t
9525     s,@DOT@,$DOT,;t t
9526     s,@DOC@,$DOC,;t t
9527     s,@enable_dot@,$enable_dot,;t t
9528     s,@enable_html_docs@,$enable_html_docs,;t t
9529     s,@enable_latex_docs@,$enable_latex_docs,;t t
9530 gezelter 1490 s,@BATEXT@,$BATEXT,;t t
9531     s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9532     s,@OOPSE@,$OOPSE,;t t
9533     s,@OOPSE_HOME@,$OOPSE_HOME,;t t
9534     s,@SUBDIRS@,$SUBDIRS,;t t
9535     s,@FFLAGS@,$FFLAGS,;t t
9536 gezelter 2081 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9537 gezelter 1490 CEOF
9538    
9539 gezelter 2081 _ACEOF
9540 gezelter 1490
9541 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
9542 gezelter 1490 # Split the substitutions into bite-sized pieces for seds with
9543     # small command number limits, like on Digital OSF/1 and HP-UX.
9544     ac_max_sed_lines=48
9545     ac_sed_frag=1 # Number of current file.
9546     ac_beg=1 # First line for current file.
9547     ac_end=$ac_max_sed_lines # Line after last line for current file.
9548     ac_more_lines=:
9549     ac_sed_cmds=
9550     while $ac_more_lines; do
9551     if test $ac_beg -gt 1; then
9552     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9553     else
9554     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9555     fi
9556     if test ! -s $tmp/subs.frag; then
9557     ac_more_lines=false
9558     else
9559     # The purpose of the label and of the branching condition is to
9560     # speed up the sed processing (if there are no `@' at all, there
9561     # is no need to browse any of the substitutions).
9562     # These are the two extra sed commands mentioned above.
9563     (echo ':t
9564     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9565     if test -z "$ac_sed_cmds"; then
9566 gezelter 2081 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9567 gezelter 1490 else
9568 gezelter 2081 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9569 gezelter 1490 fi
9570     ac_sed_frag=`expr $ac_sed_frag + 1`
9571     ac_beg=$ac_end
9572     ac_end=`expr $ac_end + $ac_max_sed_lines`
9573     fi
9574     done
9575     if test -z "$ac_sed_cmds"; then
9576     ac_sed_cmds=cat
9577     fi
9578     fi # test -n "$CONFIG_FILES"
9579    
9580 gezelter 2081 _ACEOF
9581     cat >>$CONFIG_STATUS <<\_ACEOF
9582 gezelter 1490 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9583     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9584     case $ac_file in
9585     - | *:- | *:-:* ) # input from stdin
9586 gezelter 2081 cat >$tmp/stdin
9587     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9588     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9589 gezelter 1490 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9590 gezelter 2081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9591 gezelter 1490 * ) ac_file_in=$ac_file.in ;;
9592     esac
9593    
9594     # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9595 gezelter 2081 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9596     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9597     X"$ac_file" : 'X\(//\)[^/]' \| \
9598     X"$ac_file" : 'X\(//\)$' \| \
9599     X"$ac_file" : 'X\(/\)' \| \
9600     . : '\(.\)' 2>/dev/null ||
9601 gezelter 1490 echo X"$ac_file" |
9602     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9603     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9604     /^X\(\/\/\)$/{ s//\1/; q; }
9605     /^X\(\/\).*/{ s//\1/; q; }
9606     s/.*/./; q'`
9607 gezelter 2081 { if $as_mkdir_p; then
9608     mkdir -p "$ac_dir"
9609 gezelter 1490 else
9610 gezelter 2081 as_dir="$ac_dir"
9611     as_dirs=
9612     while test ! -d "$as_dir"; do
9613     as_dirs="$as_dir $as_dirs"
9614     as_dir=`(dirname "$as_dir") 2>/dev/null ||
9615     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9616     X"$as_dir" : 'X\(//\)[^/]' \| \
9617     X"$as_dir" : 'X\(//\)$' \| \
9618     X"$as_dir" : 'X\(/\)' \| \
9619     . : '\(.\)' 2>/dev/null ||
9620     echo X"$as_dir" |
9621     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9622     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9623     /^X\(\/\/\)$/{ s//\1/; q; }
9624     /^X\(\/\).*/{ s//\1/; q; }
9625     s/.*/./; q'`
9626     done
9627     test ! -n "$as_dirs" || mkdir $as_dirs
9628     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9629     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9630     { (exit 1); exit 1; }; }; }
9631 gezelter 1490
9632 gezelter 2081 ac_builddir=.
9633    
9634     if test "$ac_dir" != .; then
9635     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9636     # A "../" for each directory in $ac_dir_suffix.
9637     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9638     else
9639     ac_dir_suffix= ac_top_builddir=
9640     fi
9641    
9642     case $srcdir in
9643     .) # No --srcdir option. We are building in place.
9644     ac_srcdir=.
9645     if test -z "$ac_top_builddir"; then
9646     ac_top_srcdir=.
9647     else
9648     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9649     fi ;;
9650     [\\/]* | ?:[\\/]* ) # Absolute path.
9651     ac_srcdir=$srcdir$ac_dir_suffix;
9652     ac_top_srcdir=$srcdir ;;
9653 gezelter 1490 *) # Relative path.
9654 gezelter 2081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9655     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9656     esac
9657 gezelter 1490
9658 gezelter 2081 # Do not use `cd foo && pwd` to compute absolute paths, because
9659     # the directories may not exist.
9660     case `pwd` in
9661     .) ac_abs_builddir="$ac_dir";;
9662     *)
9663     case "$ac_dir" in
9664     .) ac_abs_builddir=`pwd`;;
9665     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9666     *) ac_abs_builddir=`pwd`/"$ac_dir";;
9667     esac;;
9668     esac
9669     case $ac_abs_builddir in
9670     .) ac_abs_top_builddir=${ac_top_builddir}.;;
9671     *)
9672     case ${ac_top_builddir}. in
9673     .) ac_abs_top_builddir=$ac_abs_builddir;;
9674     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9675     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9676     esac;;
9677     esac
9678     case $ac_abs_builddir in
9679     .) ac_abs_srcdir=$ac_srcdir;;
9680     *)
9681     case $ac_srcdir in
9682     .) ac_abs_srcdir=$ac_abs_builddir;;
9683     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9684     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9685     esac;;
9686     esac
9687     case $ac_abs_builddir in
9688     .) ac_abs_top_srcdir=$ac_top_srcdir;;
9689     *)
9690     case $ac_top_srcdir in
9691     .) ac_abs_top_srcdir=$ac_abs_builddir;;
9692     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9693     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9694     esac;;
9695     esac
9696    
9697    
9698 gezelter 1490 case $INSTALL in
9699     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9700 gezelter 2081 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9701 gezelter 1490 esac
9702    
9703     if test x"$ac_file" != x-; then
9704 gezelter 2081 { echo "$as_me:$LINENO: creating $ac_file" >&5
9705 gezelter 1490 echo "$as_me: creating $ac_file" >&6;}
9706     rm -f "$ac_file"
9707     fi
9708     # Let's still pretend it is `configure' which instantiates (i.e., don't
9709     # use $as_me), people would be surprised to read:
9710 gezelter 2081 # /* config.h. Generated by config.status. */
9711     if test x"$ac_file" = x-; then
9712     configure_input=
9713     else
9714     configure_input="$ac_file. "
9715     fi
9716     configure_input=$configure_input"Generated from `echo $ac_file_in |
9717     sed 's,.*/,,'` by configure."
9718 gezelter 1490
9719     # First look for the input files in the build tree, otherwise in the
9720     # src tree.
9721     ac_file_inputs=`IFS=:
9722     for f in $ac_file_in; do
9723     case $f in
9724     -) echo $tmp/stdin ;;
9725     [\\/$]*)
9726 gezelter 2081 # Absolute (can't be DOS-style, as IFS=:)
9727     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9728 gezelter 1490 echo "$as_me: error: cannot find input file: $f" >&2;}
9729     { (exit 1); exit 1; }; }
9730 gezelter 2081 echo "$f";;
9731 gezelter 1490 *) # Relative
9732 gezelter 2081 if test -f "$f"; then
9733     # Build tree
9734     echo "$f"
9735     elif test -f "$srcdir/$f"; then
9736     # Source tree
9737     echo "$srcdir/$f"
9738     else
9739     # /dev/null tree
9740     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9741 gezelter 1490 echo "$as_me: error: cannot find input file: $f" >&2;}
9742     { (exit 1); exit 1; }; }
9743 gezelter 2081 fi;;
9744 gezelter 1490 esac
9745     done` || { (exit 1); exit 1; }
9746 gezelter 2081 _ACEOF
9747     cat >>$CONFIG_STATUS <<_ACEOF
9748 gezelter 1490 sed "$ac_vpsub
9749     $extrasub
9750 gezelter 2081 _ACEOF
9751     cat >>$CONFIG_STATUS <<\_ACEOF
9752 gezelter 1490 :t
9753     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9754     s,@configure_input@,$configure_input,;t t
9755     s,@srcdir@,$ac_srcdir,;t t
9756 gezelter 2081 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9757 gezelter 1490 s,@top_srcdir@,$ac_top_srcdir,;t t
9758 gezelter 2081 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9759     s,@builddir@,$ac_builddir,;t t
9760     s,@abs_builddir@,$ac_abs_builddir,;t t
9761     s,@top_builddir@,$ac_top_builddir,;t t
9762     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9763 gezelter 1490 s,@INSTALL@,$ac_INSTALL,;t t
9764     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9765     rm -f $tmp/stdin
9766     if test x"$ac_file" != x-; then
9767     mv $tmp/out $ac_file
9768     else
9769     cat $tmp/out
9770     rm -f $tmp/out
9771     fi
9772    
9773 gezelter 2199 # Run the commands associated with the file.
9774     case $ac_file in
9775     make/Makefile ) chmod 0755 scripts/* ;;
9776     src/utils/Makefile ) chmod 0755 scripts/* ;;
9777     src/applications/nanoRodBuilder/Makefile ) chmod 0755 scripts/* ;;
9778     scripts/filepp ) chmod 0755 scripts/* ;;
9779     esac
9780 gezelter 1490 done
9781 gezelter 2081 _ACEOF
9782     cat >>$CONFIG_STATUS <<\_ACEOF
9783 gezelter 1490
9784     #
9785     # CONFIG_HEADER section.
9786     #
9787    
9788     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9789     # NAME is the cpp macro being defined and VALUE is the value it is being given.
9790     #
9791     # ac_d sets the value in "#define NAME VALUE" lines.
9792 gezelter 2081 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9793     ac_dB='[ ].*$,\1#\2'
9794 gezelter 1490 ac_dC=' '
9795     ac_dD=',;t'
9796     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9797 gezelter 2081 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9798 gezelter 1490 ac_uB='$,\1#\2define\3'
9799     ac_uC=' '
9800     ac_uD=',;t'
9801    
9802     for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9803     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9804     case $ac_file in
9805     - | *:- | *:-:* ) # input from stdin
9806 gezelter 2081 cat >$tmp/stdin
9807     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9808     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9809 gezelter 1490 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9810 gezelter 2081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9811 gezelter 1490 * ) ac_file_in=$ac_file.in ;;
9812     esac
9813    
9814 gezelter 2081 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9815 gezelter 1490 echo "$as_me: creating $ac_file" >&6;}
9816    
9817     # First look for the input files in the build tree, otherwise in the
9818     # src tree.
9819     ac_file_inputs=`IFS=:
9820     for f in $ac_file_in; do
9821     case $f in
9822     -) echo $tmp/stdin ;;
9823     [\\/$]*)
9824 gezelter 2081 # Absolute (can't be DOS-style, as IFS=:)
9825     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9826 gezelter 1490 echo "$as_me: error: cannot find input file: $f" >&2;}
9827     { (exit 1); exit 1; }; }
9828 gezelter 2081 # Do quote $f, to prevent DOS paths from being IFS'd.
9829     echo "$f";;
9830 gezelter 1490 *) # Relative
9831 gezelter 2081 if test -f "$f"; then
9832     # Build tree
9833     echo "$f"
9834     elif test -f "$srcdir/$f"; then
9835     # Source tree
9836     echo "$srcdir/$f"
9837     else
9838     # /dev/null tree
9839     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9840 gezelter 1490 echo "$as_me: error: cannot find input file: $f" >&2;}
9841     { (exit 1); exit 1; }; }
9842 gezelter 2081 fi;;
9843 gezelter 1490 esac
9844     done` || { (exit 1); exit 1; }
9845     # Remove the trailing spaces.
9846 gezelter 2081 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9847 gezelter 1490
9848 gezelter 2081 _ACEOF
9849 gezelter 1490
9850     # Transform confdefs.h into two sed scripts, `conftest.defines' and
9851     # `conftest.undefs', that substitutes the proper values into
9852     # config.h.in to produce config.h. The first handles `#define'
9853     # templates, and the second `#undef' templates.
9854     # And first: Protect against being on the right side of a sed subst in
9855     # config.status. Protect against being in an unquoted here document
9856     # in config.status.
9857     rm -f conftest.defines conftest.undefs
9858     # Using a here document instead of a string reduces the quoting nightmare.
9859     # Putting comments in sed scripts is not portable.
9860     #
9861     # `end' is used to avoid that the second main sed command (meant for
9862     # 0-ary CPP macros) applies to n-ary macro definitions.
9863     # See the Autoconf documentation for `clear'.
9864 gezelter 2081 cat >confdef2sed.sed <<\_ACEOF
9865 gezelter 1490 s/[\\&,]/\\&/g
9866     s,[\\$`],\\&,g
9867     t clear
9868     : clear
9869 gezelter 2081 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9870 gezelter 1490 t end
9871 gezelter 2081 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9872 gezelter 1490 : end
9873 gezelter 2081 _ACEOF
9874 gezelter 1490 # If some macros were called several times there might be several times
9875     # the same #defines, which is useless. Nevertheless, we may not want to
9876     # sort them, since we want the *last* AC-DEFINE to be honored.
9877     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9878     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9879     rm -f confdef2sed.sed
9880    
9881     # This sed command replaces #undef with comments. This is necessary, for
9882     # example, in the case of _POSIX_SOURCE, which is predefined and required
9883     # on some systems where configure will not decide to define it.
9884 gezelter 2081 cat >>conftest.undefs <<\_ACEOF
9885     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9886     _ACEOF
9887 gezelter 1490
9888     # Break up conftest.defines because some shells have a limit on the size
9889     # of here documents, and old seds have small limits too (100 cmds).
9890     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9891 gezelter 2081 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9892 gezelter 1490 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9893     echo ' :' >>$CONFIG_STATUS
9894     rm -f conftest.tail
9895     while grep . conftest.defines >/dev/null
9896     do
9897     # Write a limited-size here document to $tmp/defines.sed.
9898     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9899     # Speed up: don't consider the non `#define' lines.
9900 gezelter 2081 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9901 gezelter 1490 # Work around the forget-to-reset-the-flag bug.
9902     echo 't clr' >>$CONFIG_STATUS
9903     echo ': clr' >>$CONFIG_STATUS
9904     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9905     echo 'CEOF
9906     sed -f $tmp/defines.sed $tmp/in >$tmp/out
9907     rm -f $tmp/in
9908     mv $tmp/out $tmp/in
9909     ' >>$CONFIG_STATUS
9910     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9911     rm -f conftest.defines
9912     mv conftest.tail conftest.defines
9913     done
9914     rm -f conftest.defines
9915 gezelter 2081 echo ' fi # grep' >>$CONFIG_STATUS
9916 gezelter 1490 echo >>$CONFIG_STATUS
9917    
9918     # Break up conftest.undefs because some shells have a limit on the size
9919     # of here documents, and old seds have small limits too (100 cmds).
9920     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9921     rm -f conftest.tail
9922     while grep . conftest.undefs >/dev/null
9923     do
9924     # Write a limited-size here document to $tmp/undefs.sed.
9925     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9926     # Speed up: don't consider the non `#undef'
9927 gezelter 2081 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9928 gezelter 1490 # Work around the forget-to-reset-the-flag bug.
9929     echo 't clr' >>$CONFIG_STATUS
9930     echo ': clr' >>$CONFIG_STATUS
9931     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9932     echo 'CEOF
9933     sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9934     rm -f $tmp/in
9935     mv $tmp/out $tmp/in
9936     ' >>$CONFIG_STATUS
9937     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9938     rm -f conftest.undefs
9939     mv conftest.tail conftest.undefs
9940     done
9941     rm -f conftest.undefs
9942    
9943 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
9944 gezelter 1490 # Let's still pretend it is `configure' which instantiates (i.e., don't
9945     # use $as_me), people would be surprised to read:
9946 gezelter 2081 # /* config.h. Generated by config.status. */
9947 gezelter 1490 if test x"$ac_file" = x-; then
9948 gezelter 2081 echo "/* Generated by configure. */" >$tmp/config.h
9949 gezelter 1490 else
9950 gezelter 2081 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9951 gezelter 1490 fi
9952     cat $tmp/in >>$tmp/config.h
9953     rm -f $tmp/in
9954     if test x"$ac_file" != x-; then
9955 gezelter 2081 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9956     { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9957 gezelter 1490 echo "$as_me: $ac_file is unchanged" >&6;}
9958     else
9959 gezelter 2081 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9960     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9961     X"$ac_file" : 'X\(//\)[^/]' \| \
9962     X"$ac_file" : 'X\(//\)$' \| \
9963     X"$ac_file" : 'X\(/\)' \| \
9964     . : '\(.\)' 2>/dev/null ||
9965 gezelter 1490 echo X"$ac_file" |
9966     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9967     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9968     /^X\(\/\/\)$/{ s//\1/; q; }
9969     /^X\(\/\).*/{ s//\1/; q; }
9970     s/.*/./; q'`
9971 gezelter 2081 { if $as_mkdir_p; then
9972     mkdir -p "$ac_dir"
9973     else
9974     as_dir="$ac_dir"
9975     as_dirs=
9976     while test ! -d "$as_dir"; do
9977     as_dirs="$as_dir $as_dirs"
9978     as_dir=`(dirname "$as_dir") 2>/dev/null ||
9979     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9980     X"$as_dir" : 'X\(//\)[^/]' \| \
9981     X"$as_dir" : 'X\(//\)$' \| \
9982     X"$as_dir" : 'X\(/\)' \| \
9983     . : '\(.\)' 2>/dev/null ||
9984     echo X"$as_dir" |
9985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9986     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9987     /^X\(\/\/\)$/{ s//\1/; q; }
9988     /^X\(\/\).*/{ s//\1/; q; }
9989     s/.*/./; q'`
9990     done
9991     test ! -n "$as_dirs" || mkdir $as_dirs
9992     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9993     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9994     { (exit 1); exit 1; }; }; }
9995 gezelter 1490
9996     rm -f $ac_file
9997     mv $tmp/config.h $ac_file
9998     fi
9999     else
10000     cat $tmp/config.h
10001     rm -f $tmp/config.h
10002     fi
10003     done
10004 gezelter 2081 _ACEOF
10005     cat >>$CONFIG_STATUS <<\_ACEOF
10006 gezelter 1490
10007     #
10008     # CONFIG_LINKS section.
10009     #
10010    
10011     for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
10012     ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10013     ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10014    
10015 gezelter 2081 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
10016 gezelter 1490 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
10017    
10018     if test ! -r $srcdir/$ac_source; then
10019 gezelter 2081 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
10020     echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
10021 gezelter 1490 { (exit 1); exit 1; }; }
10022     fi
10023     rm -f $ac_dest
10024    
10025     # Make relative symlinks.
10026 gezelter 2081 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
10027     $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10028     X"$ac_dest" : 'X\(//\)[^/]' \| \
10029     X"$ac_dest" : 'X\(//\)$' \| \
10030     X"$ac_dest" : 'X\(/\)' \| \
10031     . : '\(.\)' 2>/dev/null ||
10032 gezelter 1490 echo X"$ac_dest" |
10033     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10034     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10035     /^X\(\/\/\)$/{ s//\1/; q; }
10036     /^X\(\/\).*/{ s//\1/; q; }
10037     s/.*/./; q'`
10038 gezelter 2081 { if $as_mkdir_p; then
10039     mkdir -p "$ac_dest_dir"
10040     else
10041     as_dir="$ac_dest_dir"
10042     as_dirs=
10043     while test ! -d "$as_dir"; do
10044     as_dirs="$as_dir $as_dirs"
10045     as_dir=`(dirname "$as_dir") 2>/dev/null ||
10046     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10047     X"$as_dir" : 'X\(//\)[^/]' \| \
10048     X"$as_dir" : 'X\(//\)$' \| \
10049     X"$as_dir" : 'X\(/\)' \| \
10050     . : '\(.\)' 2>/dev/null ||
10051     echo X"$as_dir" |
10052     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10053     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10054     /^X\(\/\/\)$/{ s//\1/; q; }
10055     /^X\(\/\).*/{ s//\1/; q; }
10056     s/.*/./; q'`
10057     done
10058     test ! -n "$as_dirs" || mkdir $as_dirs
10059     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
10060     echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
10061     { (exit 1); exit 1; }; }; }
10062    
10063     ac_builddir=.
10064    
10065     if test "$ac_dest_dir" != .; then
10066     ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
10067     # A "../" for each directory in $ac_dir_suffix.
10068     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10069     else
10070     ac_dir_suffix= ac_top_builddir=
10071     fi
10072    
10073     case $srcdir in
10074     .) # No --srcdir option. We are building in place.
10075     ac_srcdir=.
10076     if test -z "$ac_top_builddir"; then
10077     ac_top_srcdir=.
10078     else
10079     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10080     fi ;;
10081     [\\/]* | ?:[\\/]* ) # Absolute path.
10082     ac_srcdir=$srcdir$ac_dir_suffix;
10083     ac_top_srcdir=$srcdir ;;
10084     *) # Relative path.
10085     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10086     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10087 gezelter 1490 esac
10088    
10089 gezelter 2081 # Do not use `cd foo && pwd` to compute absolute paths, because
10090     # the directories may not exist.
10091     case `pwd` in
10092     .) ac_abs_builddir="$ac_dest_dir";;
10093     *)
10094     case "$ac_dest_dir" in
10095     .) ac_abs_builddir=`pwd`;;
10096     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
10097     *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
10098     esac;;
10099     esac
10100     case $ac_abs_builddir in
10101     .) ac_abs_top_builddir=${ac_top_builddir}.;;
10102     *)
10103     case ${ac_top_builddir}. in
10104     .) ac_abs_top_builddir=$ac_abs_builddir;;
10105     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10106     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10107     esac;;
10108     esac
10109     case $ac_abs_builddir in
10110     .) ac_abs_srcdir=$ac_srcdir;;
10111     *)
10112     case $ac_srcdir in
10113     .) ac_abs_srcdir=$ac_abs_builddir;;
10114     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10115     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10116     esac;;
10117     esac
10118     case $ac_abs_builddir in
10119     .) ac_abs_top_srcdir=$ac_top_srcdir;;
10120     *)
10121     case $ac_top_srcdir in
10122     .) ac_abs_top_srcdir=$ac_abs_builddir;;
10123     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10124     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10125     esac;;
10126     esac
10127 gezelter 1490
10128 gezelter 2081
10129 gezelter 1490 case $srcdir in
10130     [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
10131 gezelter 2081 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
10132 gezelter 1490 esac
10133    
10134 gezelter 2081 # Try a symlink, then a hard link, then a copy.
10135 gezelter 1490 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10136 gezelter 2081 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
10137     cp -p $srcdir/$ac_source $ac_dest ||
10138     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
10139     echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
10140 gezelter 1490 { (exit 1); exit 1; }; }
10141     done
10142 gezelter 2081 _ACEOF
10143 gezelter 1490
10144 gezelter 2081 cat >>$CONFIG_STATUS <<\_ACEOF
10145 gezelter 1490
10146     { (exit 0); exit 0; }
10147 gezelter 2081 _ACEOF
10148 gezelter 1490 chmod +x $CONFIG_STATUS
10149     ac_clean_files=$ac_clean_files_save
10150    
10151 gezelter 2081
10152 gezelter 1490 # configure is writing to config.log, and then calls config.status.
10153     # config.status does its own redirection, appending to config.log.
10154     # Unfortunately, on DOS this fails, as config.log is still kept open
10155     # by configure, so config.status won't be able to write to it; its
10156     # output is simply discarded. So we exec the FD to /dev/null,
10157     # effectively closing config.log, so it can be properly (re)opened and
10158     # appended to by config.status. When coming back to configure, we
10159     # need to make the FD available again.
10160     if test "$no_create" != yes; then
10161     ac_cs_success=:
10162 gezelter 2081 ac_config_status_args=
10163     test "$silent" = yes &&
10164     ac_config_status_args="$ac_config_status_args --quiet"
10165 gezelter 1490 exec 5>/dev/null
10166 gezelter 2081 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10167 gezelter 1490 exec 5>>config.log
10168     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10169     # would make configure fail if this is the last instruction.
10170     $ac_cs_success || { (exit 1); exit 1; }
10171     fi
10172    

Properties

Name Value
svn:executable *