2004-12-02 Steven G. Kargl <kargls@comcast.net>
[official-gcc.git] / libgfortran / configure
blobb4027ae2742a51525de8bb85738a945b314b492b
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 gcc_version toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL enable_shared enable_static FC FCFLAGS LDFLAGS ac_ct_FC 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 # Process the option "--enable-version-specific-runtime-libs"
1966 gcc_version_trigger=${srcdir}/../gcc/version.c
1967 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
1968 gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
1971 # Calculate toolexeclibdir
1972 # Also toolexecdir, though it's only used in toolexeclibdir
1973 case ${version_specific_libs} in
1974 yes)
1975 # Need the gcc compiler version to know where to install libraries
1976 # and header files if --enable-version-specific-runtime-libs option
1977 # is selected.
1978 toolexecdir='$(libdir)/gcc/$(target_alias)'
1979 toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1982 if test -n "$with_cross_host" &&
1983 test x"$with_cross_host" != x"no"; then
1984 # Install a library built with a cross compiler in tooldir, not libdir.
1985 toolexecdir='$(exec_prefix)/$(target_alias)'
1986 toolexeclibdir='$(toolexecdir)/lib'
1987 else
1988 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1989 toolexeclibdir='$(libdir)'
1991 multi_os_directory=`$CC -print-multi-os-directory`
1992 case $multi_os_directory in
1993 .) ;; # Avoid trailing /.
1994 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1995 esac
1997 esac
2001 # Check the compiler.
2002 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2003 # We must force CC to /not/ be precious variables; otherwise
2004 # the wrong, non-multilib-adjusted value will be used in multilibs.
2005 # As a side effect, we have to subst CFLAGS ourselves.
2009 ac_ext=c
2010 ac_cpp='$CPP $CPPFLAGS'
2011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014 if test -n "$ac_tool_prefix"; then
2015 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2016 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2017 echo "$as_me:$LINENO: checking for $ac_word" >&5
2018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2019 if test "${ac_cv_prog_CC+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022 if test -n "$CC"; then
2023 ac_cv_prog_CC="$CC" # Let the user override the test.
2024 else
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
2030 for ac_exec_ext in '' $ac_executable_extensions; do
2031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2032 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 break 2
2036 done
2037 done
2041 CC=$ac_cv_prog_CC
2042 if test -n "$CC"; then
2043 echo "$as_me:$LINENO: result: $CC" >&5
2044 echo "${ECHO_T}$CC" >&6
2045 else
2046 echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6
2051 if test -z "$ac_cv_prog_CC"; then
2052 ac_ct_CC=$CC
2053 # Extract the first word of "gcc", so it can be a program name with args.
2054 set dummy gcc; ac_word=$2
2055 echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2057 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060 if test -n "$ac_ct_CC"; then
2061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2062 else
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 for as_dir in $PATH
2066 IFS=$as_save_IFS
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2070 ac_cv_prog_ac_ct_CC="gcc"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 break 2
2074 done
2075 done
2079 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2080 if test -n "$ac_ct_CC"; then
2081 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2082 echo "${ECHO_T}$ac_ct_CC" >&6
2083 else
2084 echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6
2088 CC=$ac_ct_CC
2089 else
2090 CC="$ac_cv_prog_CC"
2093 if test -z "$CC"; then
2094 if test -n "$ac_tool_prefix"; then
2095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2096 set dummy ${ac_tool_prefix}cc; ac_word=$2
2097 echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2099 if test "${ac_cv_prog_CC+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102 if test -n "$CC"; then
2103 ac_cv_prog_CC="$CC" # Let the user override the test.
2104 else
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2108 IFS=$as_save_IFS
2109 test -z "$as_dir" && as_dir=.
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2112 ac_cv_prog_CC="${ac_tool_prefix}cc"
2113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114 break 2
2116 done
2117 done
2121 CC=$ac_cv_prog_CC
2122 if test -n "$CC"; then
2123 echo "$as_me:$LINENO: result: $CC" >&5
2124 echo "${ECHO_T}$CC" >&6
2125 else
2126 echo "$as_me:$LINENO: result: no" >&5
2127 echo "${ECHO_T}no" >&6
2131 if test -z "$ac_cv_prog_CC"; then
2132 ac_ct_CC=$CC
2133 # Extract the first word of "cc", so it can be a program name with args.
2134 set dummy cc; ac_word=$2
2135 echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140 if test -n "$ac_ct_CC"; then
2141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2142 else
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150 ac_cv_prog_ac_ct_CC="cc"
2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152 break 2
2154 done
2155 done
2159 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2160 if test -n "$ac_ct_CC"; then
2161 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2162 echo "${ECHO_T}$ac_ct_CC" >&6
2163 else
2164 echo "$as_me:$LINENO: result: no" >&5
2165 echo "${ECHO_T}no" >&6
2168 CC=$ac_ct_CC
2169 else
2170 CC="$ac_cv_prog_CC"
2174 if test -z "$CC"; then
2175 # Extract the first word of "cc", so it can be a program name with args.
2176 set dummy cc; ac_word=$2
2177 echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2179 if test "${ac_cv_prog_CC+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182 if test -n "$CC"; then
2183 ac_cv_prog_CC="$CC" # Let the user override the test.
2184 else
2185 ac_prog_rejected=no
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2194 ac_prog_rejected=yes
2195 continue
2197 ac_cv_prog_CC="cc"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 break 2
2201 done
2202 done
2204 if test $ac_prog_rejected = yes; then
2205 # We found a bogon in the path, so make sure we never use it.
2206 set dummy $ac_cv_prog_CC
2207 shift
2208 if test $# != 0; then
2209 # We chose a different compiler from the bogus one.
2210 # However, it has the same basename, so the bogon will be chosen
2211 # first if we set CC to just the basename; use the full file name.
2212 shift
2213 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2218 CC=$ac_cv_prog_CC
2219 if test -n "$CC"; then
2220 echo "$as_me:$LINENO: result: $CC" >&5
2221 echo "${ECHO_T}$CC" >&6
2222 else
2223 echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2228 if test -z "$CC"; then
2229 if test -n "$ac_tool_prefix"; then
2230 for ac_prog in cl
2232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2233 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2234 echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2236 if test "${ac_cv_prog_CC+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239 if test -n "$CC"; then
2240 ac_cv_prog_CC="$CC" # Let the user override the test.
2241 else
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 for as_dir in $PATH
2245 IFS=$as_save_IFS
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2249 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251 break 2
2253 done
2254 done
2258 CC=$ac_cv_prog_CC
2259 if test -n "$CC"; then
2260 echo "$as_me:$LINENO: result: $CC" >&5
2261 echo "${ECHO_T}$CC" >&6
2262 else
2263 echo "$as_me:$LINENO: result: no" >&5
2264 echo "${ECHO_T}no" >&6
2267 test -n "$CC" && break
2268 done
2270 if test -z "$CC"; then
2271 ac_ct_CC=$CC
2272 for ac_prog in cl
2274 # Extract the first word of "$ac_prog", so it can be a program name with args.
2275 set dummy $ac_prog; ac_word=$2
2276 echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2278 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281 if test -n "$ac_ct_CC"; then
2282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2283 else
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2291 ac_cv_prog_ac_ct_CC="$ac_prog"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
2295 done
2296 done
2300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2301 if test -n "$ac_ct_CC"; then
2302 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2303 echo "${ECHO_T}$ac_ct_CC" >&6
2304 else
2305 echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6
2309 test -n "$ac_ct_CC" && break
2310 done
2312 CC=$ac_ct_CC
2318 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2319 See \`config.log' for more details." >&5
2320 echo "$as_me: error: no acceptable C compiler found in \$PATH
2321 See \`config.log' for more details." >&2;}
2322 { (exit 1); exit 1; }; }
2324 # Provide some information about the compiler.
2325 echo "$as_me:$LINENO:" \
2326 "checking for C compiler version" >&5
2327 ac_compiler=`set X $ac_compile; echo $2`
2328 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2329 (eval $ac_compiler --version </dev/null >&5) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }
2333 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2334 (eval $ac_compiler -v </dev/null >&5) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }
2338 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2339 (eval $ac_compiler -V </dev/null >&5) 2>&5
2340 ac_status=$?
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }
2344 cat >conftest.$ac_ext <<_ACEOF
2345 /* confdefs.h. */
2346 _ACEOF
2347 cat confdefs.h >>conftest.$ac_ext
2348 cat >>conftest.$ac_ext <<_ACEOF
2349 /* end confdefs.h. */
2352 main ()
2356 return 0;
2358 _ACEOF
2359 # FIXME: Cleanup?
2360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2361 (eval $ac_link) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; then
2365 gcc_no_link=no
2366 else
2367 gcc_no_link=yes
2370 if test x$gcc_no_link = xyes; then
2371 # Setting cross_compile will disable run tests; it will
2372 # also disable AC_CHECK_FILE but that's generally
2373 # correct if we can't link.
2374 cross_compiling=yes
2375 EXEEXT=
2376 else
2377 cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h. */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2385 main ()
2389 return 0;
2391 _ACEOF
2392 ac_clean_files_save=$ac_clean_files
2393 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2394 # Try to create an executable without -o first, disregard a.out.
2395 # It will help us diagnose broken compilers, and finding out an intuition
2396 # of exeext.
2397 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2398 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2399 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2400 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2401 (eval $ac_link_default) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; then
2405 # Find the output, starting from the most likely. This scheme is
2406 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2407 # resort.
2409 # Be careful to initialize this variable, since it used to be cached.
2410 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2411 ac_cv_exeext=
2412 # b.out is created by i960 compilers.
2413 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2415 test -f "$ac_file" || continue
2416 case $ac_file in
2417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2419 conftest.$ac_ext )
2420 # This is the source file.
2422 [ab].out )
2423 # We found the default executable, but exeext='' is most
2424 # certainly right.
2425 break;;
2426 *.* )
2427 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2428 # FIXME: I believe we export ac_cv_exeext for Libtool,
2429 # but it would be cool to find out if it's true. Does anybody
2430 # maintain Libtool? --akim.
2431 export ac_cv_exeext
2432 break;;
2434 break;;
2435 esac
2436 done
2437 else
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2441 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2442 See \`config.log' for more details." >&5
2443 echo "$as_me: error: C compiler cannot create executables
2444 See \`config.log' for more details." >&2;}
2445 { (exit 77); exit 77; }; }
2448 ac_exeext=$ac_cv_exeext
2449 echo "$as_me:$LINENO: result: $ac_file" >&5
2450 echo "${ECHO_T}$ac_file" >&6
2452 # Check the compiler produces executables we can run. If not, either
2453 # the compiler is broken, or we cross compile.
2454 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2455 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2456 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2457 # If not cross compiling, check that we can run a simple program.
2458 if test "$cross_compiling" != yes; then
2459 if { ac_try='./$ac_file'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 cross_compiling=no
2466 else
2467 if test "$cross_compiling" = maybe; then
2468 cross_compiling=yes
2469 else
2470 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2471 If you meant to cross compile, use \`--host'.
2472 See \`config.log' for more details." >&5
2473 echo "$as_me: error: cannot run C compiled programs.
2474 If you meant to cross compile, use \`--host'.
2475 See \`config.log' for more details." >&2;}
2476 { (exit 1); exit 1; }; }
2480 echo "$as_me:$LINENO: result: yes" >&5
2481 echo "${ECHO_T}yes" >&6
2483 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2484 ac_clean_files=$ac_clean_files_save
2485 # Check the compiler produces executables we can run. If not, either
2486 # the compiler is broken, or we cross compile.
2487 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2488 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2489 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2490 echo "${ECHO_T}$cross_compiling" >&6
2492 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2493 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2495 (eval $ac_link) 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; then
2499 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2500 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2501 # work properly (i.e., refer to `conftest.exe'), while it won't with
2502 # `rm'.
2503 for ac_file in conftest.exe conftest conftest.*; do
2504 test -f "$ac_file" || continue
2505 case $ac_file in
2506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2507 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2508 export ac_cv_exeext
2509 break;;
2510 * ) break;;
2511 esac
2512 done
2513 else
2514 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2515 See \`config.log' for more details." >&5
2516 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2517 See \`config.log' for more details." >&2;}
2518 { (exit 1); exit 1; }; }
2521 rm -f conftest$ac_cv_exeext
2522 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2523 echo "${ECHO_T}$ac_cv_exeext" >&6
2525 rm -f conftest.$ac_ext
2526 EXEEXT=$ac_cv_exeext
2527 ac_exeext=$EXEEXT
2529 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2530 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2531 if test "${ac_cv_objext+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534 cat >conftest.$ac_ext <<_ACEOF
2535 /* confdefs.h. */
2536 _ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2542 main ()
2546 return 0;
2548 _ACEOF
2549 rm -f conftest.o conftest.obj
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; then
2555 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2556 case $ac_file in
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2558 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2559 break;;
2560 esac
2561 done
2562 else
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2566 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }
2573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2575 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2576 echo "${ECHO_T}$ac_cv_objext" >&6
2577 OBJEXT=$ac_cv_objext
2578 ac_objext=$OBJEXT
2579 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2580 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2581 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584 cat >conftest.$ac_ext <<_ACEOF
2585 /* confdefs.h. */
2586 _ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2592 main ()
2594 #ifndef __GNUC__
2595 choke me
2596 #endif
2599 return 0;
2601 _ACEOF
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2605 ac_status=$?
2606 grep -v '^ *+' conftest.er1 >conftest.err
2607 rm -f conftest.er1
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2623 ac_compiler_gnu=yes
2624 else
2625 echo "$as_me: failed program was:" >&5
2626 sed 's/^/| /' conftest.$ac_ext >&5
2628 ac_compiler_gnu=no
2630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2631 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2634 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2635 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2636 GCC=`test $ac_compiler_gnu = yes && echo yes`
2637 ac_test_CFLAGS=${CFLAGS+set}
2638 ac_save_CFLAGS=$CFLAGS
2639 CFLAGS="-g"
2640 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2641 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2642 if test "${ac_cv_prog_cc_g+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645 cat >conftest.$ac_ext <<_ACEOF
2646 /* confdefs.h. */
2647 _ACEOF
2648 cat confdefs.h >>conftest.$ac_ext
2649 cat >>conftest.$ac_ext <<_ACEOF
2650 /* end confdefs.h. */
2653 main ()
2657 return 0;
2659 _ACEOF
2660 rm -f conftest.$ac_objext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662 (eval $ac_compile) 2>conftest.er1
2663 ac_status=$?
2664 grep -v '^ *+' conftest.er1 >conftest.err
2665 rm -f conftest.er1
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 (eval $ac_try) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; } &&
2675 { ac_try='test -s conftest.$ac_objext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 (eval $ac_try) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2681 ac_cv_prog_cc_g=yes
2682 else
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2686 ac_cv_prog_cc_g=no
2688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2690 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2691 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2692 if test "$ac_test_CFLAGS" = set; then
2693 CFLAGS=$ac_save_CFLAGS
2694 elif test $ac_cv_prog_cc_g = yes; then
2695 if test "$GCC" = yes; then
2696 CFLAGS="-g -O2"
2697 else
2698 CFLAGS="-g"
2700 else
2701 if test "$GCC" = yes; then
2702 CFLAGS="-O2"
2703 else
2704 CFLAGS=
2707 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2708 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2709 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712 ac_cv_prog_cc_stdc=no
2713 ac_save_CC=$CC
2714 cat >conftest.$ac_ext <<_ACEOF
2715 /* confdefs.h. */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h. */
2720 #include <stdarg.h>
2721 #include <stdio.h>
2722 #include <sys/types.h>
2723 #include <sys/stat.h>
2724 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2725 struct buf { int x; };
2726 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2727 static char *e (p, i)
2728 char **p;
2729 int i;
2731 return p[i];
2733 static char *f (char * (*g) (char **, int), char **p, ...)
2735 char *s;
2736 va_list v;
2737 va_start (v,p);
2738 s = g (p, va_arg (v,int));
2739 va_end (v);
2740 return s;
2743 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2744 function prototypes and stuff, but not '\xHH' hex character constants.
2745 These don't provoke an error unfortunately, instead are silently treated
2746 as 'x'. The following induces an error, until -std1 is added to get
2747 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2748 array size at least. It's necessary to write '\x00'==0 to get something
2749 that's true only with -std1. */
2750 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2752 int test (int i, double x);
2753 struct s1 {int (*f) (int a);};
2754 struct s2 {int (*f) (double a);};
2755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2756 int argc;
2757 char **argv;
2759 main ()
2761 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2763 return 0;
2765 _ACEOF
2766 # Don't try gcc -ansi; that turns off useful extensions and
2767 # breaks some systems' header files.
2768 # AIX -qlanglvl=ansi
2769 # Ultrix and OSF/1 -std1
2770 # HP-UX 10.20 and later -Ae
2771 # HP-UX older versions -Aa -D_HPUX_SOURCE
2772 # SVR4 -Xc -D__EXTENSIONS__
2773 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2775 CC="$ac_save_CC $ac_arg"
2776 rm -f conftest.$ac_objext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778 (eval $ac_compile) 2>conftest.er1
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; } &&
2791 { ac_try='test -s conftest.$ac_objext'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 ac_cv_prog_cc_stdc=$ac_arg
2798 break
2799 else
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2804 rm -f conftest.err conftest.$ac_objext
2805 done
2806 rm -f conftest.$ac_ext conftest.$ac_objext
2807 CC=$ac_save_CC
2811 case "x$ac_cv_prog_cc_stdc" in
2812 x|xno)
2813 echo "$as_me:$LINENO: result: none needed" >&5
2814 echo "${ECHO_T}none needed" >&6 ;;
2816 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2817 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2818 CC="$CC $ac_cv_prog_cc_stdc" ;;
2819 esac
2821 # Some people use a C++ compiler to compile C. Since we use `exit',
2822 # in C++ we need to declare it. In case someone uses the same compiler
2823 # for both compiling C and C++ we need to have the C++ compiler decide
2824 # the declaration of exit, since it's the most demanding environment.
2825 cat >conftest.$ac_ext <<_ACEOF
2826 #ifndef __cplusplus
2827 choke me
2828 #endif
2829 _ACEOF
2830 rm -f conftest.$ac_objext
2831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2832 (eval $ac_compile) 2>conftest.er1
2833 ac_status=$?
2834 grep -v '^ *+' conftest.er1 >conftest.err
2835 rm -f conftest.er1
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } &&
2839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 (eval $ac_try) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; } &&
2845 { ac_try='test -s conftest.$ac_objext'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 for ac_declaration in \
2852 '' \
2853 'extern "C" void std::exit (int) throw (); using std::exit;' \
2854 'extern "C" void std::exit (int); using std::exit;' \
2855 'extern "C" void exit (int) throw ();' \
2856 'extern "C" void exit (int);' \
2857 'void exit (int);'
2859 cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h. */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
2865 $ac_declaration
2866 #include <stdlib.h>
2868 main ()
2870 exit (42);
2872 return 0;
2874 _ACEOF
2875 rm -f conftest.$ac_objext
2876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877 (eval $ac_compile) 2>conftest.er1
2878 ac_status=$?
2879 grep -v '^ *+' conftest.er1 >conftest.err
2880 rm -f conftest.er1
2881 cat conftest.err >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } &&
2884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; } &&
2890 { ac_try='test -s conftest.$ac_objext'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 (eval $ac_try) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2897 else
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2901 continue
2903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904 cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h. */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2910 $ac_declaration
2912 main ()
2914 exit (42);
2916 return 0;
2918 _ACEOF
2919 rm -f conftest.$ac_objext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2921 (eval $ac_compile) 2>conftest.er1
2922 ac_status=$?
2923 grep -v '^ *+' conftest.er1 >conftest.err
2924 rm -f conftest.er1
2925 cat conftest.err >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } &&
2928 { ac_try='test -z "$ac_c_werror_flag" || 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
2971 # Add -Wall if we are using GCC.
2972 if test "x$GCC" = "xyes"; then
2973 CFLAGS="$CFLAGS -Wall"
2976 # Find other programs we need.
2977 if test -n "$ac_tool_prefix"; then
2978 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2979 set dummy ${ac_tool_prefix}as; ac_word=$2
2980 echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982 if test "${ac_cv_prog_AS+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985 if test -n "$AS"; then
2986 ac_cv_prog_AS="$AS" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_AS="${ac_tool_prefix}as"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2999 done
3000 done
3004 AS=$ac_cv_prog_AS
3005 if test -n "$AS"; then
3006 echo "$as_me:$LINENO: result: $AS" >&5
3007 echo "${ECHO_T}$AS" >&6
3008 else
3009 echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3014 if test -z "$ac_cv_prog_AS"; then
3015 ac_ct_AS=$AS
3016 # Extract the first word of "as", so it can be a program name with args.
3017 set dummy as; ac_word=$2
3018 echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3020 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023 if test -n "$ac_ct_AS"; then
3024 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033 ac_cv_prog_ac_ct_AS="as"
3034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3037 done
3038 done
3042 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3043 if test -n "$ac_ct_AS"; then
3044 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3045 echo "${ECHO_T}$ac_ct_AS" >&6
3046 else
3047 echo "$as_me:$LINENO: result: no" >&5
3048 echo "${ECHO_T}no" >&6
3051 AS=$ac_ct_AS
3052 else
3053 AS="$ac_cv_prog_AS"
3056 if test -n "$ac_tool_prefix"; then
3057 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3058 set dummy ${ac_tool_prefix}ar; ac_word=$2
3059 echo "$as_me:$LINENO: checking for $ac_word" >&5
3060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061 if test "${ac_cv_prog_AR+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 else
3064 if test -n "$AR"; then
3065 ac_cv_prog_AR="$AR" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_AR="${ac_tool_prefix}ar"
3075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3078 done
3079 done
3083 AR=$ac_cv_prog_AR
3084 if test -n "$AR"; then
3085 echo "$as_me:$LINENO: result: $AR" >&5
3086 echo "${ECHO_T}$AR" >&6
3087 else
3088 echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6
3093 if test -z "$ac_cv_prog_AR"; then
3094 ac_ct_AR=$AR
3095 # Extract the first word of "ar", so it can be a program name with args.
3096 set dummy ar; ac_word=$2
3097 echo "$as_me:$LINENO: checking for $ac_word" >&5
3098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3099 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102 if test -n "$ac_ct_AR"; then
3103 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112 ac_cv_prog_ac_ct_AR="ar"
3113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3116 done
3117 done
3121 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3122 if test -n "$ac_ct_AR"; then
3123 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3124 echo "${ECHO_T}$ac_ct_AR" >&6
3125 else
3126 echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6
3130 AR=$ac_ct_AR
3131 else
3132 AR="$ac_cv_prog_AR"
3135 if test -n "$ac_tool_prefix"; then
3136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3138 echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3140 if test "${ac_cv_prog_RANLIB+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143 if test -n "$RANLIB"; then
3144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3153 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 break 2
3157 done
3158 done
3162 RANLIB=$ac_cv_prog_RANLIB
3163 if test -n "$RANLIB"; then
3164 echo "$as_me:$LINENO: result: $RANLIB" >&5
3165 echo "${ECHO_T}$RANLIB" >&6
3166 else
3167 echo "$as_me:$LINENO: result: no" >&5
3168 echo "${ECHO_T}no" >&6
3172 if test -z "$ac_cv_prog_RANLIB"; then
3173 ac_ct_RANLIB=$RANLIB
3174 # Extract the first word of "ranlib", so it can be a program name with args.
3175 set dummy ranlib; ac_word=$2
3176 echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3178 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181 if test -n "$ac_ct_RANLIB"; then
3182 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_ac_ct_RANLIB="ranlib"
3192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3195 done
3196 done
3198 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3201 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3202 if test -n "$ac_ct_RANLIB"; then
3203 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3204 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3205 else
3206 echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6
3210 RANLIB=$ac_ct_RANLIB
3211 else
3212 RANLIB="$ac_cv_prog_RANLIB"
3215 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3216 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3217 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3218 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221 cat >conftest.make <<\_ACEOF
3222 all:
3223 @echo 'ac_maketemp="$(MAKE)"'
3224 _ACEOF
3225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3226 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3227 if test -n "$ac_maketemp"; then
3228 eval ac_cv_prog_make_${ac_make}_set=yes
3229 else
3230 eval ac_cv_prog_make_${ac_make}_set=no
3232 rm -f conftest.make
3234 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3235 echo "$as_me:$LINENO: result: yes" >&5
3236 echo "${ECHO_T}yes" >&6
3237 SET_MAKE=
3238 else
3239 echo "$as_me:$LINENO: result: no" >&5
3240 echo "${ECHO_T}no" >&6
3241 SET_MAKE="MAKE=${MAKE-make}"
3244 # Find a good install program. We prefer a C program (faster),
3245 # so one script is as good as another. But avoid the broken or
3246 # incompatible versions:
3247 # SysV /etc/install, /usr/sbin/install
3248 # SunOS /usr/etc/install
3249 # IRIX /sbin/install
3250 # AIX /bin/install
3251 # AmigaOS /C/install, which installs bootblocks on floppy discs
3252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3255 # OS/2's system install, which has a completely different semantic
3256 # ./install, which can be erroneously created by make from ./install.sh.
3257 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3258 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3259 if test -z "$INSTALL"; then
3260 if test "${ac_cv_path_install+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 # Account for people who put trailing slashes in PATH elements.
3269 case $as_dir/ in
3270 ./ | .// | /cC/* | \
3271 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3272 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3273 /usr/ucb/* ) ;;
3275 # OSF1 and SCO ODT 3.0 have their own names for install.
3276 # Don't use installbsd from OSF since it installs stuff as root
3277 # by default.
3278 for ac_prog in ginstall scoinst install; do
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3281 if test $ac_prog = install &&
3282 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3283 # AIX install. It has an incompatible calling convention.
3285 elif test $ac_prog = install &&
3286 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3287 # program-specific install script used by HP pwplus--don't use.
3289 else
3290 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3291 break 3
3294 done
3295 done
3297 esac
3298 done
3302 if test "${ac_cv_path_install+set}" = set; then
3303 INSTALL=$ac_cv_path_install
3304 else
3305 # As a last resort, use the slow shell script. We don't cache a
3306 # path for INSTALL within a source directory, because that will
3307 # break other packages using the cache if that directory is
3308 # removed, or if the path is relative.
3309 INSTALL=$ac_install_sh
3312 echo "$as_me:$LINENO: result: $INSTALL" >&5
3313 echo "${ECHO_T}$INSTALL" >&6
3315 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3316 # It thinks the first close brace ends the variable substitution.
3317 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3319 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3321 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3324 # Configure libtool
3325 #AC_MSG_NOTICE([====== Starting libtool configuration])
3327 # Check whether --enable-shared or --disable-shared was given.
3328 if test "${enable_shared+set}" = set; then
3329 enableval="$enable_shared"
3330 p=${PACKAGE-default}
3331 case $enableval in
3332 yes) enable_shared=yes ;;
3333 no) enable_shared=no ;;
3335 enable_shared=no
3336 # Look at the argument we got. We use all the common list separators.
3337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3338 for pkg in $enableval; do
3339 if test "X$pkg" = "X$p"; then
3340 enable_shared=yes
3342 done
3343 IFS="$ac_save_ifs"
3345 esac
3346 else
3347 enable_shared=yes
3349 # Check whether --enable-static or --disable-static was given.
3350 if test "${enable_static+set}" = set; then
3351 enableval="$enable_static"
3352 p=${PACKAGE-default}
3353 case $enableval in
3354 yes) enable_static=yes ;;
3355 no) enable_static=no ;;
3357 enable_static=no
3358 # Look at the argument we got. We use all the common list separators.
3359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3360 for pkg in $enableval; do
3361 if test "X$pkg" = "X$p"; then
3362 enable_static=yes
3364 done
3365 IFS="$ac_save_ifs"
3367 esac
3368 else
3369 enable_static=yes
3371 # Check whether --enable-fast-install or --disable-fast-install was given.
3372 if test "${enable_fast_install+set}" = set; then
3373 enableval="$enable_fast_install"
3374 p=${PACKAGE-default}
3375 case $enableval in
3376 yes) enable_fast_install=yes ;;
3377 no) enable_fast_install=no ;;
3379 enable_fast_install=no
3380 # Look at the argument we got. We use all the common list separators.
3381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3382 for pkg in $enableval; do
3383 if test "X$pkg" = "X$p"; then
3384 enable_fast_install=yes
3386 done
3387 IFS="$ac_save_ifs"
3389 esac
3390 else
3391 enable_fast_install=yes
3394 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3395 if test "${with_gnu_ld+set}" = set; then
3396 withval="$with_gnu_ld"
3397 test "$withval" = no || with_gnu_ld=yes
3398 else
3399 with_gnu_ld=no
3401 ac_prog=ld
3402 if test "$GCC" = yes; then
3403 # Check if gcc -print-prog-name=ld gives a path.
3404 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3405 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3406 case $host in
3407 *-*-mingw*)
3408 # gcc leaves a trailing carriage return which upsets mingw
3409 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3411 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3412 esac
3413 case $ac_prog in
3414 # Accept absolute paths.
3415 [\\/]* | [A-Za-z]:[\\/]*)
3416 re_direlt='/[^/][^/]*/\.\./'
3417 # Canonicalize the path of ld
3418 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3419 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3420 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3421 done
3422 test -z "$LD" && LD="$ac_prog"
3425 # If it fails, then pretend we aren't using GCC.
3426 ac_prog=ld
3429 # If it is relative, then search for the first ld in PATH.
3430 with_gnu_ld=unknown
3432 esac
3433 elif test "$with_gnu_ld" = yes; then
3434 echo "$as_me:$LINENO: checking for GNU ld" >&5
3435 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3436 else
3437 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3438 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3440 if test "${lt_cv_path_LD+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443 if test -z "$LD"; then
3444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3445 for ac_dir in $PATH; do
3446 test -z "$ac_dir" && ac_dir=.
3447 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3448 lt_cv_path_LD="$ac_dir/$ac_prog"
3449 # Check to see if the program is GNU ld. I'd rather use --version,
3450 # but apparently some GNU ld's only accept -v.
3451 # Break only if it was the GNU/non-GNU ld that we prefer.
3452 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3453 test "$with_gnu_ld" != no && break
3454 else
3455 test "$with_gnu_ld" != yes && break
3458 done
3459 IFS="$ac_save_ifs"
3460 else
3461 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3465 LD="$lt_cv_path_LD"
3466 if test -n "$LD"; then
3467 echo "$as_me:$LINENO: result: $LD" >&5
3468 echo "${ECHO_T}$LD" >&6
3469 else
3470 echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6
3473 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3474 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3475 { (exit 1); exit 1; }; }
3476 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3477 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3478 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3482 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3483 lt_cv_prog_gnu_ld=yes
3484 else
3485 lt_cv_prog_gnu_ld=no
3488 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3489 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3490 with_gnu_ld=$lt_cv_prog_gnu_ld
3493 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3494 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3495 if test "${lt_cv_ld_reload_flag+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498 lt_cv_ld_reload_flag='-r'
3500 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3501 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3502 reload_flag=$lt_cv_ld_reload_flag
3503 test -n "$reload_flag" && reload_flag=" $reload_flag"
3505 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3506 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3507 if test "${lt_cv_path_NM+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510 if test -n "$NM"; then
3511 # Let the user override the test.
3512 lt_cv_path_NM="$NM"
3513 else
3514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3515 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3516 test -z "$ac_dir" && ac_dir=.
3517 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3518 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3519 # Check to see if the nm accepts a BSD-compat flag.
3520 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3521 # nm: unknown option "B" ignored
3522 # Tru64's nm complains that /dev/null is an invalid object file
3523 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3524 lt_cv_path_NM="$tmp_nm -B"
3525 break
3526 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3527 lt_cv_path_NM="$tmp_nm -p"
3528 break
3529 else
3530 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3531 continue # so that we can try to find one that supports BSD flags
3534 done
3535 IFS="$ac_save_ifs"
3536 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3540 NM="$lt_cv_path_NM"
3541 echo "$as_me:$LINENO: result: $NM" >&5
3542 echo "${ECHO_T}$NM" >&6
3544 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3545 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3546 LN_S=$as_ln_s
3547 if test "$LN_S" = "ln -s"; then
3548 echo "$as_me:$LINENO: result: yes" >&5
3549 echo "${ECHO_T}yes" >&6
3550 else
3551 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3552 echo "${ECHO_T}no, using $LN_S" >&6
3555 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3556 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3557 if test "${lt_cv_deplibs_check_method+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 lt_cv_file_magic_cmd='$MAGIC_CMD'
3561 lt_cv_file_magic_test_file=
3562 lt_cv_deplibs_check_method='unknown'
3563 # Need to set the preceding variable on all platforms that support
3564 # interlibrary dependencies.
3565 # 'none' -- dependencies not supported.
3566 # `unknown' -- same as none, but documents that we really don't know.
3567 # 'pass_all' -- all dependencies passed with no checks.
3568 # 'test_compile' -- check by making test program.
3569 # 'file_magic [regex]' -- check by looking for files in library path
3570 # which responds to the $file_magic_cmd with a given egrep regex.
3571 # If you have `file' or equivalent on your system and you're not sure
3572 # whether `pass_all' will *always* work, you probably want this one.
3574 case $host_os in
3575 aix*)
3576 lt_cv_deplibs_check_method=pass_all
3579 beos*)
3580 lt_cv_deplibs_check_method=pass_all
3583 bsdi4*)
3584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3585 lt_cv_file_magic_cmd='/usr/bin/file -L'
3586 lt_cv_file_magic_test_file=/shlib/libc.so
3589 cygwin* | mingw* |pw32*)
3590 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3591 lt_cv_file_magic_cmd='$OBJDUMP -f'
3594 darwin* | rhapsody*)
3595 # this will be overwritten by pass_all, but leave it in just in case
3596 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3597 lt_cv_file_magic_cmd='/usr/bin/file -L'
3598 case "$host_os" in
3599 rhapsody* | darwin1.012)
3600 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3602 *) # Darwin 1.3 on
3603 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3605 esac
3606 lt_cv_deplibs_check_method=pass_all
3609 freebsd* | kfreebsd*-gnu)
3610 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3611 case $host_cpu in
3612 i*86 )
3613 # Not sure whether the presence of OpenBSD here was a mistake.
3614 # Let's accept both of them until this is cleared up.
3615 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3616 lt_cv_file_magic_cmd=/usr/bin/file
3617 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3619 esac
3620 else
3621 lt_cv_deplibs_check_method=pass_all
3625 gnu*)
3626 lt_cv_deplibs_check_method=pass_all
3629 hpux10.20*|hpux11*)
3630 case $host_cpu in
3631 hppa*)
3632 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3633 lt_cv_file_magic_cmd=/usr/bin/file
3634 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3636 ia64*)
3637 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3638 lt_cv_file_magic_cmd=/usr/bin/file
3639 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3641 esac
3644 irix5* | irix6*)
3645 case $host_os in
3646 irix5*)
3647 # this will be overridden with pass_all, but let us keep it just in case
3648 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3651 case $LD in
3652 *-32|*"-32 ") libmagic=32-bit;;
3653 *-n32|*"-n32 ") libmagic=N32;;
3654 *-64|*"-64 ") libmagic=64-bit;;
3655 *) libmagic=never-match;;
3656 esac
3657 # this will be overridden with pass_all, but let us keep it just in case
3658 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3660 esac
3661 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3662 lt_cv_deplibs_check_method=pass_all
3665 # This must be Linux ELF.
3666 linux-gnu*)
3667 lt_cv_deplibs_check_method=pass_all
3670 netbsd* | knetbsd*-gnu)
3671 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3672 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3673 else
3674 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3678 newsos6)
3679 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3680 lt_cv_file_magic_cmd=/usr/bin/file
3681 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3684 osf3* | osf4* | osf5*)
3685 # this will be overridden with pass_all, but let us keep it just in case
3686 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3687 lt_cv_file_magic_test_file=/shlib/libc.so
3688 lt_cv_deplibs_check_method=pass_all
3691 sco3.2v5*)
3692 lt_cv_deplibs_check_method=pass_all
3695 solaris*)
3696 lt_cv_deplibs_check_method=pass_all
3697 lt_cv_file_magic_test_file=/lib/libc.so
3700 sysv5uw[78]* | sysv4*uw2*)
3701 lt_cv_deplibs_check_method=pass_all
3704 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3705 case $host_vendor in
3706 ncr)
3707 lt_cv_deplibs_check_method=pass_all
3709 motorola)
3710 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]'
3711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3713 esac
3715 esac
3718 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3719 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3720 file_magic_cmd=$lt_cv_file_magic_cmd
3721 deplibs_check_method=$lt_cv_deplibs_check_method
3727 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3729 # Only perform the check for file, if the check method requires it
3730 case $deplibs_check_method in
3731 file_magic*)
3732 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3733 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3734 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3735 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738 case $MAGIC_CMD in
3740 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3742 ?:/*)
3743 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3746 ac_save_MAGIC_CMD="$MAGIC_CMD"
3747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3748 ac_dummy="/usr/bin:$PATH"
3749 for ac_dir in $ac_dummy; do
3750 test -z "$ac_dir" && ac_dir=.
3751 if test -f $ac_dir/${ac_tool_prefix}file; then
3752 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3753 if test -n "$file_magic_test_file"; then
3754 case $deplibs_check_method in
3755 "file_magic "*)
3756 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3757 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3758 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3759 egrep "$file_magic_regex" > /dev/null; then
3761 else
3762 cat <<EOF 1>&2
3764 *** Warning: the command libtool uses to detect shared libraries,
3765 *** $file_magic_cmd, produces output that libtool cannot recognize.
3766 *** The result is that libtool may fail to recognize shared libraries
3767 *** as such. This will affect the creation of libtool libraries that
3768 *** depend on shared libraries, but programs linked with such libtool
3769 *** libraries will work regardless of this problem. Nevertheless, you
3770 *** may want to report the problem to your system manager and/or to
3771 *** bug-libtool@gnu.org
3774 fi ;;
3775 esac
3777 break
3779 done
3780 IFS="$ac_save_ifs"
3781 MAGIC_CMD="$ac_save_MAGIC_CMD"
3783 esac
3786 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3787 if test -n "$MAGIC_CMD"; then
3788 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3789 echo "${ECHO_T}$MAGIC_CMD" >&6
3790 else
3791 echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3795 if test -z "$lt_cv_path_MAGIC_CMD"; then
3796 if test -n "$ac_tool_prefix"; then
3797 echo "$as_me:$LINENO: checking for file" >&5
3798 echo $ECHO_N "checking for 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/file; then
3816 lt_cv_path_MAGIC_CMD="$ac_dir/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 else
3860 MAGIC_CMD=:
3866 esac
3868 if test -n "$ac_tool_prefix"; then
3869 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3870 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3871 echo "$as_me:$LINENO: checking for $ac_word" >&5
3872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3873 if test "${ac_cv_prog_RANLIB+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 if test -n "$RANLIB"; then
3877 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3878 else
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 break 2
3890 done
3891 done
3895 RANLIB=$ac_cv_prog_RANLIB
3896 if test -n "$RANLIB"; then
3897 echo "$as_me:$LINENO: result: $RANLIB" >&5
3898 echo "${ECHO_T}$RANLIB" >&6
3899 else
3900 echo "$as_me:$LINENO: result: no" >&5
3901 echo "${ECHO_T}no" >&6
3905 if test -z "$ac_cv_prog_RANLIB"; then
3906 ac_ct_RANLIB=$RANLIB
3907 # Extract the first word of "ranlib", so it can be a program name with args.
3908 set dummy ranlib; ac_word=$2
3909 echo "$as_me:$LINENO: checking for $ac_word" >&5
3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 if test -n "$ac_ct_RANLIB"; then
3915 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924 ac_cv_prog_ac_ct_RANLIB="ranlib"
3925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 break 2
3928 done
3929 done
3931 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3934 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3935 if test -n "$ac_ct_RANLIB"; then
3936 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3937 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3938 else
3939 echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6
3943 RANLIB=$ac_ct_RANLIB
3944 else
3945 RANLIB="$ac_cv_prog_RANLIB"
3948 if test -n "$ac_tool_prefix"; then
3949 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3950 set dummy ${ac_tool_prefix}strip; ac_word=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_prog_STRIP+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956 if test -n "$STRIP"; then
3957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3958 else
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 break 2
3970 done
3971 done
3975 STRIP=$ac_cv_prog_STRIP
3976 if test -n "$STRIP"; then
3977 echo "$as_me:$LINENO: result: $STRIP" >&5
3978 echo "${ECHO_T}$STRIP" >&6
3979 else
3980 echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3985 if test -z "$ac_cv_prog_STRIP"; then
3986 ac_ct_STRIP=$STRIP
3987 # Extract the first word of "strip", so it can be a program name with args.
3988 set dummy strip; ac_word=$2
3989 echo "$as_me:$LINENO: checking for $ac_word" >&5
3990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3991 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994 if test -n "$ac_ct_STRIP"; then
3995 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3996 else
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004 ac_cv_prog_ac_ct_STRIP="strip"
4005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4008 done
4009 done
4011 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4014 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4015 if test -n "$ac_ct_STRIP"; then
4016 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4017 echo "${ECHO_T}$ac_ct_STRIP" >&6
4018 else
4019 echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6
4023 STRIP=$ac_ct_STRIP
4024 else
4025 STRIP="$ac_cv_prog_STRIP"
4029 # Check for any special flags to pass to ltconfig.
4030 libtool_flags="--cache-file=$cache_file"
4031 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4032 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4033 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4034 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4035 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4038 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4039 if test "${enable_libtool_lock+set}" = set; then
4040 enableval="$enable_libtool_lock"
4043 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4044 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4047 # Check whether --with-pic or --without-pic was given.
4048 if test "${with_pic+set}" = set; then
4049 withval="$with_pic"
4050 pic_mode="$withval"
4051 else
4052 pic_mode=default
4054 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4055 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4057 # Some flags need to be propagated to the compiler or linker for good
4058 # libtool support.
4059 case $host in
4060 *-*-irix6*)
4061 # Find out which ABI we are using.
4062 echo '#line 4062 "configure"' > conftest.$ac_ext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; then
4068 if test "$lt_cv_prog_gnu_ld" = yes; then
4069 case `/usr/bin/file conftest.$ac_objext` in
4070 *32-bit*)
4071 LD="${LD-ld} -melf32bsmip"
4073 *N32*)
4074 LD="${LD-ld} -melf32bmipn32"
4076 *64-bit*)
4077 LD="${LD-ld} -melf64bmip"
4079 esac
4080 else
4081 case `/usr/bin/file conftest.$ac_objext` in
4082 *32-bit*)
4083 LD="${LD-ld} -32"
4085 *N32*)
4086 LD="${LD-ld} -n32"
4088 *64-bit*)
4089 LD="${LD-ld} -64"
4091 esac
4094 rm -rf conftest*
4097 ia64-*-hpux*)
4098 # Find out which ABI we are using.
4099 echo 'int i;' > conftest.$ac_ext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; then
4105 case "`/usr/bin/file conftest.o`" in
4106 *ELF-32*)
4107 HPUX_IA64_MODE="32"
4109 *ELF-64*)
4110 HPUX_IA64_MODE="64"
4112 esac
4114 rm -rf conftest*
4117 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4118 # Find out which ABI we are using.
4119 echo 'int i;' > conftest.$ac_ext
4120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4121 (eval $ac_compile) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; then
4125 case "`/usr/bin/file conftest.o`" in
4126 *32-bit*)
4127 case $host in
4128 x86_64-*linux*)
4129 LD="${LD-ld} -m elf_i386"
4131 ppc64-*linux*|powerpc64-*linux*)
4132 LD="${LD-ld} -m elf32ppclinux"
4134 s390x-*linux*)
4135 LD="${LD-ld} -m elf_s390"
4137 sparc64-*linux*)
4138 LD="${LD-ld} -m elf32_sparc"
4140 esac
4142 *64-bit*)
4143 case $host in
4144 x86_64-*linux*)
4145 LD="${LD-ld} -m elf_x86_64"
4147 ppc*-*linux*|powerpc*-*linux*)
4148 LD="${LD-ld} -m elf64ppc"
4150 s390*-*linux*)
4151 LD="${LD-ld} -m elf64_s390"
4153 sparc*-*linux*)
4154 LD="${LD-ld} -m elf64_sparc"
4156 esac
4158 esac
4160 rm -rf conftest*
4163 *-*-sco3.2v5*)
4164 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4165 SAVE_CFLAGS="$CFLAGS"
4166 CFLAGS="$CFLAGS -belf"
4167 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4168 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4169 if test "${lt_cv_cc_needs_belf+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4174 ac_ext=c
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180 if test x$gcc_no_link = xyes; then
4181 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4182 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4183 { (exit 1); exit 1; }; }
4185 cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h. */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4193 main ()
4197 return 0;
4199 _ACEOF
4200 rm -f conftest.$ac_objext conftest$ac_exeext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202 (eval $ac_link) 2>conftest.er1
4203 ac_status=$?
4204 grep -v '^ *+' conftest.er1 >conftest.err
4205 rm -f conftest.er1
4206 cat conftest.err >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } &&
4209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 (eval $ac_try) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; } &&
4215 { ac_try='test -s conftest$ac_exeext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 lt_cv_cc_needs_belf=yes
4222 else
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4226 lt_cv_cc_needs_belf=no
4228 rm -f conftest.err conftest.$ac_objext \
4229 conftest$ac_exeext conftest.$ac_ext
4230 ac_ext=c
4231 ac_cpp='$CPP $CPPFLAGS'
4232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4238 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4239 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4240 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4241 CFLAGS="$SAVE_CFLAGS"
4246 esac
4249 # Save cache, so that ltconfig can load it
4250 cat >confcache <<\_ACEOF
4251 # This file is a shell script that caches the results of configure
4252 # tests run on this system so they can be shared between configure
4253 # scripts and configure runs, see configure's option --config-cache.
4254 # It is not useful on other systems. If it contains results you don't
4255 # want to keep, you may remove or edit it.
4257 # config.status only pays attention to the cache file if you give it
4258 # the --recheck option to rerun configure.
4260 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4261 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4262 # following values.
4264 _ACEOF
4266 # The following way of writing the cache mishandles newlines in values,
4267 # but we know of no workaround that is simple, portable, and efficient.
4268 # So, don't put newlines in cache variables' values.
4269 # Ultrix sh set writes to stderr and can't be redirected directly,
4270 # and sets the high bit in the cache file unless we assign to the vars.
4272 (set) 2>&1 |
4273 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4274 *ac_space=\ *)
4275 # `set' does not quote correctly, so add quotes (double-quote
4276 # substitution turns \\\\ into \\, and sed turns \\ into \).
4277 sed -n \
4278 "s/'/'\\\\''/g;
4279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4282 # `set' quotes correctly as required by POSIX, so do not add quotes.
4283 sed -n \
4284 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4286 esac;
4288 sed '
4289 t clear
4290 : clear
4291 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4292 t end
4293 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4294 : end' >>confcache
4295 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4296 if test -w $cache_file; then
4297 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4298 cat confcache >$cache_file
4299 else
4300 echo "not updating unwritable cache $cache_file"
4303 rm -f confcache
4305 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4306 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4307 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4308 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4309 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4310 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4311 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4312 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4313 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4314 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4315 echo "$as_me: error: libtool configure failed" >&2;}
4316 { (exit 1); exit 1; }; }
4318 # Reload cache, that may have been modified by ltconfig
4319 if test -r "$cache_file"; then
4320 # Some versions of bash will fail to source /dev/null (special
4321 # files actually), so we avoid doing that.
4322 if test -f "$cache_file"; then
4323 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4324 echo "$as_me: loading cache $cache_file" >&6;}
4325 case $cache_file in
4326 [\\/]* | ?:[\\/]* ) . $cache_file;;
4327 *) . ./$cache_file;;
4328 esac
4330 else
4331 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4332 echo "$as_me: creating cache $cache_file" >&6;}
4333 >$cache_file
4337 # This can be used to rebuild libtool when needed
4338 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4340 # Always use our own libtool.
4341 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4343 # Redirect the config.log output again, so that the ltconfig log is not
4344 # clobbered by the next message.
4345 exec 5>>./config.log
4354 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4356 # We need gfortran to compile parts of the library
4357 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4358 #AC_PROG_FC(gfortran)
4359 FC="$GFORTRAN"
4360 ac_ext=${FC_SRCEXT-f}
4361 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4362 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4363 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4364 if test -n "$ac_tool_prefix"; then
4365 for ac_prog in gfortran
4367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4368 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4369 echo "$as_me:$LINENO: checking for $ac_word" >&5
4370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4371 if test "${ac_cv_prog_FC+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374 if test -n "$FC"; then
4375 ac_cv_prog_FC="$FC" # Let the user override the test.
4376 else
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4384 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 break 2
4388 done
4389 done
4393 FC=$ac_cv_prog_FC
4394 if test -n "$FC"; then
4395 echo "$as_me:$LINENO: result: $FC" >&5
4396 echo "${ECHO_T}$FC" >&6
4397 else
4398 echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6
4402 test -n "$FC" && break
4403 done
4405 if test -z "$FC"; then
4406 ac_ct_FC=$FC
4407 for ac_prog in gfortran
4409 # Extract the first word of "$ac_prog", so it can be a program name with args.
4410 set dummy $ac_prog; ac_word=$2
4411 echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4413 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416 if test -n "$ac_ct_FC"; then
4417 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4418 else
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4426 ac_cv_prog_ac_ct_FC="$ac_prog"
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 break 2
4430 done
4431 done
4435 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4436 if test -n "$ac_ct_FC"; then
4437 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4438 echo "${ECHO_T}$ac_ct_FC" >&6
4439 else
4440 echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6
4444 test -n "$ac_ct_FC" && break
4445 done
4447 FC=$ac_ct_FC
4451 # Provide some information about the compiler.
4452 echo "$as_me:4452:" \
4453 "checking for Fortran compiler version" >&5
4454 ac_compiler=`set X $ac_compile; echo $2`
4455 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4456 (eval $ac_compiler --version </dev/null >&5) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }
4460 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4461 (eval $ac_compiler -v </dev/null >&5) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }
4465 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4466 (eval $ac_compiler -V </dev/null >&5) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }
4470 rm -f a.out
4472 # If we don't use `.F' as extension, the preprocessor is not run on the
4473 # input file. (Note that this only needs to work for GNU compilers.)
4474 ac_save_ext=$ac_ext
4475 ac_ext=F
4476 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4477 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4478 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 cat >conftest.$ac_ext <<_ACEOF
4482 program main
4483 #ifndef __GNUC__
4484 choke me
4485 #endif
4488 _ACEOF
4489 rm -f conftest.$ac_objext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491 (eval $ac_compile) 2>conftest.er1
4492 ac_status=$?
4493 grep -v '^ *+' conftest.er1 >conftest.err
4494 rm -f conftest.er1
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } &&
4498 { ac_try='test -z "$ac_fc_werror_flag" || test ! -s conftest.err'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; } &&
4504 { ac_try='test -s conftest.$ac_objext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 ac_compiler_gnu=yes
4511 else
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4515 ac_compiler_gnu=no
4517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4518 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4521 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4522 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4523 ac_ext=$ac_save_ext
4524 ac_test_FFLAGS=${FCFLAGS+set}
4525 ac_save_FFLAGS=$FCFLAGS
4526 FCFLAGS=
4527 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4528 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4529 if test "${ac_cv_prog_fc_g+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532 FCFLAGS=-g
4533 cat >conftest.$ac_ext <<_ACEOF
4534 program main
4537 _ACEOF
4538 rm -f conftest.$ac_objext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -z "$ac_fc_werror_flag" || test ! -s conftest.err'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; } &&
4553 { ac_try='test -s conftest.$ac_objext'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; }; then
4559 ac_cv_prog_fc_g=yes
4560 else
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 ac_cv_prog_fc_g=no
4566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4569 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4570 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4571 if test "$ac_test_FFLAGS" = set; then
4572 FCFLAGS=$ac_save_FFLAGS
4573 elif test $ac_cv_prog_fc_g = yes; then
4574 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4575 FCFLAGS="-g -O2"
4576 else
4577 FCFLAGS="-g"
4579 else
4580 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4581 FCFLAGS="-O2"
4582 else
4583 FCFLAGS=
4587 ac_ext=c
4588 ac_cpp='$CPP $CPPFLAGS'
4589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593 FCFLAGS="$FCFLAGS -Wall -fno-repack-arrays -fno-underscoring"
4595 # Check whether --enable-largefile or --disable-largefile was given.
4596 if test "${enable_largefile+set}" = set; then
4597 enableval="$enable_largefile"
4600 if test "$enable_largefile" != no; then
4602 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4603 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4604 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607 ac_cv_sys_largefile_CC=no
4608 if test "$GCC" != yes; then
4609 ac_save_CC=$CC
4610 while :; do
4611 # IRIX 6.2 and later do not support large files by default,
4612 # so use the C compiler's -n32 option if that helps.
4613 cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h. */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4619 #include <sys/types.h>
4620 /* Check that off_t can represent 2**63 - 1 correctly.
4621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4622 since some C++ compilers masquerading as C compilers
4623 incorrectly reject 9223372036854775807. */
4624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4626 && LARGE_OFF_T % 2147483647 == 1)
4627 ? 1 : -1];
4629 main ()
4633 return 0;
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>conftest.er1
4639 ac_status=$?
4640 grep -v '^ *+' conftest.er1 >conftest.err
4641 rm -f conftest.er1
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 break
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4663 rm -f conftest.err conftest.$ac_objext
4664 CC="$CC -n32"
4665 rm -f conftest.$ac_objext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667 (eval $ac_compile) 2>conftest.er1
4668 ac_status=$?
4669 grep -v '^ *+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } &&
4674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 (eval $ac_try) 2>&5
4677 ac_status=$?
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; } &&
4680 { ac_try='test -s conftest.$ac_objext'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 (eval $ac_try) 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 ac_cv_sys_largefile_CC=' -n32'; break
4687 else
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4692 rm -f conftest.err conftest.$ac_objext
4693 break
4694 done
4695 CC=$ac_save_CC
4696 rm -f conftest.$ac_ext
4699 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4700 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4701 if test "$ac_cv_sys_largefile_CC" != no; then
4702 CC=$CC$ac_cv_sys_largefile_CC
4705 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4706 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4707 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710 while :; do
4711 ac_cv_sys_file_offset_bits=no
4712 cat >conftest.$ac_ext <<_ACEOF
4713 /* confdefs.h. */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4718 #include <sys/types.h>
4719 /* Check that off_t can represent 2**63 - 1 correctly.
4720 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4721 since some C++ compilers masquerading as C compilers
4722 incorrectly reject 9223372036854775807. */
4723 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4724 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4725 && LARGE_OFF_T % 2147483647 == 1)
4726 ? 1 : -1];
4728 main ()
4732 return 0;
4734 _ACEOF
4735 rm -f conftest.$ac_objext
4736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737 (eval $ac_compile) 2>conftest.er1
4738 ac_status=$?
4739 grep -v '^ *+' conftest.er1 >conftest.err
4740 rm -f conftest.er1
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
4744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 (eval $ac_try) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; } &&
4750 { ac_try='test -s conftest.$ac_objext'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; }; then
4756 break
4757 else
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4763 cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h. */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 #define _FILE_OFFSET_BITS 64
4770 #include <sys/types.h>
4771 /* Check that off_t can represent 2**63 - 1 correctly.
4772 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4773 since some C++ compilers masquerading as C compilers
4774 incorrectly reject 9223372036854775807. */
4775 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4777 && LARGE_OFF_T % 2147483647 == 1)
4778 ? 1 : -1];
4780 main ()
4784 return 0;
4786 _ACEOF
4787 rm -f conftest.$ac_objext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789 (eval $ac_compile) 2>conftest.er1
4790 ac_status=$?
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; } &&
4802 { ac_try='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 ac_cv_sys_file_offset_bits=64; break
4809 else
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4815 break
4816 done
4818 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4819 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4820 if test "$ac_cv_sys_file_offset_bits" != no; then
4822 cat >>confdefs.h <<_ACEOF
4823 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4824 _ACEOF
4827 rm -f conftest*
4828 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4829 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4830 if test "${ac_cv_sys_large_files+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833 while :; do
4834 ac_cv_sys_large_files=no
4835 cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h. */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 #include <sys/types.h>
4842 /* Check that off_t can represent 2**63 - 1 correctly.
4843 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4844 since some C++ compilers masquerading as C compilers
4845 incorrectly reject 9223372036854775807. */
4846 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4847 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4848 && LARGE_OFF_T % 2147483647 == 1)
4849 ? 1 : -1];
4851 main ()
4855 return 0;
4857 _ACEOF
4858 rm -f conftest.$ac_objext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860 (eval $ac_compile) 2>conftest.er1
4861 ac_status=$?
4862 grep -v '^ *+' conftest.er1 >conftest.err
4863 rm -f conftest.er1
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } &&
4867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 (eval $ac_try) 2>&5
4870 ac_status=$?
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; } &&
4873 { ac_try='test -s conftest.$ac_objext'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 (eval $ac_try) 2>&5
4876 ac_status=$?
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; }; then
4879 break
4880 else
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4886 cat >conftest.$ac_ext <<_ACEOF
4887 /* confdefs.h. */
4888 _ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4892 #define _LARGE_FILES 1
4893 #include <sys/types.h>
4894 /* Check that off_t can represent 2**63 - 1 correctly.
4895 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4896 since some C++ compilers masquerading as C compilers
4897 incorrectly reject 9223372036854775807. */
4898 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4899 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4900 && LARGE_OFF_T % 2147483647 == 1)
4901 ? 1 : -1];
4903 main ()
4907 return 0;
4909 _ACEOF
4910 rm -f conftest.$ac_objext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4912 (eval $ac_compile) 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } &&
4919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 (eval $ac_try) 2>&5
4922 ac_status=$?
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; } &&
4925 { ac_try='test -s conftest.$ac_objext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 (eval $ac_try) 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 ac_cv_sys_large_files=1; break
4932 else
4933 echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4938 break
4939 done
4941 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4942 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4943 if test "$ac_cv_sys_large_files" != no; then
4945 cat >>confdefs.h <<_ACEOF
4946 #define _LARGE_FILES $ac_cv_sys_large_files
4947 _ACEOF
4950 rm -f conftest*
4953 if test x$gcc_no_link = xyes; then
4954 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
4955 ac_cv_func_mmap_fixed_mapped=no
4958 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
4959 ac_ext=c
4960 ac_cpp='$CPP $CPPFLAGS'
4961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4964 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4965 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4966 # On Suns, sometimes $CPP names a directory.
4967 if test -n "$CPP" && test -d "$CPP"; then
4968 CPP=
4970 if test -z "$CPP"; then
4971 if test "${ac_cv_prog_CPP+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974 # Double quotes because CPP needs to be expanded
4975 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4977 ac_preproc_ok=false
4978 for ac_c_preproc_warn_flag in '' yes
4980 # Use a header file that comes with gcc, so configuring glibc
4981 # with a fresh cross-compiler works.
4982 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4983 # <limits.h> exists even on freestanding compilers.
4984 # On the NeXT, cc -E runs the code through the compiler's parser,
4985 # not just through cpp. "Syntax error" is here to catch this case.
4986 cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h. */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4992 #ifdef __STDC__
4993 # include <limits.h>
4994 #else
4995 # include <assert.h>
4996 #endif
4997 Syntax error
4998 _ACEOF
4999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } >/dev/null; then
5007 if test -s conftest.err; then
5008 ac_cpp_err=$ac_c_preproc_warn_flag
5009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5010 else
5011 ac_cpp_err=
5013 else
5014 ac_cpp_err=yes
5016 if test -z "$ac_cpp_err"; then
5018 else
5019 echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5022 # Broken: fails on valid input.
5023 continue
5025 rm -f conftest.err conftest.$ac_ext
5027 # OK, works on sane cases. Now check whether non-existent headers
5028 # can be detected and how.
5029 cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h. */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5035 #include <ac_nonexistent.h>
5036 _ACEOF
5037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } >/dev/null; then
5045 if test -s conftest.err; then
5046 ac_cpp_err=$ac_c_preproc_warn_flag
5047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5048 else
5049 ac_cpp_err=
5051 else
5052 ac_cpp_err=yes
5054 if test -z "$ac_cpp_err"; then
5055 # Broken: success on invalid input.
5056 continue
5057 else
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5061 # Passes both tests.
5062 ac_preproc_ok=:
5063 break
5065 rm -f conftest.err conftest.$ac_ext
5067 done
5068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5069 rm -f conftest.err conftest.$ac_ext
5070 if $ac_preproc_ok; then
5071 break
5074 done
5075 ac_cv_prog_CPP=$CPP
5078 CPP=$ac_cv_prog_CPP
5079 else
5080 ac_cv_prog_CPP=$CPP
5082 echo "$as_me:$LINENO: result: $CPP" >&5
5083 echo "${ECHO_T}$CPP" >&6
5084 ac_preproc_ok=false
5085 for ac_c_preproc_warn_flag in '' yes
5087 # Use a header file that comes with gcc, so configuring glibc
5088 # with a fresh cross-compiler works.
5089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5090 # <limits.h> exists even on freestanding compilers.
5091 # On the NeXT, cc -E runs the code through the compiler's parser,
5092 # not just through cpp. "Syntax error" is here to catch this case.
5093 cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h. */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5099 #ifdef __STDC__
5100 # include <limits.h>
5101 #else
5102 # include <assert.h>
5103 #endif
5104 Syntax error
5105 _ACEOF
5106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5108 ac_status=$?
5109 grep -v '^ *+' conftest.er1 >conftest.err
5110 rm -f conftest.er1
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } >/dev/null; then
5114 if test -s conftest.err; then
5115 ac_cpp_err=$ac_c_preproc_warn_flag
5116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5117 else
5118 ac_cpp_err=
5120 else
5121 ac_cpp_err=yes
5123 if test -z "$ac_cpp_err"; then
5125 else
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5129 # Broken: fails on valid input.
5130 continue
5132 rm -f conftest.err conftest.$ac_ext
5134 # OK, works on sane cases. Now check whether non-existent headers
5135 # can be detected and how.
5136 cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h. */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5142 #include <ac_nonexistent.h>
5143 _ACEOF
5144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5146 ac_status=$?
5147 grep -v '^ *+' conftest.er1 >conftest.err
5148 rm -f conftest.er1
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } >/dev/null; then
5152 if test -s conftest.err; then
5153 ac_cpp_err=$ac_c_preproc_warn_flag
5154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5155 else
5156 ac_cpp_err=
5158 else
5159 ac_cpp_err=yes
5161 if test -z "$ac_cpp_err"; then
5162 # Broken: success on invalid input.
5163 continue
5164 else
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 # Passes both tests.
5169 ac_preproc_ok=:
5170 break
5172 rm -f conftest.err conftest.$ac_ext
5174 done
5175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5176 rm -f conftest.err conftest.$ac_ext
5177 if $ac_preproc_ok; then
5179 else
5180 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5181 See \`config.log' for more details." >&5
5182 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5183 See \`config.log' for more details." >&2;}
5184 { (exit 1); exit 1; }; }
5187 ac_ext=c
5188 ac_cpp='$CPP $CPPFLAGS'
5189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5194 echo "$as_me:$LINENO: checking for egrep" >&5
5195 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5196 if test "${ac_cv_prog_egrep+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5200 then ac_cv_prog_egrep='grep -E'
5201 else ac_cv_prog_egrep='egrep'
5204 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5205 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5206 EGREP=$ac_cv_prog_egrep
5209 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5210 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5211 if test "${ac_cv_header_stdc+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214 cat >conftest.$ac_ext <<_ACEOF
5215 /* confdefs.h. */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 #include <stdlib.h>
5221 #include <stdarg.h>
5222 #include <string.h>
5223 #include <float.h>
5226 main ()
5230 return 0;
5232 _ACEOF
5233 rm -f conftest.$ac_objext
5234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5235 (eval $ac_compile) 2>conftest.er1
5236 ac_status=$?
5237 grep -v '^ *+' conftest.er1 >conftest.err
5238 rm -f conftest.er1
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
5242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest.$ac_objext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 ac_cv_header_stdc=yes
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5259 ac_cv_header_stdc=no
5261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5263 if test $ac_cv_header_stdc = yes; then
5264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5265 cat >conftest.$ac_ext <<_ACEOF
5266 /* confdefs.h. */
5267 _ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5271 #include <string.h>
5273 _ACEOF
5274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5275 $EGREP "memchr" >/dev/null 2>&1; then
5277 else
5278 ac_cv_header_stdc=no
5280 rm -f conftest*
5284 if test $ac_cv_header_stdc = yes; then
5285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5286 cat >conftest.$ac_ext <<_ACEOF
5287 /* confdefs.h. */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5292 #include <stdlib.h>
5294 _ACEOF
5295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5296 $EGREP "free" >/dev/null 2>&1; then
5298 else
5299 ac_cv_header_stdc=no
5301 rm -f conftest*
5305 if test $ac_cv_header_stdc = yes; then
5306 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5307 if test "$cross_compiling" = yes; then
5309 else
5310 cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h. */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 #include <ctype.h>
5317 #if ((' ' & 0x0FF) == 0x020)
5318 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5319 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5320 #else
5321 # define ISLOWER(c) \
5322 (('a' <= (c) && (c) <= 'i') \
5323 || ('j' <= (c) && (c) <= 'r') \
5324 || ('s' <= (c) && (c) <= 'z'))
5325 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5326 #endif
5328 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5330 main ()
5332 int i;
5333 for (i = 0; i < 256; i++)
5334 if (XOR (islower (i), ISLOWER (i))
5335 || toupper (i) != TOUPPER (i))
5336 exit(2);
5337 exit (0);
5339 _ACEOF
5340 rm -f conftest$ac_exeext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5342 (eval $ac_link) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 (eval $ac_try) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5352 else
5353 echo "$as_me: program exited with status $ac_status" >&5
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5357 ( exit $ac_status )
5358 ac_cv_header_stdc=no
5360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5364 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5365 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5366 if test $ac_cv_header_stdc = yes; then
5368 cat >>confdefs.h <<\_ACEOF
5369 #define STDC_HEADERS 1
5370 _ACEOF
5374 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5384 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5385 inttypes.h stdint.h unistd.h
5387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5388 echo "$as_me:$LINENO: checking for $ac_header" >&5
5389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
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 $ac_includes_default
5401 #include <$ac_header>
5402 _ACEOF
5403 rm -f conftest.$ac_objext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405 (eval $ac_compile) 2>conftest.er1
5406 ac_status=$?
5407 grep -v '^ *+' conftest.er1 >conftest.err
5408 rm -f conftest.er1
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 (eval $ac_try) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; } &&
5418 { ac_try='test -s conftest.$ac_objext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 (eval $ac_try) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
5424 eval "$as_ac_Header=yes"
5425 else
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5429 eval "$as_ac_Header=no"
5431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5436 cat >>confdefs.h <<_ACEOF
5437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5438 _ACEOF
5442 done
5447 for ac_header in stdlib.h unistd.h
5449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5451 echo "$as_me:$LINENO: checking for $ac_header" >&5
5452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5458 else
5459 # Is the header compilable?
5460 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5462 cat >conftest.$ac_ext <<_ACEOF
5463 /* confdefs.h. */
5464 _ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5468 $ac_includes_default
5469 #include <$ac_header>
5470 _ACEOF
5471 rm -f conftest.$ac_objext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; } &&
5486 { ac_try='test -s conftest.$ac_objext'
5487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488 (eval $ac_try) 2>&5
5489 ac_status=$?
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
5492 ac_header_compiler=yes
5493 else
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5497 ac_header_compiler=no
5499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5500 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5501 echo "${ECHO_T}$ac_header_compiler" >&6
5503 # Is the header present?
5504 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5506 cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h. */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5512 #include <$ac_header>
5513 _ACEOF
5514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5516 ac_status=$?
5517 grep -v '^ *+' conftest.er1 >conftest.err
5518 rm -f conftest.er1
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } >/dev/null; then
5522 if test -s conftest.err; then
5523 ac_cpp_err=$ac_c_preproc_warn_flag
5524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5525 else
5526 ac_cpp_err=
5528 else
5529 ac_cpp_err=yes
5531 if test -z "$ac_cpp_err"; then
5532 ac_header_preproc=yes
5533 else
5534 echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.$ac_ext >&5
5537 ac_header_preproc=no
5539 rm -f conftest.err conftest.$ac_ext
5540 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5541 echo "${ECHO_T}$ac_header_preproc" >&6
5543 # So? What about this header?
5544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5545 yes:no: )
5546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5550 ac_header_preproc=yes
5552 no:yes:* )
5553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5560 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5566 cat <<\_ASBOX
5567 ## ------------------------------------------------------ ##
5568 ## Report this to the GNU Fortran Runtime Library lists. ##
5569 ## ------------------------------------------------------ ##
5570 _ASBOX
5572 sed "s/^/$as_me: WARNING: /" >&2
5574 esac
5575 echo "$as_me:$LINENO: checking for $ac_header" >&5
5576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580 eval "$as_ac_Header=\$ac_header_preproc"
5582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5587 cat >>confdefs.h <<_ACEOF
5588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5589 _ACEOF
5593 done
5596 for ac_func in getpagesize
5598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5599 echo "$as_me:$LINENO: checking for $ac_func" >&5
5600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5601 if eval "test \"\${$as_ac_var+set}\" = set"; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 else
5604 if test x$gcc_no_link = xyes; then
5605 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5606 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5607 { (exit 1); exit 1; }; }
5609 cat >conftest.$ac_ext <<_ACEOF
5610 /* confdefs.h. */
5611 _ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5617 #define $ac_func innocuous_$ac_func
5619 /* System header to define __stub macros and hopefully few prototypes,
5620 which can conflict with char $ac_func (); below.
5621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5622 <limits.h> exists even on freestanding compilers. */
5624 #ifdef __STDC__
5625 # include <limits.h>
5626 #else
5627 # include <assert.h>
5628 #endif
5630 #undef $ac_func
5632 /* Override any gcc2 internal prototype to avoid an error. */
5633 #ifdef __cplusplus
5634 extern "C"
5636 #endif
5637 /* We use char because int might match the return type of a gcc2
5638 builtin and then its argument prototype would still apply. */
5639 char $ac_func ();
5640 /* The GNU C library defines this for functions which it implements
5641 to always fail with ENOSYS. Some functions are actually named
5642 something starting with __ and the normal name is an alias. */
5643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5644 choke me
5645 #else
5646 char (*f) () = $ac_func;
5647 #endif
5648 #ifdef __cplusplus
5650 #endif
5653 main ()
5655 return f != $ac_func;
5657 return 0;
5659 _ACEOF
5660 rm -f conftest.$ac_objext conftest$ac_exeext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5662 (eval $ac_link) 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 (eval $ac_try) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; } &&
5675 { ac_try='test -s conftest$ac_exeext'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 (eval $ac_try) 2>&5
5678 ac_status=$?
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; }; then
5681 eval "$as_ac_var=yes"
5682 else
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5686 eval "$as_ac_var=no"
5688 rm -f conftest.err conftest.$ac_objext \
5689 conftest$ac_exeext conftest.$ac_ext
5691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5693 if test `eval echo '${'$as_ac_var'}'` = yes; then
5694 cat >>confdefs.h <<_ACEOF
5695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5696 _ACEOF
5699 done
5701 echo "$as_me:$LINENO: checking for working mmap" >&5
5702 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5703 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706 if test "$cross_compiling" = yes; then
5707 ac_cv_func_mmap_fixed_mapped=no
5708 else
5709 cat >conftest.$ac_ext <<_ACEOF
5710 /* confdefs.h. */
5711 _ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5715 $ac_includes_default
5716 /* malloc might have been renamed as rpl_malloc. */
5717 #undef malloc
5719 /* Thanks to Mike Haertel and Jim Avera for this test.
5720 Here is a matrix of mmap possibilities:
5721 mmap private not fixed
5722 mmap private fixed at somewhere currently unmapped
5723 mmap private fixed at somewhere already mapped
5724 mmap shared not fixed
5725 mmap shared fixed at somewhere currently unmapped
5726 mmap shared fixed at somewhere already mapped
5727 For private mappings, we should verify that changes cannot be read()
5728 back from the file, nor mmap's back from the file at a different
5729 address. (There have been systems where private was not correctly
5730 implemented like the infamous i386 svr4.0, and systems where the
5731 VM page cache was not coherent with the file system buffer cache
5732 like early versions of FreeBSD and possibly contemporary NetBSD.)
5733 For shared mappings, we should conversely verify that changes get
5734 propagated back to all the places they're supposed to be.
5736 Grep wants private fixed already mapped.
5737 The main things grep needs to know about mmap are:
5738 * does it exist and is it safe to write into the mmap'd area
5739 * how to use it (BSD variants) */
5741 #include <fcntl.h>
5742 #include <sys/mman.h>
5744 #if !STDC_HEADERS && !HAVE_STDLIB_H
5745 char *malloc ();
5746 #endif
5748 /* This mess was copied from the GNU getpagesize.h. */
5749 #if !HAVE_GETPAGESIZE
5750 /* Assume that all systems that can run configure have sys/param.h. */
5751 # if !HAVE_SYS_PARAM_H
5752 # define HAVE_SYS_PARAM_H 1
5753 # endif
5755 # ifdef _SC_PAGESIZE
5756 # define getpagesize() sysconf(_SC_PAGESIZE)
5757 # else /* no _SC_PAGESIZE */
5758 # if HAVE_SYS_PARAM_H
5759 # include <sys/param.h>
5760 # ifdef EXEC_PAGESIZE
5761 # define getpagesize() EXEC_PAGESIZE
5762 # else /* no EXEC_PAGESIZE */
5763 # ifdef NBPG
5764 # define getpagesize() NBPG * CLSIZE
5765 # ifndef CLSIZE
5766 # define CLSIZE 1
5767 # endif /* no CLSIZE */
5768 # else /* no NBPG */
5769 # ifdef NBPC
5770 # define getpagesize() NBPC
5771 # else /* no NBPC */
5772 # ifdef PAGESIZE
5773 # define getpagesize() PAGESIZE
5774 # endif /* PAGESIZE */
5775 # endif /* no NBPC */
5776 # endif /* no NBPG */
5777 # endif /* no EXEC_PAGESIZE */
5778 # else /* no HAVE_SYS_PARAM_H */
5779 # define getpagesize() 8192 /* punt totally */
5780 # endif /* no HAVE_SYS_PARAM_H */
5781 # endif /* no _SC_PAGESIZE */
5783 #endif /* no HAVE_GETPAGESIZE */
5786 main ()
5788 char *data, *data2, *data3;
5789 int i, pagesize;
5790 int fd;
5792 pagesize = getpagesize ();
5794 /* First, make a file with some known garbage in it. */
5795 data = (char *) malloc (pagesize);
5796 if (!data)
5797 exit (1);
5798 for (i = 0; i < pagesize; ++i)
5799 *(data + i) = rand ();
5800 umask (0);
5801 fd = creat ("conftest.mmap", 0600);
5802 if (fd < 0)
5803 exit (1);
5804 if (write (fd, data, pagesize) != pagesize)
5805 exit (1);
5806 close (fd);
5808 /* Next, try to mmap the file at a fixed address which already has
5809 something else allocated at it. If we can, also make sure that
5810 we see the same garbage. */
5811 fd = open ("conftest.mmap", O_RDWR);
5812 if (fd < 0)
5813 exit (1);
5814 data2 = (char *) malloc (2 * pagesize);
5815 if (!data2)
5816 exit (1);
5817 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5818 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5819 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5820 exit (1);
5821 for (i = 0; i < pagesize; ++i)
5822 if (*(data + i) != *(data2 + i))
5823 exit (1);
5825 /* Finally, make sure that changes to the mapped area do not
5826 percolate back to the file as seen by read(). (This is a bug on
5827 some variants of i386 svr4.0.) */
5828 for (i = 0; i < pagesize; ++i)
5829 *(data2 + i) = *(data2 + i) + 1;
5830 data3 = (char *) malloc (pagesize);
5831 if (!data3)
5832 exit (1);
5833 if (read (fd, data3, pagesize) != pagesize)
5834 exit (1);
5835 for (i = 0; i < pagesize; ++i)
5836 if (*(data + i) != *(data3 + i))
5837 exit (1);
5838 close (fd);
5839 exit (0);
5841 _ACEOF
5842 rm -f conftest$ac_exeext
5843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5844 (eval $ac_link) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 (eval $ac_try) 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 ac_cv_func_mmap_fixed_mapped=yes
5854 else
5855 echo "$as_me: program exited with status $ac_status" >&5
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5859 ( exit $ac_status )
5860 ac_cv_func_mmap_fixed_mapped=no
5862 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5865 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5866 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5867 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5869 cat >>confdefs.h <<\_ACEOF
5870 #define HAVE_MMAP 1
5871 _ACEOF
5874 rm -f conftest.mmap
5877 echo "$as_me:$LINENO: checking for off_t" >&5
5878 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5879 if test "${ac_cv_type_off_t+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882 cat >conftest.$ac_ext <<_ACEOF
5883 /* confdefs.h. */
5884 _ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5888 $ac_includes_default
5890 main ()
5892 if ((off_t *) 0)
5893 return 0;
5894 if (sizeof (off_t))
5895 return 0;
5897 return 0;
5899 _ACEOF
5900 rm -f conftest.$ac_objext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902 (eval $ac_compile) 2>conftest.er1
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 (eval $ac_try) 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; } &&
5915 { ac_try='test -s conftest.$ac_objext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 (eval $ac_try) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 ac_cv_type_off_t=yes
5922 else
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5926 ac_cv_type_off_t=no
5928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5930 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5931 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5932 if test $ac_cv_type_off_t = yes; then
5934 else
5936 cat >>confdefs.h <<_ACEOF
5937 #define off_t long
5938 _ACEOF
5943 # check header files
5944 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5945 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5946 if test "${ac_cv_header_stdc+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949 cat >conftest.$ac_ext <<_ACEOF
5950 /* confdefs.h. */
5951 _ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h. */
5955 #include <stdlib.h>
5956 #include <stdarg.h>
5957 #include <string.h>
5958 #include <float.h>
5961 main ()
5965 return 0;
5967 _ACEOF
5968 rm -f conftest.$ac_objext
5969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5970 (eval $ac_compile) 2>conftest.er1
5971 ac_status=$?
5972 grep -v '^ *+' conftest.er1 >conftest.err
5973 rm -f conftest.er1
5974 cat conftest.err >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 (eval $ac_try) 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; } &&
5983 { ac_try='test -s conftest.$ac_objext'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 (eval $ac_try) 2>&5
5986 ac_status=$?
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; }; then
5989 ac_cv_header_stdc=yes
5990 else
5991 echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5994 ac_cv_header_stdc=no
5996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5998 if test $ac_cv_header_stdc = yes; then
5999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6000 cat >conftest.$ac_ext <<_ACEOF
6001 /* confdefs.h. */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6006 #include <string.h>
6008 _ACEOF
6009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6010 $EGREP "memchr" >/dev/null 2>&1; then
6012 else
6013 ac_cv_header_stdc=no
6015 rm -f conftest*
6019 if test $ac_cv_header_stdc = yes; then
6020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6021 cat >conftest.$ac_ext <<_ACEOF
6022 /* confdefs.h. */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 #include <stdlib.h>
6029 _ACEOF
6030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6031 $EGREP "free" >/dev/null 2>&1; then
6033 else
6034 ac_cv_header_stdc=no
6036 rm -f conftest*
6040 if test $ac_cv_header_stdc = yes; then
6041 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6042 if test "$cross_compiling" = yes; then
6044 else
6045 cat >conftest.$ac_ext <<_ACEOF
6046 /* confdefs.h. */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6051 #include <ctype.h>
6052 #if ((' ' & 0x0FF) == 0x020)
6053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6055 #else
6056 # define ISLOWER(c) \
6057 (('a' <= (c) && (c) <= 'i') \
6058 || ('j' <= (c) && (c) <= 'r') \
6059 || ('s' <= (c) && (c) <= 'z'))
6060 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6061 #endif
6063 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6065 main ()
6067 int i;
6068 for (i = 0; i < 256; i++)
6069 if (XOR (islower (i), ISLOWER (i))
6070 || toupper (i) != TOUPPER (i))
6071 exit(2);
6072 exit (0);
6074 _ACEOF
6075 rm -f conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077 (eval $ac_link) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 (eval $ac_try) 2>&5
6083 ac_status=$?
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; }; then
6087 else
6088 echo "$as_me: program exited with status $ac_status" >&5
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 ( exit $ac_status )
6093 ac_cv_header_stdc=no
6095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6099 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6100 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6101 if test $ac_cv_header_stdc = yes; then
6103 cat >>confdefs.h <<\_ACEOF
6104 #define STDC_HEADERS 1
6105 _ACEOF
6115 for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h
6117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6119 echo "$as_me:$LINENO: checking for $ac_header" >&5
6120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6126 else
6127 # Is the header compilable?
6128 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6130 cat >conftest.$ac_ext <<_ACEOF
6131 /* confdefs.h. */
6132 _ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 $ac_includes_default
6137 #include <$ac_header>
6138 _ACEOF
6139 rm -f conftest.$ac_objext
6140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141 (eval $ac_compile) 2>conftest.er1
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try='test -s conftest.$ac_objext'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 (eval $ac_try) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6160 ac_header_compiler=yes
6161 else
6162 echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6165 ac_header_compiler=no
6167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6169 echo "${ECHO_T}$ac_header_compiler" >&6
6171 # Is the header present?
6172 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6174 cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h. */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 #include <$ac_header>
6181 _ACEOF
6182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6184 ac_status=$?
6185 grep -v '^ *+' conftest.er1 >conftest.err
6186 rm -f conftest.er1
6187 cat conftest.err >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } >/dev/null; then
6190 if test -s conftest.err; then
6191 ac_cpp_err=$ac_c_preproc_warn_flag
6192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6193 else
6194 ac_cpp_err=
6196 else
6197 ac_cpp_err=yes
6199 if test -z "$ac_cpp_err"; then
6200 ac_header_preproc=yes
6201 else
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6205 ac_header_preproc=no
6207 rm -f conftest.err conftest.$ac_ext
6208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6209 echo "${ECHO_T}$ac_header_preproc" >&6
6211 # So? What about this header?
6212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6213 yes:no: )
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6218 ac_header_preproc=yes
6220 no:yes:* )
6221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6234 cat <<\_ASBOX
6235 ## ------------------------------------------------------ ##
6236 ## Report this to the GNU Fortran Runtime Library lists. ##
6237 ## ------------------------------------------------------ ##
6238 _ASBOX
6240 sed "s/^/$as_me: WARNING: /" >&2
6242 esac
6243 echo "$as_me:$LINENO: checking for $ac_header" >&5
6244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248 eval "$as_ac_Header=\$ac_header_preproc"
6250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6255 cat >>confdefs.h <<_ACEOF
6256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6257 _ACEOF
6261 done
6268 for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
6270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6272 echo "$as_me:$LINENO: checking for $ac_header" >&5
6273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6279 else
6280 # Is the header compilable?
6281 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6283 cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h. */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6289 $ac_includes_default
6290 #include <$ac_header>
6291 _ACEOF
6292 rm -f conftest.$ac_objext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6294 (eval $ac_compile) 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 (eval $ac_try) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; } &&
6307 { ac_try='test -s conftest.$ac_objext'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 (eval $ac_try) 2>&5
6310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; }; then
6313 ac_header_compiler=yes
6314 else
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6318 ac_header_compiler=no
6320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6322 echo "${ECHO_T}$ac_header_compiler" >&6
6324 # Is the header present?
6325 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6327 cat >conftest.$ac_ext <<_ACEOF
6328 /* confdefs.h. */
6329 _ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6333 #include <$ac_header>
6334 _ACEOF
6335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6337 ac_status=$?
6338 grep -v '^ *+' conftest.er1 >conftest.err
6339 rm -f conftest.er1
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } >/dev/null; then
6343 if test -s conftest.err; then
6344 ac_cpp_err=$ac_c_preproc_warn_flag
6345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6346 else
6347 ac_cpp_err=
6349 else
6350 ac_cpp_err=yes
6352 if test -z "$ac_cpp_err"; then
6353 ac_header_preproc=yes
6354 else
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6358 ac_header_preproc=no
6360 rm -f conftest.err conftest.$ac_ext
6361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6362 echo "${ECHO_T}$ac_header_preproc" >&6
6364 # So? What about this header?
6365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6366 yes:no: )
6367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6371 ac_header_preproc=yes
6373 no:yes:* )
6374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6387 cat <<\_ASBOX
6388 ## ------------------------------------------------------ ##
6389 ## Report this to the GNU Fortran Runtime Library lists. ##
6390 ## ------------------------------------------------------ ##
6391 _ASBOX
6393 sed "s/^/$as_me: WARNING: /" >&2
6395 esac
6396 echo "$as_me:$LINENO: checking for $ac_header" >&5
6397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401 eval "$as_ac_Header=\$ac_header_preproc"
6403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6408 cat >>confdefs.h <<_ACEOF
6409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6410 _ACEOF
6414 done
6419 for ac_header in sys/mman.h sys/types.h sys/stat.h
6421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6423 echo "$as_me:$LINENO: checking for $ac_header" >&5
6424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6430 else
6431 # Is the header compilable?
6432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6434 cat >conftest.$ac_ext <<_ACEOF
6435 /* confdefs.h. */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6440 $ac_includes_default
6441 #include <$ac_header>
6442 _ACEOF
6443 rm -f conftest.$ac_objext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445 (eval $ac_compile) 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 (eval $ac_try) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; } &&
6458 { ac_try='test -s conftest.$ac_objext'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 (eval $ac_try) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 ac_header_compiler=yes
6465 else
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6469 ac_header_compiler=no
6471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6473 echo "${ECHO_T}$ac_header_compiler" >&6
6475 # Is the header present?
6476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6478 cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h. */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h. */
6484 #include <$ac_header>
6485 _ACEOF
6486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } >/dev/null; then
6494 if test -s conftest.err; then
6495 ac_cpp_err=$ac_c_preproc_warn_flag
6496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6497 else
6498 ac_cpp_err=
6500 else
6501 ac_cpp_err=yes
6503 if test -z "$ac_cpp_err"; then
6504 ac_header_preproc=yes
6505 else
6506 echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.$ac_ext >&5
6509 ac_header_preproc=no
6511 rm -f conftest.err conftest.$ac_ext
6512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6513 echo "${ECHO_T}$ac_header_preproc" >&6
6515 # So? What about this header?
6516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6517 yes:no: )
6518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6522 ac_header_preproc=yes
6524 no:yes:* )
6525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6538 cat <<\_ASBOX
6539 ## ------------------------------------------------------ ##
6540 ## Report this to the GNU Fortran Runtime Library lists. ##
6541 ## ------------------------------------------------------ ##
6542 _ASBOX
6544 sed "s/^/$as_me: WARNING: /" >&2
6546 esac
6547 echo "$as_me:$LINENO: checking for $ac_header" >&5
6548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6552 eval "$as_ac_Header=\$ac_header_preproc"
6554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6559 cat >>confdefs.h <<_ACEOF
6560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6561 _ACEOF
6565 done
6567 if test "${ac_cv_header_complex_h+set}" = set; then
6568 echo "$as_me:$LINENO: checking for complex.h" >&5
6569 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6570 if test "${ac_cv_header_complex_h+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6574 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6575 else
6576 # Is the header compilable?
6577 echo "$as_me:$LINENO: checking complex.h usability" >&5
6578 echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6579 cat >conftest.$ac_ext <<_ACEOF
6580 /* confdefs.h. */
6581 _ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6585 $ac_includes_default
6586 #include <complex.h>
6587 _ACEOF
6588 rm -f conftest.$ac_objext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590 (eval $ac_compile) 2>conftest.er1
6591 ac_status=$?
6592 grep -v '^ *+' conftest.er1 >conftest.err
6593 rm -f conftest.er1
6594 cat conftest.err >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
6597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 (eval $ac_try) 2>&5
6600 ac_status=$?
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try='test -s conftest.$ac_objext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6609 ac_header_compiler=yes
6610 else
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6614 ac_header_compiler=no
6616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6618 echo "${ECHO_T}$ac_header_compiler" >&6
6620 # Is the header present?
6621 echo "$as_me:$LINENO: checking complex.h presence" >&5
6622 echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6623 cat >conftest.$ac_ext <<_ACEOF
6624 /* confdefs.h. */
6625 _ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6629 #include <complex.h>
6630 _ACEOF
6631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6633 ac_status=$?
6634 grep -v '^ *+' conftest.er1 >conftest.err
6635 rm -f conftest.er1
6636 cat conftest.err >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } >/dev/null; then
6639 if test -s conftest.err; then
6640 ac_cpp_err=$ac_c_preproc_warn_flag
6641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6642 else
6643 ac_cpp_err=
6645 else
6646 ac_cpp_err=yes
6648 if test -z "$ac_cpp_err"; then
6649 ac_header_preproc=yes
6650 else
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6654 ac_header_preproc=no
6656 rm -f conftest.err conftest.$ac_ext
6657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6658 echo "${ECHO_T}$ac_header_preproc" >&6
6660 # So? What about this header?
6661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6662 yes:no: )
6663 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6664 echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6665 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6666 echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6667 ac_header_preproc=yes
6669 no:yes:* )
6670 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6671 echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
6673 echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6675 echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5
6677 echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6679 echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6681 echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6683 cat <<\_ASBOX
6684 ## ------------------------------------------------------ ##
6685 ## Report this to the GNU Fortran Runtime Library lists. ##
6686 ## ------------------------------------------------------ ##
6687 _ASBOX
6689 sed "s/^/$as_me: WARNING: /" >&2
6691 esac
6692 echo "$as_me:$LINENO: checking for complex.h" >&5
6693 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6694 if test "${ac_cv_header_complex_h+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697 ac_cv_header_complex_h=$ac_header_preproc
6699 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6700 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6703 if test $ac_cv_header_complex_h = yes; then
6705 cat >>confdefs.h <<\_ACEOF
6706 #define HAVE_COMPLEX_H 1
6707 _ACEOF
6713 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6714 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6715 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718 cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h. */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 $ac_includes_default
6726 main ()
6728 static struct stat ac_aggr;
6729 if (ac_aggr.st_blksize)
6730 return 0;
6732 return 0;
6734 _ACEOF
6735 rm -f conftest.$ac_objext
6736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6737 (eval $ac_compile) 2>conftest.er1
6738 ac_status=$?
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 (eval $ac_try) 2>&5
6747 ac_status=$?
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; } &&
6750 { ac_try='test -s conftest.$ac_objext'
6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 (eval $ac_try) 2>&5
6753 ac_status=$?
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; }; then
6756 ac_cv_member_struct_stat_st_blksize=yes
6757 else
6758 echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6761 cat >conftest.$ac_ext <<_ACEOF
6762 /* confdefs.h. */
6763 _ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6767 $ac_includes_default
6769 main ()
6771 static struct stat ac_aggr;
6772 if (sizeof ac_aggr.st_blksize)
6773 return 0;
6775 return 0;
6777 _ACEOF
6778 rm -f conftest.$ac_objext
6779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6780 (eval $ac_compile) 2>conftest.er1
6781 ac_status=$?
6782 grep -v '^ *+' conftest.er1 >conftest.err
6783 rm -f conftest.er1
6784 cat conftest.err >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } &&
6787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 (eval $ac_try) 2>&5
6790 ac_status=$?
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; } &&
6793 { ac_try='test -s conftest.$ac_objext'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 (eval $ac_try) 2>&5
6796 ac_status=$?
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; }; then
6799 ac_cv_member_struct_stat_st_blksize=yes
6800 else
6801 echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6804 ac_cv_member_struct_stat_st_blksize=no
6806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6810 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6811 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
6812 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6814 cat >>confdefs.h <<_ACEOF
6815 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6816 _ACEOF
6821 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6822 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6823 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826 cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h. */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 $ac_includes_default
6834 main ()
6836 static struct stat ac_aggr;
6837 if (ac_aggr.st_blocks)
6838 return 0;
6840 return 0;
6842 _ACEOF
6843 rm -f conftest.$ac_objext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6845 (eval $ac_compile) 2>conftest.er1
6846 ac_status=$?
6847 grep -v '^ *+' conftest.er1 >conftest.err
6848 rm -f conftest.er1
6849 cat conftest.err >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } &&
6852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 (eval $ac_try) 2>&5
6855 ac_status=$?
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; } &&
6858 { ac_try='test -s conftest.$ac_objext'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 (eval $ac_try) 2>&5
6861 ac_status=$?
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; }; then
6864 ac_cv_member_struct_stat_st_blocks=yes
6865 else
6866 echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.$ac_ext >&5
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h. */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6875 $ac_includes_default
6877 main ()
6879 static struct stat ac_aggr;
6880 if (sizeof ac_aggr.st_blocks)
6881 return 0;
6883 return 0;
6885 _ACEOF
6886 rm -f conftest.$ac_objext
6887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6888 (eval $ac_compile) 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
6892 cat conftest.err >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } &&
6895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 (eval $ac_try) 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; } &&
6901 { ac_try='test -s conftest.$ac_objext'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 (eval $ac_try) 2>&5
6904 ac_status=$?
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; }; then
6907 ac_cv_member_struct_stat_st_blocks=yes
6908 else
6909 echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6912 ac_cv_member_struct_stat_st_blocks=no
6914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6918 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6919 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
6920 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6922 cat >>confdefs.h <<_ACEOF
6923 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6924 _ACEOF
6929 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6930 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
6931 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934 cat >conftest.$ac_ext <<_ACEOF
6935 /* confdefs.h. */
6936 _ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6940 $ac_includes_default
6942 main ()
6944 static struct stat ac_aggr;
6945 if (ac_aggr.st_rdev)
6946 return 0;
6948 return 0;
6950 _ACEOF
6951 rm -f conftest.$ac_objext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6953 (eval $ac_compile) 2>conftest.er1
6954 ac_status=$?
6955 grep -v '^ *+' conftest.er1 >conftest.err
6956 rm -f conftest.er1
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } &&
6960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 (eval $ac_try) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; } &&
6966 { ac_try='test -s conftest.$ac_objext'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 (eval $ac_try) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 ac_cv_member_struct_stat_st_rdev=yes
6973 else
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h. */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 $ac_includes_default
6985 main ()
6987 static struct stat ac_aggr;
6988 if (sizeof ac_aggr.st_rdev)
6989 return 0;
6991 return 0;
6993 _ACEOF
6994 rm -f conftest.$ac_objext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996 (eval $ac_compile) 2>conftest.er1
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; } &&
7009 { ac_try='test -s conftest.$ac_objext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 ac_cv_member_struct_stat_st_rdev=yes
7016 else
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7020 ac_cv_member_struct_stat_st_rdev=no
7022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7026 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7027 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7028 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7030 cat >>confdefs.h <<_ACEOF
7031 #define HAVE_STRUCT_STAT_ST_RDEV 1
7032 _ACEOF
7038 # Check for complex math functions
7039 echo "$as_me:$LINENO: checking for csin in -lm" >&5
7040 echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
7041 if test "${ac_cv_lib_m_csin+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044 ac_check_lib_save_LIBS=$LIBS
7045 LIBS="-lm $LIBS"
7046 if test x$gcc_no_link = xyes; then
7047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7049 { (exit 1); exit 1; }; }
7051 cat >conftest.$ac_ext <<_ACEOF
7052 /* confdefs.h. */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7058 /* Override any gcc2 internal prototype to avoid an error. */
7059 #ifdef __cplusplus
7060 extern "C"
7061 #endif
7062 /* We use char because int might match the return type of a gcc2
7063 builtin and then its argument prototype would still apply. */
7064 char csin ();
7066 main ()
7068 csin ();
7070 return 0;
7072 _ACEOF
7073 rm -f conftest.$ac_objext conftest$ac_exeext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7075 (eval $ac_link) 2>conftest.er1
7076 ac_status=$?
7077 grep -v '^ *+' conftest.er1 >conftest.err
7078 rm -f conftest.er1
7079 cat conftest.err >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
7082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; } &&
7088 { ac_try='test -s conftest$ac_exeext'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 (eval $ac_try) 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; }; then
7094 ac_cv_lib_m_csin=yes
7095 else
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7099 ac_cv_lib_m_csin=no
7101 rm -f conftest.err conftest.$ac_objext \
7102 conftest$ac_exeext conftest.$ac_ext
7103 LIBS=$ac_check_lib_save_LIBS
7105 echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
7106 echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
7107 if test $ac_cv_lib_m_csin = yes; then
7108 need_math="no"
7109 else
7110 need_math="yes"
7114 # Check for library functions.
7120 for ac_func in getrusage times mkstemp strtof snprintf
7122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7123 echo "$as_me:$LINENO: checking for $ac_func" >&5
7124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7125 if eval "test \"\${$as_ac_var+set}\" = set"; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128 if test x$gcc_no_link = xyes; then
7129 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7130 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7131 { (exit 1); exit 1; }; }
7133 cat >conftest.$ac_ext <<_ACEOF
7134 /* confdefs.h. */
7135 _ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7141 #define $ac_func innocuous_$ac_func
7143 /* System header to define __stub macros and hopefully few prototypes,
7144 which can conflict with char $ac_func (); below.
7145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7146 <limits.h> exists even on freestanding compilers. */
7148 #ifdef __STDC__
7149 # include <limits.h>
7150 #else
7151 # include <assert.h>
7152 #endif
7154 #undef $ac_func
7156 /* Override any gcc2 internal prototype to avoid an error. */
7157 #ifdef __cplusplus
7158 extern "C"
7160 #endif
7161 /* We use char because int might match the return type of a gcc2
7162 builtin and then its argument prototype would still apply. */
7163 char $ac_func ();
7164 /* The GNU C library defines this for functions which it implements
7165 to always fail with ENOSYS. Some functions are actually named
7166 something starting with __ and the normal name is an alias. */
7167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7168 choke me
7169 #else
7170 char (*f) () = $ac_func;
7171 #endif
7172 #ifdef __cplusplus
7174 #endif
7177 main ()
7179 return f != $ac_func;
7181 return 0;
7183 _ACEOF
7184 rm -f conftest.$ac_objext conftest$ac_exeext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7186 (eval $ac_link) 2>conftest.er1
7187 ac_status=$?
7188 grep -v '^ *+' conftest.er1 >conftest.err
7189 rm -f conftest.er1
7190 cat conftest.err >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } &&
7193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 (eval $ac_try) 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; } &&
7199 { ac_try='test -s conftest$ac_exeext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 eval "$as_ac_var=yes"
7206 else
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7210 eval "$as_ac_var=no"
7212 rm -f conftest.err conftest.$ac_objext \
7213 conftest$ac_exeext conftest.$ac_ext
7215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7217 if test `eval echo '${'$as_ac_var'}'` = yes; then
7218 cat >>confdefs.h <<_ACEOF
7219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7220 _ACEOF
7223 done
7226 # Check libc for getgid, getpid, getuid
7227 echo "$as_me:$LINENO: checking for getgid in -lc" >&5
7228 echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
7229 if test "${ac_cv_lib_c_getgid+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232 ac_check_lib_save_LIBS=$LIBS
7233 LIBS="-lc $LIBS"
7234 if test x$gcc_no_link = xyes; then
7235 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7236 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7237 { (exit 1); exit 1; }; }
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7246 /* Override any gcc2 internal prototype to avoid an error. */
7247 #ifdef __cplusplus
7248 extern "C"
7249 #endif
7250 /* We use char because int might match the return type of a gcc2
7251 builtin and then its argument prototype would still apply. */
7252 char getgid ();
7254 main ()
7256 getgid ();
7258 return 0;
7260 _ACEOF
7261 rm -f conftest.$ac_objext conftest$ac_exeext
7262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7263 (eval $ac_link) 2>conftest.er1
7264 ac_status=$?
7265 grep -v '^ *+' conftest.er1 >conftest.err
7266 rm -f conftest.er1
7267 cat conftest.err >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } &&
7270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272 (eval $ac_try) 2>&5
7273 ac_status=$?
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; } &&
7276 { ac_try='test -s conftest$ac_exeext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 (eval $ac_try) 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 ac_cv_lib_c_getgid=yes
7283 else
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7287 ac_cv_lib_c_getgid=no
7289 rm -f conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
7291 LIBS=$ac_check_lib_save_LIBS
7293 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
7294 echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
7295 if test $ac_cv_lib_c_getgid = yes; then
7297 cat >>confdefs.h <<\_ACEOF
7298 #define HAVE_GETGID 1
7299 _ACEOF
7303 echo "$as_me:$LINENO: checking for getpid in -lc" >&5
7304 echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
7305 if test "${ac_cv_lib_c_getpid+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308 ac_check_lib_save_LIBS=$LIBS
7309 LIBS="-lc $LIBS"
7310 if test x$gcc_no_link = xyes; then
7311 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7312 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7313 { (exit 1); exit 1; }; }
7315 cat >conftest.$ac_ext <<_ACEOF
7316 /* confdefs.h. */
7317 _ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7322 /* Override any gcc2 internal prototype to avoid an error. */
7323 #ifdef __cplusplus
7324 extern "C"
7325 #endif
7326 /* We use char because int might match the return type of a gcc2
7327 builtin and then its argument prototype would still apply. */
7328 char getpid ();
7330 main ()
7332 getpid ();
7334 return 0;
7336 _ACEOF
7337 rm -f conftest.$ac_objext conftest$ac_exeext
7338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7339 (eval $ac_link) 2>conftest.er1
7340 ac_status=$?
7341 grep -v '^ *+' conftest.er1 >conftest.err
7342 rm -f conftest.er1
7343 cat conftest.err >&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); } &&
7346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 (eval $ac_try) 2>&5
7349 ac_status=$?
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; } &&
7352 { ac_try='test -s conftest$ac_exeext'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 (eval $ac_try) 2>&5
7355 ac_status=$?
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; }; then
7358 ac_cv_lib_c_getpid=yes
7359 else
7360 echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7363 ac_cv_lib_c_getpid=no
7365 rm -f conftest.err conftest.$ac_objext \
7366 conftest$ac_exeext conftest.$ac_ext
7367 LIBS=$ac_check_lib_save_LIBS
7369 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
7370 echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
7371 if test $ac_cv_lib_c_getpid = yes; then
7373 cat >>confdefs.h <<\_ACEOF
7374 #define HAVE_GETPID 1
7375 _ACEOF
7379 echo "$as_me:$LINENO: checking for getuid in -lc" >&5
7380 echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
7381 if test "${ac_cv_lib_c_getuid+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384 ac_check_lib_save_LIBS=$LIBS
7385 LIBS="-lc $LIBS"
7386 if test x$gcc_no_link = xyes; then
7387 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7388 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7389 { (exit 1); exit 1; }; }
7391 cat >conftest.$ac_ext <<_ACEOF
7392 /* confdefs.h. */
7393 _ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7398 /* Override any gcc2 internal prototype to avoid an error. */
7399 #ifdef __cplusplus
7400 extern "C"
7401 #endif
7402 /* We use char because int might match the return type of a gcc2
7403 builtin and then its argument prototype would still apply. */
7404 char getuid ();
7406 main ()
7408 getuid ();
7410 return 0;
7412 _ACEOF
7413 rm -f conftest.$ac_objext conftest$ac_exeext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7415 (eval $ac_link) 2>conftest.er1
7416 ac_status=$?
7417 grep -v '^ *+' conftest.er1 >conftest.err
7418 rm -f conftest.er1
7419 cat conftest.err >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } &&
7422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424 (eval $ac_try) 2>&5
7425 ac_status=$?
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); }; } &&
7428 { ac_try='test -s conftest$ac_exeext'
7429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 (eval $ac_try) 2>&5
7431 ac_status=$?
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); }; }; then
7434 ac_cv_lib_c_getuid=yes
7435 else
7436 echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7439 ac_cv_lib_c_getuid=no
7441 rm -f conftest.err conftest.$ac_objext \
7442 conftest$ac_exeext conftest.$ac_ext
7443 LIBS=$ac_check_lib_save_LIBS
7445 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
7446 echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
7447 if test $ac_cv_lib_c_getuid = yes; then
7449 cat >>confdefs.h <<\_ACEOF
7450 #define HAVE_GETUID 1
7451 _ACEOF
7456 # Check for C99 (and other IEEE) math functions
7457 # ??? This list seems awful long. Is there a better way to test for these?
7458 echo "$as_me:$LINENO: checking for acosf in -lm" >&5
7459 echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
7460 if test "${ac_cv_lib_m_acosf+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 else
7463 ac_check_lib_save_LIBS=$LIBS
7464 LIBS="-lm $LIBS"
7465 if test x$gcc_no_link = xyes; then
7466 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7467 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7468 { (exit 1); exit 1; }; }
7470 cat >conftest.$ac_ext <<_ACEOF
7471 /* confdefs.h. */
7472 _ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7477 /* Override any gcc2 internal prototype to avoid an error. */
7478 #ifdef __cplusplus
7479 extern "C"
7480 #endif
7481 /* We use char because int might match the return type of a gcc2
7482 builtin and then its argument prototype would still apply. */
7483 char acosf ();
7485 main ()
7487 acosf ();
7489 return 0;
7491 _ACEOF
7492 rm -f conftest.$ac_objext conftest$ac_exeext
7493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7494 (eval $ac_link) 2>conftest.er1
7495 ac_status=$?
7496 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -f conftest.er1
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 (eval $ac_try) 2>&5
7504 ac_status=$?
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; } &&
7507 { ac_try='test -s conftest$ac_exeext'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509 (eval $ac_try) 2>&5
7510 ac_status=$?
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; }; then
7513 ac_cv_lib_m_acosf=yes
7514 else
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7518 ac_cv_lib_m_acosf=no
7520 rm -f conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522 LIBS=$ac_check_lib_save_LIBS
7524 echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
7525 echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
7526 if test $ac_cv_lib_m_acosf = yes; then
7528 cat >>confdefs.h <<\_ACEOF
7529 #define HAVE_ACOSF 1
7530 _ACEOF
7534 echo "$as_me:$LINENO: checking for asinf in -lm" >&5
7535 echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
7536 if test "${ac_cv_lib_m_asinf+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 else
7539 ac_check_lib_save_LIBS=$LIBS
7540 LIBS="-lm $LIBS"
7541 if test x$gcc_no_link = xyes; then
7542 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7543 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7544 { (exit 1); exit 1; }; }
7546 cat >conftest.$ac_ext <<_ACEOF
7547 /* confdefs.h. */
7548 _ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7553 /* Override any gcc2 internal prototype to avoid an error. */
7554 #ifdef __cplusplus
7555 extern "C"
7556 #endif
7557 /* We use char because int might match the return type of a gcc2
7558 builtin and then its argument prototype would still apply. */
7559 char asinf ();
7561 main ()
7563 asinf ();
7565 return 0;
7567 _ACEOF
7568 rm -f conftest.$ac_objext conftest$ac_exeext
7569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7570 (eval $ac_link) 2>conftest.er1
7571 ac_status=$?
7572 grep -v '^ *+' conftest.er1 >conftest.err
7573 rm -f conftest.er1
7574 cat conftest.err >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } &&
7577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 (eval $ac_try) 2>&5
7580 ac_status=$?
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; } &&
7583 { ac_try='test -s conftest$ac_exeext'
7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585 (eval $ac_try) 2>&5
7586 ac_status=$?
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); }; }; then
7589 ac_cv_lib_m_asinf=yes
7590 else
7591 echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7594 ac_cv_lib_m_asinf=no
7596 rm -f conftest.err conftest.$ac_objext \
7597 conftest$ac_exeext conftest.$ac_ext
7598 LIBS=$ac_check_lib_save_LIBS
7600 echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
7601 echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
7602 if test $ac_cv_lib_m_asinf = yes; then
7604 cat >>confdefs.h <<\_ACEOF
7605 #define HAVE_ASINF 1
7606 _ACEOF
7610 echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
7611 echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
7612 if test "${ac_cv_lib_m_atan2f+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615 ac_check_lib_save_LIBS=$LIBS
7616 LIBS="-lm $LIBS"
7617 if test x$gcc_no_link = xyes; then
7618 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7619 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7620 { (exit 1); exit 1; }; }
7622 cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h. */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7629 /* Override any gcc2 internal prototype to avoid an error. */
7630 #ifdef __cplusplus
7631 extern "C"
7632 #endif
7633 /* We use char because int might match the return type of a gcc2
7634 builtin and then its argument prototype would still apply. */
7635 char atan2f ();
7637 main ()
7639 atan2f ();
7641 return 0;
7643 _ACEOF
7644 rm -f conftest.$ac_objext conftest$ac_exeext
7645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7646 (eval $ac_link) 2>conftest.er1
7647 ac_status=$?
7648 grep -v '^ *+' conftest.er1 >conftest.err
7649 rm -f conftest.er1
7650 cat conftest.err >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } &&
7653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 (eval $ac_try) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; } &&
7659 { ac_try='test -s conftest$ac_exeext'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 (eval $ac_try) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; }; then
7665 ac_cv_lib_m_atan2f=yes
7666 else
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 ac_cv_lib_m_atan2f=no
7672 rm -f conftest.err conftest.$ac_objext \
7673 conftest$ac_exeext conftest.$ac_ext
7674 LIBS=$ac_check_lib_save_LIBS
7676 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
7677 echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
7678 if test $ac_cv_lib_m_atan2f = yes; then
7680 cat >>confdefs.h <<\_ACEOF
7681 #define HAVE_ATAN2F 1
7682 _ACEOF
7686 echo "$as_me:$LINENO: checking for atanf in -lm" >&5
7687 echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
7688 if test "${ac_cv_lib_m_atanf+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691 ac_check_lib_save_LIBS=$LIBS
7692 LIBS="-lm $LIBS"
7693 if test x$gcc_no_link = xyes; then
7694 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7695 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7696 { (exit 1); exit 1; }; }
7698 cat >conftest.$ac_ext <<_ACEOF
7699 /* confdefs.h. */
7700 _ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7705 /* Override any gcc2 internal prototype to avoid an error. */
7706 #ifdef __cplusplus
7707 extern "C"
7708 #endif
7709 /* We use char because int might match the return type of a gcc2
7710 builtin and then its argument prototype would still apply. */
7711 char atanf ();
7713 main ()
7715 atanf ();
7717 return 0;
7719 _ACEOF
7720 rm -f conftest.$ac_objext conftest$ac_exeext
7721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7722 (eval $ac_link) 2>conftest.er1
7723 ac_status=$?
7724 grep -v '^ *+' conftest.er1 >conftest.err
7725 rm -f conftest.er1
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
7729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 (eval $ac_try) 2>&5
7732 ac_status=$?
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; } &&
7735 { ac_try='test -s conftest$ac_exeext'
7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 (eval $ac_try) 2>&5
7738 ac_status=$?
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; }; then
7741 ac_cv_lib_m_atanf=yes
7742 else
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7746 ac_cv_lib_m_atanf=no
7748 rm -f conftest.err conftest.$ac_objext \
7749 conftest$ac_exeext conftest.$ac_ext
7750 LIBS=$ac_check_lib_save_LIBS
7752 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
7753 echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
7754 if test $ac_cv_lib_m_atanf = yes; then
7756 cat >>confdefs.h <<\_ACEOF
7757 #define HAVE_ATANF 1
7758 _ACEOF
7762 echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
7763 echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
7764 if test "${ac_cv_lib_m_ceilf+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767 ac_check_lib_save_LIBS=$LIBS
7768 LIBS="-lm $LIBS"
7769 if test x$gcc_no_link = xyes; then
7770 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7771 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7772 { (exit 1); exit 1; }; }
7774 cat >conftest.$ac_ext <<_ACEOF
7775 /* confdefs.h. */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7781 /* Override any gcc2 internal prototype to avoid an error. */
7782 #ifdef __cplusplus
7783 extern "C"
7784 #endif
7785 /* We use char because int might match the return type of a gcc2
7786 builtin and then its argument prototype would still apply. */
7787 char ceilf ();
7789 main ()
7791 ceilf ();
7793 return 0;
7795 _ACEOF
7796 rm -f conftest.$ac_objext conftest$ac_exeext
7797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798 (eval $ac_link) 2>conftest.er1
7799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } &&
7805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 (eval $ac_try) 2>&5
7808 ac_status=$?
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; } &&
7811 { ac_try='test -s conftest$ac_exeext'
7812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813 (eval $ac_try) 2>&5
7814 ac_status=$?
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); }; }; then
7817 ac_cv_lib_m_ceilf=yes
7818 else
7819 echo "$as_me: failed program was:" >&5
7820 sed 's/^/| /' conftest.$ac_ext >&5
7822 ac_cv_lib_m_ceilf=no
7824 rm -f conftest.err conftest.$ac_objext \
7825 conftest$ac_exeext conftest.$ac_ext
7826 LIBS=$ac_check_lib_save_LIBS
7828 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
7829 echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
7830 if test $ac_cv_lib_m_ceilf = yes; then
7832 cat >>confdefs.h <<\_ACEOF
7833 #define HAVE_CEILF 1
7834 _ACEOF
7838 echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
7839 echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
7840 if test "${ac_cv_lib_m_copysignf+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843 ac_check_lib_save_LIBS=$LIBS
7844 LIBS="-lm $LIBS"
7845 if test x$gcc_no_link = xyes; then
7846 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7848 { (exit 1); exit 1; }; }
7850 cat >conftest.$ac_ext <<_ACEOF
7851 /* confdefs.h. */
7852 _ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h. */
7857 /* Override any gcc2 internal prototype to avoid an error. */
7858 #ifdef __cplusplus
7859 extern "C"
7860 #endif
7861 /* We use char because int might match the return type of a gcc2
7862 builtin and then its argument prototype would still apply. */
7863 char copysignf ();
7865 main ()
7867 copysignf ();
7869 return 0;
7871 _ACEOF
7872 rm -f conftest.$ac_objext conftest$ac_exeext
7873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7874 (eval $ac_link) 2>conftest.er1
7875 ac_status=$?
7876 grep -v '^ *+' conftest.er1 >conftest.err
7877 rm -f conftest.er1
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } &&
7881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 (eval $ac_try) 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 (eval $ac_try) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 ac_cv_lib_m_copysignf=yes
7894 else
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7898 ac_cv_lib_m_copysignf=no
7900 rm -f conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7902 LIBS=$ac_check_lib_save_LIBS
7904 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
7905 echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
7906 if test $ac_cv_lib_m_copysignf = yes; then
7908 cat >>confdefs.h <<\_ACEOF
7909 #define HAVE_COPYSIGNF 1
7910 _ACEOF
7914 echo "$as_me:$LINENO: checking for cosf in -lm" >&5
7915 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
7916 if test "${ac_cv_lib_m_cosf+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919 ac_check_lib_save_LIBS=$LIBS
7920 LIBS="-lm $LIBS"
7921 if test x$gcc_no_link = xyes; then
7922 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7923 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7924 { (exit 1); exit 1; }; }
7926 cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h. */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7933 /* Override any gcc2 internal prototype to avoid an error. */
7934 #ifdef __cplusplus
7935 extern "C"
7936 #endif
7937 /* We use char because int might match the return type of a gcc2
7938 builtin and then its argument prototype would still apply. */
7939 char cosf ();
7941 main ()
7943 cosf ();
7945 return 0;
7947 _ACEOF
7948 rm -f conftest.$ac_objext conftest$ac_exeext
7949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7950 (eval $ac_link) 2>conftest.er1
7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
7957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 (eval $ac_try) 2>&5
7960 ac_status=$?
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; } &&
7963 { ac_try='test -s conftest$ac_exeext'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7969 ac_cv_lib_m_cosf=yes
7970 else
7971 echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7974 ac_cv_lib_m_cosf=no
7976 rm -f conftest.err conftest.$ac_objext \
7977 conftest$ac_exeext conftest.$ac_ext
7978 LIBS=$ac_check_lib_save_LIBS
7980 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
7981 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
7982 if test $ac_cv_lib_m_cosf = yes; then
7984 cat >>confdefs.h <<\_ACEOF
7985 #define HAVE_COSF 1
7986 _ACEOF
7990 echo "$as_me:$LINENO: checking for coshf in -lm" >&5
7991 echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
7992 if test "${ac_cv_lib_m_coshf+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995 ac_check_lib_save_LIBS=$LIBS
7996 LIBS="-lm $LIBS"
7997 if test x$gcc_no_link = xyes; then
7998 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7999 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8000 { (exit 1); exit 1; }; }
8002 cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h. */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8009 /* Override any gcc2 internal prototype to avoid an error. */
8010 #ifdef __cplusplus
8011 extern "C"
8012 #endif
8013 /* We use char because int might match the return type of a gcc2
8014 builtin and then its argument prototype would still apply. */
8015 char coshf ();
8017 main ()
8019 coshf ();
8021 return 0;
8023 _ACEOF
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026 (eval $ac_link) 2>conftest.er1
8027 ac_status=$?
8028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 (eval $ac_try) 2>&5
8036 ac_status=$?
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; } &&
8039 { ac_try='test -s conftest$ac_exeext'
8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 (eval $ac_try) 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; }; then
8045 ac_cv_lib_m_coshf=yes
8046 else
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8050 ac_cv_lib_m_coshf=no
8052 rm -f conftest.err conftest.$ac_objext \
8053 conftest$ac_exeext conftest.$ac_ext
8054 LIBS=$ac_check_lib_save_LIBS
8056 echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
8057 echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
8058 if test $ac_cv_lib_m_coshf = yes; then
8060 cat >>confdefs.h <<\_ACEOF
8061 #define HAVE_COSHF 1
8062 _ACEOF
8066 echo "$as_me:$LINENO: checking for expf in -lm" >&5
8067 echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
8068 if test "${ac_cv_lib_m_expf+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071 ac_check_lib_save_LIBS=$LIBS
8072 LIBS="-lm $LIBS"
8073 if test x$gcc_no_link = xyes; then
8074 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8075 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8076 { (exit 1); exit 1; }; }
8078 cat >conftest.$ac_ext <<_ACEOF
8079 /* confdefs.h. */
8080 _ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8085 /* Override any gcc2 internal prototype to avoid an error. */
8086 #ifdef __cplusplus
8087 extern "C"
8088 #endif
8089 /* We use char because int might match the return type of a gcc2
8090 builtin and then its argument prototype would still apply. */
8091 char expf ();
8093 main ()
8095 expf ();
8097 return 0;
8099 _ACEOF
8100 rm -f conftest.$ac_objext conftest$ac_exeext
8101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8102 (eval $ac_link) 2>conftest.er1
8103 ac_status=$?
8104 grep -v '^ *+' conftest.er1 >conftest.err
8105 rm -f conftest.er1
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } &&
8109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 (eval $ac_try) 2>&5
8112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; } &&
8115 { ac_try='test -s conftest$ac_exeext'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 (eval $ac_try) 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; }; then
8121 ac_cv_lib_m_expf=yes
8122 else
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8126 ac_cv_lib_m_expf=no
8128 rm -f conftest.err conftest.$ac_objext \
8129 conftest$ac_exeext conftest.$ac_ext
8130 LIBS=$ac_check_lib_save_LIBS
8132 echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
8133 echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
8134 if test $ac_cv_lib_m_expf = yes; then
8136 cat >>confdefs.h <<\_ACEOF
8137 #define HAVE_EXPF 1
8138 _ACEOF
8142 echo "$as_me:$LINENO: checking for floorf in -lm" >&5
8143 echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
8144 if test "${ac_cv_lib_m_floorf+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147 ac_check_lib_save_LIBS=$LIBS
8148 LIBS="-lm $LIBS"
8149 if test x$gcc_no_link = xyes; then
8150 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8151 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8152 { (exit 1); exit 1; }; }
8154 cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h. */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8161 /* Override any gcc2 internal prototype to avoid an error. */
8162 #ifdef __cplusplus
8163 extern "C"
8164 #endif
8165 /* We use char because int might match the return type of a gcc2
8166 builtin and then its argument prototype would still apply. */
8167 char floorf ();
8169 main ()
8171 floorf ();
8173 return 0;
8175 _ACEOF
8176 rm -f conftest.$ac_objext conftest$ac_exeext
8177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8178 (eval $ac_link) 2>conftest.er1
8179 ac_status=$?
8180 grep -v '^ *+' conftest.er1 >conftest.err
8181 rm -f conftest.er1
8182 cat conftest.err >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } &&
8185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 (eval $ac_try) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; } &&
8191 { ac_try='test -s conftest$ac_exeext'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 (eval $ac_try) 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8197 ac_cv_lib_m_floorf=yes
8198 else
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8202 ac_cv_lib_m_floorf=no
8204 rm -f conftest.err conftest.$ac_objext \
8205 conftest$ac_exeext conftest.$ac_ext
8206 LIBS=$ac_check_lib_save_LIBS
8208 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
8209 echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
8210 if test $ac_cv_lib_m_floorf = yes; then
8212 cat >>confdefs.h <<\_ACEOF
8213 #define HAVE_FLOORF 1
8214 _ACEOF
8218 echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
8219 echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
8220 if test "${ac_cv_lib_m_frexpf+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223 ac_check_lib_save_LIBS=$LIBS
8224 LIBS="-lm $LIBS"
8225 if test x$gcc_no_link = xyes; then
8226 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8227 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8228 { (exit 1); exit 1; }; }
8230 cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h. */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8237 /* Override any gcc2 internal prototype to avoid an error. */
8238 #ifdef __cplusplus
8239 extern "C"
8240 #endif
8241 /* We use char because int might match the return type of a gcc2
8242 builtin and then its argument prototype would still apply. */
8243 char frexpf ();
8245 main ()
8247 frexpf ();
8249 return 0;
8251 _ACEOF
8252 rm -f conftest.$ac_objext conftest$ac_exeext
8253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8254 (eval $ac_link) 2>conftest.er1
8255 ac_status=$?
8256 grep -v '^ *+' conftest.er1 >conftest.err
8257 rm -f conftest.er1
8258 cat conftest.err >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } &&
8261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 (eval $ac_try) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; } &&
8267 { ac_try='test -s conftest$ac_exeext'
8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 (eval $ac_try) 2>&5
8270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; }; then
8273 ac_cv_lib_m_frexpf=yes
8274 else
8275 echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8278 ac_cv_lib_m_frexpf=no
8280 rm -f conftest.err conftest.$ac_objext \
8281 conftest$ac_exeext conftest.$ac_ext
8282 LIBS=$ac_check_lib_save_LIBS
8284 echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
8285 echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
8286 if test $ac_cv_lib_m_frexpf = yes; then
8288 cat >>confdefs.h <<\_ACEOF
8289 #define HAVE_FREXPF 1
8290 _ACEOF
8294 echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
8295 echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
8296 if test "${ac_cv_lib_m_hypotf+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 else
8299 ac_check_lib_save_LIBS=$LIBS
8300 LIBS="-lm $LIBS"
8301 if test x$gcc_no_link = xyes; then
8302 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8303 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8304 { (exit 1); exit 1; }; }
8306 cat >conftest.$ac_ext <<_ACEOF
8307 /* confdefs.h. */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8313 /* Override any gcc2 internal prototype to avoid an error. */
8314 #ifdef __cplusplus
8315 extern "C"
8316 #endif
8317 /* We use char because int might match the return type of a gcc2
8318 builtin and then its argument prototype would still apply. */
8319 char hypotf ();
8321 main ()
8323 hypotf ();
8325 return 0;
8327 _ACEOF
8328 rm -f conftest.$ac_objext conftest$ac_exeext
8329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8330 (eval $ac_link) 2>conftest.er1
8331 ac_status=$?
8332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 (eval $ac_try) 2>&5
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; } &&
8343 { ac_try='test -s conftest$ac_exeext'
8344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 (eval $ac_try) 2>&5
8346 ac_status=$?
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); }; }; then
8349 ac_cv_lib_m_hypotf=yes
8350 else
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8354 ac_cv_lib_m_hypotf=no
8356 rm -f conftest.err conftest.$ac_objext \
8357 conftest$ac_exeext conftest.$ac_ext
8358 LIBS=$ac_check_lib_save_LIBS
8360 echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
8361 echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
8362 if test $ac_cv_lib_m_hypotf = yes; then
8364 cat >>confdefs.h <<\_ACEOF
8365 #define HAVE_HYPOTF 1
8366 _ACEOF
8370 echo "$as_me:$LINENO: checking for logf in -lm" >&5
8371 echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
8372 if test "${ac_cv_lib_m_logf+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375 ac_check_lib_save_LIBS=$LIBS
8376 LIBS="-lm $LIBS"
8377 if test x$gcc_no_link = xyes; then
8378 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8379 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8380 { (exit 1); exit 1; }; }
8382 cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h. */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8389 /* Override any gcc2 internal prototype to avoid an error. */
8390 #ifdef __cplusplus
8391 extern "C"
8392 #endif
8393 /* We use char because int might match the return type of a gcc2
8394 builtin and then its argument prototype would still apply. */
8395 char logf ();
8397 main ()
8399 logf ();
8401 return 0;
8403 _ACEOF
8404 rm -f conftest.$ac_objext conftest$ac_exeext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8406 (eval $ac_link) 2>conftest.er1
8407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; } &&
8419 { ac_try='test -s conftest$ac_exeext'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 (eval $ac_try) 2>&5
8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425 ac_cv_lib_m_logf=yes
8426 else
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 ac_cv_lib_m_logf=no
8432 rm -f conftest.err conftest.$ac_objext \
8433 conftest$ac_exeext conftest.$ac_ext
8434 LIBS=$ac_check_lib_save_LIBS
8436 echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
8437 echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
8438 if test $ac_cv_lib_m_logf = yes; then
8440 cat >>confdefs.h <<\_ACEOF
8441 #define HAVE_LOGF 1
8442 _ACEOF
8446 echo "$as_me:$LINENO: checking for log10f in -lm" >&5
8447 echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
8448 if test "${ac_cv_lib_m_log10f+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451 ac_check_lib_save_LIBS=$LIBS
8452 LIBS="-lm $LIBS"
8453 if test x$gcc_no_link = xyes; then
8454 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8455 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8456 { (exit 1); exit 1; }; }
8458 cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h. */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8465 /* Override any gcc2 internal prototype to avoid an error. */
8466 #ifdef __cplusplus
8467 extern "C"
8468 #endif
8469 /* We use char because int might match the return type of a gcc2
8470 builtin and then its argument prototype would still apply. */
8471 char log10f ();
8473 main ()
8475 log10f ();
8477 return 0;
8479 _ACEOF
8480 rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8482 (eval $ac_link) 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } &&
8489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 (eval $ac_try) 2>&5
8492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; } &&
8495 { ac_try='test -s conftest$ac_exeext'
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 (eval $ac_try) 2>&5
8498 ac_status=$?
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
8501 ac_cv_lib_m_log10f=yes
8502 else
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8506 ac_cv_lib_m_log10f=no
8508 rm -f conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8510 LIBS=$ac_check_lib_save_LIBS
8512 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
8513 echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
8514 if test $ac_cv_lib_m_log10f = yes; then
8516 cat >>confdefs.h <<\_ACEOF
8517 #define HAVE_LOG10F 1
8518 _ACEOF
8522 echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
8523 echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
8524 if test "${ac_cv_lib_m_nextafter+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527 ac_check_lib_save_LIBS=$LIBS
8528 LIBS="-lm $LIBS"
8529 if test x$gcc_no_link = xyes; then
8530 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8531 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8532 { (exit 1); exit 1; }; }
8534 cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h. */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8541 /* Override any gcc2 internal prototype to avoid an error. */
8542 #ifdef __cplusplus
8543 extern "C"
8544 #endif
8545 /* We use char because int might match the return type of a gcc2
8546 builtin and then its argument prototype would still apply. */
8547 char nextafter ();
8549 main ()
8551 nextafter ();
8553 return 0;
8555 _ACEOF
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>conftest.er1
8559 ac_status=$?
8560 grep -v '^ *+' conftest.er1 >conftest.err
8561 rm -f conftest.er1
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } &&
8565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 (eval $ac_try) 2>&5
8568 ac_status=$?
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; } &&
8571 { ac_try='test -s conftest$ac_exeext'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 (eval $ac_try) 2>&5
8574 ac_status=$?
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; }; then
8577 ac_cv_lib_m_nextafter=yes
8578 else
8579 echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8582 ac_cv_lib_m_nextafter=no
8584 rm -f conftest.err conftest.$ac_objext \
8585 conftest$ac_exeext conftest.$ac_ext
8586 LIBS=$ac_check_lib_save_LIBS
8588 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
8589 echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
8590 if test $ac_cv_lib_m_nextafter = yes; then
8592 cat >>confdefs.h <<\_ACEOF
8593 #define HAVE_NEXTAFTER 1
8594 _ACEOF
8598 echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
8599 echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
8600 if test "${ac_cv_lib_m_nextafterf+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603 ac_check_lib_save_LIBS=$LIBS
8604 LIBS="-lm $LIBS"
8605 if test x$gcc_no_link = xyes; then
8606 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8607 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8608 { (exit 1); exit 1; }; }
8610 cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h. */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8617 /* Override any gcc2 internal prototype to avoid an error. */
8618 #ifdef __cplusplus
8619 extern "C"
8620 #endif
8621 /* We use char because int might match the return type of a gcc2
8622 builtin and then its argument prototype would still apply. */
8623 char nextafterf ();
8625 main ()
8627 nextafterf ();
8629 return 0;
8631 _ACEOF
8632 rm -f conftest.$ac_objext conftest$ac_exeext
8633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8634 (eval $ac_link) 2>conftest.er1
8635 ac_status=$?
8636 grep -v '^ *+' conftest.er1 >conftest.err
8637 rm -f conftest.er1
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } &&
8641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; } &&
8647 { ac_try='test -s conftest$ac_exeext'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 (eval $ac_try) 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 ac_cv_lib_m_nextafterf=yes
8654 else
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8658 ac_cv_lib_m_nextafterf=no
8660 rm -f conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8662 LIBS=$ac_check_lib_save_LIBS
8664 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
8665 echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
8666 if test $ac_cv_lib_m_nextafterf = yes; then
8668 cat >>confdefs.h <<\_ACEOF
8669 #define HAVE_NEXTAFTERF 1
8670 _ACEOF
8674 echo "$as_me:$LINENO: checking for powf in -lm" >&5
8675 echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
8676 if test "${ac_cv_lib_m_powf+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679 ac_check_lib_save_LIBS=$LIBS
8680 LIBS="-lm $LIBS"
8681 if test x$gcc_no_link = xyes; then
8682 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8683 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8684 { (exit 1); exit 1; }; }
8686 cat >conftest.$ac_ext <<_ACEOF
8687 /* confdefs.h. */
8688 _ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8693 /* Override any gcc2 internal prototype to avoid an error. */
8694 #ifdef __cplusplus
8695 extern "C"
8696 #endif
8697 /* We use char because int might match the return type of a gcc2
8698 builtin and then its argument prototype would still apply. */
8699 char powf ();
8701 main ()
8703 powf ();
8705 return 0;
8707 _ACEOF
8708 rm -f conftest.$ac_objext conftest$ac_exeext
8709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710 (eval $ac_link) 2>conftest.er1
8711 ac_status=$?
8712 grep -v '^ *+' conftest.er1 >conftest.err
8713 rm -f conftest.er1
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } &&
8717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest$ac_exeext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 (eval $ac_try) 2>&5
8726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 ac_cv_lib_m_powf=yes
8730 else
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8734 ac_cv_lib_m_powf=no
8736 rm -f conftest.err conftest.$ac_objext \
8737 conftest$ac_exeext conftest.$ac_ext
8738 LIBS=$ac_check_lib_save_LIBS
8740 echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
8741 echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
8742 if test $ac_cv_lib_m_powf = yes; then
8744 cat >>confdefs.h <<\_ACEOF
8745 #define HAVE_POWF 1
8746 _ACEOF
8750 echo "$as_me:$LINENO: checking for round in -lm" >&5
8751 echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
8752 if test "${ac_cv_lib_m_round+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755 ac_check_lib_save_LIBS=$LIBS
8756 LIBS="-lm $LIBS"
8757 if test x$gcc_no_link = xyes; then
8758 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8759 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8760 { (exit 1); exit 1; }; }
8762 cat >conftest.$ac_ext <<_ACEOF
8763 /* confdefs.h. */
8764 _ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8769 /* Override any gcc2 internal prototype to avoid an error. */
8770 #ifdef __cplusplus
8771 extern "C"
8772 #endif
8773 /* We use char because int might match the return type of a gcc2
8774 builtin and then its argument prototype would still apply. */
8775 char round ();
8777 main ()
8779 round ();
8781 return 0;
8783 _ACEOF
8784 rm -f conftest.$ac_objext conftest$ac_exeext
8785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8786 (eval $ac_link) 2>conftest.er1
8787 ac_status=$?
8788 grep -v '^ *+' conftest.er1 >conftest.err
8789 rm -f conftest.er1
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } &&
8793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 (eval $ac_try) 2>&5
8796 ac_status=$?
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; } &&
8799 { ac_try='test -s conftest$ac_exeext'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 (eval $ac_try) 2>&5
8802 ac_status=$?
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; }; then
8805 ac_cv_lib_m_round=yes
8806 else
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8810 ac_cv_lib_m_round=no
8812 rm -f conftest.err conftest.$ac_objext \
8813 conftest$ac_exeext conftest.$ac_ext
8814 LIBS=$ac_check_lib_save_LIBS
8816 echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
8817 echo "${ECHO_T}$ac_cv_lib_m_round" >&6
8818 if test $ac_cv_lib_m_round = yes; then
8820 cat >>confdefs.h <<\_ACEOF
8821 #define HAVE_ROUND 1
8822 _ACEOF
8826 echo "$as_me:$LINENO: checking for roundf in -lm" >&5
8827 echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
8828 if test "${ac_cv_lib_m_roundf+set}" = set; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8830 else
8831 ac_check_lib_save_LIBS=$LIBS
8832 LIBS="-lm $LIBS"
8833 if test x$gcc_no_link = xyes; then
8834 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8835 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8836 { (exit 1); exit 1; }; }
8838 cat >conftest.$ac_ext <<_ACEOF
8839 /* confdefs.h. */
8840 _ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8845 /* Override any gcc2 internal prototype to avoid an error. */
8846 #ifdef __cplusplus
8847 extern "C"
8848 #endif
8849 /* We use char because int might match the return type of a gcc2
8850 builtin and then its argument prototype would still apply. */
8851 char roundf ();
8853 main ()
8855 roundf ();
8857 return 0;
8859 _ACEOF
8860 rm -f conftest.$ac_objext conftest$ac_exeext
8861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8862 (eval $ac_link) 2>conftest.er1
8863 ac_status=$?
8864 grep -v '^ *+' conftest.er1 >conftest.err
8865 rm -f conftest.er1
8866 cat conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } &&
8869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest$ac_exeext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 (eval $ac_try) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 ac_cv_lib_m_roundf=yes
8882 else
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8886 ac_cv_lib_m_roundf=no
8888 rm -f conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
8890 LIBS=$ac_check_lib_save_LIBS
8892 echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
8893 echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
8894 if test $ac_cv_lib_m_roundf = yes; then
8896 cat >>confdefs.h <<\_ACEOF
8897 #define HAVE_ROUNDF 1
8898 _ACEOF
8902 echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
8903 echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
8904 if test "${ac_cv_lib_m_scalbnf+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 else
8907 ac_check_lib_save_LIBS=$LIBS
8908 LIBS="-lm $LIBS"
8909 if test x$gcc_no_link = xyes; then
8910 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8911 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8912 { (exit 1); exit 1; }; }
8914 cat >conftest.$ac_ext <<_ACEOF
8915 /* confdefs.h. */
8916 _ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8921 /* Override any gcc2 internal prototype to avoid an error. */
8922 #ifdef __cplusplus
8923 extern "C"
8924 #endif
8925 /* We use char because int might match the return type of a gcc2
8926 builtin and then its argument prototype would still apply. */
8927 char scalbnf ();
8929 main ()
8931 scalbnf ();
8933 return 0;
8935 _ACEOF
8936 rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8938 (eval $ac_link) 2>conftest.er1
8939 ac_status=$?
8940 grep -v '^ *+' conftest.er1 >conftest.err
8941 rm -f conftest.er1
8942 cat conftest.err >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; } &&
8951 { ac_try='test -s conftest$ac_exeext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 ac_cv_lib_m_scalbnf=yes
8958 else
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8962 ac_cv_lib_m_scalbnf=no
8964 rm -f conftest.err conftest.$ac_objext \
8965 conftest$ac_exeext conftest.$ac_ext
8966 LIBS=$ac_check_lib_save_LIBS
8968 echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
8969 echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
8970 if test $ac_cv_lib_m_scalbnf = yes; then
8972 cat >>confdefs.h <<\_ACEOF
8973 #define HAVE_SCALBNF 1
8974 _ACEOF
8978 echo "$as_me:$LINENO: checking for sinf in -lm" >&5
8979 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
8980 if test "${ac_cv_lib_m_sinf+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983 ac_check_lib_save_LIBS=$LIBS
8984 LIBS="-lm $LIBS"
8985 if test x$gcc_no_link = xyes; then
8986 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8987 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8988 { (exit 1); exit 1; }; }
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h. */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8997 /* Override any gcc2 internal prototype to avoid an error. */
8998 #ifdef __cplusplus
8999 extern "C"
9000 #endif
9001 /* We use char because int might match the return type of a gcc2
9002 builtin and then its argument prototype would still apply. */
9003 char sinf ();
9005 main ()
9007 sinf ();
9009 return 0;
9011 _ACEOF
9012 rm -f conftest.$ac_objext conftest$ac_exeext
9013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9014 (eval $ac_link) 2>conftest.er1
9015 ac_status=$?
9016 grep -v '^ *+' conftest.er1 >conftest.err
9017 rm -f conftest.er1
9018 cat conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } &&
9021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 (eval $ac_try) 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; } &&
9027 { ac_try='test -s conftest$ac_exeext'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 (eval $ac_try) 2>&5
9030 ac_status=$?
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; }; then
9033 ac_cv_lib_m_sinf=yes
9034 else
9035 echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.$ac_ext >&5
9038 ac_cv_lib_m_sinf=no
9040 rm -f conftest.err conftest.$ac_objext \
9041 conftest$ac_exeext conftest.$ac_ext
9042 LIBS=$ac_check_lib_save_LIBS
9044 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
9045 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
9046 if test $ac_cv_lib_m_sinf = yes; then
9048 cat >>confdefs.h <<\_ACEOF
9049 #define HAVE_SINF 1
9050 _ACEOF
9054 echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
9055 echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
9056 if test "${ac_cv_lib_m_sinhf+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 else
9059 ac_check_lib_save_LIBS=$LIBS
9060 LIBS="-lm $LIBS"
9061 if test x$gcc_no_link = xyes; then
9062 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9063 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9064 { (exit 1); exit 1; }; }
9066 cat >conftest.$ac_ext <<_ACEOF
9067 /* confdefs.h. */
9068 _ACEOF
9069 cat confdefs.h >>conftest.$ac_ext
9070 cat >>conftest.$ac_ext <<_ACEOF
9071 /* end confdefs.h. */
9073 /* Override any gcc2 internal prototype to avoid an error. */
9074 #ifdef __cplusplus
9075 extern "C"
9076 #endif
9077 /* We use char because int might match the return type of a gcc2
9078 builtin and then its argument prototype would still apply. */
9079 char sinhf ();
9081 main ()
9083 sinhf ();
9085 return 0;
9087 _ACEOF
9088 rm -f conftest.$ac_objext conftest$ac_exeext
9089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9090 (eval $ac_link) 2>conftest.er1
9091 ac_status=$?
9092 grep -v '^ *+' conftest.er1 >conftest.err
9093 rm -f conftest.er1
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
9097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099 (eval $ac_try) 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; } &&
9103 { ac_try='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 (eval $ac_try) 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 ac_cv_lib_m_sinhf=yes
9110 else
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9114 ac_cv_lib_m_sinhf=no
9116 rm -f conftest.err conftest.$ac_objext \
9117 conftest$ac_exeext conftest.$ac_ext
9118 LIBS=$ac_check_lib_save_LIBS
9120 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
9121 echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
9122 if test $ac_cv_lib_m_sinhf = yes; then
9124 cat >>confdefs.h <<\_ACEOF
9125 #define HAVE_SINHF 1
9126 _ACEOF
9130 echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
9131 echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
9132 if test "${ac_cv_lib_m_sqrtf+set}" = set; then
9133 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 else
9135 ac_check_lib_save_LIBS=$LIBS
9136 LIBS="-lm $LIBS"
9137 if test x$gcc_no_link = xyes; then
9138 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9139 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9140 { (exit 1); exit 1; }; }
9142 cat >conftest.$ac_ext <<_ACEOF
9143 /* confdefs.h. */
9144 _ACEOF
9145 cat confdefs.h >>conftest.$ac_ext
9146 cat >>conftest.$ac_ext <<_ACEOF
9147 /* end confdefs.h. */
9149 /* Override any gcc2 internal prototype to avoid an error. */
9150 #ifdef __cplusplus
9151 extern "C"
9152 #endif
9153 /* We use char because int might match the return type of a gcc2
9154 builtin and then its argument prototype would still apply. */
9155 char sqrtf ();
9157 main ()
9159 sqrtf ();
9161 return 0;
9163 _ACEOF
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9166 (eval $ac_link) 2>conftest.er1
9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } &&
9173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 (eval $ac_try) 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; } &&
9179 { ac_try='test -s conftest$ac_exeext'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 (eval $ac_try) 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 ac_cv_lib_m_sqrtf=yes
9186 else
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9190 ac_cv_lib_m_sqrtf=no
9192 rm -f conftest.err conftest.$ac_objext \
9193 conftest$ac_exeext conftest.$ac_ext
9194 LIBS=$ac_check_lib_save_LIBS
9196 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
9197 echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
9198 if test $ac_cv_lib_m_sqrtf = yes; then
9200 cat >>confdefs.h <<\_ACEOF
9201 #define HAVE_SQRTF 1
9202 _ACEOF
9206 echo "$as_me:$LINENO: checking for tanf in -lm" >&5
9207 echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
9208 if test "${ac_cv_lib_m_tanf+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 else
9211 ac_check_lib_save_LIBS=$LIBS
9212 LIBS="-lm $LIBS"
9213 if test x$gcc_no_link = xyes; then
9214 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9215 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9216 { (exit 1); exit 1; }; }
9218 cat >conftest.$ac_ext <<_ACEOF
9219 /* confdefs.h. */
9220 _ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9225 /* Override any gcc2 internal prototype to avoid an error. */
9226 #ifdef __cplusplus
9227 extern "C"
9228 #endif
9229 /* We use char because int might match the return type of a gcc2
9230 builtin and then its argument prototype would still apply. */
9231 char tanf ();
9233 main ()
9235 tanf ();
9237 return 0;
9239 _ACEOF
9240 rm -f conftest.$ac_objext conftest$ac_exeext
9241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9242 (eval $ac_link) 2>conftest.er1
9243 ac_status=$?
9244 grep -v '^ *+' conftest.er1 >conftest.err
9245 rm -f conftest.er1
9246 cat conftest.err >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } &&
9249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 (eval $ac_try) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 (eval $ac_try) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_lib_m_tanf=yes
9262 else
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 ac_cv_lib_m_tanf=no
9268 rm -f conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270 LIBS=$ac_check_lib_save_LIBS
9272 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
9273 echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
9274 if test $ac_cv_lib_m_tanf = yes; then
9276 cat >>confdefs.h <<\_ACEOF
9277 #define HAVE_TANF 1
9278 _ACEOF
9282 echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
9283 echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
9284 if test "${ac_cv_lib_m_tanhf+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9287 ac_check_lib_save_LIBS=$LIBS
9288 LIBS="-lm $LIBS"
9289 if test x$gcc_no_link = xyes; then
9290 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9291 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9292 { (exit 1); exit 1; }; }
9294 cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h. */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9301 /* Override any gcc2 internal prototype to avoid an error. */
9302 #ifdef __cplusplus
9303 extern "C"
9304 #endif
9305 /* We use char because int might match the return type of a gcc2
9306 builtin and then its argument prototype would still apply. */
9307 char tanhf ();
9309 main ()
9311 tanhf ();
9313 return 0;
9315 _ACEOF
9316 rm -f conftest.$ac_objext conftest$ac_exeext
9317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9318 (eval $ac_link) 2>conftest.er1
9319 ac_status=$?
9320 grep -v '^ *+' conftest.er1 >conftest.err
9321 rm -f conftest.er1
9322 cat conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } &&
9325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 (eval $ac_try) 2>&5
9328 ac_status=$?
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; } &&
9331 { ac_try='test -s conftest$ac_exeext'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 (eval $ac_try) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; }; then
9337 ac_cv_lib_m_tanhf=yes
9338 else
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9342 ac_cv_lib_m_tanhf=no
9344 rm -f conftest.err conftest.$ac_objext \
9345 conftest$ac_exeext conftest.$ac_ext
9346 LIBS=$ac_check_lib_save_LIBS
9348 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
9349 echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
9350 if test $ac_cv_lib_m_tanhf = yes; then
9352 cat >>confdefs.h <<\_ACEOF
9353 #define HAVE_TANHF 1
9354 _ACEOF
9358 echo "$as_me:$LINENO: checking for erf in -lm" >&5
9359 echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
9360 if test "${ac_cv_lib_m_erf+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 else
9363 ac_check_lib_save_LIBS=$LIBS
9364 LIBS="-lm $LIBS"
9365 if test x$gcc_no_link = xyes; then
9366 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9367 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9368 { (exit 1); exit 1; }; }
9370 cat >conftest.$ac_ext <<_ACEOF
9371 /* confdefs.h. */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9377 /* Override any gcc2 internal prototype to avoid an error. */
9378 #ifdef __cplusplus
9379 extern "C"
9380 #endif
9381 /* We use char because int might match the return type of a gcc2
9382 builtin and then its argument prototype would still apply. */
9383 char erf ();
9385 main ()
9387 erf ();
9389 return 0;
9391 _ACEOF
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394 (eval $ac_link) 2>conftest.er1
9395 ac_status=$?
9396 grep -v '^ *+' conftest.er1 >conftest.err
9397 rm -f conftest.er1
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } &&
9401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 (eval $ac_try) 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; } &&
9407 { ac_try='test -s conftest$ac_exeext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 (eval $ac_try) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 ac_cv_lib_m_erf=yes
9414 else
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9418 ac_cv_lib_m_erf=no
9420 rm -f conftest.err conftest.$ac_objext \
9421 conftest$ac_exeext conftest.$ac_ext
9422 LIBS=$ac_check_lib_save_LIBS
9424 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
9425 echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
9426 if test $ac_cv_lib_m_erf = yes; then
9428 cat >>confdefs.h <<\_ACEOF
9429 #define HAVE_ERF 1
9430 _ACEOF
9434 echo "$as_me:$LINENO: checking for erfc in -lm" >&5
9435 echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
9436 if test "${ac_cv_lib_m_erfc+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439 ac_check_lib_save_LIBS=$LIBS
9440 LIBS="-lm $LIBS"
9441 if test x$gcc_no_link = xyes; then
9442 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9443 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9444 { (exit 1); exit 1; }; }
9446 cat >conftest.$ac_ext <<_ACEOF
9447 /* confdefs.h. */
9448 _ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9453 /* Override any gcc2 internal prototype to avoid an error. */
9454 #ifdef __cplusplus
9455 extern "C"
9456 #endif
9457 /* We use char because int might match the return type of a gcc2
9458 builtin and then its argument prototype would still apply. */
9459 char erfc ();
9461 main ()
9463 erfc ();
9465 return 0;
9467 _ACEOF
9468 rm -f conftest.$ac_objext conftest$ac_exeext
9469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9470 (eval $ac_link) 2>conftest.er1
9471 ac_status=$?
9472 grep -v '^ *+' conftest.er1 >conftest.err
9473 rm -f conftest.er1
9474 cat conftest.err >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } &&
9477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 (eval $ac_try) 2>&5
9480 ac_status=$?
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; } &&
9483 { ac_try='test -s conftest$ac_exeext'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 (eval $ac_try) 2>&5
9486 ac_status=$?
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9489 ac_cv_lib_m_erfc=yes
9490 else
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9494 ac_cv_lib_m_erfc=no
9496 rm -f conftest.err conftest.$ac_objext \
9497 conftest$ac_exeext conftest.$ac_ext
9498 LIBS=$ac_check_lib_save_LIBS
9500 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
9501 echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
9502 if test $ac_cv_lib_m_erfc = yes; then
9504 cat >>confdefs.h <<\_ACEOF
9505 #define HAVE_ERFC 1
9506 _ACEOF
9510 echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
9511 echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
9512 if test "${ac_cv_lib_m_erfcf+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 else
9515 ac_check_lib_save_LIBS=$LIBS
9516 LIBS="-lm $LIBS"
9517 if test x$gcc_no_link = xyes; then
9518 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9519 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9520 { (exit 1); exit 1; }; }
9522 cat >conftest.$ac_ext <<_ACEOF
9523 /* confdefs.h. */
9524 _ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9529 /* Override any gcc2 internal prototype to avoid an error. */
9530 #ifdef __cplusplus
9531 extern "C"
9532 #endif
9533 /* We use char because int might match the return type of a gcc2
9534 builtin and then its argument prototype would still apply. */
9535 char erfcf ();
9537 main ()
9539 erfcf ();
9541 return 0;
9543 _ACEOF
9544 rm -f conftest.$ac_objext conftest$ac_exeext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546 (eval $ac_link) 2>conftest.er1
9547 ac_status=$?
9548 grep -v '^ *+' conftest.er1 >conftest.err
9549 rm -f conftest.er1
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } &&
9553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 (eval $ac_try) 2>&5
9556 ac_status=$?
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; } &&
9559 { ac_try='test -s conftest$ac_exeext'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 (eval $ac_try) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; }; then
9565 ac_cv_lib_m_erfcf=yes
9566 else
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9570 ac_cv_lib_m_erfcf=no
9572 rm -f conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext conftest.$ac_ext
9574 LIBS=$ac_check_lib_save_LIBS
9576 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
9577 echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
9578 if test $ac_cv_lib_m_erfcf = yes; then
9580 cat >>confdefs.h <<\_ACEOF
9581 #define HAVE_ERFCF 1
9582 _ACEOF
9586 echo "$as_me:$LINENO: checking for erff in -lm" >&5
9587 echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
9588 if test "${ac_cv_lib_m_erff+set}" = set; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 else
9591 ac_check_lib_save_LIBS=$LIBS
9592 LIBS="-lm $LIBS"
9593 if test x$gcc_no_link = xyes; then
9594 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9595 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9596 { (exit 1); exit 1; }; }
9598 cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h. */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9605 /* Override any gcc2 internal prototype to avoid an error. */
9606 #ifdef __cplusplus
9607 extern "C"
9608 #endif
9609 /* We use char because int might match the return type of a gcc2
9610 builtin and then its argument prototype would still apply. */
9611 char erff ();
9613 main ()
9615 erff ();
9617 return 0;
9619 _ACEOF
9620 rm -f conftest.$ac_objext conftest$ac_exeext
9621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9622 (eval $ac_link) 2>conftest.er1
9623 ac_status=$?
9624 grep -v '^ *+' conftest.er1 >conftest.err
9625 rm -f conftest.er1
9626 cat conftest.err >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } &&
9629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 (eval $ac_try) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; } &&
9635 { ac_try='test -s conftest$ac_exeext'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 (eval $ac_try) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9641 ac_cv_lib_m_erff=yes
9642 else
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 ac_cv_lib_m_erff=no
9648 rm -f conftest.err conftest.$ac_objext \
9649 conftest$ac_exeext conftest.$ac_ext
9650 LIBS=$ac_check_lib_save_LIBS
9652 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5
9653 echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
9654 if test $ac_cv_lib_m_erff = yes; then
9656 cat >>confdefs.h <<\_ACEOF
9657 #define HAVE_ERFF 1
9658 _ACEOF
9662 echo "$as_me:$LINENO: checking for j0 in -lm" >&5
9663 echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
9664 if test "${ac_cv_lib_m_j0+set}" = set; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 else
9667 ac_check_lib_save_LIBS=$LIBS
9668 LIBS="-lm $LIBS"
9669 if test x$gcc_no_link = xyes; then
9670 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9671 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9672 { (exit 1); exit 1; }; }
9674 cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h. */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9681 /* Override any gcc2 internal prototype to avoid an error. */
9682 #ifdef __cplusplus
9683 extern "C"
9684 #endif
9685 /* We use char because int might match the return type of a gcc2
9686 builtin and then its argument prototype would still apply. */
9687 char j0 ();
9689 main ()
9691 j0 ();
9693 return 0;
9695 _ACEOF
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698 (eval $ac_link) 2>conftest.er1
9699 ac_status=$?
9700 grep -v '^ *+' conftest.er1 >conftest.err
9701 rm -f conftest.er1
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
9705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest$ac_exeext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 ac_cv_lib_m_j0=yes
9718 else
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9722 ac_cv_lib_m_j0=no
9724 rm -f conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
9726 LIBS=$ac_check_lib_save_LIBS
9728 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5
9729 echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
9730 if test $ac_cv_lib_m_j0 = yes; then
9732 cat >>confdefs.h <<\_ACEOF
9733 #define HAVE_J0 1
9734 _ACEOF
9738 echo "$as_me:$LINENO: checking for j0f in -lm" >&5
9739 echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
9740 if test "${ac_cv_lib_m_j0f+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743 ac_check_lib_save_LIBS=$LIBS
9744 LIBS="-lm $LIBS"
9745 if test x$gcc_no_link = xyes; then
9746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9747 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9748 { (exit 1); exit 1; }; }
9750 cat >conftest.$ac_ext <<_ACEOF
9751 /* confdefs.h. */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9757 /* Override any gcc2 internal prototype to avoid an error. */
9758 #ifdef __cplusplus
9759 extern "C"
9760 #endif
9761 /* We use char because int might match the return type of a gcc2
9762 builtin and then its argument prototype would still apply. */
9763 char j0f ();
9765 main ()
9767 j0f ();
9769 return 0;
9771 _ACEOF
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9774 (eval $ac_link) 2>conftest.er1
9775 ac_status=$?
9776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } &&
9781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 (eval $ac_try) 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; } &&
9787 { ac_try='test -s conftest$ac_exeext'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 (eval $ac_try) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; }; then
9793 ac_cv_lib_m_j0f=yes
9794 else
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9798 ac_cv_lib_m_j0f=no
9800 rm -f conftest.err conftest.$ac_objext \
9801 conftest$ac_exeext conftest.$ac_ext
9802 LIBS=$ac_check_lib_save_LIBS
9804 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
9805 echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
9806 if test $ac_cv_lib_m_j0f = yes; then
9808 cat >>confdefs.h <<\_ACEOF
9809 #define HAVE_J0F 1
9810 _ACEOF
9814 echo "$as_me:$LINENO: checking for j1 in -lm" >&5
9815 echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
9816 if test "${ac_cv_lib_m_j1+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819 ac_check_lib_save_LIBS=$LIBS
9820 LIBS="-lm $LIBS"
9821 if test x$gcc_no_link = xyes; then
9822 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9823 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9824 { (exit 1); exit 1; }; }
9826 cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h. */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9833 /* Override any gcc2 internal prototype to avoid an error. */
9834 #ifdef __cplusplus
9835 extern "C"
9836 #endif
9837 /* We use char because int might match the return type of a gcc2
9838 builtin and then its argument prototype would still apply. */
9839 char j1 ();
9841 main ()
9843 j1 ();
9845 return 0;
9847 _ACEOF
9848 rm -f conftest.$ac_objext conftest$ac_exeext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9850 (eval $ac_link) 2>conftest.er1
9851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } &&
9857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 (eval $ac_try) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; } &&
9863 { ac_try='test -s conftest$ac_exeext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 (eval $ac_try) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9869 ac_cv_lib_m_j1=yes
9870 else
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 ac_cv_lib_m_j1=no
9876 rm -f conftest.err conftest.$ac_objext \
9877 conftest$ac_exeext conftest.$ac_ext
9878 LIBS=$ac_check_lib_save_LIBS
9880 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
9881 echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
9882 if test $ac_cv_lib_m_j1 = yes; then
9884 cat >>confdefs.h <<\_ACEOF
9885 #define HAVE_J1 1
9886 _ACEOF
9890 echo "$as_me:$LINENO: checking for j1f in -lm" >&5
9891 echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
9892 if test "${ac_cv_lib_m_j1f+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 else
9895 ac_check_lib_save_LIBS=$LIBS
9896 LIBS="-lm $LIBS"
9897 if test x$gcc_no_link = xyes; then
9898 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9900 { (exit 1); exit 1; }; }
9902 cat >conftest.$ac_ext <<_ACEOF
9903 /* confdefs.h. */
9904 _ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9909 /* Override any gcc2 internal prototype to avoid an error. */
9910 #ifdef __cplusplus
9911 extern "C"
9912 #endif
9913 /* We use char because int might match the return type of a gcc2
9914 builtin and then its argument prototype would still apply. */
9915 char j1f ();
9917 main ()
9919 j1f ();
9921 return 0;
9923 _ACEOF
9924 rm -f conftest.$ac_objext conftest$ac_exeext
9925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9926 (eval $ac_link) 2>conftest.er1
9927 ac_status=$?
9928 grep -v '^ *+' conftest.er1 >conftest.err
9929 rm -f conftest.er1
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 (eval $ac_try) 2>&5
9936 ac_status=$?
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; } &&
9939 { ac_try='test -s conftest$ac_exeext'
9940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 (eval $ac_try) 2>&5
9942 ac_status=$?
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); }; }; then
9945 ac_cv_lib_m_j1f=yes
9946 else
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9950 ac_cv_lib_m_j1f=no
9952 rm -f conftest.err conftest.$ac_objext \
9953 conftest$ac_exeext conftest.$ac_ext
9954 LIBS=$ac_check_lib_save_LIBS
9956 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
9957 echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
9958 if test $ac_cv_lib_m_j1f = yes; then
9960 cat >>confdefs.h <<\_ACEOF
9961 #define HAVE_J1F 1
9962 _ACEOF
9966 echo "$as_me:$LINENO: checking for jn in -lm" >&5
9967 echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
9968 if test "${ac_cv_lib_m_jn+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 else
9971 ac_check_lib_save_LIBS=$LIBS
9972 LIBS="-lm $LIBS"
9973 if test x$gcc_no_link = xyes; then
9974 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9975 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9976 { (exit 1); exit 1; }; }
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h. */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9985 /* Override any gcc2 internal prototype to avoid an error. */
9986 #ifdef __cplusplus
9987 extern "C"
9988 #endif
9989 /* We use char because int might match the return type of a gcc2
9990 builtin and then its argument prototype would still apply. */
9991 char jn ();
9993 main ()
9995 jn ();
9997 return 0;
9999 _ACEOF
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10002 (eval $ac_link) 2>conftest.er1
10003 ac_status=$?
10004 grep -v '^ *+' conftest.er1 >conftest.err
10005 rm -f conftest.er1
10006 cat conftest.err >&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } &&
10009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10012 ac_status=$?
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; } &&
10015 { ac_try='test -s conftest$ac_exeext'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10018 ac_status=$?
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10021 ac_cv_lib_m_jn=yes
10022 else
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10026 ac_cv_lib_m_jn=no
10028 rm -f conftest.err conftest.$ac_objext \
10029 conftest$ac_exeext conftest.$ac_ext
10030 LIBS=$ac_check_lib_save_LIBS
10032 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
10033 echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
10034 if test $ac_cv_lib_m_jn = yes; then
10036 cat >>confdefs.h <<\_ACEOF
10037 #define HAVE_JN 1
10038 _ACEOF
10042 echo "$as_me:$LINENO: checking for jnf in -lm" >&5
10043 echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
10044 if test "${ac_cv_lib_m_jnf+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10046 else
10047 ac_check_lib_save_LIBS=$LIBS
10048 LIBS="-lm $LIBS"
10049 if test x$gcc_no_link = xyes; then
10050 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10051 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10052 { (exit 1); exit 1; }; }
10054 cat >conftest.$ac_ext <<_ACEOF
10055 /* confdefs.h. */
10056 _ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10061 /* Override any gcc2 internal prototype to avoid an error. */
10062 #ifdef __cplusplus
10063 extern "C"
10064 #endif
10065 /* We use char because int might match the return type of a gcc2
10066 builtin and then its argument prototype would still apply. */
10067 char jnf ();
10069 main ()
10071 jnf ();
10073 return 0;
10075 _ACEOF
10076 rm -f conftest.$ac_objext conftest$ac_exeext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10078 (eval $ac_link) 2>conftest.er1
10079 ac_status=$?
10080 grep -v '^ *+' conftest.er1 >conftest.err
10081 rm -f conftest.er1
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } &&
10085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; } &&
10091 { ac_try='test -s conftest$ac_exeext'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10097 ac_cv_lib_m_jnf=yes
10098 else
10099 echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10102 ac_cv_lib_m_jnf=no
10104 rm -f conftest.err conftest.$ac_objext \
10105 conftest$ac_exeext conftest.$ac_ext
10106 LIBS=$ac_check_lib_save_LIBS
10108 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
10109 echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
10110 if test $ac_cv_lib_m_jnf = yes; then
10112 cat >>confdefs.h <<\_ACEOF
10113 #define HAVE_JNF 1
10114 _ACEOF
10118 echo "$as_me:$LINENO: checking for y0 in -lm" >&5
10119 echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
10120 if test "${ac_cv_lib_m_y0+set}" = set; then
10121 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 else
10123 ac_check_lib_save_LIBS=$LIBS
10124 LIBS="-lm $LIBS"
10125 if test x$gcc_no_link = xyes; then
10126 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10127 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10128 { (exit 1); exit 1; }; }
10130 cat >conftest.$ac_ext <<_ACEOF
10131 /* confdefs.h. */
10132 _ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10137 /* Override any gcc2 internal prototype to avoid an error. */
10138 #ifdef __cplusplus
10139 extern "C"
10140 #endif
10141 /* We use char because int might match the return type of a gcc2
10142 builtin and then its argument prototype would still apply. */
10143 char y0 ();
10145 main ()
10147 y0 ();
10149 return 0;
10151 _ACEOF
10152 rm -f conftest.$ac_objext conftest$ac_exeext
10153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10154 (eval $ac_link) 2>conftest.er1
10155 ac_status=$?
10156 grep -v '^ *+' conftest.er1 >conftest.err
10157 rm -f conftest.er1
10158 cat conftest.err >&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } &&
10161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try='test -s conftest$ac_exeext'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10170 ac_status=$?
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; }; then
10173 ac_cv_lib_m_y0=yes
10174 else
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10178 ac_cv_lib_m_y0=no
10180 rm -f conftest.err conftest.$ac_objext \
10181 conftest$ac_exeext conftest.$ac_ext
10182 LIBS=$ac_check_lib_save_LIBS
10184 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
10185 echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
10186 if test $ac_cv_lib_m_y0 = yes; then
10188 cat >>confdefs.h <<\_ACEOF
10189 #define HAVE_Y0 1
10190 _ACEOF
10194 echo "$as_me:$LINENO: checking for y0f in -lm" >&5
10195 echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
10196 if test "${ac_cv_lib_m_y0f+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 else
10199 ac_check_lib_save_LIBS=$LIBS
10200 LIBS="-lm $LIBS"
10201 if test x$gcc_no_link = xyes; then
10202 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10203 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10204 { (exit 1); exit 1; }; }
10206 cat >conftest.$ac_ext <<_ACEOF
10207 /* confdefs.h. */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10213 /* Override any gcc2 internal prototype to avoid an error. */
10214 #ifdef __cplusplus
10215 extern "C"
10216 #endif
10217 /* We use char because int might match the return type of a gcc2
10218 builtin and then its argument prototype would still apply. */
10219 char y0f ();
10221 main ()
10223 y0f ();
10225 return 0;
10227 _ACEOF
10228 rm -f conftest.$ac_objext conftest$ac_exeext
10229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10230 (eval $ac_link) 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } &&
10237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; } &&
10243 { ac_try='test -s conftest$ac_exeext'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10246 ac_status=$?
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 ac_cv_lib_m_y0f=yes
10250 else
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10254 ac_cv_lib_m_y0f=no
10256 rm -f conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258 LIBS=$ac_check_lib_save_LIBS
10260 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
10261 echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
10262 if test $ac_cv_lib_m_y0f = yes; then
10264 cat >>confdefs.h <<\_ACEOF
10265 #define HAVE_Y0F 1
10266 _ACEOF
10270 echo "$as_me:$LINENO: checking for y1 in -lm" >&5
10271 echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
10272 if test "${ac_cv_lib_m_y1+set}" = set; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 else
10275 ac_check_lib_save_LIBS=$LIBS
10276 LIBS="-lm $LIBS"
10277 if test x$gcc_no_link = xyes; then
10278 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10279 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10280 { (exit 1); exit 1; }; }
10282 cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h. */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10289 /* Override any gcc2 internal prototype to avoid an error. */
10290 #ifdef __cplusplus
10291 extern "C"
10292 #endif
10293 /* We use char because int might match the return type of a gcc2
10294 builtin and then its argument prototype would still apply. */
10295 char y1 ();
10297 main ()
10299 y1 ();
10301 return 0;
10303 _ACEOF
10304 rm -f conftest.$ac_objext conftest$ac_exeext
10305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10306 (eval $ac_link) 2>conftest.er1
10307 ac_status=$?
10308 grep -v '^ *+' conftest.er1 >conftest.err
10309 rm -f conftest.er1
10310 cat conftest.err >&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } &&
10313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; } &&
10319 { ac_try='test -s conftest$ac_exeext'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 ac_cv_lib_m_y1=yes
10326 else
10327 echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10330 ac_cv_lib_m_y1=no
10332 rm -f conftest.err conftest.$ac_objext \
10333 conftest$ac_exeext conftest.$ac_ext
10334 LIBS=$ac_check_lib_save_LIBS
10336 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
10337 echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
10338 if test $ac_cv_lib_m_y1 = yes; then
10340 cat >>confdefs.h <<\_ACEOF
10341 #define HAVE_Y1 1
10342 _ACEOF
10346 echo "$as_me:$LINENO: checking for y1f in -lm" >&5
10347 echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
10348 if test "${ac_cv_lib_m_y1f+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351 ac_check_lib_save_LIBS=$LIBS
10352 LIBS="-lm $LIBS"
10353 if test x$gcc_no_link = xyes; then
10354 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10355 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10356 { (exit 1); exit 1; }; }
10358 cat >conftest.$ac_ext <<_ACEOF
10359 /* confdefs.h. */
10360 _ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h. */
10365 /* Override any gcc2 internal prototype to avoid an error. */
10366 #ifdef __cplusplus
10367 extern "C"
10368 #endif
10369 /* We use char because int might match the return type of a gcc2
10370 builtin and then its argument prototype would still apply. */
10371 char y1f ();
10373 main ()
10375 y1f ();
10377 return 0;
10379 _ACEOF
10380 rm -f conftest.$ac_objext conftest$ac_exeext
10381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10382 (eval $ac_link) 2>conftest.er1
10383 ac_status=$?
10384 grep -v '^ *+' conftest.er1 >conftest.err
10385 rm -f conftest.er1
10386 cat conftest.err >&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; } &&
10395 { ac_try='test -s conftest$ac_exeext'
10396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10398 ac_status=$?
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
10401 ac_cv_lib_m_y1f=yes
10402 else
10403 echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10406 ac_cv_lib_m_y1f=no
10408 rm -f conftest.err conftest.$ac_objext \
10409 conftest$ac_exeext conftest.$ac_ext
10410 LIBS=$ac_check_lib_save_LIBS
10412 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
10413 echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
10414 if test $ac_cv_lib_m_y1f = yes; then
10416 cat >>confdefs.h <<\_ACEOF
10417 #define HAVE_Y1F 1
10418 _ACEOF
10422 echo "$as_me:$LINENO: checking for yn in -lm" >&5
10423 echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
10424 if test "${ac_cv_lib_m_yn+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427 ac_check_lib_save_LIBS=$LIBS
10428 LIBS="-lm $LIBS"
10429 if test x$gcc_no_link = xyes; then
10430 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10431 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10432 { (exit 1); exit 1; }; }
10434 cat >conftest.$ac_ext <<_ACEOF
10435 /* confdefs.h. */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10441 /* Override any gcc2 internal prototype to avoid an error. */
10442 #ifdef __cplusplus
10443 extern "C"
10444 #endif
10445 /* We use char because int might match the return type of a gcc2
10446 builtin and then its argument prototype would still apply. */
10447 char yn ();
10449 main ()
10451 yn ();
10453 return 0;
10455 _ACEOF
10456 rm -f conftest.$ac_objext conftest$ac_exeext
10457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10458 (eval $ac_link) 2>conftest.er1
10459 ac_status=$?
10460 grep -v '^ *+' conftest.er1 >conftest.err
10461 rm -f conftest.er1
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; } &&
10471 { ac_try='test -s conftest$ac_exeext'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10474 ac_status=$?
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; }; then
10477 ac_cv_lib_m_yn=yes
10478 else
10479 echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10482 ac_cv_lib_m_yn=no
10484 rm -f conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10486 LIBS=$ac_check_lib_save_LIBS
10488 echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
10489 echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
10490 if test $ac_cv_lib_m_yn = yes; then
10492 cat >>confdefs.h <<\_ACEOF
10493 #define HAVE_YN 1
10494 _ACEOF
10498 echo "$as_me:$LINENO: checking for ynf in -lm" >&5
10499 echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
10500 if test "${ac_cv_lib_m_ynf+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10503 ac_check_lib_save_LIBS=$LIBS
10504 LIBS="-lm $LIBS"
10505 if test x$gcc_no_link = xyes; then
10506 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10507 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10508 { (exit 1); exit 1; }; }
10510 cat >conftest.$ac_ext <<_ACEOF
10511 /* confdefs.h. */
10512 _ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10517 /* Override any gcc2 internal prototype to avoid an error. */
10518 #ifdef __cplusplus
10519 extern "C"
10520 #endif
10521 /* We use char because int might match the return type of a gcc2
10522 builtin and then its argument prototype would still apply. */
10523 char ynf ();
10525 main ()
10527 ynf ();
10529 return 0;
10531 _ACEOF
10532 rm -f conftest.$ac_objext conftest$ac_exeext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534 (eval $ac_link) 2>conftest.er1
10535 ac_status=$?
10536 grep -v '^ *+' conftest.er1 >conftest.err
10537 rm -f conftest.er1
10538 cat conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } &&
10541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543 (eval $ac_try) 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; } &&
10547 { ac_try='test -s conftest$ac_exeext'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; }; then
10553 ac_cv_lib_m_ynf=yes
10554 else
10555 echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10558 ac_cv_lib_m_ynf=no
10560 rm -f conftest.err conftest.$ac_objext \
10561 conftest$ac_exeext conftest.$ac_ext
10562 LIBS=$ac_check_lib_save_LIBS
10564 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
10565 echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
10566 if test $ac_cv_lib_m_ynf = yes; then
10568 cat >>confdefs.h <<\_ACEOF
10569 #define HAVE_YNF 1
10570 _ACEOF
10575 # Fallback in case isfinite is not available.
10576 echo "$as_me:$LINENO: checking for finite in -lm" >&5
10577 echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6
10578 if test "${ac_cv_lib_m_finite+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581 ac_check_lib_save_LIBS=$LIBS
10582 LIBS="-lm $LIBS"
10583 if test x$gcc_no_link = xyes; then
10584 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10585 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10586 { (exit 1); exit 1; }; }
10588 cat >conftest.$ac_ext <<_ACEOF
10589 /* confdefs.h. */
10590 _ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h. */
10595 /* Override any gcc2 internal prototype to avoid an error. */
10596 #ifdef __cplusplus
10597 extern "C"
10598 #endif
10599 /* We use char because int might match the return type of a gcc2
10600 builtin and then its argument prototype would still apply. */
10601 char finite ();
10603 main ()
10605 finite ();
10607 return 0;
10609 _ACEOF
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612 (eval $ac_link) 2>conftest.er1
10613 ac_status=$?
10614 grep -v '^ *+' conftest.er1 >conftest.err
10615 rm -f conftest.er1
10616 cat conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } &&
10619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621 (eval $ac_try) 2>&5
10622 ac_status=$?
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; } &&
10625 { ac_try='test -s conftest$ac_exeext'
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
10631 ac_cv_lib_m_finite=yes
10632 else
10633 echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10636 ac_cv_lib_m_finite=no
10638 rm -f conftest.err conftest.$ac_objext \
10639 conftest$ac_exeext conftest.$ac_ext
10640 LIBS=$ac_check_lib_save_LIBS
10642 echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5
10643 echo "${ECHO_T}$ac_cv_lib_m_finite" >&6
10644 if test $ac_cv_lib_m_finite = yes; then
10646 cat >>confdefs.h <<\_ACEOF
10647 #define HAVE_FINITE 1
10648 _ACEOF
10653 # Let the user override this
10654 # Check whether --enable-cmath or --disable-cmath was given.
10655 if test "${enable_cmath+set}" = set; then
10656 enableval="$enable_cmath"
10657 need_math=$enableval
10659 if test "$need_math" = "yes"; then
10660 { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
10661 echo "$as_me: Including complex math functions in libgfor" >&6;};
10662 extra_math_obj='$(gfor_cmath_obj)'
10665 MATH_OBJ="$extra_math_obj"
10668 # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
10669 # for struct timezone, as you might think. We also need to check how
10670 # to call gettimeofday if we have it.
10671 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10672 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10673 if test "${ac_cv_header_time+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 else
10676 cat >conftest.$ac_ext <<_ACEOF
10677 /* confdefs.h. */
10678 _ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 #include <sys/types.h>
10683 #include <sys/time.h>
10684 #include <time.h>
10687 main ()
10689 if ((struct tm *) 0)
10690 return 0;
10692 return 0;
10694 _ACEOF
10695 rm -f conftest.$ac_objext
10696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10697 (eval $ac_compile) 2>conftest.er1
10698 ac_status=$?
10699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } &&
10704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706 (eval $ac_try) 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; } &&
10710 { ac_try='test -s conftest.$ac_objext'
10711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712 (eval $ac_try) 2>&5
10713 ac_status=$?
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
10716 ac_cv_header_time=yes
10717 else
10718 echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10721 ac_cv_header_time=no
10723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10725 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10726 echo "${ECHO_T}$ac_cv_header_time" >&6
10727 if test $ac_cv_header_time = yes; then
10729 cat >>confdefs.h <<\_ACEOF
10730 #define TIME_WITH_SYS_TIME 1
10731 _ACEOF
10737 for ac_func in gettimeofday
10739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10740 echo "$as_me:$LINENO: checking for $ac_func" >&5
10741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10742 if eval "test \"\${$as_ac_var+set}\" = set"; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10744 else
10745 if test x$gcc_no_link = xyes; then
10746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10747 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10748 { (exit 1); exit 1; }; }
10750 cat >conftest.$ac_ext <<_ACEOF
10751 /* confdefs.h. */
10752 _ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h. */
10756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10758 #define $ac_func innocuous_$ac_func
10760 /* System header to define __stub macros and hopefully few prototypes,
10761 which can conflict with char $ac_func (); below.
10762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10763 <limits.h> exists even on freestanding compilers. */
10765 #ifdef __STDC__
10766 # include <limits.h>
10767 #else
10768 # include <assert.h>
10769 #endif
10771 #undef $ac_func
10773 /* Override any gcc2 internal prototype to avoid an error. */
10774 #ifdef __cplusplus
10775 extern "C"
10777 #endif
10778 /* We use char because int might match the return type of a gcc2
10779 builtin and then its argument prototype would still apply. */
10780 char $ac_func ();
10781 /* The GNU C library defines this for functions which it implements
10782 to always fail with ENOSYS. Some functions are actually named
10783 something starting with __ and the normal name is an alias. */
10784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10785 choke me
10786 #else
10787 char (*f) () = $ac_func;
10788 #endif
10789 #ifdef __cplusplus
10791 #endif
10794 main ()
10796 return f != $ac_func;
10798 return 0;
10800 _ACEOF
10801 rm -f conftest.$ac_objext conftest$ac_exeext
10802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10803 (eval $ac_link) 2>conftest.er1
10804 ac_status=$?
10805 grep -v '^ *+' conftest.er1 >conftest.err
10806 rm -f conftest.er1
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; } &&
10816 { ac_try='test -s conftest$ac_exeext'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10819 ac_status=$?
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; }; then
10822 eval "$as_ac_var=yes"
10823 else
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10827 eval "$as_ac_var=no"
10829 rm -f conftest.err conftest.$ac_objext \
10830 conftest$ac_exeext conftest.$ac_ext
10832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10834 if test `eval echo '${'$as_ac_var'}'` = yes; then
10835 cat >>confdefs.h <<_ACEOF
10836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10837 _ACEOF
10840 done
10842 if test "$ac_cv_func_gettimeofday" = yes; then
10843 echo "$as_me:$LINENO: checking for struct timezone" >&5
10844 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
10845 if test "${gfor_cv_struct_timezone+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848 cat >conftest.$ac_ext <<_ACEOF
10849 /* confdefs.h. */
10850 _ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10854 #include <sys/time.h>
10856 main ()
10858 struct timezone tz;
10860 return 0;
10862 _ACEOF
10863 rm -f conftest.$ac_objext
10864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10865 (eval $ac_compile) 2>conftest.er1
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } &&
10872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest.$ac_objext'
10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880 (eval $ac_try) 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 gfor_cv_struct_timezone=yes
10885 else
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10889 gfor_cv_struct_timezone=no
10891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10893 echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
10894 echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
10895 if test $gfor_cv_struct_timezone = yes; then
10896 if test "$cross_compiling" = yes; then
10897 gfor_have_struct_timezone=yes
10898 else
10899 cat >conftest.$ac_ext <<_ACEOF
10900 /* confdefs.h. */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10906 #ifdef TIME_WITH_SYS_TIME
10907 #include <sys/time.h>
10908 #include <time.h>
10909 #else
10910 #ifdef HAVE_SYS_TIME_H
10911 #include <sys/time.h>
10912 #else
10913 #include <time.h>
10914 #endif
10915 #endif
10916 main ()
10918 struct timeval time;
10919 struct timezone dummy;
10920 if (gettimeofday (&time, &dummy))
10921 exit (1);
10922 else
10923 exit (0);
10925 _ACEOF
10926 rm -f conftest$ac_exeext
10927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10928 (eval $ac_link) 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10934 ac_status=$?
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; }; then
10937 gfor_have_struct_timezone=yes
10938 else
10939 echo "$as_me: program exited with status $ac_status" >&5
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10943 ( exit $ac_status )
10944 gfor_have_struct_timezone=no
10946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10948 if test $gfor_have_struct_timezone = yes; then
10950 cat >>confdefs.h <<\_ACEOF
10951 #define HAVE_TIMEZONE 1
10952 _ACEOF
10957 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
10958 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
10959 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961 else
10962 if test x$gcc_no_link = xyes; then
10963 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10964 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10965 { (exit 1); exit 1; }; }
10967 cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h. */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10974 #ifdef TIME_WITH_SYS_TIME
10975 #include <sys/time.h>
10976 #include <time.h>
10977 #else
10978 #ifdef HAVE_SYS_TIME_H
10979 #include <sys/time.h>
10980 #else
10981 #include <time.h>
10982 #endif
10983 #endif
10986 main ()
10989 struct timeval time;
10990 #ifdef HAVE_TIMEZONE
10991 struct timezone dummy;
10992 #define DUMMY &dummy
10993 #else
10994 #define DUMMY NULL
10995 #endif
10996 gettimeofday (&time, DUMMY);
10998 return 0;
11000 _ACEOF
11001 rm -f conftest.$ac_objext conftest$ac_exeext
11002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11003 (eval $ac_link) 2>conftest.er1
11004 ac_status=$?
11005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } &&
11010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012 (eval $ac_try) 2>&5
11013 ac_status=$?
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; } &&
11016 { ac_try='test -s conftest$ac_exeext'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11019 ac_status=$?
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; }; then
11022 emacs_cv_gettimeofday_two_arguments=yes
11023 else
11024 echo "$as_me: failed program was:" >&5
11025 sed 's/^/| /' conftest.$ac_ext >&5
11027 emacs_cv_gettimeofday_two_arguments=no
11029 rm -f conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
11032 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
11033 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11034 if test $emacs_cv_gettimeofday_two_arguments = no; then
11036 cat >>confdefs.h <<\_ACEOF
11037 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11038 _ACEOF
11043 # Attempt to assert that the target is of common type in case we don't
11044 # have C99 integer types at all.
11046 echo "$as_me:$LINENO: checking whether the target is ILP32" >&5
11047 echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6
11048 if test "${target_ilp32+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11052 save_CFLAGS="$CFLAGS"
11053 CFLAGS="-O2"
11054 if test x$gcc_no_link = xyes; then
11055 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11056 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11057 { (exit 1); exit 1; }; }
11059 cat >conftest.$ac_ext <<_ACEOF
11060 /* confdefs.h. */
11061 _ACEOF
11062 cat confdefs.h >>conftest.$ac_ext
11063 cat >>conftest.$ac_ext <<_ACEOF
11064 /* end confdefs.h. */
11067 main ()
11070 if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4)
11072 else
11073 undefined_function ();
11076 return 0;
11078 _ACEOF
11079 rm -f conftest.$ac_objext conftest$ac_exeext
11080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11081 (eval $ac_link) 2>conftest.er1
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; } &&
11094 { ac_try='test -s conftest$ac_exeext'
11095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096 (eval $ac_try) 2>&5
11097 ac_status=$?
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }; then
11100 target_ilp32=yes
11101 else
11102 echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11105 target_ilp32=no
11107 rm -f conftest.err conftest.$ac_objext \
11108 conftest$ac_exeext conftest.$ac_ext
11109 CFLAGS="$save_CFLAGS"
11111 echo "$as_me:$LINENO: result: $target_ilp32" >&5
11112 echo "${ECHO_T}$target_ilp32" >&6
11113 if test $target_ilp32 = yes; then
11115 cat >>confdefs.h <<\_ACEOF
11116 #define TARGET_ILP32 1
11117 _ACEOF
11122 cat >confcache <<\_ACEOF
11123 # This file is a shell script that caches the results of configure
11124 # tests run on this system so they can be shared between configure
11125 # scripts and configure runs, see configure's option --config-cache.
11126 # It is not useful on other systems. If it contains results you don't
11127 # want to keep, you may remove or edit it.
11129 # config.status only pays attention to the cache file if you give it
11130 # the --recheck option to rerun configure.
11132 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11133 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11134 # following values.
11136 _ACEOF
11138 # The following way of writing the cache mishandles newlines in values,
11139 # but we know of no workaround that is simple, portable, and efficient.
11140 # So, don't put newlines in cache variables' values.
11141 # Ultrix sh set writes to stderr and can't be redirected directly,
11142 # and sets the high bit in the cache file unless we assign to the vars.
11144 (set) 2>&1 |
11145 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11146 *ac_space=\ *)
11147 # `set' does not quote correctly, so add quotes (double-quote
11148 # substitution turns \\\\ into \\, and sed turns \\ into \).
11149 sed -n \
11150 "s/'/'\\\\''/g;
11151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11154 # `set' quotes correctly as required by POSIX, so do not add quotes.
11155 sed -n \
11156 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11158 esac;
11160 sed '
11161 t clear
11162 : clear
11163 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11164 t end
11165 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11166 : end' >>confcache
11167 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11168 if test -w $cache_file; then
11169 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11170 cat confcache >$cache_file
11171 else
11172 echo "not updating unwritable cache $cache_file"
11175 rm -f confcache
11177 if test ${multilib} = yes; then
11178 multilib_arg="--enable-multilib"
11179 else
11180 multilib_arg=
11183 # Write our Makefile.
11184 ac_config_files="$ac_config_files Makefile"
11186 cat >confcache <<\_ACEOF
11187 # This file is a shell script that caches the results of configure
11188 # tests run on this system so they can be shared between configure
11189 # scripts and configure runs, see configure's option --config-cache.
11190 # It is not useful on other systems. If it contains results you don't
11191 # want to keep, you may remove or edit it.
11193 # config.status only pays attention to the cache file if you give it
11194 # the --recheck option to rerun configure.
11196 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11197 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11198 # following values.
11200 _ACEOF
11202 # The following way of writing the cache mishandles newlines in values,
11203 # but we know of no workaround that is simple, portable, and efficient.
11204 # So, don't put newlines in cache variables' values.
11205 # Ultrix sh set writes to stderr and can't be redirected directly,
11206 # and sets the high bit in the cache file unless we assign to the vars.
11208 (set) 2>&1 |
11209 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11210 *ac_space=\ *)
11211 # `set' does not quote correctly, so add quotes (double-quote
11212 # substitution turns \\\\ into \\, and sed turns \\ into \).
11213 sed -n \
11214 "s/'/'\\\\''/g;
11215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11218 # `set' quotes correctly as required by POSIX, so do not add quotes.
11219 sed -n \
11220 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11222 esac;
11224 sed '
11225 t clear
11226 : clear
11227 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11228 t end
11229 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11230 : end' >>confcache
11231 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11232 if test -w $cache_file; then
11233 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11234 cat confcache >$cache_file
11235 else
11236 echo "not updating unwritable cache $cache_file"
11239 rm -f confcache
11241 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11242 # Let make expand exec_prefix.
11243 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11245 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11246 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11247 # trailing colons and then remove the whole line if VPATH becomes empty
11248 # (actually we leave an empty line to preserve line numbers).
11249 if test "x$srcdir" = x.; then
11250 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11251 s/:*\$(srcdir):*/:/;
11252 s/:*\${srcdir}:*/:/;
11253 s/:*@srcdir@:*/:/;
11254 s/^\([^=]*=[ ]*\):*/\1/;
11255 s/:*$//;
11256 s/^[^=]*=[ ]*$//;
11260 DEFS=-DHAVE_CONFIG_H
11262 ac_libobjs=
11263 ac_ltlibobjs=
11264 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11265 # 1. Remove the extension, and $U if already installed.
11266 ac_i=`echo "$ac_i" |
11267 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11268 # 2. Add them.
11269 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11270 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11271 done
11272 LIBOBJS=$ac_libobjs
11274 LTLIBOBJS=$ac_ltlibobjs
11277 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11278 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11279 Usually this means the macro was only invoked conditionally." >&5
11280 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11281 Usually this means the macro was only invoked conditionally." >&2;}
11282 { (exit 1); exit 1; }; }
11285 : ${CONFIG_STATUS=./config.status}
11286 ac_clean_files_save=$ac_clean_files
11287 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11288 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11289 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11290 cat >$CONFIG_STATUS <<_ACEOF
11291 #! $SHELL
11292 # Generated by $as_me.
11293 # Run this file to recreate the current configuration.
11294 # Compiler output produced by configure, useful for debugging
11295 # configure, is in config.log if it exists.
11297 debug=false
11298 ac_cs_recheck=false
11299 ac_cs_silent=false
11300 SHELL=\${CONFIG_SHELL-$SHELL}
11301 _ACEOF
11303 cat >>$CONFIG_STATUS <<\_ACEOF
11304 ## --------------------- ##
11305 ## M4sh Initialization. ##
11306 ## --------------------- ##
11308 # Be Bourne compatible
11309 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11310 emulate sh
11311 NULLCMD=:
11312 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11313 # is contrary to our usage. Disable this feature.
11314 alias -g '${1+"$@"}'='"$@"'
11315 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11316 set -o posix
11318 DUALCASE=1; export DUALCASE # for MKS sh
11320 # Support unset when possible.
11321 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11322 as_unset=unset
11323 else
11324 as_unset=false
11328 # Work around bugs in pre-3.0 UWIN ksh.
11329 $as_unset ENV MAIL MAILPATH
11330 PS1='$ '
11331 PS2='> '
11332 PS4='+ '
11334 # NLS nuisances.
11335 for as_var in \
11336 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11337 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11338 LC_TELEPHONE LC_TIME
11340 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11341 eval $as_var=C; export $as_var
11342 else
11343 $as_unset $as_var
11345 done
11347 # Required to use basename.
11348 if expr a : '\(a\)' >/dev/null 2>&1; then
11349 as_expr=expr
11350 else
11351 as_expr=false
11354 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11355 as_basename=basename
11356 else
11357 as_basename=false
11361 # Name of the executable.
11362 as_me=`$as_basename "$0" ||
11363 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11364 X"$0" : 'X\(//\)$' \| \
11365 X"$0" : 'X\(/\)$' \| \
11366 . : '\(.\)' 2>/dev/null ||
11367 echo X/"$0" |
11368 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11369 /^X\/\(\/\/\)$/{ s//\1/; q; }
11370 /^X\/\(\/\).*/{ s//\1/; q; }
11371 s/.*/./; q'`
11374 # PATH needs CR, and LINENO needs CR and PATH.
11375 # Avoid depending upon Character Ranges.
11376 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11377 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11378 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11379 as_cr_digits='0123456789'
11380 as_cr_alnum=$as_cr_Letters$as_cr_digits
11382 # The user is always right.
11383 if test "${PATH_SEPARATOR+set}" != set; then
11384 echo "#! /bin/sh" >conf$$.sh
11385 echo "exit 0" >>conf$$.sh
11386 chmod +x conf$$.sh
11387 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11388 PATH_SEPARATOR=';'
11389 else
11390 PATH_SEPARATOR=:
11392 rm -f conf$$.sh
11396 as_lineno_1=$LINENO
11397 as_lineno_2=$LINENO
11398 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11399 test "x$as_lineno_1" != "x$as_lineno_2" &&
11400 test "x$as_lineno_3" = "x$as_lineno_2" || {
11401 # Find who we are. Look in the path if we contain no path at all
11402 # relative or not.
11403 case $0 in
11404 *[\\/]* ) as_myself=$0 ;;
11405 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $PATH
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
11410 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11411 done
11414 esac
11415 # We did not find ourselves, most probably we were run as `sh COMMAND'
11416 # in which case we are not to be found in the path.
11417 if test "x$as_myself" = x; then
11418 as_myself=$0
11420 if test ! -f "$as_myself"; then
11421 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11422 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11423 { (exit 1); exit 1; }; }
11425 case $CONFIG_SHELL in
11427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11430 IFS=$as_save_IFS
11431 test -z "$as_dir" && as_dir=.
11432 for as_base in sh bash ksh sh5; do
11433 case $as_dir in
11435 if ("$as_dir/$as_base" -c '
11436 as_lineno_1=$LINENO
11437 as_lineno_2=$LINENO
11438 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11439 test "x$as_lineno_1" != "x$as_lineno_2" &&
11440 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11441 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11442 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11443 CONFIG_SHELL=$as_dir/$as_base
11444 export CONFIG_SHELL
11445 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11446 fi;;
11447 esac
11448 done
11449 done
11451 esac
11453 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11454 # uniformly replaced by the line number. The first 'sed' inserts a
11455 # line-number line before each line; the second 'sed' does the real
11456 # work. The second script uses 'N' to pair each line-number line
11457 # with the numbered line, and appends trailing '-' during
11458 # substitution so that $LINENO is not a special case at line end.
11459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11460 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11461 sed '=' <$as_myself |
11462 sed '
11464 s,$,-,
11465 : loop
11466 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11467 t loop
11468 s,-$,,
11469 s,^['$as_cr_digits']*\n,,
11470 ' >$as_me.lineno &&
11471 chmod +x $as_me.lineno ||
11472 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11473 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11474 { (exit 1); exit 1; }; }
11476 # Don't try to exec as it changes $[0], causing all sort of problems
11477 # (the dirname of $[0] is not the place where we might find the
11478 # original and so on. Autoconf is especially sensible to this).
11479 . ./$as_me.lineno
11480 # Exit status is that of the last command.
11481 exit
11485 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11486 *c*,-n*) ECHO_N= ECHO_C='
11487 ' ECHO_T=' ' ;;
11488 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11489 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11490 esac
11492 if expr a : '\(a\)' >/dev/null 2>&1; then
11493 as_expr=expr
11494 else
11495 as_expr=false
11498 rm -f conf$$ conf$$.exe conf$$.file
11499 echo >conf$$.file
11500 if ln -s conf$$.file conf$$ 2>/dev/null; then
11501 # We could just check for DJGPP; but this test a) works b) is more generic
11502 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11503 if test -f conf$$.exe; then
11504 # Don't use ln at all; we don't have any links
11505 as_ln_s='cp -p'
11506 else
11507 as_ln_s='ln -s'
11509 elif ln conf$$.file conf$$ 2>/dev/null; then
11510 as_ln_s=ln
11511 else
11512 as_ln_s='cp -p'
11514 rm -f conf$$ conf$$.exe conf$$.file
11516 if mkdir -p . 2>/dev/null; then
11517 as_mkdir_p=:
11518 else
11519 test -d ./-p && rmdir ./-p
11520 as_mkdir_p=false
11523 as_executable_p="test -f"
11525 # Sed expression to map a string onto a valid CPP name.
11526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11528 # Sed expression to map a string onto a valid variable name.
11529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11532 # IFS
11533 # We need space, tab and new line, in precisely that order.
11534 as_nl='
11536 IFS=" $as_nl"
11538 # CDPATH.
11539 $as_unset CDPATH
11541 exec 6>&1
11543 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11544 # report actual input values of CONFIG_FILES etc. instead of their
11545 # values after options handling. Logging --version etc. is OK.
11546 exec 5>>config.log
11548 echo
11549 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11550 ## Running $as_me. ##
11551 _ASBOX
11552 } >&5
11553 cat >&5 <<_CSEOF
11555 This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
11556 generated by GNU Autoconf 2.59. Invocation command line was
11558 CONFIG_FILES = $CONFIG_FILES
11559 CONFIG_HEADERS = $CONFIG_HEADERS
11560 CONFIG_LINKS = $CONFIG_LINKS
11561 CONFIG_COMMANDS = $CONFIG_COMMANDS
11562 $ $0 $@
11564 _CSEOF
11565 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11566 echo >&5
11567 _ACEOF
11569 # Files that config.status was made for.
11570 if test -n "$ac_config_files"; then
11571 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11574 if test -n "$ac_config_headers"; then
11575 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11578 if test -n "$ac_config_links"; then
11579 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11582 if test -n "$ac_config_commands"; then
11583 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11586 cat >>$CONFIG_STATUS <<\_ACEOF
11588 ac_cs_usage="\
11589 \`$as_me' instantiates files from templates according to the
11590 current configuration.
11592 Usage: $0 [OPTIONS] [FILE]...
11594 -h, --help print this help, then exit
11595 -V, --version print version number, then exit
11596 -q, --quiet do not print progress messages
11597 -d, --debug don't remove temporary files
11598 --recheck update $as_me by reconfiguring in the same conditions
11599 --file=FILE[:TEMPLATE]
11600 instantiate the configuration file FILE
11601 --header=FILE[:TEMPLATE]
11602 instantiate the configuration header FILE
11604 Configuration files:
11605 $config_files
11607 Configuration headers:
11608 $config_headers
11610 Configuration commands:
11611 $config_commands
11613 Report bugs to <bug-autoconf@gnu.org>."
11614 _ACEOF
11616 cat >>$CONFIG_STATUS <<_ACEOF
11617 ac_cs_version="\\
11618 GNU Fortran Runtime Library config.status 0.2
11619 configured by $0, generated by GNU Autoconf 2.59,
11620 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11622 Copyright (C) 2003 Free Software Foundation, Inc.
11623 This config.status script is free software; the Free Software Foundation
11624 gives unlimited permission to copy, distribute and modify it."
11625 srcdir=$srcdir
11626 INSTALL="$INSTALL"
11627 _ACEOF
11629 cat >>$CONFIG_STATUS <<\_ACEOF
11630 # If no file are specified by the user, then we need to provide default
11631 # value. By we need to know if files were specified by the user.
11632 ac_need_defaults=:
11633 while test $# != 0
11635 case $1 in
11636 --*=*)
11637 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11638 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11639 ac_shift=:
11642 ac_option=$1
11643 ac_optarg=$2
11644 ac_shift=shift
11646 *) # This is not an option, so the user has probably given explicit
11647 # arguments.
11648 ac_option=$1
11649 ac_need_defaults=false;;
11650 esac
11652 case $ac_option in
11653 # Handling of the options.
11654 _ACEOF
11655 cat >>$CONFIG_STATUS <<\_ACEOF
11656 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11657 ac_cs_recheck=: ;;
11658 --version | --vers* | -V )
11659 echo "$ac_cs_version"; exit 0 ;;
11660 --he | --h)
11661 # Conflict between --help and --header
11662 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11663 Try \`$0 --help' for more information." >&5
11664 echo "$as_me: error: ambiguous option: $1
11665 Try \`$0 --help' for more information." >&2;}
11666 { (exit 1); exit 1; }; };;
11667 --help | --hel | -h )
11668 echo "$ac_cs_usage"; exit 0 ;;
11669 --debug | --d* | -d )
11670 debug=: ;;
11671 --file | --fil | --fi | --f )
11672 $ac_shift
11673 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11674 ac_need_defaults=false;;
11675 --header | --heade | --head | --hea )
11676 $ac_shift
11677 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11678 ac_need_defaults=false;;
11679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11680 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11681 ac_cs_silent=: ;;
11683 # This is an error.
11684 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11685 Try \`$0 --help' for more information." >&5
11686 echo "$as_me: error: unrecognized option: $1
11687 Try \`$0 --help' for more information." >&2;}
11688 { (exit 1); exit 1; }; } ;;
11690 *) ac_config_targets="$ac_config_targets $1" ;;
11692 esac
11693 shift
11694 done
11696 ac_configure_extra_args=
11698 if $ac_cs_silent; then
11699 exec 6>/dev/null
11700 ac_configure_extra_args="$ac_configure_extra_args --silent"
11703 _ACEOF
11704 cat >>$CONFIG_STATUS <<_ACEOF
11705 if \$ac_cs_recheck; then
11706 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11707 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11710 _ACEOF
11712 cat >>$CONFIG_STATUS <<_ACEOF
11714 # INIT-COMMANDS section.
11718 srcdir="$srcdir"
11719 host="$host"
11720 target="$target"
11721 with_multisubdir="$with_multisubdir"
11722 with_multisrctop="$with_multisrctop"
11723 with_target_subdir="$with_target_subdir"
11724 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11725 multi_basedir="$multi_basedir"
11726 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11727 CC="$CC"
11729 _ACEOF
11733 cat >>$CONFIG_STATUS <<\_ACEOF
11734 for ac_config_target in $ac_config_targets
11736 case "$ac_config_target" in
11737 # Handling of arguments.
11738 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11739 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11740 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11741 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11742 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11743 { (exit 1); exit 1; }; };;
11744 esac
11745 done
11747 # If the user did not use the arguments to specify the items to instantiate,
11748 # then the envvar interface is used. Set only those that are not.
11749 # We use the long form for the default assignment because of an extremely
11750 # bizarre bug on SunOS 4.1.3.
11751 if $ac_need_defaults; then
11752 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11753 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11754 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11757 # Have a temporary directory for convenience. Make it in the build tree
11758 # simply because there is no reason to put it here, and in addition,
11759 # creating and moving files from /tmp can sometimes cause problems.
11760 # Create a temporary directory, and hook for its removal unless debugging.
11761 $debug ||
11763 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11764 trap '{ (exit 1); exit 1; }' 1 2 13 15
11767 # Create a (secure) tmp directory for tmp files.
11770 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11771 test -n "$tmp" && test -d "$tmp"
11772 } ||
11774 tmp=./confstat$$-$RANDOM
11775 (umask 077 && mkdir $tmp)
11776 } ||
11778 echo "$me: cannot create a temporary directory in ." >&2
11779 { (exit 1); exit 1; }
11782 _ACEOF
11784 cat >>$CONFIG_STATUS <<_ACEOF
11787 # CONFIG_FILES section.
11790 # No need to generate the scripts if there are no CONFIG_FILES.
11791 # This happens for instance when ./config.status config.h
11792 if test -n "\$CONFIG_FILES"; then
11793 # Protect against being on the right side of a sed subst in config.status.
11794 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11795 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11796 s,@SHELL@,$SHELL,;t t
11797 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11798 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11799 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11800 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11801 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11802 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11803 s,@exec_prefix@,$exec_prefix,;t t
11804 s,@prefix@,$prefix,;t t
11805 s,@program_transform_name@,$program_transform_name,;t t
11806 s,@bindir@,$bindir,;t t
11807 s,@sbindir@,$sbindir,;t t
11808 s,@libexecdir@,$libexecdir,;t t
11809 s,@datadir@,$datadir,;t t
11810 s,@sysconfdir@,$sysconfdir,;t t
11811 s,@sharedstatedir@,$sharedstatedir,;t t
11812 s,@localstatedir@,$localstatedir,;t t
11813 s,@libdir@,$libdir,;t t
11814 s,@includedir@,$includedir,;t t
11815 s,@oldincludedir@,$oldincludedir,;t t
11816 s,@infodir@,$infodir,;t t
11817 s,@mandir@,$mandir,;t t
11818 s,@build_alias@,$build_alias,;t t
11819 s,@host_alias@,$host_alias,;t t
11820 s,@target_alias@,$target_alias,;t t
11821 s,@DEFS@,$DEFS,;t t
11822 s,@ECHO_C@,$ECHO_C,;t t
11823 s,@ECHO_N@,$ECHO_N,;t t
11824 s,@ECHO_T@,$ECHO_T,;t t
11825 s,@LIBS@,$LIBS,;t t
11826 s,@build@,$build,;t t
11827 s,@build_cpu@,$build_cpu,;t t
11828 s,@build_vendor@,$build_vendor,;t t
11829 s,@build_os@,$build_os,;t t
11830 s,@host@,$host,;t t
11831 s,@host_cpu@,$host_cpu,;t t
11832 s,@host_vendor@,$host_vendor,;t t
11833 s,@host_os@,$host_os,;t t
11834 s,@target@,$target,;t t
11835 s,@target_cpu@,$target_cpu,;t t
11836 s,@target_vendor@,$target_vendor,;t t
11837 s,@target_os@,$target_os,;t t
11838 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11839 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11840 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11841 s,@CYGPATH_W@,$CYGPATH_W,;t t
11842 s,@PACKAGE@,$PACKAGE,;t t
11843 s,@VERSION@,$VERSION,;t t
11844 s,@ACLOCAL@,$ACLOCAL,;t t
11845 s,@AUTOCONF@,$AUTOCONF,;t t
11846 s,@AUTOMAKE@,$AUTOMAKE,;t t
11847 s,@AUTOHEADER@,$AUTOHEADER,;t t
11848 s,@MAKEINFO@,$MAKEINFO,;t t
11849 s,@install_sh@,$install_sh,;t t
11850 s,@STRIP@,$STRIP,;t t
11851 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11852 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11853 s,@mkdir_p@,$mkdir_p,;t t
11854 s,@AWK@,$AWK,;t t
11855 s,@SET_MAKE@,$SET_MAKE,;t t
11856 s,@am__leading_dot@,$am__leading_dot,;t t
11857 s,@AMTAR@,$AMTAR,;t t
11858 s,@am__tar@,$am__tar,;t t
11859 s,@am__untar@,$am__untar,;t t
11860 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11861 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11862 s,@MAINT@,$MAINT,;t t
11863 s,@multi_basedir@,$multi_basedir,;t t
11864 s,@gcc_version@,$gcc_version,;t t
11865 s,@toolexecdir@,$toolexecdir,;t t
11866 s,@toolexeclibdir@,$toolexeclibdir,;t t
11867 s,@CC@,$CC,;t t
11868 s,@ac_ct_CC@,$ac_ct_CC,;t t
11869 s,@EXEEXT@,$EXEEXT,;t t
11870 s,@OBJEXT@,$OBJEXT,;t t
11871 s,@CFLAGS@,$CFLAGS,;t t
11872 s,@AS@,$AS,;t t
11873 s,@ac_ct_AS@,$ac_ct_AS,;t t
11874 s,@AR@,$AR,;t t
11875 s,@ac_ct_AR@,$ac_ct_AR,;t t
11876 s,@RANLIB@,$RANLIB,;t t
11877 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11878 s,@LN_S@,$LN_S,;t t
11879 s,@LIBTOOL@,$LIBTOOL,;t t
11880 s,@enable_shared@,$enable_shared,;t t
11881 s,@enable_static@,$enable_static,;t t
11882 s,@FC@,$FC,;t t
11883 s,@FCFLAGS@,$FCFLAGS,;t t
11884 s,@LDFLAGS@,$LDFLAGS,;t t
11885 s,@ac_ct_FC@,$ac_ct_FC,;t t
11886 s,@CPP@,$CPP,;t t
11887 s,@CPPFLAGS@,$CPPFLAGS,;t t
11888 s,@EGREP@,$EGREP,;t t
11889 s,@MATH_OBJ@,$MATH_OBJ,;t t
11890 s,@LIBOBJS@,$LIBOBJS,;t t
11891 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11892 CEOF
11894 _ACEOF
11896 cat >>$CONFIG_STATUS <<\_ACEOF
11897 # Split the substitutions into bite-sized pieces for seds with
11898 # small command number limits, like on Digital OSF/1 and HP-UX.
11899 ac_max_sed_lines=48
11900 ac_sed_frag=1 # Number of current file.
11901 ac_beg=1 # First line for current file.
11902 ac_end=$ac_max_sed_lines # Line after last line for current file.
11903 ac_more_lines=:
11904 ac_sed_cmds=
11905 while $ac_more_lines; do
11906 if test $ac_beg -gt 1; then
11907 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11908 else
11909 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11911 if test ! -s $tmp/subs.frag; then
11912 ac_more_lines=false
11913 else
11914 # The purpose of the label and of the branching condition is to
11915 # speed up the sed processing (if there are no `@' at all, there
11916 # is no need to browse any of the substitutions).
11917 # These are the two extra sed commands mentioned above.
11918 (echo ':t
11919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11920 if test -z "$ac_sed_cmds"; then
11921 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11922 else
11923 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11925 ac_sed_frag=`expr $ac_sed_frag + 1`
11926 ac_beg=$ac_end
11927 ac_end=`expr $ac_end + $ac_max_sed_lines`
11929 done
11930 if test -z "$ac_sed_cmds"; then
11931 ac_sed_cmds=cat
11933 fi # test -n "$CONFIG_FILES"
11935 _ACEOF
11936 cat >>$CONFIG_STATUS <<\_ACEOF
11937 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11938 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11939 case $ac_file in
11940 - | *:- | *:-:* ) # input from stdin
11941 cat >$tmp/stdin
11942 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11943 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11944 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11945 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11946 * ) ac_file_in=$ac_file.in ;;
11947 esac
11949 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11950 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11951 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11952 X"$ac_file" : 'X\(//\)[^/]' \| \
11953 X"$ac_file" : 'X\(//\)$' \| \
11954 X"$ac_file" : 'X\(/\)' \| \
11955 . : '\(.\)' 2>/dev/null ||
11956 echo X"$ac_file" |
11957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11959 /^X\(\/\/\)$/{ s//\1/; q; }
11960 /^X\(\/\).*/{ s//\1/; q; }
11961 s/.*/./; q'`
11962 { if $as_mkdir_p; then
11963 mkdir -p "$ac_dir"
11964 else
11965 as_dir="$ac_dir"
11966 as_dirs=
11967 while test ! -d "$as_dir"; do
11968 as_dirs="$as_dir $as_dirs"
11969 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11971 X"$as_dir" : 'X\(//\)[^/]' \| \
11972 X"$as_dir" : 'X\(//\)$' \| \
11973 X"$as_dir" : 'X\(/\)' \| \
11974 . : '\(.\)' 2>/dev/null ||
11975 echo X"$as_dir" |
11976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11978 /^X\(\/\/\)$/{ s//\1/; q; }
11979 /^X\(\/\).*/{ s//\1/; q; }
11980 s/.*/./; q'`
11981 done
11982 test ! -n "$as_dirs" || mkdir $as_dirs
11983 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11984 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11985 { (exit 1); exit 1; }; }; }
11987 ac_builddir=.
11989 if test "$ac_dir" != .; then
11990 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11991 # A "../" for each directory in $ac_dir_suffix.
11992 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11993 else
11994 ac_dir_suffix= ac_top_builddir=
11997 case $srcdir in
11998 .) # No --srcdir option. We are building in place.
11999 ac_srcdir=.
12000 if test -z "$ac_top_builddir"; then
12001 ac_top_srcdir=.
12002 else
12003 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12004 fi ;;
12005 [\\/]* | ?:[\\/]* ) # Absolute path.
12006 ac_srcdir=$srcdir$ac_dir_suffix;
12007 ac_top_srcdir=$srcdir ;;
12008 *) # Relative path.
12009 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12010 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12011 esac
12013 # Do not use `cd foo && pwd` to compute absolute paths, because
12014 # the directories may not exist.
12015 case `pwd` in
12016 .) ac_abs_builddir="$ac_dir";;
12018 case "$ac_dir" in
12019 .) ac_abs_builddir=`pwd`;;
12020 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12021 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12022 esac;;
12023 esac
12024 case $ac_abs_builddir in
12025 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12027 case ${ac_top_builddir}. in
12028 .) ac_abs_top_builddir=$ac_abs_builddir;;
12029 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12030 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12031 esac;;
12032 esac
12033 case $ac_abs_builddir in
12034 .) ac_abs_srcdir=$ac_srcdir;;
12036 case $ac_srcdir in
12037 .) ac_abs_srcdir=$ac_abs_builddir;;
12038 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12039 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12040 esac;;
12041 esac
12042 case $ac_abs_builddir in
12043 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12045 case $ac_top_srcdir in
12046 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12047 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12048 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12049 esac;;
12050 esac
12053 case $INSTALL in
12054 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12055 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12056 esac
12058 # Let's still pretend it is `configure' which instantiates (i.e., don't
12059 # use $as_me), people would be surprised to read:
12060 # /* config.h. Generated by config.status. */
12061 if test x"$ac_file" = x-; then
12062 configure_input=
12063 else
12064 configure_input="$ac_file. "
12066 configure_input=$configure_input"Generated from `echo $ac_file_in |
12067 sed 's,.*/,,'` by configure."
12069 # First look for the input files in the build tree, otherwise in the
12070 # src tree.
12071 ac_file_inputs=`IFS=:
12072 for f in $ac_file_in; do
12073 case $f in
12074 -) echo $tmp/stdin ;;
12075 [\\/$]*)
12076 # Absolute (can't be DOS-style, as IFS=:)
12077 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12078 echo "$as_me: error: cannot find input file: $f" >&2;}
12079 { (exit 1); exit 1; }; }
12080 echo "$f";;
12081 *) # Relative
12082 if test -f "$f"; then
12083 # Build tree
12084 echo "$f"
12085 elif test -f "$srcdir/$f"; then
12086 # Source tree
12087 echo "$srcdir/$f"
12088 else
12089 # /dev/null tree
12090 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12091 echo "$as_me: error: cannot find input file: $f" >&2;}
12092 { (exit 1); exit 1; }; }
12093 fi;;
12094 esac
12095 done` || { (exit 1); exit 1; }
12097 if test x"$ac_file" != x-; then
12098 { echo "$as_me:$LINENO: creating $ac_file" >&5
12099 echo "$as_me: creating $ac_file" >&6;}
12100 rm -f "$ac_file"
12102 _ACEOF
12103 cat >>$CONFIG_STATUS <<_ACEOF
12104 sed "$ac_vpsub
12105 $extrasub
12106 _ACEOF
12107 cat >>$CONFIG_STATUS <<\_ACEOF
12109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12110 s,@configure_input@,$configure_input,;t t
12111 s,@srcdir@,$ac_srcdir,;t t
12112 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12113 s,@top_srcdir@,$ac_top_srcdir,;t t
12114 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12115 s,@builddir@,$ac_builddir,;t t
12116 s,@abs_builddir@,$ac_abs_builddir,;t t
12117 s,@top_builddir@,$ac_top_builddir,;t t
12118 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12119 s,@INSTALL@,$ac_INSTALL,;t t
12120 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12121 rm -f $tmp/stdin
12122 if test x"$ac_file" != x-; then
12123 mv $tmp/out $ac_file
12124 else
12125 cat $tmp/out
12126 rm -f $tmp/out
12129 done
12130 _ACEOF
12131 cat >>$CONFIG_STATUS <<\_ACEOF
12134 # CONFIG_HEADER section.
12137 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12138 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12140 # ac_d sets the value in "#define NAME VALUE" lines.
12141 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12142 ac_dB='[ ].*$,\1#\2'
12143 ac_dC=' '
12144 ac_dD=',;t'
12145 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12146 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12147 ac_uB='$,\1#\2define\3'
12148 ac_uC=' '
12149 ac_uD=',;t'
12151 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12152 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12153 case $ac_file in
12154 - | *:- | *:-:* ) # input from stdin
12155 cat >$tmp/stdin
12156 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12157 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12158 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12159 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12160 * ) ac_file_in=$ac_file.in ;;
12161 esac
12163 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12164 echo "$as_me: creating $ac_file" >&6;}
12166 # First look for the input files in the build tree, otherwise in the
12167 # src tree.
12168 ac_file_inputs=`IFS=:
12169 for f in $ac_file_in; do
12170 case $f in
12171 -) echo $tmp/stdin ;;
12172 [\\/$]*)
12173 # Absolute (can't be DOS-style, as IFS=:)
12174 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12175 echo "$as_me: error: cannot find input file: $f" >&2;}
12176 { (exit 1); exit 1; }; }
12177 # Do quote $f, to prevent DOS paths from being IFS'd.
12178 echo "$f";;
12179 *) # Relative
12180 if test -f "$f"; then
12181 # Build tree
12182 echo "$f"
12183 elif test -f "$srcdir/$f"; then
12184 # Source tree
12185 echo "$srcdir/$f"
12186 else
12187 # /dev/null tree
12188 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12189 echo "$as_me: error: cannot find input file: $f" >&2;}
12190 { (exit 1); exit 1; }; }
12191 fi;;
12192 esac
12193 done` || { (exit 1); exit 1; }
12194 # Remove the trailing spaces.
12195 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12197 _ACEOF
12199 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12200 # `conftest.undefs', that substitutes the proper values into
12201 # config.h.in to produce config.h. The first handles `#define'
12202 # templates, and the second `#undef' templates.
12203 # And first: Protect against being on the right side of a sed subst in
12204 # config.status. Protect against being in an unquoted here document
12205 # in config.status.
12206 rm -f conftest.defines conftest.undefs
12207 # Using a here document instead of a string reduces the quoting nightmare.
12208 # Putting comments in sed scripts is not portable.
12210 # `end' is used to avoid that the second main sed command (meant for
12211 # 0-ary CPP macros) applies to n-ary macro definitions.
12212 # See the Autoconf documentation for `clear'.
12213 cat >confdef2sed.sed <<\_ACEOF
12214 s/[\\&,]/\\&/g
12215 s,[\\$`],\\&,g
12216 t clear
12217 : clear
12218 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12219 t end
12220 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12221 : end
12222 _ACEOF
12223 # If some macros were called several times there might be several times
12224 # the same #defines, which is useless. Nevertheless, we may not want to
12225 # sort them, since we want the *last* AC-DEFINE to be honored.
12226 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12227 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12228 rm -f confdef2sed.sed
12230 # This sed command replaces #undef with comments. This is necessary, for
12231 # example, in the case of _POSIX_SOURCE, which is predefined and required
12232 # on some systems where configure will not decide to define it.
12233 cat >>conftest.undefs <<\_ACEOF
12234 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12235 _ACEOF
12237 # Break up conftest.defines because some shells have a limit on the size
12238 # of here documents, and old seds have small limits too (100 cmds).
12239 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12240 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12241 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12242 echo ' :' >>$CONFIG_STATUS
12243 rm -f conftest.tail
12244 while grep . conftest.defines >/dev/null
12246 # Write a limited-size here document to $tmp/defines.sed.
12247 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12248 # Speed up: don't consider the non `#define' lines.
12249 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12250 # Work around the forget-to-reset-the-flag bug.
12251 echo 't clr' >>$CONFIG_STATUS
12252 echo ': clr' >>$CONFIG_STATUS
12253 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12254 echo 'CEOF
12255 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12256 rm -f $tmp/in
12257 mv $tmp/out $tmp/in
12258 ' >>$CONFIG_STATUS
12259 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12260 rm -f conftest.defines
12261 mv conftest.tail conftest.defines
12262 done
12263 rm -f conftest.defines
12264 echo ' fi # grep' >>$CONFIG_STATUS
12265 echo >>$CONFIG_STATUS
12267 # Break up conftest.undefs because some shells have a limit on the size
12268 # of here documents, and old seds have small limits too (100 cmds).
12269 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12270 rm -f conftest.tail
12271 while grep . conftest.undefs >/dev/null
12273 # Write a limited-size here document to $tmp/undefs.sed.
12274 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12275 # Speed up: don't consider the non `#undef'
12276 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12277 # Work around the forget-to-reset-the-flag bug.
12278 echo 't clr' >>$CONFIG_STATUS
12279 echo ': clr' >>$CONFIG_STATUS
12280 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12281 echo 'CEOF
12282 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12283 rm -f $tmp/in
12284 mv $tmp/out $tmp/in
12285 ' >>$CONFIG_STATUS
12286 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12287 rm -f conftest.undefs
12288 mv conftest.tail conftest.undefs
12289 done
12290 rm -f conftest.undefs
12292 cat >>$CONFIG_STATUS <<\_ACEOF
12293 # Let's still pretend it is `configure' which instantiates (i.e., don't
12294 # use $as_me), people would be surprised to read:
12295 # /* config.h. Generated by config.status. */
12296 if test x"$ac_file" = x-; then
12297 echo "/* Generated by configure. */" >$tmp/config.h
12298 else
12299 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12301 cat $tmp/in >>$tmp/config.h
12302 rm -f $tmp/in
12303 if test x"$ac_file" != x-; then
12304 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12305 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12306 echo "$as_me: $ac_file is unchanged" >&6;}
12307 else
12308 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12310 X"$ac_file" : 'X\(//\)[^/]' \| \
12311 X"$ac_file" : 'X\(//\)$' \| \
12312 X"$ac_file" : 'X\(/\)' \| \
12313 . : '\(.\)' 2>/dev/null ||
12314 echo X"$ac_file" |
12315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12317 /^X\(\/\/\)$/{ s//\1/; q; }
12318 /^X\(\/\).*/{ s//\1/; q; }
12319 s/.*/./; q'`
12320 { if $as_mkdir_p; then
12321 mkdir -p "$ac_dir"
12322 else
12323 as_dir="$ac_dir"
12324 as_dirs=
12325 while test ! -d "$as_dir"; do
12326 as_dirs="$as_dir $as_dirs"
12327 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12329 X"$as_dir" : 'X\(//\)[^/]' \| \
12330 X"$as_dir" : 'X\(//\)$' \| \
12331 X"$as_dir" : 'X\(/\)' \| \
12332 . : '\(.\)' 2>/dev/null ||
12333 echo X"$as_dir" |
12334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12336 /^X\(\/\/\)$/{ s//\1/; q; }
12337 /^X\(\/\).*/{ s//\1/; q; }
12338 s/.*/./; q'`
12339 done
12340 test ! -n "$as_dirs" || mkdir $as_dirs
12341 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12342 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12343 { (exit 1); exit 1; }; }; }
12345 rm -f $ac_file
12346 mv $tmp/config.h $ac_file
12348 else
12349 cat $tmp/config.h
12350 rm -f $tmp/config.h
12352 # Compute $ac_file's index in $config_headers.
12353 _am_stamp_count=1
12354 for _am_header in $config_headers :; do
12355 case $_am_header in
12356 $ac_file | $ac_file:* )
12357 break ;;
12359 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12360 esac
12361 done
12362 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12363 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12364 X$ac_file : 'X\(//\)[^/]' \| \
12365 X$ac_file : 'X\(//\)$' \| \
12366 X$ac_file : 'X\(/\)' \| \
12367 . : '\(.\)' 2>/dev/null ||
12368 echo X$ac_file |
12369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12371 /^X\(\/\/\)$/{ s//\1/; q; }
12372 /^X\(\/\).*/{ s//\1/; q; }
12373 s/.*/./; q'`/stamp-h$_am_stamp_count
12374 done
12375 _ACEOF
12376 cat >>$CONFIG_STATUS <<\_ACEOF
12379 # CONFIG_COMMANDS section.
12381 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12382 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12383 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12384 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12385 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12386 X"$ac_dest" : 'X\(//\)[^/]' \| \
12387 X"$ac_dest" : 'X\(//\)$' \| \
12388 X"$ac_dest" : 'X\(/\)' \| \
12389 . : '\(.\)' 2>/dev/null ||
12390 echo X"$ac_dest" |
12391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12392 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12393 /^X\(\/\/\)$/{ s//\1/; q; }
12394 /^X\(\/\).*/{ s//\1/; q; }
12395 s/.*/./; q'`
12396 { if $as_mkdir_p; then
12397 mkdir -p "$ac_dir"
12398 else
12399 as_dir="$ac_dir"
12400 as_dirs=
12401 while test ! -d "$as_dir"; do
12402 as_dirs="$as_dir $as_dirs"
12403 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12404 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12405 X"$as_dir" : 'X\(//\)[^/]' \| \
12406 X"$as_dir" : 'X\(//\)$' \| \
12407 X"$as_dir" : 'X\(/\)' \| \
12408 . : '\(.\)' 2>/dev/null ||
12409 echo X"$as_dir" |
12410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12412 /^X\(\/\/\)$/{ s//\1/; q; }
12413 /^X\(\/\).*/{ s//\1/; q; }
12414 s/.*/./; q'`
12415 done
12416 test ! -n "$as_dirs" || mkdir $as_dirs
12417 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12418 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12419 { (exit 1); exit 1; }; }; }
12421 ac_builddir=.
12423 if test "$ac_dir" != .; then
12424 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12425 # A "../" for each directory in $ac_dir_suffix.
12426 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12427 else
12428 ac_dir_suffix= ac_top_builddir=
12431 case $srcdir in
12432 .) # No --srcdir option. We are building in place.
12433 ac_srcdir=.
12434 if test -z "$ac_top_builddir"; then
12435 ac_top_srcdir=.
12436 else
12437 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12438 fi ;;
12439 [\\/]* | ?:[\\/]* ) # Absolute path.
12440 ac_srcdir=$srcdir$ac_dir_suffix;
12441 ac_top_srcdir=$srcdir ;;
12442 *) # Relative path.
12443 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12444 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12445 esac
12447 # Do not use `cd foo && pwd` to compute absolute paths, because
12448 # the directories may not exist.
12449 case `pwd` in
12450 .) ac_abs_builddir="$ac_dir";;
12452 case "$ac_dir" in
12453 .) ac_abs_builddir=`pwd`;;
12454 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12455 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12456 esac;;
12457 esac
12458 case $ac_abs_builddir in
12459 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12461 case ${ac_top_builddir}. in
12462 .) ac_abs_top_builddir=$ac_abs_builddir;;
12463 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12464 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12465 esac;;
12466 esac
12467 case $ac_abs_builddir in
12468 .) ac_abs_srcdir=$ac_srcdir;;
12470 case $ac_srcdir in
12471 .) ac_abs_srcdir=$ac_abs_builddir;;
12472 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12473 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12474 esac;;
12475 esac
12476 case $ac_abs_builddir in
12477 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12479 case $ac_top_srcdir in
12480 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12481 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12482 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12483 esac;;
12484 esac
12487 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12488 echo "$as_me: executing $ac_dest commands" >&6;}
12489 case $ac_dest in
12490 default-1 )
12491 # Only add multilib support code if we just rebuilt the top-level
12492 # Makefile.
12493 case " $CONFIG_FILES " in
12494 *" Makefile "*)
12495 ac_file=Makefile . ${multi_basedir}/config-ml.in
12497 esac ;;
12498 esac
12499 done
12500 _ACEOF
12502 cat >>$CONFIG_STATUS <<\_ACEOF
12504 { (exit 0); exit 0; }
12505 _ACEOF
12506 chmod +x $CONFIG_STATUS
12507 ac_clean_files=$ac_clean_files_save
12510 # configure is writing to config.log, and then calls config.status.
12511 # config.status does its own redirection, appending to config.log.
12512 # Unfortunately, on DOS this fails, as config.log is still kept open
12513 # by configure, so config.status won't be able to write to it; its
12514 # output is simply discarded. So we exec the FD to /dev/null,
12515 # effectively closing config.log, so it can be properly (re)opened and
12516 # appended to by config.status. When coming back to configure, we
12517 # need to make the FD available again.
12518 if test "$no_create" != yes; then
12519 ac_cs_success=:
12520 ac_config_status_args=
12521 test "$silent" = yes &&
12522 ac_config_status_args="$ac_config_status_args --quiet"
12523 exec 5>/dev/null
12524 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12525 exec 5>>config.log
12526 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12527 # would make configure fail if this is the last instruction.
12528 $ac_cs_success || { (exit 1); exit 1; }