Don't merge TypeMaybe if it depends on an unresolved identifier
[delight/core.git] / phobos2 / configure
blob9d7d202f3afe59ba0e7b5143bb1f5cd9beb365f3
1 #! /bin/sh
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
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='libphobos'
269 PACKAGE_TARNAME='libphobos'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libphobos version-unused'
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="gcc/builtins.d"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
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.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
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'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
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 ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
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'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
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.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
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)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
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)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
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'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
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" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
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; }; }
631 *=*)
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'"
639 export $ac_envvar ;;
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}
649 esac
650 done
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`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
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`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
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.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
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
695 cross_compiling=yes
699 ac_tool_prefix=
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 ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
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; }; }
732 else
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.
768 cat <<_ACEOF
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.
778 Configuration:
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 \`..']
789 _ACEOF
791 cat <<_ACEOF
792 Installation directories:
793 --prefix=PREFIX install architecture-independent files in PREFIX
794 [$ac_default_prefix]
795 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
796 [PREFIX]
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]
818 _ACEOF
820 cat <<\_ACEOF
822 Program names:
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
827 System types:
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]
831 _ACEOF
834 if test -n "$ac_init_help"; then
835 case $ac_init_help in
836 short | recursive ) echo "Configuration of libphobos version-unused:";;
837 esac
838 cat <<\_ACEOF
840 Optional Features:
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
848 targets)
849 --enable-loader builds the std.loader module (default: yes, if
850 supported on taret)
851 --enable-proc-maps use /proc/self/maps to find data segments for
852 garbage collection (default: yes, if supported on
853 target)
854 --enable-phobos-config-dir=<dir>
855 use source file fragments in <dir>
857 Optional Packages:
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
871 CPP C preprocessor
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.
876 _ACEOF
879 if test "$ac_init_help" = "recursive"; then
880 # If there are subdirs, report their specific --help.
881 ac_popdir=`pwd`
882 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883 test -d $ac_dir || continue
884 ac_builddir=.
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'`
890 else
891 ac_dir_suffix= ac_top_builddir=
894 case $srcdir in
895 .) # No --srcdir option. We are building in place.
896 ac_srcdir=.
897 if test -z "$ac_top_builddir"; then
898 ac_top_srcdir=.
899 else
900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
901 fi ;;
902 [\\/]* | ?:[\\/]* ) # Absolute path.
903 ac_srcdir=$srcdir$ac_dir_suffix;
904 ac_top_srcdir=$srcdir ;;
905 *) # Relative path.
906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907 ac_top_srcdir=$ac_top_builddir$srcdir ;;
908 esac
910 # Do not use `cd foo && pwd` to compute absolute paths, because
911 # the directories may not exist.
912 case `pwd` in
913 .) ac_abs_builddir="$ac_dir";;
915 case "$ac_dir" in
916 .) ac_abs_builddir=`pwd`;;
917 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
918 *) ac_abs_builddir=`pwd`/"$ac_dir";;
919 esac;;
920 esac
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}.;;
928 esac;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_srcdir=$ac_srcdir;;
933 case $ac_srcdir in
934 .) ac_abs_srcdir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
936 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
937 esac;;
938 esac
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;;
946 esac;;
947 esac
949 cd $ac_dir
950 # Check for guested configure; otherwise get Cygnus style configure.
951 if test -f $ac_srcdir/configure.gnu; then
952 echo
953 $SHELL $ac_srcdir/configure.gnu --help=recursive
954 elif test -f $ac_srcdir/configure; then
955 echo
956 $SHELL $ac_srcdir/configure --help=recursive
957 elif test -f $ac_srcdir/configure.ac ||
958 test -f $ac_srcdir/configure.in; then
959 echo
960 $ac_configure --help
961 else
962 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
964 cd $ac_popdir
965 done
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
970 cat <<\_ACEOF
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.
977 _ACEOF
978 exit 0
980 exec 5>config.log
981 cat >&5 <<_ACEOF
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
988 $ $0 $@
990 _ACEOF
992 cat <<_ASUNAME
993 ## --------- ##
994 ## Platform. ##
995 ## --------- ##
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`
1014 _ASUNAME
1016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017 for as_dir in $PATH
1019 IFS=$as_save_IFS
1020 test -z "$as_dir" && as_dir=.
1021 echo "PATH: $as_dir"
1022 done
1024 } >&5
1026 cat >&5 <<_ACEOF
1029 ## ----------- ##
1030 ## Core tests. ##
1031 ## ----------- ##
1033 _ACEOF
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.
1041 ac_configure_args=
1042 ac_configure_args0=
1043 ac_configure_args1=
1044 ac_sep=
1045 ac_must_keep_next=false
1046 for ac_pass in 1 2
1048 for ac_arg
1050 case $ac_arg in
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)
1054 continue ;;
1055 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1057 esac
1058 case $ac_pass in
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.
1064 else
1065 case $ac_arg in
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 ;;
1072 esac
1074 -* ) ac_must_keep_next=true ;;
1075 esac
1077 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078 # Get rid of the leading space.
1079 ac_sep=" "
1081 esac
1082 done
1083 done
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.
1095 echo
1097 cat <<\_ASBOX
1098 ## ---------------- ##
1099 ## Cache variables. ##
1100 ## ---------------- ##
1101 _ASBOX
1102 echo
1103 # The following way of writing the cache mishandles newlines in values,
1105 (set) 2>&1 |
1106 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1107 *ac_space=\ *)
1108 sed -n \
1109 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113 sed -n \
1114 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116 esac;
1118 echo
1120 cat <<\_ASBOX
1121 ## ----------------- ##
1122 ## Output variables. ##
1123 ## ----------------- ##
1124 _ASBOX
1125 echo
1126 for ac_var in $ac_subst_vars
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1130 done | sort
1131 echo
1133 if test -n "$ac_subst_files"; then
1134 cat <<\_ASBOX
1135 ## ------------- ##
1136 ## Output files. ##
1137 ## ------------- ##
1138 _ASBOX
1139 echo
1140 for ac_var in $ac_subst_files
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1148 if test -s confdefs.h; then
1149 cat <<\_ASBOX
1150 ## ----------- ##
1151 ## confdefs.h. ##
1152 ## ----------- ##
1153 _ASBOX
1154 echo
1155 sed "/^$/d" confdefs.h | sort
1156 echo
1158 test "$ac_signal" != 0 &&
1159 echo "$as_me: caught signal $ac_signal"
1160 echo "$as_me: exit $exit_status"
1161 } >&5
1162 rm -f core *.core &&
1163 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1164 exit $exit_status
1166 for ac_signal in 1 2 13 15; do
1167 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 done
1169 ac_signal=0
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.
1174 echo >confdefs.h
1176 # Predefined preprocessor variables.
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 _ACEOF
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 _ACEOF
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 _ACEOF
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 _ACEOF
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 _ACEOF
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"
1208 else
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
1217 . "$ac_site_file"
1219 done
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;}
1227 case $cache_file in
1228 [\\/]* | ?:[\\/]* ) . $cache_file;;
1229 *) . ./$cache_file;;
1230 esac
1232 else
1233 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234 echo "$as_me: creating cache $cache_file" >&6;}
1235 >$cache_file
1238 # Check that the precious variables saved in the cache have kept the same
1239 # value.
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
1248 set,)
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=: ;;
1252 ,set)
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=: ;;
1256 ,);;
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=:
1266 fi;;
1267 esac
1268 # Pass precious variables to config.status.
1269 if test "$ac_new_set" = set; then
1270 case $ac_new_val in
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 *) ac_arg=$ac_var=$ac_new_val ;;
1274 esac
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'" ;;
1278 esac
1280 done
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; }; }
1289 ac_ext=c
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"
1325 ac_aux_dir=
1326 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1327 if test -f $ac_dir/install-sh; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/install-sh -c"
1330 break
1331 elif test -f $ac_dir/install.sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install.sh -c"
1334 break
1335 elif test -f $ac_dir/shtool; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 break
1340 done
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
1360 else
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
1376 build=$ac_cv_build
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
1386 else
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
1398 host=$ac_cv_host
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
1408 else
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" = \
1430 NONENONEs,x,x, &&
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
1442 # AIX /bin/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
1454 else
1455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1456 for as_dir in $PATH
1458 IFS=$as_save_IFS
1459 test -z "$as_dir" && as_dir=.
1460 # Account for people who put trailing slashes in PATH elements.
1461 case $as_dir/ in
1462 ./ | .// | /cC/* | \
1463 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1464 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1465 /usr/ucb/* ) ;;
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
1469 # by default.
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.
1481 else
1482 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1483 break 3
1486 done
1487 done
1489 esac
1490 done
1494 if test "${ac_cv_path_install+set}" = set; then
1495 INSTALL=$ac_cv_path_install
1496 else
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
1517 # Just in case
1518 sleep 1
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
1524 # directory).
1525 if (
1526 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1527 if test "$*" = "X"; then
1528 # -L didn't work.
1529 set X `ls -t $srcdir/configure conftest.file`
1531 rm -f 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
1548 then
1549 # Ok.
1551 else
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,$//
1569 _ACEOF
1570 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1571 rm 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 "
1580 else
1581 am_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
1591 # for two reasons:
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 --'
1602 else
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
1606 # exists.
1607 for d in ./-p ./--version;
1609 test -d $d && rmdir $d
1610 done
1611 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1612 if test -f "$ac_aux_dir/mkinstalldirs"; then
1613 mkdir_p='$(mkinstalldirs)'
1614 else
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
1627 else
1628 if test -n "$AWK"; then
1629 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1630 else
1631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 for as_dir in $PATH
1634 IFS=$as_save_IFS
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
1640 break 2
1642 done
1643 done
1647 AWK=$ac_cv_prog_AWK
1648 if test -n "$AWK"; then
1649 echo "$as_me:$LINENO: result: $AWK" >&5
1650 echo "${ECHO_T}$AWK" >&6
1651 else
1652 echo "$as_me:$LINENO: result: no" >&5
1653 echo "${ECHO_T}no" >&6
1656 test -n "$AWK" && break
1657 done
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
1664 else
1665 cat >conftest.make <<\_ACEOF
1666 all:
1667 @echo 'ac_maketemp="$(MAKE)"'
1668 _ACEOF
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
1673 else
1674 eval ac_cv_prog_make_${ac_make}_set=no
1676 rm -f conftest.make
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
1681 SET_MAKE=
1682 else
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
1691 am__leading_dot=.
1692 else
1693 am__leading_dot=_
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'
1709 else
1710 CYGPATH_W=echo
1715 # Define the identity of the package.
1716 PACKAGE='libphobos'
1717 VERSION='version-unused'
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE "$PACKAGE"
1722 _ACEOF
1725 cat >>confdefs.h <<_ACEOF
1726 #define VERSION "$VERSION"
1727 _ACEOF
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
1759 else
1760 if test -n "$STRIP"; then
1761 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1766 IFS=$as_save_IFS
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
1772 break 2
1774 done
1775 done
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
1783 else
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1789 if test -z "$ac_cv_prog_STRIP"; then
1790 ac_ct_STRIP=$STRIP
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
1797 else
1798 if test -n "$ac_ct_STRIP"; then
1799 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1800 else
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 for as_dir in $PATH
1804 IFS=$as_save_IFS
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
1810 break 2
1812 done
1813 done
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
1822 else
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1827 STRIP=$ac_ct_STRIP
1828 else
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
1836 # some platforms.
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 ;;
1854 no) multilib=no ;;
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; }; } ;;
1858 esac
1859 else
1860 multilib=yes
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"
1870 else
1871 multi_basedir="$srcdir/$with_multisrctop$d_mlcd"
1873 else
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"
1884 # from $srcdir.
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
1896 d_cross_comp=yes
1897 else
1898 d_cross_comp=
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
1931 cross_compiling=yes
1932 ac_ext=c
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
1944 else
1945 if test -n "$CC"; then
1946 ac_cv_prog_CC="$CC" # Let the user override the test.
1947 else
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1951 IFS=$as_save_IFS
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
1957 break 2
1959 done
1960 done
1964 CC=$ac_cv_prog_CC
1965 if test -n "$CC"; then
1966 echo "$as_me:$LINENO: result: $CC" >&5
1967 echo "${ECHO_T}$CC" >&6
1968 else
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1974 if test -z "$ac_cv_prog_CC"; then
1975 ac_ct_CC=$CC
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
1982 else
1983 if test -n "$ac_ct_CC"; then
1984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1985 else
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1989 IFS=$as_save_IFS
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
1995 break 2
1997 done
1998 done
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
2006 else
2007 echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6
2011 CC=$ac_ct_CC
2012 else
2013 CC="$ac_cv_prog_CC"
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
2024 else
2025 if test -n "$CC"; then
2026 ac_cv_prog_CC="$CC" # Let the user override the test.
2027 else
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 for as_dir in $PATH
2031 IFS=$as_save_IFS
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
2037 break 2
2039 done
2040 done
2044 CC=$ac_cv_prog_CC
2045 if test -n "$CC"; then
2046 echo "$as_me:$LINENO: result: $CC" >&5
2047 echo "${ECHO_T}$CC" >&6
2048 else
2049 echo "$as_me:$LINENO: result: no" >&5
2050 echo "${ECHO_T}no" >&6
2054 if test -z "$ac_cv_prog_CC"; then
2055 ac_ct_CC=$CC
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
2062 else
2063 if test -n "$ac_ct_CC"; then
2064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2065 else
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 for as_dir in $PATH
2069 IFS=$as_save_IFS
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
2075 break 2
2077 done
2078 done
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
2086 else
2087 echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2091 CC=$ac_ct_CC
2092 else
2093 CC="$ac_cv_prog_CC"
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
2104 else
2105 if test -n "$CC"; then
2106 ac_cv_prog_CC="$CC" # Let the user override the test.
2107 else
2108 ac_prog_rejected=no
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2112 IFS=$as_save_IFS
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
2118 continue
2120 ac_cv_prog_CC="cc"
2121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 break 2
2124 done
2125 done
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
2130 shift
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.
2135 shift
2136 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2141 CC=$ac_cv_prog_CC
2142 if test -n "$CC"; then
2143 echo "$as_me:$LINENO: result: $CC" >&5
2144 echo "${ECHO_T}$CC" >&6
2145 else
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
2153 for ac_prog in cl
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
2161 else
2162 if test -n "$CC"; then
2163 ac_cv_prog_CC="$CC" # Let the user override the test.
2164 else
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 for as_dir in $PATH
2168 IFS=$as_save_IFS
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
2174 break 2
2176 done
2177 done
2181 CC=$ac_cv_prog_CC
2182 if test -n "$CC"; then
2183 echo "$as_me:$LINENO: result: $CC" >&5
2184 echo "${ECHO_T}$CC" >&6
2185 else
2186 echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6
2190 test -n "$CC" && break
2191 done
2193 if test -z "$CC"; then
2194 ac_ct_CC=$CC
2195 for ac_prog in cl
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
2203 else
2204 if test -n "$ac_ct_CC"; then
2205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2206 else
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 for as_dir in $PATH
2210 IFS=$as_save_IFS
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
2216 break 2
2218 done
2219 done
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
2227 else
2228 echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6
2232 test -n "$ac_ct_CC" && break
2233 done
2235 CC=$ac_ct_CC
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
2253 ac_status=$?
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
2258 ac_status=$?
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
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }
2267 cat >conftest.$ac_ext <<_ACEOF
2268 /* confdefs.h. */
2269 _ACEOF
2270 cat confdefs.h >>conftest.$ac_ext
2271 cat >>conftest.$ac_ext <<_ACEOF
2272 /* end confdefs.h. */
2275 main ()
2279 return 0;
2281 _ACEOF
2282 # FIXME: Cleanup?
2283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2284 (eval $ac_link) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; then
2288 gcc_no_link=no
2289 else
2290 gcc_no_link=yes
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.
2297 cross_compiling=yes
2298 EXEEXT=
2299 else
2300 cat >conftest.$ac_ext <<_ACEOF
2301 /* confdefs.h. */
2302 _ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2308 main ()
2312 return 0;
2314 _ACEOF
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
2319 # of exeext.
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
2325 ac_status=$?
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
2330 # resort.
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.
2334 ac_cv_exeext=
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
2339 case $ac_file in
2340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2342 conftest.$ac_ext )
2343 # This is the source file.
2345 [ab].out )
2346 # We found the default executable, but exeext='' is most
2347 # certainly right.
2348 break;;
2349 *.* )
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.
2354 export ac_cv_exeext
2355 break;;
2357 break;;
2358 esac
2359 done
2360 else
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
2384 (eval $ac_try) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; }; then
2388 cross_compiling=no
2389 else
2390 if test "$cross_compiling" = maybe; then
2391 cross_compiling=yes
2392 else
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
2419 ac_status=$?
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
2425 # `rm'.
2426 for ac_file in conftest.exe conftest conftest.*; do
2427 test -f "$ac_file" || continue
2428 case $ac_file in
2429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2430 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2431 export ac_cv_exeext
2432 break;;
2433 * ) break;;
2434 esac
2435 done
2436 else
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
2450 ac_exeext=$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
2456 else
2457 cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h. */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2465 main ()
2469 return 0;
2471 _ACEOF
2472 rm -f conftest.o conftest.obj
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474 (eval $ac_compile) 2>&5
2475 ac_status=$?
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
2479 case $ac_file in
2480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2481 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2482 break;;
2483 esac
2484 done
2485 else
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
2501 ac_objext=$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
2506 else
2507 cat >conftest.$ac_ext <<_ACEOF
2508 /* confdefs.h. */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2515 main ()
2517 #ifndef __GNUC__
2518 choke me
2519 #endif
2522 return 0;
2524 _ACEOF
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
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
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
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
2543 (eval $ac_try) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2547 ac_compiler_gnu=yes
2548 else
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2552 ac_compiler_gnu=no
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
2563 CFLAGS="-g"
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
2568 else
2569 cat >conftest.$ac_ext <<_ACEOF
2570 /* confdefs.h. */
2571 _ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h. */
2577 main ()
2581 return 0;
2583 _ACEOF
2584 rm -f conftest.$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>conftest.er1
2587 ac_status=$?
2588 grep -v '^ *+' conftest.er1 >conftest.err
2589 rm -f conftest.er1
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
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
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
2602 (eval $ac_try) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 ac_cv_prog_cc_g=yes
2607 else
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2611 ac_cv_prog_cc_g=no
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
2621 CFLAGS="-g -O2"
2622 else
2623 CFLAGS="-g"
2625 else
2626 if test "$GCC" = yes; then
2627 CFLAGS="-O2"
2628 else
2629 CFLAGS=
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
2636 else
2637 ac_cv_prog_cc_stdc=no
2638 ac_save_CC=$CC
2639 cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h. */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2645 #include <stdarg.h>
2646 #include <stdio.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)
2653 char **p;
2654 int i;
2656 return p[i];
2658 static char *f (char * (*g) (char **, int), char **p, ...)
2660 char *s;
2661 va_list v;
2662 va_start (v,p);
2663 s = g (p, va_arg (v,int));
2664 va_end (v);
2665 return s;
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);
2681 int argc;
2682 char **argv;
2684 main ()
2686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2688 return 0;
2690 _ACEOF
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
2704 ac_status=$?
2705 grep -v '^ *+' conftest.er1 >conftest.err
2706 rm -f conftest.er1
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
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
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
2719 (eval $ac_try) 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2723 ac_cv_prog_cc_stdc=$ac_arg
2724 break
2725 else
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2730 rm -f conftest.err conftest.$ac_objext
2731 done
2732 rm -f conftest.$ac_ext conftest.$ac_objext
2733 CC=$ac_save_CC
2737 case "x$ac_cv_prog_cc_stdc" in
2738 x|xno)
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" ;;
2745 esac
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
2752 #ifndef __cplusplus
2753 choke me
2754 #endif
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2759 ac_status=$?
2760 grep -v '^ *+' conftest.er1 >conftest.err
2761 rm -f conftest.er1
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
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
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
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 for ac_declaration in \
2779 '' \
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);' \
2784 'void exit (int);'
2786 cat >conftest.$ac_ext <<_ACEOF
2787 /* confdefs.h. */
2788 _ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h. */
2792 $ac_declaration
2793 #include <stdlib.h>
2795 main ()
2797 exit (42);
2799 return 0;
2801 _ACEOF
2802 rm -f conftest.$ac_objext
2803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>conftest.er1
2805 ac_status=$?
2806 grep -v '^ *+' conftest.er1 >conftest.err
2807 rm -f conftest.er1
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
2814 (eval $ac_try) 2>&5
2815 ac_status=$?
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
2820 (eval $ac_try) 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; }; then
2825 else
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2829 continue
2831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832 cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h. */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2838 $ac_declaration
2840 main ()
2842 exit (42);
2844 return 0;
2846 _ACEOF
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849 (eval $ac_compile) 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
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
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
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
2865 (eval $ac_try) 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 break
2870 else
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
2876 done
2877 rm -f conftest*
2878 if test -n "$ac_declaration"; then
2879 echo '#ifdef __cplusplus' >>confdefs.h
2880 echo $ac_declaration >>confdefs.h
2881 echo '#endif' >>confdefs.h
2884 else
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
2890 ac_ext=c
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
2896 ac_ext=cc
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
2910 else
2911 if test -n "$CXX"; then
2912 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2913 else
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2917 IFS=$as_save_IFS
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
2923 break 2
2925 done
2926 done
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
2934 else
2935 echo "$as_me:$LINENO: result: no" >&5
2936 echo "${ECHO_T}no" >&6
2939 test -n "$CXX" && break
2940 done
2942 if test -z "$CXX"; then
2943 ac_ct_CXX=$CXX
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
2952 else
2953 if test -n "$ac_ct_CXX"; then
2954 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2959 IFS=$as_save_IFS
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
2965 break 2
2967 done
2968 done
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
2976 else
2977 echo "$as_me:$LINENO: result: no" >&5
2978 echo "${ECHO_T}no" >&6
2981 test -n "$ac_ct_CXX" && break
2982 done
2983 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2985 CXX=$ac_ct_CXX
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
2995 ac_status=$?
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
3000 ac_status=$?
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
3005 ac_status=$?
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
3013 else
3014 cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h. */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3022 main ()
3024 #ifndef __GNUC__
3025 choke me
3026 #endif
3029 return 0;
3031 _ACEOF
3032 rm -f conftest.$ac_objext
3033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3034 (eval $ac_compile) 2>conftest.er1
3035 ac_status=$?
3036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
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
3044 (eval $ac_try) 2>&5
3045 ac_status=$?
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
3050 (eval $ac_try) 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; }; then
3054 ac_compiler_gnu=yes
3055 else
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3059 ac_compiler_gnu=no
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
3070 CXXFLAGS="-g"
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
3075 else
3076 cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h. */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3084 main ()
3088 return 0;
3090 _ACEOF
3091 rm -f conftest.$ac_objext
3092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3093 (eval $ac_compile) 2>conftest.er1
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
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
3103 (eval $ac_try) 2>&5
3104 ac_status=$?
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
3109 (eval $ac_try) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 ac_cv_prog_cxx_g=yes
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 ac_cv_prog_cxx_g=no
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
3128 CXXFLAGS="-g -O2"
3129 else
3130 CXXFLAGS="-g"
3132 else
3133 if test "$GXX" = yes; then
3134 CXXFLAGS="-O2"
3135 else
3136 CXXFLAGS=
3139 for ac_declaration in \
3140 '' \
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);' \
3145 'void exit (int);'
3147 cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h. */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3153 $ac_declaration
3154 #include <stdlib.h>
3156 main ()
3158 exit (42);
3160 return 0;
3162 _ACEOF
3163 rm -f conftest.$ac_objext
3164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165 (eval $ac_compile) 2>conftest.er1
3166 ac_status=$?
3167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
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
3175 (eval $ac_try) 2>&5
3176 ac_status=$?
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
3181 (eval $ac_try) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3186 else
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3190 continue
3192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3193 cat >conftest.$ac_ext <<_ACEOF
3194 /* confdefs.h. */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3199 $ac_declaration
3201 main ()
3203 exit (42);
3205 return 0;
3207 _ACEOF
3208 rm -f conftest.$ac_objext
3209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3210 (eval $ac_compile) 2>conftest.er1
3211 ac_status=$?
3212 grep -v '^ *+' conftest.er1 >conftest.err
3213 rm -f conftest.er1
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
3220 (eval $ac_try) 2>&5
3221 ac_status=$?
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
3226 (eval $ac_try) 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; }; then
3230 break
3231 else
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
3237 done
3238 rm -f conftest*
3239 if test -n "$ac_declaration"; then
3240 echo '#ifdef __cplusplus' >>confdefs.h
3241 echo $ac_declaration >>confdefs.h
3242 echo '#endif' >>confdefs.h
3245 ac_ext=c
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"
3257 test "$AR" || AR=ar
3259 if test "$RANLIB"; then :
3261 else
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
3269 else
3270 if test -n "$RANLIB"; then
3271 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3276 IFS=$as_save_IFS
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
3282 break 2
3284 done
3285 done
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
3293 else
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
3307 else
3308 if test -n "$ac_ct_RANLIB"; then
3309 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3314 IFS=$as_save_IFS
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
3320 break 2
3322 done
3323 done
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
3332 else
3333 echo "$as_me:$LINENO: result: no" >&5
3334 echo "${ECHO_T}no" >&6
3337 RANLIB=$ac_ct_RANLIB
3338 else
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
3349 # AIX /bin/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
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 # Account for people who put trailing slashes in PATH elements.
3368 case $as_dir/ in
3369 ./ | .// | /cC/* | \
3370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3371 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3372 /usr/ucb/* ) ;;
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
3376 # by default.
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.
3388 else
3389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3390 break 3
3393 done
3394 done
3396 esac
3397 done
3401 if test "${ac_cv_path_install+set}" = set; then
3402 INSTALL=$ac_cv_path_install
3403 else
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
3427 else
3428 cat >conftest.make <<\_ACEOF
3429 all:
3430 @echo 'ac_maketemp="$(MAKE)"'
3431 _ACEOF
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
3436 else
3437 eval ac_cv_prog_make_${ac_make}_set=no
3439 rm -f conftest.make
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
3444 SET_MAKE=
3445 else
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
3454 _ACEOF
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
3462 else
3463 d_thread_lib=""
3466 # Check whether --enable-unix or --disable-unix was given.
3467 if test "${enable_unix+set}" = set; then
3468 enableval="$enable_unix"
3470 else
3471 enable_unix=auto
3474 # Check whether --enable-loader or --disable-loader was given.
3475 if test "${enable_loader+set}" = set; then
3476 enableval="$enable_loader"
3478 else
3479 enable_loader=yes
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'
3488 auto|no)
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; }; }
3494 esac
3495 else
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; }; }
3507 else
3511 if test ${multilib} = yes; then
3512 multilib_arg="--enable-multilib"
3513 else
3514 multilib_arg=
3517 d_target_os=`echo $target_os | sed 's/^\(A-Za-z_+\)/\1/'`
3519 # SkyOS uses i386-skyos-pe
3520 case "$target" in
3521 *-skyos*-pe*) d_target_os=skyos ;;
3522 esac
3525 GDC=$CC
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
3532 r=$?
3533 rm -f actest.do
3534 if test $r -eq 0; then
3535 echo "$as_me:$LINENO: result: yes" >&5
3536 echo "${ECHO_T}yes" >&6
3537 else
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
3554 export CC_FOR_BUILD
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
3568 break
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
3574 break
3577 d_libiberty_dir=../$d_libiberty_dir
3578 d_count="x$d_count"
3579 done
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/d2/${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'
3608 else
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 ;;
3618 esac
3622 # Sanity check for the cross-compilation case:
3624 ac_ext=c
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
3633 CPP=
3635 if test -z "$CPP"; then
3636 if test "${ac_cv_prog_CPP+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639 # Double quotes because CPP needs to be expanded
3640 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3642 ac_preproc_ok=false
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
3652 /* confdefs.h. */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3657 #ifdef __STDC__
3658 # include <limits.h>
3659 #else
3660 # include <assert.h>
3661 #endif
3662 Syntax error
3663 _ACEOF
3664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3666 ac_status=$?
3667 grep -v '^ *+' conftest.er1 >conftest.err
3668 rm -f conftest.er1
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
3675 else
3676 ac_cpp_err=
3678 else
3679 ac_cpp_err=yes
3681 if test -z "$ac_cpp_err"; then
3683 else
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3687 # Broken: fails on valid input.
3688 continue
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
3695 /* confdefs.h. */
3696 _ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3700 #include <ac_nonexistent.h>
3701 _ACEOF
3702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
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
3713 else
3714 ac_cpp_err=
3716 else
3717 ac_cpp_err=yes
3719 if test -z "$ac_cpp_err"; then
3720 # Broken: success on invalid input.
3721 continue
3722 else
3723 echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3726 # Passes both tests.
3727 ac_preproc_ok=:
3728 break
3730 rm -f conftest.err conftest.$ac_ext
3732 done
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
3736 break
3739 done
3740 ac_cv_prog_CPP=$CPP
3743 CPP=$ac_cv_prog_CPP
3744 else
3745 ac_cv_prog_CPP=$CPP
3747 echo "$as_me:$LINENO: result: $CPP" >&5
3748 echo "${ECHO_T}$CPP" >&6
3749 ac_preproc_ok=false
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
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764 #ifdef __STDC__
3765 # include <limits.h>
3766 #else
3767 # include <assert.h>
3768 #endif
3769 Syntax error
3770 _ACEOF
3771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3773 ac_status=$?
3774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
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
3782 else
3783 ac_cpp_err=
3785 else
3786 ac_cpp_err=yes
3788 if test -z "$ac_cpp_err"; then
3790 else
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3794 # Broken: fails on valid input.
3795 continue
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
3802 /* confdefs.h. */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3807 #include <ac_nonexistent.h>
3808 _ACEOF
3809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3811 ac_status=$?
3812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
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
3820 else
3821 ac_cpp_err=
3823 else
3824 ac_cpp_err=yes
3826 if test -z "$ac_cpp_err"; then
3827 # Broken: success on invalid input.
3828 continue
3829 else
3830 echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3833 # Passes both tests.
3834 ac_preproc_ok=:
3835 break
3837 rm -f conftest.err conftest.$ac_ext
3839 done
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
3844 else
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; }; }
3852 ac_ext=c
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
3863 else
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
3878 else
3879 cat >conftest.$ac_ext <<_ACEOF
3880 /* confdefs.h. */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3885 #include <stdlib.h>
3886 #include <stdarg.h>
3887 #include <string.h>
3888 #include <float.h>
3891 main ()
3895 return 0;
3897 _ACEOF
3898 rm -f conftest.$ac_objext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3900 (eval $ac_compile) 2>conftest.er1
3901 ac_status=$?
3902 grep -v '^ *+' conftest.er1 >conftest.err
3903 rm -f conftest.er1
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
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
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
3916 (eval $ac_try) 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; }; then
3920 ac_cv_header_stdc=yes
3921 else
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
3932 /* confdefs.h. */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3937 #include <string.h>
3939 _ACEOF
3940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3941 $EGREP "memchr" >/dev/null 2>&1; then
3943 else
3944 ac_cv_header_stdc=no
3946 rm -f conftest*
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
3953 /* confdefs.h. */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3958 #include <stdlib.h>
3960 _ACEOF
3961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3962 $EGREP "free" >/dev/null 2>&1; then
3964 else
3965 ac_cv_header_stdc=no
3967 rm -f conftest*
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
3975 else
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 #include <ctype.h>
3983 #if ((' ' & 0x0FF) == 0x020)
3984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3986 #else
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))
3992 #endif
3994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3996 main ()
3998 int i;
3999 for (i = 0; i < 256; i++)
4000 if (XOR (islower (i), ISLOWER (i))
4001 || toupper (i) != TOUPPER (i))
4002 exit(2);
4003 exit (0);
4005 _ACEOF
4006 rm -f conftest$ac_exeext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4008 (eval $ac_link) 2>&5
4009 ac_status=$?
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
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4018 else
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
4023 ( exit $ac_status )
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
4036 _ACEOF
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
4058 else
4059 cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h. */
4061 _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>
4068 _ACEOF
4069 rm -f conftest.$ac_objext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071 (eval $ac_compile) 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
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
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
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
4087 (eval $ac_try) 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4091 eval "$as_ac_Header=yes"
4092 else
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
4105 _ACEOF
4109 done
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
4120 else
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
4125 /* confdefs.h. */
4126 _ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4130 $ac_includes_default
4131 #include <stdio.h>
4132 _ACEOF
4133 rm -f conftest.$ac_objext
4134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4135 (eval $ac_compile) 2>conftest.er1
4136 ac_status=$?
4137 grep -v '^ *+' conftest.er1 >conftest.err
4138 rm -f conftest.er1
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
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
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
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_header_compiler=yes
4156 else
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
4170 /* confdefs.h. */
4171 _ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h. */
4175 #include <stdio.h>
4176 _ACEOF
4177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
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
4188 else
4189 ac_cpp_err=
4191 else
4192 ac_cpp_err=yes
4194 if test -z "$ac_cpp_err"; then
4195 ac_header_preproc=yes
4196 else
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
4208 yes:no: )
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
4215 no: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;}
4229 cat <<\_ASBOX
4230 ## ------------------------------------ ##
4231 ## Report this to the libphobos lists. ##
4232 ## ------------------------------------ ##
4233 _ASBOX
4235 sed "s/^/$as_me: WARNING: /" >&2
4237 esac
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
4242 else
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
4251 else
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; }; }
4259 # TODO...
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
4264 /* confdefs.h. */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 #include <stdio.h>
4271 main ()
4274 struct Test { int x: sizeof(FILE)>4; };
4276 return 0;
4278 _ACEOF
4279 rm -f conftest.$ac_objext
4280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4281 (eval $ac_compile) 2>conftest.er1
4282 ac_status=$?
4283 grep -v '^ *+' conftest.er1 >conftest.err
4284 rm -f conftest.er1
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
4291 (eval $ac_try) 2>&5
4292 ac_status=$?
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
4297 (eval $ac_try) 2>&5
4298 ac_status=$?
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
4306 _ACEOF
4308 else
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
4320 /* confdefs.h. */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4325 #include <dirent.h>
4327 main ()
4330 struct Test { int x: sizeof(DIR)>4; };
4332 return 0;
4334 _ACEOF
4335 rm -f conftest.$ac_objext
4336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4337 (eval $ac_compile) 2>conftest.er1
4338 ac_status=$?
4339 grep -v '^ *+' conftest.er1 >conftest.err
4340 rm -f conftest.er1
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
4347 (eval $ac_try) 2>&5
4348 ac_status=$?
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
4353 (eval $ac_try) 2>&5
4354 ac_status=$?
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
4362 _ACEOF
4364 else
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
4373 D_EXTRA_OBJS=
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 ;;
4382 esac
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
4396 DCFG_TRUNC=""
4397 DCFG_NEARBYINT=""
4398 DCFG_ROUND=""
4399 DCFG_TGAMMA=""
4400 DCFG_NAN=""
4401 DCFG_EXP2_LOG2="GNU_Need_exp2_log2"
4404 cat >>confdefs.h <<\_ACEOF
4405 #define HAVE_FP_CLASSIFY_SIGNBIT 1
4406 _ACEOF
4408 D_EXTRA_OBJS="$D_EXTRA_OBJS gcc/cbridge_math.o"
4409 D_PREREQ_SRCS="$D_PREREQ_SRCS "'$(config_fpcls_d_src)'
4411 # TODO: exec stuff
4413 DCFG_FWIDE=0
4414 # Have getdelim, but it may not be unix (need ssize_t)... TODO
4415 DCFG_HAVE_GETDELIM=0
4416 DCFG_HAVE_FGETLN=0
4417 DCFG_HAVE_FGETLINE=0
4418 DCFG_HAVE_UNLOCKED_STDIO=0
4419 DCFG_HAVE_UNLOCKED_WIDE_STDIO=$DCFG_HAVE_UNLOCKED_STDIO
4420 DCFG_STRTOLD="0"
4421 # NO HAVE_TM_GMTOFF_AND_ZONE
4422 # NO HAVE_TIMEZONE
4424 cat >>confdefs.h <<\_ACEOF
4425 #define HAVE__TIMEZONE 1
4426 _ACEOF
4428 else
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
4435 else
4436 ac_check_lib_save_LIBS=$LIBS
4437 LIBS="-lm $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
4444 /* confdefs.h. */
4445 _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. */
4451 #ifdef __cplusplus
4452 extern "C"
4453 #endif
4454 /* We use char because int might match the return type of a gcc2
4455 builtin and then its argument prototype would still apply. */
4456 char cos ();
4458 main ()
4460 cos ();
4462 return 0;
4464 _ACEOF
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
4468 ac_status=$?
4469 grep -v '^ *+' conftest.er1 >conftest.err
4470 rm -f conftest.er1
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
4477 (eval $ac_try) 2>&5
4478 ac_status=$?
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
4483 (eval $ac_try) 2>&5
4484 ac_status=$?
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; }; then
4487 ac_cv_lib_m_cos=yes
4488 else
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4492 ac_cv_lib_m_cos=no
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
4502 #define HAVE_LIBM 1
4503 _ACEOF
4505 LIBS="-lm $LIBS"
4510 case "$d_target_os" in
4511 aix*)
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
4516 else
4517 ac_check_lib_save_LIBS=$LIBS
4518 LIBS="-lC $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
4525 /* confdefs.h. */
4526 _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. */
4532 #ifdef __cplusplus
4533 extern "C"
4534 #endif
4535 /* We use char because int might match the return type of a gcc2
4536 builtin and then its argument prototype would still apply. */
4537 char sqrtf ();
4539 main ()
4541 sqrtf ();
4543 return 0;
4545 _ACEOF
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
4549 ac_status=$?
4550 grep -v '^ *+' conftest.er1 >conftest.err
4551 rm -f conftest.er1
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
4558 (eval $ac_try) 2>&5
4559 ac_status=$?
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
4564 (eval $ac_try) 2>&5
4565 ac_status=$?
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; }; then
4568 ac_cv_lib_C_sqrtf=yes
4569 else
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
4583 #define HAVE_LIBC 1
4584 _ACEOF
4586 LIBS="-lC $LIBS"
4590 esac
4592 case "$target_os" in
4593 darwin6*) DCFG_LONG_DOUBLE_FUNCS=config/noldfuncs ;;
4594 darwin*) DCFG_LONG_DOUBLE_FUNCS=config/ldfuncs-darwin ;;
4595 linux*|k*bsd*-gnu)
4596 case "$target_cpu" in
4597 powerpc*)
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
4604 else
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
4611 /* confdefs.h. */
4612 _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. */
4625 #ifdef __STDC__
4626 # include <limits.h>
4627 #else
4628 # include <assert.h>
4629 #endif
4631 #undef __nldbl_printf
4633 /* Override any gcc2 internal prototype to avoid an error. */
4634 #ifdef __cplusplus
4635 extern "C"
4637 #endif
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)
4645 choke me
4646 #else
4647 char (*f) () = __nldbl_printf;
4648 #endif
4649 #ifdef __cplusplus
4651 #endif
4654 main ()
4656 return f != __nldbl_printf;
4658 return 0;
4660 _ACEOF
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
4664 ac_status=$?
4665 grep -v '^ *+' conftest.er1 >conftest.err
4666 rm -f conftest.er1
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
4673 (eval $ac_try) 2>&5
4674 ac_status=$?
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
4679 (eval $ac_try) 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4683 ac_cv_func___nldbl_printf=yes
4684 else
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
4697 else
4701 if test "$d_have_nldbl_funcs" = 1; then
4705 esac
4706 esac
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
4713 else
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
4720 /* confdefs.h. */
4721 _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. */
4734 #ifdef __STDC__
4735 # include <limits.h>
4736 #else
4737 # include <assert.h>
4738 #endif
4740 #undef acosl
4742 /* Override any gcc2 internal prototype to avoid an error. */
4743 #ifdef __cplusplus
4744 extern "C"
4746 #endif
4747 /* We use char because int might match the return type of a gcc2
4748 builtin and then its argument prototype would still apply. */
4749 char acosl ();
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)
4754 choke me
4755 #else
4756 char (*f) () = acosl;
4757 #endif
4758 #ifdef __cplusplus
4760 #endif
4763 main ()
4765 return f != acosl;
4767 return 0;
4769 _ACEOF
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
4773 ac_status=$?
4774 grep -v '^ *+' conftest.er1 >conftest.err
4775 rm -f conftest.er1
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
4782 (eval $ac_try) 2>&5
4783 ac_status=$?
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
4788 (eval $ac_try) 2>&5
4789 ac_status=$?
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; }; then
4792 ac_cv_func_acosl=yes
4793 else
4794 echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4797 ac_cv_func_acosl=no
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
4805 have_ldf_a=1
4806 else
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
4814 else
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
4821 /* confdefs.h. */
4822 _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. */
4835 #ifdef __STDC__
4836 # include <limits.h>
4837 #else
4838 # include <assert.h>
4839 #endif
4841 #undef truncl
4843 /* Override any gcc2 internal prototype to avoid an error. */
4844 #ifdef __cplusplus
4845 extern "C"
4847 #endif
4848 /* We use char because int might match the return type of a gcc2
4849 builtin and then its argument prototype would still apply. */
4850 char truncl ();
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)
4855 choke me
4856 #else
4857 char (*f) () = truncl;
4858 #endif
4859 #ifdef __cplusplus
4861 #endif
4864 main ()
4866 return f != truncl;
4868 return 0;
4870 _ACEOF
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
4874 ac_status=$?
4875 grep -v '^ *+' conftest.er1 >conftest.err
4876 rm -f conftest.er1
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
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
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
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 ac_cv_func_truncl=yes
4894 else
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
4906 have_ldf_b=1
4907 else
4911 if test "${have_ldf_a}${have_ldf_b}" = "11"; then
4912 DCFG_LONG_DOUBLE_FUNCS=config/ldfuncs
4913 else
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
4924 else
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
4931 /* confdefs.h. */
4932 _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. */
4945 #ifdef __STDC__
4946 # include <limits.h>
4947 #else
4948 # include <assert.h>
4949 #endif
4951 #undef sqrtf
4953 /* Override any gcc2 internal prototype to avoid an error. */
4954 #ifdef __cplusplus
4955 extern "C"
4957 #endif
4958 /* We use char because int might match the return type of a gcc2
4959 builtin and then its argument prototype would still apply. */
4960 char sqrtf ();
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)
4965 choke me
4966 #else
4967 char (*f) () = sqrtf;
4968 #endif
4969 #ifdef __cplusplus
4971 #endif
4974 main ()
4976 return f != sqrtf;
4978 return 0;
4980 _ACEOF
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
4984 ac_status=$?
4985 grep -v '^ *+' conftest.er1 >conftest.err
4986 rm -f conftest.er1
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
4993 (eval $ac_try) 2>&5
4994 ac_status=$?
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
4999 (eval $ac_try) 2>&5
5000 ac_status=$?
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5003 ac_cv_func_sqrtf=yes
5004 else
5005 echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5008 ac_cv_func_sqrtf=no
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
5017 else
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
5029 else
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
5036 /* confdefs.h. */
5037 _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. */
5050 #ifdef __STDC__
5051 # include <limits.h>
5052 #else
5053 # include <assert.h>
5054 #endif
5056 #undef trunc
5058 /* Override any gcc2 internal prototype to avoid an error. */
5059 #ifdef __cplusplus
5060 extern "C"
5062 #endif
5063 /* We use char because int might match the return type of a gcc2
5064 builtin and then its argument prototype would still apply. */
5065 char trunc ();
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)
5070 choke me
5071 #else
5072 char (*f) () = trunc;
5073 #endif
5074 #ifdef __cplusplus
5076 #endif
5079 main ()
5081 return f != trunc;
5083 return 0;
5085 _ACEOF
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
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
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
5098 (eval $ac_try) 2>&5
5099 ac_status=$?
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
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_cv_func_trunc=yes
5109 else
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5113 ac_cv_func_trunc=no
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
5121 DCFG_TRUNC=""
5122 else
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
5132 else
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
5139 /* confdefs.h. */
5140 _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. */
5153 #ifdef __STDC__
5154 # include <limits.h>
5155 #else
5156 # include <assert.h>
5157 #endif
5159 #undef nearbyint
5161 /* Override any gcc2 internal prototype to avoid an error. */
5162 #ifdef __cplusplus
5163 extern "C"
5165 #endif
5166 /* We use char because int might match the return type of a gcc2
5167 builtin and then its argument prototype would still apply. */
5168 char nearbyint ();
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)
5173 choke me
5174 #else
5175 char (*f) () = nearbyint;
5176 #endif
5177 #ifdef __cplusplus
5179 #endif
5182 main ()
5184 return f != nearbyint;
5186 return 0;
5188 _ACEOF
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
5192 ac_status=$?
5193 grep -v '^ *+' conftest.er1 >conftest.err
5194 rm -f conftest.er1
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
5201 (eval $ac_try) 2>&5
5202 ac_status=$?
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
5207 (eval $ac_try) 2>&5
5208 ac_status=$?
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }; }; then
5211 ac_cv_func_nearbyint=yes
5212 else
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
5224 DCFG_NEARBYINT=""
5225 else
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
5235 else
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
5242 /* confdefs.h. */
5243 _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. */
5256 #ifdef __STDC__
5257 # include <limits.h>
5258 #else
5259 # include <assert.h>
5260 #endif
5262 #undef round
5264 /* Override any gcc2 internal prototype to avoid an error. */
5265 #ifdef __cplusplus
5266 extern "C"
5268 #endif
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5271 char round ();
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)
5276 choke me
5277 #else
5278 char (*f) () = round;
5279 #endif
5280 #ifdef __cplusplus
5282 #endif
5285 main ()
5287 return f != round;
5289 return 0;
5291 _ACEOF
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
5295 ac_status=$?
5296 grep -v '^ *+' conftest.er1 >conftest.err
5297 rm -f conftest.er1
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
5304 (eval $ac_try) 2>&5
5305 ac_status=$?
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
5310 (eval $ac_try) 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; }; then
5314 ac_cv_func_round=yes
5315 else
5316 echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5319 ac_cv_func_round=no
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
5327 DCFG_ROUND=""
5328 else
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
5338 else
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
5345 /* confdefs.h. */
5346 _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. */
5359 #ifdef __STDC__
5360 # include <limits.h>
5361 #else
5362 # include <assert.h>
5363 #endif
5365 #undef tgamma
5367 /* Override any gcc2 internal prototype to avoid an error. */
5368 #ifdef __cplusplus
5369 extern "C"
5371 #endif
5372 /* We use char because int might match the return type of a gcc2
5373 builtin and then its argument prototype would still apply. */
5374 char tgamma ();
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)
5379 choke me
5380 #else
5381 char (*f) () = tgamma;
5382 #endif
5383 #ifdef __cplusplus
5385 #endif
5388 main ()
5390 return f != tgamma;
5392 return 0;
5394 _ACEOF
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
5398 ac_status=$?
5399 grep -v '^ *+' conftest.er1 >conftest.err
5400 rm -f conftest.er1
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
5407 (eval $ac_try) 2>&5
5408 ac_status=$?
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
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5417 ac_cv_func_tgamma=yes
5418 else
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
5430 DCFG_TGAMMA=""
5431 else
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
5444 else
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
5451 /* confdefs.h. */
5452 _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. */
5465 #ifdef __STDC__
5466 # include <limits.h>
5467 #else
5468 # include <assert.h>
5469 #endif
5471 #undef nan
5473 /* Override any gcc2 internal prototype to avoid an error. */
5474 #ifdef __cplusplus
5475 extern "C"
5477 #endif
5478 /* We use char because int might match the return type of a gcc2
5479 builtin and then its argument prototype would still apply. */
5480 char nan ();
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)
5485 choke me
5486 #else
5487 char (*f) () = nan;
5488 #endif
5489 #ifdef __cplusplus
5491 #endif
5494 main ()
5496 return f != nan;
5498 return 0;
5500 _ACEOF
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
5504 ac_status=$?
5505 grep -v '^ *+' conftest.er1 >conftest.err
5506 rm -f conftest.er1
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
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
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
5519 (eval $ac_try) 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; }; then
5523 ac_cv_func_nan=yes
5524 else
5525 echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5528 ac_cv_func_nan=no
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
5536 DCFG_NAN=""
5537 else
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
5552 else
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
5559 /* confdefs.h. */
5560 _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. */
5573 #ifdef __STDC__
5574 # include <limits.h>
5575 #else
5576 # include <assert.h>
5577 #endif
5579 #undef $ac_func
5581 /* Override any gcc2 internal prototype to avoid an error. */
5582 #ifdef __cplusplus
5583 extern "C"
5585 #endif
5586 /* We use char because int might match the return type of a gcc2
5587 builtin and then its argument prototype would still apply. */
5588 char $ac_func ();
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)
5593 choke me
5594 #else
5595 char (*f) () = $ac_func;
5596 #endif
5597 #ifdef __cplusplus
5599 #endif
5602 main ()
5604 return f != $ac_func;
5606 return 0;
5608 _ACEOF
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
5612 ac_status=$?
5613 grep -v '^ *+' conftest.er1 >conftest.err
5614 rm -f conftest.er1
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
5621 (eval $ac_try) 2>&5
5622 ac_status=$?
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
5627 (eval $ac_try) 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }; }; then
5631 eval "$as_ac_var=yes"
5632 else
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
5646 _ACEOF
5648 else
5651 done
5653 if test "$ac_cv_func_exp2" = "yes" && test "$ac_cv_func_log2" = "yes"; then
5654 DCFG_EXP2_LOG2=""
5655 else
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
5663 /* confdefs.h. */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5669 #ifndef fpclassify
5670 static void fpclassify(int x, int y) { }
5671 #endif
5672 #ifndef signbit
5673 static void signbit(int x, int y) { }
5674 #endif
5675 #include <math.h>
5677 main ()
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;
5683 return 0;
5685 _ACEOF
5686 rm -f conftest.$ac_objext
5687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5688 (eval $ac_compile) 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
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
5698 (eval $ac_try) 2>&5
5699 ac_status=$?
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
5704 (eval $ac_try) 2>&5
5705 ac_status=$?
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
5710 d_have_fpsb=1
5711 else
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
5726 _ACEOF
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)
5736 # also erf, erfc
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
5742 else
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
5749 /* confdefs.h. */
5750 _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. */
5763 #ifdef __STDC__
5764 # include <limits.h>
5765 #else
5766 # include <assert.h>
5767 #endif
5769 #undef execvpe
5771 /* Override any gcc2 internal prototype to avoid an error. */
5772 #ifdef __cplusplus
5773 extern "C"
5775 #endif
5776 /* We use char because int might match the return type of a gcc2
5777 builtin and then its argument prototype would still apply. */
5778 char execvpe ();
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)
5783 choke me
5784 #else
5785 char (*f) () = execvpe;
5786 #endif
5787 #ifdef __cplusplus
5789 #endif
5792 main ()
5794 return f != execvpe;
5796 return 0;
5798 _ACEOF
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
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
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
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
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
5817 (eval $ac_try) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5821 ac_cv_func_execvpe=yes
5822 else
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
5834 DCFG_EXECVPE=""
5835 else
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
5845 else
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
5852 /* confdefs.h. */
5853 _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. */
5866 #ifdef __STDC__
5867 # include <limits.h>
5868 #else
5869 # include <assert.h>
5870 #endif
5872 #undef spawnvp
5874 /* Override any gcc2 internal prototype to avoid an error. */
5875 #ifdef __cplusplus
5876 extern "C"
5878 #endif
5879 /* We use char because int might match the return type of a gcc2
5880 builtin and then its argument prototype would still apply. */
5881 char spawnvp ();
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)
5886 choke me
5887 #else
5888 char (*f) () = spawnvp;
5889 #endif
5890 #ifdef __cplusplus
5892 #endif
5895 main ()
5897 return f != spawnvp;
5899 return 0;
5901 _ACEOF
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
5905 ac_status=$?
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
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
5914 (eval $ac_try) 2>&5
5915 ac_status=$?
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
5920 (eval $ac_try) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5924 ac_cv_func_spawnvp=yes
5925 else
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
5937 DCFG_SPAWNVP=""
5938 else
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
5948 else
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
5955 /* confdefs.h. */
5956 _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. */
5969 #ifdef __STDC__
5970 # include <limits.h>
5971 #else
5972 # include <assert.h>
5973 #endif
5975 #undef fwide
5977 /* Override any gcc2 internal prototype to avoid an error. */
5978 #ifdef __cplusplus
5979 extern "C"
5981 #endif
5982 /* We use char because int might match the return type of a gcc2
5983 builtin and then its argument prototype would still apply. */
5984 char fwide ();
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)
5989 choke me
5990 #else
5991 char (*f) () = fwide;
5992 #endif
5993 #ifdef __cplusplus
5995 #endif
5998 main ()
6000 return f != fwide;
6002 return 0;
6004 _ACEOF
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
6008 ac_status=$?
6009 grep -v '^ *+' conftest.er1 >conftest.err
6010 rm -f conftest.er1
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
6017 (eval $ac_try) 2>&5
6018 ac_status=$?
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
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 ac_cv_func_fwide=yes
6028 else
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6032 ac_cv_func_fwide=no
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
6040 DCFG_FWIDE=1
6041 else
6042 DCFG_FWIDE=0
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
6051 else
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
6058 /* confdefs.h. */
6059 _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. */
6072 #ifdef __STDC__
6073 # include <limits.h>
6074 #else
6075 # include <assert.h>
6076 #endif
6078 #undef getdelim
6080 /* Override any gcc2 internal prototype to avoid an error. */
6081 #ifdef __cplusplus
6082 extern "C"
6084 #endif
6085 /* We use char because int might match the return type of a gcc2
6086 builtin and then its argument prototype would still apply. */
6087 char getdelim ();
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)
6092 choke me
6093 #else
6094 char (*f) () = getdelim;
6095 #endif
6096 #ifdef __cplusplus
6098 #endif
6101 main ()
6103 return f != getdelim;
6105 return 0;
6107 _ACEOF
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
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
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
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
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
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 ac_cv_func_getdelim=yes
6131 else
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
6144 else
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
6154 else
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
6161 /* confdefs.h. */
6162 _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. */
6175 #ifdef __STDC__
6176 # include <limits.h>
6177 #else
6178 # include <assert.h>
6179 #endif
6181 #undef fgetln
6183 /* Override any gcc2 internal prototype to avoid an error. */
6184 #ifdef __cplusplus
6185 extern "C"
6187 #endif
6188 /* We use char because int might match the return type of a gcc2
6189 builtin and then its argument prototype would still apply. */
6190 char fgetln ();
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)
6195 choke me
6196 #else
6197 char (*f) () = fgetln;
6198 #endif
6199 #ifdef __cplusplus
6201 #endif
6204 main ()
6206 return f != fgetln;
6208 return 0;
6210 _ACEOF
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
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
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
6223 (eval $ac_try) 2>&5
6224 ac_status=$?
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
6229 (eval $ac_try) 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; }; then
6233 ac_cv_func_fgetln=yes
6234 else
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
6246 DCFG_HAVE_FGETLN=1
6247 else
6248 DCFG_HAVE_FGETLN=0
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
6257 else
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
6264 /* confdefs.h. */
6265 _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. */
6278 #ifdef __STDC__
6279 # include <limits.h>
6280 #else
6281 # include <assert.h>
6282 #endif
6284 #undef fgetline
6286 /* Override any gcc2 internal prototype to avoid an error. */
6287 #ifdef __cplusplus
6288 extern "C"
6290 #endif
6291 /* We use char because int might match the return type of a gcc2
6292 builtin and then its argument prototype would still apply. */
6293 char fgetline ();
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)
6298 choke me
6299 #else
6300 char (*f) () = fgetline;
6301 #endif
6302 #ifdef __cplusplus
6304 #endif
6307 main ()
6309 return f != fgetline;
6311 return 0;
6313 _ACEOF
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
6317 ac_status=$?
6318 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -f conftest.er1
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
6326 (eval $ac_try) 2>&5
6327 ac_status=$?
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
6332 (eval $ac_try) 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6336 ac_cv_func_fgetline=yes
6337 else
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
6350 else
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
6368 else
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
6375 /* confdefs.h. */
6376 _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. */
6389 #ifdef __STDC__
6390 # include <limits.h>
6391 #else
6392 # include <assert.h>
6393 #endif
6395 #undef $ac_func
6397 /* Override any gcc2 internal prototype to avoid an error. */
6398 #ifdef __cplusplus
6399 extern "C"
6401 #endif
6402 /* We use char because int might match the return type of a gcc2
6403 builtin and then its argument prototype would still apply. */
6404 char $ac_func ();
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)
6409 choke me
6410 #else
6411 char (*f) () = $ac_func;
6412 #endif
6413 #ifdef __cplusplus
6415 #endif
6418 main ()
6420 return f != $ac_func;
6422 return 0;
6424 _ACEOF
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
6428 ac_status=$?
6429 grep -v '^ *+' conftest.er1 >conftest.err
6430 rm -f conftest.er1
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try='test -z "$ac_c_werror_flag"
6435 || test ! -s conftest.err'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 (eval $ac_try) 2>&5
6438 ac_status=$?
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
6443 (eval $ac_try) 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6447 eval "$as_ac_var=yes"
6448 else
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
6462 _ACEOF
6464 else
6465 DCFG_HAVE_UNLOCKED_STDIO=0
6467 done
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
6481 else
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
6488 /* confdefs.h. */
6489 _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. */
6502 #ifdef __STDC__
6503 # include <limits.h>
6504 #else
6505 # include <assert.h>
6506 #endif
6508 #undef $ac_func
6510 /* Override any gcc2 internal prototype to avoid an error. */
6511 #ifdef __cplusplus
6512 extern "C"
6514 #endif
6515 /* We use char because int might match the return type of a gcc2
6516 builtin and then its argument prototype would still apply. */
6517 char $ac_func ();
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)
6522 choke me
6523 #else
6524 char (*f) () = $ac_func;
6525 #endif
6526 #ifdef __cplusplus
6528 #endif
6531 main ()
6533 return f != $ac_func;
6535 return 0;
6537 _ACEOF
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
6541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
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
6550 (eval $ac_try) 2>&5
6551 ac_status=$?
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
6556 (eval $ac_try) 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; }; then
6560 eval "$as_ac_var=yes"
6561 else
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
6575 _ACEOF
6577 else
6578 DCFG_HAVE_UNLOCKED_WIDE_STDIO=0
6580 done
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
6588 else
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
6595 /* confdefs.h. */
6596 _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. */
6609 #ifdef __STDC__
6610 # include <limits.h>
6611 #else
6612 # include <assert.h>
6613 #endif
6615 #undef strtold
6617 /* Override any gcc2 internal prototype to avoid an error. */
6618 #ifdef __cplusplus
6619 extern "C"
6621 #endif
6622 /* We use char because int might match the return type of a gcc2
6623 builtin and then its argument prototype would still apply. */
6624 char strtold ();
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)
6629 choke me
6630 #else
6631 char (*f) () = strtold;
6632 #endif
6633 #ifdef __cplusplus
6635 #endif
6638 main ()
6640 return f != strtold;
6642 return 0;
6644 _ACEOF
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
6648 ac_status=$?
6649 grep -v '^ *+' conftest.er1 >conftest.err
6650 rm -f conftest.er1
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
6657 (eval $ac_try) 2>&5
6658 ac_status=$?
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
6663 (eval $ac_try) 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
6667 ac_cv_func_strtold=yes
6668 else
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
6680 DCFG_STRTOLD="1"
6681 else
6682 DCFG_STRTOLD="0"
6687 save_CFLAGS=$CFLAGS
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
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <string.h>
6700 main ()
6703 char c = * strerror_r(0, NULL, 0);
6706 return 0;
6708 _ACEOF
6709 rm -f conftest.$ac_objext
6710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711 (eval $ac_compile) 2>conftest.er1
6712 ac_status=$?
6713 grep -v '^ *+' conftest.er1 >conftest.err
6714 rm -f conftest.er1
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
6721 (eval $ac_try) 2>&5
6722 ac_status=$?
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
6727 (eval $ac_try) 2>&5
6728 ac_status=$?
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
6736 _ACEOF
6738 else
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
6746 CFLAGS=$save_CFLAGS
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
6756 else
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
6763 /* confdefs.h. */
6764 _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. */
6777 #ifdef __STDC__
6778 # include <limits.h>
6779 #else
6780 # include <assert.h>
6781 #endif
6783 #undef $ac_func
6785 /* Override any gcc2 internal prototype to avoid an error. */
6786 #ifdef __cplusplus
6787 extern "C"
6789 #endif
6790 /* We use char because int might match the return type of a gcc2
6791 builtin and then its argument prototype would still apply. */
6792 char $ac_func ();
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)
6797 choke me
6798 #else
6799 char (*f) () = $ac_func;
6800 #endif
6801 #ifdef __cplusplus
6803 #endif
6806 main ()
6808 return f != $ac_func;
6810 return 0;
6812 _ACEOF
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
6816 ac_status=$?
6817 grep -v '^ *+' conftest.er1 >conftest.err
6818 rm -f conftest.er1
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
6825 (eval $ac_try) 2>&5
6826 ac_status=$?
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
6831 (eval $ac_try) 2>&5
6832 ac_status=$?
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; }; then
6835 eval "$as_ac_var=yes"
6836 else
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
6850 _ACEOF
6853 done
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
6859 /* confdefs.h. */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 #include <time.h>
6866 main ()
6869 struct tm t;
6870 t.tm_gmtoff = t.tm_gmtoff;
6871 t.tm_zone = t.tm_zone;
6873 return 0;
6875 _ACEOF
6876 rm -f conftest.$ac_objext
6877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6878 (eval $ac_compile) 2>conftest.er1
6879 ac_status=$?
6880 grep -v '^ *+' conftest.er1 >conftest.err
6881 rm -f conftest.er1
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
6888 (eval $ac_try) 2>&5
6889 ac_status=$?
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
6894 (eval $ac_try) 2>&5
6895 ac_status=$?
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
6903 _ACEOF
6905 else
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
6917 /* confdefs.h. */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6922 #include <time.h>
6924 main ()
6927 time_t t = timezone * 42;
6929 return 0;
6931 _ACEOF
6932 rm -f conftest.$ac_objext
6933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6934 (eval $ac_compile) 2>conftest.er1
6935 ac_status=$?
6936 grep -v '^ *+' conftest.er1 >conftest.err
6937 rm -f conftest.er1
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
6944 (eval $ac_try) 2>&5
6945 ac_status=$?
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
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
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
6959 _ACEOF
6961 else
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
6973 /* confdefs.h. */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 #include <time.h>
6980 main ()
6983 time_t t = _timezone * 42;
6985 return 0;
6987 _ACEOF
6988 rm -f conftest.$ac_objext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6990 (eval $ac_compile) 2>conftest.er1
6991 ac_status=$?
6992 grep -v '^ *+' conftest.er1 >conftest.err
6993 rm -f conftest.er1
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
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
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
7006 (eval $ac_try) 2>&5
7007 ac_status=$?
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
7015 _ACEOF
7017 else
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
7035 else
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
7042 /* confdefs.h. */
7043 _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. */
7056 #ifdef __STDC__
7057 # include <limits.h>
7058 #else
7059 # include <assert.h>
7060 #endif
7062 #undef $ac_func
7064 /* Override any gcc2 internal prototype to avoid an error. */
7065 #ifdef __cplusplus
7066 extern "C"
7068 #endif
7069 /* We use char because int might match the return type of a gcc2
7070 builtin and then its argument prototype would still apply. */
7071 char $ac_func ();
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)
7076 choke me
7077 #else
7078 char (*f) () = $ac_func;
7079 #endif
7080 #ifdef __cplusplus
7082 #endif
7085 main ()
7087 return f != $ac_func;
7089 return 0;
7091 _ACEOF
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
7095 ac_status=$?
7096 grep -v '^ *+' conftest.er1 >conftest.err
7097 rm -f conftest.er1
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
7104 (eval $ac_try) 2>&5
7105 ac_status=$?
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
7110 (eval $ac_try) 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 eval "$as_ac_var=yes"
7115 else
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
7129 _ACEOF
7130 break
7131 else
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; }; }
7136 done
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
7147 else
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
7154 /* confdefs.h. */
7155 _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. */
7168 #ifdef __STDC__
7169 # include <limits.h>
7170 #else
7171 # include <assert.h>
7172 #endif
7174 #undef $ac_func
7176 /* Override any gcc2 internal prototype to avoid an error. */
7177 #ifdef __cplusplus
7178 extern "C"
7180 #endif
7181 /* We use char because int might match the return type of a gcc2
7182 builtin and then its argument prototype would still apply. */
7183 char $ac_func ();
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)
7188 choke me
7189 #else
7190 char (*f) () = $ac_func;
7191 #endif
7192 #ifdef __cplusplus
7194 #endif
7197 main ()
7199 return f != $ac_func;
7201 return 0;
7203 _ACEOF
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
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
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
7216 (eval $ac_try) 2>&5
7217 ac_status=$?
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
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 eval "$as_ac_var=yes"
7227 else
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
7241 _ACEOF
7242 break
7243 else
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; }; }
7248 done
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
7262 /* confdefs.h. */
7263 _ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7267 #include <unwind.h>
7269 main ()
7272 #if __ARM_EABI_UNWINDER__
7273 #error Yes, it is.
7274 #endif
7277 return 0;
7279 _ACEOF
7280 rm -f conftest.$ac_objext
7281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7282 (eval $ac_compile) 2>conftest.er1
7283 ac_status=$?
7284 grep -v '^ *+' conftest.er1 >conftest.err
7285 rm -f conftest.er1
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
7292 (eval $ac_try) 2>&5
7293 ac_status=$?
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
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
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"
7306 else
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"
7328 else
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 ;;
7336 esac
7338 DCFG_CBRIDGE_STDIO=
7341 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
7342 enable_unix=yes
7345 case "$d_target_os" in
7346 aix*) d_is_aix=1
7348 darwin*) d_module_mach=1
7349 d_sem_impl="mach"
7350 d_have_loader=1
7352 freebsd*|k*bsd*-gnu)
7353 d_have_loader=1
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"
7358 d_sem_impl="posix"
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
7368 DCFG_UNIX=Windows
7369 d_have_loader=1
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
7377 _ACEOF
7380 *) if test "$enable_unix" != "yes"; then
7381 DCFG_UNIX=NoSystem
7383 cat >>confdefs.h <<\_ACEOF
7384 #define PHOBOS_NO_SYSTEM 1
7385 _ACEOF
7388 D_EXTRA_OBJS="$D_EXTRA_OBJS gcc/cbridge_stdio.o"
7389 DCFG_CBRIDGE_STDIO=GNU_CBridge_Stdio
7391 esac
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
7418 else
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
7423 /* confdefs.h. */
7424 _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>
7430 _ACEOF
7431 rm -f conftest.$ac_objext
7432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7433 (eval $ac_compile) 2>conftest.er1
7434 ac_status=$?
7435 grep -v '^ *+' conftest.er1 >conftest.err
7436 rm -f conftest.er1
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
7443 (eval $ac_try) 2>&5
7444 ac_status=$?
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
7449 (eval $ac_try) 2>&5
7450 ac_status=$?
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; }; then
7453 ac_header_compiler=yes
7454 else
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
7468 /* confdefs.h. */
7469 _ACEOF
7470 cat confdefs.h >>conftest.$ac_ext
7471 cat >>conftest.$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7473 #include <$ac_header>
7474 _ACEOF
7475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7477 ac_status=$?
7478 grep -v '^ *+' conftest.er1 >conftest.err
7479 rm -f conftest.er1
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
7486 else
7487 ac_cpp_err=
7489 else
7490 ac_cpp_err=yes
7492 if test -z "$ac_cpp_err"; then
7493 ac_header_preproc=yes
7494 else
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
7506 yes:no: )
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
7513 no: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;}
7527 cat <<\_ASBOX
7528 ## ------------------------------------ ##
7529 ## Report this to the libphobos lists. ##
7530 ## ------------------------------------ ##
7531 _ASBOX
7533 sed "s/^/$as_me: WARNING: /" >&2
7535 esac
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
7540 else
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
7550 _ACEOF
7552 else
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; }; }
7558 done
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
7564 /* confdefs.h. */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 #include <pthread.h>
7571 main ()
7574 pthread_mutexattr_t attr;
7575 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
7577 return 0;
7579 _ACEOF
7580 rm -f conftest.$ac_objext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7582 (eval $ac_compile) 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
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
7592 (eval $ac_try) 2>&5
7593 ac_status=$?
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
7598 (eval $ac_try) 2>&5
7599 ac_status=$?
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
7605 _ACEOF
7607 echo "$as_me:$LINENO: result: PTHREAD_MUTEX_RECURSIVE" >&5
7608 echo "${ECHO_T}PTHREAD_MUTEX_RECURSIVE" >&6
7609 else
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
7622 else
7623 cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h. */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 #include <pthread.h>
7632 main ()
7634 if ((pthread_barrier_t *) 0)
7635 return 0;
7636 if (sizeof (pthread_barrier_t))
7637 return 0;
7639 return 0;
7641 _ACEOF
7642 rm -f conftest.$ac_objext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7644 (eval $ac_compile) 2>conftest.er1
7645 ac_status=$?
7646 grep -v '^ *+' conftest.er1 >conftest.err
7647 rm -f conftest.er1
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
7654 (eval $ac_try) 2>&5
7655 ac_status=$?
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
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; }; then
7664 ac_cv_type_pthread_barrier_t=yes
7665 else
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
7679 _ACEOF
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
7687 else
7688 cat >conftest.$ac_ext <<_ACEOF
7689 /* confdefs.h. */
7690 _ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7694 #include <pthread.h>
7697 main ()
7699 if ((pthread_barrierattr_t *) 0)
7700 return 0;
7701 if (sizeof (pthread_barrierattr_t))
7702 return 0;
7704 return 0;
7706 _ACEOF
7707 rm -f conftest.$ac_objext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709 (eval $ac_compile) 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
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
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest.$ac_objext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 (eval $ac_try) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 ac_cv_type_pthread_barrierattr_t=yes
7730 else
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
7744 _ACEOF
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
7752 else
7753 cat >conftest.$ac_ext <<_ACEOF
7754 /* confdefs.h. */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7759 #include <pthread.h>
7762 main ()
7764 if ((pthread_rwlock_t *) 0)
7765 return 0;
7766 if (sizeof (pthread_rwlock_t))
7767 return 0;
7769 return 0;
7771 _ACEOF
7772 rm -f conftest.$ac_objext
7773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7774 (eval $ac_compile) 2>conftest.er1
7775 ac_status=$?
7776 grep -v '^ *+' conftest.er1 >conftest.err
7777 rm -f conftest.er1
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
7784 (eval $ac_try) 2>&5
7785 ac_status=$?
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
7790 (eval $ac_try) 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; }; then
7794 ac_cv_type_pthread_rwlock_t=yes
7795 else
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
7809 _ACEOF
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
7817 else
7818 cat >conftest.$ac_ext <<_ACEOF
7819 /* confdefs.h. */
7820 _ACEOF
7821 cat confdefs.h >>conftest.$ac_ext
7822 cat >>conftest.$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7824 #include <pthread.h>
7827 main ()
7829 if ((pthread_rwlockattr_t *) 0)
7830 return 0;
7831 if (sizeof (pthread_rwlockattr_t))
7832 return 0;
7834 return 0;
7836 _ACEOF
7837 rm -f conftest.$ac_objext
7838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7839 (eval $ac_compile) 2>conftest.er1
7840 ac_status=$?
7841 grep -v '^ *+' conftest.er1 >conftest.err
7842 rm -f conftest.er1
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
7849 (eval $ac_try) 2>&5
7850 ac_status=$?
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
7855 (eval $ac_try) 2>&5
7856 ac_status=$?
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 ac_cv_type_pthread_rwlockattr_t=yes
7860 else
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
7874 _ACEOF
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
7882 else
7883 cat >conftest.$ac_ext <<_ACEOF
7884 /* confdefs.h. */
7885 _ACEOF
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h. */
7889 #include <pthread.h>
7892 main ()
7894 if ((pthread_spinlock_t *) 0)
7895 return 0;
7896 if (sizeof (pthread_spinlock_t))
7897 return 0;
7899 return 0;
7901 _ACEOF
7902 rm -f conftest.$ac_objext
7903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7904 (eval $ac_compile) 2>conftest.er1
7905 ac_status=$?
7906 grep -v '^ *+' conftest.er1 >conftest.err
7907 rm -f conftest.er1
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
7914 (eval $ac_try) 2>&5
7915 ac_status=$?
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
7920 (eval $ac_try) 2>&5
7921 ac_status=$?
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7924 ac_cv_type_pthread_spinlock_t=yes
7925 else
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
7939 _ACEOF
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
7949 else
7950 cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h. */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7956 #include <pthread.h>
7959 main ()
7961 if ((clockid_t *) 0)
7962 return 0;
7963 if (sizeof (clockid_t))
7964 return 0;
7966 return 0;
7968 _ACEOF
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971 (eval $ac_compile) 2>conftest.er1
7972 ac_status=$?
7973 grep -v '^ *+' conftest.er1 >conftest.err
7974 rm -f conftest.er1
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
7981 (eval $ac_try) 2>&5
7982 ac_status=$?
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
7987 (eval $ac_try) 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 ac_cv_type_clockid_t=yes
7992 else
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
8006 _ACEOF
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
8016 else
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
8025 /* confdefs.h. */
8026 _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. */
8032 #ifdef __cplusplus
8033 extern "C"
8034 #endif
8035 /* We use char because int might match the return type of a gcc2
8036 builtin and then its argument prototype would still apply. */
8037 char sem_init ();
8039 main ()
8041 sem_init ();
8043 return 0;
8045 _ACEOF
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
8049 ac_status=$?
8050 grep -v '^ *+' conftest.er1 >conftest.err
8051 rm -f conftest.er1
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
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
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
8064 (eval $ac_try) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 ac_cv_search_sem_init="none required"
8069 else
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
8085 /* confdefs.h. */
8086 _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. */
8092 #ifdef __cplusplus
8093 extern "C"
8094 #endif
8095 /* We use char because int might match the return type of a gcc2
8096 builtin and then its argument prototype would still apply. */
8097 char sem_init ();
8099 main ()
8101 sem_init ();
8103 return 0;
8105 _ACEOF
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
8109 ac_status=$?
8110 grep -v '^ *+' conftest.er1 >conftest.err
8111 rm -f conftest.er1
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
8118 (eval $ac_try) 2>&5
8119 ac_status=$?
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
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 ac_cv_search_sem_init="-l$ac_lib"
8129 break
8130 else
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
8137 done
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=
8152 if true; then
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
8165 else
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
8170 /* confdefs.h. */
8171 _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>
8177 _ACEOF
8178 rm -f conftest.$ac_objext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180 (eval $ac_compile) 2>conftest.er1
8181 ac_status=$?
8182 grep -v '^ *+' conftest.er1 >conftest.err
8183 rm -f conftest.er1
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
8190 (eval $ac_try) 2>&5
8191 ac_status=$?
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
8196 (eval $ac_try) 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 ac_header_compiler=yes
8201 else
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
8215 /* confdefs.h. */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8220 #include <$ac_header>
8221 _ACEOF
8222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8224 ac_status=$?
8225 grep -v '^ *+' conftest.er1 >conftest.err
8226 rm -f conftest.er1
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
8233 else
8234 ac_cpp_err=
8236 else
8237 ac_cpp_err=yes
8239 if test -z "$ac_cpp_err"; then
8240 ac_header_preproc=yes
8241 else
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
8253 yes:no: )
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
8260 no: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;}
8274 cat <<\_ASBOX
8275 ## ------------------------------------ ##
8276 ## Report this to the libphobos lists. ##
8277 ## ------------------------------------ ##
8278 _ASBOX
8280 sed "s/^/$as_me: WARNING: /" >&2
8282 esac
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
8287 else
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
8297 _ACEOF
8301 done
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
8307 else
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
8314 /* confdefs.h. */
8315 _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. */
8328 #ifdef __STDC__
8329 # include <limits.h>
8330 #else
8331 # include <assert.h>
8332 #endif
8334 #undef sem_init
8336 /* Override any gcc2 internal prototype to avoid an error. */
8337 #ifdef __cplusplus
8338 extern "C"
8340 #endif
8341 /* We use char because int might match the return type of a gcc2
8342 builtin and then its argument prototype would still apply. */
8343 char sem_init ();
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)
8348 choke me
8349 #else
8350 char (*f) () = sem_init;
8351 #endif
8352 #ifdef __cplusplus
8354 #endif
8357 main ()
8359 return f != sem_init;
8361 return 0;
8363 _ACEOF
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
8367 ac_status=$?
8368 grep -v '^ *+' conftest.er1 >conftest.err
8369 rm -f conftest.er1
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
8376 (eval $ac_try) 2>&5
8377 ac_status=$?
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
8382 (eval $ac_try) 2>&5
8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; }; then
8386 ac_cv_func_sem_init=yes
8387 else
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
8403 else
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
8410 /* confdefs.h. */
8411 _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. */
8424 #ifdef __STDC__
8425 # include <limits.h>
8426 #else
8427 # include <assert.h>
8428 #endif
8430 #undef semaphore_create
8432 /* Override any gcc2 internal prototype to avoid an error. */
8433 #ifdef __cplusplus
8434 extern "C"
8436 #endif
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)
8444 choke me
8445 #else
8446 char (*f) () = semaphore_create;
8447 #endif
8448 #ifdef __cplusplus
8450 #endif
8453 main ()
8455 return f != semaphore_create;
8457 return 0;
8459 _ACEOF
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
8463 ac_status=$?
8464 grep -v '^ *+' conftest.er1 >conftest.err
8465 rm -f conftest.er1
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
8472 (eval $ac_try) 2>&5
8473 ac_status=$?
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
8478 (eval $ac_try) 2>&5
8479 ac_status=$?
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; }; then
8482 ac_cv_func_semaphore_create=yes
8483 else
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
8499 else
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
8506 /* confdefs.h. */
8507 _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. */
8520 #ifdef __STDC__
8521 # include <limits.h>
8522 #else
8523 # include <assert.h>
8524 #endif
8526 #undef pthread_cond_wait
8528 /* Override any gcc2 internal prototype to avoid an error. */
8529 #ifdef __cplusplus
8530 extern "C"
8532 #endif
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)
8540 choke me
8541 #else
8542 char (*f) () = pthread_cond_wait;
8543 #endif
8544 #ifdef __cplusplus
8546 #endif
8549 main ()
8551 return f != pthread_cond_wait;
8553 return 0;
8555 _ACEOF
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>conftest.er1
8559 ac_status=$?
8560 grep -v '^ *+' conftest.er1 >conftest.err
8561 rm -f conftest.er1
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } &&
8565 { ac_try='test -z "$ac_c_werror_flag"
8566 || test ! -s conftest.err'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 (eval $ac_try) 2>&5
8569 ac_status=$?
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
8574 (eval $ac_try) 2>&5
8575 ac_status=$?
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8578 ac_cv_func_pthread_cond_wait=yes
8579 else
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
8598 d_sem_impl="mach"
8599 elif test "$ac_cv_func_sem_init" = "yes" && \
8600 test "$ac_cv_header_semaphore_h" = "yes" && \
8601 test -z "$d_is_aix"; then
8602 d_sem_impl="posix"
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"
8612 d_module_mach=1 ;;
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; }; } ;;
8620 esac
8621 else
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
8626 else
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
8633 /* confdefs.h. */
8634 _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. */
8647 #ifdef __STDC__
8648 # include <limits.h>
8649 #else
8650 # include <assert.h>
8651 #endif
8653 #undef pthread_suspend_np
8655 /* Override any gcc2 internal prototype to avoid an error. */
8656 #ifdef __cplusplus
8657 extern "C"
8659 #endif
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)
8667 choke me
8668 #else
8669 char (*f) () = pthread_suspend_np;
8670 #endif
8671 #ifdef __cplusplus
8673 #endif
8676 main ()
8678 return f != pthread_suspend_np;
8680 return 0;
8682 _ACEOF
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
8686 ac_status=$?
8687 grep -v '^ *+' conftest.er1 >conftest.err
8688 rm -f conftest.er1
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
8695 (eval $ac_try) 2>&5
8696 ac_status=$?
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
8701 (eval $ac_try) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8705 ac_cv_func_pthread_suspend_np=yes
8706 else
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
8722 else
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
8729 /* confdefs.h. */
8730 _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. */
8743 #ifdef __STDC__
8744 # include <limits.h>
8745 #else
8746 # include <assert.h>
8747 #endif
8749 #undef pthread_continue_np
8751 /* Override any gcc2 internal prototype to avoid an error. */
8752 #ifdef __cplusplus
8753 extern "C"
8755 #endif
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)
8763 choke me
8764 #else
8765 char (*f) () = pthread_continue_np;
8766 #endif
8767 #ifdef __cplusplus
8769 #endif
8772 main ()
8774 return f != pthread_continue_np;
8776 return 0;
8778 _ACEOF
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
8782 ac_status=$?
8783 grep -v '^ *+' conftest.er1 >conftest.err
8784 rm -f conftest.er1
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
8791 (eval $ac_try) 2>&5
8792 ac_status=$?
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
8797 (eval $ac_try) 2>&5
8798 ac_status=$?
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; }; then
8801 ac_cv_func_pthread_continue_np=yes
8802 else
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
8819 else
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
8829 _ACEOF
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
8836 else
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
8843 /* confdefs.h. */
8844 _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. */
8857 #ifdef __STDC__
8858 # include <limits.h>
8859 #else
8860 # include <assert.h>
8861 #endif
8863 #undef mmap
8865 /* Override any gcc2 internal prototype to avoid an error. */
8866 #ifdef __cplusplus
8867 extern "C"
8869 #endif
8870 /* We use char because int might match the return type of a gcc2
8871 builtin and then its argument prototype would still apply. */
8872 char mmap ();
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)
8877 choke me
8878 #else
8879 char (*f) () = mmap;
8880 #endif
8881 #ifdef __cplusplus
8883 #endif
8886 main ()
8888 return f != mmap;
8890 return 0;
8892 _ACEOF
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
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
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
8905 (eval $ac_try) 2>&5
8906 ac_status=$?
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
8911 (eval $ac_try) 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 ac_cv_func_mmap=yes
8916 else
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8920 ac_cv_func_mmap=no
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
8936 else
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
8943 /* confdefs.h. */
8944 _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. */
8957 #ifdef __STDC__
8958 # include <limits.h>
8959 #else
8960 # include <assert.h>
8961 #endif
8963 #undef getpwnam_r
8965 /* Override any gcc2 internal prototype to avoid an error. */
8966 #ifdef __cplusplus
8967 extern "C"
8969 #endif
8970 /* We use char because int might match the return type of a gcc2
8971 builtin and then its argument prototype would still apply. */
8972 char getpwnam_r ();
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)
8977 choke me
8978 #else
8979 char (*f) () = getpwnam_r;
8980 #endif
8981 #ifdef __cplusplus
8983 #endif
8986 main ()
8988 return f != getpwnam_r;
8990 return 0;
8992 _ACEOF
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
8996 ac_status=$?
8997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
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
9005 (eval $ac_try) 2>&5
9006 ac_status=$?
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
9011 (eval $ac_try) 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
9015 ac_cv_func_getpwnam_r=yes
9016 else
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)'
9037 DCFG_UNIX="Unix"
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
9065 mkdir -p $i;
9066 done
9070 # Cross stuff
9071 # if test -n "$d_cross_comp"; then
9073 # fi
9075 # Garbage collection configuration
9077 D_GC_MODULES=
9078 D_GC_FLAGS=
9080 case "$target_os" in
9081 mingw*)
9082 D_GC_MODULES=internal/gc/win32.o
9083 need_to_cfgr_gc=''
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"
9089 else
9090 need_to_cfgr_gc=yes
9093 esac
9095 if test "$need_to_cfgr_gc" = yes; then
9098 D_GC_MODULES=internal/gc/gcgcc.o
9100 d_gc_alloc=
9101 d_gc_stack=
9102 d_gc_data=
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"
9117 linux*)
9118 #d_gc_stack=GC_Use_Stack_Proc_Stat
9119 d_gc_data="$d_gc_data GC_Use_Data_Fixed"
9120 #have_proc_maps=1
9122 skyos*) d_gc_data="$d_gc_data GC_Use_Data_Fixed"
9124 *) D_GC_MODULES=internal/gc/gcgcc.o
9126 esac
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
9133 else
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
9140 /* confdefs.h. */
9141 _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. */
9154 #ifdef __STDC__
9155 # include <limits.h>
9156 #else
9157 # include <assert.h>
9158 #endif
9160 #undef mmap
9162 /* Override any gcc2 internal prototype to avoid an error. */
9163 #ifdef __cplusplus
9164 extern "C"
9166 #endif
9167 /* We use char because int might match the return type of a gcc2
9168 builtin and then its argument prototype would still apply. */
9169 char mmap ();
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)
9174 choke me
9175 #else
9176 char (*f) () = mmap;
9177 #endif
9178 #ifdef __cplusplus
9180 #endif
9183 main ()
9185 return f != mmap;
9187 return 0;
9189 _ACEOF
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
9193 ac_status=$?
9194 grep -v '^ *+' conftest.er1 >conftest.err
9195 rm -f conftest.er1
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
9202 (eval $ac_try) 2>&5
9203 ac_status=$?
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
9208 (eval $ac_try) 2>&5
9209 ac_status=$?
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
9212 ac_cv_func_mmap=yes
9213 else
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9217 ac_cv_func_mmap=no
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
9234 else
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
9241 /* confdefs.h. */
9242 _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. */
9255 #ifdef __STDC__
9256 # include <limits.h>
9257 #else
9258 # include <assert.h>
9259 #endif
9261 #undef valloc
9263 /* Override any gcc2 internal prototype to avoid an error. */
9264 #ifdef __cplusplus
9265 extern "C"
9267 #endif
9268 /* We use char because int might match the return type of a gcc2
9269 builtin and then its argument prototype would still apply. */
9270 char valloc ();
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)
9275 choke me
9276 #else
9277 char (*f) () = valloc;
9278 #endif
9279 #ifdef __cplusplus
9281 #endif
9284 main ()
9286 return f != valloc;
9288 return 0;
9290 _ACEOF
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
9294 ac_status=$?
9295 grep -v '^ *+' conftest.er1 >conftest.err
9296 rm -f conftest.er1
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
9303 (eval $ac_try) 2>&5
9304 ac_status=$?
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
9309 (eval $ac_try) 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
9313 ac_cv_func_valloc=yes
9314 else
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
9347 /* confdefs.h. */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9354 main ()
9357 extern long __libc_stack_end;
9358 return __libc_stack_end == 0;
9360 return 0;
9362 _ACEOF
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
9366 ac_status=$?
9367 grep -v '^ *+' conftest.er1 >conftest.err
9368 rm -f conftest.er1
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
9375 (eval $ac_try) 2>&5
9376 ac_status=$?
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
9381 (eval $ac_try) 2>&5
9382 ac_status=$?
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
9388 else
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
9422 D_GC_FLAGS=$f
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
9443 # following values.
9445 _ACEOF
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.
9453 (set) 2>&1 |
9454 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9455 *ac_space=\ *)
9456 # `set' does not quote correctly, so add quotes (double-quote
9457 # substitution turns \\\\ into \\, and sed turns \\ into \).
9458 sed -n \
9459 "s/'/'\\\\''/g;
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.
9464 sed -n \
9465 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9467 esac;
9469 sed '
9470 t clear
9471 : clear
9472 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9473 t end
9474 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9475 : end' >>confcache
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
9480 else
9481 echo "not updating unwritable cache $cache_file"
9484 rm -f confcache
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}:*/:/;
9498 s/:*@srcdir@:*/:/;
9499 s/^\([^=]*=[ ]*\):*/\1/;
9500 s/:*$//;
9501 s/^[^=]*=[ ]*$//;
9505 DEFS=-DHAVE_CONFIG_H
9507 ac_libobjs=
9508 ac_ltlibobjs=
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$//'`
9513 # 2. Add them.
9514 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9515 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9516 done
9517 LIBOBJS=$ac_libobjs
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
9529 #! $SHELL
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.
9535 debug=false
9536 ac_cs_recheck=false
9537 ac_cs_silent=false
9538 SHELL=\${CONFIG_SHELL-$SHELL}
9539 _ACEOF
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
9548 emulate sh
9549 NULLCMD=:
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
9554 set -o posix
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
9560 as_unset=unset
9561 else
9562 as_unset=false
9566 # Work around bugs in pre-3.0 UWIN ksh.
9567 $as_unset ENV MAIL MAILPATH
9568 PS1='$ '
9569 PS2='> '
9570 PS4='+ '
9572 # NLS nuisances.
9573 for as_var in \
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
9580 else
9581 $as_unset $as_var
9583 done
9585 # Required to use basename.
9586 if expr a : '\(a\)' >/dev/null 2>&1; then
9587 as_expr=expr
9588 else
9589 as_expr=false
9592 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9593 as_basename=basename
9594 else
9595 as_basename=false
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 ||
9605 echo X/"$0" |
9606 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9607 /^X\/\(\/\/\)$/{ s//\1/; q; }
9608 /^X\/\(\/\).*/{ s//\1/; q; }
9609 s/.*/./; 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
9624 chmod +x conf$$.sh
9625 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9626 PATH_SEPARATOR=';'
9627 else
9628 PATH_SEPARATOR=:
9630 rm -f conf$$.sh
9634 as_lineno_1=$LINENO
9635 as_lineno_2=$LINENO
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
9640 # relative or not.
9641 case $0 in
9642 *[\\/]* ) as_myself=$0 ;;
9643 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644 for as_dir in $PATH
9646 IFS=$as_save_IFS
9647 test -z "$as_dir" && as_dir=.
9648 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9649 done
9652 esac
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
9656 as_myself=$0
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
9668 IFS=$as_save_IFS
9669 test -z "$as_dir" && as_dir=.
9670 for as_base in sh bash ksh sh5; do
9671 case $as_dir in
9673 if ("$as_dir/$as_base" -c '
9674 as_lineno_1=$LINENO
9675 as_lineno_2=$LINENO
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
9682 export CONFIG_SHELL
9683 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9684 fi;;
9685 esac
9686 done
9687 done
9689 esac
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 |
9700 sed '
9702 s,$,-,
9703 : loop
9704 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9705 t loop
9706 s,-$,,
9707 s,^['$as_cr_digits']*\n,,
9708 ' >$as_me.lineno &&
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).
9717 . ./$as_me.lineno
9718 # Exit status is that of the last command.
9719 exit
9723 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9724 *c*,-n*) ECHO_N= ECHO_C='
9725 ' ECHO_T=' ' ;;
9726 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9727 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9728 esac
9730 if expr a : '\(a\)' >/dev/null 2>&1; then
9731 as_expr=expr
9732 else
9733 as_expr=false
9736 rm -f conf$$ conf$$.exe conf$$.file
9737 echo >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
9743 as_ln_s='cp -p'
9744 else
9745 as_ln_s='ln -s'
9747 elif ln conf$$.file conf$$ 2>/dev/null; then
9748 as_ln_s=ln
9749 else
9750 as_ln_s='cp -p'
9752 rm -f conf$$ conf$$.exe conf$$.file
9754 if mkdir -p . 2>/dev/null; then
9755 as_mkdir_p=:
9756 else
9757 test -d ./-p && rmdir ./-p
9758 as_mkdir_p=false
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'"
9770 # IFS
9771 # We need space, tab and new line, in precisely that order.
9772 as_nl='
9774 IFS=" $as_nl"
9776 # CDPATH.
9777 $as_unset CDPATH
9779 exec 6>&1
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.
9784 exec 5>>config.log
9786 echo
9787 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9788 ## Running $as_me. ##
9789 _ASBOX
9790 } >&5
9791 cat >&5 <<_CSEOF
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
9800 $ $0 $@
9802 _CSEOF
9803 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9804 echo >&5
9805 _ACEOF
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
9826 ac_cs_usage="\
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:
9843 $config_files
9845 Configuration headers:
9846 $config_headers
9848 Configuration commands:
9849 $config_commands
9851 Report bugs to <bug-autoconf@gnu.org>."
9852 _ACEOF
9854 cat >>$CONFIG_STATUS <<_ACEOF
9855 ac_cs_version="\\
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."
9863 srcdir=$srcdir
9864 INSTALL="$INSTALL"
9865 _ACEOF
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.
9870 ac_need_defaults=:
9871 while test $# != 0
9873 case $1 in
9874 --*=*)
9875 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9876 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9877 ac_shift=:
9880 ac_option=$1
9881 ac_optarg=$2
9882 ac_shift=shift
9884 *) # This is not an option, so the user has probably given explicit
9885 # arguments.
9886 ac_option=$1
9887 ac_need_defaults=false;;
9888 esac
9890 case $ac_option in
9891 # Handling of the options.
9892 _ACEOF
9893 cat >>$CONFIG_STATUS <<\_ACEOF
9894 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9895 ac_cs_recheck=: ;;
9896 --version | --vers* | -V )
9897 echo "$ac_cs_version"; exit 0 ;;
9898 --he | --h)
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 )
9908 debug=: ;;
9909 --file | --fil | --fi | --f )
9910 $ac_shift
9911 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9912 ac_need_defaults=false;;
9913 --header | --heade | --head | --hea )
9914 $ac_shift
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)
9919 ac_cs_silent=: ;;
9921 # This is an error.
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" ;;
9930 esac
9931 shift
9932 done
9934 ac_configure_extra_args=
9936 if $ac_cs_silent; then
9937 exec 6>/dev/null
9938 ac_configure_extra_args="$ac_configure_extra_args --silent"
9941 _ACEOF
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
9948 _ACEOF
9950 cat >>$CONFIG_STATUS <<_ACEOF
9952 # INIT-COMMANDS section.
9956 srcdir="$srcdir"
9957 host="$host"
9958 target="$target"
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}
9965 CC="$CC"
9967 _ACEOF
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; }; };;
9985 esac
9986 done
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.
10002 $debug ||
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"
10013 } ||
10015 tmp=./confstat$$-$RANDOM
10016 (umask 077 && mkdir $tmp)
10017 } ||
10019 echo "$me: cannot create a temporary directory in ." >&2
10020 { (exit 1); exit 1; }
10023 _ACEOF
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
10095 s,@AWK@,$AWK,;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
10102 s,@CC@,$CC,;t t
10103 s,@ac_ct_CC@,$ac_ct_CC,;t t
10104 s,@EXEEXT@,$EXEEXT,;t t
10105 s,@OBJEXT@,$OBJEXT,;t t
10106 s,@CXX@,$CXX,;t t
10107 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10108 s,@CFLAGS@,$CFLAGS,;t t
10109 s,@CXXFLAGS@,$CXXFLAGS,;t t
10110 s,@AR@,$AR,;t t
10111 s,@RANLIB@,$RANLIB,;t t
10112 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10113 s,@GDC@,$GDC,;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
10121 s,@CPP@,$CPP,;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
10159 CEOF
10161 _ACEOF
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.
10170 ac_more_lines=:
10171 ac_sed_cmds=
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
10175 else
10176 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10178 if test ! -s $tmp/subs.frag; then
10179 ac_more_lines=false
10180 else
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.
10185 (echo ':t
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"
10189 else
10190 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10192 ac_sed_frag=`expr $ac_sed_frag + 1`
10193 ac_beg=$ac_end
10194 ac_end=`expr $ac_end + $ac_max_sed_lines`
10196 done
10197 if test -z "$ac_sed_cmds"; then
10198 ac_sed_cmds=cat
10200 fi # test -n "$CONFIG_FILES"
10202 _ACEOF
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".
10206 case $ac_file in
10207 - | *:- | *:-:* ) # input from stdin
10208 cat >$tmp/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 ;;
10214 esac
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 ||
10223 echo X"$ac_file" |
10224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10226 /^X\(\/\/\)$/{ s//\1/; q; }
10227 /^X\(\/\).*/{ s//\1/; q; }
10228 s/.*/./; q'`
10229 { if $as_mkdir_p; then
10230 mkdir -p "$ac_dir"
10231 else
10232 as_dir="$ac_dir"
10233 as_dirs=
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 ||
10242 echo X"$as_dir" |
10243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10245 /^X\(\/\/\)$/{ s//\1/; q; }
10246 /^X\(\/\).*/{ s//\1/; q; }
10247 s/.*/./; q'`
10248 done
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; }; }; }
10254 ac_builddir=.
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'`
10260 else
10261 ac_dir_suffix= ac_top_builddir=
10264 case $srcdir in
10265 .) # No --srcdir option. We are building in place.
10266 ac_srcdir=.
10267 if test -z "$ac_top_builddir"; then
10268 ac_top_srcdir=.
10269 else
10270 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10271 fi ;;
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 ;;
10278 esac
10280 # Do not use `cd foo && pwd` to compute absolute paths, because
10281 # the directories may not exist.
10282 case `pwd` in
10283 .) ac_abs_builddir="$ac_dir";;
10285 case "$ac_dir" in
10286 .) ac_abs_builddir=`pwd`;;
10287 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10288 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10289 esac;;
10290 esac
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}.;;
10298 esac;;
10299 esac
10300 case $ac_abs_builddir in
10301 .) ac_abs_srcdir=$ac_srcdir;;
10303 case $ac_srcdir in
10304 .) ac_abs_srcdir=$ac_abs_builddir;;
10305 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10306 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10307 esac;;
10308 esac
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;;
10316 esac;;
10317 esac
10320 case $INSTALL in
10321 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10322 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10323 esac
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;}
10328 rm -f "$ac_file"
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
10334 configure_input=
10335 else
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
10342 # src tree.
10343 ac_file_inputs=`IFS=:
10344 for f in $ac_file_in; do
10345 case $f in
10346 -) echo $tmp/stdin ;;
10347 [\\/$]*)
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; }; }
10352 echo "$f";;
10353 *) # Relative
10354 if test -f "$f"; then
10355 # Build tree
10356 echo "$f"
10357 elif test -f "$srcdir/$f"; then
10358 # Source tree
10359 echo "$srcdir/$f"
10360 else
10361 # /dev/null tree
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; }; }
10365 fi;;
10366 esac
10367 done` || { (exit 1); exit 1; }
10368 _ACEOF
10369 cat >>$CONFIG_STATUS <<_ACEOF
10370 sed "$ac_vpsub
10371 $extrasub
10372 _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
10387 rm -f $tmp/stdin
10388 if test x"$ac_file" != x-; then
10389 mv $tmp/out $ac_file
10390 else
10391 cat $tmp/out
10392 rm -f $tmp/out
10395 done
10396 _ACEOF
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'
10409 ac_dC=' '
10410 ac_dD=',;t'
10411 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10412 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10413 ac_uB='$,\1#\2define\3'
10414 ac_uC=' '
10415 ac_uD=',;t'
10417 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10418 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10419 case $ac_file in
10420 - | *:- | *:-:* ) # input from stdin
10421 cat >$tmp/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 ;;
10427 esac
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
10433 # src tree.
10434 ac_file_inputs=`IFS=:
10435 for f in $ac_file_in; do
10436 case $f in
10437 -) echo $tmp/stdin ;;
10438 [\\/$]*)
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.
10444 echo "$f";;
10445 *) # Relative
10446 if test -f "$f"; then
10447 # Build tree
10448 echo "$f"
10449 elif test -f "$srcdir/$f"; then
10450 # Source tree
10451 echo "$srcdir/$f"
10452 else
10453 # /dev/null tree
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; }; }
10457 fi;;
10458 esac
10459 done` || { (exit 1); exit 1; }
10460 # Remove the trailing spaces.
10461 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10463 _ACEOF
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
10480 s/[\\&,]/\\&/g
10481 s,[\\$`],\\&,g
10482 t clear
10483 : clear
10484 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10485 t end
10486 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10487 : end
10488 _ACEOF
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]*,/* & */,
10501 _ACEOF
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
10520 echo 'CEOF
10521 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10522 rm -f $tmp/in
10523 mv $tmp/out $tmp/in
10524 ' >>$CONFIG_STATUS
10525 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10526 rm -f conftest.defines
10527 mv conftest.tail conftest.defines
10528 done
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
10547 echo 'CEOF
10548 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10549 rm -f $tmp/in
10550 mv $tmp/out $tmp/in
10551 ' >>$CONFIG_STATUS
10552 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10553 rm -f conftest.undefs
10554 mv conftest.tail conftest.undefs
10555 done
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
10564 else
10565 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10567 cat $tmp/in >>$tmp/config.h
10568 rm -f $tmp/in
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;}
10573 else
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 ||
10580 echo X"$ac_file" |
10581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10582 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10583 /^X\(\/\/\)$/{ s//\1/; q; }
10584 /^X\(\/\).*/{ s//\1/; q; }
10585 s/.*/./; q'`
10586 { if $as_mkdir_p; then
10587 mkdir -p "$ac_dir"
10588 else
10589 as_dir="$ac_dir"
10590 as_dirs=
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 ||
10599 echo X"$as_dir" |
10600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10601 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10602 /^X\(\/\/\)$/{ s//\1/; q; }
10603 /^X\(\/\).*/{ s//\1/; q; }
10604 s/.*/./; q'`
10605 done
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; }; }; }
10611 rm -f $ac_file
10612 mv $tmp/config.h $ac_file
10614 else
10615 cat $tmp/config.h
10616 rm -f $tmp/config.h
10618 # Compute $ac_file's index in $config_headers.
10619 _am_stamp_count=1
10620 for _am_header in $config_headers :; do
10621 case $_am_header in
10622 $ac_file | $ac_file:* )
10623 break ;;
10625 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10626 esac
10627 done
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 ||
10634 echo X$ac_file |
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
10640 done
10641 _ACEOF
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 ||
10656 echo X"$ac_dest" |
10657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10658 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10659 /^X\(\/\/\)$/{ s//\1/; q; }
10660 /^X\(\/\).*/{ s//\1/; q; }
10661 s/.*/./; q'`
10662 { if $as_mkdir_p; then
10663 mkdir -p "$ac_dir"
10664 else
10665 as_dir="$ac_dir"
10666 as_dirs=
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 ||
10675 echo X"$as_dir" |
10676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10678 /^X\(\/\/\)$/{ s//\1/; q; }
10679 /^X\(\/\).*/{ s//\1/; q; }
10680 s/.*/./; q'`
10681 done
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; }; }; }
10687 ac_builddir=.
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'`
10693 else
10694 ac_dir_suffix= ac_top_builddir=
10697 case $srcdir in
10698 .) # No --srcdir option. We are building in place.
10699 ac_srcdir=.
10700 if test -z "$ac_top_builddir"; then
10701 ac_top_srcdir=.
10702 else
10703 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10704 fi ;;
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 ;;
10711 esac
10713 # Do not use `cd foo && pwd` to compute absolute paths, because
10714 # the directories may not exist.
10715 case `pwd` in
10716 .) ac_abs_builddir="$ac_dir";;
10718 case "$ac_dir" in
10719 .) ac_abs_builddir=`pwd`;;
10720 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10721 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10722 esac;;
10723 esac
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}.;;
10731 esac;;
10732 esac
10733 case $ac_abs_builddir in
10734 .) ac_abs_srcdir=$ac_srcdir;;
10736 case $ac_srcdir in
10737 .) ac_abs_srcdir=$ac_abs_builddir;;
10738 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10739 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10740 esac;;
10741 esac
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;;
10749 esac;;
10750 esac
10753 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10754 echo "$as_me: executing $ac_dest commands" >&6;}
10755 case $ac_dest in
10756 default-1 )
10757 # Only add multilib support code if we just rebuilt the top-level
10758 # Makefile.
10759 case " $CONFIG_FILES " in
10760 *" Makefile "*)
10761 ac_file=Makefile . ${multi_basedir}/config-ml.in
10763 esac ;;
10764 esac
10765 done
10766 _ACEOF
10768 cat >>$CONFIG_STATUS <<\_ACEOF
10770 { (exit 0); exit 0; }
10771 _ACEOF
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
10785 ac_cs_success=:
10786 ac_config_status_args=
10787 test "$silent" = yes &&
10788 ac_config_status_args="$ac_config_status_args --quiet"
10789 exec 5>/dev/null
10790 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10791 exec 5>>config.log
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; }