]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/configure
gfortran.h (enum gfc_generic_isym_id): Add GFC_ISYM_GET?ID.
[thirdparty/gcc.git] / libgfortran / configure
CommitLineData
6de9cd9a
DN
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for GNU Fortran Runtime Library 0.2.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME='GNU Fortran Runtime Library'
269PACKAGE_TARNAME='libgfortran'
270PACKAGE_VERSION='0.2'
271PACKAGE_STRING='GNU Fortran Runtime Library 0.2'
272PACKAGE_BUGREPORT=''
273
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288# include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293# include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
1657a809 311ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir gcc_version toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL enable_shared enable_static F77 FFLAGS LDFLAGS ac_ct_F77 CPP CPPFLAGS EGREP MATH_OBJ LIBOBJS LTLIBOBJS'
6de9cd9a
DN
312ac_subst_files=''
313
314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_libraries=NONE
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649done
650
651if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678done
679
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
682# FIXME: To remove some day.
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
687# FIXME: To remove some day.
688if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
703
704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735fi
736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
6de9cd9a
DN
752ac_env_F77_set=${F77+set}
753ac_env_F77_value=$F77
754ac_cv_env_F77_set=${F77+set}
755ac_cv_env_F77_value=$F77
756ac_env_FFLAGS_set=${FFLAGS+set}
757ac_env_FFLAGS_value=$FFLAGS
758ac_cv_env_FFLAGS_set=${FFLAGS+set}
759ac_cv_env_FFLAGS_value=$FFLAGS
96b8a615
AJ
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
6de9cd9a
DN
764ac_env_CPP_set=${CPP+set}
765ac_env_CPP_value=$CPP
766ac_cv_env_CPP_set=${CPP+set}
767ac_cv_env_CPP_value=$CPP
96b8a615
AJ
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
6de9cd9a
DN
772
773#
774# Report the --help message.
775#
776if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780\`configure' configures GNU Fortran Runtime Library 0.2 to adapt to many kinds of systems.
781
782Usage: $0 [OPTION]... [VAR=VALUE]...
783
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE. See below for descriptions of some of the useful variables.
786
787Defaults for the options are specified in brackets.
788
789Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799
800_ACEOF
801
802 cat <<_ACEOF
803Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
808
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
813
814For better control, use the options below.
815
816Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829_ACEOF
830
831 cat <<\_ACEOF
832
833Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
837
838System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
96b8a615 841 --target=TARGET configure for building compilers for TARGET [HOST]
6de9cd9a
DN
842_ACEOF
843fi
844
845if test -n "$ac_init_help"; then
846 case $ac_init_help in
847 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.2:";;
848 esac
849 cat <<\_ACEOF
850
851Optional Features:
852 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
853 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
96b8a615 854 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
6de9cd9a
DN
855 --enable-maintainer-mode enable make rules and dependencies not useful
856 (and sometimes confusing) to the casual installer
96b8a615 857 --enable-multilib build many library versions (default)
6de9cd9a
DN
858 --enable-shared=PKGS build shared libraries default=yes
859 --enable-static=PKGS build static libraries default=yes
860 --enable-fast-install=PKGS optimize for fast installation default=yes
861 --disable-libtool-lock avoid locking (might break parallel builds)
9cdc381b 862 --disable-largefile omit support for large files
96b8a615 863 --enable-cmath Include complex math functions
6de9cd9a
DN
864
865Optional Packages:
866 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
867 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
868 --with-gnu-ld assume the C compiler uses GNU ld default=no
869 --with-pic try to use only PIC/non-PIC objects default=use both
870
871Some influential environment variables:
872 CC C compiler command
873 CFLAGS C compiler flags
874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
875 nonstandard directory <lib dir>
876 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
877 headers in a nonstandard directory <include dir>
878 F77 Fortran 77 compiler command
879 FFLAGS Fortran 77 compiler flags
880 CPP C preprocessor
881
882Use these variables to override the choices made by `configure' or to help
883it to find libraries and programs with nonstandard names/locations.
884
885_ACEOF
886fi
887
888if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
890 ac_popdir=`pwd`
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
893 ac_builddir=.
894
895if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899else
900 ac_dir_suffix= ac_top_builddir=
901fi
902
903case $srcdir in
904 .) # No --srcdir option. We are building in place.
905 ac_srcdir=.
906 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=.
908 else
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910 fi ;;
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
914 *) # Relative path.
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917esac
918
919# Do not use `cd foo && pwd` to compute absolute paths, because
920# the directories may not exist.
921case `pwd` in
922.) ac_abs_builddir="$ac_dir";;
923*)
924 case "$ac_dir" in
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 esac;;
929esac
930case $ac_abs_builddir in
931.) ac_abs_top_builddir=${ac_top_builddir}.;;
932*)
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 esac;;
938esac
939case $ac_abs_builddir in
940.) ac_abs_srcdir=$ac_srcdir;;
941*)
942 case $ac_srcdir in
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 esac;;
947esac
948case $ac_abs_builddir in
949.) ac_abs_top_srcdir=$ac_top_srcdir;;
950*)
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 esac;;
956esac
957
958 cd $ac_dir
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
961 echo
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
964 echo
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
968 echo
969 $ac_configure --help
970 else
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 fi
4c0c6b9f 973 cd "$ac_popdir"
6de9cd9a
DN
974 done
975fi
976
977test -n "$ac_init_help" && exit 0
978if $ac_init_version; then
979 cat <<\_ACEOF
980GNU Fortran Runtime Library configure 0.2
981generated by GNU Autoconf 2.59
982
983Copyright (C) 2003 Free Software Foundation, Inc.
984This configure script is free software; the Free Software Foundation
985gives unlimited permission to copy, distribute and modify it.
986_ACEOF
987 exit 0
988fi
989exec 5>config.log
990cat >&5 <<_ACEOF
991This file contains any messages produced by compilers while
992running configure, to aid debugging if configure makes a mistake.
993
994It was created by GNU Fortran Runtime Library $as_me 0.2, which was
995generated by GNU Autoconf 2.59. Invocation command line was
996
997 $ $0 $@
998
999_ACEOF
1000{
1001cat <<_ASUNAME
1002## --------- ##
1003## Platform. ##
1004## --------- ##
1005
1006hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011
1012/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014
1015/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1022
1023_ASUNAME
1024
1025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026for as_dir in $PATH
1027do
1028 IFS=$as_save_IFS
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1031done
1032
1033} >&5
1034
1035cat >&5 <<_ACEOF
1036
1037
1038## ----------- ##
1039## Core tests. ##
1040## ----------- ##
1041
1042_ACEOF
1043
1044
1045# Keep a trace of the command line.
1046# Strip out --no-create and --no-recursion so they do not pile up.
1047# Strip out --silent because we don't want to record it for future runs.
1048# Also quote any args containing shell meta-characters.
1049# Make two passes to allow for proper duplicate-argument suppression.
1050ac_configure_args=
1051ac_configure_args0=
1052ac_configure_args1=
1053ac_sep=
1054ac_must_keep_next=false
1055for ac_pass in 1 2
1056do
1057 for ac_arg
1058 do
1059 case $ac_arg in
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 continue ;;
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066 esac
1067 case $ac_pass in
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 2)
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1073 else
1074 case $ac_arg in
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081 esac
1082 ;;
1083 -* ) ac_must_keep_next=true ;;
1084 esac
1085 fi
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1088 ac_sep=" "
1089 ;;
1090 esac
1091 done
1092done
1093$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095
1096# When interrupted or exit'd, cleanup temporary files, and complete
1097# config.log. We remove comments because anyway the quotes in there
1098# would cause problems or look ugly.
1099# WARNING: Be sure not to use single quotes in there, as some shells,
1100# such as our DU 5.0 friend, will then `close' the trap.
1101trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1103 {
1104 echo
1105
1106 cat <<\_ASBOX
1107## ---------------- ##
1108## Cache variables. ##
1109## ---------------- ##
1110_ASBOX
1111 echo
1112 # The following way of writing the cache mishandles newlines in values,
1113{
1114 (set) 2>&1 |
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116 *ac_space=\ *)
1117 sed -n \
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1120 ;;
1121 *)
1122 sed -n \
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 ;;
1125 esac;
1126}
1127 echo
1128
1129 cat <<\_ASBOX
1130## ----------------- ##
1131## Output variables. ##
1132## ----------------- ##
1133_ASBOX
1134 echo
1135 for ac_var in $ac_subst_vars
1136 do
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1141
1142 if test -n "$ac_subst_files"; then
1143 cat <<\_ASBOX
1144## ------------- ##
1145## Output files. ##
1146## ------------- ##
1147_ASBOX
1148 echo
1149 for ac_var in $ac_subst_files
1150 do
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1155 fi
1156
1157 if test -s confdefs.h; then
1158 cat <<\_ASBOX
1159## ----------- ##
1160## confdefs.h. ##
1161## ----------- ##
1162_ASBOX
1163 echo
1164 sed "/^$/d" confdefs.h | sort
1165 echo
1166 fi
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1170 } >&5
1171 rm -f core *.core &&
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173 exit $exit_status
1174 ' 0
1175for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177done
1178ac_signal=0
1179
1180# confdefs.h avoids OS command line length limits that DEFS can exceed.
1181rm -rf conftest* confdefs.h
1182# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183echo >confdefs.h
1184
1185# Predefined preprocessor variables.
1186
1187cat >>confdefs.h <<_ACEOF
1188#define PACKAGE_NAME "$PACKAGE_NAME"
1189_ACEOF
1190
1191
1192cat >>confdefs.h <<_ACEOF
1193#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194_ACEOF
1195
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_VERSION "$PACKAGE_VERSION"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_STRING "$PACKAGE_STRING"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209_ACEOF
1210
1211
1212# Let the site file select an alternate cache file if it wants to.
1213# Prefer explicitly selected file to automatically selected ones.
1214if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 else
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219 fi
1220fi
1221for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1226 . "$ac_site_file"
1227 fi
1228done
1229
1230if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235echo "$as_me: loading cache $cache_file" >&6;}
1236 case $cache_file in
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1239 esac
1240 fi
1241else
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243echo "$as_me: creating cache $cache_file" >&6;}
1244 >$cache_file
1245fi
1246
1247# Check that the precious variables saved in the cache have kept the same
1248# value.
1249ac_cache_corrupted=false
1250for ac_var in `(set) 2>&1 |
1251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1257 set,)
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,set)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,);;
1266 *)
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273echo "$as_me: current value: $ac_new_val" >&2;}
1274 ac_cache_corrupted=:
1275 fi;;
1276 esac
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1279 case $ac_new_val in
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1283 esac
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287 esac
1288 fi
1289done
1290if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1296fi
1297
1298ac_ext=c
1299ac_cpp='$CPP $CPPFLAGS'
1300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
96b8a615
AJ
1330 ac_config_headers="$ac_config_headers config.h"
1331
1332
96b8a615
AJ
1333# -------
1334# Options
1335# -------
1336
1337echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1338echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1339# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1340if test "${enable_version_specific_runtime_libs+set}" = set; then
1341 enableval="$enable_version_specific_runtime_libs"
1342 case "$enableval" in
1343 yes) version_specific_libs=yes ;;
1344 no) version_specific_libs=no ;;
1345 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1346echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1347 { (exit 1); exit 1; }; };;
1348 esac
1349else
1350 version_specific_libs=no
1351fi;
1352echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1353echo "${ECHO_T}$version_specific_libs" >&6
1354
1355
1356# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1357#
1358# You will slowly go insane if you do not grok the following fact: when
1359# building this library, the top-level /target/ becomes the library's /host/.
1360#
1361# configure then causes --target to default to --host, exactly like any
1362# other package using autoconf. Therefore, 'target' and 'host' will
1363# always be the same. This makes sense both for native and cross compilers
1364# just think about it for a little while. :-)
1365#
1366# Also, if this library is being configured as part of a cross compiler, the
1367# top-level configure script will pass the "real" host as $with_cross_host.
1368#
1369# Do not delete or change the following two lines. For why, see
1370# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
6de9cd9a
DN
1371ac_aux_dir=
1372for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1373 if test -f $ac_dir/install-sh; then
1374 ac_aux_dir=$ac_dir
1375 ac_install_sh="$ac_aux_dir/install-sh -c"
1376 break
1377 elif test -f $ac_dir/install.sh; then
1378 ac_aux_dir=$ac_dir
1379 ac_install_sh="$ac_aux_dir/install.sh -c"
1380 break
1381 elif test -f $ac_dir/shtool; then
1382 ac_aux_dir=$ac_dir
1383 ac_install_sh="$ac_aux_dir/shtool install -c"
1384 break
1385 fi
1386done
1387if test -z "$ac_aux_dir"; then
1388 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1389echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1390 { (exit 1); exit 1; }; }
1391fi
1392ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1393ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1394ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1395
96b8a615
AJ
1396# Make sure we can run config.sub.
1397$ac_config_sub sun4 >/dev/null 2>&1 ||
1398 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1399echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1400 { (exit 1); exit 1; }; }
1401
1402echo "$as_me:$LINENO: checking build system type" >&5
1403echo $ECHO_N "checking build system type... $ECHO_C" >&6
1404if test "${ac_cv_build+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406else
1407 ac_cv_build_alias=$build_alias
1408test -z "$ac_cv_build_alias" &&
1409 ac_cv_build_alias=`$ac_config_guess`
1410test -z "$ac_cv_build_alias" &&
1411 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1412echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1413 { (exit 1); exit 1; }; }
1414ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1416echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1418
1419fi
1420echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1421echo "${ECHO_T}$ac_cv_build" >&6
1422build=$ac_cv_build
1423build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427
1428echo "$as_me:$LINENO: checking host system type" >&5
1429echo $ECHO_N "checking host system type... $ECHO_C" >&6
1430if test "${ac_cv_host+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1432else
1433 ac_cv_host_alias=$host_alias
1434test -z "$ac_cv_host_alias" &&
1435 ac_cv_host_alias=$ac_cv_build_alias
1436ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1437 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1438echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1439 { (exit 1); exit 1; }; }
1440
1441fi
1442echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1443echo "${ECHO_T}$ac_cv_host" >&6
1444host=$ac_cv_host
1445host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
1449
1450echo "$as_me:$LINENO: checking target system type" >&5
1451echo $ECHO_N "checking target system type... $ECHO_C" >&6
1452if test "${ac_cv_target+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1454else
1455 ac_cv_target_alias=$target_alias
1456test "x$ac_cv_target_alias" = "x" &&
1457 ac_cv_target_alias=$ac_cv_host_alias
1458ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1460echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1462
1463fi
1464echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1465echo "${ECHO_T}$ac_cv_target" >&6
1466target=$ac_cv_target
1467target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470
1471
1472# The aliases save the names the user supplied, while $host etc.
1473# will get canonicalized.
1474test -n "$target_alias" &&
1475 test "$program_prefix$program_suffix$program_transform_name" = \
1476 NONENONEs,x,x, &&
1477 program_prefix=${target_alias}-
1478target_alias=${target_alias-$host_alias}
1479
1480# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1481# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1482# 1.8.2: minimum required version
1483# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1484# of other PACKAGE_* variables will, however, and there's nothing
1485# we can do about that; they come from AC_INIT).
1486# foreign: we don't follow the normal rules for GNU packages (no COPYING
1487# file in the top srcdir, etc, etc), so stop complaining.
1488# no-dependencies: turns off auto dependency generation (just for now)
1489# -Wall: turns on all automake warnings...
1490# -Wno-portability: ...except this one, since GNU make is required.
1491am__api_version="1.8"
6de9cd9a
DN
1492# Find a good install program. We prefer a C program (faster),
1493# so one script is as good as another. But avoid the broken or
1494# incompatible versions:
1495# SysV /etc/install, /usr/sbin/install
1496# SunOS /usr/etc/install
1497# IRIX /sbin/install
1498# AIX /bin/install
1499# AmigaOS /C/install, which installs bootblocks on floppy discs
1500# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1501# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1502# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1503# OS/2's system install, which has a completely different semantic
1504# ./install, which can be erroneously created by make from ./install.sh.
1505echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1506echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1507if test -z "$INSTALL"; then
1508if test "${ac_cv_path_install+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512for as_dir in $PATH
1513do
1514 IFS=$as_save_IFS
1515 test -z "$as_dir" && as_dir=.
1516 # Account for people who put trailing slashes in PATH elements.
1517case $as_dir/ in
1518 ./ | .// | /cC/* | \
1519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1520 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1521 /usr/ucb/* ) ;;
1522 *)
1523 # OSF1 and SCO ODT 3.0 have their own names for install.
1524 # Don't use installbsd from OSF since it installs stuff as root
1525 # by default.
1526 for ac_prog in ginstall scoinst install; do
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1529 if test $ac_prog = install &&
1530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1531 # AIX install. It has an incompatible calling convention.
1532 :
1533 elif test $ac_prog = install &&
1534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1535 # program-specific install script used by HP pwplus--don't use.
1536 :
1537 else
1538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1539 break 3
1540 fi
1541 fi
1542 done
1543 done
1544 ;;
1545esac
1546done
1547
1548
1549fi
1550 if test "${ac_cv_path_install+set}" = set; then
1551 INSTALL=$ac_cv_path_install
1552 else
1553 # As a last resort, use the slow shell script. We don't cache a
1554 # path for INSTALL within a source directory, because that will
1555 # break other packages using the cache if that directory is
1556 # removed, or if the path is relative.
1557 INSTALL=$ac_install_sh
1558 fi
1559fi
1560echo "$as_me:$LINENO: result: $INSTALL" >&5
1561echo "${ECHO_T}$INSTALL" >&6
1562
1563# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1564# It thinks the first close brace ends the variable substitution.
1565test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1566
1567test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1568
1569test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1570
1571echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1572echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1573# Just in case
1574sleep 1
1575echo timestamp > conftest.file
1576# Do `set' in a subshell so we don't clobber the current shell's
1577# arguments. Must try -L first in case configure is actually a
1578# symlink; some systems play weird games with the mod time of symlinks
1579# (eg FreeBSD returns the mod time of the symlink's containing
1580# directory).
1581if (
1582 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1583 if test "$*" = "X"; then
1584 # -L didn't work.
1585 set X `ls -t $srcdir/configure conftest.file`
1586 fi
1587 rm -f conftest.file
1588 if test "$*" != "X $srcdir/configure conftest.file" \
1589 && test "$*" != "X conftest.file $srcdir/configure"; then
1590
1591 # If neither matched, then we have a broken ls. This can happen
1592 # if, for instance, CONFIG_SHELL is bash and it inherits a
1593 # broken ls alias from the environment. This has actually
1594 # happened. Such a system could not be considered "sane".
1595 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1596alias in your environment" >&5
1597echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1598alias in your environment" >&2;}
1599 { (exit 1); exit 1; }; }
1600 fi
1601
1602 test "$2" = conftest.file
1603 )
1604then
1605 # Ok.
1606 :
1607else
1608 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1609Check your system clock" >&5
1610echo "$as_me: error: newly created file is older than distributed files!
1611Check your system clock" >&2;}
1612 { (exit 1); exit 1; }; }
1613fi
1614echo "$as_me:$LINENO: result: yes" >&5
1615echo "${ECHO_T}yes" >&6
1616test "$program_prefix" != NONE &&
1617 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1618# Use a double $ so make ignores it.
1619test "$program_suffix" != NONE &&
1620 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1621# Double any \ or $. echo might interpret backslashes.
1622# By default was `s,x,x', remove it if useless.
1623cat <<\_ACEOF >conftest.sed
1624s/[\\$]/&&/g;s/;s,x,x,$//
1625_ACEOF
1626program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1627rm conftest.sed
1628
1629# expand $ac_aux_dir to an absolute path
1630am_aux_dir=`cd $ac_aux_dir && pwd`
1631
1632test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1633# Use eval to expand $SHELL
1634if eval "$MISSING --run true"; then
1635 am_missing_run="$MISSING --run "
1636else
1637 am_missing_run=
1638 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1639echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1640fi
1641
c9e66eda 1642if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6de9cd9a
DN
1643 # Keeping the `.' argument allows $(mkdir_p) to be used without
1644 # argument. Indeed, we sometimes output rules like
1645 # $(mkdir_p) $(somedir)
1646 # where $(somedir) is conditionally defined.
1647 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1648 # expensive solution, as it forces Make to start a sub-shell.)
1649 mkdir_p='mkdir -p -- .'
1650else
1651 # On NextStep and OpenStep, the `mkdir' command does not
1652 # recognize any option. It will interpret all options as
1653 # directories to create, and then abort because `.' already
1654 # exists.
c9e66eda 1655 for d in ./-p ./--version;
6de9cd9a
DN
1656 do
1657 test -d $d && rmdir $d
1658 done
1659 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1660 if test -f "$ac_aux_dir/mkinstalldirs"; then
1661 mkdir_p='$(mkinstalldirs)'
1662 else
1663 mkdir_p='$(install_sh) -d'
1664 fi
1665fi
1666
1667for ac_prog in gawk mawk nawk awk
1668do
1669 # Extract the first word of "$ac_prog", so it can be a program name with args.
1670set dummy $ac_prog; ac_word=$2
1671echo "$as_me:$LINENO: checking for $ac_word" >&5
1672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673if test "${ac_cv_prog_AWK+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1675else
1676 if test -n "$AWK"; then
1677 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1678else
1679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680for as_dir in $PATH
1681do
1682 IFS=$as_save_IFS
1683 test -z "$as_dir" && as_dir=.
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 ac_cv_prog_AWK="$ac_prog"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688 break 2
1689 fi
1690done
1691done
1692
1693fi
1694fi
1695AWK=$ac_cv_prog_AWK
1696if test -n "$AWK"; then
1697 echo "$as_me:$LINENO: result: $AWK" >&5
1698echo "${ECHO_T}$AWK" >&6
1699else
1700 echo "$as_me:$LINENO: result: no" >&5
1701echo "${ECHO_T}no" >&6
1702fi
1703
1704 test -n "$AWK" && break
1705done
1706
1707echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1708echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1709set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1710if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1712else
1713 cat >conftest.make <<\_ACEOF
1714all:
1715 @echo 'ac_maketemp="$(MAKE)"'
1716_ACEOF
1717# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1718eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1719if test -n "$ac_maketemp"; then
1720 eval ac_cv_prog_make_${ac_make}_set=yes
1721else
1722 eval ac_cv_prog_make_${ac_make}_set=no
1723fi
1724rm -f conftest.make
1725fi
1726if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1727 echo "$as_me:$LINENO: result: yes" >&5
1728echo "${ECHO_T}yes" >&6
1729 SET_MAKE=
1730else
1731 echo "$as_me:$LINENO: result: no" >&5
1732echo "${ECHO_T}no" >&6
1733 SET_MAKE="MAKE=${MAKE-make}"
1734fi
1735
1736rm -rf .tst 2>/dev/null
1737mkdir .tst 2>/dev/null
1738if test -d .tst; then
1739 am__leading_dot=.
1740else
1741 am__leading_dot=_
1742fi
1743rmdir .tst 2>/dev/null
1744
1745# test to see if srcdir already configured
1746if test "`cd $srcdir && pwd`" != "`pwd`" &&
1747 test -f $srcdir/config.status; then
1748 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1749echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1750 { (exit 1); exit 1; }; }
1751fi
1752
1753# test whether we have cygpath
1754if test -z "$CYGPATH_W"; then
1755 if (cygpath --version) >/dev/null 2>/dev/null; then
1756 CYGPATH_W='cygpath -w'
1757 else
1758 CYGPATH_W=echo
1759 fi
1760fi
1761
1762
1763# Define the identity of the package.
1764 PACKAGE='libgfortran'
1765 VERSION='0.2'
1766
1767
6de9cd9a
DN
1768# Some tools Automake needs.
1769
1770ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1771
1772
1773AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1774
1775
1776AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1777
1778
1779AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1780
1781
1782MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1783
1784
1785AMTAR=${AMTAR-"${am_missing_run}tar"}
1786
1787install_sh=${install_sh-"$am_aux_dir/install-sh"}
1788
1789# Installed binaries are usually stripped using `strip' when the user
1790# run `make install-strip'. However `strip' might not be the right
1791# tool to use in cross-compilation environments, therefore Automake
1792# will honor the `STRIP' environment variable to overrule this program.
1793if test "$cross_compiling" != no; then
1794 if test -n "$ac_tool_prefix"; then
1795 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1796set dummy ${ac_tool_prefix}strip; ac_word=$2
1797echo "$as_me:$LINENO: checking for $ac_word" >&5
1798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799if test "${ac_cv_prog_STRIP+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801else
1802 if test -n "$STRIP"; then
1803 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1804else
1805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806for as_dir in $PATH
1807do
1808 IFS=$as_save_IFS
1809 test -z "$as_dir" && as_dir=.
1810 for ac_exec_ext in '' $ac_executable_extensions; do
1811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814 break 2
1815 fi
1816done
1817done
1818
1819fi
1820fi
1821STRIP=$ac_cv_prog_STRIP
1822if test -n "$STRIP"; then
1823 echo "$as_me:$LINENO: result: $STRIP" >&5
1824echo "${ECHO_T}$STRIP" >&6
1825else
1826 echo "$as_me:$LINENO: result: no" >&5
1827echo "${ECHO_T}no" >&6
1828fi
1829
1830fi
1831if test -z "$ac_cv_prog_STRIP"; then
1832 ac_ct_STRIP=$STRIP
1833 # Extract the first word of "strip", so it can be a program name with args.
1834set dummy strip; ac_word=$2
1835echo "$as_me:$LINENO: checking for $ac_word" >&5
1836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1839else
1840 if test -n "$ac_ct_STRIP"; then
1841 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1842else
1843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844for as_dir in $PATH
1845do
1846 IFS=$as_save_IFS
1847 test -z "$as_dir" && as_dir=.
1848 for ac_exec_ext in '' $ac_executable_extensions; do
1849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850 ac_cv_prog_ac_ct_STRIP="strip"
1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852 break 2
1853 fi
1854done
1855done
1856
1857 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1858fi
1859fi
1860ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1861if test -n "$ac_ct_STRIP"; then
1862 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1863echo "${ECHO_T}$ac_ct_STRIP" >&6
1864else
1865 echo "$as_me:$LINENO: result: no" >&5
1866echo "${ECHO_T}no" >&6
1867fi
1868
1869 STRIP=$ac_ct_STRIP
1870else
1871 STRIP="$ac_cv_prog_STRIP"
1872fi
1873
1874fi
1875INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1876
1877# We need awk for the "check" target. The system "awk" is bad on
1878# some platforms.
1879
1880
1881
6de9cd9a
DN
1882
1883echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1884echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1885 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1886if test "${enable_maintainer_mode+set}" = set; then
1887 enableval="$enable_maintainer_mode"
1888 USE_MAINTAINER_MODE=$enableval
1889else
1890 USE_MAINTAINER_MODE=no
1891fi;
1892 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1893echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1894
1895
1896if test $USE_MAINTAINER_MODE = yes; then
1897 MAINTAINER_MODE_TRUE=
1898 MAINTAINER_MODE_FALSE='#'
1899else
1900 MAINTAINER_MODE_TRUE='#'
1901 MAINTAINER_MODE_FALSE=
1902fi
1903
1904 MAINT=$MAINTAINER_MODE_TRUE
1905
1906
96b8a615
AJ
1907# Default to --enable-multilib
1908# Check whether --enable-multilib or --disable-multilib was given.
1909if test "${enable_multilib+set}" = set; then
1910 enableval="$enable_multilib"
1911 case "$enableval" in
1912 yes) multilib=yes ;;
1913 no) multilib=no ;;
1914 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1915echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1916 { (exit 1); exit 1; }; } ;;
1917 esac
1918else
1919 multilib=yes
1920fi;
1921
1922# We may get other options which we leave undocumented:
1923# --with-target-subdir, --with-multisrctop, --with-multisubdir
1924# See config-ml.in if you want the gory details.
1925
1926if test "$srcdir" = "."; then
1927 if test "$with_target_subdir" != "."; then
1928 multi_basedir="$srcdir/$with_multisrctop../.."
1929 else
1930 multi_basedir="$srcdir/$with_multisrctop.."
1931 fi
1932else
1933 multi_basedir="$srcdir/.."
1934fi
1935
1936
1937 ac_config_commands="$ac_config_commands default-1"
1938
1939
1940# Handy for debugging:
1941#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1942
1943# Are we being configured with some form of cross compiler?
1944# NB: We don't actually need to know this just now, but when, say, a test
1945# suite is included, we'll have to know.
1946if test "$build" != "$host"; then
1947 LIBGFOR_IS_NATIVE=false
1948 GCC_NO_EXECUTABLES
1949else
1950 LIBGFOR_IS_NATIVE=true
1951fi
1952
1953# Process the option "--enable-version-specific-runtime-libs"
1954gcc_version_trigger=${srcdir}/../gcc/version.c
1955gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
1956gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
1957
1958
1959# Calculate toolexeclibdir
1960# Also toolexecdir, though it's only used in toolexeclibdir
1961case ${version_specific_libs} in
1962 yes)
1963 # Need the gcc compiler version to know where to install libraries
1964 # and header files if --enable-version-specific-runtime-libs option
1965 # is selected.
1966 toolexecdir='$(libdir)/gcc/$(target_alias)'
1967 toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1968 ;;
1969 no)
1970 if test -n "$with_cross_host" &&
1971 test x"$with_cross_host" != x"no"; then
1972 # Install a library built with a cross compiler in tooldir, not libdir.
1973 toolexecdir='$(exec_prefix)/$(target_alias)'
1974 toolexeclibdir='$(toolexecdir)/lib'
1975 else
1976 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1977 toolexeclibdir='$(libdir)'
1978 fi
1979 multi_os_directory=`$CC -print-multi-os-directory`
1980 case $multi_os_directory in
1981 .) ;; # Avoid trailing /.
1982 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1983 esac
1984 ;;
1985esac
1986
1987
6de9cd9a 1988
96b8a615
AJ
1989# Check the compiler.
1990# The same as in boehm-gc and libstdc++. Have to borrow it from there.
1991# We must force CC to /not/ be precious variables; otherwise
1992# the wrong, non-multilib-adjusted value will be used in multilibs.
1993# As a side effect, we have to subst CFLAGS ourselves.
6de9cd9a
DN
1994
1995
1996
6de9cd9a
DN
1997ac_ext=c
1998ac_cpp='$CPP $CPPFLAGS'
1999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002if test -n "$ac_tool_prefix"; then
2003 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2004set dummy ${ac_tool_prefix}gcc; ac_word=$2
2005echo "$as_me:$LINENO: checking for $ac_word" >&5
2006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007if test "${ac_cv_prog_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2009else
2010 if test -n "$CC"; then
2011 ac_cv_prog_CC="$CC" # Let the user override the test.
2012else
2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014for as_dir in $PATH
2015do
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 break 2
2023 fi
2024done
2025done
2026
2027fi
2028fi
2029CC=$ac_cv_prog_CC
2030if test -n "$CC"; then
2031 echo "$as_me:$LINENO: result: $CC" >&5
2032echo "${ECHO_T}$CC" >&6
2033else
2034 echo "$as_me:$LINENO: result: no" >&5
2035echo "${ECHO_T}no" >&6
2036fi
2037
2038fi
2039if test -z "$ac_cv_prog_CC"; then
2040 ac_ct_CC=$CC
2041 # Extract the first word of "gcc", so it can be a program name with args.
2042set dummy gcc; ac_word=$2
2043echo "$as_me:$LINENO: checking for $ac_word" >&5
2044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047else
2048 if test -n "$ac_ct_CC"; then
2049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2050else
2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052for as_dir in $PATH
2053do
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058 ac_cv_prog_ac_ct_CC="gcc"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 break 2
2061 fi
2062done
2063done
2064
2065fi
2066fi
2067ac_ct_CC=$ac_cv_prog_ac_ct_CC
2068if test -n "$ac_ct_CC"; then
2069 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2070echo "${ECHO_T}$ac_ct_CC" >&6
2071else
2072 echo "$as_me:$LINENO: result: no" >&5
2073echo "${ECHO_T}no" >&6
2074fi
2075
2076 CC=$ac_ct_CC
2077else
2078 CC="$ac_cv_prog_CC"
2079fi
2080
2081if test -z "$CC"; then
2082 if test -n "$ac_tool_prefix"; then
2083 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2084set dummy ${ac_tool_prefix}cc; ac_word=$2
2085echo "$as_me:$LINENO: checking for $ac_word" >&5
2086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087if test "${ac_cv_prog_CC+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2089else
2090 if test -n "$CC"; then
2091 ac_cv_prog_CC="$CC" # Let the user override the test.
2092else
2093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094for as_dir in $PATH
2095do
2096 IFS=$as_save_IFS
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100 ac_cv_prog_CC="${ac_tool_prefix}cc"
2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 break 2
2103 fi
2104done
2105done
2106
2107fi
2108fi
2109CC=$ac_cv_prog_CC
2110if test -n "$CC"; then
2111 echo "$as_me:$LINENO: result: $CC" >&5
2112echo "${ECHO_T}$CC" >&6
2113else
2114 echo "$as_me:$LINENO: result: no" >&5
2115echo "${ECHO_T}no" >&6
2116fi
2117
2118fi
2119if test -z "$ac_cv_prog_CC"; then
2120 ac_ct_CC=$CC
2121 # Extract the first word of "cc", so it can be a program name with args.
2122set dummy cc; ac_word=$2
2123echo "$as_me:$LINENO: checking for $ac_word" >&5
2124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128 if test -n "$ac_ct_CC"; then
2129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2130else
2131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132for as_dir in $PATH
2133do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138 ac_cv_prog_ac_ct_CC="cc"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 break 2
2141 fi
2142done
2143done
2144
2145fi
2146fi
2147ac_ct_CC=$ac_cv_prog_ac_ct_CC
2148if test -n "$ac_ct_CC"; then
2149 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2150echo "${ECHO_T}$ac_ct_CC" >&6
2151else
2152 echo "$as_me:$LINENO: result: no" >&5
2153echo "${ECHO_T}no" >&6
2154fi
2155
2156 CC=$ac_ct_CC
2157else
2158 CC="$ac_cv_prog_CC"
2159fi
2160
2161fi
2162if test -z "$CC"; then
2163 # Extract the first word of "cc", so it can be a program name with args.
2164set dummy cc; ac_word=$2
2165echo "$as_me:$LINENO: checking for $ac_word" >&5
2166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2167if test "${ac_cv_prog_CC+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169else
2170 if test -n "$CC"; then
2171 ac_cv_prog_CC="$CC" # Let the user override the test.
2172else
2173 ac_prog_rejected=no
2174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175for as_dir in $PATH
2176do
2177 IFS=$as_save_IFS
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2182 ac_prog_rejected=yes
2183 continue
2184 fi
2185 ac_cv_prog_CC="cc"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 break 2
2188 fi
2189done
2190done
2191
2192if test $ac_prog_rejected = yes; then
2193 # We found a bogon in the path, so make sure we never use it.
2194 set dummy $ac_cv_prog_CC
2195 shift
2196 if test $# != 0; then
2197 # We chose a different compiler from the bogus one.
2198 # However, it has the same basename, so the bogon will be chosen
2199 # first if we set CC to just the basename; use the full file name.
2200 shift
2201 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2202 fi
2203fi
2204fi
2205fi
2206CC=$ac_cv_prog_CC
2207if test -n "$CC"; then
2208 echo "$as_me:$LINENO: result: $CC" >&5
2209echo "${ECHO_T}$CC" >&6
2210else
2211 echo "$as_me:$LINENO: result: no" >&5
2212echo "${ECHO_T}no" >&6
2213fi
2214
2215fi
2216if test -z "$CC"; then
2217 if test -n "$ac_tool_prefix"; then
2218 for ac_prog in cl
2219 do
2220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2222echo "$as_me:$LINENO: checking for $ac_word" >&5
2223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2224if test "${ac_cv_prog_CC+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226else
2227 if test -n "$CC"; then
2228 ac_cv_prog_CC="$CC" # Let the user override the test.
2229else
2230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231for as_dir in $PATH
2232do
2233 IFS=$as_save_IFS
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 break 2
2240 fi
2241done
2242done
2243
2244fi
2245fi
2246CC=$ac_cv_prog_CC
2247if test -n "$CC"; then
2248 echo "$as_me:$LINENO: result: $CC" >&5
2249echo "${ECHO_T}$CC" >&6
2250else
2251 echo "$as_me:$LINENO: result: no" >&5
2252echo "${ECHO_T}no" >&6
2253fi
2254
2255 test -n "$CC" && break
2256 done
2257fi
2258if test -z "$CC"; then
2259 ac_ct_CC=$CC
2260 for ac_prog in cl
2261do
2262 # Extract the first word of "$ac_prog", so it can be a program name with args.
2263set dummy $ac_prog; ac_word=$2
2264echo "$as_me:$LINENO: checking for $ac_word" >&5
2265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268else
2269 if test -n "$ac_ct_CC"; then
2270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2271else
2272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273for as_dir in $PATH
2274do
2275 IFS=$as_save_IFS
2276 test -z "$as_dir" && as_dir=.
2277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2279 ac_cv_prog_ac_ct_CC="$ac_prog"
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 break 2
2282 fi
2283done
2284done
2285
2286fi
2287fi
2288ac_ct_CC=$ac_cv_prog_ac_ct_CC
2289if test -n "$ac_ct_CC"; then
2290 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2291echo "${ECHO_T}$ac_ct_CC" >&6
2292else
2293 echo "$as_me:$LINENO: result: no" >&5
2294echo "${ECHO_T}no" >&6
2295fi
2296
2297 test -n "$ac_ct_CC" && break
2298done
2299
2300 CC=$ac_ct_CC
2301fi
2302
2303fi
2304
2305
2306test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2307See \`config.log' for more details." >&5
2308echo "$as_me: error: no acceptable C compiler found in \$PATH
2309See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2311
2312# Provide some information about the compiler.
2313echo "$as_me:$LINENO:" \
2314 "checking for C compiler version" >&5
2315ac_compiler=`set X $ac_compile; echo $2`
2316{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2317 (eval $ac_compiler --version </dev/null >&5) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }
2321{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2322 (eval $ac_compiler -v </dev/null >&5) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }
2326{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2327 (eval $ac_compiler -V </dev/null >&5) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }
2331
2332cat >conftest.$ac_ext <<_ACEOF
2333/* confdefs.h. */
2334_ACEOF
2335cat confdefs.h >>conftest.$ac_ext
2336cat >>conftest.$ac_ext <<_ACEOF
2337/* end confdefs.h. */
2338
2339int
2340main ()
2341{
2342
2343 ;
2344 return 0;
2345}
2346_ACEOF
2347ac_clean_files_save=$ac_clean_files
2348ac_clean_files="$ac_clean_files a.out a.exe b.out"
2349# Try to create an executable without -o first, disregard a.out.
2350# It will help us diagnose broken compilers, and finding out an intuition
2351# of exeext.
2352echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2353echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2354ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2355if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2356 (eval $ac_link_default) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; then
2360 # Find the output, starting from the most likely. This scheme is
2361# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2362# resort.
2363
2364# Be careful to initialize this variable, since it used to be cached.
2365# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2366ac_cv_exeext=
2367# b.out is created by i960 compilers.
2368for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2369do
2370 test -f "$ac_file" || continue
2371 case $ac_file in
2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2373 ;;
2374 conftest.$ac_ext )
2375 # This is the source file.
2376 ;;
2377 [ab].out )
2378 # We found the default executable, but exeext='' is most
2379 # certainly right.
2380 break;;
2381 *.* )
2382 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2383 # FIXME: I believe we export ac_cv_exeext for Libtool,
2384 # but it would be cool to find out if it's true. Does anybody
2385 # maintain Libtool? --akim.
2386 export ac_cv_exeext
2387 break;;
2388 * )
2389 break;;
2390 esac
2391done
2392else
2393 echo "$as_me: failed program was:" >&5
2394sed 's/^/| /' conftest.$ac_ext >&5
2395
2396{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2397See \`config.log' for more details." >&5
2398echo "$as_me: error: C compiler cannot create executables
2399See \`config.log' for more details." >&2;}
2400 { (exit 77); exit 77; }; }
2401fi
2402
2403ac_exeext=$ac_cv_exeext
2404echo "$as_me:$LINENO: result: $ac_file" >&5
2405echo "${ECHO_T}$ac_file" >&6
2406
2407# Check the compiler produces executables we can run. If not, either
2408# the compiler is broken, or we cross compile.
2409echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2410echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2411# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2412# If not cross compiling, check that we can run a simple program.
2413if test "$cross_compiling" != yes; then
2414 if { ac_try='./$ac_file'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 cross_compiling=no
2421 else
2422 if test "$cross_compiling" = maybe; then
2423 cross_compiling=yes
2424 else
2425 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2426If you meant to cross compile, use \`--host'.
2427See \`config.log' for more details." >&5
2428echo "$as_me: error: cannot run C compiled programs.
2429If you meant to cross compile, use \`--host'.
2430See \`config.log' for more details." >&2;}
2431 { (exit 1); exit 1; }; }
2432 fi
2433 fi
2434fi
2435echo "$as_me:$LINENO: result: yes" >&5
2436echo "${ECHO_T}yes" >&6
2437
2438rm -f a.out a.exe conftest$ac_cv_exeext b.out
2439ac_clean_files=$ac_clean_files_save
2440# Check the compiler produces executables we can run. If not, either
2441# the compiler is broken, or we cross compile.
2442echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2443echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2444echo "$as_me:$LINENO: result: $cross_compiling" >&5
2445echo "${ECHO_T}$cross_compiling" >&6
2446
2447echo "$as_me:$LINENO: checking for suffix of executables" >&5
2448echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2450 (eval $ac_link) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; then
2454 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2455# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2456# work properly (i.e., refer to `conftest.exe'), while it won't with
2457# `rm'.
2458for ac_file in conftest.exe conftest conftest.*; do
2459 test -f "$ac_file" || continue
2460 case $ac_file in
2461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2462 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2463 export ac_cv_exeext
2464 break;;
2465 * ) break;;
2466 esac
2467done
2468else
2469 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2470See \`config.log' for more details." >&5
2471echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2472See \`config.log' for more details." >&2;}
2473 { (exit 1); exit 1; }; }
2474fi
2475
2476rm -f conftest$ac_cv_exeext
2477echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2478echo "${ECHO_T}$ac_cv_exeext" >&6
2479
2480rm -f conftest.$ac_ext
2481EXEEXT=$ac_cv_exeext
2482ac_exeext=$EXEEXT
2483echo "$as_me:$LINENO: checking for suffix of object files" >&5
2484echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2485if test "${ac_cv_objext+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487else
2488 cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h. */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
2493/* end confdefs.h. */
2494
2495int
2496main ()
2497{
2498
2499 ;
2500 return 0;
2501}
2502_ACEOF
2503rm -f conftest.o conftest.obj
2504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505 (eval $ac_compile) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; then
2509 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2510 case $ac_file in
2511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2512 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2513 break;;
2514 esac
2515done
2516else
2517 echo "$as_me: failed program was:" >&5
2518sed 's/^/| /' conftest.$ac_ext >&5
2519
2520{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2521See \`config.log' for more details." >&5
2522echo "$as_me: error: cannot compute suffix of object files: cannot compile
2523See \`config.log' for more details." >&2;}
2524 { (exit 1); exit 1; }; }
2525fi
2526
2527rm -f conftest.$ac_cv_objext conftest.$ac_ext
2528fi
2529echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2530echo "${ECHO_T}$ac_cv_objext" >&6
2531OBJEXT=$ac_cv_objext
2532ac_objext=$OBJEXT
2533echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2534echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2535if test "${ac_cv_c_compiler_gnu+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537else
2538 cat >conftest.$ac_ext <<_ACEOF
2539/* confdefs.h. */
2540_ACEOF
2541cat confdefs.h >>conftest.$ac_ext
2542cat >>conftest.$ac_ext <<_ACEOF
2543/* end confdefs.h. */
2544
2545int
2546main ()
2547{
2548#ifndef __GNUC__
2549 choke me
2550#endif
2551
2552 ;
2553 return 0;
2554}
2555_ACEOF
2556rm -f conftest.$ac_objext
2557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2559 ac_status=$?
2560 grep -v '^ *+' conftest.er1 >conftest.err
2561 rm -f conftest.er1
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
4c0c6b9f 2565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2577 ac_compiler_gnu=yes
2578else
2579 echo "$as_me: failed program was:" >&5
2580sed 's/^/| /' conftest.$ac_ext >&5
2581
2582ac_compiler_gnu=no
2583fi
2584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2585ac_cv_c_compiler_gnu=$ac_compiler_gnu
2586
2587fi
2588echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2589echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2590GCC=`test $ac_compiler_gnu = yes && echo yes`
2591ac_test_CFLAGS=${CFLAGS+set}
2592ac_save_CFLAGS=$CFLAGS
2593CFLAGS="-g"
2594echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2595echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2596if test "${ac_cv_prog_cc_g+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2598else
2599 cat >conftest.$ac_ext <<_ACEOF
2600/* confdefs.h. */
2601_ACEOF
2602cat confdefs.h >>conftest.$ac_ext
2603cat >>conftest.$ac_ext <<_ACEOF
2604/* end confdefs.h. */
2605
2606int
2607main ()
2608{
2609
2610 ;
2611 return 0;
2612}
2613_ACEOF
2614rm -f conftest.$ac_objext
2615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>conftest.er1
2617 ac_status=$?
2618 grep -v '^ *+' conftest.er1 >conftest.err
2619 rm -f conftest.er1
2620 cat conftest.err >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
4c0c6b9f 2623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; } &&
2629 { ac_try='test -s conftest.$ac_objext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2635 ac_cv_prog_cc_g=yes
2636else
2637 echo "$as_me: failed program was:" >&5
2638sed 's/^/| /' conftest.$ac_ext >&5
2639
2640ac_cv_prog_cc_g=no
2641fi
2642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2643fi
2644echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2645echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2646if test "$ac_test_CFLAGS" = set; then
2647 CFLAGS=$ac_save_CFLAGS
2648elif test $ac_cv_prog_cc_g = yes; then
2649 if test "$GCC" = yes; then
2650 CFLAGS="-g -O2"
2651 else
2652 CFLAGS="-g"
2653 fi
2654else
2655 if test "$GCC" = yes; then
2656 CFLAGS="-O2"
2657 else
2658 CFLAGS=
2659 fi
2660fi
2661echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2662echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2663if test "${ac_cv_prog_cc_stdc+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665else
2666 ac_cv_prog_cc_stdc=no
2667ac_save_CC=$CC
2668cat >conftest.$ac_ext <<_ACEOF
2669/* confdefs.h. */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h. */
2674#include <stdarg.h>
2675#include <stdio.h>
2676#include <sys/types.h>
2677#include <sys/stat.h>
2678/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2679struct buf { int x; };
2680FILE * (*rcsopen) (struct buf *, struct stat *, int);
2681static char *e (p, i)
2682 char **p;
2683 int i;
2684{
2685 return p[i];
2686}
2687static char *f (char * (*g) (char **, int), char **p, ...)
2688{
2689 char *s;
2690 va_list v;
2691 va_start (v,p);
2692 s = g (p, va_arg (v,int));
2693 va_end (v);
2694 return s;
2695}
2696
2697/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2698 function prototypes and stuff, but not '\xHH' hex character constants.
2699 These don't provoke an error unfortunately, instead are silently treated
2700 as 'x'. The following induces an error, until -std1 is added to get
2701 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2702 array size at least. It's necessary to write '\x00'==0 to get something
2703 that's true only with -std1. */
2704int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2705
2706int test (int i, double x);
2707struct s1 {int (*f) (int a);};
2708struct s2 {int (*f) (double a);};
2709int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2710int argc;
2711char **argv;
2712int
2713main ()
2714{
2715return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2716 ;
2717 return 0;
2718}
2719_ACEOF
2720# Don't try gcc -ansi; that turns off useful extensions and
2721# breaks some systems' header files.
2722# AIX -qlanglvl=ansi
2723# Ultrix and OSF/1 -std1
2724# HP-UX 10.20 and later -Ae
2725# HP-UX older versions -Aa -D_HPUX_SOURCE
2726# SVR4 -Xc -D__EXTENSIONS__
2727for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728do
2729 CC="$ac_save_CC $ac_arg"
2730 rm -f conftest.$ac_objext
2731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732 (eval $ac_compile) 2>conftest.er1
2733 ac_status=$?
2734 grep -v '^ *+' conftest.er1 >conftest.err
2735 rm -f conftest.er1
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } &&
4c0c6b9f 2739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 (eval $ac_try) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 (eval $ac_try) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2751 ac_cv_prog_cc_stdc=$ac_arg
2752break
2753else
2754 echo "$as_me: failed program was:" >&5
2755sed 's/^/| /' conftest.$ac_ext >&5
2756
2757fi
2758rm -f conftest.err conftest.$ac_objext
2759done
2760rm -f conftest.$ac_ext conftest.$ac_objext
2761CC=$ac_save_CC
2762
2763fi
2764
2765case "x$ac_cv_prog_cc_stdc" in
2766 x|xno)
2767 echo "$as_me:$LINENO: result: none needed" >&5
2768echo "${ECHO_T}none needed" >&6 ;;
2769 *)
2770 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2771echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2772 CC="$CC $ac_cv_prog_cc_stdc" ;;
2773esac
2774
2775# Some people use a C++ compiler to compile C. Since we use `exit',
2776# in C++ we need to declare it. In case someone uses the same compiler
2777# for both compiling C and C++ we need to have the C++ compiler decide
2778# the declaration of exit, since it's the most demanding environment.
2779cat >conftest.$ac_ext <<_ACEOF
2780#ifndef __cplusplus
2781 choke me
2782#endif
2783_ACEOF
2784rm -f conftest.$ac_objext
2785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786 (eval $ac_compile) 2>conftest.er1
2787 ac_status=$?
2788 grep -v '^ *+' conftest.er1 >conftest.err
2789 rm -f conftest.er1
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
4c0c6b9f 2793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; } &&
2799 { ac_try='test -s conftest.$ac_objext'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 (eval $ac_try) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2805 for ac_declaration in \
2806 '' \
2807 'extern "C" void std::exit (int) throw (); using std::exit;' \
2808 'extern "C" void std::exit (int); using std::exit;' \
2809 'extern "C" void exit (int) throw ();' \
2810 'extern "C" void exit (int);' \
2811 'void exit (int);'
2812do
2813 cat >conftest.$ac_ext <<_ACEOF
2814/* confdefs.h. */
2815_ACEOF
2816cat confdefs.h >>conftest.$ac_ext
2817cat >>conftest.$ac_ext <<_ACEOF
2818/* end confdefs.h. */
2819$ac_declaration
2820#include <stdlib.h>
2821int
2822main ()
2823{
2824exit (42);
2825 ;
2826 return 0;
2827}
2828_ACEOF
2829rm -f conftest.$ac_objext
2830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2831 (eval $ac_compile) 2>conftest.er1
2832 ac_status=$?
2833 grep -v '^ *+' conftest.er1 >conftest.err
2834 rm -f conftest.er1
2835 cat conftest.err >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } &&
4c0c6b9f 2838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 (eval $ac_try) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; } &&
2844 { ac_try='test -s conftest.$ac_objext'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 (eval $ac_try) 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2850 :
2851else
2852 echo "$as_me: failed program was:" >&5
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
2855continue
2856fi
2857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2858 cat >conftest.$ac_ext <<_ACEOF
2859/* confdefs.h. */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h. */
2864$ac_declaration
2865int
2866main ()
2867{
2868exit (42);
2869 ;
2870 return 0;
2871}
2872_ACEOF
2873rm -f conftest.$ac_objext
2874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875 (eval $ac_compile) 2>conftest.er1
2876 ac_status=$?
2877 grep -v '^ *+' conftest.er1 >conftest.err
2878 rm -f conftest.er1
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
4c0c6b9f 2882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 (eval $ac_try) 2>&5
2885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; } &&
2888 { ac_try='test -s conftest.$ac_objext'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 (eval $ac_try) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 break
2895else
2896 echo "$as_me: failed program was:" >&5
2897sed 's/^/| /' conftest.$ac_ext >&5
2898
2899fi
2900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2901done
2902rm -f conftest*
2903if test -n "$ac_declaration"; then
2904 echo '#ifdef __cplusplus' >>confdefs.h
2905 echo $ac_declaration >>confdefs.h
2906 echo '#endif' >>confdefs.h
2907fi
2908
2909else
2910 echo "$as_me: failed program was:" >&5
2911sed 's/^/| /' conftest.$ac_ext >&5
2912
2913fi
2914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2915ac_ext=c
2916ac_cpp='$CPP $CPPFLAGS'
2917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 2920
6de9cd9a 2921
6de9cd9a 2922
6de9cd9a
DN
2923
2924
96b8a615
AJ
2925# Add -Wall if we are using GCC.
2926if test "x$GCC" = "xyes"; then
2927 CFLAGS="$CFLAGS -Wall"
6de9cd9a
DN
2928fi
2929
96b8a615
AJ
2930# Find other programs we need.
2931if test -n "$ac_tool_prefix"; then
2932 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2933set dummy ${ac_tool_prefix}as; ac_word=$2
2934echo "$as_me:$LINENO: checking for $ac_word" >&5
2935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2936if test "${ac_cv_prog_AS+set}" = set; then
6de9cd9a
DN
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2938else
96b8a615
AJ
2939 if test -n "$AS"; then
2940 ac_cv_prog_AS="$AS" # Let the user override the test.
2941else
2942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943for as_dir in $PATH
2944do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_AS="${ac_tool_prefix}as"
2950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
6de9cd9a 2952 fi
96b8a615
AJ
2953done
2954done
6de9cd9a 2955
96b8a615
AJ
2956fi
2957fi
2958AS=$ac_cv_prog_AS
2959if test -n "$AS"; then
2960 echo "$as_me:$LINENO: result: $AS" >&5
2961echo "${ECHO_T}$AS" >&6
6de9cd9a 2962else
96b8a615
AJ
2963 echo "$as_me:$LINENO: result: no" >&5
2964echo "${ECHO_T}no" >&6
6de9cd9a
DN
2965fi
2966
2967fi
96b8a615
AJ
2968if test -z "$ac_cv_prog_AS"; then
2969 ac_ct_AS=$AS
2970 # Extract the first word of "as", so it can be a program name with args.
2971set dummy as; ac_word=$2
2972echo "$as_me:$LINENO: checking for $ac_word" >&5
2973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2974if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976else
2977 if test -n "$ac_ct_AS"; then
2978 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2979else
2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH
2982do
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_ac_ct_AS="as"
2988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2990 fi
2991done
2992done
6de9cd9a 2993
96b8a615
AJ
2994fi
2995fi
2996ac_ct_AS=$ac_cv_prog_ac_ct_AS
2997if test -n "$ac_ct_AS"; then
2998 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2999echo "${ECHO_T}$ac_ct_AS" >&6
6de9cd9a 3000else
96b8a615
AJ
3001 echo "$as_me:$LINENO: result: no" >&5
3002echo "${ECHO_T}no" >&6
6de9cd9a
DN
3003fi
3004
96b8a615
AJ
3005 AS=$ac_ct_AS
3006else
3007 AS="$ac_cv_prog_AS"
6de9cd9a
DN
3008fi
3009
6de9cd9a 3010if test -n "$ac_tool_prefix"; then
96b8a615
AJ
3011 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3012set dummy ${ac_tool_prefix}ar; ac_word=$2
6de9cd9a
DN
3013echo "$as_me:$LINENO: checking for $ac_word" >&5
3014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
96b8a615 3015if test "${ac_cv_prog_AR+set}" = set; then
6de9cd9a
DN
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017else
96b8a615
AJ
3018 if test -n "$AR"; then
3019 ac_cv_prog_AR="$AR" # Let the user override the test.
6de9cd9a
DN
3020else
3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022for as_dir in $PATH
3023do
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 3028 ac_cv_prog_AR="${ac_tool_prefix}ar"
6de9cd9a
DN
3029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3031 fi
3032done
3033done
3034
3035fi
3036fi
96b8a615
AJ
3037AR=$ac_cv_prog_AR
3038if test -n "$AR"; then
3039 echo "$as_me:$LINENO: result: $AR" >&5
3040echo "${ECHO_T}$AR" >&6
6de9cd9a
DN
3041else
3042 echo "$as_me:$LINENO: result: no" >&5
3043echo "${ECHO_T}no" >&6
3044fi
3045
6de9cd9a 3046fi
96b8a615
AJ
3047if test -z "$ac_cv_prog_AR"; then
3048 ac_ct_AR=$AR
3049 # Extract the first word of "ar", so it can be a program name with args.
3050set dummy ar; ac_word=$2
6de9cd9a
DN
3051echo "$as_me:$LINENO: checking for $ac_word" >&5
3052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
96b8a615 3053if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6de9cd9a
DN
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055else
96b8a615
AJ
3056 if test -n "$ac_ct_AR"; then
3057 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6de9cd9a
DN
3058else
3059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060for as_dir in $PATH
3061do
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 3066 ac_cv_prog_ac_ct_AR="ar"
6de9cd9a
DN
3067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 break 2
3069 fi
3070done
3071done
3072
3073fi
3074fi
96b8a615
AJ
3075ac_ct_AR=$ac_cv_prog_ac_ct_AR
3076if test -n "$ac_ct_AR"; then
3077 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3078echo "${ECHO_T}$ac_ct_AR" >&6
6de9cd9a
DN
3079else
3080 echo "$as_me:$LINENO: result: no" >&5
3081echo "${ECHO_T}no" >&6
3082fi
3083
96b8a615
AJ
3084 AR=$ac_ct_AR
3085else
3086 AR="$ac_cv_prog_AR"
6de9cd9a
DN
3087fi
3088
96b8a615
AJ
3089if test -n "$ac_tool_prefix"; then
3090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3091set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3092echo "$as_me:$LINENO: checking for $ac_word" >&5
3093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3094if test "${ac_cv_prog_RANLIB+set}" = set; then
6de9cd9a
DN
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3096else
96b8a615
AJ
3097 if test -n "$RANLIB"; then
3098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6de9cd9a 3099else
96b8a615
AJ
3100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101for as_dir in $PATH
3102do
3103 IFS=$as_save_IFS
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 break 2
3110 fi
3111done
3112done
6de9cd9a 3113
6de9cd9a 3114fi
96b8a615
AJ
3115fi
3116RANLIB=$ac_cv_prog_RANLIB
3117if test -n "$RANLIB"; then
3118 echo "$as_me:$LINENO: result: $RANLIB" >&5
3119echo "${ECHO_T}$RANLIB" >&6
3120else
3121 echo "$as_me:$LINENO: result: no" >&5
3122echo "${ECHO_T}no" >&6
3123fi
6de9cd9a
DN
3124
3125fi
96b8a615
AJ
3126if test -z "$ac_cv_prog_RANLIB"; then
3127 ac_ct_RANLIB=$RANLIB
3128 # Extract the first word of "ranlib", so it can be a program name with args.
3129set dummy ranlib; ac_word=$2
3130echo "$as_me:$LINENO: checking for $ac_word" >&5
3131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3132if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6de9cd9a
DN
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134else
96b8a615
AJ
3135 if test -n "$ac_ct_RANLIB"; then
3136 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6de9cd9a 3137else
96b8a615
AJ
3138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139for as_dir in $PATH
3140do
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_ac_ct_RANLIB="ranlib"
3146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3148 fi
3149done
3150done
6de9cd9a 3151
96b8a615 3152 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
6de9cd9a 3153fi
6de9cd9a 3154fi
96b8a615
AJ
3155ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3156if test -n "$ac_ct_RANLIB"; then
3157 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3158echo "${ECHO_T}$ac_ct_RANLIB" >&6
6de9cd9a 3159else
96b8a615
AJ
3160 echo "$as_me:$LINENO: result: no" >&5
3161echo "${ECHO_T}no" >&6
6de9cd9a
DN
3162fi
3163
96b8a615
AJ
3164 RANLIB=$ac_ct_RANLIB
3165else
3166 RANLIB="$ac_cv_prog_RANLIB"
6de9cd9a 3167fi
96b8a615
AJ
3168
3169echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3170echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3171set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3172if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6de9cd9a
DN
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3174else
96b8a615
AJ
3175 cat >conftest.make <<\_ACEOF
3176all:
3177 @echo 'ac_maketemp="$(MAKE)"'
6de9cd9a 3178_ACEOF
96b8a615
AJ
3179# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3180eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3181if test -n "$ac_maketemp"; then
3182 eval ac_cv_prog_make_${ac_make}_set=yes
6de9cd9a 3183else
96b8a615 3184 eval ac_cv_prog_make_${ac_make}_set=no
6de9cd9a 3185fi
96b8a615
AJ
3186rm -f conftest.make
3187fi
3188if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3189 echo "$as_me:$LINENO: result: yes" >&5
3190echo "${ECHO_T}yes" >&6
3191 SET_MAKE=
6de9cd9a 3192else
96b8a615
AJ
3193 echo "$as_me:$LINENO: result: no" >&5
3194echo "${ECHO_T}no" >&6
3195 SET_MAKE="MAKE=${MAKE-make}"
6de9cd9a 3196fi
6de9cd9a 3197
96b8a615
AJ
3198# Find a good install program. We prefer a C program (faster),
3199# so one script is as good as another. But avoid the broken or
3200# incompatible versions:
3201# SysV /etc/install, /usr/sbin/install
3202# SunOS /usr/etc/install
3203# IRIX /sbin/install
3204# AIX /bin/install
3205# AmigaOS /C/install, which installs bootblocks on floppy discs
3206# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3207# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3208# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3209# OS/2's system install, which has a completely different semantic
3210# ./install, which can be erroneously created by make from ./install.sh.
3211echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3212echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3213if test -z "$INSTALL"; then
3214if test "${ac_cv_path_install+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 3216else
96b8a615
AJ
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH
3219do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 # Account for people who put trailing slashes in PATH elements.
3223case $as_dir/ in
3224 ./ | .// | /cC/* | \
3225 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3226 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3227 /usr/ucb/* ) ;;
3228 *)
3229 # OSF1 and SCO ODT 3.0 have their own names for install.
3230 # Don't use installbsd from OSF since it installs stuff as root
3231 # by default.
3232 for ac_prog in ginstall scoinst install; do
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3235 if test $ac_prog = install &&
3236 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3237 # AIX install. It has an incompatible calling convention.
3238 :
3239 elif test $ac_prog = install &&
3240 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3241 # program-specific install script used by HP pwplus--don't use.
3242 :
3243 else
3244 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3245 break 3
3246 fi
3247 fi
3248 done
3249 done
3250 ;;
3251esac
6de9cd9a 3252done
6de9cd9a 3253
6de9cd9a
DN
3254
3255fi
96b8a615
AJ
3256 if test "${ac_cv_path_install+set}" = set; then
3257 INSTALL=$ac_cv_path_install
6de9cd9a 3258 else
96b8a615
AJ
3259 # As a last resort, use the slow shell script. We don't cache a
3260 # path for INSTALL within a source directory, because that will
3261 # break other packages using the cache if that directory is
3262 # removed, or if the path is relative.
3263 INSTALL=$ac_install_sh
6de9cd9a 3264 fi
6de9cd9a 3265fi
96b8a615
AJ
3266echo "$as_me:$LINENO: result: $INSTALL" >&5
3267echo "${ECHO_T}$INSTALL" >&6
6de9cd9a 3268
96b8a615
AJ
3269# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3270# It thinks the first close brace ends the variable substitution.
3271test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6de9cd9a 3272
96b8a615 3273test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6de9cd9a 3274
96b8a615 3275test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6de9cd9a 3276
6de9cd9a 3277
96b8a615
AJ
3278# Configure libtool
3279#AC_MSG_NOTICE([====== Starting libtool configuration])
6de9cd9a 3280
96b8a615
AJ
3281# Check whether --enable-shared or --disable-shared was given.
3282if test "${enable_shared+set}" = set; then
3283 enableval="$enable_shared"
3284 p=${PACKAGE-default}
3285case $enableval in
3286yes) enable_shared=yes ;;
3287no) enable_shared=no ;;
3288*)
3289 enable_shared=no
3290 # Look at the argument we got. We use all the common list separators.
3291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3292 for pkg in $enableval; do
3293 if test "X$pkg" = "X$p"; then
3294 enable_shared=yes
6de9cd9a 3295 fi
96b8a615
AJ
3296 done
3297 IFS="$ac_save_ifs"
3298 ;;
3299esac
6de9cd9a 3300else
96b8a615
AJ
3301 enable_shared=yes
3302fi;
3303# Check whether --enable-static or --disable-static was given.
3304if test "${enable_static+set}" = set; then
3305 enableval="$enable_static"
3306 p=${PACKAGE-default}
3307case $enableval in
3308yes) enable_static=yes ;;
3309no) enable_static=no ;;
3310*)
3311 enable_static=no
3312 # Look at the argument we got. We use all the common list separators.
3313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3314 for pkg in $enableval; do
3315 if test "X$pkg" = "X$p"; then
3316 enable_static=yes
3317 fi
3318 done
3319 IFS="$ac_save_ifs"
3320 ;;
3321esac
3322else
3323 enable_static=yes
3324fi;
3325# Check whether --enable-fast-install or --disable-fast-install was given.
3326if test "${enable_fast_install+set}" = set; then
3327 enableval="$enable_fast_install"
3328 p=${PACKAGE-default}
3329case $enableval in
3330yes) enable_fast_install=yes ;;
3331no) enable_fast_install=no ;;
3332*)
3333 enable_fast_install=no
3334 # Look at the argument we got. We use all the common list separators.
3335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3336 for pkg in $enableval; do
3337 if test "X$pkg" = "X$p"; then
3338 enable_fast_install=yes
3339 fi
3340 done
3341 IFS="$ac_save_ifs"
3342 ;;
3343esac
3344else
3345 enable_fast_install=yes
3346fi;
6de9cd9a 3347
96b8a615
AJ
3348# Check whether --with-gnu-ld or --without-gnu-ld was given.
3349if test "${with_gnu_ld+set}" = set; then
3350 withval="$with_gnu_ld"
3351 test "$withval" = no || with_gnu_ld=yes
3352else
3353 with_gnu_ld=no
3354fi;
3355ac_prog=ld
3356if test "$GCC" = yes; then
3357 # Check if gcc -print-prog-name=ld gives a path.
3358 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3359echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3360 case $host in
3361 *-*-mingw*)
3362 # gcc leaves a trailing carriage return which upsets mingw
3363 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3364 *)
3365 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3366 esac
3367 case $ac_prog in
3368 # Accept absolute paths.
3369 [\\/]* | [A-Za-z]:[\\/]*)
3370 re_direlt='/[^/][^/]*/\.\./'
3371 # Canonicalize the path of ld
3372 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3373 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3374 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3375 done
3376 test -z "$LD" && LD="$ac_prog"
3377 ;;
3378 "")
3379 # If it fails, then pretend we aren't using GCC.
3380 ac_prog=ld
3381 ;;
3382 *)
3383 # If it is relative, then search for the first ld in PATH.
3384 with_gnu_ld=unknown
3385 ;;
3386 esac
3387elif test "$with_gnu_ld" = yes; then
3388 echo "$as_me:$LINENO: checking for GNU ld" >&5
3389echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3390else
3391 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3392echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3393fi
3394if test "${lt_cv_path_LD+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396else
3397 if test -z "$LD"; then
3398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3399 for ac_dir in $PATH; do
3400 test -z "$ac_dir" && ac_dir=.
3401 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3402 lt_cv_path_LD="$ac_dir/$ac_prog"
3403 # Check to see if the program is GNU ld. I'd rather use --version,
3404 # but apparently some GNU ld's only accept -v.
3405 # Break only if it was the GNU/non-GNU ld that we prefer.
3406 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3407 test "$with_gnu_ld" != no && break
3408 else
3409 test "$with_gnu_ld" != yes && break
3410 fi
3411 fi
3412 done
3413 IFS="$ac_save_ifs"
3414else
3415 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3416fi
3417fi
3418
3419LD="$lt_cv_path_LD"
3420if test -n "$LD"; then
3421 echo "$as_me:$LINENO: result: $LD" >&5
3422echo "${ECHO_T}$LD" >&6
3423else
3424 echo "$as_me:$LINENO: result: no" >&5
3425echo "${ECHO_T}no" >&6
3426fi
3427test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3428echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3429 { (exit 1); exit 1; }; }
3430echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3431echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3432if test "${lt_cv_prog_gnu_ld+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434else
3435 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3436if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3437 lt_cv_prog_gnu_ld=yes
3438else
3439 lt_cv_prog_gnu_ld=no
3440fi
3441fi
3442echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3443echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3444with_gnu_ld=$lt_cv_prog_gnu_ld
3445
3446
3447echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3448echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3449if test "${lt_cv_ld_reload_flag+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
3452 lt_cv_ld_reload_flag='-r'
3453fi
3454echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3455echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3456reload_flag=$lt_cv_ld_reload_flag
3457test -n "$reload_flag" && reload_flag=" $reload_flag"
3458
3459echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3460echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3461if test "${lt_cv_path_NM+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463else
3464 if test -n "$NM"; then
3465 # Let the user override the test.
3466 lt_cv_path_NM="$NM"
3467else
3468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3469 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3470 test -z "$ac_dir" && ac_dir=.
3471 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3472 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3473 # Check to see if the nm accepts a BSD-compat flag.
3474 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3475 # nm: unknown option "B" ignored
3476 # Tru64's nm complains that /dev/null is an invalid object file
3477 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3478 lt_cv_path_NM="$tmp_nm -B"
3479 break
3480 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3481 lt_cv_path_NM="$tmp_nm -p"
3482 break
3483 else
3484 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3485 continue # so that we can try to find one that supports BSD flags
3486 fi
3487 fi
3488 done
3489 IFS="$ac_save_ifs"
3490 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3491fi
3492fi
3493
3494NM="$lt_cv_path_NM"
3495echo "$as_me:$LINENO: result: $NM" >&5
3496echo "${ECHO_T}$NM" >&6
3497
3498echo "$as_me:$LINENO: checking whether ln -s works" >&5
3499echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3500LN_S=$as_ln_s
3501if test "$LN_S" = "ln -s"; then
3502 echo "$as_me:$LINENO: result: yes" >&5
3503echo "${ECHO_T}yes" >&6
3504else
3505 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3506echo "${ECHO_T}no, using $LN_S" >&6
3507fi
3508
3509echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3510echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3511if test "${lt_cv_deplibs_check_method+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3513else
3514 lt_cv_file_magic_cmd='$MAGIC_CMD'
3515lt_cv_file_magic_test_file=
3516lt_cv_deplibs_check_method='unknown'
3517# Need to set the preceding variable on all platforms that support
3518# interlibrary dependencies.
3519# 'none' -- dependencies not supported.
3520# `unknown' -- same as none, but documents that we really don't know.
3521# 'pass_all' -- all dependencies passed with no checks.
3522# 'test_compile' -- check by making test program.
3523# 'file_magic [regex]' -- check by looking for files in library path
3524# which responds to the $file_magic_cmd with a given egrep regex.
3525# If you have `file' or equivalent on your system and you're not sure
3526# whether `pass_all' will *always* work, you probably want this one.
3527
3528case $host_os in
3529aix*)
3530 lt_cv_deplibs_check_method=pass_all
3531 ;;
3532
3533beos*)
3534 lt_cv_deplibs_check_method=pass_all
3535 ;;
3536
3537bsdi4*)
3538 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3539 lt_cv_file_magic_cmd='/usr/bin/file -L'
3540 lt_cv_file_magic_test_file=/shlib/libc.so
3541 ;;
3542
3543cygwin* | mingw* |pw32*)
3544 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3545 lt_cv_file_magic_cmd='$OBJDUMP -f'
3546 ;;
3547
3548darwin* | rhapsody*)
3549 # this will be overwritten by pass_all, but leave it in just in case
3550 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3551 lt_cv_file_magic_cmd='/usr/bin/file -L'
3552 case "$host_os" in
3553 rhapsody* | darwin1.012)
3554 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3555 ;;
3556 *) # Darwin 1.3 on
3557 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3558 ;;
3559 esac
3560 lt_cv_deplibs_check_method=pass_all
3561 ;;
3562
3563freebsd* | kfreebsd*-gnu)
3564 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3565 case $host_cpu in
3566 i*86 )
3567 # Not sure whether the presence of OpenBSD here was a mistake.
3568 # Let's accept both of them until this is cleared up.
3569 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3570 lt_cv_file_magic_cmd=/usr/bin/file
3571 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3572 ;;
3573 esac
3574 else
3575 lt_cv_deplibs_check_method=pass_all
3576 fi
3577 ;;
3578
3579gnu*)
3580 lt_cv_deplibs_check_method=pass_all
3581 ;;
3582
3583hpux10.20*|hpux11*)
3584 case $host_cpu in
3585 hppa*)
3586 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3587 lt_cv_file_magic_cmd=/usr/bin/file
3588 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3589 ;;
3590 ia64*)
3591 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3592 lt_cv_file_magic_cmd=/usr/bin/file
3593 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3594 ;;
3595 esac
3596 ;;
3597
3598irix5* | irix6*)
3599 case $host_os in
3600 irix5*)
3601 # this will be overridden with pass_all, but let us keep it just in case
3602 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3603 ;;
3604 *)
3605 case $LD in
3606 *-32|*"-32 ") libmagic=32-bit;;
3607 *-n32|*"-n32 ") libmagic=N32;;
3608 *-64|*"-64 ") libmagic=64-bit;;
3609 *) libmagic=never-match;;
3610 esac
3611 # this will be overridden with pass_all, but let us keep it just in case
3612 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3613 ;;
3614 esac
3615 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3616 lt_cv_deplibs_check_method=pass_all
3617 ;;
3618
3619# This must be Linux ELF.
3620linux-gnu*)
3621 case $host_cpu in
3622 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
3623 lt_cv_deplibs_check_method=pass_all ;;
3624 *)
3625 # glibc up to 2.1.1 does not perform some relocations on ARM
3626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3627 esac
3628 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3629 ;;
3630
3631netbsd* | knetbsd*-gnu)
3632 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3633 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3634 else
3635 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3636 fi
3637 ;;
3638
3639newsos6)
3640 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3641 lt_cv_file_magic_cmd=/usr/bin/file
3642 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3643 ;;
3644
3645osf3* | osf4* | osf5*)
3646 # this will be overridden with pass_all, but let us keep it just in case
3647 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3648 lt_cv_file_magic_test_file=/shlib/libc.so
3649 lt_cv_deplibs_check_method=pass_all
3650 ;;
3651
3652sco3.2v5*)
3653 lt_cv_deplibs_check_method=pass_all
3654 ;;
3655
3656solaris*)
3657 lt_cv_deplibs_check_method=pass_all
3658 lt_cv_file_magic_test_file=/lib/libc.so
3659 ;;
3660
3661sysv5uw[78]* | sysv4*uw2*)
3662 lt_cv_deplibs_check_method=pass_all
3663 ;;
3664
3665sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3666 case $host_vendor in
3667 ncr)
3668 lt_cv_deplibs_check_method=pass_all
3669 ;;
3670 motorola)
3671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3672 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3673 ;;
3674 esac
3675 ;;
3676esac
3677
3678fi
3679echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3680echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3681file_magic_cmd=$lt_cv_file_magic_cmd
3682deplibs_check_method=$lt_cv_deplibs_check_method
3683
3684
3685
3686
3687
3688# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3689
3690# Only perform the check for file, if the check method requires it
3691case $deplibs_check_method in
3692file_magic*)
3693 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3694 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3695echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3696if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698else
3699 case $MAGIC_CMD in
3700 /*)
3701 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3702 ;;
3703 ?:/*)
3704 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3705 ;;
3706 *)
3707 ac_save_MAGIC_CMD="$MAGIC_CMD"
3708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3709 ac_dummy="/usr/bin:$PATH"
3710 for ac_dir in $ac_dummy; do
3711 test -z "$ac_dir" && ac_dir=.
3712 if test -f $ac_dir/${ac_tool_prefix}file; then
3713 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3714 if test -n "$file_magic_test_file"; then
3715 case $deplibs_check_method in
3716 "file_magic "*)
3717 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3718 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3719 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3720 egrep "$file_magic_regex" > /dev/null; then
3721 :
3722 else
3723 cat <<EOF 1>&2
3724
3725*** Warning: the command libtool uses to detect shared libraries,
3726*** $file_magic_cmd, produces output that libtool cannot recognize.
3727*** The result is that libtool may fail to recognize shared libraries
3728*** as such. This will affect the creation of libtool libraries that
3729*** depend on shared libraries, but programs linked with such libtool
3730*** libraries will work regardless of this problem. Nevertheless, you
3731*** may want to report the problem to your system manager and/or to
3732*** bug-libtool@gnu.org
3733
3734EOF
3735 fi ;;
3736 esac
3737 fi
3738 break
3739 fi
3740 done
3741 IFS="$ac_save_ifs"
3742 MAGIC_CMD="$ac_save_MAGIC_CMD"
3743 ;;
3744esac
3745fi
3746
3747MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3748if test -n "$MAGIC_CMD"; then
3749 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3750echo "${ECHO_T}$MAGIC_CMD" >&6
3751else
3752 echo "$as_me:$LINENO: result: no" >&5
3753echo "${ECHO_T}no" >&6
3754fi
3755
3756if test -z "$lt_cv_path_MAGIC_CMD"; then
3757 if test -n "$ac_tool_prefix"; then
3758 echo "$as_me:$LINENO: checking for file" >&5
3759echo $ECHO_N "checking for file... $ECHO_C" >&6
3760if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762else
3763 case $MAGIC_CMD in
3764 /*)
3765 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3766 ;;
3767 ?:/*)
3768 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3769 ;;
3770 *)
3771 ac_save_MAGIC_CMD="$MAGIC_CMD"
3772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3773 ac_dummy="/usr/bin:$PATH"
3774 for ac_dir in $ac_dummy; do
3775 test -z "$ac_dir" && ac_dir=.
3776 if test -f $ac_dir/file; then
3777 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3778 if test -n "$file_magic_test_file"; then
3779 case $deplibs_check_method in
3780 "file_magic "*)
3781 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3782 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3783 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3784 egrep "$file_magic_regex" > /dev/null; then
3785 :
3786 else
3787 cat <<EOF 1>&2
3788
3789*** Warning: the command libtool uses to detect shared libraries,
3790*** $file_magic_cmd, produces output that libtool cannot recognize.
3791*** The result is that libtool may fail to recognize shared libraries
3792*** as such. This will affect the creation of libtool libraries that
3793*** depend on shared libraries, but programs linked with such libtool
3794*** libraries will work regardless of this problem. Nevertheless, you
3795*** may want to report the problem to your system manager and/or to
3796*** bug-libtool@gnu.org
3797
3798EOF
3799 fi ;;
3800 esac
3801 fi
3802 break
3803 fi
3804 done
3805 IFS="$ac_save_ifs"
3806 MAGIC_CMD="$ac_save_MAGIC_CMD"
3807 ;;
3808esac
3809fi
6de9cd9a 3810
96b8a615
AJ
3811MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3812if test -n "$MAGIC_CMD"; then
3813 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3814echo "${ECHO_T}$MAGIC_CMD" >&6
6de9cd9a 3815else
96b8a615
AJ
3816 echo "$as_me:$LINENO: result: no" >&5
3817echo "${ECHO_T}no" >&6
3818fi
6de9cd9a 3819
96b8a615
AJ
3820 else
3821 MAGIC_CMD=:
3822 fi
6de9cd9a 3823fi
6de9cd9a 3824
96b8a615
AJ
3825 fi
3826 ;;
3827esac
6de9cd9a 3828
96b8a615
AJ
3829if test -n "$ac_tool_prefix"; then
3830 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3831set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3832echo "$as_me:$LINENO: checking for $ac_word" >&5
3833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3834if test "${ac_cv_prog_RANLIB+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 3836else
96b8a615
AJ
3837 if test -n "$RANLIB"; then
3838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3839else
3840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841for as_dir in $PATH
3842do
3843 IFS=$as_save_IFS
3844 test -z "$as_dir" && as_dir=.
3845 for ac_exec_ext in '' $ac_executable_extensions; do
3846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3847 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 break 2
3850 fi
3851done
3852done
6de9cd9a 3853
96b8a615
AJ
3854fi
3855fi
3856RANLIB=$ac_cv_prog_RANLIB
3857if test -n "$RANLIB"; then
3858 echo "$as_me:$LINENO: result: $RANLIB" >&5
3859echo "${ECHO_T}$RANLIB" >&6
3860else
3861 echo "$as_me:$LINENO: result: no" >&5
3862echo "${ECHO_T}no" >&6
6de9cd9a
DN
3863fi
3864
96b8a615
AJ
3865fi
3866if test -z "$ac_cv_prog_RANLIB"; then
3867 ac_ct_RANLIB=$RANLIB
3868 # Extract the first word of "ranlib", so it can be a program name with args.
3869set dummy ranlib; ac_word=$2
3870echo "$as_me:$LINENO: checking for $ac_word" >&5
3871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3872if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3874else
3875 if test -n "$ac_ct_RANLIB"; then
3876 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3877else
3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH
3880do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3885 ac_cv_prog_ac_ct_RANLIB="ranlib"
3886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3888 fi
3889done
3890done
6de9cd9a 3891
96b8a615
AJ
3892 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3893fi
3894fi
3895ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3896if test -n "$ac_ct_RANLIB"; then
3897 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3898echo "${ECHO_T}$ac_ct_RANLIB" >&6
6de9cd9a 3899else
96b8a615
AJ
3900 echo "$as_me:$LINENO: result: no" >&5
3901echo "${ECHO_T}no" >&6
6de9cd9a 3902fi
6de9cd9a 3903
96b8a615
AJ
3904 RANLIB=$ac_ct_RANLIB
3905else
3906 RANLIB="$ac_cv_prog_RANLIB"
6de9cd9a
DN
3907fi
3908
96b8a615
AJ
3909if test -n "$ac_tool_prefix"; then
3910 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3911set dummy ${ac_tool_prefix}strip; ac_word=$2
3912echo "$as_me:$LINENO: checking for $ac_word" >&5
3913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914if test "${ac_cv_prog_STRIP+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 3916else
96b8a615
AJ
3917 if test -n "$STRIP"; then
3918 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3919else
3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH
3922do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 break 2
3930 fi
3931done
3932done
6de9cd9a 3933
96b8a615
AJ
3934fi
3935fi
3936STRIP=$ac_cv_prog_STRIP
3937if test -n "$STRIP"; then
3938 echo "$as_me:$LINENO: result: $STRIP" >&5
3939echo "${ECHO_T}$STRIP" >&6
6de9cd9a 3940else
96b8a615
AJ
3941 echo "$as_me:$LINENO: result: no" >&5
3942echo "${ECHO_T}no" >&6
3943fi
6de9cd9a 3944
6de9cd9a 3945fi
96b8a615
AJ
3946if test -z "$ac_cv_prog_STRIP"; then
3947 ac_ct_STRIP=$STRIP
3948 # Extract the first word of "strip", so it can be a program name with args.
3949set dummy strip; ac_word=$2
3950echo "$as_me:$LINENO: checking for $ac_word" >&5
3951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3952if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3954else
3955 if test -n "$ac_ct_STRIP"; then
3956 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3957else
3958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959for as_dir in $PATH
3960do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3965 ac_cv_prog_ac_ct_STRIP="strip"
3966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3967 break 2
3968 fi
3969done
3970done
3971
3972 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6de9cd9a
DN
3973fi
3974fi
96b8a615
AJ
3975ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3976if test -n "$ac_ct_STRIP"; then
3977 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3978echo "${ECHO_T}$ac_ct_STRIP" >&6
3979else
3980 echo "$as_me:$LINENO: result: no" >&5
3981echo "${ECHO_T}no" >&6
6de9cd9a 3982fi
6de9cd9a 3983
96b8a615
AJ
3984 STRIP=$ac_ct_STRIP
3985else
3986 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
3987fi
3988
6de9cd9a 3989
96b8a615
AJ
3990# Check for any special flags to pass to ltconfig.
3991libtool_flags="--cache-file=$cache_file"
3992test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3993test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3994test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3995test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3996test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
6de9cd9a
DN
3997
3998
96b8a615
AJ
3999# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4000if test "${enable_libtool_lock+set}" = set; then
4001 enableval="$enable_libtool_lock"
6de9cd9a 4002
96b8a615
AJ
4003fi;
4004test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4005test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
6de9cd9a
DN
4006
4007
96b8a615
AJ
4008# Check whether --with-pic or --without-pic was given.
4009if test "${with_pic+set}" = set; then
4010 withval="$with_pic"
4011 pic_mode="$withval"
6de9cd9a 4012else
96b8a615
AJ
4013 pic_mode=default
4014fi;
4015test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4016test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
6de9cd9a 4017
96b8a615
AJ
4018# Some flags need to be propagated to the compiler or linker for good
4019# libtool support.
4020case $host in
4021*-*-irix6*)
4022 # Find out which ABI we are using.
4c0c6b9f 4023 echo '#line 4023 "configure"' > conftest.$ac_ext
96b8a615
AJ
4024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4025 (eval $ac_compile) 2>&5
6de9cd9a
DN
4026 ac_status=$?
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4028 (exit $ac_status); }; then
4029 if test "$lt_cv_prog_gnu_ld" = yes; then
4030 case `/usr/bin/file conftest.$ac_objext` in
4031 *32-bit*)
4032 LD="${LD-ld} -melf32bsmip"
4033 ;;
4034 *N32*)
4035 LD="${LD-ld} -melf32bmipn32"
4036 ;;
4037 *64-bit*)
4038 LD="${LD-ld} -melf64bmip"
4039 ;;
4040 esac
4041 else
4042 case `/usr/bin/file conftest.$ac_objext` in
4043 *32-bit*)
4044 LD="${LD-ld} -32"
4045 ;;
4046 *N32*)
4047 LD="${LD-ld} -n32"
4048 ;;
4049 *64-bit*)
4050 LD="${LD-ld} -64"
4051 ;;
4052 esac
4053 fi
4054 fi
4055 rm -rf conftest*
4056 ;;
6de9cd9a 4057
96b8a615
AJ
4058ia64-*-hpux*)
4059 # Find out which ABI we are using.
4060 echo 'int i;' > conftest.$ac_ext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062 (eval $ac_compile) 2>&5
6de9cd9a
DN
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4065 (exit $ac_status); }; then
4066 case "`/usr/bin/file conftest.o`" in
4067 *ELF-32*)
4068 HPUX_IA64_MODE="32"
4069 ;;
4070 *ELF-64*)
4071 HPUX_IA64_MODE="64"
4072 ;;
4073 esac
4074 fi
4075 rm -rf conftest*
4076 ;;
6de9cd9a 4077
96b8a615
AJ
4078x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4079 # Find out which ABI we are using.
4080 echo 'int i;' > conftest.$ac_ext
4081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4082 (eval $ac_compile) 2>&5
6de9cd9a 4083 ac_status=$?
6de9cd9a 4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4085 (exit $ac_status); }; then
4086 case "`/usr/bin/file conftest.o`" in
4087 *32-bit*)
4088 case $host in
4089 x86_64-*linux*)
4090 LD="${LD-ld} -m elf_i386"
4091 ;;
4092 ppc64-*linux*|powerpc64-*linux*)
4093 LD="${LD-ld} -m elf32ppclinux"
4094 ;;
4095 s390x-*linux*)
4096 LD="${LD-ld} -m elf_s390"
4097 ;;
4098 sparc64-*linux*)
4099 LD="${LD-ld} -m elf32_sparc"
4100 ;;
4101 esac
4102 ;;
4103 *64-bit*)
4104 case $host in
4105 x86_64-*linux*)
4106 LD="${LD-ld} -m elf_x86_64"
4107 ;;
4108 ppc*-*linux*|powerpc*-*linux*)
4109 LD="${LD-ld} -m elf64ppc"
4110 ;;
4111 s390*-*linux*)
4112 LD="${LD-ld} -m elf64_s390"
4113 ;;
4114 sparc*-*linux*)
4115 LD="${LD-ld} -m elf64_sparc"
4116 ;;
4117 esac
4118 ;;
4119 esac
6de9cd9a 4120 fi
96b8a615
AJ
4121 rm -rf conftest*
4122 ;;
6de9cd9a 4123
96b8a615
AJ
4124*-*-sco3.2v5*)
4125 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4126 SAVE_CFLAGS="$CFLAGS"
4127 CFLAGS="$CFLAGS -belf"
4128 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4129echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4130if test "${lt_cv_cc_needs_belf+set}" = set; then
6de9cd9a
DN
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4132else
6de9cd9a 4133
6de9cd9a 4134
96b8a615
AJ
4135 ac_ext=c
4136ac_cpp='$CPP $CPPFLAGS'
4137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 4140
96b8a615 4141 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
4142/* confdefs.h. */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h. */
6de9cd9a
DN
4147
4148int
4149main ()
4150{
96b8a615 4151
6de9cd9a
DN
4152 ;
4153 return 0;
4154}
4155_ACEOF
4156rm -f conftest.$ac_objext conftest$ac_exeext
4157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4158 (eval $ac_link) 2>conftest.er1
4159 ac_status=$?
4160 grep -v '^ *+' conftest.er1 >conftest.err
4161 rm -f conftest.er1
4162 cat conftest.err >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
4c0c6b9f 4165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try='test -s conftest$ac_exeext'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 (eval $ac_try) 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
96b8a615 4177 lt_cv_cc_needs_belf=yes
6de9cd9a
DN
4178else
4179 echo "$as_me: failed program was:" >&5
4180sed 's/^/| /' conftest.$ac_ext >&5
4181
96b8a615 4182lt_cv_cc_needs_belf=no
6de9cd9a
DN
4183fi
4184rm -f conftest.err conftest.$ac_objext \
4185 conftest$ac_exeext conftest.$ac_ext
96b8a615
AJ
4186 ac_ext=c
4187ac_cpp='$CPP $CPPFLAGS'
4188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190ac_compiler_gnu=$ac_cv_c_compiler_gnu
4191
6de9cd9a 4192fi
96b8a615
AJ
4193echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4194echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4195 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4196 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4197 CFLAGS="$SAVE_CFLAGS"
4198 fi
4199 ;;
4200
4201
4202esac
4203
4204
4205# Save cache, so that ltconfig can load it
4206cat >confcache <<\_ACEOF
4207# This file is a shell script that caches the results of configure
4208# tests run on this system so they can be shared between configure
4209# scripts and configure runs, see configure's option --config-cache.
4210# It is not useful on other systems. If it contains results you don't
4211# want to keep, you may remove or edit it.
4212#
4213# config.status only pays attention to the cache file if you give it
4214# the --recheck option to rerun configure.
4215#
4216# `ac_cv_env_foo' variables (set or unset) will be overridden when
4217# loading this file, other *unset* `ac_cv_foo' will be assigned the
4218# following values.
4219
6de9cd9a
DN
4220_ACEOF
4221
96b8a615
AJ
4222# The following way of writing the cache mishandles newlines in values,
4223# but we know of no workaround that is simple, portable, and efficient.
4224# So, don't put newlines in cache variables' values.
4225# Ultrix sh set writes to stderr and can't be redirected directly,
4226# and sets the high bit in the cache file unless we assign to the vars.
4227{
4228 (set) 2>&1 |
4229 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4230 *ac_space=\ *)
4231 # `set' does not quote correctly, so add quotes (double-quote
4232 # substitution turns \\\\ into \\, and sed turns \\ into \).
4233 sed -n \
4234 "s/'/'\\\\''/g;
4235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4236 ;;
4237 *)
4238 # `set' quotes correctly as required by POSIX, so do not add quotes.
4239 sed -n \
4240 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4241 ;;
4242 esac;
4243} |
4244 sed '
4245 t clear
4246 : clear
4247 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4248 t end
4249 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4250 : end' >>confcache
4251if diff $cache_file confcache >/dev/null 2>&1; then :; else
4252 if test -w $cache_file; then
4253 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4254 cat confcache >$cache_file
4255 else
4256 echo "not updating unwritable cache $cache_file"
4257 fi
6de9cd9a 4258fi
96b8a615 4259rm -f confcache
6de9cd9a 4260
96b8a615
AJ
4261# Actually configure libtool. ac_aux_dir is where install-sh is found.
4262AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4263MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4264LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4265AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4266objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4267deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4268${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4269$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4270|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4271echo "$as_me: error: libtool configure failed" >&2;}
4272 { (exit 1); exit 1; }; }
4273
4274# Reload cache, that may have been modified by ltconfig
4275if test -r "$cache_file"; then
4276 # Some versions of bash will fail to source /dev/null (special
4277 # files actually), so we avoid doing that.
4278 if test -f "$cache_file"; then
4279 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4280echo "$as_me: loading cache $cache_file" >&6;}
4281 case $cache_file in
4282 [\\/]* | ?:[\\/]* ) . $cache_file;;
4283 *) . ./$cache_file;;
4284 esac
4285 fi
4286else
4287 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4288echo "$as_me: creating cache $cache_file" >&6;}
4289 >$cache_file
4290fi
6de9cd9a 4291
6de9cd9a 4292
96b8a615
AJ
4293# This can be used to rebuild libtool when needed
4294LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6de9cd9a 4295
96b8a615
AJ
4296# Always use our own libtool.
4297LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6de9cd9a 4298
96b8a615
AJ
4299# Redirect the config.log output again, so that the ltconfig log is not
4300# clobbered by the next message.
4301exec 5>>./config.log
6de9cd9a 4302
6de9cd9a 4303
6de9cd9a 4304
6de9cd9a 4305
6de9cd9a 4306
6de9cd9a 4307
6de9cd9a 4308
6de9cd9a 4309
96b8a615
AJ
4310#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4311
4312# We need gfortran to compile parts of the library
4313# We can't use AC_PROG_F77 because it expects a fully working gfortran.
4314#AC_PROG_F77(gfortran)
4315F77="$GFORTRAN"
4316ac_ext=f
4317ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4318ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4320if test -n "$ac_tool_prefix"; then
4321 for ac_prog in gfortran
4322 do
4323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4324set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4325echo "$as_me:$LINENO: checking for $ac_word" >&5
4326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4327if test "${ac_cv_prog_F77+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 4329else
96b8a615
AJ
4330 if test -n "$F77"; then
4331 ac_cv_prog_F77="$F77" # Let the user override the test.
4332else
4333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334for as_dir in $PATH
4335do
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4340 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 break 2
4343 fi
4344done
4345done
6de9cd9a 4346
6de9cd9a 4347fi
6de9cd9a 4348fi
96b8a615
AJ
4349F77=$ac_cv_prog_F77
4350if test -n "$F77"; then
4351 echo "$as_me:$LINENO: result: $F77" >&5
4352echo "${ECHO_T}$F77" >&6
4353else
4354 echo "$as_me:$LINENO: result: no" >&5
4355echo "${ECHO_T}no" >&6
6de9cd9a 4356fi
6de9cd9a 4357
96b8a615
AJ
4358 test -n "$F77" && break
4359 done
4360fi
4361if test -z "$F77"; then
4362 ac_ct_F77=$F77
4363 for ac_prog in gfortran
4364do
4365 # Extract the first word of "$ac_prog", so it can be a program name with args.
4366set dummy $ac_prog; ac_word=$2
4367echo "$as_me:$LINENO: checking for $ac_word" >&5
4368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4369if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4371else
4372 if test -n "$ac_ct_F77"; then
4373 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4374else
4375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH
4377do
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4382 ac_cv_prog_ac_ct_F77="$ac_prog"
4383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 break 2
4385 fi
4386done
4387done
6de9cd9a
DN
4388
4389fi
96b8a615
AJ
4390fi
4391ac_ct_F77=$ac_cv_prog_ac_ct_F77
4392if test -n "$ac_ct_F77"; then
4393 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4394echo "${ECHO_T}$ac_ct_F77" >&6
4395else
4396 echo "$as_me:$LINENO: result: no" >&5
4397echo "${ECHO_T}no" >&6
4398fi
4399
4400 test -n "$ac_ct_F77" && break
4401done
4402
4403 F77=$ac_ct_F77
4404fi
4405
4406
4407# Provide some information about the compiler.
4c0c6b9f 4408echo "$as_me:4408:" \
96b8a615
AJ
4409 "checking for Fortran 77 compiler version" >&5
4410ac_compiler=`set X $ac_compile; echo $2`
4411{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4412 (eval $ac_compiler --version </dev/null >&5) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }
4416{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4417 (eval $ac_compiler -v </dev/null >&5) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }
4421{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4422 (eval $ac_compiler -V </dev/null >&5) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }
4426rm -f a.out
6de9cd9a 4427
96b8a615
AJ
4428# If we don't use `.F' as extension, the preprocessor is not run on the
4429# input file. (Note that this only needs to work for GNU compilers.)
4430ac_save_ext=$ac_ext
4431ac_ext=F
4432echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4433echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4434if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6de9cd9a
DN
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436else
4437 cat >conftest.$ac_ext <<_ACEOF
96b8a615
AJ
4438 program main
4439#ifndef __GNUC__
4440 choke me
4441#endif
4442
4443 end
6de9cd9a
DN
4444_ACEOF
4445rm -f conftest.$ac_objext
4446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4447 (eval $ac_compile) 2>conftest.er1
4448 ac_status=$?
4449 grep -v '^ *+' conftest.er1 >conftest.err
4450 rm -f conftest.er1
4451 cat conftest.err >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } &&
4c0c6b9f 4454 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 (eval $ac_try) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; } &&
4460 { ac_try='test -s conftest.$ac_objext'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 (eval $ac_try) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
96b8a615 4466 ac_compiler_gnu=yes
6de9cd9a
DN
4467else
4468 echo "$as_me: failed program was:" >&5
4469sed 's/^/| /' conftest.$ac_ext >&5
4470
96b8a615 4471ac_compiler_gnu=no
6de9cd9a
DN
4472fi
4473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96b8a615 4474ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6de9cd9a
DN
4475
4476fi
96b8a615
AJ
4477echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4478echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4479ac_ext=$ac_save_ext
4480ac_test_FFLAGS=${FFLAGS+set}
4481ac_save_FFLAGS=$FFLAGS
4482FFLAGS=
4483echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4484echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4485if test "${ac_cv_prog_f77_g+set}" = set; then
6de9cd9a
DN
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487else
96b8a615
AJ
4488 FFLAGS=-g
4489cat >conftest.$ac_ext <<_ACEOF
4490 program main
6de9cd9a 4491
96b8a615 4492 end
6de9cd9a
DN
4493_ACEOF
4494rm -f conftest.$ac_objext
4495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496 (eval $ac_compile) 2>conftest.er1
4497 ac_status=$?
4498 grep -v '^ *+' conftest.er1 >conftest.err
4499 rm -f conftest.er1
4500 cat conftest.err >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } &&
4c0c6b9f 4503 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505 (eval $ac_try) 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; } &&
4509 { ac_try='test -s conftest.$ac_objext'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 (eval $ac_try) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
96b8a615 4515 ac_cv_prog_f77_g=yes
6de9cd9a
DN
4516else
4517 echo "$as_me: failed program was:" >&5
4518sed 's/^/| /' conftest.$ac_ext >&5
4519
96b8a615 4520ac_cv_prog_f77_g=no
6de9cd9a
DN
4521fi
4522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4523
6de9cd9a 4524fi
96b8a615
AJ
4525echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4526echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4527if test "$ac_test_FFLAGS" = set; then
4528 FFLAGS=$ac_save_FFLAGS
4529elif test $ac_cv_prog_f77_g = yes; then
4530 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4531 FFLAGS="-g -O2"
4532 else
4533 FFLAGS="-g"
4534 fi
4535else
4536 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4537 FFLAGS="-O2"
4538 else
4539 FFLAGS=
4540 fi
6de9cd9a
DN
4541fi
4542
96b8a615
AJ
4543G77=`test $ac_compiler_gnu = yes && echo yes`
4544ac_ext=c
4545ac_cpp='$CPP $CPPFLAGS'
4546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 4549
96b8a615 4550FFLAGS="$FFLAGS -Wall -fno-repack-arrays -fno-underscoring"
6de9cd9a 4551
9cdc381b
BD
4552# Check whether --enable-largefile or --disable-largefile was given.
4553if test "${enable_largefile+set}" = set; then
4554 enableval="$enable_largefile"
4555
4556fi;
4557if test "$enable_largefile" != no; then
4558
4559 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4560echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4561if test "${ac_cv_sys_largefile_CC+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563else
4564 ac_cv_sys_largefile_CC=no
4565 if test "$GCC" != yes; then
4566 ac_save_CC=$CC
4567 while :; do
4568 # IRIX 6.2 and later do not support large files by default,
4569 # so use the C compiler's -n32 option if that helps.
4570 cat >conftest.$ac_ext <<_ACEOF
4571/* confdefs.h. */
4572_ACEOF
4573cat confdefs.h >>conftest.$ac_ext
4574cat >>conftest.$ac_ext <<_ACEOF
4575/* end confdefs.h. */
4576#include <sys/types.h>
4577 /* Check that off_t can represent 2**63 - 1 correctly.
4578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4579 since some C++ compilers masquerading as C compilers
4580 incorrectly reject 9223372036854775807. */
4581#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4583 && LARGE_OFF_T % 2147483647 == 1)
4584 ? 1 : -1];
4585int
4586main ()
4587{
4588
4589 ;
4590 return 0;
4591}
4592_ACEOF
4593 rm -f conftest.$ac_objext
4594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4c0c6b9f 4602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; } &&
4608 { ac_try='test -s conftest.$ac_objext'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 break
4615else
4616 echo "$as_me: failed program was:" >&5
4617sed 's/^/| /' conftest.$ac_ext >&5
4618
4619fi
4620rm -f conftest.err conftest.$ac_objext
4621 CC="$CC -n32"
4622 rm -f conftest.$ac_objext
4623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624 (eval $ac_compile) 2>conftest.er1
4625 ac_status=$?
4626 grep -v '^ *+' conftest.er1 >conftest.err
4627 rm -f conftest.er1
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4c0c6b9f 4631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; } &&
4637 { ac_try='test -s conftest.$ac_objext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 ac_cv_sys_largefile_CC=' -n32'; break
4644else
4645 echo "$as_me: failed program was:" >&5
4646sed 's/^/| /' conftest.$ac_ext >&5
4647
4648fi
4649rm -f conftest.err conftest.$ac_objext
4650 break
4651 done
4652 CC=$ac_save_CC
4653 rm -f conftest.$ac_ext
4654 fi
4655fi
4656echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4657echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4658 if test "$ac_cv_sys_largefile_CC" != no; then
4659 CC=$CC$ac_cv_sys_largefile_CC
4660 fi
4661
4662 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4663echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4664if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666else
4667 while :; do
4668 ac_cv_sys_file_offset_bits=no
4669 cat >conftest.$ac_ext <<_ACEOF
4670/* confdefs.h. */
4671_ACEOF
4672cat confdefs.h >>conftest.$ac_ext
4673cat >>conftest.$ac_ext <<_ACEOF
4674/* end confdefs.h. */
4675#include <sys/types.h>
4676 /* Check that off_t can represent 2**63 - 1 correctly.
4677 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4678 since some C++ compilers masquerading as C compilers
4679 incorrectly reject 9223372036854775807. */
4680#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4681 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4682 && LARGE_OFF_T % 2147483647 == 1)
4683 ? 1 : -1];
4684int
4685main ()
4686{
4687
4688 ;
4689 return 0;
4690}
4691_ACEOF
4692rm -f conftest.$ac_objext
4693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4694 (eval $ac_compile) 2>conftest.er1
4695 ac_status=$?
4696 grep -v '^ *+' conftest.er1 >conftest.err
4697 rm -f conftest.er1
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4c0c6b9f 4701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703 (eval $ac_try) 2>&5
4704 ac_status=$?
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; } &&
4707 { ac_try='test -s conftest.$ac_objext'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 (eval $ac_try) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 break
4714else
4715 echo "$as_me: failed program was:" >&5
4716sed 's/^/| /' conftest.$ac_ext >&5
4717
4718fi
4719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4720 cat >conftest.$ac_ext <<_ACEOF
4721/* confdefs.h. */
4722_ACEOF
4723cat confdefs.h >>conftest.$ac_ext
4724cat >>conftest.$ac_ext <<_ACEOF
4725/* end confdefs.h. */
4726#define _FILE_OFFSET_BITS 64
4727#include <sys/types.h>
4728 /* Check that off_t can represent 2**63 - 1 correctly.
4729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4730 since some C++ compilers masquerading as C compilers
4731 incorrectly reject 9223372036854775807. */
4732#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4734 && LARGE_OFF_T % 2147483647 == 1)
4735 ? 1 : -1];
4736int
4737main ()
4738{
4739
4740 ;
4741 return 0;
4742}
4743_ACEOF
4744rm -f conftest.$ac_objext
4745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746 (eval $ac_compile) 2>conftest.er1
4747 ac_status=$?
4748 grep -v '^ *+' conftest.er1 >conftest.err
4749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } &&
4c0c6b9f 4753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; } &&
4759 { ac_try='test -s conftest.$ac_objext'
4760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 (eval $ac_try) 2>&5
4762 ac_status=$?
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 ac_cv_sys_file_offset_bits=64; break
4766else
4767 echo "$as_me: failed program was:" >&5
4768sed 's/^/| /' conftest.$ac_ext >&5
4769
4770fi
4771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4772 break
4773done
4774fi
4775echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4776echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4777if test "$ac_cv_sys_file_offset_bits" != no; then
4778
4779cat >>confdefs.h <<_ACEOF
4780#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4781_ACEOF
4782
4783fi
4784rm -f conftest*
4785 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4786echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4787if test "${ac_cv_sys_large_files+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789else
4790 while :; do
4791 ac_cv_sys_large_files=no
4792 cat >conftest.$ac_ext <<_ACEOF
4793/* confdefs.h. */
4794_ACEOF
4795cat confdefs.h >>conftest.$ac_ext
4796cat >>conftest.$ac_ext <<_ACEOF
4797/* end confdefs.h. */
4798#include <sys/types.h>
4799 /* Check that off_t can represent 2**63 - 1 correctly.
4800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4801 since some C++ compilers masquerading as C compilers
4802 incorrectly reject 9223372036854775807. */
4803#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4805 && LARGE_OFF_T % 2147483647 == 1)
4806 ? 1 : -1];
4807int
4808main ()
4809{
4810
4811 ;
4812 return 0;
4813}
4814_ACEOF
4815rm -f conftest.$ac_objext
4816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>conftest.er1
4818 ac_status=$?
4819 grep -v '^ *+' conftest.er1 >conftest.err
4820 rm -f conftest.er1
4821 cat conftest.err >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } &&
4c0c6b9f 4824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 (eval $ac_try) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; } &&
4830 { ac_try='test -s conftest.$ac_objext'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 (eval $ac_try) 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; }; then
4836 break
4837else
4838 echo "$as_me: failed program was:" >&5
4839sed 's/^/| /' conftest.$ac_ext >&5
4840
4841fi
4842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4843 cat >conftest.$ac_ext <<_ACEOF
4844/* confdefs.h. */
4845_ACEOF
4846cat confdefs.h >>conftest.$ac_ext
4847cat >>conftest.$ac_ext <<_ACEOF
4848/* end confdefs.h. */
4849#define _LARGE_FILES 1
4850#include <sys/types.h>
4851 /* Check that off_t can represent 2**63 - 1 correctly.
4852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4853 since some C++ compilers masquerading as C compilers
4854 incorrectly reject 9223372036854775807. */
4855#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4857 && LARGE_OFF_T % 2147483647 == 1)
4858 ? 1 : -1];
4859int
4860main ()
4861{
4862
4863 ;
4864 return 0;
4865}
4866_ACEOF
4867rm -f conftest.$ac_objext
4868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869 (eval $ac_compile) 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4c0c6b9f 4876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; } &&
4882 { ac_try='test -s conftest.$ac_objext'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 (eval $ac_try) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; }; then
4888 ac_cv_sys_large_files=1; break
4889else
4890 echo "$as_me: failed program was:" >&5
4891sed 's/^/| /' conftest.$ac_ext >&5
4892
4893fi
4894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4895 break
4896done
4897fi
4898echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4899echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4900if test "$ac_cv_sys_large_files" != no; then
4901
4902cat >>confdefs.h <<_ACEOF
4903#define _LARGE_FILES $ac_cv_sys_large_files
4904_ACEOF
4905
4906fi
4907rm -f conftest*
4908fi
4909
96b8a615
AJ
4910ac_ext=c
4911ac_cpp='$CPP $CPPFLAGS'
4912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4916echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4917# On Suns, sometimes $CPP names a directory.
4918if test -n "$CPP" && test -d "$CPP"; then
4919 CPP=
6de9cd9a 4920fi
96b8a615
AJ
4921if test -z "$CPP"; then
4922 if test "${ac_cv_prog_CPP+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 4924else
96b8a615
AJ
4925 # Double quotes because CPP needs to be expanded
4926 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4927 do
4928 ac_preproc_ok=false
4929for ac_c_preproc_warn_flag in '' yes
4930do
4931 # Use a header file that comes with gcc, so configuring glibc
4932 # with a fresh cross-compiler works.
4933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4934 # <limits.h> exists even on freestanding compilers.
4935 # On the NeXT, cc -E runs the code through the compiler's parser,
4936 # not just through cpp. "Syntax error" is here to catch this case.
6de9cd9a
DN
4937 cat >conftest.$ac_ext <<_ACEOF
4938/* confdefs.h. */
4939_ACEOF
4940cat confdefs.h >>conftest.$ac_ext
4941cat >>conftest.$ac_ext <<_ACEOF
4942/* end confdefs.h. */
96b8a615
AJ
4943#ifdef __STDC__
4944# include <limits.h>
6de9cd9a 4945#else
96b8a615 4946# include <assert.h>
6de9cd9a 4947#endif
96b8a615 4948 Syntax error
6de9cd9a 4949_ACEOF
96b8a615
AJ
4950if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6de9cd9a 4952 ac_status=$?
96b8a615
AJ
4953 grep -v '^ *+' conftest.er1 >conftest.err
4954 rm -f conftest.er1
4955 cat conftest.err >&5
6de9cd9a 4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4957 (exit $ac_status); } >/dev/null; then
4958 if test -s conftest.err; then
4959 ac_cpp_err=$ac_c_preproc_warn_flag
4960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4961 else
4962 ac_cpp_err=
4963 fi
4964else
4965 ac_cpp_err=yes
4966fi
4967if test -z "$ac_cpp_err"; then
6de9cd9a
DN
4968 :
4969else
96b8a615 4970 echo "$as_me: failed program was:" >&5
6de9cd9a
DN
4971sed 's/^/| /' conftest.$ac_ext >&5
4972
96b8a615
AJ
4973 # Broken: fails on valid input.
4974continue
6de9cd9a 4975fi
96b8a615 4976rm -f conftest.err conftest.$ac_ext
6de9cd9a 4977
96b8a615
AJ
4978 # OK, works on sane cases. Now check whether non-existent headers
4979 # can be detected and how.
4980 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
4981/* confdefs.h. */
4982_ACEOF
4983cat confdefs.h >>conftest.$ac_ext
4984cat >>conftest.$ac_ext <<_ACEOF
4985/* end confdefs.h. */
96b8a615 4986#include <ac_nonexistent.h>
6de9cd9a 4987_ACEOF
96b8a615
AJ
4988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6de9cd9a
DN
4990 ac_status=$?
4991 grep -v '^ *+' conftest.er1 >conftest.err
4992 rm -f conftest.er1
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4995 (exit $ac_status); } >/dev/null; then
4996 if test -s conftest.err; then
4997 ac_cpp_err=$ac_c_preproc_warn_flag
4998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4999 else
5000 ac_cpp_err=
5001 fi
5002else
5003 ac_cpp_err=yes
5004fi
5005if test -z "$ac_cpp_err"; then
5006 # Broken: success on invalid input.
5007continue
6de9cd9a
DN
5008else
5009 echo "$as_me: failed program was:" >&5
5010sed 's/^/| /' conftest.$ac_ext >&5
5011
96b8a615
AJ
5012 # Passes both tests.
5013ac_preproc_ok=:
5014break
6de9cd9a 5015fi
96b8a615 5016rm -f conftest.err conftest.$ac_ext
6de9cd9a 5017
96b8a615
AJ
5018done
5019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5020rm -f conftest.err conftest.$ac_ext
5021if $ac_preproc_ok; then
5022 break
5023fi
5024
5025 done
5026 ac_cv_prog_CPP=$CPP
5027
5028fi
5029 CPP=$ac_cv_prog_CPP
5030else
5031 ac_cv_prog_CPP=$CPP
5032fi
5033echo "$as_me:$LINENO: result: $CPP" >&5
5034echo "${ECHO_T}$CPP" >&6
5035ac_preproc_ok=false
5036for ac_c_preproc_warn_flag in '' yes
5037do
5038 # Use a header file that comes with gcc, so configuring glibc
5039 # with a fresh cross-compiler works.
5040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5041 # <limits.h> exists even on freestanding compilers.
5042 # On the NeXT, cc -E runs the code through the compiler's parser,
5043 # not just through cpp. "Syntax error" is here to catch this case.
5044 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5045/* confdefs.h. */
5046_ACEOF
5047cat confdefs.h >>conftest.$ac_ext
5048cat >>conftest.$ac_ext <<_ACEOF
5049/* end confdefs.h. */
96b8a615
AJ
5050#ifdef __STDC__
5051# include <limits.h>
5052#else
5053# include <assert.h>
5054#endif
5055 Syntax error
6de9cd9a
DN
5056_ACEOF
5057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5059 ac_status=$?
5060 grep -v '^ *+' conftest.er1 >conftest.err
5061 rm -f conftest.er1
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } >/dev/null; then
5065 if test -s conftest.err; then
5066 ac_cpp_err=$ac_c_preproc_warn_flag
5067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5068 else
5069 ac_cpp_err=
5070 fi
5071else
5072 ac_cpp_err=yes
5073fi
5074if test -z "$ac_cpp_err"; then
96b8a615 5075 :
6de9cd9a
DN
5076else
5077 echo "$as_me: failed program was:" >&5
5078sed 's/^/| /' conftest.$ac_ext >&5
5079
96b8a615
AJ
5080 # Broken: fails on valid input.
5081continue
6de9cd9a
DN
5082fi
5083rm -f conftest.err conftest.$ac_ext
6de9cd9a 5084
96b8a615
AJ
5085 # OK, works on sane cases. Now check whether non-existent headers
5086 # can be detected and how.
5087 cat >conftest.$ac_ext <<_ACEOF
5088/* confdefs.h. */
5089_ACEOF
5090cat confdefs.h >>conftest.$ac_ext
5091cat >>conftest.$ac_ext <<_ACEOF
5092/* end confdefs.h. */
5093#include <ac_nonexistent.h>
6de9cd9a 5094_ACEOF
96b8a615
AJ
5095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } >/dev/null; then
5103 if test -s conftest.err; then
5104 ac_cpp_err=$ac_c_preproc_warn_flag
5105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5106 else
5107 ac_cpp_err=
5108 fi
5109else
5110 ac_cpp_err=yes
5111fi
5112if test -z "$ac_cpp_err"; then
5113 # Broken: success on invalid input.
5114continue
5115else
5116 echo "$as_me: failed program was:" >&5
5117sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 5118
96b8a615
AJ
5119 # Passes both tests.
5120ac_preproc_ok=:
5121break
6de9cd9a 5122fi
96b8a615 5123rm -f conftest.err conftest.$ac_ext
6de9cd9a
DN
5124
5125done
96b8a615
AJ
5126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127rm -f conftest.err conftest.$ac_ext
5128if $ac_preproc_ok; then
5129 :
5130else
5131 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5132See \`config.log' for more details." >&5
5133echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5134See \`config.log' for more details." >&2;}
5135 { (exit 1); exit 1; }; }
5136fi
6de9cd9a 5137
96b8a615
AJ
5138ac_ext=c
5139ac_cpp='$CPP $CPPFLAGS'
5140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a
DN
5143
5144
96b8a615
AJ
5145echo "$as_me:$LINENO: checking for egrep" >&5
5146echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5147if test "${ac_cv_prog_egrep+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5149else
5150 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5151 then ac_cv_prog_egrep='grep -E'
5152 else ac_cv_prog_egrep='egrep'
5153 fi
5154fi
5155echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5156echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5157 EGREP=$ac_cv_prog_egrep
6de9cd9a
DN
5158
5159
96b8a615
AJ
5160echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5161echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5162if test "${ac_cv_header_stdc+set}" = set; then
6de9cd9a 5163 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 5164else
96b8a615 5165 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5166/* confdefs.h. */
5167_ACEOF
5168cat confdefs.h >>conftest.$ac_ext
5169cat >>conftest.$ac_ext <<_ACEOF
5170/* end confdefs.h. */
96b8a615
AJ
5171#include <stdlib.h>
5172#include <stdarg.h>
5173#include <string.h>
5174#include <float.h>
5175
5176int
5177main ()
5178{
5179
5180 ;
5181 return 0;
5182}
6de9cd9a
DN
5183_ACEOF
5184rm -f conftest.$ac_objext
5185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
4c0c6b9f 5193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try='test -s conftest.$ac_objext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 (eval $ac_try) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
96b8a615 5205 ac_cv_header_stdc=yes
6de9cd9a
DN
5206else
5207 echo "$as_me: failed program was:" >&5
5208sed 's/^/| /' conftest.$ac_ext >&5
5209
96b8a615 5210ac_cv_header_stdc=no
6de9cd9a
DN
5211fi
5212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5213
96b8a615
AJ
5214if test $ac_cv_header_stdc = yes; then
5215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5216 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5217/* confdefs.h. */
5218_ACEOF
5219cat confdefs.h >>conftest.$ac_ext
5220cat >>conftest.$ac_ext <<_ACEOF
5221/* end confdefs.h. */
96b8a615
AJ
5222#include <string.h>
5223
6de9cd9a 5224_ACEOF
96b8a615
AJ
5225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5226 $EGREP "memchr" >/dev/null 2>&1; then
5227 :
6de9cd9a 5228else
96b8a615 5229 ac_cv_header_stdc=no
6de9cd9a 5230fi
96b8a615
AJ
5231rm -f conftest*
5232
5233fi
5234
5235if test $ac_cv_header_stdc = yes; then
5236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5237 cat >conftest.$ac_ext <<_ACEOF
5238/* confdefs.h. */
5239_ACEOF
5240cat confdefs.h >>conftest.$ac_ext
5241cat >>conftest.$ac_ext <<_ACEOF
5242/* end confdefs.h. */
5243#include <stdlib.h>
5244
5245_ACEOF
5246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5247 $EGREP "free" >/dev/null 2>&1; then
5248 :
6de9cd9a 5249else
96b8a615
AJ
5250 ac_cv_header_stdc=no
5251fi
5252rm -f conftest*
5253
5254fi
5255
5256if test $ac_cv_header_stdc = yes; then
5257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5258 if test "$cross_compiling" = yes; then
5259 :
5260else
5261 cat >conftest.$ac_ext <<_ACEOF
5262/* confdefs.h. */
5263_ACEOF
5264cat confdefs.h >>conftest.$ac_ext
5265cat >>conftest.$ac_ext <<_ACEOF
5266/* end confdefs.h. */
5267#include <ctype.h>
5268#if ((' ' & 0x0FF) == 0x020)
5269# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5270# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5271#else
5272# define ISLOWER(c) \
5273 (('a' <= (c) && (c) <= 'i') \
5274 || ('j' <= (c) && (c) <= 'r') \
5275 || ('s' <= (c) && (c) <= 'z'))
5276# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5277#endif
5278
5279#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5280int
5281main ()
5282{
5283 int i;
5284 for (i = 0; i < 256; i++)
5285 if (XOR (islower (i), ISLOWER (i))
5286 || toupper (i) != TOUPPER (i))
5287 exit(2);
5288 exit (0);
5289}
5290_ACEOF
5291rm -f conftest$ac_exeext
5292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5293 (eval $ac_link) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 (eval $ac_try) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5302 :
5303else
5304 echo "$as_me: program exited with status $ac_status" >&5
5305echo "$as_me: failed program was:" >&5
6de9cd9a
DN
5306sed 's/^/| /' conftest.$ac_ext >&5
5307
96b8a615
AJ
5308( exit $ac_status )
5309ac_cv_header_stdc=no
6de9cd9a 5310fi
96b8a615
AJ
5311rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5312fi
5313fi
5314fi
5315echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5316echo "${ECHO_T}$ac_cv_header_stdc" >&6
5317if test $ac_cv_header_stdc = yes; then
6de9cd9a 5318
96b8a615
AJ
5319cat >>confdefs.h <<\_ACEOF
5320#define STDC_HEADERS 1
5321_ACEOF
5322
5323fi
5324
5325# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5336 inttypes.h stdint.h unistd.h
5337do
5338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6de9cd9a
DN
5339echo "$as_me:$LINENO: checking for $ac_header" >&5
5340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5341if eval "test \"\${$as_ac_Header+set}\" = set"; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343else
96b8a615
AJ
5344 cat >conftest.$ac_ext <<_ACEOF
5345/* confdefs.h. */
5346_ACEOF
5347cat confdefs.h >>conftest.$ac_ext
5348cat >>conftest.$ac_ext <<_ACEOF
5349/* end confdefs.h. */
5350$ac_includes_default
5351
5352#include <$ac_header>
5353_ACEOF
5354rm -f conftest.$ac_objext
5355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356 (eval $ac_compile) 2>conftest.er1
5357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
4c0c6b9f 5363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 (eval $ac_try) 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; } &&
5369 { ac_try='test -s conftest.$ac_objext'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 (eval $ac_try) 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5375 eval "$as_ac_Header=yes"
5376else
5377 echo "$as_me: failed program was:" >&5
5378sed 's/^/| /' conftest.$ac_ext >&5
5379
5380eval "$as_ac_Header=no"
5381fi
5382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a
DN
5383fi
5384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a
DN
5386if test `eval echo '${'$as_ac_Header'}'` = yes; then
5387 cat >>confdefs.h <<_ACEOF
5388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5389_ACEOF
5390
5391fi
5392
5393done
5394
96b8a615
AJ
5395
5396
5397
5398for ac_header in stdlib.h unistd.h
5399do
5400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5401if eval "test \"\${$as_ac_Header+set}\" = set"; then
5402 echo "$as_me:$LINENO: checking for $ac_header" >&5
5403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5404if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a
DN
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406fi
96b8a615
AJ
5407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a
DN
5409else
5410 # Is the header compilable?
96b8a615
AJ
5411echo "$as_me:$LINENO: checking $ac_header usability" >&5
5412echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6de9cd9a
DN
5413cat >conftest.$ac_ext <<_ACEOF
5414/* confdefs.h. */
5415_ACEOF
5416cat confdefs.h >>conftest.$ac_ext
5417cat >>conftest.$ac_ext <<_ACEOF
5418/* end confdefs.h. */
5419$ac_includes_default
96b8a615 5420#include <$ac_header>
6de9cd9a
DN
5421_ACEOF
5422rm -f conftest.$ac_objext
5423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424 (eval $ac_compile) 2>conftest.er1
5425 ac_status=$?
5426 grep -v '^ *+' conftest.er1 >conftest.err
5427 rm -f conftest.er1
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } &&
4c0c6b9f 5431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 (eval $ac_try) 2>&5
5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try='test -s conftest.$ac_objext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 (eval $ac_try) 2>&5
5440 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5443 ac_header_compiler=yes
5444else
5445 echo "$as_me: failed program was:" >&5
5446sed 's/^/| /' conftest.$ac_ext >&5
5447
5448ac_header_compiler=no
5449fi
5450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5451echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5452echo "${ECHO_T}$ac_header_compiler" >&6
5453
5454# Is the header present?
96b8a615
AJ
5455echo "$as_me:$LINENO: checking $ac_header presence" >&5
5456echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6de9cd9a
DN
5457cat >conftest.$ac_ext <<_ACEOF
5458/* confdefs.h. */
5459_ACEOF
5460cat confdefs.h >>conftest.$ac_ext
5461cat >>conftest.$ac_ext <<_ACEOF
5462/* end confdefs.h. */
96b8a615 5463#include <$ac_header>
6de9cd9a
DN
5464_ACEOF
5465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5467 ac_status=$?
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } >/dev/null; then
5473 if test -s conftest.err; then
5474 ac_cpp_err=$ac_c_preproc_warn_flag
5475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5476 else
5477 ac_cpp_err=
5478 fi
5479else
5480 ac_cpp_err=yes
5481fi
5482if test -z "$ac_cpp_err"; then
5483 ac_header_preproc=yes
5484else
5485 echo "$as_me: failed program was:" >&5
5486sed 's/^/| /' conftest.$ac_ext >&5
5487
5488 ac_header_preproc=no
5489fi
5490rm -f conftest.err conftest.$ac_ext
5491echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5492echo "${ECHO_T}$ac_header_preproc" >&6
5493
5494# So? What about this header?
5495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5496 yes:no: )
96b8a615
AJ
5497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5498echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5500echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6de9cd9a
DN
5501 ac_header_preproc=yes
5502 ;;
5503 no:yes:* )
96b8a615
AJ
5504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5505echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5507echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5509echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5511echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5515echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6de9cd9a
DN
5516 (
5517 cat <<\_ASBOX
5518## ------------------------------------------------------ ##
5519## Report this to the GNU Fortran Runtime Library lists. ##
5520## ------------------------------------------------------ ##
5521_ASBOX
5522 ) |
5523 sed "s/^/$as_me: WARNING: /" >&2
5524 ;;
5525esac
96b8a615
AJ
5526echo "$as_me:$LINENO: checking for $ac_header" >&5
5527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5528if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a
DN
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5530else
96b8a615 5531 eval "$as_ac_Header=\$ac_header_preproc"
6de9cd9a 5532fi
96b8a615
AJ
5533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5535
5536fi
5537if test `eval echo '${'$as_ac_Header'}'` = yes; then
5538 cat >>confdefs.h <<_ACEOF
5539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5540_ACEOF
6de9cd9a 5541
96b8a615 5542fi
6de9cd9a 5543
96b8a615 5544done
6de9cd9a
DN
5545
5546
96b8a615 5547for ac_func in getpagesize
6de9cd9a
DN
5548do
5549as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5550echo "$as_me:$LINENO: checking for $ac_func" >&5
5551echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5552if eval "test \"\${$as_ac_var+set}\" = set"; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554else
5555 cat >conftest.$ac_ext <<_ACEOF
5556/* confdefs.h. */
5557_ACEOF
5558cat confdefs.h >>conftest.$ac_ext
5559cat >>conftest.$ac_ext <<_ACEOF
5560/* end confdefs.h. */
5561/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5563#define $ac_func innocuous_$ac_func
5564
5565/* System header to define __stub macros and hopefully few prototypes,
5566 which can conflict with char $ac_func (); below.
5567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5568 <limits.h> exists even on freestanding compilers. */
5569
5570#ifdef __STDC__
5571# include <limits.h>
5572#else
5573# include <assert.h>
5574#endif
5575
5576#undef $ac_func
5577
5578/* Override any gcc2 internal prototype to avoid an error. */
5579#ifdef __cplusplus
5580extern "C"
5581{
5582#endif
5583/* We use char because int might match the return type of a gcc2
5584 builtin and then its argument prototype would still apply. */
5585char $ac_func ();
5586/* The GNU C library defines this for functions which it implements
5587 to always fail with ENOSYS. Some functions are actually named
5588 something starting with __ and the normal name is an alias. */
5589#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5590choke me
5591#else
5592char (*f) () = $ac_func;
5593#endif
5594#ifdef __cplusplus
5595}
5596#endif
5597
5598int
5599main ()
5600{
5601return f != $ac_func;
5602 ;
5603 return 0;
5604}
5605_ACEOF
5606rm -f conftest.$ac_objext conftest$ac_exeext
5607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5608 (eval $ac_link) 2>conftest.er1
5609 ac_status=$?
5610 grep -v '^ *+' conftest.er1 >conftest.err
5611 rm -f conftest.er1
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
4c0c6b9f 5615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 (eval $ac_try) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; } &&
5621 { ac_try='test -s conftest$ac_exeext'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623 (eval $ac_try) 2>&5
5624 ac_status=$?
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; }; then
5627 eval "$as_ac_var=yes"
5628else
5629 echo "$as_me: failed program was:" >&5
5630sed 's/^/| /' conftest.$ac_ext >&5
5631
5632eval "$as_ac_var=no"
5633fi
5634rm -f conftest.err conftest.$ac_objext \
5635 conftest$ac_exeext conftest.$ac_ext
5636fi
5637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5638echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5639if test `eval echo '${'$as_ac_var'}'` = yes; then
5640 cat >>confdefs.h <<_ACEOF
5641#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5642_ACEOF
5643
5644fi
5645done
5646
96b8a615
AJ
5647echo "$as_me:$LINENO: checking for working mmap" >&5
5648echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5649if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6de9cd9a 5650 echo $ECHO_N "(cached) $ECHO_C" >&6
96b8a615
AJ
5651else
5652 if test "$cross_compiling" = yes; then
5653 ac_cv_func_mmap_fixed_mapped=no
6de9cd9a
DN
5654else
5655 cat >conftest.$ac_ext <<_ACEOF
5656/* confdefs.h. */
5657_ACEOF
5658cat confdefs.h >>conftest.$ac_ext
5659cat >>conftest.$ac_ext <<_ACEOF
5660/* end confdefs.h. */
96b8a615
AJ
5661$ac_includes_default
5662/* malloc might have been renamed as rpl_malloc. */
5663#undef malloc
5664
5665/* Thanks to Mike Haertel and Jim Avera for this test.
5666 Here is a matrix of mmap possibilities:
5667 mmap private not fixed
5668 mmap private fixed at somewhere currently unmapped
5669 mmap private fixed at somewhere already mapped
5670 mmap shared not fixed
5671 mmap shared fixed at somewhere currently unmapped
5672 mmap shared fixed at somewhere already mapped
5673 For private mappings, we should verify that changes cannot be read()
5674 back from the file, nor mmap's back from the file at a different
5675 address. (There have been systems where private was not correctly
5676 implemented like the infamous i386 svr4.0, and systems where the
5677 VM page cache was not coherent with the file system buffer cache
5678 like early versions of FreeBSD and possibly contemporary NetBSD.)
5679 For shared mappings, we should conversely verify that changes get
5680 propagated back to all the places they're supposed to be.
5681
5682 Grep wants private fixed already mapped.
5683 The main things grep needs to know about mmap are:
5684 * does it exist and is it safe to write into the mmap'd area
5685 * how to use it (BSD variants) */
5686
5687#include <fcntl.h>
5688#include <sys/mman.h>
5689
5690#if !STDC_HEADERS && !HAVE_STDLIB_H
5691char *malloc ();
5692#endif
5693
5694/* This mess was copied from the GNU getpagesize.h. */
5695#if !HAVE_GETPAGESIZE
5696/* Assume that all systems that can run configure have sys/param.h. */
5697# if !HAVE_SYS_PARAM_H
5698# define HAVE_SYS_PARAM_H 1
5699# endif
5700
5701# ifdef _SC_PAGESIZE
5702# define getpagesize() sysconf(_SC_PAGESIZE)
5703# else /* no _SC_PAGESIZE */
5704# if HAVE_SYS_PARAM_H
5705# include <sys/param.h>
5706# ifdef EXEC_PAGESIZE
5707# define getpagesize() EXEC_PAGESIZE
5708# else /* no EXEC_PAGESIZE */
5709# ifdef NBPG
5710# define getpagesize() NBPG * CLSIZE
5711# ifndef CLSIZE
5712# define CLSIZE 1
5713# endif /* no CLSIZE */
5714# else /* no NBPG */
5715# ifdef NBPC
5716# define getpagesize() NBPC
5717# else /* no NBPC */
5718# ifdef PAGESIZE
5719# define getpagesize() PAGESIZE
5720# endif /* PAGESIZE */
5721# endif /* no NBPC */
5722# endif /* no NBPG */
5723# endif /* no EXEC_PAGESIZE */
5724# else /* no HAVE_SYS_PARAM_H */
5725# define getpagesize() 8192 /* punt totally */
5726# endif /* no HAVE_SYS_PARAM_H */
5727# endif /* no _SC_PAGESIZE */
5728
5729#endif /* no HAVE_GETPAGESIZE */
6de9cd9a
DN
5730
5731int
5732main ()
5733{
96b8a615
AJ
5734 char *data, *data2, *data3;
5735 int i, pagesize;
5736 int fd;
5737
5738 pagesize = getpagesize ();
5739
5740 /* First, make a file with some known garbage in it. */
5741 data = (char *) malloc (pagesize);
5742 if (!data)
5743 exit (1);
5744 for (i = 0; i < pagesize; ++i)
5745 *(data + i) = rand ();
5746 umask (0);
5747 fd = creat ("conftest.mmap", 0600);
5748 if (fd < 0)
5749 exit (1);
5750 if (write (fd, data, pagesize) != pagesize)
5751 exit (1);
5752 close (fd);
5753
5754 /* Next, try to mmap the file at a fixed address which already has
5755 something else allocated at it. If we can, also make sure that
5756 we see the same garbage. */
5757 fd = open ("conftest.mmap", O_RDWR);
5758 if (fd < 0)
5759 exit (1);
5760 data2 = (char *) malloc (2 * pagesize);
5761 if (!data2)
5762 exit (1);
5763 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5764 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5765 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5766 exit (1);
5767 for (i = 0; i < pagesize; ++i)
5768 if (*(data + i) != *(data2 + i))
5769 exit (1);
5770
5771 /* Finally, make sure that changes to the mapped area do not
5772 percolate back to the file as seen by read(). (This is a bug on
5773 some variants of i386 svr4.0.) */
5774 for (i = 0; i < pagesize; ++i)
5775 *(data2 + i) = *(data2 + i) + 1;
5776 data3 = (char *) malloc (pagesize);
5777 if (!data3)
5778 exit (1);
5779 if (read (fd, data3, pagesize) != pagesize)
5780 exit (1);
5781 for (i = 0; i < pagesize; ++i)
5782 if (*(data + i) != *(data3 + i))
5783 exit (1);
5784 close (fd);
5785 exit (0);
6de9cd9a
DN
5786}
5787_ACEOF
96b8a615
AJ
5788rm -f conftest$ac_exeext
5789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5790 (eval $ac_link) 2>&5
6de9cd9a
DN
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615 5793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6de9cd9a
DN
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
96b8a615 5799 ac_cv_func_mmap_fixed_mapped=yes
6de9cd9a 5800else
96b8a615
AJ
5801 echo "$as_me: program exited with status $ac_status" >&5
5802echo "$as_me: failed program was:" >&5
6de9cd9a
DN
5803sed 's/^/| /' conftest.$ac_ext >&5
5804
96b8a615
AJ
5805( exit $ac_status )
5806ac_cv_func_mmap_fixed_mapped=no
6de9cd9a 5807fi
96b8a615 5808rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5809fi
96b8a615
AJ
5810fi
5811echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5812echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5813if test $ac_cv_func_mmap_fixed_mapped = yes; then
6de9cd9a
DN
5814
5815cat >>confdefs.h <<\_ACEOF
96b8a615 5816#define HAVE_MMAP 1
6de9cd9a
DN
5817_ACEOF
5818
5819fi
96b8a615 5820rm -f conftest.mmap
6de9cd9a 5821
96b8a615
AJ
5822echo "$as_me:$LINENO: checking for off_t" >&5
5823echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5824if test "${ac_cv_type_off_t+set}" = set; then
6de9cd9a
DN
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826else
96b8a615
AJ
5827 cat >conftest.$ac_ext <<_ACEOF
5828/* confdefs.h. */
5829_ACEOF
5830cat confdefs.h >>conftest.$ac_ext
5831cat >>conftest.$ac_ext <<_ACEOF
5832/* end confdefs.h. */
5833$ac_includes_default
6de9cd9a
DN
5834int
5835main ()
5836{
96b8a615
AJ
5837if ((off_t *) 0)
5838 return 0;
5839if (sizeof (off_t))
5840 return 0;
6de9cd9a
DN
5841 ;
5842 return 0;
5843}
5844_ACEOF
96b8a615
AJ
5845rm -f conftest.$ac_objext
5846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5847 (eval $ac_compile) 2>conftest.er1
6de9cd9a
DN
5848 ac_status=$?
5849 grep -v '^ *+' conftest.er1 >conftest.err
5850 rm -f conftest.er1
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } &&
4c0c6b9f 5854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; } &&
96b8a615 5860 { ac_try='test -s conftest.$ac_objext'
6de9cd9a
DN
5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 (eval $ac_try) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; }; then
96b8a615 5866 ac_cv_type_off_t=yes
6de9cd9a
DN
5867else
5868 echo "$as_me: failed program was:" >&5
5869sed 's/^/| /' conftest.$ac_ext >&5
5870
96b8a615 5871ac_cv_type_off_t=no
6de9cd9a 5872fi
96b8a615 5873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5874fi
96b8a615
AJ
5875echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5876echo "${ECHO_T}$ac_cv_type_off_t" >&6
5877if test $ac_cv_type_off_t = yes; then
5878 :
5879else
5880
5881cat >>confdefs.h <<_ACEOF
5882#define off_t long
6de9cd9a
DN
5883_ACEOF
5884
5885fi
6de9cd9a 5886
96b8a615
AJ
5887
5888# check header files
5889echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5890echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5891if test "${ac_cv_header_stdc+set}" = set; then
6de9cd9a
DN
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893else
5894 cat >conftest.$ac_ext <<_ACEOF
5895/* confdefs.h. */
5896_ACEOF
5897cat confdefs.h >>conftest.$ac_ext
5898cat >>conftest.$ac_ext <<_ACEOF
5899/* end confdefs.h. */
96b8a615
AJ
5900#include <stdlib.h>
5901#include <stdarg.h>
5902#include <string.h>
5903#include <float.h>
5904
6de9cd9a
DN
5905int
5906main ()
5907{
96b8a615 5908
6de9cd9a
DN
5909 ;
5910 return 0;
5911}
5912_ACEOF
5913rm -f conftest.$ac_objext
5914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5915 (eval $ac_compile) 2>conftest.er1
5916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } &&
4c0c6b9f 5922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 (eval $ac_try) 2>&5
5925 ac_status=$?
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; } &&
5928 { ac_try='test -s conftest.$ac_objext'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; }; then
96b8a615 5934 ac_cv_header_stdc=yes
6de9cd9a
DN
5935else
5936 echo "$as_me: failed program was:" >&5
5937sed 's/^/| /' conftest.$ac_ext >&5
5938
96b8a615 5939ac_cv_header_stdc=no
6de9cd9a
DN
5940fi
5941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96b8a615
AJ
5942
5943if test $ac_cv_header_stdc = yes; then
5944 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6de9cd9a
DN
5945 cat >conftest.$ac_ext <<_ACEOF
5946/* confdefs.h. */
5947_ACEOF
5948cat confdefs.h >>conftest.$ac_ext
5949cat >>conftest.$ac_ext <<_ACEOF
5950/* end confdefs.h. */
96b8a615 5951#include <string.h>
6de9cd9a 5952
6de9cd9a 5953_ACEOF
96b8a615
AJ
5954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5955 $EGREP "memchr" >/dev/null 2>&1; then
5956 :
6de9cd9a 5957else
96b8a615 5958 ac_cv_header_stdc=no
6de9cd9a 5959fi
96b8a615
AJ
5960rm -f conftest*
5961
6de9cd9a 5962fi
6de9cd9a 5963
96b8a615
AJ
5964if test $ac_cv_header_stdc = yes; then
5965 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5966 cat >conftest.$ac_ext <<_ACEOF
5967/* confdefs.h. */
5968_ACEOF
5969cat confdefs.h >>conftest.$ac_ext
5970cat >>conftest.$ac_ext <<_ACEOF
5971/* end confdefs.h. */
5972#include <stdlib.h>
5973
6de9cd9a 5974_ACEOF
96b8a615
AJ
5975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5976 $EGREP "free" >/dev/null 2>&1; then
5977 :
5978else
5979 ac_cv_header_stdc=no
5980fi
5981rm -f conftest*
6de9cd9a 5982
96b8a615 5983fi
6de9cd9a 5984
96b8a615
AJ
5985if test $ac_cv_header_stdc = yes; then
5986 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5987 if test "$cross_compiling" = yes; then
5988 :
6de9cd9a
DN
5989else
5990 cat >conftest.$ac_ext <<_ACEOF
5991/* confdefs.h. */
5992_ACEOF
5993cat confdefs.h >>conftest.$ac_ext
5994cat >>conftest.$ac_ext <<_ACEOF
5995/* end confdefs.h. */
96b8a615
AJ
5996#include <ctype.h>
5997#if ((' ' & 0x0FF) == 0x020)
5998# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5999# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6de9cd9a 6000#else
96b8a615
AJ
6001# define ISLOWER(c) \
6002 (('a' <= (c) && (c) <= 'i') \
6003 || ('j' <= (c) && (c) <= 'r') \
6004 || ('s' <= (c) && (c) <= 'z'))
6005# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6de9cd9a
DN
6006#endif
6007
96b8a615 6008#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6de9cd9a
DN
6009int
6010main ()
6011{
96b8a615
AJ
6012 int i;
6013 for (i = 0; i < 256; i++)
6014 if (XOR (islower (i), ISLOWER (i))
6015 || toupper (i) != TOUPPER (i))
6016 exit(2);
6017 exit (0);
6de9cd9a
DN
6018}
6019_ACEOF
96b8a615 6020rm -f conftest$ac_exeext
6de9cd9a 6021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
96b8a615 6022 (eval $ac_link) 2>&5
6de9cd9a
DN
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615 6025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6de9cd9a
DN
6026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 (eval $ac_try) 2>&5
6028 ac_status=$?
96b8a615
AJ
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; }; then
6031 :
6de9cd9a 6032else
96b8a615
AJ
6033 echo "$as_me: program exited with status $ac_status" >&5
6034echo "$as_me: failed program was:" >&5
6035sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6036
96b8a615
AJ
6037( exit $ac_status )
6038ac_cv_header_stdc=no
6de9cd9a 6039fi
96b8a615 6040rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6de9cd9a
DN
6041fi
6042fi
6de9cd9a 6043fi
96b8a615
AJ
6044echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6045echo "${ECHO_T}$ac_cv_header_stdc" >&6
6046if test $ac_cv_header_stdc = yes; then
6de9cd9a 6047
96b8a615
AJ
6048cat >>confdefs.h <<\_ACEOF
6049#define STDC_HEADERS 1
6050_ACEOF
6de9cd9a
DN
6051
6052fi
6053
6de9cd9a
DN
6054
6055
6de9cd9a 6056
6de9cd9a
DN
6057
6058
6059
96b8a615
AJ
6060for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h
6061do
6062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6063if eval "test \"\${$as_ac_Header+set}\" = set"; then
6064 echo "$as_me:$LINENO: checking for $ac_header" >&5
6065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6066if eval "test \"\${$as_ac_Header+set}\" = set"; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068fi
6069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6071else
96b8a615
AJ
6072 # Is the header compilable?
6073echo "$as_me:$LINENO: checking $ac_header usability" >&5
6074echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6075cat >conftest.$ac_ext <<_ACEOF
6076/* confdefs.h. */
6077_ACEOF
6078cat confdefs.h >>conftest.$ac_ext
6079cat >>conftest.$ac_ext <<_ACEOF
6080/* end confdefs.h. */
6081$ac_includes_default
6082#include <$ac_header>
6083_ACEOF
6084rm -f conftest.$ac_objext
6085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086 (eval $ac_compile) 2>conftest.er1
6087 ac_status=$?
6088 grep -v '^ *+' conftest.er1 >conftest.err
6089 rm -f conftest.er1
6090 cat conftest.err >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } &&
4c0c6b9f 6093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 (eval $ac_try) 2>&5
6096 ac_status=$?
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try='test -s conftest.$ac_objext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 (eval $ac_try) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_header_compiler=yes
6de9cd9a 6106else
96b8a615
AJ
6107 echo "$as_me: failed program was:" >&5
6108sed 's/^/| /' conftest.$ac_ext >&5
6109
6110ac_header_compiler=no
6de9cd9a 6111fi
96b8a615
AJ
6112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6113echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6114echo "${ECHO_T}$ac_header_compiler" >&6
6115
6116# Is the header present?
6117echo "$as_me:$LINENO: checking $ac_header presence" >&5
6118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6119cat >conftest.$ac_ext <<_ACEOF
6120/* confdefs.h. */
6121_ACEOF
6122cat confdefs.h >>conftest.$ac_ext
6123cat >>conftest.$ac_ext <<_ACEOF
6124/* end confdefs.h. */
6125#include <$ac_header>
6126_ACEOF
6127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } >/dev/null; then
6135 if test -s conftest.err; then
6136 ac_cpp_err=$ac_c_preproc_warn_flag
6137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6138 else
6139 ac_cpp_err=
6140 fi
6de9cd9a 6141else
96b8a615 6142 ac_cpp_err=yes
6de9cd9a 6143fi
96b8a615
AJ
6144if test -z "$ac_cpp_err"; then
6145 ac_header_preproc=yes
6de9cd9a 6146else
96b8a615
AJ
6147 echo "$as_me: failed program was:" >&5
6148sed 's/^/| /' conftest.$ac_ext >&5
6149
6150 ac_header_preproc=no
6de9cd9a 6151fi
96b8a615
AJ
6152rm -f conftest.err conftest.$ac_ext
6153echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6154echo "${ECHO_T}$ac_header_preproc" >&6
6155
6156# So? What about this header?
6157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6158 yes:no: )
6159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6162echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6163 ac_header_preproc=yes
6164 ;;
6165 no:yes:* )
6166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6167echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6169echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6171echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6173echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6175echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6177echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6178 (
6179 cat <<\_ASBOX
6180## ------------------------------------------------------ ##
6181## Report this to the GNU Fortran Runtime Library lists. ##
6182## ------------------------------------------------------ ##
6183_ASBOX
6184 ) |
6185 sed "s/^/$as_me: WARNING: /" >&2
6186 ;;
6187esac
6188echo "$as_me:$LINENO: checking for $ac_header" >&5
6189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6190if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a
DN
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192else
96b8a615 6193 eval "$as_ac_Header=\$ac_header_preproc"
6de9cd9a 6194fi
96b8a615
AJ
6195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6197
96b8a615
AJ
6198fi
6199if test `eval echo '${'$as_ac_Header'}'` = yes; then
6200 cat >>confdefs.h <<_ACEOF
6201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6202_ACEOF
6de9cd9a 6203
6de9cd9a 6204fi
6de9cd9a 6205
96b8a615
AJ
6206done
6207
6208
6209
6210
6211
6212
6213for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
6214do
6215as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6216if eval "test \"\${$as_ac_Header+set}\" = set"; then
6217 echo "$as_me:$LINENO: checking for $ac_header" >&5
6218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6219if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a 6220 echo $ECHO_N "(cached) $ECHO_C" >&6
96b8a615
AJ
6221fi
6222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6223echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6224else
96b8a615
AJ
6225 # Is the header compilable?
6226echo "$as_me:$LINENO: checking $ac_header usability" >&5
6227echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6228cat >conftest.$ac_ext <<_ACEOF
6229/* confdefs.h. */
6230_ACEOF
6231cat confdefs.h >>conftest.$ac_ext
6232cat >>conftest.$ac_ext <<_ACEOF
6233/* end confdefs.h. */
6234$ac_includes_default
6235#include <$ac_header>
6236_ACEOF
6237rm -f conftest.$ac_objext
6238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6239 (eval $ac_compile) 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } &&
4c0c6b9f 6246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; } &&
6252 { ac_try='test -s conftest.$ac_objext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 ac_header_compiler=yes
6de9cd9a 6259else
96b8a615
AJ
6260 echo "$as_me: failed program was:" >&5
6261sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6262
96b8a615
AJ
6263ac_header_compiler=no
6264fi
6265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6266echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6267echo "${ECHO_T}$ac_header_compiler" >&6
6de9cd9a 6268
96b8a615
AJ
6269# Is the header present?
6270echo "$as_me:$LINENO: checking $ac_header presence" >&5
6271echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6272cat >conftest.$ac_ext <<_ACEOF
6273/* confdefs.h. */
6274_ACEOF
6275cat confdefs.h >>conftest.$ac_ext
6276cat >>conftest.$ac_ext <<_ACEOF
6277/* end confdefs.h. */
6278#include <$ac_header>
6279_ACEOF
6280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } >/dev/null; then
6288 if test -s conftest.err; then
6289 ac_cpp_err=$ac_c_preproc_warn_flag
6290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6291 else
6292 ac_cpp_err=
6293 fi
6de9cd9a 6294else
96b8a615 6295 ac_cpp_err=yes
6de9cd9a 6296fi
96b8a615
AJ
6297if test -z "$ac_cpp_err"; then
6298 ac_header_preproc=yes
6de9cd9a 6299else
96b8a615
AJ
6300 echo "$as_me: failed program was:" >&5
6301sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6302
96b8a615
AJ
6303 ac_header_preproc=no
6304fi
6305rm -f conftest.err conftest.$ac_ext
6306echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6307echo "${ECHO_T}$ac_header_preproc" >&6
6de9cd9a 6308
96b8a615
AJ
6309# So? What about this header?
6310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6311 yes:no: )
6312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6313echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6315echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6316 ac_header_preproc=yes
6de9cd9a 6317 ;;
96b8a615
AJ
6318 no:yes:* )
6319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6320echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6322echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6323 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6324echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6326echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6328echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6329 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6330echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6331 (
6332 cat <<\_ASBOX
6333## ------------------------------------------------------ ##
6334## Report this to the GNU Fortran Runtime Library lists. ##
6335## ------------------------------------------------------ ##
6336_ASBOX
6337 ) |
6338 sed "s/^/$as_me: WARNING: /" >&2
6de9cd9a 6339 ;;
96b8a615
AJ
6340esac
6341echo "$as_me:$LINENO: checking for $ac_header" >&5
6342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6343if eval "test \"\${$as_ac_Header+set}\" = set"; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6345else
6346 eval "$as_ac_Header=\$ac_header_preproc"
6347fi
6348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6349echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6350
96b8a615
AJ
6351fi
6352if test `eval echo '${'$as_ac_Header'}'` = yes; then
6353 cat >>confdefs.h <<_ACEOF
6354#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6355_ACEOF
6de9cd9a 6356
96b8a615 6357fi
6de9cd9a 6358
96b8a615 6359done
6de9cd9a 6360
96b8a615
AJ
6361if test "${ac_cv_header_complex_h+set}" = set; then
6362 echo "$as_me:$LINENO: checking for complex.h" >&5
6363echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6364if test "${ac_cv_header_complex_h+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6366fi
6367echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6368echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6369else
6370 # Is the header compilable?
6371echo "$as_me:$LINENO: checking complex.h usability" >&5
6372echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6373cat >conftest.$ac_ext <<_ACEOF
6374/* confdefs.h. */
6375_ACEOF
6376cat confdefs.h >>conftest.$ac_ext
6377cat >>conftest.$ac_ext <<_ACEOF
6378/* end confdefs.h. */
6379$ac_includes_default
6380#include <complex.h>
6381_ACEOF
6382rm -f conftest.$ac_objext
6383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 (eval $ac_compile) 2>conftest.er1
6385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
4c0c6b9f 6391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 (eval $ac_try) 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; } &&
6397 { ac_try='test -s conftest.$ac_objext'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 (eval $ac_try) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; }; then
6403 ac_header_compiler=yes
6404else
6405 echo "$as_me: failed program was:" >&5
6406sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6407
96b8a615
AJ
6408ac_header_compiler=no
6409fi
6410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6411echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6412echo "${ECHO_T}$ac_header_compiler" >&6
6de9cd9a 6413
96b8a615
AJ
6414# Is the header present?
6415echo "$as_me:$LINENO: checking complex.h presence" >&5
6416echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6417cat >conftest.$ac_ext <<_ACEOF
6418/* confdefs.h. */
6419_ACEOF
6420cat confdefs.h >>conftest.$ac_ext
6421cat >>conftest.$ac_ext <<_ACEOF
6422/* end confdefs.h. */
6423#include <complex.h>
6424_ACEOF
6425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } >/dev/null; then
6433 if test -s conftest.err; then
6434 ac_cpp_err=$ac_c_preproc_warn_flag
6435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6de9cd9a 6436 else
96b8a615 6437 ac_cpp_err=
6de9cd9a 6438 fi
96b8a615
AJ
6439else
6440 ac_cpp_err=yes
6441fi
6442if test -z "$ac_cpp_err"; then
6443 ac_header_preproc=yes
6444else
6445 echo "$as_me: failed program was:" >&5
6446sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6447
96b8a615
AJ
6448 ac_header_preproc=no
6449fi
6450rm -f conftest.err conftest.$ac_ext
6451echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6452echo "${ECHO_T}$ac_header_preproc" >&6
6de9cd9a 6453
96b8a615
AJ
6454# So? What about this header?
6455case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6456 yes:no: )
6457 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6458echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6460echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6461 ac_header_preproc=yes
6de9cd9a 6462 ;;
96b8a615
AJ
6463 no:yes:* )
6464 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6465echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6466 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
6467echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
6468 { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6469echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5
6471echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6473echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6475echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6476 (
6477 cat <<\_ASBOX
6478## ------------------------------------------------------ ##
6479## Report this to the GNU Fortran Runtime Library lists. ##
6480## ------------------------------------------------------ ##
6481_ASBOX
6482 ) |
6483 sed "s/^/$as_me: WARNING: /" >&2
6de9cd9a 6484 ;;
6de9cd9a 6485esac
96b8a615
AJ
6486echo "$as_me:$LINENO: checking for complex.h" >&5
6487echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6488if test "${ac_cv_header_complex_h+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6490else
6491 ac_cv_header_complex_h=$ac_header_preproc
6492fi
6493echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6494echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6de9cd9a
DN
6495
6496fi
96b8a615 6497if test $ac_cv_header_complex_h = yes; then
6de9cd9a 6498
96b8a615
AJ
6499cat >>confdefs.h <<\_ACEOF
6500#define HAVE_COMPLEX_H 1
6501_ACEOF
6de9cd9a 6502
96b8a615 6503fi
6de9cd9a
DN
6504
6505
6de9cd9a 6506
96b8a615
AJ
6507# Check for complex math functions
6508echo "$as_me:$LINENO: checking for csin in -lm" >&5
6509echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
6510if test "${ac_cv_lib_m_csin+set}" = set; then
6de9cd9a
DN
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512else
96b8a615
AJ
6513 ac_check_lib_save_LIBS=$LIBS
6514LIBS="-lm $LIBS"
6515cat >conftest.$ac_ext <<_ACEOF
6516/* confdefs.h. */
6517_ACEOF
6518cat confdefs.h >>conftest.$ac_ext
6519cat >>conftest.$ac_ext <<_ACEOF
6520/* end confdefs.h. */
6de9cd9a 6521
96b8a615
AJ
6522/* Override any gcc2 internal prototype to avoid an error. */
6523#ifdef __cplusplus
6524extern "C"
6525#endif
6526/* We use char because int might match the return type of a gcc2
6527 builtin and then its argument prototype would still apply. */
6528char csin ();
6529int
6530main ()
6531{
6532csin ();
6533 ;
6534 return 0;
6535}
6536_ACEOF
6537rm -f conftest.$ac_objext conftest$ac_exeext
6538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6539 (eval $ac_link) 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } &&
4c0c6b9f 6546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 (eval $ac_try) 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; } &&
6552 { ac_try='test -s conftest$ac_exeext'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
6558 ac_cv_lib_m_csin=yes
6559else
6560 echo "$as_me: failed program was:" >&5
6561sed 's/^/| /' conftest.$ac_ext >&5
6562
6563ac_cv_lib_m_csin=no
6564fi
6565rm -f conftest.err conftest.$ac_objext \
6566 conftest$ac_exeext conftest.$ac_ext
6567LIBS=$ac_check_lib_save_LIBS
6568fi
6569echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
6570echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
6571if test $ac_cv_lib_m_csin = yes; then
6572 need_math="no"
6573else
6574 need_math="yes"
6575fi
6576
6577
96b8a615
AJ
6578# Check for library functions.
6579
6580
6581for ac_func in getrusage times
6582do
6583as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6584echo "$as_me:$LINENO: checking for $ac_func" >&5
6585echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6586if eval "test \"\${$as_ac_var+set}\" = set"; then
6de9cd9a
DN
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588else
96b8a615
AJ
6589 cat >conftest.$ac_ext <<_ACEOF
6590/* confdefs.h. */
6591_ACEOF
6592cat confdefs.h >>conftest.$ac_ext
6593cat >>conftest.$ac_ext <<_ACEOF
6594/* end confdefs.h. */
6595/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6597#define $ac_func innocuous_$ac_func
6de9cd9a 6598
96b8a615
AJ
6599/* System header to define __stub macros and hopefully few prototypes,
6600 which can conflict with char $ac_func (); below.
6601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6602 <limits.h> exists even on freestanding compilers. */
6de9cd9a 6603
96b8a615
AJ
6604#ifdef __STDC__
6605# include <limits.h>
6606#else
6607# include <assert.h>
6608#endif
6de9cd9a 6609
96b8a615
AJ
6610#undef $ac_func
6611
6612/* Override any gcc2 internal prototype to avoid an error. */
6613#ifdef __cplusplus
6614extern "C"
6615{
6616#endif
6617/* We use char because int might match the return type of a gcc2
6618 builtin and then its argument prototype would still apply. */
6619char $ac_func ();
6620/* The GNU C library defines this for functions which it implements
6621 to always fail with ENOSYS. Some functions are actually named
6622 something starting with __ and the normal name is an alias. */
6623#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6624choke me
6625#else
6626char (*f) () = $ac_func;
6627#endif
6628#ifdef __cplusplus
6629}
6630#endif
6631
6632int
6633main ()
6634{
6635return f != $ac_func;
6636 ;
6637 return 0;
6638}
6639_ACEOF
6640rm -f conftest.$ac_objext conftest$ac_exeext
6641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6642 (eval $ac_link) 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
4c0c6b9f 6649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 (eval $ac_try) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; } &&
6655 { ac_try='test -s conftest$ac_exeext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 (eval $ac_try) 2>&5
6658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 eval "$as_ac_var=yes"
6de9cd9a 6662else
96b8a615
AJ
6663 echo "$as_me: failed program was:" >&5
6664sed 's/^/| /' conftest.$ac_ext >&5
6665
6666eval "$as_ac_var=no"
6667fi
6668rm -f conftest.err conftest.$ac_objext \
6669 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 6670fi
96b8a615
AJ
6671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6672echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6673if test `eval echo '${'$as_ac_var'}'` = yes; then
6674 cat >>confdefs.h <<_ACEOF
6675#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6676_ACEOF
6de9cd9a 6677
6de9cd9a 6678fi
96b8a615 6679done
6de9cd9a 6680
6de9cd9a 6681
4c0c6b9f
SK
6682# Check libc for getgid, getpid, getuid
6683echo "$as_me:$LINENO: checking for getgid in -lc" >&5
6684echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
6685if test "${ac_cv_lib_c_getgid+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687else
6688 ac_check_lib_save_LIBS=$LIBS
6689LIBS="-lc $LIBS"
6690cat >conftest.$ac_ext <<_ACEOF
6691/* confdefs.h. */
6692_ACEOF
6693cat confdefs.h >>conftest.$ac_ext
6694cat >>conftest.$ac_ext <<_ACEOF
6695/* end confdefs.h. */
6696
6697/* Override any gcc2 internal prototype to avoid an error. */
6698#ifdef __cplusplus
6699extern "C"
6700#endif
6701/* We use char because int might match the return type of a gcc2
6702 builtin and then its argument prototype would still apply. */
6703char getgid ();
6704int
6705main ()
6706{
6707getgid ();
6708 ;
6709 return 0;
6710}
6711_ACEOF
6712rm -f conftest.$ac_objext conftest$ac_exeext
6713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6714 (eval $ac_link) 2>conftest.er1
6715 ac_status=$?
6716 grep -v '^ *+' conftest.er1 >conftest.err
6717 rm -f conftest.er1
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } &&
6721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 (eval $ac_try) 2>&5
6724 ac_status=$?
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; } &&
6727 { ac_try='test -s conftest$ac_exeext'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 (eval $ac_try) 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
6733 ac_cv_lib_c_getgid=yes
6734else
6735 echo "$as_me: failed program was:" >&5
6736sed 's/^/| /' conftest.$ac_ext >&5
6737
6738ac_cv_lib_c_getgid=no
6739fi
6740rm -f conftest.err conftest.$ac_objext \
6741 conftest$ac_exeext conftest.$ac_ext
6742LIBS=$ac_check_lib_save_LIBS
6743fi
6744echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
6745echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
6746if test $ac_cv_lib_c_getgid = yes; then
6747
6748cat >>confdefs.h <<\_ACEOF
6749#define HAVE_GETGID 1
6750_ACEOF
6751
6752fi
6753
6754echo "$as_me:$LINENO: checking for getpid in -lc" >&5
6755echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
6756if test "${ac_cv_lib_c_getpid+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758else
6759 ac_check_lib_save_LIBS=$LIBS
6760LIBS="-lc $LIBS"
6761cat >conftest.$ac_ext <<_ACEOF
6762/* confdefs.h. */
6763_ACEOF
6764cat confdefs.h >>conftest.$ac_ext
6765cat >>conftest.$ac_ext <<_ACEOF
6766/* end confdefs.h. */
6767
6768/* Override any gcc2 internal prototype to avoid an error. */
6769#ifdef __cplusplus
6770extern "C"
6771#endif
6772/* We use char because int might match the return type of a gcc2
6773 builtin and then its argument prototype would still apply. */
6774char getpid ();
6775int
6776main ()
6777{
6778getpid ();
6779 ;
6780 return 0;
6781}
6782_ACEOF
6783rm -f conftest.$ac_objext conftest$ac_exeext
6784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6785 (eval $ac_link) 2>conftest.er1
6786 ac_status=$?
6787 grep -v '^ *+' conftest.er1 >conftest.err
6788 rm -f conftest.er1
6789 cat conftest.err >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } &&
6792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 (eval $ac_try) 2>&5
6795 ac_status=$?
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; } &&
6798 { ac_try='test -s conftest$ac_exeext'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 (eval $ac_try) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; }; then
6804 ac_cv_lib_c_getpid=yes
6805else
6806 echo "$as_me: failed program was:" >&5
6807sed 's/^/| /' conftest.$ac_ext >&5
6808
6809ac_cv_lib_c_getpid=no
6810fi
6811rm -f conftest.err conftest.$ac_objext \
6812 conftest$ac_exeext conftest.$ac_ext
6813LIBS=$ac_check_lib_save_LIBS
6814fi
6815echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
6816echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
6817if test $ac_cv_lib_c_getpid = yes; then
6818
6819cat >>confdefs.h <<\_ACEOF
6820#define HAVE_GETPID 1
6821_ACEOF
6822
6823fi
6824
6825echo "$as_me:$LINENO: checking for getuid in -lc" >&5
6826echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
6827if test "${ac_cv_lib_c_getuid+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6829else
6830 ac_check_lib_save_LIBS=$LIBS
6831LIBS="-lc $LIBS"
6832cat >conftest.$ac_ext <<_ACEOF
6833/* confdefs.h. */
6834_ACEOF
6835cat confdefs.h >>conftest.$ac_ext
6836cat >>conftest.$ac_ext <<_ACEOF
6837/* end confdefs.h. */
6838
6839/* Override any gcc2 internal prototype to avoid an error. */
6840#ifdef __cplusplus
6841extern "C"
6842#endif
6843/* We use char because int might match the return type of a gcc2
6844 builtin and then its argument prototype would still apply. */
6845char getuid ();
6846int
6847main ()
6848{
6849getuid ();
6850 ;
6851 return 0;
6852}
6853_ACEOF
6854rm -f conftest.$ac_objext conftest$ac_exeext
6855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6856 (eval $ac_link) 2>conftest.er1
6857 ac_status=$?
6858 grep -v '^ *+' conftest.er1 >conftest.err
6859 rm -f conftest.er1
6860 cat conftest.err >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 (eval $ac_try) 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; } &&
6869 { ac_try='test -s conftest$ac_exeext'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 (eval $ac_try) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; }; then
6875 ac_cv_lib_c_getuid=yes
6876else
6877 echo "$as_me: failed program was:" >&5
6878sed 's/^/| /' conftest.$ac_ext >&5
6879
6880ac_cv_lib_c_getuid=no
6881fi
6882rm -f conftest.err conftest.$ac_objext \
6883 conftest$ac_exeext conftest.$ac_ext
6884LIBS=$ac_check_lib_save_LIBS
6885fi
6886echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
6887echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
6888if test $ac_cv_lib_c_getuid = yes; then
6889
6890cat >>confdefs.h <<\_ACEOF
6891#define HAVE_GETUID 1
6892_ACEOF
6893
6894fi
6895
6896
453310d8
RS
6897# Check for C99 (and other IEEE) math functions
6898echo "$as_me:$LINENO: checking for acosf in -lm" >&5
6899echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
6900if test "${ac_cv_lib_m_acosf+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6902else
6903 ac_check_lib_save_LIBS=$LIBS
6904LIBS="-lm $LIBS"
6905cat >conftest.$ac_ext <<_ACEOF
6906/* confdefs.h. */
6907_ACEOF
6908cat confdefs.h >>conftest.$ac_ext
6909cat >>conftest.$ac_ext <<_ACEOF
6910/* end confdefs.h. */
6911
6912/* Override any gcc2 internal prototype to avoid an error. */
6913#ifdef __cplusplus
6914extern "C"
6915#endif
6916/* We use char because int might match the return type of a gcc2
6917 builtin and then its argument prototype would still apply. */
6918char acosf ();
6919int
6920main ()
6921{
6922acosf ();
6923 ;
6924 return 0;
6925}
6926_ACEOF
6927rm -f conftest.$ac_objext conftest$ac_exeext
6928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6929 (eval $ac_link) 2>conftest.er1
6930 ac_status=$?
6931 grep -v '^ *+' conftest.er1 >conftest.err
6932 rm -f conftest.er1
6933 cat conftest.err >&5
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); } &&
4c0c6b9f 6936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 (eval $ac_try) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; } &&
6942 { ac_try='test -s conftest$ac_exeext'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 (eval $ac_try) 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 ac_cv_lib_m_acosf=yes
6949else
6950 echo "$as_me: failed program was:" >&5
6951sed 's/^/| /' conftest.$ac_ext >&5
6952
6953ac_cv_lib_m_acosf=no
6954fi
6955rm -f conftest.err conftest.$ac_objext \
6956 conftest$ac_exeext conftest.$ac_ext
6957LIBS=$ac_check_lib_save_LIBS
6958fi
6959echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
6960echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
6961if test $ac_cv_lib_m_acosf = yes; then
6962
6963cat >>confdefs.h <<\_ACEOF
6964#define HAVE_ACOSF 1
6965_ACEOF
6966
6967fi
6968
6969echo "$as_me:$LINENO: checking for asinf in -lm" >&5
6970echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
6971if test "${ac_cv_lib_m_asinf+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973else
6974 ac_check_lib_save_LIBS=$LIBS
6975LIBS="-lm $LIBS"
6976cat >conftest.$ac_ext <<_ACEOF
6977/* confdefs.h. */
6978_ACEOF
6979cat confdefs.h >>conftest.$ac_ext
6980cat >>conftest.$ac_ext <<_ACEOF
6981/* end confdefs.h. */
6982
6983/* Override any gcc2 internal prototype to avoid an error. */
6984#ifdef __cplusplus
6985extern "C"
6986#endif
6987/* We use char because int might match the return type of a gcc2
6988 builtin and then its argument prototype would still apply. */
6989char asinf ();
6990int
6991main ()
6992{
6993asinf ();
6994 ;
6995 return 0;
6996}
6997_ACEOF
6998rm -f conftest.$ac_objext conftest$ac_exeext
6999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7000 (eval $ac_link) 2>conftest.er1
7001 ac_status=$?
7002 grep -v '^ *+' conftest.er1 >conftest.err
7003 rm -f conftest.er1
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } &&
4c0c6b9f 7007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 (eval $ac_try) 2>&5
7010 ac_status=$?
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; } &&
7013 { ac_try='test -s conftest$ac_exeext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7019 ac_cv_lib_m_asinf=yes
7020else
7021 echo "$as_me: failed program was:" >&5
7022sed 's/^/| /' conftest.$ac_ext >&5
7023
7024ac_cv_lib_m_asinf=no
7025fi
7026rm -f conftest.err conftest.$ac_objext \
7027 conftest$ac_exeext conftest.$ac_ext
7028LIBS=$ac_check_lib_save_LIBS
7029fi
7030echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
7031echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
7032if test $ac_cv_lib_m_asinf = yes; then
7033
7034cat >>confdefs.h <<\_ACEOF
7035#define HAVE_ASINF 1
7036_ACEOF
7037
7038fi
7039
7040echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
7041echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
7042if test "${ac_cv_lib_m_atan2f+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7044else
7045 ac_check_lib_save_LIBS=$LIBS
7046LIBS="-lm $LIBS"
7047cat >conftest.$ac_ext <<_ACEOF
7048/* confdefs.h. */
7049_ACEOF
7050cat confdefs.h >>conftest.$ac_ext
7051cat >>conftest.$ac_ext <<_ACEOF
7052/* end confdefs.h. */
7053
7054/* Override any gcc2 internal prototype to avoid an error. */
7055#ifdef __cplusplus
7056extern "C"
7057#endif
7058/* We use char because int might match the return type of a gcc2
7059 builtin and then its argument prototype would still apply. */
7060char atan2f ();
7061int
7062main ()
7063{
7064atan2f ();
7065 ;
7066 return 0;
7067}
7068_ACEOF
7069rm -f conftest.$ac_objext conftest$ac_exeext
7070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7071 (eval $ac_link) 2>conftest.er1
7072 ac_status=$?
7073 grep -v '^ *+' conftest.er1 >conftest.err
7074 rm -f conftest.er1
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } &&
4c0c6b9f 7078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 (eval $ac_try) 2>&5
7081 ac_status=$?
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; } &&
7084 { ac_try='test -s conftest$ac_exeext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 (eval $ac_try) 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 ac_cv_lib_m_atan2f=yes
7091else
7092 echo "$as_me: failed program was:" >&5
7093sed 's/^/| /' conftest.$ac_ext >&5
7094
7095ac_cv_lib_m_atan2f=no
7096fi
7097rm -f conftest.err conftest.$ac_objext \
7098 conftest$ac_exeext conftest.$ac_ext
7099LIBS=$ac_check_lib_save_LIBS
7100fi
7101echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
7102echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
7103if test $ac_cv_lib_m_atan2f = yes; then
7104
7105cat >>confdefs.h <<\_ACEOF
7106#define HAVE_ATAN2F 1
7107_ACEOF
7108
7109fi
7110
7111echo "$as_me:$LINENO: checking for atanf in -lm" >&5
7112echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
7113if test "${ac_cv_lib_m_atanf+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7115else
7116 ac_check_lib_save_LIBS=$LIBS
7117LIBS="-lm $LIBS"
7118cat >conftest.$ac_ext <<_ACEOF
7119/* confdefs.h. */
7120_ACEOF
7121cat confdefs.h >>conftest.$ac_ext
7122cat >>conftest.$ac_ext <<_ACEOF
7123/* end confdefs.h. */
7124
7125/* Override any gcc2 internal prototype to avoid an error. */
7126#ifdef __cplusplus
7127extern "C"
7128#endif
7129/* We use char because int might match the return type of a gcc2
7130 builtin and then its argument prototype would still apply. */
7131char atanf ();
7132int
7133main ()
7134{
7135atanf ();
7136 ;
7137 return 0;
7138}
7139_ACEOF
7140rm -f conftest.$ac_objext conftest$ac_exeext
7141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7142 (eval $ac_link) 2>conftest.er1
7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } &&
4c0c6b9f 7149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 (eval $ac_try) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; } &&
7155 { ac_try='test -s conftest$ac_exeext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_cv_lib_m_atanf=yes
7162else
7163 echo "$as_me: failed program was:" >&5
7164sed 's/^/| /' conftest.$ac_ext >&5
7165
7166ac_cv_lib_m_atanf=no
7167fi
7168rm -f conftest.err conftest.$ac_objext \
7169 conftest$ac_exeext conftest.$ac_ext
7170LIBS=$ac_check_lib_save_LIBS
7171fi
7172echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
7173echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
7174if test $ac_cv_lib_m_atanf = yes; then
7175
7176cat >>confdefs.h <<\_ACEOF
7177#define HAVE_ATANF 1
7178_ACEOF
7179
7180fi
7181
7182echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
7183echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
7184if test "${ac_cv_lib_m_ceilf+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7186else
7187 ac_check_lib_save_LIBS=$LIBS
7188LIBS="-lm $LIBS"
7189cat >conftest.$ac_ext <<_ACEOF
7190/* confdefs.h. */
7191_ACEOF
7192cat confdefs.h >>conftest.$ac_ext
7193cat >>conftest.$ac_ext <<_ACEOF
7194/* end confdefs.h. */
7195
7196/* Override any gcc2 internal prototype to avoid an error. */
7197#ifdef __cplusplus
7198extern "C"
7199#endif
7200/* We use char because int might match the return type of a gcc2
7201 builtin and then its argument prototype would still apply. */
7202char ceilf ();
7203int
7204main ()
7205{
7206ceilf ();
7207 ;
7208 return 0;
7209}
7210_ACEOF
7211rm -f conftest.$ac_objext conftest$ac_exeext
7212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213 (eval $ac_link) 2>conftest.er1
7214 ac_status=$?
7215 grep -v '^ *+' conftest.er1 >conftest.err
7216 rm -f conftest.er1
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
4c0c6b9f 7220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try='test -s conftest$ac_exeext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7232 ac_cv_lib_m_ceilf=yes
7233else
7234 echo "$as_me: failed program was:" >&5
7235sed 's/^/| /' conftest.$ac_ext >&5
7236
7237ac_cv_lib_m_ceilf=no
7238fi
7239rm -f conftest.err conftest.$ac_objext \
7240 conftest$ac_exeext conftest.$ac_ext
7241LIBS=$ac_check_lib_save_LIBS
7242fi
7243echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
7244echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
7245if test $ac_cv_lib_m_ceilf = yes; then
7246
7247cat >>confdefs.h <<\_ACEOF
7248#define HAVE_CEILF 1
7249_ACEOF
7250
7251fi
7252
7253echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
7254echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
7255if test "${ac_cv_lib_m_copysignf+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257else
7258 ac_check_lib_save_LIBS=$LIBS
7259LIBS="-lm $LIBS"
7260cat >conftest.$ac_ext <<_ACEOF
7261/* confdefs.h. */
7262_ACEOF
7263cat confdefs.h >>conftest.$ac_ext
7264cat >>conftest.$ac_ext <<_ACEOF
7265/* end confdefs.h. */
7266
7267/* Override any gcc2 internal prototype to avoid an error. */
7268#ifdef __cplusplus
7269extern "C"
7270#endif
7271/* We use char because int might match the return type of a gcc2
7272 builtin and then its argument prototype would still apply. */
7273char copysignf ();
7274int
7275main ()
7276{
7277copysignf ();
7278 ;
7279 return 0;
7280}
7281_ACEOF
7282rm -f conftest.$ac_objext conftest$ac_exeext
7283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7284 (eval $ac_link) 2>conftest.er1
7285 ac_status=$?
7286 grep -v '^ *+' conftest.er1 >conftest.err
7287 rm -f conftest.er1
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } &&
4c0c6b9f 7291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 (eval $ac_try) 2>&5
7294 ac_status=$?
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try='test -s conftest$ac_exeext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 (eval $ac_try) 2>&5
7300 ac_status=$?
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 ac_cv_lib_m_copysignf=yes
7304else
7305 echo "$as_me: failed program was:" >&5
7306sed 's/^/| /' conftest.$ac_ext >&5
7307
7308ac_cv_lib_m_copysignf=no
7309fi
7310rm -f conftest.err conftest.$ac_objext \
7311 conftest$ac_exeext conftest.$ac_ext
7312LIBS=$ac_check_lib_save_LIBS
7313fi
7314echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
7315echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
7316if test $ac_cv_lib_m_copysignf = yes; then
7317
7318cat >>confdefs.h <<\_ACEOF
7319#define HAVE_COPYSIGNF 1
7320_ACEOF
7321
7322fi
7323
7324echo "$as_me:$LINENO: checking for cosf in -lm" >&5
7325echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
7326if test "${ac_cv_lib_m_cosf+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7328else
7329 ac_check_lib_save_LIBS=$LIBS
7330LIBS="-lm $LIBS"
7331cat >conftest.$ac_ext <<_ACEOF
7332/* confdefs.h. */
7333_ACEOF
7334cat confdefs.h >>conftest.$ac_ext
7335cat >>conftest.$ac_ext <<_ACEOF
7336/* end confdefs.h. */
7337
7338/* Override any gcc2 internal prototype to avoid an error. */
7339#ifdef __cplusplus
7340extern "C"
7341#endif
7342/* We use char because int might match the return type of a gcc2
7343 builtin and then its argument prototype would still apply. */
7344char cosf ();
7345int
7346main ()
7347{
7348cosf ();
7349 ;
7350 return 0;
7351}
7352_ACEOF
7353rm -f conftest.$ac_objext conftest$ac_exeext
7354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7355 (eval $ac_link) 2>conftest.er1
7356 ac_status=$?
7357 grep -v '^ *+' conftest.er1 >conftest.err
7358 rm -f conftest.er1
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } &&
4c0c6b9f 7362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 (eval $ac_try) 2>&5
7365 ac_status=$?
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; } &&
7368 { ac_try='test -s conftest$ac_exeext'
7369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370 (eval $ac_try) 2>&5
7371 ac_status=$?
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); }; }; then
7374 ac_cv_lib_m_cosf=yes
7375else
7376 echo "$as_me: failed program was:" >&5
7377sed 's/^/| /' conftest.$ac_ext >&5
7378
7379ac_cv_lib_m_cosf=no
7380fi
7381rm -f conftest.err conftest.$ac_objext \
7382 conftest$ac_exeext conftest.$ac_ext
7383LIBS=$ac_check_lib_save_LIBS
7384fi
7385echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
7386echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
7387if test $ac_cv_lib_m_cosf = yes; then
7388
7389cat >>confdefs.h <<\_ACEOF
7390#define HAVE_COSF 1
7391_ACEOF
7392
7393fi
7394
7395echo "$as_me:$LINENO: checking for coshf in -lm" >&5
7396echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
7397if test "${ac_cv_lib_m_coshf+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7399else
7400 ac_check_lib_save_LIBS=$LIBS
7401LIBS="-lm $LIBS"
7402cat >conftest.$ac_ext <<_ACEOF
7403/* confdefs.h. */
7404_ACEOF
7405cat confdefs.h >>conftest.$ac_ext
7406cat >>conftest.$ac_ext <<_ACEOF
7407/* end confdefs.h. */
7408
7409/* Override any gcc2 internal prototype to avoid an error. */
7410#ifdef __cplusplus
7411extern "C"
7412#endif
7413/* We use char because int might match the return type of a gcc2
7414 builtin and then its argument prototype would still apply. */
7415char coshf ();
7416int
7417main ()
7418{
7419coshf ();
7420 ;
7421 return 0;
7422}
7423_ACEOF
7424rm -f conftest.$ac_objext conftest$ac_exeext
7425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7426 (eval $ac_link) 2>conftest.er1
7427 ac_status=$?
7428 grep -v '^ *+' conftest.er1 >conftest.err
7429 rm -f conftest.er1
7430 cat conftest.err >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); } &&
4c0c6b9f 7433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 (eval $ac_try) 2>&5
7436 ac_status=$?
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; } &&
7439 { ac_try='test -s conftest$ac_exeext'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441 (eval $ac_try) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; }; then
7445 ac_cv_lib_m_coshf=yes
7446else
7447 echo "$as_me: failed program was:" >&5
7448sed 's/^/| /' conftest.$ac_ext >&5
7449
7450ac_cv_lib_m_coshf=no
7451fi
7452rm -f conftest.err conftest.$ac_objext \
7453 conftest$ac_exeext conftest.$ac_ext
7454LIBS=$ac_check_lib_save_LIBS
7455fi
7456echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
7457echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
7458if test $ac_cv_lib_m_coshf = yes; then
7459
7460cat >>confdefs.h <<\_ACEOF
7461#define HAVE_COSHF 1
7462_ACEOF
7463
7464fi
7465
7466echo "$as_me:$LINENO: checking for expf in -lm" >&5
7467echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
7468if test "${ac_cv_lib_m_expf+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470else
7471 ac_check_lib_save_LIBS=$LIBS
7472LIBS="-lm $LIBS"
7473cat >conftest.$ac_ext <<_ACEOF
7474/* confdefs.h. */
7475_ACEOF
7476cat confdefs.h >>conftest.$ac_ext
7477cat >>conftest.$ac_ext <<_ACEOF
7478/* end confdefs.h. */
7479
7480/* Override any gcc2 internal prototype to avoid an error. */
7481#ifdef __cplusplus
7482extern "C"
7483#endif
7484/* We use char because int might match the return type of a gcc2
7485 builtin and then its argument prototype would still apply. */
7486char expf ();
7487int
7488main ()
7489{
7490expf ();
7491 ;
7492 return 0;
7493}
7494_ACEOF
7495rm -f conftest.$ac_objext conftest$ac_exeext
7496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7497 (eval $ac_link) 2>conftest.er1
7498 ac_status=$?
7499 grep -v '^ *+' conftest.er1 >conftest.err
7500 rm -f conftest.er1
7501 cat conftest.err >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } &&
4c0c6b9f 7504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 (eval $ac_try) 2>&5
7507 ac_status=$?
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; } &&
7510 { ac_try='test -s conftest$ac_exeext'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 (eval $ac_try) 2>&5
7513 ac_status=$?
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; }; then
7516 ac_cv_lib_m_expf=yes
7517else
7518 echo "$as_me: failed program was:" >&5
7519sed 's/^/| /' conftest.$ac_ext >&5
7520
7521ac_cv_lib_m_expf=no
7522fi
7523rm -f conftest.err conftest.$ac_objext \
7524 conftest$ac_exeext conftest.$ac_ext
7525LIBS=$ac_check_lib_save_LIBS
7526fi
7527echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
7528echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
7529if test $ac_cv_lib_m_expf = yes; then
7530
7531cat >>confdefs.h <<\_ACEOF
7532#define HAVE_EXPF 1
7533_ACEOF
7534
7535fi
7536
7537echo "$as_me:$LINENO: checking for floorf in -lm" >&5
7538echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
7539if test "${ac_cv_lib_m_floorf+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7541else
7542 ac_check_lib_save_LIBS=$LIBS
7543LIBS="-lm $LIBS"
7544cat >conftest.$ac_ext <<_ACEOF
7545/* confdefs.h. */
7546_ACEOF
7547cat confdefs.h >>conftest.$ac_ext
7548cat >>conftest.$ac_ext <<_ACEOF
7549/* end confdefs.h. */
7550
7551/* Override any gcc2 internal prototype to avoid an error. */
7552#ifdef __cplusplus
7553extern "C"
7554#endif
7555/* We use char because int might match the return type of a gcc2
7556 builtin and then its argument prototype would still apply. */
7557char floorf ();
7558int
7559main ()
7560{
7561floorf ();
7562 ;
7563 return 0;
7564}
7565_ACEOF
7566rm -f conftest.$ac_objext conftest$ac_exeext
7567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7568 (eval $ac_link) 2>conftest.er1
7569 ac_status=$?
7570 grep -v '^ *+' conftest.er1 >conftest.err
7571 rm -f conftest.er1
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
4c0c6b9f 7575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 (eval $ac_try) 2>&5
7578 ac_status=$?
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; } &&
7581 { ac_try='test -s conftest$ac_exeext'
7582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 (eval $ac_try) 2>&5
7584 ac_status=$?
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); }; }; then
7587 ac_cv_lib_m_floorf=yes
7588else
7589 echo "$as_me: failed program was:" >&5
7590sed 's/^/| /' conftest.$ac_ext >&5
7591
7592ac_cv_lib_m_floorf=no
7593fi
7594rm -f conftest.err conftest.$ac_objext \
7595 conftest$ac_exeext conftest.$ac_ext
7596LIBS=$ac_check_lib_save_LIBS
7597fi
7598echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
7599echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
7600if test $ac_cv_lib_m_floorf = yes; then
7601
7602cat >>confdefs.h <<\_ACEOF
7603#define HAVE_FLOORF 1
7604_ACEOF
7605
7606fi
7607
7608echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
7609echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
7610if test "${ac_cv_lib_m_frexpf+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7612else
7613 ac_check_lib_save_LIBS=$LIBS
7614LIBS="-lm $LIBS"
7615cat >conftest.$ac_ext <<_ACEOF
7616/* confdefs.h. */
7617_ACEOF
7618cat confdefs.h >>conftest.$ac_ext
7619cat >>conftest.$ac_ext <<_ACEOF
7620/* end confdefs.h. */
7621
7622/* Override any gcc2 internal prototype to avoid an error. */
7623#ifdef __cplusplus
7624extern "C"
7625#endif
7626/* We use char because int might match the return type of a gcc2
7627 builtin and then its argument prototype would still apply. */
7628char frexpf ();
7629int
7630main ()
7631{
7632frexpf ();
7633 ;
7634 return 0;
7635}
7636_ACEOF
7637rm -f conftest.$ac_objext conftest$ac_exeext
7638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7639 (eval $ac_link) 2>conftest.er1
7640 ac_status=$?
7641 grep -v '^ *+' conftest.er1 >conftest.err
7642 rm -f conftest.er1
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
4c0c6b9f 7646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648 (eval $ac_try) 2>&5
7649 ac_status=$?
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); }; } &&
7652 { ac_try='test -s conftest$ac_exeext'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 (eval $ac_try) 2>&5
7655 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; }; then
7658 ac_cv_lib_m_frexpf=yes
7659else
7660 echo "$as_me: failed program was:" >&5
7661sed 's/^/| /' conftest.$ac_ext >&5
7662
7663ac_cv_lib_m_frexpf=no
7664fi
7665rm -f conftest.err conftest.$ac_objext \
7666 conftest$ac_exeext conftest.$ac_ext
7667LIBS=$ac_check_lib_save_LIBS
7668fi
7669echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
7670echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
7671if test $ac_cv_lib_m_frexpf = yes; then
7672
7673cat >>confdefs.h <<\_ACEOF
7674#define HAVE_FREXPF 1
7675_ACEOF
7676
7677fi
7678
7679echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
7680echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
7681if test "${ac_cv_lib_m_hypotf+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7683else
7684 ac_check_lib_save_LIBS=$LIBS
7685LIBS="-lm $LIBS"
7686cat >conftest.$ac_ext <<_ACEOF
7687/* confdefs.h. */
7688_ACEOF
7689cat confdefs.h >>conftest.$ac_ext
7690cat >>conftest.$ac_ext <<_ACEOF
7691/* end confdefs.h. */
7692
7693/* Override any gcc2 internal prototype to avoid an error. */
7694#ifdef __cplusplus
7695extern "C"
7696#endif
7697/* We use char because int might match the return type of a gcc2
7698 builtin and then its argument prototype would still apply. */
7699char hypotf ();
7700int
7701main ()
7702{
7703hypotf ();
7704 ;
7705 return 0;
7706}
7707_ACEOF
7708rm -f conftest.$ac_objext conftest$ac_exeext
7709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7710 (eval $ac_link) 2>conftest.er1
7711 ac_status=$?
7712 grep -v '^ *+' conftest.er1 >conftest.err
7713 rm -f conftest.er1
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } &&
4c0c6b9f 7717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest$ac_exeext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 (eval $ac_try) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 ac_cv_lib_m_hypotf=yes
7730else
7731 echo "$as_me: failed program was:" >&5
7732sed 's/^/| /' conftest.$ac_ext >&5
7733
7734ac_cv_lib_m_hypotf=no
7735fi
7736rm -f conftest.err conftest.$ac_objext \
7737 conftest$ac_exeext conftest.$ac_ext
7738LIBS=$ac_check_lib_save_LIBS
7739fi
7740echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
7741echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
7742if test $ac_cv_lib_m_hypotf = yes; then
7743
7744cat >>confdefs.h <<\_ACEOF
7745#define HAVE_HYPOTF 1
7746_ACEOF
7747
7748fi
7749
7750echo "$as_me:$LINENO: checking for logf in -lm" >&5
7751echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
7752if test "${ac_cv_lib_m_logf+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7754else
7755 ac_check_lib_save_LIBS=$LIBS
7756LIBS="-lm $LIBS"
7757cat >conftest.$ac_ext <<_ACEOF
7758/* confdefs.h. */
7759_ACEOF
7760cat confdefs.h >>conftest.$ac_ext
7761cat >>conftest.$ac_ext <<_ACEOF
7762/* end confdefs.h. */
7763
7764/* Override any gcc2 internal prototype to avoid an error. */
7765#ifdef __cplusplus
7766extern "C"
7767#endif
7768/* We use char because int might match the return type of a gcc2
7769 builtin and then its argument prototype would still apply. */
7770char logf ();
7771int
7772main ()
7773{
7774logf ();
7775 ;
7776 return 0;
7777}
7778_ACEOF
7779rm -f conftest.$ac_objext conftest$ac_exeext
7780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7781 (eval $ac_link) 2>conftest.er1
7782 ac_status=$?
7783 grep -v '^ *+' conftest.er1 >conftest.err
7784 rm -f conftest.er1
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } &&
4c0c6b9f 7788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 (eval $ac_try) 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; } &&
7794 { ac_try='test -s conftest$ac_exeext'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 (eval $ac_try) 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; }; then
7800 ac_cv_lib_m_logf=yes
7801else
7802 echo "$as_me: failed program was:" >&5
7803sed 's/^/| /' conftest.$ac_ext >&5
7804
7805ac_cv_lib_m_logf=no
7806fi
7807rm -f conftest.err conftest.$ac_objext \
7808 conftest$ac_exeext conftest.$ac_ext
7809LIBS=$ac_check_lib_save_LIBS
7810fi
7811echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
7812echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
7813if test $ac_cv_lib_m_logf = yes; then
7814
7815cat >>confdefs.h <<\_ACEOF
7816#define HAVE_LOGF 1
7817_ACEOF
7818
7819fi
7820
7821echo "$as_me:$LINENO: checking for log10f in -lm" >&5
7822echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
7823if test "${ac_cv_lib_m_log10f+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7825else
7826 ac_check_lib_save_LIBS=$LIBS
7827LIBS="-lm $LIBS"
7828cat >conftest.$ac_ext <<_ACEOF
7829/* confdefs.h. */
7830_ACEOF
7831cat confdefs.h >>conftest.$ac_ext
7832cat >>conftest.$ac_ext <<_ACEOF
7833/* end confdefs.h. */
7834
7835/* Override any gcc2 internal prototype to avoid an error. */
7836#ifdef __cplusplus
7837extern "C"
7838#endif
7839/* We use char because int might match the return type of a gcc2
7840 builtin and then its argument prototype would still apply. */
7841char log10f ();
7842int
7843main ()
7844{
7845log10f ();
7846 ;
7847 return 0;
7848}
7849_ACEOF
7850rm -f conftest.$ac_objext conftest$ac_exeext
7851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7852 (eval $ac_link) 2>conftest.er1
7853 ac_status=$?
7854 grep -v '^ *+' conftest.er1 >conftest.err
7855 rm -f conftest.er1
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } &&
4c0c6b9f 7859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861 (eval $ac_try) 2>&5
7862 ac_status=$?
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; } &&
7865 { ac_try='test -s conftest$ac_exeext'
7866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867 (eval $ac_try) 2>&5
7868 ac_status=$?
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; }; then
7871 ac_cv_lib_m_log10f=yes
7872else
7873 echo "$as_me: failed program was:" >&5
7874sed 's/^/| /' conftest.$ac_ext >&5
7875
7876ac_cv_lib_m_log10f=no
7877fi
7878rm -f conftest.err conftest.$ac_objext \
7879 conftest$ac_exeext conftest.$ac_ext
7880LIBS=$ac_check_lib_save_LIBS
7881fi
7882echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
7883echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
7884if test $ac_cv_lib_m_log10f = yes; then
7885
7886cat >>confdefs.h <<\_ACEOF
7887#define HAVE_LOG10F 1
7888_ACEOF
7889
7890fi
7891
7892echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
7893echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
7894if test "${ac_cv_lib_m_nextafter+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896else
7897 ac_check_lib_save_LIBS=$LIBS
7898LIBS="-lm $LIBS"
7899cat >conftest.$ac_ext <<_ACEOF
7900/* confdefs.h. */
7901_ACEOF
7902cat confdefs.h >>conftest.$ac_ext
7903cat >>conftest.$ac_ext <<_ACEOF
7904/* end confdefs.h. */
7905
7906/* Override any gcc2 internal prototype to avoid an error. */
7907#ifdef __cplusplus
7908extern "C"
7909#endif
7910/* We use char because int might match the return type of a gcc2
7911 builtin and then its argument prototype would still apply. */
7912char nextafter ();
7913int
7914main ()
7915{
7916nextafter ();
7917 ;
7918 return 0;
7919}
7920_ACEOF
7921rm -f conftest.$ac_objext conftest$ac_exeext
7922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7923 (eval $ac_link) 2>conftest.er1
7924 ac_status=$?
7925 grep -v '^ *+' conftest.er1 >conftest.err
7926 rm -f conftest.er1
7927 cat conftest.err >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } &&
4c0c6b9f 7930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 (eval $ac_try) 2>&5
7933 ac_status=$?
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; } &&
7936 { ac_try='test -s conftest$ac_exeext'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 (eval $ac_try) 2>&5
7939 ac_status=$?
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7942 ac_cv_lib_m_nextafter=yes
7943else
7944 echo "$as_me: failed program was:" >&5
7945sed 's/^/| /' conftest.$ac_ext >&5
7946
7947ac_cv_lib_m_nextafter=no
7948fi
7949rm -f conftest.err conftest.$ac_objext \
7950 conftest$ac_exeext conftest.$ac_ext
7951LIBS=$ac_check_lib_save_LIBS
7952fi
7953echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
7954echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
7955if test $ac_cv_lib_m_nextafter = yes; then
7956
7957cat >>confdefs.h <<\_ACEOF
7958#define HAVE_NEXTAFTER 1
7959_ACEOF
7960
7961fi
7962
7963echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
7964echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
7965if test "${ac_cv_lib_m_nextafterf+set}" = set; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7967else
7968 ac_check_lib_save_LIBS=$LIBS
7969LIBS="-lm $LIBS"
7970cat >conftest.$ac_ext <<_ACEOF
7971/* confdefs.h. */
7972_ACEOF
7973cat confdefs.h >>conftest.$ac_ext
7974cat >>conftest.$ac_ext <<_ACEOF
7975/* end confdefs.h. */
7976
7977/* Override any gcc2 internal prototype to avoid an error. */
7978#ifdef __cplusplus
7979extern "C"
7980#endif
7981/* We use char because int might match the return type of a gcc2
7982 builtin and then its argument prototype would still apply. */
7983char nextafterf ();
7984int
7985main ()
7986{
7987nextafterf ();
7988 ;
7989 return 0;
7990}
7991_ACEOF
7992rm -f conftest.$ac_objext conftest$ac_exeext
7993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7994 (eval $ac_link) 2>conftest.er1
7995 ac_status=$?
7996 grep -v '^ *+' conftest.er1 >conftest.err
7997 rm -f conftest.er1
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } &&
4c0c6b9f 8001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 (eval $ac_try) 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; } &&
8007 { ac_try='test -s conftest$ac_exeext'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009 (eval $ac_try) 2>&5
8010 ac_status=$?
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; }; then
8013 ac_cv_lib_m_nextafterf=yes
8014else
8015 echo "$as_me: failed program was:" >&5
8016sed 's/^/| /' conftest.$ac_ext >&5
8017
8018ac_cv_lib_m_nextafterf=no
8019fi
8020rm -f conftest.err conftest.$ac_objext \
8021 conftest$ac_exeext conftest.$ac_ext
8022LIBS=$ac_check_lib_save_LIBS
8023fi
8024echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
8025echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
8026if test $ac_cv_lib_m_nextafterf = yes; then
8027
8028cat >>confdefs.h <<\_ACEOF
8029#define HAVE_NEXTAFTERF 1
8030_ACEOF
8031
8032fi
8033
a2a2059f
BD
8034echo "$as_me:$LINENO: checking for round in -lm" >&5
8035echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
8036if test "${ac_cv_lib_m_round+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8038else
8039 ac_check_lib_save_LIBS=$LIBS
8040LIBS="-lm $LIBS"
8041cat >conftest.$ac_ext <<_ACEOF
8042/* confdefs.h. */
8043_ACEOF
8044cat confdefs.h >>conftest.$ac_ext
8045cat >>conftest.$ac_ext <<_ACEOF
8046/* end confdefs.h. */
8047
8048/* Override any gcc2 internal prototype to avoid an error. */
8049#ifdef __cplusplus
8050extern "C"
8051#endif
8052/* We use char because int might match the return type of a gcc2
8053 builtin and then its argument prototype would still apply. */
453310d8
RS
8054char round ();
8055int
8056main ()
8057{
8058round ();
8059 ;
8060 return 0;
8061}
8062_ACEOF
8063rm -f conftest.$ac_objext conftest$ac_exeext
8064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065 (eval $ac_link) 2>conftest.er1
8066 ac_status=$?
8067 grep -v '^ *+' conftest.er1 >conftest.err
8068 rm -f conftest.er1
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
4c0c6b9f 8072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 (eval $ac_try) 2>&5
8075 ac_status=$?
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; } &&
8078 { ac_try='test -s conftest$ac_exeext'
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 (eval $ac_try) 2>&5
8081 ac_status=$?
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; }; then
8084 ac_cv_lib_m_round=yes
8085else
8086 echo "$as_me: failed program was:" >&5
8087sed 's/^/| /' conftest.$ac_ext >&5
8088
8089ac_cv_lib_m_round=no
8090fi
8091rm -f conftest.err conftest.$ac_objext \
8092 conftest$ac_exeext conftest.$ac_ext
8093LIBS=$ac_check_lib_save_LIBS
8094fi
8095echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
8096echo "${ECHO_T}$ac_cv_lib_m_round" >&6
8097if test $ac_cv_lib_m_round = yes; then
8098
8099cat >>confdefs.h <<\_ACEOF
8100#define HAVE_ROUND 1
8101_ACEOF
8102
8103fi
8104
8105echo "$as_me:$LINENO: checking for roundf in -lm" >&5
8106echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
8107if test "${ac_cv_lib_m_roundf+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8109else
8110 ac_check_lib_save_LIBS=$LIBS
8111LIBS="-lm $LIBS"
8112cat >conftest.$ac_ext <<_ACEOF
8113/* confdefs.h. */
8114_ACEOF
8115cat confdefs.h >>conftest.$ac_ext
8116cat >>conftest.$ac_ext <<_ACEOF
8117/* end confdefs.h. */
8118
8119/* Override any gcc2 internal prototype to avoid an error. */
8120#ifdef __cplusplus
8121extern "C"
8122#endif
8123/* We use char because int might match the return type of a gcc2
8124 builtin and then its argument prototype would still apply. */
8125char roundf ();
a2a2059f
BD
8126int
8127main ()
8128{
453310d8 8129roundf ();
a2a2059f
BD
8130 ;
8131 return 0;
8132}
8133_ACEOF
8134rm -f conftest.$ac_objext conftest$ac_exeext
8135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8136 (eval $ac_link) 2>conftest.er1
8137 ac_status=$?
8138 grep -v '^ *+' conftest.er1 >conftest.err
8139 rm -f conftest.er1
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } &&
4c0c6b9f 8143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a2a2059f
BD
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 (eval $ac_try) 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; } &&
8149 { ac_try='test -s conftest$ac_exeext'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 (eval $ac_try) 2>&5
8152 ac_status=$?
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
453310d8 8155 ac_cv_lib_m_roundf=yes
a2a2059f
BD
8156else
8157 echo "$as_me: failed program was:" >&5
8158sed 's/^/| /' conftest.$ac_ext >&5
8159
453310d8 8160ac_cv_lib_m_roundf=no
a2a2059f
BD
8161fi
8162rm -f conftest.err conftest.$ac_objext \
8163 conftest$ac_exeext conftest.$ac_ext
8164LIBS=$ac_check_lib_save_LIBS
8165fi
453310d8
RS
8166echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
8167echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
8168if test $ac_cv_lib_m_roundf = yes; then
a2a2059f
BD
8169
8170cat >>confdefs.h <<\_ACEOF
453310d8 8171#define HAVE_ROUNDF 1
a2a2059f
BD
8172_ACEOF
8173
8174fi
8175
453310d8
RS
8176echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
8177echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
8178if test "${ac_cv_lib_m_scalbnf+set}" = set; then
a2a2059f
BD
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8180else
8181 ac_check_lib_save_LIBS=$LIBS
8182LIBS="-lm $LIBS"
8183cat >conftest.$ac_ext <<_ACEOF
8184/* confdefs.h. */
8185_ACEOF
8186cat confdefs.h >>conftest.$ac_ext
8187cat >>conftest.$ac_ext <<_ACEOF
8188/* end confdefs.h. */
8189
8190/* Override any gcc2 internal prototype to avoid an error. */
8191#ifdef __cplusplus
8192extern "C"
8193#endif
8194/* We use char because int might match the return type of a gcc2
8195 builtin and then its argument prototype would still apply. */
453310d8 8196char scalbnf ();
a2a2059f
BD
8197int
8198main ()
8199{
453310d8 8200scalbnf ();
a2a2059f
BD
8201 ;
8202 return 0;
8203}
8204_ACEOF
8205rm -f conftest.$ac_objext conftest$ac_exeext
8206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8207 (eval $ac_link) 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
4c0c6b9f 8214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a2a2059f
BD
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 (eval $ac_try) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; } &&
8220 { ac_try='test -s conftest$ac_exeext'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 (eval $ac_try) 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
453310d8 8226 ac_cv_lib_m_scalbnf=yes
a2a2059f
BD
8227else
8228 echo "$as_me: failed program was:" >&5
8229sed 's/^/| /' conftest.$ac_ext >&5
8230
453310d8 8231ac_cv_lib_m_scalbnf=no
a2a2059f
BD
8232fi
8233rm -f conftest.err conftest.$ac_objext \
8234 conftest$ac_exeext conftest.$ac_ext
8235LIBS=$ac_check_lib_save_LIBS
8236fi
453310d8
RS
8237echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
8238echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
8239if test $ac_cv_lib_m_scalbnf = yes; then
a2a2059f
BD
8240
8241cat >>confdefs.h <<\_ACEOF
453310d8 8242#define HAVE_SCALBNF 1
a2a2059f
BD
8243_ACEOF
8244
8245fi
8246
453310d8
RS
8247echo "$as_me:$LINENO: checking for sinf in -lm" >&5
8248echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
8249if test "${ac_cv_lib_m_sinf+set}" = set; then
a9e7b9d3
PB
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8251else
8252 ac_check_lib_save_LIBS=$LIBS
8253LIBS="-lm $LIBS"
8254cat >conftest.$ac_ext <<_ACEOF
8255/* confdefs.h. */
8256_ACEOF
8257cat confdefs.h >>conftest.$ac_ext
8258cat >>conftest.$ac_ext <<_ACEOF
8259/* end confdefs.h. */
8260
8261/* Override any gcc2 internal prototype to avoid an error. */
8262#ifdef __cplusplus
8263extern "C"
8264#endif
8265/* We use char because int might match the return type of a gcc2
8266 builtin and then its argument prototype would still apply. */
453310d8 8267char sinf ();
a9e7b9d3
PB
8268int
8269main ()
8270{
453310d8 8271sinf ();
a9e7b9d3
PB
8272 ;
8273 return 0;
8274}
8275_ACEOF
8276rm -f conftest.$ac_objext conftest$ac_exeext
8277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8278 (eval $ac_link) 2>conftest.er1
8279 ac_status=$?
8280 grep -v '^ *+' conftest.er1 >conftest.err
8281 rm -f conftest.er1
8282 cat conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } &&
4c0c6b9f 8285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e7b9d3
PB
8286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287 (eval $ac_try) 2>&5
8288 ac_status=$?
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); }; } &&
8291 { ac_try='test -s conftest$ac_exeext'
8292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293 (eval $ac_try) 2>&5
8294 ac_status=$?
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); }; }; then
453310d8 8297 ac_cv_lib_m_sinf=yes
a9e7b9d3
PB
8298else
8299 echo "$as_me: failed program was:" >&5
8300sed 's/^/| /' conftest.$ac_ext >&5
8301
453310d8 8302ac_cv_lib_m_sinf=no
a9e7b9d3
PB
8303fi
8304rm -f conftest.err conftest.$ac_objext \
8305 conftest$ac_exeext conftest.$ac_ext
8306LIBS=$ac_check_lib_save_LIBS
8307fi
453310d8
RS
8308echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
8309echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
8310if test $ac_cv_lib_m_sinf = yes; then
a9e7b9d3
PB
8311
8312cat >>confdefs.h <<\_ACEOF
453310d8 8313#define HAVE_SINF 1
a9e7b9d3
PB
8314_ACEOF
8315
8316fi
8317
453310d8
RS
8318echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
8319echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
8320if test "${ac_cv_lib_m_sinhf+set}" = set; then
a9e7b9d3
PB
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8322else
8323 ac_check_lib_save_LIBS=$LIBS
8324LIBS="-lm $LIBS"
8325cat >conftest.$ac_ext <<_ACEOF
8326/* confdefs.h. */
8327_ACEOF
8328cat confdefs.h >>conftest.$ac_ext
8329cat >>conftest.$ac_ext <<_ACEOF
8330/* end confdefs.h. */
8331
8332/* Override any gcc2 internal prototype to avoid an error. */
8333#ifdef __cplusplus
8334extern "C"
8335#endif
8336/* We use char because int might match the return type of a gcc2
8337 builtin and then its argument prototype would still apply. */
453310d8 8338char sinhf ();
a9e7b9d3
PB
8339int
8340main ()
8341{
453310d8 8342sinhf ();
a9e7b9d3
PB
8343 ;
8344 return 0;
8345}
8346_ACEOF
8347rm -f conftest.$ac_objext conftest$ac_exeext
8348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8349 (eval $ac_link) 2>conftest.er1
8350 ac_status=$?
8351 grep -v '^ *+' conftest.er1 >conftest.err
8352 rm -f conftest.er1
8353 cat conftest.err >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } &&
4c0c6b9f 8356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e7b9d3
PB
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 (eval $ac_try) 2>&5
8359 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; } &&
8362 { ac_try='test -s conftest$ac_exeext'
8363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 (eval $ac_try) 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
453310d8 8368 ac_cv_lib_m_sinhf=yes
a9e7b9d3
PB
8369else
8370 echo "$as_me: failed program was:" >&5
8371sed 's/^/| /' conftest.$ac_ext >&5
8372
453310d8 8373ac_cv_lib_m_sinhf=no
a9e7b9d3
PB
8374fi
8375rm -f conftest.err conftest.$ac_objext \
8376 conftest$ac_exeext conftest.$ac_ext
8377LIBS=$ac_check_lib_save_LIBS
8378fi
453310d8
RS
8379echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
8380echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
8381if test $ac_cv_lib_m_sinhf = yes; then
a9e7b9d3
PB
8382
8383cat >>confdefs.h <<\_ACEOF
453310d8
RS
8384#define HAVE_SINHF 1
8385_ACEOF
8386
8387fi
8388
8389echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
8390echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
8391if test "${ac_cv_lib_m_sqrtf+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8393else
8394 ac_check_lib_save_LIBS=$LIBS
8395LIBS="-lm $LIBS"
8396cat >conftest.$ac_ext <<_ACEOF
8397/* confdefs.h. */
8398_ACEOF
8399cat confdefs.h >>conftest.$ac_ext
8400cat >>conftest.$ac_ext <<_ACEOF
8401/* end confdefs.h. */
8402
8403/* Override any gcc2 internal prototype to avoid an error. */
8404#ifdef __cplusplus
8405extern "C"
8406#endif
8407/* We use char because int might match the return type of a gcc2
8408 builtin and then its argument prototype would still apply. */
8409char sqrtf ();
8410int
8411main ()
8412{
8413sqrtf ();
8414 ;
8415 return 0;
8416}
8417_ACEOF
8418rm -f conftest.$ac_objext conftest$ac_exeext
8419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8420 (eval $ac_link) 2>conftest.er1
8421 ac_status=$?
8422 grep -v '^ *+' conftest.er1 >conftest.err
8423 rm -f conftest.er1
8424 cat conftest.err >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } &&
4c0c6b9f 8427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 (eval $ac_try) 2>&5
8430 ac_status=$?
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try='test -s conftest$ac_exeext'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 (eval $ac_try) 2>&5
8436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; }; then
8439 ac_cv_lib_m_sqrtf=yes
8440else
8441 echo "$as_me: failed program was:" >&5
8442sed 's/^/| /' conftest.$ac_ext >&5
8443
8444ac_cv_lib_m_sqrtf=no
8445fi
8446rm -f conftest.err conftest.$ac_objext \
8447 conftest$ac_exeext conftest.$ac_ext
8448LIBS=$ac_check_lib_save_LIBS
8449fi
8450echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
8451echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
8452if test $ac_cv_lib_m_sqrtf = yes; then
8453
8454cat >>confdefs.h <<\_ACEOF
8455#define HAVE_SQRTF 1
8456_ACEOF
8457
8458fi
8459
8460echo "$as_me:$LINENO: checking for tanf in -lm" >&5
8461echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
8462if test "${ac_cv_lib_m_tanf+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8464else
8465 ac_check_lib_save_LIBS=$LIBS
8466LIBS="-lm $LIBS"
8467cat >conftest.$ac_ext <<_ACEOF
8468/* confdefs.h. */
8469_ACEOF
8470cat confdefs.h >>conftest.$ac_ext
8471cat >>conftest.$ac_ext <<_ACEOF
8472/* end confdefs.h. */
8473
8474/* Override any gcc2 internal prototype to avoid an error. */
8475#ifdef __cplusplus
8476extern "C"
8477#endif
8478/* We use char because int might match the return type of a gcc2
8479 builtin and then its argument prototype would still apply. */
8480char tanf ();
8481int
8482main ()
8483{
8484tanf ();
8485 ;
8486 return 0;
8487}
8488_ACEOF
8489rm -f conftest.$ac_objext conftest$ac_exeext
8490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8491 (eval $ac_link) 2>conftest.er1
8492 ac_status=$?
8493 grep -v '^ *+' conftest.er1 >conftest.err
8494 rm -f conftest.er1
8495 cat conftest.err >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } &&
4c0c6b9f 8498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500 (eval $ac_try) 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest$ac_exeext'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 (eval $ac_try) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 ac_cv_lib_m_tanf=yes
8511else
8512 echo "$as_me: failed program was:" >&5
8513sed 's/^/| /' conftest.$ac_ext >&5
8514
8515ac_cv_lib_m_tanf=no
8516fi
8517rm -f conftest.err conftest.$ac_objext \
8518 conftest$ac_exeext conftest.$ac_ext
8519LIBS=$ac_check_lib_save_LIBS
8520fi
8521echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
8522echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
8523if test $ac_cv_lib_m_tanf = yes; then
8524
8525cat >>confdefs.h <<\_ACEOF
8526#define HAVE_TANF 1
8527_ACEOF
8528
8529fi
8530
8531echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
8532echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
8533if test "${ac_cv_lib_m_tanhf+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8535else
8536 ac_check_lib_save_LIBS=$LIBS
8537LIBS="-lm $LIBS"
8538cat >conftest.$ac_ext <<_ACEOF
8539/* confdefs.h. */
8540_ACEOF
8541cat confdefs.h >>conftest.$ac_ext
8542cat >>conftest.$ac_ext <<_ACEOF
8543/* end confdefs.h. */
8544
8545/* Override any gcc2 internal prototype to avoid an error. */
8546#ifdef __cplusplus
8547extern "C"
8548#endif
8549/* We use char because int might match the return type of a gcc2
8550 builtin and then its argument prototype would still apply. */
8551char tanhf ();
8552int
8553main ()
8554{
8555tanhf ();
8556 ;
8557 return 0;
8558}
8559_ACEOF
8560rm -f conftest.$ac_objext conftest$ac_exeext
8561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8562 (eval $ac_link) 2>conftest.er1
8563 ac_status=$?
8564 grep -v '^ *+' conftest.er1 >conftest.err
8565 rm -f conftest.er1
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } &&
4c0c6b9f 8569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 (eval $ac_try) 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; } &&
8575 { ac_try='test -s conftest$ac_exeext'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 (eval $ac_try) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8581 ac_cv_lib_m_tanhf=yes
8582else
8583 echo "$as_me: failed program was:" >&5
8584sed 's/^/| /' conftest.$ac_ext >&5
8585
8586ac_cv_lib_m_tanhf=no
8587fi
8588rm -f conftest.err conftest.$ac_objext \
8589 conftest$ac_exeext conftest.$ac_ext
8590LIBS=$ac_check_lib_save_LIBS
8591fi
8592echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
8593echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
8594if test $ac_cv_lib_m_tanhf = yes; then
8595
8596cat >>confdefs.h <<\_ACEOF
8597#define HAVE_TANHF 1
a9e7b9d3
PB
8598_ACEOF
8599
8600fi
8601
a2a2059f 8602
96b8a615
AJ
8603# Let the user override this
8604# Check whether --enable-cmath or --disable-cmath was given.
8605if test "${enable_cmath+set}" = set; then
8606 enableval="$enable_cmath"
8607 need_math=$enableval
8608fi;
8609if test "$need_math" = "yes"; then
8610 { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
8611echo "$as_me: Including complex math functions in libgfor" >&6;};
8612 extra_math_obj='$(gfor_cmath_obj)'
8613fi
8614
8615MATH_OBJ="$extra_math_obj"
8616
8617
8618# The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
8619# for struct timezone, as you might think. We also need to check how
8620# to call gettimeofday if we have it.
8621echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8622echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8623if test "${ac_cv_header_time+set}" = set; then
6de9cd9a
DN
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8625else
96b8a615
AJ
8626 cat >conftest.$ac_ext <<_ACEOF
8627/* confdefs.h. */
8628_ACEOF
8629cat confdefs.h >>conftest.$ac_ext
8630cat >>conftest.$ac_ext <<_ACEOF
8631/* end confdefs.h. */
8632#include <sys/types.h>
8633#include <sys/time.h>
8634#include <time.h>
8635
8636int
8637main ()
8638{
8639if ((struct tm *) 0)
8640return 0;
8641 ;
8642 return 0;
8643}
8644_ACEOF
8645rm -f conftest.$ac_objext
8646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8647 (eval $ac_compile) 2>conftest.er1
8648 ac_status=$?
8649 grep -v '^ *+' conftest.er1 >conftest.err
8650 rm -f conftest.er1
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } &&
4c0c6b9f 8654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 (eval $ac_try) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; } &&
8660 { ac_try='test -s conftest.$ac_objext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 (eval $ac_try) 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_cv_header_time=yes
8667else
8668 echo "$as_me: failed program was:" >&5
8669sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 8670
96b8a615 8671ac_cv_header_time=no
6de9cd9a 8672fi
96b8a615 8673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 8674fi
96b8a615
AJ
8675echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8676echo "${ECHO_T}$ac_cv_header_time" >&6
8677if test $ac_cv_header_time = yes; then
6de9cd9a 8678
96b8a615
AJ
8679cat >>confdefs.h <<\_ACEOF
8680#define TIME_WITH_SYS_TIME 1
8681_ACEOF
6de9cd9a 8682
6de9cd9a
DN
8683fi
8684
6de9cd9a 8685
96b8a615
AJ
8686
8687for ac_func in gettimeofday
8688do
8689as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8690echo "$as_me:$LINENO: checking for $ac_func" >&5
8691echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8692if eval "test \"\${$as_ac_var+set}\" = set"; then
6de9cd9a
DN
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8694else
96b8a615
AJ
8695 cat >conftest.$ac_ext <<_ACEOF
8696/* confdefs.h. */
8697_ACEOF
8698cat confdefs.h >>conftest.$ac_ext
8699cat >>conftest.$ac_ext <<_ACEOF
8700/* end confdefs.h. */
8701/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8703#define $ac_func innocuous_$ac_func
8704
8705/* System header to define __stub macros and hopefully few prototypes,
8706 which can conflict with char $ac_func (); below.
8707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8708 <limits.h> exists even on freestanding compilers. */
8709
8710#ifdef __STDC__
8711# include <limits.h>
8712#else
8713# include <assert.h>
8714#endif
8715
8716#undef $ac_func
8717
8718/* Override any gcc2 internal prototype to avoid an error. */
8719#ifdef __cplusplus
8720extern "C"
8721{
8722#endif
8723/* We use char because int might match the return type of a gcc2
8724 builtin and then its argument prototype would still apply. */
8725char $ac_func ();
8726/* The GNU C library defines this for functions which it implements
8727 to always fail with ENOSYS. Some functions are actually named
8728 something starting with __ and the normal name is an alias. */
8729#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8730choke me
8731#else
8732char (*f) () = $ac_func;
8733#endif
8734#ifdef __cplusplus
8735}
8736#endif
8737
8738int
8739main ()
8740{
8741return f != $ac_func;
8742 ;
8743 return 0;
8744}
8745_ACEOF
8746rm -f conftest.$ac_objext conftest$ac_exeext
8747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8748 (eval $ac_link) 2>conftest.er1
8749 ac_status=$?
8750 grep -v '^ *+' conftest.er1 >conftest.err
8751 rm -f conftest.er1
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } &&
4c0c6b9f 8755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757 (eval $ac_try) 2>&5
8758 ac_status=$?
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; } &&
8761 { ac_try='test -s conftest$ac_exeext'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 (eval $ac_try) 2>&5
8764 ac_status=$?
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
8767 eval "$as_ac_var=yes"
6de9cd9a 8768else
96b8a615
AJ
8769 echo "$as_me: failed program was:" >&5
8770sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 8771
96b8a615 8772eval "$as_ac_var=no"
6de9cd9a 8773fi
96b8a615
AJ
8774rm -f conftest.err conftest.$ac_objext \
8775 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 8776fi
96b8a615
AJ
8777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8778echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8779if test `eval echo '${'$as_ac_var'}'` = yes; then
8780 cat >>confdefs.h <<_ACEOF
8781#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8782_ACEOF
6de9cd9a
DN
8783
8784fi
6de9cd9a
DN
8785done
8786
96b8a615
AJ
8787 if test "$ac_cv_func_gettimeofday" = yes; then
8788 echo "$as_me:$LINENO: checking for struct timezone" >&5
8789echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
8790if test "${gfor_cv_struct_timezone+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792else
8793 cat >conftest.$ac_ext <<_ACEOF
8794/* confdefs.h. */
8795_ACEOF
8796cat confdefs.h >>conftest.$ac_ext
8797cat >>conftest.$ac_ext <<_ACEOF
8798/* end confdefs.h. */
8799#include <sys/time.h>
8800int
8801main ()
8802{
8803struct timezone tz;
8804 ;
8805 return 0;
8806}
8807_ACEOF
8808rm -f conftest.$ac_objext
8809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8810 (eval $ac_compile) 2>conftest.er1
8811 ac_status=$?
8812 grep -v '^ *+' conftest.er1 >conftest.err
8813 rm -f conftest.er1
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } &&
4c0c6b9f 8817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 (eval $ac_try) 2>&5
8820 ac_status=$?
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; } &&
8823 { ac_try='test -s conftest.$ac_objext'
8824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8825 (eval $ac_try) 2>&5
8826 ac_status=$?
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; }; then
8829 gfor_cv_struct_timezone=yes
6de9cd9a 8830else
96b8a615
AJ
8831 echo "$as_me: failed program was:" >&5
8832sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 8833
96b8a615 8834gfor_cv_struct_timezone=no
6de9cd9a 8835fi
96b8a615
AJ
8836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8837fi
8838echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
8839echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
8840 if test $gfor_cv_struct_timezone = yes; then
8841 if test "$cross_compiling" = yes; then
8842 gfor_have_struct_timezone=yes
6de9cd9a 8843else
96b8a615
AJ
8844 cat >conftest.$ac_ext <<_ACEOF
8845/* confdefs.h. */
8846_ACEOF
8847cat confdefs.h >>conftest.$ac_ext
8848cat >>conftest.$ac_ext <<_ACEOF
8849/* end confdefs.h. */
6de9cd9a 8850
96b8a615
AJ
8851#ifdef TIME_WITH_SYS_TIME
8852#include <sys/time.h>
8853#include <time.h>
8854#else
8855#ifdef HAVE_SYS_TIME_H
8856#include <sys/time.h>
8857#else
8858#include <time.h>
8859#endif
8860#endif
8861main ()
8862{
8863 struct timeval time;
8864 struct timezone dummy;
8865 if (gettimeofday (&time, &dummy))
8866 exit (1);
8867 else
8868 exit (0);
8869}
8870_ACEOF
8871rm -f conftest$ac_exeext
8872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8873 (eval $ac_link) 2>&5
6de9cd9a
DN
8874 ac_status=$?
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
8876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 (eval $ac_try) 2>&5
6de9cd9a
DN
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
8881 (exit $ac_status); }; }; then
8882 gfor_have_struct_timezone=yes
6de9cd9a 8883else
96b8a615
AJ
8884 echo "$as_me: program exited with status $ac_status" >&5
8885echo "$as_me: failed program was:" >&5
8886sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 8887
96b8a615
AJ
8888( exit $ac_status )
8889gfor_have_struct_timezone=no
8890fi
8891rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8892fi
8893 if test $gfor_have_struct_timezone = yes; then
6de9cd9a 8894
96b8a615
AJ
8895cat >>confdefs.h <<\_ACEOF
8896#define HAVE_TIMEZONE 1
8897_ACEOF
6de9cd9a 8898
96b8a615
AJ
8899 fi
8900 fi
8901
8902 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
8903echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
8904if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8906else
8907 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
8908/* confdefs.h. */
8909_ACEOF
8910cat confdefs.h >>conftest.$ac_ext
8911cat >>conftest.$ac_ext <<_ACEOF
8912/* end confdefs.h. */
8913
96b8a615
AJ
8914#ifdef TIME_WITH_SYS_TIME
8915#include <sys/time.h>
8916#include <time.h>
8917#else
8918#ifdef HAVE_SYS_TIME_H
8919#include <sys/time.h>
8920#else
8921#include <time.h>
8922#endif
8923#endif
8924
6de9cd9a
DN
8925int
8926main ()
8927{
8928
96b8a615
AJ
8929 struct timeval time;
8930#ifdef HAVE_TIMEZONE
8931 struct timezone dummy;
8932#define DUMMY &dummy
8933#else
8934#define DUMMY NULL
8935#endif
8936 gettimeofday (&time, DUMMY);
6de9cd9a
DN
8937 ;
8938 return 0;
8939}
8940_ACEOF
8941rm -f conftest.$ac_objext conftest$ac_exeext
8942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8943 (eval $ac_link) 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
4c0c6b9f 8950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 (eval $ac_try) 2>&5
8953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try='test -s conftest$ac_exeext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
96b8a615 8962 emacs_cv_gettimeofday_two_arguments=yes
6de9cd9a
DN
8963else
8964 echo "$as_me: failed program was:" >&5
8965sed 's/^/| /' conftest.$ac_ext >&5
8966
96b8a615 8967emacs_cv_gettimeofday_two_arguments=no
6de9cd9a
DN
8968fi
8969rm -f conftest.err conftest.$ac_objext \
8970 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 8971fi
96b8a615
AJ
8972echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
8973echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
8974 if test $emacs_cv_gettimeofday_two_arguments = no; then
6de9cd9a 8975
96b8a615
AJ
8976cat >>confdefs.h <<\_ACEOF
8977#define GETTIMEOFDAY_ONE_ARGUMENT 1
8978_ACEOF
6de9cd9a 8979
96b8a615
AJ
8980 fi
8981 fi
6de9cd9a 8982
6de9cd9a
DN
8983cat >confcache <<\_ACEOF
8984# This file is a shell script that caches the results of configure
8985# tests run on this system so they can be shared between configure
8986# scripts and configure runs, see configure's option --config-cache.
8987# It is not useful on other systems. If it contains results you don't
8988# want to keep, you may remove or edit it.
8989#
8990# config.status only pays attention to the cache file if you give it
8991# the --recheck option to rerun configure.
8992#
8993# `ac_cv_env_foo' variables (set or unset) will be overridden when
8994# loading this file, other *unset* `ac_cv_foo' will be assigned the
8995# following values.
8996
8997_ACEOF
8998
8999# The following way of writing the cache mishandles newlines in values,
9000# but we know of no workaround that is simple, portable, and efficient.
9001# So, don't put newlines in cache variables' values.
9002# Ultrix sh set writes to stderr and can't be redirected directly,
9003# and sets the high bit in the cache file unless we assign to the vars.
9004{
9005 (set) 2>&1 |
9006 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9007 *ac_space=\ *)
9008 # `set' does not quote correctly, so add quotes (double-quote
9009 # substitution turns \\\\ into \\, and sed turns \\ into \).
9010 sed -n \
9011 "s/'/'\\\\''/g;
9012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9013 ;;
9014 *)
9015 # `set' quotes correctly as required by POSIX, so do not add quotes.
9016 sed -n \
9017 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9018 ;;
9019 esac;
9020} |
9021 sed '
9022 t clear
9023 : clear
9024 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9025 t end
9026 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9027 : end' >>confcache
9028if diff $cache_file confcache >/dev/null 2>&1; then :; else
9029 if test -w $cache_file; then
9030 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9031 cat confcache >$cache_file
9032 else
9033 echo "not updating unwritable cache $cache_file"
9034 fi
9035fi
9036rm -f confcache
9037
96b8a615
AJ
9038if test ${multilib} = yes; then
9039 multilib_arg="--enable-multilib"
6de9cd9a 9040else
96b8a615 9041 multilib_arg=
6de9cd9a 9042fi
6de9cd9a 9043
96b8a615 9044# Write our Makefile.
6de9cd9a 9045 ac_config_files="$ac_config_files Makefile"
96b8a615 9046
6de9cd9a
DN
9047cat >confcache <<\_ACEOF
9048# This file is a shell script that caches the results of configure
9049# tests run on this system so they can be shared between configure
9050# scripts and configure runs, see configure's option --config-cache.
9051# It is not useful on other systems. If it contains results you don't
9052# want to keep, you may remove or edit it.
9053#
9054# config.status only pays attention to the cache file if you give it
9055# the --recheck option to rerun configure.
9056#
9057# `ac_cv_env_foo' variables (set or unset) will be overridden when
9058# loading this file, other *unset* `ac_cv_foo' will be assigned the
9059# following values.
9060
9061_ACEOF
9062
9063# The following way of writing the cache mishandles newlines in values,
9064# but we know of no workaround that is simple, portable, and efficient.
9065# So, don't put newlines in cache variables' values.
9066# Ultrix sh set writes to stderr and can't be redirected directly,
9067# and sets the high bit in the cache file unless we assign to the vars.
9068{
9069 (set) 2>&1 |
9070 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9071 *ac_space=\ *)
9072 # `set' does not quote correctly, so add quotes (double-quote
9073 # substitution turns \\\\ into \\, and sed turns \\ into \).
9074 sed -n \
9075 "s/'/'\\\\''/g;
9076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9077 ;;
9078 *)
9079 # `set' quotes correctly as required by POSIX, so do not add quotes.
9080 sed -n \
9081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9082 ;;
9083 esac;
9084} |
9085 sed '
9086 t clear
9087 : clear
9088 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9089 t end
9090 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9091 : end' >>confcache
9092if diff $cache_file confcache >/dev/null 2>&1; then :; else
9093 if test -w $cache_file; then
9094 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9095 cat confcache >$cache_file
9096 else
9097 echo "not updating unwritable cache $cache_file"
9098 fi
9099fi
9100rm -f confcache
9101
9102test "x$prefix" = xNONE && prefix=$ac_default_prefix
9103# Let make expand exec_prefix.
9104test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9105
9106# VPATH may cause trouble with some makes, so we remove $(srcdir),
9107# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9108# trailing colons and then remove the whole line if VPATH becomes empty
9109# (actually we leave an empty line to preserve line numbers).
9110if test "x$srcdir" = x.; then
9111 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9112s/:*\$(srcdir):*/:/;
9113s/:*\${srcdir}:*/:/;
9114s/:*@srcdir@:*/:/;
9115s/^\([^=]*=[ ]*\):*/\1/;
9116s/:*$//;
9117s/^[^=]*=[ ]*$//;
9118}'
9119fi
9120
9121DEFS=-DHAVE_CONFIG_H
9122
9123ac_libobjs=
9124ac_ltlibobjs=
9125for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9126 # 1. Remove the extension, and $U if already installed.
9127 ac_i=`echo "$ac_i" |
9128 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9129 # 2. Add them.
9130 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9131 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9132done
9133LIBOBJS=$ac_libobjs
9134
9135LTLIBOBJS=$ac_ltlibobjs
9136
9137
9138if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9139 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9140Usually this means the macro was only invoked conditionally." >&5
9141echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9142Usually this means the macro was only invoked conditionally." >&2;}
9143 { (exit 1); exit 1; }; }
9144fi
6de9cd9a
DN
9145
9146: ${CONFIG_STATUS=./config.status}
9147ac_clean_files_save=$ac_clean_files
9148ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9149{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9150echo "$as_me: creating $CONFIG_STATUS" >&6;}
9151cat >$CONFIG_STATUS <<_ACEOF
9152#! $SHELL
9153# Generated by $as_me.
9154# Run this file to recreate the current configuration.
9155# Compiler output produced by configure, useful for debugging
9156# configure, is in config.log if it exists.
9157
9158debug=false
9159ac_cs_recheck=false
9160ac_cs_silent=false
9161SHELL=\${CONFIG_SHELL-$SHELL}
9162_ACEOF
9163
9164cat >>$CONFIG_STATUS <<\_ACEOF
9165## --------------------- ##
9166## M4sh Initialization. ##
9167## --------------------- ##
9168
9169# Be Bourne compatible
9170if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9171 emulate sh
9172 NULLCMD=:
9173 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9174 # is contrary to our usage. Disable this feature.
9175 alias -g '${1+"$@"}'='"$@"'
9176elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9177 set -o posix
9178fi
9179DUALCASE=1; export DUALCASE # for MKS sh
9180
9181# Support unset when possible.
9182if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9183 as_unset=unset
9184else
9185 as_unset=false
9186fi
9187
9188
9189# Work around bugs in pre-3.0 UWIN ksh.
9190$as_unset ENV MAIL MAILPATH
9191PS1='$ '
9192PS2='> '
9193PS4='+ '
9194
9195# NLS nuisances.
9196for as_var in \
9197 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9198 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9199 LC_TELEPHONE LC_TIME
9200do
9201 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9202 eval $as_var=C; export $as_var
9203 else
9204 $as_unset $as_var
9205 fi
9206done
9207
9208# Required to use basename.
9209if expr a : '\(a\)' >/dev/null 2>&1; then
9210 as_expr=expr
9211else
9212 as_expr=false
9213fi
9214
9215if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9216 as_basename=basename
9217else
9218 as_basename=false
9219fi
9220
9221
9222# Name of the executable.
9223as_me=`$as_basename "$0" ||
9224$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9225 X"$0" : 'X\(//\)$' \| \
9226 X"$0" : 'X\(/\)$' \| \
9227 . : '\(.\)' 2>/dev/null ||
9228echo X/"$0" |
9229 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9230 /^X\/\(\/\/\)$/{ s//\1/; q; }
9231 /^X\/\(\/\).*/{ s//\1/; q; }
9232 s/.*/./; q'`
9233
9234
9235# PATH needs CR, and LINENO needs CR and PATH.
9236# Avoid depending upon Character Ranges.
9237as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9238as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9239as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9240as_cr_digits='0123456789'
9241as_cr_alnum=$as_cr_Letters$as_cr_digits
9242
9243# The user is always right.
9244if test "${PATH_SEPARATOR+set}" != set; then
9245 echo "#! /bin/sh" >conf$$.sh
9246 echo "exit 0" >>conf$$.sh
9247 chmod +x conf$$.sh
9248 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9249 PATH_SEPARATOR=';'
9250 else
9251 PATH_SEPARATOR=:
9252 fi
9253 rm -f conf$$.sh
9254fi
9255
9256
9257 as_lineno_1=$LINENO
9258 as_lineno_2=$LINENO
9259 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9260 test "x$as_lineno_1" != "x$as_lineno_2" &&
9261 test "x$as_lineno_3" = "x$as_lineno_2" || {
9262 # Find who we are. Look in the path if we contain no path at all
9263 # relative or not.
9264 case $0 in
9265 *[\\/]* ) as_myself=$0 ;;
9266 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9267for as_dir in $PATH
9268do
9269 IFS=$as_save_IFS
9270 test -z "$as_dir" && as_dir=.
9271 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9272done
9273
9274 ;;
9275 esac
9276 # We did not find ourselves, most probably we were run as `sh COMMAND'
9277 # in which case we are not to be found in the path.
9278 if test "x$as_myself" = x; then
9279 as_myself=$0
9280 fi
9281 if test ! -f "$as_myself"; then
9282 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9283echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9284 { (exit 1); exit 1; }; }
9285 fi
9286 case $CONFIG_SHELL in
9287 '')
9288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9290do
9291 IFS=$as_save_IFS
9292 test -z "$as_dir" && as_dir=.
9293 for as_base in sh bash ksh sh5; do
9294 case $as_dir in
9295 /*)
9296 if ("$as_dir/$as_base" -c '
9297 as_lineno_1=$LINENO
9298 as_lineno_2=$LINENO
9299 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9300 test "x$as_lineno_1" != "x$as_lineno_2" &&
9301 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9302 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9303 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9304 CONFIG_SHELL=$as_dir/$as_base
9305 export CONFIG_SHELL
9306 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9307 fi;;
9308 esac
9309 done
9310done
9311;;
9312 esac
9313
9314 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9315 # uniformly replaced by the line number. The first 'sed' inserts a
9316 # line-number line before each line; the second 'sed' does the real
9317 # work. The second script uses 'N' to pair each line-number line
9318 # with the numbered line, and appends trailing '-' during
9319 # substitution so that $LINENO is not a special case at line end.
9320 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9321 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9322 sed '=' <$as_myself |
9323 sed '
9324 N
9325 s,$,-,
9326 : loop
9327 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9328 t loop
9329 s,-$,,
9330 s,^['$as_cr_digits']*\n,,
9331 ' >$as_me.lineno &&
9332 chmod +x $as_me.lineno ||
9333 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9334echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9335 { (exit 1); exit 1; }; }
9336
9337 # Don't try to exec as it changes $[0], causing all sort of problems
9338 # (the dirname of $[0] is not the place where we might find the
9339 # original and so on. Autoconf is especially sensible to this).
9340 . ./$as_me.lineno
9341 # Exit status is that of the last command.
9342 exit
9343}
9344
9345
9346case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9347 *c*,-n*) ECHO_N= ECHO_C='
9348' ECHO_T=' ' ;;
9349 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9350 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9351esac
9352
9353if expr a : '\(a\)' >/dev/null 2>&1; then
9354 as_expr=expr
9355else
9356 as_expr=false
9357fi
9358
9359rm -f conf$$ conf$$.exe conf$$.file
9360echo >conf$$.file
9361if ln -s conf$$.file conf$$ 2>/dev/null; then
9362 # We could just check for DJGPP; but this test a) works b) is more generic
9363 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9364 if test -f conf$$.exe; then
9365 # Don't use ln at all; we don't have any links
9366 as_ln_s='cp -p'
9367 else
9368 as_ln_s='ln -s'
9369 fi
9370elif ln conf$$.file conf$$ 2>/dev/null; then
9371 as_ln_s=ln
9372else
9373 as_ln_s='cp -p'
9374fi
9375rm -f conf$$ conf$$.exe conf$$.file
9376
9377if mkdir -p . 2>/dev/null; then
9378 as_mkdir_p=:
9379else
9380 test -d ./-p && rmdir ./-p
9381 as_mkdir_p=false
9382fi
9383
9384as_executable_p="test -f"
9385
9386# Sed expression to map a string onto a valid CPP name.
9387as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9388
9389# Sed expression to map a string onto a valid variable name.
9390as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9391
9392
9393# IFS
9394# We need space, tab and new line, in precisely that order.
9395as_nl='
9396'
9397IFS=" $as_nl"
9398
9399# CDPATH.
9400$as_unset CDPATH
9401
9402exec 6>&1
9403
9404# Open the log real soon, to keep \$[0] and so on meaningful, and to
9405# report actual input values of CONFIG_FILES etc. instead of their
9406# values after options handling. Logging --version etc. is OK.
9407exec 5>>config.log
9408{
9409 echo
9410 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9411## Running $as_me. ##
9412_ASBOX
9413} >&5
9414cat >&5 <<_CSEOF
9415
9416This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
9417generated by GNU Autoconf 2.59. Invocation command line was
9418
9419 CONFIG_FILES = $CONFIG_FILES
9420 CONFIG_HEADERS = $CONFIG_HEADERS
9421 CONFIG_LINKS = $CONFIG_LINKS
9422 CONFIG_COMMANDS = $CONFIG_COMMANDS
9423 $ $0 $@
9424
9425_CSEOF
9426echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9427echo >&5
9428_ACEOF
9429
9430# Files that config.status was made for.
9431if test -n "$ac_config_files"; then
9432 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9433fi
9434
9435if test -n "$ac_config_headers"; then
9436 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9437fi
9438
9439if test -n "$ac_config_links"; then
9440 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9441fi
9442
9443if test -n "$ac_config_commands"; then
9444 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9445fi
9446
9447cat >>$CONFIG_STATUS <<\_ACEOF
9448
9449ac_cs_usage="\
9450\`$as_me' instantiates files from templates according to the
9451current configuration.
9452
9453Usage: $0 [OPTIONS] [FILE]...
9454
9455 -h, --help print this help, then exit
9456 -V, --version print version number, then exit
9457 -q, --quiet do not print progress messages
9458 -d, --debug don't remove temporary files
9459 --recheck update $as_me by reconfiguring in the same conditions
9460 --file=FILE[:TEMPLATE]
9461 instantiate the configuration file FILE
9462 --header=FILE[:TEMPLATE]
9463 instantiate the configuration header FILE
9464
9465Configuration files:
9466$config_files
9467
9468Configuration headers:
9469$config_headers
9470
9471Configuration commands:
9472$config_commands
9473
9474Report bugs to <bug-autoconf@gnu.org>."
9475_ACEOF
9476
9477cat >>$CONFIG_STATUS <<_ACEOF
9478ac_cs_version="\\
9479GNU Fortran Runtime Library config.status 0.2
9480configured by $0, generated by GNU Autoconf 2.59,
9481 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9482
9483Copyright (C) 2003 Free Software Foundation, Inc.
9484This config.status script is free software; the Free Software Foundation
9485gives unlimited permission to copy, distribute and modify it."
9486srcdir=$srcdir
9487INSTALL="$INSTALL"
9488_ACEOF
9489
9490cat >>$CONFIG_STATUS <<\_ACEOF
9491# If no file are specified by the user, then we need to provide default
9492# value. By we need to know if files were specified by the user.
9493ac_need_defaults=:
9494while test $# != 0
9495do
9496 case $1 in
9497 --*=*)
9498 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9499 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9500 ac_shift=:
9501 ;;
9502 -*)
9503 ac_option=$1
9504 ac_optarg=$2
9505 ac_shift=shift
9506 ;;
9507 *) # This is not an option, so the user has probably given explicit
9508 # arguments.
9509 ac_option=$1
9510 ac_need_defaults=false;;
9511 esac
9512
9513 case $ac_option in
9514 # Handling of the options.
9515_ACEOF
9516cat >>$CONFIG_STATUS <<\_ACEOF
9517 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9518 ac_cs_recheck=: ;;
9519 --version | --vers* | -V )
9520 echo "$ac_cs_version"; exit 0 ;;
9521 --he | --h)
9522 # Conflict between --help and --header
9523 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9524Try \`$0 --help' for more information." >&5
9525echo "$as_me: error: ambiguous option: $1
9526Try \`$0 --help' for more information." >&2;}
9527 { (exit 1); exit 1; }; };;
9528 --help | --hel | -h )
9529 echo "$ac_cs_usage"; exit 0 ;;
9530 --debug | --d* | -d )
9531 debug=: ;;
9532 --file | --fil | --fi | --f )
9533 $ac_shift
9534 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9535 ac_need_defaults=false;;
9536 --header | --heade | --head | --hea )
9537 $ac_shift
9538 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9539 ac_need_defaults=false;;
9540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9541 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9542 ac_cs_silent=: ;;
9543
9544 # This is an error.
9545 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9546Try \`$0 --help' for more information." >&5
9547echo "$as_me: error: unrecognized option: $1
9548Try \`$0 --help' for more information." >&2;}
9549 { (exit 1); exit 1; }; } ;;
9550
9551 *) ac_config_targets="$ac_config_targets $1" ;;
9552
9553 esac
9554 shift
9555done
9556
9557ac_configure_extra_args=
9558
9559if $ac_cs_silent; then
9560 exec 6>/dev/null
9561 ac_configure_extra_args="$ac_configure_extra_args --silent"
9562fi
9563
9564_ACEOF
9565cat >>$CONFIG_STATUS <<_ACEOF
9566if \$ac_cs_recheck; then
9567 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9568 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9569fi
9570
9571_ACEOF
9572
9573cat >>$CONFIG_STATUS <<_ACEOF
9574#
9575# INIT-COMMANDS section.
9576#
9577
96b8a615
AJ
9578
9579srcdir="$srcdir"
9580host="$host"
9581target="$target"
9582with_multisubdir="$with_multisubdir"
9583with_multisrctop="$with_multisrctop"
9584with_target_subdir="$with_target_subdir"
9585ac_configure_args="${multilib_arg} ${ac_configure_args}"
9586multi_basedir="$multi_basedir"
9587CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9588CC="$CC"
6de9cd9a
DN
9589
9590_ACEOF
9591
9592
9593
9594cat >>$CONFIG_STATUS <<\_ACEOF
9595for ac_config_target in $ac_config_targets
9596do
9597 case "$ac_config_target" in
9598 # Handling of arguments.
9599 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
96b8a615 9600 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6de9cd9a
DN
9601 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9602 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9603echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9604 { (exit 1); exit 1; }; };;
9605 esac
9606done
9607
9608# If the user did not use the arguments to specify the items to instantiate,
9609# then the envvar interface is used. Set only those that are not.
9610# We use the long form for the default assignment because of an extremely
9611# bizarre bug on SunOS 4.1.3.
9612if $ac_need_defaults; then
9613 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9614 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9615 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9616fi
9617
9618# Have a temporary directory for convenience. Make it in the build tree
9619# simply because there is no reason to put it here, and in addition,
9620# creating and moving files from /tmp can sometimes cause problems.
9621# Create a temporary directory, and hook for its removal unless debugging.
9622$debug ||
9623{
9624 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9625 trap '{ (exit 1); exit 1; }' 1 2 13 15
9626}
9627
9628# Create a (secure) tmp directory for tmp files.
9629
9630{
9631 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9632 test -n "$tmp" && test -d "$tmp"
9633} ||
9634{
9635 tmp=./confstat$$-$RANDOM
9636 (umask 077 && mkdir $tmp)
9637} ||
9638{
9639 echo "$me: cannot create a temporary directory in ." >&2
9640 { (exit 1); exit 1; }
9641}
9642
9643_ACEOF
9644
9645cat >>$CONFIG_STATUS <<_ACEOF
9646
9647#
9648# CONFIG_FILES section.
9649#
9650
9651# No need to generate the scripts if there are no CONFIG_FILES.
9652# This happens for instance when ./config.status config.h
9653if test -n "\$CONFIG_FILES"; then
9654 # Protect against being on the right side of a sed subst in config.status.
9655 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9656 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9657s,@SHELL@,$SHELL,;t t
9658s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9659s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9660s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9661s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9662s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9663s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9664s,@exec_prefix@,$exec_prefix,;t t
9665s,@prefix@,$prefix,;t t
9666s,@program_transform_name@,$program_transform_name,;t t
9667s,@bindir@,$bindir,;t t
9668s,@sbindir@,$sbindir,;t t
9669s,@libexecdir@,$libexecdir,;t t
9670s,@datadir@,$datadir,;t t
9671s,@sysconfdir@,$sysconfdir,;t t
9672s,@sharedstatedir@,$sharedstatedir,;t t
9673s,@localstatedir@,$localstatedir,;t t
9674s,@libdir@,$libdir,;t t
9675s,@includedir@,$includedir,;t t
9676s,@oldincludedir@,$oldincludedir,;t t
9677s,@infodir@,$infodir,;t t
9678s,@mandir@,$mandir,;t t
9679s,@build_alias@,$build_alias,;t t
9680s,@host_alias@,$host_alias,;t t
9681s,@target_alias@,$target_alias,;t t
9682s,@DEFS@,$DEFS,;t t
9683s,@ECHO_C@,$ECHO_C,;t t
9684s,@ECHO_N@,$ECHO_N,;t t
9685s,@ECHO_T@,$ECHO_T,;t t
9686s,@LIBS@,$LIBS,;t t
96b8a615
AJ
9687s,@build@,$build,;t t
9688s,@build_cpu@,$build_cpu,;t t
9689s,@build_vendor@,$build_vendor,;t t
9690s,@build_os@,$build_os,;t t
9691s,@host@,$host,;t t
9692s,@host_cpu@,$host_cpu,;t t
9693s,@host_vendor@,$host_vendor,;t t
9694s,@host_os@,$host_os,;t t
9695s,@target@,$target,;t t
9696s,@target_cpu@,$target_cpu,;t t
9697s,@target_vendor@,$target_vendor,;t t
9698s,@target_os@,$target_os,;t t
6de9cd9a
DN
9699s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9700s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9701s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9702s,@CYGPATH_W@,$CYGPATH_W,;t t
9703s,@PACKAGE@,$PACKAGE,;t t
9704s,@VERSION@,$VERSION,;t t
9705s,@ACLOCAL@,$ACLOCAL,;t t
9706s,@AUTOCONF@,$AUTOCONF,;t t
9707s,@AUTOMAKE@,$AUTOMAKE,;t t
9708s,@AUTOHEADER@,$AUTOHEADER,;t t
9709s,@MAKEINFO@,$MAKEINFO,;t t
9710s,@AMTAR@,$AMTAR,;t t
9711s,@install_sh@,$install_sh,;t t
9712s,@STRIP@,$STRIP,;t t
9713s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9714s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9715s,@mkdir_p@,$mkdir_p,;t t
9716s,@AWK@,$AWK,;t t
9717s,@SET_MAKE@,$SET_MAKE,;t t
9718s,@am__leading_dot@,$am__leading_dot,;t t
9719s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9720s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9721s,@MAINT@,$MAINT,;t t
96b8a615
AJ
9722s,@multi_basedir@,$multi_basedir,;t t
9723s,@gcc_version@,$gcc_version,;t t
9724s,@toolexecdir@,$toolexecdir,;t t
9725s,@toolexeclibdir@,$toolexeclibdir,;t t
6de9cd9a 9726s,@CC@,$CC,;t t
6de9cd9a
DN
9727s,@ac_ct_CC@,$ac_ct_CC,;t t
9728s,@EXEEXT@,$EXEEXT,;t t
9729s,@OBJEXT@,$OBJEXT,;t t
96b8a615
AJ
9730s,@CFLAGS@,$CFLAGS,;t t
9731s,@AS@,$AS,;t t
9732s,@ac_ct_AS@,$ac_ct_AS,;t t
9733s,@AR@,$AR,;t t
9734s,@ac_ct_AR@,$ac_ct_AR,;t t
9735s,@RANLIB@,$RANLIB,;t t
9736s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9737s,@LN_S@,$LN_S,;t t
9738s,@LIBTOOL@,$LIBTOOL,;t t
9739s,@enable_shared@,$enable_shared,;t t
9740s,@enable_static@,$enable_static,;t t
6de9cd9a
DN
9741s,@F77@,$F77,;t t
9742s,@FFLAGS@,$FFLAGS,;t t
96b8a615 9743s,@LDFLAGS@,$LDFLAGS,;t t
6de9cd9a
DN
9744s,@ac_ct_F77@,$ac_ct_F77,;t t
9745s,@CPP@,$CPP,;t t
96b8a615 9746s,@CPPFLAGS@,$CPPFLAGS,;t t
6de9cd9a
DN
9747s,@EGREP@,$EGREP,;t t
9748s,@MATH_OBJ@,$MATH_OBJ,;t t
6de9cd9a
DN
9749s,@LIBOBJS@,$LIBOBJS,;t t
9750s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9751CEOF
9752
9753_ACEOF
9754
9755 cat >>$CONFIG_STATUS <<\_ACEOF
9756 # Split the substitutions into bite-sized pieces for seds with
9757 # small command number limits, like on Digital OSF/1 and HP-UX.
9758 ac_max_sed_lines=48
9759 ac_sed_frag=1 # Number of current file.
9760 ac_beg=1 # First line for current file.
9761 ac_end=$ac_max_sed_lines # Line after last line for current file.
9762 ac_more_lines=:
9763 ac_sed_cmds=
9764 while $ac_more_lines; do
9765 if test $ac_beg -gt 1; then
9766 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9767 else
9768 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9769 fi
9770 if test ! -s $tmp/subs.frag; then
9771 ac_more_lines=false
9772 else
9773 # The purpose of the label and of the branching condition is to
9774 # speed up the sed processing (if there are no `@' at all, there
9775 # is no need to browse any of the substitutions).
9776 # These are the two extra sed commands mentioned above.
9777 (echo ':t
9778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9779 if test -z "$ac_sed_cmds"; then
9780 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9781 else
9782 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9783 fi
9784 ac_sed_frag=`expr $ac_sed_frag + 1`
9785 ac_beg=$ac_end
9786 ac_end=`expr $ac_end + $ac_max_sed_lines`
9787 fi
9788 done
9789 if test -z "$ac_sed_cmds"; then
9790 ac_sed_cmds=cat
9791 fi
9792fi # test -n "$CONFIG_FILES"
9793
9794_ACEOF
9795cat >>$CONFIG_STATUS <<\_ACEOF
9796for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9797 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9798 case $ac_file in
9799 - | *:- | *:-:* ) # input from stdin
9800 cat >$tmp/stdin
9801 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9802 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9803 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9804 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9805 * ) ac_file_in=$ac_file.in ;;
9806 esac
9807
9808 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9809 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9810$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9811 X"$ac_file" : 'X\(//\)[^/]' \| \
9812 X"$ac_file" : 'X\(//\)$' \| \
9813 X"$ac_file" : 'X\(/\)' \| \
9814 . : '\(.\)' 2>/dev/null ||
9815echo X"$ac_file" |
9816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9817 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9818 /^X\(\/\/\)$/{ s//\1/; q; }
9819 /^X\(\/\).*/{ s//\1/; q; }
9820 s/.*/./; q'`
9821 { if $as_mkdir_p; then
9822 mkdir -p "$ac_dir"
9823 else
9824 as_dir="$ac_dir"
9825 as_dirs=
9826 while test ! -d "$as_dir"; do
9827 as_dirs="$as_dir $as_dirs"
9828 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9829$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9830 X"$as_dir" : 'X\(//\)[^/]' \| \
9831 X"$as_dir" : 'X\(//\)$' \| \
9832 X"$as_dir" : 'X\(/\)' \| \
9833 . : '\(.\)' 2>/dev/null ||
9834echo X"$as_dir" |
9835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9837 /^X\(\/\/\)$/{ s//\1/; q; }
9838 /^X\(\/\).*/{ s//\1/; q; }
9839 s/.*/./; q'`
9840 done
9841 test ! -n "$as_dirs" || mkdir $as_dirs
9842 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9843echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9844 { (exit 1); exit 1; }; }; }
9845
9846 ac_builddir=.
9847
9848if test "$ac_dir" != .; then
9849 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9850 # A "../" for each directory in $ac_dir_suffix.
9851 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9852else
9853 ac_dir_suffix= ac_top_builddir=
9854fi
9855
9856case $srcdir in
9857 .) # No --srcdir option. We are building in place.
9858 ac_srcdir=.
9859 if test -z "$ac_top_builddir"; then
9860 ac_top_srcdir=.
9861 else
9862 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9863 fi ;;
9864 [\\/]* | ?:[\\/]* ) # Absolute path.
9865 ac_srcdir=$srcdir$ac_dir_suffix;
9866 ac_top_srcdir=$srcdir ;;
9867 *) # Relative path.
9868 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9869 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9870esac
9871
9872# Do not use `cd foo && pwd` to compute absolute paths, because
9873# the directories may not exist.
9874case `pwd` in
9875.) ac_abs_builddir="$ac_dir";;
9876*)
9877 case "$ac_dir" in
9878 .) ac_abs_builddir=`pwd`;;
9879 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9880 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9881 esac;;
9882esac
9883case $ac_abs_builddir in
9884.) ac_abs_top_builddir=${ac_top_builddir}.;;
9885*)
9886 case ${ac_top_builddir}. in
9887 .) ac_abs_top_builddir=$ac_abs_builddir;;
9888 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9889 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9890 esac;;
9891esac
9892case $ac_abs_builddir in
9893.) ac_abs_srcdir=$ac_srcdir;;
9894*)
9895 case $ac_srcdir in
9896 .) ac_abs_srcdir=$ac_abs_builddir;;
9897 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9898 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9899 esac;;
9900esac
9901case $ac_abs_builddir in
9902.) ac_abs_top_srcdir=$ac_top_srcdir;;
9903*)
9904 case $ac_top_srcdir in
9905 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9906 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9907 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9908 esac;;
9909esac
9910
9911
9912 case $INSTALL in
9913 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9914 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9915 esac
9916
9917 # Let's still pretend it is `configure' which instantiates (i.e., don't
9918 # use $as_me), people would be surprised to read:
9919 # /* config.h. Generated by config.status. */
9920 if test x"$ac_file" = x-; then
9921 configure_input=
9922 else
9923 configure_input="$ac_file. "
9924 fi
9925 configure_input=$configure_input"Generated from `echo $ac_file_in |
9926 sed 's,.*/,,'` by configure."
9927
9928 # First look for the input files in the build tree, otherwise in the
9929 # src tree.
9930 ac_file_inputs=`IFS=:
9931 for f in $ac_file_in; do
9932 case $f in
9933 -) echo $tmp/stdin ;;
9934 [\\/$]*)
9935 # Absolute (can't be DOS-style, as IFS=:)
9936 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9937echo "$as_me: error: cannot find input file: $f" >&2;}
9938 { (exit 1); exit 1; }; }
9939 echo "$f";;
9940 *) # Relative
9941 if test -f "$f"; then
9942 # Build tree
9943 echo "$f"
9944 elif test -f "$srcdir/$f"; then
9945 # Source tree
9946 echo "$srcdir/$f"
9947 else
9948 # /dev/null tree
9949 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9950echo "$as_me: error: cannot find input file: $f" >&2;}
9951 { (exit 1); exit 1; }; }
9952 fi;;
9953 esac
9954 done` || { (exit 1); exit 1; }
4c0c6b9f
SK
9955
9956 if test x"$ac_file" != x-; then
9957 { echo "$as_me:$LINENO: creating $ac_file" >&5
9958echo "$as_me: creating $ac_file" >&6;}
9959 rm -f "$ac_file"
9960 fi
6de9cd9a
DN
9961_ACEOF
9962cat >>$CONFIG_STATUS <<_ACEOF
9963 sed "$ac_vpsub
9964$extrasub
9965_ACEOF
9966cat >>$CONFIG_STATUS <<\_ACEOF
9967:t
9968/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9969s,@configure_input@,$configure_input,;t t
9970s,@srcdir@,$ac_srcdir,;t t
9971s,@abs_srcdir@,$ac_abs_srcdir,;t t
9972s,@top_srcdir@,$ac_top_srcdir,;t t
9973s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9974s,@builddir@,$ac_builddir,;t t
9975s,@abs_builddir@,$ac_abs_builddir,;t t
9976s,@top_builddir@,$ac_top_builddir,;t t
9977s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9978s,@INSTALL@,$ac_INSTALL,;t t
9979" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9980 rm -f $tmp/stdin
9981 if test x"$ac_file" != x-; then
9982 mv $tmp/out $ac_file
9983 else
9984 cat $tmp/out
9985 rm -f $tmp/out
9986 fi
9987
9988done
9989_ACEOF
9990cat >>$CONFIG_STATUS <<\_ACEOF
9991
9992#
9993# CONFIG_HEADER section.
9994#
9995
9996# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9997# NAME is the cpp macro being defined and VALUE is the value it is being given.
9998#
9999# ac_d sets the value in "#define NAME VALUE" lines.
10000ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10001ac_dB='[ ].*$,\1#\2'
10002ac_dC=' '
10003ac_dD=',;t'
10004# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10005ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10006ac_uB='$,\1#\2define\3'
10007ac_uC=' '
10008ac_uD=',;t'
10009
10010for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10011 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10012 case $ac_file in
10013 - | *:- | *:-:* ) # input from stdin
10014 cat >$tmp/stdin
10015 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10016 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10017 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10018 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10019 * ) ac_file_in=$ac_file.in ;;
10020 esac
10021
10022 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10023echo "$as_me: creating $ac_file" >&6;}
10024
10025 # First look for the input files in the build tree, otherwise in the
10026 # src tree.
10027 ac_file_inputs=`IFS=:
10028 for f in $ac_file_in; do
10029 case $f in
10030 -) echo $tmp/stdin ;;
10031 [\\/$]*)
10032 # Absolute (can't be DOS-style, as IFS=:)
10033 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10034echo "$as_me: error: cannot find input file: $f" >&2;}
10035 { (exit 1); exit 1; }; }
10036 # Do quote $f, to prevent DOS paths from being IFS'd.
10037 echo "$f";;
10038 *) # Relative
10039 if test -f "$f"; then
10040 # Build tree
10041 echo "$f"
10042 elif test -f "$srcdir/$f"; then
10043 # Source tree
10044 echo "$srcdir/$f"
10045 else
10046 # /dev/null tree
10047 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10048echo "$as_me: error: cannot find input file: $f" >&2;}
10049 { (exit 1); exit 1; }; }
10050 fi;;
10051 esac
10052 done` || { (exit 1); exit 1; }
10053 # Remove the trailing spaces.
10054 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10055
10056_ACEOF
10057
10058# Transform confdefs.h into two sed scripts, `conftest.defines' and
10059# `conftest.undefs', that substitutes the proper values into
10060# config.h.in to produce config.h. The first handles `#define'
10061# templates, and the second `#undef' templates.
10062# And first: Protect against being on the right side of a sed subst in
10063# config.status. Protect against being in an unquoted here document
10064# in config.status.
10065rm -f conftest.defines conftest.undefs
10066# Using a here document instead of a string reduces the quoting nightmare.
10067# Putting comments in sed scripts is not portable.
10068#
10069# `end' is used to avoid that the second main sed command (meant for
10070# 0-ary CPP macros) applies to n-ary macro definitions.
10071# See the Autoconf documentation for `clear'.
10072cat >confdef2sed.sed <<\_ACEOF
10073s/[\\&,]/\\&/g
10074s,[\\$`],\\&,g
10075t clear
10076: clear
10077s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10078t end
10079s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10080: end
10081_ACEOF
10082# If some macros were called several times there might be several times
10083# the same #defines, which is useless. Nevertheless, we may not want to
10084# sort them, since we want the *last* AC-DEFINE to be honored.
10085uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10086sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10087rm -f confdef2sed.sed
10088
10089# This sed command replaces #undef with comments. This is necessary, for
10090# example, in the case of _POSIX_SOURCE, which is predefined and required
10091# on some systems where configure will not decide to define it.
10092cat >>conftest.undefs <<\_ACEOF
10093s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10094_ACEOF
10095
10096# Break up conftest.defines because some shells have a limit on the size
10097# of here documents, and old seds have small limits too (100 cmds).
10098echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10099echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10100echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10101echo ' :' >>$CONFIG_STATUS
10102rm -f conftest.tail
10103while grep . conftest.defines >/dev/null
10104do
10105 # Write a limited-size here document to $tmp/defines.sed.
10106 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10107 # Speed up: don't consider the non `#define' lines.
10108 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10109 # Work around the forget-to-reset-the-flag bug.
10110 echo 't clr' >>$CONFIG_STATUS
10111 echo ': clr' >>$CONFIG_STATUS
10112 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10113 echo 'CEOF
10114 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10115 rm -f $tmp/in
10116 mv $tmp/out $tmp/in
10117' >>$CONFIG_STATUS
10118 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10119 rm -f conftest.defines
10120 mv conftest.tail conftest.defines
10121done
10122rm -f conftest.defines
10123echo ' fi # grep' >>$CONFIG_STATUS
10124echo >>$CONFIG_STATUS
10125
10126# Break up conftest.undefs because some shells have a limit on the size
10127# of here documents, and old seds have small limits too (100 cmds).
10128echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10129rm -f conftest.tail
10130while grep . conftest.undefs >/dev/null
10131do
10132 # Write a limited-size here document to $tmp/undefs.sed.
10133 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10134 # Speed up: don't consider the non `#undef'
10135 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10136 # Work around the forget-to-reset-the-flag bug.
10137 echo 't clr' >>$CONFIG_STATUS
10138 echo ': clr' >>$CONFIG_STATUS
10139 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10140 echo 'CEOF
10141 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10142 rm -f $tmp/in
10143 mv $tmp/out $tmp/in
10144' >>$CONFIG_STATUS
10145 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10146 rm -f conftest.undefs
10147 mv conftest.tail conftest.undefs
10148done
10149rm -f conftest.undefs
10150
10151cat >>$CONFIG_STATUS <<\_ACEOF
10152 # Let's still pretend it is `configure' which instantiates (i.e., don't
10153 # use $as_me), people would be surprised to read:
10154 # /* config.h. Generated by config.status. */
10155 if test x"$ac_file" = x-; then
10156 echo "/* Generated by configure. */" >$tmp/config.h
10157 else
10158 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10159 fi
10160 cat $tmp/in >>$tmp/config.h
10161 rm -f $tmp/in
10162 if test x"$ac_file" != x-; then
10163 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10164 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10165echo "$as_me: $ac_file is unchanged" >&6;}
10166 else
10167 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10168$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10169 X"$ac_file" : 'X\(//\)[^/]' \| \
10170 X"$ac_file" : 'X\(//\)$' \| \
10171 X"$ac_file" : 'X\(/\)' \| \
10172 . : '\(.\)' 2>/dev/null ||
10173echo X"$ac_file" |
10174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10175 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10176 /^X\(\/\/\)$/{ s//\1/; q; }
10177 /^X\(\/\).*/{ s//\1/; q; }
10178 s/.*/./; q'`
10179 { if $as_mkdir_p; then
10180 mkdir -p "$ac_dir"
10181 else
10182 as_dir="$ac_dir"
10183 as_dirs=
10184 while test ! -d "$as_dir"; do
10185 as_dirs="$as_dir $as_dirs"
10186 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10187$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10188 X"$as_dir" : 'X\(//\)[^/]' \| \
10189 X"$as_dir" : 'X\(//\)$' \| \
10190 X"$as_dir" : 'X\(/\)' \| \
10191 . : '\(.\)' 2>/dev/null ||
10192echo X"$as_dir" |
10193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10195 /^X\(\/\/\)$/{ s//\1/; q; }
10196 /^X\(\/\).*/{ s//\1/; q; }
10197 s/.*/./; q'`
10198 done
10199 test ! -n "$as_dirs" || mkdir $as_dirs
10200 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10201echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10202 { (exit 1); exit 1; }; }; }
10203
10204 rm -f $ac_file
10205 mv $tmp/config.h $ac_file
10206 fi
10207 else
10208 cat $tmp/config.h
10209 rm -f $tmp/config.h
10210 fi
10211# Compute $ac_file's index in $config_headers.
10212_am_stamp_count=1
10213for _am_header in $config_headers :; do
10214 case $_am_header in
10215 $ac_file | $ac_file:* )
10216 break ;;
10217 * )
10218 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10219 esac
10220done
10221echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10222$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10223 X$ac_file : 'X\(//\)[^/]' \| \
10224 X$ac_file : 'X\(//\)$' \| \
10225 X$ac_file : 'X\(/\)' \| \
10226 . : '\(.\)' 2>/dev/null ||
10227echo X$ac_file |
10228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10229 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10230 /^X\(\/\/\)$/{ s//\1/; q; }
10231 /^X\(\/\).*/{ s//\1/; q; }
10232 s/.*/./; q'`/stamp-h$_am_stamp_count
10233done
10234_ACEOF
10235cat >>$CONFIG_STATUS <<\_ACEOF
10236
10237#
10238# CONFIG_COMMANDS section.
10239#
10240for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10241 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10242 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10243 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10244$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10245 X"$ac_dest" : 'X\(//\)[^/]' \| \
10246 X"$ac_dest" : 'X\(//\)$' \| \
10247 X"$ac_dest" : 'X\(/\)' \| \
10248 . : '\(.\)' 2>/dev/null ||
10249echo X"$ac_dest" |
10250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10252 /^X\(\/\/\)$/{ s//\1/; q; }
10253 /^X\(\/\).*/{ s//\1/; q; }
10254 s/.*/./; q'`
10255 { if $as_mkdir_p; then
10256 mkdir -p "$ac_dir"
10257 else
10258 as_dir="$ac_dir"
10259 as_dirs=
10260 while test ! -d "$as_dir"; do
10261 as_dirs="$as_dir $as_dirs"
10262 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10263$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10264 X"$as_dir" : 'X\(//\)[^/]' \| \
10265 X"$as_dir" : 'X\(//\)$' \| \
10266 X"$as_dir" : 'X\(/\)' \| \
10267 . : '\(.\)' 2>/dev/null ||
10268echo X"$as_dir" |
10269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10271 /^X\(\/\/\)$/{ s//\1/; q; }
10272 /^X\(\/\).*/{ s//\1/; q; }
10273 s/.*/./; q'`
10274 done
10275 test ! -n "$as_dirs" || mkdir $as_dirs
10276 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10277echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10278 { (exit 1); exit 1; }; }; }
10279
10280 ac_builddir=.
10281
10282if test "$ac_dir" != .; then
10283 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10284 # A "../" for each directory in $ac_dir_suffix.
10285 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10286else
10287 ac_dir_suffix= ac_top_builddir=
10288fi
10289
10290case $srcdir in
10291 .) # No --srcdir option. We are building in place.
10292 ac_srcdir=.
10293 if test -z "$ac_top_builddir"; then
10294 ac_top_srcdir=.
10295 else
10296 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10297 fi ;;
10298 [\\/]* | ?:[\\/]* ) # Absolute path.
10299 ac_srcdir=$srcdir$ac_dir_suffix;
10300 ac_top_srcdir=$srcdir ;;
10301 *) # Relative path.
10302 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10303 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10304esac
10305
10306# Do not use `cd foo && pwd` to compute absolute paths, because
10307# the directories may not exist.
10308case `pwd` in
10309.) ac_abs_builddir="$ac_dir";;
10310*)
10311 case "$ac_dir" in
10312 .) ac_abs_builddir=`pwd`;;
10313 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10314 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10315 esac;;
10316esac
10317case $ac_abs_builddir in
10318.) ac_abs_top_builddir=${ac_top_builddir}.;;
10319*)
10320 case ${ac_top_builddir}. in
10321 .) ac_abs_top_builddir=$ac_abs_builddir;;
10322 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10323 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10324 esac;;
10325esac
10326case $ac_abs_builddir in
10327.) ac_abs_srcdir=$ac_srcdir;;
10328*)
10329 case $ac_srcdir in
10330 .) ac_abs_srcdir=$ac_abs_builddir;;
10331 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10332 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10333 esac;;
10334esac
10335case $ac_abs_builddir in
10336.) ac_abs_top_srcdir=$ac_top_srcdir;;
10337*)
10338 case $ac_top_srcdir in
10339 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10340 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10341 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10342 esac;;
10343esac
10344
10345
10346 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10347echo "$as_me: executing $ac_dest commands" >&6;}
10348 case $ac_dest in
96b8a615
AJ
10349 default-1 )
10350# Only add multilib support code if we just rebuilt the top-level
10351# Makefile.
10352case " $CONFIG_FILES " in
10353 *" Makefile "*)
10354 ac_file=Makefile . ${multi_basedir}/config-ml.in
10355 ;;
10356esac ;;
6de9cd9a
DN
10357 esac
10358done
10359_ACEOF
10360
10361cat >>$CONFIG_STATUS <<\_ACEOF
10362
10363{ (exit 0); exit 0; }
10364_ACEOF
10365chmod +x $CONFIG_STATUS
10366ac_clean_files=$ac_clean_files_save
10367
10368
10369# configure is writing to config.log, and then calls config.status.
10370# config.status does its own redirection, appending to config.log.
10371# Unfortunately, on DOS this fails, as config.log is still kept open
10372# by configure, so config.status won't be able to write to it; its
10373# output is simply discarded. So we exec the FD to /dev/null,
10374# effectively closing config.log, so it can be properly (re)opened and
10375# appended to by config.status. When coming back to configure, we
10376# need to make the FD available again.
10377if test "$no_create" != yes; then
10378 ac_cs_success=:
10379 ac_config_status_args=
10380 test "$silent" = yes &&
10381 ac_config_status_args="$ac_config_status_args --quiet"
10382 exec 5>/dev/null
10383 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10384 exec 5>>config.log
10385 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10386 # would make configure fail if this is the last instruction.
10387 $ac_cs_success || { (exit 1); exit 1; }
10388fi
10389