2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libphobos version-unused.
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
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
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; 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
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
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'"
235 # We need space, tab and new line, in precisely that order.
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`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
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
='libphobos'
269 PACKAGE_TARNAME
='libphobos'
270 PACKAGE_VERSION
='version-unused'
271 PACKAGE_STRING
='libphobos version-unused'
274 ac_unique_file
="gcc/builtins.d"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 multi_basedir CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS AR RANLIB ac_ct_RANLIB GDC CC_FOR_BUILD CFLAGS_FOR_BUILD BUILD_LIBIBERTY LIBIBERTY_H_PATH gdc_include_dir phobos_toolexecdir phobos_toolexeclibdir CPP CPPFLAGS EGREP D_EXTRA_OBJS D_PREREQ_SRCS DCFG_USE_IEEE_FPSB DCFG_TRUNC DCFG_NEARBYINT DCFG_ROUND DCFG_TGAMMA DCFG_NAN DCFG_EXP2_LOG2 DCFG_EXECVPE DCFG_SPAWNVP DCFG_FWIDE DCFG_HAVE_GETDELIM DCFG_HAVE_FGETLN DCFG_HAVE_FGETLINE DCFG_HAVE_UNLOCKED_STDIO DCFG_HAVE_UNLOCKED_WIDE_STDIO DCFG_STRTOLD DCFG_ARM_EABI_UNWINDER DCFG_CBRIDGE_STDIO DCFG_PTHREAD_SUSPEND DCFG_SEMAPHORE_IMPL DCFG_MMAP DCFG_GETPWNAM_R DCFG_UNIX DFLAGS srcdir D_GC_FLAGS D_GC_MODULES LIBOBJS LTLIBOBJS'
313 ac_subst_files
='DCFG_LONG_DOUBLE_FUNCS DCFG_SQRTF'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CPP_set
=${CPP+set}
754 ac_env_CPP_value
=$CPP
755 ac_cv_env_CPP_set
=${CPP+set}
756 ac_cv_env_CPP_value
=$CPP
757 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
758 ac_env_CPPFLAGS_value
=$CPPFLAGS
759 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
760 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
763 # Report the --help message.
765 if test "$ac_init_help" = "long"; then
766 # Omit some internal or obsolete options to make the list less imposing.
767 # This message is too long to be a string in the A/UX 3.1 sh.
769 \`configure' configures libphobos version-unused to adapt to many kinds of systems.
771 Usage: $0 [OPTION]... [VAR=VALUE]...
773 To assign environment variables (e.g., CC, CFLAGS...), specify them as
774 VAR=VALUE. See below for descriptions of some of the useful variables.
776 Defaults for the options are specified in brackets.
779 -h, --help display this help and exit
780 --help=short display options specific to this package
781 --help=recursive display the short help of all the included packages
782 -V, --version display version information and exit
783 -q, --quiet, --silent do not print \`checking...' messages
784 --cache-file=FILE cache test results in FILE [disabled]
785 -C, --config-cache alias for \`--cache-file=config.cache'
786 -n, --no-create do not create output files
787 --srcdir=DIR find the sources in DIR [configure dir or \`..']
792 Installation directories:
793 --prefix=PREFIX install architecture-independent files in PREFIX
795 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
798 By default, \`make install' will install all the files in
799 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
800 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
801 for instance \`--prefix=\$HOME'.
803 For better control, use the options below.
805 Fine tuning of the installation directories:
806 --bindir=DIR user executables [EPREFIX/bin]
807 --sbindir=DIR system admin executables [EPREFIX/sbin]
808 --libexecdir=DIR program executables [EPREFIX/libexec]
809 --datadir=DIR read-only architecture-independent data [PREFIX/share]
810 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
811 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
812 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
813 --libdir=DIR object code libraries [EPREFIX/lib]
814 --includedir=DIR C header files [PREFIX/include]
815 --oldincludedir=DIR C header files for non-gcc [/usr/include]
816 --infodir=DIR info documentation [PREFIX/info]
817 --mandir=DIR man documentation [PREFIX/man]
823 --program-prefix=PREFIX prepend PREFIX to installed program names
824 --program-suffix=SUFFIX append SUFFIX to installed program names
825 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
828 --build=BUILD configure
for building on BUILD
[guessed
]
829 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
830 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
834 if test -n "$ac_init_help"; then
835 case $ac_init_help in
836 short | recursive
) echo "Configuration of libphobos version-unused:";;
841 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
842 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
843 --enable-multilib build many library versions
(default
)
844 --enable-thread-lib=<arg
>
845 specify linker option
for the system thread library
846 (default
: autodetect
)
847 --enable-unix enables Unix runtime
(default
: yes, for Unix
849 --enable-loader builds the std.loader module
(default
: yes, if
851 --enable-proc-maps use
/proc
/self
/maps to
find data segments
for
852 garbage collection
(default
: yes, if supported on
854 --enable-phobos-config-dir=<dir
>
855 use
source file fragments
in <dir
>
858 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
859 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
860 --with-cross-host=HOST configuring with a cross compiler
862 Some influential environment variables
:
863 CC C compiler
command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
866 nonstandard directory
<lib dir
>
867 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
868 headers
in a nonstandard directory
<include dir
>
869 CXX C
++ compiler
command
870 CXXFLAGS C
++ compiler flags
873 Use these variables to override the choices made by
`configure' or to help
874 it to find libraries and programs with nonstandard names/locations.
879 if test "$ac_init_help" = "recursive"; then
880 # If there are subdirs, report their specific --help.
882 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883 test -d $ac_dir || continue
886 if test "$ac_dir" != .; then
887 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
888 # A "../" for each directory in $ac_dir_suffix.
889 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
891 ac_dir_suffix= ac_top_builddir=
895 .) # No --srcdir option. We are building in place.
897 if test -z "$ac_top_builddir"; then
900 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
902 [\\/]* | ?:[\\/]* ) # Absolute path.
903 ac_srcdir=$srcdir$ac_dir_suffix;
904 ac_top_srcdir=$srcdir ;;
906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907 ac_top_srcdir=$ac_top_builddir$srcdir ;;
910 # Do not use `cd foo
&& pwd` to compute absolute paths, because
911 # the directories may not exist.
913 .) ac_abs_builddir="$ac_dir";;
916 .) ac_abs_builddir=`pwd`;;
917 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
918 *) ac_abs_builddir=`pwd`/"$ac_dir";;
921 case $ac_abs_builddir in
922 .) ac_abs_top_builddir=${ac_top_builddir}.;;
924 case ${ac_top_builddir}. in
925 .) ac_abs_top_builddir=$ac_abs_builddir;;
926 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
927 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
930 case $ac_abs_builddir in
931 .) ac_abs_srcdir=$ac_srcdir;;
934 .) ac_abs_srcdir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
936 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
939 case $ac_abs_builddir in
940 .) ac_abs_top_srcdir=$ac_top_srcdir;;
942 case $ac_top_srcdir in
943 .) ac_abs_top_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
945 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
950 # Check for guested configure; otherwise get Cygnus style configure.
951 if test -f $ac_srcdir/configure.gnu; then
953 $SHELL $ac_srcdir/configure.gnu --help=recursive
954 elif test -f $ac_srcdir/configure; then
956 $SHELL $ac_srcdir/configure --help=recursive
957 elif test -f $ac_srcdir/configure.ac ||
958 test -f $ac_srcdir/configure.in; then
962 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
971 libphobos configure version-unused
972 generated by GNU Autoconf 2.59
974 Copyright (C) 2003 Free Software Foundation, Inc.
975 This configure script is free software; the Free Software Foundation
976 gives unlimited permission to copy, distribute and modify it.
982 This file contains any messages produced by compilers while
983 running configure, to aid debugging if configure makes a mistake.
985 It was created by libphobos $as_me version-unused, which was
986 generated by GNU Autoconf 2.59. Invocation command line was
997 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
998 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
999 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1000 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1001 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1003 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1004 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1006 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1007 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1008 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1009 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1010 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1011 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1012 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 test -z "$as_dir" && as_dir=.
1021 echo "PATH: $as_dir"
1036 # Keep a trace of the command line.
1037 # Strip out --no-create and --no-recursion so they do not pile up.
1038 # Strip out --silent because we don't want to record it for future runs.
1039 # Also quote any args containing shell meta-characters.
1040 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_must_keep_next=false
1051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1055 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1059 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1062 if test $ac_must_keep_next = true; then
1063 ac_must_keep_next=false # Got value, back to normal.
1066 *=* | --config-cache | -C | -disable-* | --disable-* \
1067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1069 | -with-* | --with-* | -without-* | --without-* | --x)
1070 case "$ac_configure_args0 " in
1071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074 -* ) ac_must_keep_next=true ;;
1077 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078 # Get rid of the leading space.
1084 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1085 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087 # When interrupted or exit'd, cleanup temporary files, and complete
1088 # config.log. We remove comments because anyway the quotes in there
1089 # would cause problems or look ugly.
1090 # WARNING: Be sure not to use single quotes in there, as some shells,
1091 # such as our DU 5.0 friend, will then `close
' the trap.
1092 trap 'exit_status
=$?
1093 # Save into config.log some information that might help in debugging.
1098 ## ---------------- ##
1099 ## Cache variables. ##
1100 ## ---------------- ##
1103 # The following way of writing the cache mishandles newlines in values,
1106 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1121 ## ----------------- ##
1122 ## Output variables. ##
1123 ## ----------------- ##
1126 for ac_var
in $ac_subst_vars
1128 eval ac_val
=$
`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1133 if test -n "$ac_subst_files"; then
1140 for ac_var
in $ac_subst_files
1142 eval ac_val
=$
`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1148 if test -s confdefs.h
; then
1155 sed "/^$/d" confdefs.h |
sort
1158 test "$ac_signal" != 0 &&
1159 echo "$as_me: caught signal $ac_signal"
1160 echo "$as_me: exit $exit_status"
1162 rm -f core
*.core
&&
1163 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1166 for ac_signal in 1 2 13 15; do
1167 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1172 rm -rf conftest* confdefs.h
1173 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176 # Predefined preprocessor variables.
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_NAME "$PACKAGE_NAME"
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_STRING "$PACKAGE_STRING"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1203 # Let the site file select an alternate cache file if it wants to.
1204 # Prefer explicitly selected file to automatically selected ones.
1205 if test -z "$CONFIG_SITE"; then
1206 if test "x$prefix" != xNONE; then
1207 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212 for ac_site_file in $CONFIG_SITE; do
1213 if test -r "$ac_site_file"; then
1214 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215 echo "$as_me: loading site script $ac_site_file" >&6;}
1216 sed 's
/^
/|
/' "$ac_site_file" >&5
1221 if test -r "$cache_file"; then
1222 # Some versions of bash will fail to source /dev/null (special
1223 # files actually), so we avoid doing that.
1224 if test -f "$cache_file"; then
1225 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226 echo "$as_me: loading cache $cache_file" >&6;}
1228 [\\/]* | ?:[\\/]* ) . $cache_file;;
1229 *) . ./$cache_file;;
1233 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234 echo "$as_me: creating cache $cache_file" >&6;}
1238 # Check that the precious variables saved in the cache have kept the same
1240 ac_cache_corrupted=false
1241 for ac_var in `(set) 2>&1 |
1242 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244 eval ac_new_set=\$ac_env_${ac_var}_set
1245 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246 eval ac_new_val="\$ac_env_${ac_var}_value"
1247 case $ac_old_set,$ac_new_set in
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1251 ac_cache_corrupted=: ;;
1253 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1258 if test "x$ac_old_val" != "x$ac_new_val"; then
1259 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1260 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1261 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1262 echo "$as_me: former value: $ac_old_val" >&2;}
1263 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1264 echo "$as_me: current value: $ac_new_val" >&2;}
1265 ac_cache_corrupted=:
1268 # Pass precious variables to config.status.
1269 if test "$ac_new_set" = set; then
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1273 *) ac_arg=$ac_var=$ac_new_val ;;
1275 case " $ac_configure_args " in
1276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1277 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1281 if $ac_cache_corrupted; then
1282 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1285 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286 { (exit 1); exit 1; }; }
1290 ac_cpp='$CPP $CPPFLAGS'
1291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1292 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 ac_config_headers="$ac_config_headers config.h"
1326 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1327 if test -f $ac_dir/install-sh; then
1329 ac_install_sh="$ac_aux_dir/install-sh -c"
1331 elif test -f $ac_dir/install.sh; then
1333 ac_install_sh="$ac_aux_dir/install.sh -c"
1335 elif test -f $ac_dir/shtool; then
1337 ac_install_sh="$ac_aux_dir/shtool install -c"
1341 if test -z "$ac_aux_dir"; then
1342 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1343 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1344 { (exit 1); exit 1; }; }
1346 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1347 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1348 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1350 # Make sure we can run config.sub.
1351 $ac_config_sub sun4 >/dev/null 2>&1 ||
1352 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1353 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1354 { (exit 1); exit 1; }; }
1356 echo "$as_me:$LINENO: checking build system type" >&5
1357 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1358 if test "${ac_cv_build+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1361 ac_cv_build_alias=$build_alias
1362 test -z "$ac_cv_build_alias" &&
1363 ac_cv_build_alias=`$ac_config_guess`
1364 test -z "$ac_cv_build_alias" &&
1365 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1366 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1367 { (exit 1); exit 1; }; }
1368 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1369 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1370 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1371 { (exit 1); exit 1; }; }
1374 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1375 echo "${ECHO_T}$ac_cv_build" >&6
1377 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1378 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1379 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1382 echo "$as_me:$LINENO: checking host system type" >&5
1383 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1384 if test "${ac_cv_host+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1387 ac_cv_host_alias=$host_alias
1388 test -z "$ac_cv_host_alias" &&
1389 ac_cv_host_alias=$ac_cv_build_alias
1390 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1391 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1392 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1393 { (exit 1); exit 1; }; }
1396 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1397 echo "${ECHO_T}$ac_cv_host" >&6
1399 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1400 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1401 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1404 echo "$as_me:$LINENO: checking target system type" >&5
1405 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1406 if test "${ac_cv_target+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 ac_cv_target_alias=$target_alias
1410 test "x$ac_cv_target_alias" = "x" &&
1411 ac_cv_target_alias=$ac_cv_host_alias
1412 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1413 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1414 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1415 { (exit 1); exit 1; }; }
1418 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1419 echo "${ECHO_T}$ac_cv_target" >&6
1420 target=$ac_cv_target
1421 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1422 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1423 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1426 # The aliases save the names the user supplied, while $host etc.
1427 # will get canonicalized.
1428 test -n "$target_alias" &&
1429 test "$program_prefix$program_suffix$program_transform_name" = \
1431 program_prefix=${target_alias}-
1432 target_alias=${target_alias-$target}
1435 am__api_version="1.9"
1436 # Find a good install program. We prefer a C program (faster),
1437 # so one script is as good as another. But avoid the broken or
1438 # incompatible versions:
1439 # SysV /etc/install, /usr/sbin/install
1440 # SunOS /usr/etc/install
1441 # IRIX /sbin/install
1443 # AmigaOS /C/install, which installs bootblocks on floppy discs
1444 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1445 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1446 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1447 # OS/2's system install, which has a completely different semantic
1448 # ./install, which can be erroneously created by make from ./install.sh.
1449 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1450 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1451 if test -z "$INSTALL"; then
1452 if test "${ac_cv_path_install+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1459 test -z "$as_dir" && as_dir
=.
1460 # Account for people who put trailing slashes in PATH elements.
1462 .
/ | .
// |
/cC
/* | \
1463 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1464 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1467 # OSF1 and SCO ODT 3.0 have their own names for install.
1468 # Don't use installbsd from OSF since it installs stuff as root
1470 for ac_prog
in ginstall scoinst
install; do
1471 for ac_exec_ext
in '' $ac_executable_extensions; do
1472 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1473 if test $ac_prog = install &&
1474 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1475 # AIX install. It has an incompatible calling convention.
1477 elif test $ac_prog = install &&
1478 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1479 # program-specific install script used by HP pwplus--don't use.
1482 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1494 if test "${ac_cv_path_install+set}" = set; then
1495 INSTALL
=$ac_cv_path_install
1497 # As a last resort, use the slow shell script. We don't cache a
1498 # path for INSTALL within a source directory, because that will
1499 # break other packages using the cache if that directory is
1500 # removed, or if the path is relative.
1501 INSTALL
=$ac_install_sh
1504 echo "$as_me:$LINENO: result: $INSTALL" >&5
1505 echo "${ECHO_T}$INSTALL" >&6
1507 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1508 # It thinks the first close brace ends the variable substitution.
1509 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1511 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1513 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1515 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1516 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1519 echo timestamp
> conftest.
file
1520 # Do `set' in a subshell so we don't clobber the current shell's
1521 # arguments. Must try -L first in case configure is actually a
1522 # symlink; some systems play weird games with the mod time of symlinks
1523 # (eg FreeBSD returns the mod time of the symlink's containing
1526 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1527 if test "$*" = "X"; then
1529 set X
`ls -t $srcdir/configure conftest.file`
1532 if test "$*" != "X $srcdir/configure conftest.file" \
1533 && test "$*" != "X conftest.file $srcdir/configure"; then
1535 # If neither matched, then we have a broken ls. This can happen
1536 # if, for instance, CONFIG_SHELL is bash and it inherits a
1537 # broken ls alias from the environment. This has actually
1538 # happened. Such a system could not be considered "sane".
1539 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1540 alias in your environment" >&5
1541 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1542 alias in your environment" >&2;}
1543 { (exit 1); exit 1; }; }
1546 test "$2" = conftest.
file
1552 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1553 Check your system clock" >&5
1554 echo "$as_me: error: newly created file is older than distributed files!
1555 Check your system clock" >&2;}
1556 { (exit 1); exit 1; }; }
1558 echo "$as_me:$LINENO: result: yes" >&5
1559 echo "${ECHO_T}yes" >&6
1560 test "$program_prefix" != NONE
&&
1561 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1562 # Use a double $ so make ignores it.
1563 test "$program_suffix" != NONE
&&
1564 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1565 # Double any \ or $. echo might interpret backslashes.
1566 # By default was `s,x,x', remove it if useless.
1567 cat <<\_ACEOF
>conftest.
sed
1568 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1570 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1573 # expand $ac_aux_dir to an absolute path
1574 am_aux_dir
=`cd $ac_aux_dir && pwd`
1576 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1577 # Use eval to expand $SHELL
1578 if eval "$MISSING --run true"; then
1579 am_missing_run
="$MISSING --run "
1582 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1583 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1586 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1587 # We used to keeping the `.' as first argument, in order to
1588 # allow $(mkdir_p) to be used without argument. As in
1589 # $(mkdir_p) $(somedir)
1590 # where $(somedir) is conditionally defined. However this is wrong
1592 # 1. if the package is installed by a user who cannot write `.'
1593 # make install will fail,
1594 # 2. the above comment should most certainly read
1595 # $(mkdir_p) $(DESTDIR)$(somedir)
1596 # so it does not work when $(somedir) is undefined and
1597 # $(DESTDIR) is not.
1598 # To support the latter case, we have to write
1599 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1600 # so the `.' trick is pointless.
1601 mkdir_p
='mkdir -p --'
1603 # On NextStep and OpenStep, the `mkdir' command does not
1604 # recognize any option. It will interpret all options as
1605 # directories to create, and then abort because `.' already
1607 for d
in .
/-p .
/--version;
1609 test -d $d && rmdir $d
1611 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1612 if test -f "$ac_aux_dir/mkinstalldirs"; then
1613 mkdir_p
='$(mkinstalldirs)'
1615 mkdir_p
='$(install_sh) -d'
1619 for ac_prog
in gawk mawk nawk
awk
1621 # Extract the first word of "$ac_prog", so it can be a program name with args.
1622 set dummy
$ac_prog; ac_word
=$2
1623 echo "$as_me:$LINENO: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_AWK+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 if test -n "$AWK"; then
1629 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1635 test -z "$as_dir" && as_dir
=.
1636 for ac_exec_ext
in '' $ac_executable_extensions; do
1637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1638 ac_cv_prog_AWK
="$ac_prog"
1639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 if test -n "$AWK"; then
1649 echo "$as_me:$LINENO: result: $AWK" >&5
1650 echo "${ECHO_T}$AWK" >&6
1652 echo "$as_me:$LINENO: result: no" >&5
1653 echo "${ECHO_T}no" >&6
1656 test -n "$AWK" && break
1659 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1660 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1661 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1662 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 cat >conftest.
make <<\_ACEOF
1667 @
echo 'ac_maketemp="$(MAKE)"'
1669 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1670 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1671 if test -n "$ac_maketemp"; then
1672 eval ac_cv_prog_make_
${ac_make}_set
=yes
1674 eval ac_cv_prog_make_
${ac_make}_set
=no
1678 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1679 echo "$as_me:$LINENO: result: yes" >&5
1680 echo "${ECHO_T}yes" >&6
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 SET_MAKE
="MAKE=${MAKE-make}"
1688 rm -rf .tst
2>/dev
/null
1689 mkdir .tst
2>/dev
/null
1690 if test -d .tst
; then
1695 rmdir .tst
2>/dev
/null
1697 # test to see if srcdir already configured
1698 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1699 test -f $srcdir/config.status
; then
1700 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1701 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1702 { (exit 1); exit 1; }; }
1705 # test whether we have cygpath
1706 if test -z "$CYGPATH_W"; then
1707 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1708 CYGPATH_W
='cygpath -w'
1715 # Define the identity of the package.
1717 VERSION
='version-unused'
1720 cat >>confdefs.h
<<_ACEOF
1721 #define PACKAGE "$PACKAGE"
1725 cat >>confdefs.h
<<_ACEOF
1726 #define VERSION "$VERSION"
1729 # Some tools Automake needs.
1731 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1734 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1737 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1740 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1743 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1745 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1747 # Installed binaries are usually stripped using `strip' when the user
1748 # run `make install-strip'. However `strip' might not be the right
1749 # tool to use in cross-compilation environments, therefore Automake
1750 # will honor the `STRIP' environment variable to overrule this program.
1751 if test "$cross_compiling" != no
; then
1752 if test -n "$ac_tool_prefix"; then
1753 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1754 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_STRIP+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 if test -n "$STRIP"; then
1761 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1767 test -z "$as_dir" && as_dir
=.
1768 for ac_exec_ext
in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 STRIP
=$ac_cv_prog_STRIP
1780 if test -n "$STRIP"; then
1781 echo "$as_me:$LINENO: result: $STRIP" >&5
1782 echo "${ECHO_T}$STRIP" >&6
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1789 if test -z "$ac_cv_prog_STRIP"; then
1791 # Extract the first word of "strip", so it can be a program name with args.
1792 set dummy strip
; ac_word
=$2
1793 echo "$as_me:$LINENO: checking for $ac_word" >&5
1794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1795 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1798 if test -n "$ac_ct_STRIP"; then
1799 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1805 test -z "$as_dir" && as_dir
=.
1806 for ac_exec_ext
in '' $ac_executable_extensions; do
1807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1808 ac_cv_prog_ac_ct_STRIP
="strip"
1809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1818 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1819 if test -n "$ac_ct_STRIP"; then
1820 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1821 echo "${ECHO_T}$ac_ct_STRIP" >&6
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1829 STRIP
="$ac_cv_prog_STRIP"
1833 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1835 # We need awk for the "check" target. The system "awk" is bad on
1837 # Always define AMTAR for backward compatibility.
1839 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1841 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1848 # Default to --enable-multilib
1849 # Check whether --enable-multilib or --disable-multilib was given.
1850 if test "${enable_multilib+set}" = set; then
1851 enableval
="$enable_multilib"
1852 case "$enableval" in
1853 yes) multilib
=yes ;;
1855 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1856 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1857 { (exit 1); exit 1; }; } ;;
1863 # We may get other options which we leave undocumented:
1864 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1865 # See config-ml.in if you want the gory details.
1867 if test "$srcdir" = "."; then
1868 if test "$with_target_subdir" != "."; then
1869 multi_basedir
="$srcdir/$with_multisrctop../$d_mlcd"
1871 multi_basedir
="$srcdir/$with_multisrctop$d_mlcd"
1874 multi_basedir
="$srcdir/$d_mlcd"
1878 ac_config_commands
="$ac_config_commands default-1"
1881 # libphobos is usually a symlink to gcc/d/phobos, so libphobos/..
1882 # is not the toplevel GCC directory. gcc/d may also be a symlink.
1883 # Find the correct top-level directory by removing "/libphobos"
1885 if test ! -r "$multi_basedir/config-ml.in"; then
1886 better_dir
=`echo "$srcdir" | sed -e 's|/libphobos||'`
1887 if test -r "$better_dir/config-ml.in"; then
1888 multi_basedir
=$better_dir
1892 if test "$build" != "$host"; then
1893 # We are being configured with some form of cross compiler.
1894 #GLIBCXX_IS_NATIVE=false
1901 # We're almost certainly being configured before anything else which uses
1902 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
1903 # we not cache the value of CXX that we "discover" here, because it's set
1904 # to something unique for us and libjava. Other target libraries need to
1905 # find CXX for themselves. We yank the rug out from under the normal AC_*
1906 # process by sneakily renaming the cache variable. This also lets us debug
1907 # the value of "our" CXX in postmortems.
1909 # We must also force CXX to /not/ be a precious variable, otherwise the
1910 # wrong (non-multilib-adjusted) value will be used in multilibs. This
1911 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
1912 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
1913 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
1915 # -fno-builtin must be present here so that a non-conflicting form of
1916 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
1921 save_CXXFLAGS
="$CXXFLAGS"
1922 CXXFLAGS
="$CXXFLAGS -fno-builtin"
1923 # --- Extra hack for Phobos ---
1924 # AC_PROG_CC, if not "cross-compiling", tries to run a simple C program.
1925 # However, a given multilib variant may not be executable on the current
1926 # system. Example: Building for x86_64 on IA-32. This is technically
1927 # cross-compiling, but we don't want cross-compiling directory layouts
1928 # and we still need link tests. Solution is to make autoconf think it
1929 # is cross compiling only when it tests the compilers.
1930 d_save_cross_compiling
=$cross_compiling
1933 ac_cpp
='$CPP $CPPFLAGS'
1934 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1937 if test -n "$ac_tool_prefix"; then
1938 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1939 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1940 echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942 if test "${ac_cv_prog_CC+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 if test -n "$CC"; then
1946 ac_cv_prog_CC
="$CC" # Let the user override the test.
1948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir
=.
1953 for ac_exec_ext
in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 if test -n "$CC"; then
1966 echo "$as_me:$LINENO: result: $CC" >&5
1967 echo "${ECHO_T}$CC" >&6
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1974 if test -z "$ac_cv_prog_CC"; then
1976 # Extract the first word of "gcc", so it can be a program name with args.
1977 set dummy gcc
; ac_word
=$2
1978 echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 if test -n "$ac_ct_CC"; then
1984 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1990 test -z "$as_dir" && as_dir
=.
1991 for ac_exec_ext
in '' $ac_executable_extensions; do
1992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993 ac_cv_prog_ac_ct_CC
="gcc"
1994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2003 if test -n "$ac_ct_CC"; then
2004 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2005 echo "${ECHO_T}$ac_ct_CC" >&6
2007 echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6
2016 if test -z "$CC"; then
2017 if test -n "$ac_tool_prefix"; then
2018 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2019 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2020 echo "$as_me:$LINENO: checking for $ac_word" >&5
2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2022 if test "${ac_cv_prog_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 if test -n "$CC"; then
2026 ac_cv_prog_CC
="$CC" # Let the user override the test.
2028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2032 test -z "$as_dir" && as_dir
=.
2033 for ac_exec_ext
in '' $ac_executable_extensions; do
2034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 if test -n "$CC"; then
2046 echo "$as_me:$LINENO: result: $CC" >&5
2047 echo "${ECHO_T}$CC" >&6
2049 echo "$as_me:$LINENO: result: no" >&5
2050 echo "${ECHO_T}no" >&6
2054 if test -z "$ac_cv_prog_CC"; then
2056 # Extract the first word of "cc", so it can be a program name with args.
2057 set dummy cc
; ac_word
=$2
2058 echo "$as_me:$LINENO: checking for $ac_word" >&5
2059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 if test -n "$ac_ct_CC"; then
2064 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2070 test -z "$as_dir" && as_dir
=.
2071 for ac_exec_ext
in '' $ac_executable_extensions; do
2072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073 ac_cv_prog_ac_ct_CC
="cc"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2083 if test -n "$ac_ct_CC"; then
2084 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2085 echo "${ECHO_T}$ac_ct_CC" >&6
2087 echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2097 if test -z "$CC"; then
2098 # Extract the first word of "cc", so it can be a program name with args.
2099 set dummy cc
; ac_word
=$2
2100 echo "$as_me:$LINENO: checking for $ac_word" >&5
2101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102 if test "${ac_cv_prog_CC+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 if test -n "$CC"; then
2106 ac_cv_prog_CC
="$CC" # Let the user override the test.
2109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2113 test -z "$as_dir" && as_dir
=.
2114 for ac_exec_ext
in '' $ac_executable_extensions; do
2115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2117 ac_prog_rejected
=yes
2121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127 if test $ac_prog_rejected = yes; then
2128 # We found a bogon in the path, so make sure we never use it.
2129 set dummy
$ac_cv_prog_CC
2131 if test $# != 0; then
2132 # We chose a different compiler from the bogus one.
2133 # However, it has the same basename, so the bogon will be chosen
2134 # first if we set CC to just the basename; use the full file name.
2136 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2142 if test -n "$CC"; then
2143 echo "$as_me:$LINENO: result: $CC" >&5
2144 echo "${ECHO_T}$CC" >&6
2146 echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2151 if test -z "$CC"; then
2152 if test -n "$ac_tool_prefix"; then
2155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2156 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2157 echo "$as_me:$LINENO: checking for $ac_word" >&5
2158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2159 if test "${ac_cv_prog_CC+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 if test -n "$CC"; then
2163 ac_cv_prog_CC
="$CC" # Let the user override the test.
2165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2169 test -z "$as_dir" && as_dir
=.
2170 for ac_exec_ext
in '' $ac_executable_extensions; do
2171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2172 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 if test -n "$CC"; then
2183 echo "$as_me:$LINENO: result: $CC" >&5
2184 echo "${ECHO_T}$CC" >&6
2186 echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6
2190 test -n "$CC" && break
2193 if test -z "$CC"; then
2197 # Extract the first word of "$ac_prog", so it can be a program name with args.
2198 set dummy
$ac_prog; ac_word
=$2
2199 echo "$as_me:$LINENO: checking for $ac_word" >&5
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 if test -n "$ac_ct_CC"; then
2205 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2211 test -z "$as_dir" && as_dir
=.
2212 for ac_exec_ext
in '' $ac_executable_extensions; do
2213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214 ac_cv_prog_ac_ct_CC
="$ac_prog"
2215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2224 if test -n "$ac_ct_CC"; then
2225 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2226 echo "${ECHO_T}$ac_ct_CC" >&6
2228 echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6
2232 test -n "$ac_ct_CC" && break
2241 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: no acceptable C compiler found in \$PATH
2244 See \`config.log' for more details." >&2;}
2245 { (exit 1); exit 1; }; }
2247 # Provide some information about the compiler.
2248 echo "$as_me:$LINENO:" \
2249 "checking for C compiler version" >&5
2250 ac_compiler
=`set X $ac_compile; echo $2`
2251 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2252 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }
2256 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2257 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }
2261 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2262 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }
2267 cat >conftest.
$ac_ext <<_ACEOF
2270 cat confdefs.h
>>conftest.
$ac_ext
2271 cat >>conftest.
$ac_ext <<_ACEOF
2272 /* end confdefs.h. */
2283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2284 (eval $ac_link) 2>&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; then
2293 if test x
$gcc_no_link = xyes
; then
2294 # Setting cross_compile will disable run tests; it will
2295 # also disable AC_CHECK_FILE but that's generally
2296 # correct if we can't link.
2300 cat >conftest.
$ac_ext <<_ACEOF
2303 cat confdefs.h
>>conftest.
$ac_ext
2304 cat >>conftest.
$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2315 ac_clean_files_save
=$ac_clean_files
2316 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2317 # Try to create an executable without -o first, disregard a.out.
2318 # It will help us diagnose broken compilers, and finding out an intuition
2320 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2321 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2322 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2323 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2324 (eval $ac_link_default) 2>&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; then
2328 # Find the output, starting from the most likely. This scheme is
2329 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2332 # Be careful to initialize this variable, since it used to be cached.
2333 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2335 # b.out is created by i960 compilers.
2336 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2338 test -f "$ac_file" ||
continue
2340 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2343 # This is the source file.
2346 # We found the default executable, but exeext='' is most
2350 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2351 # FIXME: I believe we export ac_cv_exeext for Libtool,
2352 # but it would be cool to find out if it's true. Does anybody
2353 # maintain Libtool? --akim.
2361 echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.
$ac_ext >&5
2364 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2365 See \`config.log' for more details." >&5
2366 echo "$as_me: error: C compiler cannot create executables
2367 See \`config.log' for more details." >&2;}
2368 { (exit 77); exit 77; }; }
2371 ac_exeext
=$ac_cv_exeext
2372 echo "$as_me:$LINENO: result: $ac_file" >&5
2373 echo "${ECHO_T}$ac_file" >&6
2375 # Check the compiler produces executables we can run. If not, either
2376 # the compiler is broken, or we cross compile.
2377 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2378 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2379 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2380 # If not cross compiling, check that we can run a simple program.
2381 if test "$cross_compiling" != yes; then
2382 if { ac_try
='./$ac_file'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; }; then
2390 if test "$cross_compiling" = maybe
; then
2393 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2394 If you meant to cross compile, use \`--host'.
2395 See \`config.log' for more details." >&5
2396 echo "$as_me: error: cannot run C compiled programs.
2397 If you meant to cross compile, use \`--host'.
2398 See \`config.log' for more details." >&2;}
2399 { (exit 1); exit 1; }; }
2403 echo "$as_me:$LINENO: result: yes" >&5
2404 echo "${ECHO_T}yes" >&6
2406 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2407 ac_clean_files
=$ac_clean_files_save
2408 # Check the compiler produces executables we can run. If not, either
2409 # the compiler is broken, or we cross compile.
2410 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2411 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2412 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2413 echo "${ECHO_T}$cross_compiling" >&6
2415 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2416 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2418 (eval $ac_link) 2>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; then
2422 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2423 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2424 # work properly (i.e., refer to `conftest.exe'), while it won't with
2426 for ac_file
in conftest.exe conftest conftest.
*; do
2427 test -f "$ac_file" ||
continue
2429 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2430 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2437 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2438 See \`config.log' for more details." >&5
2439 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2440 See \`config.log' for more details." >&2;}
2441 { (exit 1); exit 1; }; }
2444 rm -f conftest
$ac_cv_exeext
2445 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2446 echo "${ECHO_T}$ac_cv_exeext" >&6
2448 rm -f conftest.
$ac_ext
2449 EXEEXT
=$ac_cv_exeext
2452 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2453 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2454 if test "${ac_cv_objext+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 cat >conftest.
$ac_ext <<_ACEOF
2460 cat confdefs.h
>>conftest.
$ac_ext
2461 cat >>conftest.
$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2472 rm -f conftest.o conftest.obj
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474 (eval $ac_compile) 2>&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; then
2478 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2480 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2481 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2486 echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.
$ac_ext >&5
2489 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2490 See \`config.log' for more details." >&5
2491 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2492 See \`config.log' for more details." >&2;}
2493 { (exit 1); exit 1; }; }
2496 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2498 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2499 echo "${ECHO_T}$ac_cv_objext" >&6
2500 OBJEXT
=$ac_cv_objext
2502 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2503 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2504 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 cat >conftest.
$ac_ext <<_ACEOF
2510 cat confdefs.h
>>conftest.
$ac_ext
2511 cat >>conftest.
$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2525 rm -f conftest.
$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>conftest.er1
2529 grep -v '^ *+' conftest.er1
>conftest.err
2531 cat conftest.err
>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try
='test -z "$ac_c_werror_flag"
2535 || test ! -s conftest.err'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; } &&
2541 { ac_try
='test -s conftest.$ac_objext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.
$ac_ext >&5
2554 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2555 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2558 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2559 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2560 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2561 ac_test_CFLAGS
=${CFLAGS+set}
2562 ac_save_CFLAGS
=$CFLAGS
2564 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2565 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2566 if test "${ac_cv_prog_cc_g+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 cat >conftest.
$ac_ext <<_ACEOF
2572 cat confdefs.h
>>conftest.
$ac_ext
2573 cat >>conftest.
$ac_ext <<_ACEOF
2574 /* end confdefs.h. */
2584 rm -f conftest.
$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>conftest.er1
2588 grep -v '^ *+' conftest.er1
>conftest.err
2590 cat conftest.err
>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try
='test -z "$ac_c_werror_flag"
2594 || test ! -s conftest.err'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; } &&
2600 { ac_try
='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.
$ac_ext >&5
2613 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2615 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2616 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2617 if test "$ac_test_CFLAGS" = set; then
2618 CFLAGS
=$ac_save_CFLAGS
2619 elif test $ac_cv_prog_cc_g = yes; then
2620 if test "$GCC" = yes; then
2626 if test "$GCC" = yes; then
2632 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2633 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2634 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 ac_cv_prog_cc_stdc
=no
2639 cat >conftest.
$ac_ext <<_ACEOF
2642 cat confdefs.h
>>conftest.
$ac_ext
2643 cat >>conftest.
$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2647 #include <sys/types.h>
2648 #include <sys/stat.h>
2649 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2650 struct buf { int x; };
2651 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2652 static char *e (p, i)
2658 static char *f (char * (*g) (char **, int), char **p, ...)
2663 s = g (p, va_arg (v,int));
2668 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2669 function prototypes and stuff, but not '\xHH' hex character constants.
2670 These don't provoke an error unfortunately, instead are silently treated
2671 as 'x'. The following induces an error, until -std1 is added to get
2672 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2673 array size at least. It's necessary to write '\x00'==0 to get something
2674 that's true only with -std1. */
2675 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2677 int test (int i, double x);
2678 struct s1 {int (*f) (int a);};
2679 struct s2 {int (*f) (double a);};
2680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2691 # Don't try gcc -ansi; that turns off useful extensions and
2692 # breaks some systems' header files.
2693 # AIX -qlanglvl=ansi
2694 # Ultrix and OSF/1 -std1
2695 # HP-UX 10.20 and later -Ae
2696 # HP-UX older versions -Aa -D_HPUX_SOURCE
2697 # SVR4 -Xc -D__EXTENSIONS__
2698 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2700 CC
="$ac_save_CC $ac_arg"
2701 rm -f conftest.
$ac_objext
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703 (eval $ac_compile) 2>conftest.er1
2705 grep -v '^ *+' conftest.er1
>conftest.err
2707 cat conftest.err
>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try
='test -z "$ac_c_werror_flag"
2711 || test ! -s conftest.err'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try
='test -s conftest.$ac_objext'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2723 ac_cv_prog_cc_stdc
=$ac_arg
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.
$ac_ext >&5
2730 rm -f conftest.err conftest.
$ac_objext
2732 rm -f conftest.
$ac_ext conftest.
$ac_objext
2737 case "x$ac_cv_prog_cc_stdc" in
2739 echo "$as_me:$LINENO: result: none needed" >&5
2740 echo "${ECHO_T}none needed" >&6 ;;
2742 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2743 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2744 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2747 # Some people use a C++ compiler to compile C. Since we use `exit',
2748 # in C++ we need to declare it. In case someone uses the same compiler
2749 # for both compiling C and C++ we need to have the C++ compiler decide
2750 # the declaration of exit, since it's the most demanding environment.
2751 cat >conftest.
$ac_ext <<_ACEOF
2756 rm -f conftest.
$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2760 grep -v '^ *+' conftest.er1
>conftest.err
2762 cat conftest.err
>&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try
='test -z "$ac_c_werror_flag"
2766 || test ! -s conftest.err'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; } &&
2772 { ac_try
='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 for ac_declaration
in \
2780 'extern "C" void std::exit (int) throw (); using std::exit;' \
2781 'extern "C" void std::exit (int); using std::exit;' \
2782 'extern "C" void exit (int) throw ();' \
2783 'extern "C" void exit (int);' \
2786 cat >conftest.
$ac_ext <<_ACEOF
2789 cat confdefs.h
>>conftest.
$ac_ext
2790 cat >>conftest.
$ac_ext <<_ACEOF
2791 /* end confdefs.h. */
2802 rm -f conftest.
$ac_objext
2803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>conftest.er1
2806 grep -v '^ *+' conftest.er1
>conftest.err
2808 cat conftest.err
>&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try
='test -z "$ac_c_werror_flag"
2812 || test ! -s conftest.err'
2813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; } &&
2818 { ac_try
='test -s conftest.$ac_objext'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; }; then
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.
$ac_ext >&5
2831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2832 cat >conftest.
$ac_ext <<_ACEOF
2835 cat confdefs.h
>>conftest.
$ac_ext
2836 cat >>conftest.
$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2847 rm -f conftest.
$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849 (eval $ac_compile) 2>conftest.er1
2851 grep -v '^ *+' conftest.er1
>conftest.err
2853 cat conftest.err
>&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } &&
2856 { ac_try
='test -z "$ac_c_werror_flag"
2857 || test ! -s conftest.err'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; } &&
2863 { ac_try
='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.
$ac_ext >&5
2875 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2878 if test -n "$ac_declaration"; then
2879 echo '#ifdef __cplusplus' >>confdefs.h
2880 echo $ac_declaration >>confdefs.h
2881 echo '#endif' >>confdefs.h
2885 echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.
$ac_ext >&5
2889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2891 ac_cpp
='$CPP $CPPFLAGS'
2892 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2897 ac_cpp
='$CXXCPP $CPPFLAGS'
2898 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2901 if test -n "$ac_tool_prefix"; then
2902 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2905 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2906 echo "$as_me:$LINENO: checking for $ac_word" >&5
2907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2908 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 if test -n "$CXX"; then
2912 glibcxx_cv_prog_CXX
="$CXX" # Let the user override the test.
2914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2918 test -z "$as_dir" && as_dir
=.
2919 for ac_exec_ext
in '' $ac_executable_extensions; do
2920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2921 glibcxx_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 CXX
=$glibcxx_cv_prog_CXX
2931 if test -n "$CXX"; then
2932 echo "$as_me:$LINENO: result: $CXX" >&5
2933 echo "${ECHO_T}$CXX" >&6
2935 echo "$as_me:$LINENO: result: no" >&5
2936 echo "${ECHO_T}no" >&6
2939 test -n "$CXX" && break
2942 if test -z "$CXX"; then
2944 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2946 # Extract the first word of "$ac_prog", so it can be a program name with args.
2947 set dummy
$ac_prog; ac_word
=$2
2948 echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2950 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 if test -n "$ac_ct_CXX"; then
2954 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2960 test -z "$as_dir" && as_dir
=.
2961 for ac_exec_ext
in '' $ac_executable_extensions; do
2962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2973 if test -n "$ac_ct_CXX"; then
2974 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2975 echo "${ECHO_T}$ac_ct_CXX" >&6
2977 echo "$as_me:$LINENO: result: no" >&5
2978 echo "${ECHO_T}no" >&6
2981 test -n "$ac_ct_CXX" && break
2983 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2989 # Provide some information about the compiler.
2990 echo "$as_me:$LINENO:" \
2991 "checking for C++ compiler version" >&5
2992 ac_compiler
=`set X $ac_compile; echo $2`
2993 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2994 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }
2998 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2999 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }
3003 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3004 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }
3009 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3010 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3011 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 cat >conftest.
$ac_ext <<_ACEOF
3017 cat confdefs.h
>>conftest.
$ac_ext
3018 cat >>conftest.
$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3032 rm -f conftest.
$ac_objext
3033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3034 (eval $ac_compile) 2>conftest.er1
3036 grep -v '^ *+' conftest.er1
>conftest.err
3038 cat conftest.err
>&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } &&
3041 { ac_try
='test -z "$ac_cxx_werror_flag"
3042 || test ! -s conftest.err'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; } &&
3048 { ac_try
='test -s conftest.$ac_objext'
3049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; }; then
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.
$ac_ext >&5
3061 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3062 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3065 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3066 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3067 GXX
=`test $ac_compiler_gnu = yes && echo yes`
3068 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3069 ac_save_CXXFLAGS
=$CXXFLAGS
3071 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3072 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3073 if test "${ac_cv_prog_cxx_g+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 cat >conftest.
$ac_ext <<_ACEOF
3079 cat confdefs.h
>>conftest.
$ac_ext
3080 cat >>conftest.
$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3091 rm -f conftest.
$ac_objext
3092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3093 (eval $ac_compile) 2>conftest.er1
3095 grep -v '^ *+' conftest.er1
>conftest.err
3097 cat conftest.err
>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try
='test -z "$ac_cxx_werror_flag"
3101 || test ! -s conftest.err'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; } &&
3107 { ac_try
='test -s conftest.$ac_objext'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 ac_cv_prog_cxx_g
=yes
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.
$ac_ext >&5
3120 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3122 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3123 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3124 if test "$ac_test_CXXFLAGS" = set; then
3125 CXXFLAGS
=$ac_save_CXXFLAGS
3126 elif test $ac_cv_prog_cxx_g = yes; then
3127 if test "$GXX" = yes; then
3133 if test "$GXX" = yes; then
3139 for ac_declaration
in \
3141 'extern "C" void std::exit (int) throw (); using std::exit;' \
3142 'extern "C" void std::exit (int); using std::exit;' \
3143 'extern "C" void exit (int) throw ();' \
3144 'extern "C" void exit (int);' \
3147 cat >conftest.
$ac_ext <<_ACEOF
3150 cat confdefs.h
>>conftest.
$ac_ext
3151 cat >>conftest.
$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3163 rm -f conftest.
$ac_objext
3164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165 (eval $ac_compile) 2>conftest.er1
3167 grep -v '^ *+' conftest.er1
>conftest.err
3169 cat conftest.err
>&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } &&
3172 { ac_try
='test -z "$ac_cxx_werror_flag"
3173 || test ! -s conftest.err'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; } &&
3179 { ac_try
='test -s conftest.$ac_objext'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.
$ac_ext >&5
3192 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3193 cat >conftest.
$ac_ext <<_ACEOF
3196 cat confdefs.h
>>conftest.
$ac_ext
3197 cat >>conftest.
$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3208 rm -f conftest.
$ac_objext
3209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3210 (eval $ac_compile) 2>conftest.er1
3212 grep -v '^ *+' conftest.er1
>conftest.err
3214 cat conftest.err
>&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } &&
3217 { ac_try
='test -z "$ac_cxx_werror_flag"
3218 || test ! -s conftest.err'
3219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; } &&
3224 { ac_try
='test -s conftest.$ac_objext'
3225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; }; then
3232 echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.
$ac_ext >&5
3236 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3239 if test -n "$ac_declaration"; then
3240 echo '#ifdef __cplusplus' >>confdefs.h
3241 echo $ac_declaration >>confdefs.h
3242 echo '#endif' >>confdefs.h
3246 ac_cpp
='$CPP $CPPFLAGS'
3247 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3251 cross_compiling
=$d_save_cross_compiling
3252 CXXFLAGS
="$save_CXXFLAGS"
3259 if test "$RANLIB"; then :
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3264 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3265 echo "$as_me:$LINENO: checking for $ac_word" >&5
3266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3267 if test "${ac_cv_prog_RANLIB+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 if test -n "$RANLIB"; then
3271 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir
=.
3278 for ac_exec_ext
in '' $ac_executable_extensions; do
3279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 RANLIB
=$ac_cv_prog_RANLIB
3290 if test -n "$RANLIB"; then
3291 echo "$as_me:$LINENO: result: $RANLIB" >&5
3292 echo "${ECHO_T}$RANLIB" >&6
3294 echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3299 if test -z "$ac_cv_prog_RANLIB"; then
3300 ac_ct_RANLIB
=$RANLIB
3301 # Extract the first word of "ranlib", so it can be a program name with args.
3302 set dummy ranlib
; ac_word
=$2
3303 echo "$as_me:$LINENO: checking for $ac_word" >&5
3304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3305 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 if test -n "$ac_ct_RANLIB"; then
3309 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3315 test -z "$as_dir" && as_dir
=.
3316 for ac_exec_ext
in '' $ac_executable_extensions; do
3317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3328 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3329 if test -n "$ac_ct_RANLIB"; then
3330 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3331 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3333 echo "$as_me:$LINENO: result: no" >&5
3334 echo "${ECHO_T}no" >&6
3337 RANLIB
=$ac_ct_RANLIB
3339 RANLIB
="$ac_cv_prog_RANLIB"
3343 # Find a good install program. We prefer a C program (faster),
3344 # so one script is as good as another. But avoid the broken or
3345 # incompatible versions:
3346 # SysV /etc/install, /usr/sbin/install
3347 # SunOS /usr/etc/install
3348 # IRIX /sbin/install
3350 # AmigaOS /C/install, which installs bootblocks on floppy discs
3351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3354 # OS/2's system install, which has a completely different semantic
3355 # ./install, which can be erroneously created by make from ./install.sh.
3356 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3357 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3358 if test -z "$INSTALL"; then
3359 if test "${ac_cv_path_install+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3366 test -z "$as_dir" && as_dir
=.
3367 # Account for people who put trailing slashes in PATH elements.
3369 .
/ | .
// |
/cC
/* | \
3370 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3371 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3374 # OSF1 and SCO ODT 3.0 have their own names for install.
3375 # Don't use installbsd from OSF since it installs stuff as root
3377 for ac_prog
in ginstall scoinst
install; do
3378 for ac_exec_ext
in '' $ac_executable_extensions; do
3379 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3380 if test $ac_prog = install &&
3381 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3382 # AIX install. It has an incompatible calling convention.
3384 elif test $ac_prog = install &&
3385 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3386 # program-specific install script used by HP pwplus--don't use.
3389 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3401 if test "${ac_cv_path_install+set}" = set; then
3402 INSTALL
=$ac_cv_path_install
3404 # As a last resort, use the slow shell script. We don't cache a
3405 # path for INSTALL within a source directory, because that will
3406 # break other packages using the cache if that directory is
3407 # removed, or if the path is relative.
3408 INSTALL
=$ac_install_sh
3411 echo "$as_me:$LINENO: result: $INSTALL" >&5
3412 echo "${ECHO_T}$INSTALL" >&6
3414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3415 # It thinks the first close brace ends the variable substitution.
3416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3420 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3422 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3423 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3424 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
3425 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 cat >conftest.
make <<\_ACEOF
3430 @
echo 'ac_maketemp="$(MAKE)"'
3432 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3433 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3434 if test -n "$ac_maketemp"; then
3435 eval ac_cv_prog_make_
${ac_make}_set
=yes
3437 eval ac_cv_prog_make_
${ac_make}_set
=no
3441 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3442 echo "$as_me:$LINENO: result: yes" >&5
3443 echo "${ECHO_T}yes" >&6
3446 echo "$as_me:$LINENO: result: no" >&5
3447 echo "${ECHO_T}no" >&6
3448 SET_MAKE
="MAKE=${MAKE-make}"
3452 cat >>confdefs.h
<<\_ACEOF
3453 #define _GNU_SOURCE 1
3458 # Check whether --enable-thread-lib or --disable-thread-lib was given.
3459 if test "${enable_thread_lib+set}" = set; then
3460 enableval
="$enable_thread_lib"
3461 d_thread_lib
=$enableval
3466 # Check whether --enable-unix or --disable-unix was given.
3467 if test "${enable_unix+set}" = set; then
3468 enableval
="$enable_unix"
3474 # Check whether --enable-loader or --disable-loader was given.
3475 if test "${enable_loader+set}" = set; then
3476 enableval
="$enable_loader"
3482 # Check whether --enable-proc-maps or --disable-proc-maps was given.
3483 if test "${enable_proc_maps+set}" = set; then
3484 enableval
="$enable_proc_maps"
3485 case "${enableval}" in
3486 yes) echo 'TODO: If cross, warn that there is no check that this works'
3490 *) { { echo "$as_me:$LINENO: error: --enable-proc-maps argument must be \"yes\", \"no\", or \"auto\"" >&5
3491 echo "$as_me: error: --enable-proc-maps argument must be \"yes\", \"no\", or \"auto\"" >&2;}
3492 { (exit 1); exit 1; }; }
3496 enable_proc_maps
=auto
3499 # Check whether --enable-phobos-config-dir or --disable-phobos-config-dir was given.
3500 if test "${enable_phobos_config_dir+set}" = set; then
3501 enableval
="$enable_phobos_config_dir"
3502 if test -z "${enableval}"; then
3503 { { echo "$as_me:$LINENO: error: must specify a value for --enable-phobos-config-dir" >&5
3504 echo "$as_me: error: must specify a value for --enable-phobos-config-dir" >&2;}
3505 { (exit 1); exit 1; }; }
3511 if test ${multilib} = yes; then
3512 multilib_arg
="--enable-multilib"
3517 d_target_os
=`echo $target_os | sed 's/^\(A-Za-z_+\)/\1/'`
3519 # SkyOS uses i386-skyos-pe
3521 *-skyos*-pe*) d_target_os
=skyos
;;
3526 GDC
=`echo $CC | sed s/xgcc/gdc/`
3528 echo "$as_me:$LINENO: checking If $GDC can compile D sources" >&5
3529 echo $ECHO_N "checking If $GDC can compile D sources... $ECHO_C" >&6
3530 echo "int function(int) test;" > actest.d
3531 $GDC -c -x d
-I "$srcdir" actest.d
3534 if test $r -eq 0; then
3535 echo "$as_me:$LINENO: result: yes" >&5
3536 echo "${ECHO_T}yes" >&6
3538 echo "$as_me:$LINENO: result: no" >&5
3539 echo "${ECHO_T}no" >&6
3540 { { echo "$as_me:$LINENO: error: can't compile D sources!" >&5
3541 echo "$as_me: error: can't compile D sources!" >&2;}
3542 { (exit 1); exit 1; }; }
3547 echo "$as_me:$LINENO: checking D GCC version" >&5
3548 echo $ECHO_N "checking D GCC version... $ECHO_C" >&6
3549 d_gcc_ver
=`$GDC -dumpversion`
3550 echo "$as_me:$LINENO: result: $d_gcc_ver" >&5
3551 echo "${ECHO_T}$d_gcc_ver" >&6
3553 # Need to export this variables for multilib
3555 export CFLAGS_FOR_BUILD
3559 # Find build libiberty which is needed by x3
3560 # Should not have to go up too many directories
3564 d_libiberty_dir
=..
/..
3565 while test "$d_count" != 'xxx'; do
3566 BUILD_LIBIBERTY
=$d_libiberty_dir/build-
${build_alias}/libiberty
/libiberty.a
3567 if test -f $BUILD_LIBIBERTY; then
3570 # GCC 3.x does not use the 'build-' dir, so we have so search
3571 # for plain 'libiberty' with some kind of check it is not a target dir
3572 BUILD_LIBIBERTY
=$d_libiberty_dir/libiberty
/libiberty.a
3573 if test -f $BUILD_LIBIBERTY && test -d $d_libiberty_dir/gcc
; then
3577 d_libiberty_dir
=..
/$d_libiberty_dir
3581 if test ! -f "$BUILD_LIBIBERTY"; then
3582 { { echo "$as_me:$LINENO: error: cannot find libiberty.a for build" >&5
3583 echo "$as_me: error: cannot find libiberty.a for build" >&2;}
3584 { (exit 1); exit 1; }; }
3587 LIBIBERTY_H_PATH
='$(srcdir)/../include'
3594 # include dir .. need to support --enable-version-specific.. but
3595 # will have to modify gcc/configure.ac ..
3596 gdc_include_dir
='${prefix}'/include
/d
2/${d_gcc_ver}
3599 # Check whether --with-cross-host or --without-cross-host was given.
3600 if test "${with_cross_host+set}" = set; then
3601 withval
="$with_cross_host"
3604 if test -n "$with_cross_host" &&
3605 test x
"$with_cross_host" != x
"no"; then
3606 phobos_toolexecdir
='${exec_prefix}/${host_alias}'
3607 phobos_toolexeclibdir
='${toolexecdir}/lib'
3609 phobos_toolexecdir
='${libdir}/gcc/${host_alias}'
3610 phobos_toolexeclibdir
='${libdir}'
3612 # The norm would be to use $GDC -print-multi-os-directory, but
3613 # that would require modifying config-ml.in
3614 multi_os_directory
=`$CC -print-multi-os-directory`
3615 case $multi_os_directory in
3616 .
) ;; # Avoid trailing /.
3617 *) phobos_toolexeclibdir
=$phobos_toolexeclibdir/$multi_os_directory ;;
3622 # Sanity check for the cross-compilation case:
3625 ac_cpp
='$CPP $CPPFLAGS'
3626 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3629 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3630 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3631 # On Suns, sometimes $CPP names a directory.
3632 if test -n "$CPP" && test -d "$CPP"; then
3635 if test -z "$CPP"; then
3636 if test "${ac_cv_prog_CPP+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 # Double quotes because CPP needs to be expanded
3640 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3643 for ac_c_preproc_warn_flag
in '' yes
3645 # Use a header file that comes with gcc, so configuring glibc
3646 # with a fresh cross-compiler works.
3647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3648 # <limits.h> exists even on freestanding compilers.
3649 # On the NeXT, cc -E runs the code through the compiler's parser,
3650 # not just through cpp. "Syntax error" is here to catch this case.
3651 cat >conftest.
$ac_ext <<_ACEOF
3654 cat confdefs.h
>>conftest.
$ac_ext
3655 cat >>conftest.
$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3658 # include <limits.h>
3660 # include <assert.h>
3664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3665 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3667 grep -v '^ *+' conftest.er1
>conftest.err
3669 cat conftest.err
>&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } >/dev
/null
; then
3672 if test -s conftest.err
; then
3673 ac_cpp_err
=$ac_c_preproc_warn_flag
3674 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3681 if test -z "$ac_cpp_err"; then
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.
$ac_ext >&5
3687 # Broken: fails on valid input.
3690 rm -f conftest.err conftest.
$ac_ext
3692 # OK, works on sane cases. Now check whether non-existent headers
3693 # can be detected and how.
3694 cat >conftest.
$ac_ext <<_ACEOF
3697 cat confdefs.h
>>conftest.
$ac_ext
3698 cat >>conftest.
$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3700 #include <ac_nonexistent.h>
3702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3703 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3705 grep -v '^ *+' conftest.er1
>conftest.err
3707 cat conftest.err
>&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } >/dev
/null
; then
3710 if test -s conftest.err
; then
3711 ac_cpp_err
=$ac_c_preproc_warn_flag
3712 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3719 if test -z "$ac_cpp_err"; then
3720 # Broken: success on invalid input.
3723 echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.
$ac_ext >&5
3726 # Passes both tests.
3730 rm -f conftest.err conftest.
$ac_ext
3733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3734 rm -f conftest.err conftest.
$ac_ext
3735 if $ac_preproc_ok; then
3747 echo "$as_me:$LINENO: result: $CPP" >&5
3748 echo "${ECHO_T}$CPP" >&6
3750 for ac_c_preproc_warn_flag
in '' yes
3752 # Use a header file that comes with gcc, so configuring glibc
3753 # with a fresh cross-compiler works.
3754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3755 # <limits.h> exists even on freestanding compilers.
3756 # On the NeXT, cc -E runs the code through the compiler's parser,
3757 # not just through cpp. "Syntax error" is here to catch this case.
3758 cat >conftest.
$ac_ext <<_ACEOF
3761 cat confdefs.h
>>conftest.
$ac_ext
3762 cat >>conftest.
$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3765 # include <limits.h>
3767 # include <assert.h>
3771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3772 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3774 grep -v '^ *+' conftest.er1
>conftest.err
3776 cat conftest.err
>&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } >/dev
/null
; then
3779 if test -s conftest.err
; then
3780 ac_cpp_err
=$ac_c_preproc_warn_flag
3781 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3788 if test -z "$ac_cpp_err"; then
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.
$ac_ext >&5
3794 # Broken: fails on valid input.
3797 rm -f conftest.err conftest.
$ac_ext
3799 # OK, works on sane cases. Now check whether non-existent headers
3800 # can be detected and how.
3801 cat >conftest.
$ac_ext <<_ACEOF
3804 cat confdefs.h
>>conftest.
$ac_ext
3805 cat >>conftest.
$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3807 #include <ac_nonexistent.h>
3809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3810 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3812 grep -v '^ *+' conftest.er1
>conftest.err
3814 cat conftest.err
>&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } >/dev
/null
; then
3817 if test -s conftest.err
; then
3818 ac_cpp_err
=$ac_c_preproc_warn_flag
3819 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3826 if test -z "$ac_cpp_err"; then
3827 # Broken: success on invalid input.
3830 echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.
$ac_ext >&5
3833 # Passes both tests.
3837 rm -f conftest.err conftest.
$ac_ext
3840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841 rm -f conftest.err conftest.
$ac_ext
3842 if $ac_preproc_ok; then
3845 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3846 See \`config.log' for more details." >&5
3847 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3848 See \`config.log' for more details." >&2;}
3849 { (exit 1); exit 1; }; }
3853 ac_cpp
='$CPP $CPPFLAGS'
3854 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3859 echo "$as_me:$LINENO: checking for egrep" >&5
3860 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3861 if test "${ac_cv_prog_egrep+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3865 then ac_cv_prog_egrep
='grep -E'
3866 else ac_cv_prog_egrep
='egrep'
3869 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3870 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3871 EGREP
=$ac_cv_prog_egrep
3874 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3875 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3876 if test "${ac_cv_header_stdc+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 cat >conftest.
$ac_ext <<_ACEOF
3882 cat confdefs.h
>>conftest.
$ac_ext
3883 cat >>conftest.
$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3898 rm -f conftest.
$ac_objext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3900 (eval $ac_compile) 2>conftest.er1
3902 grep -v '^ *+' conftest.er1
>conftest.err
3904 cat conftest.err
>&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } &&
3907 { ac_try
='test -z "$ac_c_werror_flag"
3908 || test ! -s conftest.err'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; } &&
3914 { ac_try
='test -s conftest.$ac_objext'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; }; then
3920 ac_cv_header_stdc
=yes
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.
$ac_ext >&5
3925 ac_cv_header_stdc
=no
3927 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3929 if test $ac_cv_header_stdc = yes; then
3930 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3931 cat >conftest.
$ac_ext <<_ACEOF
3934 cat confdefs.h
>>conftest.
$ac_ext
3935 cat >>conftest.
$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3941 $EGREP "memchr" >/dev
/null
2>&1; then
3944 ac_cv_header_stdc
=no
3950 if test $ac_cv_header_stdc = yes; then
3951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3952 cat >conftest.
$ac_ext <<_ACEOF
3955 cat confdefs.h
>>conftest.
$ac_ext
3956 cat >>conftest.
$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3962 $EGREP "free" >/dev
/null
2>&1; then
3965 ac_cv_header_stdc
=no
3971 if test $ac_cv_header_stdc = yes; then
3972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3973 if test "$cross_compiling" = yes; then
3976 cat >conftest.
$ac_ext <<_ACEOF
3979 cat confdefs.h
>>conftest.
$ac_ext
3980 cat >>conftest.
$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3983 #if ((' ' & 0x0FF) == 0x020)
3984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3987 # define ISLOWER(c) \
3988 (('a' <= (c) && (c) <= 'i') \
3989 || ('j' <= (c) && (c) <= 'r') \
3990 || ('s' <= (c) && (c) <= 'z'))
3991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3999 for (i = 0; i < 256; i++)
4000 if (XOR (islower (i), ISLOWER (i))
4001 || toupper (i) != TOUPPER (i))
4006 rm -f conftest
$ac_exeext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4008 (eval $ac_link) 2>&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4019 echo "$as_me: program exited with status $ac_status" >&5
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.
$ac_ext >&5
4024 ac_cv_header_stdc
=no
4026 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4030 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4031 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4032 if test $ac_cv_header_stdc = yes; then
4034 cat >>confdefs.h
<<\_ACEOF
4035 #define STDC_HEADERS 1
4040 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4050 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4051 inttypes.h stdint.h unistd.h
4053 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4054 echo "$as_me:$LINENO: checking for $ac_header" >&5
4055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 cat >conftest.
$ac_ext <<_ACEOF
4062 cat confdefs.h
>>conftest.
$ac_ext
4063 cat >>conftest.
$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4065 $ac_includes_default
4067 #include <$ac_header>
4069 rm -f conftest.
$ac_objext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071 (eval $ac_compile) 2>conftest.er1
4073 grep -v '^ *+' conftest.er1
>conftest.err
4075 cat conftest.err
>&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try
='test -z "$ac_c_werror_flag"
4079 || test ! -s conftest.err'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try
='test -s conftest.$ac_objext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4091 eval "$as_ac_Header=yes"
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.
$ac_ext >&5
4096 eval "$as_ac_Header=no"
4098 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4103 cat >>confdefs.h
<<_ACEOF
4104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4112 if test "${ac_cv_header_stdio_h+set}" = set; then
4113 echo "$as_me:$LINENO: checking for stdio.h" >&5
4114 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4115 if test "${ac_cv_header_stdio_h+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4119 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4121 # Is the header compilable?
4122 echo "$as_me:$LINENO: checking stdio.h usability" >&5
4123 echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
4124 cat >conftest.
$ac_ext <<_ACEOF
4127 cat confdefs.h
>>conftest.
$ac_ext
4128 cat >>conftest.
$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4130 $ac_includes_default
4133 rm -f conftest.
$ac_objext
4134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4135 (eval $ac_compile) 2>conftest.er1
4137 grep -v '^ *+' conftest.er1
>conftest.err
4139 cat conftest.err
>&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } &&
4142 { ac_try
='test -z "$ac_c_werror_flag"
4143 || test ! -s conftest.err'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; } &&
4149 { ac_try
='test -s conftest.$ac_objext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_header_compiler
=yes
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.
$ac_ext >&5
4160 ac_header_compiler
=no
4162 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4164 echo "${ECHO_T}$ac_header_compiler" >&6
4166 # Is the header present?
4167 echo "$as_me:$LINENO: checking stdio.h presence" >&5
4168 echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
4169 cat >conftest.
$ac_ext <<_ACEOF
4172 cat confdefs.h
>>conftest.
$ac_ext
4173 cat >>conftest.
$ac_ext <<_ACEOF
4174 /* end confdefs.h. */
4177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4178 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4180 grep -v '^ *+' conftest.er1
>conftest.err
4182 cat conftest.err
>&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } >/dev
/null
; then
4185 if test -s conftest.err
; then
4186 ac_cpp_err
=$ac_c_preproc_warn_flag
4187 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4194 if test -z "$ac_cpp_err"; then
4195 ac_header_preproc
=yes
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.
$ac_ext >&5
4200 ac_header_preproc
=no
4202 rm -f conftest.err conftest.
$ac_ext
4203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4204 echo "${ECHO_T}$ac_header_preproc" >&6
4206 # So? What about this header?
4207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4209 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4210 echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4211 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
4212 echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
4213 ac_header_preproc
=yes
4216 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
4217 echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
4218 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
4219 echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
4220 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
4221 echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
4222 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
4223 echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
4224 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
4225 echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
4226 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
4227 echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
4230 ## ------------------------------------ ##
4231 ## Report this to the libphobos lists. ##
4232 ## ------------------------------------ ##
4235 sed "s/^/$as_me: WARNING: /" >&2
4238 echo "$as_me:$LINENO: checking for stdio.h" >&5
4239 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4240 if test "${ac_cv_header_stdio_h+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 ac_cv_header_stdio_h
=$ac_header_preproc
4245 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4246 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4249 if test $ac_cv_header_stdio_h = yes; then
4252 { { echo "$as_me:$LINENO: error: can't find stdio.h." >&5
4253 echo "$as_me: error: can't find stdio.h." >&2;}
4254 { (exit 1); exit 1; }; }
4261 echo "$as_me:$LINENO: checking for sizeof(FILE)" >&5
4262 echo $ECHO_N "checking for sizeof(FILE)... $ECHO_C" >&6
4263 cat >conftest.
$ac_ext <<_ACEOF
4266 cat confdefs.h
>>conftest.
$ac_ext
4267 cat >>conftest.
$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4274 struct Test { int x: sizeof(FILE)>4; };
4279 rm -f conftest.
$ac_objext
4280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4281 (eval $ac_compile) 2>conftest.er1
4283 grep -v '^ *+' conftest.er1
>conftest.err
4285 cat conftest.err
>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } &&
4288 { ac_try
='test -z "$ac_c_werror_flag"
4289 || test ! -s conftest.err'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; } &&
4295 { ac_try
='test -s conftest.$ac_objext'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4301 echo "$as_me:$LINENO: result: yes" >&5
4302 echo "${ECHO_T}yes" >&6
4304 cat >>confdefs.h
<<\_ACEOF
4305 #define HAVE_SIZEOF_FILE 1
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.
$ac_ext >&5
4312 echo "$as_me:$LINENO: result: no" >&5
4313 echo "${ECHO_T}no" >&6
4315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4317 echo "$as_me:$LINENO: checking for sizeof(DIR)" >&5
4318 echo $ECHO_N "checking for sizeof(DIR)... $ECHO_C" >&6
4319 cat >conftest.
$ac_ext <<_ACEOF
4322 cat confdefs.h
>>conftest.
$ac_ext
4323 cat >>conftest.
$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4330 struct Test { int x: sizeof(DIR)>4; };
4335 rm -f conftest.
$ac_objext
4336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4337 (eval $ac_compile) 2>conftest.er1
4339 grep -v '^ *+' conftest.er1
>conftest.err
4341 cat conftest.err
>&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } &&
4344 { ac_try
='test -z "$ac_c_werror_flag"
4345 || test ! -s conftest.err'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; } &&
4351 { ac_try
='test -s conftest.$ac_objext'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4357 echo "$as_me:$LINENO: result: yes" >&5
4358 echo "${ECHO_T}yes" >&6
4360 cat >>confdefs.h
<<\_ACEOF
4361 #define HAVE_SIZEOF_DIR 1
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.
$ac_ext >&5
4368 echo "$as_me:$LINENO: result: no" >&5
4369 echo "${ECHO_T}no" >&6
4371 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4376 D_PREREQ_SRCS
='$(config_d_src) $(config_errno_d_src) $(config_libc_d_src) $(config_mathfuncs_d_src)'
4379 case "$target_cpu" in
4380 i
*86|powerpc
*|ppc
*|x86_64
) d_use_ieee_fpsb
=1 ;;
4381 *) d_use_ieee_fpsb
=0 ;;
4384 if test $d_use_ieee_fpsb -gt 0; then
4385 D_EXTRA_OBJS
="$D_EXTRA_OBJS internal/fpmath.o"
4388 DCFG_USE_IEEE_FPSB
=$d_use_ieee_fpsb
4391 if test "$with_newlib" = yes; then
4392 # TODO: there is some way to enable long double funcs in newlib so need to support that
4393 DCFG_LONG_DOUBLE_FUNCS
=config
/noldfuncs
4394 DCFG_SQRTF
=config
/sqrtf
4395 # TODO: newlib has trunc and exp2, but not log2 -- so configure all separately
4401 DCFG_EXP2_LOG2
="GNU_Need_exp2_log2"
4404 cat >>confdefs.h
<<\_ACEOF
4405 #define HAVE_FP_CLASSIFY_SIGNBIT 1
4408 D_EXTRA_OBJS
="$D_EXTRA_OBJS gcc/cbridge_math.o"
4409 D_PREREQ_SRCS
="$D_PREREQ_SRCS "'$(config_fpcls_d_src)'
4414 # Have getdelim, but it may not be unix (need ssize_t)... TODO
4415 DCFG_HAVE_GETDELIM
=0
4417 DCFG_HAVE_FGETLINE
=0
4418 DCFG_HAVE_UNLOCKED_STDIO
=0
4419 DCFG_HAVE_UNLOCKED_WIDE_STDIO
=$DCFG_HAVE_UNLOCKED_STDIO
4421 # NO HAVE_TM_GMTOFF_AND_ZONE
4424 cat >>confdefs.h
<<\_ACEOF
4425 #define HAVE__TIMEZONE 1
4431 echo "$as_me:$LINENO: checking for cos in -lm" >&5
4432 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
4433 if test "${ac_cv_lib_m_cos+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 ac_check_lib_save_LIBS
=$LIBS
4438 if test x
$gcc_no_link = xyes
; then
4439 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4440 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4441 { (exit 1); exit 1; }; }
4443 cat >conftest.
$ac_ext <<_ACEOF
4446 cat confdefs.h
>>conftest.
$ac_ext
4447 cat >>conftest.
$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4450 /* Override any gcc2 internal prototype to avoid an error. */
4454 /* We use char because int might match the return type of a gcc2
4455 builtin and then its argument prototype would still apply. */
4465 rm -f conftest.
$ac_objext conftest
$ac_exeext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4467 (eval $ac_link) 2>conftest.er1
4469 grep -v '^ *+' conftest.er1
>conftest.err
4471 cat conftest.err
>&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } &&
4474 { ac_try
='test -z "$ac_c_werror_flag"
4475 || test ! -s conftest.err'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; } &&
4481 { ac_try
='test -s conftest$ac_exeext'
4482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; }; then
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.
$ac_ext >&5
4494 rm -f conftest.err conftest.
$ac_objext \
4495 conftest
$ac_exeext conftest.
$ac_ext
4496 LIBS
=$ac_check_lib_save_LIBS
4498 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
4499 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
4500 if test $ac_cv_lib_m_cos = yes; then
4501 cat >>confdefs.h
<<_ACEOF
4510 case "$d_target_os" in
4512 echo "$as_me:$LINENO: checking for sqrtf in -lC" >&5
4513 echo $ECHO_N "checking for sqrtf in -lC... $ECHO_C" >&6
4514 if test "${ac_cv_lib_C_sqrtf+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 ac_check_lib_save_LIBS
=$LIBS
4519 if test x
$gcc_no_link = xyes
; then
4520 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4521 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4522 { (exit 1); exit 1; }; }
4524 cat >conftest.
$ac_ext <<_ACEOF
4527 cat confdefs.h
>>conftest.
$ac_ext
4528 cat >>conftest.
$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4531 /* Override any gcc2 internal prototype to avoid an error. */
4535 /* We use char because int might match the return type of a gcc2
4536 builtin and then its argument prototype would still apply. */
4546 rm -f conftest.
$ac_objext conftest
$ac_exeext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548 (eval $ac_link) 2>conftest.er1
4550 grep -v '^ *+' conftest.er1
>conftest.err
4552 cat conftest.err
>&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } &&
4555 { ac_try
='test -z "$ac_c_werror_flag"
4556 || test ! -s conftest.err'
4557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; } &&
4562 { ac_try
='test -s conftest$ac_exeext'
4563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; }; then
4568 ac_cv_lib_C_sqrtf
=yes
4570 echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.
$ac_ext >&5
4573 ac_cv_lib_C_sqrtf
=no
4575 rm -f conftest.err conftest.
$ac_objext \
4576 conftest
$ac_exeext conftest.
$ac_ext
4577 LIBS
=$ac_check_lib_save_LIBS
4579 echo "$as_me:$LINENO: result: $ac_cv_lib_C_sqrtf" >&5
4580 echo "${ECHO_T}$ac_cv_lib_C_sqrtf" >&6
4581 if test $ac_cv_lib_C_sqrtf = yes; then
4582 cat >>confdefs.h
<<_ACEOF
4592 case "$target_os" in
4593 darwin6
*) DCFG_LONG_DOUBLE_FUNCS
=config
/noldfuncs
;;
4594 darwin
*) DCFG_LONG_DOUBLE_FUNCS
=config
/ldfuncs-darwin
;;
4596 case "$target_cpu" in
4598 DCFG_LONG_DOUBLE_FUNCS
=config
/ldfuncs-ppclinux
4599 # Libc without nldbl not supported...
4600 echo "$as_me:$LINENO: checking for __nldbl_printf" >&5
4601 echo $ECHO_N "checking for __nldbl_printf... $ECHO_C" >&6
4602 if test "${ac_cv_func___nldbl_printf+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 if test x
$gcc_no_link = xyes
; then
4606 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4607 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4608 { (exit 1); exit 1; }; }
4610 cat >conftest.
$ac_ext <<_ACEOF
4613 cat confdefs.h
>>conftest.
$ac_ext
4614 cat >>conftest.
$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 /* Define __nldbl_printf to an innocuous variant, in case <limits.h> declares __nldbl_printf.
4617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4618 #define __nldbl_printf innocuous___nldbl_printf
4620 /* System header to define __stub macros and hopefully few prototypes,
4621 which can conflict with char __nldbl_printf (); below.
4622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4623 <limits.h> exists even on freestanding compilers. */
4626 # include <limits.h>
4628 # include <assert.h>
4631 #undef __nldbl_printf
4633 /* Override any gcc2 internal prototype to avoid an error. */
4638 /* We use char because int might match the return type of a gcc2
4639 builtin and then its argument prototype would still apply. */
4640 char __nldbl_printf ();
4641 /* The GNU C library defines this for functions which it implements
4642 to always fail with ENOSYS. Some functions are actually named
4643 something starting with __ and the normal name is an alias. */
4644 #if defined (__stub___nldbl_printf) || defined (__stub_____nldbl_printf)
4647 char (*f) () = __nldbl_printf;
4656 return f != __nldbl_printf;
4661 rm -f conftest.
$ac_objext conftest
$ac_exeext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4663 (eval $ac_link) 2>conftest.er1
4665 grep -v '^ *+' conftest.er1
>conftest.err
4667 cat conftest.err
>&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try
='test -z "$ac_c_werror_flag"
4671 || test ! -s conftest.err'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; } &&
4677 { ac_try
='test -s conftest$ac_exeext'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4683 ac_cv_func___nldbl_printf
=yes
4685 echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.
$ac_ext >&5
4688 ac_cv_func___nldbl_printf
=no
4690 rm -f conftest.err conftest.
$ac_objext \
4691 conftest
$ac_exeext conftest.
$ac_ext
4693 echo "$as_me:$LINENO: result: $ac_cv_func___nldbl_printf" >&5
4694 echo "${ECHO_T}$ac_cv_func___nldbl_printf" >&6
4695 if test $ac_cv_func___nldbl_printf = yes; then
4696 d_have_nldbl_funcs
=1
4701 if test "$d_have_nldbl_funcs" = 1; then
4708 if test -z "$DCFG_LONG_DOUBLE_FUNCS"; then
4709 echo "$as_me:$LINENO: checking for acosl" >&5
4710 echo $ECHO_N "checking for acosl... $ECHO_C" >&6
4711 if test "${ac_cv_func_acosl+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 if test x
$gcc_no_link = xyes
; then
4715 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4716 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4717 { (exit 1); exit 1; }; }
4719 cat >conftest.
$ac_ext <<_ACEOF
4722 cat confdefs.h
>>conftest.
$ac_ext
4723 cat >>conftest.
$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 /* Define acosl to an innocuous variant, in case <limits.h> declares acosl.
4726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4727 #define acosl innocuous_acosl
4729 /* System header to define __stub macros and hopefully few prototypes,
4730 which can conflict with char acosl (); below.
4731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4732 <limits.h> exists even on freestanding compilers. */
4735 # include <limits.h>
4737 # include <assert.h>
4742 /* Override any gcc2 internal prototype to avoid an error. */
4747 /* We use char because int might match the return type of a gcc2
4748 builtin and then its argument prototype would still apply. */
4750 /* The GNU C library defines this for functions which it implements
4751 to always fail with ENOSYS. Some functions are actually named
4752 something starting with __ and the normal name is an alias. */
4753 #if defined (__stub_acosl) || defined (__stub___acosl)
4756 char (*f) () = acosl;
4770 rm -f conftest.
$ac_objext conftest
$ac_exeext
4771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4772 (eval $ac_link) 2>conftest.er1
4774 grep -v '^ *+' conftest.er1
>conftest.err
4776 cat conftest.err
>&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } &&
4779 { ac_try
='test -z "$ac_c_werror_flag"
4780 || test ! -s conftest.err'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; } &&
4786 { ac_try
='test -s conftest$ac_exeext'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; }; then
4792 ac_cv_func_acosl
=yes
4794 echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.
$ac_ext >&5
4799 rm -f conftest.err conftest.
$ac_objext \
4800 conftest
$ac_exeext conftest.
$ac_ext
4802 echo "$as_me:$LINENO: result: $ac_cv_func_acosl" >&5
4803 echo "${ECHO_T}$ac_cv_func_acosl" >&6
4804 if test $ac_cv_func_acosl = yes; then
4810 echo "$as_me:$LINENO: checking for truncl" >&5
4811 echo $ECHO_N "checking for truncl... $ECHO_C" >&6
4812 if test "${ac_cv_func_truncl+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 if test x
$gcc_no_link = xyes
; then
4816 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4817 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4818 { (exit 1); exit 1; }; }
4820 cat >conftest.
$ac_ext <<_ACEOF
4823 cat confdefs.h
>>conftest.
$ac_ext
4824 cat >>conftest.
$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 /* Define truncl to an innocuous variant, in case <limits.h> declares truncl.
4827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4828 #define truncl innocuous_truncl
4830 /* System header to define __stub macros and hopefully few prototypes,
4831 which can conflict with char truncl (); below.
4832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4833 <limits.h> exists even on freestanding compilers. */
4836 # include <limits.h>
4838 # include <assert.h>
4843 /* Override any gcc2 internal prototype to avoid an error. */
4848 /* We use char because int might match the return type of a gcc2
4849 builtin and then its argument prototype would still apply. */
4851 /* The GNU C library defines this for functions which it implements
4852 to always fail with ENOSYS. Some functions are actually named
4853 something starting with __ and the normal name is an alias. */
4854 #if defined (__stub_truncl) || defined (__stub___truncl)
4857 char (*f) () = truncl;
4871 rm -f conftest.
$ac_objext conftest
$ac_exeext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4873 (eval $ac_link) 2>conftest.er1
4875 grep -v '^ *+' conftest.er1
>conftest.err
4877 cat conftest.err
>&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } &&
4880 { ac_try
='test -z "$ac_c_werror_flag"
4881 || test ! -s conftest.err'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; } &&
4887 { ac_try
='test -s conftest$ac_exeext'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 ac_cv_func_truncl
=yes
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.
$ac_ext >&5
4898 ac_cv_func_truncl
=no
4900 rm -f conftest.err conftest.
$ac_objext \
4901 conftest
$ac_exeext conftest.
$ac_ext
4903 echo "$as_me:$LINENO: result: $ac_cv_func_truncl" >&5
4904 echo "${ECHO_T}$ac_cv_func_truncl" >&6
4905 if test $ac_cv_func_truncl = yes; then
4911 if test "${have_ldf_a}${have_ldf_b}" = "11"; then
4912 DCFG_LONG_DOUBLE_FUNCS
=config
/ldfuncs
4914 DCFG_LONG_DOUBLE_FUNCS
=config
/noldfuncs
4916 DCFG_LONG_DOUBLE_FUNCS
="$DCFG_LONG_DOUBLE_FUNCS"
4919 # on darwin, we don't seem to have sqrtf, even though it's in math.h
4920 echo "$as_me:$LINENO: checking for sqrtf" >&5
4921 echo $ECHO_N "checking for sqrtf... $ECHO_C" >&6
4922 if test "${ac_cv_func_sqrtf+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 if test x
$gcc_no_link = xyes
; then
4926 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4927 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4928 { (exit 1); exit 1; }; }
4930 cat >conftest.
$ac_ext <<_ACEOF
4933 cat confdefs.h
>>conftest.
$ac_ext
4934 cat >>conftest.
$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4936 /* Define sqrtf to an innocuous variant, in case <limits.h> declares sqrtf.
4937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4938 #define sqrtf innocuous_sqrtf
4940 /* System header to define __stub macros and hopefully few prototypes,
4941 which can conflict with char sqrtf (); below.
4942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4943 <limits.h> exists even on freestanding compilers. */
4946 # include <limits.h>
4948 # include <assert.h>
4953 /* Override any gcc2 internal prototype to avoid an error. */
4958 /* We use char because int might match the return type of a gcc2
4959 builtin and then its argument prototype would still apply. */
4961 /* The GNU C library defines this for functions which it implements
4962 to always fail with ENOSYS. Some functions are actually named
4963 something starting with __ and the normal name is an alias. */
4964 #if defined (__stub_sqrtf) || defined (__stub___sqrtf)
4967 char (*f) () = sqrtf;
4981 rm -f conftest.
$ac_objext conftest
$ac_exeext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4983 (eval $ac_link) 2>conftest.er1
4985 grep -v '^ *+' conftest.er1
>conftest.err
4987 cat conftest.err
>&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try
='test -z "$ac_c_werror_flag"
4991 || test ! -s conftest.err'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; } &&
4997 { ac_try
='test -s conftest$ac_exeext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5003 ac_cv_func_sqrtf
=yes
5005 echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.
$ac_ext >&5
5010 rm -f conftest.err conftest.
$ac_objext \
5011 conftest
$ac_exeext conftest.
$ac_ext
5013 echo "$as_me:$LINENO: result: $ac_cv_func_sqrtf" >&5
5014 echo "${ECHO_T}$ac_cv_func_sqrtf" >&6
5015 if test $ac_cv_func_sqrtf = yes; then
5016 DCFG_SQRTF
=config
/sqrtf
5018 DCFG_SQRTF
=config
/nosqrtf
5022 # on freebsd, trunc,exp2,log2 are not provided
5023 # This is "need" and not "have" to mesh better with non-GNU. Othrewise, it
5024 # would be version(GNU)version(GNU_Have_trunc)....
5025 echo "$as_me:$LINENO: checking for trunc" >&5
5026 echo $ECHO_N "checking for trunc... $ECHO_C" >&6
5027 if test "${ac_cv_func_trunc+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 if test x
$gcc_no_link = xyes
; then
5031 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5032 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5033 { (exit 1); exit 1; }; }
5035 cat >conftest.
$ac_ext <<_ACEOF
5038 cat confdefs.h
>>conftest.
$ac_ext
5039 cat >>conftest.
$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 /* Define trunc to an innocuous variant, in case <limits.h> declares trunc.
5042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5043 #define trunc innocuous_trunc
5045 /* System header to define __stub macros and hopefully few prototypes,
5046 which can conflict with char trunc (); below.
5047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5048 <limits.h> exists even on freestanding compilers. */
5051 # include <limits.h>
5053 # include <assert.h>
5058 /* Override any gcc2 internal prototype to avoid an error. */
5063 /* We use char because int might match the return type of a gcc2
5064 builtin and then its argument prototype would still apply. */
5066 /* The GNU C library defines this for functions which it implements
5067 to always fail with ENOSYS. Some functions are actually named
5068 something starting with __ and the normal name is an alias. */
5069 #if defined (__stub_trunc) || defined (__stub___trunc)
5072 char (*f) () = trunc;
5086 rm -f conftest.
$ac_objext conftest
$ac_exeext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5088 (eval $ac_link) 2>conftest.er1
5090 grep -v '^ *+' conftest.er1
>conftest.err
5092 cat conftest.err
>&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try
='test -z "$ac_c_werror_flag"
5096 || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try
='test -s conftest$ac_exeext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_cv_func_trunc
=yes
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.
$ac_ext >&5
5115 rm -f conftest.err conftest.
$ac_objext \
5116 conftest
$ac_exeext conftest.
$ac_ext
5118 echo "$as_me:$LINENO: result: $ac_cv_func_trunc" >&5
5119 echo "${ECHO_T}$ac_cv_func_trunc" >&6
5120 if test $ac_cv_func_trunc = yes; then
5123 DCFG_TRUNC
="GNU_Need_trunc"
5128 echo "$as_me:$LINENO: checking for nearbyint" >&5
5129 echo $ECHO_N "checking for nearbyint... $ECHO_C" >&6
5130 if test "${ac_cv_func_nearbyint+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 if test x
$gcc_no_link = xyes
; then
5134 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5135 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5136 { (exit 1); exit 1; }; }
5138 cat >conftest.
$ac_ext <<_ACEOF
5141 cat confdefs.h
>>conftest.
$ac_ext
5142 cat >>conftest.
$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 /* Define nearbyint to an innocuous variant, in case <limits.h> declares nearbyint.
5145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5146 #define nearbyint innocuous_nearbyint
5148 /* System header to define __stub macros and hopefully few prototypes,
5149 which can conflict with char nearbyint (); below.
5150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5151 <limits.h> exists even on freestanding compilers. */
5154 # include <limits.h>
5156 # include <assert.h>
5161 /* Override any gcc2 internal prototype to avoid an error. */
5166 /* We use char because int might match the return type of a gcc2
5167 builtin and then its argument prototype would still apply. */
5169 /* The GNU C library defines this for functions which it implements
5170 to always fail with ENOSYS. Some functions are actually named
5171 something starting with __ and the normal name is an alias. */
5172 #if defined (__stub_nearbyint) || defined (__stub___nearbyint)
5175 char (*f) () = nearbyint;
5184 return f != nearbyint;
5189 rm -f conftest.
$ac_objext conftest
$ac_exeext
5190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5191 (eval $ac_link) 2>conftest.er1
5193 grep -v '^ *+' conftest.er1
>conftest.err
5195 cat conftest.err
>&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } &&
5198 { ac_try
='test -z "$ac_c_werror_flag"
5199 || test ! -s conftest.err'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; } &&
5205 { ac_try
='test -s conftest$ac_exeext'
5206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }; }; then
5211 ac_cv_func_nearbyint
=yes
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.
$ac_ext >&5
5216 ac_cv_func_nearbyint
=no
5218 rm -f conftest.err conftest.
$ac_objext \
5219 conftest
$ac_exeext conftest.
$ac_ext
5221 echo "$as_me:$LINENO: result: $ac_cv_func_nearbyint" >&5
5222 echo "${ECHO_T}$ac_cv_func_nearbyint" >&6
5223 if test $ac_cv_func_nearbyint = yes; then
5226 DCFG_NEARBYINT
="GNU_Need_nearbyint"
5231 echo "$as_me:$LINENO: checking for round" >&5
5232 echo $ECHO_N "checking for round... $ECHO_C" >&6
5233 if test "${ac_cv_func_round+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 if test x
$gcc_no_link = xyes
; then
5237 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5238 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5239 { (exit 1); exit 1; }; }
5241 cat >conftest.
$ac_ext <<_ACEOF
5244 cat confdefs.h
>>conftest.
$ac_ext
5245 cat >>conftest.
$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5247 /* Define round to an innocuous variant, in case <limits.h> declares round.
5248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5249 #define round innocuous_round
5251 /* System header to define __stub macros and hopefully few prototypes,
5252 which can conflict with char round (); below.
5253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5254 <limits.h> exists even on freestanding compilers. */
5257 # include <limits.h>
5259 # include <assert.h>
5264 /* Override any gcc2 internal prototype to avoid an error. */
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5272 /* The GNU C library defines this for functions which it implements
5273 to always fail with ENOSYS. Some functions are actually named
5274 something starting with __ and the normal name is an alias. */
5275 #if defined (__stub_round) || defined (__stub___round)
5278 char (*f) () = round;
5292 rm -f conftest.
$ac_objext conftest
$ac_exeext
5293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5294 (eval $ac_link) 2>conftest.er1
5296 grep -v '^ *+' conftest.er1
>conftest.err
5298 cat conftest.err
>&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try
='test -z "$ac_c_werror_flag"
5302 || test ! -s conftest.err'
5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; } &&
5308 { ac_try
='test -s conftest$ac_exeext'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; }; then
5314 ac_cv_func_round
=yes
5316 echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.
$ac_ext >&5
5321 rm -f conftest.err conftest.
$ac_objext \
5322 conftest
$ac_exeext conftest.
$ac_ext
5324 echo "$as_me:$LINENO: result: $ac_cv_func_round" >&5
5325 echo "${ECHO_T}$ac_cv_func_round" >&6
5326 if test $ac_cv_func_round = yes; then
5329 DCFG_ROUND
="GNU_Need_round"
5334 echo "$as_me:$LINENO: checking for tgamma" >&5
5335 echo $ECHO_N "checking for tgamma... $ECHO_C" >&6
5336 if test "${ac_cv_func_tgamma+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 if test x
$gcc_no_link = xyes
; then
5340 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5341 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5342 { (exit 1); exit 1; }; }
5344 cat >conftest.
$ac_ext <<_ACEOF
5347 cat confdefs.h
>>conftest.
$ac_ext
5348 cat >>conftest.
$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 /* Define tgamma to an innocuous variant, in case <limits.h> declares tgamma.
5351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5352 #define tgamma innocuous_tgamma
5354 /* System header to define __stub macros and hopefully few prototypes,
5355 which can conflict with char tgamma (); below.
5356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5357 <limits.h> exists even on freestanding compilers. */
5360 # include <limits.h>
5362 # include <assert.h>
5367 /* Override any gcc2 internal prototype to avoid an error. */
5372 /* We use char because int might match the return type of a gcc2
5373 builtin and then its argument prototype would still apply. */
5375 /* The GNU C library defines this for functions which it implements
5376 to always fail with ENOSYS. Some functions are actually named
5377 something starting with __ and the normal name is an alias. */
5378 #if defined (__stub_tgamma) || defined (__stub___tgamma)
5381 char (*f) () = tgamma;
5395 rm -f conftest.
$ac_objext conftest
$ac_exeext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5397 (eval $ac_link) 2>conftest.er1
5399 grep -v '^ *+' conftest.er1
>conftest.err
5401 cat conftest.err
>&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try
='test -z "$ac_c_werror_flag"
5405 || test ! -s conftest.err'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; } &&
5411 { ac_try
='test -s conftest$ac_exeext'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5417 ac_cv_func_tgamma
=yes
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.
$ac_ext >&5
5422 ac_cv_func_tgamma
=no
5424 rm -f conftest.err conftest.
$ac_objext \
5425 conftest
$ac_exeext conftest.
$ac_ext
5427 echo "$as_me:$LINENO: result: $ac_cv_func_tgamma" >&5
5428 echo "${ECHO_T}$ac_cv_func_tgamma" >&6
5429 if test $ac_cv_func_tgamma = yes; then
5433 DCFG_TGAMMA
="GNU_Need_tgamma"
5434 D_EXTRA_OBJS
="$D_EXTRA_OBJS etc/gamma.o"
5440 echo "$as_me:$LINENO: checking for nan" >&5
5441 echo $ECHO_N "checking for nan... $ECHO_C" >&6
5442 if test "${ac_cv_func_nan+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 if test x
$gcc_no_link = xyes
; then
5446 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5447 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5448 { (exit 1); exit 1; }; }
5450 cat >conftest.
$ac_ext <<_ACEOF
5453 cat confdefs.h
>>conftest.
$ac_ext
5454 cat >>conftest.
$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 /* Define nan to an innocuous variant, in case <limits.h> declares nan.
5457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5458 #define nan innocuous_nan
5460 /* System header to define __stub macros and hopefully few prototypes,
5461 which can conflict with char nan (); below.
5462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5463 <limits.h> exists even on freestanding compilers. */
5466 # include <limits.h>
5468 # include <assert.h>
5473 /* Override any gcc2 internal prototype to avoid an error. */
5478 /* We use char because int might match the return type of a gcc2
5479 builtin and then its argument prototype would still apply. */
5481 /* The GNU C library defines this for functions which it implements
5482 to always fail with ENOSYS. Some functions are actually named
5483 something starting with __ and the normal name is an alias. */
5484 #if defined (__stub_nan) || defined (__stub___nan)
5501 rm -f conftest.
$ac_objext conftest
$ac_exeext
5502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5503 (eval $ac_link) 2>conftest.er1
5505 grep -v '^ *+' conftest.er1
>conftest.err
5507 cat conftest.err
>&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } &&
5510 { ac_try
='test -z "$ac_c_werror_flag"
5511 || test ! -s conftest.err'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; } &&
5517 { ac_try
='test -s conftest$ac_exeext'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; }; then
5525 echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.
$ac_ext >&5
5530 rm -f conftest.err conftest.
$ac_objext \
5531 conftest
$ac_exeext conftest.
$ac_ext
5533 echo "$as_me:$LINENO: result: $ac_cv_func_nan" >&5
5534 echo "${ECHO_T}$ac_cv_func_nan" >&6
5535 if test $ac_cv_func_nan = yes; then
5538 DCFG_NAN
="GNU_Need_nan"
5545 for ac_func
in exp2 log2
5547 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5548 echo "$as_me:$LINENO: checking for $ac_func" >&5
5549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5550 if eval "test \"\${$as_ac_var+set}\" = set"; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 if test x
$gcc_no_link = xyes
; then
5554 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5555 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5556 { (exit 1); exit 1; }; }
5558 cat >conftest.
$ac_ext <<_ACEOF
5561 cat confdefs.h
>>conftest.
$ac_ext
5562 cat >>conftest.
$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5566 #define $ac_func innocuous_$ac_func
5568 /* System header to define __stub macros and hopefully few prototypes,
5569 which can conflict with char $ac_func (); below.
5570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5571 <limits.h> exists even on freestanding compilers. */
5574 # include <limits.h>
5576 # include <assert.h>
5581 /* Override any gcc2 internal prototype to avoid an error. */
5586 /* We use char because int might match the return type of a gcc2
5587 builtin and then its argument prototype would still apply. */
5589 /* The GNU C library defines this for functions which it implements
5590 to always fail with ENOSYS. Some functions are actually named
5591 something starting with __ and the normal name is an alias. */
5592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5595 char (*f) () = $ac_func;
5604 return f != $ac_func;
5609 rm -f conftest.
$ac_objext conftest
$ac_exeext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5611 (eval $ac_link) 2>conftest.er1
5613 grep -v '^ *+' conftest.er1
>conftest.err
5615 cat conftest.err
>&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } &&
5618 { ac_try
='test -z "$ac_c_werror_flag"
5619 || test ! -s conftest.err'
5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; } &&
5625 { ac_try
='test -s conftest$ac_exeext'
5626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }; }; then
5631 eval "$as_ac_var=yes"
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.
$ac_ext >&5
5636 eval "$as_ac_var=no"
5638 rm -f conftest.err conftest.
$ac_objext \
5639 conftest
$ac_exeext conftest.
$ac_ext
5641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5643 if test `eval echo '${'$as_ac_var'}'` = yes; then
5644 cat >>confdefs.h
<<_ACEOF
5645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5653 if test "$ac_cv_func_exp2" = "yes" && test "$ac_cv_func_log2" = "yes"; then
5656 DCFG_EXP2_LOG2
="GNU_Need_exp2_log2"
5660 echo "$as_me:$LINENO: checking for fpclassify and signbit" >&5
5661 echo $ECHO_N "checking for fpclassify and signbit... $ECHO_C" >&6
5662 cat >conftest.
$ac_ext <<_ACEOF
5665 cat confdefs.h
>>conftest.
$ac_ext
5666 cat >>conftest.
$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5670 static void fpclassify(int x, int y) { }
5673 static void signbit(int x, int y) { }
5679 int x = fpclassify(4.2);
5680 int y = signbit(1.1);
5681 int z = FP_NAN + FP_INFINITE + FP_ZERO + FP_SUBNORMAL + FP_NORMAL;
5686 rm -f conftest.
$ac_objext
5687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5688 (eval $ac_compile) 2>conftest.er1
5690 grep -v '^ *+' conftest.er1
>conftest.err
5692 cat conftest.err
>&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } &&
5695 { ac_try
='test -z "$ac_c_werror_flag"
5696 || test ! -s conftest.err'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; } &&
5702 { ac_try
='test -s conftest.$ac_objext'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 echo "$as_me:$LINENO: result: yes" >&5
5709 echo "${ECHO_T}yes" >&6
5712 echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.
$ac_ext >&5
5715 echo "$as_me:$LINENO: result: no" >&5
5716 echo "${ECHO_T}no" >&6
5718 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5720 # Currently can only have either itnernal/fpmath or gcc/cbridge_math
5721 if test $d_use_ieee_fpsb -eq 0; then
5722 if test -n "$d_have_fpsb"; then
5724 cat >>confdefs.h
<<\_ACEOF
5725 #define HAVE_FP_CLASSIFY_SIGNBIT 1
5728 D_EXTRA_OBJS
="$D_EXTRA_OBJS gcc/cbridge_math.o"
5729 D_PREREQ_SRCS
="$D_PREREQ_SRCS "'$(config_fpcls_d_src)'
5733 # no expm1 on mingw (msvcrt)
5734 # AC_CHECK_FUNCS(expm1,DCFG_EXPM1="",DCFG_EXPM1="GNU_Need_expm1")
5735 # AC_SUBST(DCFG_EXPM1)
5738 echo "$as_me:$LINENO: checking for execvpe" >&5
5739 echo $ECHO_N "checking for execvpe... $ECHO_C" >&6
5740 if test "${ac_cv_func_execvpe+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 if test x
$gcc_no_link = xyes
; then
5744 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5745 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5746 { (exit 1); exit 1; }; }
5748 cat >conftest.
$ac_ext <<_ACEOF
5751 cat confdefs.h
>>conftest.
$ac_ext
5752 cat >>conftest.
$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5754 /* Define execvpe to an innocuous variant, in case <limits.h> declares execvpe.
5755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5756 #define execvpe innocuous_execvpe
5758 /* System header to define __stub macros and hopefully few prototypes,
5759 which can conflict with char execvpe (); below.
5760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5761 <limits.h> exists even on freestanding compilers. */
5764 # include <limits.h>
5766 # include <assert.h>
5771 /* Override any gcc2 internal prototype to avoid an error. */
5776 /* We use char because int might match the return type of a gcc2
5777 builtin and then its argument prototype would still apply. */
5779 /* The GNU C library defines this for functions which it implements
5780 to always fail with ENOSYS. Some functions are actually named
5781 something starting with __ and the normal name is an alias. */
5782 #if defined (__stub_execvpe) || defined (__stub___execvpe)
5785 char (*f) () = execvpe;
5794 return f != execvpe;
5799 rm -f conftest.
$ac_objext conftest
$ac_exeext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5801 (eval $ac_link) 2>conftest.er1
5803 grep -v '^ *+' conftest.er1
>conftest.err
5805 cat conftest.err
>&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try
='test -z "$ac_c_werror_flag"
5809 || test ! -s conftest.err'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try
='test -s conftest$ac_exeext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5821 ac_cv_func_execvpe
=yes
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.
$ac_ext >&5
5826 ac_cv_func_execvpe
=no
5828 rm -f conftest.err conftest.
$ac_objext \
5829 conftest
$ac_exeext conftest.
$ac_ext
5831 echo "$as_me:$LINENO: result: $ac_cv_func_execvpe" >&5
5832 echo "${ECHO_T}$ac_cv_func_execvpe" >&6
5833 if test $ac_cv_func_execvpe = yes; then
5836 DCFG_EXECVPE
="GNU_Need_execvpe"
5841 echo "$as_me:$LINENO: checking for spawnvp" >&5
5842 echo $ECHO_N "checking for spawnvp... $ECHO_C" >&6
5843 if test "${ac_cv_func_spawnvp+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 if test x
$gcc_no_link = xyes
; then
5847 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5848 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5849 { (exit 1); exit 1; }; }
5851 cat >conftest.
$ac_ext <<_ACEOF
5854 cat confdefs.h
>>conftest.
$ac_ext
5855 cat >>conftest.
$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 /* Define spawnvp to an innocuous variant, in case <limits.h> declares spawnvp.
5858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5859 #define spawnvp innocuous_spawnvp
5861 /* System header to define __stub macros and hopefully few prototypes,
5862 which can conflict with char spawnvp (); below.
5863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5864 <limits.h> exists even on freestanding compilers. */
5867 # include <limits.h>
5869 # include <assert.h>
5874 /* Override any gcc2 internal prototype to avoid an error. */
5879 /* We use char because int might match the return type of a gcc2
5880 builtin and then its argument prototype would still apply. */
5882 /* The GNU C library defines this for functions which it implements
5883 to always fail with ENOSYS. Some functions are actually named
5884 something starting with __ and the normal name is an alias. */
5885 #if defined (__stub_spawnvp) || defined (__stub___spawnvp)
5888 char (*f) () = spawnvp;
5897 return f != spawnvp;
5902 rm -f conftest.
$ac_objext conftest
$ac_exeext
5903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5904 (eval $ac_link) 2>conftest.er1
5906 grep -v '^ *+' conftest.er1
>conftest.err
5908 cat conftest.err
>&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try
='test -z "$ac_c_werror_flag"
5912 || test ! -s conftest.err'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; } &&
5918 { ac_try
='test -s conftest$ac_exeext'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5924 ac_cv_func_spawnvp
=yes
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.
$ac_ext >&5
5929 ac_cv_func_spawnvp
=no
5931 rm -f conftest.err conftest.
$ac_objext \
5932 conftest
$ac_exeext conftest.
$ac_ext
5934 echo "$as_me:$LINENO: result: $ac_cv_func_spawnvp" >&5
5935 echo "${ECHO_T}$ac_cv_func_spawnvp" >&6
5936 if test $ac_cv_func_spawnvp = yes; then
5939 DCFG_SPAWNVP
="GNU_Need_spawnvp"
5944 echo "$as_me:$LINENO: checking for fwide" >&5
5945 echo $ECHO_N "checking for fwide... $ECHO_C" >&6
5946 if test "${ac_cv_func_fwide+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 if test x
$gcc_no_link = xyes
; then
5950 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5951 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5952 { (exit 1); exit 1; }; }
5954 cat >conftest.
$ac_ext <<_ACEOF
5957 cat confdefs.h
>>conftest.
$ac_ext
5958 cat >>conftest.
$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 /* Define fwide to an innocuous variant, in case <limits.h> declares fwide.
5961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5962 #define fwide innocuous_fwide
5964 /* System header to define __stub macros and hopefully few prototypes,
5965 which can conflict with char fwide (); below.
5966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5967 <limits.h> exists even on freestanding compilers. */
5970 # include <limits.h>
5972 # include <assert.h>
5977 /* Override any gcc2 internal prototype to avoid an error. */
5982 /* We use char because int might match the return type of a gcc2
5983 builtin and then its argument prototype would still apply. */
5985 /* The GNU C library defines this for functions which it implements
5986 to always fail with ENOSYS. Some functions are actually named
5987 something starting with __ and the normal name is an alias. */
5988 #if defined (__stub_fwide) || defined (__stub___fwide)
5991 char (*f) () = fwide;
6005 rm -f conftest.
$ac_objext conftest
$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 (eval $ac_link) 2>conftest.er1
6009 grep -v '^ *+' conftest.er1
>conftest.err
6011 cat conftest.err
>&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } &&
6014 { ac_try
='test -z "$ac_c_werror_flag"
6015 || test ! -s conftest.err'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; } &&
6021 { ac_try
='test -s conftest$ac_exeext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 ac_cv_func_fwide
=yes
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.
$ac_ext >&5
6034 rm -f conftest.err conftest.
$ac_objext \
6035 conftest
$ac_exeext conftest.
$ac_ext
6037 echo "$as_me:$LINENO: result: $ac_cv_func_fwide" >&5
6038 echo "${ECHO_T}$ac_cv_func_fwide" >&6
6039 if test $ac_cv_func_fwide = yes; then
6047 echo "$as_me:$LINENO: checking for getdelim" >&5
6048 echo $ECHO_N "checking for getdelim... $ECHO_C" >&6
6049 if test "${ac_cv_func_getdelim+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 if test x
$gcc_no_link = xyes
; then
6053 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6054 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6055 { (exit 1); exit 1; }; }
6057 cat >conftest.
$ac_ext <<_ACEOF
6060 cat confdefs.h
>>conftest.
$ac_ext
6061 cat >>conftest.
$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 /* Define getdelim to an innocuous variant, in case <limits.h> declares getdelim.
6064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6065 #define getdelim innocuous_getdelim
6067 /* System header to define __stub macros and hopefully few prototypes,
6068 which can conflict with char getdelim (); below.
6069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6070 <limits.h> exists even on freestanding compilers. */
6073 # include <limits.h>
6075 # include <assert.h>
6080 /* Override any gcc2 internal prototype to avoid an error. */
6085 /* We use char because int might match the return type of a gcc2
6086 builtin and then its argument prototype would still apply. */
6088 /* The GNU C library defines this for functions which it implements
6089 to always fail with ENOSYS. Some functions are actually named
6090 something starting with __ and the normal name is an alias. */
6091 #if defined (__stub_getdelim) || defined (__stub___getdelim)
6094 char (*f) () = getdelim;
6103 return f != getdelim;
6108 rm -f conftest.
$ac_objext conftest
$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>conftest.er1
6112 grep -v '^ *+' conftest.er1
>conftest.err
6114 cat conftest.err
>&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } &&
6117 { ac_try
='test -z "$ac_c_werror_flag"
6118 || test ! -s conftest.err'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; } &&
6124 { ac_try
='test -s conftest$ac_exeext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 ac_cv_func_getdelim
=yes
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.
$ac_ext >&5
6135 ac_cv_func_getdelim
=no
6137 rm -f conftest.err conftest.
$ac_objext \
6138 conftest
$ac_exeext conftest.
$ac_ext
6140 echo "$as_me:$LINENO: result: $ac_cv_func_getdelim" >&5
6141 echo "${ECHO_T}$ac_cv_func_getdelim" >&6
6142 if test $ac_cv_func_getdelim = yes; then
6143 DCFG_HAVE_GETDELIM
=1
6145 DCFG_HAVE_GETDELIM
=0
6150 echo "$as_me:$LINENO: checking for fgetln" >&5
6151 echo $ECHO_N "checking for fgetln... $ECHO_C" >&6
6152 if test "${ac_cv_func_fgetln+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 if test x
$gcc_no_link = xyes
; then
6156 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6157 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6158 { (exit 1); exit 1; }; }
6160 cat >conftest.
$ac_ext <<_ACEOF
6163 cat confdefs.h
>>conftest.
$ac_ext
6164 cat >>conftest.
$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6166 /* Define fgetln to an innocuous variant, in case <limits.h> declares fgetln.
6167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6168 #define fgetln innocuous_fgetln
6170 /* System header to define __stub macros and hopefully few prototypes,
6171 which can conflict with char fgetln (); below.
6172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6173 <limits.h> exists even on freestanding compilers. */
6176 # include <limits.h>
6178 # include <assert.h>
6183 /* Override any gcc2 internal prototype to avoid an error. */
6188 /* We use char because int might match the return type of a gcc2
6189 builtin and then its argument prototype would still apply. */
6191 /* The GNU C library defines this for functions which it implements
6192 to always fail with ENOSYS. Some functions are actually named
6193 something starting with __ and the normal name is an alias. */
6194 #if defined (__stub_fgetln) || defined (__stub___fgetln)
6197 char (*f) () = fgetln;
6211 rm -f conftest.
$ac_objext conftest
$ac_exeext
6212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6213 (eval $ac_link) 2>conftest.er1
6215 grep -v '^ *+' conftest.er1
>conftest.err
6217 cat conftest.err
>&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try
='test -z "$ac_c_werror_flag"
6221 || test ! -s conftest.err'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; } &&
6227 { ac_try
='test -s conftest$ac_exeext'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; }; then
6233 ac_cv_func_fgetln
=yes
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.
$ac_ext >&5
6238 ac_cv_func_fgetln
=no
6240 rm -f conftest.err conftest.
$ac_objext \
6241 conftest
$ac_exeext conftest.
$ac_ext
6243 echo "$as_me:$LINENO: result: $ac_cv_func_fgetln" >&5
6244 echo "${ECHO_T}$ac_cv_func_fgetln" >&6
6245 if test $ac_cv_func_fgetln = yes; then
6253 echo "$as_me:$LINENO: checking for fgetline" >&5
6254 echo $ECHO_N "checking for fgetline... $ECHO_C" >&6
6255 if test "${ac_cv_func_fgetline+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 if test x
$gcc_no_link = xyes
; then
6259 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6260 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6261 { (exit 1); exit 1; }; }
6263 cat >conftest.
$ac_ext <<_ACEOF
6266 cat confdefs.h
>>conftest.
$ac_ext
6267 cat >>conftest.
$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6269 /* Define fgetline to an innocuous variant, in case <limits.h> declares fgetline.
6270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6271 #define fgetline innocuous_fgetline
6273 /* System header to define __stub macros and hopefully few prototypes,
6274 which can conflict with char fgetline (); below.
6275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6276 <limits.h> exists even on freestanding compilers. */
6279 # include <limits.h>
6281 # include <assert.h>
6286 /* Override any gcc2 internal prototype to avoid an error. */
6291 /* We use char because int might match the return type of a gcc2
6292 builtin and then its argument prototype would still apply. */
6294 /* The GNU C library defines this for functions which it implements
6295 to always fail with ENOSYS. Some functions are actually named
6296 something starting with __ and the normal name is an alias. */
6297 #if defined (__stub_fgetline) || defined (__stub___fgetline)
6300 char (*f) () = fgetline;
6309 return f != fgetline;
6314 rm -f conftest.
$ac_objext conftest
$ac_exeext
6315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6316 (eval $ac_link) 2>conftest.er1
6318 grep -v '^ *+' conftest.er1
>conftest.err
6320 cat conftest.err
>&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } &&
6323 { ac_try
='test -z "$ac_c_werror_flag"
6324 || test ! -s conftest.err'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; } &&
6330 { ac_try
='test -s conftest$ac_exeext'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6336 ac_cv_func_fgetline
=yes
6338 echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.
$ac_ext >&5
6341 ac_cv_func_fgetline
=no
6343 rm -f conftest.err conftest.
$ac_objext \
6344 conftest
$ac_exeext conftest.
$ac_ext
6346 echo "$as_me:$LINENO: result: $ac_cv_func_fgetline" >&5
6347 echo "${ECHO_T}$ac_cv_func_fgetline" >&6
6348 if test $ac_cv_func_fgetline = yes; then
6349 DCFG_HAVE_FGETLINE
=1
6351 DCFG_HAVE_FGETLINE
=0
6356 DCFG_HAVE_UNLOCKED_STDIO
=1
6361 for ac_func
in flockfile funlockfile putc_unlocked getc_unlocked
6363 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6364 echo "$as_me:$LINENO: checking for $ac_func" >&5
6365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6366 if eval "test \"\${$as_ac_var+set}\" = set"; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 if test x
$gcc_no_link = xyes
; then
6370 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6371 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6372 { (exit 1); exit 1; }; }
6374 cat >conftest.
$ac_ext <<_ACEOF
6377 cat confdefs.h
>>conftest.
$ac_ext
6378 cat >>conftest.
$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6382 #define $ac_func innocuous_$ac_func
6384 /* System header to define __stub macros and hopefully few prototypes,
6385 which can conflict with char $ac_func (); below.
6386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6387 <limits.h> exists even on freestanding compilers. */
6390 # include <limits.h>
6392 # include <assert.h>
6397 /* Override any gcc2 internal prototype to avoid an error. */
6402 /* We use char because int might match the return type of a gcc2
6403 builtin and then its argument prototype would still apply. */
6405 /* The GNU C library defines this for functions which it implements
6406 to always fail with ENOSYS. Some functions are actually named
6407 something starting with __ and the normal name is an alias. */
6408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6411 char (*f) () = $ac_func;
6420 return f != $ac_func;
6425 rm -f conftest.
$ac_objext conftest
$ac_exeext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6427 (eval $ac_link) 2>conftest.er1
6429 grep -v '^ *+' conftest.er1
>conftest.err
6431 cat conftest.err
>&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try
='test -z "$ac_c_werror_flag"
6435 || test ! -s conftest.err'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; } &&
6441 { ac_try
='test -s conftest$ac_exeext'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6447 eval "$as_ac_var=yes"
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.
$ac_ext >&5
6452 eval "$as_ac_var=no"
6454 rm -f conftest.err conftest.
$ac_objext \
6455 conftest
$ac_exeext conftest.
$ac_ext
6457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6459 if test `eval echo '${'$as_ac_var'}'` = yes; then
6460 cat >>confdefs.h
<<_ACEOF
6461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6465 DCFG_HAVE_UNLOCKED_STDIO
=0
6471 DCFG_HAVE_UNLOCKED_WIDE_STDIO
=$DCFG_HAVE_UNLOCKED_STDIO
6474 for ac_func
in putwc_unlocked getwc_unlocked
6476 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6477 echo "$as_me:$LINENO: checking for $ac_func" >&5
6478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6479 if eval "test \"\${$as_ac_var+set}\" = set"; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 if test x
$gcc_no_link = xyes
; then
6483 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6484 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6485 { (exit 1); exit 1; }; }
6487 cat >conftest.
$ac_ext <<_ACEOF
6490 cat confdefs.h
>>conftest.
$ac_ext
6491 cat >>conftest.
$ac_ext <<_ACEOF
6492 /* end confdefs.h. */
6493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6495 #define $ac_func innocuous_$ac_func
6497 /* System header to define __stub macros and hopefully few prototypes,
6498 which can conflict with char $ac_func (); below.
6499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6500 <limits.h> exists even on freestanding compilers. */
6503 # include <limits.h>
6505 # include <assert.h>
6510 /* Override any gcc2 internal prototype to avoid an error. */
6515 /* We use char because int might match the return type of a gcc2
6516 builtin and then its argument prototype would still apply. */
6518 /* The GNU C library defines this for functions which it implements
6519 to always fail with ENOSYS. Some functions are actually named
6520 something starting with __ and the normal name is an alias. */
6521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6524 char (*f) () = $ac_func;
6533 return f != $ac_func;
6538 rm -f conftest.
$ac_objext conftest
$ac_exeext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6540 (eval $ac_link) 2>conftest.er1
6542 grep -v '^ *+' conftest.er1
>conftest.err
6544 cat conftest.err
>&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
6547 { ac_try
='test -z "$ac_c_werror_flag"
6548 || test ! -s conftest.err'
6549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; } &&
6554 { ac_try
='test -s conftest$ac_exeext'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; }; then
6560 eval "$as_ac_var=yes"
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.
$ac_ext >&5
6565 eval "$as_ac_var=no"
6567 rm -f conftest.err conftest.
$ac_objext \
6568 conftest
$ac_exeext conftest.
$ac_ext
6570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6572 if test `eval echo '${'$as_ac_var'}'` = yes; then
6573 cat >>confdefs.h
<<_ACEOF
6574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6578 DCFG_HAVE_UNLOCKED_WIDE_STDIO
=0
6584 echo "$as_me:$LINENO: checking for strtold" >&5
6585 echo $ECHO_N "checking for strtold... $ECHO_C" >&6
6586 if test "${ac_cv_func_strtold+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 if test x
$gcc_no_link = xyes
; then
6590 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6591 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6592 { (exit 1); exit 1; }; }
6594 cat >conftest.
$ac_ext <<_ACEOF
6597 cat confdefs.h
>>conftest.
$ac_ext
6598 cat >>conftest.
$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6600 /* Define strtold to an innocuous variant, in case <limits.h> declares strtold.
6601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6602 #define strtold innocuous_strtold
6604 /* System header to define __stub macros and hopefully few prototypes,
6605 which can conflict with char strtold (); below.
6606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6607 <limits.h> exists even on freestanding compilers. */
6610 # include <limits.h>
6612 # include <assert.h>
6617 /* Override any gcc2 internal prototype to avoid an error. */
6622 /* We use char because int might match the return type of a gcc2
6623 builtin and then its argument prototype would still apply. */
6625 /* The GNU C library defines this for functions which it implements
6626 to always fail with ENOSYS. Some functions are actually named
6627 something starting with __ and the normal name is an alias. */
6628 #if defined (__stub_strtold) || defined (__stub___strtold)
6631 char (*f) () = strtold;
6640 return f != strtold;
6645 rm -f conftest.
$ac_objext conftest
$ac_exeext
6646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6647 (eval $ac_link) 2>conftest.er1
6649 grep -v '^ *+' conftest.er1
>conftest.err
6651 cat conftest.err
>&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } &&
6654 { ac_try
='test -z "$ac_c_werror_flag"
6655 || test ! -s conftest.err'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; } &&
6661 { ac_try
='test -s conftest$ac_exeext'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
6667 ac_cv_func_strtold
=yes
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.
$ac_ext >&5
6672 ac_cv_func_strtold
=no
6674 rm -f conftest.err conftest.
$ac_objext \
6675 conftest
$ac_exeext conftest.
$ac_ext
6677 echo "$as_me:$LINENO: result: $ac_cv_func_strtold" >&5
6678 echo "${ECHO_T}$ac_cv_func_strtold" >&6
6679 if test $ac_cv_func_strtold = yes; then
6688 # Check for the glibc version of strerror_r
6689 echo "$as_me:$LINENO: checking for glibc strerror_r" >&5
6690 echo $ECHO_N "checking for glibc strerror_r... $ECHO_C" >&6
6691 CFLAGS
="$CFLAGS -D_GNU_SOURCE=1"
6692 cat >conftest.
$ac_ext <<_ACEOF
6695 cat confdefs.h
>>conftest.
$ac_ext
6696 cat >>conftest.
$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6703 char c = * strerror_r(0, NULL, 0);
6709 rm -f conftest.
$ac_objext
6710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711 (eval $ac_compile) 2>conftest.er1
6713 grep -v '^ *+' conftest.er1
>conftest.err
6715 cat conftest.err
>&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } &&
6718 { ac_try
='test -z "$ac_c_werror_flag"
6719 || test ! -s conftest.err'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; } &&
6725 { ac_try
='test -s conftest.$ac_objext'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6731 echo "$as_me:$LINENO: result: yes" >&5
6732 echo "${ECHO_T}yes" >&6
6734 cat >>confdefs.h
<<\_ACEOF
6735 #define HAVE_GLIBC_STRERROR_R 1
6739 echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.
$ac_ext >&5
6742 echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6
6745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6749 for ac_func
in strerror_r
6751 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6752 echo "$as_me:$LINENO: checking for $ac_func" >&5
6753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6754 if eval "test \"\${$as_ac_var+set}\" = set"; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 if test x
$gcc_no_link = xyes
; then
6758 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6759 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6760 { (exit 1); exit 1; }; }
6762 cat >conftest.
$ac_ext <<_ACEOF
6765 cat confdefs.h
>>conftest.
$ac_ext
6766 cat >>conftest.
$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6770 #define $ac_func innocuous_$ac_func
6772 /* System header to define __stub macros and hopefully few prototypes,
6773 which can conflict with char $ac_func (); below.
6774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6775 <limits.h> exists even on freestanding compilers. */
6778 # include <limits.h>
6780 # include <assert.h>
6785 /* Override any gcc2 internal prototype to avoid an error. */
6790 /* We use char because int might match the return type of a gcc2
6791 builtin and then its argument prototype would still apply. */
6793 /* The GNU C library defines this for functions which it implements
6794 to always fail with ENOSYS. Some functions are actually named
6795 something starting with __ and the normal name is an alias. */
6796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6799 char (*f) () = $ac_func;
6808 return f != $ac_func;
6813 rm -f conftest.
$ac_objext conftest
$ac_exeext
6814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6815 (eval $ac_link) 2>conftest.er1
6817 grep -v '^ *+' conftest.er1
>conftest.err
6819 cat conftest.err
>&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } &&
6822 { ac_try
='test -z "$ac_c_werror_flag"
6823 || test ! -s conftest.err'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; } &&
6829 { ac_try
='test -s conftest$ac_exeext'
6830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; }; then
6835 eval "$as_ac_var=yes"
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.
$ac_ext >&5
6840 eval "$as_ac_var=no"
6842 rm -f conftest.err conftest.
$ac_objext \
6843 conftest
$ac_exeext conftest.
$ac_ext
6845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6847 if test `eval echo '${'$as_ac_var'}'` = yes; then
6848 cat >>confdefs.h
<<_ACEOF
6849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6856 echo "$as_me:$LINENO: checking for tm_gmtoff" >&5
6857 echo $ECHO_N "checking for tm_gmtoff... $ECHO_C" >&6
6858 cat >conftest.
$ac_ext <<_ACEOF
6861 cat confdefs.h
>>conftest.
$ac_ext
6862 cat >>conftest.
$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6870 t.tm_gmtoff = t.tm_gmtoff;
6871 t.tm_zone = t.tm_zone;
6876 rm -f conftest.
$ac_objext
6877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6878 (eval $ac_compile) 2>conftest.er1
6880 grep -v '^ *+' conftest.er1
>conftest.err
6882 cat conftest.err
>&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } &&
6885 { ac_try
='test -z "$ac_c_werror_flag"
6886 || test ! -s conftest.err'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; } &&
6892 { ac_try
='test -s conftest.$ac_objext'
6893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; }; then
6898 echo "$as_me:$LINENO: result: yes" >&5
6899 echo "${ECHO_T}yes" >&6
6901 cat >>confdefs.h
<<\_ACEOF
6902 #define HAVE_TM_GMTOFF_AND_ZONE 1
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.
$ac_ext >&5
6909 echo "$as_me:$LINENO: result: no" >&5
6910 echo "${ECHO_T}no" >&6
6912 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6914 echo "$as_me:$LINENO: checking for timezone" >&5
6915 echo $ECHO_N "checking for timezone... $ECHO_C" >&6
6916 cat >conftest.
$ac_ext <<_ACEOF
6919 cat confdefs.h
>>conftest.
$ac_ext
6920 cat >>conftest.
$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6927 time_t t = timezone * 42;
6932 rm -f conftest.
$ac_objext
6933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6934 (eval $ac_compile) 2>conftest.er1
6936 grep -v '^ *+' conftest.er1
>conftest.err
6938 cat conftest.err
>&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } &&
6941 { ac_try
='test -z "$ac_c_werror_flag"
6942 || test ! -s conftest.err'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; } &&
6948 { ac_try
='test -s conftest.$ac_objext'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; }; then
6954 echo "$as_me:$LINENO: result: yes" >&5
6955 echo "${ECHO_T}yes" >&6
6957 cat >>confdefs.h
<<\_ACEOF
6958 #define HAVE_TIMEZONE 1
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.
$ac_ext >&5
6965 echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6
6968 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6970 echo "$as_me:$LINENO: checking for _timezone" >&5
6971 echo $ECHO_N "checking for _timezone... $ECHO_C" >&6
6972 cat >conftest.
$ac_ext <<_ACEOF
6975 cat confdefs.h
>>conftest.
$ac_ext
6976 cat >>conftest.
$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6983 time_t t = _timezone * 42;
6988 rm -f conftest.
$ac_objext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6990 (eval $ac_compile) 2>conftest.er1
6992 grep -v '^ *+' conftest.er1
>conftest.err
6994 cat conftest.err
>&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } &&
6997 { ac_try
='test -z "$ac_c_werror_flag"
6998 || test ! -s conftest.err'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; } &&
7004 { ac_try
='test -s conftest.$ac_objext'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7010 echo "$as_me:$LINENO: result: yes" >&5
7011 echo "${ECHO_T}yes" >&6
7013 cat >>confdefs.h
<<\_ACEOF
7014 #define HAVE__TIMEZONE 1
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.
$ac_ext >&5
7021 echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6
7024 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7028 for ac_func
in snprintf _snprintf
7030 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7031 echo "$as_me:$LINENO: checking for $ac_func" >&5
7032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7033 if eval "test \"\${$as_ac_var+set}\" = set"; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 if test x
$gcc_no_link = xyes
; then
7037 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7039 { (exit 1); exit 1; }; }
7041 cat >conftest.
$ac_ext <<_ACEOF
7044 cat confdefs.h
>>conftest.
$ac_ext
7045 cat >>conftest.
$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7049 #define $ac_func innocuous_$ac_func
7051 /* System header to define __stub macros and hopefully few prototypes,
7052 which can conflict with char $ac_func (); below.
7053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7054 <limits.h> exists even on freestanding compilers. */
7057 # include <limits.h>
7059 # include <assert.h>
7064 /* Override any gcc2 internal prototype to avoid an error. */
7069 /* We use char because int might match the return type of a gcc2
7070 builtin and then its argument prototype would still apply. */
7072 /* The GNU C library defines this for functions which it implements
7073 to always fail with ENOSYS. Some functions are actually named
7074 something starting with __ and the normal name is an alias. */
7075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7078 char (*f) () = $ac_func;
7087 return f != $ac_func;
7092 rm -f conftest.
$ac_objext conftest
$ac_exeext
7093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7094 (eval $ac_link) 2>conftest.er1
7096 grep -v '^ *+' conftest.er1
>conftest.err
7098 cat conftest.err
>&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } &&
7101 { ac_try
='test -z "$ac_c_werror_flag"
7102 || test ! -s conftest.err'
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; } &&
7108 { ac_try
='test -s conftest$ac_exeext'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 eval "$as_ac_var=yes"
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.
$ac_ext >&5
7119 eval "$as_ac_var=no"
7121 rm -f conftest.err conftest.
$ac_objext \
7122 conftest
$ac_exeext conftest.
$ac_ext
7124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7126 if test `eval echo '${'$as_ac_var'}'` = yes; then
7127 cat >>confdefs.h
<<_ACEOF
7128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7132 { { echo "$as_me:$LINENO: error: No variant of snprintf." >&5
7133 echo "$as_me: error: No variant of snprintf." >&2;}
7134 { (exit 1); exit 1; }; }
7140 for ac_func
in vsnprintf _vsnprintf
7142 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7143 echo "$as_me:$LINENO: checking for $ac_func" >&5
7144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7145 if eval "test \"\${$as_ac_var+set}\" = set"; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 if test x
$gcc_no_link = xyes
; then
7149 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7150 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7151 { (exit 1); exit 1; }; }
7153 cat >conftest.
$ac_ext <<_ACEOF
7156 cat confdefs.h
>>conftest.
$ac_ext
7157 cat >>conftest.
$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7161 #define $ac_func innocuous_$ac_func
7163 /* System header to define __stub macros and hopefully few prototypes,
7164 which can conflict with char $ac_func (); below.
7165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7166 <limits.h> exists even on freestanding compilers. */
7169 # include <limits.h>
7171 # include <assert.h>
7176 /* Override any gcc2 internal prototype to avoid an error. */
7181 /* We use char because int might match the return type of a gcc2
7182 builtin and then its argument prototype would still apply. */
7184 /* The GNU C library defines this for functions which it implements
7185 to always fail with ENOSYS. Some functions are actually named
7186 something starting with __ and the normal name is an alias. */
7187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7190 char (*f) () = $ac_func;
7199 return f != $ac_func;
7204 rm -f conftest.
$ac_objext conftest
$ac_exeext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7206 (eval $ac_link) 2>conftest.er1
7208 grep -v '^ *+' conftest.er1
>conftest.err
7210 cat conftest.err
>&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try
='test -z "$ac_c_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try
='test -s conftest$ac_exeext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 eval "$as_ac_var=yes"
7228 echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.
$ac_ext >&5
7231 eval "$as_ac_var=no"
7233 rm -f conftest.err conftest.
$ac_objext \
7234 conftest
$ac_exeext conftest.
$ac_ext
7236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7238 if test `eval echo '${'$as_ac_var'}'` = yes; then
7239 cat >>confdefs.h
<<_ACEOF
7240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7244 { { echo "$as_me:$LINENO: error: No variant of vsnprintf." >&5
7245 echo "$as_me: error: No variant of vsnprintf." >&2;}
7246 { (exit 1); exit 1; }; }
7251 # end of 'if $with_newlib...'
7254 DCFG_LONG_DOUBLE_FUNCS
="$srcdir/$DCFG_LONG_DOUBLE_FUNCS"
7256 DCFG_SQRTF
="$srcdir/$DCFG_SQRTF"
7259 echo "$as_me:$LINENO: checking for ARM unwinder" >&5
7260 echo $ECHO_N "checking for ARM unwinder... $ECHO_C" >&6
7261 cat >conftest.
$ac_ext <<_ACEOF
7264 cat confdefs.h
>>conftest.
$ac_ext
7265 cat >>conftest.
$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7272 #if __ARM_EABI_UNWINDER__
7280 rm -f conftest.
$ac_objext
7281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7282 (eval $ac_compile) 2>conftest.er1
7284 grep -v '^ *+' conftest.er1
>conftest.err
7286 cat conftest.err
>&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try
='test -z "$ac_c_werror_flag"
7290 || test ! -s conftest.err'
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; } &&
7296 { ac_try
='test -s conftest.$ac_objext'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; }; then
7302 echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6
7304 DCFG_ARM_EABI_UNWINDER
=0
7305 D_EXTRA_OBJS
="$D_EXTRA_OBJS gcc/unwind_generic.o"
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.
$ac_ext >&5
7310 echo "$as_me:$LINENO: result: yes" >&5
7311 echo "${ECHO_T}yes" >&6
7312 DCFG_ARM_EABI_UNWINDER
=1
7313 D_EXTRA_OBJS
="$D_EXTRA_OBJS gcc/unwind_arm.o"
7315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7318 echo "$as_me:$LINENO: checking if std.boxer will work" >&5
7319 echo $ECHO_N "checking if std.boxer will work... $ECHO_C" >&6
7320 cat > conftest.d
<<END
7321 void test(...) { _argptr += 4; }
7323 $GDC -c -I .
-I $srcdir conftest.d
>/dev
/null
2>&1
7324 if test $?
= 0; then
7325 echo "$as_me:$LINENO: result: yes" >&5
7326 echo "${ECHO_T}yes" >&6
7327 D_EXTRA_OBJS
="$D_EXTRA_OBJS std/boxer.o"
7329 echo "$as_me:$LINENO: result: no" >&5
7330 echo "${ECHO_T}no" >&6
7332 rm -f conftest.d conftest.
$ac_objext
7334 case "$d_target_os" in
7335 aix
*|
*bsd
*|cygwin
*|darwin
*|linux
*|skyos
*|solaris
*|sysv
*) d_have_unix
=1 ;;
7341 if test -n "$d_have_unix" && test "$enable_unix" = auto
; then
7345 case "$d_target_os" in
7348 darwin
*) d_module_mach
=1
7352 freebsd
*|k
*bsd
*-gnu)
7354 D_EXTRA_OBJS
="$D_EXTRA_OBJS gcc/cbridge_stdio.o"
7355 DCFG_CBRIDGE_STDIO
=GNU_CBridge_Stdio
7357 linux
*) #D_EXTRA_OBJS="$D_EXTRA_OBJS std/c/linux/linux.o"
7359 d_have_loader
=1 # should check for <dlfcn.h>, and use verion(GNU_Have_dlopen)
7361 cygwin
*) D_EXTRA_OBJS
="$D_EXTRA_OBJS gcc/cbridge_stdio.o"
7362 DCFG_CBRIDGE_STDIO
=GNU_CBridge_Stdio
7364 mingw
*) #D_EXTRA_OBJS="$D_EXTRA_OBJS gcc/cbridge_stdio.o"
7365 D_EXTRA_OBJS
="$D_EXTRA_OBJS \$(WINDOWS_OBJS)"
7366 D_EXTRA_OBJS
="$D_EXTRA_OBJS \$(OS_OBJS)"
7367 #DCFG_CBRIDGE_STDIO=GNU_CBridge_Stdio
7371 skyos
*) d_sem_impl
="skyos"
7372 D_EXTRA_OBJS
="$D_EXTRA_OBJS gcc/cbridge_stdio.o"
7373 DCFG_CBRIDGE_STDIO
=GNU_CBridge_Stdio
7375 cat >>confdefs.h
<<\_ACEOF
7376 #define PTHREAD_MUTEX_ALREADY_RECURSIVE 1
7380 *) if test "$enable_unix" != "yes"; then
7383 cat >>confdefs.h
<<\_ACEOF
7384 #define PHOBOS_NO_SYSTEM 1
7388 D_EXTRA_OBJS
="$D_EXTRA_OBJS gcc/cbridge_stdio.o"
7389 DCFG_CBRIDGE_STDIO
=GNU_CBridge_Stdio
7393 # = D_EXTRA_OBJS="$D_EXTRA_OBJS \$(WINDOWS_OBJS)"
7394 # for cygw: WINDOWS_DFLAGS=-mno-cygwin
7396 # in Make: .win.o maybe... to get a separate rule
7398 if test -n "$d_module_mach"; then
7399 D_EXTRA_OBJS
="$D_EXTRA_OBJS std/c/mach/mach.o"
7402 if test "$enable_unix" = "yes"; then
7403 D_EXTRA_OBJS
="$D_EXTRA_OBJS \$(OS_OBJS)"
7407 for ac_header
in pthread.h
7409 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7411 echo "$as_me:$LINENO: checking for $ac_header" >&5
7412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7419 # Is the header compilable?
7420 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7422 cat >conftest.
$ac_ext <<_ACEOF
7425 cat confdefs.h
>>conftest.
$ac_ext
7426 cat >>conftest.
$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 $ac_includes_default
7429 #include <$ac_header>
7431 rm -f conftest.
$ac_objext
7432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7433 (eval $ac_compile) 2>conftest.er1
7435 grep -v '^ *+' conftest.er1
>conftest.err
7437 cat conftest.err
>&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } &&
7440 { ac_try
='test -z "$ac_c_werror_flag"
7441 || test ! -s conftest.err'
7442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); }; } &&
7447 { ac_try
='test -s conftest.$ac_objext'
7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; }; then
7453 ac_header_compiler
=yes
7455 echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.
$ac_ext >&5
7458 ac_header_compiler
=no
7460 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7462 echo "${ECHO_T}$ac_header_compiler" >&6
7464 # Is the header present?
7465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7467 cat >conftest.
$ac_ext <<_ACEOF
7470 cat confdefs.h
>>conftest.
$ac_ext
7471 cat >>conftest.
$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7473 #include <$ac_header>
7475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7476 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7478 grep -v '^ *+' conftest.er1
>conftest.err
7480 cat conftest.err
>&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } >/dev
/null
; then
7483 if test -s conftest.err
; then
7484 ac_cpp_err
=$ac_c_preproc_warn_flag
7485 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7492 if test -z "$ac_cpp_err"; then
7493 ac_header_preproc
=yes
7495 echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.
$ac_ext >&5
7498 ac_header_preproc
=no
7500 rm -f conftest.err conftest.
$ac_ext
7501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7502 echo "${ECHO_T}$ac_header_preproc" >&6
7504 # So? What about this header?
7505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7511 ac_header_preproc
=yes
7514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7521 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7528 ## ------------------------------------ ##
7529 ## Report this to the libphobos lists. ##
7530 ## ------------------------------------ ##
7533 sed "s/^/$as_me: WARNING: /" >&2
7536 echo "$as_me:$LINENO: checking for $ac_header" >&5
7537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 eval "$as_ac_Header=\$ac_header_preproc"
7543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7548 cat >>confdefs.h
<<_ACEOF
7549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7553 { { echo "$as_me:$LINENO: error: can't find pthread.h. Pthreads is the only supported thread library." >&5
7554 echo "$as_me: error: can't find pthread.h. Pthreads is the only supported thread library." >&2;}
7555 { (exit 1); exit 1; }; }
7561 echo "$as_me:$LINENO: checking for recursive mutex name" >&5
7562 echo $ECHO_N "checking for recursive mutex name... $ECHO_C" >&6
7563 cat >conftest.
$ac_ext <<_ACEOF
7566 cat confdefs.h
>>conftest.
$ac_ext
7567 cat >>conftest.
$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 #include <pthread.h>
7574 pthread_mutexattr_t attr;
7575 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
7580 rm -f conftest.
$ac_objext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7582 (eval $ac_compile) 2>conftest.er1
7584 grep -v '^ *+' conftest.er1
>conftest.err
7586 cat conftest.err
>&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } &&
7589 { ac_try
='test -z "$ac_c_werror_flag"
7590 || test ! -s conftest.err'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; } &&
7596 { ac_try
='test -s conftest.$ac_objext'
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7603 cat >>confdefs.h
<<\_ACEOF
7604 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
7607 echo "$as_me:$LINENO: result: PTHREAD_MUTEX_RECURSIVE" >&5
7608 echo "${ECHO_T}PTHREAD_MUTEX_RECURSIVE" >&6
7610 echo "$as_me: failed program was:" >&5
7611 sed 's/^/| /' conftest.
$ac_ext >&5
7613 echo "$as_me:$LINENO: result: PTHREAD_MUTEX_RECURSIVE_NP" >&5
7614 echo "${ECHO_T}PTHREAD_MUTEX_RECURSIVE_NP" >&6
7616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7618 echo "$as_me:$LINENO: checking for pthread_barrier_t" >&5
7619 echo $ECHO_N "checking for pthread_barrier_t... $ECHO_C" >&6
7620 if test "${ac_cv_type_pthread_barrier_t+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 cat >conftest.
$ac_ext <<_ACEOF
7626 cat confdefs.h
>>conftest.
$ac_ext
7627 cat >>conftest.
$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 #include <pthread.h>
7634 if ((pthread_barrier_t *) 0)
7636 if (sizeof (pthread_barrier_t))
7642 rm -f conftest.
$ac_objext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7644 (eval $ac_compile) 2>conftest.er1
7646 grep -v '^ *+' conftest.er1
>conftest.err
7648 cat conftest.err
>&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try
='test -z "$ac_c_werror_flag"
7652 || test ! -s conftest.err'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; } &&
7658 { ac_try
='test -s conftest.$ac_objext'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; }; then
7664 ac_cv_type_pthread_barrier_t
=yes
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.
$ac_ext >&5
7669 ac_cv_type_pthread_barrier_t
=no
7671 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7673 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_barrier_t" >&5
7674 echo "${ECHO_T}$ac_cv_type_pthread_barrier_t" >&6
7675 if test $ac_cv_type_pthread_barrier_t = yes; then
7677 cat >>confdefs.h
<<_ACEOF
7678 #define HAVE_PTHREAD_BARRIER_T 1
7683 echo "$as_me:$LINENO: checking for pthread_barrierattr_t" >&5
7684 echo $ECHO_N "checking for pthread_barrierattr_t... $ECHO_C" >&6
7685 if test "${ac_cv_type_pthread_barrierattr_t+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 cat >conftest.
$ac_ext <<_ACEOF
7691 cat confdefs.h
>>conftest.
$ac_ext
7692 cat >>conftest.
$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7694 #include <pthread.h>
7699 if ((pthread_barrierattr_t *) 0)
7701 if (sizeof (pthread_barrierattr_t))
7707 rm -f conftest.
$ac_objext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709 (eval $ac_compile) 2>conftest.er1
7711 grep -v '^ *+' conftest.er1
>conftest.err
7713 cat conftest.err
>&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } &&
7716 { ac_try
='test -z "$ac_c_werror_flag"
7717 || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try
='test -s conftest.$ac_objext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 ac_cv_type_pthread_barrierattr_t
=yes
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.
$ac_ext >&5
7734 ac_cv_type_pthread_barrierattr_t
=no
7736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7738 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_barrierattr_t" >&5
7739 echo "${ECHO_T}$ac_cv_type_pthread_barrierattr_t" >&6
7740 if test $ac_cv_type_pthread_barrierattr_t = yes; then
7742 cat >>confdefs.h
<<_ACEOF
7743 #define HAVE_PTHREAD_BARRIERATTR_T 1
7748 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
7749 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
7750 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 cat >conftest.
$ac_ext <<_ACEOF
7756 cat confdefs.h
>>conftest.
$ac_ext
7757 cat >>conftest.
$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7759 #include <pthread.h>
7764 if ((pthread_rwlock_t *) 0)
7766 if (sizeof (pthread_rwlock_t))
7772 rm -f conftest.
$ac_objext
7773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7774 (eval $ac_compile) 2>conftest.er1
7776 grep -v '^ *+' conftest.er1
>conftest.err
7778 cat conftest.err
>&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try
='test -z "$ac_c_werror_flag"
7782 || test ! -s conftest.err'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; } &&
7788 { ac_try
='test -s conftest.$ac_objext'
7789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; }; then
7794 ac_cv_type_pthread_rwlock_t
=yes
7796 echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.
$ac_ext >&5
7799 ac_cv_type_pthread_rwlock_t
=no
7801 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7803 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
7804 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
7805 if test $ac_cv_type_pthread_rwlock_t = yes; then
7807 cat >>confdefs.h
<<_ACEOF
7808 #define HAVE_PTHREAD_RWLOCK_T 1
7813 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
7814 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
7815 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 cat >conftest.
$ac_ext <<_ACEOF
7821 cat confdefs.h
>>conftest.
$ac_ext
7822 cat >>conftest.
$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7824 #include <pthread.h>
7829 if ((pthread_rwlockattr_t *) 0)
7831 if (sizeof (pthread_rwlockattr_t))
7837 rm -f conftest.
$ac_objext
7838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7839 (eval $ac_compile) 2>conftest.er1
7841 grep -v '^ *+' conftest.er1
>conftest.err
7843 cat conftest.err
>&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } &&
7846 { ac_try
='test -z "$ac_c_werror_flag"
7847 || test ! -s conftest.err'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try
='test -s conftest.$ac_objext'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 ac_cv_type_pthread_rwlockattr_t
=yes
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.
$ac_ext >&5
7864 ac_cv_type_pthread_rwlockattr_t
=no
7866 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7868 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
7869 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
7870 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
7872 cat >>confdefs.h
<<_ACEOF
7873 #define HAVE_PTHREAD_RWLOCKATTR_T 1
7878 echo "$as_me:$LINENO: checking for pthread_spinlock_t" >&5
7879 echo $ECHO_N "checking for pthread_spinlock_t... $ECHO_C" >&6
7880 if test "${ac_cv_type_pthread_spinlock_t+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 cat >conftest.
$ac_ext <<_ACEOF
7886 cat confdefs.h
>>conftest.
$ac_ext
7887 cat >>conftest.
$ac_ext <<_ACEOF
7888 /* end confdefs.h. */
7889 #include <pthread.h>
7894 if ((pthread_spinlock_t *) 0)
7896 if (sizeof (pthread_spinlock_t))
7902 rm -f conftest.
$ac_objext
7903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7904 (eval $ac_compile) 2>conftest.er1
7906 grep -v '^ *+' conftest.er1
>conftest.err
7908 cat conftest.err
>&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } &&
7911 { ac_try
='test -z "$ac_c_werror_flag"
7912 || test ! -s conftest.err'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; } &&
7918 { ac_try
='test -s conftest.$ac_objext'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7924 ac_cv_type_pthread_spinlock_t
=yes
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.
$ac_ext >&5
7929 ac_cv_type_pthread_spinlock_t
=no
7931 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7933 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_spinlock_t" >&5
7934 echo "${ECHO_T}$ac_cv_type_pthread_spinlock_t" >&6
7935 if test $ac_cv_type_pthread_spinlock_t = yes; then
7937 cat >>confdefs.h
<<_ACEOF
7938 #define HAVE_PTHREAD_SPINLOCK_T 1
7945 echo "$as_me:$LINENO: checking for clockid_t" >&5
7946 echo $ECHO_N "checking for clockid_t... $ECHO_C" >&6
7947 if test "${ac_cv_type_clockid_t+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 cat >conftest.
$ac_ext <<_ACEOF
7953 cat confdefs.h
>>conftest.
$ac_ext
7954 cat >>conftest.
$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7956 #include <pthread.h>
7961 if ((clockid_t *) 0)
7963 if (sizeof (clockid_t))
7969 rm -f conftest.
$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971 (eval $ac_compile) 2>conftest.er1
7973 grep -v '^ *+' conftest.er1
>conftest.err
7975 cat conftest.err
>&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try
='test -z "$ac_c_werror_flag"
7979 || test ! -s conftest.err'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try
='test -s conftest.$ac_objext'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 ac_cv_type_clockid_t
=yes
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.
$ac_ext >&5
7996 ac_cv_type_clockid_t
=no
7998 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8000 echo "$as_me:$LINENO: result: $ac_cv_type_clockid_t" >&5
8001 echo "${ECHO_T}$ac_cv_type_clockid_t" >&6
8002 if test $ac_cv_type_clockid_t = yes; then
8004 cat >>confdefs.h
<<_ACEOF
8005 #define HAVE_CLOCKID_T 1
8012 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
8013 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
8014 if test "${ac_cv_search_sem_init+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 ac_func_search_save_LIBS
=$LIBS
8018 ac_cv_search_sem_init
=no
8019 if test x
$gcc_no_link = xyes
; then
8020 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8021 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8022 { (exit 1); exit 1; }; }
8024 cat >conftest.
$ac_ext <<_ACEOF
8027 cat confdefs.h
>>conftest.
$ac_ext
8028 cat >>conftest.
$ac_ext <<_ACEOF
8029 /* end confdefs.h. */
8031 /* Override any gcc2 internal prototype to avoid an error. */
8035 /* We use char because int might match the return type of a gcc2
8036 builtin and then its argument prototype would still apply. */
8046 rm -f conftest.
$ac_objext conftest
$ac_exeext
8047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8048 (eval $ac_link) 2>conftest.er1
8050 grep -v '^ *+' conftest.er1
>conftest.err
8052 cat conftest.err
>&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); } &&
8055 { ac_try
='test -z "$ac_c_werror_flag"
8056 || test ! -s conftest.err'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; } &&
8062 { ac_try
='test -s conftest$ac_exeext'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 ac_cv_search_sem_init
="none required"
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.
$ac_ext >&5
8074 rm -f conftest.err conftest.
$ac_objext \
8075 conftest
$ac_exeext conftest.
$ac_ext
8076 if test "$ac_cv_search_sem_init" = no
; then
8077 for ac_lib
in pthread rt posix4
; do
8078 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8079 if test x
$gcc_no_link = xyes
; then
8080 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8081 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8082 { (exit 1); exit 1; }; }
8084 cat >conftest.
$ac_ext <<_ACEOF
8087 cat confdefs.h
>>conftest.
$ac_ext
8088 cat >>conftest.
$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8091 /* Override any gcc2 internal prototype to avoid an error. */
8095 /* We use char because int might match the return type of a gcc2
8096 builtin and then its argument prototype would still apply. */
8106 rm -f conftest.
$ac_objext conftest
$ac_exeext
8107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8108 (eval $ac_link) 2>conftest.er1
8110 grep -v '^ *+' conftest.er1
>conftest.err
8112 cat conftest.err
>&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } &&
8115 { ac_try
='test -z "$ac_c_werror_flag"
8116 || test ! -s conftest.err'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; } &&
8122 { ac_try
='test -s conftest$ac_exeext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 ac_cv_search_sem_init
="-l$ac_lib"
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.
$ac_ext >&5
8135 rm -f conftest.err conftest.
$ac_objext \
8136 conftest
$ac_exeext conftest.
$ac_ext
8139 LIBS
=$ac_func_search_save_LIBS
8141 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
8142 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
8143 if test "$ac_cv_search_sem_init" != no
; then
8144 test "$ac_cv_search_sem_init" = "none required" || LIBS
="$ac_cv_search_sem_init $LIBS"
8149 DCFG_PTHREAD_SUSPEND
=
8154 for ac_header
in semaphore.h
8156 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8158 echo "$as_me:$LINENO: checking for $ac_header" >&5
8159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8166 # Is the header compilable?
8167 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8169 cat >conftest.
$ac_ext <<_ACEOF
8172 cat confdefs.h
>>conftest.
$ac_ext
8173 cat >>conftest.
$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 $ac_includes_default
8176 #include <$ac_header>
8178 rm -f conftest.
$ac_objext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180 (eval $ac_compile) 2>conftest.er1
8182 grep -v '^ *+' conftest.er1
>conftest.err
8184 cat conftest.err
>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try
='test -z "$ac_c_werror_flag"
8188 || test ! -s conftest.err'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; } &&
8194 { ac_try
='test -s conftest.$ac_objext'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 ac_header_compiler
=yes
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.
$ac_ext >&5
8205 ac_header_compiler
=no
8207 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8209 echo "${ECHO_T}$ac_header_compiler" >&6
8211 # Is the header present?
8212 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8214 cat >conftest.
$ac_ext <<_ACEOF
8217 cat confdefs.h
>>conftest.
$ac_ext
8218 cat >>conftest.
$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8220 #include <$ac_header>
8222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8223 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8225 grep -v '^ *+' conftest.er1
>conftest.err
8227 cat conftest.err
>&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } >/dev
/null
; then
8230 if test -s conftest.err
; then
8231 ac_cpp_err
=$ac_c_preproc_warn_flag
8232 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8239 if test -z "$ac_cpp_err"; then
8240 ac_header_preproc
=yes
8242 echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.
$ac_ext >&5
8245 ac_header_preproc
=no
8247 rm -f conftest.err conftest.
$ac_ext
8248 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8249 echo "${ECHO_T}$ac_header_preproc" >&6
8251 # So? What about this header?
8252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8258 ac_header_preproc
=yes
8261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8268 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8275 ## ------------------------------------ ##
8276 ## Report this to the libphobos lists. ##
8277 ## ------------------------------------ ##
8280 sed "s/^/$as_me: WARNING: /" >&2
8283 echo "$as_me:$LINENO: checking for $ac_header" >&5
8284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 eval "$as_ac_Header=\$ac_header_preproc"
8290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8295 cat >>confdefs.h
<<_ACEOF
8296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8303 echo "$as_me:$LINENO: checking for sem_init" >&5
8304 echo $ECHO_N "checking for sem_init... $ECHO_C" >&6
8305 if test "${ac_cv_func_sem_init+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 if test x
$gcc_no_link = xyes
; then
8309 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8310 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8311 { (exit 1); exit 1; }; }
8313 cat >conftest.
$ac_ext <<_ACEOF
8316 cat confdefs.h
>>conftest.
$ac_ext
8317 cat >>conftest.
$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 /* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init.
8320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8321 #define sem_init innocuous_sem_init
8323 /* System header to define __stub macros and hopefully few prototypes,
8324 which can conflict with char sem_init (); below.
8325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8326 <limits.h> exists even on freestanding compilers. */
8329 # include <limits.h>
8331 # include <assert.h>
8336 /* Override any gcc2 internal prototype to avoid an error. */
8341 /* We use char because int might match the return type of a gcc2
8342 builtin and then its argument prototype would still apply. */
8344 /* The GNU C library defines this for functions which it implements
8345 to always fail with ENOSYS. Some functions are actually named
8346 something starting with __ and the normal name is an alias. */
8347 #if defined (__stub_sem_init) || defined (__stub___sem_init)
8350 char (*f) () = sem_init;
8359 return f != sem_init;
8364 rm -f conftest.
$ac_objext conftest
$ac_exeext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8366 (eval $ac_link) 2>conftest.er1
8368 grep -v '^ *+' conftest.er1
>conftest.err
8370 cat conftest.err
>&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } &&
8373 { ac_try
='test -z "$ac_c_werror_flag"
8374 || test ! -s conftest.err'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; } &&
8380 { ac_try
='test -s conftest$ac_exeext'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; }; then
8386 ac_cv_func_sem_init
=yes
8388 echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.
$ac_ext >&5
8391 ac_cv_func_sem_init
=no
8393 rm -f conftest.err conftest.
$ac_objext \
8394 conftest
$ac_exeext conftest.
$ac_ext
8396 echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5
8397 echo "${ECHO_T}$ac_cv_func_sem_init" >&6
8399 echo "$as_me:$LINENO: checking for semaphore_create" >&5
8400 echo $ECHO_N "checking for semaphore_create... $ECHO_C" >&6
8401 if test "${ac_cv_func_semaphore_create+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 if test x
$gcc_no_link = xyes
; then
8405 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8407 { (exit 1); exit 1; }; }
8409 cat >conftest.
$ac_ext <<_ACEOF
8412 cat confdefs.h
>>conftest.
$ac_ext
8413 cat >>conftest.
$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8415 /* Define semaphore_create to an innocuous variant, in case <limits.h> declares semaphore_create.
8416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8417 #define semaphore_create innocuous_semaphore_create
8419 /* System header to define __stub macros and hopefully few prototypes,
8420 which can conflict with char semaphore_create (); below.
8421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8422 <limits.h> exists even on freestanding compilers. */
8425 # include <limits.h>
8427 # include <assert.h>
8430 #undef semaphore_create
8432 /* Override any gcc2 internal prototype to avoid an error. */
8437 /* We use char because int might match the return type of a gcc2
8438 builtin and then its argument prototype would still apply. */
8439 char semaphore_create ();
8440 /* The GNU C library defines this for functions which it implements
8441 to always fail with ENOSYS. Some functions are actually named
8442 something starting with __ and the normal name is an alias. */
8443 #if defined (__stub_semaphore_create) || defined (__stub___semaphore_create)
8446 char (*f) () = semaphore_create;
8455 return f != semaphore_create;
8460 rm -f conftest.
$ac_objext conftest
$ac_exeext
8461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8462 (eval $ac_link) 2>conftest.er1
8464 grep -v '^ *+' conftest.er1
>conftest.err
8466 cat conftest.err
>&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } &&
8469 { ac_try
='test -z "$ac_c_werror_flag"
8470 || test ! -s conftest.err'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; } &&
8476 { ac_try
='test -s conftest$ac_exeext'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; }; then
8482 ac_cv_func_semaphore_create
=yes
8484 echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.
$ac_ext >&5
8487 ac_cv_func_semaphore_create
=no
8489 rm -f conftest.err conftest.
$ac_objext \
8490 conftest
$ac_exeext conftest.
$ac_ext
8492 echo "$as_me:$LINENO: result: $ac_cv_func_semaphore_create" >&5
8493 echo "${ECHO_T}$ac_cv_func_semaphore_create" >&6
8495 echo "$as_me:$LINENO: checking for pthread_cond_wait" >&5
8496 echo $ECHO_N "checking for pthread_cond_wait... $ECHO_C" >&6
8497 if test "${ac_cv_func_pthread_cond_wait+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8500 if test x
$gcc_no_link = xyes
; then
8501 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8502 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8503 { (exit 1); exit 1; }; }
8505 cat >conftest.
$ac_ext <<_ACEOF
8508 cat confdefs.h
>>conftest.
$ac_ext
8509 cat >>conftest.
$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8511 /* Define pthread_cond_wait to an innocuous variant, in case <limits.h> declares pthread_cond_wait.
8512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8513 #define pthread_cond_wait innocuous_pthread_cond_wait
8515 /* System header to define __stub macros and hopefully few prototypes,
8516 which can conflict with char pthread_cond_wait (); below.
8517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8518 <limits.h> exists even on freestanding compilers. */
8521 # include <limits.h>
8523 # include <assert.h>
8526 #undef pthread_cond_wait
8528 /* Override any gcc2 internal prototype to avoid an error. */
8533 /* We use char because int might match the return type of a gcc2
8534 builtin and then its argument prototype would still apply. */
8535 char pthread_cond_wait ();
8536 /* The GNU C library defines this for functions which it implements
8537 to always fail with ENOSYS. Some functions are actually named
8538 something starting with __ and the normal name is an alias. */
8539 #if defined (__stub_pthread_cond_wait) || defined (__stub___pthread_cond_wait)
8542 char (*f) () = pthread_cond_wait;
8551 return f != pthread_cond_wait;
8556 rm -f conftest.
$ac_objext conftest
$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>conftest.er1
8560 grep -v '^ *+' conftest.er1
>conftest.err
8562 cat conftest.err
>&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } &&
8565 { ac_try
='test -z "$ac_c_werror_flag"
8566 || test ! -s conftest.err'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; } &&
8572 { ac_try
='test -s conftest$ac_exeext'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8578 ac_cv_func_pthread_cond_wait
=yes
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.
$ac_ext >&5
8583 ac_cv_func_pthread_cond_wait
=no
8585 rm -f conftest.err conftest.
$ac_objext \
8586 conftest
$ac_exeext conftest.
$ac_ext
8588 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cond_wait" >&5
8589 echo "${ECHO_T}$ac_cv_func_pthread_cond_wait" >&6
8592 if test -z "$d_sem_impl"; then
8593 # Probably need to test what actually works. sem_init is defined
8594 # on AIX and Darwin but does not actually work.
8595 # For now, test for Mach semaphores first so it overrides Posix. AIX
8596 # is a special case.
8597 if test "$ac_cv_func_semaphore_create" = "yes"; then
8599 elif test "$ac_cv_func_sem_init" = "yes" && \
8600 test "$ac_cv_header_semaphore_h" = "yes" && \
8601 test -z "$d_is_aix"; then
8603 elif test "$ac_cv_func_pthread_cond_wait" = "yes"; then
8604 d_sem_impl
="pthreads"
8609 case "$d_sem_impl" in
8610 posix
) DCFG_SEMAPHORE_IMPL
="GNU_Semaphore_POSIX" ;;
8611 mach
) DCFG_SEMAPHORE_IMPL
="GNU_Semaphore_Mach"
8613 pthreads
) DCFG_SEMAPHORE_IMPL
="GNU_Sempahore_Pthreads" ;;
8614 skyos
) DCFG_SEMAPHORE_IMPL
="GNU_Sempahore_Pthreads"
8615 D_EXTRA_OBJS
="$D_EXTRA_OBJS std/c/skyos/compat.o"
8617 *) { { echo "$as_me:$LINENO: error: No usable semaphore implementation" >&5
8618 echo "$as_me: error: No usable semaphore implementation" >&2;}
8619 { (exit 1); exit 1; }; } ;;
8622 echo "$as_me:$LINENO: checking for pthread_suspend_np" >&5
8623 echo $ECHO_N "checking for pthread_suspend_np... $ECHO_C" >&6
8624 if test "${ac_cv_func_pthread_suspend_np+set}" = set; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8627 if test x
$gcc_no_link = xyes
; then
8628 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8629 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8630 { (exit 1); exit 1; }; }
8632 cat >conftest.
$ac_ext <<_ACEOF
8635 cat confdefs.h
>>conftest.
$ac_ext
8636 cat >>conftest.
$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8638 /* Define pthread_suspend_np to an innocuous variant, in case <limits.h> declares pthread_suspend_np.
8639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8640 #define pthread_suspend_np innocuous_pthread_suspend_np
8642 /* System header to define __stub macros and hopefully few prototypes,
8643 which can conflict with char pthread_suspend_np (); below.
8644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8645 <limits.h> exists even on freestanding compilers. */
8648 # include <limits.h>
8650 # include <assert.h>
8653 #undef pthread_suspend_np
8655 /* Override any gcc2 internal prototype to avoid an error. */
8660 /* We use char because int might match the return type of a gcc2
8661 builtin and then its argument prototype would still apply. */
8662 char pthread_suspend_np ();
8663 /* The GNU C library defines this for functions which it implements
8664 to always fail with ENOSYS. Some functions are actually named
8665 something starting with __ and the normal name is an alias. */
8666 #if defined (__stub_pthread_suspend_np) || defined (__stub___pthread_suspend_np)
8669 char (*f) () = pthread_suspend_np;
8678 return f != pthread_suspend_np;
8683 rm -f conftest.
$ac_objext conftest
$ac_exeext
8684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8685 (eval $ac_link) 2>conftest.er1
8687 grep -v '^ *+' conftest.er1
>conftest.err
8689 cat conftest.err
>&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } &&
8692 { ac_try
='test -z "$ac_c_werror_flag"
8693 || test ! -s conftest.err'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; } &&
8699 { ac_try
='test -s conftest$ac_exeext'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8705 ac_cv_func_pthread_suspend_np
=yes
8707 echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.
$ac_ext >&5
8710 ac_cv_func_pthread_suspend_np
=no
8712 rm -f conftest.err conftest.
$ac_objext \
8713 conftest
$ac_exeext conftest.
$ac_ext
8715 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_suspend_np" >&5
8716 echo "${ECHO_T}$ac_cv_func_pthread_suspend_np" >&6
8718 echo "$as_me:$LINENO: checking for pthread_continue_np" >&5
8719 echo $ECHO_N "checking for pthread_continue_np... $ECHO_C" >&6
8720 if test "${ac_cv_func_pthread_continue_np+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 if test x
$gcc_no_link = xyes
; then
8724 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8725 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8726 { (exit 1); exit 1; }; }
8728 cat >conftest.
$ac_ext <<_ACEOF
8731 cat confdefs.h
>>conftest.
$ac_ext
8732 cat >>conftest.
$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8734 /* Define pthread_continue_np to an innocuous variant, in case <limits.h> declares pthread_continue_np.
8735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8736 #define pthread_continue_np innocuous_pthread_continue_np
8738 /* System header to define __stub macros and hopefully few prototypes,
8739 which can conflict with char pthread_continue_np (); below.
8740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8741 <limits.h> exists even on freestanding compilers. */
8744 # include <limits.h>
8746 # include <assert.h>
8749 #undef pthread_continue_np
8751 /* Override any gcc2 internal prototype to avoid an error. */
8756 /* We use char because int might match the return type of a gcc2
8757 builtin and then its argument prototype would still apply. */
8758 char pthread_continue_np ();
8759 /* The GNU C library defines this for functions which it implements
8760 to always fail with ENOSYS. Some functions are actually named
8761 something starting with __ and the normal name is an alias. */
8762 #if defined (__stub_pthread_continue_np) || defined (__stub___pthread_continue_np)
8765 char (*f) () = pthread_continue_np;
8774 return f != pthread_continue_np;
8779 rm -f conftest.
$ac_objext conftest
$ac_exeext
8780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8781 (eval $ac_link) 2>conftest.er1
8783 grep -v '^ *+' conftest.er1
>conftest.err
8785 cat conftest.err
>&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } &&
8788 { ac_try
='test -z "$ac_c_werror_flag"
8789 || test ! -s conftest.err'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; } &&
8795 { ac_try
='test -s conftest$ac_exeext'
8796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; }; then
8801 ac_cv_func_pthread_continue_np
=yes
8803 echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.
$ac_ext >&5
8806 ac_cv_func_pthread_continue_np
=no
8808 rm -f conftest.err conftest.
$ac_objext \
8809 conftest
$ac_exeext conftest.
$ac_ext
8811 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_continue_np" >&5
8812 echo "${ECHO_T}$ac_cv_func_pthread_continue_np" >&6
8815 if test "$ac_cv_func_pthread_suspend_np" = "yes" && \
8816 test "$ac_cv_func_pthread_continue_np" = "yes" ; then
8817 # TODO: need to test that these actually work.
8818 DCFG_PTHREAD_SUSPEND
=GNU_pthread_suspend
8820 { { echo "$as_me:$LINENO: error: TODO" >&5
8821 echo "$as_me: error: TODO" >&2;}
8822 { (exit 1); exit 1; }; }
8827 cat >>confdefs.h
<<\_ACEOF
8828 #define PHOBOS_USE_PTHREADS 1
8832 echo "$as_me:$LINENO: checking for mmap" >&5
8833 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
8834 if test "${ac_cv_func_mmap+set}" = set; then
8835 echo $ECHO_N "(cached) $ECHO_C" >&6
8837 if test x
$gcc_no_link = xyes
; then
8838 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8839 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8840 { (exit 1); exit 1; }; }
8842 cat >conftest.
$ac_ext <<_ACEOF
8845 cat confdefs.h
>>conftest.
$ac_ext
8846 cat >>conftest.
$ac_ext <<_ACEOF
8847 /* end confdefs.h. */
8848 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
8849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8850 #define mmap innocuous_mmap
8852 /* System header to define __stub macros and hopefully few prototypes,
8853 which can conflict with char mmap (); below.
8854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8855 <limits.h> exists even on freestanding compilers. */
8858 # include <limits.h>
8860 # include <assert.h>
8865 /* Override any gcc2 internal prototype to avoid an error. */
8870 /* We use char because int might match the return type of a gcc2
8871 builtin and then its argument prototype would still apply. */
8873 /* The GNU C library defines this for functions which it implements
8874 to always fail with ENOSYS. Some functions are actually named
8875 something starting with __ and the normal name is an alias. */
8876 #if defined (__stub_mmap) || defined (__stub___mmap)
8879 char (*f) () = mmap;
8893 rm -f conftest.
$ac_objext conftest
$ac_exeext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8895 (eval $ac_link) 2>conftest.er1
8897 grep -v '^ *+' conftest.er1
>conftest.err
8899 cat conftest.err
>&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } &&
8902 { ac_try
='test -z "$ac_c_werror_flag"
8903 || test ! -s conftest.err'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try
='test -s conftest$ac_exeext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.
$ac_ext >&5
8922 rm -f conftest.err conftest.
$ac_objext \
8923 conftest
$ac_exeext conftest.
$ac_ext
8925 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
8926 echo "${ECHO_T}$ac_cv_func_mmap" >&6
8927 if test $ac_cv_func_mmap = yes; then
8928 DCFG_MMAP
="GNU_Unix_Have_MMap"
8932 echo "$as_me:$LINENO: checking for getpwnam_r" >&5
8933 echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
8934 if test "${ac_cv_func_getpwnam_r+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 if test x
$gcc_no_link = xyes
; then
8938 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8939 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8940 { (exit 1); exit 1; }; }
8942 cat >conftest.
$ac_ext <<_ACEOF
8945 cat confdefs.h
>>conftest.
$ac_ext
8946 cat >>conftest.
$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8948 /* Define getpwnam_r to an innocuous variant, in case <limits.h> declares getpwnam_r.
8949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8950 #define getpwnam_r innocuous_getpwnam_r
8952 /* System header to define __stub macros and hopefully few prototypes,
8953 which can conflict with char getpwnam_r (); below.
8954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8955 <limits.h> exists even on freestanding compilers. */
8958 # include <limits.h>
8960 # include <assert.h>
8965 /* Override any gcc2 internal prototype to avoid an error. */
8970 /* We use char because int might match the return type of a gcc2
8971 builtin and then its argument prototype would still apply. */
8973 /* The GNU C library defines this for functions which it implements
8974 to always fail with ENOSYS. Some functions are actually named
8975 something starting with __ and the normal name is an alias. */
8976 #if defined (__stub_getpwnam_r) || defined (__stub___getpwnam_r)
8979 char (*f) () = getpwnam_r;
8988 return f != getpwnam_r;
8993 rm -f conftest.
$ac_objext conftest
$ac_exeext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995 (eval $ac_link) 2>conftest.er1
8997 grep -v '^ *+' conftest.er1
>conftest.err
8999 cat conftest.err
>&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try
='test -z "$ac_c_werror_flag"
9003 || test ! -s conftest.err'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; } &&
9009 { ac_try
='test -s conftest$ac_exeext'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
9015 ac_cv_func_getpwnam_r
=yes
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.
$ac_ext >&5
9020 ac_cv_func_getpwnam_r
=no
9022 rm -f conftest.err conftest.
$ac_objext \
9023 conftest
$ac_exeext conftest.
$ac_ext
9025 echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r" >&5
9026 echo "${ECHO_T}$ac_cv_func_getpwnam_r" >&6
9027 if test $ac_cv_func_getpwnam_r = yes; then
9028 DCFG_GETPWNAM_R
="GNU_Unix_Have_getpwnam_r"
9033 D_EXTRA_OBJS
="gcc/config/unix.o gcc/cbridge_fdset.o std/c/dirent.o std/c/unix/unix.o $D_EXTRA_OBJS"
9034 # Add "linux" module for compatibility even if not Linux
9035 D_EXTRA_OBJS
="std/c/linux/linux.o $D_EXTRA_OBJS"
9036 D_PREREQ_SRCS
="$D_PREREQ_SRCS "'$(config_unix_d_src)'
9048 if test -z "$DFLAGS"; then
9049 DFLAGS
="-g -frelease -O2"
9054 if test -n "$d_have_loader" && test "$enable_loader" = yes; then
9055 D_EXTRA_OBJS
="$D_EXTRA_OBJS std/loader.o"
9060 # phobose_use_pthreads was here...
9062 d_subdirs
=`( cd $srcdir && find . -type d ) | sed -e 's/^.\///'`
9063 d_subdirs
="$d_subdirs gcc"
9064 for i
in $d_subdirs; do
9071 # if test -n "$d_cross_comp"; then
9075 # Garbage collection configuration
9080 case "$target_os" in
9082 D_GC_MODULES
=internal
/gc
/win32.o
9085 *) if test "$with_newlib"; then
9086 D_GC_MODULES
=internal
/gc
/gcgcc.o
9087 D_GC_FLAGS
='-fversion=GC_Use_Stack_Guess -fversion=GC_Use_Alloc_Malloc'
9088 D_GC_MODULES
="internal/gc/gcgcc.o internal/gc/gc_guess_stack.o"
9095 if test "$need_to_cfgr_gc" = yes; then
9098 D_GC_MODULES
=internal
/gc
/gcgcc.o
9104 case "$d_target_os" in
9105 aix
*) d_gc_data
="$d_gc_data GC_Use_Data_Fixed"
9107 cygwin
*) d_gc_data
="$d_gc_data GC_Use_Data_Fixed"
9109 darwin
*) D_GC_MODULES
="$D_GC_MODULES internal/gc/gc_dyld.o"
9110 d_gc_stack
=GC_Use_Stack_Fixed
9111 d_gc_data
="$d_gc_data GC_Use_Data_Dyld"
9113 *freebsd
*)D_GC_MODULES
="$D_GC_MODULES internal/gc/gc_freebsd.o"
9114 d_gc_stack
=GC_Use_Stack_FreeBSD
9115 d_gc_data
="$d_gc_data GC_Use_Data_Fixed"
9118 #d_gc_stack=GC_Use_Stack_Proc_Stat
9119 d_gc_data
="$d_gc_data GC_Use_Data_Fixed"
9122 skyos
*) d_gc_data
="$d_gc_data GC_Use_Data_Fixed"
9124 *) D_GC_MODULES
=internal
/gc
/gcgcc.o
9128 if test -z "$d_gc_alloc"; then
9129 echo "$as_me:$LINENO: checking for mmap" >&5
9130 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9131 if test "${ac_cv_func_mmap+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 if test x
$gcc_no_link = xyes
; then
9135 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9136 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9137 { (exit 1); exit 1; }; }
9139 cat >conftest.
$ac_ext <<_ACEOF
9142 cat confdefs.h
>>conftest.
$ac_ext
9143 cat >>conftest.
$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9145 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9147 #define mmap innocuous_mmap
9149 /* System header to define __stub macros and hopefully few prototypes,
9150 which can conflict with char mmap (); below.
9151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9152 <limits.h> exists even on freestanding compilers. */
9155 # include <limits.h>
9157 # include <assert.h>
9162 /* Override any gcc2 internal prototype to avoid an error. */
9167 /* We use char because int might match the return type of a gcc2
9168 builtin and then its argument prototype would still apply. */
9170 /* The GNU C library defines this for functions which it implements
9171 to always fail with ENOSYS. Some functions are actually named
9172 something starting with __ and the normal name is an alias. */
9173 #if defined (__stub_mmap) || defined (__stub___mmap)
9176 char (*f) () = mmap;
9190 rm -f conftest.
$ac_objext conftest
$ac_exeext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9192 (eval $ac_link) 2>conftest.er1
9194 grep -v '^ *+' conftest.er1
>conftest.err
9196 cat conftest.err
>&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try
='test -z "$ac_c_werror_flag"
9200 || test ! -s conftest.err'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; } &&
9206 { ac_try
='test -s conftest$ac_exeext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.
$ac_ext >&5
9219 rm -f conftest.err conftest.
$ac_objext \
9220 conftest
$ac_exeext conftest.
$ac_ext
9222 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9223 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9224 if test $ac_cv_func_mmap = yes; then
9225 d_gc_alloc
=GC_Use_Alloc_MMap
9229 if test -z "$d_gc_alloc"; then
9230 echo "$as_me:$LINENO: checking for valloc" >&5
9231 echo $ECHO_N "checking for valloc... $ECHO_C" >&6
9232 if test "${ac_cv_func_valloc+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 if test x
$gcc_no_link = xyes
; then
9236 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9237 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9238 { (exit 1); exit 1; }; }
9240 cat >conftest.
$ac_ext <<_ACEOF
9243 cat confdefs.h
>>conftest.
$ac_ext
9244 cat >>conftest.
$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246 /* Define valloc to an innocuous variant, in case <limits.h> declares valloc.
9247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9248 #define valloc innocuous_valloc
9250 /* System header to define __stub macros and hopefully few prototypes,
9251 which can conflict with char valloc (); below.
9252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9253 <limits.h> exists even on freestanding compilers. */
9256 # include <limits.h>
9258 # include <assert.h>
9263 /* Override any gcc2 internal prototype to avoid an error. */
9268 /* We use char because int might match the return type of a gcc2
9269 builtin and then its argument prototype would still apply. */
9271 /* The GNU C library defines this for functions which it implements
9272 to always fail with ENOSYS. Some functions are actually named
9273 something starting with __ and the normal name is an alias. */
9274 #if defined (__stub_valloc) || defined (__stub___valloc)
9277 char (*f) () = valloc;
9291 rm -f conftest.
$ac_objext conftest
$ac_exeext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9293 (eval $ac_link) 2>conftest.er1
9295 grep -v '^ *+' conftest.er1
>conftest.err
9297 cat conftest.err
>&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } &&
9300 { ac_try
='test -z "$ac_c_werror_flag"
9301 || test ! -s conftest.err'
9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; } &&
9307 { ac_try
='test -s conftest$ac_exeext'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
9313 ac_cv_func_valloc
=yes
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.
$ac_ext >&5
9318 ac_cv_func_valloc
=no
9320 rm -f conftest.err conftest.
$ac_objext \
9321 conftest
$ac_exeext conftest.
$ac_ext
9323 echo "$as_me:$LINENO: result: $ac_cv_func_valloc" >&5
9324 echo "${ECHO_T}$ac_cv_func_valloc" >&6
9325 if test $ac_cv_func_valloc = yes; then
9326 d_gc_alloc
=GC_Use_Alloc_Valloc
9330 if test -z "$d_gc_alloc"; then
9331 # Use malloc as a fallback
9332 d_gc_alloc
=GC_Use_Alloc_Malloc
9334 #if test -z "$d_gc_alloc"; then
9335 # AC_MSG_ERROR([No usable memory allocation routine])
9338 if test -z "$d_gc_stack"; then
9339 echo "$as_me:$LINENO: checking for __libc_stack_end" >&5
9340 echo $ECHO_N "checking for __libc_stack_end... $ECHO_C" >&6
9341 if test x
$gcc_no_link = xyes
; then
9342 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9343 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9344 { (exit 1); exit 1; }; }
9346 cat >conftest.
$ac_ext <<_ACEOF
9349 cat confdefs.h
>>conftest.
$ac_ext
9350 cat >>conftest.
$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9357 extern long __libc_stack_end;
9358 return __libc_stack_end == 0;
9363 rm -f conftest.
$ac_objext conftest
$ac_exeext
9364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365 (eval $ac_link) 2>conftest.er1
9367 grep -v '^ *+' conftest.er1
>conftest.err
9369 cat conftest.err
>&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } &&
9372 { ac_try
='test -z "$ac_c_werror_flag"
9373 || test ! -s conftest.err'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; } &&
9379 { ac_try
='test -s conftest$ac_exeext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 echo "$as_me:$LINENO: result: yes" >&5
9386 echo "${ECHO_T}yes" >&6
9387 d_gc_stack
=GC_Use_Stack_GLibC
9389 echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.
$ac_ext >&5
9392 echo "$as_me:$LINENO: result: no" >&5
9393 echo "${ECHO_T}no" >&6
9395 rm -f conftest.err conftest.
$ac_objext \
9396 conftest
$ac_exeext conftest.
$ac_ext
9398 if test -z "$d_gc_stack"; then
9399 d_gc_stack
=GC_Use_Stack_Guess
9400 D_GC_MODULES
="$D_GC_MODULES internal/gc/gc_guess_stack.o"
9402 if test -z "$d_gc_stack"; then
9403 { { echo "$as_me:$LINENO: error: No usable stack origin information" >&5
9404 echo "$as_me: error: No usable stack origin information" >&2;}
9405 { (exit 1); exit 1; }; }
9408 if test -n "$have_proc_maps" && test "$enable_proc_maps" = auto
; then
9409 enable_proc_maps
=yes
9411 if test "$enable_proc_maps" = yes; then
9412 d_gc_data
="$d_gc_data GC_Use_Data_Proc_Maps"
9414 if test -z "$d_gc_data"; then
9415 { { echo "$as_me:$LINENO: error: No usable data segment information" >&5
9416 echo "$as_me: error: No usable data segment information" >&2;}
9417 { (exit 1); exit 1; }; }
9420 f
="-fversion=$d_gc_alloc -fversion=$d_gc_stack"
9421 for m
in $d_gc_data; do f
="$f -fversion=$m"; done
9430 ac_config_files
="$ac_config_files Makefile frag-ac frag-math phobos-ver-syms"
9431 cat >confcache
<<\_ACEOF
9432 # This file is a shell script that caches the results of configure
9433 # tests run on this system so they can be shared between configure
9434 # scripts and configure runs, see configure's option --config-cache.
9435 # It is not useful on other systems. If it contains results you don't
9436 # want to keep, you may remove or edit it.
9438 # config.status only pays attention to the cache file if you give it
9439 # the --recheck option to rerun configure.
9441 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9442 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9447 # The following way of writing the cache mishandles newlines in values,
9448 # but we know of no workaround that is simple, portable, and efficient.
9449 # So, don't put newlines in cache variables' values.
9450 # Ultrix sh set writes to stderr and can't be redirected directly,
9451 # and sets the high bit in the cache file unless we assign to the vars.
9454 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9456 # `set' does not quote correctly, so add quotes (double-quote
9457 # substitution turns \\\\ into \\, and sed turns \\ into \).
9460 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9463 # `set' quotes correctly as required by POSIX, so do not add quotes.
9465 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9472 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9474 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9476 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
9477 if test -w $cache_file; then
9478 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9479 cat confcache
>$cache_file
9481 echo "not updating unwritable cache $cache_file"
9486 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9487 # Let make expand exec_prefix.
9488 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9490 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9491 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9492 # trailing colons and then remove the whole line if VPATH becomes empty
9493 # (actually we leave an empty line to preserve line numbers).
9494 if test "x$srcdir" = x.
; then
9495 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9496 s/:*\$(srcdir):*/:/;
9497 s/:*\${srcdir}:*/:/;
9499 s/^\([^=]*=[ ]*\):*/\1/;
9505 DEFS
=-DHAVE_CONFIG_H
9509 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9510 # 1. Remove the extension, and $U if already installed.
9511 ac_i
=`echo "$ac_i" |
9512 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9514 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
9515 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
9519 LTLIBOBJS
=$ac_ltlibobjs
9523 : ${CONFIG_STATUS=./config.status}
9524 ac_clean_files_save
=$ac_clean_files
9525 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9526 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9527 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9528 cat >$CONFIG_STATUS <<_ACEOF
9530 # Generated by $as_me.
9531 # Run this file to recreate the current configuration.
9532 # Compiler output produced by configure, useful for debugging
9533 # configure, is in config.log if it exists.
9538 SHELL=\${CONFIG_SHELL-$SHELL}
9541 cat >>$CONFIG_STATUS <<\_ACEOF
9542 ## --------------------- ##
9543 ## M4sh Initialization. ##
9544 ## --------------------- ##
9546 # Be Bourne compatible
9547 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
9550 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9551 # is contrary to our usage. Disable this feature.
9552 alias -g '${1+"$@"}'='"$@"'
9553 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
9556 DUALCASE
=1; export DUALCASE
# for MKS sh
9558 # Support unset when possible.
9559 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
9566 # Work around bugs in pre-3.0 UWIN ksh.
9567 $as_unset ENV MAIL MAILPATH
9574 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9575 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9576 LC_TELEPHONE LC_TIME
9578 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9579 eval $as_var=C
; export $as_var
9585 # Required to use basename.
9586 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9592 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
9593 as_basename
=basename
9599 # Name of the executable.
9600 as_me
=`$as_basename "$0" ||
9601 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9602 X"$0" : 'X\(//\)$' \| \
9603 X"$0" : 'X\(/\)$' \| \
9604 . : '\(.\)' 2>/dev/null ||
9606 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9607 /^X\/\(\/\/\)$/{ s//\1/; q; }
9608 /^X\/\(\/\).*/{ s//\1/; q; }
9612 # PATH needs CR, and LINENO needs CR and PATH.
9613 # Avoid depending upon Character Ranges.
9614 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9615 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9616 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9617 as_cr_digits
='0123456789'
9618 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9620 # The user is always right.
9621 if test "${PATH_SEPARATOR+set}" != set; then
9622 echo "#! /bin/sh" >conf$$.sh
9623 echo "exit 0" >>conf$$.sh
9625 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9636 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
9637 test "x$as_lineno_1" != "x$as_lineno_2" &&
9638 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
9639 # Find who we are. Look in the path if we contain no path at all
9642 *[\\/]* ) as_myself
=$0 ;;
9643 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9647 test -z "$as_dir" && as_dir
=.
9648 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
9653 # We did not find ourselves, most probably we were run as `sh COMMAND'
9654 # in which case we are not to be found in the path.
9655 if test "x$as_myself" = x
; then
9658 if test ! -f "$as_myself"; then
9659 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9660 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9661 { (exit 1); exit 1; }; }
9663 case $CONFIG_SHELL in
9665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9666 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
9669 test -z "$as_dir" && as_dir
=.
9670 for as_base
in sh bash ksh sh5
; do
9673 if ("$as_dir/$as_base" -c '
9676 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9677 test "x$as_lineno_1" != "x$as_lineno_2" &&
9678 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
9679 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
9680 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
9681 CONFIG_SHELL
=$as_dir/$as_base
9683 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9691 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9692 # uniformly replaced by the line number. The first 'sed' inserts a
9693 # line-number line before each line; the second 'sed' does the real
9694 # work. The second script uses 'N' to pair each line-number line
9695 # with the numbered line, and appends trailing '-' during
9696 # substitution so that $LINENO is not a special case at line end.
9697 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9698 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9699 sed '=' <$as_myself |
9704 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9707 s,^['$as_cr_digits']*\n,,
9709 chmod +x
$as_me.lineno ||
9710 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9711 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9712 { (exit 1); exit 1; }; }
9714 # Don't try to exec as it changes $[0], causing all sort of problems
9715 # (the dirname of $[0] is not the place where we might find the
9716 # original and so on. Autoconf is especially sensible to this).
9718 # Exit status is that of the last command.
9723 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9724 *c
*,-n*) ECHO_N
= ECHO_C
='
9726 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
9727 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
9730 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9736 rm -f conf$$ conf$$.exe conf$$.
file
9738 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9739 # We could just check for DJGPP; but this test a) works b) is more generic
9740 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9741 if test -f conf$$.exe
; then
9742 # Don't use ln at all; we don't have any links
9747 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9752 rm -f conf$$ conf$$.exe conf$$.
file
9754 if mkdir
-p .
2>/dev
/null
; then
9757 test -d .
/-p && rmdir .
/-p
9761 as_executable_p
="test -f"
9763 # Sed expression to map a string onto a valid CPP name.
9764 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9766 # Sed expression to map a string onto a valid variable name.
9767 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9771 # We need space, tab and new line, in precisely that order.
9781 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9782 # report actual input values of CONFIG_FILES etc. instead of their
9783 # values after options handling. Logging --version etc. is OK.
9787 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9788 ## Running $as_me. ##
9793 This file was extended by libphobos $as_me version-unused, which was
9794 generated by GNU Autoconf 2.59. Invocation command line was
9796 CONFIG_FILES = $CONFIG_FILES
9797 CONFIG_HEADERS = $CONFIG_HEADERS
9798 CONFIG_LINKS = $CONFIG_LINKS
9799 CONFIG_COMMANDS = $CONFIG_COMMANDS
9803 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9807 # Files that config.status was made for.
9808 if test -n "$ac_config_files"; then
9809 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9812 if test -n "$ac_config_headers"; then
9813 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9816 if test -n "$ac_config_links"; then
9817 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9820 if test -n "$ac_config_commands"; then
9821 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9824 cat >>$CONFIG_STATUS <<\_ACEOF
9827 \`$as_me' instantiates files from templates according to the
9828 current configuration.
9830 Usage: $0 [OPTIONS] [FILE]...
9832 -h, --help print this help, then exit
9833 -V, --version print version number, then exit
9834 -q, --quiet do not print progress messages
9835 -d, --debug don't remove temporary files
9836 --recheck update $as_me by reconfiguring in the same conditions
9837 --file=FILE[:TEMPLATE]
9838 instantiate the configuration file FILE
9839 --header=FILE[:TEMPLATE]
9840 instantiate the configuration header FILE
9842 Configuration files:
9845 Configuration headers:
9848 Configuration commands:
9851 Report bugs to <bug-autoconf@gnu.org>."
9854 cat >>$CONFIG_STATUS <<_ACEOF
9856 libphobos config.status version-unused
9857 configured by $0, generated by GNU Autoconf 2.59,
9858 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9860 Copyright (C) 2003 Free Software Foundation, Inc.
9861 This config.status script is free software; the Free Software Foundation
9862 gives unlimited permission to copy, distribute and modify it."
9867 cat >>$CONFIG_STATUS <<\_ACEOF
9868 # If no file are specified by the user, then we need to provide default
9869 # value. By we need to know if files were specified by the user.
9875 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9876 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9884 *) # This is not an option, so the user has probably given explicit
9887 ac_need_defaults
=false
;;
9891 # Handling of the options.
9893 cat >>$CONFIG_STATUS <<\_ACEOF
9894 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9896 --version |
--vers* |
-V )
9897 echo "$ac_cs_version"; exit 0 ;;
9899 # Conflict between --help and --header
9900 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9901 Try \`$0 --help' for more information." >&5
9902 echo "$as_me: error: ambiguous option: $1
9903 Try \`$0 --help' for more information." >&2;}
9904 { (exit 1); exit 1; }; };;
9905 --help |
--hel |
-h )
9906 echo "$ac_cs_usage"; exit 0 ;;
9907 --debug |
--d* |
-d )
9909 --file |
--fil |
--fi |
--f )
9911 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
9912 ac_need_defaults
=false
;;
9913 --header |
--heade |
--head |
--hea )
9915 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
9916 ac_need_defaults
=false
;;
9917 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9918 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9922 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9923 Try \`$0 --help' for more information." >&5
9924 echo "$as_me: error: unrecognized option: $1
9925 Try \`$0 --help' for more information." >&2;}
9926 { (exit 1); exit 1; }; } ;;
9928 *) ac_config_targets
="$ac_config_targets $1" ;;
9934 ac_configure_extra_args
=
9936 if $ac_cs_silent; then
9938 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9942 cat >>$CONFIG_STATUS <<_ACEOF
9943 if \$ac_cs_recheck; then
9944 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9945 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9950 cat >>$CONFIG_STATUS <<_ACEOF
9952 # INIT-COMMANDS section.
9959 with_multisubdir="$with_multisubdir"
9960 with_multisrctop="$with_multisrctop"
9961 with_target_subdir="$with_target_subdir"
9962 ac_configure_args="${multilib_arg} ${ac_configure_args}"
9963 multi_basedir="$multi_basedir"
9964 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9971 cat >>$CONFIG_STATUS <<\_ACEOF
9972 for ac_config_target
in $ac_config_targets
9974 case "$ac_config_target" in
9975 # Handling of arguments.
9976 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9977 "frag-ac" ) CONFIG_FILES
="$CONFIG_FILES frag-ac" ;;
9978 "frag-math" ) CONFIG_FILES
="$CONFIG_FILES frag-math" ;;
9979 "phobos-ver-syms" ) CONFIG_FILES
="$CONFIG_FILES phobos-ver-syms" ;;
9980 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
9981 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
9982 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9983 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9984 { (exit 1); exit 1; }; };;
9988 # If the user did not use the arguments to specify the items to instantiate,
9989 # then the envvar interface is used. Set only those that are not.
9990 # We use the long form for the default assignment because of an extremely
9991 # bizarre bug on SunOS 4.1.3.
9992 if $ac_need_defaults; then
9993 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9994 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9995 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9998 # Have a temporary directory for convenience. Make it in the build tree
9999 # simply because there is no reason to put it here, and in addition,
10000 # creating and moving files from /tmp can sometimes cause problems.
10001 # Create a temporary directory, and hook for its removal unless debugging.
10004 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10005 trap '{ (exit 1); exit 1; }' 1 2 13 15
10008 # Create a (secure) tmp directory for tmp files.
10011 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10012 test -n "$tmp" && test -d "$tmp"
10015 tmp
=.
/confstat$$
-$RANDOM
10016 (umask 077 && mkdir
$tmp)
10019 echo "$me: cannot create a temporary directory in ." >&2
10020 { (exit 1); exit 1; }
10025 cat >>$CONFIG_STATUS <<_ACEOF
10028 # CONFIG_FILES section.
10031 # No need to generate the scripts if there are no CONFIG_FILES.
10032 # This happens for instance when ./config.status config.h
10033 if test -n "\$CONFIG_FILES"; then
10034 # Protect against being on the right side of a sed subst in config.status.
10035 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10036 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10037 s,@SHELL@,$SHELL,;t t
10038 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10039 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10040 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10041 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10042 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10043 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10044 s,@exec_prefix@,$exec_prefix,;t t
10045 s,@prefix@,$prefix,;t t
10046 s,@program_transform_name@,$program_transform_name,;t t
10047 s,@bindir@,$bindir,;t t
10048 s,@sbindir@,$sbindir,;t t
10049 s,@libexecdir@,$libexecdir,;t t
10050 s,@datadir@,$datadir,;t t
10051 s,@sysconfdir@,$sysconfdir,;t t
10052 s,@sharedstatedir@,$sharedstatedir,;t t
10053 s,@localstatedir@,$localstatedir,;t t
10054 s,@libdir@,$libdir,;t t
10055 s,@includedir@,$includedir,;t t
10056 s,@oldincludedir@,$oldincludedir,;t t
10057 s,@infodir@,$infodir,;t t
10058 s,@mandir@,$mandir,;t t
10059 s,@build_alias@,$build_alias,;t t
10060 s,@host_alias@,$host_alias,;t t
10061 s,@target_alias@,$target_alias,;t t
10062 s,@DEFS@,$DEFS,;t t
10063 s,@ECHO_C@,$ECHO_C,;t t
10064 s,@ECHO_N@,$ECHO_N,;t t
10065 s,@ECHO_T@,$ECHO_T,;t t
10066 s,@LIBS@,$LIBS,;t t
10067 s,@build@,$build,;t t
10068 s,@build_cpu@,$build_cpu,;t t
10069 s,@build_vendor@,$build_vendor,;t t
10070 s,@build_os@,$build_os,;t t
10071 s,@host@,$host,;t t
10072 s,@host_cpu@,$host_cpu,;t t
10073 s,@host_vendor@,$host_vendor,;t t
10074 s,@host_os@,$host_os,;t t
10075 s,@target@,$target,;t t
10076 s,@target_cpu@,$target_cpu,;t t
10077 s,@target_vendor@,$target_vendor,;t t
10078 s,@target_os@,$target_os,;t t
10079 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10080 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10081 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10082 s,@CYGPATH_W@,$CYGPATH_W,;t t
10083 s,@PACKAGE@,$PACKAGE,;t t
10084 s,@VERSION@,$VERSION,;t t
10085 s,@ACLOCAL@,$ACLOCAL,;t t
10086 s,@AUTOCONF@,$AUTOCONF,;t t
10087 s,@AUTOMAKE@,$AUTOMAKE,;t t
10088 s,@AUTOHEADER@,$AUTOHEADER,;t t
10089 s,@MAKEINFO@,$MAKEINFO,;t t
10090 s,@install_sh@,$install_sh,;t t
10091 s,@STRIP@,$STRIP,;t t
10092 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10093 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10094 s,@mkdir_p@,$mkdir_p,;t t
10096 s,@SET_MAKE@,$SET_MAKE,;t t
10097 s,@am__leading_dot@,$am__leading_dot,;t t
10098 s,@AMTAR@,$AMTAR,;t t
10099 s,@am__tar@,$am__tar,;t t
10100 s,@am__untar@,$am__untar,;t t
10101 s,@multi_basedir@,$multi_basedir,;t t
10103 s,@ac_ct_CC@,$ac_ct_CC,;t t
10104 s,@EXEEXT@,$EXEEXT,;t t
10105 s,@OBJEXT@,$OBJEXT,;t t
10107 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10108 s,@CFLAGS@,$CFLAGS,;t t
10109 s,@CXXFLAGS@,$CXXFLAGS,;t t
10111 s,@RANLIB@,$RANLIB,;t t
10112 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10114 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10115 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
10116 s,@BUILD_LIBIBERTY@,$BUILD_LIBIBERTY,;t t
10117 s,@LIBIBERTY_H_PATH@,$LIBIBERTY_H_PATH,;t t
10118 s,@gdc_include_dir@,$gdc_include_dir,;t t
10119 s,@phobos_toolexecdir@,$phobos_toolexecdir,;t t
10120 s,@phobos_toolexeclibdir@,$phobos_toolexeclibdir,;t t
10122 s,@CPPFLAGS@,$CPPFLAGS,;t t
10123 s,@EGREP@,$EGREP,;t t
10124 s,@D_EXTRA_OBJS@,$D_EXTRA_OBJS,;t t
10125 s,@D_PREREQ_SRCS@,$D_PREREQ_SRCS,;t t
10126 s,@DCFG_USE_IEEE_FPSB@,$DCFG_USE_IEEE_FPSB,;t t
10127 s,@DCFG_TRUNC@,$DCFG_TRUNC,;t t
10128 s,@DCFG_NEARBYINT@,$DCFG_NEARBYINT,;t t
10129 s,@DCFG_ROUND@,$DCFG_ROUND,;t t
10130 s,@DCFG_TGAMMA@,$DCFG_TGAMMA,;t t
10131 s,@DCFG_NAN@,$DCFG_NAN,;t t
10132 s,@DCFG_EXP2_LOG2@,$DCFG_EXP2_LOG2,;t t
10133 s,@DCFG_EXECVPE@,$DCFG_EXECVPE,;t t
10134 s,@DCFG_SPAWNVP@,$DCFG_SPAWNVP,;t t
10135 s,@DCFG_FWIDE@,$DCFG_FWIDE,;t t
10136 s,@DCFG_HAVE_GETDELIM@,$DCFG_HAVE_GETDELIM,;t t
10137 s,@DCFG_HAVE_FGETLN@,$DCFG_HAVE_FGETLN,;t t
10138 s,@DCFG_HAVE_FGETLINE@,$DCFG_HAVE_FGETLINE,;t t
10139 s,@DCFG_HAVE_UNLOCKED_STDIO@,$DCFG_HAVE_UNLOCKED_STDIO,;t t
10140 s,@DCFG_HAVE_UNLOCKED_WIDE_STDIO@,$DCFG_HAVE_UNLOCKED_WIDE_STDIO,;t t
10141 s,@DCFG_STRTOLD@,$DCFG_STRTOLD,;t t
10142 s,@DCFG_ARM_EABI_UNWINDER@,$DCFG_ARM_EABI_UNWINDER,;t t
10143 s,@DCFG_CBRIDGE_STDIO@,$DCFG_CBRIDGE_STDIO,;t t
10144 s,@DCFG_PTHREAD_SUSPEND@,$DCFG_PTHREAD_SUSPEND,;t t
10145 s,@DCFG_SEMAPHORE_IMPL@,$DCFG_SEMAPHORE_IMPL,;t t
10146 s,@DCFG_MMAP@,$DCFG_MMAP,;t t
10147 s,@DCFG_GETPWNAM_R@,$DCFG_GETPWNAM_R,;t t
10148 s,@DCFG_UNIX@,$DCFG_UNIX,;t t
10149 s,@DFLAGS@,$DFLAGS,;t t
10150 s,@srcdir@,$srcdir,;t t
10151 s,@D_GC_FLAGS@,$D_GC_FLAGS,;t t
10152 s,@D_GC_MODULES@,$D_GC_MODULES,;t t
10153 s,@LIBOBJS@,$LIBOBJS,;t t
10154 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10155 /@DCFG_LONG_DOUBLE_FUNCS@/r $DCFG_LONG_DOUBLE_FUNCS
10156 s,@DCFG_LONG_DOUBLE_FUNCS@,,;t t
10157 /@DCFG_SQRTF@/r $DCFG_SQRTF
10158 s,@DCFG_SQRTF@,,;t t
10163 cat >>$CONFIG_STATUS <<\_ACEOF
10164 # Split the substitutions into bite-sized pieces for seds with
10165 # small command number limits, like on Digital OSF/1 and HP-UX.
10166 ac_max_sed_lines
=48
10167 ac_sed_frag
=1 # Number of current file.
10168 ac_beg
=1 # First line for current file.
10169 ac_end
=$ac_max_sed_lines # Line after last line for current file.
10172 while $ac_more_lines; do
10173 if test $ac_beg -gt 1; then
10174 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
10176 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
10178 if test ! -s $tmp/subs.frag
; then
10179 ac_more_lines
=false
10181 # The purpose of the label and of the branching condition is to
10182 # speed up the sed processing (if there are no `@' at all, there
10183 # is no need to browse any of the substitutions).
10184 # These are the two extra sed commands mentioned above.
10186 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
10187 if test -z "$ac_sed_cmds"; then
10188 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
10190 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10192 ac_sed_frag
=`expr $ac_sed_frag + 1`
10194 ac_end
=`expr $ac_end + $ac_max_sed_lines`
10197 if test -z "$ac_sed_cmds"; then
10200 fi # test -n "$CONFIG_FILES"
10203 cat >>$CONFIG_STATUS <<\_ACEOF
10204 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
10205 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10207 - |
*:- |
*:-:* ) # input from stdin
10209 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10210 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10211 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10212 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10213 * ) ac_file_in
=$ac_file.
in ;;
10216 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10217 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10218 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10219 X"$ac_file" : 'X\(//\)[^/]' \| \
10220 X"$ac_file" : 'X\(//\)$' \| \
10221 X"$ac_file" : 'X\(/\)' \| \
10222 . : '\(.\)' 2>/dev/null ||
10224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10226 /^X\(\/\/\)$/{ s//\1/; q; }
10227 /^X\(\/\).*/{ s//\1/; q; }
10229 { if $as_mkdir_p; then
10234 while test ! -d "$as_dir"; do
10235 as_dirs
="$as_dir $as_dirs"
10236 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10238 X"$as_dir" : 'X\(//\)[^/]' \| \
10239 X"$as_dir" : 'X\(//\)$' \| \
10240 X"$as_dir" : 'X\(/\)' \| \
10241 . : '\(.\)' 2>/dev/null ||
10243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10245 /^X\(\/\/\)$/{ s//\1/; q; }
10246 /^X\(\/\).*/{ s//\1/; q; }
10249 test ! -n "$as_dirs" || mkdir
$as_dirs
10250 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10251 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10252 { (exit 1); exit 1; }; }; }
10256 if test "$ac_dir" != .
; then
10257 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10258 # A "../" for each directory in $ac_dir_suffix.
10259 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10261 ac_dir_suffix
= ac_top_builddir
=
10265 .
) # No --srcdir option. We are building in place.
10267 if test -z "$ac_top_builddir"; then
10270 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
10272 [\\/]* | ?
:[\\/]* ) # Absolute path.
10273 ac_srcdir
=$srcdir$ac_dir_suffix;
10274 ac_top_srcdir
=$srcdir ;;
10275 *) # Relative path.
10276 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
10277 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
10280 # Do not use `cd foo && pwd` to compute absolute paths, because
10281 # the directories may not exist.
10283 .
) ac_abs_builddir
="$ac_dir";;
10286 .
) ac_abs_builddir
=`pwd`;;
10287 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
10288 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
10291 case $ac_abs_builddir in
10292 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10294 case ${ac_top_builddir}.
in
10295 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
10296 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10297 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
10300 case $ac_abs_builddir in
10301 .
) ac_abs_srcdir
=$ac_srcdir;;
10304 .
) ac_abs_srcdir
=$ac_abs_builddir;;
10305 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
10306 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
10309 case $ac_abs_builddir in
10310 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
10312 case $ac_top_srcdir in
10313 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
10314 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
10315 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
10321 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10322 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
10325 if test x
"$ac_file" != x-
; then
10326 { echo "$as_me:$LINENO: creating $ac_file" >&5
10327 echo "$as_me: creating $ac_file" >&6;}
10330 # Let's still pretend it is `configure' which instantiates (i.e., don't
10331 # use $as_me), people would be surprised to read:
10332 # /* config.h. Generated by config.status. */
10333 if test x
"$ac_file" = x-
; then
10336 configure_input
="$ac_file. "
10338 configure_input
=$configure_input"Generated from `echo $ac_file_in |
10339 sed 's,.*/,,'` by configure."
10341 # First look for the input files in the build tree, otherwise in the
10343 ac_file_inputs
=`IFS=:
10344 for f in $ac_file_in; do
10346 -) echo $tmp/stdin ;;
10348 # Absolute (can't be DOS-style, as IFS=:)
10349 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10350 echo "$as_me: error: cannot find input file: $f" >&2;}
10351 { (exit 1); exit 1; }; }
10354 if test -f "$f"; then
10357 elif test -f "$srcdir/$f"; then
10362 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10363 echo "$as_me: error: cannot find input file: $f" >&2;}
10364 { (exit 1); exit 1; }; }
10367 done` ||
{ (exit 1); exit 1; }
10369 cat >>$CONFIG_STATUS <<_ACEOF
10373 cat >>$CONFIG_STATUS <<\_ACEOF
10375 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10376 s
,@configure_input@
,$configure_input,;t t
10377 s
,@srcdir@
,$ac_srcdir,;t t
10378 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
10379 s
,@top_srcdir@
,$ac_top_srcdir,;t t
10380 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
10381 s
,@builddir@
,$ac_builddir,;t t
10382 s
,@abs_builddir@
,$ac_abs_builddir,;t t
10383 s
,@top_builddir@
,$ac_top_builddir,;t t
10384 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
10385 s
,@INSTALL@
,$ac_INSTALL,;t t
10386 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10388 if test x"$ac_file" != x-; then
10389 mv $tmp/out $ac_file
10397 cat >>$CONFIG_STATUS <<\_ACEOF
10400 # CONFIG_HEADER section.
10403 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
10404 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10406 # ac_d sets the value in "#define NAME VALUE" lines.
10407 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10408 ac_dB
='[ ].*$,\1#\2'
10411 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10412 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10413 ac_uB
='$,\1#\2define\3'
10417 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
10418 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10420 - |
*:- |
*:-:* ) # input from stdin
10422 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10423 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10424 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10425 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10426 * ) ac_file_in
=$ac_file.
in ;;
10429 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
10430 echo "$as_me: creating $ac_file" >&6;}
10432 # First look for the input files in the build tree, otherwise in the
10434 ac_file_inputs
=`IFS=:
10435 for f in $ac_file_in; do
10437 -) echo $tmp/stdin ;;
10439 # Absolute (can't be DOS-style, as IFS=:)
10440 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10441 echo "$as_me: error: cannot find input file: $f" >&2;}
10442 { (exit 1); exit 1; }; }
10443 # Do quote $f, to prevent DOS paths from being IFS'd.
10446 if test -f "$f"; then
10449 elif test -f "$srcdir/$f"; then
10454 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10455 echo "$as_me: error: cannot find input file: $f" >&2;}
10456 { (exit 1); exit 1; }; }
10459 done` ||
{ (exit 1); exit 1; }
10460 # Remove the trailing spaces.
10461 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10465 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10466 # `conftest.undefs', that substitutes the proper values into
10467 # config.h.in to produce config.h. The first handles `#define'
10468 # templates, and the second `#undef' templates.
10469 # And first: Protect against being on the right side of a sed subst in
10470 # config.status. Protect against being in an unquoted here document
10471 # in config.status.
10472 rm -f conftest.defines conftest.undefs
10473 # Using a here document instead of a string reduces the quoting nightmare.
10474 # Putting comments in sed scripts is not portable.
10476 # `end' is used to avoid that the second main sed command (meant for
10477 # 0-ary CPP macros) applies to n-ary macro definitions.
10478 # See the Autoconf documentation for `clear'.
10479 cat >confdef2sed.
sed <<\_ACEOF
10484 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10486 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10489 # If some macros were called several times there might be several times
10490 # the same #defines, which is useless. Nevertheless, we may not want to
10491 # sort them, since we want the *last* AC-DEFINE to be honored.
10492 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10493 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10494 rm -f confdef2sed.sed
10496 # This sed command replaces #undef with comments. This is necessary, for
10497 # example, in the case of _POSIX_SOURCE, which is predefined and required
10498 # on some systems where configure will not decide to define it.
10499 cat >>conftest.undefs <<\_ACEOF
10500 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10503 # Break up conftest.defines because some shells have a limit on the size
10504 # of here documents, and old seds have small limits too (100 cmds).
10505 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10506 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10507 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10508 echo ' :' >>$CONFIG_STATUS
10509 rm -f conftest.tail
10510 while grep . conftest.defines >/dev/null
10512 # Write a limited-size here document to $tmp/defines.sed.
10513 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10514 # Speed up: don't consider the non `#define' lines.
10515 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10516 # Work around the forget-to-reset-the-flag bug.
10517 echo 't clr' >>$CONFIG_STATUS
10518 echo ': clr' >>$CONFIG_STATUS
10519 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
10521 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10523 mv $tmp/out $tmp/in
10525 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
10526 rm -f conftest.defines
10527 mv conftest.
tail conftest.defines
10529 rm -f conftest.defines
10530 echo ' fi # grep' >>$CONFIG_STATUS
10531 echo >>$CONFIG_STATUS
10533 # Break up conftest.undefs because some shells have a limit on the size
10534 # of here documents, and old seds have small limits too (100 cmds).
10535 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10536 rm -f conftest.
tail
10537 while grep . conftest.undefs
>/dev
/null
10539 # Write a limited-size here document to $tmp/undefs.sed.
10540 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10541 # Speed up: don't consider the non
`#undef'
10542 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10543 # Work around the forget-to-reset-the-flag bug.
10544 echo 't clr' >>$CONFIG_STATUS
10545 echo ': clr' >>$CONFIG_STATUS
10546 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10548 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10550 mv $tmp/out $tmp/in
10552 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10553 rm -f conftest.undefs
10554 mv conftest.tail conftest.undefs
10556 rm -f conftest.undefs
10558 cat >>$CONFIG_STATUS <<\_ACEOF
10559 # Let's still pretend it is `configure
' which instantiates (i.e., don't
10560 # use $as_me), people would be surprised to read:
10561 # /* config.h. Generated by config.status. */
10562 if test x
"$ac_file" = x-
; then
10563 echo "/* Generated by configure. */" >$tmp/config.h
10565 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10567 cat $tmp/in >>$tmp/config.h
10569 if test x
"$ac_file" != x-
; then
10570 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
10571 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10572 echo "$as_me: $ac_file is unchanged" >&6;}
10574 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10575 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10576 X"$ac_file" : 'X\(//\)[^/]' \| \
10577 X"$ac_file" : 'X\(//\)$' \| \
10578 X"$ac_file" : 'X\(/\)' \| \
10579 . : '\(.\)' 2>/dev/null ||
10581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10582 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10583 /^X\(\/\/\)$/{ s//\1/; q; }
10584 /^X\(\/\).*/{ s//\1/; q; }
10586 { if $as_mkdir_p; then
10591 while test ! -d "$as_dir"; do
10592 as_dirs
="$as_dir $as_dirs"
10593 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10594 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10595 X"$as_dir" : 'X\(//\)[^/]' \| \
10596 X"$as_dir" : 'X\(//\)$' \| \
10597 X"$as_dir" : 'X\(/\)' \| \
10598 . : '\(.\)' 2>/dev/null ||
10600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10601 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10602 /^X\(\/\/\)$/{ s//\1/; q; }
10603 /^X\(\/\).*/{ s//\1/; q; }
10606 test ! -n "$as_dirs" || mkdir
$as_dirs
10607 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10608 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10609 { (exit 1); exit 1; }; }; }
10612 mv $tmp/config.h
$ac_file
10616 rm -f $tmp/config.h
10618 # Compute $ac_file's index in $config_headers.
10620 for _am_header
in $config_headers :; do
10621 case $_am_header in
10622 $ac_file |
$ac_file:* )
10625 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
10628 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10629 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10630 X$ac_file : 'X\(//\)[^/]' \| \
10631 X$ac_file : 'X\(//\)$' \| \
10632 X$ac_file : 'X\(/\)' \| \
10633 . : '\(.\)' 2>/dev/null ||
10635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10636 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10637 /^X\(\/\/\)$/{ s//\1/; q; }
10638 /^X\(\/\).*/{ s//\1/; q; }
10639 s/.*/./; q'`/stamp-h
$_am_stamp_count
10642 cat >>$CONFIG_STATUS <<\_ACEOF
10645 # CONFIG_COMMANDS section.
10647 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
10648 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
10649 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10650 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
10651 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10652 X"$ac_dest" : 'X\(//\)[^/]' \| \
10653 X"$ac_dest" : 'X\(//\)$' \| \
10654 X"$ac_dest" : 'X\(/\)' \| \
10655 . : '\(.\)' 2>/dev/null ||
10657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10658 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10659 /^X\(\/\/\)$/{ s//\1/; q; }
10660 /^X\(\/\).*/{ s//\1/; q; }
10662 { if $as_mkdir_p; then
10667 while test ! -d "$as_dir"; do
10668 as_dirs
="$as_dir $as_dirs"
10669 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10671 X"$as_dir" : 'X\(//\)[^/]' \| \
10672 X"$as_dir" : 'X\(//\)$' \| \
10673 X"$as_dir" : 'X\(/\)' \| \
10674 . : '\(.\)' 2>/dev/null ||
10676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10678 /^X\(\/\/\)$/{ s//\1/; q; }
10679 /^X\(\/\).*/{ s//\1/; q; }
10682 test ! -n "$as_dirs" || mkdir
$as_dirs
10683 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10684 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10685 { (exit 1); exit 1; }; }; }
10689 if test "$ac_dir" != .
; then
10690 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10691 # A "../" for each directory in $ac_dir_suffix.
10692 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10694 ac_dir_suffix
= ac_top_builddir
=
10698 .
) # No --srcdir option. We are building in place.
10700 if test -z "$ac_top_builddir"; then
10703 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
10705 [\\/]* | ?
:[\\/]* ) # Absolute path.
10706 ac_srcdir
=$srcdir$ac_dir_suffix;
10707 ac_top_srcdir
=$srcdir ;;
10708 *) # Relative path.
10709 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
10710 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
10713 # Do not use `cd foo && pwd` to compute absolute paths, because
10714 # the directories may not exist.
10716 .
) ac_abs_builddir
="$ac_dir";;
10719 .
) ac_abs_builddir
=`pwd`;;
10720 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
10721 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
10724 case $ac_abs_builddir in
10725 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10727 case ${ac_top_builddir}.
in
10728 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
10729 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10730 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
10733 case $ac_abs_builddir in
10734 .
) ac_abs_srcdir
=$ac_srcdir;;
10737 .
) ac_abs_srcdir
=$ac_abs_builddir;;
10738 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
10739 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
10742 case $ac_abs_builddir in
10743 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
10745 case $ac_top_srcdir in
10746 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
10747 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
10748 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
10753 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10754 echo "$as_me: executing $ac_dest commands" >&6;}
10757 # Only add multilib support code if we just rebuilt the top-level
10759 case " $CONFIG_FILES " in
10761 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
10768 cat >>$CONFIG_STATUS <<\_ACEOF
10770 { (exit 0); exit 0; }
10772 chmod +x
$CONFIG_STATUS
10773 ac_clean_files
=$ac_clean_files_save
10776 # configure is writing to config.log, and then calls config.status.
10777 # config.status does its own redirection, appending to config.log.
10778 # Unfortunately, on DOS this fails, as config.log is still kept open
10779 # by configure, so config.status won't be able to write to it; its
10780 # output is simply discarded. So we exec the FD to /dev/null,
10781 # effectively closing config.log, so it can be properly (re)opened and
10782 # appended to by config.status. When coming back to configure, we
10783 # need to make the FD available again.
10784 if test "$no_create" != yes; then
10786 ac_config_status_args
=
10787 test "$silent" = yes &&
10788 ac_config_status_args
="$ac_config_status_args --quiet"
10790 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10792 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10793 # would make configure fail if this is the last instruction.
10794 $ac_cs_success ||
{ (exit 1); exit 1; }