* gcse.c (gcse_main): Add a comment.
[official-gcc.git] / libgfortran / configure
blob8be542a4165a79f46b3aa20bb3e055860bba7e88
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_trigger gcc_version_full 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
1966 if test "${with_gcc_version_trigger+set}" = set; then
1967 gcc_version_trigger=$with_gcc_version_trigger
1968 else
1969 gcc_version_trigger=$srcdir/../gcc/version.c
1971 if test -f "${gcc_version_trigger}"; then
1972 gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
1973 else
1974 gcc_version_full=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
1976 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
1982 # Calculate toolexeclibdir
1983 # Also toolexecdir, though it's only used in toolexeclibdir
1984 case ${version_specific_libs} in
1985 yes)
1986 # Need the gcc compiler version to know where to install libraries
1987 # and header files if --enable-version-specific-runtime-libs option
1988 # is selected.
1989 toolexecdir='$(libdir)/gcc/$(target_alias)'
1990 toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1993 if test -n "$with_cross_host" &&
1994 test x"$with_cross_host" != x"no"; then
1995 # Install a library built with a cross compiler in tooldir, not libdir.
1996 toolexecdir='$(exec_prefix)/$(target_alias)'
1997 toolexeclibdir='$(toolexecdir)/lib'
1998 else
1999 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2000 toolexeclibdir='$(libdir)'
2002 multi_os_directory=`$CC -print-multi-os-directory`
2003 case $multi_os_directory in
2004 .) ;; # Avoid trailing /.
2005 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2006 esac
2008 esac
2012 # Check the compiler.
2013 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2014 # We must force CC to /not/ be precious variables; otherwise
2015 # the wrong, non-multilib-adjusted value will be used in multilibs.
2016 # As a side effect, we have to subst CFLAGS ourselves.
2020 ac_ext=c
2021 ac_cpp='$CPP $CPPFLAGS'
2022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025 if test -n "$ac_tool_prefix"; then
2026 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2027 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 if test -n "$CC"; then
2034 ac_cv_prog_CC="$CC" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2047 done
2048 done
2052 CC=$ac_cv_prog_CC
2053 if test -n "$CC"; then
2054 echo "$as_me:$LINENO: result: $CC" >&5
2055 echo "${ECHO_T}$CC" >&6
2056 else
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2062 if test -z "$ac_cv_prog_CC"; then
2063 ac_ct_CC=$CC
2064 # Extract the first word of "gcc", so it can be a program name with args.
2065 set dummy gcc; ac_word=$2
2066 echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 if test -n "$ac_ct_CC"; then
2072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2073 else
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 for as_dir in $PATH
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081 ac_cv_prog_ac_ct_CC="gcc"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 break 2
2085 done
2086 done
2090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2091 if test -n "$ac_ct_CC"; then
2092 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2093 echo "${ECHO_T}$ac_ct_CC" >&6
2094 else
2095 echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6
2099 CC=$ac_ct_CC
2100 else
2101 CC="$ac_cv_prog_CC"
2104 if test -z "$CC"; then
2105 if test -n "$ac_tool_prefix"; then
2106 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2107 set dummy ${ac_tool_prefix}cc; ac_word=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 if test -n "$CC"; then
2114 ac_cv_prog_CC="$CC" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123 ac_cv_prog_CC="${ac_tool_prefix}cc"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 break 2
2127 done
2128 done
2132 CC=$ac_cv_prog_CC
2133 if test -n "$CC"; then
2134 echo "$as_me:$LINENO: result: $CC" >&5
2135 echo "${ECHO_T}$CC" >&6
2136 else
2137 echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2142 if test -z "$ac_cv_prog_CC"; then
2143 ac_ct_CC=$CC
2144 # Extract the first word of "cc", so it can be a program name with args.
2145 set dummy cc; ac_word=$2
2146 echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 if test -n "$ac_ct_CC"; then
2152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2153 else
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH
2157 IFS=$as_save_IFS
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161 ac_cv_prog_ac_ct_CC="cc"
2162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 break 2
2165 done
2166 done
2170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2171 if test -n "$ac_ct_CC"; then
2172 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2173 echo "${ECHO_T}$ac_ct_CC" >&6
2174 else
2175 echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6
2179 CC=$ac_ct_CC
2180 else
2181 CC="$ac_cv_prog_CC"
2185 if test -z "$CC"; then
2186 # Extract the first word of "cc", so it can be a program name with args.
2187 set dummy cc; ac_word=$2
2188 echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190 if test "${ac_cv_prog_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 if test -n "$CC"; then
2194 ac_cv_prog_CC="$CC" # Let the user override the test.
2195 else
2196 ac_prog_rejected=no
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 for as_dir in $PATH
2200 IFS=$as_save_IFS
2201 test -z "$as_dir" && as_dir=.
2202 for ac_exec_ext in '' $ac_executable_extensions; do
2203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2204 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2205 ac_prog_rejected=yes
2206 continue
2208 ac_cv_prog_CC="cc"
2209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210 break 2
2212 done
2213 done
2215 if test $ac_prog_rejected = yes; then
2216 # We found a bogon in the path, so make sure we never use it.
2217 set dummy $ac_cv_prog_CC
2218 shift
2219 if test $# != 0; then
2220 # We chose a different compiler from the bogus one.
2221 # However, it has the same basename, so the bogon will be chosen
2222 # first if we set CC to just the basename; use the full file name.
2223 shift
2224 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2229 CC=$ac_cv_prog_CC
2230 if test -n "$CC"; then
2231 echo "$as_me:$LINENO: result: $CC" >&5
2232 echo "${ECHO_T}$CC" >&6
2233 else
2234 echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6
2239 if test -z "$CC"; then
2240 if test -n "$ac_tool_prefix"; then
2241 for ac_prog in cl
2243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2245 echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2247 if test "${ac_cv_prog_CC+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC="$CC" # Let the user override the test.
2252 else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2260 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 break 2
2264 done
2265 done
2269 CC=$ac_cv_prog_CC
2270 if test -n "$CC"; then
2271 echo "$as_me:$LINENO: result: $CC" >&5
2272 echo "${ECHO_T}$CC" >&6
2273 else
2274 echo "$as_me:$LINENO: result: no" >&5
2275 echo "${ECHO_T}no" >&6
2278 test -n "$CC" && break
2279 done
2281 if test -z "$CC"; then
2282 ac_ct_CC=$CC
2283 for ac_prog in cl
2285 # Extract the first word of "$ac_prog", so it can be a program name with args.
2286 set dummy $ac_prog; ac_word=$2
2287 echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2289 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292 if test -n "$ac_ct_CC"; then
2293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2294 else
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2302 ac_cv_prog_ac_ct_CC="$ac_prog"
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 break 2
2306 done
2307 done
2311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2312 if test -n "$ac_ct_CC"; then
2313 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2314 echo "${ECHO_T}$ac_ct_CC" >&6
2315 else
2316 echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6
2320 test -n "$ac_ct_CC" && break
2321 done
2323 CC=$ac_ct_CC
2329 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: no acceptable C compiler found in \$PATH
2332 See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2335 # Provide some information about the compiler.
2336 echo "$as_me:$LINENO:" \
2337 "checking for C compiler version" >&5
2338 ac_compiler=`set X $ac_compile; echo $2`
2339 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2340 (eval $ac_compiler --version </dev/null >&5) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }
2344 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2345 (eval $ac_compiler -v </dev/null >&5) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
2349 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2350 (eval $ac_compiler -V </dev/null >&5) 2>&5
2351 ac_status=$?
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }
2355 cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h. */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2363 main ()
2367 return 0;
2369 _ACEOF
2370 # FIXME: Cleanup?
2371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2372 (eval $ac_link) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; then
2376 gcc_no_link=no
2377 else
2378 gcc_no_link=yes
2381 if test x$gcc_no_link = xyes; then
2382 # Setting cross_compile will disable run tests; it will
2383 # also disable AC_CHECK_FILE but that's generally
2384 # correct if we can't link.
2385 cross_compiling=yes
2386 EXEEXT=
2387 else
2388 cat >conftest.$ac_ext <<_ACEOF
2389 /* confdefs.h. */
2390 _ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h. */
2396 main ()
2400 return 0;
2402 _ACEOF
2403 ac_clean_files_save=$ac_clean_files
2404 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2405 # Try to create an executable without -o first, disregard a.out.
2406 # It will help us diagnose broken compilers, and finding out an intuition
2407 # of exeext.
2408 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2409 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2410 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2411 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2412 (eval $ac_link_default) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; then
2416 # Find the output, starting from the most likely. This scheme is
2417 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2418 # resort.
2420 # Be careful to initialize this variable, since it used to be cached.
2421 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2422 ac_cv_exeext=
2423 # b.out is created by i960 compilers.
2424 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2426 test -f "$ac_file" || continue
2427 case $ac_file in
2428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2430 conftest.$ac_ext )
2431 # This is the source file.
2433 [ab].out )
2434 # We found the default executable, but exeext='' is most
2435 # certainly right.
2436 break;;
2437 *.* )
2438 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2439 # FIXME: I believe we export ac_cv_exeext for Libtool,
2440 # but it would be cool to find out if it's true. Does anybody
2441 # maintain Libtool? --akim.
2442 export ac_cv_exeext
2443 break;;
2445 break;;
2446 esac
2447 done
2448 else
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2452 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2453 See \`config.log' for more details." >&5
2454 echo "$as_me: error: C compiler cannot create executables
2455 See \`config.log' for more details." >&2;}
2456 { (exit 77); exit 77; }; }
2459 ac_exeext=$ac_cv_exeext
2460 echo "$as_me:$LINENO: result: $ac_file" >&5
2461 echo "${ECHO_T}$ac_file" >&6
2463 # Check the compiler produces executables we can run. If not, either
2464 # the compiler is broken, or we cross compile.
2465 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2466 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2467 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2468 # If not cross compiling, check that we can run a simple program.
2469 if test "$cross_compiling" != yes; then
2470 if { ac_try='./$ac_file'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 (eval $ac_try) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 cross_compiling=no
2477 else
2478 if test "$cross_compiling" = maybe; then
2479 cross_compiling=yes
2480 else
2481 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2482 If you meant to cross compile, use \`--host'.
2483 See \`config.log' for more details." >&5
2484 echo "$as_me: error: cannot run C compiled programs.
2485 If you meant to cross compile, use \`--host'.
2486 See \`config.log' for more details." >&2;}
2487 { (exit 1); exit 1; }; }
2491 echo "$as_me:$LINENO: result: yes" >&5
2492 echo "${ECHO_T}yes" >&6
2494 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2495 ac_clean_files=$ac_clean_files_save
2496 # Check the compiler produces executables we can run. If not, either
2497 # the compiler is broken, or we cross compile.
2498 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2499 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2500 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2501 echo "${ECHO_T}$cross_compiling" >&6
2503 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2504 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2506 (eval $ac_link) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; then
2510 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2511 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2512 # work properly (i.e., refer to `conftest.exe'), while it won't with
2513 # `rm'.
2514 for ac_file in conftest.exe conftest conftest.*; do
2515 test -f "$ac_file" || continue
2516 case $ac_file in
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2518 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2519 export ac_cv_exeext
2520 break;;
2521 * ) break;;
2522 esac
2523 done
2524 else
2525 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2528 See \`config.log' for more details." >&2;}
2529 { (exit 1); exit 1; }; }
2532 rm -f conftest$ac_cv_exeext
2533 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2534 echo "${ECHO_T}$ac_cv_exeext" >&6
2536 rm -f conftest.$ac_ext
2537 EXEEXT=$ac_cv_exeext
2538 ac_exeext=$EXEEXT
2540 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2541 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2542 if test "${ac_cv_objext+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545 cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h. */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2553 main ()
2557 return 0;
2559 _ACEOF
2560 rm -f conftest.o conftest.obj
2561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562 (eval $ac_compile) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; then
2566 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2567 case $ac_file in
2568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2569 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2570 break;;
2571 esac
2572 done
2573 else
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2577 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2578 See \`config.log' for more details." >&5
2579 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2580 See \`config.log' for more details." >&2;}
2581 { (exit 1); exit 1; }; }
2584 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2586 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2587 echo "${ECHO_T}$ac_cv_objext" >&6
2588 OBJEXT=$ac_cv_objext
2589 ac_objext=$OBJEXT
2590 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2591 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2592 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595 cat >conftest.$ac_ext <<_ACEOF
2596 /* confdefs.h. */
2597 _ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2603 main ()
2605 #ifndef __GNUC__
2606 choke me
2607 #endif
2610 return 0;
2612 _ACEOF
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>conftest.er1
2616 ac_status=$?
2617 grep -v '^ *+' conftest.er1 >conftest.err
2618 rm -f conftest.er1
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag"
2623 || test ! -s conftest.err'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; } &&
2629 { ac_try='test -s conftest.$ac_objext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2635 ac_compiler_gnu=yes
2636 else
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2640 ac_compiler_gnu=no
2642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2646 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2647 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2648 GCC=`test $ac_compiler_gnu = yes && echo yes`
2649 ac_test_CFLAGS=${CFLAGS+set}
2650 ac_save_CFLAGS=$CFLAGS
2651 CFLAGS="-g"
2652 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2653 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2654 if test "${ac_cv_prog_cc_g+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 else
2657 cat >conftest.$ac_ext <<_ACEOF
2658 /* confdefs.h. */
2659 _ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2665 main ()
2669 return 0;
2671 _ACEOF
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>conftest.er1
2675 ac_status=$?
2676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest.$ac_objext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_cv_prog_cc_g=yes
2695 else
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2699 ac_cv_prog_cc_g=no
2701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2703 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2704 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2705 if test "$ac_test_CFLAGS" = set; then
2706 CFLAGS=$ac_save_CFLAGS
2707 elif test $ac_cv_prog_cc_g = yes; then
2708 if test "$GCC" = yes; then
2709 CFLAGS="-g -O2"
2710 else
2711 CFLAGS="-g"
2713 else
2714 if test "$GCC" = yes; then
2715 CFLAGS="-O2"
2716 else
2717 CFLAGS=
2720 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2721 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2722 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725 ac_cv_prog_cc_stdc=no
2726 ac_save_CC=$CC
2727 cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h. */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2733 #include <stdarg.h>
2734 #include <stdio.h>
2735 #include <sys/types.h>
2736 #include <sys/stat.h>
2737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2738 struct buf { int x; };
2739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2740 static char *e (p, i)
2741 char **p;
2742 int i;
2744 return p[i];
2746 static char *f (char * (*g) (char **, int), char **p, ...)
2748 char *s;
2749 va_list v;
2750 va_start (v,p);
2751 s = g (p, va_arg (v,int));
2752 va_end (v);
2753 return s;
2756 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2757 function prototypes and stuff, but not '\xHH' hex character constants.
2758 These don't provoke an error unfortunately, instead are silently treated
2759 as 'x'. The following induces an error, until -std1 is added to get
2760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2761 array size at least. It's necessary to write '\x00'==0 to get something
2762 that's true only with -std1. */
2763 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2765 int test (int i, double x);
2766 struct s1 {int (*f) (int a);};
2767 struct s2 {int (*f) (double a);};
2768 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2769 int argc;
2770 char **argv;
2772 main ()
2774 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2776 return 0;
2778 _ACEOF
2779 # Don't try gcc -ansi; that turns off useful extensions and
2780 # breaks some systems' header files.
2781 # AIX -qlanglvl=ansi
2782 # Ultrix and OSF/1 -std1
2783 # HP-UX 10.20 and later -Ae
2784 # HP-UX older versions -Aa -D_HPUX_SOURCE
2785 # SVR4 -Xc -D__EXTENSIONS__
2786 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2788 CC="$ac_save_CC $ac_arg"
2789 rm -f conftest.$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791 (eval $ac_compile) 2>conftest.er1
2792 ac_status=$?
2793 grep -v '^ *+' conftest.er1 >conftest.err
2794 rm -f conftest.er1
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
2798 { ac_try='test -z "$ac_c_werror_flag"
2799 || test ! -s conftest.err'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 (eval $ac_try) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 (eval $ac_try) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2811 ac_cv_prog_cc_stdc=$ac_arg
2812 break
2813 else
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2818 rm -f conftest.err conftest.$ac_objext
2819 done
2820 rm -f conftest.$ac_ext conftest.$ac_objext
2821 CC=$ac_save_CC
2825 case "x$ac_cv_prog_cc_stdc" in
2826 x|xno)
2827 echo "$as_me:$LINENO: result: none needed" >&5
2828 echo "${ECHO_T}none needed" >&6 ;;
2830 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2831 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2832 CC="$CC $ac_cv_prog_cc_stdc" ;;
2833 esac
2835 # Some people use a C++ compiler to compile C. Since we use `exit',
2836 # in C++ we need to declare it. In case someone uses the same compiler
2837 # for both compiling C and C++ we need to have the C++ compiler decide
2838 # the declaration of exit, since it's the most demanding environment.
2839 cat >conftest.$ac_ext <<_ACEOF
2840 #ifndef __cplusplus
2841 choke me
2842 #endif
2843 _ACEOF
2844 rm -f conftest.$ac_objext
2845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2846 (eval $ac_compile) 2>conftest.er1
2847 ac_status=$?
2848 grep -v '^ *+' conftest.er1 >conftest.err
2849 rm -f conftest.er1
2850 cat conftest.err >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
2853 { ac_try='test -z "$ac_c_werror_flag"
2854 || test ! -s conftest.err'
2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 (eval $ac_try) 2>&5
2857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; } &&
2860 { ac_try='test -s conftest.$ac_objext'
2861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 (eval $ac_try) 2>&5
2863 ac_status=$?
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2866 for ac_declaration in \
2867 '' \
2868 'extern "C" void std::exit (int) throw (); using std::exit;' \
2869 'extern "C" void std::exit (int); using std::exit;' \
2870 'extern "C" void exit (int) throw ();' \
2871 'extern "C" void exit (int);' \
2872 'void exit (int);'
2874 cat >conftest.$ac_ext <<_ACEOF
2875 /* confdefs.h. */
2876 _ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2880 $ac_declaration
2881 #include <stdlib.h>
2883 main ()
2885 exit (42);
2887 return 0;
2889 _ACEOF
2890 rm -f conftest.$ac_objext
2891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try='test -z "$ac_c_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2913 else
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 continue
2919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2920 cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h. */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2926 $ac_declaration
2928 main ()
2930 exit (42);
2932 return 0;
2934 _ACEOF
2935 rm -f conftest.$ac_objext
2936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2937 (eval $ac_compile) 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_c_werror_flag"
2945 || test ! -s conftest.err'
2946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 (eval $ac_try) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 (eval $ac_try) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; }; then
2957 break
2958 else
2959 echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2964 done
2965 rm -f conftest*
2966 if test -n "$ac_declaration"; then
2967 echo '#ifdef __cplusplus' >>confdefs.h
2968 echo $ac_declaration >>confdefs.h
2969 echo '#endif' >>confdefs.h
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_ext=c
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988 # Add -Wall if we are using GCC.
2989 if test "x$GCC" = "xyes"; then
2990 CFLAGS="$CFLAGS -Wall"
2993 # Find other programs we need.
2994 if test -n "$ac_tool_prefix"; then
2995 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2996 set dummy ${ac_tool_prefix}as; ac_word=$2
2997 echo "$as_me:$LINENO: checking for $ac_word" >&5
2998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2999 if test "${ac_cv_prog_AS+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002 if test -n "$AS"; then
3003 ac_cv_prog_AS="$AS" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_AS="${ac_tool_prefix}as"
3013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3016 done
3017 done
3021 AS=$ac_cv_prog_AS
3022 if test -n "$AS"; then
3023 echo "$as_me:$LINENO: result: $AS" >&5
3024 echo "${ECHO_T}$AS" >&6
3025 else
3026 echo "$as_me:$LINENO: result: no" >&5
3027 echo "${ECHO_T}no" >&6
3031 if test -z "$ac_cv_prog_AS"; then
3032 ac_ct_AS=$AS
3033 # Extract the first word of "as", so it can be a program name with args.
3034 set dummy as; ac_word=$2
3035 echo "$as_me:$LINENO: checking for $ac_word" >&5
3036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3037 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 else
3040 if test -n "$ac_ct_AS"; then
3041 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050 ac_cv_prog_ac_ct_AS="as"
3051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 break 2
3054 done
3055 done
3059 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3060 if test -n "$ac_ct_AS"; then
3061 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3062 echo "${ECHO_T}$ac_ct_AS" >&6
3063 else
3064 echo "$as_me:$LINENO: result: no" >&5
3065 echo "${ECHO_T}no" >&6
3068 AS=$ac_ct_AS
3069 else
3070 AS="$ac_cv_prog_AS"
3073 if test -n "$ac_tool_prefix"; then
3074 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3075 set dummy ${ac_tool_prefix}ar; ac_word=$2
3076 echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078 if test "${ac_cv_prog_AR+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081 if test -n "$AR"; then
3082 ac_cv_prog_AR="$AR" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_AR="${ac_tool_prefix}ar"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3095 done
3096 done
3100 AR=$ac_cv_prog_AR
3101 if test -n "$AR"; then
3102 echo "$as_me:$LINENO: result: $AR" >&5
3103 echo "${ECHO_T}$AR" >&6
3104 else
3105 echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6
3110 if test -z "$ac_cv_prog_AR"; then
3111 ac_ct_AR=$AR
3112 # Extract the first word of "ar", so it can be a program name with args.
3113 set dummy ar; ac_word=$2
3114 echo "$as_me:$LINENO: checking for $ac_word" >&5
3115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3116 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119 if test -n "$ac_ct_AR"; then
3120 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129 ac_cv_prog_ac_ct_AR="ar"
3130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 break 2
3133 done
3134 done
3138 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3139 if test -n "$ac_ct_AR"; then
3140 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3141 echo "${ECHO_T}$ac_ct_AR" >&6
3142 else
3143 echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6
3147 AR=$ac_ct_AR
3148 else
3149 AR="$ac_cv_prog_AR"
3152 if test -n "$ac_tool_prefix"; then
3153 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3154 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3155 echo "$as_me:$LINENO: checking for $ac_word" >&5
3156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3157 if test "${ac_cv_prog_RANLIB+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160 if test -n "$RANLIB"; then
3161 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3162 else
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3166 IFS=$as_save_IFS
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3170 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 break 2
3174 done
3175 done
3179 RANLIB=$ac_cv_prog_RANLIB
3180 if test -n "$RANLIB"; then
3181 echo "$as_me:$LINENO: result: $RANLIB" >&5
3182 echo "${ECHO_T}$RANLIB" >&6
3183 else
3184 echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6
3189 if test -z "$ac_cv_prog_RANLIB"; then
3190 ac_ct_RANLIB=$RANLIB
3191 # Extract the first word of "ranlib", so it can be a program name with args.
3192 set dummy ranlib; ac_word=$2
3193 echo "$as_me:$LINENO: checking for $ac_word" >&5
3194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3195 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198 if test -n "$ac_ct_RANLIB"; then
3199 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3200 else
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH
3204 IFS=$as_save_IFS
3205 test -z "$as_dir" && as_dir=.
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3208 ac_cv_prog_ac_ct_RANLIB="ranlib"
3209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 break 2
3212 done
3213 done
3215 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3218 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3219 if test -n "$ac_ct_RANLIB"; then
3220 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3221 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3222 else
3223 echo "$as_me:$LINENO: result: no" >&5
3224 echo "${ECHO_T}no" >&6
3227 RANLIB=$ac_ct_RANLIB
3228 else
3229 RANLIB="$ac_cv_prog_RANLIB"
3232 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3233 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3234 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3235 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238 cat >conftest.make <<\_ACEOF
3239 all:
3240 @echo 'ac_maketemp="$(MAKE)"'
3241 _ACEOF
3242 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3243 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3244 if test -n "$ac_maketemp"; then
3245 eval ac_cv_prog_make_${ac_make}_set=yes
3246 else
3247 eval ac_cv_prog_make_${ac_make}_set=no
3249 rm -f conftest.make
3251 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3252 echo "$as_me:$LINENO: result: yes" >&5
3253 echo "${ECHO_T}yes" >&6
3254 SET_MAKE=
3255 else
3256 echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6
3258 SET_MAKE="MAKE=${MAKE-make}"
3261 # Find a good install program. We prefer a C program (faster),
3262 # so one script is as good as another. But avoid the broken or
3263 # incompatible versions:
3264 # SysV /etc/install, /usr/sbin/install
3265 # SunOS /usr/etc/install
3266 # IRIX /sbin/install
3267 # AIX /bin/install
3268 # AmigaOS /C/install, which installs bootblocks on floppy discs
3269 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3272 # OS/2's system install, which has a completely different semantic
3273 # ./install, which can be erroneously created by make from ./install.sh.
3274 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3275 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3276 if test -z "$INSTALL"; then
3277 if test "${ac_cv_path_install+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 # Account for people who put trailing slashes in PATH elements.
3286 case $as_dir/ in
3287 ./ | .// | /cC/* | \
3288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3289 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3290 /usr/ucb/* ) ;;
3292 # OSF1 and SCO ODT 3.0 have their own names for install.
3293 # Don't use installbsd from OSF since it installs stuff as root
3294 # by default.
3295 for ac_prog in ginstall scoinst install; do
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3298 if test $ac_prog = install &&
3299 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3300 # AIX install. It has an incompatible calling convention.
3302 elif test $ac_prog = install &&
3303 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3304 # program-specific install script used by HP pwplus--don't use.
3306 else
3307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3308 break 3
3311 done
3312 done
3314 esac
3315 done
3319 if test "${ac_cv_path_install+set}" = set; then
3320 INSTALL=$ac_cv_path_install
3321 else
3322 # As a last resort, use the slow shell script. We don't cache a
3323 # path for INSTALL within a source directory, because that will
3324 # break other packages using the cache if that directory is
3325 # removed, or if the path is relative.
3326 INSTALL=$ac_install_sh
3329 echo "$as_me:$LINENO: result: $INSTALL" >&5
3330 echo "${ECHO_T}$INSTALL" >&6
3332 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3333 # It thinks the first close brace ends the variable substitution.
3334 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3336 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3338 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3341 # Configure libtool
3342 #AC_MSG_NOTICE([====== Starting libtool configuration])
3344 # Check whether --enable-shared or --disable-shared was given.
3345 if test "${enable_shared+set}" = set; then
3346 enableval="$enable_shared"
3347 p=${PACKAGE-default}
3348 case $enableval in
3349 yes) enable_shared=yes ;;
3350 no) enable_shared=no ;;
3352 enable_shared=no
3353 # Look at the argument we got. We use all the common list separators.
3354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3355 for pkg in $enableval; do
3356 if test "X$pkg" = "X$p"; then
3357 enable_shared=yes
3359 done
3360 IFS="$ac_save_ifs"
3362 esac
3363 else
3364 enable_shared=yes
3366 # Check whether --enable-static or --disable-static was given.
3367 if test "${enable_static+set}" = set; then
3368 enableval="$enable_static"
3369 p=${PACKAGE-default}
3370 case $enableval in
3371 yes) enable_static=yes ;;
3372 no) enable_static=no ;;
3374 enable_static=no
3375 # Look at the argument we got. We use all the common list separators.
3376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3377 for pkg in $enableval; do
3378 if test "X$pkg" = "X$p"; then
3379 enable_static=yes
3381 done
3382 IFS="$ac_save_ifs"
3384 esac
3385 else
3386 enable_static=yes
3388 # Check whether --enable-fast-install or --disable-fast-install was given.
3389 if test "${enable_fast_install+set}" = set; then
3390 enableval="$enable_fast_install"
3391 p=${PACKAGE-default}
3392 case $enableval in
3393 yes) enable_fast_install=yes ;;
3394 no) enable_fast_install=no ;;
3396 enable_fast_install=no
3397 # Look at the argument we got. We use all the common list separators.
3398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3399 for pkg in $enableval; do
3400 if test "X$pkg" = "X$p"; then
3401 enable_fast_install=yes
3403 done
3404 IFS="$ac_save_ifs"
3406 esac
3407 else
3408 enable_fast_install=yes
3411 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3412 if test "${with_gnu_ld+set}" = set; then
3413 withval="$with_gnu_ld"
3414 test "$withval" = no || with_gnu_ld=yes
3415 else
3416 with_gnu_ld=no
3418 ac_prog=ld
3419 if test "$GCC" = yes; then
3420 # Check if gcc -print-prog-name=ld gives a path.
3421 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3422 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3423 case $host in
3424 *-*-mingw*)
3425 # gcc leaves a trailing carriage return which upsets mingw
3426 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3428 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3429 esac
3430 case $ac_prog in
3431 # Accept absolute paths.
3432 [\\/]* | [A-Za-z]:[\\/]*)
3433 re_direlt='/[^/][^/]*/\.\./'
3434 # Canonicalize the path of ld
3435 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3436 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3437 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3438 done
3439 test -z "$LD" && LD="$ac_prog"
3442 # If it fails, then pretend we aren't using GCC.
3443 ac_prog=ld
3446 # If it is relative, then search for the first ld in PATH.
3447 with_gnu_ld=unknown
3449 esac
3450 elif test "$with_gnu_ld" = yes; then
3451 echo "$as_me:$LINENO: checking for GNU ld" >&5
3452 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3453 else
3454 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3455 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3457 if test "${lt_cv_path_LD+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460 if test -z "$LD"; then
3461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3462 for ac_dir in $PATH; do
3463 test -z "$ac_dir" && ac_dir=.
3464 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3465 lt_cv_path_LD="$ac_dir/$ac_prog"
3466 # Check to see if the program is GNU ld. I'd rather use --version,
3467 # but apparently some GNU ld's only accept -v.
3468 # Break only if it was the GNU/non-GNU ld that we prefer.
3469 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3470 test "$with_gnu_ld" != no && break
3471 else
3472 test "$with_gnu_ld" != yes && break
3475 done
3476 IFS="$ac_save_ifs"
3477 else
3478 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3482 LD="$lt_cv_path_LD"
3483 if test -n "$LD"; then
3484 echo "$as_me:$LINENO: result: $LD" >&5
3485 echo "${ECHO_T}$LD" >&6
3486 else
3487 echo "$as_me:$LINENO: result: no" >&5
3488 echo "${ECHO_T}no" >&6
3490 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3491 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3492 { (exit 1); exit 1; }; }
3493 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3494 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3495 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3499 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3500 lt_cv_prog_gnu_ld=yes
3501 else
3502 lt_cv_prog_gnu_ld=no
3505 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3506 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3507 with_gnu_ld=$lt_cv_prog_gnu_ld
3510 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3511 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3512 if test "${lt_cv_ld_reload_flag+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515 lt_cv_ld_reload_flag='-r'
3517 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3518 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3519 reload_flag=$lt_cv_ld_reload_flag
3520 test -n "$reload_flag" && reload_flag=" $reload_flag"
3522 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3523 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3524 if test "${lt_cv_path_NM+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527 if test -n "$NM"; then
3528 # Let the user override the test.
3529 lt_cv_path_NM="$NM"
3530 else
3531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3532 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3533 test -z "$ac_dir" && ac_dir=.
3534 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3535 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3536 # Check to see if the nm accepts a BSD-compat flag.
3537 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3538 # nm: unknown option "B" ignored
3539 # Tru64's nm complains that /dev/null is an invalid object file
3540 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3541 lt_cv_path_NM="$tmp_nm -B"
3542 break
3543 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3544 lt_cv_path_NM="$tmp_nm -p"
3545 break
3546 else
3547 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3548 continue # so that we can try to find one that supports BSD flags
3551 done
3552 IFS="$ac_save_ifs"
3553 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3557 NM="$lt_cv_path_NM"
3558 echo "$as_me:$LINENO: result: $NM" >&5
3559 echo "${ECHO_T}$NM" >&6
3561 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3562 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3563 LN_S=$as_ln_s
3564 if test "$LN_S" = "ln -s"; then
3565 echo "$as_me:$LINENO: result: yes" >&5
3566 echo "${ECHO_T}yes" >&6
3567 else
3568 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3569 echo "${ECHO_T}no, using $LN_S" >&6
3572 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3573 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3574 if test "${lt_cv_deplibs_check_method+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577 lt_cv_file_magic_cmd='$MAGIC_CMD'
3578 lt_cv_file_magic_test_file=
3579 lt_cv_deplibs_check_method='unknown'
3580 # Need to set the preceding variable on all platforms that support
3581 # interlibrary dependencies.
3582 # 'none' -- dependencies not supported.
3583 # `unknown' -- same as none, but documents that we really don't know.
3584 # 'pass_all' -- all dependencies passed with no checks.
3585 # 'test_compile' -- check by making test program.
3586 # 'file_magic [regex]' -- check by looking for files in library path
3587 # which responds to the $file_magic_cmd with a given egrep regex.
3588 # If you have `file' or equivalent on your system and you're not sure
3589 # whether `pass_all' will *always* work, you probably want this one.
3591 case $host_os in
3592 aix*)
3593 lt_cv_deplibs_check_method=pass_all
3596 beos*)
3597 lt_cv_deplibs_check_method=pass_all
3600 bsdi4*)
3601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3602 lt_cv_file_magic_cmd='/usr/bin/file -L'
3603 lt_cv_file_magic_test_file=/shlib/libc.so
3606 cygwin* | mingw* |pw32*)
3607 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3608 lt_cv_file_magic_cmd='$OBJDUMP -f'
3611 darwin* | rhapsody*)
3612 # this will be overwritten by pass_all, but leave it in just in case
3613 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3614 lt_cv_file_magic_cmd='/usr/bin/file -L'
3615 case "$host_os" in
3616 rhapsody* | darwin1.012)
3617 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3619 *) # Darwin 1.3 on
3620 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3622 esac
3623 lt_cv_deplibs_check_method=pass_all
3626 freebsd* | kfreebsd*-gnu)
3627 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3628 case $host_cpu in
3629 i*86 )
3630 # Not sure whether the presence of OpenBSD here was a mistake.
3631 # Let's accept both of them until this is cleared up.
3632 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3633 lt_cv_file_magic_cmd=/usr/bin/file
3634 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3636 esac
3637 else
3638 lt_cv_deplibs_check_method=pass_all
3642 gnu*)
3643 lt_cv_deplibs_check_method=pass_all
3646 hpux10.20*|hpux11*)
3647 case $host_cpu in
3648 hppa*)
3649 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3650 lt_cv_file_magic_cmd=/usr/bin/file
3651 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3653 ia64*)
3654 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3655 lt_cv_file_magic_cmd=/usr/bin/file
3656 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3658 esac
3661 irix5* | irix6*)
3662 case $host_os in
3663 irix5*)
3664 # this will be overridden with pass_all, but let us keep it just in case
3665 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3668 case $LD in
3669 *-32|*"-32 ") libmagic=32-bit;;
3670 *-n32|*"-n32 ") libmagic=N32;;
3671 *-64|*"-64 ") libmagic=64-bit;;
3672 *) libmagic=never-match;;
3673 esac
3674 # this will be overridden with pass_all, but let us keep it just in case
3675 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3677 esac
3678 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3679 lt_cv_deplibs_check_method=pass_all
3682 # This must be Linux ELF.
3683 linux-gnu*)
3684 lt_cv_deplibs_check_method=pass_all
3687 netbsd* | knetbsd*-gnu)
3688 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3689 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3690 else
3691 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3695 newsos6)
3696 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3697 lt_cv_file_magic_cmd=/usr/bin/file
3698 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3701 osf3* | osf4* | osf5*)
3702 # this will be overridden with pass_all, but let us keep it just in case
3703 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3704 lt_cv_file_magic_test_file=/shlib/libc.so
3705 lt_cv_deplibs_check_method=pass_all
3708 sco3.2v5*)
3709 lt_cv_deplibs_check_method=pass_all
3712 solaris*)
3713 lt_cv_deplibs_check_method=pass_all
3714 lt_cv_file_magic_test_file=/lib/libc.so
3717 sysv5uw[78]* | sysv4*uw2*)
3718 lt_cv_deplibs_check_method=pass_all
3721 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3722 case $host_vendor in
3723 ncr)
3724 lt_cv_deplibs_check_method=pass_all
3726 motorola)
3727 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]'
3728 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3730 esac
3732 esac
3735 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3736 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3737 file_magic_cmd=$lt_cv_file_magic_cmd
3738 deplibs_check_method=$lt_cv_deplibs_check_method
3744 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3746 # Only perform the check for file, if the check method requires it
3747 case $deplibs_check_method in
3748 file_magic*)
3749 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3750 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3751 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3752 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755 case $MAGIC_CMD in
3757 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3759 ?:/*)
3760 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3763 ac_save_MAGIC_CMD="$MAGIC_CMD"
3764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3765 ac_dummy="/usr/bin:$PATH"
3766 for ac_dir in $ac_dummy; do
3767 test -z "$ac_dir" && ac_dir=.
3768 if test -f $ac_dir/${ac_tool_prefix}file; then
3769 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3770 if test -n "$file_magic_test_file"; then
3771 case $deplibs_check_method in
3772 "file_magic "*)
3773 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3774 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3775 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3776 egrep "$file_magic_regex" > /dev/null; then
3778 else
3779 cat <<EOF 1>&2
3781 *** Warning: the command libtool uses to detect shared libraries,
3782 *** $file_magic_cmd, produces output that libtool cannot recognize.
3783 *** The result is that libtool may fail to recognize shared libraries
3784 *** as such. This will affect the creation of libtool libraries that
3785 *** depend on shared libraries, but programs linked with such libtool
3786 *** libraries will work regardless of this problem. Nevertheless, you
3787 *** may want to report the problem to your system manager and/or to
3788 *** bug-libtool@gnu.org
3791 fi ;;
3792 esac
3794 break
3796 done
3797 IFS="$ac_save_ifs"
3798 MAGIC_CMD="$ac_save_MAGIC_CMD"
3800 esac
3803 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3804 if test -n "$MAGIC_CMD"; then
3805 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3806 echo "${ECHO_T}$MAGIC_CMD" >&6
3807 else
3808 echo "$as_me:$LINENO: result: no" >&5
3809 echo "${ECHO_T}no" >&6
3812 if test -z "$lt_cv_path_MAGIC_CMD"; then
3813 if test -n "$ac_tool_prefix"; then
3814 echo "$as_me:$LINENO: checking for file" >&5
3815 echo $ECHO_N "checking for file... $ECHO_C" >&6
3816 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 case $MAGIC_CMD in
3821 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3823 ?:/*)
3824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3827 ac_save_MAGIC_CMD="$MAGIC_CMD"
3828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3829 ac_dummy="/usr/bin:$PATH"
3830 for ac_dir in $ac_dummy; do
3831 test -z "$ac_dir" && ac_dir=.
3832 if test -f $ac_dir/file; then
3833 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3834 if test -n "$file_magic_test_file"; then
3835 case $deplibs_check_method in
3836 "file_magic "*)
3837 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3839 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3840 egrep "$file_magic_regex" > /dev/null; then
3842 else
3843 cat <<EOF 1>&2
3845 *** Warning: the command libtool uses to detect shared libraries,
3846 *** $file_magic_cmd, produces output that libtool cannot recognize.
3847 *** The result is that libtool may fail to recognize shared libraries
3848 *** as such. This will affect the creation of libtool libraries that
3849 *** depend on shared libraries, but programs linked with such libtool
3850 *** libraries will work regardless of this problem. Nevertheless, you
3851 *** may want to report the problem to your system manager and/or to
3852 *** bug-libtool@gnu.org
3855 fi ;;
3856 esac
3858 break
3860 done
3861 IFS="$ac_save_ifs"
3862 MAGIC_CMD="$ac_save_MAGIC_CMD"
3864 esac
3867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3868 if test -n "$MAGIC_CMD"; then
3869 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3870 echo "${ECHO_T}$MAGIC_CMD" >&6
3871 else
3872 echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3876 else
3877 MAGIC_CMD=:
3883 esac
3885 if test -n "$ac_tool_prefix"; then
3886 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3887 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3888 echo "$as_me:$LINENO: checking for $ac_word" >&5
3889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3890 if test "${ac_cv_prog_RANLIB+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893 if test -n "$RANLIB"; then
3894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3895 else
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH
3899 IFS=$as_save_IFS
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3903 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 break 2
3907 done
3908 done
3912 RANLIB=$ac_cv_prog_RANLIB
3913 if test -n "$RANLIB"; then
3914 echo "$as_me:$LINENO: result: $RANLIB" >&5
3915 echo "${ECHO_T}$RANLIB" >&6
3916 else
3917 echo "$as_me:$LINENO: result: no" >&5
3918 echo "${ECHO_T}no" >&6
3922 if test -z "$ac_cv_prog_RANLIB"; then
3923 ac_ct_RANLIB=$RANLIB
3924 # Extract the first word of "ranlib", so it can be a program name with args.
3925 set dummy ranlib; ac_word=$2
3926 echo "$as_me:$LINENO: checking for $ac_word" >&5
3927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3928 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931 if test -n "$ac_ct_RANLIB"; then
3932 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3933 else
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3941 ac_cv_prog_ac_ct_RANLIB="ranlib"
3942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3945 done
3946 done
3948 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3951 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3952 if test -n "$ac_ct_RANLIB"; then
3953 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3954 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3955 else
3956 echo "$as_me:$LINENO: result: no" >&5
3957 echo "${ECHO_T}no" >&6
3960 RANLIB=$ac_ct_RANLIB
3961 else
3962 RANLIB="$ac_cv_prog_RANLIB"
3965 if test -n "$ac_tool_prefix"; then
3966 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3967 set dummy ${ac_tool_prefix}strip; ac_word=$2
3968 echo "$as_me:$LINENO: checking for $ac_word" >&5
3969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3970 if test "${ac_cv_prog_STRIP+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973 if test -n "$STRIP"; then
3974 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3975 else
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 for as_dir in $PATH
3979 IFS=$as_save_IFS
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3983 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 break 2
3987 done
3988 done
3992 STRIP=$ac_cv_prog_STRIP
3993 if test -n "$STRIP"; then
3994 echo "$as_me:$LINENO: result: $STRIP" >&5
3995 echo "${ECHO_T}$STRIP" >&6
3996 else
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4002 if test -z "$ac_cv_prog_STRIP"; then
4003 ac_ct_STRIP=$STRIP
4004 # Extract the first word of "strip", so it can be a program name with args.
4005 set dummy strip; ac_word=$2
4006 echo "$as_me:$LINENO: checking for $ac_word" >&5
4007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4008 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011 if test -n "$ac_ct_STRIP"; then
4012 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_ac_ct_STRIP="strip"
4022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4025 done
4026 done
4028 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4031 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4032 if test -n "$ac_ct_STRIP"; then
4033 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4034 echo "${ECHO_T}$ac_ct_STRIP" >&6
4035 else
4036 echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6
4040 STRIP=$ac_ct_STRIP
4041 else
4042 STRIP="$ac_cv_prog_STRIP"
4046 # Check for any special flags to pass to ltconfig.
4047 libtool_flags="--cache-file=$cache_file"
4048 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4049 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4050 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4051 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4052 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4055 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4056 if test "${enable_libtool_lock+set}" = set; then
4057 enableval="$enable_libtool_lock"
4060 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4061 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4064 # Check whether --with-pic or --without-pic was given.
4065 if test "${with_pic+set}" = set; then
4066 withval="$with_pic"
4067 pic_mode="$withval"
4068 else
4069 pic_mode=default
4071 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4072 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4074 # Some flags need to be propagated to the compiler or linker for good
4075 # libtool support.
4076 case $host in
4077 *-*-irix6*)
4078 # Find out which ABI we are using.
4079 echo '#line 4079 "configure"' > conftest.$ac_ext
4080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4081 (eval $ac_compile) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; then
4085 if test "$lt_cv_prog_gnu_ld" = yes; then
4086 case `/usr/bin/file conftest.$ac_objext` in
4087 *32-bit*)
4088 LD="${LD-ld} -melf32bsmip"
4090 *N32*)
4091 LD="${LD-ld} -melf32bmipn32"
4093 *64-bit*)
4094 LD="${LD-ld} -melf64bmip"
4096 esac
4097 else
4098 case `/usr/bin/file conftest.$ac_objext` in
4099 *32-bit*)
4100 LD="${LD-ld} -32"
4102 *N32*)
4103 LD="${LD-ld} -n32"
4105 *64-bit*)
4106 LD="${LD-ld} -64"
4108 esac
4111 rm -rf conftest*
4114 ia64-*-hpux*)
4115 # Find out which ABI we are using.
4116 echo 'int i;' > conftest.$ac_ext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118 (eval $ac_compile) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; then
4122 case "`/usr/bin/file conftest.o`" in
4123 *ELF-32*)
4124 HPUX_IA64_MODE="32"
4126 *ELF-64*)
4127 HPUX_IA64_MODE="64"
4129 esac
4131 rm -rf conftest*
4134 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4135 # Find out which ABI we are using.
4136 echo 'int i;' > conftest.$ac_ext
4137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4138 (eval $ac_compile) 2>&5
4139 ac_status=$?
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; then
4142 case "`/usr/bin/file conftest.o`" in
4143 *32-bit*)
4144 case $host in
4145 x86_64-*linux*)
4146 LD="${LD-ld} -m elf_i386"
4148 ppc64-*linux*|powerpc64-*linux*)
4149 LD="${LD-ld} -m elf32ppclinux"
4151 s390x-*linux*)
4152 LD="${LD-ld} -m elf_s390"
4154 sparc64-*linux*)
4155 LD="${LD-ld} -m elf32_sparc"
4157 esac
4159 *64-bit*)
4160 case $host in
4161 x86_64-*linux*)
4162 LD="${LD-ld} -m elf_x86_64"
4164 ppc*-*linux*|powerpc*-*linux*)
4165 LD="${LD-ld} -m elf64ppc"
4167 s390*-*linux*)
4168 LD="${LD-ld} -m elf64_s390"
4170 sparc*-*linux*)
4171 LD="${LD-ld} -m elf64_sparc"
4173 esac
4175 esac
4177 rm -rf conftest*
4180 *-*-sco3.2v5*)
4181 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4182 SAVE_CFLAGS="$CFLAGS"
4183 CFLAGS="$CFLAGS -belf"
4184 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4185 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4186 if test "${lt_cv_cc_needs_belf+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4191 ac_ext=c
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197 if test x$gcc_no_link = xyes; then
4198 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4199 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4200 { (exit 1); exit 1; }; }
4202 cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h. */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4210 main ()
4214 return 0;
4216 _ACEOF
4217 rm -f conftest.$ac_objext conftest$ac_exeext
4218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4219 (eval $ac_link) 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -z "$ac_c_werror_flag"
4227 || test ! -s conftest.err'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 (eval $ac_try) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try='test -s conftest$ac_exeext'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 lt_cv_cc_needs_belf=yes
4240 else
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 lt_cv_cc_needs_belf=no
4246 rm -f conftest.err conftest.$ac_objext \
4247 conftest$ac_exeext conftest.$ac_ext
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4256 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4257 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4258 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4259 CFLAGS="$SAVE_CFLAGS"
4264 esac
4267 # Save cache, so that ltconfig can load it
4268 cat >confcache <<\_ACEOF
4269 # This file is a shell script that caches the results of configure
4270 # tests run on this system so they can be shared between configure
4271 # scripts and configure runs, see configure's option --config-cache.
4272 # It is not useful on other systems. If it contains results you don't
4273 # want to keep, you may remove or edit it.
4275 # config.status only pays attention to the cache file if you give it
4276 # the --recheck option to rerun configure.
4278 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4279 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4280 # following values.
4282 _ACEOF
4284 # The following way of writing the cache mishandles newlines in values,
4285 # but we know of no workaround that is simple, portable, and efficient.
4286 # So, don't put newlines in cache variables' values.
4287 # Ultrix sh set writes to stderr and can't be redirected directly,
4288 # and sets the high bit in the cache file unless we assign to the vars.
4290 (set) 2>&1 |
4291 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4292 *ac_space=\ *)
4293 # `set' does not quote correctly, so add quotes (double-quote
4294 # substitution turns \\\\ into \\, and sed turns \\ into \).
4295 sed -n \
4296 "s/'/'\\\\''/g;
4297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4300 # `set' quotes correctly as required by POSIX, so do not add quotes.
4301 sed -n \
4302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4304 esac;
4306 sed '
4307 t clear
4308 : clear
4309 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4310 t end
4311 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4312 : end' >>confcache
4313 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4314 if test -w $cache_file; then
4315 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4316 cat confcache >$cache_file
4317 else
4318 echo "not updating unwritable cache $cache_file"
4321 rm -f confcache
4323 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4324 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4325 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4326 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4327 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4328 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4329 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4330 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4331 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4332 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4333 echo "$as_me: error: libtool configure failed" >&2;}
4334 { (exit 1); exit 1; }; }
4336 # Reload cache, that may have been modified by ltconfig
4337 if test -r "$cache_file"; then
4338 # Some versions of bash will fail to source /dev/null (special
4339 # files actually), so we avoid doing that.
4340 if test -f "$cache_file"; then
4341 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4342 echo "$as_me: loading cache $cache_file" >&6;}
4343 case $cache_file in
4344 [\\/]* | ?:[\\/]* ) . $cache_file;;
4345 *) . ./$cache_file;;
4346 esac
4348 else
4349 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4350 echo "$as_me: creating cache $cache_file" >&6;}
4351 >$cache_file
4355 # This can be used to rebuild libtool when needed
4356 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4358 # Always use our own libtool.
4359 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4361 # Redirect the config.log output again, so that the ltconfig log is not
4362 # clobbered by the next message.
4363 exec 5>>./config.log
4372 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4374 # We need gfortran to compile parts of the library
4375 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4376 #AC_PROG_FC(gfortran)
4377 FC="$GFORTRAN"
4378 ac_ext=${FC_SRCEXT-f}
4379 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4380 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4382 if test -n "$ac_tool_prefix"; then
4383 for ac_prog in gfortran
4385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4387 echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4389 if test "${ac_cv_prog_FC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 if test -n "$FC"; then
4393 ac_cv_prog_FC="$FC" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4406 done
4407 done
4411 FC=$ac_cv_prog_FC
4412 if test -n "$FC"; then
4413 echo "$as_me:$LINENO: result: $FC" >&5
4414 echo "${ECHO_T}$FC" >&6
4415 else
4416 echo "$as_me:$LINENO: result: no" >&5
4417 echo "${ECHO_T}no" >&6
4420 test -n "$FC" && break
4421 done
4423 if test -z "$FC"; then
4424 ac_ct_FC=$FC
4425 for ac_prog in gfortran
4427 # Extract the first word of "$ac_prog", so it can be a program name with args.
4428 set dummy $ac_prog; ac_word=$2
4429 echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4431 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434 if test -n "$ac_ct_FC"; then
4435 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4444 ac_cv_prog_ac_ct_FC="$ac_prog"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4448 done
4449 done
4453 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4454 if test -n "$ac_ct_FC"; then
4455 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4456 echo "${ECHO_T}$ac_ct_FC" >&6
4457 else
4458 echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6
4462 test -n "$ac_ct_FC" && break
4463 done
4465 FC=$ac_ct_FC
4469 # Provide some information about the compiler.
4470 echo "$as_me:4470:" \
4471 "checking for Fortran compiler version" >&5
4472 ac_compiler=`set X $ac_compile; echo $2`
4473 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4474 (eval $ac_compiler --version </dev/null >&5) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }
4478 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4479 (eval $ac_compiler -v </dev/null >&5) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }
4483 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4484 (eval $ac_compiler -V </dev/null >&5) 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }
4488 rm -f a.out
4490 # If we don't use `.F' as extension, the preprocessor is not run on the
4491 # input file. (Note that this only needs to work for GNU compilers.)
4492 ac_save_ext=$ac_ext
4493 ac_ext=F
4494 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4495 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4496 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499 cat >conftest.$ac_ext <<_ACEOF
4500 program main
4501 #ifndef __GNUC__
4502 choke me
4503 #endif
4506 _ACEOF
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_fc_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_compiler_gnu=yes
4530 else
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4534 ac_compiler_gnu=no
4536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4537 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4540 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4541 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4542 ac_ext=$ac_save_ext
4543 ac_test_FFLAGS=${FCFLAGS+set}
4544 ac_save_FFLAGS=$FCFLAGS
4545 FCFLAGS=
4546 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4547 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4548 if test "${ac_cv_prog_fc_g+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 FCFLAGS=-g
4552 cat >conftest.$ac_ext <<_ACEOF
4553 program main
4556 _ACEOF
4557 rm -f conftest.$ac_objext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
4566 { ac_try='test -z "$ac_fc_werror_flag"
4567 || test ! -s conftest.err'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 ac_cv_prog_fc_g=yes
4580 else
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4584 ac_cv_prog_fc_g=no
4586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4589 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4590 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4591 if test "$ac_test_FFLAGS" = set; then
4592 FCFLAGS=$ac_save_FFLAGS
4593 elif test $ac_cv_prog_fc_g = yes; then
4594 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4595 FCFLAGS="-g -O2"
4596 else
4597 FCFLAGS="-g"
4599 else
4600 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4601 FCFLAGS="-O2"
4602 else
4603 FCFLAGS=
4607 ac_ext=c
4608 ac_cpp='$CPP $CPPFLAGS'
4609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4613 FCFLAGS="$FCFLAGS -Wall -fno-repack-arrays -fno-underscoring"
4615 # Check whether --enable-largefile or --disable-largefile was given.
4616 if test "${enable_largefile+set}" = set; then
4617 enableval="$enable_largefile"
4620 if test "$enable_largefile" != no; then
4622 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4623 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4624 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627 ac_cv_sys_largefile_CC=no
4628 if test "$GCC" != yes; then
4629 ac_save_CC=$CC
4630 while :; do
4631 # IRIX 6.2 and later do not support large files by default,
4632 # so use the C compiler's -n32 option if that helps.
4633 cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h. */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4639 #include <sys/types.h>
4640 /* Check that off_t can represent 2**63 - 1 correctly.
4641 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4642 since some C++ compilers masquerading as C compilers
4643 incorrectly reject 9223372036854775807. */
4644 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4645 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4646 && LARGE_OFF_T % 2147483647 == 1)
4647 ? 1 : -1];
4649 main ()
4653 return 0;
4655 _ACEOF
4656 rm -f conftest.$ac_objext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4658 (eval $ac_compile) 2>conftest.er1
4659 ac_status=$?
4660 grep -v '^ *+' conftest.er1 >conftest.err
4661 rm -f conftest.er1
4662 cat conftest.err >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -z "$ac_c_werror_flag"
4666 || test ! -s conftest.err'
4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 (eval $ac_try) 2>&5
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; } &&
4672 { ac_try='test -s conftest.$ac_objext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 (eval $ac_try) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 break
4679 else
4680 echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4684 rm -f conftest.err conftest.$ac_objext
4685 CC="$CC -n32"
4686 rm -f conftest.$ac_objext
4687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4688 (eval $ac_compile) 2>conftest.er1
4689 ac_status=$?
4690 grep -v '^ *+' conftest.er1 >conftest.err
4691 rm -f conftest.er1
4692 cat conftest.err >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } &&
4695 { ac_try='test -z "$ac_c_werror_flag"
4696 || test ! -s conftest.err'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; } &&
4702 { ac_try='test -s conftest.$ac_objext'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; }; then
4708 ac_cv_sys_largefile_CC=' -n32'; break
4709 else
4710 echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4714 rm -f conftest.err conftest.$ac_objext
4715 break
4716 done
4717 CC=$ac_save_CC
4718 rm -f conftest.$ac_ext
4721 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4722 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4723 if test "$ac_cv_sys_largefile_CC" != no; then
4724 CC=$CC$ac_cv_sys_largefile_CC
4727 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4728 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4729 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 while :; do
4733 ac_cv_sys_file_offset_bits=no
4734 cat >conftest.$ac_ext <<_ACEOF
4735 /* confdefs.h. */
4736 _ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4740 #include <sys/types.h>
4741 /* Check that off_t can represent 2**63 - 1 correctly.
4742 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4743 since some C++ compilers masquerading as C compilers
4744 incorrectly reject 9223372036854775807. */
4745 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4747 && LARGE_OFF_T % 2147483647 == 1)
4748 ? 1 : -1];
4750 main ()
4754 return 0;
4756 _ACEOF
4757 rm -f conftest.$ac_objext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4759 (eval $ac_compile) 2>conftest.er1
4760 ac_status=$?
4761 grep -v '^ *+' conftest.er1 >conftest.err
4762 rm -f conftest.er1
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } &&
4766 { ac_try='test -z "$ac_c_werror_flag"
4767 || test ! -s conftest.err'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769 (eval $ac_try) 2>&5
4770 ac_status=$?
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; } &&
4773 { ac_try='test -s conftest.$ac_objext'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 (eval $ac_try) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 break
4780 else
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4786 cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h. */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 #define _FILE_OFFSET_BITS 64
4793 #include <sys/types.h>
4794 /* Check that off_t can represent 2**63 - 1 correctly.
4795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4796 since some C++ compilers masquerading as C compilers
4797 incorrectly reject 9223372036854775807. */
4798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4800 && LARGE_OFF_T % 2147483647 == 1)
4801 ? 1 : -1];
4803 main ()
4807 return 0;
4809 _ACEOF
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>conftest.er1
4813 ac_status=$?
4814 grep -v '^ *+' conftest.er1 >conftest.err
4815 rm -f conftest.er1
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try='test -z "$ac_c_werror_flag"
4820 || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 ac_cv_sys_file_offset_bits=64; break
4833 else
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839 break
4840 done
4842 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4843 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4844 if test "$ac_cv_sys_file_offset_bits" != no; then
4846 cat >>confdefs.h <<_ACEOF
4847 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4848 _ACEOF
4851 rm -f conftest*
4852 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4853 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4854 if test "${ac_cv_sys_large_files+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857 while :; do
4858 ac_cv_sys_large_files=no
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865 #include <sys/types.h>
4866 /* Check that off_t can represent 2**63 - 1 correctly.
4867 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4868 since some C++ compilers masquerading as C compilers
4869 incorrectly reject 9223372036854775807. */
4870 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4871 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4872 && LARGE_OFF_T % 2147483647 == 1)
4873 ? 1 : -1];
4875 main ()
4879 return 0;
4881 _ACEOF
4882 rm -f conftest.$ac_objext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 break
4905 else
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 #define _LARGE_FILES 1
4918 #include <sys/types.h>
4919 /* Check that off_t can represent 2**63 - 1 correctly.
4920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4921 since some C++ compilers masquerading as C compilers
4922 incorrectly reject 9223372036854775807. */
4923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4925 && LARGE_OFF_T % 2147483647 == 1)
4926 ? 1 : -1];
4928 main ()
4932 return 0;
4934 _ACEOF
4935 rm -f conftest.$ac_objext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937 (eval $ac_compile) 2>conftest.er1
4938 ac_status=$?
4939 grep -v '^ *+' conftest.er1 >conftest.err
4940 rm -f conftest.er1
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try='test -z "$ac_c_werror_flag"
4945 || test ! -s conftest.err'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 (eval $ac_try) 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; } &&
4951 { ac_try='test -s conftest.$ac_objext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 (eval $ac_try) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 ac_cv_sys_large_files=1; break
4958 else
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4964 break
4965 done
4967 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4968 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4969 if test "$ac_cv_sys_large_files" != no; then
4971 cat >>confdefs.h <<_ACEOF
4972 #define _LARGE_FILES $ac_cv_sys_large_files
4973 _ACEOF
4976 rm -f conftest*
4979 if test x$gcc_no_link = xyes; then
4980 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
4981 ac_cv_func_mmap_fixed_mapped=no
4984 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
4985 ac_ext=c
4986 ac_cpp='$CPP $CPPFLAGS'
4987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4990 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4991 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4992 # On Suns, sometimes $CPP names a directory.
4993 if test -n "$CPP" && test -d "$CPP"; then
4994 CPP=
4996 if test -z "$CPP"; then
4997 if test "${ac_cv_prog_CPP+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000 # Double quotes because CPP needs to be expanded
5001 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5003 ac_preproc_ok=false
5004 for ac_c_preproc_warn_flag in '' yes
5006 # Use a header file that comes with gcc, so configuring glibc
5007 # with a fresh cross-compiler works.
5008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5009 # <limits.h> exists even on freestanding compilers.
5010 # On the NeXT, cc -E runs the code through the compiler's parser,
5011 # not just through cpp. "Syntax error" is here to catch this case.
5012 cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 #ifdef __STDC__
5019 # include <limits.h>
5020 #else
5021 # include <assert.h>
5022 #endif
5023 Syntax error
5024 _ACEOF
5025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5027 ac_status=$?
5028 grep -v '^ *+' conftest.er1 >conftest.err
5029 rm -f conftest.er1
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } >/dev/null; then
5033 if test -s conftest.err; then
5034 ac_cpp_err=$ac_c_preproc_warn_flag
5035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5036 else
5037 ac_cpp_err=
5039 else
5040 ac_cpp_err=yes
5042 if test -z "$ac_cpp_err"; then
5044 else
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5048 # Broken: fails on valid input.
5049 continue
5051 rm -f conftest.err conftest.$ac_ext
5053 # OK, works on sane cases. Now check whether non-existent headers
5054 # can be detected and how.
5055 cat >conftest.$ac_ext <<_ACEOF
5056 /* confdefs.h. */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5061 #include <ac_nonexistent.h>
5062 _ACEOF
5063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5065 ac_status=$?
5066 grep -v '^ *+' conftest.er1 >conftest.err
5067 rm -f conftest.er1
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } >/dev/null; then
5071 if test -s conftest.err; then
5072 ac_cpp_err=$ac_c_preproc_warn_flag
5073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5074 else
5075 ac_cpp_err=
5077 else
5078 ac_cpp_err=yes
5080 if test -z "$ac_cpp_err"; then
5081 # Broken: success on invalid input.
5082 continue
5083 else
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5087 # Passes both tests.
5088 ac_preproc_ok=:
5089 break
5091 rm -f conftest.err conftest.$ac_ext
5093 done
5094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095 rm -f conftest.err conftest.$ac_ext
5096 if $ac_preproc_ok; then
5097 break
5100 done
5101 ac_cv_prog_CPP=$CPP
5104 CPP=$ac_cv_prog_CPP
5105 else
5106 ac_cv_prog_CPP=$CPP
5108 echo "$as_me:$LINENO: result: $CPP" >&5
5109 echo "${ECHO_T}$CPP" >&6
5110 ac_preproc_ok=false
5111 for ac_c_preproc_warn_flag in '' yes
5113 # Use a header file that comes with gcc, so configuring glibc
5114 # with a fresh cross-compiler works.
5115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5116 # <limits.h> exists even on freestanding compilers.
5117 # On the NeXT, cc -E runs the code through the compiler's parser,
5118 # not just through cpp. "Syntax error" is here to catch this case.
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 #ifdef __STDC__
5126 # include <limits.h>
5127 #else
5128 # include <assert.h>
5129 #endif
5130 Syntax error
5131 _ACEOF
5132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5134 ac_status=$?
5135 grep -v '^ *+' conftest.er1 >conftest.err
5136 rm -f conftest.er1
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } >/dev/null; then
5140 if test -s conftest.err; then
5141 ac_cpp_err=$ac_c_preproc_warn_flag
5142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5143 else
5144 ac_cpp_err=
5146 else
5147 ac_cpp_err=yes
5149 if test -z "$ac_cpp_err"; then
5151 else
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5155 # Broken: fails on valid input.
5156 continue
5158 rm -f conftest.err conftest.$ac_ext
5160 # OK, works on sane cases. Now check whether non-existent headers
5161 # can be detected and how.
5162 cat >conftest.$ac_ext <<_ACEOF
5163 /* confdefs.h. */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 #include <ac_nonexistent.h>
5169 _ACEOF
5170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5172 ac_status=$?
5173 grep -v '^ *+' conftest.er1 >conftest.err
5174 rm -f conftest.er1
5175 cat conftest.err >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } >/dev/null; then
5178 if test -s conftest.err; then
5179 ac_cpp_err=$ac_c_preproc_warn_flag
5180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5181 else
5182 ac_cpp_err=
5184 else
5185 ac_cpp_err=yes
5187 if test -z "$ac_cpp_err"; then
5188 # Broken: success on invalid input.
5189 continue
5190 else
5191 echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.$ac_ext >&5
5194 # Passes both tests.
5195 ac_preproc_ok=:
5196 break
5198 rm -f conftest.err conftest.$ac_ext
5200 done
5201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5202 rm -f conftest.err conftest.$ac_ext
5203 if $ac_preproc_ok; then
5205 else
5206 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5207 See \`config.log' for more details." >&5
5208 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5209 See \`config.log' for more details." >&2;}
5210 { (exit 1); exit 1; }; }
5213 ac_ext=c
5214 ac_cpp='$CPP $CPPFLAGS'
5215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5220 echo "$as_me:$LINENO: checking for egrep" >&5
5221 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5222 if test "${ac_cv_prog_egrep+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5226 then ac_cv_prog_egrep='grep -E'
5227 else ac_cv_prog_egrep='egrep'
5230 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5231 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5232 EGREP=$ac_cv_prog_egrep
5235 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5236 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5237 if test "${ac_cv_header_stdc+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240 cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h. */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5246 #include <stdlib.h>
5247 #include <stdarg.h>
5248 #include <string.h>
5249 #include <float.h>
5252 main ()
5256 return 0;
5258 _ACEOF
5259 rm -f conftest.$ac_objext
5260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5261 (eval $ac_compile) 2>conftest.er1
5262 ac_status=$?
5263 grep -v '^ *+' conftest.er1 >conftest.err
5264 rm -f conftest.er1
5265 cat conftest.err >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } &&
5268 { ac_try='test -z "$ac_c_werror_flag"
5269 || test ! -s conftest.err'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; } &&
5275 { ac_try='test -s conftest.$ac_objext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 (eval $ac_try) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5281 ac_cv_header_stdc=yes
5282 else
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 ac_cv_header_stdc=no
5288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5290 if test $ac_cv_header_stdc = yes; then
5291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5292 cat >conftest.$ac_ext <<_ACEOF
5293 /* confdefs.h. */
5294 _ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5298 #include <string.h>
5300 _ACEOF
5301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302 $EGREP "memchr" >/dev/null 2>&1; then
5304 else
5305 ac_cv_header_stdc=no
5307 rm -f conftest*
5311 if test $ac_cv_header_stdc = yes; then
5312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5313 cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h. */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 #include <stdlib.h>
5321 _ACEOF
5322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323 $EGREP "free" >/dev/null 2>&1; then
5325 else
5326 ac_cv_header_stdc=no
5328 rm -f conftest*
5332 if test $ac_cv_header_stdc = yes; then
5333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5334 if test "$cross_compiling" = yes; then
5336 else
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h. */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 #include <ctype.h>
5344 #if ((' ' & 0x0FF) == 0x020)
5345 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5346 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5347 #else
5348 # define ISLOWER(c) \
5349 (('a' <= (c) && (c) <= 'i') \
5350 || ('j' <= (c) && (c) <= 'r') \
5351 || ('s' <= (c) && (c) <= 'z'))
5352 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5353 #endif
5355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5357 main ()
5359 int i;
5360 for (i = 0; i < 256; i++)
5361 if (XOR (islower (i), ISLOWER (i))
5362 || toupper (i) != TOUPPER (i))
5363 exit(2);
5364 exit (0);
5366 _ACEOF
5367 rm -f conftest$ac_exeext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5369 (eval $ac_link) 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 (eval $ac_try) 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5379 else
5380 echo "$as_me: program exited with status $ac_status" >&5
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5384 ( exit $ac_status )
5385 ac_cv_header_stdc=no
5387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5391 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5392 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5393 if test $ac_cv_header_stdc = yes; then
5395 cat >>confdefs.h <<\_ACEOF
5396 #define STDC_HEADERS 1
5397 _ACEOF
5401 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5411 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5412 inttypes.h stdint.h unistd.h
5414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5415 echo "$as_me:$LINENO: checking for $ac_header" >&5
5416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 $ac_includes_default
5428 #include <$ac_header>
5429 _ACEOF
5430 rm -f conftest.$ac_objext
5431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5432 (eval $ac_compile) 2>conftest.er1
5433 ac_status=$?
5434 grep -v '^ *+' conftest.er1 >conftest.err
5435 rm -f conftest.er1
5436 cat conftest.err >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } &&
5439 { ac_try='test -z "$ac_c_werror_flag"
5440 || test ! -s conftest.err'
5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 (eval $ac_try) 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; } &&
5446 { ac_try='test -s conftest.$ac_objext'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 (eval $ac_try) 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; }; then
5452 eval "$as_ac_Header=yes"
5453 else
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 eval "$as_ac_Header=no"
5459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5464 cat >>confdefs.h <<_ACEOF
5465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5466 _ACEOF
5470 done
5475 for ac_header in stdlib.h unistd.h
5477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5479 echo "$as_me:$LINENO: checking for $ac_header" >&5
5480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5486 else
5487 # Is the header compilable?
5488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5490 cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h. */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 $ac_includes_default
5497 #include <$ac_header>
5498 _ACEOF
5499 rm -f conftest.$ac_objext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5501 (eval $ac_compile) 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } &&
5508 { ac_try='test -z "$ac_c_werror_flag"
5509 || test ! -s conftest.err'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 (eval $ac_try) 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; } &&
5515 { ac_try='test -s conftest.$ac_objext'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 (eval $ac_try) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5521 ac_header_compiler=yes
5522 else
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5526 ac_header_compiler=no
5528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5530 echo "${ECHO_T}$ac_header_compiler" >&6
5532 # Is the header present?
5533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 #include <$ac_header>
5542 _ACEOF
5543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5545 ac_status=$?
5546 grep -v '^ *+' conftest.er1 >conftest.err
5547 rm -f conftest.er1
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } >/dev/null; then
5551 if test -s conftest.err; then
5552 ac_cpp_err=$ac_c_preproc_warn_flag
5553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5554 else
5555 ac_cpp_err=
5557 else
5558 ac_cpp_err=yes
5560 if test -z "$ac_cpp_err"; then
5561 ac_header_preproc=yes
5562 else
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5566 ac_header_preproc=no
5568 rm -f conftest.err conftest.$ac_ext
5569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5570 echo "${ECHO_T}$ac_header_preproc" >&6
5572 # So? What about this header?
5573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5574 yes:no: )
5575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5579 ac_header_preproc=yes
5581 no:yes:* )
5582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5595 cat <<\_ASBOX
5596 ## ------------------------------------------------------ ##
5597 ## Report this to the GNU Fortran Runtime Library lists. ##
5598 ## ------------------------------------------------------ ##
5599 _ASBOX
5601 sed "s/^/$as_me: WARNING: /" >&2
5603 esac
5604 echo "$as_me:$LINENO: checking for $ac_header" >&5
5605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609 eval "$as_ac_Header=\$ac_header_preproc"
5611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5616 cat >>confdefs.h <<_ACEOF
5617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5618 _ACEOF
5622 done
5625 for ac_func in getpagesize
5627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5628 echo "$as_me:$LINENO: checking for $ac_func" >&5
5629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5630 if eval "test \"\${$as_ac_var+set}\" = set"; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 else
5633 if test x$gcc_no_link = xyes; then
5634 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5635 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5636 { (exit 1); exit 1; }; }
5638 cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h. */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5646 #define $ac_func innocuous_$ac_func
5648 /* System header to define __stub macros and hopefully few prototypes,
5649 which can conflict with char $ac_func (); below.
5650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5651 <limits.h> exists even on freestanding compilers. */
5653 #ifdef __STDC__
5654 # include <limits.h>
5655 #else
5656 # include <assert.h>
5657 #endif
5659 #undef $ac_func
5661 /* Override any gcc2 internal prototype to avoid an error. */
5662 #ifdef __cplusplus
5663 extern "C"
5665 #endif
5666 /* We use char because int might match the return type of a gcc2
5667 builtin and then its argument prototype would still apply. */
5668 char $ac_func ();
5669 /* The GNU C library defines this for functions which it implements
5670 to always fail with ENOSYS. Some functions are actually named
5671 something starting with __ and the normal name is an alias. */
5672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5673 choke me
5674 #else
5675 char (*f) () = $ac_func;
5676 #endif
5677 #ifdef __cplusplus
5679 #endif
5682 main ()
5684 return f != $ac_func;
5686 return 0;
5688 _ACEOF
5689 rm -f conftest.$ac_objext conftest$ac_exeext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5691 (eval $ac_link) 2>conftest.er1
5692 ac_status=$?
5693 grep -v '^ *+' conftest.er1 >conftest.err
5694 rm -f conftest.er1
5695 cat conftest.err >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } &&
5698 { ac_try='test -z "$ac_c_werror_flag"
5699 || test ! -s conftest.err'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 (eval $ac_try) 2>&5
5702 ac_status=$?
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; } &&
5705 { ac_try='test -s conftest$ac_exeext'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 (eval $ac_try) 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; }; then
5711 eval "$as_ac_var=yes"
5712 else
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5716 eval "$as_ac_var=no"
5718 rm -f conftest.err conftest.$ac_objext \
5719 conftest$ac_exeext conftest.$ac_ext
5721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5723 if test `eval echo '${'$as_ac_var'}'` = yes; then
5724 cat >>confdefs.h <<_ACEOF
5725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5726 _ACEOF
5729 done
5731 echo "$as_me:$LINENO: checking for working mmap" >&5
5732 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5733 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736 if test "$cross_compiling" = yes; then
5737 ac_cv_func_mmap_fixed_mapped=no
5738 else
5739 cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h. */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 $ac_includes_default
5746 /* malloc might have been renamed as rpl_malloc. */
5747 #undef malloc
5749 /* Thanks to Mike Haertel and Jim Avera for this test.
5750 Here is a matrix of mmap possibilities:
5751 mmap private not fixed
5752 mmap private fixed at somewhere currently unmapped
5753 mmap private fixed at somewhere already mapped
5754 mmap shared not fixed
5755 mmap shared fixed at somewhere currently unmapped
5756 mmap shared fixed at somewhere already mapped
5757 For private mappings, we should verify that changes cannot be read()
5758 back from the file, nor mmap's back from the file at a different
5759 address. (There have been systems where private was not correctly
5760 implemented like the infamous i386 svr4.0, and systems where the
5761 VM page cache was not coherent with the file system buffer cache
5762 like early versions of FreeBSD and possibly contemporary NetBSD.)
5763 For shared mappings, we should conversely verify that changes get
5764 propagated back to all the places they're supposed to be.
5766 Grep wants private fixed already mapped.
5767 The main things grep needs to know about mmap are:
5768 * does it exist and is it safe to write into the mmap'd area
5769 * how to use it (BSD variants) */
5771 #include <fcntl.h>
5772 #include <sys/mman.h>
5774 #if !STDC_HEADERS && !HAVE_STDLIB_H
5775 char *malloc ();
5776 #endif
5778 /* This mess was copied from the GNU getpagesize.h. */
5779 #if !HAVE_GETPAGESIZE
5780 /* Assume that all systems that can run configure have sys/param.h. */
5781 # if !HAVE_SYS_PARAM_H
5782 # define HAVE_SYS_PARAM_H 1
5783 # endif
5785 # ifdef _SC_PAGESIZE
5786 # define getpagesize() sysconf(_SC_PAGESIZE)
5787 # else /* no _SC_PAGESIZE */
5788 # if HAVE_SYS_PARAM_H
5789 # include <sys/param.h>
5790 # ifdef EXEC_PAGESIZE
5791 # define getpagesize() EXEC_PAGESIZE
5792 # else /* no EXEC_PAGESIZE */
5793 # ifdef NBPG
5794 # define getpagesize() NBPG * CLSIZE
5795 # ifndef CLSIZE
5796 # define CLSIZE 1
5797 # endif /* no CLSIZE */
5798 # else /* no NBPG */
5799 # ifdef NBPC
5800 # define getpagesize() NBPC
5801 # else /* no NBPC */
5802 # ifdef PAGESIZE
5803 # define getpagesize() PAGESIZE
5804 # endif /* PAGESIZE */
5805 # endif /* no NBPC */
5806 # endif /* no NBPG */
5807 # endif /* no EXEC_PAGESIZE */
5808 # else /* no HAVE_SYS_PARAM_H */
5809 # define getpagesize() 8192 /* punt totally */
5810 # endif /* no HAVE_SYS_PARAM_H */
5811 # endif /* no _SC_PAGESIZE */
5813 #endif /* no HAVE_GETPAGESIZE */
5816 main ()
5818 char *data, *data2, *data3;
5819 int i, pagesize;
5820 int fd;
5822 pagesize = getpagesize ();
5824 /* First, make a file with some known garbage in it. */
5825 data = (char *) malloc (pagesize);
5826 if (!data)
5827 exit (1);
5828 for (i = 0; i < pagesize; ++i)
5829 *(data + i) = rand ();
5830 umask (0);
5831 fd = creat ("conftest.mmap", 0600);
5832 if (fd < 0)
5833 exit (1);
5834 if (write (fd, data, pagesize) != pagesize)
5835 exit (1);
5836 close (fd);
5838 /* Next, try to mmap the file at a fixed address which already has
5839 something else allocated at it. If we can, also make sure that
5840 we see the same garbage. */
5841 fd = open ("conftest.mmap", O_RDWR);
5842 if (fd < 0)
5843 exit (1);
5844 data2 = (char *) malloc (2 * pagesize);
5845 if (!data2)
5846 exit (1);
5847 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5848 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5849 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5850 exit (1);
5851 for (i = 0; i < pagesize; ++i)
5852 if (*(data + i) != *(data2 + i))
5853 exit (1);
5855 /* Finally, make sure that changes to the mapped area do not
5856 percolate back to the file as seen by read(). (This is a bug on
5857 some variants of i386 svr4.0.) */
5858 for (i = 0; i < pagesize; ++i)
5859 *(data2 + i) = *(data2 + i) + 1;
5860 data3 = (char *) malloc (pagesize);
5861 if (!data3)
5862 exit (1);
5863 if (read (fd, data3, pagesize) != pagesize)
5864 exit (1);
5865 for (i = 0; i < pagesize; ++i)
5866 if (*(data + i) != *(data3 + i))
5867 exit (1);
5868 close (fd);
5869 exit (0);
5871 _ACEOF
5872 rm -f conftest$ac_exeext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5874 (eval $ac_link) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 (eval $ac_try) 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5883 ac_cv_func_mmap_fixed_mapped=yes
5884 else
5885 echo "$as_me: program exited with status $ac_status" >&5
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5889 ( exit $ac_status )
5890 ac_cv_func_mmap_fixed_mapped=no
5892 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5895 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5896 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5897 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5899 cat >>confdefs.h <<\_ACEOF
5900 #define HAVE_MMAP 1
5901 _ACEOF
5904 rm -f conftest.mmap
5907 echo "$as_me:$LINENO: checking for off_t" >&5
5908 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5909 if test "${ac_cv_type_off_t+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912 cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h. */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 $ac_includes_default
5920 main ()
5922 if ((off_t *) 0)
5923 return 0;
5924 if (sizeof (off_t))
5925 return 0;
5927 return 0;
5929 _ACEOF
5930 rm -f conftest.$ac_objext
5931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5932 (eval $ac_compile) 2>conftest.er1
5933 ac_status=$?
5934 grep -v '^ *+' conftest.er1 >conftest.err
5935 rm -f conftest.er1
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
5939 { ac_try='test -z "$ac_c_werror_flag"
5940 || test ! -s conftest.err'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 (eval $ac_try) 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; } &&
5946 { ac_try='test -s conftest.$ac_objext'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 (eval $ac_try) 2>&5
5949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5952 ac_cv_type_off_t=yes
5953 else
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5957 ac_cv_type_off_t=no
5959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5961 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5962 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5963 if test $ac_cv_type_off_t = yes; then
5965 else
5967 cat >>confdefs.h <<_ACEOF
5968 #define off_t long
5969 _ACEOF
5974 # check header files
5975 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5976 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5977 if test "${ac_cv_header_stdc+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980 cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h. */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 #include <stdlib.h>
5987 #include <stdarg.h>
5988 #include <string.h>
5989 #include <float.h>
5992 main ()
5996 return 0;
5998 _ACEOF
5999 rm -f conftest.$ac_objext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001 (eval $ac_compile) 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } &&
6008 { ac_try='test -z "$ac_c_werror_flag"
6009 || test ! -s conftest.err'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 (eval $ac_try) 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; } &&
6015 { ac_try='test -s conftest.$ac_objext'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 (eval $ac_try) 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6021 ac_cv_header_stdc=yes
6022 else
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6026 ac_cv_header_stdc=no
6028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6030 if test $ac_cv_header_stdc = yes; then
6031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <string.h>
6040 _ACEOF
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 $EGREP "memchr" >/dev/null 2>&1; then
6044 else
6045 ac_cv_header_stdc=no
6047 rm -f conftest*
6051 if test $ac_cv_header_stdc = yes; then
6052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6053 cat >conftest.$ac_ext <<_ACEOF
6054 /* confdefs.h. */
6055 _ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6059 #include <stdlib.h>
6061 _ACEOF
6062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6063 $EGREP "free" >/dev/null 2>&1; then
6065 else
6066 ac_cv_header_stdc=no
6068 rm -f conftest*
6072 if test $ac_cv_header_stdc = yes; then
6073 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6074 if test "$cross_compiling" = yes; then
6076 else
6077 cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h. */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 #include <ctype.h>
6084 #if ((' ' & 0x0FF) == 0x020)
6085 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6086 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6087 #else
6088 # define ISLOWER(c) \
6089 (('a' <= (c) && (c) <= 'i') \
6090 || ('j' <= (c) && (c) <= 'r') \
6091 || ('s' <= (c) && (c) <= 'z'))
6092 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6093 #endif
6095 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6097 main ()
6099 int i;
6100 for (i = 0; i < 256; i++)
6101 if (XOR (islower (i), ISLOWER (i))
6102 || toupper (i) != TOUPPER (i))
6103 exit(2);
6104 exit (0);
6106 _ACEOF
6107 rm -f conftest$ac_exeext
6108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6109 (eval $ac_link) 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 (eval $ac_try) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6119 else
6120 echo "$as_me: program exited with status $ac_status" >&5
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6124 ( exit $ac_status )
6125 ac_cv_header_stdc=no
6127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6131 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6132 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6133 if test $ac_cv_header_stdc = yes; then
6135 cat >>confdefs.h <<\_ACEOF
6136 #define STDC_HEADERS 1
6137 _ACEOF
6147 for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h
6149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6151 echo "$as_me:$LINENO: checking for $ac_header" >&5
6152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6158 else
6159 # Is the header compilable?
6160 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6162 cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h. */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 $ac_includes_default
6169 #include <$ac_header>
6170 _ACEOF
6171 rm -f conftest.$ac_objext
6172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6173 (eval $ac_compile) 2>conftest.er1
6174 ac_status=$?
6175 grep -v '^ *+' conftest.er1 >conftest.err
6176 rm -f conftest.er1
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try='test -z "$ac_c_werror_flag"
6181 || test ! -s conftest.err'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 (eval $ac_try) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; } &&
6187 { ac_try='test -s conftest.$ac_objext'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 ac_header_compiler=yes
6194 else
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6198 ac_header_compiler=no
6200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6202 echo "${ECHO_T}$ac_header_compiler" >&6
6204 # Is the header present?
6205 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h. */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 #include <$ac_header>
6214 _ACEOF
6215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6217 ac_status=$?
6218 grep -v '^ *+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } >/dev/null; then
6223 if test -s conftest.err; then
6224 ac_cpp_err=$ac_c_preproc_warn_flag
6225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6226 else
6227 ac_cpp_err=
6229 else
6230 ac_cpp_err=yes
6232 if test -z "$ac_cpp_err"; then
6233 ac_header_preproc=yes
6234 else
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6238 ac_header_preproc=no
6240 rm -f conftest.err conftest.$ac_ext
6241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6242 echo "${ECHO_T}$ac_header_preproc" >&6
6244 # So? What about this header?
6245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6246 yes:no: )
6247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6251 ac_header_preproc=yes
6253 no:yes:* )
6254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6261 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6267 cat <<\_ASBOX
6268 ## ------------------------------------------------------ ##
6269 ## Report this to the GNU Fortran Runtime Library lists. ##
6270 ## ------------------------------------------------------ ##
6271 _ASBOX
6273 sed "s/^/$as_me: WARNING: /" >&2
6275 esac
6276 echo "$as_me:$LINENO: checking for $ac_header" >&5
6277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281 eval "$as_ac_Header=\$ac_header_preproc"
6283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6288 cat >>confdefs.h <<_ACEOF
6289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6290 _ACEOF
6294 done
6301 for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
6303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6305 echo "$as_me:$LINENO: checking for $ac_header" >&5
6306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6312 else
6313 # Is the header compilable?
6314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6316 cat >conftest.$ac_ext <<_ACEOF
6317 /* confdefs.h. */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6322 $ac_includes_default
6323 #include <$ac_header>
6324 _ACEOF
6325 rm -f conftest.$ac_objext
6326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6327 (eval $ac_compile) 2>conftest.er1
6328 ac_status=$?
6329 grep -v '^ *+' conftest.er1 >conftest.err
6330 rm -f conftest.er1
6331 cat conftest.err >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } &&
6334 { ac_try='test -z "$ac_c_werror_flag"
6335 || test ! -s conftest.err'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 (eval $ac_try) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; } &&
6341 { ac_try='test -s conftest.$ac_objext'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; }; then
6347 ac_header_compiler=yes
6348 else
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6352 ac_header_compiler=no
6354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6356 echo "${ECHO_T}$ac_header_compiler" >&6
6358 # Is the header present?
6359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h. */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6367 #include <$ac_header>
6368 _ACEOF
6369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6371 ac_status=$?
6372 grep -v '^ *+' conftest.er1 >conftest.err
6373 rm -f conftest.er1
6374 cat conftest.err >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } >/dev/null; then
6377 if test -s conftest.err; then
6378 ac_cpp_err=$ac_c_preproc_warn_flag
6379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6380 else
6381 ac_cpp_err=
6383 else
6384 ac_cpp_err=yes
6386 if test -z "$ac_cpp_err"; then
6387 ac_header_preproc=yes
6388 else
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6392 ac_header_preproc=no
6394 rm -f conftest.err conftest.$ac_ext
6395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6396 echo "${ECHO_T}$ac_header_preproc" >&6
6398 # So? What about this header?
6399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6400 yes:no: )
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6405 ac_header_preproc=yes
6407 no:yes:* )
6408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6421 cat <<\_ASBOX
6422 ## ------------------------------------------------------ ##
6423 ## Report this to the GNU Fortran Runtime Library lists. ##
6424 ## ------------------------------------------------------ ##
6425 _ASBOX
6427 sed "s/^/$as_me: WARNING: /" >&2
6429 esac
6430 echo "$as_me:$LINENO: checking for $ac_header" >&5
6431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435 eval "$as_ac_Header=\$ac_header_preproc"
6437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6442 cat >>confdefs.h <<_ACEOF
6443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6444 _ACEOF
6448 done
6453 for ac_header in sys/mman.h sys/types.h sys/stat.h
6455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6457 echo "$as_me:$LINENO: checking for $ac_header" >&5
6458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6464 else
6465 # Is the header compilable?
6466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6468 cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h. */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 $ac_includes_default
6475 #include <$ac_header>
6476 _ACEOF
6477 rm -f conftest.$ac_objext
6478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6479 (eval $ac_compile) 2>conftest.er1
6480 ac_status=$?
6481 grep -v '^ *+' conftest.er1 >conftest.err
6482 rm -f conftest.er1
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -z "$ac_c_werror_flag"
6487 || test ! -s conftest.err'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 (eval $ac_try) 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; } &&
6493 { ac_try='test -s conftest.$ac_objext'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 (eval $ac_try) 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; }; then
6499 ac_header_compiler=yes
6500 else
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6504 ac_header_compiler=no
6506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6508 echo "${ECHO_T}$ac_header_compiler" >&6
6510 # Is the header present?
6511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6513 cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h. */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 #include <$ac_header>
6520 _ACEOF
6521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6523 ac_status=$?
6524 grep -v '^ *+' conftest.er1 >conftest.err
6525 rm -f conftest.er1
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } >/dev/null; then
6529 if test -s conftest.err; then
6530 ac_cpp_err=$ac_c_preproc_warn_flag
6531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6532 else
6533 ac_cpp_err=
6535 else
6536 ac_cpp_err=yes
6538 if test -z "$ac_cpp_err"; then
6539 ac_header_preproc=yes
6540 else
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6544 ac_header_preproc=no
6546 rm -f conftest.err conftest.$ac_ext
6547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6548 echo "${ECHO_T}$ac_header_preproc" >&6
6550 # So? What about this header?
6551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6552 yes:no: )
6553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6557 ac_header_preproc=yes
6559 no:yes:* )
6560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6573 cat <<\_ASBOX
6574 ## ------------------------------------------------------ ##
6575 ## Report this to the GNU Fortran Runtime Library lists. ##
6576 ## ------------------------------------------------------ ##
6577 _ASBOX
6579 sed "s/^/$as_me: WARNING: /" >&2
6581 esac
6582 echo "$as_me:$LINENO: checking for $ac_header" >&5
6583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587 eval "$as_ac_Header=\$ac_header_preproc"
6589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6594 cat >>confdefs.h <<_ACEOF
6595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6596 _ACEOF
6600 done
6602 if test "${ac_cv_header_complex_h+set}" = set; then
6603 echo "$as_me:$LINENO: checking for complex.h" >&5
6604 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6605 if test "${ac_cv_header_complex_h+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6609 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6610 else
6611 # Is the header compilable?
6612 echo "$as_me:$LINENO: checking complex.h usability" >&5
6613 echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6614 cat >conftest.$ac_ext <<_ACEOF
6615 /* confdefs.h. */
6616 _ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6620 $ac_includes_default
6621 #include <complex.h>
6622 _ACEOF
6623 rm -f conftest.$ac_objext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6625 (eval $ac_compile) 2>conftest.er1
6626 ac_status=$?
6627 grep -v '^ *+' conftest.er1 >conftest.err
6628 rm -f conftest.er1
6629 cat conftest.err >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } &&
6632 { ac_try='test -z "$ac_c_werror_flag"
6633 || test ! -s conftest.err'
6634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635 (eval $ac_try) 2>&5
6636 ac_status=$?
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); }; } &&
6639 { ac_try='test -s conftest.$ac_objext'
6640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641 (eval $ac_try) 2>&5
6642 ac_status=$?
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); }; }; then
6645 ac_header_compiler=yes
6646 else
6647 echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6650 ac_header_compiler=no
6652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6654 echo "${ECHO_T}$ac_header_compiler" >&6
6656 # Is the header present?
6657 echo "$as_me:$LINENO: checking complex.h presence" >&5
6658 echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6659 cat >conftest.$ac_ext <<_ACEOF
6660 /* confdefs.h. */
6661 _ACEOF
6662 cat confdefs.h >>conftest.$ac_ext
6663 cat >>conftest.$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6665 #include <complex.h>
6666 _ACEOF
6667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6669 ac_status=$?
6670 grep -v '^ *+' conftest.er1 >conftest.err
6671 rm -f conftest.er1
6672 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } >/dev/null; then
6675 if test -s conftest.err; then
6676 ac_cpp_err=$ac_c_preproc_warn_flag
6677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6678 else
6679 ac_cpp_err=
6681 else
6682 ac_cpp_err=yes
6684 if test -z "$ac_cpp_err"; then
6685 ac_header_preproc=yes
6686 else
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6690 ac_header_preproc=no
6692 rm -f conftest.err conftest.$ac_ext
6693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6694 echo "${ECHO_T}$ac_header_preproc" >&6
6696 # So? What about this header?
6697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6698 yes:no: )
6699 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6700 echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6701 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6702 echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6703 ac_header_preproc=yes
6705 no:yes:* )
6706 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6707 echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6708 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
6709 echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
6710 { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6711 echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5
6713 echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;}
6714 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6715 echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6716 { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6717 echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6719 cat <<\_ASBOX
6720 ## ------------------------------------------------------ ##
6721 ## Report this to the GNU Fortran Runtime Library lists. ##
6722 ## ------------------------------------------------------ ##
6723 _ASBOX
6725 sed "s/^/$as_me: WARNING: /" >&2
6727 esac
6728 echo "$as_me:$LINENO: checking for complex.h" >&5
6729 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6730 if test "${ac_cv_header_complex_h+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733 ac_cv_header_complex_h=$ac_header_preproc
6735 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6736 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6739 if test $ac_cv_header_complex_h = yes; then
6741 cat >>confdefs.h <<\_ACEOF
6742 #define HAVE_COMPLEX_H 1
6743 _ACEOF
6749 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6750 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6751 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754 cat >conftest.$ac_ext <<_ACEOF
6755 /* confdefs.h. */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 $ac_includes_default
6762 main ()
6764 static struct stat ac_aggr;
6765 if (ac_aggr.st_blksize)
6766 return 0;
6768 return 0;
6770 _ACEOF
6771 rm -f conftest.$ac_objext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6773 (eval $ac_compile) 2>conftest.er1
6774 ac_status=$?
6775 grep -v '^ *+' conftest.er1 >conftest.err
6776 rm -f conftest.er1
6777 cat conftest.err >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } &&
6780 { ac_try='test -z "$ac_c_werror_flag"
6781 || test ! -s conftest.err'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 (eval $ac_try) 2>&5
6784 ac_status=$?
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; } &&
6787 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6793 ac_cv_member_struct_stat_st_blksize=yes
6794 else
6795 echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6798 cat >conftest.$ac_ext <<_ACEOF
6799 /* confdefs.h. */
6800 _ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h. */
6804 $ac_includes_default
6806 main ()
6808 static struct stat ac_aggr;
6809 if (sizeof ac_aggr.st_blksize)
6810 return 0;
6812 return 0;
6814 _ACEOF
6815 rm -f conftest.$ac_objext
6816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817 (eval $ac_compile) 2>conftest.er1
6818 ac_status=$?
6819 grep -v '^ *+' conftest.er1 >conftest.err
6820 rm -f conftest.er1
6821 cat conftest.err >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
6824 { ac_try='test -z "$ac_c_werror_flag"
6825 || test ! -s conftest.err'
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 (eval $ac_try) 2>&5
6828 ac_status=$?
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; } &&
6831 { ac_try='test -s conftest.$ac_objext'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
6837 ac_cv_member_struct_stat_st_blksize=yes
6838 else
6839 echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6842 ac_cv_member_struct_stat_st_blksize=no
6844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6848 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6849 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
6850 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6852 cat >>confdefs.h <<_ACEOF
6853 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6854 _ACEOF
6859 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6860 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6861 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864 cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h. */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 $ac_includes_default
6872 main ()
6874 static struct stat ac_aggr;
6875 if (ac_aggr.st_blocks)
6876 return 0;
6878 return 0;
6880 _ACEOF
6881 rm -f conftest.$ac_objext
6882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6883 (eval $ac_compile) 2>conftest.er1
6884 ac_status=$?
6885 grep -v '^ *+' conftest.er1 >conftest.err
6886 rm -f conftest.er1
6887 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } &&
6890 { ac_try='test -z "$ac_c_werror_flag"
6891 || test ! -s conftest.err'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 (eval $ac_try) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; } &&
6897 { ac_try='test -s conftest.$ac_objext'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; }; then
6903 ac_cv_member_struct_stat_st_blocks=yes
6904 else
6905 echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6908 cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h. */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6914 $ac_includes_default
6916 main ()
6918 static struct stat ac_aggr;
6919 if (sizeof ac_aggr.st_blocks)
6920 return 0;
6922 return 0;
6924 _ACEOF
6925 rm -f conftest.$ac_objext
6926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6927 (eval $ac_compile) 2>conftest.er1
6928 ac_status=$?
6929 grep -v '^ *+' conftest.er1 >conftest.err
6930 rm -f conftest.er1
6931 cat conftest.err >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } &&
6934 { ac_try='test -z "$ac_c_werror_flag"
6935 || test ! -s conftest.err'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 (eval $ac_try) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; } &&
6941 { ac_try='test -s conftest.$ac_objext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 ac_cv_member_struct_stat_st_blocks=yes
6948 else
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6952 ac_cv_member_struct_stat_st_blocks=no
6954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6958 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6959 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
6960 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6962 cat >>confdefs.h <<_ACEOF
6963 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6964 _ACEOF
6969 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6970 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
6971 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 cat >conftest.$ac_ext <<_ACEOF
6975 /* confdefs.h. */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6980 $ac_includes_default
6982 main ()
6984 static struct stat ac_aggr;
6985 if (ac_aggr.st_rdev)
6986 return 0;
6988 return 0;
6990 _ACEOF
6991 rm -f conftest.$ac_objext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6993 (eval $ac_compile) 2>conftest.er1
6994 ac_status=$?
6995 grep -v '^ *+' conftest.er1 >conftest.err
6996 rm -f conftest.er1
6997 cat conftest.err >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } &&
7000 { ac_try='test -z "$ac_c_werror_flag"
7001 || test ! -s conftest.err'
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 (eval $ac_try) 2>&5
7004 ac_status=$?
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; } &&
7007 { ac_try='test -s conftest.$ac_objext'
7008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 (eval $ac_try) 2>&5
7010 ac_status=$?
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; }; then
7013 ac_cv_member_struct_stat_st_rdev=yes
7014 else
7015 echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.$ac_ext >&5
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h. */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 $ac_includes_default
7026 main ()
7028 static struct stat ac_aggr;
7029 if (sizeof ac_aggr.st_rdev)
7030 return 0;
7032 return 0;
7034 _ACEOF
7035 rm -f conftest.$ac_objext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7037 (eval $ac_compile) 2>conftest.er1
7038 ac_status=$?
7039 grep -v '^ *+' conftest.er1 >conftest.err
7040 rm -f conftest.er1
7041 cat conftest.err >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } &&
7044 { ac_try='test -z "$ac_c_werror_flag"
7045 || test ! -s conftest.err'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 (eval $ac_try) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; } &&
7051 { ac_try='test -s conftest.$ac_objext'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; }; then
7057 ac_cv_member_struct_stat_st_rdev=yes
7058 else
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7062 ac_cv_member_struct_stat_st_rdev=no
7064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7068 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7069 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7070 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7072 cat >>confdefs.h <<_ACEOF
7073 #define HAVE_STRUCT_STAT_ST_RDEV 1
7074 _ACEOF
7080 # Check for complex math functions
7081 echo "$as_me:$LINENO: checking for csin in -lm" >&5
7082 echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
7083 if test "${ac_cv_lib_m_csin+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 ac_check_lib_save_LIBS=$LIBS
7087 LIBS="-lm $LIBS"
7088 if test x$gcc_no_link = xyes; then
7089 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7090 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7091 { (exit 1); exit 1; }; }
7093 cat >conftest.$ac_ext <<_ACEOF
7094 /* confdefs.h. */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7100 /* Override any gcc2 internal prototype to avoid an error. */
7101 #ifdef __cplusplus
7102 extern "C"
7103 #endif
7104 /* We use char because int might match the return type of a gcc2
7105 builtin and then its argument prototype would still apply. */
7106 char csin ();
7108 main ()
7110 csin ();
7112 return 0;
7114 _ACEOF
7115 rm -f conftest.$ac_objext conftest$ac_exeext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7117 (eval $ac_link) 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try='test -z "$ac_c_werror_flag"
7125 || test ! -s conftest.err'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 (eval $ac_try) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; } &&
7131 { ac_try='test -s conftest$ac_exeext'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 (eval $ac_try) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; }; then
7137 ac_cv_lib_m_csin=yes
7138 else
7139 echo "$as_me: failed program was:" >&5
7140 sed 's/^/| /' conftest.$ac_ext >&5
7142 ac_cv_lib_m_csin=no
7144 rm -f conftest.err conftest.$ac_objext \
7145 conftest$ac_exeext conftest.$ac_ext
7146 LIBS=$ac_check_lib_save_LIBS
7148 echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
7149 echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
7150 if test $ac_cv_lib_m_csin = yes; then
7151 need_math="no"
7152 else
7153 need_math="yes"
7157 # Check for library functions.
7163 for ac_func in getrusage times mkstemp strtof snprintf
7165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7166 echo "$as_me:$LINENO: checking for $ac_func" >&5
7167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7168 if eval "test \"\${$as_ac_var+set}\" = set"; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171 if test x$gcc_no_link = xyes; then
7172 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7173 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7174 { (exit 1); exit 1; }; }
7176 cat >conftest.$ac_ext <<_ACEOF
7177 /* confdefs.h. */
7178 _ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7184 #define $ac_func innocuous_$ac_func
7186 /* System header to define __stub macros and hopefully few prototypes,
7187 which can conflict with char $ac_func (); below.
7188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7189 <limits.h> exists even on freestanding compilers. */
7191 #ifdef __STDC__
7192 # include <limits.h>
7193 #else
7194 # include <assert.h>
7195 #endif
7197 #undef $ac_func
7199 /* Override any gcc2 internal prototype to avoid an error. */
7200 #ifdef __cplusplus
7201 extern "C"
7203 #endif
7204 /* We use char because int might match the return type of a gcc2
7205 builtin and then its argument prototype would still apply. */
7206 char $ac_func ();
7207 /* The GNU C library defines this for functions which it implements
7208 to always fail with ENOSYS. Some functions are actually named
7209 something starting with __ and the normal name is an alias. */
7210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7211 choke me
7212 #else
7213 char (*f) () = $ac_func;
7214 #endif
7215 #ifdef __cplusplus
7217 #endif
7220 main ()
7222 return f != $ac_func;
7224 return 0;
7226 _ACEOF
7227 rm -f conftest.$ac_objext conftest$ac_exeext
7228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7229 (eval $ac_link) 2>conftest.er1
7230 ac_status=$?
7231 grep -v '^ *+' conftest.er1 >conftest.err
7232 rm -f conftest.er1
7233 cat conftest.err >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } &&
7236 { ac_try='test -z "$ac_c_werror_flag"
7237 || test ! -s conftest.err'
7238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 (eval $ac_try) 2>&5
7240 ac_status=$?
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); }; } &&
7243 { ac_try='test -s conftest$ac_exeext'
7244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245 (eval $ac_try) 2>&5
7246 ac_status=$?
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); }; }; then
7249 eval "$as_ac_var=yes"
7250 else
7251 echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7254 eval "$as_ac_var=no"
7256 rm -f conftest.err conftest.$ac_objext \
7257 conftest$ac_exeext conftest.$ac_ext
7259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7261 if test `eval echo '${'$as_ac_var'}'` = yes; then
7262 cat >>confdefs.h <<_ACEOF
7263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7264 _ACEOF
7267 done
7270 # Check libc for getgid, getpid, getuid
7271 echo "$as_me:$LINENO: checking for getgid in -lc" >&5
7272 echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
7273 if test "${ac_cv_lib_c_getgid+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276 ac_check_lib_save_LIBS=$LIBS
7277 LIBS="-lc $LIBS"
7278 if test x$gcc_no_link = xyes; then
7279 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7280 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7281 { (exit 1); exit 1; }; }
7283 cat >conftest.$ac_ext <<_ACEOF
7284 /* confdefs.h. */
7285 _ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7290 /* Override any gcc2 internal prototype to avoid an error. */
7291 #ifdef __cplusplus
7292 extern "C"
7293 #endif
7294 /* We use char because int might match the return type of a gcc2
7295 builtin and then its argument prototype would still apply. */
7296 char getgid ();
7298 main ()
7300 getgid ();
7302 return 0;
7304 _ACEOF
7305 rm -f conftest.$ac_objext conftest$ac_exeext
7306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7307 (eval $ac_link) 2>conftest.er1
7308 ac_status=$?
7309 grep -v '^ *+' conftest.er1 >conftest.err
7310 rm -f conftest.er1
7311 cat conftest.err >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } &&
7314 { ac_try='test -z "$ac_c_werror_flag"
7315 || test ! -s conftest.err'
7316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317 (eval $ac_try) 2>&5
7318 ac_status=$?
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; } &&
7321 { ac_try='test -s conftest$ac_exeext'
7322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 (eval $ac_try) 2>&5
7324 ac_status=$?
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; }; then
7327 ac_cv_lib_c_getgid=yes
7328 else
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7332 ac_cv_lib_c_getgid=no
7334 rm -f conftest.err conftest.$ac_objext \
7335 conftest$ac_exeext conftest.$ac_ext
7336 LIBS=$ac_check_lib_save_LIBS
7338 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
7339 echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
7340 if test $ac_cv_lib_c_getgid = yes; then
7342 cat >>confdefs.h <<\_ACEOF
7343 #define HAVE_GETGID 1
7344 _ACEOF
7348 echo "$as_me:$LINENO: checking for getpid in -lc" >&5
7349 echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
7350 if test "${ac_cv_lib_c_getpid+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7353 ac_check_lib_save_LIBS=$LIBS
7354 LIBS="-lc $LIBS"
7355 if test x$gcc_no_link = xyes; then
7356 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7357 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7358 { (exit 1); exit 1; }; }
7360 cat >conftest.$ac_ext <<_ACEOF
7361 /* confdefs.h. */
7362 _ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7367 /* Override any gcc2 internal prototype to avoid an error. */
7368 #ifdef __cplusplus
7369 extern "C"
7370 #endif
7371 /* We use char because int might match the return type of a gcc2
7372 builtin and then its argument prototype would still apply. */
7373 char getpid ();
7375 main ()
7377 getpid ();
7379 return 0;
7381 _ACEOF
7382 rm -f conftest.$ac_objext conftest$ac_exeext
7383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7384 (eval $ac_link) 2>conftest.er1
7385 ac_status=$?
7386 grep -v '^ *+' conftest.er1 >conftest.err
7387 rm -f conftest.er1
7388 cat conftest.err >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); } &&
7391 { ac_try='test -z "$ac_c_werror_flag"
7392 || test ! -s conftest.err'
7393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394 (eval $ac_try) 2>&5
7395 ac_status=$?
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); }; } &&
7398 { ac_try='test -s conftest$ac_exeext'
7399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400 (eval $ac_try) 2>&5
7401 ac_status=$?
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); }; }; then
7404 ac_cv_lib_c_getpid=yes
7405 else
7406 echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.$ac_ext >&5
7409 ac_cv_lib_c_getpid=no
7411 rm -f conftest.err conftest.$ac_objext \
7412 conftest$ac_exeext conftest.$ac_ext
7413 LIBS=$ac_check_lib_save_LIBS
7415 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
7416 echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
7417 if test $ac_cv_lib_c_getpid = yes; then
7419 cat >>confdefs.h <<\_ACEOF
7420 #define HAVE_GETPID 1
7421 _ACEOF
7425 echo "$as_me:$LINENO: checking for getuid in -lc" >&5
7426 echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
7427 if test "${ac_cv_lib_c_getuid+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430 ac_check_lib_save_LIBS=$LIBS
7431 LIBS="-lc $LIBS"
7432 if test x$gcc_no_link = xyes; then
7433 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7434 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7435 { (exit 1); exit 1; }; }
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7444 /* Override any gcc2 internal prototype to avoid an error. */
7445 #ifdef __cplusplus
7446 extern "C"
7447 #endif
7448 /* We use char because int might match the return type of a gcc2
7449 builtin and then its argument prototype would still apply. */
7450 char getuid ();
7452 main ()
7454 getuid ();
7456 return 0;
7458 _ACEOF
7459 rm -f conftest.$ac_objext conftest$ac_exeext
7460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7461 (eval $ac_link) 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } &&
7468 { ac_try='test -z "$ac_c_werror_flag"
7469 || test ! -s conftest.err'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 (eval $ac_try) 2>&5
7472 ac_status=$?
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; } &&
7475 { ac_try='test -s conftest$ac_exeext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 (eval $ac_try) 2>&5
7478 ac_status=$?
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_cv_lib_c_getuid=yes
7482 else
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7486 ac_cv_lib_c_getuid=no
7488 rm -f conftest.err conftest.$ac_objext \
7489 conftest$ac_exeext conftest.$ac_ext
7490 LIBS=$ac_check_lib_save_LIBS
7492 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
7493 echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
7494 if test $ac_cv_lib_c_getuid = yes; then
7496 cat >>confdefs.h <<\_ACEOF
7497 #define HAVE_GETUID 1
7498 _ACEOF
7503 # Check for C99 (and other IEEE) math functions
7504 # ??? This list seems awful long. Is there a better way to test for these?
7505 echo "$as_me:$LINENO: checking for acosf in -lm" >&5
7506 echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
7507 if test "${ac_cv_lib_m_acosf+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510 ac_check_lib_save_LIBS=$LIBS
7511 LIBS="-lm $LIBS"
7512 if test x$gcc_no_link = xyes; then
7513 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7514 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7515 { (exit 1); exit 1; }; }
7517 cat >conftest.$ac_ext <<_ACEOF
7518 /* confdefs.h. */
7519 _ACEOF
7520 cat confdefs.h >>conftest.$ac_ext
7521 cat >>conftest.$ac_ext <<_ACEOF
7522 /* end confdefs.h. */
7524 /* Override any gcc2 internal prototype to avoid an error. */
7525 #ifdef __cplusplus
7526 extern "C"
7527 #endif
7528 /* We use char because int might match the return type of a gcc2
7529 builtin and then its argument prototype would still apply. */
7530 char acosf ();
7532 main ()
7534 acosf ();
7536 return 0;
7538 _ACEOF
7539 rm -f conftest.$ac_objext conftest$ac_exeext
7540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7541 (eval $ac_link) 2>conftest.er1
7542 ac_status=$?
7543 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } &&
7548 { ac_try='test -z "$ac_c_werror_flag"
7549 || test ! -s conftest.err'
7550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 (eval $ac_try) 2>&5
7552 ac_status=$?
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); }; } &&
7555 { ac_try='test -s conftest$ac_exeext'
7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 (eval $ac_try) 2>&5
7558 ac_status=$?
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; }; then
7561 ac_cv_lib_m_acosf=yes
7562 else
7563 echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7566 ac_cv_lib_m_acosf=no
7568 rm -f conftest.err conftest.$ac_objext \
7569 conftest$ac_exeext conftest.$ac_ext
7570 LIBS=$ac_check_lib_save_LIBS
7572 echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
7573 echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
7574 if test $ac_cv_lib_m_acosf = yes; then
7576 cat >>confdefs.h <<\_ACEOF
7577 #define HAVE_ACOSF 1
7578 _ACEOF
7582 echo "$as_me:$LINENO: checking for asinf in -lm" >&5
7583 echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
7584 if test "${ac_cv_lib_m_asinf+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 ac_check_lib_save_LIBS=$LIBS
7588 LIBS="-lm $LIBS"
7589 if test x$gcc_no_link = xyes; then
7590 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7591 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7592 { (exit 1); exit 1; }; }
7594 cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h. */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7601 /* Override any gcc2 internal prototype to avoid an error. */
7602 #ifdef __cplusplus
7603 extern "C"
7604 #endif
7605 /* We use char because int might match the return type of a gcc2
7606 builtin and then its argument prototype would still apply. */
7607 char asinf ();
7609 main ()
7611 asinf ();
7613 return 0;
7615 _ACEOF
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>conftest.er1
7619 ac_status=$?
7620 grep -v '^ *+' conftest.er1 >conftest.err
7621 rm -f conftest.er1
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } &&
7625 { ac_try='test -z "$ac_c_werror_flag"
7626 || test ! -s conftest.err'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628 (eval $ac_try) 2>&5
7629 ac_status=$?
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; } &&
7632 { ac_try='test -s conftest$ac_exeext'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 (eval $ac_try) 2>&5
7635 ac_status=$?
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7638 ac_cv_lib_m_asinf=yes
7639 else
7640 echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7643 ac_cv_lib_m_asinf=no
7645 rm -f conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7647 LIBS=$ac_check_lib_save_LIBS
7649 echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
7650 echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
7651 if test $ac_cv_lib_m_asinf = yes; then
7653 cat >>confdefs.h <<\_ACEOF
7654 #define HAVE_ASINF 1
7655 _ACEOF
7659 echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
7660 echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
7661 if test "${ac_cv_lib_m_atan2f+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 else
7664 ac_check_lib_save_LIBS=$LIBS
7665 LIBS="-lm $LIBS"
7666 if test x$gcc_no_link = xyes; then
7667 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7668 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7669 { (exit 1); exit 1; }; }
7671 cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h. */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7678 /* Override any gcc2 internal prototype to avoid an error. */
7679 #ifdef __cplusplus
7680 extern "C"
7681 #endif
7682 /* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7684 char atan2f ();
7686 main ()
7688 atan2f ();
7690 return 0;
7692 _ACEOF
7693 rm -f conftest.$ac_objext conftest$ac_exeext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7695 (eval $ac_link) 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try='test -z "$ac_c_werror_flag"
7703 || test ! -s conftest.err'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; } &&
7709 { ac_try='test -s conftest$ac_exeext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 (eval $ac_try) 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 ac_cv_lib_m_atan2f=yes
7716 else
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 ac_cv_lib_m_atan2f=no
7722 rm -f conftest.err conftest.$ac_objext \
7723 conftest$ac_exeext conftest.$ac_ext
7724 LIBS=$ac_check_lib_save_LIBS
7726 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
7727 echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
7728 if test $ac_cv_lib_m_atan2f = yes; then
7730 cat >>confdefs.h <<\_ACEOF
7731 #define HAVE_ATAN2F 1
7732 _ACEOF
7736 echo "$as_me:$LINENO: checking for atanf in -lm" >&5
7737 echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
7738 if test "${ac_cv_lib_m_atanf+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 else
7741 ac_check_lib_save_LIBS=$LIBS
7742 LIBS="-lm $LIBS"
7743 if test x$gcc_no_link = xyes; then
7744 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7745 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7746 { (exit 1); exit 1; }; }
7748 cat >conftest.$ac_ext <<_ACEOF
7749 /* confdefs.h. */
7750 _ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7755 /* Override any gcc2 internal prototype to avoid an error. */
7756 #ifdef __cplusplus
7757 extern "C"
7758 #endif
7759 /* We use char because int might match the return type of a gcc2
7760 builtin and then its argument prototype would still apply. */
7761 char atanf ();
7763 main ()
7765 atanf ();
7767 return 0;
7769 _ACEOF
7770 rm -f conftest.$ac_objext conftest$ac_exeext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7772 (eval $ac_link) 2>conftest.er1
7773 ac_status=$?
7774 grep -v '^ *+' conftest.er1 >conftest.err
7775 rm -f conftest.er1
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -z "$ac_c_werror_flag"
7780 || test ! -s conftest.err'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782 (eval $ac_try) 2>&5
7783 ac_status=$?
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; } &&
7786 { ac_try='test -s conftest$ac_exeext'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 (eval $ac_try) 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 ac_cv_lib_m_atanf=yes
7793 else
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7797 ac_cv_lib_m_atanf=no
7799 rm -f conftest.err conftest.$ac_objext \
7800 conftest$ac_exeext conftest.$ac_ext
7801 LIBS=$ac_check_lib_save_LIBS
7803 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
7804 echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
7805 if test $ac_cv_lib_m_atanf = yes; then
7807 cat >>confdefs.h <<\_ACEOF
7808 #define HAVE_ATANF 1
7809 _ACEOF
7813 echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
7814 echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
7815 if test "${ac_cv_lib_m_ceilf+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 else
7818 ac_check_lib_save_LIBS=$LIBS
7819 LIBS="-lm $LIBS"
7820 if test x$gcc_no_link = xyes; then
7821 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7822 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7823 { (exit 1); exit 1; }; }
7825 cat >conftest.$ac_ext <<_ACEOF
7826 /* confdefs.h. */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7832 /* Override any gcc2 internal prototype to avoid an error. */
7833 #ifdef __cplusplus
7834 extern "C"
7835 #endif
7836 /* We use char because int might match the return type of a gcc2
7837 builtin and then its argument prototype would still apply. */
7838 char ceilf ();
7840 main ()
7842 ceilf ();
7844 return 0;
7846 _ACEOF
7847 rm -f conftest.$ac_objext conftest$ac_exeext
7848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7849 (eval $ac_link) 2>conftest.er1
7850 ac_status=$?
7851 grep -v '^ *+' conftest.er1 >conftest.err
7852 rm -f conftest.er1
7853 cat conftest.err >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } &&
7856 { ac_try='test -z "$ac_c_werror_flag"
7857 || test ! -s conftest.err'
7858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859 (eval $ac_try) 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; } &&
7863 { ac_try='test -s conftest$ac_exeext'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865 (eval $ac_try) 2>&5
7866 ac_status=$?
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; }; then
7869 ac_cv_lib_m_ceilf=yes
7870 else
7871 echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7874 ac_cv_lib_m_ceilf=no
7876 rm -f conftest.err conftest.$ac_objext \
7877 conftest$ac_exeext conftest.$ac_ext
7878 LIBS=$ac_check_lib_save_LIBS
7880 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
7881 echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
7882 if test $ac_cv_lib_m_ceilf = yes; then
7884 cat >>confdefs.h <<\_ACEOF
7885 #define HAVE_CEILF 1
7886 _ACEOF
7890 echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
7891 echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
7892 if test "${ac_cv_lib_m_copysignf+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895 ac_check_lib_save_LIBS=$LIBS
7896 LIBS="-lm $LIBS"
7897 if test x$gcc_no_link = xyes; then
7898 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7900 { (exit 1); exit 1; }; }
7902 cat >conftest.$ac_ext <<_ACEOF
7903 /* confdefs.h. */
7904 _ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7909 /* Override any gcc2 internal prototype to avoid an error. */
7910 #ifdef __cplusplus
7911 extern "C"
7912 #endif
7913 /* We use char because int might match the return type of a gcc2
7914 builtin and then its argument prototype would still apply. */
7915 char copysignf ();
7917 main ()
7919 copysignf ();
7921 return 0;
7923 _ACEOF
7924 rm -f conftest.$ac_objext conftest$ac_exeext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7926 (eval $ac_link) 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try='test -z "$ac_c_werror_flag"
7934 || test ! -s conftest.err'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936 (eval $ac_try) 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; } &&
7940 { ac_try='test -s conftest$ac_exeext'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 (eval $ac_try) 2>&5
7943 ac_status=$?
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7946 ac_cv_lib_m_copysignf=yes
7947 else
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 ac_cv_lib_m_copysignf=no
7953 rm -f conftest.err conftest.$ac_objext \
7954 conftest$ac_exeext conftest.$ac_ext
7955 LIBS=$ac_check_lib_save_LIBS
7957 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
7958 echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
7959 if test $ac_cv_lib_m_copysignf = yes; then
7961 cat >>confdefs.h <<\_ACEOF
7962 #define HAVE_COPYSIGNF 1
7963 _ACEOF
7967 echo "$as_me:$LINENO: checking for cosf in -lm" >&5
7968 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
7969 if test "${ac_cv_lib_m_cosf+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972 ac_check_lib_save_LIBS=$LIBS
7973 LIBS="-lm $LIBS"
7974 if test x$gcc_no_link = xyes; then
7975 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7976 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7977 { (exit 1); exit 1; }; }
7979 cat >conftest.$ac_ext <<_ACEOF
7980 /* confdefs.h. */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7986 /* Override any gcc2 internal prototype to avoid an error. */
7987 #ifdef __cplusplus
7988 extern "C"
7989 #endif
7990 /* We use char because int might match the return type of a gcc2
7991 builtin and then its argument prototype would still apply. */
7992 char cosf ();
7994 main ()
7996 cosf ();
7998 return 0;
8000 _ACEOF
8001 rm -f conftest.$ac_objext conftest$ac_exeext
8002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8003 (eval $ac_link) 2>conftest.er1
8004 ac_status=$?
8005 grep -v '^ *+' conftest.er1 >conftest.err
8006 rm -f conftest.er1
8007 cat conftest.err >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
8010 { ac_try='test -z "$ac_c_werror_flag"
8011 || test ! -s conftest.err'
8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 (eval $ac_try) 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; } &&
8017 { ac_try='test -s conftest$ac_exeext'
8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 (eval $ac_try) 2>&5
8020 ac_status=$?
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; }; then
8023 ac_cv_lib_m_cosf=yes
8024 else
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8028 ac_cv_lib_m_cosf=no
8030 rm -f conftest.err conftest.$ac_objext \
8031 conftest$ac_exeext conftest.$ac_ext
8032 LIBS=$ac_check_lib_save_LIBS
8034 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
8035 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
8036 if test $ac_cv_lib_m_cosf = yes; then
8038 cat >>confdefs.h <<\_ACEOF
8039 #define HAVE_COSF 1
8040 _ACEOF
8044 echo "$as_me:$LINENO: checking for coshf in -lm" >&5
8045 echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
8046 if test "${ac_cv_lib_m_coshf+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 else
8049 ac_check_lib_save_LIBS=$LIBS
8050 LIBS="-lm $LIBS"
8051 if test x$gcc_no_link = xyes; then
8052 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8053 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8054 { (exit 1); exit 1; }; }
8056 cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h. */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8063 /* Override any gcc2 internal prototype to avoid an error. */
8064 #ifdef __cplusplus
8065 extern "C"
8066 #endif
8067 /* We use char because int might match the return type of a gcc2
8068 builtin and then its argument prototype would still apply. */
8069 char coshf ();
8071 main ()
8073 coshf ();
8075 return 0;
8077 _ACEOF
8078 rm -f conftest.$ac_objext conftest$ac_exeext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8080 (eval $ac_link) 2>conftest.er1
8081 ac_status=$?
8082 grep -v '^ *+' conftest.er1 >conftest.err
8083 rm -f conftest.er1
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -z "$ac_c_werror_flag"
8088 || test ! -s conftest.err'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090 (eval $ac_try) 2>&5
8091 ac_status=$?
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; } &&
8094 { ac_try='test -s conftest$ac_exeext'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 (eval $ac_try) 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8100 ac_cv_lib_m_coshf=yes
8101 else
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 ac_cv_lib_m_coshf=no
8107 rm -f conftest.err conftest.$ac_objext \
8108 conftest$ac_exeext conftest.$ac_ext
8109 LIBS=$ac_check_lib_save_LIBS
8111 echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
8112 echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
8113 if test $ac_cv_lib_m_coshf = yes; then
8115 cat >>confdefs.h <<\_ACEOF
8116 #define HAVE_COSHF 1
8117 _ACEOF
8121 echo "$as_me:$LINENO: checking for expf in -lm" >&5
8122 echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
8123 if test "${ac_cv_lib_m_expf+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 else
8126 ac_check_lib_save_LIBS=$LIBS
8127 LIBS="-lm $LIBS"
8128 if test x$gcc_no_link = xyes; then
8129 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8130 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8131 { (exit 1); exit 1; }; }
8133 cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h. */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8140 /* Override any gcc2 internal prototype to avoid an error. */
8141 #ifdef __cplusplus
8142 extern "C"
8143 #endif
8144 /* We use char because int might match the return type of a gcc2
8145 builtin and then its argument prototype would still apply. */
8146 char expf ();
8148 main ()
8150 expf ();
8152 return 0;
8154 _ACEOF
8155 rm -f conftest.$ac_objext conftest$ac_exeext
8156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8157 (eval $ac_link) 2>conftest.er1
8158 ac_status=$?
8159 grep -v '^ *+' conftest.er1 >conftest.err
8160 rm -f conftest.er1
8161 cat conftest.err >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } &&
8164 { ac_try='test -z "$ac_c_werror_flag"
8165 || test ! -s conftest.err'
8166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167 (eval $ac_try) 2>&5
8168 ac_status=$?
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; } &&
8171 { ac_try='test -s conftest$ac_exeext'
8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173 (eval $ac_try) 2>&5
8174 ac_status=$?
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; }; then
8177 ac_cv_lib_m_expf=yes
8178 else
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8182 ac_cv_lib_m_expf=no
8184 rm -f conftest.err conftest.$ac_objext \
8185 conftest$ac_exeext conftest.$ac_ext
8186 LIBS=$ac_check_lib_save_LIBS
8188 echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
8189 echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
8190 if test $ac_cv_lib_m_expf = yes; then
8192 cat >>confdefs.h <<\_ACEOF
8193 #define HAVE_EXPF 1
8194 _ACEOF
8198 echo "$as_me:$LINENO: checking for floorf in -lm" >&5
8199 echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
8200 if test "${ac_cv_lib_m_floorf+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 else
8203 ac_check_lib_save_LIBS=$LIBS
8204 LIBS="-lm $LIBS"
8205 if test x$gcc_no_link = xyes; then
8206 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8207 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8208 { (exit 1); exit 1; }; }
8210 cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h. */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8217 /* Override any gcc2 internal prototype to avoid an error. */
8218 #ifdef __cplusplus
8219 extern "C"
8220 #endif
8221 /* We use char because int might match the return type of a gcc2
8222 builtin and then its argument prototype would still apply. */
8223 char floorf ();
8225 main ()
8227 floorf ();
8229 return 0;
8231 _ACEOF
8232 rm -f conftest.$ac_objext conftest$ac_exeext
8233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8234 (eval $ac_link) 2>conftest.er1
8235 ac_status=$?
8236 grep -v '^ *+' conftest.er1 >conftest.err
8237 rm -f conftest.er1
8238 cat conftest.err >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } &&
8241 { ac_try='test -z "$ac_c_werror_flag"
8242 || test ! -s conftest.err'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 (eval $ac_try) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; } &&
8248 { ac_try='test -s conftest$ac_exeext'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 (eval $ac_try) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8254 ac_cv_lib_m_floorf=yes
8255 else
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8259 ac_cv_lib_m_floorf=no
8261 rm -f conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
8263 LIBS=$ac_check_lib_save_LIBS
8265 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
8266 echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
8267 if test $ac_cv_lib_m_floorf = yes; then
8269 cat >>confdefs.h <<\_ACEOF
8270 #define HAVE_FLOORF 1
8271 _ACEOF
8275 echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
8276 echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
8277 if test "${ac_cv_lib_m_frexpf+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 else
8280 ac_check_lib_save_LIBS=$LIBS
8281 LIBS="-lm $LIBS"
8282 if test x$gcc_no_link = xyes; then
8283 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8284 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8285 { (exit 1); exit 1; }; }
8287 cat >conftest.$ac_ext <<_ACEOF
8288 /* confdefs.h. */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8294 /* Override any gcc2 internal prototype to avoid an error. */
8295 #ifdef __cplusplus
8296 extern "C"
8297 #endif
8298 /* We use char because int might match the return type of a gcc2
8299 builtin and then its argument prototype would still apply. */
8300 char frexpf ();
8302 main ()
8304 frexpf ();
8306 return 0;
8308 _ACEOF
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8311 (eval $ac_link) 2>conftest.er1
8312 ac_status=$?
8313 grep -v '^ *+' conftest.er1 >conftest.err
8314 rm -f conftest.er1
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } &&
8318 { ac_try='test -z "$ac_c_werror_flag"
8319 || test ! -s conftest.err'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 (eval $ac_try) 2>&5
8322 ac_status=$?
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; } &&
8325 { ac_try='test -s conftest$ac_exeext'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 (eval $ac_try) 2>&5
8328 ac_status=$?
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; }; then
8331 ac_cv_lib_m_frexpf=yes
8332 else
8333 echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8336 ac_cv_lib_m_frexpf=no
8338 rm -f conftest.err conftest.$ac_objext \
8339 conftest$ac_exeext conftest.$ac_ext
8340 LIBS=$ac_check_lib_save_LIBS
8342 echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
8343 echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
8344 if test $ac_cv_lib_m_frexpf = yes; then
8346 cat >>confdefs.h <<\_ACEOF
8347 #define HAVE_FREXPF 1
8348 _ACEOF
8352 echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
8353 echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
8354 if test "${ac_cv_lib_m_hypotf+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357 ac_check_lib_save_LIBS=$LIBS
8358 LIBS="-lm $LIBS"
8359 if test x$gcc_no_link = xyes; then
8360 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8361 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8362 { (exit 1); exit 1; }; }
8364 cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h. */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8371 /* Override any gcc2 internal prototype to avoid an error. */
8372 #ifdef __cplusplus
8373 extern "C"
8374 #endif
8375 /* We use char because int might match the return type of a gcc2
8376 builtin and then its argument prototype would still apply. */
8377 char hypotf ();
8379 main ()
8381 hypotf ();
8383 return 0;
8385 _ACEOF
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388 (eval $ac_link) 2>conftest.er1
8389 ac_status=$?
8390 grep -v '^ *+' conftest.er1 >conftest.err
8391 rm -f conftest.er1
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
8395 { ac_try='test -z "$ac_c_werror_flag"
8396 || test ! -s conftest.err'
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 (eval $ac_try) 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; } &&
8402 { ac_try='test -s conftest$ac_exeext'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 (eval $ac_try) 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 ac_cv_lib_m_hypotf=yes
8409 else
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8413 ac_cv_lib_m_hypotf=no
8415 rm -f conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417 LIBS=$ac_check_lib_save_LIBS
8419 echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
8420 echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
8421 if test $ac_cv_lib_m_hypotf = yes; then
8423 cat >>confdefs.h <<\_ACEOF
8424 #define HAVE_HYPOTF 1
8425 _ACEOF
8429 echo "$as_me:$LINENO: checking for logf in -lm" >&5
8430 echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
8431 if test "${ac_cv_lib_m_logf+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434 ac_check_lib_save_LIBS=$LIBS
8435 LIBS="-lm $LIBS"
8436 if test x$gcc_no_link = xyes; then
8437 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8438 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8439 { (exit 1); exit 1; }; }
8441 cat >conftest.$ac_ext <<_ACEOF
8442 /* confdefs.h. */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8448 /* Override any gcc2 internal prototype to avoid an error. */
8449 #ifdef __cplusplus
8450 extern "C"
8451 #endif
8452 /* We use char because int might match the return type of a gcc2
8453 builtin and then its argument prototype would still apply. */
8454 char logf ();
8456 main ()
8458 logf ();
8460 return 0;
8462 _ACEOF
8463 rm -f conftest.$ac_objext conftest$ac_exeext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8465 (eval $ac_link) 2>conftest.er1
8466 ac_status=$?
8467 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } &&
8472 { ac_try='test -z "$ac_c_werror_flag"
8473 || test ! -s conftest.err'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 (eval $ac_try) 2>&5
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; } &&
8479 { ac_try='test -s conftest$ac_exeext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481 (eval $ac_try) 2>&5
8482 ac_status=$?
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8485 ac_cv_lib_m_logf=yes
8486 else
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8490 ac_cv_lib_m_logf=no
8492 rm -f conftest.err conftest.$ac_objext \
8493 conftest$ac_exeext conftest.$ac_ext
8494 LIBS=$ac_check_lib_save_LIBS
8496 echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
8497 echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
8498 if test $ac_cv_lib_m_logf = yes; then
8500 cat >>confdefs.h <<\_ACEOF
8501 #define HAVE_LOGF 1
8502 _ACEOF
8506 echo "$as_me:$LINENO: checking for log10f in -lm" >&5
8507 echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
8508 if test "${ac_cv_lib_m_log10f+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 else
8511 ac_check_lib_save_LIBS=$LIBS
8512 LIBS="-lm $LIBS"
8513 if test x$gcc_no_link = xyes; then
8514 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8515 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8516 { (exit 1); exit 1; }; }
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h. */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8525 /* Override any gcc2 internal prototype to avoid an error. */
8526 #ifdef __cplusplus
8527 extern "C"
8528 #endif
8529 /* We use char because int might match the return type of a gcc2
8530 builtin and then its argument prototype would still apply. */
8531 char log10f ();
8533 main ()
8535 log10f ();
8537 return 0;
8539 _ACEOF
8540 rm -f conftest.$ac_objext conftest$ac_exeext
8541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8542 (eval $ac_link) 2>conftest.er1
8543 ac_status=$?
8544 grep -v '^ *+' conftest.er1 >conftest.err
8545 rm -f conftest.er1
8546 cat conftest.err >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } &&
8549 { ac_try='test -z "$ac_c_werror_flag"
8550 || test ! -s conftest.err'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 (eval $ac_try) 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; } &&
8556 { ac_try='test -s conftest$ac_exeext'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 (eval $ac_try) 2>&5
8559 ac_status=$?
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
8562 ac_cv_lib_m_log10f=yes
8563 else
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8567 ac_cv_lib_m_log10f=no
8569 rm -f conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
8571 LIBS=$ac_check_lib_save_LIBS
8573 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
8574 echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
8575 if test $ac_cv_lib_m_log10f = yes; then
8577 cat >>confdefs.h <<\_ACEOF
8578 #define HAVE_LOG10F 1
8579 _ACEOF
8583 echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
8584 echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
8585 if test "${ac_cv_lib_m_nextafter+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 else
8588 ac_check_lib_save_LIBS=$LIBS
8589 LIBS="-lm $LIBS"
8590 if test x$gcc_no_link = xyes; then
8591 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8592 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8593 { (exit 1); exit 1; }; }
8595 cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h. */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8602 /* Override any gcc2 internal prototype to avoid an error. */
8603 #ifdef __cplusplus
8604 extern "C"
8605 #endif
8606 /* We use char because int might match the return type of a gcc2
8607 builtin and then its argument prototype would still apply. */
8608 char nextafter ();
8610 main ()
8612 nextafter ();
8614 return 0;
8616 _ACEOF
8617 rm -f conftest.$ac_objext conftest$ac_exeext
8618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8619 (eval $ac_link) 2>conftest.er1
8620 ac_status=$?
8621 grep -v '^ *+' conftest.er1 >conftest.err
8622 rm -f conftest.er1
8623 cat conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } &&
8626 { ac_try='test -z "$ac_c_werror_flag"
8627 || test ! -s conftest.err'
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 (eval $ac_try) 2>&5
8630 ac_status=$?
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; } &&
8633 { ac_try='test -s conftest$ac_exeext'
8634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 (eval $ac_try) 2>&5
8636 ac_status=$?
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; }; then
8639 ac_cv_lib_m_nextafter=yes
8640 else
8641 echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8644 ac_cv_lib_m_nextafter=no
8646 rm -f conftest.err conftest.$ac_objext \
8647 conftest$ac_exeext conftest.$ac_ext
8648 LIBS=$ac_check_lib_save_LIBS
8650 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
8651 echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
8652 if test $ac_cv_lib_m_nextafter = yes; then
8654 cat >>confdefs.h <<\_ACEOF
8655 #define HAVE_NEXTAFTER 1
8656 _ACEOF
8660 echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
8661 echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
8662 if test "${ac_cv_lib_m_nextafterf+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665 ac_check_lib_save_LIBS=$LIBS
8666 LIBS="-lm $LIBS"
8667 if test x$gcc_no_link = xyes; then
8668 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8670 { (exit 1); exit 1; }; }
8672 cat >conftest.$ac_ext <<_ACEOF
8673 /* confdefs.h. */
8674 _ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8679 /* Override any gcc2 internal prototype to avoid an error. */
8680 #ifdef __cplusplus
8681 extern "C"
8682 #endif
8683 /* We use char because int might match the return type of a gcc2
8684 builtin and then its argument prototype would still apply. */
8685 char nextafterf ();
8687 main ()
8689 nextafterf ();
8691 return 0;
8693 _ACEOF
8694 rm -f conftest.$ac_objext conftest$ac_exeext
8695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696 (eval $ac_link) 2>conftest.er1
8697 ac_status=$?
8698 grep -v '^ *+' conftest.er1 >conftest.err
8699 rm -f conftest.er1
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } &&
8703 { ac_try='test -z "$ac_c_werror_flag"
8704 || test ! -s conftest.err'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 (eval $ac_try) 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; } &&
8710 { ac_try='test -s conftest$ac_exeext'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 (eval $ac_try) 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; }; then
8716 ac_cv_lib_m_nextafterf=yes
8717 else
8718 echo "$as_me: failed program was:" >&5
8719 sed 's/^/| /' conftest.$ac_ext >&5
8721 ac_cv_lib_m_nextafterf=no
8723 rm -f conftest.err conftest.$ac_objext \
8724 conftest$ac_exeext conftest.$ac_ext
8725 LIBS=$ac_check_lib_save_LIBS
8727 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
8728 echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
8729 if test $ac_cv_lib_m_nextafterf = yes; then
8731 cat >>confdefs.h <<\_ACEOF
8732 #define HAVE_NEXTAFTERF 1
8733 _ACEOF
8737 echo "$as_me:$LINENO: checking for powf in -lm" >&5
8738 echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
8739 if test "${ac_cv_lib_m_powf+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742 ac_check_lib_save_LIBS=$LIBS
8743 LIBS="-lm $LIBS"
8744 if test x$gcc_no_link = xyes; then
8745 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8746 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8747 { (exit 1); exit 1; }; }
8749 cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h. */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8756 /* Override any gcc2 internal prototype to avoid an error. */
8757 #ifdef __cplusplus
8758 extern "C"
8759 #endif
8760 /* We use char because int might match the return type of a gcc2
8761 builtin and then its argument prototype would still apply. */
8762 char powf ();
8764 main ()
8766 powf ();
8768 return 0;
8770 _ACEOF
8771 rm -f conftest.$ac_objext conftest$ac_exeext
8772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8773 (eval $ac_link) 2>conftest.er1
8774 ac_status=$?
8775 grep -v '^ *+' conftest.er1 >conftest.err
8776 rm -f conftest.er1
8777 cat conftest.err >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } &&
8780 { ac_try='test -z "$ac_c_werror_flag"
8781 || test ! -s conftest.err'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 (eval $ac_try) 2>&5
8784 ac_status=$?
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; } &&
8787 { ac_try='test -s conftest$ac_exeext'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789 (eval $ac_try) 2>&5
8790 ac_status=$?
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; }; then
8793 ac_cv_lib_m_powf=yes
8794 else
8795 echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8798 ac_cv_lib_m_powf=no
8800 rm -f conftest.err conftest.$ac_objext \
8801 conftest$ac_exeext conftest.$ac_ext
8802 LIBS=$ac_check_lib_save_LIBS
8804 echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
8805 echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
8806 if test $ac_cv_lib_m_powf = yes; then
8808 cat >>confdefs.h <<\_ACEOF
8809 #define HAVE_POWF 1
8810 _ACEOF
8814 echo "$as_me:$LINENO: checking for round in -lm" >&5
8815 echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
8816 if test "${ac_cv_lib_m_round+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 else
8819 ac_check_lib_save_LIBS=$LIBS
8820 LIBS="-lm $LIBS"
8821 if test x$gcc_no_link = xyes; then
8822 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8823 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8824 { (exit 1); exit 1; }; }
8826 cat >conftest.$ac_ext <<_ACEOF
8827 /* confdefs.h. */
8828 _ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8833 /* Override any gcc2 internal prototype to avoid an error. */
8834 #ifdef __cplusplus
8835 extern "C"
8836 #endif
8837 /* We use char because int might match the return type of a gcc2
8838 builtin and then its argument prototype would still apply. */
8839 char round ();
8841 main ()
8843 round ();
8845 return 0;
8847 _ACEOF
8848 rm -f conftest.$ac_objext conftest$ac_exeext
8849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8850 (eval $ac_link) 2>conftest.er1
8851 ac_status=$?
8852 grep -v '^ *+' conftest.er1 >conftest.err
8853 rm -f conftest.er1
8854 cat conftest.err >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } &&
8857 { ac_try='test -z "$ac_c_werror_flag"
8858 || test ! -s conftest.err'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 (eval $ac_try) 2>&5
8861 ac_status=$?
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; } &&
8864 { ac_try='test -s conftest$ac_exeext'
8865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 (eval $ac_try) 2>&5
8867 ac_status=$?
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; }; then
8870 ac_cv_lib_m_round=yes
8871 else
8872 echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.$ac_ext >&5
8875 ac_cv_lib_m_round=no
8877 rm -f conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8879 LIBS=$ac_check_lib_save_LIBS
8881 echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
8882 echo "${ECHO_T}$ac_cv_lib_m_round" >&6
8883 if test $ac_cv_lib_m_round = yes; then
8885 cat >>confdefs.h <<\_ACEOF
8886 #define HAVE_ROUND 1
8887 _ACEOF
8891 echo "$as_me:$LINENO: checking for roundf in -lm" >&5
8892 echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
8893 if test "${ac_cv_lib_m_roundf+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896 ac_check_lib_save_LIBS=$LIBS
8897 LIBS="-lm $LIBS"
8898 if test x$gcc_no_link = xyes; then
8899 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8900 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8901 { (exit 1); exit 1; }; }
8903 cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h. */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8910 /* Override any gcc2 internal prototype to avoid an error. */
8911 #ifdef __cplusplus
8912 extern "C"
8913 #endif
8914 /* We use char because int might match the return type of a gcc2
8915 builtin and then its argument prototype would still apply. */
8916 char roundf ();
8918 main ()
8920 roundf ();
8922 return 0;
8924 _ACEOF
8925 rm -f conftest.$ac_objext conftest$ac_exeext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8927 (eval $ac_link) 2>conftest.er1
8928 ac_status=$?
8929 grep -v '^ *+' conftest.er1 >conftest.err
8930 rm -f conftest.er1
8931 cat conftest.err >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } &&
8934 { ac_try='test -z "$ac_c_werror_flag"
8935 || test ! -s conftest.err'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 (eval $ac_try) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; } &&
8941 { ac_try='test -s conftest$ac_exeext'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 (eval $ac_try) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 ac_cv_lib_m_roundf=yes
8948 else
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8952 ac_cv_lib_m_roundf=no
8954 rm -f conftest.err conftest.$ac_objext \
8955 conftest$ac_exeext conftest.$ac_ext
8956 LIBS=$ac_check_lib_save_LIBS
8958 echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
8959 echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
8960 if test $ac_cv_lib_m_roundf = yes; then
8962 cat >>confdefs.h <<\_ACEOF
8963 #define HAVE_ROUNDF 1
8964 _ACEOF
8968 echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
8969 echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
8970 if test "${ac_cv_lib_m_scalbnf+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8972 else
8973 ac_check_lib_save_LIBS=$LIBS
8974 LIBS="-lm $LIBS"
8975 if test x$gcc_no_link = xyes; then
8976 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8977 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8978 { (exit 1); exit 1; }; }
8980 cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h. */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8987 /* Override any gcc2 internal prototype to avoid an error. */
8988 #ifdef __cplusplus
8989 extern "C"
8990 #endif
8991 /* We use char because int might match the return type of a gcc2
8992 builtin and then its argument prototype would still apply. */
8993 char scalbnf ();
8995 main ()
8997 scalbnf ();
8999 return 0;
9001 _ACEOF
9002 rm -f conftest.$ac_objext conftest$ac_exeext
9003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9004 (eval $ac_link) 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } &&
9011 { ac_try='test -z "$ac_c_werror_flag"
9012 || test ! -s conftest.err'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 (eval $ac_try) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; } &&
9018 { ac_try='test -s conftest$ac_exeext'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 (eval $ac_try) 2>&5
9021 ac_status=$?
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; }; then
9024 ac_cv_lib_m_scalbnf=yes
9025 else
9026 echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9029 ac_cv_lib_m_scalbnf=no
9031 rm -f conftest.err conftest.$ac_objext \
9032 conftest$ac_exeext conftest.$ac_ext
9033 LIBS=$ac_check_lib_save_LIBS
9035 echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
9036 echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
9037 if test $ac_cv_lib_m_scalbnf = yes; then
9039 cat >>confdefs.h <<\_ACEOF
9040 #define HAVE_SCALBNF 1
9041 _ACEOF
9045 echo "$as_me:$LINENO: checking for sinf in -lm" >&5
9046 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
9047 if test "${ac_cv_lib_m_sinf+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050 ac_check_lib_save_LIBS=$LIBS
9051 LIBS="-lm $LIBS"
9052 if test x$gcc_no_link = xyes; then
9053 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9054 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9055 { (exit 1); exit 1; }; }
9057 cat >conftest.$ac_ext <<_ACEOF
9058 /* confdefs.h. */
9059 _ACEOF
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h. */
9064 /* Override any gcc2 internal prototype to avoid an error. */
9065 #ifdef __cplusplus
9066 extern "C"
9067 #endif
9068 /* We use char because int might match the return type of a gcc2
9069 builtin and then its argument prototype would still apply. */
9070 char sinf ();
9072 main ()
9074 sinf ();
9076 return 0;
9078 _ACEOF
9079 rm -f conftest.$ac_objext conftest$ac_exeext
9080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9081 (eval $ac_link) 2>conftest.er1
9082 ac_status=$?
9083 grep -v '^ *+' conftest.er1 >conftest.err
9084 rm -f conftest.er1
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } &&
9088 { ac_try='test -z "$ac_c_werror_flag"
9089 || test ! -s conftest.err'
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 (eval $ac_try) 2>&5
9092 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; } &&
9095 { ac_try='test -s conftest$ac_exeext'
9096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9097 (eval $ac_try) 2>&5
9098 ac_status=$?
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); }; }; then
9101 ac_cv_lib_m_sinf=yes
9102 else
9103 echo "$as_me: failed program was:" >&5
9104 sed 's/^/| /' conftest.$ac_ext >&5
9106 ac_cv_lib_m_sinf=no
9108 rm -f conftest.err conftest.$ac_objext \
9109 conftest$ac_exeext conftest.$ac_ext
9110 LIBS=$ac_check_lib_save_LIBS
9112 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
9113 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
9114 if test $ac_cv_lib_m_sinf = yes; then
9116 cat >>confdefs.h <<\_ACEOF
9117 #define HAVE_SINF 1
9118 _ACEOF
9122 echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
9123 echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
9124 if test "${ac_cv_lib_m_sinhf+set}" = set; then
9125 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 else
9127 ac_check_lib_save_LIBS=$LIBS
9128 LIBS="-lm $LIBS"
9129 if test x$gcc_no_link = xyes; then
9130 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9131 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9132 { (exit 1); exit 1; }; }
9134 cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h. */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9141 /* Override any gcc2 internal prototype to avoid an error. */
9142 #ifdef __cplusplus
9143 extern "C"
9144 #endif
9145 /* We use char because int might match the return type of a gcc2
9146 builtin and then its argument prototype would still apply. */
9147 char sinhf ();
9149 main ()
9151 sinhf ();
9153 return 0;
9155 _ACEOF
9156 rm -f conftest.$ac_objext conftest$ac_exeext
9157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9158 (eval $ac_link) 2>conftest.er1
9159 ac_status=$?
9160 grep -v '^ *+' conftest.er1 >conftest.err
9161 rm -f conftest.er1
9162 cat conftest.err >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try='test -z "$ac_c_werror_flag"
9166 || test ! -s conftest.err'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 (eval $ac_try) 2>&5
9169 ac_status=$?
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; } &&
9172 { ac_try='test -s conftest$ac_exeext'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; }; then
9178 ac_cv_lib_m_sinhf=yes
9179 else
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9183 ac_cv_lib_m_sinhf=no
9185 rm -f conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9187 LIBS=$ac_check_lib_save_LIBS
9189 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
9190 echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
9191 if test $ac_cv_lib_m_sinhf = yes; then
9193 cat >>confdefs.h <<\_ACEOF
9194 #define HAVE_SINHF 1
9195 _ACEOF
9199 echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
9200 echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
9201 if test "${ac_cv_lib_m_sqrtf+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 else
9204 ac_check_lib_save_LIBS=$LIBS
9205 LIBS="-lm $LIBS"
9206 if test x$gcc_no_link = xyes; then
9207 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9208 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9209 { (exit 1); exit 1; }; }
9211 cat >conftest.$ac_ext <<_ACEOF
9212 /* confdefs.h. */
9213 _ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9218 /* Override any gcc2 internal prototype to avoid an error. */
9219 #ifdef __cplusplus
9220 extern "C"
9221 #endif
9222 /* We use char because int might match the return type of a gcc2
9223 builtin and then its argument prototype would still apply. */
9224 char sqrtf ();
9226 main ()
9228 sqrtf ();
9230 return 0;
9232 _ACEOF
9233 rm -f conftest.$ac_objext conftest$ac_exeext
9234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9235 (eval $ac_link) 2>conftest.er1
9236 ac_status=$?
9237 grep -v '^ *+' conftest.er1 >conftest.err
9238 rm -f conftest.er1
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -z "$ac_c_werror_flag"
9243 || test ! -s conftest.err'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 (eval $ac_try) 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; } &&
9249 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9255 ac_cv_lib_m_sqrtf=yes
9256 else
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9260 ac_cv_lib_m_sqrtf=no
9262 rm -f conftest.err conftest.$ac_objext \
9263 conftest$ac_exeext conftest.$ac_ext
9264 LIBS=$ac_check_lib_save_LIBS
9266 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
9267 echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
9268 if test $ac_cv_lib_m_sqrtf = yes; then
9270 cat >>confdefs.h <<\_ACEOF
9271 #define HAVE_SQRTF 1
9272 _ACEOF
9276 echo "$as_me:$LINENO: checking for tanf in -lm" >&5
9277 echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
9278 if test "${ac_cv_lib_m_tanf+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 else
9281 ac_check_lib_save_LIBS=$LIBS
9282 LIBS="-lm $LIBS"
9283 if test x$gcc_no_link = xyes; then
9284 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9285 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9286 { (exit 1); exit 1; }; }
9288 cat >conftest.$ac_ext <<_ACEOF
9289 /* confdefs.h. */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9295 /* Override any gcc2 internal prototype to avoid an error. */
9296 #ifdef __cplusplus
9297 extern "C"
9298 #endif
9299 /* We use char because int might match the return type of a gcc2
9300 builtin and then its argument prototype would still apply. */
9301 char tanf ();
9303 main ()
9305 tanf ();
9307 return 0;
9309 _ACEOF
9310 rm -f conftest.$ac_objext conftest$ac_exeext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9312 (eval $ac_link) 2>conftest.er1
9313 ac_status=$?
9314 grep -v '^ *+' conftest.er1 >conftest.err
9315 rm -f conftest.er1
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } &&
9319 { ac_try='test -z "$ac_c_werror_flag"
9320 || test ! -s conftest.err'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 (eval $ac_try) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; } &&
9326 { ac_try='test -s conftest$ac_exeext'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 (eval $ac_try) 2>&5
9329 ac_status=$?
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 ac_cv_lib_m_tanf=yes
9333 else
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9337 ac_cv_lib_m_tanf=no
9339 rm -f conftest.err conftest.$ac_objext \
9340 conftest$ac_exeext conftest.$ac_ext
9341 LIBS=$ac_check_lib_save_LIBS
9343 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
9344 echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
9345 if test $ac_cv_lib_m_tanf = yes; then
9347 cat >>confdefs.h <<\_ACEOF
9348 #define HAVE_TANF 1
9349 _ACEOF
9353 echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
9354 echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
9355 if test "${ac_cv_lib_m_tanhf+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358 ac_check_lib_save_LIBS=$LIBS
9359 LIBS="-lm $LIBS"
9360 if test x$gcc_no_link = xyes; then
9361 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9362 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9363 { (exit 1); exit 1; }; }
9365 cat >conftest.$ac_ext <<_ACEOF
9366 /* confdefs.h. */
9367 _ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9372 /* Override any gcc2 internal prototype to avoid an error. */
9373 #ifdef __cplusplus
9374 extern "C"
9375 #endif
9376 /* We use char because int might match the return type of a gcc2
9377 builtin and then its argument prototype would still apply. */
9378 char tanhf ();
9380 main ()
9382 tanhf ();
9384 return 0;
9386 _ACEOF
9387 rm -f conftest.$ac_objext conftest$ac_exeext
9388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9389 (eval $ac_link) 2>conftest.er1
9390 ac_status=$?
9391 grep -v '^ *+' conftest.er1 >conftest.err
9392 rm -f conftest.er1
9393 cat conftest.err >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); } &&
9396 { ac_try='test -z "$ac_c_werror_flag"
9397 || test ! -s conftest.err'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 (eval $ac_try) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; } &&
9403 { ac_try='test -s conftest$ac_exeext'
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 (eval $ac_try) 2>&5
9406 ac_status=$?
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; }; then
9409 ac_cv_lib_m_tanhf=yes
9410 else
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9414 ac_cv_lib_m_tanhf=no
9416 rm -f conftest.err conftest.$ac_objext \
9417 conftest$ac_exeext conftest.$ac_ext
9418 LIBS=$ac_check_lib_save_LIBS
9420 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
9421 echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
9422 if test $ac_cv_lib_m_tanhf = yes; then
9424 cat >>confdefs.h <<\_ACEOF
9425 #define HAVE_TANHF 1
9426 _ACEOF
9430 echo "$as_me:$LINENO: checking for erf in -lm" >&5
9431 echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
9432 if test "${ac_cv_lib_m_erf+set}" = set; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 else
9435 ac_check_lib_save_LIBS=$LIBS
9436 LIBS="-lm $LIBS"
9437 if test x$gcc_no_link = xyes; then
9438 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9439 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9440 { (exit 1); exit 1; }; }
9442 cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h. */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9449 /* Override any gcc2 internal prototype to avoid an error. */
9450 #ifdef __cplusplus
9451 extern "C"
9452 #endif
9453 /* We use char because int might match the return type of a gcc2
9454 builtin and then its argument prototype would still apply. */
9455 char erf ();
9457 main ()
9459 erf ();
9461 return 0;
9463 _ACEOF
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>conftest.er1
9467 ac_status=$?
9468 grep -v '^ *+' conftest.er1 >conftest.err
9469 rm -f conftest.er1
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try='test -z "$ac_c_werror_flag"
9474 || test ! -s conftest.err'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476 (eval $ac_try) 2>&5
9477 ac_status=$?
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; } &&
9480 { ac_try='test -s conftest$ac_exeext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 (eval $ac_try) 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 ac_cv_lib_m_erf=yes
9487 else
9488 echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9491 ac_cv_lib_m_erf=no
9493 rm -f conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9495 LIBS=$ac_check_lib_save_LIBS
9497 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
9498 echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
9499 if test $ac_cv_lib_m_erf = yes; then
9501 cat >>confdefs.h <<\_ACEOF
9502 #define HAVE_ERF 1
9503 _ACEOF
9507 echo "$as_me:$LINENO: checking for erfc in -lm" >&5
9508 echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
9509 if test "${ac_cv_lib_m_erfc+set}" = set; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9511 else
9512 ac_check_lib_save_LIBS=$LIBS
9513 LIBS="-lm $LIBS"
9514 if test x$gcc_no_link = xyes; then
9515 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9516 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9517 { (exit 1); exit 1; }; }
9519 cat >conftest.$ac_ext <<_ACEOF
9520 /* confdefs.h. */
9521 _ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9526 /* Override any gcc2 internal prototype to avoid an error. */
9527 #ifdef __cplusplus
9528 extern "C"
9529 #endif
9530 /* We use char because int might match the return type of a gcc2
9531 builtin and then its argument prototype would still apply. */
9532 char erfc ();
9534 main ()
9536 erfc ();
9538 return 0;
9540 _ACEOF
9541 rm -f conftest.$ac_objext conftest$ac_exeext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9543 (eval $ac_link) 2>conftest.er1
9544 ac_status=$?
9545 grep -v '^ *+' conftest.er1 >conftest.err
9546 rm -f conftest.er1
9547 cat conftest.err >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } &&
9550 { ac_try='test -z "$ac_c_werror_flag"
9551 || test ! -s conftest.err'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 (eval $ac_try) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; } &&
9557 { ac_try='test -s conftest$ac_exeext'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 (eval $ac_try) 2>&5
9560 ac_status=$?
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 ac_cv_lib_m_erfc=yes
9564 else
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9568 ac_cv_lib_m_erfc=no
9570 rm -f conftest.err conftest.$ac_objext \
9571 conftest$ac_exeext conftest.$ac_ext
9572 LIBS=$ac_check_lib_save_LIBS
9574 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
9575 echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
9576 if test $ac_cv_lib_m_erfc = yes; then
9578 cat >>confdefs.h <<\_ACEOF
9579 #define HAVE_ERFC 1
9580 _ACEOF
9584 echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
9585 echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
9586 if test "${ac_cv_lib_m_erfcf+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 else
9589 ac_check_lib_save_LIBS=$LIBS
9590 LIBS="-lm $LIBS"
9591 if test x$gcc_no_link = xyes; then
9592 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9594 { (exit 1); exit 1; }; }
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h. */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9603 /* Override any gcc2 internal prototype to avoid an error. */
9604 #ifdef __cplusplus
9605 extern "C"
9606 #endif
9607 /* We use char because int might match the return type of a gcc2
9608 builtin and then its argument prototype would still apply. */
9609 char erfcf ();
9611 main ()
9613 erfcf ();
9615 return 0;
9617 _ACEOF
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9620 (eval $ac_link) 2>conftest.er1
9621 ac_status=$?
9622 grep -v '^ *+' conftest.er1 >conftest.err
9623 rm -f conftest.er1
9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try='test -z "$ac_c_werror_flag"
9628 || test ! -s conftest.err'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 (eval $ac_try) 2>&5
9631 ac_status=$?
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; } &&
9634 { ac_try='test -s conftest$ac_exeext'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 (eval $ac_try) 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; }; then
9640 ac_cv_lib_m_erfcf=yes
9641 else
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9645 ac_cv_lib_m_erfcf=no
9647 rm -f conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649 LIBS=$ac_check_lib_save_LIBS
9651 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
9652 echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
9653 if test $ac_cv_lib_m_erfcf = yes; then
9655 cat >>confdefs.h <<\_ACEOF
9656 #define HAVE_ERFCF 1
9657 _ACEOF
9661 echo "$as_me:$LINENO: checking for erff in -lm" >&5
9662 echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
9663 if test "${ac_cv_lib_m_erff+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666 ac_check_lib_save_LIBS=$LIBS
9667 LIBS="-lm $LIBS"
9668 if test x$gcc_no_link = xyes; then
9669 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9670 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9671 { (exit 1); exit 1; }; }
9673 cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h. */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9680 /* Override any gcc2 internal prototype to avoid an error. */
9681 #ifdef __cplusplus
9682 extern "C"
9683 #endif
9684 /* We use char because int might match the return type of a gcc2
9685 builtin and then its argument prototype would still apply. */
9686 char erff ();
9688 main ()
9690 erff ();
9692 return 0;
9694 _ACEOF
9695 rm -f conftest.$ac_objext conftest$ac_exeext
9696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9697 (eval $ac_link) 2>conftest.er1
9698 ac_status=$?
9699 grep -v '^ *+' conftest.er1 >conftest.err
9700 rm -f conftest.er1
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } &&
9704 { ac_try='test -z "$ac_c_werror_flag"
9705 || 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_erff=yes
9718 else
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9722 ac_cv_lib_m_erff=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_erff" >&5
9729 echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
9730 if test $ac_cv_lib_m_erff = yes; then
9732 cat >>confdefs.h <<\_ACEOF
9733 #define HAVE_ERFF 1
9734 _ACEOF
9738 echo "$as_me:$LINENO: checking for j0 in -lm" >&5
9739 echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
9740 if test "${ac_cv_lib_m_j0+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 j0 ();
9765 main ()
9767 j0 ();
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"
9782 || test ! -s conftest.err'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest$ac_exeext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 (eval $ac_try) 2>&5
9791 ac_status=$?
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 ac_cv_lib_m_j0=yes
9795 else
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 ac_cv_lib_m_j0=no
9801 rm -f conftest.err conftest.$ac_objext \
9802 conftest$ac_exeext conftest.$ac_ext
9803 LIBS=$ac_check_lib_save_LIBS
9805 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5
9806 echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
9807 if test $ac_cv_lib_m_j0 = yes; then
9809 cat >>confdefs.h <<\_ACEOF
9810 #define HAVE_J0 1
9811 _ACEOF
9815 echo "$as_me:$LINENO: checking for j0f in -lm" >&5
9816 echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
9817 if test "${ac_cv_lib_m_j0f+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820 ac_check_lib_save_LIBS=$LIBS
9821 LIBS="-lm $LIBS"
9822 if test x$gcc_no_link = xyes; then
9823 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9824 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9825 { (exit 1); exit 1; }; }
9827 cat >conftest.$ac_ext <<_ACEOF
9828 /* confdefs.h. */
9829 _ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9834 /* Override any gcc2 internal prototype to avoid an error. */
9835 #ifdef __cplusplus
9836 extern "C"
9837 #endif
9838 /* We use char because int might match the return type of a gcc2
9839 builtin and then its argument prototype would still apply. */
9840 char j0f ();
9842 main ()
9844 j0f ();
9846 return 0;
9848 _ACEOF
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851 (eval $ac_link) 2>conftest.er1
9852 ac_status=$?
9853 grep -v '^ *+' conftest.er1 >conftest.err
9854 rm -f conftest.er1
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag"
9859 || test ! -s conftest.err'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 (eval $ac_try) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; } &&
9865 { ac_try='test -s conftest$ac_exeext'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 (eval $ac_try) 2>&5
9868 ac_status=$?
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; }; then
9871 ac_cv_lib_m_j0f=yes
9872 else
9873 echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9876 ac_cv_lib_m_j0f=no
9878 rm -f conftest.err conftest.$ac_objext \
9879 conftest$ac_exeext conftest.$ac_ext
9880 LIBS=$ac_check_lib_save_LIBS
9882 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
9883 echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
9884 if test $ac_cv_lib_m_j0f = yes; then
9886 cat >>confdefs.h <<\_ACEOF
9887 #define HAVE_J0F 1
9888 _ACEOF
9892 echo "$as_me:$LINENO: checking for j1 in -lm" >&5
9893 echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
9894 if test "${ac_cv_lib_m_j1+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 else
9897 ac_check_lib_save_LIBS=$LIBS
9898 LIBS="-lm $LIBS"
9899 if test x$gcc_no_link = xyes; then
9900 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9901 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9902 { (exit 1); exit 1; }; }
9904 cat >conftest.$ac_ext <<_ACEOF
9905 /* confdefs.h. */
9906 _ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h. */
9911 /* Override any gcc2 internal prototype to avoid an error. */
9912 #ifdef __cplusplus
9913 extern "C"
9914 #endif
9915 /* We use char because int might match the return type of a gcc2
9916 builtin and then its argument prototype would still apply. */
9917 char j1 ();
9919 main ()
9921 j1 ();
9923 return 0;
9925 _ACEOF
9926 rm -f conftest.$ac_objext conftest$ac_exeext
9927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9928 (eval $ac_link) 2>conftest.er1
9929 ac_status=$?
9930 grep -v '^ *+' conftest.er1 >conftest.err
9931 rm -f conftest.er1
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } &&
9935 { ac_try='test -z "$ac_c_werror_flag"
9936 || test ! -s conftest.err'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 (eval $ac_try) 2>&5
9939 ac_status=$?
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; } &&
9942 { ac_try='test -s conftest$ac_exeext'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 (eval $ac_try) 2>&5
9945 ac_status=$?
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; }; then
9948 ac_cv_lib_m_j1=yes
9949 else
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9953 ac_cv_lib_m_j1=no
9955 rm -f conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext conftest.$ac_ext
9957 LIBS=$ac_check_lib_save_LIBS
9959 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
9960 echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
9961 if test $ac_cv_lib_m_j1 = yes; then
9963 cat >>confdefs.h <<\_ACEOF
9964 #define HAVE_J1 1
9965 _ACEOF
9969 echo "$as_me:$LINENO: checking for j1f in -lm" >&5
9970 echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
9971 if test "${ac_cv_lib_m_j1f+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974 ac_check_lib_save_LIBS=$LIBS
9975 LIBS="-lm $LIBS"
9976 if test x$gcc_no_link = xyes; then
9977 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9978 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9979 { (exit 1); exit 1; }; }
9981 cat >conftest.$ac_ext <<_ACEOF
9982 /* confdefs.h. */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9988 /* Override any gcc2 internal prototype to avoid an error. */
9989 #ifdef __cplusplus
9990 extern "C"
9991 #endif
9992 /* We use char because int might match the return type of a gcc2
9993 builtin and then its argument prototype would still apply. */
9994 char j1f ();
9996 main ()
9998 j1f ();
10000 return 0;
10002 _ACEOF
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10005 (eval $ac_link) 2>conftest.er1
10006 ac_status=$?
10007 grep -v '^ *+' conftest.er1 >conftest.err
10008 rm -f conftest.er1
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
10012 { ac_try='test -z "$ac_c_werror_flag"
10013 || test ! -s conftest.err'
10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015 (eval $ac_try) 2>&5
10016 ac_status=$?
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; } &&
10019 { ac_try='test -s conftest$ac_exeext'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 ac_cv_lib_m_j1f=yes
10026 else
10027 echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10030 ac_cv_lib_m_j1f=no
10032 rm -f conftest.err conftest.$ac_objext \
10033 conftest$ac_exeext conftest.$ac_ext
10034 LIBS=$ac_check_lib_save_LIBS
10036 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
10037 echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
10038 if test $ac_cv_lib_m_j1f = yes; then
10040 cat >>confdefs.h <<\_ACEOF
10041 #define HAVE_J1F 1
10042 _ACEOF
10046 echo "$as_me:$LINENO: checking for jn in -lm" >&5
10047 echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
10048 if test "${ac_cv_lib_m_jn+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051 ac_check_lib_save_LIBS=$LIBS
10052 LIBS="-lm $LIBS"
10053 if test x$gcc_no_link = xyes; then
10054 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10055 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10056 { (exit 1); exit 1; }; }
10058 cat >conftest.$ac_ext <<_ACEOF
10059 /* confdefs.h. */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10065 /* Override any gcc2 internal prototype to avoid an error. */
10066 #ifdef __cplusplus
10067 extern "C"
10068 #endif
10069 /* We use char because int might match the return type of a gcc2
10070 builtin and then its argument prototype would still apply. */
10071 char jn ();
10073 main ()
10075 jn ();
10077 return 0;
10079 _ACEOF
10080 rm -f conftest.$ac_objext conftest$ac_exeext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10082 (eval $ac_link) 2>conftest.er1
10083 ac_status=$?
10084 grep -v '^ *+' conftest.er1 >conftest.err
10085 rm -f conftest.er1
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag"
10090 || test ! -s conftest.err'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10093 ac_status=$?
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; } &&
10096 { ac_try='test -s conftest$ac_exeext'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10102 ac_cv_lib_m_jn=yes
10103 else
10104 echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10107 ac_cv_lib_m_jn=no
10109 rm -f conftest.err conftest.$ac_objext \
10110 conftest$ac_exeext conftest.$ac_ext
10111 LIBS=$ac_check_lib_save_LIBS
10113 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
10114 echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
10115 if test $ac_cv_lib_m_jn = yes; then
10117 cat >>confdefs.h <<\_ACEOF
10118 #define HAVE_JN 1
10119 _ACEOF
10123 echo "$as_me:$LINENO: checking for jnf in -lm" >&5
10124 echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
10125 if test "${ac_cv_lib_m_jnf+set}" = set; then
10126 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 else
10128 ac_check_lib_save_LIBS=$LIBS
10129 LIBS="-lm $LIBS"
10130 if test x$gcc_no_link = xyes; then
10131 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10132 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10133 { (exit 1); exit 1; }; }
10135 cat >conftest.$ac_ext <<_ACEOF
10136 /* confdefs.h. */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10142 /* Override any gcc2 internal prototype to avoid an error. */
10143 #ifdef __cplusplus
10144 extern "C"
10145 #endif
10146 /* We use char because int might match the return type of a gcc2
10147 builtin and then its argument prototype would still apply. */
10148 char jnf ();
10150 main ()
10152 jnf ();
10154 return 0;
10156 _ACEOF
10157 rm -f conftest.$ac_objext conftest$ac_exeext
10158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10159 (eval $ac_link) 2>conftest.er1
10160 ac_status=$?
10161 grep -v '^ *+' conftest.er1 >conftest.err
10162 rm -f conftest.er1
10163 cat conftest.err >&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } &&
10166 { ac_try='test -z "$ac_c_werror_flag"
10167 || test ! -s conftest.err'
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); }; } &&
10173 { ac_try='test -s conftest$ac_exeext'
10174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175 (eval $ac_try) 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
10179 ac_cv_lib_m_jnf=yes
10180 else
10181 echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10184 ac_cv_lib_m_jnf=no
10186 rm -f conftest.err conftest.$ac_objext \
10187 conftest$ac_exeext conftest.$ac_ext
10188 LIBS=$ac_check_lib_save_LIBS
10190 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
10191 echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
10192 if test $ac_cv_lib_m_jnf = yes; then
10194 cat >>confdefs.h <<\_ACEOF
10195 #define HAVE_JNF 1
10196 _ACEOF
10200 echo "$as_me:$LINENO: checking for y0 in -lm" >&5
10201 echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
10202 if test "${ac_cv_lib_m_y0+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205 ac_check_lib_save_LIBS=$LIBS
10206 LIBS="-lm $LIBS"
10207 if test x$gcc_no_link = xyes; then
10208 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10209 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10210 { (exit 1); exit 1; }; }
10212 cat >conftest.$ac_ext <<_ACEOF
10213 /* confdefs.h. */
10214 _ACEOF
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h. */
10219 /* Override any gcc2 internal prototype to avoid an error. */
10220 #ifdef __cplusplus
10221 extern "C"
10222 #endif
10223 /* We use char because int might match the return type of a gcc2
10224 builtin and then its argument prototype would still apply. */
10225 char y0 ();
10227 main ()
10229 y0 ();
10231 return 0;
10233 _ACEOF
10234 rm -f conftest.$ac_objext conftest$ac_exeext
10235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10236 (eval $ac_link) 2>conftest.er1
10237 ac_status=$?
10238 grep -v '^ *+' conftest.er1 >conftest.err
10239 rm -f conftest.er1
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try='test -z "$ac_c_werror_flag"
10244 || test ! -s conftest.err'
10245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246 (eval $ac_try) 2>&5
10247 ac_status=$?
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; } &&
10250 { ac_try='test -s conftest$ac_exeext'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10253 ac_status=$?
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; }; then
10256 ac_cv_lib_m_y0=yes
10257 else
10258 echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10261 ac_cv_lib_m_y0=no
10263 rm -f conftest.err conftest.$ac_objext \
10264 conftest$ac_exeext conftest.$ac_ext
10265 LIBS=$ac_check_lib_save_LIBS
10267 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
10268 echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
10269 if test $ac_cv_lib_m_y0 = yes; then
10271 cat >>confdefs.h <<\_ACEOF
10272 #define HAVE_Y0 1
10273 _ACEOF
10277 echo "$as_me:$LINENO: checking for y0f in -lm" >&5
10278 echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
10279 if test "${ac_cv_lib_m_y0f+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282 ac_check_lib_save_LIBS=$LIBS
10283 LIBS="-lm $LIBS"
10284 if test x$gcc_no_link = xyes; then
10285 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10286 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10287 { (exit 1); exit 1; }; }
10289 cat >conftest.$ac_ext <<_ACEOF
10290 /* confdefs.h. */
10291 _ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10296 /* Override any gcc2 internal prototype to avoid an error. */
10297 #ifdef __cplusplus
10298 extern "C"
10299 #endif
10300 /* We use char because int might match the return type of a gcc2
10301 builtin and then its argument prototype would still apply. */
10302 char y0f ();
10304 main ()
10306 y0f ();
10308 return 0;
10310 _ACEOF
10311 rm -f conftest.$ac_objext conftest$ac_exeext
10312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10313 (eval $ac_link) 2>conftest.er1
10314 ac_status=$?
10315 grep -v '^ *+' conftest.er1 >conftest.err
10316 rm -f conftest.er1
10317 cat conftest.err >&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try='test -z "$ac_c_werror_flag"
10321 || test ! -s conftest.err'
10322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323 (eval $ac_try) 2>&5
10324 ac_status=$?
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); }; } &&
10327 { ac_try='test -s conftest$ac_exeext'
10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; }; then
10333 ac_cv_lib_m_y0f=yes
10334 else
10335 echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10338 ac_cv_lib_m_y0f=no
10340 rm -f conftest.err conftest.$ac_objext \
10341 conftest$ac_exeext conftest.$ac_ext
10342 LIBS=$ac_check_lib_save_LIBS
10344 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
10345 echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
10346 if test $ac_cv_lib_m_y0f = yes; then
10348 cat >>confdefs.h <<\_ACEOF
10349 #define HAVE_Y0F 1
10350 _ACEOF
10354 echo "$as_me:$LINENO: checking for y1 in -lm" >&5
10355 echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
10356 if test "${ac_cv_lib_m_y1+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359 ac_check_lib_save_LIBS=$LIBS
10360 LIBS="-lm $LIBS"
10361 if test x$gcc_no_link = xyes; then
10362 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10363 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10364 { (exit 1); exit 1; }; }
10366 cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h. */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10373 /* Override any gcc2 internal prototype to avoid an error. */
10374 #ifdef __cplusplus
10375 extern "C"
10376 #endif
10377 /* We use char because int might match the return type of a gcc2
10378 builtin and then its argument prototype would still apply. */
10379 char y1 ();
10381 main ()
10383 y1 ();
10385 return 0;
10387 _ACEOF
10388 rm -f conftest.$ac_objext conftest$ac_exeext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10390 (eval $ac_link) 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } &&
10397 { ac_try='test -z "$ac_c_werror_flag"
10398 || test ! -s conftest.err'
10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400 (eval $ac_try) 2>&5
10401 ac_status=$?
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; } &&
10404 { ac_try='test -s conftest$ac_exeext'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10410 ac_cv_lib_m_y1=yes
10411 else
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10415 ac_cv_lib_m_y1=no
10417 rm -f conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext conftest.$ac_ext
10419 LIBS=$ac_check_lib_save_LIBS
10421 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
10422 echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
10423 if test $ac_cv_lib_m_y1 = yes; then
10425 cat >>confdefs.h <<\_ACEOF
10426 #define HAVE_Y1 1
10427 _ACEOF
10431 echo "$as_me:$LINENO: checking for y1f in -lm" >&5
10432 echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
10433 if test "${ac_cv_lib_m_y1f+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 else
10436 ac_check_lib_save_LIBS=$LIBS
10437 LIBS="-lm $LIBS"
10438 if test x$gcc_no_link = xyes; then
10439 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10440 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10441 { (exit 1); exit 1; }; }
10443 cat >conftest.$ac_ext <<_ACEOF
10444 /* confdefs.h. */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10450 /* Override any gcc2 internal prototype to avoid an error. */
10451 #ifdef __cplusplus
10452 extern "C"
10453 #endif
10454 /* We use char because int might match the return type of a gcc2
10455 builtin and then its argument prototype would still apply. */
10456 char y1f ();
10458 main ()
10460 y1f ();
10462 return 0;
10464 _ACEOF
10465 rm -f conftest.$ac_objext conftest$ac_exeext
10466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10467 (eval $ac_link) 2>conftest.er1
10468 ac_status=$?
10469 grep -v '^ *+' conftest.er1 >conftest.err
10470 rm -f conftest.er1
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try='test -z "$ac_c_werror_flag"
10475 || test ! -s conftest.err'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; } &&
10481 { ac_try='test -s conftest$ac_exeext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 ac_cv_lib_m_y1f=yes
10488 else
10489 echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10492 ac_cv_lib_m_y1f=no
10494 rm -f conftest.err conftest.$ac_objext \
10495 conftest$ac_exeext conftest.$ac_ext
10496 LIBS=$ac_check_lib_save_LIBS
10498 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
10499 echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
10500 if test $ac_cv_lib_m_y1f = yes; then
10502 cat >>confdefs.h <<\_ACEOF
10503 #define HAVE_Y1F 1
10504 _ACEOF
10508 echo "$as_me:$LINENO: checking for yn in -lm" >&5
10509 echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
10510 if test "${ac_cv_lib_m_yn+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 else
10513 ac_check_lib_save_LIBS=$LIBS
10514 LIBS="-lm $LIBS"
10515 if test x$gcc_no_link = xyes; then
10516 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10517 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10518 { (exit 1); exit 1; }; }
10520 cat >conftest.$ac_ext <<_ACEOF
10521 /* confdefs.h. */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10527 /* Override any gcc2 internal prototype to avoid an error. */
10528 #ifdef __cplusplus
10529 extern "C"
10530 #endif
10531 /* We use char because int might match the return type of a gcc2
10532 builtin and then its argument prototype would still apply. */
10533 char yn ();
10535 main ()
10537 yn ();
10539 return 0;
10541 _ACEOF
10542 rm -f conftest.$ac_objext conftest$ac_exeext
10543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10544 (eval $ac_link) 2>conftest.er1
10545 ac_status=$?
10546 grep -v '^ *+' conftest.er1 >conftest.err
10547 rm -f conftest.er1
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try='test -z "$ac_c_werror_flag"
10552 || test ! -s conftest.err'
10553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554 (eval $ac_try) 2>&5
10555 ac_status=$?
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; } &&
10558 { ac_try='test -s conftest$ac_exeext'
10559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560 (eval $ac_try) 2>&5
10561 ac_status=$?
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; }; then
10564 ac_cv_lib_m_yn=yes
10565 else
10566 echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10569 ac_cv_lib_m_yn=no
10571 rm -f conftest.err conftest.$ac_objext \
10572 conftest$ac_exeext conftest.$ac_ext
10573 LIBS=$ac_check_lib_save_LIBS
10575 echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
10576 echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
10577 if test $ac_cv_lib_m_yn = yes; then
10579 cat >>confdefs.h <<\_ACEOF
10580 #define HAVE_YN 1
10581 _ACEOF
10585 echo "$as_me:$LINENO: checking for ynf in -lm" >&5
10586 echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
10587 if test "${ac_cv_lib_m_ynf+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10589 else
10590 ac_check_lib_save_LIBS=$LIBS
10591 LIBS="-lm $LIBS"
10592 if test x$gcc_no_link = xyes; then
10593 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10594 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10595 { (exit 1); exit 1; }; }
10597 cat >conftest.$ac_ext <<_ACEOF
10598 /* confdefs.h. */
10599 _ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h. */
10604 /* Override any gcc2 internal prototype to avoid an error. */
10605 #ifdef __cplusplus
10606 extern "C"
10607 #endif
10608 /* We use char because int might match the return type of a gcc2
10609 builtin and then its argument prototype would still apply. */
10610 char ynf ();
10612 main ()
10614 ynf ();
10616 return 0;
10618 _ACEOF
10619 rm -f conftest.$ac_objext conftest$ac_exeext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10621 (eval $ac_link) 2>conftest.er1
10622 ac_status=$?
10623 grep -v '^ *+' conftest.er1 >conftest.err
10624 rm -f conftest.er1
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } &&
10628 { ac_try='test -z "$ac_c_werror_flag"
10629 || test ! -s conftest.err'
10630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; } &&
10635 { ac_try='test -s conftest$ac_exeext'
10636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637 (eval $ac_try) 2>&5
10638 ac_status=$?
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; }; then
10641 ac_cv_lib_m_ynf=yes
10642 else
10643 echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10646 ac_cv_lib_m_ynf=no
10648 rm -f conftest.err conftest.$ac_objext \
10649 conftest$ac_exeext conftest.$ac_ext
10650 LIBS=$ac_check_lib_save_LIBS
10652 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
10653 echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
10654 if test $ac_cv_lib_m_ynf = yes; then
10656 cat >>confdefs.h <<\_ACEOF
10657 #define HAVE_YNF 1
10658 _ACEOF
10663 # Fallback in case isfinite is not available.
10664 echo "$as_me:$LINENO: checking for finite in -lm" >&5
10665 echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6
10666 if test "${ac_cv_lib_m_finite+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669 ac_check_lib_save_LIBS=$LIBS
10670 LIBS="-lm $LIBS"
10671 if test x$gcc_no_link = xyes; then
10672 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10673 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10674 { (exit 1); exit 1; }; }
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. */
10683 /* Override any gcc2 internal prototype to avoid an error. */
10684 #ifdef __cplusplus
10685 extern "C"
10686 #endif
10687 /* We use char because int might match the return type of a gcc2
10688 builtin and then its argument prototype would still apply. */
10689 char finite ();
10691 main ()
10693 finite ();
10695 return 0;
10697 _ACEOF
10698 rm -f conftest.$ac_objext conftest$ac_exeext
10699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10700 (eval $ac_link) 2>conftest.er1
10701 ac_status=$?
10702 grep -v '^ *+' conftest.er1 >conftest.err
10703 rm -f conftest.er1
10704 cat conftest.err >&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } &&
10707 { ac_try='test -z "$ac_c_werror_flag"
10708 || test ! -s conftest.err'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; } &&
10714 { ac_try='test -s conftest$ac_exeext'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_cv_lib_m_finite=yes
10721 else
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 ac_cv_lib_m_finite=no
10727 rm -f conftest.err conftest.$ac_objext \
10728 conftest$ac_exeext conftest.$ac_ext
10729 LIBS=$ac_check_lib_save_LIBS
10731 echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5
10732 echo "${ECHO_T}$ac_cv_lib_m_finite" >&6
10733 if test $ac_cv_lib_m_finite = yes; then
10735 cat >>confdefs.h <<\_ACEOF
10736 #define HAVE_FINITE 1
10737 _ACEOF
10742 # Let the user override this
10743 # Check whether --enable-cmath or --disable-cmath was given.
10744 if test "${enable_cmath+set}" = set; then
10745 enableval="$enable_cmath"
10746 need_math=$enableval
10748 if test "$need_math" = "yes"; then
10749 { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
10750 echo "$as_me: Including complex math functions in libgfor" >&6;};
10751 extra_math_obj='$(gfor_cmath_obj)'
10754 MATH_OBJ="$extra_math_obj"
10757 # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
10758 # for struct timezone, as you might think. We also need to check how
10759 # to call gettimeofday if we have it.
10760 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10761 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10762 if test "${ac_cv_header_time+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 else
10765 cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h. */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10771 #include <sys/types.h>
10772 #include <sys/time.h>
10773 #include <time.h>
10776 main ()
10778 if ((struct tm *) 0)
10779 return 0;
10781 return 0;
10783 _ACEOF
10784 rm -f conftest.$ac_objext
10785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10786 (eval $ac_compile) 2>conftest.er1
10787 ac_status=$?
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
10793 { ac_try='test -z "$ac_c_werror_flag"
10794 || test ! -s conftest.err'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest.$ac_objext'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 ac_cv_header_time=yes
10807 else
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10811 ac_cv_header_time=no
10813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10815 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10816 echo "${ECHO_T}$ac_cv_header_time" >&6
10817 if test $ac_cv_header_time = yes; then
10819 cat >>confdefs.h <<\_ACEOF
10820 #define TIME_WITH_SYS_TIME 1
10821 _ACEOF
10827 for ac_func in gettimeofday
10829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10830 echo "$as_me:$LINENO: checking for $ac_func" >&5
10831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10832 if eval "test \"\${$as_ac_var+set}\" = set"; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835 if test x$gcc_no_link = xyes; then
10836 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10837 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10838 { (exit 1); exit 1; }; }
10840 cat >conftest.$ac_ext <<_ACEOF
10841 /* confdefs.h. */
10842 _ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h. */
10846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10848 #define $ac_func innocuous_$ac_func
10850 /* System header to define __stub macros and hopefully few prototypes,
10851 which can conflict with char $ac_func (); below.
10852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10853 <limits.h> exists even on freestanding compilers. */
10855 #ifdef __STDC__
10856 # include <limits.h>
10857 #else
10858 # include <assert.h>
10859 #endif
10861 #undef $ac_func
10863 /* Override any gcc2 internal prototype to avoid an error. */
10864 #ifdef __cplusplus
10865 extern "C"
10867 #endif
10868 /* We use char because int might match the return type of a gcc2
10869 builtin and then its argument prototype would still apply. */
10870 char $ac_func ();
10871 /* The GNU C library defines this for functions which it implements
10872 to always fail with ENOSYS. Some functions are actually named
10873 something starting with __ and the normal name is an alias. */
10874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10875 choke me
10876 #else
10877 char (*f) () = $ac_func;
10878 #endif
10879 #ifdef __cplusplus
10881 #endif
10884 main ()
10886 return f != $ac_func;
10888 return 0;
10890 _ACEOF
10891 rm -f conftest.$ac_objext conftest$ac_exeext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10893 (eval $ac_link) 2>conftest.er1
10894 ac_status=$?
10895 grep -v '^ *+' conftest.er1 >conftest.err
10896 rm -f conftest.er1
10897 cat conftest.err >&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } &&
10900 { ac_try='test -z "$ac_c_werror_flag"
10901 || test ! -s conftest.err'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10904 ac_status=$?
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; } &&
10907 { ac_try='test -s conftest$ac_exeext'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 eval "$as_ac_var=yes"
10914 else
10915 echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10918 eval "$as_ac_var=no"
10920 rm -f conftest.err conftest.$ac_objext \
10921 conftest$ac_exeext conftest.$ac_ext
10923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10925 if test `eval echo '${'$as_ac_var'}'` = yes; then
10926 cat >>confdefs.h <<_ACEOF
10927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10928 _ACEOF
10931 done
10933 if test "$ac_cv_func_gettimeofday" = yes; then
10934 echo "$as_me:$LINENO: checking for struct timezone" >&5
10935 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
10936 if test "${gfor_cv_struct_timezone+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939 cat >conftest.$ac_ext <<_ACEOF
10940 /* confdefs.h. */
10941 _ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10945 #include <sys/time.h>
10947 main ()
10949 struct timezone tz;
10951 return 0;
10953 _ACEOF
10954 rm -f conftest.$ac_objext
10955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10956 (eval $ac_compile) 2>conftest.er1
10957 ac_status=$?
10958 grep -v '^ *+' conftest.er1 >conftest.err
10959 rm -f conftest.er1
10960 cat conftest.err >&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } &&
10963 { ac_try='test -z "$ac_c_werror_flag"
10964 || test ! -s conftest.err'
10965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966 (eval $ac_try) 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; } &&
10970 { ac_try='test -s conftest.$ac_objext'
10971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10973 ac_status=$?
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 gfor_cv_struct_timezone=yes
10977 else
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10981 gfor_cv_struct_timezone=no
10983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10985 echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
10986 echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
10987 if test $gfor_cv_struct_timezone = yes; then
10988 if test "$cross_compiling" = yes; then
10989 gfor_have_struct_timezone=yes
10990 else
10991 cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h. */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10998 #ifdef TIME_WITH_SYS_TIME
10999 #include <sys/time.h>
11000 #include <time.h>
11001 #else
11002 #ifdef HAVE_SYS_TIME_H
11003 #include <sys/time.h>
11004 #else
11005 #include <time.h>
11006 #endif
11007 #endif
11008 main ()
11010 struct timeval time;
11011 struct timezone dummy;
11012 if (gettimeofday (&time, &dummy))
11013 exit (1);
11014 else
11015 exit (0);
11017 _ACEOF
11018 rm -f conftest$ac_exeext
11019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11020 (eval $ac_link) 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 gfor_have_struct_timezone=yes
11030 else
11031 echo "$as_me: program exited with status $ac_status" >&5
11032 echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11035 ( exit $ac_status )
11036 gfor_have_struct_timezone=no
11038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11040 if test $gfor_have_struct_timezone = yes; then
11042 cat >>confdefs.h <<\_ACEOF
11043 #define HAVE_TIMEZONE 1
11044 _ACEOF
11049 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
11050 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11051 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11052 echo $ECHO_N "(cached) $ECHO_C" >&6
11053 else
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. */
11066 #ifdef TIME_WITH_SYS_TIME
11067 #include <sys/time.h>
11068 #include <time.h>
11069 #else
11070 #ifdef HAVE_SYS_TIME_H
11071 #include <sys/time.h>
11072 #else
11073 #include <time.h>
11074 #endif
11075 #endif
11078 main ()
11081 struct timeval time;
11082 #ifdef HAVE_TIMEZONE
11083 struct timezone dummy;
11084 #define DUMMY &dummy
11085 #else
11086 #define DUMMY NULL
11087 #endif
11088 gettimeofday (&time, DUMMY);
11090 return 0;
11092 _ACEOF
11093 rm -f conftest.$ac_objext conftest$ac_exeext
11094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11095 (eval $ac_link) 2>conftest.er1
11096 ac_status=$?
11097 grep -v '^ *+' conftest.er1 >conftest.err
11098 rm -f conftest.er1
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } &&
11102 { ac_try='test -z "$ac_c_werror_flag"
11103 || test ! -s conftest.err'
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; } &&
11109 { ac_try='test -s conftest$ac_exeext'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 emacs_cv_gettimeofday_two_arguments=yes
11116 else
11117 echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11120 emacs_cv_gettimeofday_two_arguments=no
11122 rm -f conftest.err conftest.$ac_objext \
11123 conftest$ac_exeext conftest.$ac_ext
11125 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
11126 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11127 if test $emacs_cv_gettimeofday_two_arguments = no; then
11129 cat >>confdefs.h <<\_ACEOF
11130 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11131 _ACEOF
11136 # Attempt to assert that the target is of common type in case we don't
11137 # have C99 integer types at all.
11139 echo "$as_me:$LINENO: checking whether the target is ILP32" >&5
11140 echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6
11141 if test "${target_ilp32+set}" = set; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11143 else
11145 save_CFLAGS="$CFLAGS"
11146 CFLAGS="-O2"
11147 if test x$gcc_no_link = xyes; then
11148 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11150 { (exit 1); exit 1; }; }
11152 cat >conftest.$ac_ext <<_ACEOF
11153 /* confdefs.h. */
11154 _ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11160 main ()
11163 if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4)
11165 else
11166 undefined_function ();
11169 return 0;
11171 _ACEOF
11172 rm -f conftest.$ac_objext conftest$ac_exeext
11173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11174 (eval $ac_link) 2>conftest.er1
11175 ac_status=$?
11176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try='test -z "$ac_c_werror_flag"
11182 || test ! -s conftest.err'
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; } &&
11188 { ac_try='test -s conftest$ac_exeext'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 target_ilp32=yes
11195 else
11196 echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11199 target_ilp32=no
11201 rm -f conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
11203 CFLAGS="$save_CFLAGS"
11205 echo "$as_me:$LINENO: result: $target_ilp32" >&5
11206 echo "${ECHO_T}$target_ilp32" >&6
11207 if test $target_ilp32 = yes; then
11209 cat >>confdefs.h <<\_ACEOF
11210 #define TARGET_ILP32 1
11211 _ACEOF
11216 cat >confcache <<\_ACEOF
11217 # This file is a shell script that caches the results of configure
11218 # tests run on this system so they can be shared between configure
11219 # scripts and configure runs, see configure's option --config-cache.
11220 # It is not useful on other systems. If it contains results you don't
11221 # want to keep, you may remove or edit it.
11223 # config.status only pays attention to the cache file if you give it
11224 # the --recheck option to rerun configure.
11226 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11227 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11228 # following values.
11230 _ACEOF
11232 # The following way of writing the cache mishandles newlines in values,
11233 # but we know of no workaround that is simple, portable, and efficient.
11234 # So, don't put newlines in cache variables' values.
11235 # Ultrix sh set writes to stderr and can't be redirected directly,
11236 # and sets the high bit in the cache file unless we assign to the vars.
11238 (set) 2>&1 |
11239 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11240 *ac_space=\ *)
11241 # `set' does not quote correctly, so add quotes (double-quote
11242 # substitution turns \\\\ into \\, and sed turns \\ into \).
11243 sed -n \
11244 "s/'/'\\\\''/g;
11245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11248 # `set' quotes correctly as required by POSIX, so do not add quotes.
11249 sed -n \
11250 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11252 esac;
11254 sed '
11255 t clear
11256 : clear
11257 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11258 t end
11259 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11260 : end' >>confcache
11261 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11262 if test -w $cache_file; then
11263 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11264 cat confcache >$cache_file
11265 else
11266 echo "not updating unwritable cache $cache_file"
11269 rm -f confcache
11271 if test ${multilib} = yes; then
11272 multilib_arg="--enable-multilib"
11273 else
11274 multilib_arg=
11277 # Write our Makefile.
11278 ac_config_files="$ac_config_files Makefile"
11280 cat >confcache <<\_ACEOF
11281 # This file is a shell script that caches the results of configure
11282 # tests run on this system so they can be shared between configure
11283 # scripts and configure runs, see configure's option --config-cache.
11284 # It is not useful on other systems. If it contains results you don't
11285 # want to keep, you may remove or edit it.
11287 # config.status only pays attention to the cache file if you give it
11288 # the --recheck option to rerun configure.
11290 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11291 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11292 # following values.
11294 _ACEOF
11296 # The following way of writing the cache mishandles newlines in values,
11297 # but we know of no workaround that is simple, portable, and efficient.
11298 # So, don't put newlines in cache variables' values.
11299 # Ultrix sh set writes to stderr and can't be redirected directly,
11300 # and sets the high bit in the cache file unless we assign to the vars.
11302 (set) 2>&1 |
11303 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11304 *ac_space=\ *)
11305 # `set' does not quote correctly, so add quotes (double-quote
11306 # substitution turns \\\\ into \\, and sed turns \\ into \).
11307 sed -n \
11308 "s/'/'\\\\''/g;
11309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11312 # `set' quotes correctly as required by POSIX, so do not add quotes.
11313 sed -n \
11314 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11316 esac;
11318 sed '
11319 t clear
11320 : clear
11321 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11322 t end
11323 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11324 : end' >>confcache
11325 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11326 if test -w $cache_file; then
11327 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11328 cat confcache >$cache_file
11329 else
11330 echo "not updating unwritable cache $cache_file"
11333 rm -f confcache
11335 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11336 # Let make expand exec_prefix.
11337 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11339 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11340 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11341 # trailing colons and then remove the whole line if VPATH becomes empty
11342 # (actually we leave an empty line to preserve line numbers).
11343 if test "x$srcdir" = x.; then
11344 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11345 s/:*\$(srcdir):*/:/;
11346 s/:*\${srcdir}:*/:/;
11347 s/:*@srcdir@:*/:/;
11348 s/^\([^=]*=[ ]*\):*/\1/;
11349 s/:*$//;
11350 s/^[^=]*=[ ]*$//;
11354 DEFS=-DHAVE_CONFIG_H
11356 ac_libobjs=
11357 ac_ltlibobjs=
11358 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11359 # 1. Remove the extension, and $U if already installed.
11360 ac_i=`echo "$ac_i" |
11361 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11362 # 2. Add them.
11363 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11364 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11365 done
11366 LIBOBJS=$ac_libobjs
11368 LTLIBOBJS=$ac_ltlibobjs
11371 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11372 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11373 Usually this means the macro was only invoked conditionally." >&5
11374 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11375 Usually this means the macro was only invoked conditionally." >&2;}
11376 { (exit 1); exit 1; }; }
11379 : ${CONFIG_STATUS=./config.status}
11380 ac_clean_files_save=$ac_clean_files
11381 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11382 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11383 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11384 cat >$CONFIG_STATUS <<_ACEOF
11385 #! $SHELL
11386 # Generated by $as_me.
11387 # Run this file to recreate the current configuration.
11388 # Compiler output produced by configure, useful for debugging
11389 # configure, is in config.log if it exists.
11391 debug=false
11392 ac_cs_recheck=false
11393 ac_cs_silent=false
11394 SHELL=\${CONFIG_SHELL-$SHELL}
11395 _ACEOF
11397 cat >>$CONFIG_STATUS <<\_ACEOF
11398 ## --------------------- ##
11399 ## M4sh Initialization. ##
11400 ## --------------------- ##
11402 # Be Bourne compatible
11403 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11404 emulate sh
11405 NULLCMD=:
11406 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11407 # is contrary to our usage. Disable this feature.
11408 alias -g '${1+"$@"}'='"$@"'
11409 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11410 set -o posix
11412 DUALCASE=1; export DUALCASE # for MKS sh
11414 # Support unset when possible.
11415 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11416 as_unset=unset
11417 else
11418 as_unset=false
11422 # Work around bugs in pre-3.0 UWIN ksh.
11423 $as_unset ENV MAIL MAILPATH
11424 PS1='$ '
11425 PS2='> '
11426 PS4='+ '
11428 # NLS nuisances.
11429 for as_var in \
11430 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11431 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11432 LC_TELEPHONE LC_TIME
11434 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11435 eval $as_var=C; export $as_var
11436 else
11437 $as_unset $as_var
11439 done
11441 # Required to use basename.
11442 if expr a : '\(a\)' >/dev/null 2>&1; then
11443 as_expr=expr
11444 else
11445 as_expr=false
11448 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11449 as_basename=basename
11450 else
11451 as_basename=false
11455 # Name of the executable.
11456 as_me=`$as_basename "$0" ||
11457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11458 X"$0" : 'X\(//\)$' \| \
11459 X"$0" : 'X\(/\)$' \| \
11460 . : '\(.\)' 2>/dev/null ||
11461 echo X/"$0" |
11462 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11463 /^X\/\(\/\/\)$/{ s//\1/; q; }
11464 /^X\/\(\/\).*/{ s//\1/; q; }
11465 s/.*/./; q'`
11468 # PATH needs CR, and LINENO needs CR and PATH.
11469 # Avoid depending upon Character Ranges.
11470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11473 as_cr_digits='0123456789'
11474 as_cr_alnum=$as_cr_Letters$as_cr_digits
11476 # The user is always right.
11477 if test "${PATH_SEPARATOR+set}" != set; then
11478 echo "#! /bin/sh" >conf$$.sh
11479 echo "exit 0" >>conf$$.sh
11480 chmod +x conf$$.sh
11481 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11482 PATH_SEPARATOR=';'
11483 else
11484 PATH_SEPARATOR=:
11486 rm -f conf$$.sh
11490 as_lineno_1=$LINENO
11491 as_lineno_2=$LINENO
11492 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11493 test "x$as_lineno_1" != "x$as_lineno_2" &&
11494 test "x$as_lineno_3" = "x$as_lineno_2" || {
11495 # Find who we are. Look in the path if we contain no path at all
11496 # relative or not.
11497 case $0 in
11498 *[\\/]* ) as_myself=$0 ;;
11499 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500 for as_dir in $PATH
11502 IFS=$as_save_IFS
11503 test -z "$as_dir" && as_dir=.
11504 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11505 done
11508 esac
11509 # We did not find ourselves, most probably we were run as `sh COMMAND'
11510 # in which case we are not to be found in the path.
11511 if test "x$as_myself" = x; then
11512 as_myself=$0
11514 if test ! -f "$as_myself"; then
11515 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11516 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11517 { (exit 1); exit 1; }; }
11519 case $CONFIG_SHELL in
11521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11522 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11524 IFS=$as_save_IFS
11525 test -z "$as_dir" && as_dir=.
11526 for as_base in sh bash ksh sh5; do
11527 case $as_dir in
11529 if ("$as_dir/$as_base" -c '
11530 as_lineno_1=$LINENO
11531 as_lineno_2=$LINENO
11532 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11533 test "x$as_lineno_1" != "x$as_lineno_2" &&
11534 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11535 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11536 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11537 CONFIG_SHELL=$as_dir/$as_base
11538 export CONFIG_SHELL
11539 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11540 fi;;
11541 esac
11542 done
11543 done
11545 esac
11547 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11548 # uniformly replaced by the line number. The first 'sed' inserts a
11549 # line-number line before each line; the second 'sed' does the real
11550 # work. The second script uses 'N' to pair each line-number line
11551 # with the numbered line, and appends trailing '-' during
11552 # substitution so that $LINENO is not a special case at line end.
11553 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11554 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11555 sed '=' <$as_myself |
11556 sed '
11558 s,$,-,
11559 : loop
11560 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11561 t loop
11562 s,-$,,
11563 s,^['$as_cr_digits']*\n,,
11564 ' >$as_me.lineno &&
11565 chmod +x $as_me.lineno ||
11566 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11567 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11568 { (exit 1); exit 1; }; }
11570 # Don't try to exec as it changes $[0], causing all sort of problems
11571 # (the dirname of $[0] is not the place where we might find the
11572 # original and so on. Autoconf is especially sensible to this).
11573 . ./$as_me.lineno
11574 # Exit status is that of the last command.
11575 exit
11579 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11580 *c*,-n*) ECHO_N= ECHO_C='
11581 ' ECHO_T=' ' ;;
11582 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11583 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11584 esac
11586 if expr a : '\(a\)' >/dev/null 2>&1; then
11587 as_expr=expr
11588 else
11589 as_expr=false
11592 rm -f conf$$ conf$$.exe conf$$.file
11593 echo >conf$$.file
11594 if ln -s conf$$.file conf$$ 2>/dev/null; then
11595 # We could just check for DJGPP; but this test a) works b) is more generic
11596 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11597 if test -f conf$$.exe; then
11598 # Don't use ln at all; we don't have any links
11599 as_ln_s='cp -p'
11600 else
11601 as_ln_s='ln -s'
11603 elif ln conf$$.file conf$$ 2>/dev/null; then
11604 as_ln_s=ln
11605 else
11606 as_ln_s='cp -p'
11608 rm -f conf$$ conf$$.exe conf$$.file
11610 if mkdir -p . 2>/dev/null; then
11611 as_mkdir_p=:
11612 else
11613 test -d ./-p && rmdir ./-p
11614 as_mkdir_p=false
11617 as_executable_p="test -f"
11619 # Sed expression to map a string onto a valid CPP name.
11620 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11622 # Sed expression to map a string onto a valid variable name.
11623 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11626 # IFS
11627 # We need space, tab and new line, in precisely that order.
11628 as_nl='
11630 IFS=" $as_nl"
11632 # CDPATH.
11633 $as_unset CDPATH
11635 exec 6>&1
11637 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11638 # report actual input values of CONFIG_FILES etc. instead of their
11639 # values after options handling. Logging --version etc. is OK.
11640 exec 5>>config.log
11642 echo
11643 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11644 ## Running $as_me. ##
11645 _ASBOX
11646 } >&5
11647 cat >&5 <<_CSEOF
11649 This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
11650 generated by GNU Autoconf 2.59. Invocation command line was
11652 CONFIG_FILES = $CONFIG_FILES
11653 CONFIG_HEADERS = $CONFIG_HEADERS
11654 CONFIG_LINKS = $CONFIG_LINKS
11655 CONFIG_COMMANDS = $CONFIG_COMMANDS
11656 $ $0 $@
11658 _CSEOF
11659 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11660 echo >&5
11661 _ACEOF
11663 # Files that config.status was made for.
11664 if test -n "$ac_config_files"; then
11665 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11668 if test -n "$ac_config_headers"; then
11669 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11672 if test -n "$ac_config_links"; then
11673 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11676 if test -n "$ac_config_commands"; then
11677 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11680 cat >>$CONFIG_STATUS <<\_ACEOF
11682 ac_cs_usage="\
11683 \`$as_me' instantiates files from templates according to the
11684 current configuration.
11686 Usage: $0 [OPTIONS] [FILE]...
11688 -h, --help print this help, then exit
11689 -V, --version print version number, then exit
11690 -q, --quiet do not print progress messages
11691 -d, --debug don't remove temporary files
11692 --recheck update $as_me by reconfiguring in the same conditions
11693 --file=FILE[:TEMPLATE]
11694 instantiate the configuration file FILE
11695 --header=FILE[:TEMPLATE]
11696 instantiate the configuration header FILE
11698 Configuration files:
11699 $config_files
11701 Configuration headers:
11702 $config_headers
11704 Configuration commands:
11705 $config_commands
11707 Report bugs to <bug-autoconf@gnu.org>."
11708 _ACEOF
11710 cat >>$CONFIG_STATUS <<_ACEOF
11711 ac_cs_version="\\
11712 GNU Fortran Runtime Library config.status 0.2
11713 configured by $0, generated by GNU Autoconf 2.59,
11714 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11716 Copyright (C) 2003 Free Software Foundation, Inc.
11717 This config.status script is free software; the Free Software Foundation
11718 gives unlimited permission to copy, distribute and modify it."
11719 srcdir=$srcdir
11720 INSTALL="$INSTALL"
11721 _ACEOF
11723 cat >>$CONFIG_STATUS <<\_ACEOF
11724 # If no file are specified by the user, then we need to provide default
11725 # value. By we need to know if files were specified by the user.
11726 ac_need_defaults=:
11727 while test $# != 0
11729 case $1 in
11730 --*=*)
11731 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11732 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11733 ac_shift=:
11736 ac_option=$1
11737 ac_optarg=$2
11738 ac_shift=shift
11740 *) # This is not an option, so the user has probably given explicit
11741 # arguments.
11742 ac_option=$1
11743 ac_need_defaults=false;;
11744 esac
11746 case $ac_option in
11747 # Handling of the options.
11748 _ACEOF
11749 cat >>$CONFIG_STATUS <<\_ACEOF
11750 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11751 ac_cs_recheck=: ;;
11752 --version | --vers* | -V )
11753 echo "$ac_cs_version"; exit 0 ;;
11754 --he | --h)
11755 # Conflict between --help and --header
11756 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11757 Try \`$0 --help' for more information." >&5
11758 echo "$as_me: error: ambiguous option: $1
11759 Try \`$0 --help' for more information." >&2;}
11760 { (exit 1); exit 1; }; };;
11761 --help | --hel | -h )
11762 echo "$ac_cs_usage"; exit 0 ;;
11763 --debug | --d* | -d )
11764 debug=: ;;
11765 --file | --fil | --fi | --f )
11766 $ac_shift
11767 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11768 ac_need_defaults=false;;
11769 --header | --heade | --head | --hea )
11770 $ac_shift
11771 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11772 ac_need_defaults=false;;
11773 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11774 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11775 ac_cs_silent=: ;;
11777 # This is an error.
11778 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11779 Try \`$0 --help' for more information." >&5
11780 echo "$as_me: error: unrecognized option: $1
11781 Try \`$0 --help' for more information." >&2;}
11782 { (exit 1); exit 1; }; } ;;
11784 *) ac_config_targets="$ac_config_targets $1" ;;
11786 esac
11787 shift
11788 done
11790 ac_configure_extra_args=
11792 if $ac_cs_silent; then
11793 exec 6>/dev/null
11794 ac_configure_extra_args="$ac_configure_extra_args --silent"
11797 _ACEOF
11798 cat >>$CONFIG_STATUS <<_ACEOF
11799 if \$ac_cs_recheck; then
11800 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11801 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11804 _ACEOF
11806 cat >>$CONFIG_STATUS <<_ACEOF
11808 # INIT-COMMANDS section.
11812 srcdir="$srcdir"
11813 host="$host"
11814 target="$target"
11815 with_multisubdir="$with_multisubdir"
11816 with_multisrctop="$with_multisrctop"
11817 with_target_subdir="$with_target_subdir"
11818 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11819 multi_basedir="$multi_basedir"
11820 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11821 CC="$CC"
11823 _ACEOF
11827 cat >>$CONFIG_STATUS <<\_ACEOF
11828 for ac_config_target in $ac_config_targets
11830 case "$ac_config_target" in
11831 # Handling of arguments.
11832 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11833 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11834 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11835 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11836 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11837 { (exit 1); exit 1; }; };;
11838 esac
11839 done
11841 # If the user did not use the arguments to specify the items to instantiate,
11842 # then the envvar interface is used. Set only those that are not.
11843 # We use the long form for the default assignment because of an extremely
11844 # bizarre bug on SunOS 4.1.3.
11845 if $ac_need_defaults; then
11846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11851 # Have a temporary directory for convenience. Make it in the build tree
11852 # simply because there is no reason to put it here, and in addition,
11853 # creating and moving files from /tmp can sometimes cause problems.
11854 # Create a temporary directory, and hook for its removal unless debugging.
11855 $debug ||
11857 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11858 trap '{ (exit 1); exit 1; }' 1 2 13 15
11861 # Create a (secure) tmp directory for tmp files.
11864 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11865 test -n "$tmp" && test -d "$tmp"
11866 } ||
11868 tmp=./confstat$$-$RANDOM
11869 (umask 077 && mkdir $tmp)
11870 } ||
11872 echo "$me: cannot create a temporary directory in ." >&2
11873 { (exit 1); exit 1; }
11876 _ACEOF
11878 cat >>$CONFIG_STATUS <<_ACEOF
11881 # CONFIG_FILES section.
11884 # No need to generate the scripts if there are no CONFIG_FILES.
11885 # This happens for instance when ./config.status config.h
11886 if test -n "\$CONFIG_FILES"; then
11887 # Protect against being on the right side of a sed subst in config.status.
11888 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11889 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11890 s,@SHELL@,$SHELL,;t t
11891 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11892 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11893 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11894 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11895 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11896 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11897 s,@exec_prefix@,$exec_prefix,;t t
11898 s,@prefix@,$prefix,;t t
11899 s,@program_transform_name@,$program_transform_name,;t t
11900 s,@bindir@,$bindir,;t t
11901 s,@sbindir@,$sbindir,;t t
11902 s,@libexecdir@,$libexecdir,;t t
11903 s,@datadir@,$datadir,;t t
11904 s,@sysconfdir@,$sysconfdir,;t t
11905 s,@sharedstatedir@,$sharedstatedir,;t t
11906 s,@localstatedir@,$localstatedir,;t t
11907 s,@libdir@,$libdir,;t t
11908 s,@includedir@,$includedir,;t t
11909 s,@oldincludedir@,$oldincludedir,;t t
11910 s,@infodir@,$infodir,;t t
11911 s,@mandir@,$mandir,;t t
11912 s,@build_alias@,$build_alias,;t t
11913 s,@host_alias@,$host_alias,;t t
11914 s,@target_alias@,$target_alias,;t t
11915 s,@DEFS@,$DEFS,;t t
11916 s,@ECHO_C@,$ECHO_C,;t t
11917 s,@ECHO_N@,$ECHO_N,;t t
11918 s,@ECHO_T@,$ECHO_T,;t t
11919 s,@LIBS@,$LIBS,;t t
11920 s,@build@,$build,;t t
11921 s,@build_cpu@,$build_cpu,;t t
11922 s,@build_vendor@,$build_vendor,;t t
11923 s,@build_os@,$build_os,;t t
11924 s,@host@,$host,;t t
11925 s,@host_cpu@,$host_cpu,;t t
11926 s,@host_vendor@,$host_vendor,;t t
11927 s,@host_os@,$host_os,;t t
11928 s,@target@,$target,;t t
11929 s,@target_cpu@,$target_cpu,;t t
11930 s,@target_vendor@,$target_vendor,;t t
11931 s,@target_os@,$target_os,;t t
11932 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11933 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11934 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11935 s,@CYGPATH_W@,$CYGPATH_W,;t t
11936 s,@PACKAGE@,$PACKAGE,;t t
11937 s,@VERSION@,$VERSION,;t t
11938 s,@ACLOCAL@,$ACLOCAL,;t t
11939 s,@AUTOCONF@,$AUTOCONF,;t t
11940 s,@AUTOMAKE@,$AUTOMAKE,;t t
11941 s,@AUTOHEADER@,$AUTOHEADER,;t t
11942 s,@MAKEINFO@,$MAKEINFO,;t t
11943 s,@install_sh@,$install_sh,;t t
11944 s,@STRIP@,$STRIP,;t t
11945 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11946 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11947 s,@mkdir_p@,$mkdir_p,;t t
11948 s,@AWK@,$AWK,;t t
11949 s,@SET_MAKE@,$SET_MAKE,;t t
11950 s,@am__leading_dot@,$am__leading_dot,;t t
11951 s,@AMTAR@,$AMTAR,;t t
11952 s,@am__tar@,$am__tar,;t t
11953 s,@am__untar@,$am__untar,;t t
11954 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11955 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11956 s,@MAINT@,$MAINT,;t t
11957 s,@multi_basedir@,$multi_basedir,;t t
11958 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
11959 s,@gcc_version_full@,$gcc_version_full,;t t
11960 s,@gcc_version@,$gcc_version,;t t
11961 s,@toolexecdir@,$toolexecdir,;t t
11962 s,@toolexeclibdir@,$toolexeclibdir,;t t
11963 s,@CC@,$CC,;t t
11964 s,@ac_ct_CC@,$ac_ct_CC,;t t
11965 s,@EXEEXT@,$EXEEXT,;t t
11966 s,@OBJEXT@,$OBJEXT,;t t
11967 s,@CFLAGS@,$CFLAGS,;t t
11968 s,@AS@,$AS,;t t
11969 s,@ac_ct_AS@,$ac_ct_AS,;t t
11970 s,@AR@,$AR,;t t
11971 s,@ac_ct_AR@,$ac_ct_AR,;t t
11972 s,@RANLIB@,$RANLIB,;t t
11973 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11974 s,@LN_S@,$LN_S,;t t
11975 s,@LIBTOOL@,$LIBTOOL,;t t
11976 s,@enable_shared@,$enable_shared,;t t
11977 s,@enable_static@,$enable_static,;t t
11978 s,@FC@,$FC,;t t
11979 s,@FCFLAGS@,$FCFLAGS,;t t
11980 s,@LDFLAGS@,$LDFLAGS,;t t
11981 s,@ac_ct_FC@,$ac_ct_FC,;t t
11982 s,@CPP@,$CPP,;t t
11983 s,@CPPFLAGS@,$CPPFLAGS,;t t
11984 s,@EGREP@,$EGREP,;t t
11985 s,@MATH_OBJ@,$MATH_OBJ,;t t
11986 s,@LIBOBJS@,$LIBOBJS,;t t
11987 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11988 CEOF
11990 _ACEOF
11992 cat >>$CONFIG_STATUS <<\_ACEOF
11993 # Split the substitutions into bite-sized pieces for seds with
11994 # small command number limits, like on Digital OSF/1 and HP-UX.
11995 ac_max_sed_lines=48
11996 ac_sed_frag=1 # Number of current file.
11997 ac_beg=1 # First line for current file.
11998 ac_end=$ac_max_sed_lines # Line after last line for current file.
11999 ac_more_lines=:
12000 ac_sed_cmds=
12001 while $ac_more_lines; do
12002 if test $ac_beg -gt 1; then
12003 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12004 else
12005 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12007 if test ! -s $tmp/subs.frag; then
12008 ac_more_lines=false
12009 else
12010 # The purpose of the label and of the branching condition is to
12011 # speed up the sed processing (if there are no `@' at all, there
12012 # is no need to browse any of the substitutions).
12013 # These are the two extra sed commands mentioned above.
12014 (echo ':t
12015 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12016 if test -z "$ac_sed_cmds"; then
12017 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12018 else
12019 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12021 ac_sed_frag=`expr $ac_sed_frag + 1`
12022 ac_beg=$ac_end
12023 ac_end=`expr $ac_end + $ac_max_sed_lines`
12025 done
12026 if test -z "$ac_sed_cmds"; then
12027 ac_sed_cmds=cat
12029 fi # test -n "$CONFIG_FILES"
12031 _ACEOF
12032 cat >>$CONFIG_STATUS <<\_ACEOF
12033 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12034 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12035 case $ac_file in
12036 - | *:- | *:-:* ) # input from stdin
12037 cat >$tmp/stdin
12038 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12039 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12040 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12041 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12042 * ) ac_file_in=$ac_file.in ;;
12043 esac
12045 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12046 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12047 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12048 X"$ac_file" : 'X\(//\)[^/]' \| \
12049 X"$ac_file" : 'X\(//\)$' \| \
12050 X"$ac_file" : 'X\(/\)' \| \
12051 . : '\(.\)' 2>/dev/null ||
12052 echo X"$ac_file" |
12053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12055 /^X\(\/\/\)$/{ s//\1/; q; }
12056 /^X\(\/\).*/{ s//\1/; q; }
12057 s/.*/./; q'`
12058 { if $as_mkdir_p; then
12059 mkdir -p "$ac_dir"
12060 else
12061 as_dir="$ac_dir"
12062 as_dirs=
12063 while test ! -d "$as_dir"; do
12064 as_dirs="$as_dir $as_dirs"
12065 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12066 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12067 X"$as_dir" : 'X\(//\)[^/]' \| \
12068 X"$as_dir" : 'X\(//\)$' \| \
12069 X"$as_dir" : 'X\(/\)' \| \
12070 . : '\(.\)' 2>/dev/null ||
12071 echo X"$as_dir" |
12072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12074 /^X\(\/\/\)$/{ s//\1/; q; }
12075 /^X\(\/\).*/{ s//\1/; q; }
12076 s/.*/./; q'`
12077 done
12078 test ! -n "$as_dirs" || mkdir $as_dirs
12079 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12080 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12081 { (exit 1); exit 1; }; }; }
12083 ac_builddir=.
12085 if test "$ac_dir" != .; then
12086 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12087 # A "../" for each directory in $ac_dir_suffix.
12088 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12089 else
12090 ac_dir_suffix= ac_top_builddir=
12093 case $srcdir in
12094 .) # No --srcdir option. We are building in place.
12095 ac_srcdir=.
12096 if test -z "$ac_top_builddir"; then
12097 ac_top_srcdir=.
12098 else
12099 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12100 fi ;;
12101 [\\/]* | ?:[\\/]* ) # Absolute path.
12102 ac_srcdir=$srcdir$ac_dir_suffix;
12103 ac_top_srcdir=$srcdir ;;
12104 *) # Relative path.
12105 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12106 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12107 esac
12109 # Do not use `cd foo && pwd` to compute absolute paths, because
12110 # the directories may not exist.
12111 case `pwd` in
12112 .) ac_abs_builddir="$ac_dir";;
12114 case "$ac_dir" in
12115 .) ac_abs_builddir=`pwd`;;
12116 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12117 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12118 esac;;
12119 esac
12120 case $ac_abs_builddir in
12121 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12123 case ${ac_top_builddir}. in
12124 .) ac_abs_top_builddir=$ac_abs_builddir;;
12125 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12126 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12127 esac;;
12128 esac
12129 case $ac_abs_builddir in
12130 .) ac_abs_srcdir=$ac_srcdir;;
12132 case $ac_srcdir in
12133 .) ac_abs_srcdir=$ac_abs_builddir;;
12134 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12135 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12136 esac;;
12137 esac
12138 case $ac_abs_builddir in
12139 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12141 case $ac_top_srcdir in
12142 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12143 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12144 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12145 esac;;
12146 esac
12149 case $INSTALL in
12150 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12151 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12152 esac
12154 if test x"$ac_file" != x-; then
12155 { echo "$as_me:$LINENO: creating $ac_file" >&5
12156 echo "$as_me: creating $ac_file" >&6;}
12157 rm -f "$ac_file"
12159 # Let's still pretend it is `configure' which instantiates (i.e., don't
12160 # use $as_me), people would be surprised to read:
12161 # /* config.h. Generated by config.status. */
12162 if test x"$ac_file" = x-; then
12163 configure_input=
12164 else
12165 configure_input="$ac_file. "
12167 configure_input=$configure_input"Generated from `echo $ac_file_in |
12168 sed 's,.*/,,'` by configure."
12170 # First look for the input files in the build tree, otherwise in the
12171 # src tree.
12172 ac_file_inputs=`IFS=:
12173 for f in $ac_file_in; do
12174 case $f in
12175 -) echo $tmp/stdin ;;
12176 [\\/$]*)
12177 # Absolute (can't be DOS-style, as IFS=:)
12178 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12179 echo "$as_me: error: cannot find input file: $f" >&2;}
12180 { (exit 1); exit 1; }; }
12181 echo "$f";;
12182 *) # Relative
12183 if test -f "$f"; then
12184 # Build tree
12185 echo "$f"
12186 elif test -f "$srcdir/$f"; then
12187 # Source tree
12188 echo "$srcdir/$f"
12189 else
12190 # /dev/null tree
12191 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12192 echo "$as_me: error: cannot find input file: $f" >&2;}
12193 { (exit 1); exit 1; }; }
12194 fi;;
12195 esac
12196 done` || { (exit 1); exit 1; }
12197 _ACEOF
12198 cat >>$CONFIG_STATUS <<_ACEOF
12199 sed "$ac_vpsub
12200 $extrasub
12201 _ACEOF
12202 cat >>$CONFIG_STATUS <<\_ACEOF
12204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12205 s,@configure_input@,$configure_input,;t t
12206 s,@srcdir@,$ac_srcdir,;t t
12207 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12208 s,@top_srcdir@,$ac_top_srcdir,;t t
12209 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12210 s,@builddir@,$ac_builddir,;t t
12211 s,@abs_builddir@,$ac_abs_builddir,;t t
12212 s,@top_builddir@,$ac_top_builddir,;t t
12213 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12214 s,@INSTALL@,$ac_INSTALL,;t t
12215 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12216 rm -f $tmp/stdin
12217 if test x"$ac_file" != x-; then
12218 mv $tmp/out $ac_file
12219 else
12220 cat $tmp/out
12221 rm -f $tmp/out
12224 done
12225 _ACEOF
12226 cat >>$CONFIG_STATUS <<\_ACEOF
12229 # CONFIG_HEADER section.
12232 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12233 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12235 # ac_d sets the value in "#define NAME VALUE" lines.
12236 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12237 ac_dB='[ ].*$,\1#\2'
12238 ac_dC=' '
12239 ac_dD=',;t'
12240 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12241 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12242 ac_uB='$,\1#\2define\3'
12243 ac_uC=' '
12244 ac_uD=',;t'
12246 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12247 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12248 case $ac_file in
12249 - | *:- | *:-:* ) # input from stdin
12250 cat >$tmp/stdin
12251 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12253 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12254 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12255 * ) ac_file_in=$ac_file.in ;;
12256 esac
12258 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12259 echo "$as_me: creating $ac_file" >&6;}
12261 # First look for the input files in the build tree, otherwise in the
12262 # src tree.
12263 ac_file_inputs=`IFS=:
12264 for f in $ac_file_in; do
12265 case $f in
12266 -) echo $tmp/stdin ;;
12267 [\\/$]*)
12268 # Absolute (can't be DOS-style, as IFS=:)
12269 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12270 echo "$as_me: error: cannot find input file: $f" >&2;}
12271 { (exit 1); exit 1; }; }
12272 # Do quote $f, to prevent DOS paths from being IFS'd.
12273 echo "$f";;
12274 *) # Relative
12275 if test -f "$f"; then
12276 # Build tree
12277 echo "$f"
12278 elif test -f "$srcdir/$f"; then
12279 # Source tree
12280 echo "$srcdir/$f"
12281 else
12282 # /dev/null tree
12283 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12284 echo "$as_me: error: cannot find input file: $f" >&2;}
12285 { (exit 1); exit 1; }; }
12286 fi;;
12287 esac
12288 done` || { (exit 1); exit 1; }
12289 # Remove the trailing spaces.
12290 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12292 _ACEOF
12294 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12295 # `conftest.undefs', that substitutes the proper values into
12296 # config.h.in to produce config.h. The first handles `#define'
12297 # templates, and the second `#undef' templates.
12298 # And first: Protect against being on the right side of a sed subst in
12299 # config.status. Protect against being in an unquoted here document
12300 # in config.status.
12301 rm -f conftest.defines conftest.undefs
12302 # Using a here document instead of a string reduces the quoting nightmare.
12303 # Putting comments in sed scripts is not portable.
12305 # `end' is used to avoid that the second main sed command (meant for
12306 # 0-ary CPP macros) applies to n-ary macro definitions.
12307 # See the Autoconf documentation for `clear'.
12308 cat >confdef2sed.sed <<\_ACEOF
12309 s/[\\&,]/\\&/g
12310 s,[\\$`],\\&,g
12311 t clear
12312 : clear
12313 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12314 t end
12315 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12316 : end
12317 _ACEOF
12318 # If some macros were called several times there might be several times
12319 # the same #defines, which is useless. Nevertheless, we may not want to
12320 # sort them, since we want the *last* AC-DEFINE to be honored.
12321 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12322 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12323 rm -f confdef2sed.sed
12325 # This sed command replaces #undef with comments. This is necessary, for
12326 # example, in the case of _POSIX_SOURCE, which is predefined and required
12327 # on some systems where configure will not decide to define it.
12328 cat >>conftest.undefs <<\_ACEOF
12329 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12330 _ACEOF
12332 # Break up conftest.defines because some shells have a limit on the size
12333 # of here documents, and old seds have small limits too (100 cmds).
12334 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12335 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12336 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12337 echo ' :' >>$CONFIG_STATUS
12338 rm -f conftest.tail
12339 while grep . conftest.defines >/dev/null
12341 # Write a limited-size here document to $tmp/defines.sed.
12342 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12343 # Speed up: don't consider the non `#define' lines.
12344 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12345 # Work around the forget-to-reset-the-flag bug.
12346 echo 't clr' >>$CONFIG_STATUS
12347 echo ': clr' >>$CONFIG_STATUS
12348 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12349 echo 'CEOF
12350 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12351 rm -f $tmp/in
12352 mv $tmp/out $tmp/in
12353 ' >>$CONFIG_STATUS
12354 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12355 rm -f conftest.defines
12356 mv conftest.tail conftest.defines
12357 done
12358 rm -f conftest.defines
12359 echo ' fi # grep' >>$CONFIG_STATUS
12360 echo >>$CONFIG_STATUS
12362 # Break up conftest.undefs because some shells have a limit on the size
12363 # of here documents, and old seds have small limits too (100 cmds).
12364 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12365 rm -f conftest.tail
12366 while grep . conftest.undefs >/dev/null
12368 # Write a limited-size here document to $tmp/undefs.sed.
12369 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12370 # Speed up: don't consider the non `#undef'
12371 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12372 # Work around the forget-to-reset-the-flag bug.
12373 echo 't clr' >>$CONFIG_STATUS
12374 echo ': clr' >>$CONFIG_STATUS
12375 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12376 echo 'CEOF
12377 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12378 rm -f $tmp/in
12379 mv $tmp/out $tmp/in
12380 ' >>$CONFIG_STATUS
12381 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12382 rm -f conftest.undefs
12383 mv conftest.tail conftest.undefs
12384 done
12385 rm -f conftest.undefs
12387 cat >>$CONFIG_STATUS <<\_ACEOF
12388 # Let's still pretend it is `configure' which instantiates (i.e., don't
12389 # use $as_me), people would be surprised to read:
12390 # /* config.h. Generated by config.status. */
12391 if test x"$ac_file" = x-; then
12392 echo "/* Generated by configure. */" >$tmp/config.h
12393 else
12394 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12396 cat $tmp/in >>$tmp/config.h
12397 rm -f $tmp/in
12398 if test x"$ac_file" != x-; then
12399 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12400 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12401 echo "$as_me: $ac_file is unchanged" >&6;}
12402 else
12403 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12404 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12405 X"$ac_file" : 'X\(//\)[^/]' \| \
12406 X"$ac_file" : 'X\(//\)$' \| \
12407 X"$ac_file" : 'X\(/\)' \| \
12408 . : '\(.\)' 2>/dev/null ||
12409 echo X"$ac_file" |
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 { if $as_mkdir_p; then
12416 mkdir -p "$ac_dir"
12417 else
12418 as_dir="$ac_dir"
12419 as_dirs=
12420 while test ! -d "$as_dir"; do
12421 as_dirs="$as_dir $as_dirs"
12422 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12424 X"$as_dir" : 'X\(//\)[^/]' \| \
12425 X"$as_dir" : 'X\(//\)$' \| \
12426 X"$as_dir" : 'X\(/\)' \| \
12427 . : '\(.\)' 2>/dev/null ||
12428 echo X"$as_dir" |
12429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12431 /^X\(\/\/\)$/{ s//\1/; q; }
12432 /^X\(\/\).*/{ s//\1/; q; }
12433 s/.*/./; q'`
12434 done
12435 test ! -n "$as_dirs" || mkdir $as_dirs
12436 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12437 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12438 { (exit 1); exit 1; }; }; }
12440 rm -f $ac_file
12441 mv $tmp/config.h $ac_file
12443 else
12444 cat $tmp/config.h
12445 rm -f $tmp/config.h
12447 # Compute $ac_file's index in $config_headers.
12448 _am_stamp_count=1
12449 for _am_header in $config_headers :; do
12450 case $_am_header in
12451 $ac_file | $ac_file:* )
12452 break ;;
12454 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12455 esac
12456 done
12457 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12458 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12459 X$ac_file : 'X\(//\)[^/]' \| \
12460 X$ac_file : 'X\(//\)$' \| \
12461 X$ac_file : 'X\(/\)' \| \
12462 . : '\(.\)' 2>/dev/null ||
12463 echo X$ac_file |
12464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12466 /^X\(\/\/\)$/{ s//\1/; q; }
12467 /^X\(\/\).*/{ s//\1/; q; }
12468 s/.*/./; q'`/stamp-h$_am_stamp_count
12469 done
12470 _ACEOF
12471 cat >>$CONFIG_STATUS <<\_ACEOF
12474 # CONFIG_COMMANDS section.
12476 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12477 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12478 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12479 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12480 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12481 X"$ac_dest" : 'X\(//\)[^/]' \| \
12482 X"$ac_dest" : 'X\(//\)$' \| \
12483 X"$ac_dest" : 'X\(/\)' \| \
12484 . : '\(.\)' 2>/dev/null ||
12485 echo X"$ac_dest" |
12486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12488 /^X\(\/\/\)$/{ s//\1/; q; }
12489 /^X\(\/\).*/{ s//\1/; q; }
12490 s/.*/./; q'`
12491 { if $as_mkdir_p; then
12492 mkdir -p "$ac_dir"
12493 else
12494 as_dir="$ac_dir"
12495 as_dirs=
12496 while test ! -d "$as_dir"; do
12497 as_dirs="$as_dir $as_dirs"
12498 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12499 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12500 X"$as_dir" : 'X\(//\)[^/]' \| \
12501 X"$as_dir" : 'X\(//\)$' \| \
12502 X"$as_dir" : 'X\(/\)' \| \
12503 . : '\(.\)' 2>/dev/null ||
12504 echo X"$as_dir" |
12505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12506 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12507 /^X\(\/\/\)$/{ s//\1/; q; }
12508 /^X\(\/\).*/{ s//\1/; q; }
12509 s/.*/./; q'`
12510 done
12511 test ! -n "$as_dirs" || mkdir $as_dirs
12512 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12513 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12514 { (exit 1); exit 1; }; }; }
12516 ac_builddir=.
12518 if test "$ac_dir" != .; then
12519 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12520 # A "../" for each directory in $ac_dir_suffix.
12521 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12522 else
12523 ac_dir_suffix= ac_top_builddir=
12526 case $srcdir in
12527 .) # No --srcdir option. We are building in place.
12528 ac_srcdir=.
12529 if test -z "$ac_top_builddir"; then
12530 ac_top_srcdir=.
12531 else
12532 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12533 fi ;;
12534 [\\/]* | ?:[\\/]* ) # Absolute path.
12535 ac_srcdir=$srcdir$ac_dir_suffix;
12536 ac_top_srcdir=$srcdir ;;
12537 *) # Relative path.
12538 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12539 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12540 esac
12542 # Do not use `cd foo && pwd` to compute absolute paths, because
12543 # the directories may not exist.
12544 case `pwd` in
12545 .) ac_abs_builddir="$ac_dir";;
12547 case "$ac_dir" in
12548 .) ac_abs_builddir=`pwd`;;
12549 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12550 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12551 esac;;
12552 esac
12553 case $ac_abs_builddir in
12554 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12556 case ${ac_top_builddir}. in
12557 .) ac_abs_top_builddir=$ac_abs_builddir;;
12558 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12559 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12560 esac;;
12561 esac
12562 case $ac_abs_builddir in
12563 .) ac_abs_srcdir=$ac_srcdir;;
12565 case $ac_srcdir in
12566 .) ac_abs_srcdir=$ac_abs_builddir;;
12567 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12568 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12569 esac;;
12570 esac
12571 case $ac_abs_builddir in
12572 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12574 case $ac_top_srcdir in
12575 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12576 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12577 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12578 esac;;
12579 esac
12582 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12583 echo "$as_me: executing $ac_dest commands" >&6;}
12584 case $ac_dest in
12585 default-1 )
12586 # Only add multilib support code if we just rebuilt the top-level
12587 # Makefile.
12588 case " $CONFIG_FILES " in
12589 *" Makefile "*)
12590 ac_file=Makefile . ${multi_basedir}/config-ml.in
12592 esac ;;
12593 esac
12594 done
12595 _ACEOF
12597 cat >>$CONFIG_STATUS <<\_ACEOF
12599 { (exit 0); exit 0; }
12600 _ACEOF
12601 chmod +x $CONFIG_STATUS
12602 ac_clean_files=$ac_clean_files_save
12605 # configure is writing to config.log, and then calls config.status.
12606 # config.status does its own redirection, appending to config.log.
12607 # Unfortunately, on DOS this fails, as config.log is still kept open
12608 # by configure, so config.status won't be able to write to it; its
12609 # output is simply discarded. So we exec the FD to /dev/null,
12610 # effectively closing config.log, so it can be properly (re)opened and
12611 # appended to by config.status. When coming back to configure, we
12612 # need to make the FD available again.
12613 if test "$no_create" != yes; then
12614 ac_cs_success=:
12615 ac_config_status_args=
12616 test "$silent" = yes &&
12617 ac_config_status_args="$ac_config_status_args --quiet"
12618 exec 5>/dev/null
12619 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12620 exec 5>>config.log
12621 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12622 # would make configure fail if this is the last instruction.
12623 $ac_cs_success || { (exit 1); exit 1; }