2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="server.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP RDYNAMIC GDBSERVER_DEPFILES GDBSERVER_LIBS USE_THREAD_DB LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --build=BUILD configure
for building on BUILD
[guessed
]
836 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
837 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
841 if test -n "$ac_init_help"; then
845 Some influential environment variables
:
846 CC C compiler
command
847 CFLAGS C compiler flags
848 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
849 nonstandard directory
<lib dir
>
850 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
851 headers
in a nonstandard directory
<include dir
>
854 Use these variables to override the choices made by
`configure' or to help
855 it to find libraries and programs with nonstandard names/locations.
860 if test "$ac_init_help" = "recursive"; then
861 # If there are subdirs, report their specific --help.
863 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
864 test -d $ac_dir || continue
867 if test "$ac_dir" != .; then
868 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
869 # A "../" for each directory in $ac_dir_suffix.
870 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
872 ac_dir_suffix= ac_top_builddir=
876 .) # No --srcdir option. We are building in place.
878 if test -z "$ac_top_builddir"; then
881 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
883 [\\/]* | ?:[\\/]* ) # Absolute path.
884 ac_srcdir=$srcdir$ac_dir_suffix;
885 ac_top_srcdir=$srcdir ;;
887 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
888 ac_top_srcdir=$ac_top_builddir$srcdir ;;
891 # Do not use `cd foo
&& pwd` to compute absolute paths, because
892 # the directories may not exist.
894 .) ac_abs_builddir="$ac_dir";;
897 .) ac_abs_builddir=`pwd`;;
898 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
899 *) ac_abs_builddir=`pwd`/"$ac_dir";;
902 case $ac_abs_builddir in
903 .) ac_abs_top_builddir=${ac_top_builddir}.;;
905 case ${ac_top_builddir}. in
906 .) ac_abs_top_builddir=$ac_abs_builddir;;
907 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
908 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
911 case $ac_abs_builddir in
912 .) ac_abs_srcdir=$ac_srcdir;;
915 .) ac_abs_srcdir=$ac_abs_builddir;;
916 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
917 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
920 case $ac_abs_builddir in
921 .) ac_abs_top_srcdir=$ac_top_srcdir;;
923 case $ac_top_srcdir in
924 .) ac_abs_top_srcdir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
926 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
953 Copyright (C) 2003 Free Software Foundation, Inc.
954 This configure script is free software; the Free Software Foundation
955 gives unlimited permission to copy, distribute and modify it.
961 This file contains any messages produced by compilers while
962 running configure, to aid debugging if configure makes a mistake.
964 It was created by $as_me, which was
965 generated by GNU Autoconf 2.59. Invocation command line was
976 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
977 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
978 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
979 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
980 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
982 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
983 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
985 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
986 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
987 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
988 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
989 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
990 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
991 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
999 test -z "$as_dir" && as_dir=.
1000 echo "PATH: $as_dir"
1015 # Keep a trace of the command line.
1016 # Strip out --no-create and --no-recursion so they do not pile up.
1017 # Strip out --silent because we don't want to record it for future runs.
1018 # Also quote any args containing shell meta-characters.
1019 # Make two passes to allow for proper duplicate-argument suppression.
1024 ac_must_keep_next=false
1030 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032 | -silent | --silent | --silen | --sile | --sil)
1034 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1038 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1040 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1041 if test $ac_must_keep_next = true; then
1042 ac_must_keep_next=false # Got value, back to normal.
1045 *=* | --config-cache | -C | -disable-* | --disable-* \
1046 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1047 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1048 | -with-* | --with-* | -without-* | --without-* | --x)
1049 case "$ac_configure_args0 " in
1050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1053 -* ) ac_must_keep_next=true ;;
1056 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1057 # Get rid of the leading space.
1063 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1064 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1066 # When interrupted or exit'd, cleanup temporary files, and complete
1067 # config.log. We remove comments because anyway the quotes in there
1068 # would cause problems or look ugly.
1069 # WARNING: Be sure not to use single quotes in there, as some shells,
1070 # such as our DU 5.0 friend, will then `close
' the trap.
1071 trap 'exit_status
=$?
1072 # Save into config.log some information that might help in debugging.
1077 ## ---------------- ##
1078 ## Cache variables. ##
1079 ## ---------------- ##
1082 # The following way of writing the cache mishandles newlines in values,
1085 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1088 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1093 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1100 ## ----------------- ##
1101 ## Output variables. ##
1102 ## ----------------- ##
1105 for ac_var
in $ac_subst_vars
1107 eval ac_val
=$
`echo $ac_var`
1108 echo "$ac_var='"'"'$ac_val'"'"'"
1112 if test -n "$ac_subst_files"; then
1119 for ac_var
in $ac_subst_files
1121 eval ac_val
=$
`echo $ac_var`
1122 echo "$ac_var='"'"'$ac_val'"'"'"
1127 if test -s confdefs.h
; then
1134 sed "/^$/d" confdefs.h |
sort
1137 test "$ac_signal" != 0 &&
1138 echo "$as_me: caught signal $ac_signal"
1139 echo "$as_me: exit $exit_status"
1141 rm -f core
*.core
&&
1142 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1145 for ac_signal in 1 2 13 15; do
1146 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1150 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1151 rm -rf conftest* confdefs.h
1152 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1155 # Predefined preprocessor variables.
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_NAME "$PACKAGE_NAME"
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_STRING "$PACKAGE_STRING"
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1182 # Let the site file select an alternate cache file if it wants to.
1183 # Prefer explicitly selected file to automatically selected ones.
1184 if test -z "$CONFIG_SITE"; then
1185 if test "x$prefix" != xNONE; then
1186 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1188 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1191 for ac_site_file in $CONFIG_SITE; do
1192 if test -r "$ac_site_file"; then
1193 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1194 echo "$as_me: loading site script $ac_site_file" >&6;}
1195 sed 's
/^
/|
/' "$ac_site_file" >&5
1200 if test -r "$cache_file"; then
1201 # Some versions of bash will fail to source /dev/null (special
1202 # files actually), so we avoid doing that.
1203 if test -f "$cache_file"; then
1204 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1205 echo "$as_me: loading cache $cache_file" >&6;}
1207 [\\/]* | ?:[\\/]* ) . $cache_file;;
1208 *) . ./$cache_file;;
1212 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1213 echo "$as_me: creating cache $cache_file" >&6;}
1217 # Check that the precious variables saved in the cache have kept the same
1219 ac_cache_corrupted=false
1220 for ac_var in `(set) 2>&1 |
1221 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1222 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1223 eval ac_new_set=\$ac_env_${ac_var}_set
1224 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1225 eval ac_new_val="\$ac_env_${ac_var}_value"
1226 case $ac_old_set,$ac_new_set in
1228 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1229 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1230 ac_cache_corrupted=: ;;
1232 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1233 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1234 ac_cache_corrupted=: ;;
1237 if test "x$ac_old_val" != "x$ac_new_val"; then
1238 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1239 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1240 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1241 echo "$as_me: former value: $ac_old_val" >&2;}
1242 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1243 echo "$as_me: current value: $ac_new_val" >&2;}
1244 ac_cache_corrupted=:
1247 # Pass precious variables to config.status.
1248 if test "$ac_new_set" = set; then
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1252 *) ac_arg=$ac_var=$ac_new_val ;;
1254 case " $ac_configure_args " in
1255 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1256 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1260 if $ac_cache_corrupted; then
1261 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1262 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1263 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1264 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1265 { (exit 1); exit 1; }; }
1269 ac_cpp='$CPP $CPPFLAGS'
1270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1271 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1292 ac_config_headers="$ac_config_headers config.h:config.in"
1296 ac_cpp='$CPP $CPPFLAGS'
1297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1298 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1300 if test -n "$ac_tool_prefix"; then
1301 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1302 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1303 echo "$as_me:$LINENO: checking for $ac_word" >&5
1304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1305 if test "${ac_cv_prog_CC+set}" = set; then
1306 echo $ECHO_N "(cached) $ECHO_C" >&6
1308 if test -n "$CC"; then
1309 ac_cv_prog_CC="$CC" # Let the user override the test.
1311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1315 test -z "$as_dir" && as_dir=.
1316 for ac_exec_ext in '' $ac_executable_extensions; do
1317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1318 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1328 if test -n "$CC"; then
1329 echo "$as_me:$LINENO: result: $CC" >&5
1330 echo "${ECHO_T}$CC" >&6
1332 echo "$as_me:$LINENO: result: no" >&5
1333 echo "${ECHO_T}no" >&6
1337 if test -z "$ac_cv_prog_CC"; then
1339 # Extract the first word of "gcc", so it can be a program name with args.
1340 set dummy gcc; ac_word=$2
1341 echo "$as_me:$LINENO: checking for $ac_word" >&5
1342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1343 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1344 echo $ECHO_N "(cached) $ECHO_C" >&6
1346 if test -n "$ac_ct_CC"; then
1347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1353 test -z "$as_dir" && as_dir=.
1354 for ac_exec_ext in '' $ac_executable_extensions; do
1355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1356 ac_cv_prog_ac_ct_CC="gcc"
1357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1366 if test -n "$ac_ct_CC"; then
1367 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1368 echo "${ECHO_T}$ac_ct_CC" >&6
1370 echo "$as_me:$LINENO: result: no" >&5
1371 echo "${ECHO_T}no" >&6
1379 if test -z "$CC"; then
1380 if test -n "$ac_tool_prefix"; then
1381 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1382 set dummy ${ac_tool_prefix}cc; ac_word=$2
1383 echo "$as_me:$LINENO: checking for $ac_word" >&5
1384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1385 if test "${ac_cv_prog_CC+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 if test -n "$CC"; then
1389 ac_cv_prog_CC="$CC" # Let the user override the test.
1391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1395 test -z "$as_dir" && as_dir=.
1396 for ac_exec_ext in '' $ac_executable_extensions; do
1397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1398 ac_cv_prog_CC="${ac_tool_prefix}cc"
1399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1408 if test -n "$CC"; then
1409 echo "$as_me:$LINENO: result: $CC" >&5
1410 echo "${ECHO_T}$CC" >&6
1412 echo "$as_me:$LINENO: result: no" >&5
1413 echo "${ECHO_T}no" >&6
1417 if test -z "$ac_cv_prog_CC"; then
1419 # Extract the first word of "cc", so it can be a program name with args.
1420 set dummy cc; ac_word=$2
1421 echo "$as_me:$LINENO: checking for $ac_word" >&5
1422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 if test -n "$ac_ct_CC"; then
1427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1433 test -z "$as_dir" && as_dir=.
1434 for ac_exec_ext in '' $ac_executable_extensions; do
1435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1436 ac_cv_prog_ac_ct_CC="cc"
1437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1445 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1446 if test -n "$ac_ct_CC"; then
1447 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1448 echo "${ECHO_T}$ac_ct_CC" >&6
1450 echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1460 if test -z "$CC"; then
1461 # Extract the first word of "cc", so it can be a program name with args.
1462 set dummy cc; ac_word=$2
1463 echo "$as_me:$LINENO: checking for $ac_word" >&5
1464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465 if test "${ac_cv_prog_CC+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 if test -n "$CC"; then
1469 ac_cv_prog_CC="$CC" # Let the user override the test.
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476 test -z "$as_dir" && as_dir=.
1477 for ac_exec_ext in '' $ac_executable_extensions; do
1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1480 ac_prog_rejected=yes
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490 if test $ac_prog_rejected = yes; then
1491 # We found a bogon in the path, so make sure we never use it.
1492 set dummy $ac_cv_prog_CC
1494 if test $# != 0; then
1495 # We chose a different compiler from the bogus one.
1496 # However, it has the same basename, so the bogon will be chosen
1497 # first if we set CC to just the basename; use the full file name.
1499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1505 if test -n "$CC"; then
1506 echo "$as_me:$LINENO: result: $CC" >&5
1507 echo "${ECHO_T}$CC" >&6
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1514 if test -z "$CC"; then
1515 if test -n "$ac_tool_prefix"; then
1518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545 if test -n "$CC"; then
1546 echo "$as_me:$LINENO: result: $CC" >&5
1547 echo "${ECHO_T}$CC" >&6
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1553 test -n "$CC" && break
1556 if test -z "$CC"; then
1560 # Extract the first word of "$ac_prog", so it can be a program name with args.
1561 set dummy $ac_prog; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 if test -n "$ac_ct_CC"; then
1568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 test -z "$as_dir" && as_dir=.
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577 ac_cv_prog_ac_ct_CC="$ac_prog"
1578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1587 if test -n "$ac_ct_CC"; then
1588 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1589 echo "${ECHO_T}$ac_ct_CC" >&6
1591 echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1595 test -n "$ac_ct_CC" && break
1604 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1605 See \`config.log' for more details.
" >&5
1606 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1607 See \
`config.log' for more details." >&2;}
1608 { (exit 1); exit 1; }; }
1610 # Provide some information about the compiler.
1611 echo "$as_me:$LINENO:" \
1612 "checking for C compiler version" >&5
1613 ac_compiler=`set X
$ac_compile; echo $2`
1614 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1615 (eval $ac_compiler --version </dev/null >&5) 2>&5
1617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1618 (exit $ac_status); }
1619 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1620 (eval $ac_compiler -v </dev/null >&5) 2>&5
1622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1623 (exit $ac_status); }
1624 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1625 (eval $ac_compiler -V </dev/null >&5) 2>&5
1627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1628 (exit $ac_status); }
1630 cat >conftest.$ac_ext <<_ACEOF
1633 cat confdefs.h >>conftest.$ac_ext
1634 cat >>conftest.$ac_ext <<_ACEOF
1635 /* end confdefs.h. */
1645 ac_clean_files_save=$ac_clean_files
1646 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1647 # Try to create an executable without -o first, disregard a.out.
1648 # It will help us diagnose broken compilers, and finding out an intuition
1650 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1651 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1652 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1653 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1654 (eval $ac_link_default) 2>&5
1656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1657 (exit $ac_status); }; then
1658 # Find the output, starting from the most likely. This scheme is
1659 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1662 # Be careful to initialize this variable, since it used to be cached.
1663 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1665 # b.out is created by i960 compilers.
1666 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1668 test -f "$ac_file" || continue
1670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1673 # This is the source file.
1676 # We found the default executable, but exeext='' is most
1680 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1681 # FIXME: I believe we export ac_cv_exeext for Libtool,
1682 # but it would be cool to find out if it's true. Does anybody
1683 # maintain Libtool? --akim.
1691 echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1694 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1695 See \`config.log
' for more details." >&5
1696 echo "$as_me: error: C compiler cannot create executables
1697 See \`config.log' for more details.
" >&2;}
1698 { (exit 77); exit 77; }; }
1701 ac_exeext=$ac_cv_exeext
1702 echo "$as_me:$LINENO: result
: $ac_file" >&5
1703 echo "${ECHO_T}$ac_file" >&6
1705 # Check the compiler produces executables we can run. If not, either
1706 # the compiler is broken, or we cross compile.
1707 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
1708 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
1709 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1710 # If not cross compiling, check that we can run a simple program.
1711 if test "$cross_compiling" != yes; then
1712 if { ac_try='./$ac_file'
1713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1716 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1717 (exit $ac_status); }; }; then
1720 if test "$cross_compiling" = maybe; then
1723 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
1724 If you meant to cross compile
, use \
`--host'.
1725 See \`config.log
' for more details." >&5
1726 echo "$as_me: error: cannot run C compiled programs.
1727 If you meant to cross compile, use \`--host'.
1728 See \
`config.log' for more details." >&2;}
1729 { (exit 1); exit 1; }; }
1733 echo "$as_me:$LINENO: result: yes" >&5
1734 echo "${ECHO_T}yes" >&6
1736 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1737 ac_clean_files=$ac_clean_files_save
1738 # Check the compiler produces executables we can run. If not, either
1739 # the compiler is broken, or we cross compile.
1740 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1741 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1742 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1743 echo "${ECHO_T}$cross_compiling" >&6
1745 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1746 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1748 (eval $ac_link) 2>&5
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }; then
1752 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1753 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1754 # work properly (i.e., refer to `conftest.exe'), while it won't with
1756 for ac_file
in conftest.exe conftest conftest.
*; do
1757 test -f "$ac_file" ||
continue
1759 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1760 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1767 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1768 See \`config.log' for more details." >&5
1769 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1770 See \`config.log' for more details." >&2;}
1771 { (exit 1); exit 1; }; }
1774 rm -f conftest
$ac_cv_exeext
1775 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1776 echo "${ECHO_T}$ac_cv_exeext" >&6
1778 rm -f conftest.
$ac_ext
1779 EXEEXT
=$ac_cv_exeext
1781 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1782 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1783 if test "${ac_cv_objext+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1786 cat >conftest.
$ac_ext <<_ACEOF
1789 cat confdefs.h
>>conftest.
$ac_ext
1790 cat >>conftest.
$ac_ext <<_ACEOF
1791 /* end confdefs.h. */
1801 rm -f conftest.o conftest.obj
1802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1803 (eval $ac_compile) 2>&5
1805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806 (exit $ac_status); }; then
1807 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1809 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1810 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1815 echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.
$ac_ext >&5
1818 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1819 See \`config.log' for more details." >&5
1820 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1821 See \`config.log' for more details." >&2;}
1822 { (exit 1); exit 1; }; }
1825 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1827 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1828 echo "${ECHO_T}$ac_cv_objext" >&6
1829 OBJEXT
=$ac_cv_objext
1831 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1832 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1833 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 cat >conftest.
$ac_ext <<_ACEOF
1839 cat confdefs.h
>>conftest.
$ac_ext
1840 cat >>conftest.
$ac_ext <<_ACEOF
1841 /* end confdefs.h. */
1854 rm -f conftest.
$ac_objext
1855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1856 (eval $ac_compile) 2>conftest.er1
1858 grep -v '^ *+' conftest.er1
>conftest.err
1860 cat conftest.err
>&5
1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862 (exit $ac_status); } &&
1863 { ac_try
='test -z "$ac_c_werror_flag"
1864 || test ! -s conftest.err'
1865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }; } &&
1870 { ac_try
='test -s conftest.$ac_objext'
1871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }; }; then
1878 echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.
$ac_ext >&5
1883 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1884 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1887 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1888 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1889 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1890 ac_test_CFLAGS
=${CFLAGS+set}
1891 ac_save_CFLAGS
=$CFLAGS
1893 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1894 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1895 if test "${ac_cv_prog_cc_g+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 cat >conftest.
$ac_ext <<_ACEOF
1901 cat confdefs.h
>>conftest.
$ac_ext
1902 cat >>conftest.
$ac_ext <<_ACEOF
1903 /* end confdefs.h. */
1913 rm -f conftest.
$ac_objext
1914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1915 (eval $ac_compile) 2>conftest.er1
1917 grep -v '^ *+' conftest.er1
>conftest.err
1919 cat conftest.err
>&5
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); } &&
1922 { ac_try
='test -z "$ac_c_werror_flag"
1923 || test ! -s conftest.err'
1924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }; } &&
1929 { ac_try
='test -s conftest.$ac_objext'
1930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }; }; then
1937 echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.
$ac_ext >&5
1942 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1944 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1945 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1946 if test "$ac_test_CFLAGS" = set; then
1947 CFLAGS
=$ac_save_CFLAGS
1948 elif test $ac_cv_prog_cc_g = yes; then
1949 if test "$GCC" = yes; then
1955 if test "$GCC" = yes; then
1961 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1962 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1963 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 ac_cv_prog_cc_stdc
=no
1968 cat >conftest.
$ac_ext <<_ACEOF
1971 cat confdefs.h
>>conftest.
$ac_ext
1972 cat >>conftest.
$ac_ext <<_ACEOF
1973 /* end confdefs.h. */
1976 #include <sys/types.h>
1977 #include <sys/stat.h>
1978 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1979 struct buf { int x; };
1980 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1981 static char *e (p, i)
1987 static char *f (char * (*g) (char **, int), char **p, ...)
1992 s = g (p, va_arg (v,int));
1997 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1998 function prototypes and stuff, but not '\xHH' hex character constants.
1999 These don't provoke an error unfortunately, instead are silently treated
2000 as 'x'. The following induces an error, until -std1 is added to get
2001 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2002 array size at least. It's necessary to write '\x00'==0 to get something
2003 that's true only with -std1. */
2004 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2006 int test (int i, double x);
2007 struct s1 {int (*f) (int a);};
2008 struct s2 {int (*f) (double a);};
2009 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2015 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2020 # Don't try gcc -ansi; that turns off useful extensions and
2021 # breaks some systems' header files.
2022 # AIX -qlanglvl=ansi
2023 # Ultrix and OSF/1 -std1
2024 # HP-UX 10.20 and later -Ae
2025 # HP-UX older versions -Aa -D_HPUX_SOURCE
2026 # SVR4 -Xc -D__EXTENSIONS__
2027 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2029 CC
="$ac_save_CC $ac_arg"
2030 rm -f conftest.
$ac_objext
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032 (eval $ac_compile) 2>conftest.er1
2034 grep -v '^ *+' conftest.er1
>conftest.err
2036 cat conftest.err
>&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); } &&
2039 { ac_try
='test -z "$ac_c_werror_flag"
2040 || test ! -s conftest.err'
2041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; } &&
2046 { ac_try
='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2052 ac_cv_prog_cc_stdc
=$ac_arg
2055 echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.
$ac_ext >&5
2059 rm -f conftest.err conftest.
$ac_objext
2061 rm -f conftest.
$ac_ext conftest.
$ac_objext
2066 case "x$ac_cv_prog_cc_stdc" in
2068 echo "$as_me:$LINENO: result: none needed" >&5
2069 echo "${ECHO_T}none needed" >&6 ;;
2071 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2072 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2073 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2076 # Some people use a C++ compiler to compile C. Since we use `exit',
2077 # in C++ we need to declare it. In case someone uses the same compiler
2078 # for both compiling C and C++ we need to have the C++ compiler decide
2079 # the declaration of exit, since it's the most demanding environment.
2080 cat >conftest.
$ac_ext <<_ACEOF
2085 rm -f conftest.
$ac_objext
2086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2087 (eval $ac_compile) 2>conftest.er1
2089 grep -v '^ *+' conftest.er1
>conftest.err
2091 cat conftest.err
>&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); } &&
2094 { ac_try
='test -z "$ac_c_werror_flag"
2095 || test ! -s conftest.err'
2096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; } &&
2101 { ac_try
='test -s conftest.$ac_objext'
2102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; }; then
2107 for ac_declaration
in \
2109 'extern "C" void std::exit (int) throw (); using std::exit;' \
2110 'extern "C" void std::exit (int); using std::exit;' \
2111 'extern "C" void exit (int) throw ();' \
2112 'extern "C" void exit (int);' \
2115 cat >conftest.
$ac_ext <<_ACEOF
2118 cat confdefs.h
>>conftest.
$ac_ext
2119 cat >>conftest.
$ac_ext <<_ACEOF
2120 /* end confdefs.h. */
2131 rm -f conftest.
$ac_objext
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133 (eval $ac_compile) 2>conftest.er1
2135 grep -v '^ *+' conftest.er1
>conftest.err
2137 cat conftest.err
>&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); } &&
2140 { ac_try
='test -z "$ac_c_werror_flag"
2141 || test ! -s conftest.err'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; } &&
2147 { ac_try
='test -s conftest.$ac_objext'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; }; then
2155 echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.
$ac_ext >&5
2160 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2161 cat >conftest.
$ac_ext <<_ACEOF
2164 cat confdefs.h
>>conftest.
$ac_ext
2165 cat >>conftest.
$ac_ext <<_ACEOF
2166 /* end confdefs.h. */
2176 rm -f conftest.
$ac_objext
2177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2178 (eval $ac_compile) 2>conftest.er1
2180 grep -v '^ *+' conftest.er1
>conftest.err
2182 cat conftest.err
>&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); } &&
2185 { ac_try
='test -z "$ac_c_werror_flag"
2186 || test ! -s conftest.err'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; } &&
2192 { ac_try
='test -s conftest.$ac_objext'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2200 echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.
$ac_ext >&5
2204 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2207 if test -n "$ac_declaration"; then
2208 echo '#ifdef __cplusplus' >>confdefs.h
2209 echo $ac_declaration >>confdefs.h
2210 echo '#endif' >>confdefs.h
2214 echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.
$ac_ext >&5
2218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2220 ac_cpp
='$CPP $CPPFLAGS'
2221 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2222 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2223 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2227 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
2228 if test -f $ac_dir/install-sh
; then
2230 ac_install_sh
="$ac_aux_dir/install-sh -c"
2232 elif test -f $ac_dir/install.sh
; then
2234 ac_install_sh
="$ac_aux_dir/install.sh -c"
2236 elif test -f $ac_dir/shtool
; then
2238 ac_install_sh
="$ac_aux_dir/shtool install -c"
2242 if test -z "$ac_aux_dir"; then
2243 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2244 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2245 { (exit 1); exit 1; }; }
2247 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
2248 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
2249 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2251 # Make sure we can run config.sub.
2252 $ac_config_sub sun4
>/dev
/null
2>&1 ||
2253 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2254 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2255 { (exit 1); exit 1; }; }
2257 echo "$as_me:$LINENO: checking build system type" >&5
2258 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2259 if test "${ac_cv_build+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 ac_cv_build_alias
=$build_alias
2263 test -z "$ac_cv_build_alias" &&
2264 ac_cv_build_alias
=`$ac_config_guess`
2265 test -z "$ac_cv_build_alias" &&
2266 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2267 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2268 { (exit 1); exit 1; }; }
2269 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
2270 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2271 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2272 { (exit 1); exit 1; }; }
2275 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2276 echo "${ECHO_T}$ac_cv_build" >&6
2278 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2279 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2280 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2283 echo "$as_me:$LINENO: checking host system type" >&5
2284 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2285 if test "${ac_cv_host+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 ac_cv_host_alias
=$host_alias
2289 test -z "$ac_cv_host_alias" &&
2290 ac_cv_host_alias
=$ac_cv_build_alias
2291 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
2292 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2293 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2294 { (exit 1); exit 1; }; }
2297 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2298 echo "${ECHO_T}$ac_cv_host" >&6
2300 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2301 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2302 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2305 echo "$as_me:$LINENO: checking target system type" >&5
2306 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2307 if test "${ac_cv_target+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 ac_cv_target_alias
=$target_alias
2311 test "x$ac_cv_target_alias" = "x" &&
2312 ac_cv_target_alias
=$ac_cv_host_alias
2313 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
2314 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2315 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2316 { (exit 1); exit 1; }; }
2319 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2320 echo "${ECHO_T}$ac_cv_target" >&6
2321 target
=$ac_cv_target
2322 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2323 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2324 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2327 # The aliases save the names the user supplied, while $host etc.
2328 # will get canonicalized.
2329 test -n "$target_alias" &&
2330 test "$program_prefix$program_suffix$program_transform_name" = \
2332 program_prefix
=${target_alias}-
2334 # Find a good install program. We prefer a C program (faster),
2335 # so one script is as good as another. But avoid the broken or
2336 # incompatible versions:
2337 # SysV /etc/install, /usr/sbin/install
2338 # SunOS /usr/etc/install
2339 # IRIX /sbin/install
2341 # AmigaOS /C/install, which installs bootblocks on floppy discs
2342 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2343 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2344 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2345 # OS/2's system install, which has a completely different semantic
2346 # ./install, which can be erroneously created by make from ./install.sh.
2347 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2348 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2349 if test -z "$INSTALL"; then
2350 if test "${ac_cv_path_install+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2357 test -z "$as_dir" && as_dir
=.
2358 # Account for people who put trailing slashes in PATH elements.
2360 .
/ | .
// |
/cC
/* | \
2361 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2362 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2365 # OSF1 and SCO ODT 3.0 have their own names for install.
2366 # Don't use installbsd from OSF since it installs stuff as root
2368 for ac_prog
in ginstall scoinst
install; do
2369 for ac_exec_ext
in '' $ac_executable_extensions; do
2370 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2371 if test $ac_prog = install &&
2372 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2373 # AIX install. It has an incompatible calling convention.
2375 elif test $ac_prog = install &&
2376 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2377 # program-specific install script used by HP pwplus--don't use.
2380 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2392 if test "${ac_cv_path_install+set}" = set; then
2393 INSTALL
=$ac_cv_path_install
2395 # As a last resort, use the slow shell script. We don't cache a
2396 # path for INSTALL within a source directory, because that will
2397 # break other packages using the cache if that directory is
2398 # removed, or if the path is relative.
2399 INSTALL
=$ac_install_sh
2402 echo "$as_me:$LINENO: result: $INSTALL" >&5
2403 echo "${ECHO_T}$INSTALL" >&6
2405 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2406 # It thinks the first close brace ends the variable substitution.
2407 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2409 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2411 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2416 ac_cpp
='$CPP $CPPFLAGS'
2417 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2418 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2419 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2420 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2421 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2422 # On Suns, sometimes $CPP names a directory.
2423 if test -n "$CPP" && test -d "$CPP"; then
2426 if test -z "$CPP"; then
2427 if test "${ac_cv_prog_CPP+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 # Double quotes because CPP needs to be expanded
2431 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2434 for ac_c_preproc_warn_flag
in '' yes
2436 # Use a header file that comes with gcc, so configuring glibc
2437 # with a fresh cross-compiler works.
2438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2439 # <limits.h> exists even on freestanding compilers.
2440 # On the NeXT, cc -E runs the code through the compiler's parser,
2441 # not just through cpp. "Syntax error" is here to catch this case.
2442 cat >conftest.
$ac_ext <<_ACEOF
2445 cat confdefs.h
>>conftest.
$ac_ext
2446 cat >>conftest.
$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2449 # include <limits.h>
2451 # include <assert.h>
2455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2456 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2458 grep -v '^ *+' conftest.er1
>conftest.err
2460 cat conftest.err
>&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } >/dev
/null
; then
2463 if test -s conftest.err
; then
2464 ac_cpp_err
=$ac_c_preproc_warn_flag
2465 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2472 if test -z "$ac_cpp_err"; then
2475 echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.
$ac_ext >&5
2478 # Broken: fails on valid input.
2481 rm -f conftest.err conftest.
$ac_ext
2483 # OK, works on sane cases. Now check whether non-existent headers
2484 # can be detected and how.
2485 cat >conftest.
$ac_ext <<_ACEOF
2488 cat confdefs.h
>>conftest.
$ac_ext
2489 cat >>conftest.
$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2491 #include <ac_nonexistent.h>
2493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2494 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2496 grep -v '^ *+' conftest.er1
>conftest.err
2498 cat conftest.err
>&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); } >/dev
/null
; then
2501 if test -s conftest.err
; then
2502 ac_cpp_err
=$ac_c_preproc_warn_flag
2503 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2510 if test -z "$ac_cpp_err"; then
2511 # Broken: success on invalid input.
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.
$ac_ext >&5
2517 # Passes both tests.
2521 rm -f conftest.err conftest.
$ac_ext
2524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2525 rm -f conftest.err conftest.
$ac_ext
2526 if $ac_preproc_ok; then
2538 echo "$as_me:$LINENO: result: $CPP" >&5
2539 echo "${ECHO_T}$CPP" >&6
2541 for ac_c_preproc_warn_flag
in '' yes
2543 # Use a header file that comes with gcc, so configuring glibc
2544 # with a fresh cross-compiler works.
2545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2546 # <limits.h> exists even on freestanding compilers.
2547 # On the NeXT, cc -E runs the code through the compiler's parser,
2548 # not just through cpp. "Syntax error" is here to catch this case.
2549 cat >conftest.
$ac_ext <<_ACEOF
2552 cat confdefs.h
>>conftest.
$ac_ext
2553 cat >>conftest.
$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2556 # include <limits.h>
2558 # include <assert.h>
2562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2563 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2565 grep -v '^ *+' conftest.er1
>conftest.err
2567 cat conftest.err
>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } >/dev
/null
; then
2570 if test -s conftest.err
; then
2571 ac_cpp_err
=$ac_c_preproc_warn_flag
2572 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2579 if test -z "$ac_cpp_err"; then
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.
$ac_ext >&5
2585 # Broken: fails on valid input.
2588 rm -f conftest.err conftest.
$ac_ext
2590 # OK, works on sane cases. Now check whether non-existent headers
2591 # can be detected and how.
2592 cat >conftest.
$ac_ext <<_ACEOF
2595 cat confdefs.h
>>conftest.
$ac_ext
2596 cat >>conftest.
$ac_ext <<_ACEOF
2597 /* end confdefs.h. */
2598 #include <ac_nonexistent.h>
2600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2601 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2603 grep -v '^ *+' conftest.er1
>conftest.err
2605 cat conftest.err
>&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } >/dev
/null
; then
2608 if test -s conftest.err
; then
2609 ac_cpp_err
=$ac_c_preproc_warn_flag
2610 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2617 if test -z "$ac_cpp_err"; then
2618 # Broken: success on invalid input.
2621 echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.
$ac_ext >&5
2624 # Passes both tests.
2628 rm -f conftest.err conftest.
$ac_ext
2631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2632 rm -f conftest.err conftest.
$ac_ext
2633 if $ac_preproc_ok; then
2636 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2637 See \`config.log' for more details." >&5
2638 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2639 See \`config.log' for more details." >&2;}
2640 { (exit 1); exit 1; }; }
2644 ac_cpp
='$CPP $CPPFLAGS'
2645 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2650 echo "$as_me:$LINENO: checking for egrep" >&5
2651 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2652 if test "${ac_cv_prog_egrep+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2656 then ac_cv_prog_egrep
='grep -E'
2657 else ac_cv_prog_egrep
='egrep'
2660 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2661 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2662 EGREP
=$ac_cv_prog_egrep
2665 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2666 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2667 if test "${ac_cv_header_stdc+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 cat >conftest.
$ac_ext <<_ACEOF
2673 cat confdefs.h
>>conftest.
$ac_ext
2674 cat >>conftest.
$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2689 rm -f conftest.
$ac_objext
2690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691 (eval $ac_compile) 2>conftest.er1
2693 grep -v '^ *+' conftest.er1
>conftest.err
2695 cat conftest.err
>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } &&
2698 { ac_try
='test -z "$ac_c_werror_flag"
2699 || test ! -s conftest.err'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } &&
2705 { ac_try
='test -s conftest.$ac_objext'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2711 ac_cv_header_stdc
=yes
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.
$ac_ext >&5
2716 ac_cv_header_stdc
=no
2718 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2720 if test $ac_cv_header_stdc = yes; then
2721 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2722 cat >conftest.
$ac_ext <<_ACEOF
2725 cat confdefs.h
>>conftest.
$ac_ext
2726 cat >>conftest.
$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2732 $EGREP "memchr" >/dev
/null
2>&1; then
2735 ac_cv_header_stdc
=no
2741 if test $ac_cv_header_stdc = yes; then
2742 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2743 cat >conftest.
$ac_ext <<_ACEOF
2746 cat confdefs.h
>>conftest.
$ac_ext
2747 cat >>conftest.
$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2753 $EGREP "free" >/dev
/null
2>&1; then
2756 ac_cv_header_stdc
=no
2762 if test $ac_cv_header_stdc = yes; then
2763 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2764 if test "$cross_compiling" = yes; then
2767 cat >conftest.
$ac_ext <<_ACEOF
2770 cat confdefs.h
>>conftest.
$ac_ext
2771 cat >>conftest.
$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2774 #if ((' ' & 0x0FF) == 0x020)
2775 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2776 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2778 # define ISLOWER(c) \
2779 (('a' <= (c) && (c) <= 'i') \
2780 || ('j' <= (c) && (c) <= 'r') \
2781 || ('s' <= (c) && (c) <= 'z'))
2782 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2785 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2790 for (i = 0; i < 256; i++)
2791 if (XOR (islower (i), ISLOWER (i))
2792 || toupper (i) != TOUPPER (i))
2797 rm -f conftest
$ac_exeext
2798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2799 (eval $ac_link) 2>&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2810 echo "$as_me: program exited with status $ac_status" >&5
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.
$ac_ext >&5
2815 ac_cv_header_stdc
=no
2817 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2821 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2822 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2823 if test $ac_cv_header_stdc = yes; then
2825 cat >>confdefs.h
<<\_ACEOF
2826 #define STDC_HEADERS 1
2832 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2842 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2843 inttypes.h stdint.h unistd.h
2845 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2846 echo "$as_me:$LINENO: checking for $ac_header" >&5
2847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 cat >conftest.
$ac_ext <<_ACEOF
2854 cat confdefs.h
>>conftest.
$ac_ext
2855 cat >>conftest.
$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2857 $ac_includes_default
2859 #include <$ac_header>
2861 rm -f conftest.
$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>conftest.er1
2865 grep -v '^ *+' conftest.er1
>conftest.err
2867 cat conftest.err
>&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try
='test -z "$ac_c_werror_flag"
2871 || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try
='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 eval "$as_ac_Header=yes"
2885 echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.
$ac_ext >&5
2888 eval "$as_ac_Header=no"
2890 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2895 cat >>confdefs.h
<<_ACEOF
2896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2915 for ac_header
in sgtty.h termio.h termios.h sys
/reg.h string.h proc_service.h sys
/procfs.h thread_db.h linux
/elf.h stdlib.h unistd.h
2917 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2919 echo "$as_me:$LINENO: checking for $ac_header" >&5
2920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2927 # Is the header compilable?
2928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2930 cat >conftest.
$ac_ext <<_ACEOF
2933 cat confdefs.h
>>conftest.
$ac_ext
2934 cat >>conftest.
$ac_ext <<_ACEOF
2935 /* end confdefs.h. */
2936 $ac_includes_default
2937 #include <$ac_header>
2939 rm -f conftest.
$ac_objext
2940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941 (eval $ac_compile) 2>conftest.er1
2943 grep -v '^ *+' conftest.er1
>conftest.err
2945 cat conftest.err
>&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try
='test -z "$ac_c_werror_flag"
2949 || test ! -s conftest.err'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; } &&
2955 { ac_try
='test -s conftest.$ac_objext'
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2961 ac_header_compiler
=yes
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.
$ac_ext >&5
2966 ac_header_compiler
=no
2968 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2970 echo "${ECHO_T}$ac_header_compiler" >&6
2972 # Is the header present?
2973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2975 cat >conftest.
$ac_ext <<_ACEOF
2978 cat confdefs.h
>>conftest.
$ac_ext
2979 cat >>conftest.
$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2981 #include <$ac_header>
2983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2984 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2986 grep -v '^ *+' conftest.er1
>conftest.err
2988 cat conftest.err
>&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } >/dev
/null
; then
2991 if test -s conftest.err
; then
2992 ac_cpp_err
=$ac_c_preproc_warn_flag
2993 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3000 if test -z "$ac_cpp_err"; then
3001 ac_header_preproc
=yes
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.
$ac_ext >&5
3006 ac_header_preproc
=no
3008 rm -f conftest.err conftest.
$ac_ext
3009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3010 echo "${ECHO_T}$ac_header_preproc" >&6
3012 # So? What about this header?
3013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3019 ac_header_preproc
=yes
3022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3036 ## ------------------------------------------ ##
3037 ## Report this to the AC_PACKAGE_NAME lists. ##
3038 ## ------------------------------------------ ##
3041 sed "s/^/$as_me: WARNING: /" >&2
3044 echo "$as_me:$LINENO: checking for $ac_header" >&5
3045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 eval "$as_ac_Header=\$ac_header_preproc"
3051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3056 cat >>confdefs.h
<<_ACEOF
3057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3065 echo "$as_me:$LINENO: checking whether strerror must be declared" >&5
3066 echo $ECHO_N "checking whether strerror must be declared... $ECHO_C" >&6
3067 if test "${bfd_cv_decl_needed_strerror+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 cat >conftest.
$ac_ext <<_ACEOF
3073 cat confdefs.h
>>conftest.
$ac_ext
3074 cat >>conftest.
$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3078 #ifdef HAVE_STRING_H
3081 #ifdef HAVE_STRINGS_H
3082 #include <strings.h>
3085 #ifdef HAVE_STDLIB_H
3088 #ifdef HAVE_UNISTD_H
3094 char *(*pfn) = (char *(*)) strerror
3099 rm -f conftest.
$ac_objext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>conftest.er1
3103 grep -v '^ *+' conftest.er1
>conftest.err
3105 cat conftest.err
>&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try
='test -z "$ac_c_werror_flag"
3109 || test ! -s conftest.err'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; } &&
3115 { ac_try
='test -s conftest.$ac_objext'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 bfd_cv_decl_needed_strerror
=no
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.
$ac_ext >&5
3126 bfd_cv_decl_needed_strerror
=yes
3128 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3131 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strerror" >&5
3132 echo "${ECHO_T}$bfd_cv_decl_needed_strerror" >&6
3133 if test $bfd_cv_decl_needed_strerror = yes; then
3135 cat >>confdefs.h
<<\_ACEOF
3136 #define NEED_DECLARATION_STRERROR 1
3142 .
${srcdir}/configure.srv
3144 if test "${srv_linux_usrregs}" = "yes"; then
3145 cat >>confdefs.h
<<\_ACEOF
3146 #define HAVE_LINUX_USRREGS 1
3151 if test "${srv_linux_regsets}" = "yes"; then
3152 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
3153 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
3154 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 cat >conftest.
$ac_ext <<_ACEOF
3160 cat confdefs.h
>>conftest.
$ac_ext
3161 cat >>conftest.
$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3163 #include <sys/ptrace.h>
3172 rm -f conftest.
$ac_objext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174 (eval $ac_compile) 2>conftest.er1
3176 grep -v '^ *+' conftest.er1
>conftest.err
3178 cat conftest.err
>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try
='test -z "$ac_c_werror_flag"
3182 || test ! -s conftest.err'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try
='test -s conftest.$ac_objext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 gdbsrv_cv_have_ptrace_getregs
=yes
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.
$ac_ext >&5
3199 gdbsrv_cv_have_ptrace_getregs
=no
3201 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3204 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getregs" >&5
3205 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getregs" >&6
3206 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
3207 cat >>confdefs.h
<<\_ACEOF
3208 #define HAVE_LINUX_REGSETS 1
3213 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
3214 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
3215 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 cat >conftest.
$ac_ext <<_ACEOF
3221 cat confdefs.h
>>conftest.
$ac_ext
3222 cat >>conftest.
$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3224 #include <sys/ptrace.h>
3233 rm -f conftest.
$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>conftest.er1
3237 grep -v '^ *+' conftest.er1
>conftest.err
3239 cat conftest.err
>&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try
='test -z "$ac_c_werror_flag"
3243 || test ! -s conftest.err'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try
='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 gdbsrv_cv_have_ptrace_getfpxregs
=yes
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.
$ac_ext >&5
3260 gdbsrv_cv_have_ptrace_getfpxregs
=no
3262 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3265 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
3266 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getfpxregs" >&6
3267 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
3268 cat >>confdefs.h
<<\_ACEOF
3269 #define HAVE_PTRACE_GETFPXREGS 1
3275 if test "$ac_cv_header_sys_procfs_h" = yes; then
3276 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
3277 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
3278 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 cat >conftest.
$ac_ext <<_ACEOF
3284 cat confdefs.h
>>conftest.
$ac_ext
3285 cat >>conftest.
$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3289 #include <sys/procfs.h>
3298 rm -f conftest.
$ac_objext
3299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3300 (eval $ac_compile) 2>conftest.er1
3302 grep -v '^ *+' conftest.er1
>conftest.err
3304 cat conftest.err
>&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } &&
3307 { ac_try
='test -z "$ac_c_werror_flag"
3308 || test ! -s conftest.err'
3309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; } &&
3314 { ac_try
='test -s conftest.$ac_objext'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
3320 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.
$ac_ext >&5
3325 bfd_cv_have_sys_procfs_type_lwpid_t
=no
3328 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3331 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
3333 cat >>confdefs.h
<<\_ACEOF
3334 #define HAVE_LWPID_T 1
3338 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
3339 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
3341 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
3342 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
3343 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 cat >conftest.
$ac_ext <<_ACEOF
3349 cat confdefs.h
>>conftest.
$ac_ext
3350 cat >>conftest.
$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3354 #include <sys/procfs.h>
3363 rm -f conftest.
$ac_objext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>conftest.er1
3367 grep -v '^ *+' conftest.er1
>conftest.err
3369 cat conftest.err
>&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try
='test -z "$ac_c_werror_flag"
3373 || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try
='test -s conftest.$ac_objext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3385 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.
$ac_ext >&5
3390 bfd_cv_have_sys_procfs_type_psaddr_t
=no
3393 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3396 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
3398 cat >>confdefs.h
<<\_ACEOF
3399 #define HAVE_PSADDR_T 1
3403 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
3404 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
3406 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
3407 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
3408 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 cat >conftest.
$ac_ext <<_ACEOF
3414 cat confdefs.h
>>conftest.
$ac_ext
3415 cat >>conftest.
$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3419 #include <sys/procfs.h>
3428 rm -f conftest.
$ac_objext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430 (eval $ac_compile) 2>conftest.er1
3432 grep -v '^ *+' conftest.er1
>conftest.err
3434 cat conftest.err
>&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try
='test -z "$ac_c_werror_flag"
3438 || test ! -s conftest.err'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; } &&
3444 { ac_try
='test -s conftest.$ac_objext'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; }; then
3450 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.
$ac_ext >&5
3455 bfd_cv_have_sys_procfs_type_prgregset_t
=no
3458 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3461 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
3463 cat >>confdefs.h
<<\_ACEOF
3464 #define HAVE_PRGREGSET_T 1
3468 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
3469 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
3471 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
3472 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
3473 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 cat >conftest.
$ac_ext <<_ACEOF
3479 cat confdefs.h
>>conftest.
$ac_ext
3480 cat >>conftest.
$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3484 #include <sys/procfs.h>
3493 rm -f conftest.
$ac_objext
3494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495 (eval $ac_compile) 2>conftest.er1
3497 grep -v '^ *+' conftest.er1
>conftest.err
3499 cat conftest.err
>&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } &&
3502 { ac_try
='test -z "$ac_c_werror_flag"
3503 || test ! -s conftest.err'
3504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; } &&
3509 { ac_try
='test -s conftest.$ac_objext'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; }; then
3515 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.
$ac_ext >&5
3520 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
3523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3526 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
3528 cat >>confdefs.h
<<\_ACEOF
3529 #define HAVE_PRFPREGSET_T 1
3533 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
3534 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
3539 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
3540 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
3541 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
3542 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 if test "$cross_compiling" = yes; then
3546 gdb_cv_prfpregset_t_broken
=yes
3548 cat >conftest.
$ac_ext <<_ACEOF
3551 cat confdefs.h
>>conftest.
$ac_ext
3552 cat >>conftest.
$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554 #include <sys/procfs.h>
3557 if (sizeof (prfpregset_t) == sizeof (void *))
3562 rm -f conftest
$ac_exeext
3563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3564 (eval $ac_link) 2>&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; }; then
3573 gdb_cv_prfpregset_t_broken
=no
3575 echo "$as_me: program exited with status $ac_status" >&5
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.
$ac_ext >&5
3580 gdb_cv_prfpregset_t_broken
=yes
3582 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3586 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
3587 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
3588 if test $gdb_cv_prfpregset_t_broken = yes; then
3589 cat >>confdefs.h
<<\_ACEOF
3590 #define PRFPREGSET_T_BROKEN 1
3596 echo "$as_me:$LINENO: checking for elf_fpregset_t in sys/procfs.h" >&5
3597 echo $ECHO_N "checking for elf_fpregset_t in sys/procfs.h... $ECHO_C" >&6
3598 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 cat >conftest.
$ac_ext <<_ACEOF
3604 cat confdefs.h
>>conftest.
$ac_ext
3605 cat >>conftest.
$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3609 #include <sys/procfs.h>
3618 rm -f conftest.
$ac_objext
3619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3620 (eval $ac_compile) 2>conftest.er1
3622 grep -v '^ *+' conftest.er1
>conftest.err
3624 cat conftest.err
>&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } &&
3627 { ac_try
='test -z "$ac_c_werror_flag"
3628 || test ! -s conftest.err'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; } &&
3634 { ac_try
='test -s conftest.$ac_objext'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; }; then
3640 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.
$ac_ext >&5
3645 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
3648 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3651 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
3653 cat >>confdefs.h
<<\_ACEOF
3654 #define HAVE_ELF_FPREGSET_T 1
3658 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
3659 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6
3663 srv_thread_depfiles
=
3667 if test "$srv_linux_thread_db" = "yes"; then
3668 echo "$as_me:$LINENO: checking for libthread_db" >&5
3669 echo $ECHO_N "checking for libthread_db... $ECHO_C" >&6
3670 if test "${srv_cv_thread_db+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 LIBS
="$LIBS -lthread_db"
3675 cat >conftest.
$ac_ext <<_ACEOF
3678 cat confdefs.h
>>conftest.
$ac_ext
3679 cat >>conftest.
$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3681 void ps_pglobal_lookup() {}
3683 void ps_pdwrite() {}
3684 void ps_lgetregs() {}
3685 void ps_lsetregs() {}
3686 void ps_lgetfpregs() {}
3687 void ps_lsetfpregs() {}
3688 void ps_get_thread_area() {}
3698 rm -f conftest.
$ac_objext conftest
$ac_exeext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3700 (eval $ac_link) 2>conftest.er1
3702 grep -v '^ *+' conftest.er1
>conftest.err
3704 cat conftest.err
>&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } &&
3707 { ac_try
='test -z "$ac_c_werror_flag"
3708 || test ! -s conftest.err'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; } &&
3714 { ac_try
='test -s conftest$ac_exeext'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 srv_cv_thread_db
="-lthread_db"
3722 echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.
$ac_ext >&5
3727 if test "$prefix" = "/usr" ||
test "$prefix" = "NONE"; then
3728 thread_db
="/lib/libthread_db.so.1"
3730 thread_db
='$prefix/lib/libthread_db.so.1'
3732 LIBS
="$old_LIBS `eval echo "$thread_db"`"
3733 cat >conftest.
$ac_ext <<_ACEOF
3736 cat confdefs.h
>>conftest.
$ac_ext
3737 cat >>conftest.
$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3739 void ps_pglobal_lookup() {}
3741 void ps_pdwrite() {}
3742 void ps_lgetregs() {}
3743 void ps_lsetregs() {}
3744 void ps_lgetfpregs() {}
3745 void ps_lsetfpregs() {}
3746 void ps_get_thread_area() {}
3756 rm -f conftest.
$ac_objext conftest
$ac_exeext
3757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3758 (eval $ac_link) 2>conftest.er1
3760 grep -v '^ *+' conftest.er1
>conftest.err
3762 cat conftest.err
>&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); } &&
3765 { ac_try
='test -z "$ac_c_werror_flag"
3766 || test ! -s conftest.err'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; } &&
3772 { ac_try
='test -s conftest$ac_exeext'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; }; then
3778 srv_cv_thread_db
="$thread_db"
3780 echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.
$ac_ext >&5
3785 rm -f conftest.err conftest.
$ac_objext \
3786 conftest
$ac_exeext conftest.
$ac_ext
3789 echo "$as_me:$LINENO: result: $srv_cv_thread_db" >&5
3790 echo "${ECHO_T}$srv_cv_thread_db" >&6
3794 rm -f conftest.err conftest.
$ac_objext \
3795 conftest
$ac_exeext conftest.
$ac_ext
3796 if test "$srv_cv_thread_db" = no
; then
3797 { echo "$as_me:$LINENO: WARNING: Could not find libthread_db." >&5
3798 echo "$as_me: WARNING: Could not find libthread_db." >&2;}
3799 { echo "$as_me:$LINENO: WARNING: Disabling thread support in gdbserver." >&5
3800 echo "$as_me: WARNING: Disabling thread support in gdbserver." >&2;}
3801 srv_linux_thread_db
=no
3803 srv_libs
="$srv_cv_thread_db"
3805 old_LDFLAGS
="$LDFLAGS"
3806 LDFLAGS
="$LDFLAGS -rdynamic"
3807 cat >conftest.
$ac_ext <<_ACEOF
3810 cat confdefs.h
>>conftest.
$ac_ext
3811 cat >>conftest.
$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3822 rm -f conftest.
$ac_objext conftest
$ac_exeext
3823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3824 (eval $ac_link) 2>conftest.er1
3826 grep -v '^ *+' conftest.er1
>conftest.err
3828 cat conftest.err
>&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } &&
3831 { ac_try
='test -z "$ac_c_werror_flag"
3832 || test ! -s conftest.err'
3833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }; } &&
3838 { ac_try
='test -s conftest$ac_exeext'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; }; then
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.
$ac_ext >&5
3851 rm -f conftest.err conftest.
$ac_objext \
3852 conftest
$ac_exeext conftest.
$ac_ext
3854 LDFLAGS
="$old_LDFLAGS"
3857 if test "$srv_linux_thread_db" = "yes"; then
3858 srv_thread_depfiles
="thread-db.o proc-service.o"
3859 USE_THREAD_DB
="-DUSE_THREAD_DB"
3862 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_thread_depfiles"
3863 GDBSERVER_LIBS
="$srv_libs"
3869 ac_config_files
="$ac_config_files Makefile"
3870 ac_config_commands
="$ac_config_commands default"
3871 cat >confcache
<<\_ACEOF
3872 # This file is a shell script that caches the results of configure
3873 # tests run on this system so they can be shared between configure
3874 # scripts and configure runs, see configure's option --config-cache.
3875 # It is not useful on other systems. If it contains results you don't
3876 # want to keep, you may remove or edit it.
3878 # config.status only pays attention to the cache file if you give it
3879 # the --recheck option to rerun configure.
3881 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3882 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3887 # The following way of writing the cache mishandles newlines in values,
3888 # but we know of no workaround that is simple, portable, and efficient.
3889 # So, don't put newlines in cache variables' values.
3890 # Ultrix sh set writes to stderr and can't be redirected directly,
3891 # and sets the high bit in the cache file unless we assign to the vars.
3894 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3896 # `set' does not quote correctly, so add quotes (double-quote
3897 # substitution turns \\\\ into \\, and sed turns \\ into \).
3900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3903 # `set' quotes correctly as required by POSIX, so do not add quotes.
3905 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3912 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3914 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3916 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
3917 if test -w $cache_file; then
3918 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3919 cat confcache
>$cache_file
3921 echo "not updating unwritable cache $cache_file"
3926 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3927 # Let make expand exec_prefix.
3928 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3930 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3931 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3932 # trailing colons and then remove the whole line if VPATH becomes empty
3933 # (actually we leave an empty line to preserve line numbers).
3934 if test "x$srcdir" = x.
; then
3935 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
3936 s/:*\$(srcdir):*/:/;
3937 s/:*\${srcdir}:*/:/;
3939 s/^\([^=]*=[ ]*\):*/\1/;
3945 DEFS
=-DHAVE_CONFIG_H
3949 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
3950 # 1. Remove the extension, and $U if already installed.
3951 ac_i
=`echo "$ac_i" |
3952 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3954 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
3955 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
3959 LTLIBOBJS
=$ac_ltlibobjs
3963 : ${CONFIG_STATUS=./config.status}
3964 ac_clean_files_save
=$ac_clean_files
3965 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
3966 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3967 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3968 cat >$CONFIG_STATUS <<_ACEOF
3970 # Generated by $as_me.
3971 # Run this file to recreate the current configuration.
3972 # Compiler output produced by configure, useful for debugging
3973 # configure, is in config.log if it exists.
3978 SHELL=\${CONFIG_SHELL-$SHELL}
3981 cat >>$CONFIG_STATUS <<\_ACEOF
3982 ## --------------------- ##
3983 ## M4sh Initialization. ##
3984 ## --------------------- ##
3986 # Be Bourne compatible
3987 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
3990 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3991 # is contrary to our usage. Disable this feature.
3992 alias -g '${1+"$@"}'='"$@"'
3993 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
3996 DUALCASE
=1; export DUALCASE
# for MKS sh
3998 # Support unset when possible.
3999 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
4006 # Work around bugs in pre-3.0 UWIN ksh.
4007 $as_unset ENV MAIL MAILPATH
4014 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4015 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4016 LC_TELEPHONE LC_TIME
4018 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4019 eval $as_var=C
; export $as_var
4025 # Required to use basename.
4026 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4032 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
4033 as_basename
=basename
4039 # Name of the executable.
4040 as_me
=`$as_basename "$0" ||
4041 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4042 X"$0" : 'X\(//\)$' \| \
4043 X"$0" : 'X\(/\)$' \| \
4044 . : '\(.\)' 2>/dev/null ||
4046 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4047 /^X\/\(\/\/\)$/{ s//\1/; q; }
4048 /^X\/\(\/\).*/{ s//\1/; q; }
4052 # PATH needs CR, and LINENO needs CR and PATH.
4053 # Avoid depending upon Character Ranges.
4054 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4055 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4056 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4057 as_cr_digits
='0123456789'
4058 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4060 # The user is always right.
4061 if test "${PATH_SEPARATOR+set}" != set; then
4062 echo "#! /bin/sh" >conf$$.sh
4063 echo "exit 0" >>conf$$.sh
4065 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4076 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
4077 test "x$as_lineno_1" != "x$as_lineno_2" &&
4078 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
4079 # Find who we are. Look in the path if we contain no path at all
4082 *[\\/]* ) as_myself
=$0 ;;
4083 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4087 test -z "$as_dir" && as_dir
=.
4088 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
4093 # We did not find ourselves, most probably we were run as `sh COMMAND'
4094 # in which case we are not to be found in the path.
4095 if test "x$as_myself" = x
; then
4098 if test ! -f "$as_myself"; then
4099 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4100 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4101 { (exit 1); exit 1; }; }
4103 case $CONFIG_SHELL in
4105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4106 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
4109 test -z "$as_dir" && as_dir
=.
4110 for as_base
in sh bash ksh sh5
; do
4113 if ("$as_dir/$as_base" -c '
4116 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4117 test "x$as_lineno_1" != "x$as_lineno_2" &&
4118 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
4119 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
4120 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
4121 CONFIG_SHELL
=$as_dir/$as_base
4123 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4131 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4132 # uniformly replaced by the line number. The first 'sed' inserts a
4133 # line-number line before each line; the second 'sed' does the real
4134 # work. The second script uses 'N' to pair each line-number line
4135 # with the numbered line, and appends trailing '-' during
4136 # substitution so that $LINENO is not a special case at line end.
4137 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4138 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4139 sed '=' <$as_myself |
4144 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4147 s,^['$as_cr_digits']*\n,,
4149 chmod +x
$as_me.lineno ||
4150 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4151 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4152 { (exit 1); exit 1; }; }
4154 # Don't try to exec as it changes $[0], causing all sort of problems
4155 # (the dirname of $[0] is not the place where we might find the
4156 # original and so on. Autoconf is especially sensible to this).
4158 # Exit status is that of the last command.
4163 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4164 *c
*,-n*) ECHO_N
= ECHO_C
='
4166 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
4167 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
4170 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4176 rm -f conf$$ conf$$.exe conf$$.
file
4178 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4179 # We could just check for DJGPP; but this test a) works b) is more generic
4180 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4181 if test -f conf$$.exe
; then
4182 # Don't use ln at all; we don't have any links
4187 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4192 rm -f conf$$ conf$$.exe conf$$.
file
4194 if mkdir
-p .
2>/dev
/null
; then
4197 test -d .
/-p && rmdir .
/-p
4201 as_executable_p
="test -f"
4203 # Sed expression to map a string onto a valid CPP name.
4204 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4206 # Sed expression to map a string onto a valid variable name.
4207 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4211 # We need space, tab and new line, in precisely that order.
4221 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4222 # report actual input values of CONFIG_FILES etc. instead of their
4223 # values after options handling. Logging --version etc. is OK.
4227 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4228 ## Running $as_me. ##
4233 This file was extended by $as_me, which was
4234 generated by GNU Autoconf 2.59. Invocation command line was
4236 CONFIG_FILES = $CONFIG_FILES
4237 CONFIG_HEADERS = $CONFIG_HEADERS
4238 CONFIG_LINKS = $CONFIG_LINKS
4239 CONFIG_COMMANDS = $CONFIG_COMMANDS
4243 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4247 # Files that config.status was made for.
4248 if test -n "$ac_config_files"; then
4249 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4252 if test -n "$ac_config_headers"; then
4253 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4256 if test -n "$ac_config_links"; then
4257 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4260 if test -n "$ac_config_commands"; then
4261 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4264 cat >>$CONFIG_STATUS <<\_ACEOF
4267 \`$as_me' instantiates files from templates according to the
4268 current configuration.
4270 Usage: $0 [OPTIONS] [FILE]...
4272 -h, --help print this help, then exit
4273 -V, --version print version number, then exit
4274 -q, --quiet do not print progress messages
4275 -d, --debug don't remove temporary files
4276 --recheck update $as_me by reconfiguring in the same conditions
4277 --file=FILE[:TEMPLATE]
4278 instantiate the configuration file FILE
4279 --header=FILE[:TEMPLATE]
4280 instantiate the configuration header FILE
4282 Configuration files:
4285 Configuration headers:
4288 Configuration commands:
4291 Report bugs to <bug-autoconf@gnu.org>."
4294 cat >>$CONFIG_STATUS <<_ACEOF
4297 configured by $0, generated by GNU Autoconf 2.59,
4298 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4300 Copyright (C) 2003 Free Software Foundation, Inc.
4301 This config.status script is free software; the Free Software Foundation
4302 gives unlimited permission to copy, distribute and modify it."
4307 cat >>$CONFIG_STATUS <<\_ACEOF
4308 # If no file are specified by the user, then we need to provide default
4309 # value. By we need to know if files were specified by the user.
4315 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
4316 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
4324 *) # This is not an option, so the user has probably given explicit
4327 ac_need_defaults
=false
;;
4331 # Handling of the options.
4333 cat >>$CONFIG_STATUS <<\_ACEOF
4334 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4336 --version |
--vers* |
-V )
4337 echo "$ac_cs_version"; exit 0 ;;
4339 # Conflict between --help and --header
4340 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4341 Try \`$0 --help' for more information." >&5
4342 echo "$as_me: error: ambiguous option: $1
4343 Try \`$0 --help' for more information." >&2;}
4344 { (exit 1); exit 1; }; };;
4345 --help |
--hel |
-h )
4346 echo "$ac_cs_usage"; exit 0 ;;
4347 --debug |
--d* |
-d )
4349 --file |
--fil |
--fi |
--f )
4351 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
4352 ac_need_defaults
=false
;;
4353 --header |
--heade |
--head |
--hea )
4355 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
4356 ac_need_defaults
=false
;;
4357 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
4358 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
4362 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4363 Try \`$0 --help' for more information." >&5
4364 echo "$as_me: error: unrecognized option: $1
4365 Try \`$0 --help' for more information." >&2;}
4366 { (exit 1); exit 1; }; } ;;
4368 *) ac_config_targets
="$ac_config_targets $1" ;;
4374 ac_configure_extra_args
=
4376 if $ac_cs_silent; then
4378 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4382 cat >>$CONFIG_STATUS <<_ACEOF
4383 if \$ac_cs_recheck; then
4384 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4385 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4394 cat >>$CONFIG_STATUS <<\_ACEOF
4395 for ac_config_target
in $ac_config_targets
4397 case "$ac_config_target" in
4398 # Handling of arguments.
4399 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
4400 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
4401 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
4402 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4403 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4404 { (exit 1); exit 1; }; };;
4408 # If the user did not use the arguments to specify the items to instantiate,
4409 # then the envvar interface is used. Set only those that are not.
4410 # We use the long form for the default assignment because of an extremely
4411 # bizarre bug on SunOS 4.1.3.
4412 if $ac_need_defaults; then
4413 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
4414 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
4415 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
4418 # Have a temporary directory for convenience. Make it in the build tree
4419 # simply because there is no reason to put it here, and in addition,
4420 # creating and moving files from /tmp can sometimes cause problems.
4421 # Create a temporary directory, and hook for its removal unless debugging.
4424 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4425 trap '{ (exit 1); exit 1; }' 1 2 13 15
4428 # Create a (secure) tmp directory for tmp files.
4431 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4432 test -n "$tmp" && test -d "$tmp"
4435 tmp
=.
/confstat$$
-$RANDOM
4436 (umask 077 && mkdir
$tmp)
4439 echo "$me: cannot create a temporary directory in ." >&2
4440 { (exit 1); exit 1; }
4445 cat >>$CONFIG_STATUS <<_ACEOF
4448 # CONFIG_FILES section.
4451 # No need to generate the scripts if there are no CONFIG_FILES.
4452 # This happens for instance when ./config.status config.h
4453 if test -n "\$CONFIG_FILES"; then
4454 # Protect against being on the right side of a sed subst in config.status.
4455 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4456 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4457 s,@SHELL@,$SHELL,;t t
4458 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4459 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4460 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4461 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4462 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4463 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4464 s,@exec_prefix@,$exec_prefix,;t t
4465 s,@prefix@,$prefix,;t t
4466 s,@program_transform_name@,$program_transform_name,;t t
4467 s,@bindir@,$bindir,;t t
4468 s,@sbindir@,$sbindir,;t t
4469 s,@libexecdir@,$libexecdir,;t t
4470 s,@datadir@,$datadir,;t t
4471 s,@sysconfdir@,$sysconfdir,;t t
4472 s,@sharedstatedir@,$sharedstatedir,;t t
4473 s,@localstatedir@,$localstatedir,;t t
4474 s,@libdir@,$libdir,;t t
4475 s,@includedir@,$includedir,;t t
4476 s,@oldincludedir@,$oldincludedir,;t t
4477 s,@infodir@,$infodir,;t t
4478 s,@mandir@,$mandir,;t t
4479 s,@build_alias@,$build_alias,;t t
4480 s,@host_alias@,$host_alias,;t t
4481 s,@target_alias@,$target_alias,;t t
4483 s,@ECHO_C@,$ECHO_C,;t t
4484 s,@ECHO_N@,$ECHO_N,;t t
4485 s,@ECHO_T@,$ECHO_T,;t t
4488 s,@CFLAGS@,$CFLAGS,;t t
4489 s,@LDFLAGS@,$LDFLAGS,;t t
4490 s,@CPPFLAGS@,$CPPFLAGS,;t t
4491 s,@ac_ct_CC@,$ac_ct_CC,;t t
4492 s,@EXEEXT@,$EXEEXT,;t t
4493 s,@OBJEXT@,$OBJEXT,;t t
4494 s,@build@,$build,;t t
4495 s,@build_cpu@,$build_cpu,;t t
4496 s,@build_vendor@,$build_vendor,;t t
4497 s,@build_os@,$build_os,;t t
4499 s,@host_cpu@,$host_cpu,;t t
4500 s,@host_vendor@,$host_vendor,;t t
4501 s,@host_os@,$host_os,;t t
4502 s,@target@,$target,;t t
4503 s,@target_cpu@,$target_cpu,;t t
4504 s,@target_vendor@,$target_vendor,;t t
4505 s,@target_os@,$target_os,;t t
4506 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4507 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4508 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4510 s,@EGREP@,$EGREP,;t t
4511 s,@RDYNAMIC@,$RDYNAMIC,;t t
4512 s,@GDBSERVER_DEPFILES@,$GDBSERVER_DEPFILES,;t t
4513 s,@GDBSERVER_LIBS@,$GDBSERVER_LIBS,;t t
4514 s,@USE_THREAD_DB@,$USE_THREAD_DB,;t t
4515 s,@LIBOBJS@,$LIBOBJS,;t t
4516 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4521 cat >>$CONFIG_STATUS <<\_ACEOF
4522 # Split the substitutions into bite-sized pieces for seds with
4523 # small command number limits, like on Digital OSF/1 and HP-UX.
4525 ac_sed_frag
=1 # Number of current file.
4526 ac_beg
=1 # First line for current file.
4527 ac_end
=$ac_max_sed_lines # Line after last line for current file.
4530 while $ac_more_lines; do
4531 if test $ac_beg -gt 1; then
4532 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
4534 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
4536 if test ! -s $tmp/subs.frag
; then
4539 # The purpose of the label and of the branching condition is to
4540 # speed up the sed processing (if there are no `@' at all, there
4541 # is no need to browse any of the substitutions).
4542 # These are the two extra sed commands mentioned above.
4544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
4545 if test -z "$ac_sed_cmds"; then
4546 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
4548 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4550 ac_sed_frag
=`expr $ac_sed_frag + 1`
4552 ac_end
=`expr $ac_end + $ac_max_sed_lines`
4555 if test -z "$ac_sed_cmds"; then
4558 fi # test -n "$CONFIG_FILES"
4561 cat >>$CONFIG_STATUS <<\_ACEOF
4562 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
4563 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4565 - |
*:- |
*:-:* ) # input from stdin
4567 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
4568 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
4569 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
4570 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
4571 * ) ac_file_in
=$ac_file.
in ;;
4574 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4575 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
4576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4577 X"$ac_file" : 'X\(//\)[^/]' \| \
4578 X"$ac_file" : 'X\(//\)$' \| \
4579 X"$ac_file" : 'X\(/\)' \| \
4580 . : '\(.\)' 2>/dev/null ||
4582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4584 /^X\(\/\/\)$/{ s//\1/; q; }
4585 /^X\(\/\).*/{ s//\1/; q; }
4587 { if $as_mkdir_p; then
4592 while test ! -d "$as_dir"; do
4593 as_dirs
="$as_dir $as_dirs"
4594 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
4595 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4596 X"$as_dir" : 'X\(//\)[^/]' \| \
4597 X"$as_dir" : 'X\(//\)$' \| \
4598 X"$as_dir" : 'X\(/\)' \| \
4599 . : '\(.\)' 2>/dev/null ||
4601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4603 /^X\(\/\/\)$/{ s//\1/; q; }
4604 /^X\(\/\).*/{ s//\1/; q; }
4607 test ! -n "$as_dirs" || mkdir
$as_dirs
4608 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4609 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4610 { (exit 1); exit 1; }; }; }
4614 if test "$ac_dir" != .
; then
4615 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4616 # A "../" for each directory in $ac_dir_suffix.
4617 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4619 ac_dir_suffix
= ac_top_builddir
=
4623 .
) # No --srcdir option. We are building in place.
4625 if test -z "$ac_top_builddir"; then
4628 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
4630 [\\/]* | ?
:[\\/]* ) # Absolute path.
4631 ac_srcdir
=$srcdir$ac_dir_suffix;
4632 ac_top_srcdir
=$srcdir ;;
4634 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
4635 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
4638 # Do not use `cd foo && pwd` to compute absolute paths, because
4639 # the directories may not exist.
4641 .
) ac_abs_builddir
="$ac_dir";;
4644 .
) ac_abs_builddir
=`pwd`;;
4645 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
4646 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
4649 case $ac_abs_builddir in
4650 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
4652 case ${ac_top_builddir}.
in
4653 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
4654 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
4655 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
4658 case $ac_abs_builddir in
4659 .
) ac_abs_srcdir
=$ac_srcdir;;
4662 .
) ac_abs_srcdir
=$ac_abs_builddir;;
4663 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
4664 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
4667 case $ac_abs_builddir in
4668 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
4670 case $ac_top_srcdir in
4671 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
4672 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
4673 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
4679 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
4680 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
4683 if test x
"$ac_file" != x-
; then
4684 { echo "$as_me:$LINENO: creating $ac_file" >&5
4685 echo "$as_me: creating $ac_file" >&6;}
4688 # Let's still pretend it is `configure' which instantiates (i.e., don't
4689 # use $as_me), people would be surprised to read:
4690 # /* config.h. Generated by config.status. */
4691 if test x
"$ac_file" = x-
; then
4694 configure_input
="$ac_file. "
4696 configure_input
=$configure_input"Generated from `echo $ac_file_in |
4697 sed 's,.*/,,'` by configure."
4699 # First look for the input files in the build tree, otherwise in the
4701 ac_file_inputs
=`IFS=:
4702 for f in $ac_file_in; do
4704 -) echo $tmp/stdin ;;
4706 # Absolute (can't be DOS-style, as IFS=:)
4707 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4708 echo "$as_me: error: cannot find input file: $f" >&2;}
4709 { (exit 1); exit 1; }; }
4712 if test -f "$f"; then
4715 elif test -f "$srcdir/$f"; then
4720 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4721 echo "$as_me: error: cannot find input file: $f" >&2;}
4722 { (exit 1); exit 1; }; }
4725 done` ||
{ (exit 1); exit 1; }
4727 cat >>$CONFIG_STATUS <<_ACEOF
4731 cat >>$CONFIG_STATUS <<\_ACEOF
4733 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
4734 s
,@configure_input@
,$configure_input,;t t
4735 s
,@srcdir@
,$ac_srcdir,;t t
4736 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
4737 s
,@top_srcdir@
,$ac_top_srcdir,;t t
4738 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
4739 s
,@builddir@
,$ac_builddir,;t t
4740 s
,@abs_builddir@
,$ac_abs_builddir,;t t
4741 s
,@top_builddir@
,$ac_top_builddir,;t t
4742 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
4743 s
,@INSTALL@
,$ac_INSTALL,;t t
4744 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4746 if test x"$ac_file" != x-; then
4747 mv $tmp/out $ac_file
4755 cat >>$CONFIG_STATUS <<\_ACEOF
4758 # CONFIG_HEADER section.
4761 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
4762 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4764 # ac_d sets the value in "#define NAME VALUE" lines.
4765 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4766 ac_dB
='[ ].*$,\1#\2'
4769 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4770 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4771 ac_uB
='$,\1#\2define\3'
4775 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
4776 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4778 - |
*:- |
*:-:* ) # input from stdin
4780 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
4781 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
4782 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
4783 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
4784 * ) ac_file_in
=$ac_file.
in ;;
4787 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
4788 echo "$as_me: creating $ac_file" >&6;}
4790 # First look for the input files in the build tree, otherwise in the
4792 ac_file_inputs
=`IFS=:
4793 for f in $ac_file_in; do
4795 -) echo $tmp/stdin ;;
4797 # Absolute (can't be DOS-style, as IFS=:)
4798 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4799 echo "$as_me: error: cannot find input file: $f" >&2;}
4800 { (exit 1); exit 1; }; }
4801 # Do quote $f, to prevent DOS paths from being IFS'd.
4804 if test -f "$f"; then
4807 elif test -f "$srcdir/$f"; then
4812 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4813 echo "$as_me: error: cannot find input file: $f" >&2;}
4814 { (exit 1); exit 1; }; }
4817 done` ||
{ (exit 1); exit 1; }
4818 # Remove the trailing spaces.
4819 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4823 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4824 # `conftest.undefs', that substitutes the proper values into
4825 # config.h.in to produce config.h. The first handles `#define'
4826 # templates, and the second `#undef' templates.
4827 # And first: Protect against being on the right side of a sed subst in
4828 # config.status. Protect against being in an unquoted here document
4830 rm -f conftest.defines conftest.undefs
4831 # Using a here document instead of a string reduces the quoting nightmare.
4832 # Putting comments in sed scripts is not portable.
4834 # `end' is used to avoid that the second main sed command (meant for
4835 # 0-ary CPP macros) applies to n-ary macro definitions.
4836 # See the Autoconf documentation for `clear'.
4837 cat >confdef2sed.
sed <<\_ACEOF
4842 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4844 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4847 # If some macros were called several times there might be several times
4848 # the same #defines, which is useless. Nevertheless, we may not want to
4849 # sort them, since we want the *last* AC-DEFINE to be honored.
4850 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4851 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4852 rm -f confdef2sed.sed
4854 # This sed command replaces #undef with comments. This is necessary, for
4855 # example, in the case of _POSIX_SOURCE, which is predefined and required
4856 # on some systems where configure will not decide to define it.
4857 cat >>conftest.undefs <<\_ACEOF
4858 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4861 # Break up conftest.defines because some shells have a limit on the size
4862 # of here documents, and old seds have small limits too (100 cmds).
4863 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4864 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4865 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4866 echo ' :' >>$CONFIG_STATUS
4868 while grep . conftest.defines >/dev/null
4870 # Write a limited-size here document to $tmp/defines.sed.
4871 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4872 # Speed up: don't consider the non `#define' lines.
4873 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4874 # Work around the forget-to-reset-the-flag bug.
4875 echo 't clr' >>$CONFIG_STATUS
4876 echo ': clr' >>$CONFIG_STATUS
4877 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
4879 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4883 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
4884 rm -f conftest.defines
4885 mv conftest.
tail conftest.defines
4887 rm -f conftest.defines
4888 echo ' fi # grep' >>$CONFIG_STATUS
4889 echo >>$CONFIG_STATUS
4891 # Break up conftest.undefs because some shells have a limit on the size
4892 # of here documents, and old seds have small limits too (100 cmds).
4893 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4895 while grep . conftest.undefs
>/dev
/null
4897 # Write a limited-size here document to $tmp/undefs.sed.
4898 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4899 # Speed up: don't consider the non
`#undef'
4900 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4901 # Work around the forget-to-reset-the-flag bug.
4902 echo 't clr' >>$CONFIG_STATUS
4903 echo ': clr' >>$CONFIG_STATUS
4904 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4906 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4910 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4911 rm -f conftest.undefs
4912 mv conftest.tail conftest.undefs
4914 rm -f conftest.undefs
4916 cat >>$CONFIG_STATUS <<\_ACEOF
4917 # Let's still pretend it is `configure
' which instantiates (i.e., don't
4918 # use $as_me), people would be surprised to read:
4919 # /* config.h. Generated by config.status. */
4920 if test x
"$ac_file" = x-
; then
4921 echo "/* Generated by configure. */" >$tmp/config.h
4923 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4925 cat $tmp/in >>$tmp/config.h
4927 if test x
"$ac_file" != x-
; then
4928 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
4929 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4930 echo "$as_me: $ac_file is unchanged" >&6;}
4932 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
4933 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4934 X"$ac_file" : 'X\(//\)[^/]' \| \
4935 X"$ac_file" : 'X\(//\)$' \| \
4936 X"$ac_file" : 'X\(/\)' \| \
4937 . : '\(.\)' 2>/dev/null ||
4939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4941 /^X\(\/\/\)$/{ s//\1/; q; }
4942 /^X\(\/\).*/{ s//\1/; q; }
4944 { if $as_mkdir_p; then
4949 while test ! -d "$as_dir"; do
4950 as_dirs
="$as_dir $as_dirs"
4951 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
4952 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4953 X"$as_dir" : 'X\(//\)[^/]' \| \
4954 X"$as_dir" : 'X\(//\)$' \| \
4955 X"$as_dir" : 'X\(/\)' \| \
4956 . : '\(.\)' 2>/dev/null ||
4958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4960 /^X\(\/\/\)$/{ s//\1/; q; }
4961 /^X\(\/\).*/{ s//\1/; q; }
4964 test ! -n "$as_dirs" || mkdir
$as_dirs
4965 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4966 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4967 { (exit 1); exit 1; }; }; }
4970 mv $tmp/config.h
$ac_file
4978 cat >>$CONFIG_STATUS <<\_ACEOF
4981 # CONFIG_COMMANDS section.
4983 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
4984 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
4985 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
4986 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
4987 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4988 X"$ac_dest" : 'X\(//\)[^/]' \| \
4989 X"$ac_dest" : 'X\(//\)$' \| \
4990 X"$ac_dest" : 'X\(/\)' \| \
4991 . : '\(.\)' 2>/dev/null ||
4993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4995 /^X\(\/\/\)$/{ s//\1/; q; }
4996 /^X\(\/\).*/{ s//\1/; q; }
4998 { if $as_mkdir_p; then
5003 while test ! -d "$as_dir"; do
5004 as_dirs
="$as_dir $as_dirs"
5005 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5007 X"$as_dir" : 'X\(//\)[^/]' \| \
5008 X"$as_dir" : 'X\(//\)$' \| \
5009 X"$as_dir" : 'X\(/\)' \| \
5010 . : '\(.\)' 2>/dev/null ||
5012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5014 /^X\(\/\/\)$/{ s//\1/; q; }
5015 /^X\(\/\).*/{ s//\1/; q; }
5018 test ! -n "$as_dirs" || mkdir
$as_dirs
5019 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5020 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5021 { (exit 1); exit 1; }; }; }
5025 if test "$ac_dir" != .
; then
5026 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5027 # A "../" for each directory in $ac_dir_suffix.
5028 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5030 ac_dir_suffix
= ac_top_builddir
=
5034 .
) # No --srcdir option. We are building in place.
5036 if test -z "$ac_top_builddir"; then
5039 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5041 [\\/]* | ?
:[\\/]* ) # Absolute path.
5042 ac_srcdir
=$srcdir$ac_dir_suffix;
5043 ac_top_srcdir
=$srcdir ;;
5045 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5046 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5049 # Do not use `cd foo && pwd` to compute absolute paths, because
5050 # the directories may not exist.
5052 .
) ac_abs_builddir
="$ac_dir";;
5055 .
) ac_abs_builddir
=`pwd`;;
5056 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5057 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5060 case $ac_abs_builddir in
5061 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5063 case ${ac_top_builddir}.
in
5064 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5065 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5066 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5069 case $ac_abs_builddir in
5070 .
) ac_abs_srcdir
=$ac_srcdir;;
5073 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5074 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5075 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5078 case $ac_abs_builddir in
5079 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5081 case $ac_top_srcdir in
5082 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5083 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5084 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5089 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5090 echo "$as_me: executing $ac_dest commands" >&6;}
5092 default
) case x
$CONFIG_HEADERS in
5093 xconfig.h
:config.
in)
5101 cat >>$CONFIG_STATUS <<\_ACEOF
5103 { (exit 0); exit 0; }
5105 chmod +x
$CONFIG_STATUS
5106 ac_clean_files
=$ac_clean_files_save
5109 # configure is writing to config.log, and then calls config.status.
5110 # config.status does its own redirection, appending to config.log.
5111 # Unfortunately, on DOS this fails, as config.log is still kept open
5112 # by configure, so config.status won't be able to write to it; its
5113 # output is simply discarded. So we exec the FD to /dev/null,
5114 # effectively closing config.log, so it can be properly (re)opened and
5115 # appended to by config.status. When coming back to configure, we
5116 # need to make the FD available again.
5117 if test "$no_create" != yes; then
5119 ac_config_status_args
=
5120 test "$silent" = yes &&
5121 ac_config_status_args
="$ac_config_status_args --quiet"
5123 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5125 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5126 # would make configure fail if this is the last instruction.
5127 $ac_cs_success ||
{ (exit 1); exit 1; }