PR bootstrap/18058
[official-gcc.git] / libobjc / configure
blob63597e4cc8326cae06a3f50ee000b223a54c3843
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for package-unused 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='package-unused'
269 PACKAGE_TARNAME='libobjc'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='package-unused version-unused'
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="objc/objc.h"
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 build_subdir host_subdir target_subdir VERSION OBJC_BOEHM_GC OBJC_BOEHM_GC_INCLUDES toplevel_srcdir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical glibcpp_srcdir toolexecdir toolexeclibdir includedirname libext CC ac_ct_CC EXEEXT OBJEXT extra_ldflags_libobjc CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LN_S STRIP ac_ct_STRIP LIBTOOL SET_MAKE CPP CPPFLAGS EGREP LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
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 package-unused 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 System types:
823 --build=BUILD configure for building on BUILD [guessed]
824 --host=HOST cross-compile to build programs to run on HOST [BUILD]
825 --target=TARGET configure for building compilers for TARGET [HOST]
826 _ACEOF
829 if test -n "$ac_init_help"; then
830 case $ac_init_help in
831 short | recursive ) echo "Configuration of package-unused version-unused:";;
832 esac
833 cat <<\_ACEOF
835 Optional Features:
836 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
837 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
838 --enable-multilib build hella library versions (default)
839 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
840 --enable-objc-gc enable the use of Boehm's garbage collector with
841 the GNU Objective-C runtime.
842 --enable-maintainer-mode enable make rules and dependencies not useful
843 (and sometimes confusing) to the casual installer
844 --enable-shared=PKGS build shared libraries default=yes
845 --enable-static=PKGS build static libraries default=yes
846 --enable-fast-install=PKGS optimize for fast installation default=yes
847 --disable-libtool-lock avoid locking (might break parallel builds)
848 --enable-sjlj-exceptions
849 force use of builtin_setjmp for exceptions
851 Optional Packages:
852 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
853 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854 --with-target-subdir=SUBDIR
855 configuring in a subdirectory
856 --with-cross-host=HOST configuring with a cross compiler
857 --with-gnu-ld assume the C compiler uses GNU ld default=no
858 --with-pic try to use only PIC/non-PIC objects default=use both
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CPP C preprocessor
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
872 _ACEOF
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887 ac_dir_suffix= ac_top_builddir=
890 case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
906 # Do not use `cd foo && pwd` to compute absolute paths, because
907 # the directories may not exist.
908 case `pwd` in
909 .) ac_abs_builddir="$ac_dir";;
911 case "$ac_dir" in
912 .) ac_abs_builddir=`pwd`;;
913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
915 esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 case ${ac_top_builddir}. in
921 .) ac_abs_top_builddir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
924 esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
929 case $ac_srcdir in
930 .) ac_abs_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 case $ac_top_srcdir in
939 .) ac_abs_top_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
942 esac;;
943 esac
945 cd $ac_dir
946 # Check for guested configure; otherwise get Cygnus style configure.
947 if test -f $ac_srcdir/configure.gnu; then
948 echo
949 $SHELL $ac_srcdir/configure.gnu --help=recursive
950 elif test -f $ac_srcdir/configure; then
951 echo
952 $SHELL $ac_srcdir/configure --help=recursive
953 elif test -f $ac_srcdir/configure.ac ||
954 test -f $ac_srcdir/configure.in; then
955 echo
956 $ac_configure --help
957 else
958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960 cd "$ac_popdir"
961 done
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
966 cat <<\_ACEOF
967 package-unused configure version-unused
968 generated by GNU Autoconf 2.59
970 Copyright (C) 2003 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
973 _ACEOF
974 exit 0
976 exec 5>config.log
977 cat >&5 <<_ACEOF
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
981 It was created by package-unused $as_me version-unused, which was
982 generated by GNU Autoconf 2.59. Invocation command line was
984 $ $0 $@
986 _ACEOF
988 cat <<_ASUNAME
989 ## --------- ##
990 ## Platform. ##
991 ## --------- ##
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1010 _ASUNAME
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1013 for as_dir in $PATH
1015 IFS=$as_save_IFS
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1018 done
1020 } >&5
1022 cat >&5 <<_ACEOF
1025 ## ----------- ##
1026 ## Core tests. ##
1027 ## ----------- ##
1029 _ACEOF
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_configure_args=
1038 ac_configure_args0=
1039 ac_configure_args1=
1040 ac_sep=
1041 ac_must_keep_next=false
1042 for ac_pass in 1 2
1044 for ac_arg
1046 case $ac_arg in
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 continue ;;
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053 esac
1054 case $ac_pass in
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1060 else
1061 case $ac_arg in
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068 esac
1070 -* ) ac_must_keep_next=true ;;
1071 esac
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1075 ac_sep=" "
1077 esac
1078 done
1079 done
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1091 echo
1093 cat <<\_ASBOX
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1097 _ASBOX
1098 echo
1099 # The following way of writing the cache mishandles newlines in values,
1101 (set) 2>&1 |
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103 *ac_space=\ *)
1104 sed -n \
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1109 sed -n \
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112 esac;
1114 echo
1116 cat <<\_ASBOX
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1120 _ASBOX
1121 echo
1122 for ac_var in $ac_subst_vars
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1126 done | sort
1127 echo
1129 if test -n "$ac_subst_files"; then
1130 cat <<\_ASBOX
1131 ## ------------- ##
1132 ## Output files. ##
1133 ## ------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_files
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1144 if test -s confdefs.h; then
1145 cat <<\_ASBOX
1146 ## ----------- ##
1147 ## confdefs.h. ##
1148 ## ----------- ##
1149 _ASBOX
1150 echo
1151 sed "/^$/d" confdefs.h | sort
1152 echo
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1157 } >&5
1158 rm -f core *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160 exit $exit_status
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1164 done
1165 ac_signal=0
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170 echo >confdefs.h
1172 # Predefined preprocessor variables.
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1176 _ACEOF
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1181 _ACEOF
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1186 _ACEOF
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1196 _ACEOF
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204 else
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1213 . "$ac_site_file"
1215 done
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1223 case $cache_file in
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1226 esac
1228 else
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1231 >$cache_file
1234 # Check that the precious variables saved in the cache have kept the same
1235 # value.
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1244 set,)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,set)
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1252 ,);;
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1258 echo "$as_me: former value: $ac_old_val" >&2;}
1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1260 echo "$as_me: current value: $ac_new_val" >&2;}
1261 ac_cache_corrupted=:
1262 fi;;
1263 esac
1264 # Pass precious variables to config.status.
1265 if test "$ac_new_set" = set; then
1266 case $ac_new_val in
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 *) ac_arg=$ac_var=$ac_new_val ;;
1270 esac
1271 case " $ac_configure_args " in
1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1274 esac
1276 done
1277 if $ac_cache_corrupted; then
1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282 { (exit 1); exit 1; }; }
1285 ac_ext=c
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318 ac_aux_dir=
1319 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320 if test -f $ac_dir/install-sh; then
1321 ac_aux_dir=$ac_dir
1322 ac_install_sh="$ac_aux_dir/install-sh -c"
1323 break
1324 elif test -f $ac_dir/install.sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install.sh -c"
1327 break
1328 elif test -f $ac_dir/shtool; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/shtool install -c"
1331 break
1333 done
1334 if test -z "$ac_aux_dir"; then
1335 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337 { (exit 1); exit 1; }; }
1339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343 # Make sure we can run config.sub.
1344 $ac_config_sub sun4 >/dev/null 2>&1 ||
1345 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1346 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1347 { (exit 1); exit 1; }; }
1349 echo "$as_me:$LINENO: checking build system type" >&5
1350 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1351 if test "${ac_cv_build+set}" = set; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 else
1354 ac_cv_build_alias=$build_alias
1355 test -z "$ac_cv_build_alias" &&
1356 ac_cv_build_alias=`$ac_config_guess`
1357 test -z "$ac_cv_build_alias" &&
1358 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1359 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1360 { (exit 1); exit 1; }; }
1361 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1362 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1363 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1364 { (exit 1); exit 1; }; }
1367 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1368 echo "${ECHO_T}$ac_cv_build" >&6
1369 build=$ac_cv_build
1370 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1371 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1372 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1375 case ${build_alias} in
1376 "") build_noncanonical=${build} ;;
1377 *) build_noncanonical=${build_alias} ;;
1378 esac
1380 case ${host_alias} in
1381 "") host_noncanonical=${build_noncanonical} ;;
1382 *) host_noncanonical=${host_alias} ;;
1383 esac
1385 case ${target_alias} in
1386 "") target_noncanonical=${host_noncanonical} ;;
1387 *) target_noncanonical=${target_alias} ;;
1388 esac
1390 # Prefix 'build-' so this never conflicts with target_subdir.
1391 build_subdir="build-${build_noncanonical}"
1392 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1393 if ( test $srcdir = . && test -d gcc ) \
1394 || test -d $srcdir/../host-${host_noncanonical}; then
1395 host_subdir="host-${host_noncanonical}"
1396 else
1397 host_subdir=.
1399 # No prefix.
1400 target_subdir=${target_noncanonical}
1403 # We need the following definitions because AC_PROG_LIBTOOL relies on them
1404 PACKAGE=libobjc
1405 # Version is pulled out to make it a bit easier to change using sed.
1406 VERSION=2:0:0
1409 # This works around the fact that libtool configuration may change LD
1410 # for this particular configuration, but some shells, instead of
1411 # keeping the changes in LD private, export them just because LD is
1412 # exported.
1413 ORIGINAL_LD_FOR_MULTILIBS=$LD
1415 # -------
1416 # Options
1417 # -------
1419 # Default to --enable-multilib
1420 # Check whether --enable-multilib or --disable-multilib was given.
1421 if test "${enable_multilib+set}" = set; then
1422 enableval="$enable_multilib"
1423 case "${enableval}" in
1424 yes) multilib=yes ;;
1425 no) multilib=no ;;
1426 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1427 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1428 { (exit 1); exit 1; }; } ;;
1429 esac
1430 else
1431 multilib=yes
1434 # We use these options to decide which functions to include.
1436 # Check whether --with-target-subdir or --without-target-subdir was given.
1437 if test "${with_target_subdir+set}" = set; then
1438 withval="$with_target_subdir"
1442 # Check whether --with-cross-host or --without-cross-host was given.
1443 if test "${with_cross_host+set}" = set; then
1444 withval="$with_cross_host"
1448 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1449 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1450 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1451 if test "${enable_version_specific_runtime_libs+set}" = set; then
1452 enableval="$enable_version_specific_runtime_libs"
1453 case "$enableval" in
1454 yes) version_specific_libs=yes ;;
1455 no) version_specific_libs=no ;;
1456 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1457 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1458 { (exit 1); exit 1; }; };;
1459 esac
1460 else
1461 version_specific_libs=no
1463 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1464 echo "${ECHO_T}$version_specific_libs" >&6
1466 # Check whether --enable-objc-gc or --disable-objc-gc was given.
1467 if test "${enable_objc_gc+set}" = set; then
1468 enableval="$enable_objc_gc"
1469 case $enable_objc_gc in
1471 OBJC_BOEHM_GC=''
1472 OBJC_BOEHM_GC_INCLUDES=''
1475 OBJC_BOEHM_GC=libobjc_gc.la
1476 OBJC_BOEHM_GC_INCLUDES='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
1478 esac
1479 else
1480 OBJC_BOEHM_GC=''; OBJC_BOEHM_GC_INCLUDES=''
1485 # -----------
1486 # Directories
1487 # -----------
1489 # When building with srcdir == objdir, links to the source files will
1490 # be created in directories within the target_subdir. We have to
1491 # adjust toplevel_srcdir accordingly, so that configure finds
1492 # install-sh and other auxiliary files that live in the top-level
1493 # source directory.
1494 if test "${srcdir}" = "."; then
1495 if test -z "${with_target_subdir}"; then
1496 toprel=".."
1497 else
1498 if test "${with_target_subdir}" != "."; then
1499 toprel="${with_multisrctop}../.."
1500 else
1501 toprel="${with_multisrctop}.."
1504 else
1505 toprel=".."
1507 ac_aux_dir=
1508 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1509 if test -f $ac_dir/install-sh; then
1510 ac_aux_dir=$ac_dir
1511 ac_install_sh="$ac_aux_dir/install-sh -c"
1512 break
1513 elif test -f $ac_dir/install.sh; then
1514 ac_aux_dir=$ac_dir
1515 ac_install_sh="$ac_aux_dir/install.sh -c"
1516 break
1517 elif test -f $ac_dir/shtool; then
1518 ac_aux_dir=$ac_dir
1519 ac_install_sh="$ac_aux_dir/shtool install -c"
1520 break
1522 done
1523 if test -z "$ac_aux_dir"; then
1524 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&5
1525 echo "$as_me: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&2;}
1526 { (exit 1); exit 1; }; }
1528 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1529 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1530 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1532 toplevel_srcdir=\${srcdir}/$toprel
1535 echo "$as_me:$LINENO: checking host system type" >&5
1536 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1537 if test "${ac_cv_host+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 else
1540 ac_cv_host_alias=$host_alias
1541 test -z "$ac_cv_host_alias" &&
1542 ac_cv_host_alias=$ac_cv_build_alias
1543 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1544 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1545 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1546 { (exit 1); exit 1; }; }
1549 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1550 echo "${ECHO_T}$ac_cv_host" >&6
1551 host=$ac_cv_host
1552 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1553 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1554 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557 echo "$as_me:$LINENO: checking target system type" >&5
1558 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1559 if test "${ac_cv_target+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562 ac_cv_target_alias=$target_alias
1563 test "x$ac_cv_target_alias" = "x" &&
1564 ac_cv_target_alias=$ac_cv_host_alias
1565 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1566 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1567 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1568 { (exit 1); exit 1; }; }
1571 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1572 echo "${ECHO_T}$ac_cv_target" >&6
1573 target=$ac_cv_target
1574 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1575 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1576 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579 # The aliases save the names the user supplied, while $host etc.
1580 # will get canonicalized.
1581 test -n "$target_alias" &&
1582 test "$program_prefix$program_suffix$program_transform_name" = \
1583 NONENONEs,x,x, &&
1584 program_prefix=${target_alias}-
1588 # Export source directory.
1589 # These need to be absolute paths, yet at the same time need to
1590 # canonicalize only relative paths, because then amd will not unmount
1591 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1592 case $srcdir in
1593 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1594 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1595 esac
1598 # Calculate toolexeclibdir
1599 # Also toolexecdir, though it's only used in toolexeclibdir
1600 case ${version_specific_libs} in
1601 yes)
1602 # Need the gcc compiler version to know where to install libraries
1603 # and header files if --enable-version-specific-runtime-libs option
1604 # is selected.
1605 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
1606 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1609 if test -n "$with_cross_host" &&
1610 test x"$with_cross_host" != x"no"; then
1611 # Install a library built with a cross compiler in tooldir, not libdir.
1612 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
1613 toolexeclibdir='$(toolexecdir)/lib'
1614 else
1615 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
1616 toolexeclibdir='$(libdir)'
1618 multi_os_directory=`$CC -print-multi-os-directory`
1619 case $multi_os_directory in
1620 .) ;; # Avoid trailing /.
1621 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1622 esac
1624 esac
1628 # Figure out if we want to name the include directory and the
1629 # library name changes differently.
1630 includedirname=include
1631 libext=
1632 case "${host}" in
1633 *-darwin*)
1634 # Darwin is the only target so far that needs a different include directory.
1635 includedirname=include-gnu-runtime
1636 libext=-gnu
1638 esac
1642 ac_config_headers="$ac_config_headers config.h"
1645 # --------
1646 # Programs
1647 # --------
1651 # We must force CC to /not/ be a precious variable; otherwise
1652 # the wrong, non-multilib-adjusted value will be used in multilibs.
1653 # As a side effect, we have to subst CFLAGS ourselves.
1656 ac_ext=c
1657 ac_cpp='$CPP $CPPFLAGS'
1658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1661 if test -n "$ac_tool_prefix"; then
1662 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1663 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1664 echo "$as_me:$LINENO: checking for $ac_word" >&5
1665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666 if test "${ac_cv_prog_CC+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 else
1669 if test -n "$CC"; then
1670 ac_cv_prog_CC="$CC" # Let the user override the test.
1671 else
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 for as_dir in $PATH
1675 IFS=$as_save_IFS
1676 test -z "$as_dir" && as_dir=.
1677 for ac_exec_ext in '' $ac_executable_extensions; do
1678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 break 2
1683 done
1684 done
1688 CC=$ac_cv_prog_CC
1689 if test -n "$CC"; then
1690 echo "$as_me:$LINENO: result: $CC" >&5
1691 echo "${ECHO_T}$CC" >&6
1692 else
1693 echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1698 if test -z "$ac_cv_prog_CC"; then
1699 ac_ct_CC=$CC
1700 # Extract the first word of "gcc", so it can be a program name with args.
1701 set dummy gcc; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707 if test -n "$ac_ct_CC"; then
1708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1709 else
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 ac_cv_prog_ac_ct_CC="gcc"
1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 break 2
1721 done
1722 done
1726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1727 if test -n "$ac_ct_CC"; then
1728 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1729 echo "${ECHO_T}$ac_ct_CC" >&6
1730 else
1731 echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1735 CC=$ac_ct_CC
1736 else
1737 CC="$ac_cv_prog_CC"
1740 if test -z "$CC"; then
1741 if test -n "$ac_tool_prefix"; then
1742 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1743 set dummy ${ac_tool_prefix}cc; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749 if test -n "$CC"; then
1750 ac_cv_prog_CC="$CC" # Let the user override the test.
1751 else
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1755 IFS=$as_save_IFS
1756 test -z "$as_dir" && as_dir=.
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759 ac_cv_prog_CC="${ac_tool_prefix}cc"
1760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761 break 2
1763 done
1764 done
1768 CC=$ac_cv_prog_CC
1769 if test -n "$CC"; then
1770 echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1772 else
1773 echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1778 if test -z "$ac_cv_prog_CC"; then
1779 ac_ct_CC=$CC
1780 # Extract the first word of "cc", so it can be a program name with args.
1781 set dummy cc; ac_word=$2
1782 echo "$as_me:$LINENO: checking for $ac_word" >&5
1783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1786 else
1787 if test -n "$ac_ct_CC"; then
1788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1789 else
1790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791 for as_dir in $PATH
1793 IFS=$as_save_IFS
1794 test -z "$as_dir" && as_dir=.
1795 for ac_exec_ext in '' $ac_executable_extensions; do
1796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797 ac_cv_prog_ac_ct_CC="cc"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 break 2
1801 done
1802 done
1806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1807 if test -n "$ac_ct_CC"; then
1808 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1809 echo "${ECHO_T}$ac_ct_CC" >&6
1810 else
1811 echo "$as_me:$LINENO: result: no" >&5
1812 echo "${ECHO_T}no" >&6
1815 CC=$ac_ct_CC
1816 else
1817 CC="$ac_cv_prog_CC"
1821 if test -z "$CC"; then
1822 # Extract the first word of "cc", so it can be a program name with args.
1823 set dummy cc; ac_word=$2
1824 echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826 if test "${ac_cv_prog_CC+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829 if test -n "$CC"; then
1830 ac_cv_prog_CC="$CC" # Let the user override the test.
1831 else
1832 ac_prog_rejected=no
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 for as_dir in $PATH
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1841 ac_prog_rejected=yes
1842 continue
1844 ac_cv_prog_CC="cc"
1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846 break 2
1848 done
1849 done
1851 if test $ac_prog_rejected = yes; then
1852 # We found a bogon in the path, so make sure we never use it.
1853 set dummy $ac_cv_prog_CC
1854 shift
1855 if test $# != 0; then
1856 # We chose a different compiler from the bogus one.
1857 # However, it has the same basename, so the bogon will be chosen
1858 # first if we set CC to just the basename; use the full file name.
1859 shift
1860 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1865 CC=$ac_cv_prog_CC
1866 if test -n "$CC"; then
1867 echo "$as_me:$LINENO: result: $CC" >&5
1868 echo "${ECHO_T}$CC" >&6
1869 else
1870 echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1875 if test -z "$CC"; then
1876 if test -n "$ac_tool_prefix"; then
1877 for ac_prog in cl
1879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_CC+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886 if test -n "$CC"; then
1887 ac_cv_prog_CC="$CC" # Let the user override the test.
1888 else
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1892 IFS=$as_save_IFS
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898 break 2
1900 done
1901 done
1905 CC=$ac_cv_prog_CC
1906 if test -n "$CC"; then
1907 echo "$as_me:$LINENO: result: $CC" >&5
1908 echo "${ECHO_T}$CC" >&6
1909 else
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1914 test -n "$CC" && break
1915 done
1917 if test -z "$CC"; then
1918 ac_ct_CC=$CC
1919 for ac_prog in cl
1921 # Extract the first word of "$ac_prog", so it can be a program name with args.
1922 set dummy $ac_prog; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928 if test -n "$ac_ct_CC"; then
1929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930 else
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1934 IFS=$as_save_IFS
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938 ac_cv_prog_ac_ct_CC="$ac_prog"
1939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 break 2
1942 done
1943 done
1947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948 if test -n "$ac_ct_CC"; then
1949 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950 echo "${ECHO_T}$ac_ct_CC" >&6
1951 else
1952 echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1956 test -n "$ac_ct_CC" && break
1957 done
1959 CC=$ac_ct_CC
1965 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1966 See \`config.log' for more details." >&5
1967 echo "$as_me: error: no acceptable C compiler found in \$PATH
1968 See \`config.log' for more details." >&2;}
1969 { (exit 1); exit 1; }; }
1971 # Provide some information about the compiler.
1972 echo "$as_me:$LINENO:" \
1973 "checking for C compiler version" >&5
1974 ac_compiler=`set X $ac_compile; echo $2`
1975 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1976 (eval $ac_compiler --version </dev/null >&5) 2>&5
1977 ac_status=$?
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }
1980 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1981 (eval $ac_compiler -v </dev/null >&5) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }
1985 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1986 (eval $ac_compiler -V </dev/null >&5) 2>&5
1987 ac_status=$?
1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989 (exit $ac_status); }
1991 cat >conftest.$ac_ext <<_ACEOF
1992 /* confdefs.h. */
1993 _ACEOF
1994 cat confdefs.h >>conftest.$ac_ext
1995 cat >>conftest.$ac_ext <<_ACEOF
1996 /* end confdefs.h. */
1999 main ()
2003 return 0;
2005 _ACEOF
2006 # FIXME: Cleanup?
2007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2008 (eval $ac_link) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; then
2012 gcc_no_link=no
2013 else
2014 gcc_no_link=yes
2017 if test x$gcc_no_link = xyes; then
2018 # Setting cross_compile will disable run tests; it will
2019 # also disable AC_CHECK_FILE but that's generally
2020 # correct if we can't link.
2021 cross_compiling=yes
2022 EXEEXT=
2023 else
2024 cat >conftest.$ac_ext <<_ACEOF
2025 /* confdefs.h. */
2026 _ACEOF
2027 cat confdefs.h >>conftest.$ac_ext
2028 cat >>conftest.$ac_ext <<_ACEOF
2029 /* end confdefs.h. */
2032 main ()
2036 return 0;
2038 _ACEOF
2039 ac_clean_files_save=$ac_clean_files
2040 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2041 # Try to create an executable without -o first, disregard a.out.
2042 # It will help us diagnose broken compilers, and finding out an intuition
2043 # of exeext.
2044 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2045 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2046 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2047 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2048 (eval $ac_link_default) 2>&5
2049 ac_status=$?
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; then
2052 # Find the output, starting from the most likely. This scheme is
2053 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2054 # resort.
2056 # Be careful to initialize this variable, since it used to be cached.
2057 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2058 ac_cv_exeext=
2059 # b.out is created by i960 compilers.
2060 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2062 test -f "$ac_file" || continue
2063 case $ac_file in
2064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2066 conftest.$ac_ext )
2067 # This is the source file.
2069 [ab].out )
2070 # We found the default executable, but exeext='' is most
2071 # certainly right.
2072 break;;
2073 *.* )
2074 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2075 # FIXME: I believe we export ac_cv_exeext for Libtool,
2076 # but it would be cool to find out if it's true. Does anybody
2077 # maintain Libtool? --akim.
2078 export ac_cv_exeext
2079 break;;
2081 break;;
2082 esac
2083 done
2084 else
2085 echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2088 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2089 See \`config.log' for more details." >&5
2090 echo "$as_me: error: C compiler cannot create executables
2091 See \`config.log' for more details." >&2;}
2092 { (exit 77); exit 77; }; }
2095 ac_exeext=$ac_cv_exeext
2096 echo "$as_me:$LINENO: result: $ac_file" >&5
2097 echo "${ECHO_T}$ac_file" >&6
2099 # Check the compiler produces executables we can run. If not, either
2100 # the compiler is broken, or we cross compile.
2101 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2102 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2103 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2104 # If not cross compiling, check that we can run a simple program.
2105 if test "$cross_compiling" != yes; then
2106 if { ac_try='./$ac_file'
2107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108 (eval $ac_try) 2>&5
2109 ac_status=$?
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }; }; then
2112 cross_compiling=no
2113 else
2114 if test "$cross_compiling" = maybe; then
2115 cross_compiling=yes
2116 else
2117 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2118 If you meant to cross compile, use \`--host'.
2119 See \`config.log' for more details." >&5
2120 echo "$as_me: error: cannot run C compiled programs.
2121 If you meant to cross compile, use \`--host'.
2122 See \`config.log' for more details." >&2;}
2123 { (exit 1); exit 1; }; }
2127 echo "$as_me:$LINENO: result: yes" >&5
2128 echo "${ECHO_T}yes" >&6
2130 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2131 ac_clean_files=$ac_clean_files_save
2132 # Check the compiler produces executables we can run. If not, either
2133 # the compiler is broken, or we cross compile.
2134 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2135 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2136 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2137 echo "${ECHO_T}$cross_compiling" >&6
2139 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2140 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2142 (eval $ac_link) 2>&5
2143 ac_status=$?
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; then
2146 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2147 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2148 # work properly (i.e., refer to `conftest.exe'), while it won't with
2149 # `rm'.
2150 for ac_file in conftest.exe conftest conftest.*; do
2151 test -f "$ac_file" || continue
2152 case $ac_file in
2153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2154 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2155 export ac_cv_exeext
2156 break;;
2157 * ) break;;
2158 esac
2159 done
2160 else
2161 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2164 See \`config.log' for more details." >&2;}
2165 { (exit 1); exit 1; }; }
2168 rm -f conftest$ac_cv_exeext
2169 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2170 echo "${ECHO_T}$ac_cv_exeext" >&6
2172 rm -f conftest.$ac_ext
2173 EXEEXT=$ac_cv_exeext
2174 ac_exeext=$EXEEXT
2176 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2177 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2178 if test "${ac_cv_objext+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181 cat >conftest.$ac_ext <<_ACEOF
2182 /* confdefs.h. */
2183 _ACEOF
2184 cat confdefs.h >>conftest.$ac_ext
2185 cat >>conftest.$ac_ext <<_ACEOF
2186 /* end confdefs.h. */
2189 main ()
2193 return 0;
2195 _ACEOF
2196 rm -f conftest.o conftest.obj
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198 (eval $ac_compile) 2>&5
2199 ac_status=$?
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }; then
2202 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2203 case $ac_file in
2204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2205 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2206 break;;
2207 esac
2208 done
2209 else
2210 echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2213 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2216 See \`config.log' for more details." >&2;}
2217 { (exit 1); exit 1; }; }
2220 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2222 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2223 echo "${ECHO_T}$ac_cv_objext" >&6
2224 OBJEXT=$ac_cv_objext
2225 ac_objext=$OBJEXT
2226 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2227 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2228 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231 cat >conftest.$ac_ext <<_ACEOF
2232 /* confdefs.h. */
2233 _ACEOF
2234 cat confdefs.h >>conftest.$ac_ext
2235 cat >>conftest.$ac_ext <<_ACEOF
2236 /* end confdefs.h. */
2239 main ()
2241 #ifndef __GNUC__
2242 choke me
2243 #endif
2246 return 0;
2248 _ACEOF
2249 rm -f conftest.$ac_objext
2250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2251 (eval $ac_compile) 2>conftest.er1
2252 ac_status=$?
2253 grep -v '^ *+' conftest.er1 >conftest.err
2254 rm -f conftest.er1
2255 cat conftest.err >&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); } &&
2258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2270 ac_compiler_gnu=yes
2271 else
2272 echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2275 ac_compiler_gnu=no
2277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2281 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2282 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2283 GCC=`test $ac_compiler_gnu = yes && echo yes`
2284 ac_test_CFLAGS=${CFLAGS+set}
2285 ac_save_CFLAGS=$CFLAGS
2286 CFLAGS="-g"
2287 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2288 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2289 if test "${ac_cv_prog_cc_g+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292 cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h. */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2300 main ()
2304 return 0;
2306 _ACEOF
2307 rm -f conftest.$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>conftest.er1
2310 ac_status=$?
2311 grep -v '^ *+' conftest.er1 >conftest.err
2312 rm -f conftest.er1
2313 cat conftest.err >&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); } &&
2316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 (eval $ac_try) 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; } &&
2322 { ac_try='test -s conftest.$ac_objext'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 (eval $ac_try) 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; }; then
2328 ac_cv_prog_cc_g=yes
2329 else
2330 echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2333 ac_cv_prog_cc_g=no
2335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2337 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2338 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2339 if test "$ac_test_CFLAGS" = set; then
2340 CFLAGS=$ac_save_CFLAGS
2341 elif test $ac_cv_prog_cc_g = yes; then
2342 if test "$GCC" = yes; then
2343 CFLAGS="-g -O2"
2344 else
2345 CFLAGS="-g"
2347 else
2348 if test "$GCC" = yes; then
2349 CFLAGS="-O2"
2350 else
2351 CFLAGS=
2354 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2355 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2356 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359 ac_cv_prog_cc_stdc=no
2360 ac_save_CC=$CC
2361 cat >conftest.$ac_ext <<_ACEOF
2362 /* confdefs.h. */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2367 #include <stdarg.h>
2368 #include <stdio.h>
2369 #include <sys/types.h>
2370 #include <sys/stat.h>
2371 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2372 struct buf { int x; };
2373 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2374 static char *e (p, i)
2375 char **p;
2376 int i;
2378 return p[i];
2380 static char *f (char * (*g) (char **, int), char **p, ...)
2382 char *s;
2383 va_list v;
2384 va_start (v,p);
2385 s = g (p, va_arg (v,int));
2386 va_end (v);
2387 return s;
2390 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2391 function prototypes and stuff, but not '\xHH' hex character constants.
2392 These don't provoke an error unfortunately, instead are silently treated
2393 as 'x'. The following induces an error, until -std1 is added to get
2394 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2395 array size at least. It's necessary to write '\x00'==0 to get something
2396 that's true only with -std1. */
2397 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2399 int test (int i, double x);
2400 struct s1 {int (*f) (int a);};
2401 struct s2 {int (*f) (double a);};
2402 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2403 int argc;
2404 char **argv;
2406 main ()
2408 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2410 return 0;
2412 _ACEOF
2413 # Don't try gcc -ansi; that turns off useful extensions and
2414 # breaks some systems' header files.
2415 # AIX -qlanglvl=ansi
2416 # Ultrix and OSF/1 -std1
2417 # HP-UX 10.20 and later -Ae
2418 # HP-UX older versions -Aa -D_HPUX_SOURCE
2419 # SVR4 -Xc -D__EXTENSIONS__
2420 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2422 CC="$ac_save_CC $ac_arg"
2423 rm -f conftest.$ac_objext
2424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425 (eval $ac_compile) 2>conftest.er1
2426 ac_status=$?
2427 grep -v '^ *+' conftest.er1 >conftest.err
2428 rm -f conftest.er1
2429 cat conftest.err >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); } &&
2432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 (eval $ac_try) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; } &&
2438 { ac_try='test -s conftest.$ac_objext'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 (eval $ac_try) 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; }; then
2444 ac_cv_prog_cc_stdc=$ac_arg
2445 break
2446 else
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2451 rm -f conftest.err conftest.$ac_objext
2452 done
2453 rm -f conftest.$ac_ext conftest.$ac_objext
2454 CC=$ac_save_CC
2458 case "x$ac_cv_prog_cc_stdc" in
2459 x|xno)
2460 echo "$as_me:$LINENO: result: none needed" >&5
2461 echo "${ECHO_T}none needed" >&6 ;;
2463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2464 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2465 CC="$CC $ac_cv_prog_cc_stdc" ;;
2466 esac
2468 # Some people use a C++ compiler to compile C. Since we use `exit',
2469 # in C++ we need to declare it. In case someone uses the same compiler
2470 # for both compiling C and C++ we need to have the C++ compiler decide
2471 # the declaration of exit, since it's the most demanding environment.
2472 cat >conftest.$ac_ext <<_ACEOF
2473 #ifndef __cplusplus
2474 choke me
2475 #endif
2476 _ACEOF
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479 (eval $ac_compile) 2>conftest.er1
2480 ac_status=$?
2481 grep -v '^ *+' conftest.er1 >conftest.err
2482 rm -f conftest.er1
2483 cat conftest.err >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } &&
2486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 (eval $ac_try) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; } &&
2492 { ac_try='test -s conftest.$ac_objext'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 (eval $ac_try) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; }; then
2498 for ac_declaration in \
2499 '' \
2500 'extern "C" void std::exit (int) throw (); using std::exit;' \
2501 'extern "C" void std::exit (int); using std::exit;' \
2502 'extern "C" void exit (int) throw ();' \
2503 'extern "C" void exit (int);' \
2504 'void exit (int);'
2506 cat >conftest.$ac_ext <<_ACEOF
2507 /* confdefs.h. */
2508 _ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h. */
2512 $ac_declaration
2513 #include <stdlib.h>
2515 main ()
2517 exit (42);
2519 return 0;
2521 _ACEOF
2522 rm -f conftest.$ac_objext
2523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524 (eval $ac_compile) 2>conftest.er1
2525 ac_status=$?
2526 grep -v '^ *+' conftest.er1 >conftest.err
2527 rm -f conftest.er1
2528 cat conftest.err >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } &&
2531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 (eval $ac_try) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; } &&
2537 { ac_try='test -s conftest.$ac_objext'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 (eval $ac_try) 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; }; then
2544 else
2545 echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2548 continue
2550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2551 cat >conftest.$ac_ext <<_ACEOF
2552 /* confdefs.h. */
2553 _ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h. */
2557 $ac_declaration
2559 main ()
2561 exit (42);
2563 return 0;
2565 _ACEOF
2566 rm -f conftest.$ac_objext
2567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568 (eval $ac_compile) 2>conftest.er1
2569 ac_status=$?
2570 grep -v '^ *+' conftest.er1 >conftest.err
2571 rm -f conftest.er1
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } &&
2575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2587 break
2588 else
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2594 done
2595 rm -f conftest*
2596 if test -n "$ac_declaration"; then
2597 echo '#ifdef __cplusplus' >>confdefs.h
2598 echo $ac_declaration >>confdefs.h
2599 echo '#endif' >>confdefs.h
2602 else
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2608 ac_ext=c
2609 ac_cpp='$CPP $CPPFLAGS'
2610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2616 # extra LD Flags which are required for targets
2617 case "${host}" in
2618 *-darwin*)
2619 # Darwin needs -single_module when linking libobjc
2620 extra_ldflags_libobjc=-Wl,-single_module
2622 esac
2627 if test -n "$ac_tool_prefix"; then
2628 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2629 set dummy ${ac_tool_prefix}as; ac_word=$2
2630 echo "$as_me:$LINENO: checking for $ac_word" >&5
2631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2632 if test "${ac_cv_prog_AS+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635 if test -n "$AS"; then
2636 ac_cv_prog_AS="$AS" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2645 ac_cv_prog_AS="${ac_tool_prefix}as"
2646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2649 done
2650 done
2654 AS=$ac_cv_prog_AS
2655 if test -n "$AS"; then
2656 echo "$as_me:$LINENO: result: $AS" >&5
2657 echo "${ECHO_T}$AS" >&6
2658 else
2659 echo "$as_me:$LINENO: result: no" >&5
2660 echo "${ECHO_T}no" >&6
2664 if test -z "$ac_cv_prog_AS"; then
2665 ac_ct_AS=$AS
2666 # Extract the first word of "as", so it can be a program name with args.
2667 set dummy as; ac_word=$2
2668 echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2670 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673 if test -n "$ac_ct_AS"; then
2674 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2675 else
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683 ac_cv_prog_ac_ct_AS="as"
2684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 break 2
2687 done
2688 done
2692 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2693 if test -n "$ac_ct_AS"; then
2694 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2695 echo "${ECHO_T}$ac_ct_AS" >&6
2696 else
2697 echo "$as_me:$LINENO: result: no" >&5
2698 echo "${ECHO_T}no" >&6
2701 AS=$ac_ct_AS
2702 else
2703 AS="$ac_cv_prog_AS"
2706 if test -n "$ac_tool_prefix"; then
2707 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2708 set dummy ${ac_tool_prefix}ar; ac_word=$2
2709 echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2711 if test "${ac_cv_prog_AR+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714 if test -n "$AR"; then
2715 ac_cv_prog_AR="$AR" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2724 ac_cv_prog_AR="${ac_tool_prefix}ar"
2725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2728 done
2729 done
2733 AR=$ac_cv_prog_AR
2734 if test -n "$AR"; then
2735 echo "$as_me:$LINENO: result: $AR" >&5
2736 echo "${ECHO_T}$AR" >&6
2737 else
2738 echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2743 if test -z "$ac_cv_prog_AR"; then
2744 ac_ct_AR=$AR
2745 # Extract the first word of "ar", so it can be a program name with args.
2746 set dummy ar; ac_word=$2
2747 echo "$as_me:$LINENO: checking for $ac_word" >&5
2748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2749 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752 if test -n "$ac_ct_AR"; then
2753 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2754 else
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in $PATH
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2762 ac_cv_prog_ac_ct_AR="ar"
2763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 break 2
2766 done
2767 done
2771 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2772 if test -n "$ac_ct_AR"; then
2773 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2774 echo "${ECHO_T}$ac_ct_AR" >&6
2775 else
2776 echo "$as_me:$LINENO: result: no" >&5
2777 echo "${ECHO_T}no" >&6
2780 AR=$ac_ct_AR
2781 else
2782 AR="$ac_cv_prog_AR"
2785 if test -n "$ac_tool_prefix"; then
2786 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_RANLIB+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 if test -n "$RANLIB"; then
2794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2807 done
2808 done
2812 RANLIB=$ac_cv_prog_RANLIB
2813 if test -n "$RANLIB"; then
2814 echo "$as_me:$LINENO: result: $RANLIB" >&5
2815 echo "${ECHO_T}$RANLIB" >&6
2816 else
2817 echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2822 if test -z "$ac_cv_prog_RANLIB"; then
2823 ac_ct_RANLIB=$RANLIB
2824 # Extract the first word of "ranlib", so it can be a program name with args.
2825 set dummy ranlib; ac_word=$2
2826 echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2828 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831 if test -n "$ac_ct_RANLIB"; then
2832 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_ac_ct_RANLIB="ranlib"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2845 done
2846 done
2848 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2851 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2852 if test -n "$ac_ct_RANLIB"; then
2853 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2854 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2855 else
2856 echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6
2860 RANLIB=$ac_ct_RANLIB
2861 else
2862 RANLIB="$ac_cv_prog_RANLIB"
2865 # Find a good install program. We prefer a C program (faster),
2866 # so one script is as good as another. But avoid the broken or
2867 # incompatible versions:
2868 # SysV /etc/install, /usr/sbin/install
2869 # SunOS /usr/etc/install
2870 # IRIX /sbin/install
2871 # AIX /bin/install
2872 # AmigaOS /C/install, which installs bootblocks on floppy discs
2873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2876 # OS/2's system install, which has a completely different semantic
2877 # ./install, which can be erroneously created by make from ./install.sh.
2878 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2879 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2880 if test -z "$INSTALL"; then
2881 if test "${ac_cv_path_install+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 # Account for people who put trailing slashes in PATH elements.
2890 case $as_dir/ in
2891 ./ | .// | /cC/* | \
2892 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2893 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2894 /usr/ucb/* ) ;;
2896 # OSF1 and SCO ODT 3.0 have their own names for install.
2897 # Don't use installbsd from OSF since it installs stuff as root
2898 # by default.
2899 for ac_prog in ginstall scoinst install; do
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2902 if test $ac_prog = install &&
2903 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2904 # AIX install. It has an incompatible calling convention.
2906 elif test $ac_prog = install &&
2907 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2908 # program-specific install script used by HP pwplus--don't use.
2910 else
2911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2912 break 3
2915 done
2916 done
2918 esac
2919 done
2923 if test "${ac_cv_path_install+set}" = set; then
2924 INSTALL=$ac_cv_path_install
2925 else
2926 # As a last resort, use the slow shell script. We don't cache a
2927 # path for INSTALL within a source directory, because that will
2928 # break other packages using the cache if that directory is
2929 # removed, or if the path is relative.
2930 INSTALL=$ac_install_sh
2933 echo "$as_me:$LINENO: result: $INSTALL" >&5
2934 echo "${ECHO_T}$INSTALL" >&6
2936 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2937 # It thinks the first close brace ends the variable substitution.
2938 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2940 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2942 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2945 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2946 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2947 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2948 if test "${enable_maintainer_mode+set}" = set; then
2949 enableval="$enable_maintainer_mode"
2950 USE_MAINTAINER_MODE=$enableval
2951 else
2952 USE_MAINTAINER_MODE=no
2954 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2955 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2958 if test $USE_MAINTAINER_MODE = yes; then
2959 MAINTAINER_MODE_TRUE=
2960 MAINTAINER_MODE_FALSE='#'
2961 else
2962 MAINTAINER_MODE_TRUE='#'
2963 MAINTAINER_MODE_FALSE=
2966 MAINT=$MAINTAINER_MODE_TRUE
2970 # Enable Win32 DLL on MS Windows - FIXME
2973 # Check whether --enable-shared or --disable-shared was given.
2974 if test "${enable_shared+set}" = set; then
2975 enableval="$enable_shared"
2976 p=${PACKAGE-default}
2977 case $enableval in
2978 yes) enable_shared=yes ;;
2979 no) enable_shared=no ;;
2981 enable_shared=no
2982 # Look at the argument we got. We use all the common list separators.
2983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2984 for pkg in $enableval; do
2985 if test "X$pkg" = "X$p"; then
2986 enable_shared=yes
2988 done
2989 IFS="$ac_save_ifs"
2991 esac
2992 else
2993 enable_shared=yes
2995 # Check whether --enable-static or --disable-static was given.
2996 if test "${enable_static+set}" = set; then
2997 enableval="$enable_static"
2998 p=${PACKAGE-default}
2999 case $enableval in
3000 yes) enable_static=yes ;;
3001 no) enable_static=no ;;
3003 enable_static=no
3004 # Look at the argument we got. We use all the common list separators.
3005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3006 for pkg in $enableval; do
3007 if test "X$pkg" = "X$p"; then
3008 enable_static=yes
3010 done
3011 IFS="$ac_save_ifs"
3013 esac
3014 else
3015 enable_static=yes
3017 # Check whether --enable-fast-install or --disable-fast-install was given.
3018 if test "${enable_fast_install+set}" = set; then
3019 enableval="$enable_fast_install"
3020 p=${PACKAGE-default}
3021 case $enableval in
3022 yes) enable_fast_install=yes ;;
3023 no) enable_fast_install=no ;;
3025 enable_fast_install=no
3026 # Look at the argument we got. We use all the common list separators.
3027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3028 for pkg in $enableval; do
3029 if test "X$pkg" = "X$p"; then
3030 enable_fast_install=yes
3032 done
3033 IFS="$ac_save_ifs"
3035 esac
3036 else
3037 enable_fast_install=yes
3040 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3041 if test "${with_gnu_ld+set}" = set; then
3042 withval="$with_gnu_ld"
3043 test "$withval" = no || with_gnu_ld=yes
3044 else
3045 with_gnu_ld=no
3047 ac_prog=ld
3048 if test "$GCC" = yes; then
3049 # Check if gcc -print-prog-name=ld gives a path.
3050 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3051 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3052 case $host in
3053 *-*-mingw*)
3054 # gcc leaves a trailing carriage return which upsets mingw
3055 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3057 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3058 esac
3059 case $ac_prog in
3060 # Accept absolute paths.
3061 [\\/]* | [A-Za-z]:[\\/]*)
3062 re_direlt='/[^/][^/]*/\.\./'
3063 # Canonicalize the path of ld
3064 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3065 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3066 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3067 done
3068 test -z "$LD" && LD="$ac_prog"
3071 # If it fails, then pretend we aren't using GCC.
3072 ac_prog=ld
3075 # If it is relative, then search for the first ld in PATH.
3076 with_gnu_ld=unknown
3078 esac
3079 elif test "$with_gnu_ld" = yes; then
3080 echo "$as_me:$LINENO: checking for GNU ld" >&5
3081 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3082 else
3083 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3084 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3086 if test "${lt_cv_path_LD+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089 if test -z "$LD"; then
3090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3091 for ac_dir in $PATH; do
3092 test -z "$ac_dir" && ac_dir=.
3093 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3094 lt_cv_path_LD="$ac_dir/$ac_prog"
3095 # Check to see if the program is GNU ld. I'd rather use --version,
3096 # but apparently some GNU ld's only accept -v.
3097 # Break only if it was the GNU/non-GNU ld that we prefer.
3098 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3099 test "$with_gnu_ld" != no && break
3100 else
3101 test "$with_gnu_ld" != yes && break
3104 done
3105 IFS="$ac_save_ifs"
3106 else
3107 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3111 LD="$lt_cv_path_LD"
3112 if test -n "$LD"; then
3113 echo "$as_me:$LINENO: result: $LD" >&5
3114 echo "${ECHO_T}$LD" >&6
3115 else
3116 echo "$as_me:$LINENO: result: no" >&5
3117 echo "${ECHO_T}no" >&6
3119 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3120 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3121 { (exit 1); exit 1; }; }
3122 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3123 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3124 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3128 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3129 lt_cv_prog_gnu_ld=yes
3130 else
3131 lt_cv_prog_gnu_ld=no
3134 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3135 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3136 with_gnu_ld=$lt_cv_prog_gnu_ld
3139 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3140 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3141 if test "${lt_cv_ld_reload_flag+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 else
3144 lt_cv_ld_reload_flag='-r'
3146 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3147 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3148 reload_flag=$lt_cv_ld_reload_flag
3149 test -n "$reload_flag" && reload_flag=" $reload_flag"
3151 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3152 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3153 if test "${lt_cv_path_NM+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156 if test -n "$NM"; then
3157 # Let the user override the test.
3158 lt_cv_path_NM="$NM"
3159 else
3160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3161 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3162 test -z "$ac_dir" && ac_dir=.
3163 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3164 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3165 # Check to see if the nm accepts a BSD-compat flag.
3166 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3167 # nm: unknown option "B" ignored
3168 # Tru64's nm complains that /dev/null is an invalid object file
3169 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3170 lt_cv_path_NM="$tmp_nm -B"
3171 break
3172 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3173 lt_cv_path_NM="$tmp_nm -p"
3174 break
3175 else
3176 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3177 continue # so that we can try to find one that supports BSD flags
3180 done
3181 IFS="$ac_save_ifs"
3182 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3186 NM="$lt_cv_path_NM"
3187 echo "$as_me:$LINENO: result: $NM" >&5
3188 echo "${ECHO_T}$NM" >&6
3190 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3191 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3192 LN_S=$as_ln_s
3193 if test "$LN_S" = "ln -s"; then
3194 echo "$as_me:$LINENO: result: yes" >&5
3195 echo "${ECHO_T}yes" >&6
3196 else
3197 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3198 echo "${ECHO_T}no, using $LN_S" >&6
3201 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3202 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3203 if test "${lt_cv_deplibs_check_method+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 lt_cv_file_magic_cmd='$MAGIC_CMD'
3207 lt_cv_file_magic_test_file=
3208 lt_cv_deplibs_check_method='unknown'
3209 # Need to set the preceding variable on all platforms that support
3210 # interlibrary dependencies.
3211 # 'none' -- dependencies not supported.
3212 # `unknown' -- same as none, but documents that we really don't know.
3213 # 'pass_all' -- all dependencies passed with no checks.
3214 # 'test_compile' -- check by making test program.
3215 # 'file_magic [regex]' -- check by looking for files in library path
3216 # which responds to the $file_magic_cmd with a given egrep regex.
3217 # If you have `file' or equivalent on your system and you're not sure
3218 # whether `pass_all' will *always* work, you probably want this one.
3220 case $host_os in
3221 aix*)
3222 lt_cv_deplibs_check_method=pass_all
3225 beos*)
3226 lt_cv_deplibs_check_method=pass_all
3229 bsdi4*)
3230 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3231 lt_cv_file_magic_cmd='/usr/bin/file -L'
3232 lt_cv_file_magic_test_file=/shlib/libc.so
3235 cygwin* | mingw* |pw32*)
3236 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3237 lt_cv_file_magic_cmd='$OBJDUMP -f'
3240 darwin* | rhapsody*)
3241 # this will be overwritten by pass_all, but leave it in just in case
3242 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3243 lt_cv_file_magic_cmd='/usr/bin/file -L'
3244 case "$host_os" in
3245 rhapsody* | darwin1.012)
3246 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3248 *) # Darwin 1.3 on
3249 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3251 esac
3252 lt_cv_deplibs_check_method=pass_all
3255 freebsd* | kfreebsd*-gnu)
3256 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3257 case $host_cpu in
3258 i*86 )
3259 # Not sure whether the presence of OpenBSD here was a mistake.
3260 # Let's accept both of them until this is cleared up.
3261 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3262 lt_cv_file_magic_cmd=/usr/bin/file
3263 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3265 esac
3266 else
3267 lt_cv_deplibs_check_method=pass_all
3271 gnu*)
3272 lt_cv_deplibs_check_method=pass_all
3275 hpux10.20*|hpux11*)
3276 case $host_cpu in
3277 hppa*)
3278 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3279 lt_cv_file_magic_cmd=/usr/bin/file
3280 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3282 ia64*)
3283 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3284 lt_cv_file_magic_cmd=/usr/bin/file
3285 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3287 esac
3290 irix5* | irix6*)
3291 case $host_os in
3292 irix5*)
3293 # this will be overridden with pass_all, but let us keep it just in case
3294 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3297 case $LD in
3298 *-32|*"-32 ") libmagic=32-bit;;
3299 *-n32|*"-n32 ") libmagic=N32;;
3300 *-64|*"-64 ") libmagic=64-bit;;
3301 *) libmagic=never-match;;
3302 esac
3303 # this will be overridden with pass_all, but let us keep it just in case
3304 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3306 esac
3307 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3308 lt_cv_deplibs_check_method=pass_all
3311 # This must be Linux ELF.
3312 linux-gnu*)
3313 lt_cv_deplibs_check_method=pass_all
3316 netbsd* | knetbsd*-gnu)
3317 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3318 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3319 else
3320 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3324 newsos6)
3325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3326 lt_cv_file_magic_cmd=/usr/bin/file
3327 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3330 osf3* | osf4* | osf5*)
3331 # this will be overridden with pass_all, but let us keep it just in case
3332 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3333 lt_cv_file_magic_test_file=/shlib/libc.so
3334 lt_cv_deplibs_check_method=pass_all
3337 sco3.2v5*)
3338 lt_cv_deplibs_check_method=pass_all
3341 solaris*)
3342 lt_cv_deplibs_check_method=pass_all
3343 lt_cv_file_magic_test_file=/lib/libc.so
3346 sysv5uw[78]* | sysv4*uw2*)
3347 lt_cv_deplibs_check_method=pass_all
3350 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3351 case $host_vendor in
3352 ncr)
3353 lt_cv_deplibs_check_method=pass_all
3355 motorola)
3356 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3357 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3359 esac
3361 esac
3364 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3365 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3366 file_magic_cmd=$lt_cv_file_magic_cmd
3367 deplibs_check_method=$lt_cv_deplibs_check_method
3373 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3375 # find the maximum length of command line arguments
3376 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3377 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3378 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3382 teststring="ABCD"
3384 case $build_os in
3385 msdosdjgpp*)
3386 # On DJGPP, this test can blow up pretty badly due to problems in libc
3387 # (any single argument exceeding 2000 bytes causes a buffer overrun
3388 # during glob expansion). Even if it were fixed, the result of this
3389 # check would be larger than it should be.
3390 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3393 cygwin* | mingw*)
3394 # On Win9x/ME, this test blows up -- it succeeds, but takes
3395 # about 5 minutes as the teststring grows exponentially.
3396 # Worse, since 9x/ME are not pre-emptively multitasking,
3397 # you end up with a "frozen" computer, even though with patience
3398 # the test eventually succeeds (with a max line length of 256k).
3399 # Instead, let's just punt: use the minimum linelength reported by
3400 # all of the supported platforms: 8192 (on NT/2K/XP).
3401 lt_cv_sys_max_cmd_len=8192;
3404 amigaos*)
3405 # On AmigaOS with pdksh, this test takes hours, literally.
3406 # So we just punt and use a minimum line length of 8192.
3407 lt_cv_sys_max_cmd_len=8192;
3410 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3411 # This has been around since 386BSD, at least. Likely further.
3412 if test -x /sbin/sysctl; then
3413 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3414 elif test -x /usr/sbin/sysctl; then
3415 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3416 else
3417 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3419 # And add a safety zone
3420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3423 esac
3427 if test -n "$lt_cv_sys_max_cmd_len" ; then
3428 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3429 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3430 else
3431 echo "$as_me:$LINENO: result: none" >&5
3432 echo "${ECHO_T}none" >&6
3436 # Only perform the check for file, if the check method requires it
3437 case $deplibs_check_method in
3438 file_magic*)
3439 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3440 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3441 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3442 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445 case $MAGIC_CMD in
3447 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3449 ?:/*)
3450 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3453 ac_save_MAGIC_CMD="$MAGIC_CMD"
3454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3455 ac_dummy="/usr/bin:$PATH"
3456 for ac_dir in $ac_dummy; do
3457 test -z "$ac_dir" && ac_dir=.
3458 if test -f $ac_dir/${ac_tool_prefix}file; then
3459 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3460 if test -n "$file_magic_test_file"; then
3461 case $deplibs_check_method in
3462 "file_magic "*)
3463 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3464 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3465 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3466 egrep "$file_magic_regex" > /dev/null; then
3468 else
3469 cat <<EOF 1>&2
3471 *** Warning: the command libtool uses to detect shared libraries,
3472 *** $file_magic_cmd, produces output that libtool cannot recognize.
3473 *** The result is that libtool may fail to recognize shared libraries
3474 *** as such. This will affect the creation of libtool libraries that
3475 *** depend on shared libraries, but programs linked with such libtool
3476 *** libraries will work regardless of this problem. Nevertheless, you
3477 *** may want to report the problem to your system manager and/or to
3478 *** bug-libtool@gnu.org
3481 fi ;;
3482 esac
3484 break
3486 done
3487 IFS="$ac_save_ifs"
3488 MAGIC_CMD="$ac_save_MAGIC_CMD"
3490 esac
3493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3494 if test -n "$MAGIC_CMD"; then
3495 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3496 echo "${ECHO_T}$MAGIC_CMD" >&6
3497 else
3498 echo "$as_me:$LINENO: result: no" >&5
3499 echo "${ECHO_T}no" >&6
3502 if test -z "$lt_cv_path_MAGIC_CMD"; then
3503 if test -n "$ac_tool_prefix"; then
3504 echo "$as_me:$LINENO: checking for file" >&5
3505 echo $ECHO_N "checking for file... $ECHO_C" >&6
3506 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509 case $MAGIC_CMD in
3511 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3513 ?:/*)
3514 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3517 ac_save_MAGIC_CMD="$MAGIC_CMD"
3518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3519 ac_dummy="/usr/bin:$PATH"
3520 for ac_dir in $ac_dummy; do
3521 test -z "$ac_dir" && ac_dir=.
3522 if test -f $ac_dir/file; then
3523 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3524 if test -n "$file_magic_test_file"; then
3525 case $deplibs_check_method in
3526 "file_magic "*)
3527 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3528 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3529 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3530 egrep "$file_magic_regex" > /dev/null; then
3532 else
3533 cat <<EOF 1>&2
3535 *** Warning: the command libtool uses to detect shared libraries,
3536 *** $file_magic_cmd, produces output that libtool cannot recognize.
3537 *** The result is that libtool may fail to recognize shared libraries
3538 *** as such. This will affect the creation of libtool libraries that
3539 *** depend on shared libraries, but programs linked with such libtool
3540 *** libraries will work regardless of this problem. Nevertheless, you
3541 *** may want to report the problem to your system manager and/or to
3542 *** bug-libtool@gnu.org
3545 fi ;;
3546 esac
3548 break
3550 done
3551 IFS="$ac_save_ifs"
3552 MAGIC_CMD="$ac_save_MAGIC_CMD"
3554 esac
3557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3558 if test -n "$MAGIC_CMD"; then
3559 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3560 echo "${ECHO_T}$MAGIC_CMD" >&6
3561 else
3562 echo "$as_me:$LINENO: result: no" >&5
3563 echo "${ECHO_T}no" >&6
3566 else
3567 MAGIC_CMD=:
3573 esac
3575 if test -n "$ac_tool_prefix"; then
3576 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3577 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3578 echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3580 if test "${ac_cv_prog_RANLIB+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583 if test -n "$RANLIB"; then
3584 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3589 IFS=$as_save_IFS
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 break 2
3597 done
3598 done
3602 RANLIB=$ac_cv_prog_RANLIB
3603 if test -n "$RANLIB"; then
3604 echo "$as_me:$LINENO: result: $RANLIB" >&5
3605 echo "${ECHO_T}$RANLIB" >&6
3606 else
3607 echo "$as_me:$LINENO: result: no" >&5
3608 echo "${ECHO_T}no" >&6
3612 if test -z "$ac_cv_prog_RANLIB"; then
3613 ac_ct_RANLIB=$RANLIB
3614 # Extract the first word of "ranlib", so it can be a program name with args.
3615 set dummy ranlib; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621 if test -n "$ac_ct_RANLIB"; then
3622 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3623 else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3631 ac_cv_prog_ac_ct_RANLIB="ranlib"
3632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3633 break 2
3635 done
3636 done
3638 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3641 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3642 if test -n "$ac_ct_RANLIB"; then
3643 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3644 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3645 else
3646 echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6
3650 RANLIB=$ac_ct_RANLIB
3651 else
3652 RANLIB="$ac_cv_prog_RANLIB"
3655 if test -n "$ac_tool_prefix"; then
3656 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3657 set dummy ${ac_tool_prefix}strip; ac_word=$2
3658 echo "$as_me:$LINENO: checking for $ac_word" >&5
3659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3660 if test "${ac_cv_prog_STRIP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663 if test -n "$STRIP"; then
3664 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3677 done
3678 done
3682 STRIP=$ac_cv_prog_STRIP
3683 if test -n "$STRIP"; then
3684 echo "$as_me:$LINENO: result: $STRIP" >&5
3685 echo "${ECHO_T}$STRIP" >&6
3686 else
3687 echo "$as_me:$LINENO: result: no" >&5
3688 echo "${ECHO_T}no" >&6
3692 if test -z "$ac_cv_prog_STRIP"; then
3693 ac_ct_STRIP=$STRIP
3694 # Extract the first word of "strip", so it can be a program name with args.
3695 set dummy strip; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 if test -n "$ac_ct_STRIP"; then
3702 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711 ac_cv_prog_ac_ct_STRIP="strip"
3712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3715 done
3716 done
3718 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3721 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3722 if test -n "$ac_ct_STRIP"; then
3723 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3724 echo "${ECHO_T}$ac_ct_STRIP" >&6
3725 else
3726 echo "$as_me:$LINENO: result: no" >&5
3727 echo "${ECHO_T}no" >&6
3730 STRIP=$ac_ct_STRIP
3731 else
3732 STRIP="$ac_cv_prog_STRIP"
3736 # Check for any special flags to pass to ltconfig.
3737 libtool_flags="--cache-file=$cache_file"
3738 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3739 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3740 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3741 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3742 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3745 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3746 if test "${enable_libtool_lock+set}" = set; then
3747 enableval="$enable_libtool_lock"
3750 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3751 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3754 # Check whether --with-pic or --without-pic was given.
3755 if test "${with_pic+set}" = set; then
3756 withval="$with_pic"
3757 pic_mode="$withval"
3758 else
3759 pic_mode=default
3761 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3762 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3764 # Some flags need to be propagated to the compiler or linker for good
3765 # libtool support.
3766 case $host in
3767 *-*-irix6*)
3768 # Find out which ABI we are using.
3769 echo '#line 3769 "configure"' > conftest.$ac_ext
3770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3771 (eval $ac_compile) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; then
3775 if test "$lt_cv_prog_gnu_ld" = yes; then
3776 case `/usr/bin/file conftest.$ac_objext` in
3777 *32-bit*)
3778 LD="${LD-ld} -melf32bsmip"
3780 *N32*)
3781 LD="${LD-ld} -melf32bmipn32"
3783 *64-bit*)
3784 LD="${LD-ld} -melf64bmip"
3786 esac
3787 else
3788 case `/usr/bin/file conftest.$ac_objext` in
3789 *32-bit*)
3790 LD="${LD-ld} -32"
3792 *N32*)
3793 LD="${LD-ld} -n32"
3795 *64-bit*)
3796 LD="${LD-ld} -64"
3798 esac
3801 rm -rf conftest*
3804 ia64-*-hpux*)
3805 # Find out which ABI we are using.
3806 echo 'int i;' > conftest.$ac_ext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; then
3812 case "`/usr/bin/file conftest.o`" in
3813 *ELF-32*)
3814 HPUX_IA64_MODE="32"
3816 *ELF-64*)
3817 HPUX_IA64_MODE="64"
3819 esac
3821 rm -rf conftest*
3824 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3825 # Find out which ABI we are using.
3826 echo 'int i;' > conftest.$ac_ext
3827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3828 (eval $ac_compile) 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; then
3832 case "`/usr/bin/file conftest.o`" in
3833 *32-bit*)
3834 case $host in
3835 x86_64-*linux*)
3836 LD="${LD-ld} -m elf_i386"
3838 ppc64-*linux*|powerpc64-*linux*)
3839 LD="${LD-ld} -m elf32ppclinux"
3841 s390x-*linux*)
3842 LD="${LD-ld} -m elf_s390"
3844 sparc64-*linux*)
3845 LD="${LD-ld} -m elf32_sparc"
3847 esac
3849 *64-bit*)
3850 case $host in
3851 x86_64-*linux*)
3852 LD="${LD-ld} -m elf_x86_64"
3854 ppc*-*linux*|powerpc*-*linux*)
3855 LD="${LD-ld} -m elf64ppc"
3857 s390*-*linux*)
3858 LD="${LD-ld} -m elf64_s390"
3860 sparc*-*linux*)
3861 LD="${LD-ld} -m elf64_sparc"
3863 esac
3865 esac
3867 rm -rf conftest*
3870 *-*-sco3.2v5*)
3871 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3872 SAVE_CFLAGS="$CFLAGS"
3873 CFLAGS="$CFLAGS -belf"
3874 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3875 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3876 if test "${lt_cv_cc_needs_belf+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3881 ac_ext=c
3882 ac_cpp='$CPP $CPPFLAGS'
3883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887 if test x$gcc_no_link = xyes; then
3888 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3889 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3890 { (exit 1); exit 1; }; }
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h. */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3900 main ()
3904 return 0;
3906 _ACEOF
3907 rm -f conftest.$ac_objext conftest$ac_exeext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3909 (eval $ac_link) 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } &&
3916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; } &&
3922 { ac_try='test -s conftest$ac_exeext'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
3928 lt_cv_cc_needs_belf=yes
3929 else
3930 echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3933 lt_cv_cc_needs_belf=no
3935 rm -f conftest.err conftest.$ac_objext \
3936 conftest$ac_exeext conftest.$ac_ext
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3945 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3946 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3947 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3948 CFLAGS="$SAVE_CFLAGS"
3953 esac
3956 # Save cache, so that ltconfig can load it
3957 cat >confcache <<\_ACEOF
3958 # This file is a shell script that caches the results of configure
3959 # tests run on this system so they can be shared between configure
3960 # scripts and configure runs, see configure's option --config-cache.
3961 # It is not useful on other systems. If it contains results you don't
3962 # want to keep, you may remove or edit it.
3964 # config.status only pays attention to the cache file if you give it
3965 # the --recheck option to rerun configure.
3967 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3968 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3969 # following values.
3971 _ACEOF
3973 # The following way of writing the cache mishandles newlines in values,
3974 # but we know of no workaround that is simple, portable, and efficient.
3975 # So, don't put newlines in cache variables' values.
3976 # Ultrix sh set writes to stderr and can't be redirected directly,
3977 # and sets the high bit in the cache file unless we assign to the vars.
3979 (set) 2>&1 |
3980 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3981 *ac_space=\ *)
3982 # `set' does not quote correctly, so add quotes (double-quote
3983 # substitution turns \\\\ into \\, and sed turns \\ into \).
3984 sed -n \
3985 "s/'/'\\\\''/g;
3986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3989 # `set' quotes correctly as required by POSIX, so do not add quotes.
3990 sed -n \
3991 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3993 esac;
3995 sed '
3996 t clear
3997 : clear
3998 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3999 t end
4000 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4001 : end' >>confcache
4002 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4003 if test -w $cache_file; then
4004 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4005 cat confcache >$cache_file
4006 else
4007 echo "not updating unwritable cache $cache_file"
4010 rm -f confcache
4012 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4013 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4014 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4015 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4016 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4017 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4018 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4019 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4020 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4021 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4022 echo "$as_me: error: libtool configure failed" >&2;}
4023 { (exit 1); exit 1; }; }
4025 # Reload cache, that may have been modified by ltconfig
4026 if test -r "$cache_file"; then
4027 # Some versions of bash will fail to source /dev/null (special
4028 # files actually), so we avoid doing that.
4029 if test -f "$cache_file"; then
4030 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4031 echo "$as_me: loading cache $cache_file" >&6;}
4032 case $cache_file in
4033 [\\/]* | ?:[\\/]* ) . $cache_file;;
4034 *) . ./$cache_file;;
4035 esac
4037 else
4038 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4039 echo "$as_me: creating cache $cache_file" >&6;}
4040 >$cache_file
4044 # This can be used to rebuild libtool when needed
4045 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4047 # Always use our own libtool.
4048 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4050 # Redirect the config.log output again, so that the ltconfig log is not
4051 # clobbered by the next message.
4052 exec 5>>./config.log
4060 if test "x$CC" != xcc; then
4061 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4062 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4063 else
4064 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4065 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4067 set dummy $CC; ac_cc=`echo $2 |
4068 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4069 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h. */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4080 main ()
4084 return 0;
4086 _ACEOF
4087 # Make sure it works both with $CC and with simple cc.
4088 # We do the test twice because some compilers refuse to overwrite an
4089 # existing .o file with -o, though they will create one.
4090 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4091 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 (eval $ac_try) 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } &&
4096 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 (eval $ac_try) 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); };
4101 then
4102 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4103 if test "x$CC" != xcc; then
4104 # Test first that cc exists at all.
4105 if { ac_try='cc -c conftest.$ac_ext >&5'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 (eval $ac_try) 2>&5
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4111 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4112 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 (eval $ac_try) 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 (eval $ac_try) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); };
4122 then
4123 # cc works too.
4125 else
4126 # cc exists but doesn't like -o.
4127 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4131 else
4132 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4134 rm -f conftest*
4137 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4138 echo "$as_me:$LINENO: result: yes" >&5
4139 echo "${ECHO_T}yes" >&6
4140 else
4141 echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4144 cat >>confdefs.h <<\_ACEOF
4145 #define NO_MINUS_C_MINUS_O 1
4146 _ACEOF
4150 # expand $ac_aux_dir to an absolute path
4151 am_aux_dir=`cd $ac_aux_dir && pwd`
4153 # FIXME: we rely on the cache variable name because
4154 # there is no other way.
4155 set dummy $CC
4156 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4157 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4158 # Losing compiler, so override with the script.
4159 # FIXME: It is wrong to rewrite CC.
4160 # But if we don't then we get into trouble of one sort or another.
4161 # A longer-term fix would be to have automake use am__CC in this case,
4162 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4163 CC="$am_aux_dir/compile $CC"
4167 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4168 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4169 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4170 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 cat >conftest.make <<\_ACEOF
4174 all:
4175 @echo 'ac_maketemp="$(MAKE)"'
4176 _ACEOF
4177 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4178 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4179 if test -n "$ac_maketemp"; then
4180 eval ac_cv_prog_make_${ac_make}_set=yes
4181 else
4182 eval ac_cv_prog_make_${ac_make}_set=no
4184 rm -f conftest.make
4186 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4187 echo "$as_me:$LINENO: result: yes" >&5
4188 echo "${ECHO_T}yes" >&6
4189 SET_MAKE=
4190 else
4191 echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4193 SET_MAKE="MAKE=${MAKE-make}"
4197 # -------
4198 # Headers
4199 # -------
4201 # Sanity check for the cross-compilation case:
4202 ac_ext=c
4203 ac_cpp='$CPP $CPPFLAGS'
4204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4209 # On Suns, sometimes $CPP names a directory.
4210 if test -n "$CPP" && test -d "$CPP"; then
4211 CPP=
4213 if test -z "$CPP"; then
4214 if test "${ac_cv_prog_CPP+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217 # Double quotes because CPP needs to be expanded
4218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4220 ac_preproc_ok=false
4221 for ac_c_preproc_warn_flag in '' yes
4223 # Use a header file that comes with gcc, so configuring glibc
4224 # with a fresh cross-compiler works.
4225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4226 # <limits.h> exists even on freestanding compilers.
4227 # On the NeXT, cc -E runs the code through the compiler's parser,
4228 # not just through cpp. "Syntax error" is here to catch this case.
4229 cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h. */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 #ifdef __STDC__
4236 # include <limits.h>
4237 #else
4238 # include <assert.h>
4239 #endif
4240 Syntax error
4241 _ACEOF
4242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } >/dev/null; then
4250 if test -s conftest.err; then
4251 ac_cpp_err=$ac_c_preproc_warn_flag
4252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4253 else
4254 ac_cpp_err=
4256 else
4257 ac_cpp_err=yes
4259 if test -z "$ac_cpp_err"; then
4261 else
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4265 # Broken: fails on valid input.
4266 continue
4268 rm -f conftest.err conftest.$ac_ext
4270 # OK, works on sane cases. Now check whether non-existent headers
4271 # can be detected and how.
4272 cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h. */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 #include <ac_nonexistent.h>
4279 _ACEOF
4280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4281 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
4288 if test -s conftest.err; then
4289 ac_cpp_err=$ac_c_preproc_warn_flag
4290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4291 else
4292 ac_cpp_err=
4294 else
4295 ac_cpp_err=yes
4297 if test -z "$ac_cpp_err"; then
4298 # Broken: success on invalid input.
4299 continue
4300 else
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4304 # Passes both tests.
4305 ac_preproc_ok=:
4306 break
4308 rm -f conftest.err conftest.$ac_ext
4310 done
4311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4312 rm -f conftest.err conftest.$ac_ext
4313 if $ac_preproc_ok; then
4314 break
4317 done
4318 ac_cv_prog_CPP=$CPP
4321 CPP=$ac_cv_prog_CPP
4322 else
4323 ac_cv_prog_CPP=$CPP
4325 echo "$as_me:$LINENO: result: $CPP" >&5
4326 echo "${ECHO_T}$CPP" >&6
4327 ac_preproc_ok=false
4328 for ac_c_preproc_warn_flag in '' yes
4330 # Use a header file that comes with gcc, so configuring glibc
4331 # with a fresh cross-compiler works.
4332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4333 # <limits.h> exists even on freestanding compilers.
4334 # On the NeXT, cc -E runs the code through the compiler's parser,
4335 # not just through cpp. "Syntax error" is here to catch this case.
4336 cat >conftest.$ac_ext <<_ACEOF
4337 /* confdefs.h. */
4338 _ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h. */
4342 #ifdef __STDC__
4343 # include <limits.h>
4344 #else
4345 # include <assert.h>
4346 #endif
4347 Syntax error
4348 _ACEOF
4349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4351 ac_status=$?
4352 grep -v '^ *+' conftest.er1 >conftest.err
4353 rm -f conftest.er1
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } >/dev/null; then
4357 if test -s conftest.err; then
4358 ac_cpp_err=$ac_c_preproc_warn_flag
4359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4360 else
4361 ac_cpp_err=
4363 else
4364 ac_cpp_err=yes
4366 if test -z "$ac_cpp_err"; then
4368 else
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4372 # Broken: fails on valid input.
4373 continue
4375 rm -f conftest.err conftest.$ac_ext
4377 # OK, works on sane cases. Now check whether non-existent headers
4378 # can be detected and how.
4379 cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h. */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4385 #include <ac_nonexistent.h>
4386 _ACEOF
4387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4389 ac_status=$?
4390 grep -v '^ *+' conftest.er1 >conftest.err
4391 rm -f conftest.er1
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } >/dev/null; then
4395 if test -s conftest.err; then
4396 ac_cpp_err=$ac_c_preproc_warn_flag
4397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4398 else
4399 ac_cpp_err=
4401 else
4402 ac_cpp_err=yes
4404 if test -z "$ac_cpp_err"; then
4405 # Broken: success on invalid input.
4406 continue
4407 else
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4411 # Passes both tests.
4412 ac_preproc_ok=:
4413 break
4415 rm -f conftest.err conftest.$ac_ext
4417 done
4418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4419 rm -f conftest.err conftest.$ac_ext
4420 if $ac_preproc_ok; then
4422 else
4423 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4424 See \`config.log' for more details." >&5
4425 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4426 See \`config.log' for more details." >&2;}
4427 { (exit 1); exit 1; }; }
4430 ac_ext=c
4431 ac_cpp='$CPP $CPPFLAGS'
4432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4437 echo "$as_me:$LINENO: checking for egrep" >&5
4438 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4439 if test "${ac_cv_prog_egrep+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4443 then ac_cv_prog_egrep='grep -E'
4444 else ac_cv_prog_egrep='egrep'
4447 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4448 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4449 EGREP=$ac_cv_prog_egrep
4452 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4453 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4454 if test "${ac_cv_header_stdc+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457 cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h. */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4463 #include <stdlib.h>
4464 #include <stdarg.h>
4465 #include <string.h>
4466 #include <float.h>
4469 main ()
4473 return 0;
4475 _ACEOF
4476 rm -f conftest.$ac_objext
4477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4478 (eval $ac_compile) 2>conftest.er1
4479 ac_status=$?
4480 grep -v '^ *+' conftest.er1 >conftest.err
4481 rm -f conftest.er1
4482 cat conftest.err >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } &&
4485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; } &&
4491 { ac_try='test -s conftest.$ac_objext'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 ac_cv_header_stdc=yes
4498 else
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 ac_cv_header_stdc=no
4504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4506 if test $ac_cv_header_stdc = yes; then
4507 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h. */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514 #include <string.h>
4516 _ACEOF
4517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4518 $EGREP "memchr" >/dev/null 2>&1; then
4520 else
4521 ac_cv_header_stdc=no
4523 rm -f conftest*
4527 if test $ac_cv_header_stdc = yes; then
4528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4529 cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h. */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 #include <stdlib.h>
4537 _ACEOF
4538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4539 $EGREP "free" >/dev/null 2>&1; then
4541 else
4542 ac_cv_header_stdc=no
4544 rm -f conftest*
4548 if test $ac_cv_header_stdc = yes; then
4549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4550 if test "$cross_compiling" = yes; then
4552 else
4553 cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h. */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4559 #include <ctype.h>
4560 #if ((' ' & 0x0FF) == 0x020)
4561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4563 #else
4564 # define ISLOWER(c) \
4565 (('a' <= (c) && (c) <= 'i') \
4566 || ('j' <= (c) && (c) <= 'r') \
4567 || ('s' <= (c) && (c) <= 'z'))
4568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4569 #endif
4571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4573 main ()
4575 int i;
4576 for (i = 0; i < 256; i++)
4577 if (XOR (islower (i), ISLOWER (i))
4578 || toupper (i) != TOUPPER (i))
4579 exit(2);
4580 exit (0);
4582 _ACEOF
4583 rm -f conftest$ac_exeext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4585 (eval $ac_link) 2>&5
4586 ac_status=$?
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4595 else
4596 echo "$as_me: program exited with status $ac_status" >&5
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4600 ( exit $ac_status )
4601 ac_cv_header_stdc=no
4603 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4607 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4608 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4609 if test $ac_cv_header_stdc = yes; then
4611 cat >>confdefs.h <<\_ACEOF
4612 #define STDC_HEADERS 1
4613 _ACEOF
4617 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4627 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4628 inttypes.h stdint.h unistd.h
4630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4631 echo "$as_me:$LINENO: checking for $ac_header" >&5
4632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636 cat >conftest.$ac_ext <<_ACEOF
4637 /* confdefs.h. */
4638 _ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4642 $ac_includes_default
4644 #include <$ac_header>
4645 _ACEOF
4646 rm -f conftest.$ac_objext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4648 (eval $ac_compile) 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; } &&
4661 { ac_try='test -s conftest.$ac_objext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4667 eval "$as_ac_Header=yes"
4668 else
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4672 eval "$as_ac_Header=no"
4674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4679 cat >>confdefs.h <<_ACEOF
4680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4681 _ACEOF
4685 done
4688 if test "${ac_cv_header_stdio_h+set}" = set; then
4689 echo "$as_me:$LINENO: checking for stdio.h" >&5
4690 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4691 if test "${ac_cv_header_stdio_h+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4695 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4696 else
4697 # Is the header compilable?
4698 echo "$as_me:$LINENO: checking stdio.h usability" >&5
4699 echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
4700 cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h. */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4706 $ac_includes_default
4707 #include <stdio.h>
4708 _ACEOF
4709 rm -f conftest.$ac_objext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4711 (eval $ac_compile) 2>conftest.er1
4712 ac_status=$?
4713 grep -v '^ *+' conftest.er1 >conftest.err
4714 rm -f conftest.er1
4715 cat conftest.err >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } &&
4718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 (eval $ac_try) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try='test -s conftest.$ac_objext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 (eval $ac_try) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 ac_header_compiler=yes
4731 else
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4735 ac_header_compiler=no
4737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4739 echo "${ECHO_T}$ac_header_compiler" >&6
4741 # Is the header present?
4742 echo "$as_me:$LINENO: checking stdio.h presence" >&5
4743 echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
4744 cat >conftest.$ac_ext <<_ACEOF
4745 /* confdefs.h. */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4750 #include <stdio.h>
4751 _ACEOF
4752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4754 ac_status=$?
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } >/dev/null; then
4760 if test -s conftest.err; then
4761 ac_cpp_err=$ac_c_preproc_warn_flag
4762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4763 else
4764 ac_cpp_err=
4766 else
4767 ac_cpp_err=yes
4769 if test -z "$ac_cpp_err"; then
4770 ac_header_preproc=yes
4771 else
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4775 ac_header_preproc=no
4777 rm -f conftest.err conftest.$ac_ext
4778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4779 echo "${ECHO_T}$ac_header_preproc" >&6
4781 # So? What about this header?
4782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4783 yes:no: )
4784 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4785 echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4786 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
4787 echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
4788 ac_header_preproc=yes
4790 no:yes:* )
4791 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
4792 echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
4793 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
4794 echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
4795 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
4796 echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
4797 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
4798 echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
4799 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
4800 echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
4801 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
4802 echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
4804 cat <<\_ASBOX
4805 ## ----------------------------------------- ##
4806 ## Report this to the package-unused lists. ##
4807 ## ----------------------------------------- ##
4808 _ASBOX
4810 sed "s/^/$as_me: WARNING: /" >&2
4812 esac
4813 echo "$as_me:$LINENO: checking for stdio.h" >&5
4814 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4815 if test "${ac_cv_header_stdio_h+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818 ac_cv_header_stdio_h=$ac_header_preproc
4820 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4821 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4824 if test $ac_cv_header_stdio_h = yes; then
4826 else
4827 { { echo "$as_me:$LINENO: error: Can't find stdio.h.
4828 You must have a usable C system for the target already installed, at least
4829 including headers and, preferably, the library, before you can configure
4830 the Objective C runtime system. If necessary, install gcc now with
4831 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&5
4832 echo "$as_me: error: Can't find stdio.h.
4833 You must have a usable C system for the target already installed, at least
4834 including headers and, preferably, the library, before you can configure
4835 the Objective C runtime system. If necessary, install gcc now with
4836 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&2;}
4837 { (exit 1); exit 1; }; }
4842 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4843 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4844 if test "${ac_cv_header_stdc+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 #include <stdlib.h>
4854 #include <stdarg.h>
4855 #include <string.h>
4856 #include <float.h>
4859 main ()
4863 return 0;
4865 _ACEOF
4866 rm -f conftest.$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868 (eval $ac_compile) 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 (eval $ac_try) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4887 ac_cv_header_stdc=yes
4888 else
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4892 ac_cv_header_stdc=no
4894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4896 if test $ac_cv_header_stdc = yes; then
4897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4898 cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h. */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4904 #include <string.h>
4906 _ACEOF
4907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4908 $EGREP "memchr" >/dev/null 2>&1; then
4910 else
4911 ac_cv_header_stdc=no
4913 rm -f conftest*
4917 if test $ac_cv_header_stdc = yes; then
4918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4919 cat >conftest.$ac_ext <<_ACEOF
4920 /* confdefs.h. */
4921 _ACEOF
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4925 #include <stdlib.h>
4927 _ACEOF
4928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929 $EGREP "free" >/dev/null 2>&1; then
4931 else
4932 ac_cv_header_stdc=no
4934 rm -f conftest*
4938 if test $ac_cv_header_stdc = yes; then
4939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4940 if test "$cross_compiling" = yes; then
4942 else
4943 cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h. */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4949 #include <ctype.h>
4950 #if ((' ' & 0x0FF) == 0x020)
4951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4953 #else
4954 # define ISLOWER(c) \
4955 (('a' <= (c) && (c) <= 'i') \
4956 || ('j' <= (c) && (c) <= 'r') \
4957 || ('s' <= (c) && (c) <= 'z'))
4958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4959 #endif
4961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4963 main ()
4965 int i;
4966 for (i = 0; i < 256; i++)
4967 if (XOR (islower (i), ISLOWER (i))
4968 || toupper (i) != TOUPPER (i))
4969 exit(2);
4970 exit (0);
4972 _ACEOF
4973 rm -f conftest$ac_exeext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4975 (eval $ac_link) 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4985 else
4986 echo "$as_me: program exited with status $ac_status" >&5
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4990 ( exit $ac_status )
4991 ac_cv_header_stdc=no
4993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4997 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4998 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4999 if test $ac_cv_header_stdc = yes; then
5001 cat >>confdefs.h <<\_ACEOF
5002 #define STDC_HEADERS 1
5003 _ACEOF
5009 for ac_header in sched.h
5011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5013 echo "$as_me:$LINENO: checking for $ac_header" >&5
5014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5020 else
5021 # Is the header compilable?
5022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5024 cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h. */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030 $ac_includes_default
5031 #include <$ac_header>
5032 _ACEOF
5033 rm -f conftest.$ac_objext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5035 (eval $ac_compile) 2>conftest.er1
5036 ac_status=$?
5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } &&
5042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 (eval $ac_try) 2>&5
5045 ac_status=$?
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; } &&
5048 { ac_try='test -s conftest.$ac_objext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 ac_header_compiler=yes
5055 else
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 ac_header_compiler=no
5061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5063 echo "${ECHO_T}$ac_header_compiler" >&6
5065 # Is the header present?
5066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5068 cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h. */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 #include <$ac_header>
5075 _ACEOF
5076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5078 ac_status=$?
5079 grep -v '^ *+' conftest.er1 >conftest.err
5080 rm -f conftest.er1
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } >/dev/null; then
5084 if test -s conftest.err; then
5085 ac_cpp_err=$ac_c_preproc_warn_flag
5086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5087 else
5088 ac_cpp_err=
5090 else
5091 ac_cpp_err=yes
5093 if test -z "$ac_cpp_err"; then
5094 ac_header_preproc=yes
5095 else
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5099 ac_header_preproc=no
5101 rm -f conftest.err conftest.$ac_ext
5102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5103 echo "${ECHO_T}$ac_header_preproc" >&6
5105 # So? What about this header?
5106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5107 yes:no: )
5108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5112 ac_header_preproc=yes
5114 no:yes:* )
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5128 cat <<\_ASBOX
5129 ## ----------------------------------------- ##
5130 ## Report this to the package-unused lists. ##
5131 ## ----------------------------------------- ##
5132 _ASBOX
5134 sed "s/^/$as_me: WARNING: /" >&2
5136 esac
5137 echo "$as_me:$LINENO: checking for $ac_header" >&5
5138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142 eval "$as_ac_Header=\$ac_header_preproc"
5144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5149 cat >>confdefs.h <<_ACEOF
5150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5151 _ACEOF
5155 done
5158 # -----------
5159 # Miscellanea
5160 # -----------
5162 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
5163 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
5164 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
5165 echo "$as_me:$LINENO: result: $target_thread_file" >&5
5166 echo "${ECHO_T}$target_thread_file" >&6
5168 if test $target_thread_file != single; then
5170 cat >>confdefs.h <<\_ACEOF
5171 #define HAVE_GTHR_DEFAULT 1
5172 _ACEOF
5177 echo "$as_me:$LINENO: checking for exception model to use" >&5
5178 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5179 ac_ext=c
5180 ac_cpp='$CPP $CPPFLAGS'
5181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5185 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5186 if test "${enable_sjlj_exceptions+set}" = set; then
5187 enableval="$enable_sjlj_exceptions"
5189 else
5190 cat > conftest.$ac_ext << EOF
5191 #line 5191 "configure"
5192 @interface Frob
5193 @end
5194 @implementation Frob
5195 @end
5196 int proc();
5197 int foo()
5199 @try {
5200 return proc();
5202 @catch (Frob* ex) {
5203 return 0;
5207 old_CFLAGS="$CFLAGS"
5208 CFLAGS="-x objective-c -fgnu-runtime -fobjc-exceptions -S"
5209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5210 (eval $ac_compile) 2>&5
5211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; then
5214 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5215 enable_sjlj_exceptions=yes
5216 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5217 enable_sjlj_exceptions=no
5220 CFLAGS="$old_CFLAGS"
5221 rm -f conftest*
5223 if test x$enable_sjlj_exceptions = xyes; then
5225 cat >>confdefs.h <<\_ACEOF
5226 #define SJLJ_EXCEPTIONS 1
5227 _ACEOF
5229 ac_exception_model_name=sjlj
5230 elif test x$enable_sjlj_exceptions = xno; then
5231 ac_exception_model_name="call frame"
5232 else
5233 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5234 echo "$as_me: error: unable to detect exception model" >&2;}
5235 { (exit 1); exit 1; }; }
5237 ac_ext=c
5238 ac_cpp='$CPP $CPPFLAGS'
5239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5243 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5244 echo "${ECHO_T}$ac_exception_model_name" >&6
5246 # ------
5247 # Output
5248 # ------
5250 ac_config_files="$ac_config_files Makefile"
5253 ac_config_commands="$ac_config_commands default"
5256 cat >confcache <<\_ACEOF
5257 # This file is a shell script that caches the results of configure
5258 # tests run on this system so they can be shared between configure
5259 # scripts and configure runs, see configure's option --config-cache.
5260 # It is not useful on other systems. If it contains results you don't
5261 # want to keep, you may remove or edit it.
5263 # config.status only pays attention to the cache file if you give it
5264 # the --recheck option to rerun configure.
5266 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5267 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5268 # following values.
5270 _ACEOF
5272 # The following way of writing the cache mishandles newlines in values,
5273 # but we know of no workaround that is simple, portable, and efficient.
5274 # So, don't put newlines in cache variables' values.
5275 # Ultrix sh set writes to stderr and can't be redirected directly,
5276 # and sets the high bit in the cache file unless we assign to the vars.
5278 (set) 2>&1 |
5279 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5280 *ac_space=\ *)
5281 # `set' does not quote correctly, so add quotes (double-quote
5282 # substitution turns \\\\ into \\, and sed turns \\ into \).
5283 sed -n \
5284 "s/'/'\\\\''/g;
5285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5288 # `set' quotes correctly as required by POSIX, so do not add quotes.
5289 sed -n \
5290 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5292 esac;
5294 sed '
5295 t clear
5296 : clear
5297 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5298 t end
5299 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5300 : end' >>confcache
5301 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5302 if test -w $cache_file; then
5303 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5304 cat confcache >$cache_file
5305 else
5306 echo "not updating unwritable cache $cache_file"
5309 rm -f confcache
5311 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5312 # Let make expand exec_prefix.
5313 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5315 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5316 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5317 # trailing colons and then remove the whole line if VPATH becomes empty
5318 # (actually we leave an empty line to preserve line numbers).
5319 if test "x$srcdir" = x.; then
5320 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5321 s/:*\$(srcdir):*/:/;
5322 s/:*\${srcdir}:*/:/;
5323 s/:*@srcdir@:*/:/;
5324 s/^\([^=]*=[ ]*\):*/\1/;
5325 s/:*$//;
5326 s/^[^=]*=[ ]*$//;
5330 DEFS=-DHAVE_CONFIG_H
5332 ac_libobjs=
5333 ac_ltlibobjs=
5334 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5335 # 1. Remove the extension, and $U if already installed.
5336 ac_i=`echo "$ac_i" |
5337 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5338 # 2. Add them.
5339 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5340 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5341 done
5342 LIBOBJS=$ac_libobjs
5344 LTLIBOBJS=$ac_ltlibobjs
5347 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5348 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5349 Usually this means the macro was only invoked conditionally." >&5
5350 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5351 Usually this means the macro was only invoked conditionally." >&2;}
5352 { (exit 1); exit 1; }; }
5355 : ${CONFIG_STATUS=./config.status}
5356 ac_clean_files_save=$ac_clean_files
5357 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5358 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5359 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5360 cat >$CONFIG_STATUS <<_ACEOF
5361 #! $SHELL
5362 # Generated by $as_me.
5363 # Run this file to recreate the current configuration.
5364 # Compiler output produced by configure, useful for debugging
5365 # configure, is in config.log if it exists.
5367 debug=false
5368 ac_cs_recheck=false
5369 ac_cs_silent=false
5370 SHELL=\${CONFIG_SHELL-$SHELL}
5371 _ACEOF
5373 cat >>$CONFIG_STATUS <<\_ACEOF
5374 ## --------------------- ##
5375 ## M4sh Initialization. ##
5376 ## --------------------- ##
5378 # Be Bourne compatible
5379 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5380 emulate sh
5381 NULLCMD=:
5382 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5383 # is contrary to our usage. Disable this feature.
5384 alias -g '${1+"$@"}'='"$@"'
5385 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5386 set -o posix
5388 DUALCASE=1; export DUALCASE # for MKS sh
5390 # Support unset when possible.
5391 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5392 as_unset=unset
5393 else
5394 as_unset=false
5398 # Work around bugs in pre-3.0 UWIN ksh.
5399 $as_unset ENV MAIL MAILPATH
5400 PS1='$ '
5401 PS2='> '
5402 PS4='+ '
5404 # NLS nuisances.
5405 for as_var in \
5406 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5407 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5408 LC_TELEPHONE LC_TIME
5410 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5411 eval $as_var=C; export $as_var
5412 else
5413 $as_unset $as_var
5415 done
5417 # Required to use basename.
5418 if expr a : '\(a\)' >/dev/null 2>&1; then
5419 as_expr=expr
5420 else
5421 as_expr=false
5424 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5425 as_basename=basename
5426 else
5427 as_basename=false
5431 # Name of the executable.
5432 as_me=`$as_basename "$0" ||
5433 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5434 X"$0" : 'X\(//\)$' \| \
5435 X"$0" : 'X\(/\)$' \| \
5436 . : '\(.\)' 2>/dev/null ||
5437 echo X/"$0" |
5438 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5439 /^X\/\(\/\/\)$/{ s//\1/; q; }
5440 /^X\/\(\/\).*/{ s//\1/; q; }
5441 s/.*/./; q'`
5444 # PATH needs CR, and LINENO needs CR and PATH.
5445 # Avoid depending upon Character Ranges.
5446 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5447 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5448 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5449 as_cr_digits='0123456789'
5450 as_cr_alnum=$as_cr_Letters$as_cr_digits
5452 # The user is always right.
5453 if test "${PATH_SEPARATOR+set}" != set; then
5454 echo "#! /bin/sh" >conf$$.sh
5455 echo "exit 0" >>conf$$.sh
5456 chmod +x conf$$.sh
5457 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5458 PATH_SEPARATOR=';'
5459 else
5460 PATH_SEPARATOR=:
5462 rm -f conf$$.sh
5466 as_lineno_1=$LINENO
5467 as_lineno_2=$LINENO
5468 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5469 test "x$as_lineno_1" != "x$as_lineno_2" &&
5470 test "x$as_lineno_3" = "x$as_lineno_2" || {
5471 # Find who we are. Look in the path if we contain no path at all
5472 # relative or not.
5473 case $0 in
5474 *[\\/]* ) as_myself=$0 ;;
5475 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5481 done
5484 esac
5485 # We did not find ourselves, most probably we were run as `sh COMMAND'
5486 # in which case we are not to be found in the path.
5487 if test "x$as_myself" = x; then
5488 as_myself=$0
5490 if test ! -f "$as_myself"; then
5491 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5492 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5493 { (exit 1); exit 1; }; }
5495 case $CONFIG_SHELL in
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for as_base in sh bash ksh sh5; do
5503 case $as_dir in
5505 if ("$as_dir/$as_base" -c '
5506 as_lineno_1=$LINENO
5507 as_lineno_2=$LINENO
5508 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5509 test "x$as_lineno_1" != "x$as_lineno_2" &&
5510 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5511 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5512 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5513 CONFIG_SHELL=$as_dir/$as_base
5514 export CONFIG_SHELL
5515 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5516 fi;;
5517 esac
5518 done
5519 done
5521 esac
5523 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5524 # uniformly replaced by the line number. The first 'sed' inserts a
5525 # line-number line before each line; the second 'sed' does the real
5526 # work. The second script uses 'N' to pair each line-number line
5527 # with the numbered line, and appends trailing '-' during
5528 # substitution so that $LINENO is not a special case at line end.
5529 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5530 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5531 sed '=' <$as_myself |
5532 sed '
5534 s,$,-,
5535 : loop
5536 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5537 t loop
5538 s,-$,,
5539 s,^['$as_cr_digits']*\n,,
5540 ' >$as_me.lineno &&
5541 chmod +x $as_me.lineno ||
5542 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5543 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5544 { (exit 1); exit 1; }; }
5546 # Don't try to exec as it changes $[0], causing all sort of problems
5547 # (the dirname of $[0] is not the place where we might find the
5548 # original and so on. Autoconf is especially sensible to this).
5549 . ./$as_me.lineno
5550 # Exit status is that of the last command.
5551 exit
5555 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5556 *c*,-n*) ECHO_N= ECHO_C='
5557 ' ECHO_T=' ' ;;
5558 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5559 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5560 esac
5562 if expr a : '\(a\)' >/dev/null 2>&1; then
5563 as_expr=expr
5564 else
5565 as_expr=false
5568 rm -f conf$$ conf$$.exe conf$$.file
5569 echo >conf$$.file
5570 if ln -s conf$$.file conf$$ 2>/dev/null; then
5571 # We could just check for DJGPP; but this test a) works b) is more generic
5572 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5573 if test -f conf$$.exe; then
5574 # Don't use ln at all; we don't have any links
5575 as_ln_s='cp -p'
5576 else
5577 as_ln_s='ln -s'
5579 elif ln conf$$.file conf$$ 2>/dev/null; then
5580 as_ln_s=ln
5581 else
5582 as_ln_s='cp -p'
5584 rm -f conf$$ conf$$.exe conf$$.file
5586 if mkdir -p . 2>/dev/null; then
5587 as_mkdir_p=:
5588 else
5589 test -d ./-p && rmdir ./-p
5590 as_mkdir_p=false
5593 as_executable_p="test -f"
5595 # Sed expression to map a string onto a valid CPP name.
5596 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5598 # Sed expression to map a string onto a valid variable name.
5599 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5602 # IFS
5603 # We need space, tab and new line, in precisely that order.
5604 as_nl='
5606 IFS=" $as_nl"
5608 # CDPATH.
5609 $as_unset CDPATH
5611 exec 6>&1
5613 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5614 # report actual input values of CONFIG_FILES etc. instead of their
5615 # values after options handling. Logging --version etc. is OK.
5616 exec 5>>config.log
5618 echo
5619 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5620 ## Running $as_me. ##
5621 _ASBOX
5622 } >&5
5623 cat >&5 <<_CSEOF
5625 This file was extended by package-unused $as_me version-unused, which was
5626 generated by GNU Autoconf 2.59. Invocation command line was
5628 CONFIG_FILES = $CONFIG_FILES
5629 CONFIG_HEADERS = $CONFIG_HEADERS
5630 CONFIG_LINKS = $CONFIG_LINKS
5631 CONFIG_COMMANDS = $CONFIG_COMMANDS
5632 $ $0 $@
5634 _CSEOF
5635 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5636 echo >&5
5637 _ACEOF
5639 # Files that config.status was made for.
5640 if test -n "$ac_config_files"; then
5641 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5644 if test -n "$ac_config_headers"; then
5645 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5648 if test -n "$ac_config_links"; then
5649 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5652 if test -n "$ac_config_commands"; then
5653 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5656 cat >>$CONFIG_STATUS <<\_ACEOF
5658 ac_cs_usage="\
5659 \`$as_me' instantiates files from templates according to the
5660 current configuration.
5662 Usage: $0 [OPTIONS] [FILE]...
5664 -h, --help print this help, then exit
5665 -V, --version print version number, then exit
5666 -q, --quiet do not print progress messages
5667 -d, --debug don't remove temporary files
5668 --recheck update $as_me by reconfiguring in the same conditions
5669 --file=FILE[:TEMPLATE]
5670 instantiate the configuration file FILE
5671 --header=FILE[:TEMPLATE]
5672 instantiate the configuration header FILE
5674 Configuration files:
5675 $config_files
5677 Configuration headers:
5678 $config_headers
5680 Configuration commands:
5681 $config_commands
5683 Report bugs to <bug-autoconf@gnu.org>."
5684 _ACEOF
5686 cat >>$CONFIG_STATUS <<_ACEOF
5687 ac_cs_version="\\
5688 package-unused config.status version-unused
5689 configured by $0, generated by GNU Autoconf 2.59,
5690 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5692 Copyright (C) 2003 Free Software Foundation, Inc.
5693 This config.status script is free software; the Free Software Foundation
5694 gives unlimited permission to copy, distribute and modify it."
5695 srcdir=$srcdir
5696 INSTALL="$INSTALL"
5697 _ACEOF
5699 cat >>$CONFIG_STATUS <<\_ACEOF
5700 # If no file are specified by the user, then we need to provide default
5701 # value. By we need to know if files were specified by the user.
5702 ac_need_defaults=:
5703 while test $# != 0
5705 case $1 in
5706 --*=*)
5707 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5708 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5709 ac_shift=:
5712 ac_option=$1
5713 ac_optarg=$2
5714 ac_shift=shift
5716 *) # This is not an option, so the user has probably given explicit
5717 # arguments.
5718 ac_option=$1
5719 ac_need_defaults=false;;
5720 esac
5722 case $ac_option in
5723 # Handling of the options.
5724 _ACEOF
5725 cat >>$CONFIG_STATUS <<\_ACEOF
5726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5727 ac_cs_recheck=: ;;
5728 --version | --vers* | -V )
5729 echo "$ac_cs_version"; exit 0 ;;
5730 --he | --h)
5731 # Conflict between --help and --header
5732 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5733 Try \`$0 --help' for more information." >&5
5734 echo "$as_me: error: ambiguous option: $1
5735 Try \`$0 --help' for more information." >&2;}
5736 { (exit 1); exit 1; }; };;
5737 --help | --hel | -h )
5738 echo "$ac_cs_usage"; exit 0 ;;
5739 --debug | --d* | -d )
5740 debug=: ;;
5741 --file | --fil | --fi | --f )
5742 $ac_shift
5743 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5744 ac_need_defaults=false;;
5745 --header | --heade | --head | --hea )
5746 $ac_shift
5747 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5748 ac_need_defaults=false;;
5749 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5750 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5751 ac_cs_silent=: ;;
5753 # This is an error.
5754 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5755 Try \`$0 --help' for more information." >&5
5756 echo "$as_me: error: unrecognized option: $1
5757 Try \`$0 --help' for more information." >&2;}
5758 { (exit 1); exit 1; }; } ;;
5760 *) ac_config_targets="$ac_config_targets $1" ;;
5762 esac
5763 shift
5764 done
5766 ac_configure_extra_args=
5768 if $ac_cs_silent; then
5769 exec 6>/dev/null
5770 ac_configure_extra_args="$ac_configure_extra_args --silent"
5773 _ACEOF
5774 cat >>$CONFIG_STATUS <<_ACEOF
5775 if \$ac_cs_recheck; then
5776 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5777 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5780 _ACEOF
5782 cat >>$CONFIG_STATUS <<_ACEOF
5784 # INIT-COMMANDS section.
5787 srcdir=${srcdir}
5788 host=${host}
5789 target=${target}
5790 with_target_subdir=${with_target_subdir}
5791 with_multisubdir=${with_multisubdir}
5792 ac_configure_args="--enable-multilib ${ac_configure_args}"
5793 toplevel_srcdir=${toplevel_srcdir}
5794 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5795 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
5798 _ACEOF
5802 cat >>$CONFIG_STATUS <<\_ACEOF
5803 for ac_config_target in $ac_config_targets
5805 case "$ac_config_target" in
5806 # Handling of arguments.
5807 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5808 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5809 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5810 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5811 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5812 { (exit 1); exit 1; }; };;
5813 esac
5814 done
5816 # If the user did not use the arguments to specify the items to instantiate,
5817 # then the envvar interface is used. Set only those that are not.
5818 # We use the long form for the default assignment because of an extremely
5819 # bizarre bug on SunOS 4.1.3.
5820 if $ac_need_defaults; then
5821 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5822 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5823 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5826 # Have a temporary directory for convenience. Make it in the build tree
5827 # simply because there is no reason to put it here, and in addition,
5828 # creating and moving files from /tmp can sometimes cause problems.
5829 # Create a temporary directory, and hook for its removal unless debugging.
5830 $debug ||
5832 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5833 trap '{ (exit 1); exit 1; }' 1 2 13 15
5836 # Create a (secure) tmp directory for tmp files.
5839 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5840 test -n "$tmp" && test -d "$tmp"
5841 } ||
5843 tmp=./confstat$$-$RANDOM
5844 (umask 077 && mkdir $tmp)
5845 } ||
5847 echo "$me: cannot create a temporary directory in ." >&2
5848 { (exit 1); exit 1; }
5851 _ACEOF
5853 cat >>$CONFIG_STATUS <<_ACEOF
5856 # CONFIG_FILES section.
5859 # No need to generate the scripts if there are no CONFIG_FILES.
5860 # This happens for instance when ./config.status config.h
5861 if test -n "\$CONFIG_FILES"; then
5862 # Protect against being on the right side of a sed subst in config.status.
5863 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5864 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5865 s,@SHELL@,$SHELL,;t t
5866 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5867 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5868 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5869 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5870 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5871 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5872 s,@exec_prefix@,$exec_prefix,;t t
5873 s,@prefix@,$prefix,;t t
5874 s,@program_transform_name@,$program_transform_name,;t t
5875 s,@bindir@,$bindir,;t t
5876 s,@sbindir@,$sbindir,;t t
5877 s,@libexecdir@,$libexecdir,;t t
5878 s,@datadir@,$datadir,;t t
5879 s,@sysconfdir@,$sysconfdir,;t t
5880 s,@sharedstatedir@,$sharedstatedir,;t t
5881 s,@localstatedir@,$localstatedir,;t t
5882 s,@libdir@,$libdir,;t t
5883 s,@includedir@,$includedir,;t t
5884 s,@oldincludedir@,$oldincludedir,;t t
5885 s,@infodir@,$infodir,;t t
5886 s,@mandir@,$mandir,;t t
5887 s,@build_alias@,$build_alias,;t t
5888 s,@host_alias@,$host_alias,;t t
5889 s,@target_alias@,$target_alias,;t t
5890 s,@DEFS@,$DEFS,;t t
5891 s,@ECHO_C@,$ECHO_C,;t t
5892 s,@ECHO_N@,$ECHO_N,;t t
5893 s,@ECHO_T@,$ECHO_T,;t t
5894 s,@LIBS@,$LIBS,;t t
5895 s,@build@,$build,;t t
5896 s,@build_cpu@,$build_cpu,;t t
5897 s,@build_vendor@,$build_vendor,;t t
5898 s,@build_os@,$build_os,;t t
5899 s,@build_subdir@,$build_subdir,;t t
5900 s,@host_subdir@,$host_subdir,;t t
5901 s,@target_subdir@,$target_subdir,;t t
5902 s,@VERSION@,$VERSION,;t t
5903 s,@OBJC_BOEHM_GC@,$OBJC_BOEHM_GC,;t t
5904 s,@OBJC_BOEHM_GC_INCLUDES@,$OBJC_BOEHM_GC_INCLUDES,;t t
5905 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
5906 s,@host@,$host,;t t
5907 s,@host_cpu@,$host_cpu,;t t
5908 s,@host_vendor@,$host_vendor,;t t
5909 s,@host_os@,$host_os,;t t
5910 s,@target@,$target,;t t
5911 s,@target_cpu@,$target_cpu,;t t
5912 s,@target_vendor@,$target_vendor,;t t
5913 s,@target_os@,$target_os,;t t
5914 s,@target_noncanonical@,$target_noncanonical,;t t
5915 s,@glibcpp_srcdir@,$glibcpp_srcdir,;t t
5916 s,@toolexecdir@,$toolexecdir,;t t
5917 s,@toolexeclibdir@,$toolexeclibdir,;t t
5918 s,@includedirname@,$includedirname,;t t
5919 s,@libext@,$libext,;t t
5920 s,@CC@,$CC,;t t
5921 s,@ac_ct_CC@,$ac_ct_CC,;t t
5922 s,@EXEEXT@,$EXEEXT,;t t
5923 s,@OBJEXT@,$OBJEXT,;t t
5924 s,@extra_ldflags_libobjc@,$extra_ldflags_libobjc,;t t
5925 s,@CFLAGS@,$CFLAGS,;t t
5926 s,@AS@,$AS,;t t
5927 s,@ac_ct_AS@,$ac_ct_AS,;t t
5928 s,@AR@,$AR,;t t
5929 s,@ac_ct_AR@,$ac_ct_AR,;t t
5930 s,@RANLIB@,$RANLIB,;t t
5931 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5932 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5933 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5934 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5935 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5936 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5937 s,@MAINT@,$MAINT,;t t
5938 s,@LN_S@,$LN_S,;t t
5939 s,@STRIP@,$STRIP,;t t
5940 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5941 s,@LIBTOOL@,$LIBTOOL,;t t
5942 s,@SET_MAKE@,$SET_MAKE,;t t
5943 s,@CPP@,$CPP,;t t
5944 s,@CPPFLAGS@,$CPPFLAGS,;t t
5945 s,@EGREP@,$EGREP,;t t
5946 s,@LIBOBJS@,$LIBOBJS,;t t
5947 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5948 CEOF
5950 _ACEOF
5952 cat >>$CONFIG_STATUS <<\_ACEOF
5953 # Split the substitutions into bite-sized pieces for seds with
5954 # small command number limits, like on Digital OSF/1 and HP-UX.
5955 ac_max_sed_lines=48
5956 ac_sed_frag=1 # Number of current file.
5957 ac_beg=1 # First line for current file.
5958 ac_end=$ac_max_sed_lines # Line after last line for current file.
5959 ac_more_lines=:
5960 ac_sed_cmds=
5961 while $ac_more_lines; do
5962 if test $ac_beg -gt 1; then
5963 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5964 else
5965 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5967 if test ! -s $tmp/subs.frag; then
5968 ac_more_lines=false
5969 else
5970 # The purpose of the label and of the branching condition is to
5971 # speed up the sed processing (if there are no `@' at all, there
5972 # is no need to browse any of the substitutions).
5973 # These are the two extra sed commands mentioned above.
5974 (echo ':t
5975 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5976 if test -z "$ac_sed_cmds"; then
5977 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5978 else
5979 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5981 ac_sed_frag=`expr $ac_sed_frag + 1`
5982 ac_beg=$ac_end
5983 ac_end=`expr $ac_end + $ac_max_sed_lines`
5985 done
5986 if test -z "$ac_sed_cmds"; then
5987 ac_sed_cmds=cat
5989 fi # test -n "$CONFIG_FILES"
5991 _ACEOF
5992 cat >>$CONFIG_STATUS <<\_ACEOF
5993 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5994 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5995 case $ac_file in
5996 - | *:- | *:-:* ) # input from stdin
5997 cat >$tmp/stdin
5998 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5999 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6000 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6001 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6002 * ) ac_file_in=$ac_file.in ;;
6003 esac
6005 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6006 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6007 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6008 X"$ac_file" : 'X\(//\)[^/]' \| \
6009 X"$ac_file" : 'X\(//\)$' \| \
6010 X"$ac_file" : 'X\(/\)' \| \
6011 . : '\(.\)' 2>/dev/null ||
6012 echo X"$ac_file" |
6013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6014 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6015 /^X\(\/\/\)$/{ s//\1/; q; }
6016 /^X\(\/\).*/{ s//\1/; q; }
6017 s/.*/./; q'`
6018 { if $as_mkdir_p; then
6019 mkdir -p "$ac_dir"
6020 else
6021 as_dir="$ac_dir"
6022 as_dirs=
6023 while test ! -d "$as_dir"; do
6024 as_dirs="$as_dir $as_dirs"
6025 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6026 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6027 X"$as_dir" : 'X\(//\)[^/]' \| \
6028 X"$as_dir" : 'X\(//\)$' \| \
6029 X"$as_dir" : 'X\(/\)' \| \
6030 . : '\(.\)' 2>/dev/null ||
6031 echo X"$as_dir" |
6032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6034 /^X\(\/\/\)$/{ s//\1/; q; }
6035 /^X\(\/\).*/{ s//\1/; q; }
6036 s/.*/./; q'`
6037 done
6038 test ! -n "$as_dirs" || mkdir $as_dirs
6039 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6040 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6041 { (exit 1); exit 1; }; }; }
6043 ac_builddir=.
6045 if test "$ac_dir" != .; then
6046 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6047 # A "../" for each directory in $ac_dir_suffix.
6048 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6049 else
6050 ac_dir_suffix= ac_top_builddir=
6053 case $srcdir in
6054 .) # No --srcdir option. We are building in place.
6055 ac_srcdir=.
6056 if test -z "$ac_top_builddir"; then
6057 ac_top_srcdir=.
6058 else
6059 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6060 fi ;;
6061 [\\/]* | ?:[\\/]* ) # Absolute path.
6062 ac_srcdir=$srcdir$ac_dir_suffix;
6063 ac_top_srcdir=$srcdir ;;
6064 *) # Relative path.
6065 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6066 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6067 esac
6069 # Do not use `cd foo && pwd` to compute absolute paths, because
6070 # the directories may not exist.
6071 case `pwd` in
6072 .) ac_abs_builddir="$ac_dir";;
6074 case "$ac_dir" in
6075 .) ac_abs_builddir=`pwd`;;
6076 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6077 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6078 esac;;
6079 esac
6080 case $ac_abs_builddir in
6081 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6083 case ${ac_top_builddir}. in
6084 .) ac_abs_top_builddir=$ac_abs_builddir;;
6085 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6086 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6087 esac;;
6088 esac
6089 case $ac_abs_builddir in
6090 .) ac_abs_srcdir=$ac_srcdir;;
6092 case $ac_srcdir in
6093 .) ac_abs_srcdir=$ac_abs_builddir;;
6094 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6095 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6096 esac;;
6097 esac
6098 case $ac_abs_builddir in
6099 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6101 case $ac_top_srcdir in
6102 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6103 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6104 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6105 esac;;
6106 esac
6109 case $INSTALL in
6110 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6111 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6112 esac
6114 # Let's still pretend it is `configure' which instantiates (i.e., don't
6115 # use $as_me), people would be surprised to read:
6116 # /* config.h. Generated by config.status. */
6117 if test x"$ac_file" = x-; then
6118 configure_input=
6119 else
6120 configure_input="$ac_file. "
6122 configure_input=$configure_input"Generated from `echo $ac_file_in |
6123 sed 's,.*/,,'` by configure."
6125 # First look for the input files in the build tree, otherwise in the
6126 # src tree.
6127 ac_file_inputs=`IFS=:
6128 for f in $ac_file_in; do
6129 case $f in
6130 -) echo $tmp/stdin ;;
6131 [\\/$]*)
6132 # Absolute (can't be DOS-style, as IFS=:)
6133 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6134 echo "$as_me: error: cannot find input file: $f" >&2;}
6135 { (exit 1); exit 1; }; }
6136 echo "$f";;
6137 *) # Relative
6138 if test -f "$f"; then
6139 # Build tree
6140 echo "$f"
6141 elif test -f "$srcdir/$f"; then
6142 # Source tree
6143 echo "$srcdir/$f"
6144 else
6145 # /dev/null tree
6146 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6147 echo "$as_me: error: cannot find input file: $f" >&2;}
6148 { (exit 1); exit 1; }; }
6149 fi;;
6150 esac
6151 done` || { (exit 1); exit 1; }
6153 if test x"$ac_file" != x-; then
6154 { echo "$as_me:$LINENO: creating $ac_file" >&5
6155 echo "$as_me: creating $ac_file" >&6;}
6156 rm -f "$ac_file"
6158 _ACEOF
6159 cat >>$CONFIG_STATUS <<_ACEOF
6160 sed "$ac_vpsub
6161 $extrasub
6162 _ACEOF
6163 cat >>$CONFIG_STATUS <<\_ACEOF
6165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6166 s,@configure_input@,$configure_input,;t t
6167 s,@srcdir@,$ac_srcdir,;t t
6168 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6169 s,@top_srcdir@,$ac_top_srcdir,;t t
6170 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6171 s,@builddir@,$ac_builddir,;t t
6172 s,@abs_builddir@,$ac_abs_builddir,;t t
6173 s,@top_builddir@,$ac_top_builddir,;t t
6174 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6175 s,@INSTALL@,$ac_INSTALL,;t t
6176 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6177 rm -f $tmp/stdin
6178 if test x"$ac_file" != x-; then
6179 mv $tmp/out $ac_file
6180 else
6181 cat $tmp/out
6182 rm -f $tmp/out
6185 done
6186 _ACEOF
6187 cat >>$CONFIG_STATUS <<\_ACEOF
6190 # CONFIG_HEADER section.
6193 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6194 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6196 # ac_d sets the value in "#define NAME VALUE" lines.
6197 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6198 ac_dB='[ ].*$,\1#\2'
6199 ac_dC=' '
6200 ac_dD=',;t'
6201 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6202 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6203 ac_uB='$,\1#\2define\3'
6204 ac_uC=' '
6205 ac_uD=',;t'
6207 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6208 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6209 case $ac_file in
6210 - | *:- | *:-:* ) # input from stdin
6211 cat >$tmp/stdin
6212 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6213 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6214 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6215 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6216 * ) ac_file_in=$ac_file.in ;;
6217 esac
6219 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6220 echo "$as_me: creating $ac_file" >&6;}
6222 # First look for the input files in the build tree, otherwise in the
6223 # src tree.
6224 ac_file_inputs=`IFS=:
6225 for f in $ac_file_in; do
6226 case $f in
6227 -) echo $tmp/stdin ;;
6228 [\\/$]*)
6229 # Absolute (can't be DOS-style, as IFS=:)
6230 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6231 echo "$as_me: error: cannot find input file: $f" >&2;}
6232 { (exit 1); exit 1; }; }
6233 # Do quote $f, to prevent DOS paths from being IFS'd.
6234 echo "$f";;
6235 *) # Relative
6236 if test -f "$f"; then
6237 # Build tree
6238 echo "$f"
6239 elif test -f "$srcdir/$f"; then
6240 # Source tree
6241 echo "$srcdir/$f"
6242 else
6243 # /dev/null tree
6244 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6245 echo "$as_me: error: cannot find input file: $f" >&2;}
6246 { (exit 1); exit 1; }; }
6247 fi;;
6248 esac
6249 done` || { (exit 1); exit 1; }
6250 # Remove the trailing spaces.
6251 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6253 _ACEOF
6255 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6256 # `conftest.undefs', that substitutes the proper values into
6257 # config.h.in to produce config.h. The first handles `#define'
6258 # templates, and the second `#undef' templates.
6259 # And first: Protect against being on the right side of a sed subst in
6260 # config.status. Protect against being in an unquoted here document
6261 # in config.status.
6262 rm -f conftest.defines conftest.undefs
6263 # Using a here document instead of a string reduces the quoting nightmare.
6264 # Putting comments in sed scripts is not portable.
6266 # `end' is used to avoid that the second main sed command (meant for
6267 # 0-ary CPP macros) applies to n-ary macro definitions.
6268 # See the Autoconf documentation for `clear'.
6269 cat >confdef2sed.sed <<\_ACEOF
6270 s/[\\&,]/\\&/g
6271 s,[\\$`],\\&,g
6272 t clear
6273 : clear
6274 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6275 t end
6276 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6277 : end
6278 _ACEOF
6279 # If some macros were called several times there might be several times
6280 # the same #defines, which is useless. Nevertheless, we may not want to
6281 # sort them, since we want the *last* AC-DEFINE to be honored.
6282 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6283 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6284 rm -f confdef2sed.sed
6286 # This sed command replaces #undef with comments. This is necessary, for
6287 # example, in the case of _POSIX_SOURCE, which is predefined and required
6288 # on some systems where configure will not decide to define it.
6289 cat >>conftest.undefs <<\_ACEOF
6290 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6291 _ACEOF
6293 # Break up conftest.defines because some shells have a limit on the size
6294 # of here documents, and old seds have small limits too (100 cmds).
6295 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6296 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6297 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6298 echo ' :' >>$CONFIG_STATUS
6299 rm -f conftest.tail
6300 while grep . conftest.defines >/dev/null
6302 # Write a limited-size here document to $tmp/defines.sed.
6303 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6304 # Speed up: don't consider the non `#define' lines.
6305 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6306 # Work around the forget-to-reset-the-flag bug.
6307 echo 't clr' >>$CONFIG_STATUS
6308 echo ': clr' >>$CONFIG_STATUS
6309 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6310 echo 'CEOF
6311 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6312 rm -f $tmp/in
6313 mv $tmp/out $tmp/in
6314 ' >>$CONFIG_STATUS
6315 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6316 rm -f conftest.defines
6317 mv conftest.tail conftest.defines
6318 done
6319 rm -f conftest.defines
6320 echo ' fi # grep' >>$CONFIG_STATUS
6321 echo >>$CONFIG_STATUS
6323 # Break up conftest.undefs because some shells have a limit on the size
6324 # of here documents, and old seds have small limits too (100 cmds).
6325 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6326 rm -f conftest.tail
6327 while grep . conftest.undefs >/dev/null
6329 # Write a limited-size here document to $tmp/undefs.sed.
6330 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6331 # Speed up: don't consider the non `#undef'
6332 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6333 # Work around the forget-to-reset-the-flag bug.
6334 echo 't clr' >>$CONFIG_STATUS
6335 echo ': clr' >>$CONFIG_STATUS
6336 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6337 echo 'CEOF
6338 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6339 rm -f $tmp/in
6340 mv $tmp/out $tmp/in
6341 ' >>$CONFIG_STATUS
6342 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6343 rm -f conftest.undefs
6344 mv conftest.tail conftest.undefs
6345 done
6346 rm -f conftest.undefs
6348 cat >>$CONFIG_STATUS <<\_ACEOF
6349 # Let's still pretend it is `configure' which instantiates (i.e., don't
6350 # use $as_me), people would be surprised to read:
6351 # /* config.h. Generated by config.status. */
6352 if test x"$ac_file" = x-; then
6353 echo "/* Generated by configure. */" >$tmp/config.h
6354 else
6355 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6357 cat $tmp/in >>$tmp/config.h
6358 rm -f $tmp/in
6359 if test x"$ac_file" != x-; then
6360 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6361 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6362 echo "$as_me: $ac_file is unchanged" >&6;}
6363 else
6364 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6365 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6366 X"$ac_file" : 'X\(//\)[^/]' \| \
6367 X"$ac_file" : 'X\(//\)$' \| \
6368 X"$ac_file" : 'X\(/\)' \| \
6369 . : '\(.\)' 2>/dev/null ||
6370 echo X"$ac_file" |
6371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6373 /^X\(\/\/\)$/{ s//\1/; q; }
6374 /^X\(\/\).*/{ s//\1/; q; }
6375 s/.*/./; q'`
6376 { if $as_mkdir_p; then
6377 mkdir -p "$ac_dir"
6378 else
6379 as_dir="$ac_dir"
6380 as_dirs=
6381 while test ! -d "$as_dir"; do
6382 as_dirs="$as_dir $as_dirs"
6383 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6385 X"$as_dir" : 'X\(//\)[^/]' \| \
6386 X"$as_dir" : 'X\(//\)$' \| \
6387 X"$as_dir" : 'X\(/\)' \| \
6388 . : '\(.\)' 2>/dev/null ||
6389 echo X"$as_dir" |
6390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6391 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6392 /^X\(\/\/\)$/{ s//\1/; q; }
6393 /^X\(\/\).*/{ s//\1/; q; }
6394 s/.*/./; q'`
6395 done
6396 test ! -n "$as_dirs" || mkdir $as_dirs
6397 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6398 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6399 { (exit 1); exit 1; }; }; }
6401 rm -f $ac_file
6402 mv $tmp/config.h $ac_file
6404 else
6405 cat $tmp/config.h
6406 rm -f $tmp/config.h
6408 done
6409 _ACEOF
6410 cat >>$CONFIG_STATUS <<\_ACEOF
6413 # CONFIG_COMMANDS section.
6415 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6416 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6417 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6418 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6419 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6420 X"$ac_dest" : 'X\(//\)[^/]' \| \
6421 X"$ac_dest" : 'X\(//\)$' \| \
6422 X"$ac_dest" : 'X\(/\)' \| \
6423 . : '\(.\)' 2>/dev/null ||
6424 echo X"$ac_dest" |
6425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6426 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6427 /^X\(\/\/\)$/{ s//\1/; q; }
6428 /^X\(\/\).*/{ s//\1/; q; }
6429 s/.*/./; q'`
6430 { if $as_mkdir_p; then
6431 mkdir -p "$ac_dir"
6432 else
6433 as_dir="$ac_dir"
6434 as_dirs=
6435 while test ! -d "$as_dir"; do
6436 as_dirs="$as_dir $as_dirs"
6437 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6438 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6439 X"$as_dir" : 'X\(//\)[^/]' \| \
6440 X"$as_dir" : 'X\(//\)$' \| \
6441 X"$as_dir" : 'X\(/\)' \| \
6442 . : '\(.\)' 2>/dev/null ||
6443 echo X"$as_dir" |
6444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6445 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6446 /^X\(\/\/\)$/{ s//\1/; q; }
6447 /^X\(\/\).*/{ s//\1/; q; }
6448 s/.*/./; q'`
6449 done
6450 test ! -n "$as_dirs" || mkdir $as_dirs
6451 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6452 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6453 { (exit 1); exit 1; }; }; }
6455 ac_builddir=.
6457 if test "$ac_dir" != .; then
6458 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6459 # A "../" for each directory in $ac_dir_suffix.
6460 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6461 else
6462 ac_dir_suffix= ac_top_builddir=
6465 case $srcdir in
6466 .) # No --srcdir option. We are building in place.
6467 ac_srcdir=.
6468 if test -z "$ac_top_builddir"; then
6469 ac_top_srcdir=.
6470 else
6471 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6472 fi ;;
6473 [\\/]* | ?:[\\/]* ) # Absolute path.
6474 ac_srcdir=$srcdir$ac_dir_suffix;
6475 ac_top_srcdir=$srcdir ;;
6476 *) # Relative path.
6477 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6478 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6479 esac
6481 # Do not use `cd foo && pwd` to compute absolute paths, because
6482 # the directories may not exist.
6483 case `pwd` in
6484 .) ac_abs_builddir="$ac_dir";;
6486 case "$ac_dir" in
6487 .) ac_abs_builddir=`pwd`;;
6488 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6489 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6490 esac;;
6491 esac
6492 case $ac_abs_builddir in
6493 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6495 case ${ac_top_builddir}. in
6496 .) ac_abs_top_builddir=$ac_abs_builddir;;
6497 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6498 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6499 esac;;
6500 esac
6501 case $ac_abs_builddir in
6502 .) ac_abs_srcdir=$ac_srcdir;;
6504 case $ac_srcdir in
6505 .) ac_abs_srcdir=$ac_abs_builddir;;
6506 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6507 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6508 esac;;
6509 esac
6510 case $ac_abs_builddir in
6511 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6513 case $ac_top_srcdir in
6514 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6515 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6516 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6517 esac;;
6518 esac
6521 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6522 echo "$as_me: executing $ac_dest commands" >&6;}
6523 case $ac_dest in
6524 default ) if test -n "$CONFIG_FILES"; then
6525 if test -n "${with_target_subdir}"; then
6526 # FIXME: We shouldn't need to set ac_file
6527 ac_file=Makefile
6528 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
6529 . ${toplevel_srcdir}/config-ml.in
6531 fi ;;
6532 esac
6533 done
6534 _ACEOF
6536 cat >>$CONFIG_STATUS <<\_ACEOF
6538 { (exit 0); exit 0; }
6539 _ACEOF
6540 chmod +x $CONFIG_STATUS
6541 ac_clean_files=$ac_clean_files_save
6544 # configure is writing to config.log, and then calls config.status.
6545 # config.status does its own redirection, appending to config.log.
6546 # Unfortunately, on DOS this fails, as config.log is still kept open
6547 # by configure, so config.status won't be able to write to it; its
6548 # output is simply discarded. So we exec the FD to /dev/null,
6549 # effectively closing config.log, so it can be properly (re)opened and
6550 # appended to by config.status. When coming back to configure, we
6551 # need to make the FD available again.
6552 if test "$no_create" != yes; then
6553 ac_cs_success=:
6554 ac_config_status_args=
6555 test "$silent" = yes &&
6556 ac_config_status_args="$ac_config_status_args --quiet"
6557 exec 5>/dev/null
6558 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6559 exec 5>>config.log
6560 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6561 # would make configure fail if this is the last instruction.
6562 $ac_cs_success || { (exit 1); exit 1; }