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 ac_config_libobj_dir
=..
/gnulib
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 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 LIBOBJS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI RDYNAMIC GDBSERVER_DEPFILES GDBSERVER_LIBS USE_THREAD_DB srv_xmlbuiltin srv_xmlfiles LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --build=BUILD configure
for building on BUILD
[guessed
]
842 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
843 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
847 if test -n "$ac_init_help"; then
852 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
853 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
854 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
855 --with-bugurl=URL Direct users to URL to report a bug
857 Some influential environment variables
:
858 CC C compiler
command
859 CFLAGS C compiler flags
860 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
861 nonstandard directory
<lib dir
>
862 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
863 headers
in a nonstandard directory
<include dir
>
866 Use these variables to override the choices made by
`configure' or to help
867 it to find libraries and programs with nonstandard names/locations.
872 if test "$ac_init_help" = "recursive"; then
873 # If there are subdirs, report their specific --help.
875 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
876 test -d $ac_dir || continue
879 if test "$ac_dir" != .; then
880 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
881 # A "../" for each directory in $ac_dir_suffix.
882 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
884 ac_dir_suffix= ac_top_builddir=
888 .) # No --srcdir option. We are building in place.
890 if test -z "$ac_top_builddir"; then
893 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
895 [\\/]* | ?:[\\/]* ) # Absolute path.
896 ac_srcdir=$srcdir$ac_dir_suffix;
897 ac_top_srcdir=$srcdir ;;
899 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
900 ac_top_srcdir=$ac_top_builddir$srcdir ;;
903 # Do not use `cd foo
&& pwd` to compute absolute paths, because
904 # the directories may not exist.
906 .) ac_abs_builddir="$ac_dir";;
909 .) ac_abs_builddir=`pwd`;;
910 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
911 *) ac_abs_builddir=`pwd`/"$ac_dir";;
914 case $ac_abs_builddir in
915 .) ac_abs_top_builddir=${ac_top_builddir}.;;
917 case ${ac_top_builddir}. in
918 .) ac_abs_top_builddir=$ac_abs_builddir;;
919 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
920 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
923 case $ac_abs_builddir in
924 .) ac_abs_srcdir=$ac_srcdir;;
927 .) ac_abs_srcdir=$ac_abs_builddir;;
928 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
929 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
932 case $ac_abs_builddir in
933 .) ac_abs_top_srcdir=$ac_top_srcdir;;
935 case $ac_top_srcdir in
936 .) ac_abs_top_srcdir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
938 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943 # Check for guested configure; otherwise get Cygnus style configure.
944 if test -f $ac_srcdir/configure.gnu; then
946 $SHELL $ac_srcdir/configure.gnu --help=recursive
947 elif test -f $ac_srcdir/configure; then
949 $SHELL $ac_srcdir/configure --help=recursive
950 elif test -f $ac_srcdir/configure.ac ||
951 test -f $ac_srcdir/configure.in; then
955 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961 test -n "$ac_init_help" && exit 0
962 if $ac_init_version; then
965 Copyright (C) 2003 Free Software Foundation, Inc.
966 This configure script is free software; the Free Software Foundation
967 gives unlimited permission to copy, distribute and modify it.
973 This file contains any messages produced by compilers while
974 running configure, to aid debugging if configure makes a mistake.
976 It was created by $as_me, which was
977 generated by GNU Autoconf 2.59. Invocation command line was
988 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
989 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
990 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
991 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
992 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
994 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
995 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
997 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
998 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
999 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1000 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1001 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1002 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1003 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1011 test -z "$as_dir" && as_dir=.
1012 echo "PATH: $as_dir"
1027 # Keep a trace of the command line.
1028 # Strip out --no-create and --no-recursion so they do not pile up.
1029 # Strip out --silent because we don't want to record it for future runs.
1030 # Also quote any args containing shell meta-characters.
1031 # Make two passes to allow for proper duplicate-argument suppression.
1036 ac_must_keep_next=false
1042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1046 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1047 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1050 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1052 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1053 if test $ac_must_keep_next = true; then
1054 ac_must_keep_next=false # Got value, back to normal.
1057 *=* | --config-cache | -C | -disable-* | --disable-* \
1058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1060 | -with-* | --with-* | -without-* | --without-* | --x)
1061 case "$ac_configure_args0 " in
1062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1065 -* ) ac_must_keep_next=true ;;
1068 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1069 # Get rid of the leading space.
1075 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1076 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1078 # When interrupted or exit'd, cleanup temporary files, and complete
1079 # config.log. We remove comments because anyway the quotes in there
1080 # would cause problems or look ugly.
1081 # WARNING: Be sure not to use single quotes in there, as some shells,
1082 # such as our DU 5.0 friend, will then `close
' the trap.
1083 trap 'exit_status
=$?
1084 # Save into config.log some information that might help in debugging.
1089 ## ---------------- ##
1090 ## Cache variables. ##
1091 ## ---------------- ##
1094 # The following way of writing the cache mishandles newlines in values,
1097 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1100 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1105 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112 ## ----------------- ##
1113 ## Output variables. ##
1114 ## ----------------- ##
1117 for ac_var
in $ac_subst_vars
1119 eval ac_val
=$
`echo $ac_var`
1120 echo "$ac_var='"'"'$ac_val'"'"'"
1124 if test -n "$ac_subst_files"; then
1131 for ac_var
in $ac_subst_files
1133 eval ac_val
=$
`echo $ac_var`
1134 echo "$ac_var='"'"'$ac_val'"'"'"
1139 if test -s confdefs.h
; then
1146 sed "/^$/d" confdefs.h |
sort
1149 test "$ac_signal" != 0 &&
1150 echo "$as_me: caught signal $ac_signal"
1151 echo "$as_me: exit $exit_status"
1153 rm -f core
*.core
&&
1154 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1157 for ac_signal in 1 2 13 15; do
1158 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1162 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1163 rm -rf conftest* confdefs.h
1164 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1167 # Predefined preprocessor variables.
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_NAME "$PACKAGE_NAME"
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_STRING "$PACKAGE_STRING"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1194 # Let the site file select an alternate cache file if it wants to.
1195 # Prefer explicitly selected file to automatically selected ones.
1196 if test -z "$CONFIG_SITE"; then
1197 if test "x$prefix" != xNONE; then
1198 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1200 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1203 for ac_site_file in $CONFIG_SITE; do
1204 if test -r "$ac_site_file"; then
1205 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1206 echo "$as_me: loading site script $ac_site_file" >&6;}
1207 sed 's
/^
/|
/' "$ac_site_file" >&5
1212 if test -r "$cache_file"; then
1213 # Some versions of bash will fail to source /dev/null (special
1214 # files actually), so we avoid doing that.
1215 if test -f "$cache_file"; then
1216 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1217 echo "$as_me: loading cache $cache_file" >&6;}
1219 [\\/]* | ?:[\\/]* ) . $cache_file;;
1220 *) . ./$cache_file;;
1224 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1225 echo "$as_me: creating cache $cache_file" >&6;}
1229 # Check that the precious variables saved in the cache have kept the same
1231 ac_cache_corrupted=false
1232 for ac_var in `(set) 2>&1 |
1233 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1234 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1235 eval ac_new_set=\$ac_env_${ac_var}_set
1236 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1237 eval ac_new_val="\$ac_env_${ac_var}_value"
1238 case $ac_old_set,$ac_new_set in
1240 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1241 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1242 ac_cache_corrupted=: ;;
1244 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1246 ac_cache_corrupted=: ;;
1249 if test "x$ac_old_val" != "x$ac_new_val"; then
1250 # differences in whitespace do not lead to failure.
1251 ac_old_val_w=`echo x $ac_old_val`
1252 ac_new_val_w=`echo x $ac_new_val`
1253 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1254 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1255 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1256 ac_cache_corrupted=:
1258 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1259 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1260 eval $ac_var=\$ac_old_val
1262 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1263 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1264 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1265 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1268 # Pass precious variables to config.status.
1269 if test "$ac_new_set" = set; then
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1273 *) ac_arg=$ac_var=$ac_new_val ;;
1275 case " $ac_configure_args " in
1276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1277 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1281 if $ac_cache_corrupted; then
1282 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1285 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286 { (exit 1); exit 1; }; }
1290 ac_cpp='$CPP $CPPFLAGS'
1291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1292 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313 ac_config_headers="$ac_config_headers config.h:config.in"
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1320 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 if test -n "$ac_tool_prefix"; then
1323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1324 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1325 echo "$as_me:$LINENO: checking for $ac_word" >&5
1326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1327 if test "${ac_cv_prog_CC+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
1330 if test -n "$CC"; then
1331 ac_cv_prog_CC="$CC" # Let the user override the test.
1333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1337 test -z "$as_dir" && as_dir=.
1338 for ac_exec_ext in '' $ac_executable_extensions; do
1339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1340 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1350 if test -n "$CC"; then
1351 echo "$as_me:$LINENO: result: $CC" >&5
1352 echo "${ECHO_T}$CC" >&6
1354 echo "$as_me:$LINENO: result: no" >&5
1355 echo "${ECHO_T}no" >&6
1359 if test -z "$ac_cv_prog_CC"; then
1361 # Extract the first word of "gcc", so it can be a program name with args.
1362 set dummy gcc; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 if test -n "$ac_ct_CC"; then
1369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375 test -z "$as_dir" && as_dir=.
1376 for ac_exec_ext in '' $ac_executable_extensions; do
1377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1378 ac_cv_prog_ac_ct_CC="gcc"
1379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1388 if test -n "$ac_ct_CC"; then
1389 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1390 echo "${ECHO_T}$ac_ct_CC" >&6
1392 echo "$as_me:$LINENO: result: no" >&5
1393 echo "${ECHO_T}no" >&6
1401 if test -z "$CC"; then
1402 if test -n "$ac_tool_prefix"; then
1403 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1404 set dummy ${ac_tool_prefix}cc; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 if test -n "$CC"; then
1411 ac_cv_prog_CC="$CC" # Let the user override the test.
1413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1417 test -z "$as_dir" && as_dir=.
1418 for ac_exec_ext in '' $ac_executable_extensions; do
1419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420 ac_cv_prog_CC="${ac_tool_prefix}cc"
1421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1430 if test -n "$CC"; then
1431 echo "$as_me:$LINENO: result: $CC" >&5
1432 echo "${ECHO_T}$CC" >&6
1434 echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1439 if test -z "$ac_cv_prog_CC"; then
1441 # Extract the first word of "cc", so it can be a program name with args.
1442 set dummy cc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 if test -n "$ac_ct_CC"; then
1449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_ac_ct_CC="cc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1468 if test -n "$ac_ct_CC"; then
1469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1470 echo "${ECHO_T}$ac_ct_CC" >&6
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1482 if test -z "$CC"; then
1483 # Extract the first word of "cc", so it can be a program name with args.
1484 set dummy cc; ac_word=$2
1485 echo "$as_me:$LINENO: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 if test -n "$CC"; then
1491 ac_cv_prog_CC="$CC" # Let the user override the test.
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1502 ac_prog_rejected=yes
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512 if test $ac_prog_rejected = yes; then
1513 # We found a bogon in the path, so make sure we never use it.
1514 set dummy $ac_cv_prog_CC
1516 if test $# != 0; then
1517 # We chose a different compiler from the bogus one.
1518 # However, it has the same basename, so the bogon will be chosen
1519 # first if we set CC to just the basename; use the full file name.
1521 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1527 if test -n "$CC"; then
1528 echo "$as_me:$LINENO: result: $CC" >&5
1529 echo "${ECHO_T}$CC" >&6
1531 echo "$as_me:$LINENO: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1536 if test -z "$CC"; then
1537 if test -n "$ac_tool_prefix"; then
1540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_CC+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 if test -n "$CC"; then
1548 ac_cv_prog_CC="$CC" # Let the user override the test.
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 test -z "$as_dir" && as_dir=.
1555 for ac_exec_ext in '' $ac_executable_extensions; do
1556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567 if test -n "$CC"; then
1568 echo "$as_me:$LINENO: result: $CC" >&5
1569 echo "${ECHO_T}$CC" >&6
1571 echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1575 test -n "$CC" && break
1578 if test -z "$CC"; then
1582 # Extract the first word of "$ac_prog", so it can be a program name with args.
1583 set dummy $ac_prog; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 if test -n "$ac_ct_CC"; then
1590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_ac_ct_CC="$ac_prog"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609 if test -n "$ac_ct_CC"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611 echo "${ECHO_T}$ac_ct_CC" >&6
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1617 test -n "$ac_ct_CC" && break
1626 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1627 See \`config.log' for more details.
" >&5
1628 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1629 See \
`config.log' for more details." >&2;}
1630 { (exit 1); exit 1; }; }
1632 # Provide some information about the compiler.
1633 echo "$as_me:$LINENO:" \
1634 "checking for C compiler version" >&5
1635 ac_compiler=`set X
$ac_compile; echo $2`
1636 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1637 (eval $ac_compiler --version </dev/null >&5) 2>&5
1639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1640 (exit $ac_status); }
1641 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1642 (eval $ac_compiler -v </dev/null >&5) 2>&5
1644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1645 (exit $ac_status); }
1646 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1647 (eval $ac_compiler -V </dev/null >&5) 2>&5
1649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1650 (exit $ac_status); }
1652 cat >conftest.$ac_ext <<_ACEOF
1655 cat confdefs.h >>conftest.$ac_ext
1656 cat >>conftest.$ac_ext <<_ACEOF
1657 /* end confdefs.h. */
1667 ac_clean_files_save=$ac_clean_files
1668 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1669 # Try to create an executable without -o first, disregard a.out.
1670 # It will help us diagnose broken compilers, and finding out an intuition
1672 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1673 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1674 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1675 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1676 (eval $ac_link_default) 2>&5
1678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1679 (exit $ac_status); }; then
1680 # Find the output, starting from the most likely. This scheme is
1681 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1684 # Be careful to initialize this variable, since it used to be cached.
1685 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1687 # b.out is created by i960 compilers.
1688 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1690 test -f "$ac_file" || continue
1692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1695 # This is the source file.
1698 # We found the default executable, but exeext='' is most
1702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1703 # FIXME: I believe we export ac_cv_exeext for Libtool,
1704 # but it would be cool to find out if it's true. Does anybody
1705 # maintain Libtool? --akim.
1713 echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1716 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1717 See \`config.log
' for more details." >&5
1718 echo "$as_me: error: C compiler cannot create executables
1719 See \`config.log' for more details.
" >&2;}
1720 { (exit 77); exit 77; }; }
1723 ac_exeext=$ac_cv_exeext
1724 echo "$as_me:$LINENO: result
: $ac_file" >&5
1725 echo "${ECHO_T}$ac_file" >&6
1727 # Check the compiler produces executables we can run. If not, either
1728 # the compiler is broken, or we cross compile.
1729 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
1730 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
1731 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1732 # If not cross compiling, check that we can run a simple program.
1733 if test "$cross_compiling" != yes; then
1734 if { ac_try='./$ac_file'
1735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1739 (exit $ac_status); }; }; then
1742 if test "$cross_compiling" = maybe; then
1745 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
1746 If you meant to cross compile
, use \
`--host'.
1747 See \`config.log
' for more details." >&5
1748 echo "$as_me: error: cannot run C compiled programs.
1749 If you meant to cross compile, use \`--host'.
1750 See \
`config.log' for more details." >&2;}
1751 { (exit 1); exit 1; }; }
1755 echo "$as_me:$LINENO: result: yes" >&5
1756 echo "${ECHO_T}yes" >&6
1758 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1759 ac_clean_files=$ac_clean_files_save
1760 # Check the compiler produces executables we can run. If not, either
1761 # the compiler is broken, or we cross compile.
1762 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1763 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1764 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1765 echo "${ECHO_T}$cross_compiling" >&6
1767 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1768 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1770 (eval $ac_link) 2>&5
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); }; then
1774 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1775 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1776 # work properly (i.e., refer to `conftest.exe'), while it won't with
1778 for ac_file
in conftest.exe conftest conftest.
*; do
1779 test -f "$ac_file" ||
continue
1781 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1782 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1789 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1790 See \`config.log' for more details." >&5
1791 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1792 See \`config.log' for more details." >&2;}
1793 { (exit 1); exit 1; }; }
1796 rm -f conftest
$ac_cv_exeext
1797 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1798 echo "${ECHO_T}$ac_cv_exeext" >&6
1800 rm -f conftest.
$ac_ext
1801 EXEEXT
=$ac_cv_exeext
1803 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1804 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1805 if test "${ac_cv_objext+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 cat >conftest.
$ac_ext <<_ACEOF
1811 cat confdefs.h
>>conftest.
$ac_ext
1812 cat >>conftest.
$ac_ext <<_ACEOF
1813 /* end confdefs.h. */
1823 rm -f conftest.o conftest.obj
1824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1825 (eval $ac_compile) 2>&5
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; then
1829 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1831 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1832 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1837 echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.
$ac_ext >&5
1840 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1841 See \`config.log' for more details." >&5
1842 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1843 See \`config.log' for more details." >&2;}
1844 { (exit 1); exit 1; }; }
1847 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1849 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1850 echo "${ECHO_T}$ac_cv_objext" >&6
1851 OBJEXT
=$ac_cv_objext
1853 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1854 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1855 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 cat >conftest.
$ac_ext <<_ACEOF
1861 cat confdefs.h
>>conftest.
$ac_ext
1862 cat >>conftest.
$ac_ext <<_ACEOF
1863 /* end confdefs.h. */
1876 rm -f conftest.
$ac_objext
1877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>conftest.er1
1880 grep -v '^ *+' conftest.er1
>conftest.err
1882 cat conftest.err
>&5
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); } &&
1885 { ac_try
='test -z "$ac_c_werror_flag"
1886 || test ! -s conftest.err'
1887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; } &&
1892 { ac_try
='test -s conftest.$ac_objext'
1893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }; }; then
1900 echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.
$ac_ext >&5
1905 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1906 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1909 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1910 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1911 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1912 ac_test_CFLAGS
=${CFLAGS+set}
1913 ac_save_CFLAGS
=$CFLAGS
1915 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1916 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1917 if test "${ac_cv_prog_cc_g+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 cat >conftest.
$ac_ext <<_ACEOF
1923 cat confdefs.h
>>conftest.
$ac_ext
1924 cat >>conftest.
$ac_ext <<_ACEOF
1925 /* end confdefs.h. */
1935 rm -f conftest.
$ac_objext
1936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>conftest.er1
1939 grep -v '^ *+' conftest.er1
>conftest.err
1941 cat conftest.err
>&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); } &&
1944 { ac_try
='test -z "$ac_c_werror_flag"
1945 || test ! -s conftest.err'
1946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }; } &&
1951 { ac_try
='test -s conftest.$ac_objext'
1952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; }; then
1959 echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.
$ac_ext >&5
1964 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1966 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1967 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1968 if test "$ac_test_CFLAGS" = set; then
1969 CFLAGS
=$ac_save_CFLAGS
1970 elif test $ac_cv_prog_cc_g = yes; then
1971 if test "$GCC" = yes; then
1977 if test "$GCC" = yes; then
1983 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1984 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1985 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 ac_cv_prog_cc_stdc
=no
1990 cat >conftest.
$ac_ext <<_ACEOF
1993 cat confdefs.h
>>conftest.
$ac_ext
1994 cat >>conftest.
$ac_ext <<_ACEOF
1995 /* end confdefs.h. */
1998 #include <sys/types.h>
1999 #include <sys/stat.h>
2000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2001 struct buf { int x; };
2002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2003 static char *e (p, i)
2009 static char *f (char * (*g) (char **, int), char **p, ...)
2014 s = g (p, va_arg (v,int));
2019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2020 function prototypes and stuff, but not '\xHH' hex character constants.
2021 These don't provoke an error unfortunately, instead are silently treated
2022 as 'x'. The following induces an error, until -std1 is added to get
2023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2024 array size at least. It's necessary to write '\x00'==0 to get something
2025 that's true only with -std1. */
2026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2028 int test (int i, double x);
2029 struct s1 {int (*f) (int a);};
2030 struct s2 {int (*f) (double a);};
2031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2037 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2042 # Don't try gcc -ansi; that turns off useful extensions and
2043 # breaks some systems' header files.
2044 # AIX -qlanglvl=ansi
2045 # Ultrix and OSF/1 -std1
2046 # HP-UX 10.20 and later -Ae
2047 # HP-UX older versions -Aa -D_HPUX_SOURCE
2048 # SVR4 -Xc -D__EXTENSIONS__
2049 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2051 CC
="$ac_save_CC $ac_arg"
2052 rm -f conftest.
$ac_objext
2053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>conftest.er1
2056 grep -v '^ *+' conftest.er1
>conftest.err
2058 cat conftest.err
>&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); } &&
2061 { ac_try
='test -z "$ac_c_werror_flag"
2062 || test ! -s conftest.err'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; } &&
2068 { ac_try
='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2074 ac_cv_prog_cc_stdc
=$ac_arg
2077 echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.
$ac_ext >&5
2081 rm -f conftest.err conftest.
$ac_objext
2083 rm -f conftest.
$ac_ext conftest.
$ac_objext
2088 case "x$ac_cv_prog_cc_stdc" in
2090 echo "$as_me:$LINENO: result: none needed" >&5
2091 echo "${ECHO_T}none needed" >&6 ;;
2093 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2094 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2095 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2098 # Some people use a C++ compiler to compile C. Since we use `exit',
2099 # in C++ we need to declare it. In case someone uses the same compiler
2100 # for both compiling C and C++ we need to have the C++ compiler decide
2101 # the declaration of exit, since it's the most demanding environment.
2102 cat >conftest.
$ac_ext <<_ACEOF
2107 rm -f conftest.
$ac_objext
2108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109 (eval $ac_compile) 2>conftest.er1
2111 grep -v '^ *+' conftest.er1
>conftest.err
2113 cat conftest.err
>&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
2116 { ac_try
='test -z "$ac_c_werror_flag"
2117 || test ! -s conftest.err'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; } &&
2123 { ac_try
='test -s conftest.$ac_objext'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; }; then
2129 for ac_declaration
in \
2131 'extern "C" void std::exit (int) throw (); using std::exit;' \
2132 'extern "C" void std::exit (int); using std::exit;' \
2133 'extern "C" void exit (int) throw ();' \
2134 'extern "C" void exit (int);' \
2137 cat >conftest.
$ac_ext <<_ACEOF
2140 cat confdefs.h
>>conftest.
$ac_ext
2141 cat >>conftest.
$ac_ext <<_ACEOF
2142 /* end confdefs.h. */
2153 rm -f conftest.
$ac_objext
2154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2155 (eval $ac_compile) 2>conftest.er1
2157 grep -v '^ *+' conftest.er1
>conftest.err
2159 cat conftest.err
>&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); } &&
2162 { ac_try
='test -z "$ac_c_werror_flag"
2163 || test ! -s conftest.err'
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; } &&
2169 { ac_try
='test -s conftest.$ac_objext'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; }; then
2177 echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.
$ac_ext >&5
2182 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2183 cat >conftest.
$ac_ext <<_ACEOF
2186 cat confdefs.h
>>conftest.
$ac_ext
2187 cat >>conftest.
$ac_ext <<_ACEOF
2188 /* end confdefs.h. */
2198 rm -f conftest.
$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>conftest.er1
2202 grep -v '^ *+' conftest.er1
>conftest.err
2204 cat conftest.err
>&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); } &&
2207 { ac_try
='test -z "$ac_c_werror_flag"
2208 || test ! -s conftest.err'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; } &&
2214 { ac_try
='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.
$ac_ext >&5
2226 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2229 if test -n "$ac_declaration"; then
2230 echo '#ifdef __cplusplus' >>confdefs.h
2231 echo $ac_declaration >>confdefs.h
2232 echo '#endif' >>confdefs.h
2236 echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.
$ac_ext >&5
2240 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2242 ac_cpp
='$CPP $CPPFLAGS'
2243 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2244 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2245 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2248 cat >>confdefs.h
<<\_ACEOF
2249 #define _GNU_SOURCE 1
2255 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
2256 if test -f $ac_dir/install-sh
; then
2258 ac_install_sh
="$ac_aux_dir/install-sh -c"
2260 elif test -f $ac_dir/install.sh
; then
2262 ac_install_sh
="$ac_aux_dir/install.sh -c"
2264 elif test -f $ac_dir/shtool
; then
2266 ac_install_sh
="$ac_aux_dir/shtool install -c"
2270 if test -z "$ac_aux_dir"; then
2271 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2272 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2273 { (exit 1); exit 1; }; }
2275 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
2276 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
2277 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2279 # Make sure we can run config.sub.
2280 $ac_config_sub sun4
>/dev
/null
2>&1 ||
2281 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2282 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2283 { (exit 1); exit 1; }; }
2285 echo "$as_me:$LINENO: checking build system type" >&5
2286 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2287 if test "${ac_cv_build+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 ac_cv_build_alias
=$build_alias
2291 test -z "$ac_cv_build_alias" &&
2292 ac_cv_build_alias
=`$ac_config_guess`
2293 test -z "$ac_cv_build_alias" &&
2294 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2295 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2296 { (exit 1); exit 1; }; }
2297 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
2298 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2299 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2300 { (exit 1); exit 1; }; }
2303 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2304 echo "${ECHO_T}$ac_cv_build" >&6
2306 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2307 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2308 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2311 echo "$as_me:$LINENO: checking host system type" >&5
2312 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2313 if test "${ac_cv_host+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 ac_cv_host_alias
=$host_alias
2317 test -z "$ac_cv_host_alias" &&
2318 ac_cv_host_alias
=$ac_cv_build_alias
2319 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
2320 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2321 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2322 { (exit 1); exit 1; }; }
2325 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2326 echo "${ECHO_T}$ac_cv_host" >&6
2328 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2329 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2330 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2333 echo "$as_me:$LINENO: checking target system type" >&5
2334 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2335 if test "${ac_cv_target+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 ac_cv_target_alias
=$target_alias
2339 test "x$ac_cv_target_alias" = "x" &&
2340 ac_cv_target_alias
=$ac_cv_host_alias
2341 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
2342 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2343 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2344 { (exit 1); exit 1; }; }
2347 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2348 echo "${ECHO_T}$ac_cv_target" >&6
2349 target
=$ac_cv_target
2350 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2351 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2352 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2355 # The aliases save the names the user supplied, while $host etc.
2356 # will get canonicalized.
2357 test -n "$target_alias" &&
2358 test "$program_prefix$program_suffix$program_transform_name" = \
2360 program_prefix
=${target_alias}-
2362 # Find a good install program. We prefer a C program (faster),
2363 # so one script is as good as another. But avoid the broken or
2364 # incompatible versions:
2365 # SysV /etc/install, /usr/sbin/install
2366 # SunOS /usr/etc/install
2367 # IRIX /sbin/install
2369 # AmigaOS /C/install, which installs bootblocks on floppy discs
2370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2373 # OS/2's system install, which has a completely different semantic
2374 # ./install, which can be erroneously created by make from ./install.sh.
2375 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2376 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2377 if test -z "$INSTALL"; then
2378 if test "${ac_cv_path_install+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2385 test -z "$as_dir" && as_dir
=.
2386 # Account for people who put trailing slashes in PATH elements.
2388 .
/ | .
// |
/cC
/* | \
2389 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2390 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2393 # OSF1 and SCO ODT 3.0 have their own names for install.
2394 # Don't use installbsd from OSF since it installs stuff as root
2396 for ac_prog
in ginstall scoinst
install; do
2397 for ac_exec_ext
in '' $ac_executable_extensions; do
2398 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2399 if test $ac_prog = install &&
2400 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2401 # AIX install. It has an incompatible calling convention.
2403 elif test $ac_prog = install &&
2404 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2405 # program-specific install script used by HP pwplus--don't use.
2408 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2420 if test "${ac_cv_path_install+set}" = set; then
2421 INSTALL
=$ac_cv_path_install
2423 # As a last resort, use the slow shell script. We don't cache a
2424 # path for INSTALL within a source directory, because that will
2425 # break other packages using the cache if that directory is
2426 # removed, or if the path is relative.
2427 INSTALL
=$ac_install_sh
2430 echo "$as_me:$LINENO: result: $INSTALL" >&5
2431 echo "${ECHO_T}$INSTALL" >&6
2433 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2434 # It thinks the first close brace ends the variable substitution.
2435 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2437 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2439 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2442 test "$program_prefix" != NONE
&&
2443 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
2444 # Use a double $ so make ignores it.
2445 test "$program_suffix" != NONE
&&
2446 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
2447 # Double any \ or $. echo might interpret backslashes.
2448 # By default was `s,x,x', remove it if useless.
2449 cat <<\_ACEOF
>conftest.
sed
2450 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2452 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2458 ac_cpp
='$CPP $CPPFLAGS'
2459 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2462 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2463 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2464 # On Suns, sometimes $CPP names a directory.
2465 if test -n "$CPP" && test -d "$CPP"; then
2468 if test -z "$CPP"; then
2469 if test "${ac_cv_prog_CPP+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 # Double quotes because CPP needs to be expanded
2473 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2476 for ac_c_preproc_warn_flag
in '' yes
2478 # Use a header file that comes with gcc, so configuring glibc
2479 # with a fresh cross-compiler works.
2480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2481 # <limits.h> exists even on freestanding compilers.
2482 # On the NeXT, cc -E runs the code through the compiler's parser,
2483 # not just through cpp. "Syntax error" is here to catch this case.
2484 cat >conftest.
$ac_ext <<_ACEOF
2487 cat confdefs.h
>>conftest.
$ac_ext
2488 cat >>conftest.
$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2491 # include <limits.h>
2493 # include <assert.h>
2497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2498 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2500 grep -v '^ *+' conftest.er1
>conftest.err
2502 cat conftest.err
>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } >/dev
/null
; then
2505 if test -s conftest.err
; then
2506 ac_cpp_err
=$ac_c_preproc_warn_flag
2507 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2514 if test -z "$ac_cpp_err"; then
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.
$ac_ext >&5
2520 # Broken: fails on valid input.
2523 rm -f conftest.err conftest.
$ac_ext
2525 # OK, works on sane cases. Now check whether non-existent headers
2526 # can be detected and how.
2527 cat >conftest.
$ac_ext <<_ACEOF
2530 cat confdefs.h
>>conftest.
$ac_ext
2531 cat >>conftest.
$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2533 #include <ac_nonexistent.h>
2535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2536 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2538 grep -v '^ *+' conftest.er1
>conftest.err
2540 cat conftest.err
>&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } >/dev
/null
; then
2543 if test -s conftest.err
; then
2544 ac_cpp_err
=$ac_c_preproc_warn_flag
2545 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2552 if test -z "$ac_cpp_err"; then
2553 # Broken: success on invalid input.
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.
$ac_ext >&5
2559 # Passes both tests.
2563 rm -f conftest.err conftest.
$ac_ext
2566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2567 rm -f conftest.err conftest.
$ac_ext
2568 if $ac_preproc_ok; then
2580 echo "$as_me:$LINENO: result: $CPP" >&5
2581 echo "${ECHO_T}$CPP" >&6
2583 for ac_c_preproc_warn_flag
in '' yes
2585 # Use a header file that comes with gcc, so configuring glibc
2586 # with a fresh cross-compiler works.
2587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2588 # <limits.h> exists even on freestanding compilers.
2589 # On the NeXT, cc -E runs the code through the compiler's parser,
2590 # not just through cpp. "Syntax error" is here to catch this case.
2591 cat >conftest.
$ac_ext <<_ACEOF
2594 cat confdefs.h
>>conftest.
$ac_ext
2595 cat >>conftest.
$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2598 # include <limits.h>
2600 # include <assert.h>
2604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2605 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2607 grep -v '^ *+' conftest.er1
>conftest.err
2609 cat conftest.err
>&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } >/dev
/null
; then
2612 if test -s conftest.err
; then
2613 ac_cpp_err
=$ac_c_preproc_warn_flag
2614 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2621 if test -z "$ac_cpp_err"; then
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.
$ac_ext >&5
2627 # Broken: fails on valid input.
2630 rm -f conftest.err conftest.
$ac_ext
2632 # OK, works on sane cases. Now check whether non-existent headers
2633 # can be detected and how.
2634 cat >conftest.
$ac_ext <<_ACEOF
2637 cat confdefs.h
>>conftest.
$ac_ext
2638 cat >>conftest.
$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2640 #include <ac_nonexistent.h>
2642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2643 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2645 grep -v '^ *+' conftest.er1
>conftest.err
2647 cat conftest.err
>&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } >/dev
/null
; then
2650 if test -s conftest.err
; then
2651 ac_cpp_err
=$ac_c_preproc_warn_flag
2652 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2659 if test -z "$ac_cpp_err"; then
2660 # Broken: success on invalid input.
2663 echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.
$ac_ext >&5
2666 # Passes both tests.
2670 rm -f conftest.err conftest.
$ac_ext
2673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2674 rm -f conftest.err conftest.
$ac_ext
2675 if $ac_preproc_ok; then
2678 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2679 See \`config.log' for more details." >&5
2680 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2681 See \`config.log' for more details." >&2;}
2682 { (exit 1); exit 1; }; }
2686 ac_cpp
='$CPP $CPPFLAGS'
2687 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2692 echo "$as_me:$LINENO: checking for egrep" >&5
2693 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2694 if test "${ac_cv_prog_egrep+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2698 then ac_cv_prog_egrep
='grep -E'
2699 else ac_cv_prog_egrep
='egrep'
2702 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2703 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2704 EGREP
=$ac_cv_prog_egrep
2707 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2708 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2709 if test "${ac_cv_header_stdc+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 cat >conftest.
$ac_ext <<_ACEOF
2715 cat confdefs.h
>>conftest.
$ac_ext
2716 cat >>conftest.
$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2731 rm -f conftest.
$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2735 grep -v '^ *+' conftest.er1
>conftest.err
2737 cat conftest.err
>&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try
='test -z "$ac_c_werror_flag"
2741 || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try
='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 ac_cv_header_stdc
=yes
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.
$ac_ext >&5
2758 ac_cv_header_stdc
=no
2760 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2762 if test $ac_cv_header_stdc = yes; then
2763 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2764 cat >conftest.
$ac_ext <<_ACEOF
2767 cat confdefs.h
>>conftest.
$ac_ext
2768 cat >>conftest.
$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2774 $EGREP "memchr" >/dev
/null
2>&1; then
2777 ac_cv_header_stdc
=no
2783 if test $ac_cv_header_stdc = yes; then
2784 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2785 cat >conftest.
$ac_ext <<_ACEOF
2788 cat confdefs.h
>>conftest.
$ac_ext
2789 cat >>conftest.
$ac_ext <<_ACEOF
2790 /* end confdefs.h. */
2794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2795 $EGREP "free" >/dev
/null
2>&1; then
2798 ac_cv_header_stdc
=no
2804 if test $ac_cv_header_stdc = yes; then
2805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2806 if test "$cross_compiling" = yes; then
2809 cat >conftest.
$ac_ext <<_ACEOF
2812 cat confdefs.h
>>conftest.
$ac_ext
2813 cat >>conftest.
$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2816 #if ((' ' & 0x0FF) == 0x020)
2817 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2818 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2820 # define ISLOWER(c) \
2821 (('a' <= (c) && (c) <= 'i') \
2822 || ('j' <= (c) && (c) <= 'r') \
2823 || ('s' <= (c) && (c) <= 'z'))
2824 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2827 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2832 for (i = 0; i < 256; i++)
2833 if (XOR (islower (i), ISLOWER (i))
2834 || toupper (i) != TOUPPER (i))
2839 rm -f conftest
$ac_exeext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2841 (eval $ac_link) 2>&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2852 echo "$as_me: program exited with status $ac_status" >&5
2853 echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.
$ac_ext >&5
2857 ac_cv_header_stdc
=no
2859 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2863 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2864 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2865 if test $ac_cv_header_stdc = yes; then
2867 cat >>confdefs.h
<<\_ACEOF
2868 #define STDC_HEADERS 1
2874 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2884 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2885 inttypes.h stdint.h unistd.h
2887 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2888 echo "$as_me:$LINENO: checking for $ac_header" >&5
2889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2893 cat >conftest.
$ac_ext <<_ACEOF
2896 cat confdefs.h
>>conftest.
$ac_ext
2897 cat >>conftest.
$ac_ext <<_ACEOF
2898 /* end confdefs.h. */
2899 $ac_includes_default
2901 #include <$ac_header>
2903 rm -f conftest.
$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>conftest.er1
2907 grep -v '^ *+' conftest.er1
>conftest.err
2909 cat conftest.err
>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try
='test -z "$ac_c_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try
='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 eval "$as_ac_Header=yes"
2927 echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.
$ac_ext >&5
2930 eval "$as_ac_Header=no"
2932 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2937 cat >>confdefs.h
<<_ACEOF
2938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2969 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 errno.h fcntl.h signal.h sys
/file.h malloc.h sys
/ioctl.h netinet
/in.h sys
/socket.h netdb.h netinet
/tcp.h arpa
/inet.h sys
/wait.h
2971 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2973 echo "$as_me:$LINENO: checking for $ac_header" >&5
2974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2981 # Is the header compilable?
2982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2984 cat >conftest.
$ac_ext <<_ACEOF
2987 cat confdefs.h
>>conftest.
$ac_ext
2988 cat >>conftest.
$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2990 $ac_includes_default
2991 #include <$ac_header>
2993 rm -f conftest.
$ac_objext
2994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2995 (eval $ac_compile) 2>conftest.er1
2997 grep -v '^ *+' conftest.er1
>conftest.err
2999 cat conftest.err
>&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try
='test -z "$ac_c_werror_flag"
3003 || test ! -s conftest.err'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; } &&
3009 { ac_try
='test -s conftest.$ac_objext'
3010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3015 ac_header_compiler
=yes
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.
$ac_ext >&5
3020 ac_header_compiler
=no
3022 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3024 echo "${ECHO_T}$ac_header_compiler" >&6
3026 # Is the header present?
3027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3029 cat >conftest.
$ac_ext <<_ACEOF
3032 cat confdefs.h
>>conftest.
$ac_ext
3033 cat >>conftest.
$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3035 #include <$ac_header>
3037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3038 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3040 grep -v '^ *+' conftest.er1
>conftest.err
3042 cat conftest.err
>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } >/dev
/null
; then
3045 if test -s conftest.err
; then
3046 ac_cpp_err
=$ac_c_preproc_warn_flag
3047 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3054 if test -z "$ac_cpp_err"; then
3055 ac_header_preproc
=yes
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.
$ac_ext >&5
3060 ac_header_preproc
=no
3062 rm -f conftest.err conftest.
$ac_ext
3063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3064 echo "${ECHO_T}$ac_header_preproc" >&6
3066 # So? What about this header?
3067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3073 ac_header_preproc
=yes
3076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3079 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3083 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3090 ## ------------------------------------------ ##
3091 ## Report this to the AC_PACKAGE_NAME lists. ##
3092 ## ------------------------------------------ ##
3095 sed "s/^/$as_me: WARNING: /" >&2
3098 echo "$as_me:$LINENO: checking for $ac_header" >&5
3099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3103 eval "$as_ac_Header=\$ac_header_preproc"
3105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3110 cat >>confdefs.h
<<_ACEOF
3111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3121 for ac_func
in pread pwrite pread64
3123 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3124 echo "$as_me:$LINENO: checking for $ac_func" >&5
3125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3126 if eval "test \"\${$as_ac_var+set}\" = set"; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 cat >conftest.
$ac_ext <<_ACEOF
3132 cat confdefs.h
>>conftest.
$ac_ext
3133 cat >>conftest.
$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3137 #define $ac_func innocuous_$ac_func
3139 /* System header to define __stub macros and hopefully few prototypes,
3140 which can conflict with char $ac_func (); below.
3141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3142 <limits.h> exists even on freestanding compilers. */
3145 # include <limits.h>
3147 # include <assert.h>
3152 /* Override any gcc2 internal prototype to avoid an error. */
3157 /* We use char because int might match the return type of a gcc2
3158 builtin and then its argument prototype would still apply. */
3160 /* The GNU C library defines this for functions which it implements
3161 to always fail with ENOSYS. Some functions are actually named
3162 something starting with __ and the normal name is an alias. */
3163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3166 char (*f) () = $ac_func;
3175 return f != $ac_func;
3180 rm -f conftest.
$ac_objext conftest
$ac_exeext
3181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3182 (eval $ac_link) 2>conftest.er1
3184 grep -v '^ *+' conftest.er1
>conftest.err
3186 cat conftest.err
>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } &&
3189 { ac_try
='test -z "$ac_c_werror_flag"
3190 || test ! -s conftest.err'
3191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; } &&
3196 { ac_try
='test -s conftest$ac_exeext'
3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 eval "$as_ac_var=yes"
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.
$ac_ext >&5
3207 eval "$as_ac_var=no"
3209 rm -f conftest.err conftest.
$ac_objext \
3210 conftest
$ac_exeext conftest.
$ac_ext
3212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3214 if test `eval echo '${'$as_ac_var'}'` = yes; then
3215 cat >>confdefs.h
<<_ACEOF
3216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3223 for ac_func
in memmem
3225 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3226 echo "$as_me:$LINENO: checking for $ac_func" >&5
3227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3228 if eval "test \"\${$as_ac_var+set}\" = set"; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 cat >conftest.
$ac_ext <<_ACEOF
3234 cat confdefs.h
>>conftest.
$ac_ext
3235 cat >>conftest.
$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3239 #define $ac_func innocuous_$ac_func
3241 /* System header to define __stub macros and hopefully few prototypes,
3242 which can conflict with char $ac_func (); below.
3243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3244 <limits.h> exists even on freestanding compilers. */
3247 # include <limits.h>
3249 # include <assert.h>
3254 /* Override any gcc2 internal prototype to avoid an error. */
3259 /* We use char because int might match the return type of a gcc2
3260 builtin and then its argument prototype would still apply. */
3262 /* The GNU C library defines this for functions which it implements
3263 to always fail with ENOSYS. Some functions are actually named
3264 something starting with __ and the normal name is an alias. */
3265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3268 char (*f) () = $ac_func;
3277 return f != $ac_func;
3282 rm -f conftest.
$ac_objext conftest
$ac_exeext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3284 (eval $ac_link) 2>conftest.er1
3286 grep -v '^ *+' conftest.er1
>conftest.err
3288 cat conftest.err
>&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } &&
3291 { ac_try
='test -z "$ac_c_werror_flag"
3292 || test ! -s conftest.err'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; } &&
3298 { ac_try
='test -s conftest$ac_exeext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 eval "$as_ac_var=yes"
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.
$ac_ext >&5
3309 eval "$as_ac_var=no"
3311 rm -f conftest.err conftest.
$ac_objext \
3312 conftest
$ac_exeext conftest.
$ac_ext
3314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3316 if test `eval echo '${'$as_ac_var'}'` = yes; then
3317 cat >>confdefs.h
<<_ACEOF
3318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3323 "$ac_func.$ac_objext" | \
3324 *" $ac_func.$ac_objext" | \
3325 "$ac_func.$ac_objext "* | \
3326 *" $ac_func.$ac_objext "* ) ;;
3327 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
3336 echo "$as_me:$LINENO: checking for errno" >&5
3337 echo $ECHO_N "checking for errno... $ECHO_C" >&6
3338 cat >conftest.
$ac_ext <<_ACEOF
3341 cat confdefs.h
>>conftest.
$ac_ext
3342 cat >>conftest.
$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3351 static int x; x = errno;
3356 rm -f conftest.
$ac_objext conftest
$ac_exeext
3357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3358 (eval $ac_link) 2>conftest.er1
3360 grep -v '^ *+' conftest.er1
>conftest.err
3362 cat conftest.err
>&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } &&
3365 { ac_try
='test -z "$ac_c_werror_flag"
3366 || test ! -s conftest.err'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; } &&
3372 { ac_try
='test -s conftest$ac_exeext'
3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; }; then
3378 echo "$as_me:$LINENO: result: yes - in errno.h" >&5
3379 echo "${ECHO_T}yes - in errno.h" >&6;
3380 cat >>confdefs.h
<<\_ACEOF
3381 #define HAVE_ERRNO 1
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.
$ac_ext >&5
3389 rm -f conftest.err conftest.
$ac_objext \
3390 conftest
$ac_exeext conftest.
$ac_ext
3391 if test $have_errno = no
; then
3392 cat >conftest.
$ac_ext <<_ACEOF
3395 cat confdefs.h
>>conftest.
$ac_ext
3396 cat >>conftest.
$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3405 extern int errno; static int x; x = errno;
3410 rm -f conftest.
$ac_objext conftest
$ac_exeext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3412 (eval $ac_link) 2>conftest.er1
3414 grep -v '^ *+' conftest.er1
>conftest.err
3416 cat conftest.err
>&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try
='test -z "$ac_c_werror_flag"
3420 || test ! -s conftest.err'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; } &&
3426 { ac_try
='test -s conftest$ac_exeext'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3432 echo "$as_me:$LINENO: result: yes - must define" >&5
3433 echo "${ECHO_T}yes - must define" >&6;
3434 cat >>confdefs.h
<<\_ACEOF
3435 #define HAVE_ERRNO 1
3438 cat >>confdefs.h
<<\_ACEOF
3439 #define MUST_DEFINE_ERRNO 1
3443 echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.
$ac_ext >&5
3446 echo "$as_me:$LINENO: result: no" >&5
3447 echo "${ECHO_T}no" >&6
3449 rm -f conftest.err conftest.
$ac_objext \
3450 conftest
$ac_exeext conftest.
$ac_ext
3453 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
3454 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
3455 if test "${ac_cv_have_decl_strerror+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 cat >conftest.
$ac_ext <<_ACEOF
3461 cat confdefs.h
>>conftest.
$ac_ext
3462 cat >>conftest.
$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3464 $ac_includes_default
3469 char *p = (char *) strerror;
3476 rm -f conftest.
$ac_objext
3477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478 (eval $ac_compile) 2>conftest.er1
3480 grep -v '^ *+' conftest.er1
>conftest.err
3482 cat conftest.err
>&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } &&
3485 { ac_try
='test -z "$ac_c_werror_flag"
3486 || test ! -s conftest.err'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; } &&
3492 { ac_try
='test -s conftest.$ac_objext'
3493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; }; then
3498 ac_cv_have_decl_strerror
=yes
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.
$ac_ext >&5
3503 ac_cv_have_decl_strerror
=no
3505 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3507 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
3508 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
3509 if test $ac_cv_have_decl_strerror = yes; then
3511 cat >>confdefs.h
<<_ACEOF
3512 #define HAVE_DECL_STRERROR 1
3517 cat >>confdefs.h
<<_ACEOF
3518 #define HAVE_DECL_STRERROR 0
3523 echo "$as_me:$LINENO: checking whether perror is declared" >&5
3524 echo $ECHO_N "checking whether perror is declared... $ECHO_C" >&6
3525 if test "${ac_cv_have_decl_perror+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 cat >conftest.
$ac_ext <<_ACEOF
3531 cat confdefs.h
>>conftest.
$ac_ext
3532 cat >>conftest.
$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 $ac_includes_default
3539 char *p = (char *) perror;
3546 rm -f conftest.
$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548 (eval $ac_compile) 2>conftest.er1
3550 grep -v '^ *+' conftest.er1
>conftest.err
3552 cat conftest.err
>&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } &&
3555 { ac_try
='test -z "$ac_c_werror_flag"
3556 || test ! -s conftest.err'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; } &&
3562 { ac_try
='test -s conftest.$ac_objext'
3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; }; then
3568 ac_cv_have_decl_perror
=yes
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.
$ac_ext >&5
3573 ac_cv_have_decl_perror
=no
3575 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3577 echo "$as_me:$LINENO: result: $ac_cv_have_decl_perror" >&5
3578 echo "${ECHO_T}$ac_cv_have_decl_perror" >&6
3579 if test $ac_cv_have_decl_perror = yes; then
3581 cat >>confdefs.h
<<_ACEOF
3582 #define HAVE_DECL_PERROR 1
3587 cat >>confdefs.h
<<_ACEOF
3588 #define HAVE_DECL_PERROR 0
3596 echo "$as_me:$LINENO: checking for socklen_t" >&5
3597 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
3598 if test "${ac_cv_type_socklen_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. */
3607 #include <sys/types.h>
3608 #include <sys/socket.h>
3614 if ((socklen_t *) 0)
3616 if (sizeof (socklen_t))
3622 rm -f conftest.
$ac_objext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624 (eval $ac_compile) 2>conftest.er1
3626 grep -v '^ *+' conftest.er1
>conftest.err
3628 cat conftest.err
>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try
='test -z "$ac_c_werror_flag"
3632 || test ! -s conftest.err'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; } &&
3638 { ac_try
='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 ac_cv_type_socklen_t
=yes
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.
$ac_ext >&5
3649 ac_cv_type_socklen_t
=no
3651 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3653 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
3654 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
3655 if test $ac_cv_type_socklen_t = yes; then
3657 cat >>confdefs.h
<<_ACEOF
3658 #define HAVE_SOCKLEN_T 1
3667 # Check whether --with-pkgversion or --without-pkgversion was given.
3668 if test "${with_pkgversion+set}" = set; then
3669 withval
="$with_pkgversion"
3671 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
3672 echo "$as_me: error: package version not specified" >&2;}
3673 { (exit 1); exit 1; }; } ;;
3675 *) PKGVERSION
="($withval) " ;;
3685 # Check whether --with-bugurl or --without-bugurl was given.
3686 if test "${with_bugurl+set}" = set; then
3687 withval
="$with_bugurl"
3689 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
3690 echo "$as_me: error: bug URL not specified" >&2;}
3691 { (exit 1); exit 1; }; } ;;
3694 *) BUGURL
="$withval"
3698 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
3707 REPORT_BUGS_TO
="<$BUGURL>"
3708 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
3715 cat >>confdefs.h
<<_ACEOF
3716 #define PKGVERSION "$PKGVERSION"
3720 cat >>confdefs.h
<<_ACEOF
3721 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3725 .
${srcdir}/configure.srv
3727 if test "${srv_mingwce}" = "yes"; then
3729 elif test "${srv_mingw}" = "yes"; then
3730 LIBS
="$LIBS -lwsock32"
3733 if test "${srv_mingw}" = "yes"; then
3735 cat >>confdefs.h
<<\_ACEOF
3736 #define USE_WIN32API 1
3741 if test "${srv_linux_usrregs}" = "yes"; then
3743 cat >>confdefs.h
<<\_ACEOF
3744 #define HAVE_LINUX_USRREGS 1
3749 if test "${srv_linux_regsets}" = "yes"; then
3751 cat >>confdefs.h
<<\_ACEOF
3752 #define HAVE_LINUX_REGSETS 1
3756 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
3757 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
3758 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 cat >conftest.
$ac_ext <<_ACEOF
3764 cat confdefs.h
>>conftest.
$ac_ext
3765 cat >>conftest.
$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3767 #include <sys/ptrace.h>
3776 rm -f conftest.
$ac_objext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3778 (eval $ac_compile) 2>conftest.er1
3780 grep -v '^ *+' conftest.er1
>conftest.err
3782 cat conftest.err
>&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } &&
3785 { ac_try
='test -z "$ac_c_werror_flag"
3786 || test ! -s conftest.err'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; } &&
3792 { ac_try
='test -s conftest.$ac_objext'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3798 gdbsrv_cv_have_ptrace_getregs
=yes
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.
$ac_ext >&5
3803 gdbsrv_cv_have_ptrace_getregs
=no
3805 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3808 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getregs" >&5
3809 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getregs" >&6
3810 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
3812 cat >>confdefs.h
<<\_ACEOF
3813 #define HAVE_PTRACE_GETREGS 1
3818 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
3819 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
3820 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 cat >conftest.
$ac_ext <<_ACEOF
3826 cat confdefs.h
>>conftest.
$ac_ext
3827 cat >>conftest.
$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3829 #include <sys/ptrace.h>
3838 rm -f conftest.
$ac_objext
3839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3840 (eval $ac_compile) 2>conftest.er1
3842 grep -v '^ *+' conftest.er1
>conftest.err
3844 cat conftest.err
>&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try
='test -z "$ac_c_werror_flag"
3848 || test ! -s conftest.err'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; } &&
3854 { ac_try
='test -s conftest.$ac_objext'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; }; then
3860 gdbsrv_cv_have_ptrace_getfpxregs
=yes
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.
$ac_ext >&5
3865 gdbsrv_cv_have_ptrace_getfpxregs
=no
3867 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3870 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
3871 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getfpxregs" >&6
3872 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
3874 cat >>confdefs.h
<<\_ACEOF
3875 #define HAVE_PTRACE_GETFPXREGS 1
3881 if test "$ac_cv_header_sys_procfs_h" = yes; then
3882 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
3883 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
3884 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 cat >conftest.
$ac_ext <<_ACEOF
3890 cat confdefs.h
>>conftest.
$ac_ext
3891 cat >>conftest.
$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3895 #include <sys/procfs.h>
3904 rm -f conftest.
$ac_objext
3905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3906 (eval $ac_compile) 2>conftest.er1
3908 grep -v '^ *+' conftest.er1
>conftest.err
3910 cat conftest.err
>&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } &&
3913 { ac_try
='test -z "$ac_c_werror_flag"
3914 || test ! -s conftest.err'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; } &&
3920 { ac_try
='test -s conftest.$ac_objext'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3926 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.
$ac_ext >&5
3931 bfd_cv_have_sys_procfs_type_lwpid_t
=no
3934 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3937 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
3939 cat >>confdefs.h
<<\_ACEOF
3940 #define HAVE_LWPID_T 1
3944 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
3945 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
3947 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
3948 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
3949 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 cat >conftest.
$ac_ext <<_ACEOF
3955 cat confdefs.h
>>conftest.
$ac_ext
3956 cat >>conftest.
$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3960 #include <sys/procfs.h>
3969 rm -f conftest.
$ac_objext
3970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3971 (eval $ac_compile) 2>conftest.er1
3973 grep -v '^ *+' conftest.er1
>conftest.err
3975 cat conftest.err
>&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } &&
3978 { ac_try
='test -z "$ac_c_werror_flag"
3979 || test ! -s conftest.err'
3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; } &&
3985 { ac_try
='test -s conftest.$ac_objext'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
3993 echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.
$ac_ext >&5
3996 bfd_cv_have_sys_procfs_type_psaddr_t
=no
3999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4002 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
4004 cat >>confdefs.h
<<\_ACEOF
4005 #define HAVE_PSADDR_T 1
4009 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
4010 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
4012 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
4013 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
4014 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 cat >conftest.
$ac_ext <<_ACEOF
4020 cat confdefs.h
>>conftest.
$ac_ext
4021 cat >>conftest.
$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4025 #include <sys/procfs.h>
4034 rm -f conftest.
$ac_objext
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036 (eval $ac_compile) 2>conftest.er1
4038 grep -v '^ *+' conftest.er1
>conftest.err
4040 cat conftest.err
>&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try
='test -z "$ac_c_werror_flag"
4044 || test ! -s conftest.err'
4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; } &&
4050 { ac_try
='test -s conftest.$ac_objext'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; }; then
4056 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
4058 echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.
$ac_ext >&5
4061 bfd_cv_have_sys_procfs_type_prgregset_t
=no
4064 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4067 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4069 cat >>confdefs.h
<<\_ACEOF
4070 #define HAVE_PRGREGSET_T 1
4074 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
4075 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
4077 echo "$as_me:$LINENO: checking for elf_fpregset_t in sys/procfs.h" >&5
4078 echo $ECHO_N "checking for elf_fpregset_t in sys/procfs.h... $ECHO_C" >&6
4079 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 cat >conftest.
$ac_ext <<_ACEOF
4085 cat confdefs.h
>>conftest.
$ac_ext
4086 cat >>conftest.
$ac_ext <<_ACEOF
4087 /* end confdefs.h. */
4090 #include <sys/procfs.h>
4099 rm -f conftest.
$ac_objext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>conftest.er1
4103 grep -v '^ *+' conftest.er1
>conftest.err
4105 cat conftest.err
>&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try
='test -z "$ac_c_werror_flag"
4109 || test ! -s conftest.err'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; } &&
4115 { ac_try
='test -s conftest.$ac_objext'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; }; then
4121 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.
$ac_ext >&5
4126 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
4129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4132 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
4134 cat >>confdefs.h
<<\_ACEOF
4135 #define HAVE_ELF_FPREGSET_T 1
4139 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
4140 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6
4144 srv_thread_depfiles
=
4148 if test "$srv_linux_thread_db" = "yes"; then
4149 echo "$as_me:$LINENO: checking for libthread_db" >&5
4150 echo $ECHO_N "checking for libthread_db... $ECHO_C" >&6
4151 if test "${srv_cv_thread_db+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 LIBS
="$LIBS -lthread_db"
4156 cat >conftest.
$ac_ext <<_ACEOF
4159 cat confdefs.h
>>conftest.
$ac_ext
4160 cat >>conftest.
$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4162 void ps_pglobal_lookup() {}
4164 void ps_pdwrite() {}
4165 void ps_lgetregs() {}
4166 void ps_lsetregs() {}
4167 void ps_lgetfpregs() {}
4168 void ps_lsetfpregs() {}
4169 void ps_get_thread_area() {}
4179 rm -f conftest.
$ac_objext conftest
$ac_exeext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4181 (eval $ac_link) 2>conftest.er1
4183 grep -v '^ *+' conftest.er1
>conftest.err
4185 cat conftest.err
>&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try
='test -z "$ac_c_werror_flag"
4189 || test ! -s conftest.err'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try
='test -s conftest$ac_exeext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 srv_cv_thread_db
="-lthread_db"
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.
$ac_ext >&5
4208 if test "$prefix" = "/usr" ||
test "$prefix" = "NONE"; then
4209 thread_db
="/lib/libthread_db.so.1"
4211 thread_db
='$prefix/lib/libthread_db.so.1'
4213 LIBS
="$old_LIBS `eval echo "$thread_db"`"
4214 cat >conftest.
$ac_ext <<_ACEOF
4217 cat confdefs.h
>>conftest.
$ac_ext
4218 cat >>conftest.
$ac_ext <<_ACEOF
4219 /* end confdefs.h. */
4220 void ps_pglobal_lookup() {}
4222 void ps_pdwrite() {}
4223 void ps_lgetregs() {}
4224 void ps_lsetregs() {}
4225 void ps_lgetfpregs() {}
4226 void ps_lsetfpregs() {}
4227 void ps_get_thread_area() {}
4237 rm -f conftest.
$ac_objext conftest
$ac_exeext
4238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4239 (eval $ac_link) 2>conftest.er1
4241 grep -v '^ *+' conftest.er1
>conftest.err
4243 cat conftest.err
>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } &&
4246 { ac_try
='test -z "$ac_c_werror_flag"
4247 || test ! -s conftest.err'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; } &&
4253 { ac_try
='test -s conftest$ac_exeext'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 srv_cv_thread_db
="$thread_db"
4261 echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.
$ac_ext >&5
4266 rm -f conftest.err conftest.
$ac_objext \
4267 conftest
$ac_exeext conftest.
$ac_ext
4270 rm -f conftest.err conftest.
$ac_objext \
4271 conftest
$ac_exeext conftest.
$ac_ext
4275 echo "$as_me:$LINENO: result: $srv_cv_thread_db" >&5
4276 echo "${ECHO_T}$srv_cv_thread_db" >&6
4277 if test "$srv_cv_thread_db" = no
; then
4278 { echo "$as_me:$LINENO: WARNING: Could not find libthread_db." >&5
4279 echo "$as_me: WARNING: Could not find libthread_db." >&2;}
4280 { echo "$as_me:$LINENO: WARNING: Disabling thread support in gdbserver." >&5
4281 echo "$as_me: WARNING: Disabling thread support in gdbserver." >&2;}
4282 srv_linux_thread_db
=no
4284 srv_libs
="$srv_cv_thread_db"
4285 echo "$as_me:$LINENO: checking for thread_db_tls_get_addr" >&5
4286 echo $ECHO_N "checking for thread_db_tls_get_addr... $ECHO_C" >&6
4287 if test "${srv_cv_tls_get_addr+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 LIBS
="$LIBS $srv_cv_thread_db"
4292 cat >conftest.
$ac_ext <<_ACEOF
4295 cat confdefs.h
>>conftest.
$ac_ext
4296 cat >>conftest.
$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 void ps_pglobal_lookup() {}
4300 void ps_pdwrite() {}
4301 void ps_lgetregs() {}
4302 void ps_lsetregs() {}
4303 void ps_lgetfpregs() {}
4304 void ps_lsetfpregs() {}
4305 void ps_get_thread_area() {}
4310 td_thr_tls_get_addr();
4315 rm -f conftest.
$ac_objext conftest
$ac_exeext
4316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4317 (eval $ac_link) 2>conftest.er1
4319 grep -v '^ *+' conftest.er1
>conftest.err
4321 cat conftest.err
>&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try
='test -z "$ac_c_werror_flag"
4325 || test ! -s conftest.err'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; } &&
4331 { ac_try
='test -s conftest$ac_exeext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 srv_cv_tls_get_addr
=yes
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.
$ac_ext >&5
4342 srv_cv_tls_get_addr
=no
4344 rm -f conftest.err conftest.
$ac_objext \
4345 conftest
$ac_exeext conftest.
$ac_ext
4349 echo "$as_me:$LINENO: result: $srv_cv_tls_get_addr" >&5
4350 echo "${ECHO_T}$srv_cv_tls_get_addr" >&6
4352 old_LDFLAGS
="$LDFLAGS"
4353 LDFLAGS
="$LDFLAGS -rdynamic"
4354 cat >conftest.
$ac_ext <<_ACEOF
4357 cat confdefs.h
>>conftest.
$ac_ext
4358 cat >>conftest.
$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4369 rm -f conftest.
$ac_objext conftest
$ac_exeext
4370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4371 (eval $ac_link) 2>conftest.er1
4373 grep -v '^ *+' conftest.er1
>conftest.err
4375 cat conftest.err
>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } &&
4378 { ac_try
='test -z "$ac_c_werror_flag"
4379 || test ! -s conftest.err'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; } &&
4385 { ac_try
='test -s conftest$ac_exeext'
4386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; }; then
4393 echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.
$ac_ext >&5
4398 rm -f conftest.err conftest.
$ac_objext \
4399 conftest
$ac_exeext conftest.
$ac_ext
4401 LDFLAGS
="$old_LDFLAGS"
4404 if test "$srv_linux_thread_db" = "yes"; then
4405 srv_thread_depfiles
="thread-db.o proc-service.o"
4406 USE_THREAD_DB
="-DUSE_THREAD_DB"
4407 echo "$as_me:$LINENO: checking for TD_VERSION" >&5
4408 echo $ECHO_N "checking for TD_VERSION... $ECHO_C" >&6
4409 if test "${gdbsrv_cv_have_td_version+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 cat >conftest.
$ac_ext <<_ACEOF
4415 cat confdefs.h
>>conftest.
$ac_ext
4416 cat >>conftest.
$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4418 #include <thread_db.h>
4427 rm -f conftest.
$ac_objext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429 (eval $ac_compile) 2>conftest.er1
4431 grep -v '^ *+' conftest.er1
>conftest.err
4433 cat conftest.err
>&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try
='test -z "$ac_c_werror_flag"
4437 || test ! -s conftest.err'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; } &&
4443 { ac_try
='test -s conftest.$ac_objext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 gdbsrv_cv_have_td_version
=yes
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.
$ac_ext >&5
4454 gdbsrv_cv_have_td_version
=no
4456 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4458 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_td_version" >&5
4459 echo "${ECHO_T}$gdbsrv_cv_have_td_version" >&6
4460 if test $gdbsrv_cv_have_td_version = yes; then
4462 cat >>confdefs.h
<<\_ACEOF
4463 #define HAVE_TD_VERSION 1
4468 if test "$srv_cv_tls_get_addr" = yes; then
4470 cat >>confdefs.h
<<\_ACEOF
4471 #define HAVE_TD_THR_TLS_GET_ADDR 1
4477 if test "$srv_xmlfiles" != ""; then
4478 srv_xmlbuiltin
="xml-builtin.o"
4480 cat >>confdefs.h
<<\_ACEOF
4485 tmp_xmlfiles
=$srv_xmlfiles
4487 for f
in $tmp_xmlfiles; do
4488 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
4492 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
4493 GDBSERVER_LIBS
="$srv_libs"
4501 ac_config_files
="$ac_config_files Makefile"
4502 ac_config_commands
="$ac_config_commands default"
4503 cat >confcache
<<\_ACEOF
4504 # This file is a shell script that caches the results of configure
4505 # tests run on this system so they can be shared between configure
4506 # scripts and configure runs, see configure's option --config-cache.
4507 # It is not useful on other systems. If it contains results you don't
4508 # want to keep, you may remove or edit it.
4510 # config.status only pays attention to the cache file if you give it
4511 # the --recheck option to rerun configure.
4513 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4514 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4519 # The following way of writing the cache mishandles newlines in values,
4520 # but we know of no workaround that is simple, portable, and efficient.
4521 # So, don't put newlines in cache variables' values.
4522 # Ultrix sh set writes to stderr and can't be redirected directly,
4523 # and sets the high bit in the cache file unless we assign to the vars.
4526 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4528 # `set' does not quote correctly, so add quotes (double-quote
4529 # substitution turns \\\\ into \\, and sed turns \\ into \).
4532 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4535 # `set' quotes correctly as required by POSIX, so do not add quotes.
4537 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4544 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4546 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4548 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
4549 if test -w $cache_file; then
4550 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4551 cat confcache
>$cache_file
4553 echo "not updating unwritable cache $cache_file"
4558 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4559 # Let make expand exec_prefix.
4560 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4562 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4563 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4564 # trailing colons and then remove the whole line if VPATH becomes empty
4565 # (actually we leave an empty line to preserve line numbers).
4566 if test "x$srcdir" = x.
; then
4567 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
4568 s/:*\$(srcdir):*/:/;
4569 s/:*\${srcdir}:*/:/;
4571 s/^\([^=]*=[ ]*\):*/\1/;
4577 DEFS
=-DHAVE_CONFIG_H
4581 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4582 # 1. Remove the extension, and $U if already installed.
4583 ac_i
=`echo "$ac_i" |
4584 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4586 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
4587 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
4591 LTLIBOBJS
=$ac_ltlibobjs
4595 : ${CONFIG_STATUS=./config.status}
4596 ac_clean_files_save
=$ac_clean_files
4597 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4598 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4599 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4600 cat >$CONFIG_STATUS <<_ACEOF
4602 # Generated by $as_me.
4603 # Run this file to recreate the current configuration.
4604 # Compiler output produced by configure, useful for debugging
4605 # configure, is in config.log if it exists.
4610 SHELL=\${CONFIG_SHELL-$SHELL}
4613 cat >>$CONFIG_STATUS <<\_ACEOF
4614 ## --------------------- ##
4615 ## M4sh Initialization. ##
4616 ## --------------------- ##
4618 # Be Bourne compatible
4619 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
4622 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4623 # is contrary to our usage. Disable this feature.
4624 alias -g '${1+"$@"}'='"$@"'
4625 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
4628 DUALCASE
=1; export DUALCASE
# for MKS sh
4630 # Support unset when possible.
4631 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
4638 # Work around bugs in pre-3.0 UWIN ksh.
4639 $as_unset ENV MAIL MAILPATH
4646 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4647 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4648 LC_TELEPHONE LC_TIME
4650 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4651 eval $as_var=C
; export $as_var
4657 # Required to use basename.
4658 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4664 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
4665 as_basename
=basename
4671 # Name of the executable.
4672 as_me
=`$as_basename "$0" ||
4673 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4674 X"$0" : 'X\(//\)$' \| \
4675 X"$0" : 'X\(/\)$' \| \
4676 . : '\(.\)' 2>/dev/null ||
4678 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4679 /^X\/\(\/\/\)$/{ s//\1/; q; }
4680 /^X\/\(\/\).*/{ s//\1/; q; }
4684 # PATH needs CR, and LINENO needs CR and PATH.
4685 # Avoid depending upon Character Ranges.
4686 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4687 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4688 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4689 as_cr_digits
='0123456789'
4690 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4692 # The user is always right.
4693 if test "${PATH_SEPARATOR+set}" != set; then
4694 echo "#! /bin/sh" >conf$$.sh
4695 echo "exit 0" >>conf$$.sh
4697 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4708 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
4709 test "x$as_lineno_1" != "x$as_lineno_2" &&
4710 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
4711 # Find who we are. Look in the path if we contain no path at all
4714 *[\\/]* ) as_myself
=$0 ;;
4715 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4719 test -z "$as_dir" && as_dir
=.
4720 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
4725 # We did not find ourselves, most probably we were run as `sh COMMAND'
4726 # in which case we are not to be found in the path.
4727 if test "x$as_myself" = x
; then
4730 if test ! -f "$as_myself"; then
4731 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4732 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4733 { (exit 1); exit 1; }; }
4735 case $CONFIG_SHELL in
4737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4738 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
4741 test -z "$as_dir" && as_dir
=.
4742 for as_base
in sh bash ksh sh5
; do
4745 if ("$as_dir/$as_base" -c '
4748 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4749 test "x$as_lineno_1" != "x$as_lineno_2" &&
4750 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
4751 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
4752 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
4753 CONFIG_SHELL
=$as_dir/$as_base
4755 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4763 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4764 # uniformly replaced by the line number. The first 'sed' inserts a
4765 # line-number line before each line; the second 'sed' does the real
4766 # work. The second script uses 'N' to pair each line-number line
4767 # with the numbered line, and appends trailing '-' during
4768 # substitution so that $LINENO is not a special case at line end.
4769 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4770 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4771 sed '=' <$as_myself |
4776 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4779 s,^['$as_cr_digits']*\n,,
4781 chmod +x
$as_me.lineno ||
4782 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4783 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4784 { (exit 1); exit 1; }; }
4786 # Don't try to exec as it changes $[0], causing all sort of problems
4787 # (the dirname of $[0] is not the place where we might find the
4788 # original and so on. Autoconf is especially sensible to this).
4790 # Exit status is that of the last command.
4795 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4796 *c
*,-n*) ECHO_N
= ECHO_C
='
4798 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
4799 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
4802 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4808 rm -f conf$$ conf$$.exe conf$$.
file
4810 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4811 # We could just check for DJGPP; but this test a) works b) is more generic
4812 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4813 if test -f conf$$.exe
; then
4814 # Don't use ln at all; we don't have any links
4819 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4824 rm -f conf$$ conf$$.exe conf$$.
file
4826 if mkdir
-p .
2>/dev
/null
; then
4829 test -d .
/-p && rmdir .
/-p
4833 as_executable_p
="test -f"
4835 # Sed expression to map a string onto a valid CPP name.
4836 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4838 # Sed expression to map a string onto a valid variable name.
4839 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4843 # We need space, tab and new line, in precisely that order.
4853 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4854 # report actual input values of CONFIG_FILES etc. instead of their
4855 # values after options handling. Logging --version etc. is OK.
4859 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4860 ## Running $as_me. ##
4865 This file was extended by $as_me, which was
4866 generated by GNU Autoconf 2.59. Invocation command line was
4868 CONFIG_FILES = $CONFIG_FILES
4869 CONFIG_HEADERS = $CONFIG_HEADERS
4870 CONFIG_LINKS = $CONFIG_LINKS
4871 CONFIG_COMMANDS = $CONFIG_COMMANDS
4875 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4879 # Files that config.status was made for.
4880 if test -n "$ac_config_files"; then
4881 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4884 if test -n "$ac_config_headers"; then
4885 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4888 if test -n "$ac_config_links"; then
4889 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4892 if test -n "$ac_config_commands"; then
4893 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4896 cat >>$CONFIG_STATUS <<\_ACEOF
4899 \`$as_me' instantiates files from templates according to the
4900 current configuration.
4902 Usage: $0 [OPTIONS] [FILE]...
4904 -h, --help print this help, then exit
4905 -V, --version print version number, then exit
4906 -q, --quiet do not print progress messages
4907 -d, --debug don't remove temporary files
4908 --recheck update $as_me by reconfiguring in the same conditions
4909 --file=FILE[:TEMPLATE]
4910 instantiate the configuration file FILE
4911 --header=FILE[:TEMPLATE]
4912 instantiate the configuration header FILE
4914 Configuration files:
4917 Configuration headers:
4920 Configuration commands:
4923 Report bugs to <bug-autoconf@gnu.org>."
4926 cat >>$CONFIG_STATUS <<_ACEOF
4929 configured by $0, generated by GNU Autoconf 2.59,
4930 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4932 Copyright (C) 2003 Free Software Foundation, Inc.
4933 This config.status script is free software; the Free Software Foundation
4934 gives unlimited permission to copy, distribute and modify it."
4939 cat >>$CONFIG_STATUS <<\_ACEOF
4940 # If no file are specified by the user, then we need to provide default
4941 # value. By we need to know if files were specified by the user.
4947 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
4948 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
4956 *) # This is not an option, so the user has probably given explicit
4959 ac_need_defaults
=false
;;
4963 # Handling of the options.
4965 cat >>$CONFIG_STATUS <<\_ACEOF
4966 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4968 --version |
--vers* |
-V )
4969 echo "$ac_cs_version"; exit 0 ;;
4971 # Conflict between --help and --header
4972 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4973 Try \`$0 --help' for more information." >&5
4974 echo "$as_me: error: ambiguous option: $1
4975 Try \`$0 --help' for more information." >&2;}
4976 { (exit 1); exit 1; }; };;
4977 --help |
--hel |
-h )
4978 echo "$ac_cs_usage"; exit 0 ;;
4979 --debug |
--d* |
-d )
4981 --file |
--fil |
--fi |
--f )
4983 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
4984 ac_need_defaults
=false
;;
4985 --header |
--heade |
--head |
--hea )
4987 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
4988 ac_need_defaults
=false
;;
4989 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
4990 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
4994 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4995 Try \`$0 --help' for more information." >&5
4996 echo "$as_me: error: unrecognized option: $1
4997 Try \`$0 --help' for more information." >&2;}
4998 { (exit 1); exit 1; }; } ;;
5000 *) ac_config_targets
="$ac_config_targets $1" ;;
5006 ac_configure_extra_args
=
5008 if $ac_cs_silent; then
5010 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5014 cat >>$CONFIG_STATUS <<_ACEOF
5015 if \$ac_cs_recheck; then
5016 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5017 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5026 cat >>$CONFIG_STATUS <<\_ACEOF
5027 for ac_config_target
in $ac_config_targets
5029 case "$ac_config_target" in
5030 # Handling of arguments.
5031 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5032 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
5033 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
5034 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5035 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5036 { (exit 1); exit 1; }; };;
5040 # If the user did not use the arguments to specify the items to instantiate,
5041 # then the envvar interface is used. Set only those that are not.
5042 # We use the long form for the default assignment because of an extremely
5043 # bizarre bug on SunOS 4.1.3.
5044 if $ac_need_defaults; then
5045 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5046 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5047 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
5050 # Have a temporary directory for convenience. Make it in the build tree
5051 # simply because there is no reason to put it here, and in addition,
5052 # creating and moving files from /tmp can sometimes cause problems.
5053 # Create a temporary directory, and hook for its removal unless debugging.
5056 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5057 trap '{ (exit 1); exit 1; }' 1 2 13 15
5060 # Create a (secure) tmp directory for tmp files.
5063 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5064 test -n "$tmp" && test -d "$tmp"
5067 tmp
=.
/confstat$$
-$RANDOM
5068 (umask 077 && mkdir
$tmp)
5071 echo "$me: cannot create a temporary directory in ." >&2
5072 { (exit 1); exit 1; }
5077 cat >>$CONFIG_STATUS <<_ACEOF
5080 # CONFIG_FILES section.
5083 # No need to generate the scripts if there are no CONFIG_FILES.
5084 # This happens for instance when ./config.status config.h
5085 if test -n "\$CONFIG_FILES"; then
5086 # Protect against being on the right side of a sed subst in config.status.
5087 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5088 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5089 s,@SHELL@,$SHELL,;t t
5090 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5091 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5092 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5093 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5094 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5095 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5096 s,@exec_prefix@,$exec_prefix,;t t
5097 s,@prefix@,$prefix,;t t
5098 s,@program_transform_name@,$program_transform_name,;t t
5099 s,@bindir@,$bindir,;t t
5100 s,@sbindir@,$sbindir,;t t
5101 s,@libexecdir@,$libexecdir,;t t
5102 s,@datadir@,$datadir,;t t
5103 s,@sysconfdir@,$sysconfdir,;t t
5104 s,@sharedstatedir@,$sharedstatedir,;t t
5105 s,@localstatedir@,$localstatedir,;t t
5106 s,@libdir@,$libdir,;t t
5107 s,@includedir@,$includedir,;t t
5108 s,@oldincludedir@,$oldincludedir,;t t
5109 s,@infodir@,$infodir,;t t
5110 s,@mandir@,$mandir,;t t
5111 s,@build_alias@,$build_alias,;t t
5112 s,@host_alias@,$host_alias,;t t
5113 s,@target_alias@,$target_alias,;t t
5115 s,@ECHO_C@,$ECHO_C,;t t
5116 s,@ECHO_N@,$ECHO_N,;t t
5117 s,@ECHO_T@,$ECHO_T,;t t
5120 s,@CFLAGS@,$CFLAGS,;t t
5121 s,@LDFLAGS@,$LDFLAGS,;t t
5122 s,@CPPFLAGS@,$CPPFLAGS,;t t
5123 s,@ac_ct_CC@,$ac_ct_CC,;t t
5124 s,@EXEEXT@,$EXEEXT,;t t
5125 s,@OBJEXT@,$OBJEXT,;t t
5126 s,@build@,$build,;t t
5127 s,@build_cpu@,$build_cpu,;t t
5128 s,@build_vendor@,$build_vendor,;t t
5129 s,@build_os@,$build_os,;t t
5131 s,@host_cpu@,$host_cpu,;t t
5132 s,@host_vendor@,$host_vendor,;t t
5133 s,@host_os@,$host_os,;t t
5134 s,@target@,$target,;t t
5135 s,@target_cpu@,$target_cpu,;t t
5136 s,@target_vendor@,$target_vendor,;t t
5137 s,@target_os@,$target_os,;t t
5138 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5139 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5140 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5142 s,@EGREP@,$EGREP,;t t
5143 s,@LIBOBJS@,$LIBOBJS,;t t
5144 s,@PKGVERSION@,$PKGVERSION,;t t
5145 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
5146 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5147 s,@RDYNAMIC@,$RDYNAMIC,;t t
5148 s,@GDBSERVER_DEPFILES@,$GDBSERVER_DEPFILES,;t t
5149 s,@GDBSERVER_LIBS@,$GDBSERVER_LIBS,;t t
5150 s,@USE_THREAD_DB@,$USE_THREAD_DB,;t t
5151 s,@srv_xmlbuiltin@,$srv_xmlbuiltin,;t t
5152 s,@srv_xmlfiles@,$srv_xmlfiles,;t t
5153 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5158 cat >>$CONFIG_STATUS <<\_ACEOF
5159 # Split the substitutions into bite-sized pieces for seds with
5160 # small command number limits, like on Digital OSF/1 and HP-UX.
5162 ac_sed_frag
=1 # Number of current file.
5163 ac_beg
=1 # First line for current file.
5164 ac_end
=$ac_max_sed_lines # Line after last line for current file.
5167 while $ac_more_lines; do
5168 if test $ac_beg -gt 1; then
5169 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5171 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5173 if test ! -s $tmp/subs.frag
; then
5176 # The purpose of the label and of the branching condition is to
5177 # speed up the sed processing (if there are no `@' at all, there
5178 # is no need to browse any of the substitutions).
5179 # These are the two extra sed commands mentioned above.
5181 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
5182 if test -z "$ac_sed_cmds"; then
5183 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
5185 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5187 ac_sed_frag
=`expr $ac_sed_frag + 1`
5189 ac_end
=`expr $ac_end + $ac_max_sed_lines`
5192 if test -z "$ac_sed_cmds"; then
5195 fi # test -n "$CONFIG_FILES"
5198 cat >>$CONFIG_STATUS <<\_ACEOF
5199 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
5200 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5202 - |
*:- |
*:-:* ) # input from stdin
5204 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5205 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5206 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5207 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5208 * ) ac_file_in
=$ac_file.
in ;;
5211 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5212 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5213 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5214 X"$ac_file" : 'X\(//\)[^/]' \| \
5215 X"$ac_file" : 'X\(//\)$' \| \
5216 X"$ac_file" : 'X\(/\)' \| \
5217 . : '\(.\)' 2>/dev/null ||
5219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5220 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5221 /^X\(\/\/\)$/{ s//\1/; q; }
5222 /^X\(\/\).*/{ s//\1/; q; }
5224 { if $as_mkdir_p; then
5229 while test ! -d "$as_dir"; do
5230 as_dirs
="$as_dir $as_dirs"
5231 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5232 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5233 X"$as_dir" : 'X\(//\)[^/]' \| \
5234 X"$as_dir" : 'X\(//\)$' \| \
5235 X"$as_dir" : 'X\(/\)' \| \
5236 . : '\(.\)' 2>/dev/null ||
5238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5239 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5240 /^X\(\/\/\)$/{ s//\1/; q; }
5241 /^X\(\/\).*/{ s//\1/; q; }
5244 test ! -n "$as_dirs" || mkdir
$as_dirs
5245 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5246 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5247 { (exit 1); exit 1; }; }; }
5251 if test "$ac_dir" != .
; then
5252 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5253 # A "../" for each directory in $ac_dir_suffix.
5254 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5256 ac_dir_suffix
= ac_top_builddir
=
5260 .
) # No --srcdir option. We are building in place.
5262 if test -z "$ac_top_builddir"; then
5265 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5267 [\\/]* | ?
:[\\/]* ) # Absolute path.
5268 ac_srcdir
=$srcdir$ac_dir_suffix;
5269 ac_top_srcdir
=$srcdir ;;
5271 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5272 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5275 # Do not use `cd foo && pwd` to compute absolute paths, because
5276 # the directories may not exist.
5278 .
) ac_abs_builddir
="$ac_dir";;
5281 .
) ac_abs_builddir
=`pwd`;;
5282 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5283 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5286 case $ac_abs_builddir in
5287 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5289 case ${ac_top_builddir}.
in
5290 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5291 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5292 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5295 case $ac_abs_builddir in
5296 .
) ac_abs_srcdir
=$ac_srcdir;;
5299 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5300 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5301 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5304 case $ac_abs_builddir in
5305 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5307 case $ac_top_srcdir in
5308 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5309 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5310 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5316 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5317 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
5320 if test x
"$ac_file" != x-
; then
5321 { echo "$as_me:$LINENO: creating $ac_file" >&5
5322 echo "$as_me: creating $ac_file" >&6;}
5325 # Let's still pretend it is `configure' which instantiates (i.e., don't
5326 # use $as_me), people would be surprised to read:
5327 # /* config.h. Generated by config.status. */
5328 if test x
"$ac_file" = x-
; then
5331 configure_input
="$ac_file. "
5333 configure_input
=$configure_input"Generated from `echo $ac_file_in |
5334 sed 's,.*/,,'` by configure."
5336 # First look for the input files in the build tree, otherwise in the
5338 ac_file_inputs
=`IFS=:
5339 for f in $ac_file_in; do
5341 -) echo $tmp/stdin ;;
5343 # Absolute (can't be DOS-style, as IFS=:)
5344 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5345 echo "$as_me: error: cannot find input file: $f" >&2;}
5346 { (exit 1); exit 1; }; }
5349 if test -f "$f"; then
5352 elif test -f "$srcdir/$f"; then
5357 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5358 echo "$as_me: error: cannot find input file: $f" >&2;}
5359 { (exit 1); exit 1; }; }
5362 done` ||
{ (exit 1); exit 1; }
5364 cat >>$CONFIG_STATUS <<_ACEOF
5368 cat >>$CONFIG_STATUS <<\_ACEOF
5370 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5371 s
,@configure_input@
,$configure_input,;t t
5372 s
,@srcdir@
,$ac_srcdir,;t t
5373 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
5374 s
,@top_srcdir@
,$ac_top_srcdir,;t t
5375 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
5376 s
,@builddir@
,$ac_builddir,;t t
5377 s
,@abs_builddir@
,$ac_abs_builddir,;t t
5378 s
,@top_builddir@
,$ac_top_builddir,;t t
5379 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
5380 s
,@INSTALL@
,$ac_INSTALL,;t t
5381 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5383 if test x"$ac_file" != x-; then
5384 mv $tmp/out $ac_file
5392 cat >>$CONFIG_STATUS <<\_ACEOF
5395 # CONFIG_HEADER section.
5398 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
5399 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5401 # ac_d sets the value in "#define NAME VALUE" lines.
5402 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5403 ac_dB
='[ ].*$,\1#\2'
5406 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5407 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5408 ac_uB
='$,\1#\2define\3'
5412 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
5413 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5415 - |
*:- |
*:-:* ) # input from stdin
5417 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5418 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5419 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5420 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5421 * ) ac_file_in
=$ac_file.
in ;;
5424 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
5425 echo "$as_me: creating $ac_file" >&6;}
5427 # First look for the input files in the build tree, otherwise in the
5429 ac_file_inputs
=`IFS=:
5430 for f in $ac_file_in; do
5432 -) echo $tmp/stdin ;;
5434 # Absolute (can't be DOS-style, as IFS=:)
5435 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5436 echo "$as_me: error: cannot find input file: $f" >&2;}
5437 { (exit 1); exit 1; }; }
5438 # Do quote $f, to prevent DOS paths from being IFS'd.
5441 if test -f "$f"; then
5444 elif test -f "$srcdir/$f"; then
5449 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5450 echo "$as_me: error: cannot find input file: $f" >&2;}
5451 { (exit 1); exit 1; }; }
5454 done` ||
{ (exit 1); exit 1; }
5455 # Remove the trailing spaces.
5456 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5460 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5461 # `conftest.undefs', that substitutes the proper values into
5462 # config.h.in to produce config.h. The first handles `#define'
5463 # templates, and the second `#undef' templates.
5464 # And first: Protect against being on the right side of a sed subst in
5465 # config.status. Protect against being in an unquoted here document
5467 rm -f conftest.defines conftest.undefs
5468 # Using a here document instead of a string reduces the quoting nightmare.
5469 # Putting comments in sed scripts is not portable.
5471 # `end' is used to avoid that the second main sed command (meant for
5472 # 0-ary CPP macros) applies to n-ary macro definitions.
5473 # See the Autoconf documentation for `clear'.
5474 cat >confdef2sed.
sed <<\_ACEOF
5479 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5481 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5484 # If some macros were called several times there might be several times
5485 # the same #defines, which is useless. Nevertheless, we may not want to
5486 # sort them, since we want the *last* AC-DEFINE to be honored.
5487 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5488 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5489 rm -f confdef2sed.sed
5491 # This sed command replaces #undef with comments. This is necessary, for
5492 # example, in the case of _POSIX_SOURCE, which is predefined and required
5493 # on some systems where configure will not decide to define it.
5494 cat >>conftest.undefs <<\_ACEOF
5495 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5498 # Break up conftest.defines because some shells have a limit on the size
5499 # of here documents, and old seds have small limits too (100 cmds).
5500 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5501 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5502 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5503 echo ' :' >>$CONFIG_STATUS
5505 while grep . conftest.defines >/dev/null
5507 # Write a limited-size here document to $tmp/defines.sed.
5508 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5509 # Speed up: don't consider the non `#define' lines.
5510 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5511 # Work around the forget-to-reset-the-flag bug.
5512 echo 't clr' >>$CONFIG_STATUS
5513 echo ': clr' >>$CONFIG_STATUS
5514 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
5516 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5520 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
5521 rm -f conftest.defines
5522 mv conftest.
tail conftest.defines
5524 rm -f conftest.defines
5525 echo ' fi # grep' >>$CONFIG_STATUS
5526 echo >>$CONFIG_STATUS
5528 # Break up conftest.undefs because some shells have a limit on the size
5529 # of here documents, and old seds have small limits too (100 cmds).
5530 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5532 while grep . conftest.undefs
>/dev
/null
5534 # Write a limited-size here document to $tmp/undefs.sed.
5535 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5536 # Speed up: don't consider the non
`#undef'
5537 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5538 # Work around the forget-to-reset-the-flag bug.
5539 echo 't clr' >>$CONFIG_STATUS
5540 echo ': clr' >>$CONFIG_STATUS
5541 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5543 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5547 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5548 rm -f conftest.undefs
5549 mv conftest.tail conftest.undefs
5551 rm -f conftest.undefs
5553 cat >>$CONFIG_STATUS <<\_ACEOF
5554 # Let's still pretend it is `configure
' which instantiates (i.e., don't
5555 # use $as_me), people would be surprised to read:
5556 # /* config.h. Generated by config.status. */
5557 if test x
"$ac_file" = x-
; then
5558 echo "/* Generated by configure. */" >$tmp/config.h
5560 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5562 cat $tmp/in >>$tmp/config.h
5564 if test x
"$ac_file" != x-
; then
5565 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
5566 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5567 echo "$as_me: $ac_file is unchanged" >&6;}
5569 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5570 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5571 X"$ac_file" : 'X\(//\)[^/]' \| \
5572 X"$ac_file" : 'X\(//\)$' \| \
5573 X"$ac_file" : 'X\(/\)' \| \
5574 . : '\(.\)' 2>/dev/null ||
5576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5578 /^X\(\/\/\)$/{ s//\1/; q; }
5579 /^X\(\/\).*/{ s//\1/; q; }
5581 { if $as_mkdir_p; then
5586 while test ! -d "$as_dir"; do
5587 as_dirs
="$as_dir $as_dirs"
5588 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5590 X"$as_dir" : 'X\(//\)[^/]' \| \
5591 X"$as_dir" : 'X\(//\)$' \| \
5592 X"$as_dir" : 'X\(/\)' \| \
5593 . : '\(.\)' 2>/dev/null ||
5595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5597 /^X\(\/\/\)$/{ s//\1/; q; }
5598 /^X\(\/\).*/{ s//\1/; q; }
5601 test ! -n "$as_dirs" || mkdir
$as_dirs
5602 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5603 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5604 { (exit 1); exit 1; }; }; }
5607 mv $tmp/config.h
$ac_file
5615 cat >>$CONFIG_STATUS <<\_ACEOF
5618 # CONFIG_COMMANDS section.
5620 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
5621 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
5622 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5623 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
5624 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5625 X"$ac_dest" : 'X\(//\)[^/]' \| \
5626 X"$ac_dest" : 'X\(//\)$' \| \
5627 X"$ac_dest" : 'X\(/\)' \| \
5628 . : '\(.\)' 2>/dev/null ||
5630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5632 /^X\(\/\/\)$/{ s//\1/; q; }
5633 /^X\(\/\).*/{ s//\1/; q; }
5635 { if $as_mkdir_p; then
5640 while test ! -d "$as_dir"; do
5641 as_dirs
="$as_dir $as_dirs"
5642 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5643 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5644 X"$as_dir" : 'X\(//\)[^/]' \| \
5645 X"$as_dir" : 'X\(//\)$' \| \
5646 X"$as_dir" : 'X\(/\)' \| \
5647 . : '\(.\)' 2>/dev/null ||
5649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5650 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5651 /^X\(\/\/\)$/{ s//\1/; q; }
5652 /^X\(\/\).*/{ s//\1/; q; }
5655 test ! -n "$as_dirs" || mkdir
$as_dirs
5656 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5657 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5658 { (exit 1); exit 1; }; }; }
5662 if test "$ac_dir" != .
; then
5663 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5664 # A "../" for each directory in $ac_dir_suffix.
5665 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5667 ac_dir_suffix
= ac_top_builddir
=
5671 .
) # No --srcdir option. We are building in place.
5673 if test -z "$ac_top_builddir"; then
5676 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5678 [\\/]* | ?
:[\\/]* ) # Absolute path.
5679 ac_srcdir
=$srcdir$ac_dir_suffix;
5680 ac_top_srcdir
=$srcdir ;;
5682 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5683 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5686 # Do not use `cd foo && pwd` to compute absolute paths, because
5687 # the directories may not exist.
5689 .
) ac_abs_builddir
="$ac_dir";;
5692 .
) ac_abs_builddir
=`pwd`;;
5693 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5694 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5697 case $ac_abs_builddir in
5698 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5700 case ${ac_top_builddir}.
in
5701 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5702 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5703 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5706 case $ac_abs_builddir in
5707 .
) ac_abs_srcdir
=$ac_srcdir;;
5710 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5711 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5712 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5715 case $ac_abs_builddir in
5716 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5718 case $ac_top_srcdir in
5719 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5720 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5721 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5726 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5727 echo "$as_me: executing $ac_dest commands" >&6;}
5729 default
) case x
$CONFIG_HEADERS in
5730 xconfig.h
:config.
in)
5738 cat >>$CONFIG_STATUS <<\_ACEOF
5740 { (exit 0); exit 0; }
5742 chmod +x
$CONFIG_STATUS
5743 ac_clean_files
=$ac_clean_files_save
5746 # configure is writing to config.log, and then calls config.status.
5747 # config.status does its own redirection, appending to config.log.
5748 # Unfortunately, on DOS this fails, as config.log is still kept open
5749 # by configure, so config.status won't be able to write to it; its
5750 # output is simply discarded. So we exec the FD to /dev/null,
5751 # effectively closing config.log, so it can be properly (re)opened and
5752 # appended to by config.status. When coming back to configure, we
5753 # need to make the FD available again.
5754 if test "$no_create" != yes; then
5756 ac_config_status_args
=
5757 test "$silent" = yes &&
5758 ac_config_status_args
="$ac_config_status_args --quiet"
5760 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5762 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5763 # would make configure fail if this is the last instruction.
5764 $ac_cs_success ||
{ (exit 1); exit 1; }