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
781 with_auto_load_safe_path
807 enable_build_warnings
808 enable_gdb_build_warnings
816 ac_precious_vars
='build_alias
830 ac_subdirs_all
='testsuite
835 # Initialize some variables set by options.
837 ac_init_version
=false
838 ac_unrecognized_opts
=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
849 program_transform_name
=s
,x
,x
,
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir
='${exec_prefix}/bin'
864 sbindir
='${exec_prefix}/sbin'
865 libexecdir
='${exec_prefix}/libexec'
866 datarootdir
='${prefix}/share'
867 datadir
='${datarootdir}'
868 sysconfdir
='${prefix}/etc'
869 sharedstatedir
='${prefix}/com'
870 localstatedir
='${prefix}/var'
871 includedir
='${prefix}/include'
872 oldincludedir
='/usr/include'
873 docdir
='${datarootdir}/doc/${PACKAGE}'
874 infodir
='${datarootdir}/info'
879 libdir
='${exec_prefix}/lib'
880 localedir
='${datarootdir}/locale'
881 mandir
='${datarootdir}/man'
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\
$ac_option
895 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 # Accept the important Cygnus configure options, so we can diagnose typos.
901 case $ac_dashdash$ac_option in
905 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
907 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
910 -build |
--build |
--buil |
--bui |
--bu)
911 ac_prev
=build_alias
;;
912 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
913 build_alias
=$ac_optarg ;;
915 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
916 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
917 ac_prev
=cache_file
;;
918 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
919 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
920 cache_file
=$ac_optarg ;;
923 cache_file
=config.cache
;;
925 -datadir |
--datadir |
--datadi |
--datad)
927 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
928 datadir
=$ac_optarg ;;
930 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
931 |
--dataroo |
--dataro |
--datar)
932 ac_prev
=datarootdir
;;
933 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
934 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
935 datarootdir
=$ac_optarg ;;
937 -disable-* |
--disable-*)
938 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
941 as_fn_error
"invalid feature name: $ac_useropt"
942 ac_useropt_orig
=$ac_useropt
943 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
948 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep
=', ';;
951 eval enable_
$ac_useropt=no
;;
953 -docdir |
--docdir |
--docdi |
--doc |
--do)
955 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
958 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
960 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
963 -enable-* |
--enable-*)
964 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
967 as_fn_error
"invalid feature name: $ac_useropt"
968 ac_useropt_orig
=$ac_useropt
969 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
974 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep
=', ';;
977 eval enable_
$ac_useropt=\
$ac_optarg ;;
979 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
980 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
981 |
--exec |
--exe |
--ex)
982 ac_prev
=exec_prefix
;;
983 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
984 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
985 |
--exec=* |
--exe=* |
--ex=*)
986 exec_prefix
=$ac_optarg ;;
988 -gas |
--gas |
--ga |
--g)
989 # Obsolete; use --with-gas.
992 -help |
--help |
--hel |
--he |
-h)
994 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
995 ac_init_help
=recursive
;;
996 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
997 ac_init_help
=short
;;
999 -host |
--host |
--hos |
--ho)
1000 ac_prev
=host_alias
;;
1001 -host=* |
--host=* |
--hos=* |
--ho=*)
1002 host_alias
=$ac_optarg ;;
1004 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1006 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1008 htmldir
=$ac_optarg ;;
1010 -includedir |
--includedir |
--includedi |
--included |
--include \
1011 |
--includ |
--inclu |
--incl |
--inc)
1012 ac_prev
=includedir
;;
1013 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1014 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1015 includedir
=$ac_optarg ;;
1017 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1019 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1020 infodir
=$ac_optarg ;;
1022 -libdir |
--libdir |
--libdi |
--libd)
1024 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1025 libdir
=$ac_optarg ;;
1027 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1028 |
--libexe |
--libex |
--libe)
1029 ac_prev
=libexecdir
;;
1030 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1031 |
--libexe=* |
--libex=* |
--libe=*)
1032 libexecdir
=$ac_optarg ;;
1034 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1035 ac_prev
=localedir
;;
1036 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1037 localedir
=$ac_optarg ;;
1039 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1040 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1041 ac_prev
=localstatedir
;;
1042 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1043 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1044 localstatedir
=$ac_optarg ;;
1046 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1048 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1049 mandir
=$ac_optarg ;;
1051 -nfp |
--nfp |
--nf)
1052 # Obsolete; use --without-fp.
1055 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1056 |
--no-cr |
--no-c |
-n)
1059 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1060 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1063 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1064 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1065 |
--oldin |
--oldi |
--old |
--ol |
--o)
1066 ac_prev
=oldincludedir
;;
1067 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1068 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1069 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1070 oldincludedir
=$ac_optarg ;;
1072 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1074 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1075 prefix
=$ac_optarg ;;
1077 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1078 |
--program-pre |
--program-pr |
--program-p)
1079 ac_prev
=program_prefix
;;
1080 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1081 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1082 program_prefix
=$ac_optarg ;;
1084 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1085 |
--program-suf |
--program-su |
--program-s)
1086 ac_prev
=program_suffix
;;
1087 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1088 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1089 program_suffix
=$ac_optarg ;;
1091 -program-transform-name |
--program-transform-name \
1092 |
--program-transform-nam |
--program-transform-na \
1093 |
--program-transform-n |
--program-transform- \
1094 |
--program-transform |
--program-transfor \
1095 |
--program-transfo |
--program-transf \
1096 |
--program-trans |
--program-tran \
1097 |
--progr-tra |
--program-tr |
--program-t)
1098 ac_prev
=program_transform_name
;;
1099 -program-transform-name=* |
--program-transform-name=* \
1100 |
--program-transform-nam=* |
--program-transform-na=* \
1101 |
--program-transform-n=* |
--program-transform-=* \
1102 |
--program-transform=* |
--program-transfor=* \
1103 |
--program-transfo=* |
--program-transf=* \
1104 |
--program-trans=* |
--program-tran=* \
1105 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1106 program_transform_name
=$ac_optarg ;;
1108 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1110 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1111 pdfdir
=$ac_optarg ;;
1113 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1115 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1118 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1119 |
-silent |
--silent |
--silen |
--sile |
--sil)
1122 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1124 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1126 sbindir
=$ac_optarg ;;
1128 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1129 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1130 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1132 ac_prev
=sharedstatedir
;;
1133 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1134 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1135 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1137 sharedstatedir
=$ac_optarg ;;
1139 -site |
--site |
--sit)
1141 -site=* |
--site=* |
--sit=*)
1144 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1146 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1147 srcdir
=$ac_optarg ;;
1149 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1150 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1151 ac_prev
=sysconfdir
;;
1152 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1153 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1154 sysconfdir
=$ac_optarg ;;
1156 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1157 ac_prev
=target_alias
;;
1158 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1159 target_alias
=$ac_optarg ;;
1161 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1164 -version |
--version |
--versio |
--versi |
--vers |
-V)
1165 ac_init_version
=: ;;
1168 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1171 as_fn_error
"invalid package name: $ac_useropt"
1172 ac_useropt_orig
=$ac_useropt
1173 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1178 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep
=', ';;
1181 eval with_
$ac_useropt=\
$ac_optarg ;;
1183 -without-* |
--without-*)
1184 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1187 as_fn_error
"invalid package name: $ac_useropt"
1188 ac_useropt_orig
=$ac_useropt
1189 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1194 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep
=', ';;
1197 eval with_
$ac_useropt=no
;;
1200 # Obsolete; use --with-x.
1203 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1204 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1205 ac_prev
=x_includes
;;
1206 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1207 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1208 x_includes
=$ac_optarg ;;
1210 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1211 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1212 ac_prev
=x_libraries
;;
1213 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1214 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1215 x_libraries
=$ac_optarg ;;
1217 -*) as_fn_error
"unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information."
1222 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1226 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1228 eval $ac_envvar=\
$ac_optarg
1229 export $ac_envvar ;;
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1242 if test -n "$ac_prev"; then
1243 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error
"missing argument to $ac_option"
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1250 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 # Check all directory arguments for consistency.
1256 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1261 eval ac_val
=\$
$ac_var
1262 # Remove trailing slashes.
1265 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\
$ac_val;;
1268 # Be sure to have absolute directory names.
1270 [\\/$
]* | ?
:[\\/]* ) continue;;
1271 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1273 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1281 target
=$target_alias
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x
; then
1285 if test "x$build_alias" = x
; then
1286 cross_compiling
=maybe
1287 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288 If a cross compiler is detected then cross compile mode will be used." >&2
1289 elif test "x$build_alias" != "x$host_alias"; then
1295 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1297 test "$silent" = yes && exec 6>/dev
/null
1300 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di
=`ls -di .` &&
1302 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error
"working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error
"pwd does not report name of working directory"
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted
=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir
=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1340 ac_srcdir_defaulted
=no
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1344 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1346 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1358 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 for ac_var
in $ac_precious_vars; do
1361 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1363 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1374 \`configure' configures this package to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1437 --x-includes=DIR X include files are
in DIR
1438 --x-libraries=DIR X library files are
in DIR
1441 --build=BUILD configure
for building on BUILD
[guessed
]
1442 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1443 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1447 if test -n "$ac_init_help"; then
1452 --disable-option-checking ignore unrecognized
--enable/--with options
1453 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1454 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1455 --enable-maintainer-mode enable make rules and dependencies not useful
1456 (and sometimes confusing
) to the casual installer
1457 --enable-plugins Enable support
for plugins
(defaults no
)
1458 --disable-largefile omit support
for large files
1459 --enable-targets=TARGETS
1460 alternative target configurations
1461 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1462 --disable-gdbcli disable command-line interface
(CLI
)
1463 --disable-gdbmi disable machine-interface
(MI
)
1464 --enable-tui enable full-screen terminal user interface
(TUI
)
1465 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1466 --enable-profiling enable profiling of GDB
1467 --disable-rpath do not hardcode runtime library paths
1468 --enable-werror treat compile warnings as errors
1469 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1470 --enable-gdb-build-warnings
1471 enable GDB specific build-time compiler warnings
if
1473 --enable-sim link gdb with simulator
1474 --enable-multi-ice build the multi-ice-gdb-server
1475 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1479 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1480 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1481 --with-separate-debug-dir=PATH
1482 look for global separate debug info
in this path
1484 --with-gdb-datadir=PATH
look for global separate data files
in this path
1486 --with-relocated-sources=PATH
1487 automatically relocate this path
for source files
1488 --with-auto-load-safe-path=PATH
1489 directories safe to hold auto-loaded files
, use
1490 $ddir for --with-gdb-datadir path
[$ddir/auto-load
]
1491 --without-auto-load-safe-path
1492 do not restrict auto-loaded files locations
1493 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1494 --with-curses use the curses library instead of the termcap
1496 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1497 --with-bugurl=URL Direct users to URL to report a bug
1498 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1499 --with-libiconv-prefix=DIR
1500 search
for libiconv
in DIR
/include and DIR
/lib
1501 --with-iconv-bin=PATH specify where to
find the
iconv program
1502 --with-system-readline use installed readline library
1503 --with-jit-reader-dir=PATH
1504 directory to load the JIT readers from
1505 --with-expat include expat support
(auto
/yes
/no
)
1506 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1507 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1508 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1509 --with-python[=PYTHON] include python support
1510 (auto/yes/no/<python-program>)
1511 --without-included-regex
1512 don't use included regex
; this is the default on
1513 systems with version
2 of the GNU C library
(use
1514 with caution on other system
)
1515 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1516 --with-system-gdbinit=PATH
1517 automatically load a system-wide gdbinit
file
1518 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1519 --with-tk directory containing tk configuration
(tkConfig.sh
)
1520 --with-x use the X Window System
1522 Some influential environment variables
:
1523 CC C compiler
command
1524 CFLAGS C compiler flags
1525 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1526 nonstandard directory
<lib dir
>
1527 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1528 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1529 you have headers
in a nonstandard directory
<include dir
>
1531 MAKEINFO Parent configure detects
if it is of sufficient version.
1533 Parameters
for MAKEINFO.
1534 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1535 the first program found out of: `bison
-y', `byacc', `yacc'.
1536 YFLAGS The list of arguments that will be passed by default to $YACC.
1537 This script will default YFLAGS to the empty string to avoid a
1538 default value of `-d' given by some make applications.
1539 XMKMF Path to xmkmf, Makefile generator for X Window System
1541 Use these variables to override the choices made by `configure' or to
help
1542 it to
find libraries and programs with nonstandard names
/locations.
1544 Report bugs to the package provider.
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1558 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1560 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1565 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1568 ac_abs_top_builddir
=$ac_pwd
1569 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir
=$ac_top_build_prefix
1574 .
) # We are building in place.
1576 ac_top_srcdir
=$ac_top_builddir_sub
1577 ac_abs_top_srcdir
=$ac_pwd ;;
1578 [\\/]* | ?
:[\\/]* ) # Absolute name.
1579 ac_srcdir
=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir
=$srcdir
1581 ac_abs_top_srcdir
=$srcdir ;;
1583 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1587 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1589 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1608 generated by GNU Autoconf
2.64
1610 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1611 This configure
script is free software
; the Free Software Foundation
1612 gives unlimited permission to copy
, distribute and modify it.
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile
()
1626 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1627 rm -f conftest.
$ac_objext
1628 if { { ac_try
="$ac_compile"
1630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext; then :
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657 } # ac_fn_c_try_compile
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_cpp conftest.$ac_ext"
1667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1668 *) ac_try_echo
=$ac_try;;
1670 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1674 if test -s conftest.err
; then
1675 grep -v '^ *+' conftest.err
>conftest.er1
1676 cat conftest.er1
>&5
1677 mv -f conftest.er1 conftest.err
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } >/dev
/null
&& {
1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.
$ac_ext >&5
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1696 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1697 # -------------------------------------------------------
1698 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1699 # the include files in INCLUDES and setting the cache variable VAR
1701 ac_fn_c_check_header_mongrel
()
1703 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1704 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1708 $as_echo_n "(cached) " >&6
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 $as_echo "$ac_res" >&6; }
1714 # Is the header compilable?
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1716 $as_echo_n "checking $2 usability... " >&6; }
1717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1722 if ac_fn_c_try_compile
"$LINENO"; then :
1723 ac_header_compiler
=yes
1725 ac_header_compiler
=no
1727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1729 $as_echo "$ac_header_compiler" >&6; }
1731 # Is the header present?
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1733 $as_echo_n "checking $2 presence... " >&6; }
1734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1738 if ac_fn_c_try_cpp
"$LINENO"; then :
1739 ac_header_preproc
=yes
1741 ac_header_preproc
=no
1743 rm -f conftest.err conftest.
$ac_ext
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1745 $as_echo "$ac_header_preproc" >&6; }
1747 # So? What about this header?
1748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1751 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1753 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1757 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1759 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1761 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1763 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1765 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1771 $as_echo_n "(cached) " >&6
1773 eval "$3=\$ac_header_compiler"
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1781 } # ac_fn_c_check_header_mongrel
1783 # ac_fn_c_try_run LINENO
1784 # ----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1786 # that executables *can* be run.
1789 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1790 if { { ac_try
="$ac_link"
1792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>&5
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1801 { { case "(($ac_try" in
1802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1803 *) ac_try_echo
=$ac_try;;
1805 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_try") 2>&5
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; }; }; then :
1813 $as_echo "$as_me: program exited with status $ac_status" >&5
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.
$ac_ext >&5
1817 ac_retval
=$ac_status
1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1825 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1826 # -------------------------------------------------------
1827 # Tests whether HEADER exists and can be compiled using the include files in
1828 # INCLUDES, setting the cache variable VAR accordingly.
1829 ac_fn_c_check_header_compile
()
1831 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1835 $as_echo_n "(cached) " >&6
1837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1842 if ac_fn_c_try_compile
"$LINENO"; then :
1847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1854 } # ac_fn_c_check_header_compile
1856 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1857 # --------------------------------------------
1858 # Tries to find the compile-time value of EXPR in a program that includes
1859 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1861 ac_fn_c_compute_int
()
1863 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1864 if test "$cross_compiling" = yes; then
1865 # Depending upon the size, compute the lo and hi bounds.
1866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1872 static int test_array [1 - 2 * !(($2) >= 0)];
1879 if ac_fn_c_try_compile
"$LINENO"; then :
1882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1888 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1895 if ac_fn_c_try_compile
"$LINENO"; then :
1896 ac_hi
=$ac_mid; break
1898 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1899 if test $ac_lo -le $ac_mid; then
1903 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1914 static int test_array [1 - 2 * !(($2) < 0)];
1921 if ac_fn_c_try_compile
"$LINENO"; then :
1924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1930 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1937 if ac_fn_c_try_compile
"$LINENO"; then :
1938 ac_lo
=$ac_mid; break
1940 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1941 if test $ac_mid -le $ac_hi; then
1945 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
1947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1955 # Binary search between lo and hi bounds.
1956 while test "x$ac_lo" != "x$ac_hi"; do
1957 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
1958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1964 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1971 if ac_fn_c_try_compile
"$LINENO"; then :
1974 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
1976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1979 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
1983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1986 static long int longval () { return $2; }
1987 static unsigned long int ulongval () { return $2; }
1994 FILE *f = fopen ("conftest.val", "w");
1999 long int i = longval ();
2002 fprintf (f, "%ld", i);
2006 unsigned long int i = ulongval ();
2009 fprintf (f, "%lu", i);
2011 /* Do not output a trailing newline, as this causes \r\n confusion
2012 on some platforms. */
2013 return ferror (f) || fclose (f) != 0;
2019 if ac_fn_c_try_run
"$LINENO"; then :
2020 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2024 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2025 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2029 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2032 } # ac_fn_c_compute_int
2034 # ac_fn_c_try_link LINENO
2035 # -----------------------
2036 # Try to link conftest.$ac_ext, and return whether this succeeded.
2039 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2040 rm -f conftest.
$ac_objext conftest
$ac_exeext
2041 if { { ac_try
="$ac_link"
2043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_link") 2>conftest.err
2050 if test -s conftest.err; then
2051 grep -v '^ *+' conftest.err >conftest.er1
2052 cat conftest.er1 >&5
2053 mv -f conftest.er1 conftest.err
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; } && {
2057 test -z "$ac_c_werror_flag" ||
2058 test ! -s conftest.err
2059 } && test -s conftest$ac_exeext && {
2060 test "$cross_compiling" = yes ||
2061 $as_test_x conftest$ac_exeext
2065 $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2070 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2071 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2072 # interfere with the next link command; also delete a directory that is
2073 # left behind by Apple's compiler. We do this before executing the actions.
2074 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2075 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078 } # ac_fn_c_try_link
2080 # ac_fn_c_check_func LINENO FUNC VAR
2081 # ----------------------------------
2082 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2083 ac_fn_c_check_func ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2089 $as_echo_n "(cached) " >&6
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2093 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2095 #define $2 innocuous_$2
2097 /* System header to define __stub macros and hopefully few prototypes,
2098 which can conflict with char $2 (); below.
2099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2100 <limits.h> exists even on freestanding compilers. */
2103 # include <limits.h>
2105 # include <assert.h>
2110 /* Override any GCC internal prototype to avoid an error.
2111 Use char because int might match the return type of a GCC
2112 builtin and then its argument prototype would still apply. */
2117 /* The GNU C library defines this for functions which it implements
2118 to always fail with ENOSYS. Some functions are actually named
2119 something starting with __ and the normal name is an alias. */
2120 #if defined __stub_$2 || defined __stub___$2
2132 if ac_fn_c_try_link "$LINENO"; then :
2137 rm -f core conftest.err conftest.$ac_objext \
2138 conftest$ac_exeext conftest.$ac_ext
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145 } # ac_fn_c_check_func
2147 # ac_fn_c_check_decl LINENO SYMBOL VAR
2148 # ------------------------------------
2149 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2150 ac_fn_c_check_decl ()
2152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2154 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2156 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2157 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2158 $as_echo_n "(cached) " >&6
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2166 #ifndef $as_decl_name
2168 (void) $as_decl_use;
2170 (void) $as_decl_name;
2178 if ac_fn_c_try_compile "$LINENO"; then :
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 $as_echo "$ac_res" >&6; }
2188 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2190 } # ac_fn_c_check_decl
2192 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2193 # ----------------------------------------------------
2194 # Tries to find if the field MEMBER exists in type AGGR, after including
2195 # INCLUDES, setting cache variable VAR accordingly.
2196 ac_fn_c_check_member ()
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2200 $as_echo_n "checking for $2.$3... " >&6; }
2201 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2202 $as_echo_n "(cached) " >&6
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2217 if ac_fn_c_try_compile "$LINENO"; then :
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2227 if (sizeof ac_aggr.$3)
2233 if ac_fn_c_try_compile "$LINENO"; then :
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244 $as_echo "$ac_res" >&6; }
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2247 } # ac_fn_c_check_member
2249 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2250 # -------------------------------------------
2251 # Tests whether TYPE exists after having included INCLUDES, setting cache
2252 # variable VAR accordingly.
2253 ac_fn_c_check_type ()
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2257 $as_echo_n "checking for $2... " >&6; }
2258 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2259 $as_echo_n "(cached) " >&6
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2287 if ac_fn_c_try_compile "$LINENO"; then :
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298 $as_echo "$ac_res" >&6; }
2299 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2301 } # ac_fn_c_check_type
2302 cat >config.log <<_ACEOF
2303 This file contains any messages produced by compilers while
2304 running configure, to aid debugging if configure makes a mistake.
2306 It was created by $as_me, which was
2307 generated by GNU Autoconf 2.64. Invocation command line was
2319 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2320 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2321 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2322 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2323 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2325 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2326 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2328 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2329 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2330 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2331 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2332 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2333 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2334 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 test -z "$as_dir" && as_dir=.
2343 $as_echo "PATH: $as_dir"
2359 # Keep a trace of the command line.
2360 # Strip out --no-create and --no-recursion so they do not pile up.
2361 # Strip out --silent because we don't want to record it for future runs.
2362 # Also quote any args containing shell meta-characters.
2363 # Make two passes to allow for proper duplicate-argument suppression.
2367 ac_must_keep_next=false
2373 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2375 | -silent | --silent | --silen | --sile | --sil)
2378 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2381 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2383 as_fn_append ac_configure_args1 " '$ac_arg'"
2384 if test $ac_must_keep_next = true; then
2385 ac_must_keep_next=false # Got value, back to normal.
2388 *=* | --config-cache | -C | -disable-* | --disable-* \
2389 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2390 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2391 | -with-* | --with-* | -without-* | --without-* | --x)
2392 case "$ac_configure_args0 " in
2393 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2396 -* ) ac_must_keep_next=true ;;
2399 as_fn_append ac_configure_args " '$ac_arg'"
2404 { ac_configure_args0=; unset ac_configure_args0;}
2405 { ac_configure_args1=; unset ac_configure_args1;}
2407 # When interrupted or exit'd, cleanup temporary files, and complete
2408 # config.log. We remove comments because anyway the quotes in there
2409 # would cause problems or look ugly.
2410 # WARNING: Use '\'' to represent an apostrophe within the trap.
2411 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2412 trap 'exit_status=$?
2413 # Save into config.log some information that might help in debugging.
2418 ## ---------------- ##
2419 ## Cache variables. ##
2420 ## ---------------- ##
2423 # The following way of writing the cache mishandles newlines in values,
2425 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2426 eval ac_val=\$$ac_var
2430 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2431 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2434 _ | IFS | as_nl) ;; #(
2435 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2436 *) { eval $ac_var=; unset $ac_var;} ;;
2441 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2442 *${as_nl}ac_space=\ *)
2444 "s/'\''/'\''\\\\'\'''\''/g;
2445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2448 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2456 ## ----------------- ##
2457 ## Output variables. ##
2458 ## ----------------- ##
2461 for ac_var in $ac_subst_vars
2463 eval ac_val=\$$ac_var
2465 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2467 $as_echo "$ac_var='\''$ac_val'\''"
2471 if test -n "$ac_subst_files"; then
2473 ## ------------------- ##
2474 ## File substitutions. ##
2475 ## ------------------- ##
2478 for ac_var in $ac_subst_files
2480 eval ac_val=\$$ac_var
2482 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2484 $as_echo "$ac_var='\''$ac_val'\''"
2489 if test -s confdefs.h; then
2499 test "$ac_signal" != 0 &&
2500 $as_echo "$as_me: caught signal $ac_signal"
2501 $as_echo "$as_me: exit $exit_status"
2503 rm -f core *.core core.conftest.* &&
2504 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2507 for ac_signal in 1 2 13 15; do
2508 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2513 rm -f -r conftest* confdefs.h
2515 $as_echo "/* confdefs.h */" > confdefs.h
2517 # Predefined preprocessor variables.
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_NAME "$PACKAGE_NAME"
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_STRING "$PACKAGE_STRING"
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_URL "$PACKAGE_URL"
2544 # Let the site file select an alternate cache file if it wants to.
2545 # Prefer an explicitly selected file to automatically selected ones.
2548 if test -n "$CONFIG_SITE"; then
2549 ac_site_file1=$CONFIG_SITE
2550 elif test "x$prefix" != xNONE; then
2551 ac_site_file1=$prefix/share/config.site
2552 ac_site_file2=$prefix/etc/config.site
2554 ac_site_file1=$ac_default_prefix/share/config.site
2555 ac_site_file2=$ac_default_prefix/etc/config.site
2557 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2559 test "x$ac_site_file" = xNONE && continue
2560 if test -r "$ac_site_file"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2562 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2563 sed 's/^/| /' "$ac_site_file" >&5
2568 if test -r "$cache_file"; then
2569 # Some versions of bash will fail to source /dev/null (special
2570 # files actually), so we avoid doing that.
2571 if test -f "$cache_file"; then
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2573 $as_echo "$as_me: loading cache $cache_file" >&6;}
2575 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2576 *) . "./$cache_file";;
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2581 $as_echo "$as_me: creating cache $cache_file" >&6;}
2585 # Check that the precious variables saved in the cache have kept the same
2587 ac_cache_corrupted=false
2588 for ac_var in $ac_precious_vars; do
2589 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2590 eval ac_new_set=\$ac_env_${ac_var}_set
2591 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2592 eval ac_new_val=\$ac_env_${ac_var}_value
2593 case $ac_old_set,$ac_new_set in
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2596 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2597 ac_cache_corrupted=: ;;
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2600 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2601 ac_cache_corrupted=: ;;
2604 if test "x$ac_old_val" != "x$ac_new_val"; then
2605 # differences in whitespace do not lead to failure.
2606 ac_old_val_w=`echo x
$ac_old_val`
2607 ac_new_val_w=`echo x
$ac_new_val`
2608 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2610 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2611 ac_cache_corrupted=:
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2614 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2615 eval $ac_var=\$ac_old_val
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2618 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2620 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2623 # Pass precious variables to config.status.
2624 if test "$ac_new_set" = set; then
2626 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2627 *) ac_arg=$ac_var=$ac_new_val ;;
2629 case " $ac_configure_args " in
2630 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2631 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2635 if $ac_cache_corrupted; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2639 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2640 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2642 ## -------------------- ##
2643 ## Main body of script. ##
2644 ## -------------------- ##
2647 ac_cpp='$CPP $CPPFLAGS'
2648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 ac_config_headers="$ac_config_headers config.h:config.in"
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2660 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2661 # Check whether --enable-maintainer-mode was given.
2662 if test "${enable_maintainer_mode+set}" = set; then :
2663 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2665 USE_MAINTAINER_MODE=no
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2669 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2670 if test $USE_MAINTAINER_MODE = yes; then
2671 MAINTAINER_MODE_TRUE=
2672 MAINTAINER_MODE_FALSE='#'
2674 MAINTAINER_MODE_TRUE='#'
2675 MAINTAINER_MODE_FALSE=
2678 MAINT=$MAINTAINER_MODE_TRUE
2683 ac_cpp='$CPP $CPPFLAGS'
2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687 if test -n "$ac_tool_prefix"; then
2688 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2689 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if test "${ac_cv_prog_CC+set}" = set; then :
2693 $as_echo_n "(cached) " >&6
2695 if test -n "$CC"; then
2696 ac_cv_prog_CC="$CC" # Let the user override the test.
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 if test -n "$CC"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2718 $as_echo "$CC" >&6; }
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2726 if test -z "$ac_cv_prog_CC"; then
2728 # Extract the first word of "gcc", so it can be a program name with args.
2729 set dummy gcc; ac_word=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2733 $as_echo_n "(cached) " >&6
2735 if test -n "$ac_ct_CC"; then
2736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_ac_ct_CC="gcc"
2746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2758 $as_echo "$ac_ct_CC" >&6; }
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2764 if test "x$ac_ct_CC" = x; then
2767 case $cross_compiling:$ac_tool_warned in
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2771 ac_tool_warned=yes ;;
2779 if test -z "$CC"; then
2780 if test -n "$ac_tool_prefix"; then
2781 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2782 set dummy ${ac_tool_prefix}cc; ac_word=$2
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if test "${ac_cv_prog_CC+set}" = set; then :
2786 $as_echo_n "(cached) " >&6
2788 if test -n "$CC"; then
2789 ac_cv_prog_CC="$CC" # Let the user override the test.
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_CC="${ac_tool_prefix}cc"
2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 if test -n "$CC"; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2811 $as_echo "$CC" >&6; }
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2820 if test -z "$CC"; then
2821 # Extract the first word of "cc", so it can be a program name with args.
2822 set dummy cc; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if test "${ac_cv_prog_CC+set}" = set; then :
2826 $as_echo_n "(cached) " >&6
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2840 ac_prog_rejected=yes
2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 if test $ac_prog_rejected = yes; then
2852 # We found a bogon in the path, so make sure we never use it.
2853 set dummy $ac_cv_prog_CC
2855 if test $# != 0; then
2856 # We chose a different compiler from the bogus one.
2857 # However, it has the same basename, so the bogon will be chosen
2858 # first if we set CC to just the basename; use the full file name.
2860 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2866 if test -n "$CC"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868 $as_echo "$CC" >&6; }
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2876 if test -z "$CC"; then
2877 if test -n "$ac_tool_prefix"; then
2878 for ac_prog in cl.exe
2880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 if test -n "$CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2917 test -n "$CC" && break
2920 if test -z "$CC"; then
2922 for ac_prog in cl.exe
2924 # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2929 $as_echo_n "(cached) " >&6
2931 if test -n "$ac_ct_CC"; then
2932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_ac_ct_CC="$ac_prog"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2952 if test -n "$ac_ct_CC"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2954 $as_echo "$ac_ct_CC" >&6; }
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2961 test -n "$ac_ct_CC" && break
2964 if test "x$ac_ct_CC" = x; then
2967 case $cross_compiling:$ac_tool_warned in
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971 ac_tool_warned=yes ;;
2980 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982 as_fn_error "no acceptable C compiler found
in \
$PATH
2983 See \
`config.log' for more details." "$LINENO" 5; }
2985 # Provide some information about the compiler.
2986 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2989 for ac_option in --version -v -V -qversion; do
2990 { { ac_try="$ac_compiler $ac_option >&5"
2992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2993 *) ac_try_echo
=$ac_try;;
2995 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996 $as_echo "$ac_try_echo"; } >&5
2997 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2999 if test -s conftest.err
; then
3001 ... rest of stderr output deleted ...
3002 10q' conftest.err
>conftest.er1
3003 cat conftest.er1
>&5
3004 rm -f conftest.er1 conftest.err
3006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007 test $ac_status = 0; }
3010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h. */
3021 ac_clean_files_save
=$ac_clean_files
3022 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3023 # Try to create an executable without -o first, disregard a.out.
3024 # It will help us diagnose broken compilers, and finding out an intuition
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3027 $as_echo_n "checking for C compiler default output file name... " >&6; }
3028 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3030 # The possible output files:
3031 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3034 for ac_file
in $ac_files
3037 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3038 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3043 if { { ac_try
="$ac_link_default"
3045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3049 $as_echo "$ac_try_echo"; } >&5
3050 (eval "$ac_link_default") 2>&5
3052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3053 test $ac_status = 0; }; then :
3054 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3055 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3056 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3057 # so that the user can short-circuit this test for compilers unknown to
3059 for ac_file in $ac_files ''
3061 test -f "$ac_file" || continue
3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3066 # We found the default executable, but exeext='' is most
3070 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3072 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074 # We set ac_cv_exeext here because the later test for it is not
3075 # safe: cross compilers may not add the suffix if given an `-o'
3076 # argument, so we may need to know it at that point already.
3077 # Even if this section looks crufty: it has the advantage of
3084 test "$ac_cv_exeext" = no && ac_cv_exeext=
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3090 $as_echo "$ac_file" >&6; }
3091 if test -z "$ac_file"; then :
3092 $as_echo "$as_me: failed program was:" >&5
3093 sed 's
/^
/|
/' conftest.$ac_ext >&5
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3097 { as_fn_set_status 77
3098 as_fn_error "C compiler cannot create executables
3099 See \`config.log
' for more details." "$LINENO" 5; }; }
3101 ac_exeext=$ac_cv_exeext
3103 # Check that the compiler produces executables we can run. If not, either
3104 # the compiler is broken, or we cross compile.
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3106 $as_echo_n "checking whether the C compiler works... " >&6; }
3107 # If not cross compiling, check that we can run a simple program.
3108 if test "$cross_compiling" != yes; then
3109 if { ac_try='.
/$ac_file'
3110 { { case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115 $as_echo "$ac_try_echo"; } >&5
3116 (eval "$ac_try") 2>&5
3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119 test $ac_status = 0; }; }; then
3122 if test "$cross_compiling" = maybe; then
3125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3127 as_fn_error "cannot run C compiled programs.
3128 If you meant to cross compile, use \`--host'.
3129 See \`config.log' for more details.
" "$LINENO" 5; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3134 $as_echo "yes" >&6; }
3136 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3137 ac_clean_files=$ac_clean_files_save
3138 # Check that the compiler produces executables we can run. If not, either
3139 # the compiler is broken, or we cross compile.
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3141 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3143 $as_echo "$cross_compiling" >&6; }
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3146 $as_echo_n "checking
for suffix of executables...
" >&6; }
3147 if { { ac_try="$ac_link"
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153 $as_echo "$ac_try_echo"; } >&5
3154 (eval "$ac_link") 2>&5
3156 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3157 test $ac_status = 0; }; then :
3158 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3159 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3160 # work properly (i.e., refer to `conftest.exe'), while it won't with
3162 for ac_file in conftest.exe conftest conftest.*; do
3163 test -f "$ac_file" || continue
3165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3166 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 as_fn_error "cannot compute suffix of executables: cannot compile and link
3175 See \`config.log' for more details.
" "$LINENO" 5; }
3177 rm -f conftest$ac_cv_exeext
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3179 $as_echo "$ac_cv_exeext" >&6; }
3181 rm -f conftest.$ac_ext
3182 EXEEXT=$ac_cv_exeext
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3185 $as_echo_n "checking
for suffix of object files...
" >&6; }
3186 if test "${ac_cv_objext+set}" = set; then :
3187 $as_echo_n "(cached
) " >&6
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3200 rm -f conftest.o conftest.obj
3201 if { { ac_try="$ac_compile"
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_compile") 2>&5
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3211 test $ac_status = 0; }; then :
3212 for ac_file in conftest.o conftest.obj conftest.*; do
3213 test -f "$ac_file" || continue;
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3216 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3221 $as_echo "$as_me: failed program was
:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error "cannot compute suffix of object files: cannot compile
3227 See \`config.log' for more details.
" "$LINENO" 5; }
3229 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3232 $as_echo "$ac_cv_objext" >&6; }
3233 OBJEXT=$ac_cv_objext
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3236 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3237 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3238 $as_echo_n "(cached
) " >&6
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3254 if ac_fn_c_try_compile "$LINENO"; then :
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3264 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3265 if test $ac_compiler_gnu = yes; then
3270 ac_test_CFLAGS=${CFLAGS+set}
3271 ac_save_CFLAGS=$CFLAGS
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3273 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3274 if test "${ac_cv_prog_cc_g+set}" = set; then :
3275 $as_echo_n "(cached
) " >&6
3277 ac_save_c_werror_flag=$ac_c_werror_flag
3278 ac_c_werror_flag=yes
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3292 if ac_fn_c_try_compile "$LINENO"; then :
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3307 if ac_fn_c_try_compile "$LINENO"; then :
3310 ac_c_werror_flag=$ac_save_c_werror_flag
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3323 if ac_fn_c_try_compile "$LINENO"; then :
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 ac_c_werror_flag=$ac_save_c_werror_flag
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3334 $as_echo "$ac_cv_prog_cc_g" >&6; }
3335 if test "$ac_test_CFLAGS" = set; then
3336 CFLAGS=$ac_save_CFLAGS
3337 elif test $ac_cv_prog_cc_g = yes; then
3338 if test "$GCC" = yes; then
3344 if test "$GCC" = yes; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3351 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3352 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3353 $as_echo_n "(cached
) " >&6
3355 ac_cv_prog_cc_c89=no
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3361 #include <sys/types.h>
3362 #include <sys/stat.h>
3363 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3364 struct buf { int x; };
3365 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3366 static char *e (p, i)
3372 static char *f (char * (*g) (char **, int), char **p, ...)
3377 s = g (p, va_arg (v,int));
3382 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3383 function prototypes and stuff, but not '\xHH' hex character constants.
3384 These don't provoke an error unfortunately, instead are silently treated
3385 as 'x'. The following induces an error, until -std is added to get
3386 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3387 array size at least. It's necessary to write '\x00'==0 to get something
3388 that's true only with -std. */
3389 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3391 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3392 inside strings and character constants. */
3394 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3396 int test (int i, double x);
3397 struct s1 {int (*f) (int a);};
3398 struct s2 {int (*f) (double a);};
3399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3410 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3411 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3413 CC="$ac_save_CC $ac_arg"
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_cv_prog_cc_c89=$ac_arg
3417 rm -f core conftest.err conftest.$ac_objext
3418 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3420 rm -f conftest.$ac_ext
3425 case "x
$ac_cv_prog_cc_c89" in
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3428 $as_echo "none needed
" >&6; } ;;
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3431 $as_echo "unsupported
" >&6; } ;;
3433 CC="$CC $ac_cv_prog_cc_c89"
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3435 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3437 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3454 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3455 # On Suns, sometimes $CPP names a directory.
3456 if test -n "$CPP" && test -d "$CPP"; then
3459 if test -z "$CPP"; then
3460 if test "${ac_cv_prog_CPP+set}" = set; then :
3461 $as_echo_n "(cached
) " >&6
3463 # Double quotes because CPP needs to be expanded
3464 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3467 for ac_c_preproc_warn_flag in '' yes
3469 # Use a header file that comes with gcc, so configuring glibc
3470 # with a fresh cross-compiler works.
3471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3472 # <limits.h> exists even on freestanding compilers.
3473 # On the NeXT, cc -E runs the code through the compiler's parser,
3474 # not just through cpp. "Syntax error
" is here to catch this case.
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3478 # include <limits.h>
3480 # include <assert.h>
3484 if ac_fn_c_try_cpp "$LINENO"; then :
3487 # Broken: fails on valid input.
3490 rm -f conftest.err conftest.$ac_ext
3492 # OK, works on sane cases. Now check whether nonexistent headers
3493 # can be detected and how.
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496 #include <ac_nonexistent.h>
3498 if ac_fn_c_try_cpp "$LINENO"; then :
3499 # Broken: success on invalid input.
3502 # Passes both tests.
3506 rm -f conftest.err conftest.$ac_ext
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.err conftest.$ac_ext
3511 if $ac_preproc_ok; then :
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3524 $as_echo "$CPP" >&6; }
3526 for ac_c_preproc_warn_flag in '' yes
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error
" is here to catch this case.
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3537 # include <limits.h>
3539 # include <assert.h>
3543 if ac_fn_c_try_cpp "$LINENO"; then :
3546 # Broken: fails on valid input.
3549 rm -f conftest.err conftest.$ac_ext
3551 # OK, works on sane cases. Now check whether nonexistent headers
3552 # can be detected and how.
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3555 #include <ac_nonexistent.h>
3557 if ac_fn_c_try_cpp "$LINENO"; then :
3558 # Broken: success on invalid input.
3561 # Passes both tests.
3565 rm -f conftest.err conftest.$ac_ext
3568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3569 rm -f conftest.err conftest.$ac_ext
3570 if $ac_preproc_ok; then :
3573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3576 See \`config.log' for more details.
" "$LINENO" 5; }
3580 ac_cpp='$CPP $CPPFLAGS'
3581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3587 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3588 if test "${ac_cv_path_GREP+set}" = set; then :
3589 $as_echo_n "(cached
) " >&6
3591 if test -z "$GREP"; then
3592 ac_path_GREP_found=false
3593 # Loop through the user's path and test for each of PROGNAME-LIST
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3598 test -z "$as_dir" && as_dir=.
3599 for ac_prog in grep ggrep; do
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3602 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3603 # Check for GNU ac_path_GREP and select it if it is found.
3604 # Check for GNU $ac_path_GREP
3605 case `"$ac_path_GREP" --version 2>&1` in
3607 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3610 $as_echo_n 0123456789 >"conftest.
in"
3613 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3614 mv "conftest.tmp
" "conftest.
in"
3615 cp "conftest.
in" "conftest.
nl"
3616 $as_echo 'GREP' >> "conftest.
nl"
3617 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3618 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3619 as_fn_arith $ac_count + 1 && ac_count=$as_val
3620 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3621 # Best one so far, save it but keep looking for a better one
3622 ac_cv_path_GREP="$ac_path_GREP"
3623 ac_path_GREP_max=$ac_count
3625 # 10*(2^10) chars as input seems more than enough
3626 test $ac_count -gt 10 && break
3628 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3631 $ac_path_GREP_found && break 3
3636 if test -z "$ac_cv_path_GREP"; then
3637 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3640 ac_cv_path_GREP=$GREP
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3645 $as_echo "$ac_cv_path_GREP" >&6; }
3646 GREP="$ac_cv_path_GREP"
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3650 $as_echo_n "checking
for egrep...
" >&6; }
3651 if test "${ac_cv_path_EGREP+set}" = set; then :
3652 $as_echo_n "(cached
) " >&6
3654 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3655 then ac_cv_path_EGREP="$GREP -E"
3657 if test -z "$EGREP"; then
3658 ac_path_EGREP_found=false
3659 # Loop through the user's path and test for each of PROGNAME-LIST
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3664 test -z "$as_dir" && as_dir=.
3665 for ac_prog in egrep; do
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3668 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3669 # Check for GNU ac_path_EGREP and select it if it is found.
3670 # Check for GNU $ac_path_EGREP
3671 case `"$ac_path_EGREP" --version 2>&1` in
3673 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3676 $as_echo_n 0123456789 >"conftest.
in"
3679 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3680 mv "conftest.tmp
" "conftest.
in"
3681 cp "conftest.
in" "conftest.
nl"
3682 $as_echo 'EGREP' >> "conftest.
nl"
3683 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3684 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3685 as_fn_arith $ac_count + 1 && ac_count=$as_val
3686 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_EGREP="$ac_path_EGREP"
3689 ac_path_EGREP_max=$ac_count
3691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3697 $ac_path_EGREP_found && break 3
3702 if test -z "$ac_cv_path_EGREP"; then
3703 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3706 ac_cv_path_EGREP=$EGREP
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3712 $as_echo "$ac_cv_path_EGREP" >&6; }
3713 EGREP="$ac_cv_path_EGREP"
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3717 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3718 if test "${ac_cv_header_stdc+set}" = set; then :
3719 $as_echo_n "(cached
) " >&6
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3736 if ac_fn_c_try_compile "$LINENO"; then :
3737 ac_cv_header_stdc=yes
3739 ac_cv_header_stdc=no
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 if test $ac_cv_header_stdc = yes; then
3744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3750 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3751 $EGREP "memchr
" >/dev/null 2>&1; then :
3754 ac_cv_header_stdc=no
3760 if test $ac_cv_header_stdc = yes; then
3761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3767 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3768 $EGREP "free
" >/dev/null 2>&1; then :
3771 ac_cv_header_stdc=no
3777 if test $ac_cv_header_stdc = yes; then
3778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3779 if test "$cross_compiling" = yes; then :
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3786 #if ((' ' & 0x0FF) == 0x020)
3787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3790 # define ISLOWER(c) \
3791 (('a' <= (c) && (c) <= 'i') \
3792 || ('j' <= (c) && (c) <= 'r') \
3793 || ('s' <= (c) && (c) <= 'z'))
3794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3802 for (i = 0; i < 256; i++)
3803 if (XOR (islower (i), ISLOWER (i))
3804 || toupper (i) != TOUPPER (i))
3809 if ac_fn_c_try_run "$LINENO"; then :
3812 ac_cv_header_stdc=no
3814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3815 conftest.$ac_objext conftest.beam conftest.$ac_ext
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3821 $as_echo "$ac_cv_header_stdc" >&6; }
3822 if test $ac_cv_header_stdc = yes; then
3824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3828 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3829 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3830 inttypes.h stdint.h unistd.h
3832 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3833 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3835 eval as_val
=\$
$as_ac_Header
3836 if test "x$as_val" = x
""yes; then :
3837 cat >>confdefs.h
<<_ACEOF
3838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3847 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3848 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3855 if test "$MINIX" = yes; then
3857 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3860 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3863 $as_echo "#define _MINIX 1" >>confdefs.h
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3869 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3870 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3871 $as_echo_n "(cached) " >&6
3873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3876 # define __EXTENSIONS__ 1
3877 $ac_includes_default
3886 if ac_fn_c_try_compile
"$LINENO"; then :
3887 ac_cv_safe_to_define___extensions__
=yes
3889 ac_cv_safe_to_define___extensions__
=no
3891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3894 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3895 test $ac_cv_safe_to_define___extensions__ = yes &&
3896 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3898 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3900 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3902 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3904 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3908 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3909 for ac_t
in install-sh
install.sh shtool
; do
3910 if test -f "$ac_dir/$ac_t"; then
3912 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3917 if test -z "$ac_aux_dir"; then
3918 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3921 # These three variables are undocumented and unsupported,
3922 # and are intended to be withdrawn in a future Autoconf release.
3923 # They can cause serious problems if a builder's source tree is in a directory
3924 # whose full name contains unusual characters.
3925 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3926 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3927 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3930 # Make sure we can run config.sub.
3931 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3932 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3935 $as_echo_n "checking build system type... " >&6; }
3936 if test "${ac_cv_build+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
3939 ac_build_alias
=$build_alias
3940 test "x$ac_build_alias" = x
&&
3941 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3942 test "x$ac_build_alias" = x
&&
3943 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3944 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3945 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3949 $as_echo "$ac_cv_build" >&6; }
3950 case $ac_cv_build in
3952 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3955 ac_save_IFS
=$IFS; IFS
='-'
3961 # Remember, the first character of IFS is used to create $*,
3962 # except with old shells:
3965 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3969 $as_echo_n "checking host system type... " >&6; }
3970 if test "${ac_cv_host+set}" = set; then :
3971 $as_echo_n "(cached) " >&6
3973 if test "x$host_alias" = x
; then
3974 ac_cv_host
=$ac_cv_build
3976 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3977 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3982 $as_echo "$ac_cv_host" >&6; }
3985 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3988 ac_save_IFS
=$IFS; IFS
='-'
3994 # Remember, the first character of IFS is used to create $*,
3995 # except with old shells:
3998 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4002 $as_echo_n "checking target system type... " >&6; }
4003 if test "${ac_cv_target+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4006 if test "x$target_alias" = x
; then
4007 ac_cv_target
=$ac_cv_host
4009 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4010 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4015 $as_echo "$ac_cv_target" >&6; }
4016 case $ac_cv_target in
4018 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4020 target
=$ac_cv_target
4021 ac_save_IFS
=$IFS; IFS
='-'
4027 # Remember, the first character of IFS is used to create $*,
4028 # except with old shells:
4031 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4034 # The aliases save the names the user supplied, while $host etc.
4035 # will get canonicalized.
4036 test -n "$target_alias" &&
4037 test "$program_prefix$program_suffix$program_transform_name" = \
4039 program_prefix
=${target_alias}-
4041 # The tests for host and target for $enable_largefile require
4046 # As the $enable_largefile decision depends on --enable-plugins we must set it
4047 # even in directories otherwise not depending on the $plugins option.
4050 # Check whether --enable-plugins was given.
4051 if test "${enable_plugins+set}" = set; then :
4052 enableval
=$enable_plugins; case "${enableval}" in
4053 yes |
"") plugins
=yes ;;
4064 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4065 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4066 # are mutually exclusive; and without procfs support, the bfd/ elf module
4067 # cannot provide certain routines such as elfcore_write_prpsinfo
4068 # or elfcore_write_prstatus. So unless the user explicitly requested
4069 # large-file support through the --enable-largefile switch, disable
4070 # large-file support in favor of procfs support.
4071 test "${target}" = "${host}" -a "x$plugins" = xno \
4072 && : ${enable_largefile="no"}
4076 # Check whether --enable-largefile was given.
4077 if test "${enable_largefile+set}" = set; then :
4078 enableval
=$enable_largefile;
4081 if test "$enable_largefile" != no
; then
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4084 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4085 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4086 $as_echo_n "(cached) " >&6
4088 ac_cv_sys_largefile_CC
=no
4089 if test "$GCC" != yes; then
4092 # IRIX 6.2 and later do not support large files by default,
4093 # so use the C compiler's -n32 option if that helps.
4094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4096 #include <sys/types.h>
4097 /* Check that off_t can represent 2**63 - 1 correctly.
4098 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4099 since some C++ compilers masquerading as C compilers
4100 incorrectly reject 9223372036854775807. */
4101 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4102 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4103 && LARGE_OFF_T % 2147483647 == 1)
4113 if ac_fn_c_try_compile
"$LINENO"; then :
4116 rm -f core conftest.err conftest.
$ac_objext
4118 if ac_fn_c_try_compile
"$LINENO"; then :
4119 ac_cv_sys_largefile_CC
=' -n32'; break
4121 rm -f core conftest.err conftest.
$ac_objext
4125 rm -f conftest.
$ac_ext
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4129 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4130 if test "$ac_cv_sys_largefile_CC" != no
; then
4131 CC
=$CC$ac_cv_sys_largefile_CC
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4135 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4136 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4137 $as_echo_n "(cached) " >&6
4140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4142 #include <sys/types.h>
4143 /* Check that off_t can represent 2**63 - 1 correctly.
4144 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4145 since some C++ compilers masquerading as C compilers
4146 incorrectly reject 9223372036854775807. */
4147 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4148 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4149 && LARGE_OFF_T % 2147483647 == 1)
4159 if ac_fn_c_try_compile
"$LINENO"; then :
4160 ac_cv_sys_file_offset_bits
=no
; break
4162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165 #define _FILE_OFFSET_BITS 64
4166 #include <sys/types.h>
4167 /* Check that off_t can represent 2**63 - 1 correctly.
4168 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4169 since some C++ compilers masquerading as C compilers
4170 incorrectly reject 9223372036854775807. */
4171 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4172 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4173 && LARGE_OFF_T % 2147483647 == 1)
4183 if ac_fn_c_try_compile
"$LINENO"; then :
4184 ac_cv_sys_file_offset_bits
=64; break
4186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4187 ac_cv_sys_file_offset_bits
=unknown
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4192 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4193 case $ac_cv_sys_file_offset_bits in #(
4196 cat >>confdefs.h
<<_ACEOF
4197 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4202 if test $ac_cv_sys_file_offset_bits = unknown
; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4204 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4205 if test "${ac_cv_sys_large_files+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4211 #include <sys/types.h>
4212 /* Check that off_t can represent 2**63 - 1 correctly.
4213 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4214 since some C++ compilers masquerading as C compilers
4215 incorrectly reject 9223372036854775807. */
4216 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4217 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4218 && LARGE_OFF_T % 2147483647 == 1)
4228 if ac_fn_c_try_compile
"$LINENO"; then :
4229 ac_cv_sys_large_files
=no
; break
4231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 #define _LARGE_FILES 1
4235 #include <sys/types.h>
4236 /* Check that off_t can represent 2**63 - 1 correctly.
4237 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4238 since some C++ compilers masquerading as C compilers
4239 incorrectly reject 9223372036854775807. */
4240 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4241 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4242 && LARGE_OFF_T % 2147483647 == 1)
4252 if ac_fn_c_try_compile
"$LINENO"; then :
4253 ac_cv_sys_large_files
=1; break
4255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4256 ac_cv_sys_large_files
=unknown
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4261 $as_echo "$ac_cv_sys_large_files" >&6; }
4262 case $ac_cv_sys_large_files in #(
4265 cat >>confdefs.h
<<_ACEOF
4266 #define _LARGE_FILES $ac_cv_sys_large_files
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4279 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4280 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4281 $as_echo_n "(cached) " >&6
4283 am_cv_prog_cc_stdc
=no
4285 # Don't try gcc -ansi; that turns off useful extensions and
4286 # breaks some systems' header files.
4287 # AIX -qlanglvl=ansi
4288 # Ultrix and OSF/1 -std1
4289 # HP-UX 10.20 and later -Ae
4290 # HP-UX older versions -Aa -D_HPUX_SOURCE
4291 # SVR4 -Xc -D__EXTENSIONS__
4292 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4294 CC
="$ac_save_CC $ac_arg"
4295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4299 #include <sys/types.h>
4300 #include <sys/stat.h>
4301 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4302 struct buf { int x; };
4303 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4304 static char *e (p, i)
4310 static char *f (char * (*g) (char **, int), char **p, ...)
4315 s = g (p, va_arg (v,int));
4319 int test (int i, double x);
4320 struct s1 {int (*f) (int a);};
4321 struct s2 {int (*f) (double a);};
4322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4330 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4336 if ac_fn_c_try_compile
"$LINENO"; then :
4337 am_cv_prog_cc_stdc
="$ac_arg"; break
4339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4345 if test -z "$am_cv_prog_cc_stdc"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4347 $as_echo "none needed" >&6; }
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4350 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4352 case "x$am_cv_prog_cc_stdc" in
4354 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4359 for ac_dir
in ..
"$srcdir"/..
; do
4360 for ac_t
in install-sh
install.sh shtool
; do
4361 if test -f "$ac_dir/$ac_t"; then
4363 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4368 if test -z "$ac_aux_dir"; then
4369 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4372 # These three variables are undocumented and unsupported,
4373 # and are intended to be withdrawn in a future Autoconf release.
4374 # They can cause serious problems if a builder's source tree is in a directory
4375 # whose full name contains unusual characters.
4376 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4377 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4378 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4382 test "$program_prefix" != NONE
&&
4383 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4384 # Use a double $ so make ignores it.
4385 test "$program_suffix" != NONE
&&
4386 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4387 # Double any \ or $.
4388 # By default was `s,x,x', remove it if useless.
4389 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4390 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4393 # Dependency checking.
4394 rm -rf .tst
2>/dev
/null
4395 mkdir .tst
2>/dev
/null
4396 if test -d .tst
; then
4401 rmdir .tst
2>/dev
/null
4403 DEPDIR
="${am__leading_dot}deps"
4405 ac_config_commands
="$ac_config_commands depdir"
4408 depcc
="$CC" am_compiler_list
=
4410 am_depcomp
=$ac_aux_dir/depcomp
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4412 $as_echo_n "checking dependency style of $depcc... " >&6; }
4413 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4414 $as_echo_n "(cached) " >&6
4416 if test -f "$am_depcomp"; then
4417 # We make a subdir and do the tests there. Otherwise we can end up
4418 # making bogus files that we don't know about and never remove. For
4419 # instance it was reported that on HP-UX the gcc test will end up
4420 # making a dummy file named `D' -- because `-MD' means `put the output
4423 # Copy depcomp to subdir because otherwise we won't find it if we're
4424 # using a relative directory.
4425 cp "$am_depcomp" conftest.dir
4427 # We will build objects and dependencies in a subdirectory because
4428 # it helps to detect inapplicable dependency modes. For instance
4429 # both Tru64's cc and ICC support -MD to output dependencies as a
4430 # side effect of compilation, but ICC will put the dependencies in
4431 # the current directory while Tru64 will put them in the object
4435 am_cv_CC_dependencies_compiler_type
=none
4436 if test "$am_compiler_list" = ""; then
4437 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4439 for depmode
in $am_compiler_list; do
4440 if test $depmode = none
; then break; fi
4442 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4443 # Setup a source with many dependencies, because some compilers
4444 # like to wrap large dependency lists on column 80 (with \), and
4445 # we should not choose a depcomp mode which is confused by this.
4447 # We need to recreate these files for each test, as the compiler may
4448 # overwrite some of them when testing with obscure command lines.
4449 # This happens at least with the AIX C compiler.
4451 for i
in 1 2 3 4 5 6; do
4452 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4453 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4454 # Solaris 8's {/usr,}/bin/sh.
4455 touch sub
/conftst
$i.h
4457 echo "include sub/conftest.Po" > confmf
4459 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4460 # mode. It turns out that the SunPro C++ compiler does not properly
4461 # handle `-M -o', and we need to detect this.
4462 depcmd
="depmode=$depmode \
4463 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4464 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4465 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4466 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4467 if env
$depcmd > conftest.err
2>&1 &&
4468 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4469 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4470 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4471 # icc doesn't choke on unknown options, it will just issue warnings
4472 # or remarks (even with -Werror). So we grep stderr for any message
4473 # that says an option was ignored or not supported.
4474 # When given -MP, icc 7.0 and 7.1 complain thusly:
4475 # icc: Command line warning: ignoring option '-M'; no argument required
4476 # The diagnosis changed in icc 8.0:
4477 # icc: Command line remark: option '-MP' not supported
4478 if (grep 'ignoring option' conftest.err ||
4479 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4480 am_cv_CC_dependencies_compiler_type
=$depmode
4481 $as_echo "$as_me:$LINENO: success" >&5
4485 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4486 sed -e 's/^/| /' < conftest.err
>&5
4492 am_cv_CC_dependencies_compiler_type
=none
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4497 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4498 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4499 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4500 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4505 # Check for the 'make' the user wants to use.
4508 # Extract the first word of "$ac_prog", so it can be a program name with args.
4509 set dummy
$ac_prog; ac_word
=$2
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511 $as_echo_n "checking for $ac_word... " >&6; }
4512 if test "${ac_cv_prog_MAKE+set}" = set; then :
4513 $as_echo_n "(cached) " >&6
4515 if test -n "$MAKE"; then
4516 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4522 test -z "$as_dir" && as_dir
=.
4523 for ac_exec_ext
in '' $ac_executable_extensions; do
4524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525 ac_cv_prog_MAKE
="$ac_prog"
4526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 MAKE
=$ac_cv_prog_MAKE
4536 if test -n "$MAKE"; then
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4538 $as_echo "$MAKE" >&6; }
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541 $as_echo "no" >&6; }
4545 test -n "$MAKE" && break
4549 case "`$MAKE --version 2>&1 | sed 1q`" in
4554 if test "$MAKE_IS_GNU" = yes; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4563 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4565 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4566 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4567 $as_echo_n "(cached) " >&6
4569 cat >conftest.
make <<\_ACEOF
4572 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4574 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4575 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4577 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4579 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4583 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4585 $as_echo "yes" >&6; }
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589 $as_echo "no" >&6; }
4590 SET_MAKE
="MAKE=${MAKE-make}"
4594 # Configure gnulib. We need to build gnulib under some other
4595 # directory not "gnulib", to avoid the problem of both GDB and
4596 # GDBserver wanting to build it in the same directory, when building
4597 # in the source dir.
4600 in_build
="build-gnulib"
4602 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4603 # so they do not pile up.
4604 ac_sub_configure_args
=
4606 eval "set x $ac_configure_args"
4610 if test -n "$ac_prev"; then
4615 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
4616 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
4617 ac_prev
=cache_file
;;
4618 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
4619 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
4622 --config-cache |
-C)
4624 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
4626 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
4628 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
4630 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
4632 --disable-option-checking)
4636 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4638 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
4642 # Always prepend --prefix to ensure using the same prefix
4643 # in subdir configurations.
4644 ac_arg
="--prefix=$prefix"
4646 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4648 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
4651 if test "$silent" = yes; then
4652 ac_sub_configure_args
="--silent $ac_sub_configure_args"
4655 # Always prepend --disable-option-checking to silence warnings, since
4656 # different subdirs can have different --enable and --with options.
4657 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
4662 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4664 $as_echo "$ac_msg" >&6
4665 as_dir
="$ac_dir"; as_fn_mkdir_p
4669 ac_srcdir
=$srcdir/$in_src ;;
4671 ac_srcdir
=..
/$srcdir/$in_src ;;
4676 ac_sub_configure
=$ac_srcdir/configure
4678 # Make the cache file name correct relative to the subdirectory.
4680 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
4682 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
4685 { $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
4686 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4687 # The eval makes quoting arguments work.
4688 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4689 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4690 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4706 # If we haven't got the data from the intl directory,
4707 # assume NLS is disabled.
4716 if test -f ..
/intl
/config.intl
; then
4717 . ..
/intl
/config.intl
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4720 $as_echo_n "checking whether NLS is requested... " >&6; }
4721 if test x
"$USE_NLS" != xyes
; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4726 $as_echo "yes" >&6; }
4728 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4732 $as_echo_n "checking for catalogs to be installed... " >&6; }
4733 # Look for .po and .gmo files in the source directory.
4736 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4737 # If there aren't any .gmo files the shell will give us the
4738 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4740 case "$cat" in *\
**)
4743 # The quadruple backslash is collapsed to a double backslash
4744 # by the backticks, then collapsed again by the double quotes,
4745 # leaving us with one backslash in the sed expression (right
4746 # before the dot that mustn't act as a wildcard).
4747 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4748 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4749 # The user is allowed to set LINGUAS to a list of languages to
4750 # install catalogs for. If it's empty that means "all of them."
4751 if test "x$LINGUAS" = x
; then
4752 CATALOGS
="$CATALOGS $cat"
4753 XLINGUAS
="$XLINGUAS $lang"
4755 case "$LINGUAS" in *$lang*)
4756 CATALOGS
="$CATALOGS $cat"
4757 XLINGUAS
="$XLINGUAS $lang"
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4764 $as_echo "$LINGUAS" >&6; }
4777 localedir
='${datadir}/locale'
4780 if test x
"$USE_NLS" = xyes
; then
4781 CONFIG_ALL
="$CONFIG_ALL all-po"
4782 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4783 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4784 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4787 GNULIB
=build-gnulib
/import
4789 # For Makefile dependencies.
4791 if test x
"$STDINT_H" != x
; then
4792 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
4798 cat >>confdefs.h
<<_ACEOF
4799 #define PACKAGE "$PACKAGE"
4804 # We never need to detect it in this sub-configure.
4805 # But preserve it for config.status --recheck.
4809 MAKEINFO_EXTRA_FLAGS
=""
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
4811 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
4812 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
4813 $as_echo_n "(cached) " >&6
4815 echo '@clicksequence{a @click{} b}' >conftest.texinfo
4816 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
4817 gdb_cv_have_makeinfo_click
=yes
4819 gdb_cv_have_makeinfo_click
=no
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
4823 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
4824 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
4825 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
4831 # Check whether --with-separate-debug-dir was given.
4832 if test "${with_separate_debug_dir+set}" = set; then :
4833 withval
=$with_separate_debug_dir;
4836 DEBUGDIR
=${libdir}/debug
4840 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4841 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4842 ac_define_dir
=`eval echo $DEBUGDIR`
4843 ac_define_dir
=`eval echo $ac_define_dir`
4845 cat >>confdefs.h
<<_ACEOF
4846 #define DEBUGDIR "$ac_define_dir"
4852 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
4853 if test "x$prefix" = xNONE
; then
4854 test_prefix
=/usr
/local
4859 test_prefix
=$exec_prefix
4862 case ${ac_define_dir} in
4863 "${test_prefix}"|
"${test_prefix}/"*|\
4864 '${exec_prefix}'|
'${exec_prefix}/'*)
4869 cat >>confdefs.h
<<_ACEOF
4870 #define DEBUGDIR_RELOCATABLE $value
4876 # We can't pass paths as command line arguments.
4877 # Mingw32 tries to be clever and will convert the paths for us.
4878 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
4879 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
4880 # This breaks GDB's relocatable path conversions since paths passed in
4881 # config.h would not get so translated, the path prefixes no longer match.
4883 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4884 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4885 ac_define_dir
=`eval echo $bindir`
4886 ac_define_dir
=`eval echo $ac_define_dir`
4888 cat >>confdefs.h
<<_ACEOF
4889 #define BINDIR "$ac_define_dir"
4894 # GDB's datadir relocation
4898 # Check whether --with-gdb-datadir was given.
4899 if test "${with_gdb_datadir+set}" = set; then :
4900 withval
=$with_gdb_datadir;
4901 GDB_DATADIR
=$withval
4903 GDB_DATADIR
=${datadir}/gdb
4907 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4908 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4909 ac_define_dir
=`eval echo $GDB_DATADIR`
4910 ac_define_dir
=`eval echo $ac_define_dir`
4912 cat >>confdefs.h
<<_ACEOF
4913 #define GDB_DATADIR "$ac_define_dir"
4919 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
4920 if test "x$prefix" = xNONE
; then
4921 test_prefix
=/usr
/local
4926 test_prefix
=$exec_prefix
4929 case ${ac_define_dir} in
4930 "${test_prefix}"|
"${test_prefix}/"*|\
4931 '${exec_prefix}'|
'${exec_prefix}/'*)
4936 cat >>confdefs.h
<<_ACEOF
4937 #define GDB_DATADIR_RELOCATABLE $value
4944 # Check whether --with-relocated-sources was given.
4945 if test "${with_relocated_sources+set}" = set; then :
4946 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
4948 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4949 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4950 ac_define_dir
=`eval echo $reloc_srcdir`
4951 ac_define_dir
=`eval echo $ac_define_dir`
4953 cat >>confdefs.h
<<_ACEOF
4954 #define RELOC_SRCDIR "$ac_define_dir"
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
4963 $as_echo_n "checking for default auto-load safe-path... " >&6; }
4965 # Check whether --with-auto-load-safe-path was given.
4966 if test "${with_auto_load_safe_path+set}" = set; then :
4967 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
4968 with_auto_load_safe_path
="/"
4971 with_auto_load_safe_path
='$ddir/auto-load'
4974 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]ddir\>/\\\\\\\\\\\\&/g'`
4976 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4977 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4978 ac_define_dir
=`eval echo $escape_dir`
4979 ac_define_dir
=`eval echo $ac_define_dir`
4981 cat >>confdefs.h
<<_ACEOF
4982 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
4987 $as_echo "$with_auto_load_safe_path" >&6; }
4991 subdirs
="$subdirs testsuite"
4994 # Check whether to support alternative target configurations
4995 # Check whether --enable-targets was given.
4996 if test "${enable_targets+set}" = set; then :
4997 enableval
=$enable_targets; case "${enableval}" in
4998 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
5000 no
) enable_targets
= ;;
5001 *) enable_targets
=$enableval ;;
5006 # Check whether to enable 64-bit support on 32-bit hosts
5007 # Check whether --enable-64-bit-bfd was given.
5008 if test "${enable_64_bit_bfd+set}" = set; then :
5009 enableval
=$enable_64_bit_bfd; case "${enableval}" in
5012 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5018 # Provide defaults for some variables set by the per-host and per-target
5020 gdb_host_obs
=posix-hdep.o
5022 if test "${target}" = "${host}"; then
5028 .
$srcdir/configure.
host
5030 # Accumulate some settings from configure.tgt over all enabled targets
5035 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5037 if test "$targ_alias" = "all"; then
5040 # Canonicalize the secondary target names.
5041 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5042 if test -n "$result"; then
5048 .
${srcdir}/configure.tgt
5050 if test -z "${gdb_target_obs}"; then :
5051 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
5054 # Target-specific object files
5055 for i
in ${gdb_target_obs}; do
5056 case " $TARGET_OBS " in
5059 TARGET_OBS
="$TARGET_OBS ${i}"
5064 # Check whether this target needs 64-bit CORE_ADDR
5065 if test x
${want64} = xfalse
; then
5066 .
${srcdir}/..
/bfd
/config.bfd
5071 if test x
${all_targets} = xtrue
; then
5073 # We want all 64-bit targets if we either:
5074 # - run on a 64-bit host or
5075 # - already require 64-bit support for some other target or
5076 # - the --enable-64-bit-bfd option was supplied
5077 # Otherwise we only support all 32-bit targets.
5079 # NOTE: This test must be in sync with the corresponding
5082 if test x
${want64} = xfalse
; then
5083 # The cast to long int works around a bug in the HP C Compiler
5084 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5085 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5086 # This bug is HP SR number 8606223364.
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5088 $as_echo_n "checking size of long... " >&6; }
5089 if test "${ac_cv_sizeof_long+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
5092 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5095 if test "$ac_cv_type_long" = yes; then
5096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5098 { as_fn_set_status
77
5099 as_fn_error
"cannot compute sizeof (long)
5100 See \`config.log' for more details." "$LINENO" 5; }; }
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5108 $as_echo "$ac_cv_sizeof_long" >&6; }
5112 cat >>confdefs.h
<<_ACEOF
5113 #define SIZEOF_LONG $ac_cv_sizeof_long
5117 if test "x${ac_cv_sizeof_long}" = "x8"; then
5121 if test x
${want64} = xtrue
; then
5122 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5124 TARGET_OBS
='$(ALL_TARGET_OBS)'
5130 # For other settings, only the main target counts.
5134 targ
=$target; .
${srcdir}/configure.tgt
5136 # Fetch the default architecture and default target vector from BFD.
5137 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
5139 # We only want the first architecture, so strip off the others if
5140 # there is more than one.
5141 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
5143 if test "x$targ_archs" != x
; then
5145 cat >>confdefs.h
<<_ACEOF
5146 #define DEFAULT_BFD_ARCH $targ_archs
5150 if test "x$targ_defvec" != x
; then
5152 cat >>confdefs.h
<<_ACEOF
5153 #define DEFAULT_BFD_VEC $targ_defvec
5158 # The CLI cannot be disabled yet, but may be in the future.
5161 # Check whether --enable-gdbcli was given.
5162 if test "${enable_gdbcli+set}" = set; then :
5163 enableval
=$enable_gdbcli; case $enableval in
5167 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5169 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5175 if test x
"$enable_gdbcli" = xyes
; then
5176 if test -d $srcdir/cli
; then
5177 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5178 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5179 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5180 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5185 # Check whether --enable-gdbmi was given.
5186 if test "${enable_gdbmi+set}" = set; then :
5187 enableval
=$enable_gdbmi; case $enableval in
5191 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5197 if test x
"$enable_gdbmi" = xyes
; then
5198 if test -d $srcdir/mi
; then
5199 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5200 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5201 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5202 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5207 # Check whether --enable-tui was given.
5208 if test "${enable_tui+set}" = set; then :
5209 enableval
=$enable_tui; case $enableval in
5213 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5221 # Check whether --enable-gdbtk was given.
5222 if test "${enable_gdbtk+set}" = set; then :
5223 enableval
=$enable_gdbtk; case $enableval in
5227 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5230 if test -d $srcdir/gdbtk
; then
5237 # We unconditionally disable gdbtk tests on selected platforms.
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5241 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5245 # Libunwind support for ia64.
5248 # Check whether --with-libunwind-ia64 was given.
5249 if test "${with_libunwind_ia64+set}" = set; then :
5250 withval
=$with_libunwind_ia64;
5252 with_libunwind_ia64
=auto
5256 # Backward compatibility option.
5257 if test "${with_libunwind+set}" = set; then
5258 if test x
"$with_libunwind_ia64" != xauto
; then
5259 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5262 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5263 with_libunwind_ia64
="$with_libunwind"
5266 case "$with_libunwind_ia64" in
5270 for ac_header
in libunwind-ia64.h
5272 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5273 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5274 cat >>confdefs.h
<<_ACEOF
5275 #define HAVE_LIBUNWIND_IA64_H 1
5282 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
5285 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5289 if test x
"$with_libunwind_ia64" = xyes
; then
5290 for ac_header
in libunwind-ia64.h
5292 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5293 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5294 cat >>confdefs.h
<<_ACEOF
5295 #define HAVE_LIBUNWIND_IA64_H 1
5302 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
5303 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5305 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
5306 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
5307 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
5312 # Check whether --with-curses was given.
5313 if test "${with_curses+set}" = set; then :
5314 withval
=$with_curses; opt_curses
=$withval
5319 if test "$opt_curses" = "yes"; then
5323 # Profiling support.
5324 # Check whether --enable-profiling was given.
5325 if test "${enable_profiling+set}" = set; then :
5326 enableval
=$enable_profiling; case $enableval in
5330 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5337 for ac_func
in monstartup _mcleanup
5339 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5340 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5341 eval as_val
=\$
$as_ac_var
5342 if test "x$as_val" = x
""yes; then :
5343 cat >>confdefs.h
<<_ACEOF
5344 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5351 $as_echo_n "checking for _etext... " >&6; }
5352 if test "${ac_cv_var__etext+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
5355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5368 if ac_fn_c_try_link
"$LINENO"; then :
5369 ac_cv_var__etext
=yes
5373 rm -f core conftest.err conftest.
$ac_objext \
5374 conftest
$ac_exeext conftest.
$ac_ext
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5377 $as_echo "$ac_cv_var__etext" >&6; }
5378 if test $ac_cv_var__etext = yes; then
5380 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5384 $as_echo_n "checking for etext... " >&6; }
5385 if test "${ac_cv_var_etext+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5401 if ac_fn_c_try_link
"$LINENO"; then :
5406 rm -f core conftest.err conftest.
$ac_objext \
5407 conftest
$ac_exeext conftest.
$ac_ext
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5410 $as_echo "$ac_cv_var_etext" >&6; }
5411 if test $ac_cv_var_etext = yes; then
5413 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5416 if test "$enable_profiling" = yes ; then
5417 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
5418 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5421 OLD_CFLAGS
="$CFLAGS"
5422 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5425 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5426 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5427 $as_echo_n "(cached) " >&6
5429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5440 if ac_fn_c_try_compile
"$LINENO"; then :
5441 ac_cv_cc_supports_pg
=yes
5443 ac_cv_cc_supports_pg
=no
5445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5448 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5450 if test $ac_cv_cc_supports_pg = no
; then
5451 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5454 CFLAGS
="$OLD_CFLAGS"
5459 # Check whether --with-pkgversion was given.
5460 if test "${with_pkgversion+set}" = set; then :
5461 withval
=$with_pkgversion; case "$withval" in
5462 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
5464 *) PKGVERSION
="($withval) " ;;
5475 # Check whether --with-bugurl was given.
5476 if test "${with_bugurl+set}" = set; then :
5477 withval
=$with_bugurl; case "$withval" in
5478 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
5481 *) BUGURL
="$withval"
5485 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
5495 REPORT_BUGS_TO
="<$BUGURL>"
5496 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
5503 cat >>confdefs.h
<<_ACEOF
5504 #define PKGVERSION "$PKGVERSION"
5508 cat >>confdefs.h
<<_ACEOF
5509 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5513 # --------------------- #
5514 # Checks for programs. #
5515 # --------------------- #
5517 for ac_prog
in gawk mawk nawk
awk
5519 # Extract the first word of "$ac_prog", so it can be a program name with args.
5520 set dummy
$ac_prog; ac_word
=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if test "${ac_cv_prog_AWK+set}" = set; then :
5524 $as_echo_n "(cached) " >&6
5526 if test -n "$AWK"; then
5527 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5533 test -z "$as_dir" && as_dir
=.
5534 for ac_exec_ext
in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_AWK
="$ac_prog"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 if test -n "$AWK"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5549 $as_echo "$AWK" >&6; }
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5556 test -n "$AWK" && break
5559 # Find a good install program. We prefer a C program (faster),
5560 # so one script is as good as another. But avoid the broken or
5561 # incompatible versions:
5562 # SysV /etc/install, /usr/sbin/install
5563 # SunOS /usr/etc/install
5564 # IRIX /sbin/install
5566 # AmigaOS /C/install, which installs bootblocks on floppy discs
5567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5570 # OS/2's system install, which has a completely different semantic
5571 # ./install, which can be erroneously created by make from ./install.sh.
5572 # Reject install programs that cannot install multiple files.
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5574 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5575 if test -z "$INSTALL"; then
5576 if test "${ac_cv_path_install+set}" = set; then :
5577 $as_echo_n "(cached) " >&6
5579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5583 test -z "$as_dir" && as_dir
=.
5584 # Account for people who put trailing slashes in PATH elements.
5585 case $as_dir/ in #((
5586 .
/ | .
// |
/[cC
]/* | \
5587 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5588 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5591 # OSF1 and SCO ODT 3.0 have their own names for install.
5592 # Don't use installbsd from OSF since it installs stuff as root
5594 for ac_prog
in ginstall scoinst
install; do
5595 for ac_exec_ext
in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5597 if test $ac_prog = install &&
5598 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5599 # AIX install. It has an incompatible calling convention.
5601 elif test $ac_prog = install &&
5602 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5603 # program-specific install script used by HP pwplus--don't use.
5606 rm -rf conftest.one conftest.two conftest.dir
5607 echo one
> conftest.one
5608 echo two
> conftest.two
5610 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5611 test -s conftest.one
&& test -s conftest.two
&&
5612 test -s conftest.dir
/conftest.one
&&
5613 test -s conftest.dir
/conftest.two
5615 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5628 rm -rf conftest.one conftest.two conftest.dir
5631 if test "${ac_cv_path_install+set}" = set; then
5632 INSTALL
=$ac_cv_path_install
5634 # As a last resort, use the slow shell script. Don't cache a
5635 # value for INSTALL within a source directory, because that will
5636 # break other packages using the cache if that directory is
5637 # removed, or if the value is a relative name.
5638 INSTALL
=$ac_install_sh
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5642 $as_echo "$INSTALL" >&6; }
5644 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5645 # It thinks the first close brace ends the variable substitution.
5646 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5648 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5650 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5653 $as_echo_n "checking whether ln -s works... " >&6; }
5655 if test "$LN_S" = "ln -s"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5657 $as_echo "yes" >&6; }
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5660 $as_echo "no, using $LN_S" >&6; }
5663 if test -n "$ac_tool_prefix"; then
5664 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5665 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5671 if test -n "$RANLIB"; then
5672 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5678 test -z "$as_dir" && as_dir
=.
5679 for ac_exec_ext
in '' $ac_executable_extensions; do
5680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5681 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 RANLIB
=$ac_cv_prog_RANLIB
5692 if test -n "$RANLIB"; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5694 $as_echo "$RANLIB" >&6; }
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5702 if test -z "$ac_cv_prog_RANLIB"; then
5703 ac_ct_RANLIB
=$RANLIB
5704 # Extract the first word of "ranlib", so it can be a program name with args.
5705 set dummy ranlib
; ac_word
=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5709 $as_echo_n "(cached) " >&6
5711 if test -n "$ac_ct_RANLIB"; then
5712 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5718 test -z "$as_dir" && as_dir
=.
5719 for ac_exec_ext
in '' $ac_executable_extensions; do
5720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5721 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5732 if test -n "$ac_ct_RANLIB"; then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5734 $as_echo "$ac_ct_RANLIB" >&6; }
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5740 if test "x$ac_ct_RANLIB" = x
; then
5743 case $cross_compiling:$ac_tool_warned in
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5747 ac_tool_warned
=yes ;;
5749 RANLIB
=$ac_ct_RANLIB
5752 RANLIB
="$ac_cv_prog_RANLIB"
5755 for ac_prog
in 'bison -y' byacc
5757 # Extract the first word of "$ac_prog", so it can be a program name with args.
5758 set dummy
$ac_prog; ac_word
=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if test "${ac_cv_prog_YACC+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5764 if test -n "$YACC"; then
5765 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5771 test -z "$as_dir" && as_dir
=.
5772 for ac_exec_ext
in '' $ac_executable_extensions; do
5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774 ac_cv_prog_YACC
="$ac_prog"
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 YACC
=$ac_cv_prog_YACC
5785 if test -n "$YACC"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5787 $as_echo "$YACC" >&6; }
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5794 test -n "$YACC" && break
5796 test -n "$YACC" || YACC
="yacc"
5799 if test -n "$ac_tool_prefix"; then
5800 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5801 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if test "${ac_cv_prog_AR+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5807 if test -n "$AR"; then
5808 ac_cv_prog_AR
="$AR" # Let the user override the test.
5810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5814 test -z "$as_dir" && as_dir
=.
5815 for ac_exec_ext
in '' $ac_executable_extensions; do
5816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5817 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 if test -n "$AR"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5830 $as_echo "$AR" >&6; }
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5838 if test -z "$ac_cv_prog_AR"; then
5840 # Extract the first word of "ar", so it can be a program name with args.
5841 set dummy
ar; ac_word
=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5847 if test -n "$ac_ct_AR"; then
5848 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5854 test -z "$as_dir" && as_dir
=.
5855 for ac_exec_ext
in '' $ac_executable_extensions; do
5856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5857 ac_cv_prog_ac_ct_AR
="ar"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5868 if test -n "$ac_ct_AR"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5870 $as_echo "$ac_ct_AR" >&6; }
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5876 if test "x$ac_ct_AR" = x
; then
5879 case $cross_compiling:$ac_tool_warned in
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883 ac_tool_warned
=yes ;;
5891 if test -n "$ac_tool_prefix"; then
5892 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5893 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5897 $as_echo_n "(cached) " >&6
5899 if test -n "$DLLTOOL"; then
5900 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
5902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5906 test -z "$as_dir" && as_dir
=.
5907 for ac_exec_ext
in '' $ac_executable_extensions; do
5908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
5910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 DLLTOOL
=$ac_cv_prog_DLLTOOL
5920 if test -n "$DLLTOOL"; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5922 $as_echo "$DLLTOOL" >&6; }
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5930 if test -z "$ac_cv_prog_DLLTOOL"; then
5931 ac_ct_DLLTOOL
=$DLLTOOL
5932 # Extract the first word of "dlltool", so it can be a program name with args.
5933 set dummy dlltool
; ac_word
=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
5939 if test -n "$ac_ct_DLLTOOL"; then
5940 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
5942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5946 test -z "$as_dir" && as_dir
=.
5947 for ac_exec_ext
in '' $ac_executable_extensions; do
5948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
5950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
5960 if test -n "$ac_ct_DLLTOOL"; then
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5962 $as_echo "$ac_ct_DLLTOOL" >&6; }
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 $as_echo "no" >&6; }
5968 if test "x$ac_ct_DLLTOOL" = x
; then
5971 case $cross_compiling:$ac_tool_warned in
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975 ac_tool_warned
=yes ;;
5977 DLLTOOL
=$ac_ct_DLLTOOL
5980 DLLTOOL
="$ac_cv_prog_DLLTOOL"
5983 if test -n "$ac_tool_prefix"; then
5984 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5985 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if test "${ac_cv_prog_WINDRES+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5991 if test -n "$WINDRES"; then
5992 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
5994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5998 test -z "$as_dir" && as_dir
=.
5999 for ac_exec_ext
in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 WINDRES
=$ac_cv_prog_WINDRES
6012 if test -n "$WINDRES"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6014 $as_echo "$WINDRES" >&6; }
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 $as_echo "no" >&6; }
6022 if test -z "$ac_cv_prog_WINDRES"; then
6023 ac_ct_WINDRES
=$WINDRES
6024 # Extract the first word of "windres", so it can be a program name with args.
6025 set dummy windres
; ac_word
=$2
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 $as_echo_n "checking for $ac_word... " >&6; }
6028 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6029 $as_echo_n "(cached) " >&6
6031 if test -n "$ac_ct_WINDRES"; then
6032 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
6034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6038 test -z "$as_dir" && as_dir
=.
6039 for ac_exec_ext
in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 ac_cv_prog_ac_ct_WINDRES
="windres"
6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
6052 if test -n "$ac_ct_WINDRES"; then
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6054 $as_echo "$ac_ct_WINDRES" >&6; }
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6060 if test "x$ac_ct_WINDRES" = x
; then
6063 case $cross_compiling:$ac_tool_warned in
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6067 ac_tool_warned
=yes ;;
6069 WINDRES
=$ac_ct_WINDRES
6072 WINDRES
="$ac_cv_prog_WINDRES"
6076 # Needed for GNU/Hurd.
6077 if test -n "$ac_tool_prefix"; then
6078 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6079 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if test "${ac_cv_prog_MIG+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6085 if test -n "$MIG"; then
6086 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
6088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6092 test -z "$as_dir" && as_dir
=.
6093 for ac_exec_ext
in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 if test -n "$MIG"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6108 $as_echo "$MIG" >&6; }
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6116 if test -z "$ac_cv_prog_MIG"; then
6118 # Extract the first word of "mig", so it can be a program name with args.
6119 set dummy mig
; ac_word
=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6123 $as_echo_n "(cached) " >&6
6125 if test -n "$ac_ct_MIG"; then
6126 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
6128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6132 test -z "$as_dir" && as_dir
=.
6133 for ac_exec_ext
in '' $ac_executable_extensions; do
6134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6135 ac_cv_prog_ac_ct_MIG
="mig"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
6146 if test -n "$ac_ct_MIG"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6148 $as_echo "$ac_ct_MIG" >&6; }
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6154 if test "x$ac_ct_MIG" = x
; then
6157 case $cross_compiling:$ac_tool_warned in
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6161 ac_tool_warned
=yes ;;
6166 MIG
="$ac_cv_prog_MIG"
6170 # ---------------------- #
6171 # Checks for libraries. #
6172 # ---------------------- #
6174 # We might need to link with -lm; most simulators need it.
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6176 $as_echo_n "checking for main in -lm... " >&6; }
6177 if test "${ac_cv_lib_m_main+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6180 ac_check_lib_save_LIBS
=$LIBS
6182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6194 if ac_fn_c_try_link
"$LINENO"; then :
6195 ac_cv_lib_m_main
=yes
6199 rm -f core conftest.err conftest.
$ac_objext \
6200 conftest
$ac_exeext conftest.
$ac_ext
6201 LIBS
=$ac_check_lib_save_LIBS
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6204 $as_echo "$ac_cv_lib_m_main" >&6; }
6205 if test "x$ac_cv_lib_m_main" = x
""yes; then :
6206 cat >>confdefs.h
<<_ACEOF
6215 # We need to link with -lw to get `wctype' on Solaris before Solaris
6216 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6217 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6218 # is known to have this problem). Therefore we avoid libw if we can.
6219 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6220 if test "x$ac_cv_func_wctype" = x
""yes; then :
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6224 $as_echo_n "checking for wctype in -lw... " >&6; }
6225 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6226 $as_echo_n "(cached) " >&6
6228 ac_check_lib_save_LIBS
=$LIBS
6230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6233 /* Override any GCC internal prototype to avoid an error.
6234 Use char because int might match the return type of a GCC
6235 builtin and then its argument prototype would still apply. */
6248 if ac_fn_c_try_link
"$LINENO"; then :
6249 ac_cv_lib_w_wctype
=yes
6251 ac_cv_lib_w_wctype
=no
6253 rm -f core conftest.err conftest.
$ac_objext \
6254 conftest
$ac_exeext conftest.
$ac_ext
6255 LIBS
=$ac_check_lib_save_LIBS
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6258 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6259 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
6260 cat >>confdefs.h
<<_ACEOF
6271 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6273 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6274 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6275 $as_echo_n "(cached) " >&6
6277 ac_func_search_save_LIBS
=$LIBS
6278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6281 /* Override any GCC internal prototype to avoid an error.
6282 Use char because int might match the return type of a GCC
6283 builtin and then its argument prototype would still apply. */
6287 char gethostbyname ();
6291 return gethostbyname ();
6296 for ac_lib
in '' nsl
; do
6297 if test -z "$ac_lib"; then
6298 ac_res
="none required"
6301 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6303 if ac_fn_c_try_link
"$LINENO"; then :
6304 ac_cv_search_gethostbyname
=$ac_res
6306 rm -f core conftest.err conftest.
$ac_objext \
6308 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6312 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6315 ac_cv_search_gethostbyname
=no
6318 LIBS
=$ac_func_search_save_LIBS
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6321 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6322 ac_res
=$ac_cv_search_gethostbyname
6323 if test "$ac_res" != no
; then :
6324 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6329 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6331 $as_echo_n "checking for library containing socketpair... " >&6; }
6332 if test "${ac_cv_search_socketpair+set}" = set; then :
6333 $as_echo_n "(cached) " >&6
6335 ac_func_search_save_LIBS
=$LIBS
6336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6339 /* Override any GCC internal prototype to avoid an error.
6340 Use char because int might match the return type of a GCC
6341 builtin and then its argument prototype would still apply. */
6349 return socketpair ();
6354 for ac_lib
in '' socket
; do
6355 if test -z "$ac_lib"; then
6356 ac_res
="none required"
6359 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6361 if ac_fn_c_try_link
"$LINENO"; then :
6362 ac_cv_search_socketpair
=$ac_res
6364 rm -f core conftest.err conftest.
$ac_objext \
6366 if test "${ac_cv_search_socketpair+set}" = set; then :
6370 if test "${ac_cv_search_socketpair+set}" = set; then :
6373 ac_cv_search_socketpair
=no
6376 LIBS
=$ac_func_search_save_LIBS
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6379 $as_echo "$ac_cv_search_socketpair" >&6; }
6380 ac_res
=$ac_cv_search_socketpair
6381 if test "$ac_res" != no
; then :
6382 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6387 # Link in zlib if we can. This allows us to read compressed debug sections.
6389 # See if the user specified whether he wants zlib support or not.
6391 # Check whether --with-zlib was given.
6392 if test "${with_zlib+set}" = set; then :
6399 if test "$with_zlib" != "no"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6401 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6402 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6405 ac_func_search_save_LIBS
=$LIBS
6406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6409 /* Override any GCC internal prototype to avoid an error.
6410 Use char because int might match the return type of a GCC
6411 builtin and then its argument prototype would still apply. */
6415 char zlibVersion ();
6419 return zlibVersion ();
6424 for ac_lib
in '' z
; do
6425 if test -z "$ac_lib"; then
6426 ac_res
="none required"
6429 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6431 if ac_fn_c_try_link
"$LINENO"; then :
6432 ac_cv_search_zlibVersion
=$ac_res
6434 rm -f core conftest.err conftest.
$ac_objext \
6436 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6440 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6443 ac_cv_search_zlibVersion
=no
6446 LIBS
=$ac_func_search_save_LIBS
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6449 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6450 ac_res
=$ac_cv_search_zlibVersion
6451 if test "$ac_res" != no
; then :
6452 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6453 for ac_header
in zlib.h
6455 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6456 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
6457 cat >>confdefs.h
<<_ACEOF
6458 #define HAVE_ZLIB_H 1
6467 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6468 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6473 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6475 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6476 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6477 $as_echo_n "(cached) " >&6
6479 ac_func_search_save_LIBS
=$LIBS
6480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h. */
6483 /* Override any GCC internal prototype to avoid an error.
6484 Use char because int might match the return type of a GCC
6485 builtin and then its argument prototype would still apply. */
6489 char dlgetmodinfo ();
6493 return dlgetmodinfo ();
6498 for ac_lib
in '' dl xpdl
; do
6499 if test -z "$ac_lib"; then
6500 ac_res
="none required"
6503 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6505 if ac_fn_c_try_link
"$LINENO"; then :
6506 ac_cv_search_dlgetmodinfo
=$ac_res
6508 rm -f core conftest.err conftest.
$ac_objext \
6510 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6514 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6517 ac_cv_search_dlgetmodinfo
=no
6520 LIBS
=$ac_func_search_save_LIBS
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6523 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6524 ac_res
=$ac_cv_search_dlgetmodinfo
6525 if test "$ac_res" != no
; then :
6526 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6534 # Check whether --with-libiconv-prefix was given.
6535 if test "${with_libiconv_prefix+set}" = set; then :
6536 withval
=$with_libiconv_prefix;
6537 for dir
in `echo "$withval" | tr : ' '`; do
6538 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
6539 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
6545 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
6546 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6549 $as_echo_n "checking for iconv... " >&6; }
6550 if test "${am_cv_func_iconv+set}" = set; then :
6551 $as_echo_n "(cached) " >&6
6554 am_cv_func_iconv
="no, consider installing GNU libiconv"
6556 am_cv_use_build_libiconv
=no
6557 am_cv_build_libiconv_path
=
6559 # If libiconv is part of the build tree, then try using it over
6561 if test -d ..
/libiconv
; then
6562 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
6563 am_save_LIBS
="$LIBS"
6564 am_save_CPPFLAGS
="$CPPFLAGS"
6565 LIBS
="$LIBS $lib_dir/libiconv.a"
6566 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6574 iconv_t cd = iconv_open("","");
6575 iconv(cd,NULL,NULL,NULL,NULL);
6581 if ac_fn_c_try_link
"$LINENO"; then :
6582 am_cv_use_build_libiconv
=yes
6583 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
6585 am_cv_func_iconv
=yes
6587 rm -f core conftest.err conftest.
$ac_objext \
6588 conftest
$ac_exeext conftest.
$ac_ext
6589 LIBS
="$am_save_LIBS"
6590 CPPFLAGS
="$am_save_CPPFLAGS"
6591 if test "$am_cv_use_build_libiconv" = "yes"; then
6597 # Next, try to find iconv in libc.
6598 if test "$am_cv_func_iconv" != yes; then
6599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6606 iconv_t cd = iconv_open("","");
6607 iconv(cd,NULL,NULL,NULL,NULL);
6613 if ac_fn_c_try_link
"$LINENO"; then :
6614 am_cv_func_iconv
=yes
6616 rm -f core conftest.err conftest.
$ac_objext \
6617 conftest
$ac_exeext conftest.
$ac_ext
6620 # If iconv was not in libc, try -liconv. In this case, arrange to
6621 # look in the libiconv prefix, if it was specified by the user.
6622 if test "$am_cv_func_iconv" != yes; then
6623 am_save_CPPFLAGS
="$CPPFLAGS"
6624 am_save_LIBS
="$LIBS"
6625 if test -n "$LIBICONV_INCLUDE"; then
6626 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
6627 LIBS
="$LIBS $LIBICONV_LIBDIR"
6629 LIBS
="$LIBS -liconv"
6630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6637 iconv_t cd = iconv_open("","");
6638 iconv(cd,NULL,NULL,NULL,NULL);
6644 if ac_fn_c_try_link
"$LINENO"; then :
6646 am_cv_func_iconv
=yes
6648 rm -f core conftest.err conftest.
$ac_objext \
6649 conftest
$ac_exeext conftest.
$ac_ext
6650 LIBS
="$am_save_LIBS"
6651 CPPFLAGS
="$am_save_CPPFLAGS"
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6656 $as_echo "$am_cv_func_iconv" >&6; }
6658 # Set the various flags based on the cache variables. We can't rely
6659 # on the flags to remain set from the above code, due to caching.
6661 if test "$am_cv_lib_iconv" = yes; then
6667 if test "$am_cv_use_build_libiconv" = yes; then
6668 LIBICONV
="$am_cv_build_libiconv_path"
6670 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
6672 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
6673 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6675 if test "$am_cv_func_iconv" = yes; then
6677 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6680 $as_echo_n "checking for iconv declaration... " >&6; }
6681 if test "${am_cv_proto_iconv+set}" = set; then :
6682 $as_echo_n "(cached) " >&6
6685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h. */
6694 #if defined(__STDC__) || defined(__cplusplus)
6695 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6708 if ac_fn_c_try_compile
"$LINENO"; then :
6709 am_cv_proto_iconv_arg1
=""
6711 am_cv_proto_iconv_arg1
="const"
6713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6714 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);"
6717 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6719 }$am_cv_proto_iconv" >&5
6721 }$am_cv_proto_iconv" >&6; }
6723 cat >>confdefs.h
<<_ACEOF
6724 #define ICONV_CONST $am_cv_proto_iconv_arg1
6730 # GDB may fork/exec the iconv program to get the list of supported character
6731 # sets. Allow the user to specify where to find it.
6732 # There are several factors affecting the choice of option name:
6733 # - There is already --with-libiconv-prefix but we can't use it, it specifies
6734 # the build-time location of libiconv files.
6735 # - The program we need to find is iconv, which comes with glibc. The user
6736 # doesn't necessarily have libiconv installed. Therefore naming this
6737 # --with-libiconv-foo feels wrong.
6738 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
6739 # defined to work on directories not files (though it really doesn't know
6741 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
6742 # with --with-libiconv-prefix.
6743 # Putting these together is why the option name is --with-iconv-bin.
6746 # Check whether --with-iconv-bin was given.
6747 if test "${with_iconv_bin+set}" = set; then :
6748 withval
=$with_iconv_bin; iconv_bin
="${withval}"
6750 cat >>confdefs.h
<<_ACEOF
6751 #define ICONV_BIN "${iconv_bin}"
6755 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6756 if test "x$prefix" = xNONE
; then
6757 test_prefix
=/usr
/local
6762 test_prefix
=$exec_prefix
6765 case ${iconv_bin} in
6766 "${test_prefix}"|
"${test_prefix}/"*|\
6767 '${exec_prefix}'|
'${exec_prefix}/'*)
6772 cat >>confdefs.h
<<_ACEOF
6773 #define ICONV_BIN_RELOCATABLE $value
6781 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
6782 # There is a very specific comment in /usr/include/curses.h explaining that
6783 # termcap routines built into libcurses must not be used.
6785 # The symptoms we observed so far is GDB unexpectedly changing
6786 # the terminal settings when tgetent is called - this is particularly
6787 # visible as the output is missing carriage returns, and so rapidly
6788 # becomes very hard to read.
6790 # The readline configure script has already decided that libtermcap
6791 # was enough for its purposes, and so decided to build readline using
6792 # libtermcap. Since the TUI mode requires curses, building GDB with
6793 # TUI enabled results in both libraries to be used at the same time,
6794 # which is not allowed. This basically means that GDB with TUI is
6795 # broken on alpha-osf.
6799 if test x
"$enable_tui" = xyes
; then
6800 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6802 if test x
"$enable_tui" = xauto
; then
6808 # For the TUI, we need enhanced curses functionality.
6809 if test x
"$enable_tui" != xno
; then
6814 if test x
"$prefer_curses" = xyes
; then
6815 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6816 # curses library because the latter might not provide all the
6817 # functionality we need. However, this leads to problems on systems
6818 # where the linker searches /usr/local/lib, but the compiler doesn't
6819 # search /usr/local/include, if ncurses is installed in /usr/local. A
6820 # default installation of ncurses on alpha*-dec-osf* will lead to such
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
6823 $as_echo_n "checking for library containing waddstr... " >&6; }
6824 if test "${ac_cv_search_waddstr+set}" = set; then :
6825 $as_echo_n "(cached) " >&6
6827 ac_func_search_save_LIBS
=$LIBS
6828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6831 /* Override any GCC internal prototype to avoid an error.
6832 Use char because int might match the return type of a GCC
6833 builtin and then its argument prototype would still apply. */
6846 for ac_lib
in '' ncurses cursesX curses
; do
6847 if test -z "$ac_lib"; then
6848 ac_res
="none required"
6851 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6853 if ac_fn_c_try_link
"$LINENO"; then :
6854 ac_cv_search_waddstr
=$ac_res
6856 rm -f core conftest.err conftest.
$ac_objext \
6858 if test "${ac_cv_search_waddstr+set}" = set; then :
6862 if test "${ac_cv_search_waddstr+set}" = set; then :
6865 ac_cv_search_waddstr
=no
6868 LIBS
=$ac_func_search_save_LIBS
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
6871 $as_echo "$ac_cv_search_waddstr" >&6; }
6872 ac_res
=$ac_cv_search_waddstr
6873 if test "$ac_res" != no
; then :
6874 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6879 if test "$ac_cv_search_waddstr" != no
; then
6884 # Check whether we should enable the TUI, but only do so if we really
6886 if test x
"$enable_tui" != xno
; then
6887 if test -d $srcdir/tui
; then
6888 if test "$curses_found" != no
; then
6889 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
6890 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
6891 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
6892 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
6894 if test x
"$enable_tui" = xyes
; then
6895 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
6898 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
6904 # Since GDB uses Readline, we need termcap functionality. In many
6905 # cases this will be provided by the curses library, but some systems
6906 # have a seperate termcap library, or no curses library at all.
6910 if test -d $srcdir/libtermcap
; then
6911 LIBS
="../libtermcap/libtermcap.a $LIBS"
6912 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
6915 ac_cv_search_tgetent
="none required"
6918 ac_cv_search_tgetent
="none required"
6919 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
6923 # These are the libraries checked by Readline.
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
6925 $as_echo_n "checking for library containing tgetent... " >&6; }
6926 if test "${ac_cv_search_tgetent+set}" = set; then :
6927 $as_echo_n "(cached) " >&6
6929 ac_func_search_save_LIBS
=$LIBS
6930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6933 /* Override any GCC internal prototype to avoid an error.
6934 Use char because int might match the return type of a GCC
6935 builtin and then its argument prototype would still apply. */
6948 for ac_lib
in '' termcap tinfo curses ncurses
; do
6949 if test -z "$ac_lib"; then
6950 ac_res
="none required"
6953 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6955 if ac_fn_c_try_link
"$LINENO"; then :
6956 ac_cv_search_tgetent
=$ac_res
6958 rm -f core conftest.err conftest.
$ac_objext \
6960 if test "${ac_cv_search_tgetent+set}" = set; then :
6964 if test "${ac_cv_search_tgetent+set}" = set; then :
6967 ac_cv_search_tgetent
=no
6970 LIBS
=$ac_func_search_save_LIBS
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
6973 $as_echo "$ac_cv_search_tgetent" >&6; }
6974 ac_res
=$ac_cv_search_tgetent
6975 if test "$ac_res" != no
; then :
6976 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6981 if test "$ac_cv_search_tgetent" = no
; then
6982 as_fn_error
"no termcap library found" "$LINENO" 5
6986 # Check whether --with-system-readline was given.
6987 if test "${with_system_readline+set}" = set; then :
6988 withval
=$with_system_readline;
6992 if test "$with_system_readline" = yes; then
6996 READLINE_TEXI_INCFLAG
=
6998 READLINE
='$(READLINE_DIR)/libreadline.a'
6999 READLINE_DEPS
='$(READLINE)'
7000 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
7001 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
7008 # Generate jit-reader.h
7010 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7013 # The cast to long int works around a bug in the HP C Compiler
7014 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7015 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7016 # This bug is HP SR number 8606223364.
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7018 $as_echo_n "checking size of unsigned long long... " >&6; }
7019 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7020 $as_echo_n "(cached) " >&6
7022 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7025 if test "$ac_cv_type_unsigned_long_long" = yes; then
7026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7028 { as_fn_set_status
77
7029 as_fn_error
"cannot compute sizeof (unsigned long long)
7030 See \`config.log' for more details." "$LINENO" 5; }; }
7032 ac_cv_sizeof_unsigned_long_long
=0
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7038 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7042 cat >>confdefs.h
<<_ACEOF
7043 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7047 # The cast to long int works around a bug in the HP C Compiler
7048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7050 # This bug is HP SR number 8606223364.
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7052 $as_echo_n "checking size of unsigned long... " >&6; }
7053 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7054 $as_echo_n "(cached) " >&6
7056 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7059 if test "$ac_cv_type_unsigned_long" = yes; then
7060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7062 { as_fn_set_status
77
7063 as_fn_error
"cannot compute sizeof (unsigned long)
7064 See \`config.log' for more details." "$LINENO" 5; }; }
7066 ac_cv_sizeof_unsigned_long
=0
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7072 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7076 cat >>confdefs.h
<<_ACEOF
7077 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7081 # The cast to long int works around a bug in the HP C Compiler
7082 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7083 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7084 # This bug is HP SR number 8606223364.
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7086 $as_echo_n "checking size of unsigned __int128... " >&6; }
7087 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7088 $as_echo_n "(cached) " >&6
7090 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7093 if test "$ac_cv_type_unsigned___int128" = yes; then
7094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7096 { as_fn_set_status
77
7097 as_fn_error
"cannot compute sizeof (unsigned __int128)
7098 See \`config.log' for more details." "$LINENO" 5; }; }
7100 ac_cv_sizeof_unsigned___int128
=0
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7106 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7110 cat >>confdefs.h
<<_ACEOF
7111 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7116 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7117 TARGET_PTR
="unsigned long"
7118 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7119 TARGET_PTR
="unsigned long long"
7120 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7121 TARGET_PTR
="unsigned __int128"
7123 TARGET_PTR
="unsigned long"
7127 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7131 $as_echo_n "checking for library containing dlopen... " >&6; }
7132 if test "${ac_cv_search_dlopen+set}" = set; then :
7133 $as_echo_n "(cached) " >&6
7135 ac_func_search_save_LIBS
=$LIBS
7136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7139 /* Override any GCC internal prototype to avoid an error.
7140 Use char because int might match the return type of a GCC
7141 builtin and then its argument prototype would still apply. */
7154 for ac_lib
in '' dl
; do
7155 if test -z "$ac_lib"; then
7156 ac_res
="none required"
7159 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7161 if ac_fn_c_try_link
"$LINENO"; then :
7162 ac_cv_search_dlopen
=$ac_res
7164 rm -f core conftest.err conftest.
$ac_objext \
7166 if test "${ac_cv_search_dlopen+set}" = set; then :
7170 if test "${ac_cv_search_dlopen+set}" = set; then :
7173 ac_cv_search_dlopen
=no
7176 LIBS
=$ac_func_search_save_LIBS
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7179 $as_echo "$ac_cv_search_dlopen" >&6; }
7180 ac_res
=$ac_cv_search_dlopen
7181 if test "$ac_res" != no
; then :
7182 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7189 # Check whether --with-jit-reader-dir was given.
7190 if test "${with_jit_reader_dir+set}" = set; then :
7191 withval
=$with_jit_reader_dir;
7192 JIT_READER_DIR
=$withval
7194 JIT_READER_DIR
=${libdir}/gdb
7198 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7199 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7200 ac_define_dir
=`eval echo $JIT_READER_DIR`
7201 ac_define_dir
=`eval echo $ac_define_dir`
7203 cat >>confdefs.h
<<_ACEOF
7204 #define JIT_READER_DIR "$ac_define_dir"
7210 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7211 if test "x$prefix" = xNONE
; then
7212 test_prefix
=/usr
/local
7217 test_prefix
=$exec_prefix
7220 case ${ac_define_dir} in
7221 "${test_prefix}"|
"${test_prefix}/"*|\
7222 '${exec_prefix}'|
'${exec_prefix}/'*)
7227 cat >>confdefs.h
<<_ACEOF
7228 #define JIT_READER_DIR_RELOCATABLE $value
7235 # Check whether --with-expat was given.
7236 if test "${with_expat+set}" = set; then :
7237 withval
=$with_expat;
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7243 $as_echo_n "checking whether to use expat... " >&6; }
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7245 $as_echo "$with_expat" >&6; }
7247 if test "${with_expat}" = no
; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7249 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7253 if test "X$prefix" = "XNONE"; then
7254 acl_final_prefix
="$ac_default_prefix"
7256 acl_final_prefix
="$prefix"
7258 if test "X$exec_prefix" = "XNONE"; then
7259 acl_final_exec_prefix
='${prefix}'
7261 acl_final_exec_prefix
="$exec_prefix"
7263 acl_save_prefix
="$prefix"
7264 prefix
="$acl_final_prefix"
7265 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7266 prefix
="$acl_save_prefix"
7269 # Check whether --with-gnu-ld was given.
7270 if test "${with_gnu_ld+set}" = set; then :
7271 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7276 # Prepare PATH_SEPARATOR.
7277 # The user is always right.
7278 if test "${PATH_SEPARATOR+set}" != set; then
7279 echo "#! /bin/sh" >conf$$.sh
7280 echo "exit 0" >>conf$$.sh
7282 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7290 if test "$GCC" = yes; then
7291 # Check if gcc -print-prog-name=ld gives a path.
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7293 $as_echo_n "checking for ld used by GCC... " >&6; }
7296 # gcc leaves a trailing carriage return which upsets mingw
7297 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7299 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7302 # Accept absolute paths.
7303 [\\/]* |
[A-Za-z
]:[\\/]*)
7304 re_direlt
='/[^/][^/]*/\.\./'
7305 # Canonicalize the path of ld
7306 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7307 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7308 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7310 test -z "$LD" && LD
="$ac_prog"
7313 # If it fails, then pretend we aren't using GCC.
7317 # If it is relative, then search for the first ld in PATH.
7321 elif test "$with_gnu_ld" = yes; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7323 $as_echo_n "checking for GNU ld... " >&6; }
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7326 $as_echo_n "checking for non-GNU ld... " >&6; }
7328 if test "${acl_cv_path_LD+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7331 if test -z "$LD"; then
7332 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7333 for ac_dir
in $PATH; do
7334 test -z "$ac_dir" && ac_dir
=.
7335 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7336 acl_cv_path_LD
="$ac_dir/$ac_prog"
7337 # Check to see if the program is GNU ld. I'd rather use --version,
7338 # but apparently some GNU ld's only accept -v.
7339 # Break only if it was the GNU/non-GNU ld that we prefer.
7340 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7341 test "$with_gnu_ld" != no
&& break
7343 test "$with_gnu_ld" != yes && break
7349 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7353 LD
="$acl_cv_path_LD"
7354 if test -n "$LD"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7356 $as_echo "$LD" >&6; }
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7361 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7363 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7364 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7365 $as_echo_n "(cached) " >&6
7367 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7368 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7369 acl_cv_prog_gnu_ld
=yes
7371 acl_cv_prog_gnu_ld
=no
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7375 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7376 with_gnu_ld
=$acl_cv_prog_gnu_ld
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7381 $as_echo_n "checking for shared library run path origin... " >&6; }
7382 if test "${acl_cv_rpath+set}" = set; then :
7383 $as_echo_n "(cached) " >&6
7386 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7387 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7394 $as_echo "$acl_cv_rpath" >&6; }
7396 libext
="$acl_cv_libext"
7397 shlibext
="$acl_cv_shlibext"
7398 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7399 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7400 hardcode_direct
="$acl_cv_hardcode_direct"
7401 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7402 # Check whether --enable-rpath was given.
7403 if test "${enable_rpath+set}" = set; then :
7404 enableval
=$enable_rpath; :
7420 acl_save_prefix
="$prefix"
7421 prefix
="$acl_final_prefix"
7422 acl_save_exec_prefix
="$exec_prefix"
7423 exec_prefix
="$acl_final_exec_prefix"
7425 eval additional_includedir
=\"$includedir\"
7426 eval additional_libdir
=\"$libdir\"
7428 exec_prefix
="$acl_save_exec_prefix"
7429 prefix
="$acl_save_prefix"
7432 # Check whether --with-libexpat-prefix was given.
7433 if test "${with_libexpat_prefix+set}" = set; then :
7434 withval
=$with_libexpat_prefix;
7435 if test "X$withval" = "Xno"; then
7438 if test "X$withval" = "X"; then
7440 acl_save_prefix
="$prefix"
7441 prefix
="$acl_final_prefix"
7442 acl_save_exec_prefix
="$exec_prefix"
7443 exec_prefix
="$acl_final_exec_prefix"
7445 eval additional_includedir
=\"$includedir\"
7446 eval additional_libdir
=\"$libdir\"
7448 exec_prefix
="$acl_save_exec_prefix"
7449 prefix
="$acl_save_prefix"
7452 additional_includedir
="$withval/include"
7453 additional_libdir
="$withval/lib"
7464 names_already_handled
=
7465 names_next_round
='expat '
7466 while test -n "$names_next_round"; do
7467 names_this_round
="$names_next_round"
7469 for name
in $names_this_round; do
7471 for n
in $names_already_handled; do
7472 if test "$n" = "$name"; then
7477 if test -z "$already_handled"; then
7478 names_already_handled
="$names_already_handled $name"
7479 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7480 eval value
=\"\
$HAVE_LIB$uppername\"
7481 if test -n "$value"; then
7482 if test "$value" = yes; then
7483 eval value
=\"\
$LIB$uppername\"
7484 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
7485 eval value
=\"\
$LTLIB$uppername\"
7486 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7495 if test $use_additional = yes; then
7496 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7497 found_dir
="$additional_libdir"
7498 found_so
="$additional_libdir/lib$name.$shlibext"
7499 if test -f "$additional_libdir/lib$name.la"; then
7500 found_la
="$additional_libdir/lib$name.la"
7503 if test -f "$additional_libdir/lib$name.$libext"; then
7504 found_dir
="$additional_libdir"
7505 found_a
="$additional_libdir/lib$name.$libext"
7506 if test -f "$additional_libdir/lib$name.la"; then
7507 found_la
="$additional_libdir/lib$name.la"
7512 if test "X$found_dir" = "X"; then
7513 for x
in $LDFLAGS $LTLIBEXPAT; do
7515 acl_save_prefix
="$prefix"
7516 prefix
="$acl_final_prefix"
7517 acl_save_exec_prefix
="$exec_prefix"
7518 exec_prefix
="$acl_final_exec_prefix"
7520 exec_prefix
="$acl_save_exec_prefix"
7521 prefix
="$acl_save_prefix"
7525 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7526 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7528 found_so
="$dir/lib$name.$shlibext"
7529 if test -f "$dir/lib$name.la"; then
7530 found_la
="$dir/lib$name.la"
7533 if test -f "$dir/lib$name.$libext"; then
7535 found_a
="$dir/lib$name.$libext"
7536 if test -f "$dir/lib$name.la"; then
7537 found_la
="$dir/lib$name.la"
7543 if test "X$found_dir" != "X"; then
7548 if test "X$found_dir" != "X"; then
7549 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7550 if test "X$found_so" != "X"; then
7551 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
7552 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7555 for x
in $ltrpathdirs; do
7556 if test "X$x" = "X$found_dir"; then
7561 if test -z "$haveit"; then
7562 ltrpathdirs
="$ltrpathdirs $found_dir"
7564 if test "$hardcode_direct" = yes; then
7565 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7567 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
7568 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7570 for x
in $rpathdirs; do
7571 if test "X$x" = "X$found_dir"; then
7576 if test -z "$haveit"; then
7577 rpathdirs
="$rpathdirs $found_dir"
7581 for x
in $LDFLAGS $LIBEXPAT; do
7583 acl_save_prefix
="$prefix"
7584 prefix
="$acl_final_prefix"
7585 acl_save_exec_prefix
="$exec_prefix"
7586 exec_prefix
="$acl_final_exec_prefix"
7588 exec_prefix
="$acl_save_exec_prefix"
7589 prefix
="$acl_save_prefix"
7591 if test "X$x" = "X-L$found_dir"; then
7596 if test -z "$haveit"; then
7597 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7599 if test "$hardcode_minus_L" != no
; then
7600 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7602 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7608 if test "X$found_a" != "X"; then
7609 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7611 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7614 additional_includedir
=
7615 case "$found_dir" in
7617 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7618 additional_includedir
="$basedir/include"
7621 if test "X$additional_includedir" != "X"; then
7622 if test "X$additional_includedir" != "X/usr/include"; then
7624 if test "X$additional_includedir" = "X/usr/local/include"; then
7625 if test -n "$GCC"; then
7627 linux
*) haveit
=yes;;
7631 if test -z "$haveit"; then
7632 for x
in $CPPFLAGS $INCEXPAT; do
7634 acl_save_prefix
="$prefix"
7635 prefix
="$acl_final_prefix"
7636 acl_save_exec_prefix
="$exec_prefix"
7637 exec_prefix
="$acl_final_exec_prefix"
7639 exec_prefix
="$acl_save_exec_prefix"
7640 prefix
="$acl_save_prefix"
7642 if test "X$x" = "X-I$additional_includedir"; then
7647 if test -z "$haveit"; then
7648 if test -d "$additional_includedir"; then
7649 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7655 if test -n "$found_la"; then
7656 save_libdir
="$libdir"
7658 */* |
*\\*) .
"$found_la" ;;
7659 *) .
"./$found_la" ;;
7661 libdir
="$save_libdir"
7662 for dep
in $dependency_libs; do
7665 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7666 if test "X$additional_libdir" != "X/usr/lib"; then
7668 if test "X$additional_libdir" = "X/usr/local/lib"; then
7669 if test -n "$GCC"; then
7671 linux
*) haveit
=yes;;
7675 if test -z "$haveit"; then
7677 for x
in $LDFLAGS $LIBEXPAT; do
7679 acl_save_prefix
="$prefix"
7680 prefix
="$acl_final_prefix"
7681 acl_save_exec_prefix
="$exec_prefix"
7682 exec_prefix
="$acl_final_exec_prefix"
7684 exec_prefix
="$acl_save_exec_prefix"
7685 prefix
="$acl_save_prefix"
7687 if test "X$x" = "X-L$additional_libdir"; then
7692 if test -z "$haveit"; then
7693 if test -d "$additional_libdir"; then
7694 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7698 for x
in $LDFLAGS $LTLIBEXPAT; do
7700 acl_save_prefix
="$prefix"
7701 prefix
="$acl_final_prefix"
7702 acl_save_exec_prefix
="$exec_prefix"
7703 exec_prefix
="$acl_final_exec_prefix"
7705 exec_prefix
="$acl_save_exec_prefix"
7706 prefix
="$acl_save_prefix"
7708 if test "X$x" = "X-L$additional_libdir"; then
7713 if test -z "$haveit"; then
7714 if test -d "$additional_libdir"; then
7715 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7722 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7723 if test "$enable_rpath" != no
; then
7725 for x
in $rpathdirs; do
7726 if test "X$x" = "X$dir"; then
7731 if test -z "$haveit"; then
7732 rpathdirs
="$rpathdirs $dir"
7735 for x
in $ltrpathdirs; do
7736 if test "X$x" = "X$dir"; then
7741 if test -z "$haveit"; then
7742 ltrpathdirs
="$ltrpathdirs $dir"
7747 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7750 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7753 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7754 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7760 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7761 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7767 if test "X$rpathdirs" != "X"; then
7768 if test -n "$hardcode_libdir_separator"; then
7770 for found_dir
in $rpathdirs; do
7771 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7773 acl_save_libdir
="$libdir"
7775 eval flag
=\"$hardcode_libdir_flag_spec\"
7776 libdir
="$acl_save_libdir"
7777 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7779 for found_dir
in $rpathdirs; do
7780 acl_save_libdir
="$libdir"
7782 eval flag
=\"$hardcode_libdir_flag_spec\"
7783 libdir
="$acl_save_libdir"
7784 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7788 if test "X$ltrpathdirs" != "X"; then
7789 for found_dir
in $ltrpathdirs; do
7790 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7795 ac_save_CPPFLAGS
="$CPPFLAGS"
7797 for element
in $INCEXPAT; do
7799 for x
in $CPPFLAGS; do
7801 acl_save_prefix
="$prefix"
7802 prefix
="$acl_final_prefix"
7803 acl_save_exec_prefix
="$exec_prefix"
7804 exec_prefix
="$acl_final_exec_prefix"
7806 exec_prefix
="$acl_save_exec_prefix"
7807 prefix
="$acl_save_prefix"
7809 if test "X$x" = "X$element"; then
7814 if test -z "$haveit"; then
7815 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
7821 $as_echo_n "checking for libexpat... " >&6; }
7822 if test "${ac_cv_libexpat+set}" = set; then :
7823 $as_echo_n "(cached) " >&6
7826 ac_save_LIBS
="$LIBS"
7827 LIBS
="$LIBS $LIBEXPAT"
7828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h. */
7834 XML_Parser p = XML_ParserCreate (0);
7839 if ac_fn_c_try_link
"$LINENO"; then :
7844 rm -f core conftest.err conftest.
$ac_objext \
7845 conftest
$ac_exeext conftest.
$ac_ext
7846 LIBS
="$ac_save_LIBS"
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
7850 $as_echo "$ac_cv_libexpat" >&6; }
7851 if test "$ac_cv_libexpat" = yes; then
7854 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
7857 $as_echo_n "checking how to link with libexpat... " >&6; }
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
7859 $as_echo "$LIBEXPAT" >&6; }
7862 CPPFLAGS
="$ac_save_CPPFLAGS"
7872 if test "$HAVE_LIBEXPAT" != yes; then
7873 if test "$with_expat" = yes; then
7874 as_fn_error
"expat is missing or unusable" "$LINENO" 5
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
7877 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
7881 LIBS
="$LIBS $LIBEXPAT"
7882 for ac_func
in XML_StopParser
7884 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
7885 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
7886 cat >>confdefs.h
<<_ACEOF
7887 #define HAVE_XML_STOPPARSER 1
7902 # Check whether --with-python was given.
7903 if test "${with_python+set}" = set; then :
7904 withval
=$with_python;
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
7910 $as_echo_n "checking whether to use python... " >&6; }
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
7912 $as_echo "$with_python" >&6; }
7914 if test "${with_python}" = no
; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
7916 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
7919 case "${with_python}" in
7921 if test -d ${with_python}; then
7922 # Assume the python binary is ${with_python}/bin/python.
7923 python_prog
="${with_python}/bin/python"
7925 # If python does not exit ${with_python}/bin, then try in
7926 # ${with_python}. On Windows/MinGW, this is where the Python
7928 if test ! -x "${python_prog}"; then
7929 python_prog
="${with_python}/python"
7932 if test ! -x "${python_prog}"; then
7933 # Fall back to gdb 7.0/7.1 behaviour.
7935 python_prefix
=${with_python}
7937 elif test -x "${with_python}"; then
7938 # While we can't run python compiled for $host (unless host == build),
7939 # the user could write a script that provides the needed information,
7940 # so we support that.
7941 python_prog
=${with_python}
7944 as_fn_error
"invalid value for --with-python" "$LINENO" 5
7948 # Disallow --with-python=foo/bar.
7949 as_fn_error
"invalid value for --with-python" "$LINENO" 5
7952 # The user has either specified auto, yes, or the name of the python
7953 # program assumed to be in $PATH.
7955 case "${with_python}" in
7957 if test ${build} = ${host}; then
7958 # Extract the first word of "python", so it can be a program name with args.
7959 set dummy python
; ac_word
=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if test "${ac_cv_path_python_prog_path+set}" = set; then :
7963 $as_echo_n "(cached) " >&6
7965 case $python_prog_path in
7967 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
7970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7974 test -z "$as_dir" && as_dir
=.
7975 for ac_exec_ext
in '' $ac_executable_extensions; do
7976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7977 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
7978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
7989 python_prog_path
=$ac_cv_path_python_prog_path
7990 if test -n "$python_prog_path"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
7992 $as_echo "$python_prog_path" >&6; }
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7999 if test "${python_prog_path}" = missing
; then
8002 python_prog
=${python_prog_path}
8005 # Not much we can do except assume the cross-compiler will find the
8011 # While we can't run python compiled for $host (unless host == build),
8012 # the user could write a script that provides the needed information,
8013 # so we support that.
8014 python_prog
="${with_python}"
8015 # Extract the first word of "${python_prog}", so it can be a program name with args.
8016 set dummy
${python_prog}; ac_word
=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8020 $as_echo_n "(cached) " >&6
8022 case $python_prog_path in
8024 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8031 test -z "$as_dir" && as_dir
=.
8032 for ac_exec_ext
in '' $ac_executable_extensions; do
8033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8034 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8046 python_prog_path
=$ac_cv_path_python_prog_path
8047 if test -n "$python_prog_path"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8049 $as_echo "$python_prog_path" >&6; }
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8056 if test "${python_prog_path}" = missing
; then
8057 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
8063 if test "${python_prog}" != missing
; then
8064 # We have a python program to use, but it may be too old.
8065 # Don't flag an error for --with-python=auto (the default).
8066 have_python_config
=yes
8067 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
8068 if test $?
!= 0; then
8069 have_python_config
=failed
8070 if test "${with_python}" != auto
; then
8071 as_fn_error
"failure running python-config --includes" "$LINENO" 5
8074 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8075 if test $?
!= 0; then
8076 have_python_config
=failed
8077 if test "${with_python}" != auto
; then
8078 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
8081 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8082 if test $?
!= 0; then
8083 have_python_config
=failed
8084 if test "${with_python}" != auto
; then
8085 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
8089 # We do not have a python executable we can use to determine where
8090 # to find the Python headers and libs. We cannot guess the include
8091 # path from the python_prefix either, because that include path
8092 # depends on the Python version. So, there is nothing much we can
8093 # do except assume that the compiler will be able to find those files.
8096 have_python_config
=no
8099 # If we have python-config, only try the configuration it provides.
8100 # Otherwise fallback on the old way of trying different versions of
8104 if test "${have_python_config}" = yes; then
8105 # Determine the Python version by extracting "-lpython<version>"
8106 # part of the python_libs. <version> is usually X.Y with X and Y
8107 # being decimal numbers, but can also be XY (seen on Windows).
8109 # The extraction is performed using sed with a regular expression.
8110 # Initially, the regexp used was using the '?' quantifier to make
8111 # the dot in the version number optional. Unfortunately, this
8112 # does not work with non-GNU versions of sed because, because of
8113 # what looks like a limitation (the '?' quantifier does not work
8114 # with back-references). We work around this limitation by using
8115 # the '*' quantifier instead. It means that, in theory, we might
8116 # match unexpected version strings such as "-lpython2..7", but
8117 # this seems unlikely in practice. And even if that happens,
8118 # an error will be triggered later on, when checking that version
8120 python_version
=`echo " ${python_libs} " \
8121 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8122 case "${python_version}" in
8125 version
=${python_version}
8127 new_CPPFLAGS
=${python_includes}
8128 new_LIBS
=${python_libs}
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8130 $as_echo_n "checking for ${version}... " >&6; }
8131 save_CPPFLAGS
=$CPPFLAGS
8133 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8134 LIBS
="$LIBS $new_LIBS"
8135 found_usable_python
=no
8136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8137 /* end confdefs.h. */
8147 if ac_fn_c_try_link
"$LINENO"; then :
8148 have_libpython
=${version}
8149 found_usable_python
=yes
8150 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8151 PYTHON_LIBS
=$new_LIBS
8153 rm -f core conftest.err conftest.
$ac_objext \
8154 conftest
$ac_exeext conftest.
$ac_ext
8155 CPPFLAGS
=$save_CPPFLAGS
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8158 $as_echo "${found_usable_python}" >&6; }
8162 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
8165 elif test "${have_python_config}" != failed
; then
8166 if test "${have_libpython}" = no
; then
8170 new_CPPFLAGS
=${python_includes}
8171 new_LIBS
="${python_libs} -lpython2.7"
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8173 $as_echo_n "checking for ${version}... " >&6; }
8174 save_CPPFLAGS
=$CPPFLAGS
8176 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8177 LIBS
="$LIBS $new_LIBS"
8178 found_usable_python
=no
8179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8190 if ac_fn_c_try_link
"$LINENO"; then :
8191 have_libpython
=${version}
8192 found_usable_python
=yes
8193 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8194 PYTHON_LIBS
=$new_LIBS
8196 rm -f core conftest.err conftest.
$ac_objext \
8197 conftest
$ac_exeext conftest.
$ac_ext
8198 CPPFLAGS
=$save_CPPFLAGS
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8201 $as_echo "${found_usable_python}" >&6; }
8204 if test "${have_libpython}" = no
; then
8208 new_CPPFLAGS
=${python_includes}
8209 new_LIBS
="${python_libs} -lpython2.6"
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8211 $as_echo_n "checking for ${version}... " >&6; }
8212 save_CPPFLAGS
=$CPPFLAGS
8214 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8215 LIBS
="$LIBS $new_LIBS"
8216 found_usable_python
=no
8217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8228 if ac_fn_c_try_link
"$LINENO"; then :
8229 have_libpython
=${version}
8230 found_usable_python
=yes
8231 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8232 PYTHON_LIBS
=$new_LIBS
8234 rm -f core conftest.err conftest.
$ac_objext \
8235 conftest
$ac_exeext conftest.
$ac_ext
8236 CPPFLAGS
=$save_CPPFLAGS
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8239 $as_echo "${found_usable_python}" >&6; }
8242 if test ${have_libpython} = no
; then
8246 new_CPPFLAGS
=${python_includes}
8247 new_LIBS
="${python_libs} -lpython2.5"
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8249 $as_echo_n "checking for ${version}... " >&6; }
8250 save_CPPFLAGS
=$CPPFLAGS
8252 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8253 LIBS
="$LIBS $new_LIBS"
8254 found_usable_python
=no
8255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8266 if ac_fn_c_try_link
"$LINENO"; then :
8267 have_libpython
=${version}
8268 found_usable_python
=yes
8269 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8270 PYTHON_LIBS
=$new_LIBS
8272 rm -f core conftest.err conftest.
$ac_objext \
8273 conftest
$ac_exeext conftest.
$ac_ext
8274 CPPFLAGS
=$save_CPPFLAGS
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8277 $as_echo "${found_usable_python}" >&6; }
8280 if test ${have_libpython} = no
; then
8284 new_CPPFLAGS
=${python_includes}
8285 new_LIBS
="${python_libs} -lpython2.4"
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8287 $as_echo_n "checking for ${version}... " >&6; }
8288 save_CPPFLAGS
=$CPPFLAGS
8290 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8291 LIBS
="$LIBS $new_LIBS"
8292 found_usable_python
=no
8293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8304 if ac_fn_c_try_link
"$LINENO"; then :
8305 have_libpython
=${version}
8306 found_usable_python
=yes
8307 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8308 PYTHON_LIBS
=$new_LIBS
8310 rm -f core conftest.err conftest.
$ac_objext \
8311 conftest
$ac_exeext conftest.
$ac_ext
8312 CPPFLAGS
=$save_CPPFLAGS
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8315 $as_echo "${found_usable_python}" >&6; }
8319 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
8321 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8323 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
8325 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8327 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
8329 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8331 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
8333 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8337 if test "${have_libpython}" = no
; then
8338 case "${with_python}" in
8340 as_fn_error
"python is missing or unusable" "$LINENO" 5
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8344 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8347 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
8351 if test -n "${python_prefix}"; then
8353 cat >>confdefs.h
<<_ACEOF
8354 #define WITH_PYTHON_PATH "${python_prefix}"
8358 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8359 if test "x$prefix" = xNONE
; then
8360 test_prefix
=/usr
/local
8365 test_prefix
=$exec_prefix
8368 case ${python_prefix} in
8369 "${test_prefix}"|
"${test_prefix}/"*|\
8370 '${exec_prefix}'|
'${exec_prefix}/'*)
8375 cat >>confdefs.h
<<_ACEOF
8376 #define PYTHON_PATH_RELOCATABLE $value
8384 if test "${have_libpython}" != no
; then
8386 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8388 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8389 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8390 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8391 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
8392 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8394 # Flags needed to compile Python code (taken from python-config --cflags).
8395 # We cannot call python-config directly because it will output whatever was
8396 # used when compiling the Python interpreter itself, including flags which
8397 # would make the python-related objects be compiled differently from the
8398 # rest of GDB (e.g., -O2 and -fPIC).
8399 if test "${GCC}" = yes; then
8400 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
8403 if test "x${tentative_python_cflags}" != x
; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8405 $as_echo_n "checking compiler flags for python code... " >&6; }
8406 for flag
in ${tentative_python_cflags}; do
8407 # Check that the compiler accepts it
8408 saved_CFLAGS
="$CFLAGS"
8409 CFLAGS
="$CFLAGS $flag"
8410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8421 if ac_fn_c_try_compile
"$LINENO"; then :
8422 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
8424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8425 CFLAGS
="$saved_CFLAGS"
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8428 $as_echo "${PYTHON_CFLAGS}" >&6; }
8431 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
8433 # #define siginfo __siginfo
8435 # The problem is that including Python causes some XOPEN macros to be
8436 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
8437 # to false. So, we work around this issue by defining siginfo ourself
8438 # though the command-line.
8440 irix
*) if test "${GCC}" = yes; then
8441 CPPFLAGS
="$CPPFLAGS -Dsiginfo=__siginfo"
8446 # Even if Python support is not compiled in, we need to have these files
8448 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
8449 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c \
8450 python/py-prettyprint.c python/py-auto-load.c"
8456 # ------------------------- #
8457 # Checks for header files. #
8458 # ------------------------- #
8461 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
8462 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8464 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8465 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8466 $as_echo_n "(cached) " >&6
8468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8470 #include <sys/types.h>
8482 if ac_fn_c_try_compile
"$LINENO"; then :
8483 eval "$as_ac_Header=yes"
8485 eval "$as_ac_Header=no"
8487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8489 eval ac_res
=\$
$as_ac_Header
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8491 $as_echo "$ac_res" >&6; }
8492 eval as_val
=\$
$as_ac_Header
8493 if test "x$as_val" = x
""yes; then :
8494 cat >>confdefs.h
<<_ACEOF
8495 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8498 ac_header_dirent
=$ac_hdr; break
8502 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8503 if test $ac_header_dirent = dirent.h
; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8505 $as_echo_n "checking for library containing opendir... " >&6; }
8506 if test "${ac_cv_search_opendir+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
8509 ac_func_search_save_LIBS
=$LIBS
8510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8513 /* Override any GCC internal prototype to avoid an error.
8514 Use char because int might match the return type of a GCC
8515 builtin and then its argument prototype would still apply. */
8528 for ac_lib
in '' dir
; do
8529 if test -z "$ac_lib"; then
8530 ac_res
="none required"
8533 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8535 if ac_fn_c_try_link
"$LINENO"; then :
8536 ac_cv_search_opendir
=$ac_res
8538 rm -f core conftest.err conftest.
$ac_objext \
8540 if test "${ac_cv_search_opendir+set}" = set; then :
8544 if test "${ac_cv_search_opendir+set}" = set; then :
8547 ac_cv_search_opendir
=no
8550 LIBS
=$ac_func_search_save_LIBS
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8553 $as_echo "$ac_cv_search_opendir" >&6; }
8554 ac_res
=$ac_cv_search_opendir
8555 if test "$ac_res" != no
; then :
8556 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8562 $as_echo_n "checking for library containing opendir... " >&6; }
8563 if test "${ac_cv_search_opendir+set}" = set; then :
8564 $as_echo_n "(cached) " >&6
8566 ac_func_search_save_LIBS
=$LIBS
8567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8568 /* end confdefs.h. */
8570 /* Override any GCC internal prototype to avoid an error.
8571 Use char because int might match the return type of a GCC
8572 builtin and then its argument prototype would still apply. */
8585 for ac_lib
in '' x
; do
8586 if test -z "$ac_lib"; then
8587 ac_res
="none required"
8590 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8592 if ac_fn_c_try_link
"$LINENO"; then :
8593 ac_cv_search_opendir
=$ac_res
8595 rm -f core conftest.err conftest.
$ac_objext \
8597 if test "${ac_cv_search_opendir+set}" = set; then :
8601 if test "${ac_cv_search_opendir+set}" = set; then :
8604 ac_cv_search_opendir
=no
8607 LIBS
=$ac_func_search_save_LIBS
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8610 $as_echo "$ac_cv_search_opendir" >&6; }
8611 ac_res
=$ac_cv_search_opendir
8612 if test "$ac_res" != no
; then :
8613 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8620 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8621 if test "${ac_cv_header_stat_broken+set}" = set; then :
8622 $as_echo_n "(cached) " >&6
8624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8626 #include <sys/types.h>
8627 #include <sys/stat.h>
8629 #if defined S_ISBLK && defined S_IFDIR
8630 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8633 #if defined S_ISBLK && defined S_IFCHR
8634 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8637 #if defined S_ISLNK && defined S_IFREG
8638 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8641 #if defined S_ISSOCK && defined S_IFREG
8642 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8646 if ac_fn_c_try_compile
"$LINENO"; then :
8647 ac_cv_header_stat_broken
=no
8649 ac_cv_header_stat_broken
=yes
8651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8654 $as_echo "$ac_cv_header_stat_broken" >&6; }
8655 if test $ac_cv_header_stat_broken = yes; then
8657 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8662 $as_echo_n "checking for ANSI C header files... " >&6; }
8663 if test "${ac_cv_header_stdc+set}" = set; then :
8664 $as_echo_n "(cached) " >&6
8666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8681 if ac_fn_c_try_compile
"$LINENO"; then :
8682 ac_cv_header_stdc
=yes
8684 ac_cv_header_stdc
=no
8686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8688 if test $ac_cv_header_stdc = yes; then
8689 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8696 $EGREP "memchr" >/dev
/null
2>&1; then :
8699 ac_cv_header_stdc
=no
8705 if test $ac_cv_header_stdc = yes; then
8706 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h. */
8712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8713 $EGREP "free" >/dev
/null
2>&1; then :
8716 ac_cv_header_stdc
=no
8722 if test $ac_cv_header_stdc = yes; then
8723 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8724 if test "$cross_compiling" = yes; then :
8727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8731 #if ((' ' & 0x0FF) == 0x020)
8732 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8733 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8735 # define ISLOWER(c) \
8736 (('a' <= (c) && (c) <= 'i') \
8737 || ('j' <= (c) && (c) <= 'r') \
8738 || ('s' <= (c) && (c) <= 'z'))
8739 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8747 for (i = 0; i < 256; i++)
8748 if (XOR (islower (i), ISLOWER (i))
8749 || toupper (i) != TOUPPER (i))
8754 if ac_fn_c_try_run
"$LINENO"; then :
8757 ac_cv_header_stdc
=no
8759 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8760 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8766 $as_echo "$ac_cv_header_stdc" >&6; }
8767 if test $ac_cv_header_stdc = yes; then
8769 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8773 # elf_hp.h is for HP/UX 64-bit shared library support.
8774 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
8775 # unconditionally, so what's the point in checking these?
8776 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
8777 thread_db.h gnu
/libc-version.h signal.h stddef.h \
8778 stdlib.h string.h memory.h
strings.h sys
/fault.h \
8779 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
8780 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
8781 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
8782 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
8783 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h \
8784 dlfcn.h sys
/socket.h sys
/un.h
8786 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8787 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8788 eval as_val
=\$
$as_ac_Header
8789 if test "x$as_val" = x
""yes; then :
8790 cat >>confdefs.h
<<_ACEOF
8791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8798 for ac_header
in link.h
8800 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
8801 # include <sys/types.h>
8808 if test "x$ac_cv_header_link_h" = x
""yes; then :
8809 cat >>confdefs.h
<<_ACEOF
8810 #define HAVE_LINK_H 1
8817 for ac_header
in sys
/proc.h
8819 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
8820 # include <sys/param.h>
8824 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
8825 cat >>confdefs.h
<<_ACEOF
8826 #define HAVE_SYS_PROC_H 1
8833 for ac_header
in sys
/user.h
8835 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
8836 # include <sys/param.h>
8840 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
8841 cat >>confdefs.h
<<_ACEOF
8842 #define HAVE_SYS_USER_H 1
8850 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
8851 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
8852 # think that we don't have <curses.h> if we're using GCC.
8855 if test "$GCC" = yes; then
8857 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
8861 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
8863 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8864 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8865 eval as_val
=\$
$as_ac_Header
8866 if test "x$as_val" = x
""yes; then :
8867 cat >>confdefs.h
<<_ACEOF
8868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8875 for ac_header
in term.h
8877 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
8878 # include <curses.h>
8882 if test "x$ac_cv_header_term_h" = x
""yes; then :
8883 cat >>confdefs.h
<<_ACEOF
8884 #define HAVE_TERM_H 1
8892 # ------------------------- #
8893 # Checks for declarations. #
8894 # ------------------------- #
8896 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
8897 if test "x$ac_cv_have_decl_free" = x
""yes; then :
8903 cat >>confdefs.h
<<_ACEOF
8904 #define HAVE_DECL_FREE $ac_have_decl
8906 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
8907 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
8913 cat >>confdefs.h
<<_ACEOF
8914 #define HAVE_DECL_MALLOC $ac_have_decl
8916 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
8917 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
8923 cat >>confdefs.h
<<_ACEOF
8924 #define HAVE_DECL_REALLOC $ac_have_decl
8926 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
8927 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
8933 cat >>confdefs.h
<<_ACEOF
8934 #define HAVE_DECL_STRERROR $ac_have_decl
8936 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8937 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
8943 cat >>confdefs.h
<<_ACEOF
8944 #define HAVE_DECL_STRSTR $ac_have_decl
8946 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
8947 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
8953 cat >>confdefs.h
<<_ACEOF
8954 #define HAVE_DECL_GETOPT $ac_have_decl
8956 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
8957 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
8963 cat >>confdefs.h
<<_ACEOF
8964 #define HAVE_DECL_SNPRINTF $ac_have_decl
8966 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
8967 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
8973 cat >>confdefs.h
<<_ACEOF
8974 #define HAVE_DECL_VSNPRINTF $ac_have_decl
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8979 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8980 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
8983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8994 if ac_fn_c_try_link
"$LINENO"; then :
8995 am_cv_val_LC_MESSAGES
=yes
8997 am_cv_val_LC_MESSAGES
=no
8999 rm -f core conftest.err conftest.
$ac_objext \
9000 conftest
$ac_exeext conftest.
$ac_ext
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9003 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9004 if test $am_cv_val_LC_MESSAGES = yes; then
9006 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9011 # ----------------------- #
9012 # Checks for structures. #
9013 # ----------------------- #
9015 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9016 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
9018 cat >>confdefs.h
<<_ACEOF
9019 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9024 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9025 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
9027 cat >>confdefs.h
<<_ACEOF
9028 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9035 # ------------------ #
9036 # Checks for types. #
9037 # ------------------ #
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9040 $as_echo_n "checking return type of signal handlers... " >&6; }
9041 if test "${ac_cv_type_signal+set}" = set; then :
9042 $as_echo_n "(cached) " >&6
9044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9045 /* end confdefs.h. */
9046 #include <sys/types.h>
9052 return *(signal (0, 0)) (0) == 1;
9057 if ac_fn_c_try_compile
"$LINENO"; then :
9058 ac_cv_type_signal
=int
9060 ac_cv_type_signal
=void
9062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9065 $as_echo "$ac_cv_type_signal" >&6; }
9067 cat >>confdefs.h
<<_ACEOF
9068 #define RETSIGTYPE $ac_cv_type_signal
9072 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9073 #include <sys/socket.h>
9076 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
9078 cat >>confdefs.h
<<_ACEOF
9079 #define HAVE_SOCKLEN_T 1
9086 # ------------------------------------- #
9087 # Checks for compiler characteristics. #
9088 # ------------------------------------- #
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9091 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9092 if test "${ac_cv_c_const+set}" = set; then :
9093 $as_echo_n "(cached) " >&6
9095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9101 /* FIXME: Include the comments suggested by Paul. */
9103 /* Ultrix mips cc rejects this. */
9104 typedef int charset[2];
9106 /* SunOS 4.1.1 cc rejects this. */
9107 char const *const *pcpcc;
9109 /* NEC SVR4.0.2 mips cc rejects this. */
9110 struct point {int x, y;};
9111 static struct point const zero = {0,0};
9112 /* AIX XL C 1.02.0.0 rejects this.
9113 It does not let you subtract one const X* pointer from another in
9114 an arm of an if-expression whose if-part is not a constant
9116 const char *g = "string";
9117 pcpcc = &g + (g ? g-g : 0);
9118 /* HPUX 7.0 cc rejects these. */
9120 ppc = (char**) pcpcc;
9121 pcpcc = (char const *const *) ppc;
9122 { /* SCO 3.2v4 cc rejects this. */
9124 char const *s = 0 ? (char *) 0 : (char const *) 0;
9129 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9131 const int *foo = &x[0];
9134 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9135 typedef const int *iptr;
9139 { /* AIX XL C 1.02.0.0 rejects this saying
9140 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9141 struct s { int j; const int *ap[3]; };
9142 struct s *b; b->j = 5;
9144 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9148 return !cs[0] && !zero.x;
9155 if ac_fn_c_try_compile
"$LINENO"; then :
9160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9163 $as_echo "$ac_cv_c_const" >&6; }
9164 if test $ac_cv_c_const = no
; then
9166 $as_echo "#define const /**/" >>confdefs.h
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9171 $as_echo_n "checking for inline... " >&6; }
9172 if test "${ac_cv_c_inline+set}" = set; then :
9173 $as_echo_n "(cached) " >&6
9176 for ac_kw
in inline __inline__ __inline
; do
9177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9181 static $ac_kw foo_t static_foo () {return 0; }
9182 $ac_kw foo_t foo () {return 0; }
9186 if ac_fn_c_try_compile
"$LINENO"; then :
9187 ac_cv_c_inline
=$ac_kw
9189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9190 test "$ac_cv_c_inline" != no
&& break
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9195 $as_echo "$ac_cv_c_inline" >&6; }
9197 case $ac_cv_c_inline in
9200 case $ac_cv_c_inline in
9202 *) ac_val
=$ac_cv_c_inline;;
9204 cat >>confdefs.h
<<_ACEOF
9206 #define inline $ac_val
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9213 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9214 if test "${ac_cv_c_bigendian+set}" = set; then :
9215 $as_echo_n "(cached) " >&6
9217 ac_cv_c_bigendian
=unknown
9218 # See if we're dealing with a universal compiler.
9219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221 #ifndef __APPLE_CC__
9222 not a universal capable compiler
9227 if ac_fn_c_try_compile
"$LINENO"; then :
9229 # Check for potential -arch flags. It is not universal unless
9230 # there are at least two -arch flags with different values.
9233 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9234 if test -n "$ac_prev"; then
9236 i?
86 | x86_64 | ppc | ppc64
)
9237 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9240 ac_cv_c_bigendian
=universal
9246 elif test "x$ac_word" = "x-arch"; then
9251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9252 if test $ac_cv_c_bigendian = unknown
; then
9253 # See if sys/param.h defines the BYTE_ORDER macro.
9254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9256 #include <sys/types.h>
9257 #include <sys/param.h>
9262 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9263 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9272 if ac_fn_c_try_compile
"$LINENO"; then :
9273 # It does; now see whether it defined to BIG_ENDIAN or not.
9274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9276 #include <sys/types.h>
9277 #include <sys/param.h>
9282 #if BYTE_ORDER != BIG_ENDIAN
9290 if ac_fn_c_try_compile
"$LINENO"; then :
9291 ac_cv_c_bigendian
=yes
9293 ac_cv_c_bigendian
=no
9295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9299 if test $ac_cv_c_bigendian = unknown
; then
9300 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9308 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9316 if ac_fn_c_try_compile
"$LINENO"; then :
9317 # It does; now see whether it defined to _BIG_ENDIAN or not.
9318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9333 if ac_fn_c_try_compile
"$LINENO"; then :
9334 ac_cv_c_bigendian
=yes
9336 ac_cv_c_bigendian
=no
9338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9342 if test $ac_cv_c_bigendian = unknown
; then
9343 # Compile a test program.
9344 if test "$cross_compiling" = yes; then :
9345 # Try to guess by grepping values from an object file.
9346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h. */
9348 short int ascii_mm[] =
9349 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9350 short int ascii_ii[] =
9351 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9352 int use_ascii (int i) {
9353 return ascii_mm[i] + ascii_ii[i];
9355 short int ebcdic_ii[] =
9356 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9357 short int ebcdic_mm[] =
9358 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9359 int use_ebcdic (int i) {
9360 return ebcdic_mm[i] + ebcdic_ii[i];
9367 return use_ascii (foo) == use_ebcdic (foo);
9372 if ac_fn_c_try_compile
"$LINENO"; then :
9373 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9374 ac_cv_c_bigendian
=yes
9376 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9377 if test "$ac_cv_c_bigendian" = unknown
; then
9378 ac_cv_c_bigendian
=no
9380 # finding both strings is unlikely to happen, but who knows?
9381 ac_cv_c_bigendian
=unknown
9385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389 $ac_includes_default
9394 /* Are we little or big endian? From Harbison&Steele. */
9398 char c[sizeof (long int)];
9401 return u.c[sizeof (long int) - 1] == 1;
9407 if ac_fn_c_try_run
"$LINENO"; then :
9408 ac_cv_c_bigendian
=no
9410 ac_cv_c_bigendian
=yes
9412 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9413 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9419 $as_echo "$ac_cv_c_bigendian" >&6; }
9420 case $ac_cv_c_bigendian in #(
9422 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9428 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9432 as_fn_error
"unknown endianness
9433 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9437 # ------------------------------ #
9438 # Checks for library functions. #
9439 # ------------------------------ #
9441 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9442 # for constant arguments. Useless!
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9444 $as_echo_n "checking for working alloca.h... " >&6; }
9445 if test "${ac_cv_working_alloca_h+set}" = set; then :
9446 $as_echo_n "(cached) " >&6
9448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9454 char *p = (char *) alloca (2 * sizeof (int));
9460 if ac_fn_c_try_link
"$LINENO"; then :
9461 ac_cv_working_alloca_h
=yes
9463 ac_cv_working_alloca_h
=no
9465 rm -f core conftest.err conftest.
$ac_objext \
9466 conftest
$ac_exeext conftest.
$ac_ext
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9469 $as_echo "$ac_cv_working_alloca_h" >&6; }
9470 if test $ac_cv_working_alloca_h = yes; then
9472 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9477 $as_echo_n "checking for alloca... " >&6; }
9478 if test "${ac_cv_func_alloca_works+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9484 # define alloca __builtin_alloca
9487 # include <malloc.h>
9488 # define alloca _alloca
9490 # ifdef HAVE_ALLOCA_H
9491 # include <alloca.h>
9496 # ifndef alloca /* predefined by HP cc +Olibcalls */
9507 char *p = (char *) alloca (1);
9513 if ac_fn_c_try_link
"$LINENO"; then :
9514 ac_cv_func_alloca_works
=yes
9516 ac_cv_func_alloca_works
=no
9518 rm -f core conftest.err conftest.
$ac_objext \
9519 conftest
$ac_exeext conftest.
$ac_ext
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9522 $as_echo "$ac_cv_func_alloca_works" >&6; }
9524 if test $ac_cv_func_alloca_works = yes; then
9526 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9529 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9530 # that cause trouble. Some versions do not even contain alloca or
9531 # contain a buggy version. If you still want to use their alloca,
9532 # use ar to extract alloca.o from them instead of compiling alloca.c.
9534 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
9536 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9540 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9541 if test "${ac_cv_os_cray+set}" = set; then :
9542 $as_echo_n "(cached) " >&6
9544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9546 #if defined CRAY && ! defined CRAY2
9553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9554 $EGREP "webecray" >/dev
/null
2>&1; then :
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9563 $as_echo "$ac_cv_os_cray" >&6; }
9564 if test $ac_cv_os_cray = yes; then
9565 for ac_func
in _getb67 GETB67 getb67
; do
9566 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9567 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9568 eval as_val
=\$
$as_ac_var
9569 if test "x$as_val" = x
""yes; then :
9571 cat >>confdefs.h
<<_ACEOF
9572 #define CRAY_STACKSEG_END $ac_func
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9582 $as_echo_n "checking stack direction for C alloca... " >&6; }
9583 if test "${ac_cv_c_stack_direction+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9586 if test "$cross_compiling" = yes; then :
9587 ac_cv_c_stack_direction
=0
9589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h. */
9591 $ac_includes_default
9593 find_stack_direction ()
9595 static char *addr = 0;
9600 return find_stack_direction ();
9603 return (&dummy > addr) ? 1 : -1;
9609 return find_stack_direction () < 0;
9612 if ac_fn_c_try_run
"$LINENO"; then :
9613 ac_cv_c_stack_direction
=1
9615 ac_cv_c_stack_direction
=-1
9617 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9618 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9623 $as_echo "$ac_cv_c_stack_direction" >&6; }
9624 cat >>confdefs.h
<<_ACEOF
9625 #define STACK_DIRECTION $ac_cv_c_stack_direction
9631 for ac_header
in stdlib.h unistd.h
9633 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9634 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9635 eval as_val
=\$
$as_ac_Header
9636 if test "x$as_val" = x
""yes; then :
9637 cat >>confdefs.h
<<_ACEOF
9638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9645 for ac_func
in getpagesize
9647 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9648 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9649 cat >>confdefs.h
<<_ACEOF
9650 #define HAVE_GETPAGESIZE 1
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9657 $as_echo_n "checking for working mmap... " >&6; }
9658 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9661 if test "$cross_compiling" = yes; then :
9662 ac_cv_func_mmap_fixed_mapped
=no
9664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9666 $ac_includes_default
9667 /* malloc might have been renamed as rpl_malloc. */
9670 /* Thanks to Mike Haertel and Jim Avera for this test.
9671 Here is a matrix of mmap possibilities:
9672 mmap private not fixed
9673 mmap private fixed at somewhere currently unmapped
9674 mmap private fixed at somewhere already mapped
9675 mmap shared not fixed
9676 mmap shared fixed at somewhere currently unmapped
9677 mmap shared fixed at somewhere already mapped
9678 For private mappings, we should verify that changes cannot be read()
9679 back from the file, nor mmap's back from the file at a different
9680 address. (There have been systems where private was not correctly
9681 implemented like the infamous i386 svr4.0, and systems where the
9682 VM page cache was not coherent with the file system buffer cache
9683 like early versions of FreeBSD and possibly contemporary NetBSD.)
9684 For shared mappings, we should conversely verify that changes get
9685 propagated back to all the places they're supposed to be.
9687 Grep wants private fixed already mapped.
9688 The main things grep needs to know about mmap are:
9689 * does it exist and is it safe to write into the mmap'd area
9690 * how to use it (BSD variants) */
9693 #include <sys/mman.h>
9695 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9699 /* This mess was copied from the GNU getpagesize.h. */
9700 #ifndef HAVE_GETPAGESIZE
9701 /* Assume that all systems that can run configure have sys/param.h. */
9702 # ifndef HAVE_SYS_PARAM_H
9703 # define HAVE_SYS_PARAM_H 1
9706 # ifdef _SC_PAGESIZE
9707 # define getpagesize() sysconf(_SC_PAGESIZE)
9708 # else /* no _SC_PAGESIZE */
9709 # ifdef HAVE_SYS_PARAM_H
9710 # include <sys/param.h>
9711 # ifdef EXEC_PAGESIZE
9712 # define getpagesize() EXEC_PAGESIZE
9713 # else /* no EXEC_PAGESIZE */
9715 # define getpagesize() NBPG * CLSIZE
9718 # endif /* no CLSIZE */
9719 # else /* no NBPG */
9721 # define getpagesize() NBPC
9722 # else /* no NBPC */
9724 # define getpagesize() PAGESIZE
9725 # endif /* PAGESIZE */
9726 # endif /* no NBPC */
9727 # endif /* no NBPG */
9728 # endif /* no EXEC_PAGESIZE */
9729 # else /* no HAVE_SYS_PARAM_H */
9730 # define getpagesize() 8192 /* punt totally */
9731 # endif /* no HAVE_SYS_PARAM_H */
9732 # endif /* no _SC_PAGESIZE */
9734 #endif /* no HAVE_GETPAGESIZE */
9739 char *data, *data2, *data3;
9743 pagesize = getpagesize ();
9745 /* First, make a file with some known garbage in it. */
9746 data = (char *) malloc (pagesize);
9749 for (i = 0; i < pagesize; ++i)
9750 *(data + i) = rand ();
9752 fd = creat ("conftest.mmap", 0600);
9755 if (write (fd, data, pagesize) != pagesize)
9759 /* Next, try to mmap the file at a fixed address which already has
9760 something else allocated at it. If we can, also make sure that
9761 we see the same garbage. */
9762 fd = open ("conftest.mmap", O_RDWR);
9765 data2 = (char *) malloc (2 * pagesize);
9768 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9769 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9770 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9772 for (i = 0; i < pagesize; ++i)
9773 if (*(data + i) != *(data2 + i))
9776 /* Finally, make sure that changes to the mapped area do not
9777 percolate back to the file as seen by read(). (This is a bug on
9778 some variants of i386 svr4.0.) */
9779 for (i = 0; i < pagesize; ++i)
9780 *(data2 + i) = *(data2 + i) + 1;
9781 data3 = (char *) malloc (pagesize);
9784 if (read (fd, data3, pagesize) != pagesize)
9786 for (i = 0; i < pagesize; ++i)
9787 if (*(data + i) != *(data3 + i))
9793 if ac_fn_c_try_run
"$LINENO"; then :
9794 ac_cv_func_mmap_fixed_mapped
=yes
9796 ac_cv_func_mmap_fixed_mapped
=no
9798 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9799 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9804 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9805 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9807 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9812 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9813 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9817 cat >>confdefs.h
<<_ACEOF
9823 for ac_header
in vfork.h
9825 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9826 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9827 cat >>confdefs.h
<<_ACEOF
9828 #define HAVE_VFORK_H 1
9835 for ac_func
in fork vfork
9837 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9838 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9839 eval as_val
=\$
$as_ac_var
9840 if test "x$as_val" = x
""yes; then :
9841 cat >>confdefs.h
<<_ACEOF
9842 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9848 if test "x$ac_cv_func_fork" = xyes
; then
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9850 $as_echo_n "checking for working fork... " >&6; }
9851 if test "${ac_cv_func_fork_works+set}" = set; then :
9852 $as_echo_n "(cached) " >&6
9854 if test "$cross_compiling" = yes; then :
9855 ac_cv_func_fork_works
=cross
9857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9858 /* end confdefs.h. */
9859 $ac_includes_default
9864 /* By Ruediger Kuhlmann. */
9871 if ac_fn_c_try_run
"$LINENO"; then :
9872 ac_cv_func_fork_works
=yes
9874 ac_cv_func_fork_works
=no
9876 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9877 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9882 $as_echo "$ac_cv_func_fork_works" >&6; }
9885 ac_cv_func_fork_works
=$ac_cv_func_fork
9887 if test "x$ac_cv_func_fork_works" = xcross
; then
9889 *-*-amigaos* |
*-*-msdosdjgpp*)
9890 # Override, as these systems have only a dummy fork() stub
9891 ac_cv_func_fork_works
=no
9894 ac_cv_func_fork_works
=yes
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9898 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9900 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9901 if test "x$ac_cv_func_vfork" = xyes
; then
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9903 $as_echo_n "checking for working vfork... " >&6; }
9904 if test "${ac_cv_func_vfork_works+set}" = set; then :
9905 $as_echo_n "(cached) " >&6
9907 if test "$cross_compiling" = yes; then :
9908 ac_cv_func_vfork_works
=cross
9910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9912 /* Thanks to Paul Eggert for this test. */
9913 $ac_includes_default
9914 #include <sys/wait.h>
9918 /* On some sparc systems, changes by the child to local and incoming
9919 argument registers are propagated back to the parent. The compiler
9920 is told about this with #include <vfork.h>, but some compilers
9921 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9922 static variable whose address is put into a register that is
9923 clobbered by the vfork. */
9926 sparc_address_test (int arg)
9928 sparc_address_test (arg) int arg;
9949 pid_t parent = getpid ();
9952 sparc_address_test (0);
9957 /* Here is another test for sparc vfork register problems. This
9958 test uses lots of local variables, at least as many local
9959 variables as main has allocated so far including compiler
9960 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9961 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9962 reuse the register of parent for one of the local variables,
9963 since it will think that parent can't possibly be used any more
9964 in this routine. Assigning to the local variable will thus
9965 munge parent in the parent process. */
9967 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9968 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9969 /* Convince the compiler that p..p7 are live; otherwise, it might
9970 use the same hardware register for all 8 local variables. */
9971 if (p != p1 || p != p2 || p != p3 || p != p4
9972 || p != p5 || p != p6 || p != p7)
9975 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9976 from child file descriptors. If the child closes a descriptor
9977 before it execs or exits, this munges the parent's descriptor
9978 as well. Test for this by closing stdout in the child. */
9979 _exit(close(fileno(stdout)) != 0);
9984 while (wait(&status) != child)
9987 /* Was there some problem with vforking? */
9990 /* Did the child fail? (This shouldn't happen.) */
9993 /* Did the vfork/compiler bug occur? */
9994 || parent != getpid()
9996 /* Did the file descriptor bug occur? */
9997 || fstat(fileno(stdout), &st) != 0
10002 if ac_fn_c_try_run
"$LINENO"; then :
10003 ac_cv_func_vfork_works
=yes
10005 ac_cv_func_vfork_works
=no
10007 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10008 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10013 $as_echo "$ac_cv_func_vfork_works" >&6; }
10016 if test "x$ac_cv_func_fork_works" = xcross
; then
10017 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10019 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10022 if test "x$ac_cv_func_vfork_works" = xyes
; then
10024 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10028 $as_echo "#define vfork fork" >>confdefs.h
10031 if test "x$ac_cv_func_fork_works" = xyes
; then
10033 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10037 for ac_func
in canonicalize_file_name realpath getrusage getuid getgid \
10038 pipe poll pread pread64 pwrite readlink resize_term \
10039 sbrk setpgid setpgrp setsid \
10040 sigaction sigprocmask sigsetmask socketpair syscall \
10041 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10042 setrlimit getrlimit posix_madvise waitpid lstat
10044 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10045 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10046 eval as_val
=\$
$as_ac_var
10047 if test "x$as_val" = x
""yes; then :
10048 cat >>confdefs.h
<<_ACEOF
10049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10057 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10058 if test "${am_cv_langinfo_codeset+set}" = set; then :
10059 $as_echo_n "(cached) " >&6
10061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10063 #include <langinfo.h>
10067 char* cs = nl_langinfo(CODESET);
10072 if ac_fn_c_try_link
"$LINENO"; then :
10073 am_cv_langinfo_codeset
=yes
10075 am_cv_langinfo_codeset
=no
10077 rm -f core conftest.err conftest.
$ac_objext \
10078 conftest
$ac_exeext conftest.
$ac_ext
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10082 $as_echo "$am_cv_langinfo_codeset" >&6; }
10083 if test $am_cv_langinfo_codeset = yes; then
10085 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10090 # Check the return and argument types of ptrace. No canned test for
10091 # this, so roll our own.
10092 gdb_ptrace_headers
='
10093 #if HAVE_SYS_TYPES_H
10094 # include <sys/types.h>
10096 #if HAVE_SYS_PTRACE_H
10097 # include <sys/ptrace.h>
10100 # include <unistd.h>
10103 # There is no point in checking if we don't have a prototype.
10104 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10106 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
10112 cat >>confdefs.h
<<_ACEOF
10113 #define HAVE_DECL_PTRACE $ac_have_decl
10115 if test $ac_have_decl = 1; then :
10119 : ${gdb_cv_func_ptrace_ret='int'}
10120 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10124 # Check return type. Varargs (used on GNU/Linux) conflict with the
10125 # empty argument list, so check for that explicitly.
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10127 $as_echo_n "checking return type of ptrace... " >&6; }
10128 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
10129 $as_echo_n "(cached) " >&6
10131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h. */
10133 $gdb_ptrace_headers
10137 extern long ptrace (enum __ptrace_request, ...);
10142 if ac_fn_c_try_compile
"$LINENO"; then :
10143 gdb_cv_func_ptrace_ret
='long'
10145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10147 $gdb_ptrace_headers
10151 extern int ptrace ();
10156 if ac_fn_c_try_compile
"$LINENO"; then :
10157 gdb_cv_func_ptrace_ret
='int'
10159 gdb_cv_func_ptrace_ret
='long'
10161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10166 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10168 cat >>confdefs.h
<<_ACEOF
10169 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10172 # Check argument types.
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10174 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10175 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
10179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10181 $gdb_ptrace_headers
10185 extern long ptrace (enum __ptrace_request, ...);
10190 if ac_fn_c_try_compile
"$LINENO"; then :
10191 gdb_cv_func_ptrace_args
='int,int,long,long'
10194 for gdb_arg1
in 'int' 'long'; do
10195 for gdb_arg2
in 'pid_t' 'int' 'long'; do
10196 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10197 for gdb_arg4
in 'int' 'long'; do
10198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10200 $gdb_ptrace_headers
10205 extern $gdb_cv_func_ptrace_ret
10206 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10212 if ac_fn_c_try_compile
"$LINENO"; then :
10213 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10217 for gdb_arg5
in 'int *' 'int' 'long'; do
10218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10220 $gdb_ptrace_headers
10225 extern $gdb_cv_func_ptrace_ret
10226 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10232 if ac_fn_c_try_compile
"$LINENO"; then :
10234 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10243 # Provide a safe default value.
10244 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10250 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10251 ac_save_IFS
=$IFS; IFS
=','
10252 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10256 cat >>confdefs.h
<<_ACEOF
10257 #define PTRACE_TYPE_ARG3 $3
10260 if test -n "$5"; then
10262 cat >>confdefs.h
<<_ACEOF
10263 #define PTRACE_TYPE_ARG5 $5
10268 if test "$cross_compiling" = no
; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10270 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10271 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10272 $as_echo_n "(cached) " >&6
10274 if test "$cross_compiling" = yes; then :
10275 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
10277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h. */
10279 $ac_includes_default
10283 /* If this system has a BSD-style setpgrp which takes arguments,
10284 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
10285 exit successfully. */
10286 return setpgrp (1,1) != -1;
10291 if ac_fn_c_try_run
"$LINENO"; then :
10292 ac_cv_func_setpgrp_void
=no
10294 ac_cv_func_setpgrp_void
=yes
10296 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10297 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10302 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10303 if test $ac_cv_func_setpgrp_void = yes; then
10305 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10311 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10312 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10313 $as_echo_n "(cached) " >&6
10315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10318 #include <unistd.h>
10324 if (setpgrp(1,1) == -1)
10333 if ac_fn_c_try_compile
"$LINENO"; then :
10334 ac_cv_func_setpgrp_void
=no
10336 ac_cv_func_setpgrp_void
=yes
10338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10341 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10342 if test $ac_cv_func_setpgrp_void = yes; then
10343 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10348 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
10349 # since sigsetjmp might only be defined as a macro.
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
10351 $as_echo_n "checking for sigsetjmp... " >&6; }
10352 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
10353 $as_echo_n "(cached) " >&6
10355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10358 #include <setjmp.h>
10363 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
10368 if ac_fn_c_try_compile
"$LINENO"; then :
10369 gdb_cv_func_sigsetjmp
=yes
10371 gdb_cv_func_sigsetjmp
=no
10373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
10376 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
10377 if test $gdb_cv_func_sigsetjmp = yes; then
10379 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
10383 # Assume we'll default to using the included libiberty regex.
10384 gdb_use_included_regex
=yes
10386 # However, if the system regex is GNU regex, then default to *not*
10387 # using the included regex.
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
10389 $as_echo_n "checking for GNU regex... " >&6; }
10390 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
10391 $as_echo_n "(cached) " >&6
10393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395 #include <gnu-versions.h>
10399 #define REGEX_INTERFACE_VERSION 1
10400 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
10401 # error "Version mismatch"
10407 if ac_fn_c_try_compile
"$LINENO"; then :
10408 gdb_cv_have_gnu_regex
=yes
10410 gdb_cv_have_gnu_regex
=no
10412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
10415 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
10416 if test $gdb_cv_have_gnu_regex = yes; then
10417 gdb_use_included_regex
=no
10421 # Check whether --with-included-regex was given.
10422 if test "${with_included_regex+set}" = set; then :
10423 withval
=$with_included_regex; gdb_with_regex
=$withval
10425 gdb_with_regex
=$gdb_use_included_regex
10428 if test "$gdb_with_regex" = yes; then
10430 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
10434 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
10435 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
10436 #include <sys/proc.h>
10439 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
10441 cat >>confdefs.h
<<_ACEOF
10442 #define HAVE_STRUCT_THREAD_TD_PCB 1
10449 # See if <sys/lwp.h> defines `struct lwp`.
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
10451 $as_echo_n "checking for struct lwp... " >&6; }
10452 if test "${gdb_cv_struct_lwp+set}" = set; then :
10453 $as_echo_n "(cached) " >&6
10455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10457 #include <sys/param.h>
10458 #include <sys/lwp.h>
10467 if ac_fn_c_try_compile
"$LINENO"; then :
10468 gdb_cv_struct_lwp
=yes
10470 gdb_cv_struct_lwp
=no
10472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
10475 $as_echo "$gdb_cv_struct_lwp" >&6; }
10476 if test $gdb_cv_struct_lwp = yes; then
10478 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
10482 # See if <machine/reg.h> degines `struct reg'.
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
10484 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
10485 if test "${gdb_cv_struct_reg+set}" = set; then :
10486 $as_echo_n "(cached) " >&6
10488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h. */
10490 #include <sys/types.h>
10491 #include <machine/reg.h>
10500 if ac_fn_c_try_compile
"$LINENO"; then :
10501 gdb_cv_struct_reg
=yes
10503 gdb_cv_struct_reg
=no
10505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
10508 $as_echo "$gdb_cv_struct_reg" >&6; }
10509 if test $gdb_cv_struct_reg = yes; then
10511 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
10515 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
10516 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
10517 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
10519 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
10521 cat >>confdefs.h
<<_ACEOF
10522 #define HAVE_STRUCT_REG_R_FS 1
10527 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
10529 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
10531 cat >>confdefs.h
<<_ACEOF
10532 #define HAVE_STRUCT_REG_R_GS 1
10539 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10541 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10542 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
10543 $as_echo_n "(cached) " >&6
10545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h. */
10547 #include <sys/ptrace.h>
10556 if ac_fn_c_try_compile
"$LINENO"; then :
10557 gdb_cv_have_ptrace_getregs
=yes
10559 gdb_cv_have_ptrace_getregs
=no
10561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
10565 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
10566 if test $gdb_cv_have_ptrace_getregs = yes; then
10568 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10572 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10574 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10575 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
10576 $as_echo_n "(cached) " >&6
10578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10580 #include <sys/ptrace.h>
10589 if ac_fn_c_try_compile
"$LINENO"; then :
10590 gdb_cv_have_ptrace_getfpxregs
=yes
10592 gdb_cv_have_ptrace_getfpxregs
=no
10594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
10598 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
10599 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
10601 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10605 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
10607 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
10608 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
10609 $as_echo_n "(cached) " >&6
10611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10612 /* end confdefs.h. */
10613 #include <sys/types.h>
10614 #include <sys/ptrace.h>
10623 if ac_fn_c_try_compile
"$LINENO"; then :
10624 gdb_cv_have_pt_getdbregs
=yes
10626 gdb_cv_have_pt_getdbregs
=no
10628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
10632 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
10633 if test $gdb_cv_have_pt_getdbregs = yes; then
10635 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
10639 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
10641 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
10642 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
10643 $as_echo_n "(cached) " >&6
10645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10647 #include <sys/types.h>
10648 #include <sys/ptrace.h>
10657 if ac_fn_c_try_compile
"$LINENO"; then :
10658 gdb_cv_have_pt_getxmmregs
=yes
10660 gdb_cv_have_pt_getxmmregs
=no
10662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
10666 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
10667 if test $gdb_cv_have_pt_getxmmregs = yes; then
10669 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
10673 # Detect which type of /proc is in use, such as for Unixware or Solaris.
10675 if test "${target}" = "${host}"; then
10677 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
10679 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10682 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
10684 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10688 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
10690 $as_echo "#define _KMEMUSER 1" >>confdefs.h
10696 if test "$ac_cv_header_sys_procfs_h" = yes; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
10698 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
10699 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
10702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10706 /* Needed for new procfs interface on sparc-solaris. */
10707 #define _STRUCTURED_PROC 1
10708 #include <sys/procfs.h>
10717 if ac_fn_c_try_compile
"$LINENO"; then :
10718 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
10720 bfd_cv_have_sys_procfs_type_pstatus_t
=no
10723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10726 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10728 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10732 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
10735 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
10736 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
10737 $as_echo_n "(cached) " >&6
10739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10740 /* end confdefs.h. */
10743 /* Needed for new procfs interface on sparc-solaris. */
10744 #define _STRUCTURED_PROC 1
10745 #include <sys/procfs.h>
10754 if ac_fn_c_try_compile
"$LINENO"; then :
10755 bfd_cv_have_sys_procfs_type_prrun_t
=yes
10757 bfd_cv_have_sys_procfs_type_prrun_t
=no
10760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10763 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
10765 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
10769 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10772 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10773 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
10774 $as_echo_n "(cached) " >&6
10776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10780 /* Needed for new procfs interface on sparc-solaris. */
10781 #define _STRUCTURED_PROC 1
10782 #include <sys/procfs.h>
10791 if ac_fn_c_try_compile
"$LINENO"; then :
10792 bfd_cv_have_sys_procfs_type_gregset_t
=yes
10794 bfd_cv_have_sys_procfs_type_gregset_t
=no
10797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10800 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10802 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10806 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10809 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10810 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
10811 $as_echo_n "(cached) " >&6
10813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10817 /* Needed for new procfs interface on sparc-solaris. */
10818 #define _STRUCTURED_PROC 1
10819 #include <sys/procfs.h>
10828 if ac_fn_c_try_compile
"$LINENO"; then :
10829 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
10831 bfd_cv_have_sys_procfs_type_fpregset_t
=no
10834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10837 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10839 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10843 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10846 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10847 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
10848 $as_echo_n "(cached) " >&6
10850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10851 /* end confdefs.h. */
10854 /* Needed for new procfs interface on sparc-solaris. */
10855 #define _STRUCTURED_PROC 1
10856 #include <sys/procfs.h>
10865 if ac_fn_c_try_compile
"$LINENO"; then :
10866 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
10868 bfd_cv_have_sys_procfs_type_prgregset_t
=no
10871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10874 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
10876 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10880 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
10883 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10884 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
10885 $as_echo_n "(cached) " >&6
10887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10888 /* end confdefs.h. */
10891 /* Needed for new procfs interface on sparc-solaris. */
10892 #define _STRUCTURED_PROC 1
10893 #include <sys/procfs.h>
10902 if ac_fn_c_try_compile
"$LINENO"; then :
10903 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
10905 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
10908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10911 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
10913 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10917 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
10920 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10921 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
10922 $as_echo_n "(cached) " >&6
10924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10928 /* Needed for new procfs interface on sparc-solaris. */
10929 #define _STRUCTURED_PROC 1
10930 #include <sys/procfs.h>
10939 if ac_fn_c_try_compile
"$LINENO"; then :
10940 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
10942 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
10945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10948 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
10950 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10954 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
10957 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
10958 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
10959 $as_echo_n "(cached) " >&6
10961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h. */
10965 /* Needed for new procfs interface on sparc-solaris. */
10966 #define _STRUCTURED_PROC 1
10967 #include <sys/procfs.h>
10971 prfpregset32_t avar
10976 if ac_fn_c_try_compile
"$LINENO"; then :
10977 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
10979 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
10982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10985 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
10987 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
10991 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
10994 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10995 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
10996 $as_echo_n "(cached) " >&6
10998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11002 /* Needed for new procfs interface on sparc-solaris. */
11003 #define _STRUCTURED_PROC 1
11004 #include <sys/procfs.h>
11013 if ac_fn_c_try_compile
"$LINENO"; then :
11014 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
11016 bfd_cv_have_sys_procfs_type_lwpid_t
=no
11019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11022 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11024 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11028 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11031 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11032 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11033 $as_echo_n "(cached) " >&6
11035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11039 /* Needed for new procfs interface on sparc-solaris. */
11040 #define _STRUCTURED_PROC 1
11041 #include <sys/procfs.h>
11050 if ac_fn_c_try_compile
"$LINENO"; then :
11051 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
11053 bfd_cv_have_sys_procfs_type_psaddr_t
=no
11056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11059 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11061 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11065 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11068 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11069 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11070 $as_echo_n "(cached) " >&6
11072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11076 /* Needed for new procfs interface on sparc-solaris. */
11077 #define _STRUCTURED_PROC 1
11078 #include <sys/procfs.h>
11087 if ac_fn_c_try_compile
"$LINENO"; then :
11088 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
11090 bfd_cv_have_sys_procfs_type_prsysent_t
=no
11093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11096 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11098 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11102 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11105 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11106 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11107 $as_echo_n "(cached) " >&6
11109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h. */
11113 /* Needed for new procfs interface on sparc-solaris. */
11114 #define _STRUCTURED_PROC 1
11115 #include <sys/procfs.h>
11124 if ac_fn_c_try_compile
"$LINENO"; then :
11125 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
11127 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
11130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11133 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11135 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11139 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11142 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11143 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
11144 $as_echo_n "(cached) " >&6
11146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11150 /* Needed for new procfs interface on sparc-solaris. */
11151 #define _STRUCTURED_PROC 1
11152 #include <sys/procfs.h>
11156 pr_sigaction64_t avar
11161 if ac_fn_c_try_compile
"$LINENO"; then :
11162 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
11164 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
11167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11170 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
11172 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
11176 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
11179 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
11180 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
11181 $as_echo_n "(cached) " >&6
11183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11184 /* end confdefs.h. */
11187 /* Needed for new procfs interface on sparc-solaris. */
11188 #define _STRUCTURED_PROC 1
11189 #include <sys/procfs.h>
11193 pr_siginfo64_t avar
11198 if ac_fn_c_try_compile
"$LINENO"; then :
11199 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
11201 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
11204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11207 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
11209 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
11213 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
11219 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
11221 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
11222 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
11223 $as_echo_n "(cached) " >&6
11225 if test "$cross_compiling" = yes; then :
11226 gdb_cv_prfpregset_t_broken
=yes
11228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h. */
11230 #include <sys/procfs.h>
11233 if (sizeof (prfpregset_t) == sizeof (void *))
11238 if ac_fn_c_try_run
"$LINENO"; then :
11239 gdb_cv_prfpregset_t_broken
=no
11241 gdb_cv_prfpregset_t_broken
=yes
11243 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11244 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
11250 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
11251 if test $gdb_cv_prfpregset_t_broken = yes; then
11253 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
11260 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
11261 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
11262 $as_echo_n "(cached) " >&6
11264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11266 #include <unistd.h>
11267 #include <sys/types.h>
11268 #include <sys/procfs.h>
11275 dummy = ioctl(0, PIOCSET, &dummy);
11281 if ac_fn_c_try_compile
"$LINENO"; then :
11282 gdb_cv_have_procfs_piocset
=yes
11284 gdb_cv_have_procfs_piocset
=no
11286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
11290 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
11291 if test $gdb_cv_have_procfs_piocset = yes; then
11293 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
11298 if test ${host} = ${target} ; then
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
11301 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
11302 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
11303 $as_echo_n "(cached) " >&6
11305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11311 struct link_map lm; (void) lm.l_addr;
11316 if ac_fn_c_try_compile
"$LINENO"; then :
11317 gdb_cv_have_struct_link_map_with_l_members
=yes
11319 gdb_cv_have_struct_link_map_with_l_members
=no
11321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
11325 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
11326 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
11328 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
11334 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
11335 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
11336 $as_echo_n "(cached) " >&6
11338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h. */
11340 #include <sys/types.h>
11345 struct link_map lm; (void) lm.lm_addr;
11350 if ac_fn_c_try_compile
"$LINENO"; then :
11351 gdb_cv_have_struct_link_map_with_lm_members
=yes
11353 gdb_cv_have_struct_link_map_with_lm_members
=no
11355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
11359 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
11360 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
11362 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
11368 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
11369 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
11370 $as_echo_n "(cached) " >&6
11372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11373 /* end confdefs.h. */
11374 #include <sys/types.h>
11375 #ifdef HAVE_NLIST_H
11382 struct so_map lm; (void) lm.som_addr;
11387 if ac_fn_c_try_compile
"$LINENO"; then :
11388 gdb_cv_have_struct_so_map_with_som_members
=yes
11390 gdb_cv_have_struct_so_map_with_som_members
=no
11392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
11396 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
11397 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
11399 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
11405 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
11406 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
11407 $as_echo_n "(cached) " >&6
11409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h. */
11412 #include <sys/link.h>
11416 struct link_map32 l;
11421 if ac_fn_c_try_compile
"$LINENO"; then :
11422 gdb_cv_have_struct_link_map32
=yes
11424 gdb_cv_have_struct_link_map32
=no
11426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
11430 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
11431 if test $gdb_cv_have_struct_link_map32 = yes; then
11433 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
11436 $as_echo "#define _SYSCALL32 1" >>confdefs.h
11441 # Check if the compiler supports the `long long' type.
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
11444 $as_echo_n "checking for long long support in compiler... " >&6; }
11445 if test "${gdb_cv_c_long_long+set}" = set; then :
11446 $as_echo_n "(cached) " >&6
11448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h. */
11450 extern long long foo;
11454 switch (foo & 2) { case 0: return 1; }
11459 if ac_fn_c_try_compile
"$LINENO"; then :
11460 gdb_cv_c_long_long
=yes
11462 gdb_cv_c_long_long
=no
11464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
11467 $as_echo "$gdb_cv_c_long_long" >&6; }
11468 if test $gdb_cv_c_long_long = yes; then
11470 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
11474 # Check if the compiler and runtime support printing long longs.
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
11477 $as_echo_n "checking for long long support in printf... " >&6; }
11478 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
11479 $as_echo_n "(cached) " >&6
11481 if test "$cross_compiling" = yes; then :
11482 gdb_cv_printf_has_long_long
=no
11484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11486 $ac_includes_default
11492 l = (l << 16) + 0x0123;
11493 l = (l << 16) + 0x4567;
11494 l = (l << 16) + 0x89ab;
11495 l = (l << 16) + 0xcdef;
11496 sprintf (buf, "0x%016llx", l);
11497 return (strcmp ("0x0123456789abcdef", buf));
11502 if ac_fn_c_try_run
"$LINENO"; then :
11503 gdb_cv_printf_has_long_long
=yes
11505 gdb_cv_printf_has_long_long
=no
11507 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11508 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
11513 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
11514 if test $gdb_cv_printf_has_long_long = yes; then
11516 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
11520 # Check if the compiler and runtime support printing decfloats.
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
11523 $as_echo_n "checking for decfloat support in printf... " >&6; }
11524 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
11525 $as_echo_n "(cached) " >&6
11527 if test "$cross_compiling" = yes; then :
11528 gdb_cv_printf_has_decfloat
=no
11530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11532 $ac_includes_default
11537 _Decimal32 d32 = 1.2345df;
11538 _Decimal64 d64 = 1.2345dd;
11539 _Decimal128 d128 = 1.2345dl;
11540 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
11541 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
11546 if ac_fn_c_try_run
"$LINENO"; then :
11547 gdb_cv_printf_has_decfloat
=yes
11549 gdb_cv_printf_has_decfloat
=no
11551 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11552 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
11557 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
11558 if test $gdb_cv_printf_has_decfloat = yes; then
11560 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
11564 # Check if the compiler supports the `long double' type. We can't use
11565 # AC_C_LONG_DOUBLE because that one does additional checks on the
11566 # constants defined in <float.h> that fail on some systems,
11567 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
11570 $as_echo_n "checking for long double support in compiler... " >&6; }
11571 if test "${gdb_cv_c_long_double+set}" = set; then :
11572 $as_echo_n "(cached) " >&6
11574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11578 if ac_fn_c_try_compile
"$LINENO"; then :
11579 gdb_cv_c_long_double
=yes
11581 gdb_cv_c_long_double
=no
11583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
11586 $as_echo "$gdb_cv_c_long_double" >&6; }
11587 if test $gdb_cv_c_long_double = yes; then
11589 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
11593 # Check if the compiler and runtime support printing long doubles.
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
11596 $as_echo_n "checking for long double support in printf... " >&6; }
11597 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
11598 $as_echo_n "(cached) " >&6
11600 if test "$cross_compiling" = yes; then :
11601 gdb_cv_printf_has_long_double
=no
11603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11604 /* end confdefs.h. */
11605 $ac_includes_default
11610 long double f = 3.141592653;
11611 sprintf (buf, "%Lg", f);
11612 return (strncmp ("3.14159", buf, 7));
11617 if ac_fn_c_try_run
"$LINENO"; then :
11618 gdb_cv_printf_has_long_double
=yes
11620 gdb_cv_printf_has_long_double
=no
11622 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11623 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
11628 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
11629 if test $gdb_cv_printf_has_long_double = yes; then
11631 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
11635 # Check if the compiler and runtime support scanning long doubles.
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
11638 $as_echo_n "checking for long double support in scanf... " >&6; }
11639 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
11640 $as_echo_n "(cached) " >&6
11642 if test "$cross_compiling" = yes; then :
11643 gdb_cv_scanf_has_long_double
=no
11645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11651 char *buf = "3.141592653";
11653 sscanf (buf, "%Lg", &f);
11654 return !(f > 3.14159 && f < 3.14160);
11659 if ac_fn_c_try_run
"$LINENO"; then :
11660 gdb_cv_scanf_has_long_double
=yes
11662 gdb_cv_scanf_has_long_double
=no
11664 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11665 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
11670 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
11671 if test $gdb_cv_scanf_has_long_double = yes; then
11673 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11680 $as_echo_n "checking for -bbigtoc option... " >&6; }
11681 if test "${gdb_cv_bigtoc+set}" = set; then :
11682 $as_echo_n "(cached) " >&6
11685 SAVE_LDFLAGS
=$LDFLAGS
11688 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11689 *) gdb_cv_bigtoc
=-bbigtoc ;;
11692 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11694 /* end confdefs.h. */
11704 if ac_fn_c_try_link
"$LINENO"; then :
11709 rm -f core conftest.err conftest.
$ac_objext \
11710 conftest
$ac_exeext conftest.
$ac_ext
11711 LDFLAGS
="${SAVE_LDFLAGS}"
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11715 $as_echo "$gdb_cv_bigtoc" >&6; }
11716 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
11721 $as_echo_n "checking for the dynamic export flag... " >&6; }
11723 if test "${gdb_native}" = yes; then
11724 # The dynamically loaded libthread_db needs access to symbols in the gdb
11725 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
11726 # may not be supported there.
11727 old_LDFLAGS
="$LDFLAGS"
11728 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
11729 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
11730 LDFLAGS
="$LDFLAGS $RDYNAMIC"
11731 if test "${have_libpython}" = no
; then
11732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h. */
11743 if ac_fn_c_try_link
"$LINENO"; then :
11746 rm -f core conftest.err conftest.
$ac_objext \
11747 conftest
$ac_exeext conftest.
$ac_ext
11749 # Workaround http://bugs.python.org/issue4434 where static
11750 # libpythonX.Y.a would get its symbols required for
11751 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
11752 # Problem does not happen for the recommended libpythonX.Y.so linkage.
11753 old_CFLAGS
="$CFLAGS"
11754 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
11755 if test "$cross_compiling" = yes; then :
11758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11760 #include "${have_libpython}/Python.h"
11766 err = PyRun_SimpleString ("import itertools\n");
11768 return err == 0 ? 0 : 1;
11773 if ac_fn_c_try_run
"$LINENO"; then :
11776 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11777 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11780 CFLAGS
="$old_CFLAGS"
11782 LDFLAGS
="$old_LDFLAGS"
11784 if $dynamic_list; then
11785 found
="-Wl,--dynamic-list"
11786 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
11789 RDYNAMIC
="-rdynamic"
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
11793 $as_echo "$found" >&6; }
11796 if test ${build} = ${host} -a ${host} = ${target} ; then
11799 # See if thread_db library is around for Solaris thread debugging.
11800 # Note that we must explicitly test for version 1 of the library
11801 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
11804 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
11805 if test -f /usr
/lib
/libthread_db.so
.1 ; then
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11807 $as_echo "yes" >&6; }
11809 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
11811 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
11812 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11814 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11815 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11816 $as_echo_n "(cached) " >&6
11818 ac_check_lib_save_LIBS
=$LIBS
11820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11821 /* end confdefs.h. */
11823 /* Override any GCC internal prototype to avoid an error.
11824 Use char because int might match the return type of a GCC
11825 builtin and then its argument prototype would still apply. */
11838 if ac_fn_c_try_link
"$LINENO"; then :
11839 ac_cv_lib_dl_dlopen
=yes
11841 ac_cv_lib_dl_dlopen
=no
11843 rm -f core conftest.err conftest.
$ac_objext \
11844 conftest
$ac_exeext conftest.
$ac_ext
11845 LIBS
=$ac_check_lib_save_LIBS
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11848 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11849 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11850 cat >>confdefs.h
<<_ACEOF
11851 #define HAVE_LIBDL 1
11858 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
11859 # Sun randomly tweaked the prototypes in <proc_service.h>
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
11862 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
11863 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
11864 $as_echo_n "(cached) " >&6
11867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11870 #include <proc_service.h>
11871 ps_err_e ps_pdwrite
11872 (struct ps_prochandle*, psaddr_t, const void*, size_t);
11882 if ac_fn_c_try_compile
"$LINENO"; then :
11883 gdb_cv_proc_service_is_old
=no
11885 gdb_cv_proc_service_is_old
=yes
11887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
11892 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
11893 if test $gdb_cv_proc_service_is_old = yes; then
11895 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
11905 $as_echo_n "checking for AiX thread debugging library... " >&6; }
11906 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
11907 $as_echo_n "(cached) " >&6
11909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11911 #include <sys/pthdebug.h>
11915 #ifndef PTHDB_VERSION_3
11922 if ac_fn_c_try_compile
"$LINENO"; then :
11923 gdb_cv_have_aix_thread_debug
=yes
11925 gdb_cv_have_aix_thread_debug
=no
11927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
11931 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
11932 if test $gdb_cv_have_aix_thread_debug = yes; then
11933 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
11934 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
11935 LIBS
="$LIBS -lpthdebug"
11937 # Older versions of AIX do not provide the declaration for
11938 # the getthrds function (it appears that it was introduced
11940 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
11942 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
11948 cat >>confdefs.h
<<_ACEOF
11949 #define HAVE_DECL_GETTHRDS $ac_have_decl
11958 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
11960 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
11961 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
11962 $as_echo_n "(cached) " >&6
11964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11966 #include <thread_db.h>
11970 int i = TD_NOTALLOC;
11975 if ac_fn_c_try_compile
"$LINENO"; then :
11976 gdb_cv_thread_db_h_has_td_notalloc
=yes
11978 gdb_cv_thread_db_h_has_td_notalloc
=no
11981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
11985 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
11987 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
11988 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
11989 $as_echo_n "(cached) " >&6
11991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11993 #include <thread_db.h>
11997 int i = TD_VERSION;
12002 if ac_fn_c_try_compile
"$LINENO"; then :
12003 gdb_cv_thread_db_h_has_td_version
=yes
12005 gdb_cv_thread_db_h_has_td_version
=no
12008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12012 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12014 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12015 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12016 $as_echo_n "(cached) " >&6
12018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12020 #include <thread_db.h>
12029 if ac_fn_c_try_compile
"$LINENO"; then :
12030 gdb_cv_thread_db_h_has_td_notls
=yes
12032 gdb_cv_thread_db_h_has_td_notls
=no
12035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12039 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12041 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12043 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12046 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12048 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12051 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12053 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12057 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12059 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12060 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12061 $as_echo_n "(cached) " >&6
12063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12064 /* end confdefs.h. */
12065 #include <sys/syscall.h>
12069 int i = __NR_tkill;
12074 if ac_fn_c_try_compile
"$LINENO"; then :
12075 gdb_cv_sys_syscall_h_has_tkill
=yes
12077 gdb_cv_sys_syscall_h_has_tkill
=no
12080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12084 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12086 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
12088 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12092 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12094 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
12100 cat >>confdefs.h
<<_ACEOF
12101 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12105 if test "$cross_compiling" = yes; then :
12106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12108 #include <sys/personality.h>
12113 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12114 # define ADDR_NO_RANDOMIZE 0x0040000
12116 /* Test the flag could be set and stays set. */
12117 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12118 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12124 if ac_fn_c_try_link
"$LINENO"; then :
12125 have_personality
=true
12127 have_personality
=false
12129 rm -f core conftest.err conftest.
$ac_objext \
12130 conftest
$ac_exeext conftest.
$ac_ext
12132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h. */
12134 #include <sys/personality.h>
12139 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12140 # define ADDR_NO_RANDOMIZE 0x0040000
12142 /* Test the flag could be set and stays set. */
12143 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12144 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12150 if ac_fn_c_try_run
"$LINENO"; then :
12151 have_personality
=true
12153 have_personality
=false
12155 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12156 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12159 if $have_personality
12162 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12167 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12168 # except that the argument to --with-sysroot is optional.
12169 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12170 if test "x$with_sysroot" = xyes
; then
12171 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
12174 # Check whether --with-sysroot was given.
12175 if test "${with_sysroot+set}" = set; then :
12176 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
12178 TARGET_SYSTEM_ROOT
=
12182 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
12183 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12184 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
12185 ac_define_dir
=`eval echo $ac_define_dir`
12187 cat >>confdefs.h
<<_ACEOF
12188 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12194 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
12195 if test "x$prefix" = xNONE
; then
12196 test_prefix
=/usr
/local
12198 test_prefix
=$prefix
12201 test_prefix
=$exec_prefix
12204 case ${ac_define_dir} in
12205 "${test_prefix}"|
"${test_prefix}/"*|\
12206 '${exec_prefix}'|
'${exec_prefix}/'*)
12211 cat >>confdefs.h
<<_ACEOF
12212 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12219 # Check whether --with-system-gdbinit was given.
12220 if test "${with_system_gdbinit+set}" = set; then :
12221 withval
=$with_system_gdbinit;
12222 SYSTEM_GDBINIT
=$withval
12228 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
12229 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12230 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
12231 ac_define_dir
=`eval echo $ac_define_dir`
12233 cat >>confdefs.h
<<_ACEOF
12234 #define SYSTEM_GDBINIT "$ac_define_dir"
12240 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
12241 if test "x$prefix" = xNONE
; then
12242 test_prefix
=/usr
/local
12244 test_prefix
=$prefix
12247 test_prefix
=$exec_prefix
12250 case ${ac_define_dir} in
12251 "${test_prefix}"|
"${test_prefix}/"*|\
12252 '${exec_prefix}'|
'${exec_prefix}/'*)
12257 cat >>confdefs.h
<<_ACEOF
12258 #define SYSTEM_GDBINIT_RELOCATABLE $value
12264 # Check whether --enable-werror was given.
12265 if test "${enable_werror+set}" = set; then :
12266 enableval
=$enable_werror; case "${enableval}" in
12267 yes | y
) ERROR_ON_WARNING
="yes" ;;
12268 no | n
) ERROR_ON_WARNING
="no" ;;
12269 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12274 # Enable -Werror by default when using gcc
12275 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12276 ERROR_ON_WARNING
=yes
12280 if test "${ERROR_ON_WARNING}" = yes ; then
12281 WERROR_CFLAGS
="-Werror"
12284 # The entries after -Wno-pointer-sign are disabled warnings which may
12285 # be enabled in the future, which can not currently be used to build
12287 # NOTE: If you change this list, remember to update
12288 # gdb/doc/gdbint.texinfo.
12289 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
12290 -Wformat-nonliteral -Wno-pointer-sign \
12291 -Wno-unused -Wunused-value -Wunused-function \
12292 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
12294 # Enable -Wno-format by default when using gcc on mingw since many
12295 # GCC versions complain about %I64.
12297 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
12300 # Check whether --enable-build-warnings was given.
12301 if test "${enable_build_warnings+set}" = set; then :
12302 enableval
=$enable_build_warnings; case "${enableval}" in
12304 no
) build_warnings
="-w";;
12305 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12306 build_warnings
="${build_warnings} ${t}";;
12307 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12308 build_warnings
="${t} ${build_warnings}";;
12309 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12311 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
12312 echo "Setting compiler warning flags = $build_warnings" 6>&1
12315 # Check whether --enable-gdb-build-warnings was given.
12316 if test "${enable_gdb_build_warnings+set}" = set; then :
12317 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
12319 no
) build_warnings
="-w";;
12320 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12321 build_warnings
="${build_warnings} ${t}";;
12322 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12323 build_warnings
="${t} ${build_warnings}";;
12324 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12326 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
12327 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12331 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12334 $as_echo_n "checking compiler warning flags... " >&6; }
12335 # Separate out the -Werror flag as some files just cannot be
12336 # compiled with it enabled.
12337 for w
in ${build_warnings}; do
12339 -Werr*) WERROR_CFLAGS
=-Werror ;;
12340 *) # Check that GCC accepts it
12341 saved_CFLAGS
="$CFLAGS"
12342 CFLAGS
="$CFLAGS $w"
12343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h. */
12354 if ac_fn_c_try_compile
"$LINENO"; then :
12355 WARN_CFLAGS
="${WARN_CFLAGS} $w"
12357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12358 CFLAGS
="$saved_CFLAGS"
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12362 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
12367 # In the Cygwin environment, we need some additional flags.
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
12369 $as_echo_n "checking
for cygwin...
" >&6; }
12370 if test "${gdb_cv_os_cygwin+set}" = set; then :
12371 $as_echo_n "(cached
) " >&6
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12376 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
12380 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12381 $EGREP "lose
" >/dev/null 2>&1; then :
12382 gdb_cv_os_cygwin=yes
12384 gdb_cv_os_cygwin=no
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
12390 $as_echo "$gdb_cv_os_cygwin" >&6; }
12393 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
12395 *go32* ) SER_HARDWIRE=ser-go32.o ;;
12396 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
12397 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
12401 # libreadline needs libuser32.a in a cygwin environment
12403 if test x$gdb_cv_os_cygwin = xyes; then
12404 WIN32LIBS="-luser32"
12405 case "${target}" in
12406 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
12411 # The ser-tcp.c module requires sockets.
12415 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12417 WIN32LIBS
="$WIN32LIBS -lws2_32"
12422 # Add ELF support to GDB, but only if BFD includes ELF support.
12424 OLD_LDFLAGS
=$LDFLAGS
12426 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12427 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
12428 # always want our bfd.
12429 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12430 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
12431 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12432 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12433 if test "$plugins" = "yes"; then
12436 LIBS
="-lbfd -liberty $intl $LIBS"
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
12438 $as_echo_n "checking for ELF support in BFD... " >&6; }
12439 if test "${gdb_cv_var_elf+set}" = set; then :
12440 $as_echo_n "(cached) " >&6
12442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12443 /* end confdefs.h. */
12444 #include <stdlib.h>
12446 #include "elf-bfd.h"
12451 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
12456 if ac_fn_c_try_link
"$LINENO"; then :
12461 rm -f core conftest.err conftest.
$ac_objext \
12462 conftest
$ac_exeext conftest.
$ac_ext
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
12465 $as_echo "$gdb_cv_var_elf" >&6; }
12466 if test $gdb_cv_var_elf = yes; then
12467 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o"
12469 $as_echo "#define HAVE_ELF 1" >>confdefs.h
12471 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12472 if test "$plugins" = "yes"; then
12473 OLD_LIBS
="-ldl $OLD_LIBS"
12477 LDFLAGS
=$OLD_LDFLAGS
12480 # Add any host-specific objects to GDB.
12481 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
12483 LIBGUI
="../libgui/src/libgui.a"
12484 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
12493 *-*-cygwin* |
*-*-mingw* )
12502 if test "${enable_gdbtk}" = "yes"; then
12504 # Gdbtk must have an absolute path to srcdir in order to run
12505 # properly when not installed.
12508 GDBTK_SRC_DIR
=`pwd`
12513 # Ok, lets find the tcl configuration
12514 # First, look for one uninstalled.
12515 # the alternative search directory is invoked by --with-tcl
12518 if test x
"${no_tcl}" = x
; then
12519 # we reset no_tcl in case something fails here
12522 # Check whether --with-tcl was given.
12523 if test "${with_tcl+set}" = set; then :
12524 withval
=$with_tcl; with_tclconfig
=${withval}
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12528 $as_echo_n "checking for Tcl configuration... " >&6; }
12529 if test "${ac_cv_c_tclconfig+set}" = set; then :
12530 $as_echo_n "(cached) " >&6
12534 # First check to see if --with-tcl was specified.
12536 *-*-cygwin*) platDir
="win" ;;
12537 *) platDir
="unix" ;;
12539 if test x
"${with_tclconfig}" != x
; then
12540 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12541 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
12543 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12547 # then check for a private Tcl installation
12548 if test x
"${ac_cv_c_tclconfig}" = x
; then
12551 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12552 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12553 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12555 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12556 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12557 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12559 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12560 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12561 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
12562 if test -f "$i/$platDir/tclConfig.sh" ; then
12563 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
12569 # on Darwin, check in Framework installation locations
12570 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
12571 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
12572 `ls -d /Library/Frameworks 2>/dev/null` \
12573 `ls -d /Network/Library/Frameworks 2>/dev/null` \
12574 `ls -d /System/Library/Frameworks 2>/dev/null` \
12576 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
12577 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
12583 # check in a few common install locations
12584 if test x
"${ac_cv_c_tclconfig}" = x
; then
12585 for i
in `ls -d ${libdir} 2>/dev/null` \
12586 `ls -d ${exec_prefix}/lib 2>/dev/null` \
12587 `ls -d ${prefix}/lib 2>/dev/null` \
12588 `ls -d /usr/local/lib 2>/dev/null` \
12589 `ls -d /usr/contrib/lib 2>/dev/null` \
12590 `ls -d /usr/lib 2>/dev/null` \
12592 if test -f "$i/tclConfig.sh" ; then
12593 ac_cv_c_tclconfig
=`(cd $i; pwd)`
12599 # check in a few other private locations
12600 if test x
"${ac_cv_c_tclconfig}" = x
; then
12603 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12604 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12605 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
12606 if test -f "$i/$platDir/tclConfig.sh" ; then
12607 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
12616 if test x
"${ac_cv_c_tclconfig}" = x
; then
12617 TCL_BIN_DIR
="# no Tcl configs found"
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
12619 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12622 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
12624 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
12629 # If $no_tk is nonempty, then we can't do Tk, and there is no
12630 # point to doing Tcl.
12633 # Ok, lets find the tk configuration
12634 # First, look for one uninstalled.
12635 # the alternative search directory is invoked by --with-tk
12638 if test x
"${no_tk}" = x
; then
12639 # we reset no_tk in case something fails here
12642 # Check whether --with-tk was given.
12643 if test "${with_tk+set}" = set; then :
12644 withval
=$with_tk; with_tkconfig
=${withval}
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
12648 $as_echo_n "checking for Tk configuration... " >&6; }
12649 if test "${ac_cv_c_tkconfig+set}" = set; then :
12650 $as_echo_n "(cached) " >&6
12654 # First check to see if --with-tkconfig was specified.
12655 if test x
"${with_tkconfig}" != x
; then
12656 if test -f "${with_tkconfig}/tkConfig.sh" ; then
12657 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
12659 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
12663 # then check for a private Tk library
12665 *-*-cygwin*) platDir
="win" ;;
12666 *) platDir
="unix" ;;
12668 if test x
"${ac_cv_c_tkconfig}" = x
; then
12671 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12672 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
12673 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
12675 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12676 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
12677 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
12679 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12680 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
12681 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
12682 if test -f "$i/$platDir/tkConfig.sh" ; then
12683 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
12689 # on Darwin, check in Framework installation locations
12690 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
12691 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
12692 `ls -d /Library/Frameworks 2>/dev/null` \
12693 `ls -d /Network/Library/Frameworks 2>/dev/null` \
12694 `ls -d /System/Library/Frameworks 2>/dev/null` \
12696 if test -f "$i/Tk.framework/tkConfig.sh" ; then
12697 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
12703 # check in a few common install locations
12704 if test x
"${ac_cv_c_tkconfig}" = x
; then
12705 for i
in `ls -d ${libdir} 2>/dev/null` \
12706 `ls -d ${exec_prefix}/lib 2>/dev/null` \
12707 `ls -d ${prefix}/lib 2>/dev/null` \
12708 `ls -d /usr/local/lib 2>/dev/null` \
12709 `ls -d /usr/contrib/lib 2>/dev/null` \
12710 `ls -d /usr/lib 2>/dev/null` \
12712 if test -f "$i/tkConfig.sh" ; then
12713 ac_cv_c_tkconfig
=`(cd $i; pwd)`
12718 # check in a few other private locations
12719 if test x
"${ac_cv_c_tkconfig}" = x
; then
12722 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12723 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
12724 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
12725 if test -f "$i/$platDir/tkConfig.sh" ; then
12726 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
12735 if test x
"${ac_cv_c_tkconfig}" = x
; then
12736 TK_BIN_DIR
="# no Tk configs found"
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
12738 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
12741 TK_BIN_DIR
=${ac_cv_c_tkconfig}
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
12743 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
12748 if test -z "${no_tcl}" -a -z "${no_tk}"; then
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
12751 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
12753 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12755 $as_echo "loading" >&6; }
12756 .
${TCL_BIN_DIR}/tclConfig.sh
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
12759 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
12762 # eval is required to do the TCL_DBGX substitution
12763 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12764 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12766 # If the TCL_BIN_DIR is the build directory (not the install directory),
12767 # then set the common variable name to the value of the build variables.
12768 # For example, the variable TCL_LIB_SPEC will be set to the value
12769 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12770 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12771 # installed and uninstalled version of Tcl.
12772 if test -f "${TCL_BIN_DIR}/Makefile" ; then
12773 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
12774 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
12775 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
12776 elif test "`uname -s`" = "Darwin"; then
12777 # If Tcl was built as a framework, attempt to use the libraries
12778 # from the framework at the given location so that linking works
12779 # against Tcl.framework installed in an arbitary location.
12780 case ${TCL_DEFS} in
12782 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
12783 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
12784 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
12785 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
12786 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
12791 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
12792 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
12793 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
12799 # eval is required to do the TCL_DBGX substitution
12800 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12801 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12802 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12803 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12819 # Check for in-tree tcl
12826 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
12830 # Find Tcl private headers
12831 if test x
"${intree}" = xno
; then
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
12834 $as_echo_n "checking for Tcl private headers... " >&6; }
12836 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
12837 if test -f ${dir}/tclInt.h
; then
12841 if test x
"${private_dir}" = x
; then
12842 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
12844 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
12846 $as_echo "${private_dir}" >&6; }
12849 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
12850 TCL_LIBRARY
="${TCL_LIB_SPEC}"
12853 # If building tcl in the same src tree, private headers
12854 # are not needed, but we need to be sure to use the right
12856 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
12857 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
12858 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
12866 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
12868 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12870 $as_echo "loading" >&6; }
12871 .
${TK_BIN_DIR}/tkConfig.sh
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
12874 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
12877 # eval is required to do the TK_DBGX substitution
12878 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
12879 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
12881 # If the TK_BIN_DIR is the build directory (not the install directory),
12882 # then set the common variable name to the value of the build variables.
12883 # For example, the variable TK_LIB_SPEC will be set to the value
12884 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
12885 # instead of TK_BUILD_LIB_SPEC since it will work with both an
12886 # installed and uninstalled version of Tcl.
12887 if test -f "${TK_BIN_DIR}/Makefile" ; then
12888 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
12889 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
12890 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
12891 elif test "`uname -s`" = "Darwin"; then
12892 # If Tk was built as a framework, attempt to use the libraries
12893 # from the framework at the given location so that linking works
12894 # against Tk.framework installed in an arbitary location.
12897 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
12898 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
12899 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
12900 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
12901 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
12906 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
12907 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
12908 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
12914 # eval is required to do the TK_DBGX substitution
12915 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
12916 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
12917 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
12918 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
12933 # Check for in-tree Tk
12935 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
12939 # Find Tk private headers
12940 if test x
"${intree}" = xno
; then
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
12943 $as_echo_n "checking for Tk private headers... " >&6; }
12945 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
12946 if test -f ${dir}/tkInt.h
; then
12950 if test x
"${private_dir}" = x
; then
12951 as_fn_error
"could not find Tk private headers" "$LINENO" 5
12953 TK_PRIVATE_INCLUDE
="-I${private_dir}"
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
12955 $as_echo "${private_dir}" >&6; }
12958 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
12959 TK_LIBRARY
=${TK_LIB_SPEC}
12962 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
12963 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
12964 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
12971 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
12973 # Include some libraries that Tcl and Tk want.
12974 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
12975 # Yes, the ordering seems wrong here. But it isn't.
12976 # TK_LIBS is the list of libraries that need to be linked
12977 # after Tcl/Tk. Note that this isn't put into LIBS. If it
12978 # were in LIBS then any link tests after this point would
12979 # try to include things like `$(LIBGUI)', which wouldn't work.
12980 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
12982 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
12983 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
12984 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
12985 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
12986 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
12987 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
12988 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
12990 if test x
$gdb_cv_os_cygwin = xyes
; then
12991 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
12992 WIN32LDAPP
="-Wl,--subsystem,console"
12993 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
12996 subdirs
="$subdirs gdbtk"
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13009 $as_echo_n "checking for X... " >&6; }
13012 # Check whether --with-x was given.
13013 if test "${with_x+set}" = set; then :
13017 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13018 if test "x$with_x" = xno
; then
13019 # The user explicitly disabled X.
13022 case $x_includes,$x_libraries in #(
13023 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
13024 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
13027 # One or both of the vars are not set, and there is no cached value.
13028 ac_x_includes
=no ac_x_libraries
=no
13029 rm -f -r conftest.dir
13030 if mkdir conftest.dir
; then
13032 cat >Imakefile
<<'_ACEOF'
13034 @echo incroot='${INCROOT}'
13036 @echo usrlibdir='${USRLIBDIR}'
13038 @echo libdir='${LIBDIR}'
13040 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
13041 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13042 for ac_var
in incroot usrlibdir libdir
; do
13043 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13045 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13046 for ac_extension
in a so sl dylib la dll
; do
13047 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13048 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13049 ac_im_usrlibdir
=$ac_im_libdir; break
13052 # Screen out bogus values from the imake configuration. They are
13053 # bogus both because they are the default anyway, and because
13054 # using them would break gcc on systems where it needs fixed includes.
13055 case $ac_im_incroot in
13056 /usr
/include
) ac_x_includes
= ;;
13057 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
13059 case $ac_im_usrlibdir in
13060 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
13061 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
13065 rm -f -r conftest.dir
13068 # Standard set of common directories for X headers.
13069 # Check X11 before X11Rn because it is often a symlink to the current release.
13083 /usr/local/X11/include
13084 /usr/local/X11R7/include
13085 /usr/local/X11R6/include
13086 /usr/local/X11R5/include
13087 /usr/local/X11R4/include
13089 /usr/local/include/X11
13090 /usr/local/include/X11R7
13091 /usr/local/include/X11R6
13092 /usr/local/include/X11R5
13093 /usr/local/include/X11R4
13097 /usr/XFree86/include/X11
13101 /usr/unsupported/include
13102 /usr/athena/include
13103 /usr/local/x11r5/include
13104 /usr/lpp/Xamples/include
13106 /usr/openwin/include
13107 /usr/openwin/share/include'
13109 if test "$ac_x_includes" = no
; then
13110 # Guess where to find include files, by looking for Xlib.h.
13111 # First, try using that file with no special directory specified.
13112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13114 #include <X11/Xlib.h>
13116 if ac_fn_c_try_cpp
"$LINENO"; then :
13117 # We can compile using X headers with no special include directory.
13120 for ac_dir
in $ac_x_header_dirs; do
13121 if test -r "$ac_dir/X11/Xlib.h"; then
13122 ac_x_includes
=$ac_dir
13127 rm -f conftest.err conftest.
$ac_ext
13128 fi # $ac_x_includes = no
13130 if test "$ac_x_libraries" = no
; then
13131 # Check for the libraries.
13132 # See if we find them without any special options.
13133 # Don't add to $LIBS permanently.
13136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h. */
13138 #include <X11/Xlib.h>
13147 if ac_fn_c_try_link
"$LINENO"; then :
13149 # We can link X programs with no special library path.
13153 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13155 # Don't even attempt the hair of trying to link an X program!
13156 for ac_extension
in a so sl dylib la dll
; do
13157 if test -r "$ac_dir/libX11.$ac_extension"; then
13158 ac_x_libraries
=$ac_dir
13164 rm -f core conftest.err conftest.
$ac_objext \
13165 conftest
$ac_exeext conftest.
$ac_ext
13166 fi # $ac_x_libraries = no
13168 case $ac_x_includes,$ac_x_libraries in #(
13169 no
,* |
*,no |
*\'*)
13170 # Didn't find X, or a directory has "'" in its name.
13171 ac_cv_have_x
="have_x=no";; #(
13173 # Record where we found X for the cache.
13174 ac_cv_have_x
="have_x=yes\
13175 ac_x_includes='$ac_x_includes'\
13176 ac_x_libraries='$ac_x_libraries'"
13182 eval "$ac_cv_have_x"
13185 if test "$have_x" != yes; then
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13187 $as_echo "$have_x" >&6; }
13190 # If each of the values was on the command line, it overrides each guess.
13191 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
13192 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
13193 # Update the cache value to reflect the command line values.
13194 ac_cv_have_x
="have_x=yes\
13195 ac_x_includes='$x_includes'\
13196 ac_x_libraries='$x_libraries'"
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13198 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13202 # Unlike the sim directory, whether a simulator is linked is controlled by
13203 # presence of a gdb_sim definition in the target configure.tgt entry.
13204 # This code just checks for a few cases where we'd like to ignore those
13205 # definitions, even when they're present in the '.mt' file. These cases
13206 # are when --disable-sim is specified, or if the simulator directory is
13207 # not part of the source tree.
13209 # Check whether --enable-sim was given.
13210 if test "${enable_sim+set}" = set; then :
13211 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
13212 echo "enableval = ${enableval}";
13213 case "${enableval}" in
13214 yes) ignore_sim
=false
;;
13215 no
) ignore_sim
=true
;;
13216 *) ignore_sim
=false
;;
13223 if test ! -d "${srcdir}/../sim"; then
13229 if test "${ignore_sim}" = "false"; then
13230 if test x
"${gdb_sim}" != x
; then
13232 SIM_OBS
="remote-sim.o"
13234 $as_echo "#define WITH_SIM 1" >>confdefs.h
13252 # List of host floatformats.
13254 cat >>confdefs.h
<<_ACEOF
13255 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
13259 cat >>confdefs.h
<<_ACEOF
13260 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
13264 cat >>confdefs.h
<<_ACEOF
13265 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
13269 # target_subdir is used by the testsuite to find the target libraries.
13271 if test "${host}" != "${target}"; then
13272 target_subdir
="${target_alias}/"
13277 if test "${gdb_native}" = "yes"; then
13278 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
13279 if test ! -f ${host_makefile_frag}; then
13280 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
13282 frags
="$frags $host_makefile_frag"
13284 host_makefile_frag
=/dev
/null
13290 if test "${gdb_native}" = "yes"; then
13291 # We pick this up from the host configuration file (.mh) because we
13292 # do not have a native configuration Makefile fragment.
13293 nativefile
=`sed -n '
13294 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
13295 ' ${host_makefile_frag}`
13299 if test x
"${gdb_osabi}" != x
; then
13301 cat >>confdefs.h
<<_ACEOF
13302 #define GDB_OSABI_DEFAULT $gdb_osabi
13307 # Enable multi-ice-gdb-server.
13308 # Check whether --enable-multi-ice was given.
13309 if test "${enable_multi_ice+set}" = set; then :
13310 enableval
=$enable_multi_ice; case $enableval in
13313 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
13317 if test "x$enable_multi_ice" = xyes
; then
13318 subdirs
="$subdirs multi-ice"
13322 # Check whether --enable-gdbserver was given.
13323 if test "${enable_gdbserver+set}" = set; then :
13324 enableval
=$enable_gdbserver; case "${enableval}" in
13326 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
13329 enable_gdbserver
=auto
13333 # We only build gdbserver automatically in a native configuration, and
13334 # only if the user did not explicitly disable its build.
13335 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
13337 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
13338 if test "x$build_gdbserver" = xyes
; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13340 $as_echo "yes" >&6; }
13341 subdirs
="$subdirs gdbserver"
13343 gdbserver_build_enabled
=yes
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13350 # If the user explicitly request the gdbserver to be built, verify that
13351 # we were in fact able to enable it.
13352 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
13353 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
13356 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
13357 # to an empty version.
13363 if test "${nativefile}" != ""; then
13364 case "${nativefile}" in
13365 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
13366 * ) GDB_NM_FILE
="${nativefile}"
13368 files
="${files} ${GDB_NM_FILE}"
13369 links
="${links} nm.h"
13371 cat >>confdefs.h
<<_ACEOF
13372 #define GDB_NM_FILE "${GDB_NM_FILE}"
13378 ac_sources
="$files"
13380 while test -n "$ac_sources"; do
13381 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
13382 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
13383 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
13385 ac_config_links
="$ac_config_links $ac_config_links_1"
13391 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
13394 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
13396 ac_config_commands
="$ac_config_commands default"
13398 cat >confcache
<<\_ACEOF
13399 # This file is a shell script that caches the results of configure
13400 # tests run on this system so they can be shared between configure
13401 # scripts and configure runs, see configure's option --config-cache.
13402 # It is not useful on other systems. If it contains results you don't
13403 # want to keep, you may remove or edit it.
13405 # config.status only pays attention to the cache file if you give it
13406 # the --recheck option to rerun configure.
13408 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13409 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13410 # following values.
13414 # The following way of writing the cache mishandles newlines in values,
13415 # but we know of no workaround that is simple, portable, and efficient.
13416 # So, we kill variables containing newlines.
13417 # Ultrix sh set writes to stderr and can't be redirected directly,
13418 # and sets the high bit in the cache file unless we assign to the vars.
13420 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13421 eval ac_val
=\$
$ac_var
13425 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13426 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13429 _ | IFS | as_nl
) ;; #(
13430 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
13431 *) { eval $ac_var=; unset $ac_var;} ;;
13437 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13438 *${as_nl}ac_space
=\
*)
13439 # `set' does not quote correctly, so add quotes: double-quote
13440 # substitution turns \\\\ into \\, and sed turns \\ into \.
13443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13446 # `set' quotes correctly as required by POSIX, so do not add quotes.
13447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13456 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13458 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13460 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13461 if test -w "$cache_file"; then
13462 test "x$cache_file" != "x/dev/null" &&
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13464 $as_echo "$as_me: updating cache $cache_file" >&6;}
13465 cat confcache
>$cache_file
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13468 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13473 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13474 # Let make expand exec_prefix.
13475 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13477 DEFS
=-DHAVE_CONFIG_H
13481 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13482 # 1. Remove the extension, and $U if already installed.
13483 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13484 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
13485 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13486 # will be set to the directory where LIBOBJS objects are built.
13487 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13488 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
13490 LIBOBJS
=$ac_libobjs
13492 LTLIBOBJS
=$ac_ltlibobjs
13495 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13496 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
13497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13499 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
13500 as_fn_error
"conditional \"GMAKE\" was never defined.
13501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13505 : ${CONFIG_STATUS=./config.status}
13507 ac_clean_files_save
=$ac_clean_files
13508 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13510 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13512 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13514 # Generated by $as_me.
13515 # Run this file to recreate the current configuration.
13516 # Compiler output produced by configure, useful for debugging
13517 # configure, is in config.log if it exists.
13520 ac_cs_recheck=false
13523 SHELL=\${CONFIG_SHELL-$SHELL}
13526 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
13527 ## -------------------- ##
13528 ## M4sh Initialization. ##
13529 ## -------------------- ##
13531 # Be more Bourne compatible
13532 DUALCASE
=1; export DUALCASE
# for MKS sh
13533 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
13536 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13537 # is contrary to our usage. Disable this feature.
13538 alias -g '${1+"$@"}'='"$@"'
13539 setopt NO_GLOB_SUBST
13541 case `(set -o) 2>/dev/null` in #(
13553 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13554 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13555 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13556 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13557 # Prefer a ksh shell builtin over an external printf program on Solaris,
13558 # but without wasting forks for bash or zsh.
13559 if test -z "$BASH_VERSION$ZSH_VERSION" \
13560 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13561 as_echo='print
-r --'
13562 as_echo_n='print
-rn --'
13563 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13564 as_echo='printf %s
\n'
13565 as_echo_n='printf %s
'
13567 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13568 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
13569 as_echo_n='/usr
/ucb
/echo -n'
13571 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13572 as_echo_n_body='eval
13576 expr "X$arg" : "X\\(.*\\)$as_nl";
13577 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13579 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
13581 export as_echo_n_body
13582 as_echo_n='sh
-c $as_echo_n_body as_echo
'
13584 export as_echo_body
13585 as_echo='sh
-c $as_echo_body as_echo
'
13588 # The user is always right.
13589 if test "${PATH_SEPARATOR+set}" != set; then
13591 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13592 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13599 # We need space, tab and new line, in precisely that order. Quoting is
13600 # there to prevent editors from complaining about space-tab.
13601 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13602 # splitting by setting IFS to empty value.)
13605 # Find who we are. Look in the path if we contain no directory separator.
13607 *[\\/]* ) as_myself=$0 ;;
13608 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13609 for as_dir in $PATH
13612 test -z "$as_dir" && as_dir=.
13613 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13619 # We did not find ourselves, most probably we were run as `sh COMMAND'
13620 # in which case we are not to be found in the path.
13621 if test "x$as_myself" = x
; then
13624 if test ! -f "$as_myself"; then
13625 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13629 # Unset variables that we do not need and which cause bugs (e.g. in
13630 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13631 # suppresses any "Segmentation fault" message there. '((' could
13632 # trigger a bug in pdksh 5.2.14.
13633 for as_var
in BASH_ENV ENV MAIL MAILPATH
13634 do eval test x\
${$as_var+set} = xset \
13635 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
13648 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
13651 # as_fn_error ERROR [LINENO LOG_FD]
13652 # ---------------------------------
13653 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13654 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13655 # script with status $?, using 1 if that was 0.
13658 as_status
=$?
; test $as_status -eq 0 && as_status
=1
13660 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
13661 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13663 $as_echo "$as_me: error: $1" >&2
13664 as_fn_exit
$as_status
13668 # as_fn_set_status STATUS
13669 # -----------------------
13670 # Set $? to STATUS, without forking.
13671 as_fn_set_status
()
13674 } # as_fn_set_status
13676 # as_fn_exit STATUS
13677 # -----------------
13678 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13682 as_fn_set_status
$1
13688 # Portably unset VAR.
13691 { eval $1=; unset $1;}
13693 as_unset
=as_fn_unset
13694 # as_fn_append VAR VALUE
13695 # ----------------------
13696 # Append the text in VALUE to the end of the definition contained in VAR. Take
13697 # advantage of any shell optimizations that allow amortized linear growth over
13698 # repeated appends, instead of the typical quadratic growth present in naive
13700 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
13701 eval 'as_fn_append ()
13712 # as_fn_arith ARG...
13713 # ------------------
13714 # Perform arithmetic evaluation on the ARGs, and store the result in the
13715 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13716 # must be portable across $(()) and expr.
13717 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
13718 eval 'as_fn_arith ()
13725 as_val
=`expr "$@" || test $? -eq 1`
13730 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13731 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13737 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13738 as_basename
=basename
13743 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13749 as_me
=`$as_basename -- "$0" ||
13750 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13751 X"$0" : 'X\(//\)$' \| \
13752 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13754 sed '/^.*\/\([^/][^/]*\)\/*$/{
13768 # Avoid depending upon Character Ranges.
13769 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13770 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13771 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13772 as_cr_digits
='0123456789'
13773 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13775 ECHO_C
= ECHO_N
= ECHO_T
=
13776 case `echo -n x` in #(((((
13778 case `echo 'xy\c'` in
13779 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13781 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
13788 rm -f conf$$ conf$$.exe conf$$.
file
13789 if test -d conf$$.dir
; then
13790 rm -f conf$$.dir
/conf$$.
file
13793 mkdir conf$$.dir
2>/dev
/null
13795 if (echo >conf$$.
file) 2>/dev
/null
; then
13796 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13798 # ... but there are two gotchas:
13799 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13800 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13801 # In both cases, we have to default to `cp -p'.
13802 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
13804 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13812 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13813 rmdir conf$$.dir
2>/dev
/null
13818 # Create "$as_dir" as a directory, including parents if necessary.
13823 -*) as_dir
=.
/$as_dir;;
13825 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
13829 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13830 *) as_qdir
=$as_dir;;
13832 as_dirs
="'$as_qdir' $as_dirs"
13833 as_dir
=`$as_dirname -- "$as_dir" ||
13834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13835 X"$as_dir" : 'X\(//\)[^/]' \| \
13836 X"$as_dir" : 'X\(//\)$' \| \
13837 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13838 $as_echo X"$as_dir" |
13839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13843 /^X\(\/\/\)[^/].*/{
13856 test -d "$as_dir" && break
13858 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13859 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
13863 if mkdir
-p .
2>/dev
/null
; then
13864 as_mkdir_p
='mkdir -p "$as_dir"'
13866 test -d .
/-p && rmdir .
/-p
13870 if test -x / >/dev
/null
2>&1; then
13871 as_test_x
='test -x'
13873 if ls -dL / >/dev
/null
2>&1; then
13880 if test -d "$1"; then
13886 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13887 ???[sx]*):;;*)false;;esac;fi
13891 as_executable_p
=$as_test_x
13893 # Sed expression to map a string onto a valid CPP name.
13894 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13896 # Sed expression to map a string onto a valid variable name.
13897 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13901 ## ----------------------------------- ##
13902 ## Main body of $CONFIG_STATUS script. ##
13903 ## ----------------------------------- ##
13905 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
13907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13908 # Save the log message, to keep $0 and so on meaningful, and to
13909 # report actual input values of CONFIG_FILES etc. instead of their
13910 # values after options handling.
13912 This file was extended by $as_me, which was
13913 generated by GNU Autoconf 2.64. Invocation command line was
13915 CONFIG_FILES = $CONFIG_FILES
13916 CONFIG_HEADERS = $CONFIG_HEADERS
13917 CONFIG_LINKS = $CONFIG_LINKS
13918 CONFIG_COMMANDS = $CONFIG_COMMANDS
13921 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13926 case $ac_config_files in *"
13927 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
13930 case $ac_config_headers in *"
13931 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
13935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13936 # Files that config.status was made for.
13937 config_files="$ac_config_files"
13938 config_headers="$ac_config_headers"
13939 config_links="$ac_config_links"
13940 config_commands="$ac_config_commands"
13944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13946 \`$as_me' instantiates files and other configuration actions
13947 from templates according to the current configuration. Unless the files
13948 and actions are specified as TAGs, all are instantiated by default.
13950 Usage: $0 [OPTION]... [TAG]...
13952 -h, --help print this help, then exit
13953 -V, --version print version number and configuration settings, then exit
13954 -q, --quiet, --silent
13955 do not print progress messages
13956 -d, --debug don't remove temporary files
13957 --recheck update $as_me by reconfiguring in the same conditions
13958 --file=FILE[:TEMPLATE]
13959 instantiate the configuration file FILE
13960 --header=FILE[:TEMPLATE]
13961 instantiate the configuration header FILE
13963 Configuration files:
13966 Configuration headers:
13969 Configuration links:
13972 Configuration commands:
13975 Report bugs to the package provider."
13978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13981 configured by $0, generated by GNU Autoconf 2.64,
13982 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13984 Copyright (C) 2009 Free Software Foundation, Inc.
13985 This config.status script is free software; the Free Software Foundation
13986 gives unlimited permission to copy, distribute and modify it."
13992 test -n "\$AWK" || AWK=awk
13995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13996 # The default lists apply if the user does not specify any file.
14002 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14003 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14014 # Handling of the options.
14015 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14017 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14018 $as_echo "$ac_cs_version"; exit ;;
14019 --debug |
--debu |
--deb |
--de |
--d |
-d )
14021 --file |
--fil |
--fi |
--f )
14024 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14026 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14027 ac_need_defaults
=false
;;
14028 --header |
--heade |
--head |
--hea )
14031 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14033 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14034 ac_need_defaults
=false
;;
14036 # Conflict between --help and --header
14037 as_fn_error
"ambiguous option: \`$1'
14038 Try \`$0 --help' for more information.";;
14039 --help |
--hel |
-h )
14040 $as_echo "$ac_cs_usage"; exit ;;
14041 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14042 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14045 # This is an error.
14046 -*) as_fn_error
"unrecognized option: \`$1'
14047 Try \`$0 --help' for more information." ;;
14049 *) as_fn_append ac_config_targets
" $1"
14050 ac_need_defaults
=false
;;
14056 ac_configure_extra_args
=
14058 if $ac_cs_silent; then
14060 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14065 if \$ac_cs_recheck; then
14066 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14068 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14069 CONFIG_SHELL='$SHELL'
14070 export CONFIG_SHELL
14075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14079 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14080 ## Running $as_me. ##
14086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14090 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14096 # Handling of arguments.
14097 for ac_config_target
in $ac_config_targets
14099 case $ac_config_target in
14100 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
14101 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
14102 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
14103 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
14104 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14105 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
14106 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
14107 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
14108 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
14110 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14115 # If the user did not use the arguments to specify the items to instantiate,
14116 # then the envvar interface is used. Set only those that are not.
14117 # We use the long form for the default assignment because of an extremely
14118 # bizarre bug on SunOS 4.1.3.
14119 if $ac_need_defaults; then
14120 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14121 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14122 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
14123 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14126 # Have a temporary directory for convenience. Make it in the build tree
14127 # simply because there is no reason against having it here, and in addition,
14128 # creating and moving files from /tmp can sometimes cause problems.
14129 # Hook for its removal unless debugging.
14130 # Note that there is a small window in which the directory will not be cleaned:
14131 # after its creation but before its name has been assigned to `$tmp'.
14135 trap 'exit_status=$?
14136 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14138 trap 'as_fn_exit 1' 1 2 13 15
14140 # Create a (secure) tmp directory for tmp files.
14143 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14144 test -n "$tmp" && test -d "$tmp"
14147 tmp
=.
/conf$$
-$RANDOM
14148 (umask 077 && mkdir
"$tmp")
14149 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
14151 # Set up the scripts for CONFIG_FILES section.
14152 # No need to generate them if there are no CONFIG_FILES.
14153 # This happens for instance with `./config.status config.h'.
14154 if test -n "$CONFIG_FILES"; then
14156 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
14157 ac_cs_awk_getline
=:
14158 ac_cs_awk_pipe_init
=
14159 ac_cs_awk_read_file
='
14160 while ((getline aline < (F[key])) > 0)
14163 ac_cs_awk_pipe_fini
=
14165 ac_cs_awk_getline
=false
14166 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
14167 ac_cs_awk_read_file
='
14169 print "cat " F[key] " &&"
14170 '$ac_cs_awk_pipe_init
14171 # The final `:' finishes the AND list.
14172 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
14174 ac_cr
=`echo X | tr X '\015'`
14175 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14176 # But we know of no other shell where ac_cr would be empty at this
14177 # point, so we can use a bashism as a fallback.
14178 if test "x$ac_cr" = x
; then
14179 eval ac_cr
=\$
\'\\r
\'
14181 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14182 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14185 ac_cs_awk_cr
=$ac_cr
14188 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14191 # Create commands to substitute file output variables.
14193 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14194 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14195 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
14198 } >conf$
$files.sh
&&
14199 . .
/conf$
$files.sh ||
14200 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
14201 rm -f conf$
$files.sh
14204 echo "cat >conf$$subs.awk <<_ACEOF" &&
14205 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14207 } >conf$$subs.sh ||
14208 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14209 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14211 for ac_last_try in false false false false false :; do
14212 . ./conf$$subs.sh ||
14213 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14215 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14216 if test $ac_delim_n = $ac_delim_num; then
14218 elif $ac_last_try; then
14219 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14221 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14224 rm -f conf$$subs.sh
14226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14227 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
14231 s/^/S["/; s
/!.
*/"]=/
14241 s/\(.\{148\}\).*/\1/
14243 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14248 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14255 s/\(.\{148\}\).*/\1/
14257 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14261 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14266 ' <conf$$subs.awk | sed '
14271 ' >>$CONFIG_STATUS || ac_write_fail=1
14272 rm -f conf$$subs.awk
14273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14275 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
14276 for (key in S) S_is_set[key] = 1
14278 \$ac_cs_awk_pipe_init
14282 nfields = split(line, field, "@
")
14284 len = length(field[1])
14285 for (i = 2; i < nfields; i++) {
14287 keylen = length(key)
14288 if (S_is_set[key]) {
14290 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14291 len += length(value) + length(field[++i])
14296 if (nfields == 3 && !substed) {
14298 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14299 \$ac_cs_awk_read_file
14305 \$ac_cs_awk_pipe_fini
14308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14309 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14310 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14313 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
14314 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
14317 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14318 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
14319 # trailing colons and then remove the whole line if VPATH becomes empty
14320 # (actually we leave an empty line to preserve line numbers).
14321 if test "x
$srcdir" = x.; then
14322 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14323 s/:*\$(srcdir):*/:/
14324 s/:*\${srcdir}:*/:/
14326 s/^\([^=]*=[ ]*\):*/\1/
14332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14333 fi # test -n "$CONFIG_FILES"
14335 # Set up the scripts for CONFIG_HEADERS section.
14336 # No need to generate them if there are no CONFIG_HEADERS.
14337 # This happens for instance with `./config.status Makefile'.
14338 if test -n "$CONFIG_HEADERS"; then
14339 cat >"$tmp/defines.
awk" <<\_ACAWK ||
14343 # Transform confdefs.h into an awk script `defines.awk', embedded as
14344 # here-document in config.status, that substitutes the proper values into
14345 # config.h.in to produce config.h.
14347 # Create a delimiter string that does not exist in confdefs.h, to ease
14348 # handling of long lines.
14350 for ac_last_try in false false :; do
14351 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
14352 if test -z "$ac_t"; then
14354 elif $ac_last_try; then
14355 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
14357 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14361 # For the awk script, D is an array of macro values keyed by name,
14362 # likewise P contains macro parameters if any. Preserve backslash
14363 # newline sequences.
14365 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14367 s/.\{148\}/&'"$ac_delim"'/g
14370 s/^[ ]*#[ ]*define[ ][ ]*/ /
14377 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14379 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14383 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14384 D["\
1"]=" \
3\\\\\\n
"\\/p
14386 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14391 s/.\{148\}/&'"$ac_delim"'/g
14396 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14399 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14401 ' <confdefs.h | sed '
14402 s/'"$ac_delim"'/"\\\
14403 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14406 for (key in D) D_is_set[key] = 1
14409 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14411 split(line, arg, " ")
14412 if (arg[1] == "#") {
14416 defundef
= substr
(arg
[1], 2)
14419 split(mac1
, mac2
, "(") #)
14421 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14422 if (D_is_set
[macro
]) {
14423 # Preserve the white space surrounding the "#".
14424 print prefix
"define", macro P
[macro
] D
[macro
]
14427 # Replace #undef with comments. This is necessary, for example,
14428 # in the case of _POSIX_SOURCE, which is predefined and required
14429 # on some systems where configure will not decide to define it.
14430 if (defundef
== "undef") {
14431 print
"/*", prefix defundef
, macro
, "*/"
14439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14440 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
14441 fi # test -n "$CONFIG_HEADERS"
14444 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
14449 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14451 case $ac_mode$ac_tag in
14453 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14454 :[FH
]-) ac_tag
=-:-;;
14455 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14472 -) ac_f
="$tmp/stdin";;
14473 *) # Look for the file first in the build tree, then in the source tree
14474 # (if the path is not absolute). The absolute path cannot be DOS-style,
14475 # because $ac_f cannot contain `:'.
14479 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14481 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
14483 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14484 as_fn_append ac_file_inputs
" '$ac_f'"
14487 # Let's still pretend it is `configure' which instantiates (i.e., don't
14488 # use $as_me), people would be surprised to read:
14489 # /* config.h. Generated by config.status. */
14490 configure_input
='Generated from '`
14491 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14493 if test x
"$ac_file" != x-
; then
14494 configure_input
="$ac_file. $configure_input"
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14496 $as_echo "$as_me: creating $ac_file" >&6;}
14498 # Neutralize special characters interpreted by sed in replacement strings.
14499 case $configure_input in #(
14500 *\
&* |
*\|
* |
*\\* )
14501 ac_sed_conf_input
=`$as_echo "$configure_input" |
14502 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14503 *) ac_sed_conf_input
=$configure_input;;
14507 *:-:* |
*:-) cat >"$tmp/stdin" \
14508 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
14513 ac_dir
=`$as_dirname -- "$ac_file" ||
14514 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14515 X"$ac_file" : 'X\(//\)[^/]' \| \
14516 X"$ac_file" : 'X\(//\)$' \| \
14517 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14518 $as_echo X"$ac_file" |
14519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14523 /^X\(\/\/\)[^/].*/{
14536 as_dir
="$ac_dir"; as_fn_mkdir_p
14540 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14542 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14543 # A ".." for each directory in $ac_dir_suffix.
14544 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14545 case $ac_top_builddir_sub in
14546 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14547 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14550 ac_abs_top_builddir
=$ac_pwd
14551 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14552 # for backward compatibility:
14553 ac_top_builddir
=$ac_top_build_prefix
14556 .
) # We are building in place.
14558 ac_top_srcdir
=$ac_top_builddir_sub
14559 ac_abs_top_srcdir
=$ac_pwd ;;
14560 [\\/]* | ?
:[\\/]* ) # Absolute name.
14561 ac_srcdir
=$srcdir$ac_dir_suffix;
14562 ac_top_srcdir
=$srcdir
14563 ac_abs_top_srcdir
=$srcdir ;;
14564 *) # Relative name.
14565 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14566 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14567 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14569 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14579 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14580 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
14584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14585 # If the template does not know about datarootdir, expand it.
14586 # FIXME: This hack should be removed a few years after 2.60.
14587 ac_datarootdir_hack
=; ac_datarootdir_seen
=
14598 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14599 *datarootdir
*) ac_datarootdir_seen
=yes;;
14600 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14602 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14605 ac_datarootdir_hack='
14606 s&@datadir@&$datadir&g
14607 s&@docdir@&$docdir&g
14608 s&@infodir@&$infodir&g
14609 s&@localedir@&$localedir&g
14610 s&@mandir@&$mandir&g
14611 s&\\\${datarootdir}&$datarootdir&g' ;;
14615 # Neutralize VPATH when `$srcdir' = `.'.
14616 # Shell code in configure.ac might set extrasub.
14617 # FIXME: do we really want to maintain this feature?
14618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14619 ac_sed_extra="$ac_vpsub
14622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14624 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14625 s|@configure_input@|
$ac_sed_conf_input|
;t t
14626 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
14627 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
14628 s
&@srcdir@
&$ac_srcdir&;t t
14629 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
14630 s
&@top_srcdir@
&$ac_top_srcdir&;t t
14631 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
14632 s
&@builddir@
&$ac_builddir&;t t
14633 s
&@abs_builddir@
&$ac_abs_builddir&;t t
14634 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
14635 s
&@INSTALL@
&$ac_INSTALL&;t t
14636 $ac_datarootdir_hack
14638 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14639 if $ac_cs_awk_getline; then
14640 $AWK -f "$tmp/subs.
awk"
14642 $AWK -f "$tmp/subs.
awk" | $SHELL
14644 || as_fn_error "could not create
$ac_file" "$LINENO" 5
14646 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14647 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
14648 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
14650 which seems to be undefined. Please make sure it is defined." >&5
14651 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
14652 which seems to be undefined. Please make sure it is defined." >&2;}
14656 -) cat "$tmp/out" && rm -f "$tmp/out";;
14657 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14659 || as_fn_error "could not create $ac_file" "$LINENO" 5
14665 if test x"$ac_file" != x-; then
14667 $as_echo "/* $configure_input */" \
14668 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14669 } >"$tmp/config.h" \
14670 || as_fn_error "could not create $ac_file" "$LINENO" 5
14671 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14673 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14676 mv "$tmp/config.h" "$ac_file" \
14677 || as_fn_error "could not create $ac_file" "$LINENO" 5
14680 $as_echo "/* $configure_input */" \
14681 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14682 || as_fn_error "could not create -" "$LINENO" 5
14690 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
14693 # Prefer the file from the source tree if names are identical.
14694 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14695 ac_source=$srcdir/$ac_source
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14699 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14701 if test ! -r "$ac_source"; then
14702 as_fn_error "$ac_source: file not found" "$LINENO" 5
14706 # Try a relative symlink, then a hard link, then a copy.
14708 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14709 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14711 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14712 ln "$ac_source" "$ac_file" 2>/dev/null ||
14713 cp -p "$ac_source" "$ac_file" ||
14714 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14717 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14718 $as_echo "$as_me: executing $ac_file commands" >&6;}
14723 case $ac_file$ac_mode in
14724 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
14726 case x$CONFIG_HEADERS in
14727 xconfig.h:config.in)
14738 ac_clean_files=$ac_clean_files_save
14740 test $ac_write_fail = 0 ||
14741 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14744 # configure is writing to config.log, and then calls config.status.
14745 # config.status does its own redirection, appending to config.log.
14746 # Unfortunately, on DOS this fails, as config.log is still kept open
14747 # by configure, so config.status won't be able to
write to it
; its
14748 # output is simply discarded. So we exec the FD to /dev/null,
14749 # effectively closing config.log, so it can be properly (re)opened and
14750 # appended to by config.status. When coming back to configure, we
14751 # need to make the FD available again.
14752 if test "$no_create" != yes; then
14754 ac_config_status_args
=
14755 test "$silent" = yes &&
14756 ac_config_status_args
="$ac_config_status_args --quiet"
14758 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14760 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14761 # would make configure fail if this is the last instruction.
14762 $ac_cs_success || as_fn_exit $?
14766 # CONFIG_SUBDIRS section.
14768 if test "$no_recursion" != yes; then
14770 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14771 # so they do not pile up.
14772 ac_sub_configure_args
=
14774 eval "set x $ac_configure_args"
14778 if test -n "$ac_prev"; then
14783 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
14784 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
14785 ac_prev
=cache_file
;;
14786 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
14787 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
14790 --config-cache |
-C)
14792 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
14794 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
14796 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
14798 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
14800 --disable-option-checking)
14804 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14806 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
14810 # Always prepend --prefix to ensure using the same prefix
14811 # in subdir configurations.
14812 ac_arg
="--prefix=$prefix"
14814 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14816 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
14819 if test "$silent" = yes; then
14820 ac_sub_configure_args
="--silent $ac_sub_configure_args"
14823 # Always prepend --disable-option-checking to silence warnings, since
14824 # different subdirs can have different --enable and --with options.
14825 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
14828 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
14830 # Do not complain, so a configure script can configure whichever
14831 # parts of a large source tree are present.
14832 test -d "$srcdir/$ac_dir" ||
continue
14834 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14835 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14836 $as_echo "$ac_msg" >&6
14837 as_dir
="$ac_dir"; as_fn_mkdir_p
14841 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14843 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14844 # A ".." for each directory in $ac_dir_suffix.
14845 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14846 case $ac_top_builddir_sub in
14847 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14848 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14851 ac_abs_top_builddir
=$ac_pwd
14852 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14853 # for backward compatibility:
14854 ac_top_builddir
=$ac_top_build_prefix
14857 .
) # We are building in place.
14859 ac_top_srcdir
=$ac_top_builddir_sub
14860 ac_abs_top_srcdir
=$ac_pwd ;;
14861 [\\/]* | ?
:[\\/]* ) # Absolute name.
14862 ac_srcdir
=$srcdir$ac_dir_suffix;
14863 ac_top_srcdir
=$srcdir
14864 ac_abs_top_srcdir
=$srcdir ;;
14865 *) # Relative name.
14866 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14867 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14868 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14870 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14875 # Check for guested configure; otherwise get Cygnus style configure.
14876 if test -f "$ac_srcdir/configure.gnu"; then
14877 ac_sub_configure
=$ac_srcdir/configure.gnu
14878 elif test -f "$ac_srcdir/configure"; then
14879 ac_sub_configure
=$ac_srcdir/configure
14880 elif test -f "$ac_srcdir/configure.in"; then
14881 # This should be Cygnus configure.
14882 ac_sub_configure
=$ac_aux_dir/configure
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14885 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14889 # The recursion is here.
14890 if test -n "$ac_sub_configure"; then
14891 # Make the cache file name correct relative to the subdirectory.
14892 case $cache_file in
14893 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
14894 *) # Relative name.
14895 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
14898 { $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
14899 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14900 # The eval makes quoting arguments work.
14901 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14902 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14903 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14909 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14911 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}