Merge reload-branch up to revision 101000
[official-gcc.git] / libgfortran / configure
blobaaaf9f67ea541d8d216ad617093d91ce45cf2e66
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.
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 ## --------------------- ##
12 # Be Bourne compatible
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for 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
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
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if 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=:
96 rm -f conf$$.sh
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
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
152 done
154 esac
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 '
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; }; }
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
187 case `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= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
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}
267 # Identity of this package.
268 PACKAGE_NAME='GNU Fortran Runtime Library'
269 PACKAGE_TARNAME='libgfortran'
270 PACKAGE_VERSION='0.2'
271 PACKAGE_STRING='GNU Fortran Runtime Library 0.2'
272 PACKAGE_BUGREPORT=''
274 # Factoring default headers for most tests.
275 ac_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"
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT AM_FCFLAGS AM_CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL enable_shared enable_static FC FCFLAGS LDFLAGS ac_ct_FC extra_ldflags_libgfortran CPP CPPFLAGS EGREP MATH_OBJ LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
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.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
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
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
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 ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
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 ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
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 ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
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 ;;
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 ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
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 ;;
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 ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
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 ;;
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 ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
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 ;;
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 ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
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'" ;;
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" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
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 ;;
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 ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
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 ;;
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}
648 esac
649 done
651 if 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; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
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
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
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
678 done
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.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if 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
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if 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 ||
714 echo 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=..
724 else
725 ac_srcdir_defaulted=no
727 if 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; }; }
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; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_FC_set=${FC+set}
753 ac_env_FC_value=$FC
754 ac_cv_env_FC_set=${FC+set}
755 ac_cv_env_FC_value=$FC
756 ac_env_FCFLAGS_set=${FCFLAGS+set}
757 ac_env_FCFLAGS_value=$FCFLAGS
758 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
759 ac_cv_env_FCFLAGS_value=$FCFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPP_set=${CPP+set}
765 ac_env_CPP_value=$CPP
766 ac_cv_env_CPP_set=${CPP+set}
767 ac_cv_env_CPP_value=$CPP
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 # Report the --help message.
776 if 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.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
789 Configuration:
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 \`..']
800 _ACEOF
802 cat <<_ACEOF
803 Installation 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]
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine 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
831 cat <<\_ACEOF
833 Program 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
838 System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 --target=TARGET configure for building compilers for TARGET [HOST]
842 _ACEOF
845 if 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
851 Optional Features:
852 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
853 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
854 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
855 --enable-maintainer-mode enable make rules and dependencies not useful
856 (and sometimes confusing) to the casual installer
857 --enable-multilib build many library versions (default)
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)
862 --disable-largefile omit support for large files
863 --enable-cmath Include complex math functions
865 Optional 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
871 Some 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 FC Fortran compiler command
879 FCFLAGS Fortran compiler flags
880 CPP C preprocessor
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
885 _ACEOF
888 if 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=.
895 if 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'`
899 else
900 ac_dir_suffix= ac_top_builddir=
903 case $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 ;;
917 esac
919 # Do not use `cd foo && pwd` to compute absolute paths, because
920 # the directories may not exist.
921 case `pwd` in
922 .) ac_abs_builddir="$ac_dir";;
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;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_srcdir=$ac_srcdir;;
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;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
956 esac
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
973 cd $ac_popdir
974 done
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
979 cat <<\_ACEOF
980 GNU Fortran Runtime Library configure 0.2
981 generated by GNU Autoconf 2.59
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
986 _ACEOF
987 exit 0
989 exec 5>config.log
990 cat >&5 <<_ACEOF
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
994 It was created by GNU Fortran Runtime Library $as_me 0.2, which was
995 generated by GNU Autoconf 2.59. Invocation command line was
997 $ $0 $@
999 _ACEOF
1001 cat <<_ASUNAME
1002 ## --------- ##
1003 ## Platform. ##
1004 ## --------- ##
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
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`
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`
1018 hostinfo = `(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`
1023 _ASUNAME
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026 for as_dir in $PATH
1028 IFS=$as_save_IFS
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1031 done
1033 } >&5
1035 cat >&5 <<_ACEOF
1038 ## ----------- ##
1039 ## Core tests. ##
1040 ## ----------- ##
1042 _ACEOF
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.
1050 ac_configure_args=
1051 ac_configure_args0=
1052 ac_configure_args1=
1053 ac_sep=
1054 ac_must_keep_next=false
1055 for ac_pass in 1 2
1057 for ac_arg
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'" ;;
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
1083 -* ) ac_must_keep_next=true ;;
1084 esac
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1088 ac_sep=" "
1090 esac
1091 done
1092 done
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; }
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.
1101 trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1104 echo
1106 cat <<\_ASBOX
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1110 _ASBOX
1111 echo
1112 # The following way of writing the cache mishandles newlines in values,
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"
1122 sed -n \
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 esac;
1127 echo
1129 cat <<\_ASBOX
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1133 _ASBOX
1134 echo
1135 for ac_var in $ac_subst_vars
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
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
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
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
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
1175 for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177 done
1178 ac_signal=0
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183 echo >confdefs.h
1185 # Predefined preprocessor variables.
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1189 _ACEOF
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1204 _ACEOF
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209 _ACEOF
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if 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"
1221 for 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
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1226 . "$ac_site_file"
1228 done
1230 if 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
1235 echo "$as_me: loading cache $cache_file" >&6;}
1236 case $cache_file in
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1239 esac
1241 else
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1244 >$cache_file
1247 # Check that the precious variables saved in the cache have kept the same
1248 # value.
1249 ac_cache_corrupted=false
1250 for 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
1259 echo "$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
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,);;
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
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271 echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273 echo "$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
1289 done
1290 if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$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
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1298 ac_ext=c
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330 ac_config_headers="$ac_config_headers config.h"
1333 # -------
1334 # Options
1335 # -------
1337 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1338 echo $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.
1340 if 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
1346 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1347 { (exit 1); exit 1; }; };;
1348 esac
1349 else
1350 version_specific_libs=no
1352 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1353 echo "${ECHO_T}$version_specific_libs" >&6
1356 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
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/.
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. :-)
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.
1369 # Do not delete or change the following two lines. For why, see
1370 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1371 ac_aux_dir=
1372 for 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
1386 done
1387 if test -z "$ac_aux_dir"; then
1388 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1389 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1390 { (exit 1); exit 1; }; }
1392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1394 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
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
1399 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1400 { (exit 1); exit 1; }; }
1402 echo "$as_me:$LINENO: checking build system type" >&5
1403 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1404 if test "${ac_cv_build+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407 ac_cv_build_alias=$build_alias
1408 test -z "$ac_cv_build_alias" &&
1409 ac_cv_build_alias=`$ac_config_guess`
1410 test -z "$ac_cv_build_alias" &&
1411 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1412 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1413 { (exit 1); exit 1; }; }
1414 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1420 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1421 echo "${ECHO_T}$ac_cv_build" >&6
1422 build=$ac_cv_build
1423 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428 echo "$as_me:$LINENO: checking host system type" >&5
1429 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1430 if test "${ac_cv_host+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433 ac_cv_host_alias=$host_alias
1434 test -z "$ac_cv_host_alias" &&
1435 ac_cv_host_alias=$ac_cv_build_alias
1436 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1437 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1439 { (exit 1); exit 1; }; }
1442 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1443 echo "${ECHO_T}$ac_cv_host" >&6
1444 host=$ac_cv_host
1445 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450 echo "$as_me:$LINENO: checking target system type" >&5
1451 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1452 if test "${ac_cv_target+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1454 else
1455 ac_cv_target_alias=$target_alias
1456 test "x$ac_cv_target_alias" = "x" &&
1457 ac_cv_target_alias=$ac_cv_host_alias
1458 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1465 echo "${ECHO_T}$ac_cv_target" >&6
1466 target=$ac_cv_target
1467 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472 # The aliases save the names the user supplied, while $host etc.
1473 # will get canonicalized.
1474 test -n "$target_alias" &&
1475 test "$program_prefix$program_suffix$program_transform_name" = \
1476 NONENONEs,x,x, &&
1477 program_prefix=${target_alias}-
1478 target_alias=${target_alias-$host_alias}
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.
1491 am__api_version="1.9"
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.
1505 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1506 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1507 if test -z "$INSTALL"; then
1508 if test "${ac_cv_path_install+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 for as_dir in $PATH
1514 IFS=$as_save_IFS
1515 test -z "$as_dir" && as_dir=.
1516 # Account for people who put trailing slashes in PATH elements.
1517 case $as_dir/ in
1518 ./ | .// | /cC/* | \
1519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1520 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1521 /usr/ucb/* ) ;;
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.
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.
1537 else
1538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1539 break 3
1542 done
1543 done
1545 esac
1546 done
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
1560 echo "$as_me:$LINENO: result: $INSTALL" >&5
1561 echo "${ECHO_T}$INSTALL" >&6
1563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1564 # It thinks the first close brace ends the variable substitution.
1565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1571 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1572 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1573 # Just in case
1574 sleep 1
1575 echo 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).
1581 if (
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`
1587 rm -f conftest.file
1588 if test "$*" != "X $srcdir/configure conftest.file" \
1589 && test "$*" != "X conftest.file $srcdir/configure"; then
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
1596 alias in your environment" >&5
1597 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1598 alias in your environment" >&2;}
1599 { (exit 1); exit 1; }; }
1602 test "$2" = conftest.file
1604 then
1605 # Ok.
1607 else
1608 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1609 Check your system clock" >&5
1610 echo "$as_me: error: newly created file is older than distributed files!
1611 Check your system clock" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: result: yes" >&5
1615 echo "${ECHO_T}yes" >&6
1616 test "$program_prefix" != NONE &&
1617 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1618 # Use a double $ so make ignores it.
1619 test "$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.
1623 cat <<\_ACEOF >conftest.sed
1624 s/[\\$]/&&/g;s/;s,x,x,$//
1625 _ACEOF
1626 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1627 rm conftest.sed
1629 # expand $ac_aux_dir to an absolute path
1630 am_aux_dir=`cd $ac_aux_dir && pwd`
1632 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1633 # Use eval to expand $SHELL
1634 if eval "$MISSING --run true"; then
1635 am_missing_run="$MISSING --run "
1636 else
1637 am_missing_run=
1638 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1639 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1642 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1643 # We used to keeping the `.' as first argument, in order to
1644 # allow $(mkdir_p) to be used without argument. As in
1645 # $(mkdir_p) $(somedir)
1646 # where $(somedir) is conditionally defined. However this is wrong
1647 # for two reasons:
1648 # 1. if the package is installed by a user who cannot write `.'
1649 # make install will fail,
1650 # 2. the above comment should most certainly read
1651 # $(mkdir_p) $(DESTDIR)$(somedir)
1652 # so it does not work when $(somedir) is undefined and
1653 # $(DESTDIR) is not.
1654 # To support the latter case, we have to write
1655 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1656 # so the `.' trick is pointless.
1657 mkdir_p='mkdir -p --'
1658 else
1659 # On NextStep and OpenStep, the `mkdir' command does not
1660 # recognize any option. It will interpret all options as
1661 # directories to create, and then abort because `.' already
1662 # exists.
1663 for d in ./-p ./--version;
1665 test -d $d && rmdir $d
1666 done
1667 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1668 if test -f "$ac_aux_dir/mkinstalldirs"; then
1669 mkdir_p='$(mkinstalldirs)'
1670 else
1671 mkdir_p='$(install_sh) -d'
1675 for ac_prog in gawk mawk nawk awk
1677 # Extract the first word of "$ac_prog", so it can be a program name with args.
1678 set dummy $ac_prog; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_AWK+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684 if test -n "$AWK"; then
1685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1686 else
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 ac_cv_prog_AWK="$ac_prog"
1695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696 break 2
1698 done
1699 done
1703 AWK=$ac_cv_prog_AWK
1704 if test -n "$AWK"; then
1705 echo "$as_me:$LINENO: result: $AWK" >&5
1706 echo "${ECHO_T}$AWK" >&6
1707 else
1708 echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1712 test -n "$AWK" && break
1713 done
1715 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1716 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1717 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1718 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 else
1721 cat >conftest.make <<\_ACEOF
1722 all:
1723 @echo 'ac_maketemp="$(MAKE)"'
1724 _ACEOF
1725 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1726 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1727 if test -n "$ac_maketemp"; then
1728 eval ac_cv_prog_make_${ac_make}_set=yes
1729 else
1730 eval ac_cv_prog_make_${ac_make}_set=no
1732 rm -f conftest.make
1734 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1735 echo "$as_me:$LINENO: result: yes" >&5
1736 echo "${ECHO_T}yes" >&6
1737 SET_MAKE=
1738 else
1739 echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1741 SET_MAKE="MAKE=${MAKE-make}"
1744 rm -rf .tst 2>/dev/null
1745 mkdir .tst 2>/dev/null
1746 if test -d .tst; then
1747 am__leading_dot=.
1748 else
1749 am__leading_dot=_
1751 rmdir .tst 2>/dev/null
1753 # test to see if srcdir already configured
1754 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1755 test -f $srcdir/config.status; then
1756 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1757 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1758 { (exit 1); exit 1; }; }
1761 # test whether we have cygpath
1762 if test -z "$CYGPATH_W"; then
1763 if (cygpath --version) >/dev/null 2>/dev/null; then
1764 CYGPATH_W='cygpath -w'
1765 else
1766 CYGPATH_W=echo
1771 # Define the identity of the package.
1772 PACKAGE='libgfortran'
1773 VERSION='0.2'
1776 # Some tools Automake needs.
1778 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1781 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1784 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1787 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1790 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1792 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1794 # Installed binaries are usually stripped using `strip' when the user
1795 # run `make install-strip'. However `strip' might not be the right
1796 # tool to use in cross-compilation environments, therefore Automake
1797 # will honor the `STRIP' environment variable to overrule this program.
1798 if test "$cross_compiling" != no; then
1799 if test -n "$ac_tool_prefix"; then
1800 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1801 set dummy ${ac_tool_prefix}strip; ac_word=$2
1802 echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804 if test "${ac_cv_prog_STRIP+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 else
1807 if test -n "$STRIP"; then
1808 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1809 else
1810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 for as_dir in $PATH
1813 IFS=$as_save_IFS
1814 test -z "$as_dir" && as_dir=.
1815 for ac_exec_ext in '' $ac_executable_extensions; do
1816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819 break 2
1821 done
1822 done
1826 STRIP=$ac_cv_prog_STRIP
1827 if test -n "$STRIP"; then
1828 echo "$as_me:$LINENO: result: $STRIP" >&5
1829 echo "${ECHO_T}$STRIP" >&6
1830 else
1831 echo "$as_me:$LINENO: result: no" >&5
1832 echo "${ECHO_T}no" >&6
1836 if test -z "$ac_cv_prog_STRIP"; then
1837 ac_ct_STRIP=$STRIP
1838 # Extract the first word of "strip", so it can be a program name with args.
1839 set dummy strip; ac_word=$2
1840 echo "$as_me:$LINENO: checking for $ac_word" >&5
1841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845 if test -n "$ac_ct_STRIP"; then
1846 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1847 else
1848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 for as_dir in $PATH
1851 IFS=$as_save_IFS
1852 test -z "$as_dir" && as_dir=.
1853 for ac_exec_ext in '' $ac_executable_extensions; do
1854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855 ac_cv_prog_ac_ct_STRIP="strip"
1856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 break 2
1859 done
1860 done
1862 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1865 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1866 if test -n "$ac_ct_STRIP"; then
1867 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1868 echo "${ECHO_T}$ac_ct_STRIP" >&6
1869 else
1870 echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1874 STRIP=$ac_ct_STRIP
1875 else
1876 STRIP="$ac_cv_prog_STRIP"
1880 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1882 # We need awk for the "check" target. The system "awk" is bad on
1883 # some platforms.
1884 # Always define AMTAR for backward compatibility.
1886 AMTAR=${AMTAR-"${am_missing_run}tar"}
1888 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1895 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1896 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1897 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1898 if test "${enable_maintainer_mode+set}" = set; then
1899 enableval="$enable_maintainer_mode"
1900 USE_MAINTAINER_MODE=$enableval
1901 else
1902 USE_MAINTAINER_MODE=no
1904 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1905 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1908 if test $USE_MAINTAINER_MODE = yes; then
1909 MAINTAINER_MODE_TRUE=
1910 MAINTAINER_MODE_FALSE='#'
1911 else
1912 MAINTAINER_MODE_TRUE='#'
1913 MAINTAINER_MODE_FALSE=
1916 MAINT=$MAINTAINER_MODE_TRUE
1919 # Default to --enable-multilib
1920 # Check whether --enable-multilib or --disable-multilib was given.
1921 if test "${enable_multilib+set}" = set; then
1922 enableval="$enable_multilib"
1923 case "$enableval" in
1924 yes) multilib=yes ;;
1925 no) multilib=no ;;
1926 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1927 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1928 { (exit 1); exit 1; }; } ;;
1929 esac
1930 else
1931 multilib=yes
1934 # We may get other options which we leave undocumented:
1935 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1936 # See config-ml.in if you want the gory details.
1938 if test "$srcdir" = "."; then
1939 if test "$with_target_subdir" != "."; then
1940 multi_basedir="$srcdir/$with_multisrctop../.."
1941 else
1942 multi_basedir="$srcdir/$with_multisrctop.."
1944 else
1945 multi_basedir="$srcdir/.."
1949 ac_config_commands="$ac_config_commands default-1"
1952 # Handy for debugging:
1953 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1955 # Are we being configured with some form of cross compiler?
1956 # NB: We don't actually need to know this just now, but when, say, a test
1957 # suite is included, we'll have to know.
1958 if test "$build" != "$host"; then
1959 LIBGFOR_IS_NATIVE=false
1961 else
1962 LIBGFOR_IS_NATIVE=true
1965 # Calculate toolexeclibdir
1966 # Also toolexecdir, though it's only used in toolexeclibdir
1967 case ${version_specific_libs} in
1968 yes)
1969 # Need the gcc compiler version to know where to install libraries
1970 # and header files if --enable-version-specific-runtime-libs option
1971 # is selected.
1972 toolexecdir='$(libdir)/gcc/$(target_alias)'
1973 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1976 if test -n "$with_cross_host" &&
1977 test x"$with_cross_host" != x"no"; then
1978 # Install a library built with a cross compiler in tooldir, not libdir.
1979 toolexecdir='$(exec_prefix)/$(target_alias)'
1980 toolexeclibdir='$(toolexecdir)/lib'
1981 else
1982 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1983 toolexeclibdir='$(libdir)'
1985 multi_os_directory=`$CC -print-multi-os-directory`
1986 case $multi_os_directory in
1987 .) ;; # Avoid trailing /.
1988 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1989 esac
1991 esac
1995 # Check the compiler.
1996 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1997 # We must force CC to /not/ be precious variables; otherwise
1998 # the wrong, non-multilib-adjusted value will be used in multilibs.
1999 # As a side effect, we have to subst CFLAGS ourselves.
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016 if test -n "$CC"; then
2017 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 break 2
2030 done
2031 done
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037 echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2039 else
2040 echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2045 if test -z "$ac_cv_prog_CC"; then
2046 ac_ct_CC=$CC
2047 # Extract the first word of "gcc", so it can be a program name with args.
2048 set dummy gcc; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054 if test -n "$ac_ct_CC"; then
2055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2060 IFS=$as_save_IFS
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_ac_ct_CC="gcc"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 break 2
2068 done
2069 done
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6
2077 else
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2082 CC=$ac_ct_CC
2083 else
2084 CC="$ac_cv_prog_CC"
2087 if test -z "$CC"; then
2088 if test -n "$ac_tool_prefix"; then
2089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2090 set dummy ${ac_tool_prefix}cc; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106 ac_cv_prog_CC="${ac_tool_prefix}cc"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 break 2
2110 done
2111 done
2115 CC=$ac_cv_prog_CC
2116 if test -n "$CC"; then
2117 echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2119 else
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2125 if test -z "$ac_cv_prog_CC"; then
2126 ac_ct_CC=$CC
2127 # Extract the first word of "cc", so it can be a program name with args.
2128 set dummy cc; ac_word=$2
2129 echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134 if test -n "$ac_ct_CC"; then
2135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144 ac_cv_prog_ac_ct_CC="cc"
2145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146 break 2
2148 done
2149 done
2153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2154 if test -n "$ac_ct_CC"; then
2155 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2156 echo "${ECHO_T}$ac_ct_CC" >&6
2157 else
2158 echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6
2162 CC=$ac_ct_CC
2163 else
2164 CC="$ac_cv_prog_CC"
2168 if test -z "$CC"; then
2169 # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 if test -n "$CC"; then
2177 ac_cv_prog_CC="$CC" # Let the user override the test.
2178 else
2179 ac_prog_rejected=no
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188 ac_prog_rejected=yes
2189 continue
2191 ac_cv_prog_CC="cc"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2195 done
2196 done
2198 if test $ac_prog_rejected = yes; then
2199 # We found a bogon in the path, so make sure we never use it.
2200 set dummy $ac_cv_prog_CC
2201 shift
2202 if test $# != 0; then
2203 # We chose a different compiler from the bogus one.
2204 # However, it has the same basename, so the bogon will be chosen
2205 # first if we set CC to just the basename; use the full file name.
2206 shift
2207 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2212 CC=$ac_cv_prog_CC
2213 if test -n "$CC"; then
2214 echo "$as_me:$LINENO: result: $CC" >&5
2215 echo "${ECHO_T}$CC" >&6
2216 else
2217 echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2222 if test -z "$CC"; then
2223 if test -n "$ac_tool_prefix"; then
2224 for ac_prog in cl
2226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2247 done
2248 done
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254 echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2256 else
2257 echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2261 test -n "$CC" && break
2262 done
2264 if test -z "$CC"; then
2265 ac_ct_CC=$CC
2266 for ac_prog in cl
2268 # Extract the first word of "$ac_prog", so it can be a program name with args.
2269 set dummy $ac_prog; ac_word=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275 if test -n "$ac_ct_CC"; then
2276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2281 IFS=$as_save_IFS
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285 ac_cv_prog_ac_ct_CC="$ac_prog"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 break 2
2289 done
2290 done
2294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2295 if test -n "$ac_ct_CC"; then
2296 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2297 echo "${ECHO_T}$ac_ct_CC" >&6
2298 else
2299 echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2303 test -n "$ac_ct_CC" && break
2304 done
2306 CC=$ac_ct_CC
2312 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: no acceptable C compiler found in \$PATH
2315 See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2318 # Provide some information about the compiler.
2319 echo "$as_me:$LINENO:" \
2320 "checking for C compiler version" >&5
2321 ac_compiler=`set X $ac_compile; echo $2`
2322 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2323 (eval $ac_compiler --version </dev/null >&5) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }
2327 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2328 (eval $ac_compiler -v </dev/null >&5) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }
2332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2333 (eval $ac_compiler -V </dev/null >&5) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }
2338 cat >conftest.$ac_ext <<_ACEOF
2339 /* confdefs.h. */
2340 _ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2346 main ()
2350 return 0;
2352 _ACEOF
2353 # FIXME: Cleanup?
2354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2355 (eval $ac_link) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; then
2359 gcc_no_link=no
2360 else
2361 gcc_no_link=yes
2364 if test x$gcc_no_link = xyes; then
2365 # Setting cross_compile will disable run tests; it will
2366 # also disable AC_CHECK_FILE but that's generally
2367 # correct if we can't link.
2368 cross_compiling=yes
2369 EXEEXT=
2370 else
2371 cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h. */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2379 main ()
2383 return 0;
2385 _ACEOF
2386 ac_clean_files_save=$ac_clean_files
2387 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2388 # Try to create an executable without -o first, disregard a.out.
2389 # It will help us diagnose broken compilers, and finding out an intuition
2390 # of exeext.
2391 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2392 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2393 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2394 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2395 (eval $ac_link_default) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; then
2399 # Find the output, starting from the most likely. This scheme is
2400 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2401 # resort.
2403 # Be careful to initialize this variable, since it used to be cached.
2404 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2405 ac_cv_exeext=
2406 # b.out is created by i960 compilers.
2407 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2409 test -f "$ac_file" || continue
2410 case $ac_file in
2411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2413 conftest.$ac_ext )
2414 # This is the source file.
2416 [ab].out )
2417 # We found the default executable, but exeext='' is most
2418 # certainly right.
2419 break;;
2420 *.* )
2421 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422 # FIXME: I believe we export ac_cv_exeext for Libtool,
2423 # but it would be cool to find out if it's true. Does anybody
2424 # maintain Libtool? --akim.
2425 export ac_cv_exeext
2426 break;;
2428 break;;
2429 esac
2430 done
2431 else
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2435 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: C compiler cannot create executables
2438 See \`config.log' for more details." >&2;}
2439 { (exit 77); exit 77; }; }
2442 ac_exeext=$ac_cv_exeext
2443 echo "$as_me:$LINENO: result: $ac_file" >&5
2444 echo "${ECHO_T}$ac_file" >&6
2446 # Check the compiler produces executables we can run. If not, either
2447 # the compiler is broken, or we cross compile.
2448 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2449 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2450 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2451 # If not cross compiling, check that we can run a simple program.
2452 if test "$cross_compiling" != yes; then
2453 if { ac_try='./$ac_file'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; }; then
2459 cross_compiling=no
2460 else
2461 if test "$cross_compiling" = maybe; then
2462 cross_compiling=yes
2463 else
2464 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2465 If you meant to cross compile, use \`--host'.
2466 See \`config.log' for more details." >&5
2467 echo "$as_me: error: cannot run C compiled programs.
2468 If you meant to cross compile, use \`--host'.
2469 See \`config.log' for more details." >&2;}
2470 { (exit 1); exit 1; }; }
2474 echo "$as_me:$LINENO: result: yes" >&5
2475 echo "${ECHO_T}yes" >&6
2477 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2478 ac_clean_files=$ac_clean_files_save
2479 # Check the compiler produces executables we can run. If not, either
2480 # the compiler is broken, or we cross compile.
2481 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2482 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2483 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2484 echo "${ECHO_T}$cross_compiling" >&6
2486 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2487 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2489 (eval $ac_link) 2>&5
2490 ac_status=$?
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; then
2493 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2494 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2495 # work properly (i.e., refer to `conftest.exe'), while it won't with
2496 # `rm'.
2497 for ac_file in conftest.exe conftest conftest.*; do
2498 test -f "$ac_file" || continue
2499 case $ac_file in
2500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2501 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2502 export ac_cv_exeext
2503 break;;
2504 * ) break;;
2505 esac
2506 done
2507 else
2508 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2509 See \`config.log' for more details." >&5
2510 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2511 See \`config.log' for more details." >&2;}
2512 { (exit 1); exit 1; }; }
2515 rm -f conftest$ac_cv_exeext
2516 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2517 echo "${ECHO_T}$ac_cv_exeext" >&6
2519 rm -f conftest.$ac_ext
2520 EXEEXT=$ac_cv_exeext
2521 ac_exeext=$EXEEXT
2523 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2524 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2525 if test "${ac_cv_objext+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528 cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h. */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2536 main ()
2540 return 0;
2542 _ACEOF
2543 rm -f conftest.o conftest.obj
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2550 case $ac_file in
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2552 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2553 break;;
2554 esac
2555 done
2556 else
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564 { (exit 1); exit 1; }; }
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6
2571 OBJEXT=$ac_cv_objext
2572 ac_objext=$OBJEXT
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578 cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h. */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2586 main ()
2588 #ifndef __GNUC__
2589 choke me
2590 #endif
2593 return 0;
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598 (eval $ac_compile) 2>conftest.er1
2599 ac_status=$?
2600 grep -v '^ *+' conftest.er1 >conftest.err
2601 rm -f conftest.er1
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag"
2606 || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 (eval $ac_try) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2618 ac_compiler_gnu=yes
2619 else
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2623 ac_compiler_gnu=no
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2629 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2630 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2631 GCC=`test $ac_compiler_gnu = yes && echo yes`
2632 ac_test_CFLAGS=${CFLAGS+set}
2633 ac_save_CFLAGS=$CFLAGS
2634 CFLAGS="-g"
2635 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2636 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2637 if test "${ac_cv_prog_cc_g+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640 cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h. */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2648 main ()
2652 return 0;
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>conftest.er1
2658 ac_status=$?
2659 grep -v '^ *+' conftest.er1 >conftest.err
2660 rm -f conftest.er1
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -z "$ac_c_werror_flag"
2665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 ac_cv_prog_cc_g=yes
2678 else
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2682 ac_cv_prog_cc_g=no
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2688 if test "$ac_test_CFLAGS" = set; then
2689 CFLAGS=$ac_save_CFLAGS
2690 elif test $ac_cv_prog_cc_g = yes; then
2691 if test "$GCC" = yes; then
2692 CFLAGS="-g -O2"
2693 else
2694 CFLAGS="-g"
2696 else
2697 if test "$GCC" = yes; then
2698 CFLAGS="-O2"
2699 else
2700 CFLAGS=
2703 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2704 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2705 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708 ac_cv_prog_cc_stdc=no
2709 ac_save_CC=$CC
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h. */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2716 #include <stdarg.h>
2717 #include <stdio.h>
2718 #include <sys/types.h>
2719 #include <sys/stat.h>
2720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2721 struct buf { int x; };
2722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2723 static char *e (p, i)
2724 char **p;
2725 int i;
2727 return p[i];
2729 static char *f (char * (*g) (char **, int), char **p, ...)
2731 char *s;
2732 va_list v;
2733 va_start (v,p);
2734 s = g (p, va_arg (v,int));
2735 va_end (v);
2736 return s;
2739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2740 function prototypes and stuff, but not '\xHH' hex character constants.
2741 These don't provoke an error unfortunately, instead are silently treated
2742 as 'x'. The following induces an error, until -std1 is added to get
2743 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2744 array size at least. It's necessary to write '\x00'==0 to get something
2745 that's true only with -std1. */
2746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2748 int test (int i, double x);
2749 struct s1 {int (*f) (int a);};
2750 struct s2 {int (*f) (double a);};
2751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2752 int argc;
2753 char **argv;
2755 main ()
2757 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2759 return 0;
2761 _ACEOF
2762 # Don't try gcc -ansi; that turns off useful extensions and
2763 # breaks some systems' header files.
2764 # AIX -qlanglvl=ansi
2765 # Ultrix and OSF/1 -std1
2766 # HP-UX 10.20 and later -Ae
2767 # HP-UX older versions -Aa -D_HPUX_SOURCE
2768 # SVR4 -Xc -D__EXTENSIONS__
2769 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2771 CC="$ac_save_CC $ac_arg"
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>conftest.er1
2775 ac_status=$?
2776 grep -v '^ *+' conftest.er1 >conftest.err
2777 rm -f conftest.er1
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -z "$ac_c_werror_flag"
2782 || test ! -s conftest.err'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; } &&
2788 { ac_try='test -s conftest.$ac_objext'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 (eval $ac_try) 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2794 ac_cv_prog_cc_stdc=$ac_arg
2795 break
2796 else
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2801 rm -f conftest.err conftest.$ac_objext
2802 done
2803 rm -f conftest.$ac_ext conftest.$ac_objext
2804 CC=$ac_save_CC
2808 case "x$ac_cv_prog_cc_stdc" in
2809 x|xno)
2810 echo "$as_me:$LINENO: result: none needed" >&5
2811 echo "${ECHO_T}none needed" >&6 ;;
2813 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2814 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2815 CC="$CC $ac_cv_prog_cc_stdc" ;;
2816 esac
2818 # Some people use a C++ compiler to compile C. Since we use `exit',
2819 # in C++ we need to declare it. In case someone uses the same compiler
2820 # for both compiling C and C++ we need to have the C++ compiler decide
2821 # the declaration of exit, since it's the most demanding environment.
2822 cat >conftest.$ac_ext <<_ACEOF
2823 #ifndef __cplusplus
2824 choke me
2825 #endif
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>conftest.er1
2830 ac_status=$?
2831 grep -v '^ *+' conftest.er1 >conftest.err
2832 rm -f conftest.er1
2833 cat conftest.err >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 { ac_try='test -z "$ac_c_werror_flag"
2837 || test ! -s conftest.err'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; } &&
2843 { ac_try='test -s conftest.$ac_objext'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 (eval $ac_try) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 for ac_declaration in \
2850 '' \
2851 'extern "C" void std::exit (int) throw (); using std::exit;' \
2852 'extern "C" void std::exit (int); using std::exit;' \
2853 'extern "C" void exit (int) throw ();' \
2854 'extern "C" void exit (int);' \
2855 'void exit (int);'
2857 cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h. */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2863 $ac_declaration
2864 #include <stdlib.h>
2866 main ()
2868 exit (42);
2870 return 0;
2872 _ACEOF
2873 rm -f conftest.$ac_objext
2874 if { (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); } &&
2882 { ac_try='test -z "$ac_c_werror_flag"
2883 || test ! -s conftest.err'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; } &&
2889 { ac_try='test -s conftest.$ac_objext'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 (eval $ac_try) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2896 else
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2900 continue
2902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903 cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h. */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2909 $ac_declaration
2911 main ()
2913 exit (42);
2915 return 0;
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>conftest.er1
2921 ac_status=$?
2922 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } &&
2927 { ac_try='test -z "$ac_c_werror_flag"
2928 || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 break
2941 else
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2947 done
2948 rm -f conftest*
2949 if test -n "$ac_declaration"; then
2950 echo '#ifdef __cplusplus' >>confdefs.h
2951 echo $ac_declaration >>confdefs.h
2952 echo '#endif' >>confdefs.h
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961 ac_ext=c
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2969 # Add -Wall if we are using GCC.
2970 if test "x$GCC" = "xyes"; then
2971 AM_FCFLAGS="-Wall"
2972 ## We like to use C99 routines when available. This makes sure that
2973 ## __STDC_VERSION__ is set such that libc includes make them available.
2974 AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
2979 # Find other programs we need.
2980 if test -n "$ac_tool_prefix"; then
2981 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2982 set dummy ${ac_tool_prefix}as; ac_word=$2
2983 echo "$as_me:$LINENO: checking for $ac_word" >&5
2984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2985 if test "${ac_cv_prog_AS+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988 if test -n "$AS"; then
2989 ac_cv_prog_AS="$AS" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_AS="${ac_tool_prefix}as"
2999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3002 done
3003 done
3007 AS=$ac_cv_prog_AS
3008 if test -n "$AS"; then
3009 echo "$as_me:$LINENO: result: $AS" >&5
3010 echo "${ECHO_T}$AS" >&6
3011 else
3012 echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6
3017 if test -z "$ac_cv_prog_AS"; then
3018 ac_ct_AS=$AS
3019 # Extract the first word of "as", so it can be a program name with args.
3020 set dummy as; ac_word=$2
3021 echo "$as_me:$LINENO: checking for $ac_word" >&5
3022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3023 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 if test -n "$ac_ct_AS"; then
3027 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036 ac_cv_prog_ac_ct_AS="as"
3037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3040 done
3041 done
3045 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3046 if test -n "$ac_ct_AS"; then
3047 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3048 echo "${ECHO_T}$ac_ct_AS" >&6
3049 else
3050 echo "$as_me:$LINENO: result: no" >&5
3051 echo "${ECHO_T}no" >&6
3054 AS=$ac_ct_AS
3055 else
3056 AS="$ac_cv_prog_AS"
3059 if test -n "$ac_tool_prefix"; then
3060 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3061 set dummy ${ac_tool_prefix}ar; ac_word=$2
3062 echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3064 if test "${ac_cv_prog_AR+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067 if test -n "$AR"; then
3068 ac_cv_prog_AR="$AR" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_AR="${ac_tool_prefix}ar"
3078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3081 done
3082 done
3086 AR=$ac_cv_prog_AR
3087 if test -n "$AR"; then
3088 echo "$as_me:$LINENO: result: $AR" >&5
3089 echo "${ECHO_T}$AR" >&6
3090 else
3091 echo "$as_me:$LINENO: result: no" >&5
3092 echo "${ECHO_T}no" >&6
3096 if test -z "$ac_cv_prog_AR"; then
3097 ac_ct_AR=$AR
3098 # Extract the first word of "ar", so it can be a program name with args.
3099 set dummy ar; ac_word=$2
3100 echo "$as_me:$LINENO: checking for $ac_word" >&5
3101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3102 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105 if test -n "$ac_ct_AR"; then
3106 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_ac_ct_AR="ar"
3116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3119 done
3120 done
3124 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3125 if test -n "$ac_ct_AR"; then
3126 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3127 echo "${ECHO_T}$ac_ct_AR" >&6
3128 else
3129 echo "$as_me:$LINENO: result: no" >&5
3130 echo "${ECHO_T}no" >&6
3133 AR=$ac_ct_AR
3134 else
3135 AR="$ac_cv_prog_AR"
3138 if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3141 echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_RANLIB+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 if test -n "$RANLIB"; then
3147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3160 done
3161 done
3165 RANLIB=$ac_cv_prog_RANLIB
3166 if test -n "$RANLIB"; then
3167 echo "$as_me:$LINENO: result: $RANLIB" >&5
3168 echo "${ECHO_T}$RANLIB" >&6
3169 else
3170 echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3175 if test -z "$ac_cv_prog_RANLIB"; then
3176 ac_ct_RANLIB=$RANLIB
3177 # Extract the first word of "ranlib", so it can be a program name with args.
3178 set dummy ranlib; ac_word=$2
3179 echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 if test -n "$ac_ct_RANLIB"; then
3185 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194 ac_cv_prog_ac_ct_RANLIB="ranlib"
3195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 break 2
3198 done
3199 done
3201 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3205 if test -n "$ac_ct_RANLIB"; then
3206 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3207 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3208 else
3209 echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3213 RANLIB=$ac_ct_RANLIB
3214 else
3215 RANLIB="$ac_cv_prog_RANLIB"
3218 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3219 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3220 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3221 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224 cat >conftest.make <<\_ACEOF
3225 all:
3226 @echo 'ac_maketemp="$(MAKE)"'
3227 _ACEOF
3228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3229 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3230 if test -n "$ac_maketemp"; then
3231 eval ac_cv_prog_make_${ac_make}_set=yes
3232 else
3233 eval ac_cv_prog_make_${ac_make}_set=no
3235 rm -f conftest.make
3237 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3238 echo "$as_me:$LINENO: result: yes" >&5
3239 echo "${ECHO_T}yes" >&6
3240 SET_MAKE=
3241 else
3242 echo "$as_me:$LINENO: result: no" >&5
3243 echo "${ECHO_T}no" >&6
3244 SET_MAKE="MAKE=${MAKE-make}"
3247 # Find a good install program. We prefer a C program (faster),
3248 # so one script is as good as another. But avoid the broken or
3249 # incompatible versions:
3250 # SysV /etc/install, /usr/sbin/install
3251 # SunOS /usr/etc/install
3252 # IRIX /sbin/install
3253 # AIX /bin/install
3254 # AmigaOS /C/install, which installs bootblocks on floppy discs
3255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3258 # OS/2's system install, which has a completely different semantic
3259 # ./install, which can be erroneously created by make from ./install.sh.
3260 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3261 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3262 if test -z "$INSTALL"; then
3263 if test "${ac_cv_path_install+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 # Account for people who put trailing slashes in PATH elements.
3272 case $as_dir/ in
3273 ./ | .// | /cC/* | \
3274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3275 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3276 /usr/ucb/* ) ;;
3278 # OSF1 and SCO ODT 3.0 have their own names for install.
3279 # Don't use installbsd from OSF since it installs stuff as root
3280 # by default.
3281 for ac_prog in ginstall scoinst install; do
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3284 if test $ac_prog = install &&
3285 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3286 # AIX install. It has an incompatible calling convention.
3288 elif test $ac_prog = install &&
3289 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3290 # program-specific install script used by HP pwplus--don't use.
3292 else
3293 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3294 break 3
3297 done
3298 done
3300 esac
3301 done
3305 if test "${ac_cv_path_install+set}" = set; then
3306 INSTALL=$ac_cv_path_install
3307 else
3308 # As a last resort, use the slow shell script. We don't cache a
3309 # path for INSTALL within a source directory, because that will
3310 # break other packages using the cache if that directory is
3311 # removed, or if the path is relative.
3312 INSTALL=$ac_install_sh
3315 echo "$as_me:$LINENO: result: $INSTALL" >&5
3316 echo "${ECHO_T}$INSTALL" >&6
3318 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3319 # It thinks the first close brace ends the variable substitution.
3320 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3322 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3324 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3327 # Configure libtool
3328 #AC_MSG_NOTICE([====== Starting libtool configuration])
3330 # Check whether --enable-shared or --disable-shared was given.
3331 if test "${enable_shared+set}" = set; then
3332 enableval="$enable_shared"
3333 p=${PACKAGE-default}
3334 case $enableval in
3335 yes) enable_shared=yes ;;
3336 no) enable_shared=no ;;
3338 enable_shared=no
3339 # Look at the argument we got. We use all the common list separators.
3340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3341 for pkg in $enableval; do
3342 if test "X$pkg" = "X$p"; then
3343 enable_shared=yes
3345 done
3346 IFS="$ac_save_ifs"
3348 esac
3349 else
3350 enable_shared=yes
3352 # Check whether --enable-static or --disable-static was given.
3353 if test "${enable_static+set}" = set; then
3354 enableval="$enable_static"
3355 p=${PACKAGE-default}
3356 case $enableval in
3357 yes) enable_static=yes ;;
3358 no) enable_static=no ;;
3360 enable_static=no
3361 # Look at the argument we got. We use all the common list separators.
3362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3363 for pkg in $enableval; do
3364 if test "X$pkg" = "X$p"; then
3365 enable_static=yes
3367 done
3368 IFS="$ac_save_ifs"
3370 esac
3371 else
3372 enable_static=yes
3374 # Check whether --enable-fast-install or --disable-fast-install was given.
3375 if test "${enable_fast_install+set}" = set; then
3376 enableval="$enable_fast_install"
3377 p=${PACKAGE-default}
3378 case $enableval in
3379 yes) enable_fast_install=yes ;;
3380 no) enable_fast_install=no ;;
3382 enable_fast_install=no
3383 # Look at the argument we got. We use all the common list separators.
3384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3385 for pkg in $enableval; do
3386 if test "X$pkg" = "X$p"; then
3387 enable_fast_install=yes
3389 done
3390 IFS="$ac_save_ifs"
3392 esac
3393 else
3394 enable_fast_install=yes
3397 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3398 if test "${with_gnu_ld+set}" = set; then
3399 withval="$with_gnu_ld"
3400 test "$withval" = no || with_gnu_ld=yes
3401 else
3402 with_gnu_ld=no
3404 ac_prog=ld
3405 if test "$GCC" = yes; then
3406 # Check if gcc -print-prog-name=ld gives a path.
3407 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3408 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3409 case $host in
3410 *-*-mingw*)
3411 # gcc leaves a trailing carriage return which upsets mingw
3412 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3414 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3415 esac
3416 case $ac_prog in
3417 # Accept absolute paths.
3418 [\\/]* | [A-Za-z]:[\\/]*)
3419 re_direlt='/[^/][^/]*/\.\./'
3420 # Canonicalize the path of ld
3421 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3422 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3423 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3424 done
3425 test -z "$LD" && LD="$ac_prog"
3428 # If it fails, then pretend we aren't using GCC.
3429 ac_prog=ld
3432 # If it is relative, then search for the first ld in PATH.
3433 with_gnu_ld=unknown
3435 esac
3436 elif test "$with_gnu_ld" = yes; then
3437 echo "$as_me:$LINENO: checking for GNU ld" >&5
3438 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3439 else
3440 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3441 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3443 if test "${lt_cv_path_LD+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 if test -z "$LD"; then
3447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3448 for ac_dir in $PATH; do
3449 test -z "$ac_dir" && ac_dir=.
3450 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3451 lt_cv_path_LD="$ac_dir/$ac_prog"
3452 # Check to see if the program is GNU ld. I'd rather use --version,
3453 # but apparently some GNU ld's only accept -v.
3454 # Break only if it was the GNU/non-GNU ld that we prefer.
3455 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3456 test "$with_gnu_ld" != no && break
3457 else
3458 test "$with_gnu_ld" != yes && break
3461 done
3462 IFS="$ac_save_ifs"
3463 else
3464 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3468 LD="$lt_cv_path_LD"
3469 if test -n "$LD"; then
3470 echo "$as_me:$LINENO: result: $LD" >&5
3471 echo "${ECHO_T}$LD" >&6
3472 else
3473 echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6
3476 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3477 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3478 { (exit 1); exit 1; }; }
3479 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3480 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3481 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3482 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 else
3484 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3485 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3486 lt_cv_prog_gnu_ld=yes
3487 else
3488 lt_cv_prog_gnu_ld=no
3491 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3492 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3493 with_gnu_ld=$lt_cv_prog_gnu_ld
3496 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3497 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3498 if test "${lt_cv_ld_reload_flag+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501 lt_cv_ld_reload_flag='-r'
3503 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3504 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3505 reload_flag=$lt_cv_ld_reload_flag
3506 test -n "$reload_flag" && reload_flag=" $reload_flag"
3508 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3509 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3510 if test "${lt_cv_path_NM+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513 if test -n "$NM"; then
3514 # Let the user override the test.
3515 lt_cv_path_NM="$NM"
3516 else
3517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3518 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3519 test -z "$ac_dir" && ac_dir=.
3520 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3521 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3522 # Check to see if the nm accepts a BSD-compat flag.
3523 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3524 # nm: unknown option "B" ignored
3525 # Tru64's nm complains that /dev/null is an invalid object file
3526 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3527 lt_cv_path_NM="$tmp_nm -B"
3528 break
3529 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3530 lt_cv_path_NM="$tmp_nm -p"
3531 break
3532 else
3533 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3534 continue # so that we can try to find one that supports BSD flags
3537 done
3538 IFS="$ac_save_ifs"
3539 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3543 NM="$lt_cv_path_NM"
3544 echo "$as_me:$LINENO: result: $NM" >&5
3545 echo "${ECHO_T}$NM" >&6
3547 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3548 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3549 LN_S=$as_ln_s
3550 if test "$LN_S" = "ln -s"; then
3551 echo "$as_me:$LINENO: result: yes" >&5
3552 echo "${ECHO_T}yes" >&6
3553 else
3554 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3555 echo "${ECHO_T}no, using $LN_S" >&6
3558 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3559 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3560 if test "${lt_cv_deplibs_check_method+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563 lt_cv_file_magic_cmd='$MAGIC_CMD'
3564 lt_cv_file_magic_test_file=
3565 lt_cv_deplibs_check_method='unknown'
3566 # Need to set the preceding variable on all platforms that support
3567 # interlibrary dependencies.
3568 # 'none' -- dependencies not supported.
3569 # `unknown' -- same as none, but documents that we really don't know.
3570 # 'pass_all' -- all dependencies passed with no checks.
3571 # 'test_compile' -- check by making test program.
3572 # 'file_magic [regex]' -- check by looking for files in library path
3573 # which responds to the $file_magic_cmd with a given egrep regex.
3574 # If you have `file' or equivalent on your system and you're not sure
3575 # whether `pass_all' will *always* work, you probably want this one.
3577 case $host_os in
3578 aix*)
3579 lt_cv_deplibs_check_method=pass_all
3582 beos*)
3583 lt_cv_deplibs_check_method=pass_all
3586 bsdi4*)
3587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3588 lt_cv_file_magic_cmd='/usr/bin/file -L'
3589 lt_cv_file_magic_test_file=/shlib/libc.so
3592 cygwin* | mingw* |pw32*)
3593 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3594 lt_cv_file_magic_cmd='$OBJDUMP -f'
3597 darwin* | rhapsody*)
3598 # this will be overwritten by pass_all, but leave it in just in case
3599 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3600 lt_cv_file_magic_cmd='/usr/bin/file -L'
3601 case "$host_os" in
3602 rhapsody* | darwin1.012)
3603 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3605 *) # Darwin 1.3 on
3606 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3608 esac
3609 lt_cv_deplibs_check_method=pass_all
3612 freebsd* | kfreebsd*-gnu)
3613 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3614 case $host_cpu in
3615 i*86 )
3616 # Not sure whether the presence of OpenBSD here was a mistake.
3617 # Let's accept both of them until this is cleared up.
3618 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3619 lt_cv_file_magic_cmd=/usr/bin/file
3620 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3622 esac
3623 else
3624 lt_cv_deplibs_check_method=pass_all
3628 gnu*)
3629 lt_cv_deplibs_check_method=pass_all
3632 hpux10.20*|hpux11*)
3633 case $host_cpu in
3634 hppa*)
3635 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3636 lt_cv_file_magic_cmd=/usr/bin/file
3637 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3639 ia64*)
3640 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3641 lt_cv_file_magic_cmd=/usr/bin/file
3642 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3644 esac
3647 irix5* | irix6*)
3648 case $host_os in
3649 irix5*)
3650 # this will be overridden with pass_all, but let us keep it just in case
3651 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3654 case $LD in
3655 *-32|*"-32 ") libmagic=32-bit;;
3656 *-n32|*"-n32 ") libmagic=N32;;
3657 *-64|*"-64 ") libmagic=64-bit;;
3658 *) libmagic=never-match;;
3659 esac
3660 # this will be overridden with pass_all, but let us keep it just in case
3661 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3663 esac
3664 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3665 lt_cv_deplibs_check_method=pass_all
3668 # This must be Linux ELF.
3669 linux-gnu*)
3670 lt_cv_deplibs_check_method=pass_all
3673 netbsd* | knetbsd*-gnu)
3674 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3675 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3676 else
3677 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3681 newsos6)
3682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3683 lt_cv_file_magic_cmd=/usr/bin/file
3684 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3687 osf3* | osf4* | osf5*)
3688 # this will be overridden with pass_all, but let us keep it just in case
3689 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3690 lt_cv_file_magic_test_file=/shlib/libc.so
3691 lt_cv_deplibs_check_method=pass_all
3694 sco3.2v5*)
3695 lt_cv_deplibs_check_method=pass_all
3698 solaris*)
3699 lt_cv_deplibs_check_method=pass_all
3700 lt_cv_file_magic_test_file=/lib/libc.so
3703 sysv5uw[78]* | sysv4*uw2*)
3704 lt_cv_deplibs_check_method=pass_all
3707 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3708 case $host_vendor in
3709 ncr)
3710 lt_cv_deplibs_check_method=pass_all
3712 motorola)
3713 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]'
3714 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3716 esac
3718 esac
3721 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3722 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3723 file_magic_cmd=$lt_cv_file_magic_cmd
3724 deplibs_check_method=$lt_cv_deplibs_check_method
3730 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3732 # find the maximum length of command line arguments
3733 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3734 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3735 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3739 teststring="ABCD"
3741 case $build_os in
3742 msdosdjgpp*)
3743 # On DJGPP, this test can blow up pretty badly due to problems in libc
3744 # (any single argument exceeding 2000 bytes causes a buffer overrun
3745 # during glob expansion). Even if it were fixed, the result of this
3746 # check would be larger than it should be.
3747 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3750 cygwin* | mingw*)
3751 # On Win9x/ME, this test blows up -- it succeeds, but takes
3752 # about 5 minutes as the teststring grows exponentially.
3753 # Worse, since 9x/ME are not pre-emptively multitasking,
3754 # you end up with a "frozen" computer, even though with patience
3755 # the test eventually succeeds (with a max line length of 256k).
3756 # Instead, let's just punt: use the minimum linelength reported by
3757 # all of the supported platforms: 8192 (on NT/2K/XP).
3758 lt_cv_sys_max_cmd_len=8192;
3761 amigaos*)
3762 # On AmigaOS with pdksh, this test takes hours, literally.
3763 # So we just punt and use a minimum line length of 8192.
3764 lt_cv_sys_max_cmd_len=8192;
3767 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3768 # This has been around since 386BSD, at least. Likely further.
3769 if test -x /sbin/sysctl; then
3770 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3771 elif test -x /usr/sbin/sysctl; then
3772 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3773 else
3774 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3776 # And add a safety zone
3777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3780 esac
3784 if test -n "$lt_cv_sys_max_cmd_len" ; then
3785 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3786 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3787 else
3788 echo "$as_me:$LINENO: result: none" >&5
3789 echo "${ECHO_T}none" >&6
3793 # Only perform the check for file, if the check method requires it
3794 case $deplibs_check_method in
3795 file_magic*)
3796 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3797 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3798 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3799 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 case $MAGIC_CMD in
3804 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3806 ?:/*)
3807 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3810 ac_save_MAGIC_CMD="$MAGIC_CMD"
3811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3812 ac_dummy="/usr/bin:$PATH"
3813 for ac_dir in $ac_dummy; do
3814 test -z "$ac_dir" && ac_dir=.
3815 if test -f $ac_dir/${ac_tool_prefix}file; then
3816 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3817 if test -n "$file_magic_test_file"; then
3818 case $deplibs_check_method in
3819 "file_magic "*)
3820 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3822 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3823 egrep "$file_magic_regex" > /dev/null; then
3825 else
3826 cat <<EOF 1>&2
3828 *** Warning: the command libtool uses to detect shared libraries,
3829 *** $file_magic_cmd, produces output that libtool cannot recognize.
3830 *** The result is that libtool may fail to recognize shared libraries
3831 *** as such. This will affect the creation of libtool libraries that
3832 *** depend on shared libraries, but programs linked with such libtool
3833 *** libraries will work regardless of this problem. Nevertheless, you
3834 *** may want to report the problem to your system manager and/or to
3835 *** bug-libtool@gnu.org
3838 fi ;;
3839 esac
3841 break
3843 done
3844 IFS="$ac_save_ifs"
3845 MAGIC_CMD="$ac_save_MAGIC_CMD"
3847 esac
3850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3851 if test -n "$MAGIC_CMD"; then
3852 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3853 echo "${ECHO_T}$MAGIC_CMD" >&6
3854 else
3855 echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3859 if test -z "$lt_cv_path_MAGIC_CMD"; then
3860 if test -n "$ac_tool_prefix"; then
3861 echo "$as_me:$LINENO: checking for file" >&5
3862 echo $ECHO_N "checking for file... $ECHO_C" >&6
3863 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866 case $MAGIC_CMD in
3868 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3870 ?:/*)
3871 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3874 ac_save_MAGIC_CMD="$MAGIC_CMD"
3875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3876 ac_dummy="/usr/bin:$PATH"
3877 for ac_dir in $ac_dummy; do
3878 test -z "$ac_dir" && ac_dir=.
3879 if test -f $ac_dir/file; then
3880 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3881 if test -n "$file_magic_test_file"; then
3882 case $deplibs_check_method in
3883 "file_magic "*)
3884 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3885 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3886 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3887 egrep "$file_magic_regex" > /dev/null; then
3889 else
3890 cat <<EOF 1>&2
3892 *** Warning: the command libtool uses to detect shared libraries,
3893 *** $file_magic_cmd, produces output that libtool cannot recognize.
3894 *** The result is that libtool may fail to recognize shared libraries
3895 *** as such. This will affect the creation of libtool libraries that
3896 *** depend on shared libraries, but programs linked with such libtool
3897 *** libraries will work regardless of this problem. Nevertheless, you
3898 *** may want to report the problem to your system manager and/or to
3899 *** bug-libtool@gnu.org
3902 fi ;;
3903 esac
3905 break
3907 done
3908 IFS="$ac_save_ifs"
3909 MAGIC_CMD="$ac_save_MAGIC_CMD"
3911 esac
3914 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3915 if test -n "$MAGIC_CMD"; then
3916 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3917 echo "${ECHO_T}$MAGIC_CMD" >&6
3918 else
3919 echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3923 else
3924 MAGIC_CMD=:
3930 esac
3932 if test -n "$ac_tool_prefix"; then
3933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3934 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3935 echo "$as_me:$LINENO: checking for $ac_word" >&5
3936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3937 if test "${ac_cv_prog_RANLIB+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940 if test -n "$RANLIB"; then
3941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 break 2
3954 done
3955 done
3959 RANLIB=$ac_cv_prog_RANLIB
3960 if test -n "$RANLIB"; then
3961 echo "$as_me:$LINENO: result: $RANLIB" >&5
3962 echo "${ECHO_T}$RANLIB" >&6
3963 else
3964 echo "$as_me:$LINENO: result: no" >&5
3965 echo "${ECHO_T}no" >&6
3969 if test -z "$ac_cv_prog_RANLIB"; then
3970 ac_ct_RANLIB=$RANLIB
3971 # Extract the first word of "ranlib", so it can be a program name with args.
3972 set dummy ranlib; ac_word=$2
3973 echo "$as_me:$LINENO: checking for $ac_word" >&5
3974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3975 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978 if test -n "$ac_ct_RANLIB"; then
3979 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3980 else
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988 ac_cv_prog_ac_ct_RANLIB="ranlib"
3989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 break 2
3992 done
3993 done
3995 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3998 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3999 if test -n "$ac_ct_RANLIB"; then
4000 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4001 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4002 else
4003 echo "$as_me:$LINENO: result: no" >&5
4004 echo "${ECHO_T}no" >&6
4007 RANLIB=$ac_ct_RANLIB
4008 else
4009 RANLIB="$ac_cv_prog_RANLIB"
4012 if test -n "$ac_tool_prefix"; then
4013 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4014 set dummy ${ac_tool_prefix}strip; ac_word=$2
4015 echo "$as_me:$LINENO: checking for $ac_word" >&5
4016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4017 if test "${ac_cv_prog_STRIP+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020 if test -n "$STRIP"; then
4021 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4022 else
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 break 2
4034 done
4035 done
4039 STRIP=$ac_cv_prog_STRIP
4040 if test -n "$STRIP"; then
4041 echo "$as_me:$LINENO: result: $STRIP" >&5
4042 echo "${ECHO_T}$STRIP" >&6
4043 else
4044 echo "$as_me:$LINENO: result: no" >&5
4045 echo "${ECHO_T}no" >&6
4049 if test -z "$ac_cv_prog_STRIP"; then
4050 ac_ct_STRIP=$STRIP
4051 # Extract the first word of "strip", so it can be a program name with args.
4052 set dummy strip; ac_word=$2
4053 echo "$as_me:$LINENO: checking for $ac_word" >&5
4054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4055 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058 if test -n "$ac_ct_STRIP"; then
4059 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4060 else
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
4066 for ac_exec_ext in '' $ac_executable_extensions; do
4067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4068 ac_cv_prog_ac_ct_STRIP="strip"
4069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 break 2
4072 done
4073 done
4075 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4078 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4079 if test -n "$ac_ct_STRIP"; then
4080 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4081 echo "${ECHO_T}$ac_ct_STRIP" >&6
4082 else
4083 echo "$as_me:$LINENO: result: no" >&5
4084 echo "${ECHO_T}no" >&6
4087 STRIP=$ac_ct_STRIP
4088 else
4089 STRIP="$ac_cv_prog_STRIP"
4093 # Check for any special flags to pass to ltconfig.
4094 libtool_flags="--cache-file=$cache_file"
4095 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4096 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4097 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4098 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4099 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4102 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4103 if test "${enable_libtool_lock+set}" = set; then
4104 enableval="$enable_libtool_lock"
4107 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4108 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4111 # Check whether --with-pic or --without-pic was given.
4112 if test "${with_pic+set}" = set; then
4113 withval="$with_pic"
4114 pic_mode="$withval"
4115 else
4116 pic_mode=default
4118 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4119 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4121 # Some flags need to be propagated to the compiler or linker for good
4122 # libtool support.
4123 case $host in
4124 *-*-irix6*)
4125 # Find out which ABI we are using.
4126 echo '#line 4126 "configure"' > conftest.$ac_ext
4127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128 (eval $ac_compile) 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; then
4132 if test "$lt_cv_prog_gnu_ld" = yes; then
4133 case `/usr/bin/file conftest.$ac_objext` in
4134 *32-bit*)
4135 LD="${LD-ld} -melf32bsmip"
4137 *N32*)
4138 LD="${LD-ld} -melf32bmipn32"
4140 *64-bit*)
4141 LD="${LD-ld} -melf64bmip"
4143 esac
4144 else
4145 case `/usr/bin/file conftest.$ac_objext` in
4146 *32-bit*)
4147 LD="${LD-ld} -32"
4149 *N32*)
4150 LD="${LD-ld} -n32"
4152 *64-bit*)
4153 LD="${LD-ld} -64"
4155 esac
4158 rm -rf conftest*
4161 ia64-*-hpux*)
4162 # Find out which ABI we are using.
4163 echo 'int i;' > conftest.$ac_ext
4164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4165 (eval $ac_compile) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; then
4169 case "`/usr/bin/file conftest.o`" in
4170 *ELF-32*)
4171 HPUX_IA64_MODE="32"
4173 *ELF-64*)
4174 HPUX_IA64_MODE="64"
4176 esac
4178 rm -rf conftest*
4181 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4182 # Find out which ABI we are using.
4183 echo 'int i;' > conftest.$ac_ext
4184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4185 (eval $ac_compile) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; then
4189 case "`/usr/bin/file conftest.o`" in
4190 *32-bit*)
4191 case $host in
4192 x86_64-*linux*)
4193 LD="${LD-ld} -m elf_i386"
4195 ppc64-*linux*|powerpc64-*linux*)
4196 LD="${LD-ld} -m elf32ppclinux"
4198 s390x-*linux*)
4199 LD="${LD-ld} -m elf_s390"
4201 sparc64-*linux*)
4202 LD="${LD-ld} -m elf32_sparc"
4204 esac
4206 *64-bit*)
4207 case $host in
4208 x86_64-*linux*)
4209 LD="${LD-ld} -m elf_x86_64"
4211 ppc*-*linux*|powerpc*-*linux*)
4212 LD="${LD-ld} -m elf64ppc"
4214 s390*-*linux*)
4215 LD="${LD-ld} -m elf64_s390"
4217 sparc*-*linux*)
4218 LD="${LD-ld} -m elf64_sparc"
4220 esac
4222 esac
4224 rm -rf conftest*
4227 *-*-sco3.2v5*)
4228 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4229 SAVE_CFLAGS="$CFLAGS"
4230 CFLAGS="$CFLAGS -belf"
4231 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4232 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4233 if test "${lt_cv_cc_needs_belf+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 else
4238 ac_ext=c
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244 if test x$gcc_no_link = xyes; then
4245 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4246 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4247 { (exit 1); exit 1; }; }
4249 cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h. */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4257 main ()
4261 return 0;
4263 _ACEOF
4264 rm -f conftest.$ac_objext conftest$ac_exeext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266 (eval $ac_link) 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } &&
4273 { ac_try='test -z "$ac_c_werror_flag"
4274 || test ! -s conftest.err'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 (eval $ac_try) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; } &&
4280 { ac_try='test -s conftest$ac_exeext'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 (eval $ac_try) 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4286 lt_cv_cc_needs_belf=yes
4287 else
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 lt_cv_cc_needs_belf=no
4293 rm -f conftest.err conftest.$ac_objext \
4294 conftest$ac_exeext conftest.$ac_ext
4295 ac_ext=c
4296 ac_cpp='$CPP $CPPFLAGS'
4297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4303 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4304 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4305 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4306 CFLAGS="$SAVE_CFLAGS"
4311 esac
4314 # Save cache, so that ltconfig can load it
4315 cat >confcache <<\_ACEOF
4316 # This file is a shell script that caches the results of configure
4317 # tests run on this system so they can be shared between configure
4318 # scripts and configure runs, see configure's option --config-cache.
4319 # It is not useful on other systems. If it contains results you don't
4320 # want to keep, you may remove or edit it.
4322 # config.status only pays attention to the cache file if you give it
4323 # the --recheck option to rerun configure.
4325 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4326 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4327 # following values.
4329 _ACEOF
4331 # The following way of writing the cache mishandles newlines in values,
4332 # but we know of no workaround that is simple, portable, and efficient.
4333 # So, don't put newlines in cache variables' values.
4334 # Ultrix sh set writes to stderr and can't be redirected directly,
4335 # and sets the high bit in the cache file unless we assign to the vars.
4337 (set) 2>&1 |
4338 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4339 *ac_space=\ *)
4340 # `set' does not quote correctly, so add quotes (double-quote
4341 # substitution turns \\\\ into \\, and sed turns \\ into \).
4342 sed -n \
4343 "s/'/'\\\\''/g;
4344 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4347 # `set' quotes correctly as required by POSIX, so do not add quotes.
4348 sed -n \
4349 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4351 esac;
4353 sed '
4354 t clear
4355 : clear
4356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4357 t end
4358 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4359 : end' >>confcache
4360 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4361 if test -w $cache_file; then
4362 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4363 cat confcache >$cache_file
4364 else
4365 echo "not updating unwritable cache $cache_file"
4368 rm -f confcache
4370 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4371 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4372 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4373 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4374 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4375 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4376 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4377 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4378 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4379 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4380 echo "$as_me: error: libtool configure failed" >&2;}
4381 { (exit 1); exit 1; }; }
4383 # Reload cache, that may have been modified by ltconfig
4384 if test -r "$cache_file"; then
4385 # Some versions of bash will fail to source /dev/null (special
4386 # files actually), so we avoid doing that.
4387 if test -f "$cache_file"; then
4388 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4389 echo "$as_me: loading cache $cache_file" >&6;}
4390 case $cache_file in
4391 [\\/]* | ?:[\\/]* ) . $cache_file;;
4392 *) . ./$cache_file;;
4393 esac
4395 else
4396 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4397 echo "$as_me: creating cache $cache_file" >&6;}
4398 >$cache_file
4402 # This can be used to rebuild libtool when needed
4403 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4405 # Always use our own libtool.
4406 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4408 # Redirect the config.log output again, so that the ltconfig log is not
4409 # clobbered by the next message.
4410 exec 5>>./config.log
4419 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4421 # We need gfortran to compile parts of the library
4422 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4423 #AC_PROG_FC(gfortran)
4424 FC="$GFORTRAN"
4425 ac_ext=${FC_SRCEXT-f}
4426 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4427 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4428 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4429 if test -n "$ac_tool_prefix"; then
4430 for ac_prog in gfortran
4432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4434 echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4436 if test "${ac_cv_prog_FC+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 if test -n "$FC"; then
4440 ac_cv_prog_FC="$FC" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4453 done
4454 done
4458 FC=$ac_cv_prog_FC
4459 if test -n "$FC"; then
4460 echo "$as_me:$LINENO: result: $FC" >&5
4461 echo "${ECHO_T}$FC" >&6
4462 else
4463 echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6
4467 test -n "$FC" && break
4468 done
4470 if test -z "$FC"; then
4471 ac_ct_FC=$FC
4472 for ac_prog in gfortran
4474 # Extract the first word of "$ac_prog", so it can be a program name with args.
4475 set dummy $ac_prog; ac_word=$2
4476 echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 if test -n "$ac_ct_FC"; then
4482 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491 ac_cv_prog_ac_ct_FC="$ac_prog"
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 break 2
4495 done
4496 done
4500 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4501 if test -n "$ac_ct_FC"; then
4502 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4503 echo "${ECHO_T}$ac_ct_FC" >&6
4504 else
4505 echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4509 test -n "$ac_ct_FC" && break
4510 done
4512 FC=$ac_ct_FC
4516 # Provide some information about the compiler.
4517 echo "$as_me:4517:" \
4518 "checking for Fortran compiler version" >&5
4519 ac_compiler=`set X $ac_compile; echo $2`
4520 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4521 (eval $ac_compiler --version </dev/null >&5) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }
4525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4526 (eval $ac_compiler -v </dev/null >&5) 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }
4530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4531 (eval $ac_compiler -V </dev/null >&5) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }
4535 rm -f a.out
4537 # If we don't use `.F' as extension, the preprocessor is not run on the
4538 # input file. (Note that this only needs to work for GNU compilers.)
4539 ac_save_ext=$ac_ext
4540 ac_ext=F
4541 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4542 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4543 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546 cat >conftest.$ac_ext <<_ACEOF
4547 program main
4548 #ifndef __GNUC__
4549 choke me
4550 #endif
4553 _ACEOF
4554 rm -f conftest.$ac_objext
4555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4556 (eval $ac_compile) 2>conftest.er1
4557 ac_status=$?
4558 grep -v '^ *+' conftest.er1 >conftest.err
4559 rm -f conftest.er1
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -z "$ac_fc_werror_flag"
4564 || test ! -s conftest.err'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; } &&
4570 { ac_try='test -s conftest.$ac_objext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 ac_compiler_gnu=yes
4577 else
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4581 ac_compiler_gnu=no
4583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4584 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4587 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4588 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4589 ac_ext=$ac_save_ext
4590 ac_test_FFLAGS=${FCFLAGS+set}
4591 ac_save_FFLAGS=$FCFLAGS
4592 FCFLAGS=
4593 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4594 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4595 if test "${ac_cv_prog_fc_g+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598 FCFLAGS=-g
4599 cat >conftest.$ac_ext <<_ACEOF
4600 program main
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4606 (eval $ac_compile) 2>conftest.er1
4607 ac_status=$?
4608 grep -v '^ *+' conftest.er1 >conftest.err
4609 rm -f conftest.er1
4610 cat conftest.err >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } &&
4613 { ac_try='test -z "$ac_fc_werror_flag"
4614 || test ! -s conftest.err'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 (eval $ac_try) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; } &&
4620 { ac_try='test -s conftest.$ac_objext'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 (eval $ac_try) 2>&5
4623 ac_status=$?
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 ac_cv_prog_fc_g=yes
4627 else
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4631 ac_cv_prog_fc_g=no
4633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4636 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4637 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4638 if test "$ac_test_FFLAGS" = set; then
4639 FCFLAGS=$ac_save_FFLAGS
4640 elif test $ac_cv_prog_fc_g = yes; then
4641 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4642 FCFLAGS="-g -O2"
4643 else
4644 FCFLAGS="-g"
4646 else
4647 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4648 FCFLAGS="-O2"
4649 else
4650 FCFLAGS=
4654 ac_ext=c
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4660 FCFLAGS="$FCFLAGS -Wall -fno-repack-arrays -fno-underscoring"
4662 # extra LD Flags which are required for targets
4663 case "${host}" in
4664 *-darwin*)
4665 # Darwin needs -single_module when linking libgfortran
4666 extra_ldflags_libgfortran=-Wl,-single_module
4668 esac
4671 # Check whether --enable-largefile or --disable-largefile was given.
4672 if test "${enable_largefile+set}" = set; then
4673 enableval="$enable_largefile"
4676 if test "$enable_largefile" != no; then
4678 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4679 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4680 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683 ac_cv_sys_largefile_CC=no
4684 if test "$GCC" != yes; then
4685 ac_save_CC=$CC
4686 while :; do
4687 # IRIX 6.2 and later do not support large files by default,
4688 # so use the C compiler's -n32 option if that helps.
4689 cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h. */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #include <sys/types.h>
4696 /* Check that off_t can represent 2**63 - 1 correctly.
4697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4698 since some C++ compilers masquerading as C compilers
4699 incorrectly reject 9223372036854775807. */
4700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4702 && LARGE_OFF_T % 2147483647 == 1)
4703 ? 1 : -1];
4705 main ()
4709 return 0;
4711 _ACEOF
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -z "$ac_c_werror_flag"
4722 || test ! -s conftest.err'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; } &&
4728 { ac_try='test -s conftest.$ac_objext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 break
4735 else
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4740 rm -f conftest.err conftest.$ac_objext
4741 CC="$CC -n32"
4742 rm -f conftest.$ac_objext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744 (eval $ac_compile) 2>conftest.er1
4745 ac_status=$?
4746 grep -v '^ *+' conftest.er1 >conftest.err
4747 rm -f conftest.er1
4748 cat conftest.err >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } &&
4751 { ac_try='test -z "$ac_c_werror_flag"
4752 || test ! -s conftest.err'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 (eval $ac_try) 2>&5
4755 ac_status=$?
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; } &&
4758 { ac_try='test -s conftest.$ac_objext'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 (eval $ac_try) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4764 ac_cv_sys_largefile_CC=' -n32'; break
4765 else
4766 echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4770 rm -f conftest.err conftest.$ac_objext
4771 break
4772 done
4773 CC=$ac_save_CC
4774 rm -f conftest.$ac_ext
4777 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4778 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4779 if test "$ac_cv_sys_largefile_CC" != no; then
4780 CC=$CC$ac_cv_sys_largefile_CC
4783 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4784 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4785 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788 while :; do
4789 ac_cv_sys_file_offset_bits=no
4790 cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h. */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796 #include <sys/types.h>
4797 /* Check that off_t can represent 2**63 - 1 correctly.
4798 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4799 since some C++ compilers masquerading as C compilers
4800 incorrectly reject 9223372036854775807. */
4801 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4802 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4803 && LARGE_OFF_T % 2147483647 == 1)
4804 ? 1 : -1];
4806 main ()
4810 return 0;
4812 _ACEOF
4813 rm -f conftest.$ac_objext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815 (eval $ac_compile) 2>conftest.er1
4816 ac_status=$?
4817 grep -v '^ *+' conftest.er1 >conftest.err
4818 rm -f conftest.er1
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try='test -z "$ac_c_werror_flag"
4823 || test ! -s conftest.err'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; } &&
4829 { ac_try='test -s conftest.$ac_objext'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 (eval $ac_try) 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; }; then
4835 break
4836 else
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 #define _FILE_OFFSET_BITS 64
4849 #include <sys/types.h>
4850 /* Check that off_t can represent 2**63 - 1 correctly.
4851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4852 since some C++ compilers masquerading as C compilers
4853 incorrectly reject 9223372036854775807. */
4854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4856 && LARGE_OFF_T % 2147483647 == 1)
4857 ? 1 : -1];
4859 main ()
4863 return 0;
4865 _ACEOF
4866 rm -f conftest.$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868 (eval $ac_compile) 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try='test -z "$ac_c_werror_flag"
4876 || test ! -s conftest.err'
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_file_offset_bits=64; break
4889 else
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4895 break
4896 done
4898 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4899 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4900 if test "$ac_cv_sys_file_offset_bits" != no; then
4902 cat >>confdefs.h <<_ACEOF
4903 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4904 _ACEOF
4907 rm -f conftest*
4908 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4909 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4910 if test "${ac_cv_sys_large_files+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913 while :; do
4914 ac_cv_sys_large_files=no
4915 cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h. */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 #include <sys/types.h>
4922 /* Check that off_t can represent 2**63 - 1 correctly.
4923 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4924 since some C++ compilers masquerading as C compilers
4925 incorrectly reject 9223372036854775807. */
4926 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4928 && LARGE_OFF_T % 2147483647 == 1)
4929 ? 1 : -1];
4931 main ()
4935 return 0;
4937 _ACEOF
4938 rm -f conftest.$ac_objext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940 (eval $ac_compile) 2>conftest.er1
4941 ac_status=$?
4942 grep -v '^ *+' conftest.er1 >conftest.err
4943 rm -f conftest.er1
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } &&
4947 { ac_try='test -z "$ac_c_werror_flag"
4948 || test ! -s conftest.err'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 (eval $ac_try) 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; } &&
4954 { ac_try='test -s conftest.$ac_objext'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; }; then
4960 break
4961 else
4962 echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4967 cat >conftest.$ac_ext <<_ACEOF
4968 /* confdefs.h. */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4973 #define _LARGE_FILES 1
4974 #include <sys/types.h>
4975 /* Check that off_t can represent 2**63 - 1 correctly.
4976 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4977 since some C++ compilers masquerading as C compilers
4978 incorrectly reject 9223372036854775807. */
4979 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4981 && LARGE_OFF_T % 2147483647 == 1)
4982 ? 1 : -1];
4984 main ()
4988 return 0;
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>conftest.er1
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try='test -z "$ac_c_werror_flag"
5001 || test ! -s conftest.err'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 (eval $ac_try) 2>&5
5004 ac_status=$?
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; } &&
5007 { ac_try='test -s conftest.$ac_objext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 (eval $ac_try) 2>&5
5010 ac_status=$?
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 ac_cv_sys_large_files=1; break
5014 else
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5020 break
5021 done
5023 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5024 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5025 if test "$ac_cv_sys_large_files" != no; then
5027 cat >>confdefs.h <<_ACEOF
5028 #define _LARGE_FILES $ac_cv_sys_large_files
5029 _ACEOF
5032 rm -f conftest*
5035 if test x$gcc_no_link = xyes; then
5036 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
5037 ac_cv_func_mmap_fixed_mapped=no
5040 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
5041 ac_ext=c
5042 ac_cpp='$CPP $CPPFLAGS'
5043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5046 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5047 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5048 # On Suns, sometimes $CPP names a directory.
5049 if test -n "$CPP" && test -d "$CPP"; then
5050 CPP=
5052 if test -z "$CPP"; then
5053 if test "${ac_cv_prog_CPP+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056 # Double quotes because CPP needs to be expanded
5057 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5059 ac_preproc_ok=false
5060 for ac_c_preproc_warn_flag in '' yes
5062 # Use a header file that comes with gcc, so configuring glibc
5063 # with a fresh cross-compiler works.
5064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5065 # <limits.h> exists even on freestanding compilers.
5066 # On the NeXT, cc -E runs the code through the compiler's parser,
5067 # not just through cpp. "Syntax error" is here to catch this case.
5068 cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h. */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 #ifdef __STDC__
5075 # include <limits.h>
5076 #else
5077 # include <assert.h>
5078 #endif
5079 Syntax error
5080 _ACEOF
5081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5083 ac_status=$?
5084 grep -v '^ *+' conftest.er1 >conftest.err
5085 rm -f conftest.er1
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } >/dev/null; then
5089 if test -s conftest.err; then
5090 ac_cpp_err=$ac_c_preproc_warn_flag
5091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5092 else
5093 ac_cpp_err=
5095 else
5096 ac_cpp_err=yes
5098 if test -z "$ac_cpp_err"; then
5100 else
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5104 # Broken: fails on valid input.
5105 continue
5107 rm -f conftest.err conftest.$ac_ext
5109 # OK, works on sane cases. Now check whether non-existent headers
5110 # can be detected and how.
5111 cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h. */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 #include <ac_nonexistent.h>
5118 _ACEOF
5119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5121 ac_status=$?
5122 grep -v '^ *+' conftest.er1 >conftest.err
5123 rm -f conftest.er1
5124 cat conftest.err >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } >/dev/null; then
5127 if test -s conftest.err; then
5128 ac_cpp_err=$ac_c_preproc_warn_flag
5129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5130 else
5131 ac_cpp_err=
5133 else
5134 ac_cpp_err=yes
5136 if test -z "$ac_cpp_err"; then
5137 # Broken: success on invalid input.
5138 continue
5139 else
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5143 # Passes both tests.
5144 ac_preproc_ok=:
5145 break
5147 rm -f conftest.err conftest.$ac_ext
5149 done
5150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5151 rm -f conftest.err conftest.$ac_ext
5152 if $ac_preproc_ok; then
5153 break
5156 done
5157 ac_cv_prog_CPP=$CPP
5160 CPP=$ac_cv_prog_CPP
5161 else
5162 ac_cv_prog_CPP=$CPP
5164 echo "$as_me:$LINENO: result: $CPP" >&5
5165 echo "${ECHO_T}$CPP" >&6
5166 ac_preproc_ok=false
5167 for ac_c_preproc_warn_flag in '' yes
5169 # Use a header file that comes with gcc, so configuring glibc
5170 # with a fresh cross-compiler works.
5171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5172 # <limits.h> exists even on freestanding compilers.
5173 # On the NeXT, cc -E runs the code through the compiler's parser,
5174 # not just through cpp. "Syntax error" is here to catch this case.
5175 cat >conftest.$ac_ext <<_ACEOF
5176 /* confdefs.h. */
5177 _ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5181 #ifdef __STDC__
5182 # include <limits.h>
5183 #else
5184 # include <assert.h>
5185 #endif
5186 Syntax error
5187 _ACEOF
5188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5190 ac_status=$?
5191 grep -v '^ *+' conftest.er1 >conftest.err
5192 rm -f conftest.er1
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } >/dev/null; then
5196 if test -s conftest.err; then
5197 ac_cpp_err=$ac_c_preproc_warn_flag
5198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5199 else
5200 ac_cpp_err=
5202 else
5203 ac_cpp_err=yes
5205 if test -z "$ac_cpp_err"; then
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5211 # Broken: fails on valid input.
5212 continue
5214 rm -f conftest.err conftest.$ac_ext
5216 # OK, works on sane cases. Now check whether non-existent headers
5217 # can be detected and how.
5218 cat >conftest.$ac_ext <<_ACEOF
5219 /* confdefs.h. */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 #include <ac_nonexistent.h>
5225 _ACEOF
5226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5228 ac_status=$?
5229 grep -v '^ *+' conftest.er1 >conftest.err
5230 rm -f conftest.er1
5231 cat conftest.err >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } >/dev/null; then
5234 if test -s conftest.err; then
5235 ac_cpp_err=$ac_c_preproc_warn_flag
5236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5237 else
5238 ac_cpp_err=
5240 else
5241 ac_cpp_err=yes
5243 if test -z "$ac_cpp_err"; then
5244 # Broken: success on invalid input.
5245 continue
5246 else
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5250 # Passes both tests.
5251 ac_preproc_ok=:
5252 break
5254 rm -f conftest.err conftest.$ac_ext
5256 done
5257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5258 rm -f conftest.err conftest.$ac_ext
5259 if $ac_preproc_ok; then
5261 else
5262 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5263 See \`config.log' for more details." >&5
5264 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5265 See \`config.log' for more details." >&2;}
5266 { (exit 1); exit 1; }; }
5269 ac_ext=c
5270 ac_cpp='$CPP $CPPFLAGS'
5271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5276 echo "$as_me:$LINENO: checking for egrep" >&5
5277 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5278 if test "${ac_cv_prog_egrep+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5282 then ac_cv_prog_egrep='grep -E'
5283 else ac_cv_prog_egrep='egrep'
5286 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5287 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5288 EGREP=$ac_cv_prog_egrep
5291 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5292 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5293 if test "${ac_cv_header_stdc+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296 cat >conftest.$ac_ext <<_ACEOF
5297 /* confdefs.h. */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302 #include <stdlib.h>
5303 #include <stdarg.h>
5304 #include <string.h>
5305 #include <float.h>
5308 main ()
5312 return 0;
5314 _ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317 (eval $ac_compile) 2>conftest.er1
5318 ac_status=$?
5319 grep -v '^ *+' conftest.er1 >conftest.err
5320 rm -f conftest.er1
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } &&
5324 { ac_try='test -z "$ac_c_werror_flag"
5325 || test ! -s conftest.err'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 (eval $ac_try) 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; } &&
5331 { ac_try='test -s conftest.$ac_objext'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 (eval $ac_try) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5337 ac_cv_header_stdc=yes
5338 else
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5342 ac_cv_header_stdc=no
5344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5346 if test $ac_cv_header_stdc = yes; then
5347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5348 cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h. */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5354 #include <string.h>
5356 _ACEOF
5357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5358 $EGREP "memchr" >/dev/null 2>&1; then
5360 else
5361 ac_cv_header_stdc=no
5363 rm -f conftest*
5367 if test $ac_cv_header_stdc = yes; then
5368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5369 cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h. */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 #include <stdlib.h>
5377 _ACEOF
5378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5379 $EGREP "free" >/dev/null 2>&1; then
5381 else
5382 ac_cv_header_stdc=no
5384 rm -f conftest*
5388 if test $ac_cv_header_stdc = yes; then
5389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5390 if test "$cross_compiling" = yes; then
5392 else
5393 cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h. */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 #include <ctype.h>
5400 #if ((' ' & 0x0FF) == 0x020)
5401 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5402 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5403 #else
5404 # define ISLOWER(c) \
5405 (('a' <= (c) && (c) <= 'i') \
5406 || ('j' <= (c) && (c) <= 'r') \
5407 || ('s' <= (c) && (c) <= 'z'))
5408 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5409 #endif
5411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5413 main ()
5415 int i;
5416 for (i = 0; i < 256; i++)
5417 if (XOR (islower (i), ISLOWER (i))
5418 || toupper (i) != TOUPPER (i))
5419 exit(2);
5420 exit (0);
5422 _ACEOF
5423 rm -f conftest$ac_exeext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5425 (eval $ac_link) 2>&5
5426 ac_status=$?
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 (eval $ac_try) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; }; then
5435 else
5436 echo "$as_me: program exited with status $ac_status" >&5
5437 echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5440 ( exit $ac_status )
5441 ac_cv_header_stdc=no
5443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5448 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5449 if test $ac_cv_header_stdc = yes; then
5451 cat >>confdefs.h <<\_ACEOF
5452 #define STDC_HEADERS 1
5453 _ACEOF
5457 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5467 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5468 inttypes.h stdint.h unistd.h
5470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5471 echo "$as_me:$LINENO: checking for $ac_header" >&5
5472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h. */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 $ac_includes_default
5484 #include <$ac_header>
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488 (eval $ac_compile) 2>conftest.er1
5489 ac_status=$?
5490 grep -v '^ *+' conftest.er1 >conftest.err
5491 rm -f conftest.er1
5492 cat conftest.err >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -z "$ac_c_werror_flag"
5496 || test ! -s conftest.err'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; } &&
5502 { ac_try='test -s conftest.$ac_objext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 (eval $ac_try) 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5508 eval "$as_ac_Header=yes"
5509 else
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 eval "$as_ac_Header=no"
5515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5520 cat >>confdefs.h <<_ACEOF
5521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5522 _ACEOF
5526 done
5531 for ac_header in stdlib.h unistd.h
5533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5535 echo "$as_me:$LINENO: checking for $ac_header" >&5
5536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5542 else
5543 # Is the header compilable?
5544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5546 cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h. */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552 $ac_includes_default
5553 #include <$ac_header>
5554 _ACEOF
5555 rm -f conftest.$ac_objext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557 (eval $ac_compile) 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -z "$ac_c_werror_flag"
5565 || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest.$ac_objext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 ac_header_compiler=yes
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5582 ac_header_compiler=no
5584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5586 echo "${ECHO_T}$ac_header_compiler" >&6
5588 # Is the header present?
5589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5591 cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h. */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5597 #include <$ac_header>
5598 _ACEOF
5599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5601 ac_status=$?
5602 grep -v '^ *+' conftest.er1 >conftest.err
5603 rm -f conftest.er1
5604 cat conftest.err >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } >/dev/null; then
5607 if test -s conftest.err; then
5608 ac_cpp_err=$ac_c_preproc_warn_flag
5609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5610 else
5611 ac_cpp_err=
5613 else
5614 ac_cpp_err=yes
5616 if test -z "$ac_cpp_err"; then
5617 ac_header_preproc=yes
5618 else
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5622 ac_header_preproc=no
5624 rm -f conftest.err conftest.$ac_ext
5625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5626 echo "${ECHO_T}$ac_header_preproc" >&6
5628 # So? What about this header?
5629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5630 yes:no: )
5631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5635 ac_header_preproc=yes
5637 no:yes:* )
5638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5651 cat <<\_ASBOX
5652 ## ------------------------------------------------------ ##
5653 ## Report this to the GNU Fortran Runtime Library lists. ##
5654 ## ------------------------------------------------------ ##
5655 _ASBOX
5657 sed "s/^/$as_me: WARNING: /" >&2
5659 esac
5660 echo "$as_me:$LINENO: checking for $ac_header" >&5
5661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665 eval "$as_ac_Header=\$ac_header_preproc"
5667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5672 cat >>confdefs.h <<_ACEOF
5673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5674 _ACEOF
5678 done
5681 for ac_func in getpagesize
5683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5684 echo "$as_me:$LINENO: checking for $ac_func" >&5
5685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5686 if eval "test \"\${$as_ac_var+set}\" = set"; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689 if test x$gcc_no_link = xyes; then
5690 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5691 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5692 { (exit 1); exit 1; }; }
5694 cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h. */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5702 #define $ac_func innocuous_$ac_func
5704 /* System header to define __stub macros and hopefully few prototypes,
5705 which can conflict with char $ac_func (); below.
5706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5707 <limits.h> exists even on freestanding compilers. */
5709 #ifdef __STDC__
5710 # include <limits.h>
5711 #else
5712 # include <assert.h>
5713 #endif
5715 #undef $ac_func
5717 /* Override any gcc2 internal prototype to avoid an error. */
5718 #ifdef __cplusplus
5719 extern "C"
5721 #endif
5722 /* We use char because int might match the return type of a gcc2
5723 builtin and then its argument prototype would still apply. */
5724 char $ac_func ();
5725 /* The GNU C library defines this for functions which it implements
5726 to always fail with ENOSYS. Some functions are actually named
5727 something starting with __ and the normal name is an alias. */
5728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5729 choke me
5730 #else
5731 char (*f) () = $ac_func;
5732 #endif
5733 #ifdef __cplusplus
5735 #endif
5738 main ()
5740 return f != $ac_func;
5742 return 0;
5744 _ACEOF
5745 rm -f conftest.$ac_objext conftest$ac_exeext
5746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5747 (eval $ac_link) 2>conftest.er1
5748 ac_status=$?
5749 grep -v '^ *+' conftest.er1 >conftest.err
5750 rm -f conftest.er1
5751 cat conftest.err >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } &&
5754 { ac_try='test -z "$ac_c_werror_flag"
5755 || test ! -s conftest.err'
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 (eval $ac_try) 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; } &&
5761 { ac_try='test -s conftest$ac_exeext'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; }; then
5767 eval "$as_ac_var=yes"
5768 else
5769 echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5772 eval "$as_ac_var=no"
5774 rm -f conftest.err conftest.$ac_objext \
5775 conftest$ac_exeext conftest.$ac_ext
5777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5779 if test `eval echo '${'$as_ac_var'}'` = yes; then
5780 cat >>confdefs.h <<_ACEOF
5781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5782 _ACEOF
5785 done
5787 echo "$as_me:$LINENO: checking for working mmap" >&5
5788 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5789 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792 if test "$cross_compiling" = yes; then
5793 ac_cv_func_mmap_fixed_mapped=no
5794 else
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h. */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 $ac_includes_default
5802 /* malloc might have been renamed as rpl_malloc. */
5803 #undef malloc
5805 /* Thanks to Mike Haertel and Jim Avera for this test.
5806 Here is a matrix of mmap possibilities:
5807 mmap private not fixed
5808 mmap private fixed at somewhere currently unmapped
5809 mmap private fixed at somewhere already mapped
5810 mmap shared not fixed
5811 mmap shared fixed at somewhere currently unmapped
5812 mmap shared fixed at somewhere already mapped
5813 For private mappings, we should verify that changes cannot be read()
5814 back from the file, nor mmap's back from the file at a different
5815 address. (There have been systems where private was not correctly
5816 implemented like the infamous i386 svr4.0, and systems where the
5817 VM page cache was not coherent with the file system buffer cache
5818 like early versions of FreeBSD and possibly contemporary NetBSD.)
5819 For shared mappings, we should conversely verify that changes get
5820 propagated back to all the places they're supposed to be.
5822 Grep wants private fixed already mapped.
5823 The main things grep needs to know about mmap are:
5824 * does it exist and is it safe to write into the mmap'd area
5825 * how to use it (BSD variants) */
5827 #include <fcntl.h>
5828 #include <sys/mman.h>
5830 #if !STDC_HEADERS && !HAVE_STDLIB_H
5831 char *malloc ();
5832 #endif
5834 /* This mess was copied from the GNU getpagesize.h. */
5835 #if !HAVE_GETPAGESIZE
5836 /* Assume that all systems that can run configure have sys/param.h. */
5837 # if !HAVE_SYS_PARAM_H
5838 # define HAVE_SYS_PARAM_H 1
5839 # endif
5841 # ifdef _SC_PAGESIZE
5842 # define getpagesize() sysconf(_SC_PAGESIZE)
5843 # else /* no _SC_PAGESIZE */
5844 # if HAVE_SYS_PARAM_H
5845 # include <sys/param.h>
5846 # ifdef EXEC_PAGESIZE
5847 # define getpagesize() EXEC_PAGESIZE
5848 # else /* no EXEC_PAGESIZE */
5849 # ifdef NBPG
5850 # define getpagesize() NBPG * CLSIZE
5851 # ifndef CLSIZE
5852 # define CLSIZE 1
5853 # endif /* no CLSIZE */
5854 # else /* no NBPG */
5855 # ifdef NBPC
5856 # define getpagesize() NBPC
5857 # else /* no NBPC */
5858 # ifdef PAGESIZE
5859 # define getpagesize() PAGESIZE
5860 # endif /* PAGESIZE */
5861 # endif /* no NBPC */
5862 # endif /* no NBPG */
5863 # endif /* no EXEC_PAGESIZE */
5864 # else /* no HAVE_SYS_PARAM_H */
5865 # define getpagesize() 8192 /* punt totally */
5866 # endif /* no HAVE_SYS_PARAM_H */
5867 # endif /* no _SC_PAGESIZE */
5869 #endif /* no HAVE_GETPAGESIZE */
5872 main ()
5874 char *data, *data2, *data3;
5875 int i, pagesize;
5876 int fd;
5878 pagesize = getpagesize ();
5880 /* First, make a file with some known garbage in it. */
5881 data = (char *) malloc (pagesize);
5882 if (!data)
5883 exit (1);
5884 for (i = 0; i < pagesize; ++i)
5885 *(data + i) = rand ();
5886 umask (0);
5887 fd = creat ("conftest.mmap", 0600);
5888 if (fd < 0)
5889 exit (1);
5890 if (write (fd, data, pagesize) != pagesize)
5891 exit (1);
5892 close (fd);
5894 /* Next, try to mmap the file at a fixed address which already has
5895 something else allocated at it. If we can, also make sure that
5896 we see the same garbage. */
5897 fd = open ("conftest.mmap", O_RDWR);
5898 if (fd < 0)
5899 exit (1);
5900 data2 = (char *) malloc (2 * pagesize);
5901 if (!data2)
5902 exit (1);
5903 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5904 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5905 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5906 exit (1);
5907 for (i = 0; i < pagesize; ++i)
5908 if (*(data + i) != *(data2 + i))
5909 exit (1);
5911 /* Finally, make sure that changes to the mapped area do not
5912 percolate back to the file as seen by read(). (This is a bug on
5913 some variants of i386 svr4.0.) */
5914 for (i = 0; i < pagesize; ++i)
5915 *(data2 + i) = *(data2 + i) + 1;
5916 data3 = (char *) malloc (pagesize);
5917 if (!data3)
5918 exit (1);
5919 if (read (fd, data3, pagesize) != pagesize)
5920 exit (1);
5921 for (i = 0; i < pagesize; ++i)
5922 if (*(data + i) != *(data3 + i))
5923 exit (1);
5924 close (fd);
5925 exit (0);
5927 _ACEOF
5928 rm -f conftest$ac_exeext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930 (eval $ac_link) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5939 ac_cv_func_mmap_fixed_mapped=yes
5940 else
5941 echo "$as_me: program exited with status $ac_status" >&5
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 ( exit $ac_status )
5946 ac_cv_func_mmap_fixed_mapped=no
5948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5951 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5952 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5953 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5955 cat >>confdefs.h <<\_ACEOF
5956 #define HAVE_MMAP 1
5957 _ACEOF
5960 rm -f conftest.mmap
5963 echo "$as_me:$LINENO: checking for off_t" >&5
5964 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5965 if test "${ac_cv_type_off_t+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 else
5968 cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h. */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 $ac_includes_default
5976 main ()
5978 if ((off_t *) 0)
5979 return 0;
5980 if (sizeof (off_t))
5981 return 0;
5983 return 0;
5985 _ACEOF
5986 rm -f conftest.$ac_objext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988 (eval $ac_compile) 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try='test -z "$ac_c_werror_flag"
5996 || test ! -s conftest.err'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; } &&
6002 { ac_try='test -s conftest.$ac_objext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 (eval $ac_try) 2>&5
6005 ac_status=$?
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 ac_cv_type_off_t=yes
6009 else
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6013 ac_cv_type_off_t=no
6015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6017 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6018 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6019 if test $ac_cv_type_off_t = yes; then
6021 else
6023 cat >>confdefs.h <<_ACEOF
6024 #define off_t long
6025 _ACEOF
6030 # check header files
6031 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6032 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6033 if test "${ac_cv_header_stdc+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036 cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h. */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 #include <stdlib.h>
6043 #include <stdarg.h>
6044 #include <string.h>
6045 #include <float.h>
6048 main ()
6052 return 0;
6054 _ACEOF
6055 rm -f conftest.$ac_objext
6056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6057 (eval $ac_compile) 2>conftest.er1
6058 ac_status=$?
6059 grep -v '^ *+' conftest.er1 >conftest.err
6060 rm -f conftest.er1
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } &&
6064 { ac_try='test -z "$ac_c_werror_flag"
6065 || test ! -s conftest.err'
6066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 (eval $ac_try) 2>&5
6068 ac_status=$?
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; } &&
6071 { ac_try='test -s conftest.$ac_objext'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 (eval $ac_try) 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; }; then
6077 ac_cv_header_stdc=yes
6078 else
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6082 ac_cv_header_stdc=no
6084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6086 if test $ac_cv_header_stdc = yes; then
6087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6088 cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h. */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 #include <string.h>
6096 _ACEOF
6097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6098 $EGREP "memchr" >/dev/null 2>&1; then
6100 else
6101 ac_cv_header_stdc=no
6103 rm -f conftest*
6107 if test $ac_cv_header_stdc = yes; then
6108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6109 cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h. */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 #include <stdlib.h>
6117 _ACEOF
6118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6119 $EGREP "free" >/dev/null 2>&1; then
6121 else
6122 ac_cv_header_stdc=no
6124 rm -f conftest*
6128 if test $ac_cv_header_stdc = yes; then
6129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6130 if test "$cross_compiling" = yes; then
6132 else
6133 cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h. */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 #include <ctype.h>
6140 #if ((' ' & 0x0FF) == 0x020)
6141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6143 #else
6144 # define ISLOWER(c) \
6145 (('a' <= (c) && (c) <= 'i') \
6146 || ('j' <= (c) && (c) <= 'r') \
6147 || ('s' <= (c) && (c) <= 'z'))
6148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6149 #endif
6151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6153 main ()
6155 int i;
6156 for (i = 0; i < 256; i++)
6157 if (XOR (islower (i), ISLOWER (i))
6158 || toupper (i) != TOUPPER (i))
6159 exit(2);
6160 exit (0);
6162 _ACEOF
6163 rm -f conftest$ac_exeext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6165 (eval $ac_link) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 (eval $ac_try) 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6175 else
6176 echo "$as_me: program exited with status $ac_status" >&5
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6180 ( exit $ac_status )
6181 ac_cv_header_stdc=no
6183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6187 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6188 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6189 if test $ac_cv_header_stdc = yes; then
6191 cat >>confdefs.h <<\_ACEOF
6192 #define STDC_HEADERS 1
6193 _ACEOF
6204 for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h signal.h
6206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6208 echo "$as_me:$LINENO: checking for $ac_header" >&5
6209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6215 else
6216 # Is the header compilable?
6217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h. */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 $ac_includes_default
6226 #include <$ac_header>
6227 _ACEOF
6228 rm -f conftest.$ac_objext
6229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6230 (eval $ac_compile) 2>conftest.er1
6231 ac_status=$?
6232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } &&
6237 { ac_try='test -z "$ac_c_werror_flag"
6238 || test ! -s conftest.err'
6239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 (eval $ac_try) 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; } &&
6244 { ac_try='test -s conftest.$ac_objext'
6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 (eval $ac_try) 2>&5
6247 ac_status=$?
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; }; then
6250 ac_header_compiler=yes
6251 else
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6255 ac_header_compiler=no
6257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6259 echo "${ECHO_T}$ac_header_compiler" >&6
6261 # Is the header present?
6262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6264 cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h. */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 #include <$ac_header>
6271 _ACEOF
6272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } >/dev/null; then
6280 if test -s conftest.err; then
6281 ac_cpp_err=$ac_c_preproc_warn_flag
6282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6283 else
6284 ac_cpp_err=
6286 else
6287 ac_cpp_err=yes
6289 if test -z "$ac_cpp_err"; then
6290 ac_header_preproc=yes
6291 else
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6295 ac_header_preproc=no
6297 rm -f conftest.err conftest.$ac_ext
6298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6299 echo "${ECHO_T}$ac_header_preproc" >&6
6301 # So? What about this header?
6302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6303 yes:no: )
6304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6308 ac_header_preproc=yes
6310 no:yes:* )
6311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6324 cat <<\_ASBOX
6325 ## ------------------------------------------------------ ##
6326 ## Report this to the GNU Fortran Runtime Library lists. ##
6327 ## ------------------------------------------------------ ##
6328 _ASBOX
6330 sed "s/^/$as_me: WARNING: /" >&2
6332 esac
6333 echo "$as_me:$LINENO: checking for $ac_header" >&5
6334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338 eval "$as_ac_Header=\$ac_header_preproc"
6340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6345 cat >>confdefs.h <<_ACEOF
6346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6347 _ACEOF
6351 done
6358 for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
6360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6362 echo "$as_me:$LINENO: checking for $ac_header" >&5
6363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6369 else
6370 # Is the header compilable?
6371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6373 cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h. */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6379 $ac_includes_default
6380 #include <$ac_header>
6381 _ACEOF
6382 rm -f conftest.$ac_objext
6383 if { (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); } &&
6391 { ac_try='test -z "$ac_c_werror_flag"
6392 || test ! -s conftest.err'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; } &&
6398 { ac_try='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_header_compiler=yes
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6409 ac_header_compiler=no
6411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6413 echo "${ECHO_T}$ac_header_compiler" >&6
6415 # Is the header present?
6416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6418 cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h. */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424 #include <$ac_header>
6425 _ACEOF
6426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6428 ac_status=$?
6429 grep -v '^ *+' conftest.er1 >conftest.err
6430 rm -f conftest.er1
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } >/dev/null; then
6434 if test -s conftest.err; then
6435 ac_cpp_err=$ac_c_preproc_warn_flag
6436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6437 else
6438 ac_cpp_err=
6440 else
6441 ac_cpp_err=yes
6443 if test -z "$ac_cpp_err"; then
6444 ac_header_preproc=yes
6445 else
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 ac_header_preproc=no
6451 rm -f conftest.err conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6453 echo "${ECHO_T}$ac_header_preproc" >&6
6455 # So? What about this header?
6456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6457 yes:no: )
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6462 ac_header_preproc=yes
6464 no:yes:* )
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6478 cat <<\_ASBOX
6479 ## ------------------------------------------------------ ##
6480 ## Report this to the GNU Fortran Runtime Library lists. ##
6481 ## ------------------------------------------------------ ##
6482 _ASBOX
6484 sed "s/^/$as_me: WARNING: /" >&2
6486 esac
6487 echo "$as_me:$LINENO: checking for $ac_header" >&5
6488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492 eval "$as_ac_Header=\$ac_header_preproc"
6494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6499 cat >>confdefs.h <<_ACEOF
6500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6501 _ACEOF
6505 done
6511 for ac_header in sys/mman.h sys/types.h sys/stat.h ieeefp.h
6513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6515 echo "$as_me:$LINENO: checking for $ac_header" >&5
6516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6522 else
6523 # Is the header compilable?
6524 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6526 cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h. */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 $ac_includes_default
6533 #include <$ac_header>
6534 _ACEOF
6535 rm -f conftest.$ac_objext
6536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6537 (eval $ac_compile) 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } &&
6544 { ac_try='test -z "$ac_c_werror_flag"
6545 || test ! -s conftest.err'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 (eval $ac_try) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; } &&
6551 { ac_try='test -s conftest.$ac_objext'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 (eval $ac_try) 2>&5
6554 ac_status=$?
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; }; then
6557 ac_header_compiler=yes
6558 else
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6562 ac_header_compiler=no
6564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6566 echo "${ECHO_T}$ac_header_compiler" >&6
6568 # Is the header present?
6569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6571 cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h. */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6577 #include <$ac_header>
6578 _ACEOF
6579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } >/dev/null; then
6587 if test -s conftest.err; then
6588 ac_cpp_err=$ac_c_preproc_warn_flag
6589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6590 else
6591 ac_cpp_err=
6593 else
6594 ac_cpp_err=yes
6596 if test -z "$ac_cpp_err"; then
6597 ac_header_preproc=yes
6598 else
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6602 ac_header_preproc=no
6604 rm -f conftest.err conftest.$ac_ext
6605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6606 echo "${ECHO_T}$ac_header_preproc" >&6
6608 # So? What about this header?
6609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6610 yes:no: )
6611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6615 ac_header_preproc=yes
6617 no:yes:* )
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6631 cat <<\_ASBOX
6632 ## ------------------------------------------------------ ##
6633 ## Report this to the GNU Fortran Runtime Library lists. ##
6634 ## ------------------------------------------------------ ##
6635 _ASBOX
6637 sed "s/^/$as_me: WARNING: /" >&2
6639 esac
6640 echo "$as_me:$LINENO: checking for $ac_header" >&5
6641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 else
6645 eval "$as_ac_Header=\$ac_header_preproc"
6647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6652 cat >>confdefs.h <<_ACEOF
6653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6654 _ACEOF
6658 done
6660 if test "${ac_cv_header_complex_h+set}" = set; then
6661 echo "$as_me:$LINENO: checking for complex.h" >&5
6662 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6663 if test "${ac_cv_header_complex_h+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6667 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6668 else
6669 # Is the header compilable?
6670 echo "$as_me:$LINENO: checking complex.h usability" >&5
6671 echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 $ac_includes_default
6679 #include <complex.h>
6680 _ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683 (eval $ac_compile) 2>conftest.er1
6684 ac_status=$?
6685 grep -v '^ *+' conftest.er1 >conftest.err
6686 rm -f conftest.er1
6687 cat conftest.err >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } &&
6690 { ac_try='test -z "$ac_c_werror_flag"
6691 || test ! -s conftest.err'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 (eval $ac_try) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; } &&
6697 { ac_try='test -s conftest.$ac_objext'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 (eval $ac_try) 2>&5
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 ac_header_compiler=yes
6704 else
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6708 ac_header_compiler=no
6710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6712 echo "${ECHO_T}$ac_header_compiler" >&6
6714 # Is the header present?
6715 echo "$as_me:$LINENO: checking complex.h presence" >&5
6716 echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h. */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #include <complex.h>
6724 _ACEOF
6725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6727 ac_status=$?
6728 grep -v '^ *+' conftest.er1 >conftest.err
6729 rm -f conftest.er1
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } >/dev/null; then
6733 if test -s conftest.err; then
6734 ac_cpp_err=$ac_c_preproc_warn_flag
6735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6736 else
6737 ac_cpp_err=
6739 else
6740 ac_cpp_err=yes
6742 if test -z "$ac_cpp_err"; then
6743 ac_header_preproc=yes
6744 else
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 ac_header_preproc=no
6750 rm -f conftest.err conftest.$ac_ext
6751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6752 echo "${ECHO_T}$ac_header_preproc" >&6
6754 # So? What about this header?
6755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6756 yes:no: )
6757 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6758 echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6759 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6760 echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6761 ac_header_preproc=yes
6763 no:yes:* )
6764 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6765 echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6766 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
6767 echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
6768 { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6769 echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6770 { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5
6771 echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;}
6772 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6773 echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6774 { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6775 echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6777 cat <<\_ASBOX
6778 ## ------------------------------------------------------ ##
6779 ## Report this to the GNU Fortran Runtime Library lists. ##
6780 ## ------------------------------------------------------ ##
6781 _ASBOX
6783 sed "s/^/$as_me: WARNING: /" >&2
6785 esac
6786 echo "$as_me:$LINENO: checking for complex.h" >&5
6787 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6788 if test "${ac_cv_header_complex_h+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791 ac_cv_header_complex_h=$ac_header_preproc
6793 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6794 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6797 if test $ac_cv_header_complex_h = yes; then
6799 cat >>confdefs.h <<\_ACEOF
6800 #define HAVE_COMPLEX_H 1
6801 _ACEOF
6807 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6808 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6809 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812 cat >conftest.$ac_ext <<_ACEOF
6813 /* confdefs.h. */
6814 _ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6817 /* end confdefs.h. */
6818 $ac_includes_default
6820 main ()
6822 static struct stat ac_aggr;
6823 if (ac_aggr.st_blksize)
6824 return 0;
6826 return 0;
6828 _ACEOF
6829 rm -f conftest.$ac_objext
6830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6831 (eval $ac_compile) 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
6838 { ac_try='test -z "$ac_c_werror_flag"
6839 || test ! -s conftest.err'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; } &&
6845 { ac_try='test -s conftest.$ac_objext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 (eval $ac_try) 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 ac_cv_member_struct_stat_st_blksize=yes
6852 else
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h. */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6862 $ac_includes_default
6864 main ()
6866 static struct stat ac_aggr;
6867 if (sizeof ac_aggr.st_blksize)
6868 return 0;
6870 return 0;
6872 _ACEOF
6873 rm -f conftest.$ac_objext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6875 (eval $ac_compile) 2>conftest.er1
6876 ac_status=$?
6877 grep -v '^ *+' conftest.er1 >conftest.err
6878 rm -f conftest.er1
6879 cat conftest.err >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } &&
6882 { ac_try='test -z "$ac_c_werror_flag"
6883 || test ! -s conftest.err'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 (eval $ac_try) 2>&5
6886 ac_status=$?
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; } &&
6889 { ac_try='test -s conftest.$ac_objext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_member_struct_stat_st_blksize=yes
6896 else
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6900 ac_cv_member_struct_stat_st_blksize=no
6902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6906 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6907 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
6908 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6910 cat >>confdefs.h <<_ACEOF
6911 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6912 _ACEOF
6917 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6918 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6919 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 else
6922 cat >conftest.$ac_ext <<_ACEOF
6923 /* confdefs.h. */
6924 _ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6928 $ac_includes_default
6930 main ()
6932 static struct stat ac_aggr;
6933 if (ac_aggr.st_blocks)
6934 return 0;
6936 return 0;
6938 _ACEOF
6939 rm -f conftest.$ac_objext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6941 (eval $ac_compile) 2>conftest.er1
6942 ac_status=$?
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try='test -z "$ac_c_werror_flag"
6949 || test ! -s conftest.err'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 (eval $ac_try) 2>&5
6952 ac_status=$?
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; } &&
6955 { ac_try='test -s conftest.$ac_objext'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 (eval $ac_try) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; }; then
6961 ac_cv_member_struct_stat_st_blocks=yes
6962 else
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6966 cat >conftest.$ac_ext <<_ACEOF
6967 /* confdefs.h. */
6968 _ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h. */
6972 $ac_includes_default
6974 main ()
6976 static struct stat ac_aggr;
6977 if (sizeof ac_aggr.st_blocks)
6978 return 0;
6980 return 0;
6982 _ACEOF
6983 rm -f conftest.$ac_objext
6984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6985 (eval $ac_compile) 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } &&
6992 { ac_try='test -z "$ac_c_werror_flag"
6993 || test ! -s conftest.err'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 (eval $ac_try) 2>&5
6996 ac_status=$?
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; } &&
6999 { ac_try='test -s conftest.$ac_objext'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 (eval $ac_try) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; }; then
7005 ac_cv_member_struct_stat_st_blocks=yes
7006 else
7007 echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7010 ac_cv_member_struct_stat_st_blocks=no
7012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7016 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
7017 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
7018 if test $ac_cv_member_struct_stat_st_blocks = yes; then
7020 cat >>confdefs.h <<_ACEOF
7021 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7022 _ACEOF
7027 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7028 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
7029 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032 cat >conftest.$ac_ext <<_ACEOF
7033 /* confdefs.h. */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 $ac_includes_default
7040 main ()
7042 static struct stat ac_aggr;
7043 if (ac_aggr.st_rdev)
7044 return 0;
7046 return 0;
7048 _ACEOF
7049 rm -f conftest.$ac_objext
7050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7051 (eval $ac_compile) 2>conftest.er1
7052 ac_status=$?
7053 grep -v '^ *+' conftest.er1 >conftest.err
7054 rm -f conftest.er1
7055 cat conftest.err >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } &&
7058 { ac_try='test -z "$ac_c_werror_flag"
7059 || test ! -s conftest.err'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 (eval $ac_try) 2>&5
7062 ac_status=$?
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; } &&
7065 { ac_try='test -s conftest.$ac_objext'
7066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 (eval $ac_try) 2>&5
7068 ac_status=$?
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; }; then
7071 ac_cv_member_struct_stat_st_rdev=yes
7072 else
7073 echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7076 cat >conftest.$ac_ext <<_ACEOF
7077 /* confdefs.h. */
7078 _ACEOF
7079 cat confdefs.h >>conftest.$ac_ext
7080 cat >>conftest.$ac_ext <<_ACEOF
7081 /* end confdefs.h. */
7082 $ac_includes_default
7084 main ()
7086 static struct stat ac_aggr;
7087 if (sizeof ac_aggr.st_rdev)
7088 return 0;
7090 return 0;
7092 _ACEOF
7093 rm -f conftest.$ac_objext
7094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7095 (eval $ac_compile) 2>conftest.er1
7096 ac_status=$?
7097 grep -v '^ *+' conftest.er1 >conftest.err
7098 rm -f conftest.er1
7099 cat conftest.err >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } &&
7102 { ac_try='test -z "$ac_c_werror_flag"
7103 || test ! -s conftest.err'
7104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 (eval $ac_try) 2>&5
7106 ac_status=$?
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); }; } &&
7109 { ac_try='test -s conftest.$ac_objext'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 (eval $ac_try) 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; }; then
7115 ac_cv_member_struct_stat_st_rdev=yes
7116 else
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7120 ac_cv_member_struct_stat_st_rdev=no
7122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7126 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7127 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7128 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7130 cat >>confdefs.h <<_ACEOF
7131 #define HAVE_STRUCT_STAT_ST_RDEV 1
7132 _ACEOF
7138 # Check for complex math functions
7139 echo "$as_me:$LINENO: checking for csin in -lm" >&5
7140 echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
7141 if test "${ac_cv_lib_m_csin+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144 ac_check_lib_save_LIBS=$LIBS
7145 LIBS="-lm $LIBS"
7146 if test x$gcc_no_link = xyes; then
7147 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7148 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7149 { (exit 1); exit 1; }; }
7151 cat >conftest.$ac_ext <<_ACEOF
7152 /* confdefs.h. */
7153 _ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7158 /* Override any gcc2 internal prototype to avoid an error. */
7159 #ifdef __cplusplus
7160 extern "C"
7161 #endif
7162 /* We use char because int might match the return type of a gcc2
7163 builtin and then its argument prototype would still apply. */
7164 char csin ();
7166 main ()
7168 csin ();
7170 return 0;
7172 _ACEOF
7173 rm -f conftest.$ac_objext conftest$ac_exeext
7174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175 (eval $ac_link) 2>conftest.er1
7176 ac_status=$?
7177 grep -v '^ *+' conftest.er1 >conftest.err
7178 rm -f conftest.er1
7179 cat conftest.err >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); } &&
7182 { ac_try='test -z "$ac_c_werror_flag"
7183 || test ! -s conftest.err'
7184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185 (eval $ac_try) 2>&5
7186 ac_status=$?
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }; } &&
7189 { ac_try='test -s conftest$ac_exeext'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 (eval $ac_try) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 ac_cv_lib_m_csin=yes
7196 else
7197 echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.$ac_ext >&5
7200 ac_cv_lib_m_csin=no
7202 rm -f conftest.err conftest.$ac_objext \
7203 conftest$ac_exeext conftest.$ac_ext
7204 LIBS=$ac_check_lib_save_LIBS
7206 echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
7207 echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
7208 if test $ac_cv_lib_m_csin = yes; then
7209 need_math="no"
7210 else
7211 need_math="yes"
7215 # Check for library functions.
7223 for ac_func in getrusage times mkstemp strtof snprintf ftruncate chsize
7225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7226 echo "$as_me:$LINENO: checking for $ac_func" >&5
7227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7228 if eval "test \"\${$as_ac_var+set}\" = set"; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231 if test x$gcc_no_link = xyes; then
7232 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7233 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7234 { (exit 1); exit 1; }; }
7236 cat >conftest.$ac_ext <<_ACEOF
7237 /* confdefs.h. */
7238 _ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7244 #define $ac_func innocuous_$ac_func
7246 /* System header to define __stub macros and hopefully few prototypes,
7247 which can conflict with char $ac_func (); below.
7248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7249 <limits.h> exists even on freestanding compilers. */
7251 #ifdef __STDC__
7252 # include <limits.h>
7253 #else
7254 # include <assert.h>
7255 #endif
7257 #undef $ac_func
7259 /* Override any gcc2 internal prototype to avoid an error. */
7260 #ifdef __cplusplus
7261 extern "C"
7263 #endif
7264 /* We use char because int might match the return type of a gcc2
7265 builtin and then its argument prototype would still apply. */
7266 char $ac_func ();
7267 /* The GNU C library defines this for functions which it implements
7268 to always fail with ENOSYS. Some functions are actually named
7269 something starting with __ and the normal name is an alias. */
7270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7271 choke me
7272 #else
7273 char (*f) () = $ac_func;
7274 #endif
7275 #ifdef __cplusplus
7277 #endif
7280 main ()
7282 return f != $ac_func;
7284 return 0;
7286 _ACEOF
7287 rm -f conftest.$ac_objext conftest$ac_exeext
7288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7289 (eval $ac_link) 2>conftest.er1
7290 ac_status=$?
7291 grep -v '^ *+' conftest.er1 >conftest.err
7292 rm -f conftest.er1
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } &&
7296 { ac_try='test -z "$ac_c_werror_flag"
7297 || test ! -s conftest.err'
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); }; } &&
7303 { ac_try='test -s conftest$ac_exeext'
7304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 (eval $ac_try) 2>&5
7306 ac_status=$?
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; }; then
7309 eval "$as_ac_var=yes"
7310 else
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7314 eval "$as_ac_var=no"
7316 rm -f conftest.err conftest.$ac_objext \
7317 conftest$ac_exeext conftest.$ac_ext
7319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7321 if test `eval echo '${'$as_ac_var'}'` = yes; then
7322 cat >>confdefs.h <<_ACEOF
7323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7324 _ACEOF
7327 done
7337 for ac_func in chdir strerror getlogin gethostname kill link symlink perror
7339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7340 echo "$as_me:$LINENO: checking for $ac_func" >&5
7341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7342 if eval "test \"\${$as_ac_var+set}\" = set"; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345 if test x$gcc_no_link = xyes; then
7346 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7347 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7348 { (exit 1); exit 1; }; }
7350 cat >conftest.$ac_ext <<_ACEOF
7351 /* confdefs.h. */
7352 _ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7358 #define $ac_func innocuous_$ac_func
7360 /* System header to define __stub macros and hopefully few prototypes,
7361 which can conflict with char $ac_func (); below.
7362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7363 <limits.h> exists even on freestanding compilers. */
7365 #ifdef __STDC__
7366 # include <limits.h>
7367 #else
7368 # include <assert.h>
7369 #endif
7371 #undef $ac_func
7373 /* Override any gcc2 internal prototype to avoid an error. */
7374 #ifdef __cplusplus
7375 extern "C"
7377 #endif
7378 /* We use char because int might match the return type of a gcc2
7379 builtin and then its argument prototype would still apply. */
7380 char $ac_func ();
7381 /* The GNU C library defines this for functions which it implements
7382 to always fail with ENOSYS. Some functions are actually named
7383 something starting with __ and the normal name is an alias. */
7384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7385 choke me
7386 #else
7387 char (*f) () = $ac_func;
7388 #endif
7389 #ifdef __cplusplus
7391 #endif
7394 main ()
7396 return f != $ac_func;
7398 return 0;
7400 _ACEOF
7401 rm -f conftest.$ac_objext conftest$ac_exeext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7403 (eval $ac_link) 2>conftest.er1
7404 ac_status=$?
7405 grep -v '^ *+' conftest.er1 >conftest.err
7406 rm -f conftest.er1
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } &&
7410 { ac_try='test -z "$ac_c_werror_flag"
7411 || test ! -s conftest.err'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 (eval $ac_try) 2>&5
7414 ac_status=$?
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; } &&
7417 { ac_try='test -s conftest$ac_exeext'
7418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419 (eval $ac_try) 2>&5
7420 ac_status=$?
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); }; }; then
7423 eval "$as_ac_var=yes"
7424 else
7425 echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7428 eval "$as_ac_var=no"
7430 rm -f conftest.err conftest.$ac_objext \
7431 conftest$ac_exeext conftest.$ac_ext
7433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7435 if test `eval echo '${'$as_ac_var'}'` = yes; then
7436 cat >>confdefs.h <<_ACEOF
7437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7438 _ACEOF
7441 done
7445 for ac_func in sleep time
7447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7448 echo "$as_me:$LINENO: checking for $ac_func" >&5
7449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7450 if eval "test \"\${$as_ac_var+set}\" = set"; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453 if test x$gcc_no_link = xyes; then
7454 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7455 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7456 { (exit 1); exit 1; }; }
7458 cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h. */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7466 #define $ac_func innocuous_$ac_func
7468 /* System header to define __stub macros and hopefully few prototypes,
7469 which can conflict with char $ac_func (); below.
7470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7471 <limits.h> exists even on freestanding compilers. */
7473 #ifdef __STDC__
7474 # include <limits.h>
7475 #else
7476 # include <assert.h>
7477 #endif
7479 #undef $ac_func
7481 /* Override any gcc2 internal prototype to avoid an error. */
7482 #ifdef __cplusplus
7483 extern "C"
7485 #endif
7486 /* We use char because int might match the return type of a gcc2
7487 builtin and then its argument prototype would still apply. */
7488 char $ac_func ();
7489 /* The GNU C library defines this for functions which it implements
7490 to always fail with ENOSYS. Some functions are actually named
7491 something starting with __ and the normal name is an alias. */
7492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7493 choke me
7494 #else
7495 char (*f) () = $ac_func;
7496 #endif
7497 #ifdef __cplusplus
7499 #endif
7502 main ()
7504 return f != $ac_func;
7506 return 0;
7508 _ACEOF
7509 rm -f conftest.$ac_objext conftest$ac_exeext
7510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7511 (eval $ac_link) 2>conftest.er1
7512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } &&
7518 { ac_try='test -z "$ac_c_werror_flag"
7519 || test ! -s conftest.err'
7520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 (eval $ac_try) 2>&5
7522 ac_status=$?
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; } &&
7525 { ac_try='test -s conftest$ac_exeext'
7526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 (eval $ac_try) 2>&5
7528 ac_status=$?
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }; }; then
7531 eval "$as_ac_var=yes"
7532 else
7533 echo "$as_me: failed program was:" >&5
7534 sed 's/^/| /' conftest.$ac_ext >&5
7536 eval "$as_ac_var=no"
7538 rm -f conftest.err conftest.$ac_objext \
7539 conftest$ac_exeext conftest.$ac_ext
7541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7543 if test `eval echo '${'$as_ac_var'}'` = yes; then
7544 cat >>confdefs.h <<_ACEOF
7545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7546 _ACEOF
7549 done
7552 # Check libc for getgid, getpid, getuid
7553 echo "$as_me:$LINENO: checking for getgid in -lc" >&5
7554 echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
7555 if test "${ac_cv_lib_c_getgid+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558 ac_check_lib_save_LIBS=$LIBS
7559 LIBS="-lc $LIBS"
7560 if test x$gcc_no_link = xyes; then
7561 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7562 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7563 { (exit 1); exit 1; }; }
7565 cat >conftest.$ac_ext <<_ACEOF
7566 /* confdefs.h. */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7572 /* Override any gcc2 internal prototype to avoid an error. */
7573 #ifdef __cplusplus
7574 extern "C"
7575 #endif
7576 /* We use char because int might match the return type of a gcc2
7577 builtin and then its argument prototype would still apply. */
7578 char getgid ();
7580 main ()
7582 getgid ();
7584 return 0;
7586 _ACEOF
7587 rm -f conftest.$ac_objext conftest$ac_exeext
7588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7589 (eval $ac_link) 2>conftest.er1
7590 ac_status=$?
7591 grep -v '^ *+' conftest.er1 >conftest.err
7592 rm -f conftest.er1
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } &&
7596 { ac_try='test -z "$ac_c_werror_flag"
7597 || test ! -s conftest.err'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 (eval $ac_try) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; } &&
7603 { ac_try='test -s conftest$ac_exeext'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 (eval $ac_try) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7609 ac_cv_lib_c_getgid=yes
7610 else
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7614 ac_cv_lib_c_getgid=no
7616 rm -f conftest.err conftest.$ac_objext \
7617 conftest$ac_exeext conftest.$ac_ext
7618 LIBS=$ac_check_lib_save_LIBS
7620 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
7621 echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
7622 if test $ac_cv_lib_c_getgid = yes; then
7624 cat >>confdefs.h <<\_ACEOF
7625 #define HAVE_GETGID 1
7626 _ACEOF
7630 echo "$as_me:$LINENO: checking for getpid in -lc" >&5
7631 echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
7632 if test "${ac_cv_lib_c_getpid+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635 ac_check_lib_save_LIBS=$LIBS
7636 LIBS="-lc $LIBS"
7637 if test x$gcc_no_link = xyes; then
7638 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7639 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7640 { (exit 1); exit 1; }; }
7642 cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h. */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7649 /* Override any gcc2 internal prototype to avoid an error. */
7650 #ifdef __cplusplus
7651 extern "C"
7652 #endif
7653 /* We use char because int might match the return type of a gcc2
7654 builtin and then its argument prototype would still apply. */
7655 char getpid ();
7657 main ()
7659 getpid ();
7661 return 0;
7663 _ACEOF
7664 rm -f conftest.$ac_objext conftest$ac_exeext
7665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7666 (eval $ac_link) 2>conftest.er1
7667 ac_status=$?
7668 grep -v '^ *+' conftest.er1 >conftest.err
7669 rm -f conftest.er1
7670 cat conftest.err >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } &&
7673 { ac_try='test -z "$ac_c_werror_flag"
7674 || test ! -s conftest.err'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 (eval $ac_try) 2>&5
7677 ac_status=$?
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; } &&
7680 { ac_try='test -s conftest$ac_exeext'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 (eval $ac_try) 2>&5
7683 ac_status=$?
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; }; then
7686 ac_cv_lib_c_getpid=yes
7687 else
7688 echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7691 ac_cv_lib_c_getpid=no
7693 rm -f conftest.err conftest.$ac_objext \
7694 conftest$ac_exeext conftest.$ac_ext
7695 LIBS=$ac_check_lib_save_LIBS
7697 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
7698 echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
7699 if test $ac_cv_lib_c_getpid = yes; then
7701 cat >>confdefs.h <<\_ACEOF
7702 #define HAVE_GETPID 1
7703 _ACEOF
7707 echo "$as_me:$LINENO: checking for getuid in -lc" >&5
7708 echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
7709 if test "${ac_cv_lib_c_getuid+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712 ac_check_lib_save_LIBS=$LIBS
7713 LIBS="-lc $LIBS"
7714 if test x$gcc_no_link = xyes; then
7715 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7716 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7717 { (exit 1); exit 1; }; }
7719 cat >conftest.$ac_ext <<_ACEOF
7720 /* confdefs.h. */
7721 _ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7726 /* Override any gcc2 internal prototype to avoid an error. */
7727 #ifdef __cplusplus
7728 extern "C"
7729 #endif
7730 /* We use char because int might match the return type of a gcc2
7731 builtin and then its argument prototype would still apply. */
7732 char getuid ();
7734 main ()
7736 getuid ();
7738 return 0;
7740 _ACEOF
7741 rm -f conftest.$ac_objext conftest$ac_exeext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7743 (eval $ac_link) 2>conftest.er1
7744 ac_status=$?
7745 grep -v '^ *+' conftest.er1 >conftest.err
7746 rm -f conftest.er1
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } &&
7750 { ac_try='test -z "$ac_c_werror_flag"
7751 || test ! -s conftest.err'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 (eval $ac_try) 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; } &&
7757 { ac_try='test -s conftest$ac_exeext'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 (eval $ac_try) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7763 ac_cv_lib_c_getuid=yes
7764 else
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7768 ac_cv_lib_c_getuid=no
7770 rm -f conftest.err conftest.$ac_objext \
7771 conftest$ac_exeext conftest.$ac_ext
7772 LIBS=$ac_check_lib_save_LIBS
7774 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
7775 echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
7776 if test $ac_cv_lib_c_getuid = yes; then
7778 cat >>confdefs.h <<\_ACEOF
7779 #define HAVE_GETUID 1
7780 _ACEOF
7785 # Check for C99 (and other IEEE) math functions
7786 # ??? This list seems awful long. Is there a better way to test for these?
7787 echo "$as_me:$LINENO: checking for acosf in -lm" >&5
7788 echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
7789 if test "${ac_cv_lib_m_acosf+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792 ac_check_lib_save_LIBS=$LIBS
7793 LIBS="-lm $LIBS"
7794 if test x$gcc_no_link = xyes; then
7795 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7796 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7797 { (exit 1); exit 1; }; }
7799 cat >conftest.$ac_ext <<_ACEOF
7800 /* confdefs.h. */
7801 _ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7806 /* Override any gcc2 internal prototype to avoid an error. */
7807 #ifdef __cplusplus
7808 extern "C"
7809 #endif
7810 /* We use char because int might match the return type of a gcc2
7811 builtin and then its argument prototype would still apply. */
7812 char acosf ();
7814 main ()
7816 acosf ();
7818 return 0;
7820 _ACEOF
7821 rm -f conftest.$ac_objext conftest$ac_exeext
7822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7823 (eval $ac_link) 2>conftest.er1
7824 ac_status=$?
7825 grep -v '^ *+' conftest.er1 >conftest.err
7826 rm -f conftest.er1
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } &&
7830 { ac_try='test -z "$ac_c_werror_flag"
7831 || test ! -s conftest.err'
7832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833 (eval $ac_try) 2>&5
7834 ac_status=$?
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); }; } &&
7837 { ac_try='test -s conftest$ac_exeext'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 (eval $ac_try) 2>&5
7840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; }; then
7843 ac_cv_lib_m_acosf=yes
7844 else
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7848 ac_cv_lib_m_acosf=no
7850 rm -f conftest.err conftest.$ac_objext \
7851 conftest$ac_exeext conftest.$ac_ext
7852 LIBS=$ac_check_lib_save_LIBS
7854 echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
7855 echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
7856 if test $ac_cv_lib_m_acosf = yes; then
7858 cat >>confdefs.h <<\_ACEOF
7859 #define HAVE_ACOSF 1
7860 _ACEOF
7864 echo "$as_me:$LINENO: checking for asinf in -lm" >&5
7865 echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
7866 if test "${ac_cv_lib_m_asinf+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869 ac_check_lib_save_LIBS=$LIBS
7870 LIBS="-lm $LIBS"
7871 if test x$gcc_no_link = xyes; then
7872 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7873 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7874 { (exit 1); exit 1; }; }
7876 cat >conftest.$ac_ext <<_ACEOF
7877 /* confdefs.h. */
7878 _ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7883 /* Override any gcc2 internal prototype to avoid an error. */
7884 #ifdef __cplusplus
7885 extern "C"
7886 #endif
7887 /* We use char because int might match the return type of a gcc2
7888 builtin and then its argument prototype would still apply. */
7889 char asinf ();
7891 main ()
7893 asinf ();
7895 return 0;
7897 _ACEOF
7898 rm -f conftest.$ac_objext conftest$ac_exeext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7900 (eval $ac_link) 2>conftest.er1
7901 ac_status=$?
7902 grep -v '^ *+' conftest.er1 >conftest.err
7903 rm -f conftest.er1
7904 cat conftest.err >&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try='test -z "$ac_c_werror_flag"
7908 || test ! -s conftest.err'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 (eval $ac_try) 2>&5
7911 ac_status=$?
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; } &&
7914 { ac_try='test -s conftest$ac_exeext'
7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 (eval $ac_try) 2>&5
7917 ac_status=$?
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; }; then
7920 ac_cv_lib_m_asinf=yes
7921 else
7922 echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7925 ac_cv_lib_m_asinf=no
7927 rm -f conftest.err conftest.$ac_objext \
7928 conftest$ac_exeext conftest.$ac_ext
7929 LIBS=$ac_check_lib_save_LIBS
7931 echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
7932 echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
7933 if test $ac_cv_lib_m_asinf = yes; then
7935 cat >>confdefs.h <<\_ACEOF
7936 #define HAVE_ASINF 1
7937 _ACEOF
7941 echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
7942 echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
7943 if test "${ac_cv_lib_m_atan2f+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946 ac_check_lib_save_LIBS=$LIBS
7947 LIBS="-lm $LIBS"
7948 if test x$gcc_no_link = xyes; then
7949 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7950 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7951 { (exit 1); exit 1; }; }
7953 cat >conftest.$ac_ext <<_ACEOF
7954 /* confdefs.h. */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7960 /* Override any gcc2 internal prototype to avoid an error. */
7961 #ifdef __cplusplus
7962 extern "C"
7963 #endif
7964 /* We use char because int might match the return type of a gcc2
7965 builtin and then its argument prototype would still apply. */
7966 char atan2f ();
7968 main ()
7970 atan2f ();
7972 return 0;
7974 _ACEOF
7975 rm -f conftest.$ac_objext conftest$ac_exeext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7977 (eval $ac_link) 2>conftest.er1
7978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } &&
7984 { ac_try='test -z "$ac_c_werror_flag"
7985 || test ! -s conftest.err'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 (eval $ac_try) 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; } &&
7991 { ac_try='test -s conftest$ac_exeext'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 (eval $ac_try) 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 ac_cv_lib_m_atan2f=yes
7998 else
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8002 ac_cv_lib_m_atan2f=no
8004 rm -f conftest.err conftest.$ac_objext \
8005 conftest$ac_exeext conftest.$ac_ext
8006 LIBS=$ac_check_lib_save_LIBS
8008 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
8009 echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
8010 if test $ac_cv_lib_m_atan2f = yes; then
8012 cat >>confdefs.h <<\_ACEOF
8013 #define HAVE_ATAN2F 1
8014 _ACEOF
8018 echo "$as_me:$LINENO: checking for atanf in -lm" >&5
8019 echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
8020 if test "${ac_cv_lib_m_atanf+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023 ac_check_lib_save_LIBS=$LIBS
8024 LIBS="-lm $LIBS"
8025 if test x$gcc_no_link = xyes; then
8026 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8027 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8028 { (exit 1); exit 1; }; }
8030 cat >conftest.$ac_ext <<_ACEOF
8031 /* confdefs.h. */
8032 _ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8037 /* Override any gcc2 internal prototype to avoid an error. */
8038 #ifdef __cplusplus
8039 extern "C"
8040 #endif
8041 /* We use char because int might match the return type of a gcc2
8042 builtin and then its argument prototype would still apply. */
8043 char atanf ();
8045 main ()
8047 atanf ();
8049 return 0;
8051 _ACEOF
8052 rm -f conftest.$ac_objext conftest$ac_exeext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8054 (eval $ac_link) 2>conftest.er1
8055 ac_status=$?
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try='test -z "$ac_c_werror_flag"
8062 || test ! -s conftest.err'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 (eval $ac_try) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; } &&
8068 { ac_try='test -s conftest$ac_exeext'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 (eval $ac_try) 2>&5
8071 ac_status=$?
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8074 ac_cv_lib_m_atanf=yes
8075 else
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8079 ac_cv_lib_m_atanf=no
8081 rm -f conftest.err conftest.$ac_objext \
8082 conftest$ac_exeext conftest.$ac_ext
8083 LIBS=$ac_check_lib_save_LIBS
8085 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
8086 echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
8087 if test $ac_cv_lib_m_atanf = yes; then
8089 cat >>confdefs.h <<\_ACEOF
8090 #define HAVE_ATANF 1
8091 _ACEOF
8095 echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
8096 echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
8097 if test "${ac_cv_lib_m_ceilf+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100 ac_check_lib_save_LIBS=$LIBS
8101 LIBS="-lm $LIBS"
8102 if test x$gcc_no_link = xyes; then
8103 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8104 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8105 { (exit 1); exit 1; }; }
8107 cat >conftest.$ac_ext <<_ACEOF
8108 /* confdefs.h. */
8109 _ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h. */
8114 /* Override any gcc2 internal prototype to avoid an error. */
8115 #ifdef __cplusplus
8116 extern "C"
8117 #endif
8118 /* We use char because int might match the return type of a gcc2
8119 builtin and then its argument prototype would still apply. */
8120 char ceilf ();
8122 main ()
8124 ceilf ();
8126 return 0;
8128 _ACEOF
8129 rm -f conftest.$ac_objext conftest$ac_exeext
8130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8131 (eval $ac_link) 2>conftest.er1
8132 ac_status=$?
8133 grep -v '^ *+' conftest.er1 >conftest.err
8134 rm -f conftest.er1
8135 cat conftest.err >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } &&
8138 { ac_try='test -z "$ac_c_werror_flag"
8139 || test ! -s conftest.err'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141 (eval $ac_try) 2>&5
8142 ac_status=$?
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; } &&
8145 { ac_try='test -s conftest$ac_exeext'
8146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147 (eval $ac_try) 2>&5
8148 ac_status=$?
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); }; }; then
8151 ac_cv_lib_m_ceilf=yes
8152 else
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8156 ac_cv_lib_m_ceilf=no
8158 rm -f conftest.err conftest.$ac_objext \
8159 conftest$ac_exeext conftest.$ac_ext
8160 LIBS=$ac_check_lib_save_LIBS
8162 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
8163 echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
8164 if test $ac_cv_lib_m_ceilf = yes; then
8166 cat >>confdefs.h <<\_ACEOF
8167 #define HAVE_CEILF 1
8168 _ACEOF
8172 echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
8173 echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
8174 if test "${ac_cv_lib_m_copysignf+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177 ac_check_lib_save_LIBS=$LIBS
8178 LIBS="-lm $LIBS"
8179 if test x$gcc_no_link = xyes; then
8180 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8181 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8182 { (exit 1); exit 1; }; }
8184 cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h. */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8191 /* Override any gcc2 internal prototype to avoid an error. */
8192 #ifdef __cplusplus
8193 extern "C"
8194 #endif
8195 /* We use char because int might match the return type of a gcc2
8196 builtin and then its argument prototype would still apply. */
8197 char copysignf ();
8199 main ()
8201 copysignf ();
8203 return 0;
8205 _ACEOF
8206 rm -f conftest.$ac_objext conftest$ac_exeext
8207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8208 (eval $ac_link) 2>conftest.er1
8209 ac_status=$?
8210 grep -v '^ *+' conftest.er1 >conftest.err
8211 rm -f conftest.er1
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } &&
8215 { ac_try='test -z "$ac_c_werror_flag"
8216 || test ! -s conftest.err'
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 (eval $ac_try) 2>&5
8219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest$ac_exeext'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8228 ac_cv_lib_m_copysignf=yes
8229 else
8230 echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8233 ac_cv_lib_m_copysignf=no
8235 rm -f conftest.err conftest.$ac_objext \
8236 conftest$ac_exeext conftest.$ac_ext
8237 LIBS=$ac_check_lib_save_LIBS
8239 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
8240 echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
8241 if test $ac_cv_lib_m_copysignf = yes; then
8243 cat >>confdefs.h <<\_ACEOF
8244 #define HAVE_COPYSIGNF 1
8245 _ACEOF
8249 echo "$as_me:$LINENO: checking for cosf in -lm" >&5
8250 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
8251 if test "${ac_cv_lib_m_cosf+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254 ac_check_lib_save_LIBS=$LIBS
8255 LIBS="-lm $LIBS"
8256 if test x$gcc_no_link = xyes; then
8257 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8258 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8259 { (exit 1); exit 1; }; }
8261 cat >conftest.$ac_ext <<_ACEOF
8262 /* confdefs.h. */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8268 /* Override any gcc2 internal prototype to avoid an error. */
8269 #ifdef __cplusplus
8270 extern "C"
8271 #endif
8272 /* We use char because int might match the return type of a gcc2
8273 builtin and then its argument prototype would still apply. */
8274 char cosf ();
8276 main ()
8278 cosf ();
8280 return 0;
8282 _ACEOF
8283 rm -f conftest.$ac_objext conftest$ac_exeext
8284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285 (eval $ac_link) 2>conftest.er1
8286 ac_status=$?
8287 grep -v '^ *+' conftest.er1 >conftest.err
8288 rm -f conftest.er1
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
8292 { ac_try='test -z "$ac_c_werror_flag"
8293 || test ! -s conftest.err'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 (eval $ac_try) 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest$ac_exeext'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 (eval $ac_try) 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8305 ac_cv_lib_m_cosf=yes
8306 else
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8310 ac_cv_lib_m_cosf=no
8312 rm -f conftest.err conftest.$ac_objext \
8313 conftest$ac_exeext conftest.$ac_ext
8314 LIBS=$ac_check_lib_save_LIBS
8316 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
8317 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
8318 if test $ac_cv_lib_m_cosf = yes; then
8320 cat >>confdefs.h <<\_ACEOF
8321 #define HAVE_COSF 1
8322 _ACEOF
8326 echo "$as_me:$LINENO: checking for coshf in -lm" >&5
8327 echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
8328 if test "${ac_cv_lib_m_coshf+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 else
8331 ac_check_lib_save_LIBS=$LIBS
8332 LIBS="-lm $LIBS"
8333 if test x$gcc_no_link = xyes; then
8334 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8335 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8336 { (exit 1); exit 1; }; }
8338 cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h. */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8345 /* Override any gcc2 internal prototype to avoid an error. */
8346 #ifdef __cplusplus
8347 extern "C"
8348 #endif
8349 /* We use char because int might match the return type of a gcc2
8350 builtin and then its argument prototype would still apply. */
8351 char coshf ();
8353 main ()
8355 coshf ();
8357 return 0;
8359 _ACEOF
8360 rm -f conftest.$ac_objext conftest$ac_exeext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8362 (eval $ac_link) 2>conftest.er1
8363 ac_status=$?
8364 grep -v '^ *+' conftest.er1 >conftest.err
8365 rm -f conftest.er1
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } &&
8369 { ac_try='test -z "$ac_c_werror_flag"
8370 || test ! -s conftest.err'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 (eval $ac_try) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest$ac_exeext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_lib_m_coshf=yes
8383 else
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8387 ac_cv_lib_m_coshf=no
8389 rm -f conftest.err conftest.$ac_objext \
8390 conftest$ac_exeext conftest.$ac_ext
8391 LIBS=$ac_check_lib_save_LIBS
8393 echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
8394 echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
8395 if test $ac_cv_lib_m_coshf = yes; then
8397 cat >>confdefs.h <<\_ACEOF
8398 #define HAVE_COSHF 1
8399 _ACEOF
8403 echo "$as_me:$LINENO: checking for expf in -lm" >&5
8404 echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
8405 if test "${ac_cv_lib_m_expf+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408 ac_check_lib_save_LIBS=$LIBS
8409 LIBS="-lm $LIBS"
8410 if test x$gcc_no_link = xyes; then
8411 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8413 { (exit 1); exit 1; }; }
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h. */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8422 /* Override any gcc2 internal prototype to avoid an error. */
8423 #ifdef __cplusplus
8424 extern "C"
8425 #endif
8426 /* We use char because int might match the return type of a gcc2
8427 builtin and then its argument prototype would still apply. */
8428 char expf ();
8430 main ()
8432 expf ();
8434 return 0;
8436 _ACEOF
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439 (eval $ac_link) 2>conftest.er1
8440 ac_status=$?
8441 grep -v '^ *+' conftest.er1 >conftest.err
8442 rm -f conftest.er1
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag"
8447 || test ! -s conftest.err'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 (eval $ac_try) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; } &&
8453 { ac_try='test -s conftest$ac_exeext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 (eval $ac_try) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_cv_lib_m_expf=yes
8460 else
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8464 ac_cv_lib_m_expf=no
8466 rm -f conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
8468 LIBS=$ac_check_lib_save_LIBS
8470 echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
8471 echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
8472 if test $ac_cv_lib_m_expf = yes; then
8474 cat >>confdefs.h <<\_ACEOF
8475 #define HAVE_EXPF 1
8476 _ACEOF
8480 echo "$as_me:$LINENO: checking for fabsf in -lm" >&5
8481 echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6
8482 if test "${ac_cv_lib_m_fabsf+set}" = set; then
8483 echo $ECHO_N "(cached) $ECHO_C" >&6
8484 else
8485 ac_check_lib_save_LIBS=$LIBS
8486 LIBS="-lm $LIBS"
8487 if test x$gcc_no_link = xyes; then
8488 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8490 { (exit 1); exit 1; }; }
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h. */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8499 /* Override any gcc2 internal prototype to avoid an error. */
8500 #ifdef __cplusplus
8501 extern "C"
8502 #endif
8503 /* We use char because int might match the return type of a gcc2
8504 builtin and then its argument prototype would still apply. */
8505 char fabsf ();
8507 main ()
8509 fabsf ();
8511 return 0;
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516 (eval $ac_link) 2>conftest.er1
8517 ac_status=$?
8518 grep -v '^ *+' conftest.er1 >conftest.err
8519 rm -f conftest.er1
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -z "$ac_c_werror_flag"
8524 || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try='test -s conftest$ac_exeext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 ac_cv_lib_m_fabsf=yes
8537 else
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8541 ac_cv_lib_m_fabsf=no
8543 rm -f conftest.err conftest.$ac_objext \
8544 conftest$ac_exeext conftest.$ac_ext
8545 LIBS=$ac_check_lib_save_LIBS
8547 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5
8548 echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6
8549 if test $ac_cv_lib_m_fabsf = yes; then
8551 cat >>confdefs.h <<\_ACEOF
8552 #define HAVE_FABSF 1
8553 _ACEOF
8557 echo "$as_me:$LINENO: checking for floorf in -lm" >&5
8558 echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
8559 if test "${ac_cv_lib_m_floorf+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562 ac_check_lib_save_LIBS=$LIBS
8563 LIBS="-lm $LIBS"
8564 if test x$gcc_no_link = xyes; then
8565 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8566 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8567 { (exit 1); exit 1; }; }
8569 cat >conftest.$ac_ext <<_ACEOF
8570 /* confdefs.h. */
8571 _ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8576 /* Override any gcc2 internal prototype to avoid an error. */
8577 #ifdef __cplusplus
8578 extern "C"
8579 #endif
8580 /* We use char because int might match the return type of a gcc2
8581 builtin and then its argument prototype would still apply. */
8582 char floorf ();
8584 main ()
8586 floorf ();
8588 return 0;
8590 _ACEOF
8591 rm -f conftest.$ac_objext conftest$ac_exeext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8593 (eval $ac_link) 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -z "$ac_c_werror_flag"
8601 || test ! -s conftest.err'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try='test -s conftest$ac_exeext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 ac_cv_lib_m_floorf=yes
8614 else
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 ac_cv_lib_m_floorf=no
8620 rm -f conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8622 LIBS=$ac_check_lib_save_LIBS
8624 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
8625 echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
8626 if test $ac_cv_lib_m_floorf = yes; then
8628 cat >>confdefs.h <<\_ACEOF
8629 #define HAVE_FLOORF 1
8630 _ACEOF
8634 echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
8635 echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
8636 if test "${ac_cv_lib_m_frexpf+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 else
8639 ac_check_lib_save_LIBS=$LIBS
8640 LIBS="-lm $LIBS"
8641 if test x$gcc_no_link = xyes; then
8642 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8643 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8644 { (exit 1); exit 1; }; }
8646 cat >conftest.$ac_ext <<_ACEOF
8647 /* confdefs.h. */
8648 _ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8653 /* Override any gcc2 internal prototype to avoid an error. */
8654 #ifdef __cplusplus
8655 extern "C"
8656 #endif
8657 /* We use char because int might match the return type of a gcc2
8658 builtin and then its argument prototype would still apply. */
8659 char frexpf ();
8661 main ()
8663 frexpf ();
8665 return 0;
8667 _ACEOF
8668 rm -f conftest.$ac_objext conftest$ac_exeext
8669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8670 (eval $ac_link) 2>conftest.er1
8671 ac_status=$?
8672 grep -v '^ *+' conftest.er1 >conftest.err
8673 rm -f conftest.er1
8674 cat conftest.err >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } &&
8677 { ac_try='test -z "$ac_c_werror_flag"
8678 || test ! -s conftest.err'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680 (eval $ac_try) 2>&5
8681 ac_status=$?
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; } &&
8684 { ac_try='test -s conftest$ac_exeext'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686 (eval $ac_try) 2>&5
8687 ac_status=$?
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; }; then
8690 ac_cv_lib_m_frexpf=yes
8691 else
8692 echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8695 ac_cv_lib_m_frexpf=no
8697 rm -f conftest.err conftest.$ac_objext \
8698 conftest$ac_exeext conftest.$ac_ext
8699 LIBS=$ac_check_lib_save_LIBS
8701 echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
8702 echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
8703 if test $ac_cv_lib_m_frexpf = yes; then
8705 cat >>confdefs.h <<\_ACEOF
8706 #define HAVE_FREXPF 1
8707 _ACEOF
8711 echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
8712 echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
8713 if test "${ac_cv_lib_m_hypotf+set}" = set; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8715 else
8716 ac_check_lib_save_LIBS=$LIBS
8717 LIBS="-lm $LIBS"
8718 if test x$gcc_no_link = xyes; then
8719 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8720 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8721 { (exit 1); exit 1; }; }
8723 cat >conftest.$ac_ext <<_ACEOF
8724 /* confdefs.h. */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8730 /* Override any gcc2 internal prototype to avoid an error. */
8731 #ifdef __cplusplus
8732 extern "C"
8733 #endif
8734 /* We use char because int might match the return type of a gcc2
8735 builtin and then its argument prototype would still apply. */
8736 char hypotf ();
8738 main ()
8740 hypotf ();
8742 return 0;
8744 _ACEOF
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747 (eval $ac_link) 2>conftest.er1
8748 ac_status=$?
8749 grep -v '^ *+' conftest.er1 >conftest.err
8750 rm -f conftest.er1
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } &&
8754 { ac_try='test -z "$ac_c_werror_flag"
8755 || test ! -s conftest.err'
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 ac_cv_lib_m_hypotf=yes
8768 else
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 ac_cv_lib_m_hypotf=no
8774 rm -f conftest.err conftest.$ac_objext \
8775 conftest$ac_exeext conftest.$ac_ext
8776 LIBS=$ac_check_lib_save_LIBS
8778 echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
8779 echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
8780 if test $ac_cv_lib_m_hypotf = yes; then
8782 cat >>confdefs.h <<\_ACEOF
8783 #define HAVE_HYPOTF 1
8784 _ACEOF
8788 echo "$as_me:$LINENO: checking for logf in -lm" >&5
8789 echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
8790 if test "${ac_cv_lib_m_logf+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793 ac_check_lib_save_LIBS=$LIBS
8794 LIBS="-lm $LIBS"
8795 if test x$gcc_no_link = xyes; then
8796 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8797 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8798 { (exit 1); exit 1; }; }
8800 cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h. */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8807 /* Override any gcc2 internal prototype to avoid an error. */
8808 #ifdef __cplusplus
8809 extern "C"
8810 #endif
8811 /* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8813 char logf ();
8815 main ()
8817 logf ();
8819 return 0;
8821 _ACEOF
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_c_werror_flag"
8832 || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_lib_m_logf=yes
8845 else
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8849 ac_cv_lib_m_logf=no
8851 rm -f conftest.err conftest.$ac_objext \
8852 conftest$ac_exeext conftest.$ac_ext
8853 LIBS=$ac_check_lib_save_LIBS
8855 echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
8856 echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
8857 if test $ac_cv_lib_m_logf = yes; then
8859 cat >>confdefs.h <<\_ACEOF
8860 #define HAVE_LOGF 1
8861 _ACEOF
8865 echo "$as_me:$LINENO: checking for log10f in -lm" >&5
8866 echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
8867 if test "${ac_cv_lib_m_log10f+set}" = set; then
8868 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 else
8870 ac_check_lib_save_LIBS=$LIBS
8871 LIBS="-lm $LIBS"
8872 if test x$gcc_no_link = xyes; then
8873 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8874 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8875 { (exit 1); exit 1; }; }
8877 cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h. */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8884 /* Override any gcc2 internal prototype to avoid an error. */
8885 #ifdef __cplusplus
8886 extern "C"
8887 #endif
8888 /* We use char because int might match the return type of a gcc2
8889 builtin and then its argument prototype would still apply. */
8890 char log10f ();
8892 main ()
8894 log10f ();
8896 return 0;
8898 _ACEOF
8899 rm -f conftest.$ac_objext conftest$ac_exeext
8900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8901 (eval $ac_link) 2>conftest.er1
8902 ac_status=$?
8903 grep -v '^ *+' conftest.er1 >conftest.err
8904 rm -f conftest.er1
8905 cat conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } &&
8908 { ac_try='test -z "$ac_c_werror_flag"
8909 || test ! -s conftest.err'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 (eval $ac_try) 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; } &&
8915 { ac_try='test -s conftest$ac_exeext'
8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917 (eval $ac_try) 2>&5
8918 ac_status=$?
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 ac_cv_lib_m_log10f=yes
8922 else
8923 echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8926 ac_cv_lib_m_log10f=no
8928 rm -f conftest.err conftest.$ac_objext \
8929 conftest$ac_exeext conftest.$ac_ext
8930 LIBS=$ac_check_lib_save_LIBS
8932 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
8933 echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
8934 if test $ac_cv_lib_m_log10f = yes; then
8936 cat >>confdefs.h <<\_ACEOF
8937 #define HAVE_LOG10F 1
8938 _ACEOF
8942 echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
8943 echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
8944 if test "${ac_cv_lib_m_nextafter+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 else
8947 ac_check_lib_save_LIBS=$LIBS
8948 LIBS="-lm $LIBS"
8949 if test x$gcc_no_link = xyes; then
8950 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8951 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8952 { (exit 1); exit 1; }; }
8954 cat >conftest.$ac_ext <<_ACEOF
8955 /* confdefs.h. */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8961 /* Override any gcc2 internal prototype to avoid an error. */
8962 #ifdef __cplusplus
8963 extern "C"
8964 #endif
8965 /* We use char because int might match the return type of a gcc2
8966 builtin and then its argument prototype would still apply. */
8967 char nextafter ();
8969 main ()
8971 nextafter ();
8973 return 0;
8975 _ACEOF
8976 rm -f conftest.$ac_objext conftest$ac_exeext
8977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8978 (eval $ac_link) 2>conftest.er1
8979 ac_status=$?
8980 grep -v '^ *+' conftest.er1 >conftest.err
8981 rm -f conftest.er1
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } &&
8985 { ac_try='test -z "$ac_c_werror_flag"
8986 || test ! -s conftest.err'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 (eval $ac_try) 2>&5
8989 ac_status=$?
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; } &&
8992 { ac_try='test -s conftest$ac_exeext'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 (eval $ac_try) 2>&5
8995 ac_status=$?
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
8998 ac_cv_lib_m_nextafter=yes
8999 else
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9003 ac_cv_lib_m_nextafter=no
9005 rm -f conftest.err conftest.$ac_objext \
9006 conftest$ac_exeext conftest.$ac_ext
9007 LIBS=$ac_check_lib_save_LIBS
9009 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
9010 echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
9011 if test $ac_cv_lib_m_nextafter = yes; then
9013 cat >>confdefs.h <<\_ACEOF
9014 #define HAVE_NEXTAFTER 1
9015 _ACEOF
9019 echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
9020 echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
9021 if test "${ac_cv_lib_m_nextafterf+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024 ac_check_lib_save_LIBS=$LIBS
9025 LIBS="-lm $LIBS"
9026 if test x$gcc_no_link = xyes; then
9027 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9028 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9029 { (exit 1); exit 1; }; }
9031 cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h. */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9038 /* Override any gcc2 internal prototype to avoid an error. */
9039 #ifdef __cplusplus
9040 extern "C"
9041 #endif
9042 /* We use char because int might match the return type of a gcc2
9043 builtin and then its argument prototype would still apply. */
9044 char nextafterf ();
9046 main ()
9048 nextafterf ();
9050 return 0;
9052 _ACEOF
9053 rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055 (eval $ac_link) 2>conftest.er1
9056 ac_status=$?
9057 grep -v '^ *+' conftest.er1 >conftest.err
9058 rm -f conftest.er1
9059 cat conftest.err >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try='test -z "$ac_c_werror_flag"
9063 || test ! -s conftest.err'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try='test -s conftest$ac_exeext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_lib_m_nextafterf=yes
9076 else
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9080 ac_cv_lib_m_nextafterf=no
9082 rm -f conftest.err conftest.$ac_objext \
9083 conftest$ac_exeext conftest.$ac_ext
9084 LIBS=$ac_check_lib_save_LIBS
9086 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
9087 echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
9088 if test $ac_cv_lib_m_nextafterf = yes; then
9090 cat >>confdefs.h <<\_ACEOF
9091 #define HAVE_NEXTAFTERF 1
9092 _ACEOF
9096 echo "$as_me:$LINENO: checking for powf in -lm" >&5
9097 echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
9098 if test "${ac_cv_lib_m_powf+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101 ac_check_lib_save_LIBS=$LIBS
9102 LIBS="-lm $LIBS"
9103 if test x$gcc_no_link = xyes; then
9104 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9106 { (exit 1); exit 1; }; }
9108 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h. */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9115 /* Override any gcc2 internal prototype to avoid an error. */
9116 #ifdef __cplusplus
9117 extern "C"
9118 #endif
9119 /* We use char because int might match the return type of a gcc2
9120 builtin and then its argument prototype would still apply. */
9121 char powf ();
9123 main ()
9125 powf ();
9127 return 0;
9129 _ACEOF
9130 rm -f conftest.$ac_objext conftest$ac_exeext
9131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9132 (eval $ac_link) 2>conftest.er1
9133 ac_status=$?
9134 grep -v '^ *+' conftest.er1 >conftest.err
9135 rm -f conftest.er1
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } &&
9139 { ac_try='test -z "$ac_c_werror_flag"
9140 || test ! -s conftest.err'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; } &&
9146 { ac_try='test -s conftest$ac_exeext'
9147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 (eval $ac_try) 2>&5
9149 ac_status=$?
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; }; then
9152 ac_cv_lib_m_powf=yes
9153 else
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9157 ac_cv_lib_m_powf=no
9159 rm -f conftest.err conftest.$ac_objext \
9160 conftest$ac_exeext conftest.$ac_ext
9161 LIBS=$ac_check_lib_save_LIBS
9163 echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
9164 echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
9165 if test $ac_cv_lib_m_powf = yes; then
9167 cat >>confdefs.h <<\_ACEOF
9168 #define HAVE_POWF 1
9169 _ACEOF
9173 echo "$as_me:$LINENO: checking for round in -lm" >&5
9174 echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
9175 if test "${ac_cv_lib_m_round+set}" = set; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178 ac_check_lib_save_LIBS=$LIBS
9179 LIBS="-lm $LIBS"
9180 if test x$gcc_no_link = xyes; then
9181 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9182 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9183 { (exit 1); exit 1; }; }
9185 cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h. */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9192 /* Override any gcc2 internal prototype to avoid an error. */
9193 #ifdef __cplusplus
9194 extern "C"
9195 #endif
9196 /* We use char because int might match the return type of a gcc2
9197 builtin and then its argument prototype would still apply. */
9198 char round ();
9200 main ()
9202 round ();
9204 return 0;
9206 _ACEOF
9207 rm -f conftest.$ac_objext conftest$ac_exeext
9208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9209 (eval $ac_link) 2>conftest.er1
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
9216 { ac_try='test -z "$ac_c_werror_flag"
9217 || test ! -s conftest.err'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 (eval $ac_try) 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; } &&
9223 { ac_try='test -s conftest$ac_exeext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 (eval $ac_try) 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 ac_cv_lib_m_round=yes
9230 else
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9234 ac_cv_lib_m_round=no
9236 rm -f conftest.err conftest.$ac_objext \
9237 conftest$ac_exeext conftest.$ac_ext
9238 LIBS=$ac_check_lib_save_LIBS
9240 echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
9241 echo "${ECHO_T}$ac_cv_lib_m_round" >&6
9242 if test $ac_cv_lib_m_round = yes; then
9244 cat >>confdefs.h <<\_ACEOF
9245 #define HAVE_ROUND 1
9246 _ACEOF
9250 echo "$as_me:$LINENO: checking for roundf in -lm" >&5
9251 echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
9252 if test "${ac_cv_lib_m_roundf+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255 ac_check_lib_save_LIBS=$LIBS
9256 LIBS="-lm $LIBS"
9257 if test x$gcc_no_link = xyes; then
9258 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9259 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9260 { (exit 1); exit 1; }; }
9262 cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h. */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9269 /* Override any gcc2 internal prototype to avoid an error. */
9270 #ifdef __cplusplus
9271 extern "C"
9272 #endif
9273 /* We use char because int might match the return type of a gcc2
9274 builtin and then its argument prototype would still apply. */
9275 char roundf ();
9277 main ()
9279 roundf ();
9281 return 0;
9283 _ACEOF
9284 rm -f conftest.$ac_objext conftest$ac_exeext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9286 (eval $ac_link) 2>conftest.er1
9287 ac_status=$?
9288 grep -v '^ *+' conftest.er1 >conftest.err
9289 rm -f conftest.er1
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
9293 { ac_try='test -z "$ac_c_werror_flag"
9294 || test ! -s conftest.err'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 (eval $ac_try) 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; } &&
9300 { ac_try='test -s conftest$ac_exeext'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 (eval $ac_try) 2>&5
9303 ac_status=$?
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
9306 ac_cv_lib_m_roundf=yes
9307 else
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9311 ac_cv_lib_m_roundf=no
9313 rm -f conftest.err conftest.$ac_objext \
9314 conftest$ac_exeext conftest.$ac_ext
9315 LIBS=$ac_check_lib_save_LIBS
9317 echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
9318 echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
9319 if test $ac_cv_lib_m_roundf = yes; then
9321 cat >>confdefs.h <<\_ACEOF
9322 #define HAVE_ROUNDF 1
9323 _ACEOF
9327 echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
9328 echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
9329 if test "${ac_cv_lib_m_scalbnf+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
9331 else
9332 ac_check_lib_save_LIBS=$LIBS
9333 LIBS="-lm $LIBS"
9334 if test x$gcc_no_link = xyes; then
9335 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9336 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9337 { (exit 1); exit 1; }; }
9339 cat >conftest.$ac_ext <<_ACEOF
9340 /* confdefs.h. */
9341 _ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9346 /* Override any gcc2 internal prototype to avoid an error. */
9347 #ifdef __cplusplus
9348 extern "C"
9349 #endif
9350 /* We use char because int might match the return type of a gcc2
9351 builtin and then its argument prototype would still apply. */
9352 char scalbnf ();
9354 main ()
9356 scalbnf ();
9358 return 0;
9360 _ACEOF
9361 rm -f conftest.$ac_objext conftest$ac_exeext
9362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9363 (eval $ac_link) 2>conftest.er1
9364 ac_status=$?
9365 grep -v '^ *+' conftest.er1 >conftest.err
9366 rm -f conftest.er1
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } &&
9370 { ac_try='test -z "$ac_c_werror_flag"
9371 || test ! -s conftest.err'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 (eval $ac_try) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; } &&
9377 { ac_try='test -s conftest$ac_exeext'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 (eval $ac_try) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; }; then
9383 ac_cv_lib_m_scalbnf=yes
9384 else
9385 echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9388 ac_cv_lib_m_scalbnf=no
9390 rm -f conftest.err conftest.$ac_objext \
9391 conftest$ac_exeext conftest.$ac_ext
9392 LIBS=$ac_check_lib_save_LIBS
9394 echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
9395 echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
9396 if test $ac_cv_lib_m_scalbnf = yes; then
9398 cat >>confdefs.h <<\_ACEOF
9399 #define HAVE_SCALBNF 1
9400 _ACEOF
9404 echo "$as_me:$LINENO: checking for scalbn in -lm" >&5
9405 echo $ECHO_N "checking for scalbn in -lm... $ECHO_C" >&6
9406 if test "${ac_cv_lib_m_scalbn+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 else
9409 ac_check_lib_save_LIBS=$LIBS
9410 LIBS="-lm $LIBS"
9411 if test x$gcc_no_link = xyes; then
9412 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9413 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9414 { (exit 1); exit 1; }; }
9416 cat >conftest.$ac_ext <<_ACEOF
9417 /* confdefs.h. */
9418 _ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9423 /* Override any gcc2 internal prototype to avoid an error. */
9424 #ifdef __cplusplus
9425 extern "C"
9426 #endif
9427 /* We use char because int might match the return type of a gcc2
9428 builtin and then its argument prototype would still apply. */
9429 char scalbn ();
9431 main ()
9433 scalbn ();
9435 return 0;
9437 _ACEOF
9438 rm -f conftest.$ac_objext conftest$ac_exeext
9439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9440 (eval $ac_link) 2>conftest.er1
9441 ac_status=$?
9442 grep -v '^ *+' conftest.er1 >conftest.err
9443 rm -f conftest.er1
9444 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try='test -z "$ac_c_werror_flag"
9448 || test ! -s conftest.err'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 (eval $ac_try) 2>&5
9451 ac_status=$?
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; } &&
9454 { ac_try='test -s conftest$ac_exeext'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 (eval $ac_try) 2>&5
9457 ac_status=$?
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; }; then
9460 ac_cv_lib_m_scalbn=yes
9461 else
9462 echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9465 ac_cv_lib_m_scalbn=no
9467 rm -f conftest.err conftest.$ac_objext \
9468 conftest$ac_exeext conftest.$ac_ext
9469 LIBS=$ac_check_lib_save_LIBS
9471 echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbn" >&5
9472 echo "${ECHO_T}$ac_cv_lib_m_scalbn" >&6
9473 if test $ac_cv_lib_m_scalbn = yes; then
9475 cat >>confdefs.h <<\_ACEOF
9476 #define HAVE_SCALBN 1
9477 _ACEOF
9481 echo "$as_me:$LINENO: checking for sinf in -lm" >&5
9482 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
9483 if test "${ac_cv_lib_m_sinf+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 else
9486 ac_check_lib_save_LIBS=$LIBS
9487 LIBS="-lm $LIBS"
9488 if test x$gcc_no_link = xyes; then
9489 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9490 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9491 { (exit 1); exit 1; }; }
9493 cat >conftest.$ac_ext <<_ACEOF
9494 /* confdefs.h. */
9495 _ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h. */
9500 /* Override any gcc2 internal prototype to avoid an error. */
9501 #ifdef __cplusplus
9502 extern "C"
9503 #endif
9504 /* We use char because int might match the return type of a gcc2
9505 builtin and then its argument prototype would still apply. */
9506 char sinf ();
9508 main ()
9510 sinf ();
9512 return 0;
9514 _ACEOF
9515 rm -f conftest.$ac_objext conftest$ac_exeext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9517 (eval $ac_link) 2>conftest.er1
9518 ac_status=$?
9519 grep -v '^ *+' conftest.er1 >conftest.err
9520 rm -f conftest.er1
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } &&
9524 { ac_try='test -z "$ac_c_werror_flag"
9525 || test ! -s conftest.err'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527 (eval $ac_try) 2>&5
9528 ac_status=$?
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; } &&
9531 { ac_try='test -s conftest$ac_exeext'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 (eval $ac_try) 2>&5
9534 ac_status=$?
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; }; then
9537 ac_cv_lib_m_sinf=yes
9538 else
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9542 ac_cv_lib_m_sinf=no
9544 rm -f conftest.err conftest.$ac_objext \
9545 conftest$ac_exeext conftest.$ac_ext
9546 LIBS=$ac_check_lib_save_LIBS
9548 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
9549 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
9550 if test $ac_cv_lib_m_sinf = yes; then
9552 cat >>confdefs.h <<\_ACEOF
9553 #define HAVE_SINF 1
9554 _ACEOF
9558 echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
9559 echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
9560 if test "${ac_cv_lib_m_sinhf+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563 ac_check_lib_save_LIBS=$LIBS
9564 LIBS="-lm $LIBS"
9565 if test x$gcc_no_link = xyes; then
9566 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9567 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9568 { (exit 1); exit 1; }; }
9570 cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h. */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9577 /* Override any gcc2 internal prototype to avoid an error. */
9578 #ifdef __cplusplus
9579 extern "C"
9580 #endif
9581 /* We use char because int might match the return type of a gcc2
9582 builtin and then its argument prototype would still apply. */
9583 char sinhf ();
9585 main ()
9587 sinhf ();
9589 return 0;
9591 _ACEOF
9592 rm -f conftest.$ac_objext conftest$ac_exeext
9593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9594 (eval $ac_link) 2>conftest.er1
9595 ac_status=$?
9596 grep -v '^ *+' conftest.er1 >conftest.err
9597 rm -f conftest.er1
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } &&
9601 { ac_try='test -z "$ac_c_werror_flag"
9602 || test ! -s conftest.err'
9603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604 (eval $ac_try) 2>&5
9605 ac_status=$?
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; } &&
9608 { ac_try='test -s conftest$ac_exeext'
9609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610 (eval $ac_try) 2>&5
9611 ac_status=$?
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; }; then
9614 ac_cv_lib_m_sinhf=yes
9615 else
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9619 ac_cv_lib_m_sinhf=no
9621 rm -f conftest.err conftest.$ac_objext \
9622 conftest$ac_exeext conftest.$ac_ext
9623 LIBS=$ac_check_lib_save_LIBS
9625 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
9626 echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
9627 if test $ac_cv_lib_m_sinhf = yes; then
9629 cat >>confdefs.h <<\_ACEOF
9630 #define HAVE_SINHF 1
9631 _ACEOF
9635 echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
9636 echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
9637 if test "${ac_cv_lib_m_sqrtf+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640 ac_check_lib_save_LIBS=$LIBS
9641 LIBS="-lm $LIBS"
9642 if test x$gcc_no_link = xyes; then
9643 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9644 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9645 { (exit 1); exit 1; }; }
9647 cat >conftest.$ac_ext <<_ACEOF
9648 /* confdefs.h. */
9649 _ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9654 /* Override any gcc2 internal prototype to avoid an error. */
9655 #ifdef __cplusplus
9656 extern "C"
9657 #endif
9658 /* We use char because int might match the return type of a gcc2
9659 builtin and then its argument prototype would still apply. */
9660 char sqrtf ();
9662 main ()
9664 sqrtf ();
9666 return 0;
9668 _ACEOF
9669 rm -f conftest.$ac_objext conftest$ac_exeext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9671 (eval $ac_link) 2>conftest.er1
9672 ac_status=$?
9673 grep -v '^ *+' conftest.er1 >conftest.err
9674 rm -f conftest.er1
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } &&
9678 { ac_try='test -z "$ac_c_werror_flag"
9679 || test ! -s conftest.err'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 (eval $ac_try) 2>&5
9682 ac_status=$?
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; } &&
9685 { ac_try='test -s conftest$ac_exeext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 (eval $ac_try) 2>&5
9688 ac_status=$?
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 ac_cv_lib_m_sqrtf=yes
9692 else
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 ac_cv_lib_m_sqrtf=no
9698 rm -f conftest.err conftest.$ac_objext \
9699 conftest$ac_exeext conftest.$ac_ext
9700 LIBS=$ac_check_lib_save_LIBS
9702 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
9703 echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
9704 if test $ac_cv_lib_m_sqrtf = yes; then
9706 cat >>confdefs.h <<\_ACEOF
9707 #define HAVE_SQRTF 1
9708 _ACEOF
9712 echo "$as_me:$LINENO: checking for tanf in -lm" >&5
9713 echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
9714 if test "${ac_cv_lib_m_tanf+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717 ac_check_lib_save_LIBS=$LIBS
9718 LIBS="-lm $LIBS"
9719 if test x$gcc_no_link = xyes; then
9720 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9721 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9722 { (exit 1); exit 1; }; }
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h. */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9731 /* Override any gcc2 internal prototype to avoid an error. */
9732 #ifdef __cplusplus
9733 extern "C"
9734 #endif
9735 /* We use char because int might match the return type of a gcc2
9736 builtin and then its argument prototype would still apply. */
9737 char tanf ();
9739 main ()
9741 tanf ();
9743 return 0;
9745 _ACEOF
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9748 (eval $ac_link) 2>conftest.er1
9749 ac_status=$?
9750 grep -v '^ *+' conftest.er1 >conftest.err
9751 rm -f conftest.er1
9752 cat conftest.err >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } &&
9755 { ac_try='test -z "$ac_c_werror_flag"
9756 || test ! -s conftest.err'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758 (eval $ac_try) 2>&5
9759 ac_status=$?
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; } &&
9762 { ac_try='test -s conftest$ac_exeext'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 (eval $ac_try) 2>&5
9765 ac_status=$?
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 ac_cv_lib_m_tanf=yes
9769 else
9770 echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9773 ac_cv_lib_m_tanf=no
9775 rm -f conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext conftest.$ac_ext
9777 LIBS=$ac_check_lib_save_LIBS
9779 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
9780 echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
9781 if test $ac_cv_lib_m_tanf = yes; then
9783 cat >>confdefs.h <<\_ACEOF
9784 #define HAVE_TANF 1
9785 _ACEOF
9789 echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
9790 echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
9791 if test "${ac_cv_lib_m_tanhf+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794 ac_check_lib_save_LIBS=$LIBS
9795 LIBS="-lm $LIBS"
9796 if test x$gcc_no_link = xyes; then
9797 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9798 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9799 { (exit 1); exit 1; }; }
9801 cat >conftest.$ac_ext <<_ACEOF
9802 /* confdefs.h. */
9803 _ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h. */
9808 /* Override any gcc2 internal prototype to avoid an error. */
9809 #ifdef __cplusplus
9810 extern "C"
9811 #endif
9812 /* We use char because int might match the return type of a gcc2
9813 builtin and then its argument prototype would still apply. */
9814 char tanhf ();
9816 main ()
9818 tanhf ();
9820 return 0;
9822 _ACEOF
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9825 (eval $ac_link) 2>conftest.er1
9826 ac_status=$?
9827 grep -v '^ *+' conftest.er1 >conftest.err
9828 rm -f conftest.er1
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -z "$ac_c_werror_flag"
9833 || test ! -s conftest.err'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 (eval $ac_try) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; } &&
9839 { ac_try='test -s conftest$ac_exeext'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 (eval $ac_try) 2>&5
9842 ac_status=$?
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9845 ac_cv_lib_m_tanhf=yes
9846 else
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9850 ac_cv_lib_m_tanhf=no
9852 rm -f conftest.err conftest.$ac_objext \
9853 conftest$ac_exeext conftest.$ac_ext
9854 LIBS=$ac_check_lib_save_LIBS
9856 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
9857 echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
9858 if test $ac_cv_lib_m_tanhf = yes; then
9860 cat >>confdefs.h <<\_ACEOF
9861 #define HAVE_TANHF 1
9862 _ACEOF
9866 echo "$as_me:$LINENO: checking for trunc in -lm" >&5
9867 echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6
9868 if test "${ac_cv_lib_m_trunc+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871 ac_check_lib_save_LIBS=$LIBS
9872 LIBS="-lm $LIBS"
9873 if test x$gcc_no_link = xyes; then
9874 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9875 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9876 { (exit 1); exit 1; }; }
9878 cat >conftest.$ac_ext <<_ACEOF
9879 /* confdefs.h. */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h. */
9885 /* Override any gcc2 internal prototype to avoid an error. */
9886 #ifdef __cplusplus
9887 extern "C"
9888 #endif
9889 /* We use char because int might match the return type of a gcc2
9890 builtin and then its argument prototype would still apply. */
9891 char trunc ();
9893 main ()
9895 trunc ();
9897 return 0;
9899 _ACEOF
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902 (eval $ac_link) 2>conftest.er1
9903 ac_status=$?
9904 grep -v '^ *+' conftest.er1 >conftest.err
9905 rm -f conftest.er1
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
9909 { ac_try='test -z "$ac_c_werror_flag"
9910 || test ! -s conftest.err'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 (eval $ac_try) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; } &&
9916 { ac_try='test -s conftest$ac_exeext'
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 (eval $ac_try) 2>&5
9919 ac_status=$?
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 ac_cv_lib_m_trunc=yes
9923 else
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9927 ac_cv_lib_m_trunc=no
9929 rm -f conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9931 LIBS=$ac_check_lib_save_LIBS
9933 echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5
9934 echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6
9935 if test $ac_cv_lib_m_trunc = yes; then
9937 cat >>confdefs.h <<\_ACEOF
9938 #define HAVE_TRUNC 1
9939 _ACEOF
9943 echo "$as_me:$LINENO: checking for truncf in -lm" >&5
9944 echo $ECHO_N "checking for truncf in -lm... $ECHO_C" >&6
9945 if test "${ac_cv_lib_m_truncf+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948 ac_check_lib_save_LIBS=$LIBS
9949 LIBS="-lm $LIBS"
9950 if test x$gcc_no_link = xyes; then
9951 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9952 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9953 { (exit 1); exit 1; }; }
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h. */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9962 /* Override any gcc2 internal prototype to avoid an error. */
9963 #ifdef __cplusplus
9964 extern "C"
9965 #endif
9966 /* We use char because int might match the return type of a gcc2
9967 builtin and then its argument prototype would still apply. */
9968 char truncf ();
9970 main ()
9972 truncf ();
9974 return 0;
9976 _ACEOF
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9979 (eval $ac_link) 2>conftest.er1
9980 ac_status=$?
9981 grep -v '^ *+' conftest.er1 >conftest.err
9982 rm -f conftest.er1
9983 cat conftest.err >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } &&
9986 { ac_try='test -z "$ac_c_werror_flag"
9987 || test ! -s conftest.err'
9988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989 (eval $ac_try) 2>&5
9990 ac_status=$?
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; } &&
9993 { ac_try='test -s conftest$ac_exeext'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 (eval $ac_try) 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; }; then
9999 ac_cv_lib_m_truncf=yes
10000 else
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10004 ac_cv_lib_m_truncf=no
10006 rm -f conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008 LIBS=$ac_check_lib_save_LIBS
10010 echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncf" >&5
10011 echo "${ECHO_T}$ac_cv_lib_m_truncf" >&6
10012 if test $ac_cv_lib_m_truncf = yes; then
10014 cat >>confdefs.h <<\_ACEOF
10015 #define HAVE_TRUNCF 1
10016 _ACEOF
10020 echo "$as_me:$LINENO: checking for erf in -lm" >&5
10021 echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
10022 if test "${ac_cv_lib_m_erf+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025 ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-lm $LIBS"
10027 if test x$gcc_no_link = xyes; then
10028 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10029 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10030 { (exit 1); exit 1; }; }
10032 cat >conftest.$ac_ext <<_ACEOF
10033 /* confdefs.h. */
10034 _ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10039 /* Override any gcc2 internal prototype to avoid an error. */
10040 #ifdef __cplusplus
10041 extern "C"
10042 #endif
10043 /* We use char because int might match the return type of a gcc2
10044 builtin and then its argument prototype would still apply. */
10045 char erf ();
10047 main ()
10049 erf ();
10051 return 0;
10053 _ACEOF
10054 rm -f conftest.$ac_objext conftest$ac_exeext
10055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10056 (eval $ac_link) 2>conftest.er1
10057 ac_status=$?
10058 grep -v '^ *+' conftest.er1 >conftest.err
10059 rm -f conftest.er1
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } &&
10063 { ac_try='test -z "$ac_c_werror_flag"
10064 || test ! -s conftest.err'
10065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066 (eval $ac_try) 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; } &&
10070 { ac_try='test -s conftest$ac_exeext'
10071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072 (eval $ac_try) 2>&5
10073 ac_status=$?
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; }; then
10076 ac_cv_lib_m_erf=yes
10077 else
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10081 ac_cv_lib_m_erf=no
10083 rm -f conftest.err conftest.$ac_objext \
10084 conftest$ac_exeext conftest.$ac_ext
10085 LIBS=$ac_check_lib_save_LIBS
10087 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
10088 echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
10089 if test $ac_cv_lib_m_erf = yes; then
10091 cat >>confdefs.h <<\_ACEOF
10092 #define HAVE_ERF 1
10093 _ACEOF
10097 echo "$as_me:$LINENO: checking for erfc in -lm" >&5
10098 echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
10099 if test "${ac_cv_lib_m_erfc+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102 ac_check_lib_save_LIBS=$LIBS
10103 LIBS="-lm $LIBS"
10104 if test x$gcc_no_link = xyes; then
10105 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10106 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10107 { (exit 1); exit 1; }; }
10109 cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h. */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10116 /* Override any gcc2 internal prototype to avoid an error. */
10117 #ifdef __cplusplus
10118 extern "C"
10119 #endif
10120 /* We use char because int might match the return type of a gcc2
10121 builtin and then its argument prototype would still apply. */
10122 char erfc ();
10124 main ()
10126 erfc ();
10128 return 0;
10130 _ACEOF
10131 rm -f conftest.$ac_objext conftest$ac_exeext
10132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10133 (eval $ac_link) 2>conftest.er1
10134 ac_status=$?
10135 grep -v '^ *+' conftest.er1 >conftest.err
10136 rm -f conftest.er1
10137 cat conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } &&
10140 { ac_try='test -z "$ac_c_werror_flag"
10141 || test ! -s conftest.err'
10142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143 (eval $ac_try) 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; } &&
10147 { ac_try='test -s conftest$ac_exeext'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 ac_cv_lib_m_erfc=yes
10154 else
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10158 ac_cv_lib_m_erfc=no
10160 rm -f conftest.err conftest.$ac_objext \
10161 conftest$ac_exeext conftest.$ac_ext
10162 LIBS=$ac_check_lib_save_LIBS
10164 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
10165 echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
10166 if test $ac_cv_lib_m_erfc = yes; then
10168 cat >>confdefs.h <<\_ACEOF
10169 #define HAVE_ERFC 1
10170 _ACEOF
10174 echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
10175 echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
10176 if test "${ac_cv_lib_m_erfcf+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 else
10179 ac_check_lib_save_LIBS=$LIBS
10180 LIBS="-lm $LIBS"
10181 if test x$gcc_no_link = xyes; then
10182 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10183 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10184 { (exit 1); exit 1; }; }
10186 cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h. */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10193 /* Override any gcc2 internal prototype to avoid an error. */
10194 #ifdef __cplusplus
10195 extern "C"
10196 #endif
10197 /* We use char because int might match the return type of a gcc2
10198 builtin and then its argument prototype would still apply. */
10199 char erfcf ();
10201 main ()
10203 erfcf ();
10205 return 0;
10207 _ACEOF
10208 rm -f conftest.$ac_objext conftest$ac_exeext
10209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210 (eval $ac_link) 2>conftest.er1
10211 ac_status=$?
10212 grep -v '^ *+' conftest.er1 >conftest.err
10213 rm -f conftest.er1
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } &&
10217 { ac_try='test -z "$ac_c_werror_flag"
10218 || test ! -s conftest.err'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; } &&
10224 { ac_try='test -s conftest$ac_exeext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 ac_cv_lib_m_erfcf=yes
10231 else
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10235 ac_cv_lib_m_erfcf=no
10237 rm -f conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10239 LIBS=$ac_check_lib_save_LIBS
10241 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
10242 echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
10243 if test $ac_cv_lib_m_erfcf = yes; then
10245 cat >>confdefs.h <<\_ACEOF
10246 #define HAVE_ERFCF 1
10247 _ACEOF
10251 echo "$as_me:$LINENO: checking for erff in -lm" >&5
10252 echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
10253 if test "${ac_cv_lib_m_erff+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10256 ac_check_lib_save_LIBS=$LIBS
10257 LIBS="-lm $LIBS"
10258 if test x$gcc_no_link = xyes; then
10259 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10260 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10261 { (exit 1); exit 1; }; }
10263 cat >conftest.$ac_ext <<_ACEOF
10264 /* confdefs.h. */
10265 _ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h. */
10270 /* Override any gcc2 internal prototype to avoid an error. */
10271 #ifdef __cplusplus
10272 extern "C"
10273 #endif
10274 /* We use char because int might match the return type of a gcc2
10275 builtin and then its argument prototype would still apply. */
10276 char erff ();
10278 main ()
10280 erff ();
10282 return 0;
10284 _ACEOF
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10287 (eval $ac_link) 2>conftest.er1
10288 ac_status=$?
10289 grep -v '^ *+' conftest.er1 >conftest.err
10290 rm -f conftest.er1
10291 cat conftest.err >&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } &&
10294 { ac_try='test -z "$ac_c_werror_flag"
10295 || test ! -s conftest.err'
10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297 (eval $ac_try) 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; } &&
10301 { ac_try='test -s conftest$ac_exeext'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10304 ac_status=$?
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10307 ac_cv_lib_m_erff=yes
10308 else
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 ac_cv_lib_m_erff=no
10314 rm -f conftest.err conftest.$ac_objext \
10315 conftest$ac_exeext conftest.$ac_ext
10316 LIBS=$ac_check_lib_save_LIBS
10318 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5
10319 echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
10320 if test $ac_cv_lib_m_erff = yes; then
10322 cat >>confdefs.h <<\_ACEOF
10323 #define HAVE_ERFF 1
10324 _ACEOF
10328 echo "$as_me:$LINENO: checking for j0 in -lm" >&5
10329 echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
10330 if test "${ac_cv_lib_m_j0+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
10332 else
10333 ac_check_lib_save_LIBS=$LIBS
10334 LIBS="-lm $LIBS"
10335 if test x$gcc_no_link = xyes; then
10336 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10337 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10338 { (exit 1); exit 1; }; }
10340 cat >conftest.$ac_ext <<_ACEOF
10341 /* confdefs.h. */
10342 _ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h. */
10347 /* Override any gcc2 internal prototype to avoid an error. */
10348 #ifdef __cplusplus
10349 extern "C"
10350 #endif
10351 /* We use char because int might match the return type of a gcc2
10352 builtin and then its argument prototype would still apply. */
10353 char j0 ();
10355 main ()
10357 j0 ();
10359 return 0;
10361 _ACEOF
10362 rm -f conftest.$ac_objext conftest$ac_exeext
10363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10364 (eval $ac_link) 2>conftest.er1
10365 ac_status=$?
10366 grep -v '^ *+' conftest.er1 >conftest.err
10367 rm -f conftest.er1
10368 cat conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } &&
10371 { ac_try='test -z "$ac_c_werror_flag"
10372 || test ! -s conftest.err'
10373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374 (eval $ac_try) 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }; } &&
10378 { ac_try='test -s conftest$ac_exeext'
10379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380 (eval $ac_try) 2>&5
10381 ac_status=$?
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; }; then
10384 ac_cv_lib_m_j0=yes
10385 else
10386 echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10389 ac_cv_lib_m_j0=no
10391 rm -f conftest.err conftest.$ac_objext \
10392 conftest$ac_exeext conftest.$ac_ext
10393 LIBS=$ac_check_lib_save_LIBS
10395 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5
10396 echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
10397 if test $ac_cv_lib_m_j0 = yes; then
10399 cat >>confdefs.h <<\_ACEOF
10400 #define HAVE_J0 1
10401 _ACEOF
10405 echo "$as_me:$LINENO: checking for j0f in -lm" >&5
10406 echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
10407 if test "${ac_cv_lib_m_j0f+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10409 else
10410 ac_check_lib_save_LIBS=$LIBS
10411 LIBS="-lm $LIBS"
10412 if test x$gcc_no_link = xyes; then
10413 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10414 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10415 { (exit 1); exit 1; }; }
10417 cat >conftest.$ac_ext <<_ACEOF
10418 /* confdefs.h. */
10419 _ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10424 /* Override any gcc2 internal prototype to avoid an error. */
10425 #ifdef __cplusplus
10426 extern "C"
10427 #endif
10428 /* We use char because int might match the return type of a gcc2
10429 builtin and then its argument prototype would still apply. */
10430 char j0f ();
10432 main ()
10434 j0f ();
10436 return 0;
10438 _ACEOF
10439 rm -f conftest.$ac_objext conftest$ac_exeext
10440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10441 (eval $ac_link) 2>conftest.er1
10442 ac_status=$?
10443 grep -v '^ *+' conftest.er1 >conftest.err
10444 rm -f conftest.er1
10445 cat conftest.err >&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); } &&
10448 { ac_try='test -z "$ac_c_werror_flag"
10449 || test ! -s conftest.err'
10450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451 (eval $ac_try) 2>&5
10452 ac_status=$?
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; } &&
10455 { ac_try='test -s conftest$ac_exeext'
10456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457 (eval $ac_try) 2>&5
10458 ac_status=$?
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); }; }; then
10461 ac_cv_lib_m_j0f=yes
10462 else
10463 echo "$as_me: failed program was:" >&5
10464 sed 's/^/| /' conftest.$ac_ext >&5
10466 ac_cv_lib_m_j0f=no
10468 rm -f conftest.err conftest.$ac_objext \
10469 conftest$ac_exeext conftest.$ac_ext
10470 LIBS=$ac_check_lib_save_LIBS
10472 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
10473 echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
10474 if test $ac_cv_lib_m_j0f = yes; then
10476 cat >>confdefs.h <<\_ACEOF
10477 #define HAVE_J0F 1
10478 _ACEOF
10482 echo "$as_me:$LINENO: checking for j1 in -lm" >&5
10483 echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
10484 if test "${ac_cv_lib_m_j1+set}" = set; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 else
10487 ac_check_lib_save_LIBS=$LIBS
10488 LIBS="-lm $LIBS"
10489 if test x$gcc_no_link = xyes; then
10490 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10491 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10492 { (exit 1); exit 1; }; }
10494 cat >conftest.$ac_ext <<_ACEOF
10495 /* confdefs.h. */
10496 _ACEOF
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h. */
10501 /* Override any gcc2 internal prototype to avoid an error. */
10502 #ifdef __cplusplus
10503 extern "C"
10504 #endif
10505 /* We use char because int might match the return type of a gcc2
10506 builtin and then its argument prototype would still apply. */
10507 char j1 ();
10509 main ()
10511 j1 ();
10513 return 0;
10515 _ACEOF
10516 rm -f conftest.$ac_objext conftest$ac_exeext
10517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10518 (eval $ac_link) 2>conftest.er1
10519 ac_status=$?
10520 grep -v '^ *+' conftest.er1 >conftest.err
10521 rm -f conftest.er1
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } &&
10525 { ac_try='test -z "$ac_c_werror_flag"
10526 || test ! -s conftest.err'
10527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528 (eval $ac_try) 2>&5
10529 ac_status=$?
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; } &&
10532 { ac_try='test -s conftest$ac_exeext'
10533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10534 (eval $ac_try) 2>&5
10535 ac_status=$?
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); }; }; then
10538 ac_cv_lib_m_j1=yes
10539 else
10540 echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10543 ac_cv_lib_m_j1=no
10545 rm -f conftest.err conftest.$ac_objext \
10546 conftest$ac_exeext conftest.$ac_ext
10547 LIBS=$ac_check_lib_save_LIBS
10549 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
10550 echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
10551 if test $ac_cv_lib_m_j1 = yes; then
10553 cat >>confdefs.h <<\_ACEOF
10554 #define HAVE_J1 1
10555 _ACEOF
10559 echo "$as_me:$LINENO: checking for j1f in -lm" >&5
10560 echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
10561 if test "${ac_cv_lib_m_j1f+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10563 else
10564 ac_check_lib_save_LIBS=$LIBS
10565 LIBS="-lm $LIBS"
10566 if test x$gcc_no_link = xyes; then
10567 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10568 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10569 { (exit 1); exit 1; }; }
10571 cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h. */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10578 /* Override any gcc2 internal prototype to avoid an error. */
10579 #ifdef __cplusplus
10580 extern "C"
10581 #endif
10582 /* We use char because int might match the return type of a gcc2
10583 builtin and then its argument prototype would still apply. */
10584 char j1f ();
10586 main ()
10588 j1f ();
10590 return 0;
10592 _ACEOF
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10595 (eval $ac_link) 2>conftest.er1
10596 ac_status=$?
10597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } &&
10602 { ac_try='test -z "$ac_c_werror_flag"
10603 || test ! -s conftest.err'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; } &&
10609 { ac_try='test -s conftest$ac_exeext'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
10615 ac_cv_lib_m_j1f=yes
10616 else
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10620 ac_cv_lib_m_j1f=no
10622 rm -f conftest.err conftest.$ac_objext \
10623 conftest$ac_exeext conftest.$ac_ext
10624 LIBS=$ac_check_lib_save_LIBS
10626 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
10627 echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
10628 if test $ac_cv_lib_m_j1f = yes; then
10630 cat >>confdefs.h <<\_ACEOF
10631 #define HAVE_J1F 1
10632 _ACEOF
10636 echo "$as_me:$LINENO: checking for jn in -lm" >&5
10637 echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
10638 if test "${ac_cv_lib_m_jn+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641 ac_check_lib_save_LIBS=$LIBS
10642 LIBS="-lm $LIBS"
10643 if test x$gcc_no_link = xyes; then
10644 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10645 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10646 { (exit 1); exit 1; }; }
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h. */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10655 /* Override any gcc2 internal prototype to avoid an error. */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 /* We use char because int might match the return type of a gcc2
10660 builtin and then its argument prototype would still apply. */
10661 char jn ();
10663 main ()
10665 jn ();
10667 return 0;
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672 (eval $ac_link) 2>conftest.er1
10673 ac_status=$?
10674 grep -v '^ *+' conftest.er1 >conftest.err
10675 rm -f conftest.er1
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } &&
10679 { ac_try='test -z "$ac_c_werror_flag"
10680 || test ! -s conftest.err'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; } &&
10686 { ac_try='test -s conftest$ac_exeext'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10689 ac_status=$?
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; }; then
10692 ac_cv_lib_m_jn=yes
10693 else
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10697 ac_cv_lib_m_jn=no
10699 rm -f conftest.err conftest.$ac_objext \
10700 conftest$ac_exeext conftest.$ac_ext
10701 LIBS=$ac_check_lib_save_LIBS
10703 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
10704 echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
10705 if test $ac_cv_lib_m_jn = yes; then
10707 cat >>confdefs.h <<\_ACEOF
10708 #define HAVE_JN 1
10709 _ACEOF
10713 echo "$as_me:$LINENO: checking for jnf in -lm" >&5
10714 echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
10715 if test "${ac_cv_lib_m_jnf+set}" = set; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10717 else
10718 ac_check_lib_save_LIBS=$LIBS
10719 LIBS="-lm $LIBS"
10720 if test x$gcc_no_link = xyes; then
10721 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10722 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10723 { (exit 1); exit 1; }; }
10725 cat >conftest.$ac_ext <<_ACEOF
10726 /* confdefs.h. */
10727 _ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10732 /* Override any gcc2 internal prototype to avoid an error. */
10733 #ifdef __cplusplus
10734 extern "C"
10735 #endif
10736 /* We use char because int might match the return type of a gcc2
10737 builtin and then its argument prototype would still apply. */
10738 char jnf ();
10740 main ()
10742 jnf ();
10744 return 0;
10746 _ACEOF
10747 rm -f conftest.$ac_objext conftest$ac_exeext
10748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10749 (eval $ac_link) 2>conftest.er1
10750 ac_status=$?
10751 grep -v '^ *+' conftest.er1 >conftest.err
10752 rm -f conftest.er1
10753 cat conftest.err >&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } &&
10756 { ac_try='test -z "$ac_c_werror_flag"
10757 || test ! -s conftest.err'
10758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759 (eval $ac_try) 2>&5
10760 ac_status=$?
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; } &&
10763 { ac_try='test -s conftest$ac_exeext'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; }; then
10769 ac_cv_lib_m_jnf=yes
10770 else
10771 echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10774 ac_cv_lib_m_jnf=no
10776 rm -f conftest.err conftest.$ac_objext \
10777 conftest$ac_exeext conftest.$ac_ext
10778 LIBS=$ac_check_lib_save_LIBS
10780 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
10781 echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
10782 if test $ac_cv_lib_m_jnf = yes; then
10784 cat >>confdefs.h <<\_ACEOF
10785 #define HAVE_JNF 1
10786 _ACEOF
10790 echo "$as_me:$LINENO: checking for y0 in -lm" >&5
10791 echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
10792 if test "${ac_cv_lib_m_y0+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 else
10795 ac_check_lib_save_LIBS=$LIBS
10796 LIBS="-lm $LIBS"
10797 if test x$gcc_no_link = xyes; then
10798 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10799 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10800 { (exit 1); exit 1; }; }
10802 cat >conftest.$ac_ext <<_ACEOF
10803 /* confdefs.h. */
10804 _ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10809 /* Override any gcc2 internal prototype to avoid an error. */
10810 #ifdef __cplusplus
10811 extern "C"
10812 #endif
10813 /* We use char because int might match the return type of a gcc2
10814 builtin and then its argument prototype would still apply. */
10815 char y0 ();
10817 main ()
10819 y0 ();
10821 return 0;
10823 _ACEOF
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10826 (eval $ac_link) 2>conftest.er1
10827 ac_status=$?
10828 grep -v '^ *+' conftest.er1 >conftest.err
10829 rm -f conftest.er1
10830 cat conftest.err >&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } &&
10833 { ac_try='test -z "$ac_c_werror_flag"
10834 || test ! -s conftest.err'
10835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836 (eval $ac_try) 2>&5
10837 ac_status=$?
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; } &&
10840 { ac_try='test -s conftest$ac_exeext'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; }; then
10846 ac_cv_lib_m_y0=yes
10847 else
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 ac_cv_lib_m_y0=no
10853 rm -f conftest.err conftest.$ac_objext \
10854 conftest$ac_exeext conftest.$ac_ext
10855 LIBS=$ac_check_lib_save_LIBS
10857 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
10858 echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
10859 if test $ac_cv_lib_m_y0 = yes; then
10861 cat >>confdefs.h <<\_ACEOF
10862 #define HAVE_Y0 1
10863 _ACEOF
10867 echo "$as_me:$LINENO: checking for y0f in -lm" >&5
10868 echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
10869 if test "${ac_cv_lib_m_y0f+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872 ac_check_lib_save_LIBS=$LIBS
10873 LIBS="-lm $LIBS"
10874 if test x$gcc_no_link = xyes; then
10875 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10877 { (exit 1); exit 1; }; }
10879 cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h. */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10886 /* Override any gcc2 internal prototype to avoid an error. */
10887 #ifdef __cplusplus
10888 extern "C"
10889 #endif
10890 /* We use char because int might match the return type of a gcc2
10891 builtin and then its argument prototype would still apply. */
10892 char y0f ();
10894 main ()
10896 y0f ();
10898 return 0;
10900 _ACEOF
10901 rm -f conftest.$ac_objext conftest$ac_exeext
10902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10903 (eval $ac_link) 2>conftest.er1
10904 ac_status=$?
10905 grep -v '^ *+' conftest.er1 >conftest.err
10906 rm -f conftest.er1
10907 cat conftest.err >&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); } &&
10910 { ac_try='test -z "$ac_c_werror_flag"
10911 || test ! -s conftest.err'
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5
10914 ac_status=$?
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; } &&
10917 { ac_try='test -s conftest$ac_exeext'
10918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10920 ac_status=$?
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10923 ac_cv_lib_m_y0f=yes
10924 else
10925 echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10928 ac_cv_lib_m_y0f=no
10930 rm -f conftest.err conftest.$ac_objext \
10931 conftest$ac_exeext conftest.$ac_ext
10932 LIBS=$ac_check_lib_save_LIBS
10934 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
10935 echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
10936 if test $ac_cv_lib_m_y0f = yes; then
10938 cat >>confdefs.h <<\_ACEOF
10939 #define HAVE_Y0F 1
10940 _ACEOF
10944 echo "$as_me:$LINENO: checking for y1 in -lm" >&5
10945 echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
10946 if test "${ac_cv_lib_m_y1+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949 ac_check_lib_save_LIBS=$LIBS
10950 LIBS="-lm $LIBS"
10951 if test x$gcc_no_link = xyes; then
10952 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10953 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10954 { (exit 1); exit 1; }; }
10956 cat >conftest.$ac_ext <<_ACEOF
10957 /* confdefs.h. */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10963 /* Override any gcc2 internal prototype to avoid an error. */
10964 #ifdef __cplusplus
10965 extern "C"
10966 #endif
10967 /* We use char because int might match the return type of a gcc2
10968 builtin and then its argument prototype would still apply. */
10969 char y1 ();
10971 main ()
10973 y1 ();
10975 return 0;
10977 _ACEOF
10978 rm -f conftest.$ac_objext conftest$ac_exeext
10979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10980 (eval $ac_link) 2>conftest.er1
10981 ac_status=$?
10982 grep -v '^ *+' conftest.er1 >conftest.err
10983 rm -f conftest.er1
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } &&
10987 { ac_try='test -z "$ac_c_werror_flag"
10988 || test ! -s conftest.err'
10989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990 (eval $ac_try) 2>&5
10991 ac_status=$?
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; } &&
10994 { ac_try='test -s conftest$ac_exeext'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; }; then
11000 ac_cv_lib_m_y1=yes
11001 else
11002 echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11005 ac_cv_lib_m_y1=no
11007 rm -f conftest.err conftest.$ac_objext \
11008 conftest$ac_exeext conftest.$ac_ext
11009 LIBS=$ac_check_lib_save_LIBS
11011 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
11012 echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
11013 if test $ac_cv_lib_m_y1 = yes; then
11015 cat >>confdefs.h <<\_ACEOF
11016 #define HAVE_Y1 1
11017 _ACEOF
11021 echo "$as_me:$LINENO: checking for y1f in -lm" >&5
11022 echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
11023 if test "${ac_cv_lib_m_y1f+set}" = set; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 else
11026 ac_check_lib_save_LIBS=$LIBS
11027 LIBS="-lm $LIBS"
11028 if test x$gcc_no_link = xyes; then
11029 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11030 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11031 { (exit 1); exit 1; }; }
11033 cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h. */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11040 /* Override any gcc2 internal prototype to avoid an error. */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 /* We use char because int might match the return type of a gcc2
11045 builtin and then its argument prototype would still apply. */
11046 char y1f ();
11048 main ()
11050 y1f ();
11052 return 0;
11054 _ACEOF
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11057 (eval $ac_link) 2>conftest.er1
11058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try='test -z "$ac_c_werror_flag"
11065 || test ! -s conftest.err'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; } &&
11071 { ac_try='test -s conftest$ac_exeext'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }; then
11077 ac_cv_lib_m_y1f=yes
11078 else
11079 echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11082 ac_cv_lib_m_y1f=no
11084 rm -f conftest.err conftest.$ac_objext \
11085 conftest$ac_exeext conftest.$ac_ext
11086 LIBS=$ac_check_lib_save_LIBS
11088 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
11089 echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
11090 if test $ac_cv_lib_m_y1f = yes; then
11092 cat >>confdefs.h <<\_ACEOF
11093 #define HAVE_Y1F 1
11094 _ACEOF
11098 echo "$as_me:$LINENO: checking for yn in -lm" >&5
11099 echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
11100 if test "${ac_cv_lib_m_yn+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103 ac_check_lib_save_LIBS=$LIBS
11104 LIBS="-lm $LIBS"
11105 if test x$gcc_no_link = xyes; then
11106 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11107 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11108 { (exit 1); exit 1; }; }
11110 cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h. */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11117 /* Override any gcc2 internal prototype to avoid an error. */
11118 #ifdef __cplusplus
11119 extern "C"
11120 #endif
11121 /* We use char because int might match the return type of a gcc2
11122 builtin and then its argument prototype would still apply. */
11123 char yn ();
11125 main ()
11127 yn ();
11129 return 0;
11131 _ACEOF
11132 rm -f conftest.$ac_objext conftest$ac_exeext
11133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11134 (eval $ac_link) 2>conftest.er1
11135 ac_status=$?
11136 grep -v '^ *+' conftest.er1 >conftest.err
11137 rm -f conftest.er1
11138 cat conftest.err >&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } &&
11141 { ac_try='test -z "$ac_c_werror_flag"
11142 || test ! -s conftest.err'
11143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11144 (eval $ac_try) 2>&5
11145 ac_status=$?
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); }; } &&
11148 { ac_try='test -s conftest$ac_exeext'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }; then
11154 ac_cv_lib_m_yn=yes
11155 else
11156 echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11159 ac_cv_lib_m_yn=no
11161 rm -f conftest.err conftest.$ac_objext \
11162 conftest$ac_exeext conftest.$ac_ext
11163 LIBS=$ac_check_lib_save_LIBS
11165 echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
11166 echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
11167 if test $ac_cv_lib_m_yn = yes; then
11169 cat >>confdefs.h <<\_ACEOF
11170 #define HAVE_YN 1
11171 _ACEOF
11175 echo "$as_me:$LINENO: checking for ynf in -lm" >&5
11176 echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
11177 if test "${ac_cv_lib_m_ynf+set}" = set; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 else
11180 ac_check_lib_save_LIBS=$LIBS
11181 LIBS="-lm $LIBS"
11182 if test x$gcc_no_link = xyes; then
11183 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11184 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11185 { (exit 1); exit 1; }; }
11187 cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h. */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11194 /* Override any gcc2 internal prototype to avoid an error. */
11195 #ifdef __cplusplus
11196 extern "C"
11197 #endif
11198 /* We use char because int might match the return type of a gcc2
11199 builtin and then its argument prototype would still apply. */
11200 char ynf ();
11202 main ()
11204 ynf ();
11206 return 0;
11208 _ACEOF
11209 rm -f conftest.$ac_objext conftest$ac_exeext
11210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11211 (eval $ac_link) 2>conftest.er1
11212 ac_status=$?
11213 grep -v '^ *+' conftest.er1 >conftest.err
11214 rm -f conftest.er1
11215 cat conftest.err >&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } &&
11218 { ac_try='test -z "$ac_c_werror_flag"
11219 || test ! -s conftest.err'
11220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11221 (eval $ac_try) 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; } &&
11225 { ac_try='test -s conftest$ac_exeext'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; }; then
11231 ac_cv_lib_m_ynf=yes
11232 else
11233 echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11236 ac_cv_lib_m_ynf=no
11238 rm -f conftest.err conftest.$ac_objext \
11239 conftest$ac_exeext conftest.$ac_ext
11240 LIBS=$ac_check_lib_save_LIBS
11242 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
11243 echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
11244 if test $ac_cv_lib_m_ynf = yes; then
11246 cat >>confdefs.h <<\_ACEOF
11247 #define HAVE_YNF 1
11248 _ACEOF
11253 # Fallback in case isfinite is not available.
11254 echo "$as_me:$LINENO: checking for finite in -lm" >&5
11255 echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6
11256 if test "${ac_cv_lib_m_finite+set}" = set; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 else
11259 ac_check_lib_save_LIBS=$LIBS
11260 LIBS="-lm $LIBS"
11261 if test x$gcc_no_link = xyes; then
11262 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11263 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11264 { (exit 1); exit 1; }; }
11266 cat >conftest.$ac_ext <<_ACEOF
11267 /* confdefs.h. */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11273 /* Override any gcc2 internal prototype to avoid an error. */
11274 #ifdef __cplusplus
11275 extern "C"
11276 #endif
11277 /* We use char because int might match the return type of a gcc2
11278 builtin and then its argument prototype would still apply. */
11279 char finite ();
11281 main ()
11283 finite ();
11285 return 0;
11287 _ACEOF
11288 rm -f conftest.$ac_objext conftest$ac_exeext
11289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11290 (eval $ac_link) 2>conftest.er1
11291 ac_status=$?
11292 grep -v '^ *+' conftest.er1 >conftest.err
11293 rm -f conftest.er1
11294 cat conftest.err >&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); } &&
11297 { ac_try='test -z "$ac_c_werror_flag"
11298 || test ! -s conftest.err'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11301 ac_status=$?
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; } &&
11304 { ac_try='test -s conftest$ac_exeext'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 ac_cv_lib_m_finite=yes
11311 else
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11315 ac_cv_lib_m_finite=no
11317 rm -f conftest.err conftest.$ac_objext \
11318 conftest$ac_exeext conftest.$ac_ext
11319 LIBS=$ac_check_lib_save_LIBS
11321 echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5
11322 echo "${ECHO_T}$ac_cv_lib_m_finite" >&6
11323 if test $ac_cv_lib_m_finite = yes; then
11325 cat >>confdefs.h <<\_ACEOF
11326 #define HAVE_FINITE 1
11327 _ACEOF
11332 # Let the user override this
11333 # Check whether --enable-cmath or --disable-cmath was given.
11334 if test "${enable_cmath+set}" = set; then
11335 enableval="$enable_cmath"
11336 need_math=$enableval
11338 if test "$need_math" = "yes"; then
11339 { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
11340 echo "$as_me: Including complex math functions in libgfor" >&6;};
11341 extra_math_obj='$(gfor_cmath_obj)'
11344 MATH_OBJ="$extra_math_obj"
11347 # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
11348 # for struct timezone, as you might think. We also need to check how
11349 # to call gettimeofday if we have it.
11350 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11351 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11352 if test "${ac_cv_header_time+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 else
11355 cat >conftest.$ac_ext <<_ACEOF
11356 /* confdefs.h. */
11357 _ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361 #include <sys/types.h>
11362 #include <sys/time.h>
11363 #include <time.h>
11366 main ()
11368 if ((struct tm *) 0)
11369 return 0;
11371 return 0;
11373 _ACEOF
11374 rm -f conftest.$ac_objext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11376 (eval $ac_compile) 2>conftest.er1
11377 ac_status=$?
11378 grep -v '^ *+' conftest.er1 >conftest.err
11379 rm -f conftest.er1
11380 cat conftest.err >&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } &&
11383 { ac_try='test -z "$ac_c_werror_flag"
11384 || test ! -s conftest.err'
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; } &&
11390 { ac_try='test -s conftest.$ac_objext'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11393 ac_status=$?
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
11396 ac_cv_header_time=yes
11397 else
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11401 ac_cv_header_time=no
11403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11405 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11406 echo "${ECHO_T}$ac_cv_header_time" >&6
11407 if test $ac_cv_header_time = yes; then
11409 cat >>confdefs.h <<\_ACEOF
11410 #define TIME_WITH_SYS_TIME 1
11411 _ACEOF
11417 for ac_func in gettimeofday
11419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11420 echo "$as_me:$LINENO: checking for $ac_func" >&5
11421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11422 if eval "test \"\${$as_ac_var+set}\" = set"; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425 if test x$gcc_no_link = xyes; then
11426 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11427 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11428 { (exit 1); exit 1; }; }
11430 cat >conftest.$ac_ext <<_ACEOF
11431 /* confdefs.h. */
11432 _ACEOF
11433 cat confdefs.h >>conftest.$ac_ext
11434 cat >>conftest.$ac_ext <<_ACEOF
11435 /* end confdefs.h. */
11436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11438 #define $ac_func innocuous_$ac_func
11440 /* System header to define __stub macros and hopefully few prototypes,
11441 which can conflict with char $ac_func (); below.
11442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11443 <limits.h> exists even on freestanding compilers. */
11445 #ifdef __STDC__
11446 # include <limits.h>
11447 #else
11448 # include <assert.h>
11449 #endif
11451 #undef $ac_func
11453 /* Override any gcc2 internal prototype to avoid an error. */
11454 #ifdef __cplusplus
11455 extern "C"
11457 #endif
11458 /* We use char because int might match the return type of a gcc2
11459 builtin and then its argument prototype would still apply. */
11460 char $ac_func ();
11461 /* The GNU C library defines this for functions which it implements
11462 to always fail with ENOSYS. Some functions are actually named
11463 something starting with __ and the normal name is an alias. */
11464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11465 choke me
11466 #else
11467 char (*f) () = $ac_func;
11468 #endif
11469 #ifdef __cplusplus
11471 #endif
11474 main ()
11476 return f != $ac_func;
11478 return 0;
11480 _ACEOF
11481 rm -f conftest.$ac_objext conftest$ac_exeext
11482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11483 (eval $ac_link) 2>conftest.er1
11484 ac_status=$?
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try='test -z "$ac_c_werror_flag"
11491 || test ! -s conftest.err'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; } &&
11497 { ac_try='test -s conftest$ac_exeext'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; }; then
11503 eval "$as_ac_var=yes"
11504 else
11505 echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11508 eval "$as_ac_var=no"
11510 rm -f conftest.err conftest.$ac_objext \
11511 conftest$ac_exeext conftest.$ac_ext
11513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11515 if test `eval echo '${'$as_ac_var'}'` = yes; then
11516 cat >>confdefs.h <<_ACEOF
11517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11518 _ACEOF
11521 done
11523 if test "$ac_cv_func_gettimeofday" = yes; then
11524 echo "$as_me:$LINENO: checking for struct timezone" >&5
11525 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11526 if test "${gfor_cv_struct_timezone+set}" = set; then
11527 echo $ECHO_N "(cached) $ECHO_C" >&6
11528 else
11529 cat >conftest.$ac_ext <<_ACEOF
11530 /* confdefs.h. */
11531 _ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535 #include <sys/time.h>
11537 main ()
11539 struct timezone tz;
11541 return 0;
11543 _ACEOF
11544 rm -f conftest.$ac_objext
11545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11546 (eval $ac_compile) 2>conftest.er1
11547 ac_status=$?
11548 grep -v '^ *+' conftest.er1 >conftest.err
11549 rm -f conftest.er1
11550 cat conftest.err >&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } &&
11553 { ac_try='test -z "$ac_c_werror_flag"
11554 || test ! -s conftest.err'
11555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556 (eval $ac_try) 2>&5
11557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; } &&
11560 { ac_try='test -s conftest.$ac_objext'
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }; then
11566 gfor_cv_struct_timezone=yes
11567 else
11568 echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11571 gfor_cv_struct_timezone=no
11573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11575 echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
11576 echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
11577 if test $gfor_cv_struct_timezone = yes; then
11578 if test "$cross_compiling" = yes; then
11579 gfor_have_struct_timezone=yes
11580 else
11581 cat >conftest.$ac_ext <<_ACEOF
11582 /* confdefs.h. */
11583 _ACEOF
11584 cat confdefs.h >>conftest.$ac_ext
11585 cat >>conftest.$ac_ext <<_ACEOF
11586 /* end confdefs.h. */
11588 #ifdef TIME_WITH_SYS_TIME
11589 #include <sys/time.h>
11590 #include <time.h>
11591 #else
11592 #ifdef HAVE_SYS_TIME_H
11593 #include <sys/time.h>
11594 #else
11595 #include <time.h>
11596 #endif
11597 #endif
11598 main ()
11600 struct timeval time;
11601 struct timezone dummy;
11602 if (gettimeofday (&time, &dummy))
11603 exit (1);
11604 else
11605 exit (0);
11607 _ACEOF
11608 rm -f conftest$ac_exeext
11609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11610 (eval $ac_link) 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 gfor_have_struct_timezone=yes
11620 else
11621 echo "$as_me: program exited with status $ac_status" >&5
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11625 ( exit $ac_status )
11626 gfor_have_struct_timezone=no
11628 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11630 if test $gfor_have_struct_timezone = yes; then
11632 cat >>confdefs.h <<\_ACEOF
11633 #define HAVE_TIMEZONE 1
11634 _ACEOF
11639 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
11640 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11641 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11643 else
11644 if test x$gcc_no_link = xyes; then
11645 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11646 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11647 { (exit 1); exit 1; }; }
11649 cat >conftest.$ac_ext <<_ACEOF
11650 /* confdefs.h. */
11651 _ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11656 #ifdef TIME_WITH_SYS_TIME
11657 #include <sys/time.h>
11658 #include <time.h>
11659 #else
11660 #ifdef HAVE_SYS_TIME_H
11661 #include <sys/time.h>
11662 #else
11663 #include <time.h>
11664 #endif
11665 #endif
11668 main ()
11671 struct timeval time;
11672 #ifdef HAVE_TIMEZONE
11673 struct timezone dummy;
11674 #define DUMMY &dummy
11675 #else
11676 #define DUMMY NULL
11677 #endif
11678 gettimeofday (&time, DUMMY);
11680 return 0;
11682 _ACEOF
11683 rm -f conftest.$ac_objext conftest$ac_exeext
11684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11685 (eval $ac_link) 2>conftest.er1
11686 ac_status=$?
11687 grep -v '^ *+' conftest.er1 >conftest.err
11688 rm -f conftest.er1
11689 cat conftest.err >&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } &&
11692 { ac_try='test -z "$ac_c_werror_flag"
11693 || test ! -s conftest.err'
11694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695 (eval $ac_try) 2>&5
11696 ac_status=$?
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; } &&
11699 { ac_try='test -s conftest$ac_exeext'
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; }; then
11705 emacs_cv_gettimeofday_two_arguments=yes
11706 else
11707 echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11710 emacs_cv_gettimeofday_two_arguments=no
11712 rm -f conftest.err conftest.$ac_objext \
11713 conftest$ac_exeext conftest.$ac_ext
11715 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
11716 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11717 if test $emacs_cv_gettimeofday_two_arguments = no; then
11719 cat >>confdefs.h <<\_ACEOF
11720 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11721 _ACEOF
11726 # Attempt to assert that the target is of common type in case we don't
11727 # have C99 integer types at all.
11729 echo "$as_me:$LINENO: checking whether the target is ILP32" >&5
11730 echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6
11731 if test "${target_ilp32+set}" = set; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 else
11735 save_CFLAGS="$CFLAGS"
11736 CFLAGS="-O2"
11737 if test x$gcc_no_link = xyes; then
11738 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11739 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11740 { (exit 1); exit 1; }; }
11742 cat >conftest.$ac_ext <<_ACEOF
11743 /* confdefs.h. */
11744 _ACEOF
11745 cat confdefs.h >>conftest.$ac_ext
11746 cat >>conftest.$ac_ext <<_ACEOF
11747 /* end confdefs.h. */
11750 main ()
11753 if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4)
11755 else
11756 undefined_function ();
11759 return 0;
11761 _ACEOF
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11764 (eval $ac_link) 2>conftest.er1
11765 ac_status=$?
11766 grep -v '^ *+' conftest.er1 >conftest.err
11767 rm -f conftest.er1
11768 cat conftest.err >&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } &&
11771 { ac_try='test -z "$ac_c_werror_flag"
11772 || test ! -s conftest.err'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; } &&
11778 { ac_try='test -s conftest$ac_exeext'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; }; then
11784 target_ilp32=yes
11785 else
11786 echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11789 target_ilp32=no
11791 rm -f conftest.err conftest.$ac_objext \
11792 conftest$ac_exeext conftest.$ac_ext
11793 CFLAGS="$save_CFLAGS"
11795 echo "$as_me:$LINENO: result: $target_ilp32" >&5
11796 echo "${ECHO_T}$target_ilp32" >&6
11797 if test $target_ilp32 = yes; then
11799 cat >>confdefs.h <<\_ACEOF
11800 #define TARGET_ILP32 1
11801 _ACEOF
11806 # Check out attribute support.
11808 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
11809 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
11810 if test "${have_attribute_visibility+set}" = set; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11812 else
11814 save_CFLAGS="$CFLAGS"
11815 CFLAGS="$CFLAGS -Werror"
11816 cat >conftest.$ac_ext <<_ACEOF
11817 /* confdefs.h. */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 void __attribute__((visibility("hidden"))) foo(void) { }
11824 main ()
11828 return 0;
11830 _ACEOF
11831 rm -f conftest.$ac_objext
11832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11833 (eval $ac_compile) 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
11840 { ac_try='test -z "$ac_c_werror_flag"
11841 || test ! -s conftest.err'
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try='test -s conftest.$ac_objext'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11853 have_attribute_visibility=yes
11854 else
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 have_attribute_visibility=no
11860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11861 CFLAGS="$save_CFLAGS"
11863 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
11864 echo "${ECHO_T}$have_attribute_visibility" >&6
11865 if test $have_attribute_visibility = yes; then
11867 cat >>confdefs.h <<\_ACEOF
11868 #define HAVE_ATTRIBUTE_VISIBILITY 1
11869 _ACEOF
11873 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
11874 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
11875 if test "${have_attribute_dllexport+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11877 else
11879 save_CFLAGS="$CFLAGS"
11880 CFLAGS="$CFLAGS -Werror"
11881 cat >conftest.$ac_ext <<_ACEOF
11882 /* confdefs.h. */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 void __attribute__((dllexport)) foo(void) { }
11889 main ()
11893 return 0;
11895 _ACEOF
11896 rm -f conftest.$ac_objext
11897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11898 (eval $ac_compile) 2>conftest.er1
11899 ac_status=$?
11900 grep -v '^ *+' conftest.er1 >conftest.err
11901 rm -f conftest.er1
11902 cat conftest.err >&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } &&
11905 { ac_try='test -z "$ac_c_werror_flag"
11906 || test ! -s conftest.err'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; } &&
11912 { ac_try='test -s conftest.$ac_objext'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }; then
11918 have_attribute_dllexport=yes
11919 else
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11923 have_attribute_dllexport=no
11925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11926 CFLAGS="$save_CFLAGS"
11928 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
11929 echo "${ECHO_T}$have_attribute_dllexport" >&6
11930 if test $have_attribute_dllexport = yes; then
11932 cat >>confdefs.h <<\_ACEOF
11933 #define HAVE_ATTRIBUTE_DLLEXPORT 1
11934 _ACEOF
11938 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
11939 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
11940 if test "${have_attribute_alias+set}" = set; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 else
11944 if test x$gcc_no_link = xyes; then
11945 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11946 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11947 { (exit 1); exit 1; }; }
11949 cat >conftest.$ac_ext <<_ACEOF
11950 /* confdefs.h. */
11951 _ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11956 #define ULP STR1(__USER_LABEL_PREFIX__)
11957 #define STR1(x) STR2(x)
11958 #define STR2(x) #x
11959 void foo(void) { }
11960 extern void bar(void) __attribute__((alias(ULP "foo")));
11962 main ()
11964 bar();
11966 return 0;
11968 _ACEOF
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11971 (eval $ac_link) 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } &&
11978 { ac_try='test -z "$ac_c_werror_flag"
11979 || test ! -s conftest.err'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest$ac_exeext'
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11988 ac_status=$?
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 have_attribute_alias=yes
11992 else
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 have_attribute_alias=no
11998 rm -f conftest.err conftest.$ac_objext \
11999 conftest$ac_exeext conftest.$ac_ext
12001 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
12002 echo "${ECHO_T}$have_attribute_alias" >&6
12003 if test $have_attribute_alias = yes; then
12005 cat >>confdefs.h <<\_ACEOF
12006 #define HAVE_ATTRIBUTE_ALIAS 1
12007 _ACEOF
12011 cat >confcache <<\_ACEOF
12012 # This file is a shell script that caches the results of configure
12013 # tests run on this system so they can be shared between configure
12014 # scripts and configure runs, see configure's option --config-cache.
12015 # It is not useful on other systems. If it contains results you don't
12016 # want to keep, you may remove or edit it.
12018 # config.status only pays attention to the cache file if you give it
12019 # the --recheck option to rerun configure.
12021 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12022 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12023 # following values.
12025 _ACEOF
12027 # The following way of writing the cache mishandles newlines in values,
12028 # but we know of no workaround that is simple, portable, and efficient.
12029 # So, don't put newlines in cache variables' values.
12030 # Ultrix sh set writes to stderr and can't be redirected directly,
12031 # and sets the high bit in the cache file unless we assign to the vars.
12033 (set) 2>&1 |
12034 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12035 *ac_space=\ *)
12036 # `set' does not quote correctly, so add quotes (double-quote
12037 # substitution turns \\\\ into \\, and sed turns \\ into \).
12038 sed -n \
12039 "s/'/'\\\\''/g;
12040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12043 # `set' quotes correctly as required by POSIX, so do not add quotes.
12044 sed -n \
12045 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12047 esac;
12049 sed '
12050 t clear
12051 : clear
12052 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12053 t end
12054 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12055 : end' >>confcache
12056 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12057 if test -w $cache_file; then
12058 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12059 cat confcache >$cache_file
12060 else
12061 echo "not updating unwritable cache $cache_file"
12064 rm -f confcache
12066 if test ${multilib} = yes; then
12067 multilib_arg="--enable-multilib"
12068 else
12069 multilib_arg=
12072 # Write our Makefile.
12073 ac_config_files="$ac_config_files Makefile"
12075 cat >confcache <<\_ACEOF
12076 # This file is a shell script that caches the results of configure
12077 # tests run on this system so they can be shared between configure
12078 # scripts and configure runs, see configure's option --config-cache.
12079 # It is not useful on other systems. If it contains results you don't
12080 # want to keep, you may remove or edit it.
12082 # config.status only pays attention to the cache file if you give it
12083 # the --recheck option to rerun configure.
12085 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12086 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12087 # following values.
12089 _ACEOF
12091 # The following way of writing the cache mishandles newlines in values,
12092 # but we know of no workaround that is simple, portable, and efficient.
12093 # So, don't put newlines in cache variables' values.
12094 # Ultrix sh set writes to stderr and can't be redirected directly,
12095 # and sets the high bit in the cache file unless we assign to the vars.
12097 (set) 2>&1 |
12098 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12099 *ac_space=\ *)
12100 # `set' does not quote correctly, so add quotes (double-quote
12101 # substitution turns \\\\ into \\, and sed turns \\ into \).
12102 sed -n \
12103 "s/'/'\\\\''/g;
12104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12107 # `set' quotes correctly as required by POSIX, so do not add quotes.
12108 sed -n \
12109 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12111 esac;
12113 sed '
12114 t clear
12115 : clear
12116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12117 t end
12118 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12119 : end' >>confcache
12120 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12121 if test -w $cache_file; then
12122 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12123 cat confcache >$cache_file
12124 else
12125 echo "not updating unwritable cache $cache_file"
12128 rm -f confcache
12130 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12131 # Let make expand exec_prefix.
12132 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12134 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12135 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12136 # trailing colons and then remove the whole line if VPATH becomes empty
12137 # (actually we leave an empty line to preserve line numbers).
12138 if test "x$srcdir" = x.; then
12139 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12140 s/:*\$(srcdir):*/:/;
12141 s/:*\${srcdir}:*/:/;
12142 s/:*@srcdir@:*/:/;
12143 s/^\([^=]*=[ ]*\):*/\1/;
12144 s/:*$//;
12145 s/^[^=]*=[ ]*$//;
12149 DEFS=-DHAVE_CONFIG_H
12151 ac_libobjs=
12152 ac_ltlibobjs=
12153 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12154 # 1. Remove the extension, and $U if already installed.
12155 ac_i=`echo "$ac_i" |
12156 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12157 # 2. Add them.
12158 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12159 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12160 done
12161 LIBOBJS=$ac_libobjs
12163 LTLIBOBJS=$ac_ltlibobjs
12166 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12167 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12168 Usually this means the macro was only invoked conditionally." >&5
12169 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12170 Usually this means the macro was only invoked conditionally." >&2;}
12171 { (exit 1); exit 1; }; }
12174 : ${CONFIG_STATUS=./config.status}
12175 ac_clean_files_save=$ac_clean_files
12176 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12177 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12178 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12179 cat >$CONFIG_STATUS <<_ACEOF
12180 #! $SHELL
12181 # Generated by $as_me.
12182 # Run this file to recreate the current configuration.
12183 # Compiler output produced by configure, useful for debugging
12184 # configure, is in config.log if it exists.
12186 debug=false
12187 ac_cs_recheck=false
12188 ac_cs_silent=false
12189 SHELL=\${CONFIG_SHELL-$SHELL}
12190 _ACEOF
12192 cat >>$CONFIG_STATUS <<\_ACEOF
12193 ## --------------------- ##
12194 ## M4sh Initialization. ##
12195 ## --------------------- ##
12197 # Be Bourne compatible
12198 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12199 emulate sh
12200 NULLCMD=:
12201 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12202 # is contrary to our usage. Disable this feature.
12203 alias -g '${1+"$@"}'='"$@"'
12204 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12205 set -o posix
12207 DUALCASE=1; export DUALCASE # for MKS sh
12209 # Support unset when possible.
12210 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12211 as_unset=unset
12212 else
12213 as_unset=false
12217 # Work around bugs in pre-3.0 UWIN ksh.
12218 $as_unset ENV MAIL MAILPATH
12219 PS1='$ '
12220 PS2='> '
12221 PS4='+ '
12223 # NLS nuisances.
12224 for as_var in \
12225 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12226 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12227 LC_TELEPHONE LC_TIME
12229 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12230 eval $as_var=C; export $as_var
12231 else
12232 $as_unset $as_var
12234 done
12236 # Required to use basename.
12237 if expr a : '\(a\)' >/dev/null 2>&1; then
12238 as_expr=expr
12239 else
12240 as_expr=false
12243 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12244 as_basename=basename
12245 else
12246 as_basename=false
12250 # Name of the executable.
12251 as_me=`$as_basename "$0" ||
12252 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12253 X"$0" : 'X\(//\)$' \| \
12254 X"$0" : 'X\(/\)$' \| \
12255 . : '\(.\)' 2>/dev/null ||
12256 echo X/"$0" |
12257 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12258 /^X\/\(\/\/\)$/{ s//\1/; q; }
12259 /^X\/\(\/\).*/{ s//\1/; q; }
12260 s/.*/./; q'`
12263 # PATH needs CR, and LINENO needs CR and PATH.
12264 # Avoid depending upon Character Ranges.
12265 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12266 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12267 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12268 as_cr_digits='0123456789'
12269 as_cr_alnum=$as_cr_Letters$as_cr_digits
12271 # The user is always right.
12272 if test "${PATH_SEPARATOR+set}" != set; then
12273 echo "#! /bin/sh" >conf$$.sh
12274 echo "exit 0" >>conf$$.sh
12275 chmod +x conf$$.sh
12276 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12277 PATH_SEPARATOR=';'
12278 else
12279 PATH_SEPARATOR=:
12281 rm -f conf$$.sh
12285 as_lineno_1=$LINENO
12286 as_lineno_2=$LINENO
12287 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12288 test "x$as_lineno_1" != "x$as_lineno_2" &&
12289 test "x$as_lineno_3" = "x$as_lineno_2" || {
12290 # Find who we are. Look in the path if we contain no path at all
12291 # relative or not.
12292 case $0 in
12293 *[\\/]* ) as_myself=$0 ;;
12294 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295 for as_dir in $PATH
12297 IFS=$as_save_IFS
12298 test -z "$as_dir" && as_dir=.
12299 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12300 done
12303 esac
12304 # We did not find ourselves, most probably we were run as `sh COMMAND'
12305 # in which case we are not to be found in the path.
12306 if test "x$as_myself" = x; then
12307 as_myself=$0
12309 if test ! -f "$as_myself"; then
12310 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12311 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12312 { (exit 1); exit 1; }; }
12314 case $CONFIG_SHELL in
12316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12319 IFS=$as_save_IFS
12320 test -z "$as_dir" && as_dir=.
12321 for as_base in sh bash ksh sh5; do
12322 case $as_dir in
12324 if ("$as_dir/$as_base" -c '
12325 as_lineno_1=$LINENO
12326 as_lineno_2=$LINENO
12327 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12328 test "x$as_lineno_1" != "x$as_lineno_2" &&
12329 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12330 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12331 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12332 CONFIG_SHELL=$as_dir/$as_base
12333 export CONFIG_SHELL
12334 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12335 fi;;
12336 esac
12337 done
12338 done
12340 esac
12342 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12343 # uniformly replaced by the line number. The first 'sed' inserts a
12344 # line-number line before each line; the second 'sed' does the real
12345 # work. The second script uses 'N' to pair each line-number line
12346 # with the numbered line, and appends trailing '-' during
12347 # substitution so that $LINENO is not a special case at line end.
12348 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12349 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12350 sed '=' <$as_myself |
12351 sed '
12353 s,$,-,
12354 : loop
12355 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12356 t loop
12357 s,-$,,
12358 s,^['$as_cr_digits']*\n,,
12359 ' >$as_me.lineno &&
12360 chmod +x $as_me.lineno ||
12361 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12362 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12363 { (exit 1); exit 1; }; }
12365 # Don't try to exec as it changes $[0], causing all sort of problems
12366 # (the dirname of $[0] is not the place where we might find the
12367 # original and so on. Autoconf is especially sensible to this).
12368 . ./$as_me.lineno
12369 # Exit status is that of the last command.
12370 exit
12374 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12375 *c*,-n*) ECHO_N= ECHO_C='
12376 ' ECHO_T=' ' ;;
12377 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12378 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12379 esac
12381 if expr a : '\(a\)' >/dev/null 2>&1; then
12382 as_expr=expr
12383 else
12384 as_expr=false
12387 rm -f conf$$ conf$$.exe conf$$.file
12388 echo >conf$$.file
12389 if ln -s conf$$.file conf$$ 2>/dev/null; then
12390 # We could just check for DJGPP; but this test a) works b) is more generic
12391 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12392 if test -f conf$$.exe; then
12393 # Don't use ln at all; we don't have any links
12394 as_ln_s='cp -p'
12395 else
12396 as_ln_s='ln -s'
12398 elif ln conf$$.file conf$$ 2>/dev/null; then
12399 as_ln_s=ln
12400 else
12401 as_ln_s='cp -p'
12403 rm -f conf$$ conf$$.exe conf$$.file
12405 if mkdir -p . 2>/dev/null; then
12406 as_mkdir_p=:
12407 else
12408 test -d ./-p && rmdir ./-p
12409 as_mkdir_p=false
12412 as_executable_p="test -f"
12414 # Sed expression to map a string onto a valid CPP name.
12415 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12417 # Sed expression to map a string onto a valid variable name.
12418 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12421 # IFS
12422 # We need space, tab and new line, in precisely that order.
12423 as_nl='
12425 IFS=" $as_nl"
12427 # CDPATH.
12428 $as_unset CDPATH
12430 exec 6>&1
12432 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12433 # report actual input values of CONFIG_FILES etc. instead of their
12434 # values after options handling. Logging --version etc. is OK.
12435 exec 5>>config.log
12437 echo
12438 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12439 ## Running $as_me. ##
12440 _ASBOX
12441 } >&5
12442 cat >&5 <<_CSEOF
12444 This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
12445 generated by GNU Autoconf 2.59. Invocation command line was
12447 CONFIG_FILES = $CONFIG_FILES
12448 CONFIG_HEADERS = $CONFIG_HEADERS
12449 CONFIG_LINKS = $CONFIG_LINKS
12450 CONFIG_COMMANDS = $CONFIG_COMMANDS
12451 $ $0 $@
12453 _CSEOF
12454 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12455 echo >&5
12456 _ACEOF
12458 # Files that config.status was made for.
12459 if test -n "$ac_config_files"; then
12460 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12463 if test -n "$ac_config_headers"; then
12464 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12467 if test -n "$ac_config_links"; then
12468 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12471 if test -n "$ac_config_commands"; then
12472 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12475 cat >>$CONFIG_STATUS <<\_ACEOF
12477 ac_cs_usage="\
12478 \`$as_me' instantiates files from templates according to the
12479 current configuration.
12481 Usage: $0 [OPTIONS] [FILE]...
12483 -h, --help print this help, then exit
12484 -V, --version print version number, then exit
12485 -q, --quiet do not print progress messages
12486 -d, --debug don't remove temporary files
12487 --recheck update $as_me by reconfiguring in the same conditions
12488 --file=FILE[:TEMPLATE]
12489 instantiate the configuration file FILE
12490 --header=FILE[:TEMPLATE]
12491 instantiate the configuration header FILE
12493 Configuration files:
12494 $config_files
12496 Configuration headers:
12497 $config_headers
12499 Configuration commands:
12500 $config_commands
12502 Report bugs to <bug-autoconf@gnu.org>."
12503 _ACEOF
12505 cat >>$CONFIG_STATUS <<_ACEOF
12506 ac_cs_version="\\
12507 GNU Fortran Runtime Library config.status 0.2
12508 configured by $0, generated by GNU Autoconf 2.59,
12509 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12511 Copyright (C) 2003 Free Software Foundation, Inc.
12512 This config.status script is free software; the Free Software Foundation
12513 gives unlimited permission to copy, distribute and modify it."
12514 srcdir=$srcdir
12515 INSTALL="$INSTALL"
12516 _ACEOF
12518 cat >>$CONFIG_STATUS <<\_ACEOF
12519 # If no file are specified by the user, then we need to provide default
12520 # value. By we need to know if files were specified by the user.
12521 ac_need_defaults=:
12522 while test $# != 0
12524 case $1 in
12525 --*=*)
12526 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12527 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12528 ac_shift=:
12531 ac_option=$1
12532 ac_optarg=$2
12533 ac_shift=shift
12535 *) # This is not an option, so the user has probably given explicit
12536 # arguments.
12537 ac_option=$1
12538 ac_need_defaults=false;;
12539 esac
12541 case $ac_option in
12542 # Handling of the options.
12543 _ACEOF
12544 cat >>$CONFIG_STATUS <<\_ACEOF
12545 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12546 ac_cs_recheck=: ;;
12547 --version | --vers* | -V )
12548 echo "$ac_cs_version"; exit 0 ;;
12549 --he | --h)
12550 # Conflict between --help and --header
12551 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12552 Try \`$0 --help' for more information." >&5
12553 echo "$as_me: error: ambiguous option: $1
12554 Try \`$0 --help' for more information." >&2;}
12555 { (exit 1); exit 1; }; };;
12556 --help | --hel | -h )
12557 echo "$ac_cs_usage"; exit 0 ;;
12558 --debug | --d* | -d )
12559 debug=: ;;
12560 --file | --fil | --fi | --f )
12561 $ac_shift
12562 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12563 ac_need_defaults=false;;
12564 --header | --heade | --head | --hea )
12565 $ac_shift
12566 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12567 ac_need_defaults=false;;
12568 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12569 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12570 ac_cs_silent=: ;;
12572 # This is an error.
12573 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12574 Try \`$0 --help' for more information." >&5
12575 echo "$as_me: error: unrecognized option: $1
12576 Try \`$0 --help' for more information." >&2;}
12577 { (exit 1); exit 1; }; } ;;
12579 *) ac_config_targets="$ac_config_targets $1" ;;
12581 esac
12582 shift
12583 done
12585 ac_configure_extra_args=
12587 if $ac_cs_silent; then
12588 exec 6>/dev/null
12589 ac_configure_extra_args="$ac_configure_extra_args --silent"
12592 _ACEOF
12593 cat >>$CONFIG_STATUS <<_ACEOF
12594 if \$ac_cs_recheck; then
12595 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12596 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12599 _ACEOF
12601 cat >>$CONFIG_STATUS <<_ACEOF
12603 # INIT-COMMANDS section.
12607 srcdir="$srcdir"
12608 host="$host"
12609 target="$target"
12610 with_multisubdir="$with_multisubdir"
12611 with_multisrctop="$with_multisrctop"
12612 with_target_subdir="$with_target_subdir"
12613 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12614 multi_basedir="$multi_basedir"
12615 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12616 CC="$CC"
12618 _ACEOF
12622 cat >>$CONFIG_STATUS <<\_ACEOF
12623 for ac_config_target in $ac_config_targets
12625 case "$ac_config_target" in
12626 # Handling of arguments.
12627 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12628 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12629 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12630 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12631 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12632 { (exit 1); exit 1; }; };;
12633 esac
12634 done
12636 # If the user did not use the arguments to specify the items to instantiate,
12637 # then the envvar interface is used. Set only those that are not.
12638 # We use the long form for the default assignment because of an extremely
12639 # bizarre bug on SunOS 4.1.3.
12640 if $ac_need_defaults; then
12641 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12642 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12643 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12646 # Have a temporary directory for convenience. Make it in the build tree
12647 # simply because there is no reason to put it here, and in addition,
12648 # creating and moving files from /tmp can sometimes cause problems.
12649 # Create a temporary directory, and hook for its removal unless debugging.
12650 $debug ||
12652 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12653 trap '{ (exit 1); exit 1; }' 1 2 13 15
12656 # Create a (secure) tmp directory for tmp files.
12659 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12660 test -n "$tmp" && test -d "$tmp"
12661 } ||
12663 tmp=./confstat$$-$RANDOM
12664 (umask 077 && mkdir $tmp)
12665 } ||
12667 echo "$me: cannot create a temporary directory in ." >&2
12668 { (exit 1); exit 1; }
12671 _ACEOF
12673 cat >>$CONFIG_STATUS <<_ACEOF
12676 # CONFIG_FILES section.
12679 # No need to generate the scripts if there are no CONFIG_FILES.
12680 # This happens for instance when ./config.status config.h
12681 if test -n "\$CONFIG_FILES"; then
12682 # Protect against being on the right side of a sed subst in config.status.
12683 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12684 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12685 s,@SHELL@,$SHELL,;t t
12686 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12687 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12688 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12689 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12690 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12691 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12692 s,@exec_prefix@,$exec_prefix,;t t
12693 s,@prefix@,$prefix,;t t
12694 s,@program_transform_name@,$program_transform_name,;t t
12695 s,@bindir@,$bindir,;t t
12696 s,@sbindir@,$sbindir,;t t
12697 s,@libexecdir@,$libexecdir,;t t
12698 s,@datadir@,$datadir,;t t
12699 s,@sysconfdir@,$sysconfdir,;t t
12700 s,@sharedstatedir@,$sharedstatedir,;t t
12701 s,@localstatedir@,$localstatedir,;t t
12702 s,@libdir@,$libdir,;t t
12703 s,@includedir@,$includedir,;t t
12704 s,@oldincludedir@,$oldincludedir,;t t
12705 s,@infodir@,$infodir,;t t
12706 s,@mandir@,$mandir,;t t
12707 s,@build_alias@,$build_alias,;t t
12708 s,@host_alias@,$host_alias,;t t
12709 s,@target_alias@,$target_alias,;t t
12710 s,@DEFS@,$DEFS,;t t
12711 s,@ECHO_C@,$ECHO_C,;t t
12712 s,@ECHO_N@,$ECHO_N,;t t
12713 s,@ECHO_T@,$ECHO_T,;t t
12714 s,@LIBS@,$LIBS,;t t
12715 s,@build@,$build,;t t
12716 s,@build_cpu@,$build_cpu,;t t
12717 s,@build_vendor@,$build_vendor,;t t
12718 s,@build_os@,$build_os,;t t
12719 s,@host@,$host,;t t
12720 s,@host_cpu@,$host_cpu,;t t
12721 s,@host_vendor@,$host_vendor,;t t
12722 s,@host_os@,$host_os,;t t
12723 s,@target@,$target,;t t
12724 s,@target_cpu@,$target_cpu,;t t
12725 s,@target_vendor@,$target_vendor,;t t
12726 s,@target_os@,$target_os,;t t
12727 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12728 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12729 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12730 s,@CYGPATH_W@,$CYGPATH_W,;t t
12731 s,@PACKAGE@,$PACKAGE,;t t
12732 s,@VERSION@,$VERSION,;t t
12733 s,@ACLOCAL@,$ACLOCAL,;t t
12734 s,@AUTOCONF@,$AUTOCONF,;t t
12735 s,@AUTOMAKE@,$AUTOMAKE,;t t
12736 s,@AUTOHEADER@,$AUTOHEADER,;t t
12737 s,@MAKEINFO@,$MAKEINFO,;t t
12738 s,@install_sh@,$install_sh,;t t
12739 s,@STRIP@,$STRIP,;t t
12740 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12741 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12742 s,@mkdir_p@,$mkdir_p,;t t
12743 s,@AWK@,$AWK,;t t
12744 s,@SET_MAKE@,$SET_MAKE,;t t
12745 s,@am__leading_dot@,$am__leading_dot,;t t
12746 s,@AMTAR@,$AMTAR,;t t
12747 s,@am__tar@,$am__tar,;t t
12748 s,@am__untar@,$am__untar,;t t
12749 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12750 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12751 s,@MAINT@,$MAINT,;t t
12752 s,@multi_basedir@,$multi_basedir,;t t
12753 s,@toolexecdir@,$toolexecdir,;t t
12754 s,@toolexeclibdir@,$toolexeclibdir,;t t
12755 s,@CC@,$CC,;t t
12756 s,@ac_ct_CC@,$ac_ct_CC,;t t
12757 s,@EXEEXT@,$EXEEXT,;t t
12758 s,@OBJEXT@,$OBJEXT,;t t
12759 s,@AM_FCFLAGS@,$AM_FCFLAGS,;t t
12760 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
12761 s,@AS@,$AS,;t t
12762 s,@ac_ct_AS@,$ac_ct_AS,;t t
12763 s,@AR@,$AR,;t t
12764 s,@ac_ct_AR@,$ac_ct_AR,;t t
12765 s,@RANLIB@,$RANLIB,;t t
12766 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12767 s,@LN_S@,$LN_S,;t t
12768 s,@LIBTOOL@,$LIBTOOL,;t t
12769 s,@enable_shared@,$enable_shared,;t t
12770 s,@enable_static@,$enable_static,;t t
12771 s,@FC@,$FC,;t t
12772 s,@FCFLAGS@,$FCFLAGS,;t t
12773 s,@LDFLAGS@,$LDFLAGS,;t t
12774 s,@ac_ct_FC@,$ac_ct_FC,;t t
12775 s,@extra_ldflags_libgfortran@,$extra_ldflags_libgfortran,;t t
12776 s,@CPP@,$CPP,;t t
12777 s,@CPPFLAGS@,$CPPFLAGS,;t t
12778 s,@EGREP@,$EGREP,;t t
12779 s,@MATH_OBJ@,$MATH_OBJ,;t t
12780 s,@LIBOBJS@,$LIBOBJS,;t t
12781 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12782 CEOF
12784 _ACEOF
12786 cat >>$CONFIG_STATUS <<\_ACEOF
12787 # Split the substitutions into bite-sized pieces for seds with
12788 # small command number limits, like on Digital OSF/1 and HP-UX.
12789 ac_max_sed_lines=48
12790 ac_sed_frag=1 # Number of current file.
12791 ac_beg=1 # First line for current file.
12792 ac_end=$ac_max_sed_lines # Line after last line for current file.
12793 ac_more_lines=:
12794 ac_sed_cmds=
12795 while $ac_more_lines; do
12796 if test $ac_beg -gt 1; then
12797 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12798 else
12799 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12801 if test ! -s $tmp/subs.frag; then
12802 ac_more_lines=false
12803 else
12804 # The purpose of the label and of the branching condition is to
12805 # speed up the sed processing (if there are no `@' at all, there
12806 # is no need to browse any of the substitutions).
12807 # These are the two extra sed commands mentioned above.
12808 (echo ':t
12809 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12810 if test -z "$ac_sed_cmds"; then
12811 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12812 else
12813 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12815 ac_sed_frag=`expr $ac_sed_frag + 1`
12816 ac_beg=$ac_end
12817 ac_end=`expr $ac_end + $ac_max_sed_lines`
12819 done
12820 if test -z "$ac_sed_cmds"; then
12821 ac_sed_cmds=cat
12823 fi # test -n "$CONFIG_FILES"
12825 _ACEOF
12826 cat >>$CONFIG_STATUS <<\_ACEOF
12827 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12828 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12829 case $ac_file in
12830 - | *:- | *:-:* ) # input from stdin
12831 cat >$tmp/stdin
12832 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12833 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12834 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12835 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12836 * ) ac_file_in=$ac_file.in ;;
12837 esac
12839 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12840 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12841 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12842 X"$ac_file" : 'X\(//\)[^/]' \| \
12843 X"$ac_file" : 'X\(//\)$' \| \
12844 X"$ac_file" : 'X\(/\)' \| \
12845 . : '\(.\)' 2>/dev/null ||
12846 echo X"$ac_file" |
12847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12848 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12849 /^X\(\/\/\)$/{ s//\1/; q; }
12850 /^X\(\/\).*/{ s//\1/; q; }
12851 s/.*/./; q'`
12852 { if $as_mkdir_p; then
12853 mkdir -p "$ac_dir"
12854 else
12855 as_dir="$ac_dir"
12856 as_dirs=
12857 while test ! -d "$as_dir"; do
12858 as_dirs="$as_dir $as_dirs"
12859 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12860 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12861 X"$as_dir" : 'X\(//\)[^/]' \| \
12862 X"$as_dir" : 'X\(//\)$' \| \
12863 X"$as_dir" : 'X\(/\)' \| \
12864 . : '\(.\)' 2>/dev/null ||
12865 echo X"$as_dir" |
12866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12868 /^X\(\/\/\)$/{ s//\1/; q; }
12869 /^X\(\/\).*/{ s//\1/; q; }
12870 s/.*/./; q'`
12871 done
12872 test ! -n "$as_dirs" || mkdir $as_dirs
12873 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12874 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12875 { (exit 1); exit 1; }; }; }
12877 ac_builddir=.
12879 if test "$ac_dir" != .; then
12880 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12881 # A "../" for each directory in $ac_dir_suffix.
12882 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12883 else
12884 ac_dir_suffix= ac_top_builddir=
12887 case $srcdir in
12888 .) # No --srcdir option. We are building in place.
12889 ac_srcdir=.
12890 if test -z "$ac_top_builddir"; then
12891 ac_top_srcdir=.
12892 else
12893 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12894 fi ;;
12895 [\\/]* | ?:[\\/]* ) # Absolute path.
12896 ac_srcdir=$srcdir$ac_dir_suffix;
12897 ac_top_srcdir=$srcdir ;;
12898 *) # Relative path.
12899 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12900 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12901 esac
12903 # Do not use `cd foo && pwd` to compute absolute paths, because
12904 # the directories may not exist.
12905 case `pwd` in
12906 .) ac_abs_builddir="$ac_dir";;
12908 case "$ac_dir" in
12909 .) ac_abs_builddir=`pwd`;;
12910 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12911 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12912 esac;;
12913 esac
12914 case $ac_abs_builddir in
12915 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12917 case ${ac_top_builddir}. in
12918 .) ac_abs_top_builddir=$ac_abs_builddir;;
12919 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12920 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12921 esac;;
12922 esac
12923 case $ac_abs_builddir in
12924 .) ac_abs_srcdir=$ac_srcdir;;
12926 case $ac_srcdir in
12927 .) ac_abs_srcdir=$ac_abs_builddir;;
12928 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12929 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12930 esac;;
12931 esac
12932 case $ac_abs_builddir in
12933 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12935 case $ac_top_srcdir in
12936 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12937 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12938 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12939 esac;;
12940 esac
12943 case $INSTALL in
12944 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12945 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12946 esac
12948 if test x"$ac_file" != x-; then
12949 { echo "$as_me:$LINENO: creating $ac_file" >&5
12950 echo "$as_me: creating $ac_file" >&6;}
12951 rm -f "$ac_file"
12953 # Let's still pretend it is `configure' which instantiates (i.e., don't
12954 # use $as_me), people would be surprised to read:
12955 # /* config.h. Generated by config.status. */
12956 if test x"$ac_file" = x-; then
12957 configure_input=
12958 else
12959 configure_input="$ac_file. "
12961 configure_input=$configure_input"Generated from `echo $ac_file_in |
12962 sed 's,.*/,,'` by configure."
12964 # First look for the input files in the build tree, otherwise in the
12965 # src tree.
12966 ac_file_inputs=`IFS=:
12967 for f in $ac_file_in; do
12968 case $f in
12969 -) echo $tmp/stdin ;;
12970 [\\/$]*)
12971 # Absolute (can't be DOS-style, as IFS=:)
12972 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12973 echo "$as_me: error: cannot find input file: $f" >&2;}
12974 { (exit 1); exit 1; }; }
12975 echo "$f";;
12976 *) # Relative
12977 if test -f "$f"; then
12978 # Build tree
12979 echo "$f"
12980 elif test -f "$srcdir/$f"; then
12981 # Source tree
12982 echo "$srcdir/$f"
12983 else
12984 # /dev/null tree
12985 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12986 echo "$as_me: error: cannot find input file: $f" >&2;}
12987 { (exit 1); exit 1; }; }
12988 fi;;
12989 esac
12990 done` || { (exit 1); exit 1; }
12991 _ACEOF
12992 cat >>$CONFIG_STATUS <<_ACEOF
12993 sed "$ac_vpsub
12994 $extrasub
12995 _ACEOF
12996 cat >>$CONFIG_STATUS <<\_ACEOF
12998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12999 s,@configure_input@,$configure_input,;t t
13000 s,@srcdir@,$ac_srcdir,;t t
13001 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13002 s,@top_srcdir@,$ac_top_srcdir,;t t
13003 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13004 s,@builddir@,$ac_builddir,;t t
13005 s,@abs_builddir@,$ac_abs_builddir,;t t
13006 s,@top_builddir@,$ac_top_builddir,;t t
13007 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13008 s,@INSTALL@,$ac_INSTALL,;t t
13009 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13010 rm -f $tmp/stdin
13011 if test x"$ac_file" != x-; then
13012 mv $tmp/out $ac_file
13013 else
13014 cat $tmp/out
13015 rm -f $tmp/out
13018 done
13019 _ACEOF
13020 cat >>$CONFIG_STATUS <<\_ACEOF
13023 # CONFIG_HEADER section.
13026 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13027 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13029 # ac_d sets the value in "#define NAME VALUE" lines.
13030 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13031 ac_dB='[ ].*$,\1#\2'
13032 ac_dC=' '
13033 ac_dD=',;t'
13034 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13035 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13036 ac_uB='$,\1#\2define\3'
13037 ac_uC=' '
13038 ac_uD=',;t'
13040 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13042 case $ac_file in
13043 - | *:- | *:-:* ) # input from stdin
13044 cat >$tmp/stdin
13045 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13046 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13047 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13048 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13049 * ) ac_file_in=$ac_file.in ;;
13050 esac
13052 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13053 echo "$as_me: creating $ac_file" >&6;}
13055 # First look for the input files in the build tree, otherwise in the
13056 # src tree.
13057 ac_file_inputs=`IFS=:
13058 for f in $ac_file_in; do
13059 case $f in
13060 -) echo $tmp/stdin ;;
13061 [\\/$]*)
13062 # Absolute (can't be DOS-style, as IFS=:)
13063 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13064 echo "$as_me: error: cannot find input file: $f" >&2;}
13065 { (exit 1); exit 1; }; }
13066 # Do quote $f, to prevent DOS paths from being IFS'd.
13067 echo "$f";;
13068 *) # Relative
13069 if test -f "$f"; then
13070 # Build tree
13071 echo "$f"
13072 elif test -f "$srcdir/$f"; then
13073 # Source tree
13074 echo "$srcdir/$f"
13075 else
13076 # /dev/null tree
13077 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13078 echo "$as_me: error: cannot find input file: $f" >&2;}
13079 { (exit 1); exit 1; }; }
13080 fi;;
13081 esac
13082 done` || { (exit 1); exit 1; }
13083 # Remove the trailing spaces.
13084 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13086 _ACEOF
13088 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13089 # `conftest.undefs', that substitutes the proper values into
13090 # config.h.in to produce config.h. The first handles `#define'
13091 # templates, and the second `#undef' templates.
13092 # And first: Protect against being on the right side of a sed subst in
13093 # config.status. Protect against being in an unquoted here document
13094 # in config.status.
13095 rm -f conftest.defines conftest.undefs
13096 # Using a here document instead of a string reduces the quoting nightmare.
13097 # Putting comments in sed scripts is not portable.
13099 # `end' is used to avoid that the second main sed command (meant for
13100 # 0-ary CPP macros) applies to n-ary macro definitions.
13101 # See the Autoconf documentation for `clear'.
13102 cat >confdef2sed.sed <<\_ACEOF
13103 s/[\\&,]/\\&/g
13104 s,[\\$`],\\&,g
13105 t clear
13106 : clear
13107 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13108 t end
13109 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13110 : end
13111 _ACEOF
13112 # If some macros were called several times there might be several times
13113 # the same #defines, which is useless. Nevertheless, we may not want to
13114 # sort them, since we want the *last* AC-DEFINE to be honored.
13115 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13116 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13117 rm -f confdef2sed.sed
13119 # This sed command replaces #undef with comments. This is necessary, for
13120 # example, in the case of _POSIX_SOURCE, which is predefined and required
13121 # on some systems where configure will not decide to define it.
13122 cat >>conftest.undefs <<\_ACEOF
13123 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13124 _ACEOF
13126 # Break up conftest.defines because some shells have a limit on the size
13127 # of here documents, and old seds have small limits too (100 cmds).
13128 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13129 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13130 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13131 echo ' :' >>$CONFIG_STATUS
13132 rm -f conftest.tail
13133 while grep . conftest.defines >/dev/null
13135 # Write a limited-size here document to $tmp/defines.sed.
13136 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13137 # Speed up: don't consider the non `#define' lines.
13138 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13139 # Work around the forget-to-reset-the-flag bug.
13140 echo 't clr' >>$CONFIG_STATUS
13141 echo ': clr' >>$CONFIG_STATUS
13142 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13143 echo 'CEOF
13144 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13145 rm -f $tmp/in
13146 mv $tmp/out $tmp/in
13147 ' >>$CONFIG_STATUS
13148 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13149 rm -f conftest.defines
13150 mv conftest.tail conftest.defines
13151 done
13152 rm -f conftest.defines
13153 echo ' fi # grep' >>$CONFIG_STATUS
13154 echo >>$CONFIG_STATUS
13156 # Break up conftest.undefs because some shells have a limit on the size
13157 # of here documents, and old seds have small limits too (100 cmds).
13158 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13159 rm -f conftest.tail
13160 while grep . conftest.undefs >/dev/null
13162 # Write a limited-size here document to $tmp/undefs.sed.
13163 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13164 # Speed up: don't consider the non `#undef'
13165 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13166 # Work around the forget-to-reset-the-flag bug.
13167 echo 't clr' >>$CONFIG_STATUS
13168 echo ': clr' >>$CONFIG_STATUS
13169 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13170 echo 'CEOF
13171 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13172 rm -f $tmp/in
13173 mv $tmp/out $tmp/in
13174 ' >>$CONFIG_STATUS
13175 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13176 rm -f conftest.undefs
13177 mv conftest.tail conftest.undefs
13178 done
13179 rm -f conftest.undefs
13181 cat >>$CONFIG_STATUS <<\_ACEOF
13182 # Let's still pretend it is `configure' which instantiates (i.e., don't
13183 # use $as_me), people would be surprised to read:
13184 # /* config.h. Generated by config.status. */
13185 if test x"$ac_file" = x-; then
13186 echo "/* Generated by configure. */" >$tmp/config.h
13187 else
13188 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13190 cat $tmp/in >>$tmp/config.h
13191 rm -f $tmp/in
13192 if test x"$ac_file" != x-; then
13193 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13194 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13195 echo "$as_me: $ac_file is unchanged" >&6;}
13196 else
13197 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13198 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13199 X"$ac_file" : 'X\(//\)[^/]' \| \
13200 X"$ac_file" : 'X\(//\)$' \| \
13201 X"$ac_file" : 'X\(/\)' \| \
13202 . : '\(.\)' 2>/dev/null ||
13203 echo X"$ac_file" |
13204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13206 /^X\(\/\/\)$/{ s//\1/; q; }
13207 /^X\(\/\).*/{ s//\1/; q; }
13208 s/.*/./; q'`
13209 { if $as_mkdir_p; then
13210 mkdir -p "$ac_dir"
13211 else
13212 as_dir="$ac_dir"
13213 as_dirs=
13214 while test ! -d "$as_dir"; do
13215 as_dirs="$as_dir $as_dirs"
13216 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13217 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13218 X"$as_dir" : 'X\(//\)[^/]' \| \
13219 X"$as_dir" : 'X\(//\)$' \| \
13220 X"$as_dir" : 'X\(/\)' \| \
13221 . : '\(.\)' 2>/dev/null ||
13222 echo X"$as_dir" |
13223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13224 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13225 /^X\(\/\/\)$/{ s//\1/; q; }
13226 /^X\(\/\).*/{ s//\1/; q; }
13227 s/.*/./; q'`
13228 done
13229 test ! -n "$as_dirs" || mkdir $as_dirs
13230 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13231 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13232 { (exit 1); exit 1; }; }; }
13234 rm -f $ac_file
13235 mv $tmp/config.h $ac_file
13237 else
13238 cat $tmp/config.h
13239 rm -f $tmp/config.h
13241 # Compute $ac_file's index in $config_headers.
13242 _am_stamp_count=1
13243 for _am_header in $config_headers :; do
13244 case $_am_header in
13245 $ac_file | $ac_file:* )
13246 break ;;
13248 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13249 esac
13250 done
13251 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13252 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13253 X$ac_file : 'X\(//\)[^/]' \| \
13254 X$ac_file : 'X\(//\)$' \| \
13255 X$ac_file : 'X\(/\)' \| \
13256 . : '\(.\)' 2>/dev/null ||
13257 echo X$ac_file |
13258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13259 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13260 /^X\(\/\/\)$/{ s//\1/; q; }
13261 /^X\(\/\).*/{ s//\1/; q; }
13262 s/.*/./; q'`/stamp-h$_am_stamp_count
13263 done
13264 _ACEOF
13265 cat >>$CONFIG_STATUS <<\_ACEOF
13268 # CONFIG_COMMANDS section.
13270 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13271 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13272 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13273 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13274 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13275 X"$ac_dest" : 'X\(//\)[^/]' \| \
13276 X"$ac_dest" : 'X\(//\)$' \| \
13277 X"$ac_dest" : 'X\(/\)' \| \
13278 . : '\(.\)' 2>/dev/null ||
13279 echo X"$ac_dest" |
13280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13281 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13282 /^X\(\/\/\)$/{ s//\1/; q; }
13283 /^X\(\/\).*/{ s//\1/; q; }
13284 s/.*/./; q'`
13285 { if $as_mkdir_p; then
13286 mkdir -p "$ac_dir"
13287 else
13288 as_dir="$ac_dir"
13289 as_dirs=
13290 while test ! -d "$as_dir"; do
13291 as_dirs="$as_dir $as_dirs"
13292 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13293 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13294 X"$as_dir" : 'X\(//\)[^/]' \| \
13295 X"$as_dir" : 'X\(//\)$' \| \
13296 X"$as_dir" : 'X\(/\)' \| \
13297 . : '\(.\)' 2>/dev/null ||
13298 echo X"$as_dir" |
13299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13300 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13301 /^X\(\/\/\)$/{ s//\1/; q; }
13302 /^X\(\/\).*/{ s//\1/; q; }
13303 s/.*/./; q'`
13304 done
13305 test ! -n "$as_dirs" || mkdir $as_dirs
13306 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13307 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13308 { (exit 1); exit 1; }; }; }
13310 ac_builddir=.
13312 if test "$ac_dir" != .; then
13313 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13314 # A "../" for each directory in $ac_dir_suffix.
13315 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13316 else
13317 ac_dir_suffix= ac_top_builddir=
13320 case $srcdir in
13321 .) # No --srcdir option. We are building in place.
13322 ac_srcdir=.
13323 if test -z "$ac_top_builddir"; then
13324 ac_top_srcdir=.
13325 else
13326 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13327 fi ;;
13328 [\\/]* | ?:[\\/]* ) # Absolute path.
13329 ac_srcdir=$srcdir$ac_dir_suffix;
13330 ac_top_srcdir=$srcdir ;;
13331 *) # Relative path.
13332 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13333 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13334 esac
13336 # Do not use `cd foo && pwd` to compute absolute paths, because
13337 # the directories may not exist.
13338 case `pwd` in
13339 .) ac_abs_builddir="$ac_dir";;
13341 case "$ac_dir" in
13342 .) ac_abs_builddir=`pwd`;;
13343 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13344 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13345 esac;;
13346 esac
13347 case $ac_abs_builddir in
13348 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13350 case ${ac_top_builddir}. in
13351 .) ac_abs_top_builddir=$ac_abs_builddir;;
13352 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13353 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13354 esac;;
13355 esac
13356 case $ac_abs_builddir in
13357 .) ac_abs_srcdir=$ac_srcdir;;
13359 case $ac_srcdir in
13360 .) ac_abs_srcdir=$ac_abs_builddir;;
13361 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13362 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13363 esac;;
13364 esac
13365 case $ac_abs_builddir in
13366 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13368 case $ac_top_srcdir in
13369 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13370 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13371 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13372 esac;;
13373 esac
13376 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13377 echo "$as_me: executing $ac_dest commands" >&6;}
13378 case $ac_dest in
13379 default-1 )
13380 # Only add multilib support code if we just rebuilt the top-level
13381 # Makefile.
13382 case " $CONFIG_FILES " in
13383 *" Makefile "*)
13384 ac_file=Makefile . ${multi_basedir}/config-ml.in
13386 esac ;;
13387 esac
13388 done
13389 _ACEOF
13391 cat >>$CONFIG_STATUS <<\_ACEOF
13393 { (exit 0); exit 0; }
13394 _ACEOF
13395 chmod +x $CONFIG_STATUS
13396 ac_clean_files=$ac_clean_files_save
13399 # configure is writing to config.log, and then calls config.status.
13400 # config.status does its own redirection, appending to config.log.
13401 # Unfortunately, on DOS this fails, as config.log is still kept open
13402 # by configure, so config.status won't be able to write to it; its
13403 # output is simply discarded. So we exec the FD to /dev/null,
13404 # effectively closing config.log, so it can be properly (re)opened and
13405 # appended to by config.status. When coming back to configure, we
13406 # need to make the FD available again.
13407 if test "$no_create" != yes; then
13408 ac_cs_success=:
13409 ac_config_status_args=
13410 test "$silent" = yes &&
13411 ac_config_status_args="$ac_config_status_args --quiet"
13412 exec 5>/dev/null
13413 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13414 exec 5>>config.log
13415 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13416 # would make configure fail if this is the last instruction.
13417 $ac_cs_success || { (exit 1); exit 1; }