2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="main.c"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 enable_option_checking
=no
592 ac_subst_vars
='LTLIBOBJS
662 READLINE_TEXI_INCFLAG
732 MAINTAINER_MODE_FALSE
761 program_transform_name
772 ac_subst_files
='host_makefile_frag'
774 enable_option_checking
775 enable_maintainer_mode
778 with_separate_debug_dir
780 with_relocated_sources
782 with_auto_load_safe_path
809 enable_build_warnings
810 enable_gdb_build_warnings
818 ac_precious_vars
='build_alias
832 ac_subdirs_all
='testsuite
837 # Initialize some variables set by options.
839 ac_init_version
=false
840 ac_unrecognized_opts
=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
851 program_transform_name
=s
,x
,x
,
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir
='${exec_prefix}/bin'
866 sbindir
='${exec_prefix}/sbin'
867 libexecdir
='${exec_prefix}/libexec'
868 datarootdir
='${prefix}/share'
869 datadir
='${datarootdir}'
870 sysconfdir
='${prefix}/etc'
871 sharedstatedir
='${prefix}/com'
872 localstatedir
='${prefix}/var'
873 includedir
='${prefix}/include'
874 oldincludedir
='/usr/include'
875 docdir
='${datarootdir}/doc/${PACKAGE}'
876 infodir
='${datarootdir}/info'
881 libdir
='${exec_prefix}/lib'
882 localedir
='${datarootdir}/locale'
883 mandir
='${datarootdir}/man'
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\
$ac_option
897 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 # Accept the important Cygnus configure options, so we can diagnose typos.
903 case $ac_dashdash$ac_option in
907 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
909 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
912 -build |
--build |
--buil |
--bui |
--bu)
913 ac_prev
=build_alias
;;
914 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
915 build_alias
=$ac_optarg ;;
917 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
918 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
919 ac_prev
=cache_file
;;
920 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
921 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
922 cache_file
=$ac_optarg ;;
925 cache_file
=config.cache
;;
927 -datadir |
--datadir |
--datadi |
--datad)
929 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
930 datadir
=$ac_optarg ;;
932 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
933 |
--dataroo |
--dataro |
--datar)
934 ac_prev
=datarootdir
;;
935 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
936 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
937 datarootdir
=$ac_optarg ;;
939 -disable-* |
--disable-*)
940 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
943 as_fn_error
"invalid feature name: $ac_useropt"
944 ac_useropt_orig
=$ac_useropt
945 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep
=', ';;
953 eval enable_
$ac_useropt=no
;;
955 -docdir |
--docdir |
--docdi |
--doc |
--do)
957 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
960 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
962 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
965 -enable-* |
--enable-*)
966 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
969 as_fn_error
"invalid feature name: $ac_useropt"
970 ac_useropt_orig
=$ac_useropt
971 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep
=', ';;
979 eval enable_
$ac_useropt=\
$ac_optarg ;;
981 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
982 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
983 |
--exec |
--exe |
--ex)
984 ac_prev
=exec_prefix
;;
985 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
986 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
987 |
--exec=* |
--exe=* |
--ex=*)
988 exec_prefix
=$ac_optarg ;;
990 -gas |
--gas |
--ga |
--g)
991 # Obsolete; use --with-gas.
994 -help |
--help |
--hel |
--he |
-h)
996 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
997 ac_init_help
=recursive
;;
998 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
999 ac_init_help
=short
;;
1001 -host |
--host |
--hos |
--ho)
1002 ac_prev
=host_alias
;;
1003 -host=* |
--host=* |
--hos=* |
--ho=*)
1004 host_alias
=$ac_optarg ;;
1006 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1008 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1010 htmldir
=$ac_optarg ;;
1012 -includedir |
--includedir |
--includedi |
--included |
--include \
1013 |
--includ |
--inclu |
--incl |
--inc)
1014 ac_prev
=includedir
;;
1015 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1016 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1017 includedir
=$ac_optarg ;;
1019 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1021 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1022 infodir
=$ac_optarg ;;
1024 -libdir |
--libdir |
--libdi |
--libd)
1026 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1027 libdir
=$ac_optarg ;;
1029 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1030 |
--libexe |
--libex |
--libe)
1031 ac_prev
=libexecdir
;;
1032 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1033 |
--libexe=* |
--libex=* |
--libe=*)
1034 libexecdir
=$ac_optarg ;;
1036 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1037 ac_prev
=localedir
;;
1038 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1039 localedir
=$ac_optarg ;;
1041 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1042 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1043 ac_prev
=localstatedir
;;
1044 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1045 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1046 localstatedir
=$ac_optarg ;;
1048 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1050 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1051 mandir
=$ac_optarg ;;
1053 -nfp |
--nfp |
--nf)
1054 # Obsolete; use --without-fp.
1057 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1058 |
--no-cr |
--no-c |
-n)
1061 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1062 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1065 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1066 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1067 |
--oldin |
--oldi |
--old |
--ol |
--o)
1068 ac_prev
=oldincludedir
;;
1069 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1070 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1071 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1072 oldincludedir
=$ac_optarg ;;
1074 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1076 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1077 prefix
=$ac_optarg ;;
1079 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1080 |
--program-pre |
--program-pr |
--program-p)
1081 ac_prev
=program_prefix
;;
1082 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1083 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1084 program_prefix
=$ac_optarg ;;
1086 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1087 |
--program-suf |
--program-su |
--program-s)
1088 ac_prev
=program_suffix
;;
1089 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1090 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1091 program_suffix
=$ac_optarg ;;
1093 -program-transform-name |
--program-transform-name \
1094 |
--program-transform-nam |
--program-transform-na \
1095 |
--program-transform-n |
--program-transform- \
1096 |
--program-transform |
--program-transfor \
1097 |
--program-transfo |
--program-transf \
1098 |
--program-trans |
--program-tran \
1099 |
--progr-tra |
--program-tr |
--program-t)
1100 ac_prev
=program_transform_name
;;
1101 -program-transform-name=* |
--program-transform-name=* \
1102 |
--program-transform-nam=* |
--program-transform-na=* \
1103 |
--program-transform-n=* |
--program-transform-=* \
1104 |
--program-transform=* |
--program-transfor=* \
1105 |
--program-transfo=* |
--program-transf=* \
1106 |
--program-trans=* |
--program-tran=* \
1107 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1108 program_transform_name
=$ac_optarg ;;
1110 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1112 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1113 pdfdir
=$ac_optarg ;;
1115 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1117 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1120 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1121 |
-silent |
--silent |
--silen |
--sile |
--sil)
1124 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1126 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1128 sbindir
=$ac_optarg ;;
1130 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1131 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1132 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1134 ac_prev
=sharedstatedir
;;
1135 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1136 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1137 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1139 sharedstatedir
=$ac_optarg ;;
1141 -site |
--site |
--sit)
1143 -site=* |
--site=* |
--sit=*)
1146 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1148 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1149 srcdir
=$ac_optarg ;;
1151 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1152 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1153 ac_prev
=sysconfdir
;;
1154 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1155 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1156 sysconfdir
=$ac_optarg ;;
1158 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1159 ac_prev
=target_alias
;;
1160 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1161 target_alias
=$ac_optarg ;;
1163 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1166 -version |
--version |
--versio |
--versi |
--vers |
-V)
1167 ac_init_version
=: ;;
1170 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1173 as_fn_error
"invalid package name: $ac_useropt"
1174 ac_useropt_orig
=$ac_useropt
1175 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1180 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep
=', ';;
1183 eval with_
$ac_useropt=\
$ac_optarg ;;
1185 -without-* |
--without-*)
1186 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1189 as_fn_error
"invalid package name: $ac_useropt"
1190 ac_useropt_orig
=$ac_useropt
1191 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1196 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep
=', ';;
1199 eval with_
$ac_useropt=no
;;
1202 # Obsolete; use --with-x.
1205 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1206 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1207 ac_prev
=x_includes
;;
1208 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1209 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1210 x_includes
=$ac_optarg ;;
1212 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1213 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1214 ac_prev
=x_libraries
;;
1215 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1216 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1217 x_libraries
=$ac_optarg ;;
1219 -*) as_fn_error
"unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information."
1224 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1228 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1230 eval $ac_envvar=\
$ac_optarg
1231 export $ac_envvar ;;
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1244 if test -n "$ac_prev"; then
1245 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error
"missing argument to $ac_option"
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1252 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 # Check all directory arguments for consistency.
1258 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val
=\$
$ac_var
1264 # Remove trailing slashes.
1267 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\
$ac_val;;
1270 # Be sure to have absolute directory names.
1272 [\\/$
]* | ?
:[\\/]* ) continue;;
1273 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1275 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1283 target
=$target_alias
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x
; then
1287 if test "x$build_alias" = x
; then
1288 cross_compiling
=maybe
1289 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1290 If a cross compiler is detected then cross compile mode will be used." >&2
1291 elif test "x$build_alias" != "x$host_alias"; then
1297 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1299 test "$silent" = yes && exec 6>/dev
/null
1302 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di
=`ls -di .` &&
1304 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error
"working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error
"pwd does not report name of working directory"
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted
=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir
=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1342 ac_srcdir_defaulted
=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1346 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1348 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1360 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 for ac_var
in $ac_precious_vars; do
1363 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1365 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1370 # Report the --help message.
1372 if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1376 \`configure' configures this package to adapt to many kinds of systems.
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE. See below for descriptions of some of the useful variables.
1383 Defaults for the options are specified in brackets.
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396 Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1407 For better control, use the options below.
1409 Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1439 --x-includes=DIR X include files are
in DIR
1440 --x-libraries=DIR X library files are
in DIR
1443 --build=BUILD configure
for building on BUILD
[guessed
]
1444 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1445 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1449 if test -n "$ac_init_help"; then
1454 --disable-option-checking ignore unrecognized
--enable/--with options
1455 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1456 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1457 --enable-maintainer-mode enable make rules and dependencies not useful
1458 (and sometimes confusing
) to the casual installer
1459 --enable-plugins Enable support
for plugins
(defaults no
)
1460 --disable-largefile omit support
for large files
1461 --enable-targets=TARGETS
1462 alternative target configurations
1463 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1464 --disable-gdbcli disable command-line interface
(CLI
)
1465 --disable-gdbmi disable machine-interface
(MI
)
1466 --enable-tui enable full-screen terminal user interface
(TUI
)
1467 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1468 --enable-profiling enable profiling of GDB
1469 --disable-rpath do not hardcode runtime library paths
1470 --enable-libmcheck Try building GDB with
-lmcheck if available
1471 --enable-werror treat compile warnings as errors
1472 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1473 --enable-gdb-build-warnings
1474 enable GDB specific build-time compiler warnings
if
1476 --enable-sim link gdb with simulator
1477 --enable-multi-ice build the multi-ice-gdb-server
1478 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1482 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1483 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1484 --with-separate-debug-dir=PATH
1485 look for global separate debug info
in this path
1487 --with-gdb-datadir=PATH
look for global separate data files
in this path
1489 --with-relocated-sources=PATH
1490 automatically relocate this path
for source files
1491 --with-auto-load-dir=PATH
1492 directories from
which to load auto-loaded scripts
1493 [$debugdir:$datadir/auto-load
]
1494 --with-auto-load-safe-path=PATH
1495 directories safe to hold auto-loaded files
1496 [--with-auto-load-dir]
1497 --without-auto-load-safe-path
1498 do not restrict auto-loaded files locations
1499 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1500 --with-curses use the curses library instead of the termcap
1502 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1503 --with-bugurl=URL Direct users to URL to report a bug
1504 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1505 --with-libiconv-prefix=DIR
1506 search
for libiconv
in DIR
/include and DIR
/lib
1507 --with-iconv-bin=PATH specify where to
find the
iconv program
1508 --with-system-readline use installed readline library
1509 --with-jit-reader-dir=PATH
1510 directory to load the JIT readers from
1511 --with-expat include expat support
(auto
/yes
/no
)
1512 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1513 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1514 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1515 --with-python[=PYTHON] include python support
1516 (auto/yes/no/<python-program>)
1517 --without-included-regex
1518 don't use included regex
; this is the default on
1519 systems with version
2 of the GNU C library
(use
1520 with caution on other system
)
1521 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1522 --with-system-gdbinit=PATH
1523 automatically load a system-wide gdbinit
file
1524 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1525 --with-tk directory containing tk configuration
(tkConfig.sh
)
1526 --with-x use the X Window System
1528 Some influential environment variables
:
1529 CC C compiler
command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1532 nonstandard directory
<lib dir
>
1533 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1534 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1535 you have headers
in a nonstandard directory
<include dir
>
1537 MAKEINFO Parent configure detects
if it is of sufficient version.
1539 Parameters
for MAKEINFO.
1540 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1541 the first program found out of: `bison
-y', `byacc', `yacc'.
1542 YFLAGS The list of arguments that will be passed by default to $YACC.
1543 This script will default YFLAGS to the empty string to avoid a
1544 default value of `-d' given by some make applications.
1545 XMKMF Path to xmkmf, Makefile generator for X Window System
1547 Use these variables to override the choices made by `configure' or to
help
1548 it to
find libraries and programs with nonstandard names
/locations.
1550 Report bugs to the package provider.
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1564 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1566 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1571 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1574 ac_abs_top_builddir
=$ac_pwd
1575 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir
=$ac_top_build_prefix
1580 .
) # We are building in place.
1582 ac_top_srcdir
=$ac_top_builddir_sub
1583 ac_abs_top_srcdir
=$ac_pwd ;;
1584 [\\/]* | ?
:[\\/]* ) # Absolute name.
1585 ac_srcdir
=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir
=$srcdir
1587 ac_abs_top_srcdir
=$srcdir ;;
1589 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1593 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1595 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1602 $SHELL "$ac_srcdir/configure" --help=recursive
1604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1614 generated by GNU Autoconf
2.64
1616 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1617 This configure
script is free software
; the Free Software Foundation
1618 gives unlimited permission to copy
, distribute and modify it.
1623 ## ------------------------ ##
1624 ## Autoconf initialization. ##
1625 ## ------------------------ ##
1627 # ac_fn_c_try_compile LINENO
1628 # --------------------------
1629 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_compile
()
1632 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1633 rm -f conftest.
$ac_objext
1634 if { { ac_try
="$ac_compile"
1636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_compile") 2>conftest.err
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && {
1650 test -z "$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 } && test -s conftest.$ac_objext; then :
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 } # ac_fn_c_try_compile
1665 # ac_fn_c_try_cpp LINENO
1666 # ----------------------
1667 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_cpp conftest.$ac_ext"
1673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1674 *) ac_try_echo
=$ac_try;;
1676 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1680 if test -s conftest.err
; then
1681 grep -v '^ *+' conftest.err
>conftest.er1
1682 cat conftest.er1
>&5
1683 mv -f conftest.er1 conftest.err
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } >/dev
/null
&& {
1687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.
$ac_ext >&5
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1702 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1703 # -------------------------------------------------------
1704 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1705 # the include files in INCLUDES and setting the cache variable VAR
1707 ac_fn_c_check_header_mongrel
()
1709 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1710 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1714 $as_echo_n "(cached) " >&6
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718 $as_echo "$ac_res" >&6; }
1720 # Is the header compilable?
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1722 $as_echo_n "checking $2 usability... " >&6; }
1723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1728 if ac_fn_c_try_compile
"$LINENO"; then :
1729 ac_header_compiler
=yes
1731 ac_header_compiler
=no
1733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1735 $as_echo "$ac_header_compiler" >&6; }
1737 # Is the header present?
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1739 $as_echo_n "checking $2 presence... " >&6; }
1740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1744 if ac_fn_c_try_cpp
"$LINENO"; then :
1745 ac_header_preproc
=yes
1747 ac_header_preproc
=no
1749 rm -f conftest.err conftest.
$ac_ext
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1751 $as_echo "$ac_header_preproc" >&6; }
1753 # So? What about this header?
1754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1757 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1759 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1763 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1765 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1767 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1769 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1771 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1779 eval "$3=\$ac_header_compiler"
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1787 } # ac_fn_c_check_header_mongrel
1789 # ac_fn_c_try_run LINENO
1790 # ----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1792 # that executables *can* be run.
1795 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1796 if { { ac_try
="$ac_link"
1798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>&5
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1807 { { case "(($ac_try" in
1808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1809 *) ac_try_echo
=$ac_try;;
1811 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_try") 2>&5
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; }; }; then :
1819 $as_echo "$as_me: program exited with status $ac_status" >&5
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.
$ac_ext >&5
1823 ac_retval
=$ac_status
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1831 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1832 # -------------------------------------------------------
1833 # Tests whether HEADER exists and can be compiled using the include files in
1834 # INCLUDES, setting the cache variable VAR accordingly.
1835 ac_fn_c_check_header_compile
()
1837 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841 $as_echo_n "(cached) " >&6
1843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1848 if ac_fn_c_try_compile
"$LINENO"; then :
1853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1860 } # ac_fn_c_check_header_compile
1862 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1863 # --------------------------------------------
1864 # Tries to find the compile-time value of EXPR in a program that includes
1865 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1867 ac_fn_c_compute_int
()
1869 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1870 if test "$cross_compiling" = yes; then
1871 # Depending upon the size, compute the lo and hi bounds.
1872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1878 static int test_array [1 - 2 * !(($2) >= 0)];
1885 if ac_fn_c_try_compile
"$LINENO"; then :
1888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1894 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1901 if ac_fn_c_try_compile
"$LINENO"; then :
1902 ac_hi
=$ac_mid; break
1904 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1905 if test $ac_lo -le $ac_mid; then
1909 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1920 static int test_array [1 - 2 * !(($2) < 0)];
1927 if ac_fn_c_try_compile
"$LINENO"; then :
1930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1936 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1943 if ac_fn_c_try_compile
"$LINENO"; then :
1944 ac_lo
=$ac_mid; break
1946 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1947 if test $ac_mid -le $ac_hi; then
1951 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
1953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1961 # Binary search between lo and hi bounds.
1962 while test "x$ac_lo" != "x$ac_hi"; do
1963 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
1964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1970 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1977 if ac_fn_c_try_compile
"$LINENO"; then :
1980 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
1982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1985 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
1989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1992 static long int longval () { return $2; }
1993 static unsigned long int ulongval () { return $2; }
2000 FILE *f = fopen ("conftest.val", "w");
2005 long int i = longval ();
2008 fprintf (f, "%ld", i);
2012 unsigned long int i = ulongval ();
2015 fprintf (f, "%lu", i);
2017 /* Do not output a trailing newline, as this causes \r\n confusion
2018 on some platforms. */
2019 return ferror (f) || fclose (f) != 0;
2025 if ac_fn_c_try_run
"$LINENO"; then :
2026 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2030 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2031 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2038 } # ac_fn_c_compute_int
2040 # ac_fn_c_try_link LINENO
2041 # -----------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded.
2045 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2046 rm -f conftest.
$ac_objext conftest
$ac_exeext
2047 if { { ac_try
="$ac_link"
2049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_link") 2>conftest.err
2056 if test -s conftest.err; then
2057 grep -v '^ *+' conftest.err >conftest.er1
2058 cat conftest.er1 >&5
2059 mv -f conftest.er1 conftest.err
2061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062 test $ac_status = 0; } && {
2063 test -z "$ac_c_werror_flag" ||
2064 test ! -s conftest.err
2065 } && test -s conftest$ac_exeext && {
2066 test "$cross_compiling" = yes ||
2067 $as_test_x conftest$ac_exeext
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2076 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2077 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2078 # interfere with the next link command; also delete a directory that is
2079 # left behind by Apple's compiler. We do this before executing the actions.
2080 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2081 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2084 } # ac_fn_c_try_link
2086 # ac_fn_c_check_func LINENO FUNC VAR
2087 # ----------------------------------
2088 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2089 ac_fn_c_check_func ()
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093 $as_echo_n "checking for $2... " >&6; }
2094 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2095 $as_echo_n "(cached) " >&6
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2099 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2101 #define $2 innocuous_$2
2103 /* System header to define __stub macros and hopefully few prototypes,
2104 which can conflict with char $2 (); below.
2105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2106 <limits.h> exists even on freestanding compilers. */
2109 # include <limits.h>
2111 # include <assert.h>
2116 /* Override any GCC internal prototype to avoid an error.
2117 Use char because int might match the return type of a GCC
2118 builtin and then its argument prototype would still apply. */
2123 /* The GNU C library defines this for functions which it implements
2124 to always fail with ENOSYS. Some functions are actually named
2125 something starting with __ and the normal name is an alias. */
2126 #if defined __stub_$2 || defined __stub___$2
2138 if ac_fn_c_try_link "$LINENO"; then :
2143 rm -f core conftest.err conftest.$ac_objext \
2144 conftest$ac_exeext conftest.$ac_ext
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148 $as_echo "$ac_res" >&6; }
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2151 } # ac_fn_c_check_func
2153 # ac_fn_c_check_decl LINENO SYMBOL VAR
2154 # ------------------------------------
2155 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2156 ac_fn_c_check_decl ()
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2160 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2162 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2163 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2164 $as_echo_n "(cached) " >&6
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2172 #ifndef $as_decl_name
2174 (void) $as_decl_use;
2176 (void) $as_decl_name;
2184 if ac_fn_c_try_compile "$LINENO"; then :
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196 } # ac_fn_c_check_decl
2198 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2199 # ----------------------------------------------------
2200 # Tries to find if the field MEMBER exists in type AGGR, after including
2201 # INCLUDES, setting cache variable VAR accordingly.
2202 ac_fn_c_check_member ()
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2206 $as_echo_n "checking for $2.$3... " >&6; }
2207 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2208 $as_echo_n "(cached) " >&6
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2223 if ac_fn_c_try_compile "$LINENO"; then :
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2233 if (sizeof ac_aggr.$3)
2239 if ac_fn_c_try_compile "$LINENO"; then :
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250 $as_echo "$ac_res" >&6; }
2251 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2253 } # ac_fn_c_check_member
2255 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2256 # -------------------------------------------
2257 # Tests whether TYPE exists after having included INCLUDES, setting cache
2258 # variable VAR accordingly.
2259 ac_fn_c_check_type ()
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2263 $as_echo_n "checking for $2... " >&6; }
2264 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2265 $as_echo_n "(cached) " >&6
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2293 if ac_fn_c_try_compile "$LINENO"; then :
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 $as_echo "$ac_res" >&6; }
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2307 } # ac_fn_c_check_type
2308 cat >config.log <<_ACEOF
2309 This file contains any messages produced by compilers while
2310 running configure, to aid debugging if configure makes a mistake.
2312 It was created by $as_me, which was
2313 generated by GNU Autoconf 2.64. Invocation command line was
2325 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2326 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2327 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2328 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2329 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2331 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2332 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2334 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2335 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2336 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2337 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2338 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2339 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2340 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 test -z "$as_dir" && as_dir=.
2349 $as_echo "PATH: $as_dir"
2365 # Keep a trace of the command line.
2366 # Strip out --no-create and --no-recursion so they do not pile up.
2367 # Strip out --silent because we don't want to record it for future runs.
2368 # Also quote any args containing shell meta-characters.
2369 # Make two passes to allow for proper duplicate-argument suppression.
2373 ac_must_keep_next=false
2379 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2381 | -silent | --silent | --silen | --sile | --sil)
2384 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2387 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2389 as_fn_append ac_configure_args1 " '$ac_arg'"
2390 if test $ac_must_keep_next = true; then
2391 ac_must_keep_next=false # Got value, back to normal.
2394 *=* | --config-cache | -C | -disable-* | --disable-* \
2395 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2396 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2397 | -with-* | --with-* | -without-* | --without-* | --x)
2398 case "$ac_configure_args0 " in
2399 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2402 -* ) ac_must_keep_next=true ;;
2405 as_fn_append ac_configure_args " '$ac_arg'"
2410 { ac_configure_args0=; unset ac_configure_args0;}
2411 { ac_configure_args1=; unset ac_configure_args1;}
2413 # When interrupted or exit'd, cleanup temporary files, and complete
2414 # config.log. We remove comments because anyway the quotes in there
2415 # would cause problems or look ugly.
2416 # WARNING: Use '\'' to represent an apostrophe within the trap.
2417 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2418 trap 'exit_status=$?
2419 # Save into config.log some information that might help in debugging.
2424 ## ---------------- ##
2425 ## Cache variables. ##
2426 ## ---------------- ##
2429 # The following way of writing the cache mishandles newlines in values,
2431 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2432 eval ac_val=\$$ac_var
2436 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2437 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2440 _ | IFS | as_nl) ;; #(
2441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2442 *) { eval $ac_var=; unset $ac_var;} ;;
2447 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2448 *${as_nl}ac_space=\ *)
2450 "s/'\''/'\''\\\\'\'''\''/g;
2451 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2454 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2462 ## ----------------- ##
2463 ## Output variables. ##
2464 ## ----------------- ##
2467 for ac_var in $ac_subst_vars
2469 eval ac_val=\$$ac_var
2471 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2473 $as_echo "$ac_var='\''$ac_val'\''"
2477 if test -n "$ac_subst_files"; then
2479 ## ------------------- ##
2480 ## File substitutions. ##
2481 ## ------------------- ##
2484 for ac_var in $ac_subst_files
2486 eval ac_val=\$$ac_var
2488 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2490 $as_echo "$ac_var='\''$ac_val'\''"
2495 if test -s confdefs.h; then
2505 test "$ac_signal" != 0 &&
2506 $as_echo "$as_me: caught signal $ac_signal"
2507 $as_echo "$as_me: exit $exit_status"
2509 rm -f core *.core core.conftest.* &&
2510 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2513 for ac_signal in 1 2 13 15; do
2514 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2518 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2519 rm -f -r conftest* confdefs.h
2521 $as_echo "/* confdefs.h */" > confdefs.h
2523 # Predefined preprocessor variables.
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_NAME "$PACKAGE_NAME"
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_STRING "$PACKAGE_STRING"
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_URL "$PACKAGE_URL"
2550 # Let the site file select an alternate cache file if it wants to.
2551 # Prefer an explicitly selected file to automatically selected ones.
2554 if test -n "$CONFIG_SITE"; then
2555 ac_site_file1=$CONFIG_SITE
2556 elif test "x$prefix" != xNONE; then
2557 ac_site_file1=$prefix/share/config.site
2558 ac_site_file2=$prefix/etc/config.site
2560 ac_site_file1=$ac_default_prefix/share/config.site
2561 ac_site_file2=$ac_default_prefix/etc/config.site
2563 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2565 test "x$ac_site_file" = xNONE && continue
2566 if test -r "$ac_site_file"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2568 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2569 sed 's/^/| /' "$ac_site_file" >&5
2574 if test -r "$cache_file"; then
2575 # Some versions of bash will fail to source /dev/null (special
2576 # files actually), so we avoid doing that.
2577 if test -f "$cache_file"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2579 $as_echo "$as_me: loading cache $cache_file" >&6;}
2581 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2582 *) . "./$cache_file";;
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2587 $as_echo "$as_me: creating cache $cache_file" >&6;}
2591 # Check that the precious variables saved in the cache have kept the same
2593 ac_cache_corrupted=false
2594 for ac_var in $ac_precious_vars; do
2595 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596 eval ac_new_set=\$ac_env_${ac_var}_set
2597 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598 eval ac_new_val=\$ac_env_${ac_var}_value
2599 case $ac_old_set,$ac_new_set in
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2602 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2603 ac_cache_corrupted=: ;;
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2606 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2607 ac_cache_corrupted=: ;;
2610 if test "x$ac_old_val" != "x$ac_new_val"; then
2611 # differences in whitespace do not lead to failure.
2612 ac_old_val_w=`echo x
$ac_old_val`
2613 ac_new_val_w=`echo x
$ac_new_val`
2614 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2617 ac_cache_corrupted=:
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2620 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621 eval $ac_var=\$ac_old_val
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2624 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2626 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2629 # Pass precious variables to config.status.
2630 if test "$ac_new_set" = set; then
2632 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2633 *) ac_arg=$ac_var=$ac_new_val ;;
2635 case " $ac_configure_args " in
2636 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2637 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2641 if $ac_cache_corrupted; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2646 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2648 ## -------------------- ##
2649 ## Main body of script. ##
2650 ## -------------------- ##
2653 ac_cpp='$CPP $CPPFLAGS'
2654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662 ac_config_headers="$ac_config_headers config.h:config.in"
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2666 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2667 # Check whether --enable-maintainer-mode was given.
2668 if test "${enable_maintainer_mode+set}" = set; then :
2669 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2671 USE_MAINTAINER_MODE=no
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2675 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2676 if test $USE_MAINTAINER_MODE = yes; then
2677 MAINTAINER_MODE_TRUE=
2678 MAINTAINER_MODE_FALSE='#'
2680 MAINTAINER_MODE_TRUE='#'
2681 MAINTAINER_MODE_FALSE=
2684 MAINT=$MAINTAINER_MODE_TRUE
2688 # Provide more thorough testing by -lmcheck.
2689 # Set it to 'true' for development snapshots, 'false' for releases or
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2698 if test -n "$ac_tool_prefix"; then
2699 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2700 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if test "${ac_cv_prog_CC+set}" = set; then :
2704 $as_echo_n "(cached) " >&6
2706 if test -n "$CC"; then
2707 ac_cv_prog_CC="$CC" # Let the user override the test.
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2716 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 if test -n "$CC"; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2729 $as_echo "$CC" >&6; }
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732 $as_echo "no" >&6; }
2737 if test -z "$ac_cv_prog_CC"; then
2739 # Extract the first word of "gcc", so it can be a program name with args.
2740 set dummy gcc; ac_word=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2744 $as_echo_n "(cached) " >&6
2746 if test -n "$ac_ct_CC"; then
2747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_ac_ct_CC="gcc"
2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2767 if test -n "$ac_ct_CC"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2769 $as_echo "$ac_ct_CC" >&6; }
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2775 if test "x$ac_ct_CC" = x; then
2778 case $cross_compiling:$ac_tool_warned in
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2782 ac_tool_warned=yes ;;
2790 if test -z "$CC"; then
2791 if test -n "$ac_tool_prefix"; then
2792 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2793 set dummy ${ac_tool_prefix}cc; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if test "${ac_cv_prog_CC+set}" = set; then :
2797 $as_echo_n "(cached) " >&6
2799 if test -n "$CC"; then
2800 ac_cv_prog_CC="$CC" # Let the user override the test.
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_CC="${ac_tool_prefix}cc"
2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 if test -n "$CC"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2822 $as_echo "$CC" >&6; }
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2831 if test -z "$CC"; then
2832 # Extract the first word of "cc", so it can be a program name with args.
2833 set dummy cc; ac_word=$2
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if test "${ac_cv_prog_CC+set}" = set; then :
2837 $as_echo_n "(cached) " >&6
2839 if test -n "$CC"; then
2840 ac_cv_prog_CC="$CC" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2851 ac_prog_rejected=yes
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 if test $ac_prog_rejected = yes; then
2863 # We found a bogon in the path, so make sure we never use it.
2864 set dummy $ac_cv_prog_CC
2866 if test $# != 0; then
2867 # We chose a different compiler from the bogus one.
2868 # However, it has the same basename, so the bogon will be chosen
2869 # first if we set CC to just the basename; use the full file name.
2871 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2877 if test -n "$CC"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 $as_echo "$CC" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2887 if test -z "$CC"; then
2888 if test -n "$ac_tool_prefix"; then
2889 for ac_prog in cl.exe
2891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if test "${ac_cv_prog_CC+set}" = set; then :
2896 $as_echo_n "(cached) " >&6
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 if test -n "$CC"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921 $as_echo "$CC" >&6; }
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 $as_echo "no" >&6; }
2928 test -n "$CC" && break
2931 if test -z "$CC"; then
2933 for ac_prog in cl.exe
2935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2936 set dummy $ac_prog; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2940 $as_echo_n "(cached) " >&6
2942 if test -n "$ac_ct_CC"; then
2943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_ac_ct_CC="$ac_prog"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963 if test -n "$ac_ct_CC"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2965 $as_echo "$ac_ct_CC" >&6; }
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2972 test -n "$ac_ct_CC" && break
2975 if test "x$ac_ct_CC" = x; then
2978 case $cross_compiling:$ac_tool_warned in
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2982 ac_tool_warned=yes ;;
2991 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 as_fn_error "no acceptable C compiler found
in \
$PATH
2994 See \
`config.log' for more details." "$LINENO" 5; }
2996 # Provide some information about the compiler.
2997 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3000 for ac_option in --version -v -V -qversion; do
3001 { { ac_try="$ac_compiler $ac_option >&5"
3003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3004 *) ac_try_echo
=$ac_try;;
3006 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007 $as_echo "$ac_try_echo"; } >&5
3008 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3010 if test -s conftest.err
; then
3012 ... rest of stderr output deleted ...
3013 10q' conftest.err
>conftest.er1
3014 cat conftest.er1
>&5
3015 rm -f conftest.er1 conftest.err
3017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3018 test $ac_status = 0; }
3021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3022 /* end confdefs.h. */
3032 ac_clean_files_save
=$ac_clean_files
3033 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3034 # Try to create an executable without -o first, disregard a.out.
3035 # It will help us diagnose broken compilers, and finding out an intuition
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3038 $as_echo_n "checking for C compiler default output file name... " >&6; }
3039 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3041 # The possible output files:
3042 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3045 for ac_file
in $ac_files
3048 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3049 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3054 if { { ac_try
="$ac_link_default"
3056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060 $as_echo "$ac_try_echo"; } >&5
3061 (eval "$ac_link_default") 2>&5
3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064 test $ac_status = 0; }; then :
3065 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3066 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3067 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3068 # so that the user can short-circuit this test for compilers unknown to
3070 for ac_file in $ac_files ''
3072 test -f "$ac_file" || continue
3074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3077 # We found the default executable, but exeext='' is most
3081 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3083 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3085 # We set ac_cv_exeext here because the later test for it is not
3086 # safe: cross compilers may not add the suffix if given an `-o'
3087 # argument, so we may need to know it at that point already.
3088 # Even if this section looks crufty: it has the advantage of
3095 test "$ac_cv_exeext" = no && ac_cv_exeext=
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3101 $as_echo "$ac_file" >&6; }
3102 if test -z "$ac_file"; then :
3103 $as_echo "$as_me: failed program was:" >&5
3104 sed 's
/^
/|
/' conftest.$ac_ext >&5
3106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3108 { as_fn_set_status 77
3109 as_fn_error "C compiler cannot create executables
3110 See \`config.log
' for more details." "$LINENO" 5; }; }
3112 ac_exeext=$ac_cv_exeext
3114 # Check that the compiler produces executables we can run. If not, either
3115 # the compiler is broken, or we cross compile.
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3117 $as_echo_n "checking whether the C compiler works... " >&6; }
3118 # If not cross compiling, check that we can run a simple program.
3119 if test "$cross_compiling" != yes; then
3120 if { ac_try='.
/$ac_file'
3121 { { case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 $as_echo "$ac_try_echo"; } >&5
3127 (eval "$ac_try") 2>&5
3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }; }; then
3133 if test "$cross_compiling" = maybe; then
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3138 as_fn_error "cannot run C compiled programs.
3139 If you meant to cross compile, use \`--host'.
3140 See \`config.log' for more details.
" "$LINENO" 5; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3145 $as_echo "yes" >&6; }
3147 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3148 ac_clean_files=$ac_clean_files_save
3149 # Check that the compiler produces executables we can run. If not, either
3150 # the compiler is broken, or we cross compile.
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3152 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3154 $as_echo "$cross_compiling" >&6; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3157 $as_echo_n "checking
for suffix of executables...
" >&6; }
3158 if { { ac_try="$ac_link"
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165 (eval "$ac_link") 2>&5
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3168 test $ac_status = 0; }; then :
3169 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3170 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3171 # work properly (i.e., refer to `conftest.exe'), while it won't with
3173 for ac_file in conftest.exe conftest conftest.*; do
3174 test -f "$ac_file" || continue
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3177 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 as_fn_error "cannot compute suffix of executables: cannot compile and link
3186 See \`config.log' for more details.
" "$LINENO" 5; }
3188 rm -f conftest$ac_cv_exeext
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3190 $as_echo "$ac_cv_exeext" >&6; }
3192 rm -f conftest.$ac_ext
3193 EXEEXT=$ac_cv_exeext
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3196 $as_echo_n "checking
for suffix of object files...
" >&6; }
3197 if test "${ac_cv_objext+set}" = set; then :
3198 $as_echo_n "(cached
) " >&6
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3211 rm -f conftest.o conftest.obj
3212 if { { ac_try="$ac_compile"
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3217 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_compile") 2>&5
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3222 test $ac_status = 0; }; then :
3223 for ac_file in conftest.o conftest.obj conftest.*; do
3224 test -f "$ac_file" || continue;
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3227 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3232 $as_echo "$as_me: failed program was
:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 as_fn_error "cannot compute suffix of object files: cannot compile
3238 See \`config.log' for more details.
" "$LINENO" 5; }
3240 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3243 $as_echo "$ac_cv_objext" >&6; }
3244 OBJEXT=$ac_cv_objext
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3247 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3248 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3249 $as_echo_n "(cached
) " >&6
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3265 if ac_fn_c_try_compile "$LINENO"; then :
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3275 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3276 if test $ac_compiler_gnu = yes; then
3281 ac_test_CFLAGS=${CFLAGS+set}
3282 ac_save_CFLAGS=$CFLAGS
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3284 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3285 if test "${ac_cv_prog_cc_g+set}" = set; then :
3286 $as_echo_n "(cached
) " >&6
3288 ac_save_c_werror_flag=$ac_c_werror_flag
3289 ac_c_werror_flag=yes
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3303 if ac_fn_c_try_compile "$LINENO"; then :
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3318 if ac_fn_c_try_compile "$LINENO"; then :
3321 ac_c_werror_flag=$ac_save_c_werror_flag
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3334 if ac_fn_c_try_compile "$LINENO"; then :
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 ac_c_werror_flag=$ac_save_c_werror_flag
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3345 $as_echo "$ac_cv_prog_cc_g" >&6; }
3346 if test "$ac_test_CFLAGS" = set; then
3347 CFLAGS=$ac_save_CFLAGS
3348 elif test $ac_cv_prog_cc_g = yes; then
3349 if test "$GCC" = yes; then
3355 if test "$GCC" = yes; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3362 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3363 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3364 $as_echo_n "(cached
) " >&6
3366 ac_cv_prog_cc_c89=no
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3372 #include <sys/types.h>
3373 #include <sys/stat.h>
3374 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3375 struct buf { int x; };
3376 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3377 static char *e (p, i)
3383 static char *f (char * (*g) (char **, int), char **p, ...)
3388 s = g (p, va_arg (v,int));
3393 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3394 function prototypes and stuff, but not '\xHH' hex character constants.
3395 These don't provoke an error unfortunately, instead are silently treated
3396 as 'x'. The following induces an error, until -std is added to get
3397 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3398 array size at least. It's necessary to write '\x00'==0 to get something
3399 that's true only with -std. */
3400 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3402 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3403 inside strings and character constants. */
3405 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3407 int test (int i, double x);
3408 struct s1 {int (*f) (int a);};
3409 struct s2 {int (*f) (double a);};
3410 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3416 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3421 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3422 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3424 CC="$ac_save_CC $ac_arg"
3425 if ac_fn_c_try_compile "$LINENO"; then :
3426 ac_cv_prog_cc_c89=$ac_arg
3428 rm -f core conftest.err conftest.$ac_objext
3429 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3431 rm -f conftest.$ac_ext
3436 case "x
$ac_cv_prog_cc_c89" in
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3439 $as_echo "none needed
" >&6; } ;;
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3442 $as_echo "unsupported
" >&6; } ;;
3444 CC="$CC $ac_cv_prog_cc_c89"
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3446 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3448 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460 ac_cpp='$CPP $CPPFLAGS'
3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3465 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3466 # On Suns, sometimes $CPP names a directory.
3467 if test -n "$CPP" && test -d "$CPP"; then
3470 if test -z "$CPP"; then
3471 if test "${ac_cv_prog_CPP+set}" = set; then :
3472 $as_echo_n "(cached
) " >&6
3474 # Double quotes because CPP needs to be expanded
3475 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3478 for ac_c_preproc_warn_flag in '' yes
3480 # Use a header file that comes with gcc, so configuring glibc
3481 # with a fresh cross-compiler works.
3482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3483 # <limits.h> exists even on freestanding compilers.
3484 # On the NeXT, cc -E runs the code through the compiler's parser,
3485 # not just through cpp. "Syntax error
" is here to catch this case.
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3489 # include <limits.h>
3491 # include <assert.h>
3495 if ac_fn_c_try_cpp "$LINENO"; then :
3498 # Broken: fails on valid input.
3501 rm -f conftest.err conftest.$ac_ext
3503 # OK, works on sane cases. Now check whether nonexistent headers
3504 # can be detected and how.
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507 #include <ac_nonexistent.h>
3509 if ac_fn_c_try_cpp "$LINENO"; then :
3510 # Broken: success on invalid input.
3513 # Passes both tests.
3517 rm -f conftest.err conftest.$ac_ext
3520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521 rm -f conftest.err conftest.$ac_ext
3522 if $ac_preproc_ok; then :
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3535 $as_echo "$CPP" >&6; }
3537 for ac_c_preproc_warn_flag in '' yes
3539 # Use a header file that comes with gcc, so configuring glibc
3540 # with a fresh cross-compiler works.
3541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3542 # <limits.h> exists even on freestanding compilers.
3543 # On the NeXT, cc -E runs the code through the compiler's parser,
3544 # not just through cpp. "Syntax error
" is here to catch this case.
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3548 # include <limits.h>
3550 # include <assert.h>
3554 if ac_fn_c_try_cpp "$LINENO"; then :
3557 # Broken: fails on valid input.
3560 rm -f conftest.err conftest.$ac_ext
3562 # OK, works on sane cases. Now check whether nonexistent headers
3563 # can be detected and how.
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3566 #include <ac_nonexistent.h>
3568 if ac_fn_c_try_cpp "$LINENO"; then :
3569 # Broken: success on invalid input.
3572 # Passes both tests.
3576 rm -f conftest.err conftest.$ac_ext
3579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3580 rm -f conftest.err conftest.$ac_ext
3581 if $ac_preproc_ok; then :
3584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3586 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3587 See \`config.log' for more details.
" "$LINENO" 5; }
3591 ac_cpp='$CPP $CPPFLAGS'
3592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3598 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3599 if test "${ac_cv_path_GREP+set}" = set; then :
3600 $as_echo_n "(cached
) " >&6
3602 if test -z "$GREP"; then
3603 ac_path_GREP_found=false
3604 # Loop through the user's path and test for each of PROGNAME-LIST
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3609 test -z "$as_dir" && as_dir=.
3610 for ac_prog in grep ggrep; do
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3613 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3614 # Check for GNU ac_path_GREP and select it if it is found.
3615 # Check for GNU $ac_path_GREP
3616 case `"$ac_path_GREP" --version 2>&1` in
3618 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3621 $as_echo_n 0123456789 >"conftest.
in"
3624 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3625 mv "conftest.tmp
" "conftest.
in"
3626 cp "conftest.
in" "conftest.
nl"
3627 $as_echo 'GREP' >> "conftest.
nl"
3628 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3629 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3630 as_fn_arith $ac_count + 1 && ac_count=$as_val
3631 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3632 # Best one so far, save it but keep looking for a better one
3633 ac_cv_path_GREP="$ac_path_GREP"
3634 ac_path_GREP_max=$ac_count
3636 # 10*(2^10) chars as input seems more than enough
3637 test $ac_count -gt 10 && break
3639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3642 $ac_path_GREP_found && break 3
3647 if test -z "$ac_cv_path_GREP"; then
3648 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3651 ac_cv_path_GREP=$GREP
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3656 $as_echo "$ac_cv_path_GREP" >&6; }
3657 GREP="$ac_cv_path_GREP"
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3661 $as_echo_n "checking
for egrep...
" >&6; }
3662 if test "${ac_cv_path_EGREP+set}" = set; then :
3663 $as_echo_n "(cached
) " >&6
3665 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3666 then ac_cv_path_EGREP="$GREP -E"
3668 if test -z "$EGREP"; then
3669 ac_path_EGREP_found=false
3670 # Loop through the user's path and test for each of PROGNAME-LIST
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3675 test -z "$as_dir" && as_dir=.
3676 for ac_prog in egrep; do
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3679 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3680 # Check for GNU ac_path_EGREP and select it if it is found.
3681 # Check for GNU $ac_path_EGREP
3682 case `"$ac_path_EGREP" --version 2>&1` in
3684 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3687 $as_echo_n 0123456789 >"conftest.
in"
3690 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3691 mv "conftest.tmp
" "conftest.
in"
3692 cp "conftest.
in" "conftest.
nl"
3693 $as_echo 'EGREP' >> "conftest.
nl"
3694 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3695 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3696 as_fn_arith $ac_count + 1 && ac_count=$as_val
3697 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3698 # Best one so far, save it but keep looking for a better one
3699 ac_cv_path_EGREP="$ac_path_EGREP"
3700 ac_path_EGREP_max=$ac_count
3702 # 10*(2^10) chars as input seems more than enough
3703 test $ac_count -gt 10 && break
3705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3708 $ac_path_EGREP_found && break 3
3713 if test -z "$ac_cv_path_EGREP"; then
3714 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3717 ac_cv_path_EGREP=$EGREP
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3723 $as_echo "$ac_cv_path_EGREP" >&6; }
3724 EGREP="$ac_cv_path_EGREP"
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3728 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3729 if test "${ac_cv_header_stdc+set}" = set; then :
3730 $as_echo_n "(cached
) " >&6
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3747 if ac_fn_c_try_compile "$LINENO"; then :
3748 ac_cv_header_stdc=yes
3750 ac_cv_header_stdc=no
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 if test $ac_cv_header_stdc = yes; then
3755 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3761 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3762 $EGREP "memchr
" >/dev/null 2>&1; then :
3765 ac_cv_header_stdc=no
3771 if test $ac_cv_header_stdc = yes; then
3772 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3778 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3779 $EGREP "free
" >/dev/null 2>&1; then :
3782 ac_cv_header_stdc=no
3788 if test $ac_cv_header_stdc = yes; then
3789 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3790 if test "$cross_compiling" = yes; then :
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3797 #if ((' ' & 0x0FF) == 0x020)
3798 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3799 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3801 # define ISLOWER(c) \
3802 (('a' <= (c) && (c) <= 'i') \
3803 || ('j' <= (c) && (c) <= 'r') \
3804 || ('s' <= (c) && (c) <= 'z'))
3805 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3808 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3813 for (i = 0; i < 256; i++)
3814 if (XOR (islower (i), ISLOWER (i))
3815 || toupper (i) != TOUPPER (i))
3820 if ac_fn_c_try_run "$LINENO"; then :
3823 ac_cv_header_stdc=no
3825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3826 conftest.$ac_objext conftest.beam conftest.$ac_ext
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3832 $as_echo "$ac_cv_header_stdc" >&6; }
3833 if test $ac_cv_header_stdc = yes; then
3835 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3839 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3840 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3841 inttypes.h stdint.h unistd.h
3843 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3844 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3846 eval as_val
=\$
$as_ac_Header
3847 if test "x$as_val" = x
""yes; then :
3848 cat >>confdefs.h
<<_ACEOF
3849 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3858 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3859 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3866 if test "$MINIX" = yes; then
3868 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3871 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3874 $as_echo "#define _MINIX 1" >>confdefs.h
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3880 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3881 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3882 $as_echo_n "(cached) " >&6
3884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3887 # define __EXTENSIONS__ 1
3888 $ac_includes_default
3897 if ac_fn_c_try_compile
"$LINENO"; then :
3898 ac_cv_safe_to_define___extensions__
=yes
3900 ac_cv_safe_to_define___extensions__
=no
3902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3905 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3906 test $ac_cv_safe_to_define___extensions__ = yes &&
3907 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3909 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3911 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3913 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3915 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3919 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3920 for ac_t
in install-sh
install.sh shtool
; do
3921 if test -f "$ac_dir/$ac_t"; then
3923 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3928 if test -z "$ac_aux_dir"; then
3929 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3932 # These three variables are undocumented and unsupported,
3933 # and are intended to be withdrawn in a future Autoconf release.
3934 # They can cause serious problems if a builder's source tree is in a directory
3935 # whose full name contains unusual characters.
3936 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3937 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3938 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3941 # Make sure we can run config.sub.
3942 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3943 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3946 $as_echo_n "checking build system type... " >&6; }
3947 if test "${ac_cv_build+set}" = set; then :
3948 $as_echo_n "(cached) " >&6
3950 ac_build_alias
=$build_alias
3951 test "x$ac_build_alias" = x
&&
3952 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3953 test "x$ac_build_alias" = x
&&
3954 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3955 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3956 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3960 $as_echo "$ac_cv_build" >&6; }
3961 case $ac_cv_build in
3963 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3966 ac_save_IFS
=$IFS; IFS
='-'
3972 # Remember, the first character of IFS is used to create $*,
3973 # except with old shells:
3976 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3980 $as_echo_n "checking host system type... " >&6; }
3981 if test "${ac_cv_host+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3984 if test "x$host_alias" = x
; then
3985 ac_cv_host
=$ac_cv_build
3987 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3988 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3993 $as_echo "$ac_cv_host" >&6; }
3996 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3999 ac_save_IFS
=$IFS; IFS
='-'
4005 # Remember, the first character of IFS is used to create $*,
4006 # except with old shells:
4009 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4013 $as_echo_n "checking target system type... " >&6; }
4014 if test "${ac_cv_target+set}" = set; then :
4015 $as_echo_n "(cached) " >&6
4017 if test "x$target_alias" = x
; then
4018 ac_cv_target
=$ac_cv_host
4020 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4021 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4026 $as_echo "$ac_cv_target" >&6; }
4027 case $ac_cv_target in
4029 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4031 target
=$ac_cv_target
4032 ac_save_IFS
=$IFS; IFS
='-'
4038 # Remember, the first character of IFS is used to create $*,
4039 # except with old shells:
4042 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4045 # The aliases save the names the user supplied, while $host etc.
4046 # will get canonicalized.
4047 test -n "$target_alias" &&
4048 test "$program_prefix$program_suffix$program_transform_name" = \
4050 program_prefix
=${target_alias}-
4052 # The tests for host and target for $enable_largefile require
4057 # As the $enable_largefile decision depends on --enable-plugins we must set it
4058 # even in directories otherwise not depending on the $plugins option.
4061 # Check whether --enable-plugins was given.
4062 if test "${enable_plugins+set}" = set; then :
4063 enableval
=$enable_plugins; case "${enableval}" in
4064 yes |
"") plugins
=yes ;;
4075 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4076 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4077 # are mutually exclusive; and without procfs support, the bfd/ elf module
4078 # cannot provide certain routines such as elfcore_write_prpsinfo
4079 # or elfcore_write_prstatus. So unless the user explicitly requested
4080 # large-file support through the --enable-largefile switch, disable
4081 # large-file support in favor of procfs support.
4082 test "${target}" = "${host}" -a "x$plugins" = xno \
4083 && : ${enable_largefile="no"}
4087 # Check whether --enable-largefile was given.
4088 if test "${enable_largefile+set}" = set; then :
4089 enableval
=$enable_largefile;
4092 if test "$enable_largefile" != no
; then
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4095 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4096 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4097 $as_echo_n "(cached) " >&6
4099 ac_cv_sys_largefile_CC
=no
4100 if test "$GCC" != yes; then
4103 # IRIX 6.2 and later do not support large files by default,
4104 # so use the C compiler's -n32 option if that helps.
4105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107 #include <sys/types.h>
4108 /* Check that off_t can represent 2**63 - 1 correctly.
4109 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4110 since some C++ compilers masquerading as C compilers
4111 incorrectly reject 9223372036854775807. */
4112 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4114 && LARGE_OFF_T % 2147483647 == 1)
4124 if ac_fn_c_try_compile
"$LINENO"; then :
4127 rm -f core conftest.err conftest.
$ac_objext
4129 if ac_fn_c_try_compile
"$LINENO"; then :
4130 ac_cv_sys_largefile_CC
=' -n32'; break
4132 rm -f core conftest.err conftest.
$ac_objext
4136 rm -f conftest.
$ac_ext
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4140 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4141 if test "$ac_cv_sys_largefile_CC" != no
; then
4142 CC
=$CC$ac_cv_sys_largefile_CC
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4146 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4147 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4148 $as_echo_n "(cached) " >&6
4151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4153 #include <sys/types.h>
4154 /* Check that off_t can represent 2**63 - 1 correctly.
4155 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4156 since some C++ compilers masquerading as C compilers
4157 incorrectly reject 9223372036854775807. */
4158 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4159 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4160 && LARGE_OFF_T % 2147483647 == 1)
4170 if ac_fn_c_try_compile
"$LINENO"; then :
4171 ac_cv_sys_file_offset_bits
=no
; break
4173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176 #define _FILE_OFFSET_BITS 64
4177 #include <sys/types.h>
4178 /* Check that off_t can represent 2**63 - 1 correctly.
4179 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4180 since some C++ compilers masquerading as C compilers
4181 incorrectly reject 9223372036854775807. */
4182 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4183 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4184 && LARGE_OFF_T % 2147483647 == 1)
4194 if ac_fn_c_try_compile
"$LINENO"; then :
4195 ac_cv_sys_file_offset_bits
=64; break
4197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4198 ac_cv_sys_file_offset_bits
=unknown
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4203 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4204 case $ac_cv_sys_file_offset_bits in #(
4207 cat >>confdefs.h
<<_ACEOF
4208 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4213 if test $ac_cv_sys_file_offset_bits = unknown
; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4215 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4216 if test "${ac_cv_sys_large_files+set}" = set; then :
4217 $as_echo_n "(cached) " >&6
4220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222 #include <sys/types.h>
4223 /* Check that off_t can represent 2**63 - 1 correctly.
4224 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4225 since some C++ compilers masquerading as C compilers
4226 incorrectly reject 9223372036854775807. */
4227 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4228 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4229 && LARGE_OFF_T % 2147483647 == 1)
4239 if ac_fn_c_try_compile
"$LINENO"; then :
4240 ac_cv_sys_large_files
=no
; break
4242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4245 #define _LARGE_FILES 1
4246 #include <sys/types.h>
4247 /* Check that off_t can represent 2**63 - 1 correctly.
4248 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4249 since some C++ compilers masquerading as C compilers
4250 incorrectly reject 9223372036854775807. */
4251 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4252 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4253 && LARGE_OFF_T % 2147483647 == 1)
4263 if ac_fn_c_try_compile
"$LINENO"; then :
4264 ac_cv_sys_large_files
=1; break
4266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4267 ac_cv_sys_large_files
=unknown
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4272 $as_echo "$ac_cv_sys_large_files" >&6; }
4273 case $ac_cv_sys_large_files in #(
4276 cat >>confdefs.h
<<_ACEOF
4277 #define _LARGE_FILES $ac_cv_sys_large_files
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4290 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4291 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4292 $as_echo_n "(cached) " >&6
4294 am_cv_prog_cc_stdc
=no
4296 # Don't try gcc -ansi; that turns off useful extensions and
4297 # breaks some systems' header files.
4298 # AIX -qlanglvl=ansi
4299 # Ultrix and OSF/1 -std1
4300 # HP-UX 10.20 and later -Ae
4301 # HP-UX older versions -Aa -D_HPUX_SOURCE
4302 # SVR4 -Xc -D__EXTENSIONS__
4303 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4305 CC
="$ac_save_CC $ac_arg"
4306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4310 #include <sys/types.h>
4311 #include <sys/stat.h>
4312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4313 struct buf { int x; };
4314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4315 static char *e (p, i)
4321 static char *f (char * (*g) (char **, int), char **p, ...)
4326 s = g (p, va_arg (v,int));
4330 int test (int i, double x);
4331 struct s1 {int (*f) (int a);};
4332 struct s2 {int (*f) (double a);};
4333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4341 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4347 if ac_fn_c_try_compile
"$LINENO"; then :
4348 am_cv_prog_cc_stdc
="$ac_arg"; break
4350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4356 if test -z "$am_cv_prog_cc_stdc"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4358 $as_echo "none needed" >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4361 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4363 case "x$am_cv_prog_cc_stdc" in
4365 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4370 for ac_dir
in ..
"$srcdir"/..
; do
4371 for ac_t
in install-sh
install.sh shtool
; do
4372 if test -f "$ac_dir/$ac_t"; then
4374 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4379 if test -z "$ac_aux_dir"; then
4380 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4383 # These three variables are undocumented and unsupported,
4384 # and are intended to be withdrawn in a future Autoconf release.
4385 # They can cause serious problems if a builder's source tree is in a directory
4386 # whose full name contains unusual characters.
4387 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4388 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4389 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4393 test "$program_prefix" != NONE
&&
4394 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4395 # Use a double $ so make ignores it.
4396 test "$program_suffix" != NONE
&&
4397 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4398 # Double any \ or $.
4399 # By default was `s,x,x', remove it if useless.
4400 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4401 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4404 # Dependency checking.
4405 rm -rf .tst
2>/dev
/null
4406 mkdir .tst
2>/dev
/null
4407 if test -d .tst
; then
4412 rmdir .tst
2>/dev
/null
4414 DEPDIR
="${am__leading_dot}deps"
4416 ac_config_commands
="$ac_config_commands depdir"
4419 depcc
="$CC" am_compiler_list
=
4421 am_depcomp
=$ac_aux_dir/depcomp
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4423 $as_echo_n "checking dependency style of $depcc... " >&6; }
4424 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4425 $as_echo_n "(cached) " >&6
4427 if test -f "$am_depcomp"; then
4428 # We make a subdir and do the tests there. Otherwise we can end up
4429 # making bogus files that we don't know about and never remove. For
4430 # instance it was reported that on HP-UX the gcc test will end up
4431 # making a dummy file named `D' -- because `-MD' means `put the output
4434 # Copy depcomp to subdir because otherwise we won't find it if we're
4435 # using a relative directory.
4436 cp "$am_depcomp" conftest.dir
4438 # We will build objects and dependencies in a subdirectory because
4439 # it helps to detect inapplicable dependency modes. For instance
4440 # both Tru64's cc and ICC support -MD to output dependencies as a
4441 # side effect of compilation, but ICC will put the dependencies in
4442 # the current directory while Tru64 will put them in the object
4446 am_cv_CC_dependencies_compiler_type
=none
4447 if test "$am_compiler_list" = ""; then
4448 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4450 for depmode
in $am_compiler_list; do
4451 if test $depmode = none
; then break; fi
4453 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4454 # Setup a source with many dependencies, because some compilers
4455 # like to wrap large dependency lists on column 80 (with \), and
4456 # we should not choose a depcomp mode which is confused by this.
4458 # We need to recreate these files for each test, as the compiler may
4459 # overwrite some of them when testing with obscure command lines.
4460 # This happens at least with the AIX C compiler.
4462 for i
in 1 2 3 4 5 6; do
4463 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4464 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4465 # Solaris 8's {/usr,}/bin/sh.
4466 touch sub
/conftst
$i.h
4468 echo "include sub/conftest.Po" > confmf
4470 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4471 # mode. It turns out that the SunPro C++ compiler does not properly
4472 # handle `-M -o', and we need to detect this.
4473 depcmd
="depmode=$depmode \
4474 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4475 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4476 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4477 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4478 if env
$depcmd > conftest.err
2>&1 &&
4479 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4480 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4481 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4482 # icc doesn't choke on unknown options, it will just issue warnings
4483 # or remarks (even with -Werror). So we grep stderr for any message
4484 # that says an option was ignored or not supported.
4485 # When given -MP, icc 7.0 and 7.1 complain thusly:
4486 # icc: Command line warning: ignoring option '-M'; no argument required
4487 # The diagnosis changed in icc 8.0:
4488 # icc: Command line remark: option '-MP' not supported
4489 if (grep 'ignoring option' conftest.err ||
4490 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4491 am_cv_CC_dependencies_compiler_type
=$depmode
4492 $as_echo "$as_me:$LINENO: success" >&5
4496 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4497 sed -e 's/^/| /' < conftest.err
>&5
4503 am_cv_CC_dependencies_compiler_type
=none
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4508 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4509 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4510 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4511 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4516 # Check for the 'make' the user wants to use.
4519 # Extract the first word of "$ac_prog", so it can be a program name with args.
4520 set dummy
$ac_prog; ac_word
=$2
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522 $as_echo_n "checking for $ac_word... " >&6; }
4523 if test "${ac_cv_prog_MAKE+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4526 if test -n "$MAKE"; then
4527 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir
=.
4534 for ac_exec_ext
in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_MAKE
="$ac_prog"
4537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 MAKE
=$ac_cv_prog_MAKE
4547 if test -n "$MAKE"; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4549 $as_echo "$MAKE" >&6; }
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4556 test -n "$MAKE" && break
4560 case "`$MAKE --version 2>&1 | sed 1q`" in
4565 if test "$MAKE_IS_GNU" = yes; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4574 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4576 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4577 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4578 $as_echo_n "(cached) " >&6
4580 cat >conftest.
make <<\_ACEOF
4583 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4585 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4586 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4588 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4590 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4594 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4596 $as_echo "yes" >&6; }
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4601 SET_MAKE
="MAKE=${MAKE-make}"
4605 # Configure gnulib. We need to build gnulib under some other
4606 # directory not "gnulib", to avoid the problem of both GDB and
4607 # GDBserver wanting to build it in the same directory, when building
4608 # in the source dir.
4611 in_build
="build-gnulib"
4613 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4614 # so they do not pile up.
4615 ac_sub_configure_args
=
4617 eval "set x $ac_configure_args"
4621 if test -n "$ac_prev"; then
4626 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
4627 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
4628 ac_prev
=cache_file
;;
4629 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
4630 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
4633 --config-cache |
-C)
4635 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
4637 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
4639 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
4641 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
4643 --disable-option-checking)
4647 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4649 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
4653 # Always prepend --prefix to ensure using the same prefix
4654 # in subdir configurations.
4655 ac_arg
="--prefix=$prefix"
4657 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4659 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
4662 if test "$silent" = yes; then
4663 ac_sub_configure_args
="--silent $ac_sub_configure_args"
4666 # Always prepend --disable-option-checking to silence warnings, since
4667 # different subdirs can have different --enable and --with options.
4668 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
4673 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4675 $as_echo "$ac_msg" >&6
4676 as_dir
="$ac_dir"; as_fn_mkdir_p
4680 ac_srcdir
=$srcdir/$in_src ;;
4682 ac_srcdir
=..
/$srcdir/$in_src ;;
4687 ac_sub_configure
=$ac_srcdir/configure
4689 # Make the cache file name correct relative to the subdirectory.
4691 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
4693 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4697 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4698 # The eval makes quoting arguments work.
4699 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4700 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4701 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4717 # If we haven't got the data from the intl directory,
4718 # assume NLS is disabled.
4727 if test -f ..
/intl
/config.intl
; then
4728 . ..
/intl
/config.intl
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4731 $as_echo_n "checking whether NLS is requested... " >&6; }
4732 if test x
"$USE_NLS" != xyes
; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4737 $as_echo "yes" >&6; }
4739 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4743 $as_echo_n "checking for catalogs to be installed... " >&6; }
4744 # Look for .po and .gmo files in the source directory.
4747 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4748 # If there aren't any .gmo files the shell will give us the
4749 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4751 case "$cat" in *\
**)
4754 # The quadruple backslash is collapsed to a double backslash
4755 # by the backticks, then collapsed again by the double quotes,
4756 # leaving us with one backslash in the sed expression (right
4757 # before the dot that mustn't act as a wildcard).
4758 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4759 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4760 # The user is allowed to set LINGUAS to a list of languages to
4761 # install catalogs for. If it's empty that means "all of them."
4762 if test "x$LINGUAS" = x
; then
4763 CATALOGS
="$CATALOGS $cat"
4764 XLINGUAS
="$XLINGUAS $lang"
4766 case "$LINGUAS" in *$lang*)
4767 CATALOGS
="$CATALOGS $cat"
4768 XLINGUAS
="$XLINGUAS $lang"
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4775 $as_echo "$LINGUAS" >&6; }
4788 localedir
='${datadir}/locale'
4791 if test x
"$USE_NLS" = xyes
; then
4792 CONFIG_ALL
="$CONFIG_ALL all-po"
4793 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4794 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4795 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4798 GNULIB
=build-gnulib
/import
4800 # For Makefile dependencies.
4802 if test x
"$STDINT_H" != x
; then
4803 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
4809 cat >>confdefs.h
<<_ACEOF
4810 #define PACKAGE "$PACKAGE"
4815 # We never need to detect it in this sub-configure.
4816 # But preserve it for config.status --recheck.
4820 MAKEINFO_EXTRA_FLAGS
=""
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
4822 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
4823 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4826 echo '@clicksequence{a @click{} b}' >conftest.texinfo
4827 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
4828 gdb_cv_have_makeinfo_click
=yes
4830 gdb_cv_have_makeinfo_click
=no
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
4834 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
4835 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
4836 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
4842 # Check whether --with-separate-debug-dir was given.
4843 if test "${with_separate_debug_dir+set}" = set; then :
4844 withval
=$with_separate_debug_dir;
4847 DEBUGDIR
=${libdir}/debug
4851 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4852 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4853 ac_define_dir
=`eval echo $DEBUGDIR`
4854 ac_define_dir
=`eval echo $ac_define_dir`
4856 cat >>confdefs.h
<<_ACEOF
4857 #define DEBUGDIR "$ac_define_dir"
4863 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
4864 if test "x$prefix" = xNONE
; then
4865 test_prefix
=/usr
/local
4870 test_prefix
=$exec_prefix
4873 case ${ac_define_dir} in
4874 "${test_prefix}"|
"${test_prefix}/"*|\
4875 '${exec_prefix}'|
'${exec_prefix}/'*)
4880 cat >>confdefs.h
<<_ACEOF
4881 #define DEBUGDIR_RELOCATABLE $value
4887 # We can't pass paths as command line arguments.
4888 # Mingw32 tries to be clever and will convert the paths for us.
4889 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
4890 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
4891 # This breaks GDB's relocatable path conversions since paths passed in
4892 # config.h would not get so translated, the path prefixes no longer match.
4894 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4895 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4896 ac_define_dir
=`eval echo $bindir`
4897 ac_define_dir
=`eval echo $ac_define_dir`
4899 cat >>confdefs.h
<<_ACEOF
4900 #define BINDIR "$ac_define_dir"
4905 # GDB's datadir relocation
4909 # Check whether --with-gdb-datadir was given.
4910 if test "${with_gdb_datadir+set}" = set; then :
4911 withval
=$with_gdb_datadir;
4912 GDB_DATADIR
=$withval
4914 GDB_DATADIR
=${datadir}/gdb
4918 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4919 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4920 ac_define_dir
=`eval echo $GDB_DATADIR`
4921 ac_define_dir
=`eval echo $ac_define_dir`
4923 cat >>confdefs.h
<<_ACEOF
4924 #define GDB_DATADIR "$ac_define_dir"
4930 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
4931 if test "x$prefix" = xNONE
; then
4932 test_prefix
=/usr
/local
4937 test_prefix
=$exec_prefix
4940 case ${ac_define_dir} in
4941 "${test_prefix}"|
"${test_prefix}/"*|\
4942 '${exec_prefix}'|
'${exec_prefix}/'*)
4947 cat >>confdefs.h
<<_ACEOF
4948 #define GDB_DATADIR_RELOCATABLE $value
4955 # Check whether --with-relocated-sources was given.
4956 if test "${with_relocated_sources+set}" = set; then :
4957 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
4959 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4960 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4961 ac_define_dir
=`eval echo $reloc_srcdir`
4962 ac_define_dir
=`eval echo $ac_define_dir`
4964 cat >>confdefs.h
<<_ACEOF
4965 #define RELOC_SRCDIR "$ac_define_dir"
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
4974 $as_echo_n "checking for default auto-load directory... " >&6; }
4976 # Check whether --with-auto-load-dir was given.
4977 if test "${with_auto_load_dir+set}" = set; then :
4978 withval
=$with_auto_load_dir;
4980 with_auto_load_dir
='$debugdir:$datadir/auto-load'
4983 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
4985 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4986 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4987 ac_define_dir
=`eval echo $escape_dir`
4988 ac_define_dir
=`eval echo $ac_define_dir`
4990 cat >>confdefs.h
<<_ACEOF
4991 #define AUTO_LOAD_DIR "$ac_define_dir"
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
4996 $as_echo "$with_auto_load_dir" >&6; }
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
4999 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5001 # Check whether --with-auto-load-safe-path was given.
5002 if test "${with_auto_load_safe_path+set}" = set; then :
5003 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5004 with_auto_load_safe_path
="/"
5007 with_auto_load_safe_path
="$with_auto_load_dir"
5010 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5012 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5013 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5014 ac_define_dir
=`eval echo $escape_dir`
5015 ac_define_dir
=`eval echo $ac_define_dir`
5017 cat >>confdefs.h
<<_ACEOF
5018 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5023 $as_echo "$with_auto_load_safe_path" >&6; }
5027 subdirs
="$subdirs testsuite"
5030 # Check whether to support alternative target configurations
5031 # Check whether --enable-targets was given.
5032 if test "${enable_targets+set}" = set; then :
5033 enableval
=$enable_targets; case "${enableval}" in
5034 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
5036 no
) enable_targets
= ;;
5037 *) enable_targets
=$enableval ;;
5042 # Check whether to enable 64-bit support on 32-bit hosts
5043 # Check whether --enable-64-bit-bfd was given.
5044 if test "${enable_64_bit_bfd+set}" = set; then :
5045 enableval
=$enable_64_bit_bfd; case "${enableval}" in
5048 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5054 # Provide defaults for some variables set by the per-host and per-target
5056 gdb_host_obs
=posix-hdep.o
5058 if test "${target}" = "${host}"; then
5064 .
$srcdir/configure.
host
5066 # Accumulate some settings from configure.tgt over all enabled targets
5071 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5073 if test "$targ_alias" = "all"; then
5076 # Canonicalize the secondary target names.
5077 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5078 if test -n "$result"; then
5084 .
${srcdir}/configure.tgt
5086 if test -z "${gdb_target_obs}"; then :
5087 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
5090 # Target-specific object files
5091 for i
in ${gdb_target_obs}; do
5092 case " $TARGET_OBS " in
5095 TARGET_OBS
="$TARGET_OBS ${i}"
5100 # Check whether this target needs 64-bit CORE_ADDR
5101 if test x
${want64} = xfalse
; then
5102 .
${srcdir}/..
/bfd
/config.bfd
5107 if test x
${all_targets} = xtrue
; then
5109 # We want all 64-bit targets if we either:
5110 # - run on a 64-bit host or
5111 # - already require 64-bit support for some other target or
5112 # - the --enable-64-bit-bfd option was supplied
5113 # Otherwise we only support all 32-bit targets.
5115 # NOTE: This test must be in sync with the corresponding
5118 if test x
${want64} = xfalse
; then
5119 # The cast to long int works around a bug in the HP C Compiler
5120 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5121 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5122 # This bug is HP SR number 8606223364.
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5124 $as_echo_n "checking size of long... " >&6; }
5125 if test "${ac_cv_sizeof_long+set}" = set; then :
5126 $as_echo_n "(cached) " >&6
5128 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5131 if test "$ac_cv_type_long" = yes; then
5132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5134 { as_fn_set_status
77
5135 as_fn_error
"cannot compute sizeof (long)
5136 See \`config.log' for more details." "$LINENO" 5; }; }
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5144 $as_echo "$ac_cv_sizeof_long" >&6; }
5148 cat >>confdefs.h
<<_ACEOF
5149 #define SIZEOF_LONG $ac_cv_sizeof_long
5153 if test "x${ac_cv_sizeof_long}" = "x8"; then
5157 if test x
${want64} = xtrue
; then
5158 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5160 TARGET_OBS
='$(ALL_TARGET_OBS)'
5166 # For other settings, only the main target counts.
5170 targ
=$target; .
${srcdir}/configure.tgt
5172 # Fetch the default architecture and default target vector from BFD.
5173 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
5175 # We only want the first architecture, so strip off the others if
5176 # there is more than one.
5177 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
5179 if test "x$targ_archs" != x
; then
5181 cat >>confdefs.h
<<_ACEOF
5182 #define DEFAULT_BFD_ARCH $targ_archs
5186 if test "x$targ_defvec" != x
; then
5188 cat >>confdefs.h
<<_ACEOF
5189 #define DEFAULT_BFD_VEC $targ_defvec
5194 # The CLI cannot be disabled yet, but may be in the future.
5197 # Check whether --enable-gdbcli was given.
5198 if test "${enable_gdbcli+set}" = set; then :
5199 enableval
=$enable_gdbcli; case $enableval in
5203 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5205 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5211 if test x
"$enable_gdbcli" = xyes
; then
5212 if test -d $srcdir/cli
; then
5213 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5214 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5215 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5216 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5221 # Check whether --enable-gdbmi was given.
5222 if test "${enable_gdbmi+set}" = set; then :
5223 enableval
=$enable_gdbmi; case $enableval in
5227 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5233 if test x
"$enable_gdbmi" = xyes
; then
5234 if test -d $srcdir/mi
; then
5235 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5236 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5237 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5238 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5243 # Check whether --enable-tui was given.
5244 if test "${enable_tui+set}" = set; then :
5245 enableval
=$enable_tui; case $enableval in
5249 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5257 # Check whether --enable-gdbtk was given.
5258 if test "${enable_gdbtk+set}" = set; then :
5259 enableval
=$enable_gdbtk; case $enableval in
5263 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5266 if test -d $srcdir/gdbtk
; then
5273 # We unconditionally disable gdbtk tests on selected platforms.
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5277 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5281 # Libunwind support for ia64.
5284 # Check whether --with-libunwind-ia64 was given.
5285 if test "${with_libunwind_ia64+set}" = set; then :
5286 withval
=$with_libunwind_ia64;
5288 with_libunwind_ia64
=auto
5292 # Backward compatibility option.
5293 if test "${with_libunwind+set}" = set; then
5294 if test x
"$with_libunwind_ia64" != xauto
; then
5295 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5298 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5299 with_libunwind_ia64
="$with_libunwind"
5302 case "$with_libunwind_ia64" in
5306 for ac_header
in libunwind-ia64.h
5308 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5309 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5310 cat >>confdefs.h
<<_ACEOF
5311 #define HAVE_LIBUNWIND_IA64_H 1
5318 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
5321 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5325 if test x
"$with_libunwind_ia64" = xyes
; then
5326 for ac_header
in libunwind-ia64.h
5328 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5329 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5330 cat >>confdefs.h
<<_ACEOF
5331 #define HAVE_LIBUNWIND_IA64_H 1
5338 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
5339 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5341 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
5342 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
5343 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
5348 # Check whether --with-curses was given.
5349 if test "${with_curses+set}" = set; then :
5350 withval
=$with_curses; opt_curses
=$withval
5355 if test "$opt_curses" = "yes"; then
5359 # Profiling support.
5360 # Check whether --enable-profiling was given.
5361 if test "${enable_profiling+set}" = set; then :
5362 enableval
=$enable_profiling; case $enableval in
5366 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5373 for ac_func
in monstartup _mcleanup
5375 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5376 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5377 eval as_val
=\$
$as_ac_var
5378 if test "x$as_val" = x
""yes; then :
5379 cat >>confdefs.h
<<_ACEOF
5380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5387 $as_echo_n "checking for _etext... " >&6; }
5388 if test "${ac_cv_var__etext+set}" = set; then :
5389 $as_echo_n "(cached) " >&6
5391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5404 if ac_fn_c_try_link
"$LINENO"; then :
5405 ac_cv_var__etext
=yes
5409 rm -f core conftest.err conftest.
$ac_objext \
5410 conftest
$ac_exeext conftest.
$ac_ext
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5413 $as_echo "$ac_cv_var__etext" >&6; }
5414 if test $ac_cv_var__etext = yes; then
5416 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5420 $as_echo_n "checking for etext... " >&6; }
5421 if test "${ac_cv_var_etext+set}" = set; then :
5422 $as_echo_n "(cached) " >&6
5424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5437 if ac_fn_c_try_link
"$LINENO"; then :
5442 rm -f core conftest.err conftest.
$ac_objext \
5443 conftest
$ac_exeext conftest.
$ac_ext
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5446 $as_echo "$ac_cv_var_etext" >&6; }
5447 if test $ac_cv_var_etext = yes; then
5449 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5452 if test "$enable_profiling" = yes ; then
5453 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
5454 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5457 OLD_CFLAGS
="$CFLAGS"
5458 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5461 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5462 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
5465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5476 if ac_fn_c_try_compile
"$LINENO"; then :
5477 ac_cv_cc_supports_pg
=yes
5479 ac_cv_cc_supports_pg
=no
5481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5484 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5486 if test $ac_cv_cc_supports_pg = no
; then
5487 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5490 CFLAGS
="$OLD_CFLAGS"
5495 # Check whether --with-pkgversion was given.
5496 if test "${with_pkgversion+set}" = set; then :
5497 withval
=$with_pkgversion; case "$withval" in
5498 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
5500 *) PKGVERSION
="($withval) " ;;
5511 # Check whether --with-bugurl was given.
5512 if test "${with_bugurl+set}" = set; then :
5513 withval
=$with_bugurl; case "$withval" in
5514 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
5517 *) BUGURL
="$withval"
5521 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
5531 REPORT_BUGS_TO
="<$BUGURL>"
5532 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
5539 cat >>confdefs.h
<<_ACEOF
5540 #define PKGVERSION "$PKGVERSION"
5544 cat >>confdefs.h
<<_ACEOF
5545 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5549 # --------------------- #
5550 # Checks for programs. #
5551 # --------------------- #
5553 for ac_prog
in gawk mawk nawk
awk
5555 # Extract the first word of "$ac_prog", so it can be a program name with args.
5556 set dummy
$ac_prog; ac_word
=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if test "${ac_cv_prog_AWK+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5562 if test -n "$AWK"; then
5563 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5569 test -z "$as_dir" && as_dir
=.
5570 for ac_exec_ext
in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_prog_AWK
="$ac_prog"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 if test -n "$AWK"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5585 $as_echo "$AWK" >&6; }
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5592 test -n "$AWK" && break
5595 # Find a good install program. We prefer a C program (faster),
5596 # so one script is as good as another. But avoid the broken or
5597 # incompatible versions:
5598 # SysV /etc/install, /usr/sbin/install
5599 # SunOS /usr/etc/install
5600 # IRIX /sbin/install
5602 # AmigaOS /C/install, which installs bootblocks on floppy discs
5603 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5604 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5605 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5606 # OS/2's system install, which has a completely different semantic
5607 # ./install, which can be erroneously created by make from ./install.sh.
5608 # Reject install programs that cannot install multiple files.
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5610 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5611 if test -z "$INSTALL"; then
5612 if test "${ac_cv_path_install+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir
=.
5620 # Account for people who put trailing slashes in PATH elements.
5621 case $as_dir/ in #((
5622 .
/ | .
// |
/[cC
]/* | \
5623 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5624 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5627 # OSF1 and SCO ODT 3.0 have their own names for install.
5628 # Don't use installbsd from OSF since it installs stuff as root
5630 for ac_prog
in ginstall scoinst
install; do
5631 for ac_exec_ext
in '' $ac_executable_extensions; do
5632 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5633 if test $ac_prog = install &&
5634 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5635 # AIX install. It has an incompatible calling convention.
5637 elif test $ac_prog = install &&
5638 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5639 # program-specific install script used by HP pwplus--don't use.
5642 rm -rf conftest.one conftest.two conftest.dir
5643 echo one
> conftest.one
5644 echo two
> conftest.two
5646 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5647 test -s conftest.one
&& test -s conftest.two
&&
5648 test -s conftest.dir
/conftest.one
&&
5649 test -s conftest.dir
/conftest.two
5651 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5664 rm -rf conftest.one conftest.two conftest.dir
5667 if test "${ac_cv_path_install+set}" = set; then
5668 INSTALL
=$ac_cv_path_install
5670 # As a last resort, use the slow shell script. Don't cache a
5671 # value for INSTALL within a source directory, because that will
5672 # break other packages using the cache if that directory is
5673 # removed, or if the value is a relative name.
5674 INSTALL
=$ac_install_sh
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5678 $as_echo "$INSTALL" >&6; }
5680 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5681 # It thinks the first close brace ends the variable substitution.
5682 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5684 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5686 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5689 $as_echo_n "checking whether ln -s works... " >&6; }
5691 if test "$LN_S" = "ln -s"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5693 $as_echo "yes" >&6; }
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5696 $as_echo "no, using $LN_S" >&6; }
5699 if test -n "$ac_tool_prefix"; then
5700 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5701 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
5707 if test -n "$RANLIB"; then
5708 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5714 test -z "$as_dir" && as_dir
=.
5715 for ac_exec_ext
in '' $ac_executable_extensions; do
5716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5717 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 RANLIB
=$ac_cv_prog_RANLIB
5728 if test -n "$RANLIB"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5730 $as_echo "$RANLIB" >&6; }
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5738 if test -z "$ac_cv_prog_RANLIB"; then
5739 ac_ct_RANLIB
=$RANLIB
5740 # Extract the first word of "ranlib", so it can be a program name with args.
5741 set dummy ranlib
; ac_word
=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5747 if test -n "$ac_ct_RANLIB"; then
5748 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5754 test -z "$as_dir" && as_dir
=.
5755 for ac_exec_ext
in '' $ac_executable_extensions; do
5756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5757 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5768 if test -n "$ac_ct_RANLIB"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5770 $as_echo "$ac_ct_RANLIB" >&6; }
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5776 if test "x$ac_ct_RANLIB" = x
; then
5779 case $cross_compiling:$ac_tool_warned in
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5783 ac_tool_warned
=yes ;;
5785 RANLIB
=$ac_ct_RANLIB
5788 RANLIB
="$ac_cv_prog_RANLIB"
5791 for ac_prog
in 'bison -y' byacc
5793 # Extract the first word of "$ac_prog", so it can be a program name with args.
5794 set dummy
$ac_prog; ac_word
=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if test "${ac_cv_prog_YACC+set}" = set; then :
5798 $as_echo_n "(cached) " >&6
5800 if test -n "$YACC"; then
5801 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5807 test -z "$as_dir" && as_dir
=.
5808 for ac_exec_ext
in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_prog_YACC
="$ac_prog"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 YACC
=$ac_cv_prog_YACC
5821 if test -n "$YACC"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5823 $as_echo "$YACC" >&6; }
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5830 test -n "$YACC" && break
5832 test -n "$YACC" || YACC
="yacc"
5835 if test -n "$ac_tool_prefix"; then
5836 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5837 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 $as_echo_n "checking for $ac_word... " >&6; }
5840 if test "${ac_cv_prog_AR+set}" = set; then :
5841 $as_echo_n "(cached) " >&6
5843 if test -n "$AR"; then
5844 ac_cv_prog_AR
="$AR" # Let the user override the test.
5846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5850 test -z "$as_dir" && as_dir
=.
5851 for ac_exec_ext
in '' $ac_executable_extensions; do
5852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5853 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 if test -n "$AR"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5866 $as_echo "$AR" >&6; }
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 $as_echo "no" >&6; }
5874 if test -z "$ac_cv_prog_AR"; then
5876 # Extract the first word of "ar", so it can be a program name with args.
5877 set dummy
ar; ac_word
=$2
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879 $as_echo_n "checking for $ac_word... " >&6; }
5880 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5881 $as_echo_n "(cached) " >&6
5883 if test -n "$ac_ct_AR"; then
5884 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5890 test -z "$as_dir" && as_dir
=.
5891 for ac_exec_ext
in '' $ac_executable_extensions; do
5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5893 ac_cv_prog_ac_ct_AR
="ar"
5894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5904 if test -n "$ac_ct_AR"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5906 $as_echo "$ac_ct_AR" >&6; }
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5912 if test "x$ac_ct_AR" = x
; then
5915 case $cross_compiling:$ac_tool_warned in
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5919 ac_tool_warned
=yes ;;
5927 if test -n "$ac_tool_prefix"; then
5928 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5929 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931 $as_echo_n "checking for $ac_word... " >&6; }
5932 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5935 if test -n "$DLLTOOL"; then
5936 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
5938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5942 test -z "$as_dir" && as_dir
=.
5943 for ac_exec_ext
in '' $ac_executable_extensions; do
5944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5945 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
5946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 DLLTOOL
=$ac_cv_prog_DLLTOOL
5956 if test -n "$DLLTOOL"; then
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5958 $as_echo "$DLLTOOL" >&6; }
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961 $as_echo "no" >&6; }
5966 if test -z "$ac_cv_prog_DLLTOOL"; then
5967 ac_ct_DLLTOOL
=$DLLTOOL
5968 # Extract the first word of "dlltool", so it can be a program name with args.
5969 set dummy dlltool
; ac_word
=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5975 if test -n "$ac_ct_DLLTOOL"; then
5976 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
5978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5982 test -z "$as_dir" && as_dir
=.
5983 for ac_exec_ext
in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
5996 if test -n "$ac_ct_DLLTOOL"; then
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5998 $as_echo "$ac_ct_DLLTOOL" >&6; }
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 $as_echo "no" >&6; }
6004 if test "x$ac_ct_DLLTOOL" = x
; then
6007 case $cross_compiling:$ac_tool_warned in
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6011 ac_tool_warned
=yes ;;
6013 DLLTOOL
=$ac_ct_DLLTOOL
6016 DLLTOOL
="$ac_cv_prog_DLLTOOL"
6019 if test -n "$ac_tool_prefix"; then
6020 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6021 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023 $as_echo_n "checking for $ac_word... " >&6; }
6024 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
6027 if test -n "$WINDRES"; then
6028 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
6030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6034 test -z "$as_dir" && as_dir
=.
6035 for ac_exec_ext
in '' $ac_executable_extensions; do
6036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
6038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 WINDRES
=$ac_cv_prog_WINDRES
6048 if test -n "$WINDRES"; then
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6050 $as_echo "$WINDRES" >&6; }
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053 $as_echo "no" >&6; }
6058 if test -z "$ac_cv_prog_WINDRES"; then
6059 ac_ct_WINDRES
=$WINDRES
6060 # Extract the first word of "windres", so it can be a program name with args.
6061 set dummy windres
; ac_word
=$2
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6065 $as_echo_n "(cached) " >&6
6067 if test -n "$ac_ct_WINDRES"; then
6068 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
6070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6074 test -z "$as_dir" && as_dir
=.
6075 for ac_exec_ext
in '' $ac_executable_extensions; do
6076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077 ac_cv_prog_ac_ct_WINDRES
="windres"
6078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
6088 if test -n "$ac_ct_WINDRES"; then
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6090 $as_echo "$ac_ct_WINDRES" >&6; }
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6096 if test "x$ac_ct_WINDRES" = x
; then
6099 case $cross_compiling:$ac_tool_warned in
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6103 ac_tool_warned
=yes ;;
6105 WINDRES
=$ac_ct_WINDRES
6108 WINDRES
="$ac_cv_prog_WINDRES"
6112 # Needed for GNU/Hurd.
6113 if test -n "$ac_tool_prefix"; then
6114 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6115 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if test "${ac_cv_prog_MIG+set}" = set; then :
6119 $as_echo_n "(cached) " >&6
6121 if test -n "$MIG"; then
6122 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
6124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6128 test -z "$as_dir" && as_dir
=.
6129 for ac_exec_ext
in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 if test -n "$MIG"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6144 $as_echo "$MIG" >&6; }
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6152 if test -z "$ac_cv_prog_MIG"; then
6154 # Extract the first word of "mig", so it can be a program name with args.
6155 set dummy mig
; ac_word
=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6159 $as_echo_n "(cached) " >&6
6161 if test -n "$ac_ct_MIG"; then
6162 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
6164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6168 test -z "$as_dir" && as_dir
=.
6169 for ac_exec_ext
in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_ac_ct_MIG
="mig"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
6182 if test -n "$ac_ct_MIG"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6184 $as_echo "$ac_ct_MIG" >&6; }
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6190 if test "x$ac_ct_MIG" = x
; then
6193 case $cross_compiling:$ac_tool_warned in
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6197 ac_tool_warned
=yes ;;
6202 MIG
="$ac_cv_prog_MIG"
6206 # ---------------------- #
6207 # Checks for libraries. #
6208 # ---------------------- #
6210 # We might need to link with -lm; most simulators need it.
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6212 $as_echo_n "checking for main in -lm... " >&6; }
6213 if test "${ac_cv_lib_m_main+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6216 ac_check_lib_save_LIBS
=$LIBS
6218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6230 if ac_fn_c_try_link
"$LINENO"; then :
6231 ac_cv_lib_m_main
=yes
6235 rm -f core conftest.err conftest.
$ac_objext \
6236 conftest
$ac_exeext conftest.
$ac_ext
6237 LIBS
=$ac_check_lib_save_LIBS
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6240 $as_echo "$ac_cv_lib_m_main" >&6; }
6241 if test "x$ac_cv_lib_m_main" = x
""yes; then :
6242 cat >>confdefs.h
<<_ACEOF
6251 # We need to link with -lw to get `wctype' on Solaris before Solaris
6252 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6253 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6254 # is known to have this problem). Therefore we avoid libw if we can.
6255 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6256 if test "x$ac_cv_func_wctype" = x
""yes; then :
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6260 $as_echo_n "checking for wctype in -lw... " >&6; }
6261 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6262 $as_echo_n "(cached) " >&6
6264 ac_check_lib_save_LIBS
=$LIBS
6266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6269 /* Override any GCC internal prototype to avoid an error.
6270 Use char because int might match the return type of a GCC
6271 builtin and then its argument prototype would still apply. */
6284 if ac_fn_c_try_link
"$LINENO"; then :
6285 ac_cv_lib_w_wctype
=yes
6287 ac_cv_lib_w_wctype
=no
6289 rm -f core conftest.err conftest.
$ac_objext \
6290 conftest
$ac_exeext conftest.
$ac_ext
6291 LIBS
=$ac_check_lib_save_LIBS
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6294 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6295 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
6296 cat >>confdefs.h
<<_ACEOF
6307 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6309 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6310 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6311 $as_echo_n "(cached) " >&6
6313 ac_func_search_save_LIBS
=$LIBS
6314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6317 /* Override any GCC internal prototype to avoid an error.
6318 Use char because int might match the return type of a GCC
6319 builtin and then its argument prototype would still apply. */
6323 char gethostbyname ();
6327 return gethostbyname ();
6332 for ac_lib
in '' nsl
; do
6333 if test -z "$ac_lib"; then
6334 ac_res
="none required"
6337 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6339 if ac_fn_c_try_link
"$LINENO"; then :
6340 ac_cv_search_gethostbyname
=$ac_res
6342 rm -f core conftest.err conftest.
$ac_objext \
6344 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6348 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6351 ac_cv_search_gethostbyname
=no
6354 LIBS
=$ac_func_search_save_LIBS
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6357 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6358 ac_res
=$ac_cv_search_gethostbyname
6359 if test "$ac_res" != no
; then :
6360 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6365 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6367 $as_echo_n "checking for library containing socketpair... " >&6; }
6368 if test "${ac_cv_search_socketpair+set}" = set; then :
6369 $as_echo_n "(cached) " >&6
6371 ac_func_search_save_LIBS
=$LIBS
6372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6375 /* Override any GCC internal prototype to avoid an error.
6376 Use char because int might match the return type of a GCC
6377 builtin and then its argument prototype would still apply. */
6385 return socketpair ();
6390 for ac_lib
in '' socket
; do
6391 if test -z "$ac_lib"; then
6392 ac_res
="none required"
6395 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6397 if ac_fn_c_try_link
"$LINENO"; then :
6398 ac_cv_search_socketpair
=$ac_res
6400 rm -f core conftest.err conftest.
$ac_objext \
6402 if test "${ac_cv_search_socketpair+set}" = set; then :
6406 if test "${ac_cv_search_socketpair+set}" = set; then :
6409 ac_cv_search_socketpair
=no
6412 LIBS
=$ac_func_search_save_LIBS
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6415 $as_echo "$ac_cv_search_socketpair" >&6; }
6416 ac_res
=$ac_cv_search_socketpair
6417 if test "$ac_res" != no
; then :
6418 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6423 # Link in zlib if we can. This allows us to read compressed debug sections.
6425 # See if the user specified whether he wants zlib support or not.
6427 # Check whether --with-zlib was given.
6428 if test "${with_zlib+set}" = set; then :
6435 if test "$with_zlib" != "no"; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6437 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6438 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6439 $as_echo_n "(cached) " >&6
6441 ac_func_search_save_LIBS
=$LIBS
6442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6445 /* Override any GCC internal prototype to avoid an error.
6446 Use char because int might match the return type of a GCC
6447 builtin and then its argument prototype would still apply. */
6451 char zlibVersion ();
6455 return zlibVersion ();
6460 for ac_lib
in '' z
; do
6461 if test -z "$ac_lib"; then
6462 ac_res
="none required"
6465 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6467 if ac_fn_c_try_link
"$LINENO"; then :
6468 ac_cv_search_zlibVersion
=$ac_res
6470 rm -f core conftest.err conftest.
$ac_objext \
6472 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6476 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6479 ac_cv_search_zlibVersion
=no
6482 LIBS
=$ac_func_search_save_LIBS
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6485 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6486 ac_res
=$ac_cv_search_zlibVersion
6487 if test "$ac_res" != no
; then :
6488 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6489 for ac_header
in zlib.h
6491 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6492 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
6493 cat >>confdefs.h
<<_ACEOF
6494 #define HAVE_ZLIB_H 1
6503 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6504 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6509 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6511 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6512 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6513 $as_echo_n "(cached) " >&6
6515 ac_func_search_save_LIBS
=$LIBS
6516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h. */
6519 /* Override any GCC internal prototype to avoid an error.
6520 Use char because int might match the return type of a GCC
6521 builtin and then its argument prototype would still apply. */
6525 char dlgetmodinfo ();
6529 return dlgetmodinfo ();
6534 for ac_lib
in '' dl xpdl
; do
6535 if test -z "$ac_lib"; then
6536 ac_res
="none required"
6539 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6541 if ac_fn_c_try_link
"$LINENO"; then :
6542 ac_cv_search_dlgetmodinfo
=$ac_res
6544 rm -f core conftest.err conftest.
$ac_objext \
6546 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6550 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6553 ac_cv_search_dlgetmodinfo
=no
6556 LIBS
=$ac_func_search_save_LIBS
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6559 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6560 ac_res
=$ac_cv_search_dlgetmodinfo
6561 if test "$ac_res" != no
; then :
6562 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6570 # Check whether --with-libiconv-prefix was given.
6571 if test "${with_libiconv_prefix+set}" = set; then :
6572 withval
=$with_libiconv_prefix;
6573 for dir
in `echo "$withval" | tr : ' '`; do
6574 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
6575 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
6581 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
6582 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6585 $as_echo_n "checking for iconv... " >&6; }
6586 if test "${am_cv_func_iconv+set}" = set; then :
6587 $as_echo_n "(cached) " >&6
6590 am_cv_func_iconv
="no, consider installing GNU libiconv"
6592 am_cv_use_build_libiconv
=no
6593 am_cv_build_libiconv_path
=
6595 # If libiconv is part of the build tree, then try using it over
6597 if test -d ..
/libiconv
; then
6598 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
6599 am_save_LIBS
="$LIBS"
6600 am_save_CPPFLAGS
="$CPPFLAGS"
6601 LIBS
="$LIBS $lib_dir/libiconv.a"
6602 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6610 iconv_t cd = iconv_open("","");
6611 iconv(cd,NULL,NULL,NULL,NULL);
6617 if ac_fn_c_try_link
"$LINENO"; then :
6618 am_cv_use_build_libiconv
=yes
6619 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
6621 am_cv_func_iconv
=yes
6623 rm -f core conftest.err conftest.
$ac_objext \
6624 conftest
$ac_exeext conftest.
$ac_ext
6625 LIBS
="$am_save_LIBS"
6626 CPPFLAGS
="$am_save_CPPFLAGS"
6627 if test "$am_cv_use_build_libiconv" = "yes"; then
6633 # Next, try to find iconv in libc.
6634 if test "$am_cv_func_iconv" != yes; then
6635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6642 iconv_t cd = iconv_open("","");
6643 iconv(cd,NULL,NULL,NULL,NULL);
6649 if ac_fn_c_try_link
"$LINENO"; then :
6650 am_cv_func_iconv
=yes
6652 rm -f core conftest.err conftest.
$ac_objext \
6653 conftest
$ac_exeext conftest.
$ac_ext
6656 # If iconv was not in libc, try -liconv. In this case, arrange to
6657 # look in the libiconv prefix, if it was specified by the user.
6658 if test "$am_cv_func_iconv" != yes; then
6659 am_save_CPPFLAGS
="$CPPFLAGS"
6660 am_save_LIBS
="$LIBS"
6661 if test -n "$LIBICONV_INCLUDE"; then
6662 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
6663 LIBS
="$LIBS $LIBICONV_LIBDIR"
6665 LIBS
="$LIBS -liconv"
6666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6673 iconv_t cd = iconv_open("","");
6674 iconv(cd,NULL,NULL,NULL,NULL);
6680 if ac_fn_c_try_link
"$LINENO"; then :
6682 am_cv_func_iconv
=yes
6684 rm -f core conftest.err conftest.
$ac_objext \
6685 conftest
$ac_exeext conftest.
$ac_ext
6686 LIBS
="$am_save_LIBS"
6687 CPPFLAGS
="$am_save_CPPFLAGS"
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6692 $as_echo "$am_cv_func_iconv" >&6; }
6694 # Set the various flags based on the cache variables. We can't rely
6695 # on the flags to remain set from the above code, due to caching.
6697 if test "$am_cv_lib_iconv" = yes; then
6703 if test "$am_cv_use_build_libiconv" = yes; then
6704 LIBICONV
="$am_cv_build_libiconv_path"
6706 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
6708 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
6709 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6711 if test "$am_cv_func_iconv" = yes; then
6713 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6716 $as_echo_n "checking for iconv declaration... " >&6; }
6717 if test "${am_cv_proto_iconv+set}" = set; then :
6718 $as_echo_n "(cached) " >&6
6721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6730 #if defined(__STDC__) || defined(__cplusplus)
6731 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6744 if ac_fn_c_try_compile
"$LINENO"; then :
6745 am_cv_proto_iconv_arg1
=""
6747 am_cv_proto_iconv_arg1
="const"
6749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6750 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
6753 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6755 }$am_cv_proto_iconv" >&5
6757 }$am_cv_proto_iconv" >&6; }
6759 cat >>confdefs.h
<<_ACEOF
6760 #define ICONV_CONST $am_cv_proto_iconv_arg1
6766 # GDB may fork/exec the iconv program to get the list of supported character
6767 # sets. Allow the user to specify where to find it.
6768 # There are several factors affecting the choice of option name:
6769 # - There is already --with-libiconv-prefix but we can't use it, it specifies
6770 # the build-time location of libiconv files.
6771 # - The program we need to find is iconv, which comes with glibc. The user
6772 # doesn't necessarily have libiconv installed. Therefore naming this
6773 # --with-libiconv-foo feels wrong.
6774 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
6775 # defined to work on directories not files (though it really doesn't know
6777 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
6778 # with --with-libiconv-prefix.
6779 # Putting these together is why the option name is --with-iconv-bin.
6782 # Check whether --with-iconv-bin was given.
6783 if test "${with_iconv_bin+set}" = set; then :
6784 withval
=$with_iconv_bin; iconv_bin
="${withval}"
6786 cat >>confdefs.h
<<_ACEOF
6787 #define ICONV_BIN "${iconv_bin}"
6791 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6792 if test "x$prefix" = xNONE
; then
6793 test_prefix
=/usr
/local
6798 test_prefix
=$exec_prefix
6801 case ${iconv_bin} in
6802 "${test_prefix}"|
"${test_prefix}/"*|\
6803 '${exec_prefix}'|
'${exec_prefix}/'*)
6808 cat >>confdefs.h
<<_ACEOF
6809 #define ICONV_BIN_RELOCATABLE $value
6817 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
6818 # There is a very specific comment in /usr/include/curses.h explaining that
6819 # termcap routines built into libcurses must not be used.
6821 # The symptoms we observed so far is GDB unexpectedly changing
6822 # the terminal settings when tgetent is called - this is particularly
6823 # visible as the output is missing carriage returns, and so rapidly
6824 # becomes very hard to read.
6826 # The readline configure script has already decided that libtermcap
6827 # was enough for its purposes, and so decided to build readline using
6828 # libtermcap. Since the TUI mode requires curses, building GDB with
6829 # TUI enabled results in both libraries to be used at the same time,
6830 # which is not allowed. This basically means that GDB with TUI is
6831 # broken on alpha-osf.
6835 if test x
"$enable_tui" = xyes
; then
6836 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6838 if test x
"$enable_tui" = xauto
; then
6844 # For the TUI, we need enhanced curses functionality.
6845 if test x
"$enable_tui" != xno
; then
6850 if test x
"$prefer_curses" = xyes
; then
6851 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6852 # curses library because the latter might not provide all the
6853 # functionality we need. However, this leads to problems on systems
6854 # where the linker searches /usr/local/lib, but the compiler doesn't
6855 # search /usr/local/include, if ncurses is installed in /usr/local. A
6856 # default installation of ncurses on alpha*-dec-osf* will lead to such
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
6859 $as_echo_n "checking for library containing waddstr... " >&6; }
6860 if test "${ac_cv_search_waddstr+set}" = set; then :
6861 $as_echo_n "(cached) " >&6
6863 ac_func_search_save_LIBS
=$LIBS
6864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6867 /* Override any GCC internal prototype to avoid an error.
6868 Use char because int might match the return type of a GCC
6869 builtin and then its argument prototype would still apply. */
6882 for ac_lib
in '' ncurses cursesX curses
; do
6883 if test -z "$ac_lib"; then
6884 ac_res
="none required"
6887 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6889 if ac_fn_c_try_link
"$LINENO"; then :
6890 ac_cv_search_waddstr
=$ac_res
6892 rm -f core conftest.err conftest.
$ac_objext \
6894 if test "${ac_cv_search_waddstr+set}" = set; then :
6898 if test "${ac_cv_search_waddstr+set}" = set; then :
6901 ac_cv_search_waddstr
=no
6904 LIBS
=$ac_func_search_save_LIBS
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
6907 $as_echo "$ac_cv_search_waddstr" >&6; }
6908 ac_res
=$ac_cv_search_waddstr
6909 if test "$ac_res" != no
; then :
6910 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6915 if test "$ac_cv_search_waddstr" != no
; then
6920 # Check whether we should enable the TUI, but only do so if we really
6922 if test x
"$enable_tui" != xno
; then
6923 if test -d $srcdir/tui
; then
6924 if test "$curses_found" != no
; then
6925 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
6926 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
6927 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
6928 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
6930 if test x
"$enable_tui" = xyes
; then
6931 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
6934 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
6940 # Since GDB uses Readline, we need termcap functionality. In many
6941 # cases this will be provided by the curses library, but some systems
6942 # have a seperate termcap library, or no curses library at all.
6946 if test -d $srcdir/libtermcap
; then
6947 LIBS
="../libtermcap/libtermcap.a $LIBS"
6948 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
6951 ac_cv_search_tgetent
="none required"
6954 ac_cv_search_tgetent
="none required"
6955 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
6959 # These are the libraries checked by Readline.
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
6961 $as_echo_n "checking for library containing tgetent... " >&6; }
6962 if test "${ac_cv_search_tgetent+set}" = set; then :
6963 $as_echo_n "(cached) " >&6
6965 ac_func_search_save_LIBS
=$LIBS
6966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6969 /* Override any GCC internal prototype to avoid an error.
6970 Use char because int might match the return type of a GCC
6971 builtin and then its argument prototype would still apply. */
6984 for ac_lib
in '' termcap tinfo curses ncurses
; do
6985 if test -z "$ac_lib"; then
6986 ac_res
="none required"
6989 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6991 if ac_fn_c_try_link
"$LINENO"; then :
6992 ac_cv_search_tgetent
=$ac_res
6994 rm -f core conftest.err conftest.
$ac_objext \
6996 if test "${ac_cv_search_tgetent+set}" = set; then :
7000 if test "${ac_cv_search_tgetent+set}" = set; then :
7003 ac_cv_search_tgetent
=no
7006 LIBS
=$ac_func_search_save_LIBS
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7009 $as_echo "$ac_cv_search_tgetent" >&6; }
7010 ac_res
=$ac_cv_search_tgetent
7011 if test "$ac_res" != no
; then :
7012 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7017 if test "$ac_cv_search_tgetent" = no
; then
7018 as_fn_error
"no termcap library found" "$LINENO" 5
7022 # Check whether --with-system-readline was given.
7023 if test "${with_system_readline+set}" = set; then :
7024 withval
=$with_system_readline;
7028 if test "$with_system_readline" = yes; then
7032 READLINE_TEXI_INCFLAG
=
7034 READLINE
='$(READLINE_DIR)/libreadline.a'
7035 READLINE_DEPS
='$(READLINE)'
7036 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
7037 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
7044 # Generate jit-reader.h
7046 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7049 # The cast to long int works around a bug in the HP C Compiler
7050 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7051 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7052 # This bug is HP SR number 8606223364.
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7054 $as_echo_n "checking size of unsigned long long... " >&6; }
7055 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7056 $as_echo_n "(cached) " >&6
7058 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7061 if test "$ac_cv_type_unsigned_long_long" = yes; then
7062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7064 { as_fn_set_status
77
7065 as_fn_error
"cannot compute sizeof (unsigned long long)
7066 See \`config.log' for more details." "$LINENO" 5; }; }
7068 ac_cv_sizeof_unsigned_long_long
=0
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7074 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7078 cat >>confdefs.h
<<_ACEOF
7079 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7083 # The cast to long int works around a bug in the HP C Compiler
7084 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7085 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7086 # This bug is HP SR number 8606223364.
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7088 $as_echo_n "checking size of unsigned long... " >&6; }
7089 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7090 $as_echo_n "(cached) " >&6
7092 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7095 if test "$ac_cv_type_unsigned_long" = yes; then
7096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7098 { as_fn_set_status
77
7099 as_fn_error
"cannot compute sizeof (unsigned long)
7100 See \`config.log' for more details." "$LINENO" 5; }; }
7102 ac_cv_sizeof_unsigned_long
=0
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7108 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7112 cat >>confdefs.h
<<_ACEOF
7113 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7117 # The cast to long int works around a bug in the HP C Compiler
7118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7120 # This bug is HP SR number 8606223364.
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7122 $as_echo_n "checking size of unsigned __int128... " >&6; }
7123 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7126 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7129 if test "$ac_cv_type_unsigned___int128" = yes; then
7130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7132 { as_fn_set_status
77
7133 as_fn_error
"cannot compute sizeof (unsigned __int128)
7134 See \`config.log' for more details." "$LINENO" 5; }; }
7136 ac_cv_sizeof_unsigned___int128
=0
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7142 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7146 cat >>confdefs.h
<<_ACEOF
7147 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7152 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7153 TARGET_PTR
="unsigned long"
7154 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7155 TARGET_PTR
="unsigned long long"
7156 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7157 TARGET_PTR
="unsigned __int128"
7159 TARGET_PTR
="unsigned long"
7163 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7167 $as_echo_n "checking for library containing dlopen... " >&6; }
7168 if test "${ac_cv_search_dlopen+set}" = set; then :
7169 $as_echo_n "(cached) " >&6
7171 ac_func_search_save_LIBS
=$LIBS
7172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7175 /* Override any GCC internal prototype to avoid an error.
7176 Use char because int might match the return type of a GCC
7177 builtin and then its argument prototype would still apply. */
7190 for ac_lib
in '' dl
; do
7191 if test -z "$ac_lib"; then
7192 ac_res
="none required"
7195 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7197 if ac_fn_c_try_link
"$LINENO"; then :
7198 ac_cv_search_dlopen
=$ac_res
7200 rm -f core conftest.err conftest.
$ac_objext \
7202 if test "${ac_cv_search_dlopen+set}" = set; then :
7206 if test "${ac_cv_search_dlopen+set}" = set; then :
7209 ac_cv_search_dlopen
=no
7212 LIBS
=$ac_func_search_save_LIBS
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7215 $as_echo "$ac_cv_search_dlopen" >&6; }
7216 ac_res
=$ac_cv_search_dlopen
7217 if test "$ac_res" != no
; then :
7218 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7225 # Check whether --with-jit-reader-dir was given.
7226 if test "${with_jit_reader_dir+set}" = set; then :
7227 withval
=$with_jit_reader_dir;
7228 JIT_READER_DIR
=$withval
7230 JIT_READER_DIR
=${libdir}/gdb
7234 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7235 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7236 ac_define_dir
=`eval echo $JIT_READER_DIR`
7237 ac_define_dir
=`eval echo $ac_define_dir`
7239 cat >>confdefs.h
<<_ACEOF
7240 #define JIT_READER_DIR "$ac_define_dir"
7246 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7247 if test "x$prefix" = xNONE
; then
7248 test_prefix
=/usr
/local
7253 test_prefix
=$exec_prefix
7256 case ${ac_define_dir} in
7257 "${test_prefix}"|
"${test_prefix}/"*|\
7258 '${exec_prefix}'|
'${exec_prefix}/'*)
7263 cat >>confdefs.h
<<_ACEOF
7264 #define JIT_READER_DIR_RELOCATABLE $value
7271 # Check whether --with-expat was given.
7272 if test "${with_expat+set}" = set; then :
7273 withval
=$with_expat;
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7279 $as_echo_n "checking whether to use expat... " >&6; }
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7281 $as_echo "$with_expat" >&6; }
7283 if test "${with_expat}" = no
; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7285 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7289 if test "X$prefix" = "XNONE"; then
7290 acl_final_prefix
="$ac_default_prefix"
7292 acl_final_prefix
="$prefix"
7294 if test "X$exec_prefix" = "XNONE"; then
7295 acl_final_exec_prefix
='${prefix}'
7297 acl_final_exec_prefix
="$exec_prefix"
7299 acl_save_prefix
="$prefix"
7300 prefix
="$acl_final_prefix"
7301 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7302 prefix
="$acl_save_prefix"
7305 # Check whether --with-gnu-ld was given.
7306 if test "${with_gnu_ld+set}" = set; then :
7307 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7312 # Prepare PATH_SEPARATOR.
7313 # The user is always right.
7314 if test "${PATH_SEPARATOR+set}" != set; then
7315 echo "#! /bin/sh" >conf$$.sh
7316 echo "exit 0" >>conf$$.sh
7318 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7326 if test "$GCC" = yes; then
7327 # Check if gcc -print-prog-name=ld gives a path.
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7329 $as_echo_n "checking for ld used by GCC... " >&6; }
7332 # gcc leaves a trailing carriage return which upsets mingw
7333 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7335 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7338 # Accept absolute paths.
7339 [\\/]* |
[A-Za-z
]:[\\/]*)
7340 re_direlt
='/[^/][^/]*/\.\./'
7341 # Canonicalize the path of ld
7342 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7343 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7344 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7346 test -z "$LD" && LD
="$ac_prog"
7349 # If it fails, then pretend we aren't using GCC.
7353 # If it is relative, then search for the first ld in PATH.
7357 elif test "$with_gnu_ld" = yes; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7359 $as_echo_n "checking for GNU ld... " >&6; }
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7362 $as_echo_n "checking for non-GNU ld... " >&6; }
7364 if test "${acl_cv_path_LD+set}" = set; then :
7365 $as_echo_n "(cached) " >&6
7367 if test -z "$LD"; then
7368 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7369 for ac_dir
in $PATH; do
7370 test -z "$ac_dir" && ac_dir
=.
7371 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7372 acl_cv_path_LD
="$ac_dir/$ac_prog"
7373 # Check to see if the program is GNU ld. I'd rather use --version,
7374 # but apparently some GNU ld's only accept -v.
7375 # Break only if it was the GNU/non-GNU ld that we prefer.
7376 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7377 test "$with_gnu_ld" != no
&& break
7379 test "$with_gnu_ld" != yes && break
7385 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7389 LD
="$acl_cv_path_LD"
7390 if test -n "$LD"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7392 $as_echo "$LD" >&6; }
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7397 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7399 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7400 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7403 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7404 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7405 acl_cv_prog_gnu_ld
=yes
7407 acl_cv_prog_gnu_ld
=no
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7411 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7412 with_gnu_ld
=$acl_cv_prog_gnu_ld
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7417 $as_echo_n "checking for shared library run path origin... " >&6; }
7418 if test "${acl_cv_rpath+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7422 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7423 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7430 $as_echo "$acl_cv_rpath" >&6; }
7432 libext
="$acl_cv_libext"
7433 shlibext
="$acl_cv_shlibext"
7434 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7435 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7436 hardcode_direct
="$acl_cv_hardcode_direct"
7437 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7438 # Check whether --enable-rpath was given.
7439 if test "${enable_rpath+set}" = set; then :
7440 enableval
=$enable_rpath; :
7456 acl_save_prefix
="$prefix"
7457 prefix
="$acl_final_prefix"
7458 acl_save_exec_prefix
="$exec_prefix"
7459 exec_prefix
="$acl_final_exec_prefix"
7461 eval additional_includedir
=\"$includedir\"
7462 eval additional_libdir
=\"$libdir\"
7464 exec_prefix
="$acl_save_exec_prefix"
7465 prefix
="$acl_save_prefix"
7468 # Check whether --with-libexpat-prefix was given.
7469 if test "${with_libexpat_prefix+set}" = set; then :
7470 withval
=$with_libexpat_prefix;
7471 if test "X$withval" = "Xno"; then
7474 if test "X$withval" = "X"; then
7476 acl_save_prefix
="$prefix"
7477 prefix
="$acl_final_prefix"
7478 acl_save_exec_prefix
="$exec_prefix"
7479 exec_prefix
="$acl_final_exec_prefix"
7481 eval additional_includedir
=\"$includedir\"
7482 eval additional_libdir
=\"$libdir\"
7484 exec_prefix
="$acl_save_exec_prefix"
7485 prefix
="$acl_save_prefix"
7488 additional_includedir
="$withval/include"
7489 additional_libdir
="$withval/lib"
7500 names_already_handled
=
7501 names_next_round
='expat '
7502 while test -n "$names_next_round"; do
7503 names_this_round
="$names_next_round"
7505 for name
in $names_this_round; do
7507 for n
in $names_already_handled; do
7508 if test "$n" = "$name"; then
7513 if test -z "$already_handled"; then
7514 names_already_handled
="$names_already_handled $name"
7515 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7516 eval value
=\"\
$HAVE_LIB$uppername\"
7517 if test -n "$value"; then
7518 if test "$value" = yes; then
7519 eval value
=\"\
$LIB$uppername\"
7520 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
7521 eval value
=\"\
$LTLIB$uppername\"
7522 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7531 if test $use_additional = yes; then
7532 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7533 found_dir
="$additional_libdir"
7534 found_so
="$additional_libdir/lib$name.$shlibext"
7535 if test -f "$additional_libdir/lib$name.la"; then
7536 found_la
="$additional_libdir/lib$name.la"
7539 if test -f "$additional_libdir/lib$name.$libext"; then
7540 found_dir
="$additional_libdir"
7541 found_a
="$additional_libdir/lib$name.$libext"
7542 if test -f "$additional_libdir/lib$name.la"; then
7543 found_la
="$additional_libdir/lib$name.la"
7548 if test "X$found_dir" = "X"; then
7549 for x
in $LDFLAGS $LTLIBEXPAT; do
7551 acl_save_prefix
="$prefix"
7552 prefix
="$acl_final_prefix"
7553 acl_save_exec_prefix
="$exec_prefix"
7554 exec_prefix
="$acl_final_exec_prefix"
7556 exec_prefix
="$acl_save_exec_prefix"
7557 prefix
="$acl_save_prefix"
7561 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7562 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7564 found_so
="$dir/lib$name.$shlibext"
7565 if test -f "$dir/lib$name.la"; then
7566 found_la
="$dir/lib$name.la"
7569 if test -f "$dir/lib$name.$libext"; then
7571 found_a
="$dir/lib$name.$libext"
7572 if test -f "$dir/lib$name.la"; then
7573 found_la
="$dir/lib$name.la"
7579 if test "X$found_dir" != "X"; then
7584 if test "X$found_dir" != "X"; then
7585 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7586 if test "X$found_so" != "X"; then
7587 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
7588 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7591 for x
in $ltrpathdirs; do
7592 if test "X$x" = "X$found_dir"; then
7597 if test -z "$haveit"; then
7598 ltrpathdirs
="$ltrpathdirs $found_dir"
7600 if test "$hardcode_direct" = yes; then
7601 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7603 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
7604 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7606 for x
in $rpathdirs; do
7607 if test "X$x" = "X$found_dir"; then
7612 if test -z "$haveit"; then
7613 rpathdirs
="$rpathdirs $found_dir"
7617 for x
in $LDFLAGS $LIBEXPAT; do
7619 acl_save_prefix
="$prefix"
7620 prefix
="$acl_final_prefix"
7621 acl_save_exec_prefix
="$exec_prefix"
7622 exec_prefix
="$acl_final_exec_prefix"
7624 exec_prefix
="$acl_save_exec_prefix"
7625 prefix
="$acl_save_prefix"
7627 if test "X$x" = "X-L$found_dir"; then
7632 if test -z "$haveit"; then
7633 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7635 if test "$hardcode_minus_L" != no
; then
7636 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7638 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7644 if test "X$found_a" != "X"; then
7645 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7647 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7650 additional_includedir
=
7651 case "$found_dir" in
7653 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7654 additional_includedir
="$basedir/include"
7657 if test "X$additional_includedir" != "X"; then
7658 if test "X$additional_includedir" != "X/usr/include"; then
7660 if test "X$additional_includedir" = "X/usr/local/include"; then
7661 if test -n "$GCC"; then
7663 linux
*) haveit
=yes;;
7667 if test -z "$haveit"; then
7668 for x
in $CPPFLAGS $INCEXPAT; do
7670 acl_save_prefix
="$prefix"
7671 prefix
="$acl_final_prefix"
7672 acl_save_exec_prefix
="$exec_prefix"
7673 exec_prefix
="$acl_final_exec_prefix"
7675 exec_prefix
="$acl_save_exec_prefix"
7676 prefix
="$acl_save_prefix"
7678 if test "X$x" = "X-I$additional_includedir"; then
7683 if test -z "$haveit"; then
7684 if test -d "$additional_includedir"; then
7685 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7691 if test -n "$found_la"; then
7692 save_libdir
="$libdir"
7694 */* |
*\\*) .
"$found_la" ;;
7695 *) .
"./$found_la" ;;
7697 libdir
="$save_libdir"
7698 for dep
in $dependency_libs; do
7701 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7702 if test "X$additional_libdir" != "X/usr/lib"; then
7704 if test "X$additional_libdir" = "X/usr/local/lib"; then
7705 if test -n "$GCC"; then
7707 linux
*) haveit
=yes;;
7711 if test -z "$haveit"; then
7713 for x
in $LDFLAGS $LIBEXPAT; do
7715 acl_save_prefix
="$prefix"
7716 prefix
="$acl_final_prefix"
7717 acl_save_exec_prefix
="$exec_prefix"
7718 exec_prefix
="$acl_final_exec_prefix"
7720 exec_prefix
="$acl_save_exec_prefix"
7721 prefix
="$acl_save_prefix"
7723 if test "X$x" = "X-L$additional_libdir"; then
7728 if test -z "$haveit"; then
7729 if test -d "$additional_libdir"; then
7730 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7734 for x
in $LDFLAGS $LTLIBEXPAT; do
7736 acl_save_prefix
="$prefix"
7737 prefix
="$acl_final_prefix"
7738 acl_save_exec_prefix
="$exec_prefix"
7739 exec_prefix
="$acl_final_exec_prefix"
7741 exec_prefix
="$acl_save_exec_prefix"
7742 prefix
="$acl_save_prefix"
7744 if test "X$x" = "X-L$additional_libdir"; then
7749 if test -z "$haveit"; then
7750 if test -d "$additional_libdir"; then
7751 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7758 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7759 if test "$enable_rpath" != no
; then
7761 for x
in $rpathdirs; do
7762 if test "X$x" = "X$dir"; then
7767 if test -z "$haveit"; then
7768 rpathdirs
="$rpathdirs $dir"
7771 for x
in $ltrpathdirs; do
7772 if test "X$x" = "X$dir"; then
7777 if test -z "$haveit"; then
7778 ltrpathdirs
="$ltrpathdirs $dir"
7783 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7786 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7789 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7790 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7796 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7797 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7803 if test "X$rpathdirs" != "X"; then
7804 if test -n "$hardcode_libdir_separator"; then
7806 for found_dir
in $rpathdirs; do
7807 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7809 acl_save_libdir
="$libdir"
7811 eval flag
=\"$hardcode_libdir_flag_spec\"
7812 libdir
="$acl_save_libdir"
7813 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7815 for found_dir
in $rpathdirs; do
7816 acl_save_libdir
="$libdir"
7818 eval flag
=\"$hardcode_libdir_flag_spec\"
7819 libdir
="$acl_save_libdir"
7820 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7824 if test "X$ltrpathdirs" != "X"; then
7825 for found_dir
in $ltrpathdirs; do
7826 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7831 ac_save_CPPFLAGS
="$CPPFLAGS"
7833 for element
in $INCEXPAT; do
7835 for x
in $CPPFLAGS; do
7837 acl_save_prefix
="$prefix"
7838 prefix
="$acl_final_prefix"
7839 acl_save_exec_prefix
="$exec_prefix"
7840 exec_prefix
="$acl_final_exec_prefix"
7842 exec_prefix
="$acl_save_exec_prefix"
7843 prefix
="$acl_save_prefix"
7845 if test "X$x" = "X$element"; then
7850 if test -z "$haveit"; then
7851 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
7857 $as_echo_n "checking for libexpat... " >&6; }
7858 if test "${ac_cv_libexpat+set}" = set; then :
7859 $as_echo_n "(cached) " >&6
7862 ac_save_LIBS
="$LIBS"
7863 LIBS
="$LIBS $LIBEXPAT"
7864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7870 XML_Parser p = XML_ParserCreate (0);
7875 if ac_fn_c_try_link
"$LINENO"; then :
7880 rm -f core conftest.err conftest.
$ac_objext \
7881 conftest
$ac_exeext conftest.
$ac_ext
7882 LIBS
="$ac_save_LIBS"
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
7886 $as_echo "$ac_cv_libexpat" >&6; }
7887 if test "$ac_cv_libexpat" = yes; then
7890 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
7893 $as_echo_n "checking how to link with libexpat... " >&6; }
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
7895 $as_echo "$LIBEXPAT" >&6; }
7898 CPPFLAGS
="$ac_save_CPPFLAGS"
7908 if test "$HAVE_LIBEXPAT" != yes; then
7909 if test "$with_expat" = yes; then
7910 as_fn_error
"expat is missing or unusable" "$LINENO" 5
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
7913 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
7917 LIBS
="$LIBS $LIBEXPAT"
7918 for ac_func
in XML_StopParser
7920 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
7921 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
7922 cat >>confdefs.h
<<_ACEOF
7923 #define HAVE_XML_STOPPARSER 1
7938 # Check whether --with-python was given.
7939 if test "${with_python+set}" = set; then :
7940 withval
=$with_python;
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
7946 $as_echo_n "checking whether to use python... " >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
7948 $as_echo "$with_python" >&6; }
7950 if test "${with_python}" = no
; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
7952 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
7955 case "${with_python}" in
7957 if test -d ${with_python}; then
7958 # Assume the python binary is ${with_python}/bin/python.
7959 python_prog
="${with_python}/bin/python"
7961 # If python does not exit ${with_python}/bin, then try in
7962 # ${with_python}. On Windows/MinGW, this is where the Python
7964 if test ! -x "${python_prog}"; then
7965 python_prog
="${with_python}/python"
7968 if test ! -x "${python_prog}"; then
7969 # Fall back to gdb 7.0/7.1 behaviour.
7971 python_prefix
=${with_python}
7973 elif test -x "${with_python}"; then
7974 # While we can't run python compiled for $host (unless host == build),
7975 # the user could write a script that provides the needed information,
7976 # so we support that.
7977 python_prog
=${with_python}
7980 as_fn_error
"invalid value for --with-python" "$LINENO" 5
7984 # Disallow --with-python=foo/bar.
7985 as_fn_error
"invalid value for --with-python" "$LINENO" 5
7988 # The user has either specified auto, yes, or the name of the python
7989 # program assumed to be in $PATH.
7991 case "${with_python}" in
7993 if test ${build} = ${host}; then
7994 # Extract the first word of "python", so it can be a program name with args.
7995 set dummy python
; ac_word
=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if test "${ac_cv_path_python_prog_path+set}" = set; then :
7999 $as_echo_n "(cached) " >&6
8001 case $python_prog_path in
8003 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8010 test -z "$as_dir" && as_dir
=.
8011 for ac_exec_ext
in '' $ac_executable_extensions; do
8012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8013 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8025 python_prog_path
=$ac_cv_path_python_prog_path
8026 if test -n "$python_prog_path"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8028 $as_echo "$python_prog_path" >&6; }
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8035 if test "${python_prog_path}" = missing
; then
8038 python_prog
=${python_prog_path}
8041 # Not much we can do except assume the cross-compiler will find the
8047 # While we can't run python compiled for $host (unless host == build),
8048 # the user could write a script that provides the needed information,
8049 # so we support that.
8050 python_prog
="${with_python}"
8051 # Extract the first word of "${python_prog}", so it can be a program name with args.
8052 set dummy
${python_prog}; ac_word
=$2
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8056 $as_echo_n "(cached) " >&6
8058 case $python_prog_path in
8060 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8067 test -z "$as_dir" && as_dir
=.
8068 for ac_exec_ext
in '' $ac_executable_extensions; do
8069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8070 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8082 python_prog_path
=$ac_cv_path_python_prog_path
8083 if test -n "$python_prog_path"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8085 $as_echo "$python_prog_path" >&6; }
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8092 if test "${python_prog_path}" = missing
; then
8093 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
8099 if test "${python_prog}" != missing
; then
8100 # We have a python program to use, but it may be too old.
8101 # Don't flag an error for --with-python=auto (the default).
8102 have_python_config
=yes
8103 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
8104 if test $?
!= 0; then
8105 have_python_config
=failed
8106 if test "${with_python}" != auto
; then
8107 as_fn_error
"failure running python-config --includes" "$LINENO" 5
8110 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8111 if test $?
!= 0; then
8112 have_python_config
=failed
8113 if test "${with_python}" != auto
; then
8114 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
8117 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8118 if test $?
!= 0; then
8119 have_python_config
=failed
8120 if test "${with_python}" != auto
; then
8121 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
8125 # We do not have a python executable we can use to determine where
8126 # to find the Python headers and libs. We cannot guess the include
8127 # path from the python_prefix either, because that include path
8128 # depends on the Python version. So, there is nothing much we can
8129 # do except assume that the compiler will be able to find those files.
8132 have_python_config
=no
8135 # If we have python-config, only try the configuration it provides.
8136 # Otherwise fallback on the old way of trying different versions of
8140 if test "${have_python_config}" = yes; then
8141 # Determine the Python version by extracting "-lpython<version>"
8142 # part of the python_libs. <version> is usually X.Y with X and Y
8143 # being decimal numbers, but can also be XY (seen on Windows).
8145 # The extraction is performed using sed with a regular expression.
8146 # Initially, the regexp used was using the '?' quantifier to make
8147 # the dot in the version number optional. Unfortunately, this
8148 # does not work with non-GNU versions of sed because, because of
8149 # what looks like a limitation (the '?' quantifier does not work
8150 # with back-references). We work around this limitation by using
8151 # the '*' quantifier instead. It means that, in theory, we might
8152 # match unexpected version strings such as "-lpython2..7", but
8153 # this seems unlikely in practice. And even if that happens,
8154 # an error will be triggered later on, when checking that version
8156 python_version
=`echo " ${python_libs} " \
8157 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8158 case "${python_version}" in
8161 version
=${python_version}
8163 new_CPPFLAGS
=${python_includes}
8164 new_LIBS
=${python_libs}
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8166 $as_echo_n "checking for ${version}... " >&6; }
8167 save_CPPFLAGS
=$CPPFLAGS
8169 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8170 LIBS
="$LIBS $new_LIBS"
8171 found_usable_python
=no
8172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8173 /* end confdefs.h. */
8183 if ac_fn_c_try_link
"$LINENO"; then :
8184 have_libpython
=${version}
8185 found_usable_python
=yes
8186 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8187 PYTHON_LIBS
=$new_LIBS
8189 rm -f core conftest.err conftest.
$ac_objext \
8190 conftest
$ac_exeext conftest.
$ac_ext
8191 CPPFLAGS
=$save_CPPFLAGS
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8194 $as_echo "${found_usable_python}" >&6; }
8198 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
8201 elif test "${have_python_config}" != failed
; then
8202 if test "${have_libpython}" = no
; then
8206 new_CPPFLAGS
=${python_includes}
8207 new_LIBS
="${python_libs} -lpython2.7"
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8209 $as_echo_n "checking for ${version}... " >&6; }
8210 save_CPPFLAGS
=$CPPFLAGS
8212 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8213 LIBS
="$LIBS $new_LIBS"
8214 found_usable_python
=no
8215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8226 if ac_fn_c_try_link
"$LINENO"; then :
8227 have_libpython
=${version}
8228 found_usable_python
=yes
8229 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8230 PYTHON_LIBS
=$new_LIBS
8232 rm -f core conftest.err conftest.
$ac_objext \
8233 conftest
$ac_exeext conftest.
$ac_ext
8234 CPPFLAGS
=$save_CPPFLAGS
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8237 $as_echo "${found_usable_python}" >&6; }
8240 if test "${have_libpython}" = no
; then
8244 new_CPPFLAGS
=${python_includes}
8245 new_LIBS
="${python_libs} -lpython2.6"
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8247 $as_echo_n "checking for ${version}... " >&6; }
8248 save_CPPFLAGS
=$CPPFLAGS
8250 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8251 LIBS
="$LIBS $new_LIBS"
8252 found_usable_python
=no
8253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8264 if ac_fn_c_try_link
"$LINENO"; then :
8265 have_libpython
=${version}
8266 found_usable_python
=yes
8267 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8268 PYTHON_LIBS
=$new_LIBS
8270 rm -f core conftest.err conftest.
$ac_objext \
8271 conftest
$ac_exeext conftest.
$ac_ext
8272 CPPFLAGS
=$save_CPPFLAGS
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8275 $as_echo "${found_usable_python}" >&6; }
8278 if test ${have_libpython} = no
; then
8282 new_CPPFLAGS
=${python_includes}
8283 new_LIBS
="${python_libs} -lpython2.5"
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8285 $as_echo_n "checking for ${version}... " >&6; }
8286 save_CPPFLAGS
=$CPPFLAGS
8288 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8289 LIBS
="$LIBS $new_LIBS"
8290 found_usable_python
=no
8291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8302 if ac_fn_c_try_link
"$LINENO"; then :
8303 have_libpython
=${version}
8304 found_usable_python
=yes
8305 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8306 PYTHON_LIBS
=$new_LIBS
8308 rm -f core conftest.err conftest.
$ac_objext \
8309 conftest
$ac_exeext conftest.
$ac_ext
8310 CPPFLAGS
=$save_CPPFLAGS
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8313 $as_echo "${found_usable_python}" >&6; }
8316 if test ${have_libpython} = no
; then
8320 new_CPPFLAGS
=${python_includes}
8321 new_LIBS
="${python_libs} -lpython2.4"
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8323 $as_echo_n "checking for ${version}... " >&6; }
8324 save_CPPFLAGS
=$CPPFLAGS
8326 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8327 LIBS
="$LIBS $new_LIBS"
8328 found_usable_python
=no
8329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8330 /* end confdefs.h. */
8340 if ac_fn_c_try_link
"$LINENO"; then :
8341 have_libpython
=${version}
8342 found_usable_python
=yes
8343 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8344 PYTHON_LIBS
=$new_LIBS
8346 rm -f core conftest.err conftest.
$ac_objext \
8347 conftest
$ac_exeext conftest.
$ac_ext
8348 CPPFLAGS
=$save_CPPFLAGS
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8351 $as_echo "${found_usable_python}" >&6; }
8355 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
8357 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8359 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
8361 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8363 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
8365 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8367 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
8369 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8373 if test "${have_libpython}" = no
; then
8374 case "${with_python}" in
8376 as_fn_error
"python is missing or unusable" "$LINENO" 5
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8380 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8383 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
8387 if test -n "${python_prefix}"; then
8389 cat >>confdefs.h
<<_ACEOF
8390 #define WITH_PYTHON_PATH "${python_prefix}"
8394 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8395 if test "x$prefix" = xNONE
; then
8396 test_prefix
=/usr
/local
8401 test_prefix
=$exec_prefix
8404 case ${python_prefix} in
8405 "${test_prefix}"|
"${test_prefix}/"*|\
8406 '${exec_prefix}'|
'${exec_prefix}/'*)
8411 cat >>confdefs.h
<<_ACEOF
8412 #define PYTHON_PATH_RELOCATABLE $value
8420 if test "${have_libpython}" != no
; then
8422 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8424 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8425 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8426 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8427 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
8428 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8430 # Flags needed to compile Python code (taken from python-config --cflags).
8431 # We cannot call python-config directly because it will output whatever was
8432 # used when compiling the Python interpreter itself, including flags which
8433 # would make the python-related objects be compiled differently from the
8434 # rest of GDB (e.g., -O2 and -fPIC).
8435 if test "${GCC}" = yes; then
8436 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
8439 if test "x${tentative_python_cflags}" != x
; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8441 $as_echo_n "checking compiler flags for python code... " >&6; }
8442 for flag
in ${tentative_python_cflags}; do
8443 # Check that the compiler accepts it
8444 saved_CFLAGS
="$CFLAGS"
8445 CFLAGS
="$CFLAGS $flag"
8446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8457 if ac_fn_c_try_compile
"$LINENO"; then :
8458 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
8460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8461 CFLAGS
="$saved_CFLAGS"
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8464 $as_echo "${PYTHON_CFLAGS}" >&6; }
8467 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
8469 # #define siginfo __siginfo
8471 # The problem is that including Python causes some XOPEN macros to be
8472 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
8473 # to false. So, we work around this issue by defining siginfo ourself
8474 # though the command-line.
8476 irix
*) if test "${GCC}" = yes; then
8477 CPPFLAGS
="$CPPFLAGS -Dsiginfo=__siginfo"
8482 # Note that "python -m threading" cannot be used to check for
8483 # threading support due to a bug in Python 2.7.3
8484 # (http://bugs.python.org/issue15567).
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
8486 $as_echo_n "checking whether python supports threads... " >&6; }
8487 saved_CPPFLAGS
="${CPPFLAGS}"
8488 CPPFLAGS
="${PYTHON_CPPFLAGS}"
8489 # Note that the test is reversed so that python_has_threads=yes on
8490 # unexpected failures.
8491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8500 if ac_fn_c_try_cpp
"$LINENO"; then :
8501 python_has_threads
=no
8503 python_has_threads
=yes
8505 rm -f conftest.err conftest.
$ac_ext
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
8507 $as_echo "${python_has_threads}" >&6; }
8508 CPPFLAGS
="${saved_CPPFLAGS}"
8510 # Even if Python support is not compiled in, we need to have these files
8512 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
8513 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c \
8514 python/py-prettyprint.c python/py-auto-load.c"
8520 # Provide a --enable-libmcheck/--disable-libmcheck set of options
8521 # allowing a user to enable this option even when building releases,
8522 # or to disable it when building a snapshot.
8523 # Check whether --enable-libmcheck was given.
8524 if test "${enable_libmcheck+set}" = set; then :
8525 enableval
=$enable_libmcheck; case "${enableval}" in
8526 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
8527 no | n
) ENABLE_LIBMCHECK
="no" ;;
8528 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
8533 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
8534 # but turn it off if Python is enabled with threads, since -lmcheck is
8535 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
8537 if test -z "${ENABLE_LIBMCHECK}" \
8538 -a \
( "${have_libpython}" = "no" \
8539 -o "${python_has_threads}" = "no" \
) \
8540 && $development; then
8541 ENABLE_LIBMCHECK
=yes
8544 if test "$ENABLE_LIBMCHECK" = "yes" ; then
8545 if test "${have_libpython}" != "no" -a "${python_has_threads}" = "yes" ; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
8547 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
8550 $as_echo_n "checking for main in -lmcheck... " >&6; }
8551 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
8552 $as_echo_n "(cached) " >&6
8554 ac_check_lib_save_LIBS
=$LIBS
8555 LIBS
="-lmcheck $LIBS"
8556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8557 /* end confdefs.h. */
8568 if ac_fn_c_try_link
"$LINENO"; then :
8569 ac_cv_lib_mcheck_main
=yes
8571 ac_cv_lib_mcheck_main
=no
8573 rm -f core conftest.err conftest.
$ac_objext \
8574 conftest
$ac_exeext conftest.
$ac_ext
8575 LIBS
=$ac_check_lib_save_LIBS
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
8578 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
8579 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
8580 cat >>confdefs.h
<<_ACEOF
8581 #define HAVE_LIBMCHECK 1
8584 LIBS
="-lmcheck $LIBS"
8590 # ------------------------- #
8591 # Checks for header files. #
8592 # ------------------------- #
8595 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
8596 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8598 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8599 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8600 $as_echo_n "(cached) " >&6
8602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8604 #include <sys/types.h>
8616 if ac_fn_c_try_compile
"$LINENO"; then :
8617 eval "$as_ac_Header=yes"
8619 eval "$as_ac_Header=no"
8621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8623 eval ac_res
=\$
$as_ac_Header
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8625 $as_echo "$ac_res" >&6; }
8626 eval as_val
=\$
$as_ac_Header
8627 if test "x$as_val" = x
""yes; then :
8628 cat >>confdefs.h
<<_ACEOF
8629 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8632 ac_header_dirent
=$ac_hdr; break
8636 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8637 if test $ac_header_dirent = dirent.h
; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8639 $as_echo_n "checking for library containing opendir... " >&6; }
8640 if test "${ac_cv_search_opendir+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8643 ac_func_search_save_LIBS
=$LIBS
8644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8645 /* end confdefs.h. */
8647 /* Override any GCC internal prototype to avoid an error.
8648 Use char because int might match the return type of a GCC
8649 builtin and then its argument prototype would still apply. */
8662 for ac_lib
in '' dir
; do
8663 if test -z "$ac_lib"; then
8664 ac_res
="none required"
8667 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8669 if ac_fn_c_try_link
"$LINENO"; then :
8670 ac_cv_search_opendir
=$ac_res
8672 rm -f core conftest.err conftest.
$ac_objext \
8674 if test "${ac_cv_search_opendir+set}" = set; then :
8678 if test "${ac_cv_search_opendir+set}" = set; then :
8681 ac_cv_search_opendir
=no
8684 LIBS
=$ac_func_search_save_LIBS
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8687 $as_echo "$ac_cv_search_opendir" >&6; }
8688 ac_res
=$ac_cv_search_opendir
8689 if test "$ac_res" != no
; then :
8690 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8696 $as_echo_n "checking for library containing opendir... " >&6; }
8697 if test "${ac_cv_search_opendir+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
8700 ac_func_search_save_LIBS
=$LIBS
8701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8704 /* Override any GCC internal prototype to avoid an error.
8705 Use char because int might match the return type of a GCC
8706 builtin and then its argument prototype would still apply. */
8719 for ac_lib
in '' x
; do
8720 if test -z "$ac_lib"; then
8721 ac_res
="none required"
8724 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8726 if ac_fn_c_try_link
"$LINENO"; then :
8727 ac_cv_search_opendir
=$ac_res
8729 rm -f core conftest.err conftest.
$ac_objext \
8731 if test "${ac_cv_search_opendir+set}" = set; then :
8735 if test "${ac_cv_search_opendir+set}" = set; then :
8738 ac_cv_search_opendir
=no
8741 LIBS
=$ac_func_search_save_LIBS
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8744 $as_echo "$ac_cv_search_opendir" >&6; }
8745 ac_res
=$ac_cv_search_opendir
8746 if test "$ac_res" != no
; then :
8747 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8754 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8755 if test "${ac_cv_header_stat_broken+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8760 #include <sys/types.h>
8761 #include <sys/stat.h>
8763 #if defined S_ISBLK && defined S_IFDIR
8764 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8767 #if defined S_ISBLK && defined S_IFCHR
8768 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8771 #if defined S_ISLNK && defined S_IFREG
8772 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8775 #if defined S_ISSOCK && defined S_IFREG
8776 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8780 if ac_fn_c_try_compile
"$LINENO"; then :
8781 ac_cv_header_stat_broken
=no
8783 ac_cv_header_stat_broken
=yes
8785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8788 $as_echo "$ac_cv_header_stat_broken" >&6; }
8789 if test $ac_cv_header_stat_broken = yes; then
8791 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8796 $as_echo_n "checking for ANSI C header files... " >&6; }
8797 if test "${ac_cv_header_stdc+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
8800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8815 if ac_fn_c_try_compile
"$LINENO"; then :
8816 ac_cv_header_stdc
=yes
8818 ac_cv_header_stdc
=no
8820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8822 if test $ac_cv_header_stdc = yes; then
8823 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8830 $EGREP "memchr" >/dev
/null
2>&1; then :
8833 ac_cv_header_stdc
=no
8839 if test $ac_cv_header_stdc = yes; then
8840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8847 $EGREP "free" >/dev
/null
2>&1; then :
8850 ac_cv_header_stdc
=no
8856 if test $ac_cv_header_stdc = yes; then
8857 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8858 if test "$cross_compiling" = yes; then :
8861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8865 #if ((' ' & 0x0FF) == 0x020)
8866 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8867 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8869 # define ISLOWER(c) \
8870 (('a' <= (c) && (c) <= 'i') \
8871 || ('j' <= (c) && (c) <= 'r') \
8872 || ('s' <= (c) && (c) <= 'z'))
8873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8881 for (i = 0; i < 256; i++)
8882 if (XOR (islower (i), ISLOWER (i))
8883 || toupper (i) != TOUPPER (i))
8888 if ac_fn_c_try_run
"$LINENO"; then :
8891 ac_cv_header_stdc
=no
8893 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8894 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8900 $as_echo "$ac_cv_header_stdc" >&6; }
8901 if test $ac_cv_header_stdc = yes; then
8903 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8907 # elf_hp.h is for HP/UX 64-bit shared library support.
8908 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
8909 # unconditionally, so what's the point in checking these?
8910 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
8911 thread_db.h signal.h stddef.h \
8912 stdlib.h string.h memory.h
strings.h sys
/fault.h \
8913 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
8914 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
8915 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
8916 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
8917 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h \
8918 dlfcn.h sys
/socket.h sys
/un.h
8920 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8921 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8922 eval as_val
=\$
$as_ac_Header
8923 if test "x$as_val" = x
""yes; then :
8924 cat >>confdefs.h
<<_ACEOF
8925 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8932 for ac_header
in link.h
8934 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
8935 # include <sys/types.h>
8942 if test "x$ac_cv_header_link_h" = x
""yes; then :
8943 cat >>confdefs.h
<<_ACEOF
8944 #define HAVE_LINK_H 1
8951 for ac_header
in sys
/proc.h
8953 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
8954 # include <sys/param.h>
8958 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
8959 cat >>confdefs.h
<<_ACEOF
8960 #define HAVE_SYS_PROC_H 1
8967 for ac_header
in sys
/user.h
8969 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
8970 # include <sys/param.h>
8974 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
8975 cat >>confdefs.h
<<_ACEOF
8976 #define HAVE_SYS_USER_H 1
8984 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
8985 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
8986 # think that we don't have <curses.h> if we're using GCC.
8989 if test "$GCC" = yes; then
8991 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
8995 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
8997 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8998 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8999 eval as_val
=\$
$as_ac_Header
9000 if test "x$as_val" = x
""yes; then :
9001 cat >>confdefs.h
<<_ACEOF
9002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9009 for ac_header
in term.h
9011 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
9012 # include <curses.h>
9016 if test "x$ac_cv_header_term_h" = x
""yes; then :
9017 cat >>confdefs.h
<<_ACEOF
9018 #define HAVE_TERM_H 1
9026 # ------------------------- #
9027 # Checks for declarations. #
9028 # ------------------------- #
9030 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
9031 if test "x$ac_cv_have_decl_free" = x
""yes; then :
9037 cat >>confdefs.h
<<_ACEOF
9038 #define HAVE_DECL_FREE $ac_have_decl
9040 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
9041 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
9047 cat >>confdefs.h
<<_ACEOF
9048 #define HAVE_DECL_MALLOC $ac_have_decl
9050 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
9051 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
9057 cat >>confdefs.h
<<_ACEOF
9058 #define HAVE_DECL_REALLOC $ac_have_decl
9060 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
9061 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
9067 cat >>confdefs.h
<<_ACEOF
9068 #define HAVE_DECL_STRERROR $ac_have_decl
9070 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
9071 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
9077 cat >>confdefs.h
<<_ACEOF
9078 #define HAVE_DECL_STRSTR $ac_have_decl
9080 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
9081 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
9087 cat >>confdefs.h
<<_ACEOF
9088 #define HAVE_DECL_GETOPT $ac_have_decl
9090 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9091 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
9097 cat >>confdefs.h
<<_ACEOF
9098 #define HAVE_DECL_SNPRINTF $ac_have_decl
9100 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9101 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
9107 cat >>confdefs.h
<<_ACEOF
9108 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9113 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9114 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
9117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9128 if ac_fn_c_try_link
"$LINENO"; then :
9129 am_cv_val_LC_MESSAGES
=yes
9131 am_cv_val_LC_MESSAGES
=no
9133 rm -f core conftest.err conftest.
$ac_objext \
9134 conftest
$ac_exeext conftest.
$ac_ext
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9137 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9138 if test $am_cv_val_LC_MESSAGES = yes; then
9140 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9145 # ----------------------- #
9146 # Checks for structures. #
9147 # ----------------------- #
9149 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9150 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
9152 cat >>confdefs.h
<<_ACEOF
9153 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9158 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9159 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
9161 cat >>confdefs.h
<<_ACEOF
9162 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9169 # ------------------ #
9170 # Checks for types. #
9171 # ------------------ #
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9174 $as_echo_n "checking return type of signal handlers... " >&6; }
9175 if test "${ac_cv_type_signal+set}" = set; then :
9176 $as_echo_n "(cached) " >&6
9178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9180 #include <sys/types.h>
9186 return *(signal (0, 0)) (0) == 1;
9191 if ac_fn_c_try_compile
"$LINENO"; then :
9192 ac_cv_type_signal
=int
9194 ac_cv_type_signal
=void
9196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9199 $as_echo "$ac_cv_type_signal" >&6; }
9201 cat >>confdefs.h
<<_ACEOF
9202 #define RETSIGTYPE $ac_cv_type_signal
9206 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9207 #include <sys/socket.h>
9210 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
9212 cat >>confdefs.h
<<_ACEOF
9213 #define HAVE_SOCKLEN_T 1
9220 # ------------------------------------- #
9221 # Checks for compiler characteristics. #
9222 # ------------------------------------- #
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9225 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9226 if test "${ac_cv_c_const+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
9229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9235 /* FIXME: Include the comments suggested by Paul. */
9237 /* Ultrix mips cc rejects this. */
9238 typedef int charset[2];
9240 /* SunOS 4.1.1 cc rejects this. */
9241 char const *const *pcpcc;
9243 /* NEC SVR4.0.2 mips cc rejects this. */
9244 struct point {int x, y;};
9245 static struct point const zero = {0,0};
9246 /* AIX XL C 1.02.0.0 rejects this.
9247 It does not let you subtract one const X* pointer from another in
9248 an arm of an if-expression whose if-part is not a constant
9250 const char *g = "string";
9251 pcpcc = &g + (g ? g-g : 0);
9252 /* HPUX 7.0 cc rejects these. */
9254 ppc = (char**) pcpcc;
9255 pcpcc = (char const *const *) ppc;
9256 { /* SCO 3.2v4 cc rejects this. */
9258 char const *s = 0 ? (char *) 0 : (char const *) 0;
9263 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9265 const int *foo = &x[0];
9268 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9269 typedef const int *iptr;
9273 { /* AIX XL C 1.02.0.0 rejects this saying
9274 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9275 struct s { int j; const int *ap[3]; };
9276 struct s *b; b->j = 5;
9278 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9282 return !cs[0] && !zero.x;
9289 if ac_fn_c_try_compile
"$LINENO"; then :
9294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9297 $as_echo "$ac_cv_c_const" >&6; }
9298 if test $ac_cv_c_const = no
; then
9300 $as_echo "#define const /**/" >>confdefs.h
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9305 $as_echo_n "checking for inline... " >&6; }
9306 if test "${ac_cv_c_inline+set}" = set; then :
9307 $as_echo_n "(cached) " >&6
9310 for ac_kw
in inline __inline__ __inline
; do
9311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h. */
9315 static $ac_kw foo_t static_foo () {return 0; }
9316 $ac_kw foo_t foo () {return 0; }
9320 if ac_fn_c_try_compile
"$LINENO"; then :
9321 ac_cv_c_inline
=$ac_kw
9323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9324 test "$ac_cv_c_inline" != no
&& break
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9329 $as_echo "$ac_cv_c_inline" >&6; }
9331 case $ac_cv_c_inline in
9334 case $ac_cv_c_inline in
9336 *) ac_val
=$ac_cv_c_inline;;
9338 cat >>confdefs.h
<<_ACEOF
9340 #define inline $ac_val
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9347 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9348 if test "${ac_cv_c_bigendian+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9351 ac_cv_c_bigendian
=unknown
9352 # See if we're dealing with a universal compiler.
9353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9355 #ifndef __APPLE_CC__
9356 not a universal capable compiler
9361 if ac_fn_c_try_compile
"$LINENO"; then :
9363 # Check for potential -arch flags. It is not universal unless
9364 # there are at least two -arch flags with different values.
9367 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9368 if test -n "$ac_prev"; then
9370 i?
86 | x86_64 | ppc | ppc64
)
9371 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9374 ac_cv_c_bigendian
=universal
9380 elif test "x$ac_word" = "x-arch"; then
9385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9386 if test $ac_cv_c_bigendian = unknown
; then
9387 # See if sys/param.h defines the BYTE_ORDER macro.
9388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390 #include <sys/types.h>
9391 #include <sys/param.h>
9396 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9397 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9406 if ac_fn_c_try_compile
"$LINENO"; then :
9407 # It does; now see whether it defined to BIG_ENDIAN or not.
9408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410 #include <sys/types.h>
9411 #include <sys/param.h>
9416 #if BYTE_ORDER != BIG_ENDIAN
9424 if ac_fn_c_try_compile
"$LINENO"; then :
9425 ac_cv_c_bigendian
=yes
9427 ac_cv_c_bigendian
=no
9429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9433 if test $ac_cv_c_bigendian = unknown
; then
9434 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9442 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9450 if ac_fn_c_try_compile
"$LINENO"; then :
9451 # It does; now see whether it defined to _BIG_ENDIAN or not.
9452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9467 if ac_fn_c_try_compile
"$LINENO"; then :
9468 ac_cv_c_bigendian
=yes
9470 ac_cv_c_bigendian
=no
9472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9476 if test $ac_cv_c_bigendian = unknown
; then
9477 # Compile a test program.
9478 if test "$cross_compiling" = yes; then :
9479 # Try to guess by grepping values from an object file.
9480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482 short int ascii_mm[] =
9483 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9484 short int ascii_ii[] =
9485 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9486 int use_ascii (int i) {
9487 return ascii_mm[i] + ascii_ii[i];
9489 short int ebcdic_ii[] =
9490 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9491 short int ebcdic_mm[] =
9492 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9493 int use_ebcdic (int i) {
9494 return ebcdic_mm[i] + ebcdic_ii[i];
9501 return use_ascii (foo) == use_ebcdic (foo);
9506 if ac_fn_c_try_compile
"$LINENO"; then :
9507 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9508 ac_cv_c_bigendian
=yes
9510 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9511 if test "$ac_cv_c_bigendian" = unknown
; then
9512 ac_cv_c_bigendian
=no
9514 # finding both strings is unlikely to happen, but who knows?
9515 ac_cv_c_bigendian
=unknown
9519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9523 $ac_includes_default
9528 /* Are we little or big endian? From Harbison&Steele. */
9532 char c[sizeof (long int)];
9535 return u.c[sizeof (long int) - 1] == 1;
9541 if ac_fn_c_try_run
"$LINENO"; then :
9542 ac_cv_c_bigendian
=no
9544 ac_cv_c_bigendian
=yes
9546 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9547 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9553 $as_echo "$ac_cv_c_bigendian" >&6; }
9554 case $ac_cv_c_bigendian in #(
9556 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9562 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9566 as_fn_error
"unknown endianness
9567 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9571 # ------------------------------ #
9572 # Checks for library functions. #
9573 # ------------------------------ #
9575 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9576 # for constant arguments. Useless!
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9578 $as_echo_n "checking for working alloca.h... " >&6; }
9579 if test "${ac_cv_working_alloca_h+set}" = set; then :
9580 $as_echo_n "(cached) " >&6
9582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9588 char *p = (char *) alloca (2 * sizeof (int));
9594 if ac_fn_c_try_link
"$LINENO"; then :
9595 ac_cv_working_alloca_h
=yes
9597 ac_cv_working_alloca_h
=no
9599 rm -f core conftest.err conftest.
$ac_objext \
9600 conftest
$ac_exeext conftest.
$ac_ext
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9603 $as_echo "$ac_cv_working_alloca_h" >&6; }
9604 if test $ac_cv_working_alloca_h = yes; then
9606 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9611 $as_echo_n "checking for alloca... " >&6; }
9612 if test "${ac_cv_func_alloca_works+set}" = set; then :
9613 $as_echo_n "(cached) " >&6
9615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9618 # define alloca __builtin_alloca
9621 # include <malloc.h>
9622 # define alloca _alloca
9624 # ifdef HAVE_ALLOCA_H
9625 # include <alloca.h>
9630 # ifndef alloca /* predefined by HP cc +Olibcalls */
9641 char *p = (char *) alloca (1);
9647 if ac_fn_c_try_link
"$LINENO"; then :
9648 ac_cv_func_alloca_works
=yes
9650 ac_cv_func_alloca_works
=no
9652 rm -f core conftest.err conftest.
$ac_objext \
9653 conftest
$ac_exeext conftest.
$ac_ext
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9656 $as_echo "$ac_cv_func_alloca_works" >&6; }
9658 if test $ac_cv_func_alloca_works = yes; then
9660 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9663 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9664 # that cause trouble. Some versions do not even contain alloca or
9665 # contain a buggy version. If you still want to use their alloca,
9666 # use ar to extract alloca.o from them instead of compiling alloca.c.
9668 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
9670 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9674 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9675 if test "${ac_cv_os_cray+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
9678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9680 #if defined CRAY && ! defined CRAY2
9687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9688 $EGREP "webecray" >/dev
/null
2>&1; then :
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9697 $as_echo "$ac_cv_os_cray" >&6; }
9698 if test $ac_cv_os_cray = yes; then
9699 for ac_func
in _getb67 GETB67 getb67
; do
9700 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9701 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9702 eval as_val
=\$
$as_ac_var
9703 if test "x$as_val" = x
""yes; then :
9705 cat >>confdefs.h
<<_ACEOF
9706 #define CRAY_STACKSEG_END $ac_func
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9716 $as_echo_n "checking stack direction for C alloca... " >&6; }
9717 if test "${ac_cv_c_stack_direction+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
9720 if test "$cross_compiling" = yes; then :
9721 ac_cv_c_stack_direction
=0
9723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9725 $ac_includes_default
9727 find_stack_direction ()
9729 static char *addr = 0;
9734 return find_stack_direction ();
9737 return (&dummy > addr) ? 1 : -1;
9743 return find_stack_direction () < 0;
9746 if ac_fn_c_try_run
"$LINENO"; then :
9747 ac_cv_c_stack_direction
=1
9749 ac_cv_c_stack_direction
=-1
9751 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9752 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9757 $as_echo "$ac_cv_c_stack_direction" >&6; }
9758 cat >>confdefs.h
<<_ACEOF
9759 #define STACK_DIRECTION $ac_cv_c_stack_direction
9765 for ac_header
in stdlib.h unistd.h
9767 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9768 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9769 eval as_val
=\$
$as_ac_Header
9770 if test "x$as_val" = x
""yes; then :
9771 cat >>confdefs.h
<<_ACEOF
9772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9779 for ac_func
in getpagesize
9781 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9782 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9783 cat >>confdefs.h
<<_ACEOF
9784 #define HAVE_GETPAGESIZE 1
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9791 $as_echo_n "checking for working mmap... " >&6; }
9792 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9793 $as_echo_n "(cached) " >&6
9795 if test "$cross_compiling" = yes; then :
9796 ac_cv_func_mmap_fixed_mapped
=no
9798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9800 $ac_includes_default
9801 /* malloc might have been renamed as rpl_malloc. */
9804 /* Thanks to Mike Haertel and Jim Avera for this test.
9805 Here is a matrix of mmap possibilities:
9806 mmap private not fixed
9807 mmap private fixed at somewhere currently unmapped
9808 mmap private fixed at somewhere already mapped
9809 mmap shared not fixed
9810 mmap shared fixed at somewhere currently unmapped
9811 mmap shared fixed at somewhere already mapped
9812 For private mappings, we should verify that changes cannot be read()
9813 back from the file, nor mmap's back from the file at a different
9814 address. (There have been systems where private was not correctly
9815 implemented like the infamous i386 svr4.0, and systems where the
9816 VM page cache was not coherent with the file system buffer cache
9817 like early versions of FreeBSD and possibly contemporary NetBSD.)
9818 For shared mappings, we should conversely verify that changes get
9819 propagated back to all the places they're supposed to be.
9821 Grep wants private fixed already mapped.
9822 The main things grep needs to know about mmap are:
9823 * does it exist and is it safe to write into the mmap'd area
9824 * how to use it (BSD variants) */
9827 #include <sys/mman.h>
9829 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9833 /* This mess was copied from the GNU getpagesize.h. */
9834 #ifndef HAVE_GETPAGESIZE
9835 /* Assume that all systems that can run configure have sys/param.h. */
9836 # ifndef HAVE_SYS_PARAM_H
9837 # define HAVE_SYS_PARAM_H 1
9840 # ifdef _SC_PAGESIZE
9841 # define getpagesize() sysconf(_SC_PAGESIZE)
9842 # else /* no _SC_PAGESIZE */
9843 # ifdef HAVE_SYS_PARAM_H
9844 # include <sys/param.h>
9845 # ifdef EXEC_PAGESIZE
9846 # define getpagesize() EXEC_PAGESIZE
9847 # else /* no EXEC_PAGESIZE */
9849 # define getpagesize() NBPG * CLSIZE
9852 # endif /* no CLSIZE */
9853 # else /* no NBPG */
9855 # define getpagesize() NBPC
9856 # else /* no NBPC */
9858 # define getpagesize() PAGESIZE
9859 # endif /* PAGESIZE */
9860 # endif /* no NBPC */
9861 # endif /* no NBPG */
9862 # endif /* no EXEC_PAGESIZE */
9863 # else /* no HAVE_SYS_PARAM_H */
9864 # define getpagesize() 8192 /* punt totally */
9865 # endif /* no HAVE_SYS_PARAM_H */
9866 # endif /* no _SC_PAGESIZE */
9868 #endif /* no HAVE_GETPAGESIZE */
9873 char *data, *data2, *data3;
9877 pagesize = getpagesize ();
9879 /* First, make a file with some known garbage in it. */
9880 data = (char *) malloc (pagesize);
9883 for (i = 0; i < pagesize; ++i)
9884 *(data + i) = rand ();
9886 fd = creat ("conftest.mmap", 0600);
9889 if (write (fd, data, pagesize) != pagesize)
9893 /* Next, try to mmap the file at a fixed address which already has
9894 something else allocated at it. If we can, also make sure that
9895 we see the same garbage. */
9896 fd = open ("conftest.mmap", O_RDWR);
9899 data2 = (char *) malloc (2 * pagesize);
9902 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9903 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9904 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9906 for (i = 0; i < pagesize; ++i)
9907 if (*(data + i) != *(data2 + i))
9910 /* Finally, make sure that changes to the mapped area do not
9911 percolate back to the file as seen by read(). (This is a bug on
9912 some variants of i386 svr4.0.) */
9913 for (i = 0; i < pagesize; ++i)
9914 *(data2 + i) = *(data2 + i) + 1;
9915 data3 = (char *) malloc (pagesize);
9918 if (read (fd, data3, pagesize) != pagesize)
9920 for (i = 0; i < pagesize; ++i)
9921 if (*(data + i) != *(data3 + i))
9927 if ac_fn_c_try_run
"$LINENO"; then :
9928 ac_cv_func_mmap_fixed_mapped
=yes
9930 ac_cv_func_mmap_fixed_mapped
=no
9932 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9933 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9938 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9939 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9941 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9946 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9947 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9951 cat >>confdefs.h
<<_ACEOF
9957 for ac_header
in vfork.h
9959 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9960 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9961 cat >>confdefs.h
<<_ACEOF
9962 #define HAVE_VFORK_H 1
9969 for ac_func
in fork vfork
9971 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9972 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9973 eval as_val
=\$
$as_ac_var
9974 if test "x$as_val" = x
""yes; then :
9975 cat >>confdefs.h
<<_ACEOF
9976 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9982 if test "x$ac_cv_func_fork" = xyes
; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9984 $as_echo_n "checking for working fork... " >&6; }
9985 if test "${ac_cv_func_fork_works+set}" = set; then :
9986 $as_echo_n "(cached) " >&6
9988 if test "$cross_compiling" = yes; then :
9989 ac_cv_func_fork_works
=cross
9991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9993 $ac_includes_default
9998 /* By Ruediger Kuhlmann. */
10005 if ac_fn_c_try_run
"$LINENO"; then :
10006 ac_cv_func_fork_works
=yes
10008 ac_cv_func_fork_works
=no
10010 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10011 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10016 $as_echo "$ac_cv_func_fork_works" >&6; }
10019 ac_cv_func_fork_works
=$ac_cv_func_fork
10021 if test "x$ac_cv_func_fork_works" = xcross
; then
10023 *-*-amigaos* |
*-*-msdosdjgpp*)
10024 # Override, as these systems have only a dummy fork() stub
10025 ac_cv_func_fork_works
=no
10028 ac_cv_func_fork_works
=yes
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10032 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10034 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10035 if test "x$ac_cv_func_vfork" = xyes
; then
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10037 $as_echo_n "checking for working vfork... " >&6; }
10038 if test "${ac_cv_func_vfork_works+set}" = set; then :
10039 $as_echo_n "(cached) " >&6
10041 if test "$cross_compiling" = yes; then :
10042 ac_cv_func_vfork_works
=cross
10044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10046 /* Thanks to Paul Eggert for this test. */
10047 $ac_includes_default
10048 #include <sys/wait.h>
10049 #ifdef HAVE_VFORK_H
10050 # include <vfork.h>
10052 /* On some sparc systems, changes by the child to local and incoming
10053 argument registers are propagated back to the parent. The compiler
10054 is told about this with #include <vfork.h>, but some compilers
10055 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10056 static variable whose address is put into a register that is
10057 clobbered by the vfork. */
10060 sparc_address_test (int arg)
10062 sparc_address_test (arg) int arg;
10065 static pid_t child;
10083 pid_t parent = getpid ();
10086 sparc_address_test (0);
10091 /* Here is another test for sparc vfork register problems. This
10092 test uses lots of local variables, at least as many local
10093 variables as main has allocated so far including compiler
10094 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10095 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10096 reuse the register of parent for one of the local variables,
10097 since it will think that parent can't possibly be used any more
10098 in this routine. Assigning to the local variable will thus
10099 munge parent in the parent process. */
10101 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10102 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10103 /* Convince the compiler that p..p7 are live; otherwise, it might
10104 use the same hardware register for all 8 local variables. */
10105 if (p != p1 || p != p2 || p != p3 || p != p4
10106 || p != p5 || p != p6 || p != p7)
10109 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10110 from child file descriptors. If the child closes a descriptor
10111 before it execs or exits, this munges the parent's descriptor
10112 as well. Test for this by closing stdout in the child. */
10113 _exit(close(fileno(stdout)) != 0);
10118 while (wait(&status) != child)
10121 /* Was there some problem with vforking? */
10124 /* Did the child fail? (This shouldn't happen.) */
10127 /* Did the vfork/compiler bug occur? */
10128 || parent != getpid()
10130 /* Did the file descriptor bug occur? */
10131 || fstat(fileno(stdout), &st) != 0
10136 if ac_fn_c_try_run
"$LINENO"; then :
10137 ac_cv_func_vfork_works
=yes
10139 ac_cv_func_vfork_works
=no
10141 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10142 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10147 $as_echo "$ac_cv_func_vfork_works" >&6; }
10150 if test "x$ac_cv_func_fork_works" = xcross
; then
10151 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10153 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10156 if test "x$ac_cv_func_vfork_works" = xyes
; then
10158 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10162 $as_echo "#define vfork fork" >>confdefs.h
10165 if test "x$ac_cv_func_fork_works" = xyes
; then
10167 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10171 for ac_func
in canonicalize_file_name realpath getrusage getuid getgid \
10172 pipe poll pread pread64 pwrite readlink resize_term \
10173 sbrk setpgid setpgrp setsid \
10174 sigaction sigprocmask sigsetmask socketpair syscall \
10175 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10176 setrlimit getrlimit posix_madvise waitpid lstat
10178 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10179 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10180 eval as_val
=\$
$as_ac_var
10181 if test "x$as_val" = x
""yes; then :
10182 cat >>confdefs.h
<<_ACEOF
10183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10191 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10192 if test "${am_cv_langinfo_codeset+set}" = set; then :
10193 $as_echo_n "(cached) " >&6
10195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10197 #include <langinfo.h>
10201 char* cs = nl_langinfo(CODESET);
10206 if ac_fn_c_try_link
"$LINENO"; then :
10207 am_cv_langinfo_codeset
=yes
10209 am_cv_langinfo_codeset
=no
10211 rm -f core conftest.err conftest.
$ac_objext \
10212 conftest
$ac_exeext conftest.
$ac_ext
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10216 $as_echo "$am_cv_langinfo_codeset" >&6; }
10217 if test $am_cv_langinfo_codeset = yes; then
10219 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10224 # Check the return and argument types of ptrace. No canned test for
10225 # this, so roll our own.
10226 gdb_ptrace_headers
='
10227 #if HAVE_SYS_TYPES_H
10228 # include <sys/types.h>
10230 #if HAVE_SYS_PTRACE_H
10231 # include <sys/ptrace.h>
10234 # include <unistd.h>
10237 # There is no point in checking if we don't have a prototype.
10238 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10240 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
10246 cat >>confdefs.h
<<_ACEOF
10247 #define HAVE_DECL_PTRACE $ac_have_decl
10249 if test $ac_have_decl = 1; then :
10253 : ${gdb_cv_func_ptrace_ret='int'}
10254 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10258 # Check return type. Varargs (used on GNU/Linux) conflict with the
10259 # empty argument list, so check for that explicitly.
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10261 $as_echo_n "checking return type of ptrace... " >&6; }
10262 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
10263 $as_echo_n "(cached) " >&6
10265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10267 $gdb_ptrace_headers
10271 extern long ptrace (enum __ptrace_request, ...);
10276 if ac_fn_c_try_compile
"$LINENO"; then :
10277 gdb_cv_func_ptrace_ret
='long'
10279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10281 $gdb_ptrace_headers
10285 extern int ptrace ();
10290 if ac_fn_c_try_compile
"$LINENO"; then :
10291 gdb_cv_func_ptrace_ret
='int'
10293 gdb_cv_func_ptrace_ret
='long'
10295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10300 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10302 cat >>confdefs.h
<<_ACEOF
10303 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10306 # Check argument types.
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10308 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10309 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
10310 $as_echo_n "(cached) " >&6
10313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10314 /* end confdefs.h. */
10315 $gdb_ptrace_headers
10319 extern long ptrace (enum __ptrace_request, ...);
10324 if ac_fn_c_try_compile
"$LINENO"; then :
10325 gdb_cv_func_ptrace_args
='int,int,long,long'
10328 for gdb_arg1
in 'int' 'long'; do
10329 for gdb_arg2
in 'pid_t' 'int' 'long'; do
10330 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10331 for gdb_arg4
in 'int' 'long'; do
10332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10333 /* end confdefs.h. */
10334 $gdb_ptrace_headers
10339 extern $gdb_cv_func_ptrace_ret
10340 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10346 if ac_fn_c_try_compile
"$LINENO"; then :
10347 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10351 for gdb_arg5
in 'int *' 'int' 'long'; do
10352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h. */
10354 $gdb_ptrace_headers
10359 extern $gdb_cv_func_ptrace_ret
10360 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10366 if ac_fn_c_try_compile
"$LINENO"; then :
10368 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10377 # Provide a safe default value.
10378 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10384 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10385 ac_save_IFS
=$IFS; IFS
=','
10386 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10390 cat >>confdefs.h
<<_ACEOF
10391 #define PTRACE_TYPE_ARG3 $3
10394 if test -n "$5"; then
10396 cat >>confdefs.h
<<_ACEOF
10397 #define PTRACE_TYPE_ARG5 $5
10402 if test "$cross_compiling" = no
; then
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10404 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10405 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
10408 if test "$cross_compiling" = yes; then :
10409 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
10411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10413 $ac_includes_default
10417 /* If this system has a BSD-style setpgrp which takes arguments,
10418 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
10419 exit successfully. */
10420 return setpgrp (1,1) != -1;
10425 if ac_fn_c_try_run
"$LINENO"; then :
10426 ac_cv_func_setpgrp_void
=no
10428 ac_cv_func_setpgrp_void
=yes
10430 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10431 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10436 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10437 if test $ac_cv_func_setpgrp_void = yes; then
10439 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10445 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10446 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10447 $as_echo_n "(cached) " >&6
10449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10452 #include <unistd.h>
10458 if (setpgrp(1,1) == -1)
10467 if ac_fn_c_try_compile
"$LINENO"; then :
10468 ac_cv_func_setpgrp_void
=no
10470 ac_cv_func_setpgrp_void
=yes
10472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10475 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10476 if test $ac_cv_func_setpgrp_void = yes; then
10477 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10482 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
10483 # since sigsetjmp might only be defined as a macro.
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
10485 $as_echo_n "checking for sigsetjmp... " >&6; }
10486 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
10487 $as_echo_n "(cached) " >&6
10489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10492 #include <setjmp.h>
10497 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
10502 if ac_fn_c_try_compile
"$LINENO"; then :
10503 gdb_cv_func_sigsetjmp
=yes
10505 gdb_cv_func_sigsetjmp
=no
10507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
10510 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
10511 if test $gdb_cv_func_sigsetjmp = yes; then
10513 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
10517 # Assume we'll default to using the included libiberty regex.
10518 gdb_use_included_regex
=yes
10520 # However, if the system regex is GNU regex, then default to *not*
10521 # using the included regex.
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
10523 $as_echo_n "checking for GNU regex... " >&6; }
10524 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
10527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10529 #include <gnu-versions.h>
10533 #define REGEX_INTERFACE_VERSION 1
10534 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
10535 # error "Version mismatch"
10541 if ac_fn_c_try_compile
"$LINENO"; then :
10542 gdb_cv_have_gnu_regex
=yes
10544 gdb_cv_have_gnu_regex
=no
10546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
10549 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
10550 if test $gdb_cv_have_gnu_regex = yes; then
10551 gdb_use_included_regex
=no
10555 # Check whether --with-included-regex was given.
10556 if test "${with_included_regex+set}" = set; then :
10557 withval
=$with_included_regex; gdb_with_regex
=$withval
10559 gdb_with_regex
=$gdb_use_included_regex
10562 if test "$gdb_with_regex" = yes; then
10564 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
10568 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
10569 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
10570 #include <sys/proc.h>
10573 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
10575 cat >>confdefs.h
<<_ACEOF
10576 #define HAVE_STRUCT_THREAD_TD_PCB 1
10583 # See if <sys/lwp.h> defines `struct lwp`.
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
10585 $as_echo_n "checking for struct lwp... " >&6; }
10586 if test "${gdb_cv_struct_lwp+set}" = set; then :
10587 $as_echo_n "(cached) " >&6
10589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10591 #include <sys/param.h>
10592 #include <sys/lwp.h>
10601 if ac_fn_c_try_compile
"$LINENO"; then :
10602 gdb_cv_struct_lwp
=yes
10604 gdb_cv_struct_lwp
=no
10606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
10609 $as_echo "$gdb_cv_struct_lwp" >&6; }
10610 if test $gdb_cv_struct_lwp = yes; then
10612 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
10616 # See if <machine/reg.h> degines `struct reg'.
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
10618 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
10619 if test "${gdb_cv_struct_reg+set}" = set; then :
10620 $as_echo_n "(cached) " >&6
10622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10624 #include <sys/types.h>
10625 #include <machine/reg.h>
10634 if ac_fn_c_try_compile
"$LINENO"; then :
10635 gdb_cv_struct_reg
=yes
10637 gdb_cv_struct_reg
=no
10639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
10642 $as_echo "$gdb_cv_struct_reg" >&6; }
10643 if test $gdb_cv_struct_reg = yes; then
10645 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
10649 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
10650 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
10651 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
10653 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
10655 cat >>confdefs.h
<<_ACEOF
10656 #define HAVE_STRUCT_REG_R_FS 1
10661 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
10663 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
10665 cat >>confdefs.h
<<_ACEOF
10666 #define HAVE_STRUCT_REG_R_GS 1
10673 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
10674 # Older amd64 Linux's don't have the fs_base and gs_base members of
10675 # `struct user_regs_struct'.
10676 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/user.h>
10678 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x
""yes; then :
10680 cat >>confdefs.h
<<_ACEOF
10681 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
10686 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/user.h>
10688 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x
""yes; then :
10690 cat >>confdefs.h
<<_ACEOF
10691 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
10698 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10700 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10701 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
10702 $as_echo_n "(cached) " >&6
10704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10706 #include <sys/ptrace.h>
10715 if ac_fn_c_try_compile
"$LINENO"; then :
10716 gdb_cv_have_ptrace_getregs
=yes
10718 gdb_cv_have_ptrace_getregs
=no
10720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
10724 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
10725 if test $gdb_cv_have_ptrace_getregs = yes; then
10727 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10731 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10733 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10734 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
10735 $as_echo_n "(cached) " >&6
10737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739 #include <sys/ptrace.h>
10748 if ac_fn_c_try_compile
"$LINENO"; then :
10749 gdb_cv_have_ptrace_getfpxregs
=yes
10751 gdb_cv_have_ptrace_getfpxregs
=no
10753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
10757 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
10758 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
10760 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10764 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
10766 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
10767 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
10768 $as_echo_n "(cached) " >&6
10770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10772 #include <sys/types.h>
10773 #include <sys/ptrace.h>
10782 if ac_fn_c_try_compile
"$LINENO"; then :
10783 gdb_cv_have_pt_getdbregs
=yes
10785 gdb_cv_have_pt_getdbregs
=no
10787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
10791 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
10792 if test $gdb_cv_have_pt_getdbregs = yes; then
10794 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
10798 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
10800 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
10801 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
10802 $as_echo_n "(cached) " >&6
10804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10806 #include <sys/types.h>
10807 #include <sys/ptrace.h>
10816 if ac_fn_c_try_compile
"$LINENO"; then :
10817 gdb_cv_have_pt_getxmmregs
=yes
10819 gdb_cv_have_pt_getxmmregs
=no
10821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
10825 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
10826 if test $gdb_cv_have_pt_getxmmregs = yes; then
10828 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
10832 # Detect which type of /proc is in use, such as for Unixware or Solaris.
10834 if test "${target}" = "${host}"; then
10836 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
10838 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10841 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
10843 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10847 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
10849 $as_echo "#define _KMEMUSER 1" >>confdefs.h
10855 if test "$ac_cv_header_sys_procfs_h" = yes; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
10857 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
10858 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
10859 $as_echo_n "(cached) " >&6
10861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h. */
10865 /* Needed for new procfs interface on sparc-solaris. */
10866 #define _STRUCTURED_PROC 1
10867 #include <sys/procfs.h>
10876 if ac_fn_c_try_compile
"$LINENO"; then :
10877 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
10879 bfd_cv_have_sys_procfs_type_pstatus_t
=no
10882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10885 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10887 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10891 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
10894 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
10895 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
10896 $as_echo_n "(cached) " >&6
10898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10902 /* Needed for new procfs interface on sparc-solaris. */
10903 #define _STRUCTURED_PROC 1
10904 #include <sys/procfs.h>
10913 if ac_fn_c_try_compile
"$LINENO"; then :
10914 bfd_cv_have_sys_procfs_type_prrun_t
=yes
10916 bfd_cv_have_sys_procfs_type_prrun_t
=no
10919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10922 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
10924 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
10928 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10931 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10932 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
10933 $as_echo_n "(cached) " >&6
10935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10939 /* Needed for new procfs interface on sparc-solaris. */
10940 #define _STRUCTURED_PROC 1
10941 #include <sys/procfs.h>
10950 if ac_fn_c_try_compile
"$LINENO"; then :
10951 bfd_cv_have_sys_procfs_type_gregset_t
=yes
10953 bfd_cv_have_sys_procfs_type_gregset_t
=no
10956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10959 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10961 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10965 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10968 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10969 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
10970 $as_echo_n "(cached) " >&6
10972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h. */
10976 /* Needed for new procfs interface on sparc-solaris. */
10977 #define _STRUCTURED_PROC 1
10978 #include <sys/procfs.h>
10987 if ac_fn_c_try_compile
"$LINENO"; then :
10988 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
10990 bfd_cv_have_sys_procfs_type_fpregset_t
=no
10993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10996 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10998 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
11002 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
11005 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
11006 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
11009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h. */
11013 /* Needed for new procfs interface on sparc-solaris. */
11014 #define _STRUCTURED_PROC 1
11015 #include <sys/procfs.h>
11024 if ac_fn_c_try_compile
"$LINENO"; then :
11025 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
11027 bfd_cv_have_sys_procfs_type_prgregset_t
=no
11030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11033 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
11035 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
11039 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
11042 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
11043 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
11044 $as_echo_n "(cached) " >&6
11046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11050 /* Needed for new procfs interface on sparc-solaris. */
11051 #define _STRUCTURED_PROC 1
11052 #include <sys/procfs.h>
11061 if ac_fn_c_try_compile
"$LINENO"; then :
11062 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
11064 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
11067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11070 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11072 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
11076 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
11079 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
11080 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
11081 $as_echo_n "(cached) " >&6
11083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11087 /* Needed for new procfs interface on sparc-solaris. */
11088 #define _STRUCTURED_PROC 1
11089 #include <sys/procfs.h>
11098 if ac_fn_c_try_compile
"$LINENO"; then :
11099 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
11101 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
11104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11107 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
11109 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
11113 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
11116 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
11117 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
11118 $as_echo_n "(cached) " >&6
11120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11124 /* Needed for new procfs interface on sparc-solaris. */
11125 #define _STRUCTURED_PROC 1
11126 #include <sys/procfs.h>
11130 prfpregset32_t avar
11135 if ac_fn_c_try_compile
"$LINENO"; then :
11136 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
11138 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
11141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11144 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
11146 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
11150 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11153 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11154 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
11155 $as_echo_n "(cached) " >&6
11157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11161 /* Needed for new procfs interface on sparc-solaris. */
11162 #define _STRUCTURED_PROC 1
11163 #include <sys/procfs.h>
11172 if ac_fn_c_try_compile
"$LINENO"; then :
11173 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
11175 bfd_cv_have_sys_procfs_type_lwpid_t
=no
11178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11181 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11183 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11187 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11190 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11191 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11192 $as_echo_n "(cached) " >&6
11194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11195 /* end confdefs.h. */
11198 /* Needed for new procfs interface on sparc-solaris. */
11199 #define _STRUCTURED_PROC 1
11200 #include <sys/procfs.h>
11209 if ac_fn_c_try_compile
"$LINENO"; then :
11210 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
11212 bfd_cv_have_sys_procfs_type_psaddr_t
=no
11215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11218 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11220 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11224 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11227 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11228 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11229 $as_echo_n "(cached) " >&6
11231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h. */
11235 /* Needed for new procfs interface on sparc-solaris. */
11236 #define _STRUCTURED_PROC 1
11237 #include <sys/procfs.h>
11246 if ac_fn_c_try_compile
"$LINENO"; then :
11247 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
11249 bfd_cv_have_sys_procfs_type_prsysent_t
=no
11252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11255 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11257 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11261 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11264 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11265 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11266 $as_echo_n "(cached) " >&6
11268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11269 /* end confdefs.h. */
11272 /* Needed for new procfs interface on sparc-solaris. */
11273 #define _STRUCTURED_PROC 1
11274 #include <sys/procfs.h>
11283 if ac_fn_c_try_compile
"$LINENO"; then :
11284 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
11286 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
11289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11292 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11294 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11298 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11301 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11302 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
11303 $as_echo_n "(cached) " >&6
11305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11309 /* Needed for new procfs interface on sparc-solaris. */
11310 #define _STRUCTURED_PROC 1
11311 #include <sys/procfs.h>
11315 pr_sigaction64_t avar
11320 if ac_fn_c_try_compile
"$LINENO"; then :
11321 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
11323 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
11326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11329 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
11331 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
11335 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
11338 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
11339 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11346 /* Needed for new procfs interface on sparc-solaris. */
11347 #define _STRUCTURED_PROC 1
11348 #include <sys/procfs.h>
11352 pr_siginfo64_t avar
11357 if ac_fn_c_try_compile
"$LINENO"; then :
11358 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
11360 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
11363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11366 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
11368 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
11372 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
11378 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
11380 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
11381 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
11382 $as_echo_n "(cached) " >&6
11384 if test "$cross_compiling" = yes; then :
11385 gdb_cv_prfpregset_t_broken
=yes
11387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h. */
11389 #include <sys/procfs.h>
11392 if (sizeof (prfpregset_t) == sizeof (void *))
11397 if ac_fn_c_try_run
"$LINENO"; then :
11398 gdb_cv_prfpregset_t_broken
=no
11400 gdb_cv_prfpregset_t_broken
=yes
11402 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11403 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
11409 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
11410 if test $gdb_cv_prfpregset_t_broken = yes; then
11412 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
11419 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
11420 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
11421 $as_echo_n "(cached) " >&6
11423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11424 /* end confdefs.h. */
11425 #include <unistd.h>
11426 #include <sys/types.h>
11427 #include <sys/procfs.h>
11434 dummy = ioctl(0, PIOCSET, &dummy);
11440 if ac_fn_c_try_compile
"$LINENO"; then :
11441 gdb_cv_have_procfs_piocset
=yes
11443 gdb_cv_have_procfs_piocset
=no
11445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
11449 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
11450 if test $gdb_cv_have_procfs_piocset = yes; then
11452 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
11457 if test ${host} = ${target} ; then
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
11460 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
11461 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
11462 $as_echo_n "(cached) " >&6
11464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11470 struct link_map lm; (void) lm.l_addr;
11475 if ac_fn_c_try_compile
"$LINENO"; then :
11476 gdb_cv_have_struct_link_map_with_l_members
=yes
11478 gdb_cv_have_struct_link_map_with_l_members
=no
11480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
11484 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
11485 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
11487 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
11493 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
11494 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
11497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11498 /* end confdefs.h. */
11499 #include <sys/types.h>
11504 struct link_map lm; (void) lm.lm_addr;
11509 if ac_fn_c_try_compile
"$LINENO"; then :
11510 gdb_cv_have_struct_link_map_with_lm_members
=yes
11512 gdb_cv_have_struct_link_map_with_lm_members
=no
11514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
11518 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
11519 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
11521 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
11527 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
11528 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
11529 $as_echo_n "(cached) " >&6
11531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11532 /* end confdefs.h. */
11533 #include <sys/types.h>
11534 #ifdef HAVE_NLIST_H
11541 struct so_map lm; (void) lm.som_addr;
11546 if ac_fn_c_try_compile
"$LINENO"; then :
11547 gdb_cv_have_struct_so_map_with_som_members
=yes
11549 gdb_cv_have_struct_so_map_with_som_members
=no
11551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
11555 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
11556 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
11558 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
11564 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
11565 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
11566 $as_echo_n "(cached) " >&6
11568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11571 #include <sys/link.h>
11575 struct link_map32 l;
11580 if ac_fn_c_try_compile
"$LINENO"; then :
11581 gdb_cv_have_struct_link_map32
=yes
11583 gdb_cv_have_struct_link_map32
=no
11585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
11589 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
11590 if test $gdb_cv_have_struct_link_map32 = yes; then
11592 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
11595 $as_echo "#define _SYSCALL32 1" >>confdefs.h
11600 # Check if the compiler supports the `long long' type.
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
11603 $as_echo_n "checking for long long support in compiler... " >&6; }
11604 if test "${gdb_cv_c_long_long+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
11607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h. */
11609 extern long long foo;
11613 switch (foo & 2) { case 0: return 1; }
11618 if ac_fn_c_try_compile
"$LINENO"; then :
11619 gdb_cv_c_long_long
=yes
11621 gdb_cv_c_long_long
=no
11623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
11626 $as_echo "$gdb_cv_c_long_long" >&6; }
11627 if test $gdb_cv_c_long_long = yes; then
11629 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
11633 # Check if the compiler and runtime support printing long longs.
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
11636 $as_echo_n "checking for long long support in printf... " >&6; }
11637 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
11638 $as_echo_n "(cached) " >&6
11640 if test "$cross_compiling" = yes; then :
11641 gdb_cv_printf_has_long_long
=no
11643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11645 $ac_includes_default
11651 l = (l << 16) + 0x0123;
11652 l = (l << 16) + 0x4567;
11653 l = (l << 16) + 0x89ab;
11654 l = (l << 16) + 0xcdef;
11655 sprintf (buf, "0x%016llx", l);
11656 return (strcmp ("0x0123456789abcdef", buf));
11661 if ac_fn_c_try_run
"$LINENO"; then :
11662 gdb_cv_printf_has_long_long
=yes
11664 gdb_cv_printf_has_long_long
=no
11666 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11667 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
11672 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
11673 if test $gdb_cv_printf_has_long_long = yes; then
11675 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
11679 # Check if the compiler and runtime support printing decfloats.
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
11682 $as_echo_n "checking for decfloat support in printf... " >&6; }
11683 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
11684 $as_echo_n "(cached) " >&6
11686 if test "$cross_compiling" = yes; then :
11687 gdb_cv_printf_has_decfloat
=no
11689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11691 $ac_includes_default
11696 _Decimal32 d32 = 1.2345df;
11697 _Decimal64 d64 = 1.2345dd;
11698 _Decimal128 d128 = 1.2345dl;
11699 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
11700 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
11705 if ac_fn_c_try_run
"$LINENO"; then :
11706 gdb_cv_printf_has_decfloat
=yes
11708 gdb_cv_printf_has_decfloat
=no
11710 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11711 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
11716 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
11717 if test $gdb_cv_printf_has_decfloat = yes; then
11719 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
11723 # Check if the compiler supports the `long double' type. We can't use
11724 # AC_C_LONG_DOUBLE because that one does additional checks on the
11725 # constants defined in <float.h> that fail on some systems,
11726 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
11729 $as_echo_n "checking for long double support in compiler... " >&6; }
11730 if test "${gdb_cv_c_long_double+set}" = set; then :
11731 $as_echo_n "(cached) " >&6
11733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11734 /* end confdefs.h. */
11737 if ac_fn_c_try_compile
"$LINENO"; then :
11738 gdb_cv_c_long_double
=yes
11740 gdb_cv_c_long_double
=no
11742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
11745 $as_echo "$gdb_cv_c_long_double" >&6; }
11746 if test $gdb_cv_c_long_double = yes; then
11748 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
11752 # Check if the compiler and runtime support printing long doubles.
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
11755 $as_echo_n "checking for long double support in printf... " >&6; }
11756 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
11757 $as_echo_n "(cached) " >&6
11759 if test "$cross_compiling" = yes; then :
11760 gdb_cv_printf_has_long_double
=no
11762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11764 $ac_includes_default
11769 long double f = 3.141592653;
11770 sprintf (buf, "%Lg", f);
11771 return (strncmp ("3.14159", buf, 7));
11776 if ac_fn_c_try_run
"$LINENO"; then :
11777 gdb_cv_printf_has_long_double
=yes
11779 gdb_cv_printf_has_long_double
=no
11781 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11782 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
11787 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
11788 if test $gdb_cv_printf_has_long_double = yes; then
11790 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
11794 # Check if the compiler and runtime support scanning long doubles.
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
11797 $as_echo_n "checking for long double support in scanf... " >&6; }
11798 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11801 if test "$cross_compiling" = yes; then :
11802 gdb_cv_scanf_has_long_double
=no
11804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11810 char *buf = "3.141592653";
11812 sscanf (buf, "%Lg", &f);
11813 return !(f > 3.14159 && f < 3.14160);
11818 if ac_fn_c_try_run
"$LINENO"; then :
11819 gdb_cv_scanf_has_long_double
=yes
11821 gdb_cv_scanf_has_long_double
=no
11823 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11824 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
11829 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
11830 if test $gdb_cv_scanf_has_long_double = yes; then
11832 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11839 $as_echo_n "checking for -bbigtoc option... " >&6; }
11840 if test "${gdb_cv_bigtoc+set}" = set; then :
11841 $as_echo_n "(cached) " >&6
11844 SAVE_LDFLAGS
=$LDFLAGS
11847 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11848 *) gdb_cv_bigtoc
=-bbigtoc ;;
11851 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11863 if ac_fn_c_try_link
"$LINENO"; then :
11868 rm -f core conftest.err conftest.
$ac_objext \
11869 conftest
$ac_exeext conftest.
$ac_ext
11870 LDFLAGS
="${SAVE_LDFLAGS}"
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11874 $as_echo "$gdb_cv_bigtoc" >&6; }
11875 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
11880 $as_echo_n "checking for the dynamic export flag... " >&6; }
11882 if test "${gdb_native}" = yes; then
11883 # The dynamically loaded libthread_db needs access to symbols in the gdb
11884 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
11885 # may not be supported there.
11886 old_LDFLAGS
="$LDFLAGS"
11887 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
11888 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
11889 LDFLAGS
="$LDFLAGS $RDYNAMIC"
11890 if test "${have_libpython}" = no
; then
11891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11892 /* end confdefs.h. */
11902 if ac_fn_c_try_link
"$LINENO"; then :
11905 rm -f core conftest.err conftest.
$ac_objext \
11906 conftest
$ac_exeext conftest.
$ac_ext
11908 # Workaround http://bugs.python.org/issue4434 where static
11909 # libpythonX.Y.a would get its symbols required for
11910 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
11911 # Problem does not happen for the recommended libpythonX.Y.so linkage.
11912 old_CFLAGS
="$CFLAGS"
11913 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
11914 if test "$cross_compiling" = yes; then :
11917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11919 #include "${have_libpython}/Python.h"
11925 err = PyRun_SimpleString ("import itertools\n");
11927 return err == 0 ? 0 : 1;
11932 if ac_fn_c_try_run
"$LINENO"; then :
11935 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11936 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11939 CFLAGS
="$old_CFLAGS"
11941 LDFLAGS
="$old_LDFLAGS"
11943 if $dynamic_list; then
11944 found
="-Wl,--dynamic-list"
11945 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
11948 RDYNAMIC
="-rdynamic"
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
11952 $as_echo "$found" >&6; }
11955 if test ${build} = ${host} -a ${host} = ${target} ; then
11958 # See if thread_db library is around for Solaris thread debugging.
11959 # Note that we must explicitly test for version 1 of the library
11960 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
11963 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
11964 if test -f /usr
/lib
/libthread_db.so
.1 ; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966 $as_echo "yes" >&6; }
11968 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
11970 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
11971 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11973 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11974 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11975 $as_echo_n "(cached) " >&6
11977 ac_check_lib_save_LIBS
=$LIBS
11979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h. */
11982 /* Override any GCC internal prototype to avoid an error.
11983 Use char because int might match the return type of a GCC
11984 builtin and then its argument prototype would still apply. */
11997 if ac_fn_c_try_link
"$LINENO"; then :
11998 ac_cv_lib_dl_dlopen
=yes
12000 ac_cv_lib_dl_dlopen
=no
12002 rm -f core conftest.err conftest.
$ac_objext \
12003 conftest
$ac_exeext conftest.
$ac_ext
12004 LIBS
=$ac_check_lib_save_LIBS
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12007 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12008 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
12009 cat >>confdefs.h
<<_ACEOF
12010 #define HAVE_LIBDL 1
12017 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
12018 # Sun randomly tweaked the prototypes in <proc_service.h>
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12021 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12022 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12023 $as_echo_n "(cached) " >&6
12026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h. */
12029 #include <proc_service.h>
12030 ps_err_e ps_pdwrite
12031 (struct ps_prochandle*, psaddr_t, const void*, size_t);
12041 if ac_fn_c_try_compile
"$LINENO"; then :
12042 gdb_cv_proc_service_is_old
=no
12044 gdb_cv_proc_service_is_old
=yes
12046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12051 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12052 if test $gdb_cv_proc_service_is_old = yes; then
12054 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059 $as_echo "no" >&6; }
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12064 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12065 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12066 $as_echo_n "(cached) " >&6
12068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12070 #include <sys/pthdebug.h>
12074 #ifndef PTHDB_VERSION_3
12081 if ac_fn_c_try_compile
"$LINENO"; then :
12082 gdb_cv_have_aix_thread_debug
=yes
12084 gdb_cv_have_aix_thread_debug
=no
12086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12090 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12091 if test $gdb_cv_have_aix_thread_debug = yes; then
12092 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
12093 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
12094 LIBS
="$LIBS -lpthdebug"
12096 # Older versions of AIX do not provide the declaration for
12097 # the getthrds function (it appears that it was introduced
12099 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
12101 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
12107 cat >>confdefs.h
<<_ACEOF
12108 #define HAVE_DECL_GETTHRDS $ac_have_decl
12117 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
12119 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
12120 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
12121 $as_echo_n "(cached) " >&6
12123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125 #include <thread_db.h>
12129 int i = TD_NOTALLOC;
12134 if ac_fn_c_try_compile
"$LINENO"; then :
12135 gdb_cv_thread_db_h_has_td_notalloc
=yes
12137 gdb_cv_thread_db_h_has_td_notalloc
=no
12140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
12144 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
12146 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
12147 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
12148 $as_echo_n "(cached) " >&6
12150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12152 #include <thread_db.h>
12156 int i = TD_VERSION;
12161 if ac_fn_c_try_compile
"$LINENO"; then :
12162 gdb_cv_thread_db_h_has_td_version
=yes
12164 gdb_cv_thread_db_h_has_td_version
=no
12167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12171 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12173 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12174 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12175 $as_echo_n "(cached) " >&6
12177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12179 #include <thread_db.h>
12188 if ac_fn_c_try_compile
"$LINENO"; then :
12189 gdb_cv_thread_db_h_has_td_notls
=yes
12191 gdb_cv_thread_db_h_has_td_notls
=no
12194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12198 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12200 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12202 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12205 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12207 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12210 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12212 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12216 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12218 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12219 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12220 $as_echo_n "(cached) " >&6
12222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h. */
12224 #include <sys/syscall.h>
12228 int i = __NR_tkill;
12233 if ac_fn_c_try_compile
"$LINENO"; then :
12234 gdb_cv_sys_syscall_h_has_tkill
=yes
12236 gdb_cv_sys_syscall_h_has_tkill
=no
12239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12243 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12245 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
12247 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12251 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12253 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
12259 cat >>confdefs.h
<<_ACEOF
12260 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12264 if test "$cross_compiling" = yes; then :
12265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12267 #include <sys/personality.h>
12272 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12273 # define ADDR_NO_RANDOMIZE 0x0040000
12275 /* Test the flag could be set and stays set. */
12276 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12277 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12283 if ac_fn_c_try_link
"$LINENO"; then :
12284 have_personality
=true
12286 have_personality
=false
12288 rm -f core conftest.err conftest.
$ac_objext \
12289 conftest
$ac_exeext conftest.
$ac_ext
12291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12292 /* end confdefs.h. */
12293 #include <sys/personality.h>
12298 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12299 # define ADDR_NO_RANDOMIZE 0x0040000
12301 /* Test the flag could be set and stays set. */
12302 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12303 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12309 if ac_fn_c_try_run
"$LINENO"; then :
12310 have_personality
=true
12312 have_personality
=false
12314 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12315 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12318 if $have_personality
12321 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12326 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12327 # except that the argument to --with-sysroot is optional.
12328 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12329 if test "x$with_sysroot" = xyes
; then
12330 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
12333 # Check whether --with-sysroot was given.
12334 if test "${with_sysroot+set}" = set; then :
12335 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
12337 TARGET_SYSTEM_ROOT
=
12341 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
12342 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12343 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
12344 ac_define_dir
=`eval echo $ac_define_dir`
12346 cat >>confdefs.h
<<_ACEOF
12347 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12353 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
12354 if test "x$prefix" = xNONE
; then
12355 test_prefix
=/usr
/local
12357 test_prefix
=$prefix
12360 test_prefix
=$exec_prefix
12363 case ${ac_define_dir} in
12364 "${test_prefix}"|
"${test_prefix}/"*|\
12365 '${exec_prefix}'|
'${exec_prefix}/'*)
12370 cat >>confdefs.h
<<_ACEOF
12371 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12378 # Check whether --with-system-gdbinit was given.
12379 if test "${with_system_gdbinit+set}" = set; then :
12380 withval
=$with_system_gdbinit;
12381 SYSTEM_GDBINIT
=$withval
12387 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
12388 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12389 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
12390 ac_define_dir
=`eval echo $ac_define_dir`
12392 cat >>confdefs.h
<<_ACEOF
12393 #define SYSTEM_GDBINIT "$ac_define_dir"
12399 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
12400 if test "x$prefix" = xNONE
; then
12401 test_prefix
=/usr
/local
12403 test_prefix
=$prefix
12406 test_prefix
=$exec_prefix
12409 case ${ac_define_dir} in
12410 "${test_prefix}"|
"${test_prefix}/"*|\
12411 '${exec_prefix}'|
'${exec_prefix}/'*)
12416 cat >>confdefs.h
<<_ACEOF
12417 #define SYSTEM_GDBINIT_RELOCATABLE $value
12423 # Check whether --enable-werror was given.
12424 if test "${enable_werror+set}" = set; then :
12425 enableval
=$enable_werror; case "${enableval}" in
12426 yes | y
) ERROR_ON_WARNING
="yes" ;;
12427 no | n
) ERROR_ON_WARNING
="no" ;;
12428 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12433 # Enable -Werror by default when using gcc. Turn it off for releases.
12434 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
12435 ERROR_ON_WARNING
=yes
12439 if test "${ERROR_ON_WARNING}" = yes ; then
12440 WERROR_CFLAGS
="-Werror"
12443 # The entries after -Wno-pointer-sign are disabled warnings which may
12444 # be enabled in the future, which can not currently be used to build
12446 # NOTE: If you change this list, remember to update
12447 # gdb/doc/gdbint.texinfo.
12448 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
12449 -Wformat-nonliteral -Wno-pointer-sign \
12450 -Wno-unused -Wunused-value -Wunused-function \
12451 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes \
12452 -Wdeclaration-after-statement"
12454 # Enable -Wno-format by default when using gcc on mingw since many
12455 # GCC versions complain about %I64.
12457 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
12460 # Check whether --enable-build-warnings was given.
12461 if test "${enable_build_warnings+set}" = set; then :
12462 enableval
=$enable_build_warnings; case "${enableval}" in
12464 no
) build_warnings
="-w";;
12465 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12466 build_warnings
="${build_warnings} ${t}";;
12467 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12468 build_warnings
="${t} ${build_warnings}";;
12469 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12471 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
12472 echo "Setting compiler warning flags = $build_warnings" 6>&1
12475 # Check whether --enable-gdb-build-warnings was given.
12476 if test "${enable_gdb_build_warnings+set}" = set; then :
12477 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
12479 no
) build_warnings
="-w";;
12480 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12481 build_warnings
="${build_warnings} ${t}";;
12482 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12483 build_warnings
="${t} ${build_warnings}";;
12484 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12486 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
12487 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12491 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12494 $as_echo_n "checking compiler warning flags... " >&6; }
12495 # Separate out the -Werror flag as some files just cannot be
12496 # compiled with it enabled.
12497 for w
in ${build_warnings}; do
12499 -Werr*) WERROR_CFLAGS
=-Werror ;;
12500 *) # Check that GCC accepts it
12501 saved_CFLAGS
="$CFLAGS"
12502 CFLAGS
="$CFLAGS $w"
12503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12504 /* end confdefs.h. */
12514 if ac_fn_c_try_compile
"$LINENO"; then :
12515 WARN_CFLAGS
="${WARN_CFLAGS} $w"
12517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12518 CFLAGS
="$saved_CFLAGS"
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12522 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
12527 # In the Cygwin environment, we need some additional flags.
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
12529 $as_echo_n "checking
for cygwin...
" >&6; }
12530 if test "${gdb_cv_os_cygwin+set}" = set; then :
12531 $as_echo_n "(cached
) " >&6
12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h. */
12536 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
12540 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12541 $EGREP "lose
" >/dev/null 2>&1; then :
12542 gdb_cv_os_cygwin=yes
12544 gdb_cv_os_cygwin=no
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
12550 $as_echo "$gdb_cv_os_cygwin" >&6; }
12553 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
12555 *go32* ) SER_HARDWIRE=ser-go32.o ;;
12556 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
12557 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
12561 # libreadline needs libuser32.a in a cygwin environment
12563 if test x$gdb_cv_os_cygwin = xyes; then
12564 WIN32LIBS="-luser32"
12565 case "${target}" in
12566 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
12571 # The ser-tcp.c module requires sockets.
12575 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12577 WIN32LIBS
="$WIN32LIBS -lws2_32"
12582 # Add ELF support to GDB, but only if BFD includes ELF support.
12584 OLD_LDFLAGS
=$LDFLAGS
12586 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12587 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
12588 # always want our bfd.
12589 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12590 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
12591 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12592 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12593 if test "$plugins" = "yes"; then
12596 LIBS
="-lbfd -liberty $intl $LIBS"
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
12598 $as_echo_n "checking for ELF support in BFD... " >&6; }
12599 if test "${gdb_cv_var_elf+set}" = set; then :
12600 $as_echo_n "(cached) " >&6
12602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h. */
12604 #include <stdlib.h>
12606 #include "elf-bfd.h"
12611 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
12616 if ac_fn_c_try_link
"$LINENO"; then :
12621 rm -f core conftest.err conftest.
$ac_objext \
12622 conftest
$ac_exeext conftest.
$ac_ext
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
12625 $as_echo "$gdb_cv_var_elf" >&6; }
12626 if test $gdb_cv_var_elf = yes; then
12627 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o"
12629 $as_echo "#define HAVE_ELF 1" >>confdefs.h
12631 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12632 if test "$plugins" = "yes"; then
12633 OLD_LIBS
="-ldl $OLD_LIBS"
12637 LDFLAGS
=$OLD_LDFLAGS
12640 # Add any host-specific objects to GDB.
12641 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
12643 LIBGUI
="../libgui/src/libgui.a"
12644 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
12653 *-*-cygwin* |
*-*-mingw* )
12662 if test "${enable_gdbtk}" = "yes"; then
12664 # Gdbtk must have an absolute path to srcdir in order to run
12665 # properly when not installed.
12668 GDBTK_SRC_DIR
=`pwd`
12673 # Ok, lets find the tcl configuration
12674 # First, look for one uninstalled.
12675 # the alternative search directory is invoked by --with-tcl
12678 if test x
"${no_tcl}" = x
; then
12679 # we reset no_tcl in case something fails here
12682 # Check whether --with-tcl was given.
12683 if test "${with_tcl+set}" = set; then :
12684 withval
=$with_tcl; with_tclconfig
=${withval}
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12688 $as_echo_n "checking for Tcl configuration... " >&6; }
12689 if test "${ac_cv_c_tclconfig+set}" = set; then :
12690 $as_echo_n "(cached) " >&6
12694 # First check to see if --with-tcl was specified.
12696 *-*-cygwin*) platDir
="win" ;;
12697 *) platDir
="unix" ;;
12699 if test x
"${with_tclconfig}" != x
; then
12700 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12701 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
12703 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12707 # then check for a private Tcl installation
12708 if test x
"${ac_cv_c_tclconfig}" = x
; then
12711 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12712 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12713 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12715 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12716 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12717 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12719 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12720 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12721 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
12722 if test -f "$i/$platDir/tclConfig.sh" ; then
12723 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
12729 # on Darwin, check in Framework installation locations
12730 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
12731 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
12732 `ls -d /Library/Frameworks 2>/dev/null` \
12733 `ls -d /Network/Library/Frameworks 2>/dev/null` \
12734 `ls -d /System/Library/Frameworks 2>/dev/null` \
12736 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
12737 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
12743 # check in a few common install locations
12744 if test x
"${ac_cv_c_tclconfig}" = x
; then
12745 for i
in `ls -d ${libdir} 2>/dev/null` \
12746 `ls -d ${exec_prefix}/lib 2>/dev/null` \
12747 `ls -d ${prefix}/lib 2>/dev/null` \
12748 `ls -d /usr/local/lib 2>/dev/null` \
12749 `ls -d /usr/contrib/lib 2>/dev/null` \
12750 `ls -d /usr/lib 2>/dev/null` \
12752 if test -f "$i/tclConfig.sh" ; then
12753 ac_cv_c_tclconfig
=`(cd $i; pwd)`
12759 # check in a few other private locations
12760 if test x
"${ac_cv_c_tclconfig}" = x
; then
12763 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12764 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12765 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
12766 if test -f "$i/$platDir/tclConfig.sh" ; then
12767 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
12776 if test x
"${ac_cv_c_tclconfig}" = x
; then
12777 TCL_BIN_DIR
="# no Tcl configs found"
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
12779 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12782 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
12784 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
12789 # If $no_tk is nonempty, then we can't do Tk, and there is no
12790 # point to doing Tcl.
12793 # Ok, lets find the tk configuration
12794 # First, look for one uninstalled.
12795 # the alternative search directory is invoked by --with-tk
12798 if test x
"${no_tk}" = x
; then
12799 # we reset no_tk in case something fails here
12802 # Check whether --with-tk was given.
12803 if test "${with_tk+set}" = set; then :
12804 withval
=$with_tk; with_tkconfig
=${withval}
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
12808 $as_echo_n "checking for Tk configuration... " >&6; }
12809 if test "${ac_cv_c_tkconfig+set}" = set; then :
12810 $as_echo_n "(cached) " >&6
12814 # First check to see if --with-tkconfig was specified.
12815 if test x
"${with_tkconfig}" != x
; then
12816 if test -f "${with_tkconfig}/tkConfig.sh" ; then
12817 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
12819 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
12823 # then check for a private Tk library
12825 *-*-cygwin*) platDir
="win" ;;
12826 *) platDir
="unix" ;;
12828 if test x
"${ac_cv_c_tkconfig}" = x
; then
12831 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12832 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
12833 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
12835 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12836 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
12837 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
12839 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12840 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
12841 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
12842 if test -f "$i/$platDir/tkConfig.sh" ; then
12843 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
12849 # on Darwin, check in Framework installation locations
12850 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
12851 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
12852 `ls -d /Library/Frameworks 2>/dev/null` \
12853 `ls -d /Network/Library/Frameworks 2>/dev/null` \
12854 `ls -d /System/Library/Frameworks 2>/dev/null` \
12856 if test -f "$i/Tk.framework/tkConfig.sh" ; then
12857 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
12863 # check in a few common install locations
12864 if test x
"${ac_cv_c_tkconfig}" = x
; then
12865 for i
in `ls -d ${libdir} 2>/dev/null` \
12866 `ls -d ${exec_prefix}/lib 2>/dev/null` \
12867 `ls -d ${prefix}/lib 2>/dev/null` \
12868 `ls -d /usr/local/lib 2>/dev/null` \
12869 `ls -d /usr/contrib/lib 2>/dev/null` \
12870 `ls -d /usr/lib 2>/dev/null` \
12872 if test -f "$i/tkConfig.sh" ; then
12873 ac_cv_c_tkconfig
=`(cd $i; pwd)`
12878 # check in a few other private locations
12879 if test x
"${ac_cv_c_tkconfig}" = x
; then
12882 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12883 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
12884 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
12885 if test -f "$i/$platDir/tkConfig.sh" ; then
12886 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
12895 if test x
"${ac_cv_c_tkconfig}" = x
; then
12896 TK_BIN_DIR
="# no Tk configs found"
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
12898 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
12901 TK_BIN_DIR
=${ac_cv_c_tkconfig}
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
12903 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
12908 if test -z "${no_tcl}" -a -z "${no_tk}"; then
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
12911 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
12913 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12915 $as_echo "loading" >&6; }
12916 .
${TCL_BIN_DIR}/tclConfig.sh
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
12919 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
12922 # eval is required to do the TCL_DBGX substitution
12923 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12924 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12926 # If the TCL_BIN_DIR is the build directory (not the install directory),
12927 # then set the common variable name to the value of the build variables.
12928 # For example, the variable TCL_LIB_SPEC will be set to the value
12929 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12930 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12931 # installed and uninstalled version of Tcl.
12932 if test -f "${TCL_BIN_DIR}/Makefile" ; then
12933 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
12934 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
12935 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
12936 elif test "`uname -s`" = "Darwin"; then
12937 # If Tcl was built as a framework, attempt to use the libraries
12938 # from the framework at the given location so that linking works
12939 # against Tcl.framework installed in an arbitrary location.
12940 case ${TCL_DEFS} in
12942 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
12943 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
12944 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
12945 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
12946 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
12951 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
12952 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
12953 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
12959 # eval is required to do the TCL_DBGX substitution
12960 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12961 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12962 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12963 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12979 # Check for in-tree tcl
12986 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
12990 # Find Tcl private headers
12991 if test x
"${intree}" = xno
; then
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
12994 $as_echo_n "checking for Tcl private headers... " >&6; }
12996 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
12997 if test -f ${dir}/tclInt.h
; then
13001 if test x
"${private_dir}" = x
; then
13002 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
13004 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13006 $as_echo "${private_dir}" >&6; }
13009 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
13010 TCL_LIBRARY
="${TCL_LIB_SPEC}"
13013 # If building tcl in the same src tree, private headers
13014 # are not needed, but we need to be sure to use the right
13016 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
13017 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
13018 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
13026 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
13028 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13030 $as_echo "loading" >&6; }
13031 .
${TK_BIN_DIR}/tkConfig.sh
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
13034 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13037 # eval is required to do the TK_DBGX substitution
13038 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
13039 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
13041 # If the TK_BIN_DIR is the build directory (not the install directory),
13042 # then set the common variable name to the value of the build variables.
13043 # For example, the variable TK_LIB_SPEC will be set to the value
13044 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
13045 # instead of TK_BUILD_LIB_SPEC since it will work with both an
13046 # installed and uninstalled version of Tcl.
13047 if test -f "${TK_BIN_DIR}/Makefile" ; then
13048 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
13049 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
13050 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
13051 elif test "`uname -s`" = "Darwin"; then
13052 # If Tk was built as a framework, attempt to use the libraries
13053 # from the framework at the given location so that linking works
13054 # against Tk.framework installed in an arbitrary location.
13057 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
13058 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
13059 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
13060 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
13061 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
13066 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
13067 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
13068 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
13074 # eval is required to do the TK_DBGX substitution
13075 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
13076 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
13077 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
13078 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
13093 # Check for in-tree Tk
13095 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
13099 # Find Tk private headers
13100 if test x
"${intree}" = xno
; then
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
13103 $as_echo_n "checking for Tk private headers... " >&6; }
13105 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
13106 if test -f ${dir}/tkInt.h
; then
13110 if test x
"${private_dir}" = x
; then
13111 as_fn_error
"could not find Tk private headers" "$LINENO" 5
13113 TK_PRIVATE_INCLUDE
="-I${private_dir}"
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13115 $as_echo "${private_dir}" >&6; }
13118 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
13119 TK_LIBRARY
=${TK_LIB_SPEC}
13122 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
13123 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
13124 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
13131 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
13133 # Include some libraries that Tcl and Tk want.
13134 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
13135 # Yes, the ordering seems wrong here. But it isn't.
13136 # TK_LIBS is the list of libraries that need to be linked
13137 # after Tcl/Tk. Note that this isn't put into LIBS. If it
13138 # were in LIBS then any link tests after this point would
13139 # try to include things like `$(LIBGUI)', which wouldn't work.
13140 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
13142 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
13143 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
13144 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
13145 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
13146 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
13147 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
13148 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
13150 if test x
$gdb_cv_os_cygwin = xyes
; then
13151 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
13152 WIN32LDAPP
="-Wl,--subsystem,console"
13153 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
13156 subdirs
="$subdirs gdbtk"
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13169 $as_echo_n "checking for X... " >&6; }
13172 # Check whether --with-x was given.
13173 if test "${with_x+set}" = set; then :
13177 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13178 if test "x$with_x" = xno
; then
13179 # The user explicitly disabled X.
13182 case $x_includes,$x_libraries in #(
13183 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
13184 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
13185 $as_echo_n "(cached) " >&6
13187 # One or both of the vars are not set, and there is no cached value.
13188 ac_x_includes
=no ac_x_libraries
=no
13189 rm -f -r conftest.dir
13190 if mkdir conftest.dir
; then
13192 cat >Imakefile
<<'_ACEOF'
13194 @echo incroot='${INCROOT}'
13196 @echo usrlibdir='${USRLIBDIR}'
13198 @echo libdir='${LIBDIR}'
13200 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
13201 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13202 for ac_var
in incroot usrlibdir libdir
; do
13203 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13205 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13206 for ac_extension
in a so sl dylib la dll
; do
13207 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13208 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13209 ac_im_usrlibdir
=$ac_im_libdir; break
13212 # Screen out bogus values from the imake configuration. They are
13213 # bogus both because they are the default anyway, and because
13214 # using them would break gcc on systems where it needs fixed includes.
13215 case $ac_im_incroot in
13216 /usr
/include
) ac_x_includes
= ;;
13217 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
13219 case $ac_im_usrlibdir in
13220 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
13221 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
13225 rm -f -r conftest.dir
13228 # Standard set of common directories for X headers.
13229 # Check X11 before X11Rn because it is often a symlink to the current release.
13243 /usr/local/X11/include
13244 /usr/local/X11R7/include
13245 /usr/local/X11R6/include
13246 /usr/local/X11R5/include
13247 /usr/local/X11R4/include
13249 /usr/local/include/X11
13250 /usr/local/include/X11R7
13251 /usr/local/include/X11R6
13252 /usr/local/include/X11R5
13253 /usr/local/include/X11R4
13257 /usr/XFree86/include/X11
13261 /usr/unsupported/include
13262 /usr/athena/include
13263 /usr/local/x11r5/include
13264 /usr/lpp/Xamples/include
13266 /usr/openwin/include
13267 /usr/openwin/share/include'
13269 if test "$ac_x_includes" = no
; then
13270 # Guess where to find include files, by looking for Xlib.h.
13271 # First, try using that file with no special directory specified.
13272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13274 #include <X11/Xlib.h>
13276 if ac_fn_c_try_cpp
"$LINENO"; then :
13277 # We can compile using X headers with no special include directory.
13280 for ac_dir
in $ac_x_header_dirs; do
13281 if test -r "$ac_dir/X11/Xlib.h"; then
13282 ac_x_includes
=$ac_dir
13287 rm -f conftest.err conftest.
$ac_ext
13288 fi # $ac_x_includes = no
13290 if test "$ac_x_libraries" = no
; then
13291 # Check for the libraries.
13292 # See if we find them without any special options.
13293 # Don't add to $LIBS permanently.
13296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13297 /* end confdefs.h. */
13298 #include <X11/Xlib.h>
13307 if ac_fn_c_try_link
"$LINENO"; then :
13309 # We can link X programs with no special library path.
13313 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13315 # Don't even attempt the hair of trying to link an X program!
13316 for ac_extension
in a so sl dylib la dll
; do
13317 if test -r "$ac_dir/libX11.$ac_extension"; then
13318 ac_x_libraries
=$ac_dir
13324 rm -f core conftest.err conftest.
$ac_objext \
13325 conftest
$ac_exeext conftest.
$ac_ext
13326 fi # $ac_x_libraries = no
13328 case $ac_x_includes,$ac_x_libraries in #(
13329 no
,* |
*,no |
*\'*)
13330 # Didn't find X, or a directory has "'" in its name.
13331 ac_cv_have_x
="have_x=no";; #(
13333 # Record where we found X for the cache.
13334 ac_cv_have_x
="have_x=yes\
13335 ac_x_includes='$ac_x_includes'\
13336 ac_x_libraries='$ac_x_libraries'"
13342 eval "$ac_cv_have_x"
13345 if test "$have_x" != yes; then
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13347 $as_echo "$have_x" >&6; }
13350 # If each of the values was on the command line, it overrides each guess.
13351 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
13352 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
13353 # Update the cache value to reflect the command line values.
13354 ac_cv_have_x
="have_x=yes\
13355 ac_x_includes='$x_includes'\
13356 ac_x_libraries='$x_libraries'"
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13358 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13362 # Unlike the sim directory, whether a simulator is linked is controlled by
13363 # presence of a gdb_sim definition in the target configure.tgt entry.
13364 # This code just checks for a few cases where we'd like to ignore those
13365 # definitions, even when they're present in the '.mt' file. These cases
13366 # are when --disable-sim is specified, or if the simulator directory is
13367 # not part of the source tree.
13369 # Check whether --enable-sim was given.
13370 if test "${enable_sim+set}" = set; then :
13371 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
13372 echo "enableval = ${enableval}";
13373 case "${enableval}" in
13374 yes) ignore_sim
=false
;;
13375 no
) ignore_sim
=true
;;
13376 *) ignore_sim
=false
;;
13383 if test ! -d "${srcdir}/../sim"; then
13389 if test "${ignore_sim}" = "false"; then
13390 if test x
"${gdb_sim}" != x
; then
13392 SIM_OBS
="remote-sim.o"
13394 $as_echo "#define WITH_SIM 1" >>confdefs.h
13412 # List of host floatformats.
13414 cat >>confdefs.h
<<_ACEOF
13415 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
13419 cat >>confdefs.h
<<_ACEOF
13420 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
13424 cat >>confdefs.h
<<_ACEOF
13425 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
13429 # target_subdir is used by the testsuite to find the target libraries.
13431 if test "${host}" != "${target}"; then
13432 target_subdir
="${target_alias}/"
13437 if test "${gdb_native}" = "yes"; then
13438 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
13439 if test ! -f ${host_makefile_frag}; then
13440 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
13442 frags
="$frags $host_makefile_frag"
13444 host_makefile_frag
=/dev
/null
13450 if test "${gdb_native}" = "yes"; then
13451 # We pick this up from the host configuration file (.mh) because we
13452 # do not have a native configuration Makefile fragment.
13453 nativefile
=`sed -n '
13454 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
13455 ' ${host_makefile_frag}`
13459 if test x
"${gdb_osabi}" != x
; then
13461 cat >>confdefs.h
<<_ACEOF
13462 #define GDB_OSABI_DEFAULT $gdb_osabi
13467 # Enable multi-ice-gdb-server.
13468 # Check whether --enable-multi-ice was given.
13469 if test "${enable_multi_ice+set}" = set; then :
13470 enableval
=$enable_multi_ice; case $enableval in
13473 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
13477 if test "x$enable_multi_ice" = xyes
; then
13478 subdirs
="$subdirs multi-ice"
13482 # Check whether --enable-gdbserver was given.
13483 if test "${enable_gdbserver+set}" = set; then :
13484 enableval
=$enable_gdbserver; case "${enableval}" in
13486 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
13489 enable_gdbserver
=auto
13493 # We only build gdbserver automatically in a native configuration, and
13494 # only if the user did not explicitly disable its build.
13495 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
13497 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
13498 if test "x$build_gdbserver" = xyes
; then
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13500 $as_echo "yes" >&6; }
13501 subdirs
="$subdirs gdbserver"
13503 gdbserver_build_enabled
=yes
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506 $as_echo "no" >&6; }
13510 # If the user explicitly request the gdbserver to be built, verify that
13511 # we were in fact able to enable it.
13512 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
13513 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
13516 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
13517 # to an empty version.
13523 if test "${nativefile}" != ""; then
13524 case "${nativefile}" in
13525 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
13526 * ) GDB_NM_FILE
="${nativefile}"
13528 files
="${files} ${GDB_NM_FILE}"
13529 links
="${links} nm.h"
13531 cat >>confdefs.h
<<_ACEOF
13532 #define GDB_NM_FILE "${GDB_NM_FILE}"
13538 ac_sources
="$files"
13540 while test -n "$ac_sources"; do
13541 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
13542 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
13543 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
13545 ac_config_links
="$ac_config_links $ac_config_links_1"
13551 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
13554 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
13556 ac_config_commands
="$ac_config_commands default"
13558 cat >confcache
<<\_ACEOF
13559 # This file is a shell script that caches the results of configure
13560 # tests run on this system so they can be shared between configure
13561 # scripts and configure runs, see configure's option --config-cache.
13562 # It is not useful on other systems. If it contains results you don't
13563 # want to keep, you may remove or edit it.
13565 # config.status only pays attention to the cache file if you give it
13566 # the --recheck option to rerun configure.
13568 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13569 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13570 # following values.
13574 # The following way of writing the cache mishandles newlines in values,
13575 # but we know of no workaround that is simple, portable, and efficient.
13576 # So, we kill variables containing newlines.
13577 # Ultrix sh set writes to stderr and can't be redirected directly,
13578 # and sets the high bit in the cache file unless we assign to the vars.
13580 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13581 eval ac_val
=\$
$ac_var
13585 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13586 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13589 _ | IFS | as_nl
) ;; #(
13590 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
13591 *) { eval $ac_var=; unset $ac_var;} ;;
13597 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13598 *${as_nl}ac_space
=\
*)
13599 # `set' does not quote correctly, so add quotes: double-quote
13600 # substitution turns \\\\ into \\, and sed turns \\ into \.
13603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13606 # `set' quotes correctly as required by POSIX, so do not add quotes.
13607 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13616 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13618 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13620 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13621 if test -w "$cache_file"; then
13622 test "x$cache_file" != "x/dev/null" &&
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13624 $as_echo "$as_me: updating cache $cache_file" >&6;}
13625 cat confcache
>$cache_file
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13628 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13633 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13634 # Let make expand exec_prefix.
13635 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13637 DEFS
=-DHAVE_CONFIG_H
13641 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13642 # 1. Remove the extension, and $U if already installed.
13643 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13644 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
13645 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13646 # will be set to the directory where LIBOBJS objects are built.
13647 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13648 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
13650 LIBOBJS
=$ac_libobjs
13652 LTLIBOBJS
=$ac_ltlibobjs
13655 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13656 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
13657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13659 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
13660 as_fn_error
"conditional \"GMAKE\" was never defined.
13661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13665 : ${CONFIG_STATUS=./config.status}
13667 ac_clean_files_save
=$ac_clean_files
13668 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13670 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13672 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13674 # Generated by $as_me.
13675 # Run this file to recreate the current configuration.
13676 # Compiler output produced by configure, useful for debugging
13677 # configure, is in config.log if it exists.
13680 ac_cs_recheck=false
13683 SHELL=\${CONFIG_SHELL-$SHELL}
13686 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
13687 ## -------------------- ##
13688 ## M4sh Initialization. ##
13689 ## -------------------- ##
13691 # Be more Bourne compatible
13692 DUALCASE
=1; export DUALCASE
# for MKS sh
13693 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
13696 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13697 # is contrary to our usage. Disable this feature.
13698 alias -g '${1+"$@"}'='"$@"'
13699 setopt NO_GLOB_SUBST
13701 case `(set -o) 2>/dev/null` in #(
13713 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13714 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13715 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13716 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13717 # Prefer a ksh shell builtin over an external printf program on Solaris,
13718 # but without wasting forks for bash or zsh.
13719 if test -z "$BASH_VERSION$ZSH_VERSION" \
13720 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13721 as_echo='print
-r --'
13722 as_echo_n='print
-rn --'
13723 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13724 as_echo='printf %s
\n'
13725 as_echo_n='printf %s
'
13727 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13728 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
13729 as_echo_n='/usr
/ucb
/echo -n'
13731 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13732 as_echo_n_body='eval
13736 expr "X$arg" : "X\\(.*\\)$as_nl";
13737 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13739 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
13741 export as_echo_n_body
13742 as_echo_n='sh
-c $as_echo_n_body as_echo
'
13744 export as_echo_body
13745 as_echo='sh
-c $as_echo_body as_echo
'
13748 # The user is always right.
13749 if test "${PATH_SEPARATOR+set}" != set; then
13751 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13752 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13759 # We need space, tab and new line, in precisely that order. Quoting is
13760 # there to prevent editors from complaining about space-tab.
13761 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13762 # splitting by setting IFS to empty value.)
13765 # Find who we are. Look in the path if we contain no directory separator.
13767 *[\\/]* ) as_myself=$0 ;;
13768 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13769 for as_dir in $PATH
13772 test -z "$as_dir" && as_dir=.
13773 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13779 # We did not find ourselves, most probably we were run as `sh COMMAND'
13780 # in which case we are not to be found in the path.
13781 if test "x$as_myself" = x
; then
13784 if test ! -f "$as_myself"; then
13785 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13789 # Unset variables that we do not need and which cause bugs (e.g. in
13790 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13791 # suppresses any "Segmentation fault" message there. '((' could
13792 # trigger a bug in pdksh 5.2.14.
13793 for as_var
in BASH_ENV ENV MAIL MAILPATH
13794 do eval test x\
${$as_var+set} = xset \
13795 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
13808 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
13811 # as_fn_error ERROR [LINENO LOG_FD]
13812 # ---------------------------------
13813 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13814 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13815 # script with status $?, using 1 if that was 0.
13818 as_status
=$?
; test $as_status -eq 0 && as_status
=1
13820 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
13821 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13823 $as_echo "$as_me: error: $1" >&2
13824 as_fn_exit
$as_status
13828 # as_fn_set_status STATUS
13829 # -----------------------
13830 # Set $? to STATUS, without forking.
13831 as_fn_set_status
()
13834 } # as_fn_set_status
13836 # as_fn_exit STATUS
13837 # -----------------
13838 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13842 as_fn_set_status
$1
13848 # Portably unset VAR.
13851 { eval $1=; unset $1;}
13853 as_unset
=as_fn_unset
13854 # as_fn_append VAR VALUE
13855 # ----------------------
13856 # Append the text in VALUE to the end of the definition contained in VAR. Take
13857 # advantage of any shell optimizations that allow amortized linear growth over
13858 # repeated appends, instead of the typical quadratic growth present in naive
13860 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
13861 eval 'as_fn_append ()
13872 # as_fn_arith ARG...
13873 # ------------------
13874 # Perform arithmetic evaluation on the ARGs, and store the result in the
13875 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13876 # must be portable across $(()) and expr.
13877 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
13878 eval 'as_fn_arith ()
13885 as_val
=`expr "$@" || test $? -eq 1`
13890 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13891 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13897 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13898 as_basename
=basename
13903 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13909 as_me
=`$as_basename -- "$0" ||
13910 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13911 X"$0" : 'X\(//\)$' \| \
13912 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13914 sed '/^.*\/\([^/][^/]*\)\/*$/{
13928 # Avoid depending upon Character Ranges.
13929 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13930 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13931 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13932 as_cr_digits
='0123456789'
13933 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13935 ECHO_C
= ECHO_N
= ECHO_T
=
13936 case `echo -n x` in #(((((
13938 case `echo 'xy\c'` in
13939 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13941 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
13948 rm -f conf$$ conf$$.exe conf$$.
file
13949 if test -d conf$$.dir
; then
13950 rm -f conf$$.dir
/conf$$.
file
13953 mkdir conf$$.dir
2>/dev
/null
13955 if (echo >conf$$.
file) 2>/dev
/null
; then
13956 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13958 # ... but there are two gotchas:
13959 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13960 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13961 # In both cases, we have to default to `cp -p'.
13962 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
13964 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13972 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13973 rmdir conf$$.dir
2>/dev
/null
13978 # Create "$as_dir" as a directory, including parents if necessary.
13983 -*) as_dir
=.
/$as_dir;;
13985 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
13989 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13990 *) as_qdir
=$as_dir;;
13992 as_dirs
="'$as_qdir' $as_dirs"
13993 as_dir
=`$as_dirname -- "$as_dir" ||
13994 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13995 X"$as_dir" : 'X\(//\)[^/]' \| \
13996 X"$as_dir" : 'X\(//\)$' \| \
13997 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13998 $as_echo X"$as_dir" |
13999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14003 /^X\(\/\/\)[^/].*/{
14016 test -d "$as_dir" && break
14018 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14019 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
14023 if mkdir
-p .
2>/dev
/null
; then
14024 as_mkdir_p
='mkdir -p "$as_dir"'
14026 test -d .
/-p && rmdir .
/-p
14030 if test -x / >/dev
/null
2>&1; then
14031 as_test_x
='test -x'
14033 if ls -dL / >/dev
/null
2>&1; then
14040 if test -d "$1"; then
14046 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14047 ???[sx]*):;;*)false;;esac;fi
14051 as_executable_p
=$as_test_x
14053 # Sed expression to map a string onto a valid CPP name.
14054 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14056 # Sed expression to map a string onto a valid variable name.
14057 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14061 ## ----------------------------------- ##
14062 ## Main body of $CONFIG_STATUS script. ##
14063 ## ----------------------------------- ##
14065 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14068 # Save the log message, to keep $0 and so on meaningful, and to
14069 # report actual input values of CONFIG_FILES etc. instead of their
14070 # values after options handling.
14072 This file was extended by $as_me, which was
14073 generated by GNU Autoconf 2.64. Invocation command line was
14075 CONFIG_FILES = $CONFIG_FILES
14076 CONFIG_HEADERS = $CONFIG_HEADERS
14077 CONFIG_LINKS = $CONFIG_LINKS
14078 CONFIG_COMMANDS = $CONFIG_COMMANDS
14081 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14086 case $ac_config_files in *"
14087 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14090 case $ac_config_headers in *"
14091 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14096 # Files that config.status was made for.
14097 config_files="$ac_config_files"
14098 config_headers="$ac_config_headers"
14099 config_links="$ac_config_links"
14100 config_commands="$ac_config_commands"
14104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14106 \`$as_me' instantiates files and other configuration actions
14107 from templates according to the current configuration. Unless the files
14108 and actions are specified as TAGs, all are instantiated by default.
14110 Usage: $0 [OPTION]... [TAG]...
14112 -h, --help print this help, then exit
14113 -V, --version print version number and configuration settings, then exit
14114 -q, --quiet, --silent
14115 do not print progress messages
14116 -d, --debug don't remove temporary files
14117 --recheck update $as_me by reconfiguring in the same conditions
14118 --file=FILE[:TEMPLATE]
14119 instantiate the configuration file FILE
14120 --header=FILE[:TEMPLATE]
14121 instantiate the configuration header FILE
14123 Configuration files:
14126 Configuration headers:
14129 Configuration links:
14132 Configuration commands:
14135 Report bugs to the package provider."
14138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14141 configured by $0, generated by GNU Autoconf 2.64,
14142 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14144 Copyright (C) 2009 Free Software Foundation, Inc.
14145 This config.status script is free software; the Free Software Foundation
14146 gives unlimited permission to copy, distribute and modify it."
14152 test -n "\$AWK" || AWK=awk
14155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14156 # The default lists apply if the user does not specify any file.
14162 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14163 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14174 # Handling of the options.
14175 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14177 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14178 $as_echo "$ac_cs_version"; exit ;;
14179 --debug |
--debu |
--deb |
--de |
--d |
-d )
14181 --file |
--fil |
--fi |
--f )
14184 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14186 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14187 ac_need_defaults
=false
;;
14188 --header |
--heade |
--head |
--hea )
14191 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14193 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14194 ac_need_defaults
=false
;;
14196 # Conflict between --help and --header
14197 as_fn_error
"ambiguous option: \`$1'
14198 Try \`$0 --help' for more information.";;
14199 --help |
--hel |
-h )
14200 $as_echo "$ac_cs_usage"; exit ;;
14201 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14202 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14205 # This is an error.
14206 -*) as_fn_error
"unrecognized option: \`$1'
14207 Try \`$0 --help' for more information." ;;
14209 *) as_fn_append ac_config_targets
" $1"
14210 ac_need_defaults
=false
;;
14216 ac_configure_extra_args
=
14218 if $ac_cs_silent; then
14220 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14225 if \$ac_cs_recheck; then
14226 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14228 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14229 CONFIG_SHELL='$SHELL'
14230 export CONFIG_SHELL
14235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14239 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14240 ## Running $as_me. ##
14246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14250 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14256 # Handling of arguments.
14257 for ac_config_target
in $ac_config_targets
14259 case $ac_config_target in
14260 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
14261 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
14262 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
14263 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
14264 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14265 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
14266 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
14267 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
14268 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
14270 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14275 # If the user did not use the arguments to specify the items to instantiate,
14276 # then the envvar interface is used. Set only those that are not.
14277 # We use the long form for the default assignment because of an extremely
14278 # bizarre bug on SunOS 4.1.3.
14279 if $ac_need_defaults; then
14280 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14281 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14282 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
14283 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14286 # Have a temporary directory for convenience. Make it in the build tree
14287 # simply because there is no reason against having it here, and in addition,
14288 # creating and moving files from /tmp can sometimes cause problems.
14289 # Hook for its removal unless debugging.
14290 # Note that there is a small window in which the directory will not be cleaned:
14291 # after its creation but before its name has been assigned to `$tmp'.
14295 trap 'exit_status=$?
14296 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14298 trap 'as_fn_exit 1' 1 2 13 15
14300 # Create a (secure) tmp directory for tmp files.
14303 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14304 test -n "$tmp" && test -d "$tmp"
14307 tmp
=.
/conf$$
-$RANDOM
14308 (umask 077 && mkdir
"$tmp")
14309 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
14311 # Set up the scripts for CONFIG_FILES section.
14312 # No need to generate them if there are no CONFIG_FILES.
14313 # This happens for instance with `./config.status config.h'.
14314 if test -n "$CONFIG_FILES"; then
14316 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
14317 ac_cs_awk_getline
=:
14318 ac_cs_awk_pipe_init
=
14319 ac_cs_awk_read_file
='
14320 while ((getline aline < (F[key])) > 0)
14323 ac_cs_awk_pipe_fini
=
14325 ac_cs_awk_getline
=false
14326 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
14327 ac_cs_awk_read_file
='
14329 print "cat " F[key] " &&"
14330 '$ac_cs_awk_pipe_init
14331 # The final `:' finishes the AND list.
14332 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
14334 ac_cr
=`echo X | tr X '\015'`
14335 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14336 # But we know of no other shell where ac_cr would be empty at this
14337 # point, so we can use a bashism as a fallback.
14338 if test "x$ac_cr" = x
; then
14339 eval ac_cr
=\$
\'\\r
\'
14341 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14342 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14345 ac_cs_awk_cr
=$ac_cr
14348 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14351 # Create commands to substitute file output variables.
14353 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14354 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14355 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
14358 } >conf$
$files.sh
&&
14359 . .
/conf$
$files.sh ||
14360 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
14361 rm -f conf$
$files.sh
14364 echo "cat >conf$$subs.awk <<_ACEOF" &&
14365 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14367 } >conf$$subs.sh ||
14368 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14369 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14371 for ac_last_try in false false false false false :; do
14372 . ./conf$$subs.sh ||
14373 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14375 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14376 if test $ac_delim_n = $ac_delim_num; then
14378 elif $ac_last_try; then
14379 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14381 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14384 rm -f conf$$subs.sh
14386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14387 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
14391 s/^/S["/; s
/!.
*/"]=/
14401 s/\(.\{148\}\).*/\1/
14403 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14408 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14415 s/\(.\{148\}\).*/\1/
14417 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14421 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14426 ' <conf$$subs.awk | sed '
14431 ' >>$CONFIG_STATUS || ac_write_fail=1
14432 rm -f conf$$subs.awk
14433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14435 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
14436 for (key in S) S_is_set[key] = 1
14438 \$ac_cs_awk_pipe_init
14442 nfields = split(line, field, "@
")
14444 len = length(field[1])
14445 for (i = 2; i < nfields; i++) {
14447 keylen = length(key)
14448 if (S_is_set[key]) {
14450 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14451 len += length(value) + length(field[++i])
14456 if (nfields == 3 && !substed) {
14458 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14459 \$ac_cs_awk_read_file
14465 \$ac_cs_awk_pipe_fini
14468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14469 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14470 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14473 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
14474 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
14477 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14478 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
14479 # trailing colons and then remove the whole line if VPATH becomes empty
14480 # (actually we leave an empty line to preserve line numbers).
14481 if test "x
$srcdir" = x.; then
14482 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14483 s/:*\$(srcdir):*/:/
14484 s/:*\${srcdir}:*/:/
14486 s/^\([^=]*=[ ]*\):*/\1/
14492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14493 fi # test -n "$CONFIG_FILES"
14495 # Set up the scripts for CONFIG_HEADERS section.
14496 # No need to generate them if there are no CONFIG_HEADERS.
14497 # This happens for instance with `./config.status Makefile'.
14498 if test -n "$CONFIG_HEADERS"; then
14499 cat >"$tmp/defines.
awk" <<\_ACAWK ||
14503 # Transform confdefs.h into an awk script `defines.awk', embedded as
14504 # here-document in config.status, that substitutes the proper values into
14505 # config.h.in to produce config.h.
14507 # Create a delimiter string that does not exist in confdefs.h, to ease
14508 # handling of long lines.
14510 for ac_last_try in false false :; do
14511 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
14512 if test -z "$ac_t"; then
14514 elif $ac_last_try; then
14515 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
14517 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14521 # For the awk script, D is an array of macro values keyed by name,
14522 # likewise P contains macro parameters if any. Preserve backslash
14523 # newline sequences.
14525 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14527 s/.\{148\}/&'"$ac_delim"'/g
14530 s/^[ ]*#[ ]*define[ ][ ]*/ /
14537 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14539 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14543 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14544 D["\
1"]=" \
3\\\\\\n
"\\/p
14546 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14551 s/.\{148\}/&'"$ac_delim"'/g
14556 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14559 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14561 ' <confdefs.h | sed '
14562 s/'"$ac_delim"'/"\\\
14563 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14566 for (key in D) D_is_set[key] = 1
14569 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14571 split(line, arg, " ")
14572 if (arg[1] == "#") {
14576 defundef
= substr
(arg
[1], 2)
14579 split(mac1
, mac2
, "(") #)
14581 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14582 if (D_is_set
[macro
]) {
14583 # Preserve the white space surrounding the "#".
14584 print prefix
"define", macro P
[macro
] D
[macro
]
14587 # Replace #undef with comments. This is necessary, for example,
14588 # in the case of _POSIX_SOURCE, which is predefined and required
14589 # on some systems where configure will not decide to define it.
14590 if (defundef
== "undef") {
14591 print
"/*", prefix defundef
, macro
, "*/"
14599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14600 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
14601 fi # test -n "$CONFIG_HEADERS"
14604 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
14609 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14611 case $ac_mode$ac_tag in
14613 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14614 :[FH
]-) ac_tag
=-:-;;
14615 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14632 -) ac_f
="$tmp/stdin";;
14633 *) # Look for the file first in the build tree, then in the source tree
14634 # (if the path is not absolute). The absolute path cannot be DOS-style,
14635 # because $ac_f cannot contain `:'.
14639 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14641 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
14643 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14644 as_fn_append ac_file_inputs
" '$ac_f'"
14647 # Let's still pretend it is `configure' which instantiates (i.e., don't
14648 # use $as_me), people would be surprised to read:
14649 # /* config.h. Generated by config.status. */
14650 configure_input
='Generated from '`
14651 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14653 if test x
"$ac_file" != x-
; then
14654 configure_input
="$ac_file. $configure_input"
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14656 $as_echo "$as_me: creating $ac_file" >&6;}
14658 # Neutralize special characters interpreted by sed in replacement strings.
14659 case $configure_input in #(
14660 *\
&* |
*\|
* |
*\\* )
14661 ac_sed_conf_input
=`$as_echo "$configure_input" |
14662 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14663 *) ac_sed_conf_input
=$configure_input;;
14667 *:-:* |
*:-) cat >"$tmp/stdin" \
14668 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
14673 ac_dir
=`$as_dirname -- "$ac_file" ||
14674 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14675 X"$ac_file" : 'X\(//\)[^/]' \| \
14676 X"$ac_file" : 'X\(//\)$' \| \
14677 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14678 $as_echo X"$ac_file" |
14679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14683 /^X\(\/\/\)[^/].*/{
14696 as_dir
="$ac_dir"; as_fn_mkdir_p
14700 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14702 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14703 # A ".." for each directory in $ac_dir_suffix.
14704 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14705 case $ac_top_builddir_sub in
14706 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14707 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14710 ac_abs_top_builddir
=$ac_pwd
14711 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14712 # for backward compatibility:
14713 ac_top_builddir
=$ac_top_build_prefix
14716 .
) # We are building in place.
14718 ac_top_srcdir
=$ac_top_builddir_sub
14719 ac_abs_top_srcdir
=$ac_pwd ;;
14720 [\\/]* | ?
:[\\/]* ) # Absolute name.
14721 ac_srcdir
=$srcdir$ac_dir_suffix;
14722 ac_top_srcdir
=$srcdir
14723 ac_abs_top_srcdir
=$srcdir ;;
14724 *) # Relative name.
14725 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14726 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14727 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14729 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14739 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14740 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
14744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14745 # If the template does not know about datarootdir, expand it.
14746 # FIXME: This hack should be removed a few years after 2.60.
14747 ac_datarootdir_hack
=; ac_datarootdir_seen
=
14758 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14759 *datarootdir
*) ac_datarootdir_seen
=yes;;
14760 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14762 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14765 ac_datarootdir_hack='
14766 s&@datadir@&$datadir&g
14767 s&@docdir@&$docdir&g
14768 s&@infodir@&$infodir&g
14769 s&@localedir@&$localedir&g
14770 s&@mandir@&$mandir&g
14771 s&\\\${datarootdir}&$datarootdir&g' ;;
14775 # Neutralize VPATH when `$srcdir' = `.'.
14776 # Shell code in configure.ac might set extrasub.
14777 # FIXME: do we really want to maintain this feature?
14778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14779 ac_sed_extra="$ac_vpsub
14782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14784 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14785 s|@configure_input@|
$ac_sed_conf_input|
;t t
14786 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
14787 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
14788 s
&@srcdir@
&$ac_srcdir&;t t
14789 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
14790 s
&@top_srcdir@
&$ac_top_srcdir&;t t
14791 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
14792 s
&@builddir@
&$ac_builddir&;t t
14793 s
&@abs_builddir@
&$ac_abs_builddir&;t t
14794 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
14795 s
&@INSTALL@
&$ac_INSTALL&;t t
14796 $ac_datarootdir_hack
14798 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14799 if $ac_cs_awk_getline; then
14800 $AWK -f "$tmp/subs.
awk"
14802 $AWK -f "$tmp/subs.
awk" | $SHELL
14804 || as_fn_error "could not create
$ac_file" "$LINENO" 5
14806 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14807 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
14808 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
14810 which seems to be undefined. Please make sure it is defined." >&5
14811 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
14812 which seems to be undefined. Please make sure it is defined." >&2;}
14816 -) cat "$tmp/out" && rm -f "$tmp/out";;
14817 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14819 || as_fn_error "could not create $ac_file" "$LINENO" 5
14825 if test x"$ac_file" != x-; then
14827 $as_echo "/* $configure_input */" \
14828 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14829 } >"$tmp/config.h" \
14830 || as_fn_error "could not create $ac_file" "$LINENO" 5
14831 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14833 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14836 mv "$tmp/config.h" "$ac_file" \
14837 || as_fn_error "could not create $ac_file" "$LINENO" 5
14840 $as_echo "/* $configure_input */" \
14841 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14842 || as_fn_error "could not create -" "$LINENO" 5
14850 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
14853 # Prefer the file from the source tree if names are identical.
14854 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14855 ac_source=$srcdir/$ac_source
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14859 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14861 if test ! -r "$ac_source"; then
14862 as_fn_error "$ac_source: file not found" "$LINENO" 5
14866 # Try a relative symlink, then a hard link, then a copy.
14868 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14869 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14871 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14872 ln "$ac_source" "$ac_file" 2>/dev/null ||
14873 cp -p "$ac_source" "$ac_file" ||
14874 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14877 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14878 $as_echo "$as_me: executing $ac_file commands" >&6;}
14883 case $ac_file$ac_mode in
14884 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
14886 case x$CONFIG_HEADERS in
14887 xconfig.h:config.in)
14898 ac_clean_files=$ac_clean_files_save
14900 test $ac_write_fail = 0 ||
14901 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14904 # configure is writing to config.log, and then calls config.status.
14905 # config.status does its own redirection, appending to config.log.
14906 # Unfortunately, on DOS this fails, as config.log is still kept open
14907 # by configure, so config.status won't be able to
write to it
; its
14908 # output is simply discarded. So we exec the FD to /dev/null,
14909 # effectively closing config.log, so it can be properly (re)opened and
14910 # appended to by config.status. When coming back to configure, we
14911 # need to make the FD available again.
14912 if test "$no_create" != yes; then
14914 ac_config_status_args
=
14915 test "$silent" = yes &&
14916 ac_config_status_args
="$ac_config_status_args --quiet"
14918 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14920 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14921 # would make configure fail if this is the last instruction.
14922 $ac_cs_success || as_fn_exit $?
14926 # CONFIG_SUBDIRS section.
14928 if test "$no_recursion" != yes; then
14930 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14931 # so they do not pile up.
14932 ac_sub_configure_args
=
14934 eval "set x $ac_configure_args"
14938 if test -n "$ac_prev"; then
14943 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
14944 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
14945 ac_prev
=cache_file
;;
14946 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
14947 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
14950 --config-cache |
-C)
14952 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
14954 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
14956 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
14958 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
14960 --disable-option-checking)
14964 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14966 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
14970 # Always prepend --prefix to ensure using the same prefix
14971 # in subdir configurations.
14972 ac_arg
="--prefix=$prefix"
14974 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14976 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
14979 if test "$silent" = yes; then
14980 ac_sub_configure_args
="--silent $ac_sub_configure_args"
14983 # Always prepend --disable-option-checking to silence warnings, since
14984 # different subdirs can have different --enable and --with options.
14985 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
14988 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
14990 # Do not complain, so a configure script can configure whichever
14991 # parts of a large source tree are present.
14992 test -d "$srcdir/$ac_dir" ||
continue
14994 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14995 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14996 $as_echo "$ac_msg" >&6
14997 as_dir
="$ac_dir"; as_fn_mkdir_p
15001 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15003 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15004 # A ".." for each directory in $ac_dir_suffix.
15005 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15006 case $ac_top_builddir_sub in
15007 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15008 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15011 ac_abs_top_builddir
=$ac_pwd
15012 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15013 # for backward compatibility:
15014 ac_top_builddir
=$ac_top_build_prefix
15017 .
) # We are building in place.
15019 ac_top_srcdir
=$ac_top_builddir_sub
15020 ac_abs_top_srcdir
=$ac_pwd ;;
15021 [\\/]* | ?
:[\\/]* ) # Absolute name.
15022 ac_srcdir
=$srcdir$ac_dir_suffix;
15023 ac_top_srcdir
=$srcdir
15024 ac_abs_top_srcdir
=$srcdir ;;
15025 *) # Relative name.
15026 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15027 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15028 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15030 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15035 # Check for guested configure; otherwise get Cygnus style configure.
15036 if test -f "$ac_srcdir/configure.gnu"; then
15037 ac_sub_configure
=$ac_srcdir/configure.gnu
15038 elif test -f "$ac_srcdir/configure"; then
15039 ac_sub_configure
=$ac_srcdir/configure
15040 elif test -f "$ac_srcdir/configure.in"; then
15041 # This should be Cygnus configure.
15042 ac_sub_configure
=$ac_aux_dir/configure
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15045 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15049 # The recursion is here.
15050 if test -n "$ac_sub_configure"; then
15051 # Make the cache file name correct relative to the subdirectory.
15052 case $cache_file in
15053 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
15054 *) # Relative name.
15055 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15059 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15060 # The eval makes quoting arguments work.
15061 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15062 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15063 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15069 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15071 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}