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
682 READLINE_TEXI_INCFLAG
703 HAVE_NATIVE_GCORE_TARGET
733 INSTALL_STRIP_PROGRAM
762 MAINTAINER_MODE_FALSE
791 program_transform_name
802 ac_subst_files
='host_makefile_frag'
804 enable_option_checking
805 enable_maintainer_mode
808 enable_build_with_cxx
809 with_separate_debug_dir
811 with_relocated_sources
813 with_auto_load_safe_path
843 enable_build_warnings
844 enable_gdb_build_warnings
854 with_libbabeltrace_prefix
856 ac_precious_vars
='build_alias
873 ac_subdirs_all
='testsuite
878 # Initialize some variables set by options.
880 ac_init_version
=false
881 ac_unrecognized_opts
=
883 # The variables have the same names as the options, with
884 # dashes changed to underlines.
892 program_transform_name
=s
,x
,x
,
900 # Installation directory options.
901 # These are left unexpanded so users can "make install exec_prefix=/foo"
902 # and all the variables that are supposed to be based on exec_prefix
903 # by default will actually change.
904 # Use braces instead of parens because sh, perl, etc. also accept them.
905 # (The list follows the same order as the GNU Coding Standards.)
906 bindir
='${exec_prefix}/bin'
907 sbindir
='${exec_prefix}/sbin'
908 libexecdir
='${exec_prefix}/libexec'
909 datarootdir
='${prefix}/share'
910 datadir
='${datarootdir}'
911 sysconfdir
='${prefix}/etc'
912 sharedstatedir
='${prefix}/com'
913 localstatedir
='${prefix}/var'
914 includedir
='${prefix}/include'
915 oldincludedir
='/usr/include'
916 docdir
='${datarootdir}/doc/${PACKAGE}'
917 infodir
='${datarootdir}/info'
922 libdir
='${exec_prefix}/lib'
923 localedir
='${datarootdir}/locale'
924 mandir
='${datarootdir}/man'
930 # If the previous option needs an argument, assign it.
931 if test -n "$ac_prev"; then
932 eval $ac_prev=\
$ac_option
938 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 # Accept the important Cygnus configure options, so we can diagnose typos.
944 case $ac_dashdash$ac_option in
948 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
950 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
953 -build |
--build |
--buil |
--bui |
--bu)
954 ac_prev
=build_alias
;;
955 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
956 build_alias
=$ac_optarg ;;
958 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
959 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
960 ac_prev
=cache_file
;;
961 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
962 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
963 cache_file
=$ac_optarg ;;
966 cache_file
=config.cache
;;
968 -datadir |
--datadir |
--datadi |
--datad)
970 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
971 datadir
=$ac_optarg ;;
973 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
974 |
--dataroo |
--dataro |
--datar)
975 ac_prev
=datarootdir
;;
976 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
977 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
978 datarootdir
=$ac_optarg ;;
980 -disable-* |
--disable-*)
981 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
984 as_fn_error
"invalid feature name: $ac_useropt"
985 ac_useropt_orig
=$ac_useropt
986 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
991 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992 ac_unrecognized_sep
=', ';;
994 eval enable_
$ac_useropt=no
;;
996 -docdir |
--docdir |
--docdi |
--doc |
--do)
998 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1001 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1003 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1004 dvidir
=$ac_optarg ;;
1006 -enable-* |
--enable-*)
1007 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1010 as_fn_error
"invalid feature name: $ac_useropt"
1011 ac_useropt_orig
=$ac_useropt
1012 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1015 "enable_
$ac_useropt"
1017 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018 ac_unrecognized_sep
=', ';;
1020 eval enable_
$ac_useropt=\
$ac_optarg ;;
1022 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1023 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1024 |
--exec |
--exe |
--ex)
1025 ac_prev
=exec_prefix
;;
1026 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1027 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1028 |
--exec=* |
--exe=* |
--ex=*)
1029 exec_prefix
=$ac_optarg ;;
1031 -gas |
--gas |
--ga |
--g)
1032 # Obsolete; use --with-gas.
1035 -help |
--help |
--hel |
--he |
-h)
1036 ac_init_help
=long
;;
1037 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1038 ac_init_help
=recursive
;;
1039 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1040 ac_init_help
=short
;;
1042 -host |
--host |
--hos |
--ho)
1043 ac_prev
=host_alias
;;
1044 -host=* |
--host=* |
--hos=* |
--ho=*)
1045 host_alias
=$ac_optarg ;;
1047 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1049 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1051 htmldir
=$ac_optarg ;;
1053 -includedir |
--includedir |
--includedi |
--included |
--include \
1054 |
--includ |
--inclu |
--incl |
--inc)
1055 ac_prev
=includedir
;;
1056 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1057 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1058 includedir
=$ac_optarg ;;
1060 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1062 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1063 infodir
=$ac_optarg ;;
1065 -libdir |
--libdir |
--libdi |
--libd)
1067 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1068 libdir
=$ac_optarg ;;
1070 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1071 |
--libexe |
--libex |
--libe)
1072 ac_prev
=libexecdir
;;
1073 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1074 |
--libexe=* |
--libex=* |
--libe=*)
1075 libexecdir
=$ac_optarg ;;
1077 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1078 ac_prev
=localedir
;;
1079 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1080 localedir
=$ac_optarg ;;
1082 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1083 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1084 ac_prev
=localstatedir
;;
1085 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1086 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1087 localstatedir
=$ac_optarg ;;
1089 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1091 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1092 mandir
=$ac_optarg ;;
1094 -nfp |
--nfp |
--nf)
1095 # Obsolete; use --without-fp.
1098 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1099 |
--no-cr |
--no-c |
-n)
1102 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1103 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1106 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1107 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1108 |
--oldin |
--oldi |
--old |
--ol |
--o)
1109 ac_prev
=oldincludedir
;;
1110 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1111 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1112 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1113 oldincludedir
=$ac_optarg ;;
1115 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1117 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1118 prefix
=$ac_optarg ;;
1120 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1121 |
--program-pre |
--program-pr |
--program-p)
1122 ac_prev
=program_prefix
;;
1123 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1124 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1125 program_prefix
=$ac_optarg ;;
1127 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1128 |
--program-suf |
--program-su |
--program-s)
1129 ac_prev
=program_suffix
;;
1130 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1131 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1132 program_suffix
=$ac_optarg ;;
1134 -program-transform-name |
--program-transform-name \
1135 |
--program-transform-nam |
--program-transform-na \
1136 |
--program-transform-n |
--program-transform- \
1137 |
--program-transform |
--program-transfor \
1138 |
--program-transfo |
--program-transf \
1139 |
--program-trans |
--program-tran \
1140 |
--progr-tra |
--program-tr |
--program-t)
1141 ac_prev
=program_transform_name
;;
1142 -program-transform-name=* |
--program-transform-name=* \
1143 |
--program-transform-nam=* |
--program-transform-na=* \
1144 |
--program-transform-n=* |
--program-transform-=* \
1145 |
--program-transform=* |
--program-transfor=* \
1146 |
--program-transfo=* |
--program-transf=* \
1147 |
--program-trans=* |
--program-tran=* \
1148 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1149 program_transform_name
=$ac_optarg ;;
1151 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1153 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1154 pdfdir
=$ac_optarg ;;
1156 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1158 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1161 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1162 |
-silent |
--silent |
--silen |
--sile |
--sil)
1165 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1167 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1169 sbindir
=$ac_optarg ;;
1171 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1172 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1173 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1175 ac_prev
=sharedstatedir
;;
1176 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1177 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1178 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1180 sharedstatedir
=$ac_optarg ;;
1182 -site |
--site |
--sit)
1184 -site=* |
--site=* |
--sit=*)
1187 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1189 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1190 srcdir
=$ac_optarg ;;
1192 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1193 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1194 ac_prev
=sysconfdir
;;
1195 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1196 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1197 sysconfdir
=$ac_optarg ;;
1199 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1200 ac_prev
=target_alias
;;
1201 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1202 target_alias
=$ac_optarg ;;
1204 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1207 -version |
--version |
--versio |
--versi |
--vers |
-V)
1208 ac_init_version
=: ;;
1211 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1214 as_fn_error
"invalid package name: $ac_useropt"
1215 ac_useropt_orig
=$ac_useropt
1216 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1221 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222 ac_unrecognized_sep
=', ';;
1224 eval with_
$ac_useropt=\
$ac_optarg ;;
1226 -without-* |
--without-*)
1227 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1230 as_fn_error
"invalid package name: $ac_useropt"
1231 ac_useropt_orig
=$ac_useropt
1232 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1237 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238 ac_unrecognized_sep
=', ';;
1240 eval with_
$ac_useropt=no
;;
1243 # Obsolete; use --with-x.
1246 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1247 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1248 ac_prev
=x_includes
;;
1249 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1250 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1251 x_includes
=$ac_optarg ;;
1253 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1254 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1255 ac_prev
=x_libraries
;;
1256 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1257 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1258 x_libraries
=$ac_optarg ;;
1260 -*) as_fn_error
"unrecognized option: \`$ac_option'
1261 Try \`$0 --help' for more information."
1265 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 case $ac_envvar in #(
1268 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1269 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1271 eval $ac_envvar=\
$ac_optarg
1272 export $ac_envvar ;;
1275 # FIXME: should be removed in autoconf 3.0.
1276 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1278 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285 if test -n "$ac_prev"; then
1286 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1287 as_fn_error
"missing argument to $ac_option"
1290 if test -n "$ac_unrecognized_opts"; then
1291 case $enable_option_checking in
1293 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1294 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298 # Check all directory arguments for consistency.
1299 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1304 eval ac_val
=\$
$ac_var
1305 # Remove trailing slashes.
1308 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309 eval $ac_var=\
$ac_val;;
1311 # Be sure to have absolute directory names.
1313 [\\/$
]* | ?
:[\\/]* ) continue;;
1314 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1316 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1324 target
=$target_alias
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x
; then
1328 if test "x$build_alias" = x
; then
1329 cross_compiling
=maybe
1330 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1331 If a cross compiler is detected then cross compile mode will be used." >&2
1332 elif test "x$build_alias" != "x$host_alias"; then
1338 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1340 test "$silent" = yes && exec 6>/dev
/null
1343 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di
=`ls -di .` &&
1345 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1346 as_fn_error
"working directory cannot be determined"
1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348 as_fn_error
"pwd does not report name of working directory"
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353 ac_srcdir_defaulted
=yes
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir
=`$as_dirname -- "$as_myself" ||
1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360 $as_echo X"$as_myself" |
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1383 ac_srcdir_defaulted
=no
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1387 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1389 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1401 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 for ac_var
in $ac_precious_vars; do
1404 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1406 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1411 # Report the --help message.
1413 if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1417 \`configure' configures this package to adapt to many kinds of systems.
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE. See below for descriptions of some of the useful variables.
1424 Defaults for the options are specified in brackets.
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437 Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
1439 [$ac_default_prefix]
1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1448 For better control, use the options below.
1450 Fine tuning of the installation directories:
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1475 --program-prefix=PREFIX prepend PREFIX to installed program names
1476 --program-suffix=SUFFIX append SUFFIX to installed program names
1477 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1480 --x-includes=DIR X include files are
in DIR
1481 --x-libraries=DIR X library files are
in DIR
1484 --build=BUILD configure
for building on BUILD
[guessed
]
1485 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1486 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1490 if test -n "$ac_init_help"; then
1495 --disable-option-checking ignore unrecognized
--enable/--with options
1496 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1497 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1498 --enable-maintainer-mode enable make rules and dependencies not useful
1499 (and sometimes confusing
) to the casual installer
1500 --enable-plugins Enable support
for plugins
1501 --disable-largefile omit support
for large files
1502 --enable-build-with-cxx build with C
++ compiler instead of C compiler
1503 --enable-targets=TARGETS
1504 alternative target configurations
1505 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1506 --disable-gdbcli disable command-line interface
(CLI
)
1507 --disable-gdbmi disable machine-interface
(MI
)
1508 --enable-tui enable full-screen terminal user interface
(TUI
)
1509 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1510 --enable-profiling enable profiling of GDB
1511 --disable-rpath do not hardcode runtime library paths
1512 --enable-libmcheck Try linking with
-lmcheck if available
1513 --enable-werror treat compile warnings as errors
1514 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1515 --enable-gdb-build-warnings
1516 enable GDB specific build-time compiler warnings
if
1518 --enable-sim link gdb with simulator
1519 --enable-multi-ice build the multi-ice-gdb-server
1520 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1524 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1525 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1526 --with-separate-debug-dir=PATH
1527 look for global separate debug info
in this path
1529 --with-gdb-datadir=PATH
look for global separate data files
in this path
1531 --with-relocated-sources=PATH
1532 automatically relocate this path
for source files
1533 --with-auto-load-dir=PATH
1534 directories from
which to load auto-loaded scripts
1535 [$debugdir:$datadir/auto-load
]
1536 --with-auto-load-safe-path=PATH
1537 directories safe to hold auto-loaded files
1538 [--with-auto-load-dir]
1539 --without-auto-load-safe-path
1540 do not restrict auto-loaded files locations
1541 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1542 --with-curses use the curses library instead of the termcap
1544 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1545 --with-bugurl=URL Direct users to URL to report a bug
1546 --with-system-zlib use installed libz
1547 --with-libiconv-prefix=DIR
1548 search
for libiconv
in DIR
/include and DIR
/lib
1549 --with-iconv-bin=PATH specify where to
find the
iconv program
1550 --with-system-readline use installed readline library
1551 --with-jit-reader-dir=PATH
1552 directory to load the JIT readers from
1553 --with-expat include expat support
(auto
/yes
/no
)
1554 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1555 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1556 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1557 --with-python[=PYTHON] include python support
1558 (auto/yes/no/<python-program>)
1559 --with-guile[=GUILE] include guile support
1560 (auto/yes/no/<guile-version>/<pkg-config-program>)
1561 --with-intel-pt include Intel(R) Processor Trace support (auto/yes/no)
1562 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1563 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1564 --without-included-regex
1565 don
't use included regex; this is the default on
1566 systems with version 2 of the GNU C library (use
1567 with caution on other system)
1568 --with-sysroot[=DIR] search for usr/lib et al within DIR
1569 --with-system-gdbinit=PATH
1570 automatically load a system-wide gdbinit file
1571 --with-lzma support lzma compression (auto/yes/no)
1572 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1573 --without-liblzma-prefix don't search
for liblzma
in includedir and libdir
1574 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1575 --with-tk directory containing tk configuration
(tkConfig.sh
)
1576 --with-x use the X Window System
1577 --with-babeltrace include babeltrace support
(auto
/yes
/no
)
1578 --with-libbabeltrace-prefix[=DIR
] search
for libbabeltrace
in DIR
/include and DIR
/lib
1579 --without-libbabeltrace-prefix don
't search for libbabeltrace in includedir and libdir
1581 Some influential environment variables:
1582 CC C compiler command
1583 CFLAGS C compiler flags
1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
1586 LIBS libraries to pass to the linker, e.g. -l<library>
1587 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1588 you have headers in a nonstandard directory <include dir>
1589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
1592 MAKEINFO Parent configure detects if it is of sufficient version.
1594 Parameters for MAKEINFO.
1595 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1596 the first program found out of
: `bison -y', `byacc
', `yacc'.
1597 YFLAGS The list of arguments that will be passed by default to
$YACC.
1598 This
script will default YFLAGS to the empty string to avoid a
1599 default value of
`-d' given by some make applications.
1600 XMKMF Path to xmkmf, Makefile generator for X Window System
1602 Use these variables to override the choices made by `configure
' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1605 Report bugs to the package provider.
1610 if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613 test -d "$ac_dir" ||
1614 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1635 .) # We are building in place.
1637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
1640 ac_srcdir=$srcdir$ac_dir_suffix;
1641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1657 $SHELL "$ac_srcdir/configure" --help=recursive
1659 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661 cd "$ac_pwd" || { ac_status=$?; break; }
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1669 generated by GNU Autoconf 2.64
1671 Copyright (C) 2009 Free Software Foundation, Inc.
1672 This configure script is free software; the Free Software Foundation
1673 gives unlimited permission to copy, distribute and modify it.
1678 ## ------------------------ ##
1679 ## Autoconf initialization. ##
1680 ## ------------------------ ##
1682 # ac_fn_c_try_compile LINENO
1683 # --------------------------
1684 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_compile ()
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext
1689 if { { ac_try="$ac_compile"
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_compile") 2>conftest.err
1698 if test -s conftest.err; then
1699 grep -v '^
*+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest.$ac_objext; then :
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's
/^
/|
/' conftest.$ac_ext >&5
1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 } # ac_fn_c_try_compile
1720 # ac_fn_cxx_try_compile LINENO
1721 # ----------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_cxx_try_compile ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1736 if test -s conftest.err; then
1737 grep -v '^
*+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_cxx_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's
/^
/|
/' conftest.$ac_ext >&5
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756 } # ac_fn_cxx_try_compile
1758 # ac_fn_c_try_cpp LINENO
1759 # ----------------------
1760 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_cpp conftest.$ac_ext"
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1773 if test -s conftest.err; then
1774 grep -v '^
*+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } >/dev/null && {
1780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's
/^
/|
/' conftest.$ac_ext >&5
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1798 # the include files in INCLUDES and setting the cache variable VAR
1800 ac_fn_c_check_header_mongrel ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1807 $as_echo_n "(cached) " >&6
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1813 # Is the header compilable?
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1815 $as_echo_n "checking $2 usability... " >&6; }
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822 ac_header_compiler=yes
1824 ac_header_compiler=no
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1828 $as_echo "$ac_header_compiler" >&6; }
1830 # Is the header present?
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1832 $as_echo_n "checking $2 presence... " >&6; }
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1837 if ac_fn_c_try_cpp "$LINENO"; then :
1838 ac_header_preproc=yes
1840 ac_header_preproc=no
1842 rm -f conftest.err conftest.$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1844 $as_echo "$ac_header_preproc" >&6; }
1846 # So? What about this header?
1847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1850 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1852 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1856 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1858 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1860 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1862 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1864 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1870 $as_echo_n "(cached) " >&6
1872 eval "$3=\$ac_header_compiler"
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 } # ac_fn_c_check_header_mongrel
1882 # ac_fn_c_try_run LINENO
1883 # ----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885 # that executables *can* be run.
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { { ac_try="$ac_link"
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>&5
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
1900 { { case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_try") 2>&5
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; }; }; then :
1912 $as_echo "$as_me: program exited with status $ac_status" >&5
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's
/^
/|
/' conftest.$ac_ext >&5
1916 ac_retval=$ac_status
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists and can be compiled using the include files in
1927 # INCLUDES, setting the cache variable VAR accordingly.
1928 ac_fn_c_check_header_compile ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934 $as_echo_n "(cached) " >&6
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1941 if ac_fn_c_try_compile "$LINENO"; then :
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 } # ac_fn_c_check_header_compile
1955 # ac_fn_c_try_link LINENO
1956 # -----------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded.
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 rm -f conftest.$ac_objext conftest$ac_exeext
1962 if { { ac_try="$ac_link"
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_link") 2>conftest.err
1971 if test -s conftest.err; then
1972 grep -v '^
*+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } && {
1978 test -z "$ac_c_werror_flag" ||
1979 test ! -s conftest.err
1980 } && test -s conftest$ac_exeext && {
1981 test "$cross_compiling" = yes ||
1982 $as_test_x conftest$ac_exeext
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's
/^
/|
/' conftest.$ac_ext >&5
1991 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993 # interfere with the next link command; also delete a directory that is
1994 # left behind by Apple's compiler. We
do this before executing the actions.
1995 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1999 } # ac_fn_c_try_link
2001 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2002 # --------------------------------------------
2003 # Tries to find the compile-time value of EXPR in a program that includes
2004 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2006 ac_fn_c_compute_int
()
2008 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2009 if test "$cross_compiling" = yes; then
2010 # Depending upon the size, compute the lo and hi bounds.
2011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2017 static int test_array [1 - 2 * !(($2) >= 0)];
2024 if ac_fn_c_try_compile
"$LINENO"; then :
2027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2033 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2040 if ac_fn_c_try_compile
"$LINENO"; then :
2041 ac_hi
=$ac_mid; break
2043 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2044 if test $ac_lo -le $ac_mid; then
2048 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2059 static int test_array [1 - 2 * !(($2) < 0)];
2066 if ac_fn_c_try_compile
"$LINENO"; then :
2069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2075 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2082 if ac_fn_c_try_compile
"$LINENO"; then :
2083 ac_lo
=$ac_mid; break
2085 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2086 if test $ac_mid -le $ac_hi; then
2090 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2100 # Binary search between lo and hi bounds.
2101 while test "x$ac_lo" != "x$ac_hi"; do
2102 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2109 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2116 if ac_fn_c_try_compile
"$LINENO"; then :
2119 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2124 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2131 static long int longval () { return $2; }
2132 static unsigned long int ulongval () { return $2; }
2139 FILE *f = fopen ("conftest.val", "w");
2144 long int i = longval ();
2147 fprintf (f, "%ld", i);
2151 unsigned long int i = ulongval ();
2154 fprintf (f, "%lu", i);
2156 /* Do not output a trailing newline, as this causes \r\n confusion
2157 on some platforms. */
2158 return ferror (f) || fclose (f) != 0;
2164 if ac_fn_c_try_run
"$LINENO"; then :
2165 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2169 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2170 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2174 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2177 } # ac_fn_c_compute_int
2179 # ac_fn_c_check_func LINENO FUNC VAR
2180 # ----------------------------------
2181 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2182 ac_fn_c_check_func
()
2184 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186 $as_echo_n "checking for $2... " >&6; }
2187 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2188 $as_echo_n "(cached) " >&6
2190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2192 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2194 #define $2 innocuous_$2
2196 /* System header to define __stub macros and hopefully few prototypes,
2197 which can conflict with char $2 (); below.
2198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2199 <limits.h> exists even on freestanding compilers. */
2202 # include <limits.h>
2204 # include <assert.h>
2209 /* Override any GCC internal prototype to avoid an error.
2210 Use char because int might match the return type of a GCC
2211 builtin and then its argument prototype would still apply. */
2216 /* The GNU C library defines this for functions which it implements
2217 to always fail with ENOSYS. Some functions are actually named
2218 something starting with __ and the normal name is an alias. */
2219 #if defined __stub_$2 || defined __stub___$2
2231 if ac_fn_c_try_link
"$LINENO"; then :
2236 rm -f core conftest.err conftest.
$ac_objext \
2237 conftest
$ac_exeext conftest.
$ac_ext
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241 $as_echo "$ac_res" >&6; }
2242 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2244 } # ac_fn_c_check_func
2246 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2247 # -------------------------------------------
2248 # Tests whether TYPE exists after having included INCLUDES, setting cache
2249 # variable VAR accordingly.
2250 ac_fn_c_check_type
()
2252 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2256 $as_echo_n "(cached) " >&6
2259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2271 if ac_fn_c_try_compile
"$LINENO"; then :
2272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2284 if ac_fn_c_try_compile
"$LINENO"; then :
2289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2298 } # ac_fn_c_check_type
2300 # ac_fn_c_check_decl LINENO SYMBOL VAR
2301 # ------------------------------------
2302 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2303 ac_fn_c_check_decl
()
2305 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2306 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2307 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2309 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2310 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2311 $as_echo_n "(cached) " >&6
2313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2319 #ifndef $as_decl_name
2321 (void) $as_decl_use;
2323 (void) $as_decl_name;
2331 if ac_fn_c_try_compile
"$LINENO"; then :
2336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2343 } # ac_fn_c_check_decl
2345 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2346 # ----------------------------------------------------
2347 # Tries to find if the field MEMBER exists in type AGGR, after including
2348 # INCLUDES, setting cache variable VAR accordingly.
2349 ac_fn_c_check_member
()
2351 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2353 $as_echo_n "checking for $2.$3... " >&6; }
2354 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2355 $as_echo_n "(cached) " >&6
2357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2370 if ac_fn_c_try_compile
"$LINENO"; then :
2373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2380 if (sizeof ac_aggr.$3)
2386 if ac_fn_c_try_compile
"$LINENO"; then :
2391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397 $as_echo "$ac_res" >&6; }
2398 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2400 } # ac_fn_c_check_member
2401 cat >config.log
<<_ACEOF
2402 This file contains any messages produced by compilers while
2403 running configure, to aid debugging if configure makes a mistake.
2405 It was created by $as_me, which was
2406 generated by GNU Autoconf 2.64. Invocation command line was
2418 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2419 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2420 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2421 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2422 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2424 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2425 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2427 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2428 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2429 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2430 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2431 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2432 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2433 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir
=.
2442 $as_echo "PATH: $as_dir"
2458 # Keep a trace of the command line.
2459 # Strip out --no-create and --no-recursion so they do not pile up.
2460 # Strip out --silent because we don't want to record it for future runs.
2461 # Also quote any args containing shell meta-characters.
2462 # Make two passes to allow for proper duplicate-argument suppression.
2466 ac_must_keep_next
=false
2472 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2473 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2474 |
-silent |
--silent |
--silen |
--sile |
--sil)
2477 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2480 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2482 as_fn_append ac_configure_args1
" '$ac_arg'"
2483 if test $ac_must_keep_next = true
; then
2484 ac_must_keep_next
=false
# Got value, back to normal.
2487 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2488 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2489 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2490 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2491 case "$ac_configure_args0 " in
2492 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2495 -* ) ac_must_keep_next
=true
;;
2498 as_fn_append ac_configure_args
" '$ac_arg'"
2503 { ac_configure_args0
=; unset ac_configure_args0
;}
2504 { ac_configure_args1
=; unset ac_configure_args1
;}
2506 # When interrupted or exit'd, cleanup temporary files, and complete
2507 # config.log. We remove comments because anyway the quotes in there
2508 # would cause problems or look ugly.
2509 # WARNING: Use '\'' to represent an apostrophe within the trap.
2510 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2511 trap 'exit_status=$?
2512 # Save into config.log some information that might help in debugging.
2517 ## ---------------- ##
2518 ## Cache variables. ##
2519 ## ---------------- ##
2522 # The following way of writing the cache mishandles newlines in values,
2524 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2525 eval ac_val=\$$ac_var
2529 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2530 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2533 _ | IFS | as_nl) ;; #(
2534 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2535 *) { eval $ac_var=; unset $ac_var;} ;;
2540 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2541 *${as_nl}ac_space=\ *)
2543 "s/'\''/'\''\\\\'\'''\''/g;
2544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2555 ## ----------------- ##
2556 ## Output variables. ##
2557 ## ----------------- ##
2560 for ac_var in $ac_subst_vars
2562 eval ac_val=\$$ac_var
2564 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2566 $as_echo "$ac_var='\''$ac_val'\''"
2570 if test -n "$ac_subst_files"; then
2572 ## ------------------- ##
2573 ## File substitutions. ##
2574 ## ------------------- ##
2577 for ac_var
in $ac_subst_files
2579 eval ac_val
=\$
$ac_var
2581 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2583 $as_echo "$ac_var='\''$ac_val'\''"
2588 if test -s confdefs.h; then
2598 test "$ac_signal" != 0 &&
2599 $as_echo "$as_me: caught signal $ac_signal"
2600 $as_echo "$as_me: exit $exit_status"
2602 rm -f core *.core core.conftest.* &&
2603 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2606 for ac_signal
in 1 2 13 15; do
2607 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2611 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2612 rm -f -r conftest
* confdefs.h
2614 $as_echo "/* confdefs.h */" > confdefs.h
2616 # Predefined preprocessor variables.
2618 cat >>confdefs.h
<<_ACEOF
2619 #define PACKAGE_NAME "$PACKAGE_NAME"
2622 cat >>confdefs.h
<<_ACEOF
2623 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2626 cat >>confdefs.h
<<_ACEOF
2627 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2630 cat >>confdefs.h
<<_ACEOF
2631 #define PACKAGE_STRING "$PACKAGE_STRING"
2634 cat >>confdefs.h
<<_ACEOF
2635 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2638 cat >>confdefs.h
<<_ACEOF
2639 #define PACKAGE_URL "$PACKAGE_URL"
2643 # Let the site file select an alternate cache file if it wants to.
2644 # Prefer an explicitly selected file to automatically selected ones.
2647 if test -n "$CONFIG_SITE"; then
2648 ac_site_file1
=$CONFIG_SITE
2649 elif test "x$prefix" != xNONE
; then
2650 ac_site_file1
=$prefix/share
/config.site
2651 ac_site_file2
=$prefix/etc
/config.site
2653 ac_site_file1
=$ac_default_prefix/share
/config.site
2654 ac_site_file2
=$ac_default_prefix/etc
/config.site
2656 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2658 test "x$ac_site_file" = xNONE
&& continue
2659 if test -r "$ac_site_file"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2661 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2662 sed 's/^/| /' "$ac_site_file" >&5
2667 if test -r "$cache_file"; then
2668 # Some versions of bash will fail to source /dev/null (special
2669 # files actually), so we avoid doing that.
2670 if test -f "$cache_file"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2672 $as_echo "$as_me: loading cache $cache_file" >&6;}
2674 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2675 *) .
"./$cache_file";;
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2680 $as_echo "$as_me: creating cache $cache_file" >&6;}
2684 # Check that the precious variables saved in the cache have kept the same
2686 ac_cache_corrupted
=false
2687 for ac_var
in $ac_precious_vars; do
2688 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2689 eval ac_new_set
=\
$ac_env_${ac_var}_set
2690 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2691 eval ac_new_val
=\
$ac_env_${ac_var}_value
2692 case $ac_old_set,$ac_new_set in
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2695 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2696 ac_cache_corrupted
=: ;;
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2699 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2700 ac_cache_corrupted
=: ;;
2703 if test "x$ac_old_val" != "x$ac_new_val"; then
2704 # differences in whitespace do not lead to failure.
2705 ac_old_val_w
=`echo x $ac_old_val`
2706 ac_new_val_w
=`echo x $ac_new_val`
2707 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2709 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2710 ac_cache_corrupted
=:
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2713 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2714 eval $ac_var=\
$ac_old_val
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2717 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2719 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2722 # Pass precious variables to config.status.
2723 if test "$ac_new_set" = set; then
2725 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2726 *) ac_arg
=$ac_var=$ac_new_val ;;
2728 case " $ac_configure_args " in
2729 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2730 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2734 if $ac_cache_corrupted; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2738 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2739 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2741 ## -------------------- ##
2742 ## Main body of script. ##
2743 ## -------------------- ##
2746 ac_cpp
='$CPP $CPPFLAGS'
2747 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2755 ac_config_headers
="$ac_config_headers config.h:config.in"
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2759 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2760 # Check whether --enable-maintainer-mode was given.
2761 if test "${enable_maintainer_mode+set}" = set; then :
2762 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2764 USE_MAINTAINER_MODE
=no
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2768 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2769 if test $USE_MAINTAINER_MODE = yes; then
2770 MAINTAINER_MODE_TRUE
=
2771 MAINTAINER_MODE_FALSE
='#'
2773 MAINTAINER_MODE_TRUE
='#'
2774 MAINTAINER_MODE_FALSE
=
2777 MAINT
=$MAINTAINER_MODE_TRUE
2781 # Set the 'development' global.
2782 .
$srcdir/..
/bfd
/development.sh
2785 ac_cpp
='$CPP $CPPFLAGS'
2786 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2789 if test -n "$ac_tool_prefix"; then
2790 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2791 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if test "${ac_cv_prog_CC+set}" = set; then :
2795 $as_echo_n "(cached) " >&6
2797 if test -n "$CC"; then
2798 ac_cv_prog_CC
="$CC" # Let the user override the test.
2800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2804 test -z "$as_dir" && as_dir
=.
2805 for ac_exec_ext
in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 if test -n "$CC"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2820 $as_echo "$CC" >&6; }
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2828 if test -z "$ac_cv_prog_CC"; then
2830 # Extract the first word of "gcc", so it can be a program name with args.
2831 set dummy gcc
; ac_word
=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2835 $as_echo_n "(cached) " >&6
2837 if test -n "$ac_ct_CC"; then
2838 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir
=.
2845 for ac_exec_ext
in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_ac_ct_CC
="gcc"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2858 if test -n "$ac_ct_CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2860 $as_echo "$ac_ct_CC" >&6; }
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2866 if test "x$ac_ct_CC" = x
; then
2869 case $cross_compiling:$ac_tool_warned in
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2873 ac_tool_warned
=yes ;;
2881 if test -z "$CC"; then
2882 if test -n "$ac_tool_prefix"; then
2883 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2884 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if test "${ac_cv_prog_CC+set}" = set; then :
2888 $as_echo_n "(cached) " >&6
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC
="$CC" # Let the user override the test.
2893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2897 test -z "$as_dir" && as_dir
=.
2898 for ac_exec_ext
in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 if test -n "$CC"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2913 $as_echo "$CC" >&6; }
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 $as_echo "no" >&6; }
2922 if test -z "$CC"; then
2923 # Extract the first word of "cc", so it can be a program name with args.
2924 set dummy cc
; ac_word
=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if test "${ac_cv_prog_CC+set}" = set; then :
2928 $as_echo_n "(cached) " >&6
2930 if test -n "$CC"; then
2931 ac_cv_prog_CC
="$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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2942 ac_prog_rejected
=yes
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 if test $ac_prog_rejected = yes; then
2954 # We found a bogon in the path, so make sure we never use it.
2955 set dummy
$ac_cv_prog_CC
2957 if test $# != 0; then
2958 # We chose a different compiler from the bogus one.
2959 # However, it has the same basename, so the bogon will be chosen
2960 # first if we set CC to just the basename; use the full file name.
2962 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2968 if test -n "$CC"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 $as_echo "$CC" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2978 if test -z "$CC"; then
2979 if test -n "$ac_tool_prefix"; then
2980 for ac_prog
in cl.exe
2982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2983 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if test "${ac_cv_prog_CC+set}" = set; then :
2987 $as_echo_n "(cached) " >&6
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC
="$CC" # Let the user override the test.
2992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir
=.
2997 for ac_exec_ext
in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 if test -n "$CC"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012 $as_echo "$CC" >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3019 test -n "$CC" && break
3022 if test -z "$CC"; then
3024 for ac_prog
in cl.exe
3026 # Extract the first word of "$ac_prog", so it can be a program name with args.
3027 set dummy
$ac_prog; ac_word
=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3031 $as_echo_n "(cached) " >&6
3033 if test -n "$ac_ct_CC"; then
3034 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3040 test -z "$as_dir" && as_dir
=.
3041 for ac_exec_ext
in '' $ac_executable_extensions; do
3042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043 ac_cv_prog_ac_ct_CC
="$ac_prog"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3054 if test -n "$ac_ct_CC"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3056 $as_echo "$ac_ct_CC" >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3063 test -n "$ac_ct_CC" && break
3066 if test "x$ac_ct_CC" = x
; then
3069 case $cross_compiling:$ac_tool_warned in
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073 ac_tool_warned
=yes ;;
3082 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084 as_fn_error
"no acceptable C compiler found in \$PATH
3085 See \`config.log' for more details." "$LINENO" 5; }
3087 # Provide some information about the compiler.
3088 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3091 for ac_option
in --version -v -V -qversion; do
3092 { { ac_try
="$ac_compiler $ac_option >&5"
3094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3098 $as_echo "$ac_try_echo"; } >&5
3099 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3101 if test -s conftest.err; then
3103 ... rest of stderr output deleted ...
3104 10q' conftest.err >conftest.er1
3105 cat conftest.er1 >&5
3106 rm -f conftest.er1 conftest.err
3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109 test $ac_status = 0; }
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3123 ac_clean_files_save=$ac_clean_files
3124 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3125 # Try to create an executable without -o first, disregard a.out.
3126 # It will help us diagnose broken compilers, and finding out an intuition
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3129 $as_echo_n "checking for C compiler default output file name... " >&6; }
3130 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3132 # The possible output files:
3133 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3136 for ac_file in $ac_files
3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3140 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3145 if { { ac_try="$ac_link_default"
3147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3148 *) ac_try_echo
=$ac_try;;
3150 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3151 $as_echo "$ac_try_echo"; } >&5
3152 (eval "$ac_link_default") 2>&5
3154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3155 test $ac_status = 0; }; then :
3156 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3157 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3158 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3159 # so that the user can short-circuit this test for compilers unknown to
3161 for ac_file
in $ac_files ''
3163 test -f "$ac_file" ||
continue
3165 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3168 # We found the default executable, but exeext='' is most
3172 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3174 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3176 # We set ac_cv_exeext here because the later test for it is not
3177 # safe: cross compilers may not add the suffix if given an `-o'
3178 # argument, so we may need to know it at that point already.
3179 # Even if this section looks crufty: it has the advantage of
3186 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3192 $as_echo "$ac_file" >&6; }
3193 if test -z "$ac_file"; then :
3194 $as_echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.
$ac_ext >&5
3197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199 { as_fn_set_status
77
3200 as_fn_error
"C compiler cannot create executables
3201 See \`config.log' for more details." "$LINENO" 5; }; }
3203 ac_exeext
=$ac_cv_exeext
3205 # Check that the compiler produces executables we can run. If not, either
3206 # the compiler is broken, or we cross compile.
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208 $as_echo_n "checking whether the C compiler works... " >&6; }
3209 # If not cross compiling, check that we can run a simple program.
3210 if test "$cross_compiling" != yes; then
3211 if { ac_try
='./$ac_file'
3212 { { case "(($ac_try" in
3213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218 (eval "$ac_try") 2>&5
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }; }; then
3224 if test "$cross_compiling" = maybe; then
3227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229 as_fn_error "cannot run C compiled programs.
3230 If you meant to cross compile
, use \
`--host'.
3231 See \`config.log
' for more details." "$LINENO" 5; }
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3236 $as_echo "yes" >&6; }
3238 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3239 ac_clean_files=$ac_clean_files_save
3240 # Check that the compiler produces executables we can run. If not, either
3241 # the compiler is broken, or we cross compile.
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3243 $as_echo_n "checking whether we are cross compiling... " >&6; }
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3245 $as_echo "$cross_compiling" >&6; }
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3248 $as_echo_n "checking for suffix of executables... " >&6; }
3249 if { { ac_try="$ac_link"
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255 $as_echo "$ac_try_echo"; } >&5
3256 (eval "$ac_link") 2>&5
3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }; then :
3260 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3261 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3262 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3264 for ac_file
in conftest.exe conftest conftest.
*; do
3265 test -f "$ac_file" ||
continue
3267 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3268 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3277 See \`config.log' for more details." "$LINENO" 5; }
3279 rm -f conftest
$ac_cv_exeext
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3281 $as_echo "$ac_cv_exeext" >&6; }
3283 rm -f conftest.
$ac_ext
3284 EXEEXT
=$ac_cv_exeext
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3287 $as_echo_n "checking for suffix of object files... " >&6; }
3288 if test "${ac_cv_objext+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
3291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3302 rm -f conftest.o conftest.obj
3303 if { { ac_try
="$ac_compile"
3305 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310 (eval "$ac_compile") 2>&5
3312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313 test $ac_status = 0; }; then :
3314 for ac_file in conftest.o conftest.obj conftest.*; do
3315 test -f "$ac_file" || continue;
3317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3323 $as_echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error "cannot compute suffix of object files
: cannot compile
3329 See \
`config.log' for more details." "$LINENO" 5; }
3331 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3334 $as_echo "$ac_cv_objext" >&6; }
3335 OBJEXT=$ac_cv_objext
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3338 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3339 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3356 if ac_fn_c_try_compile "$LINENO"; then :
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3366 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3367 if test $ac_compiler_gnu = yes; then
3372 ac_test_CFLAGS=${CFLAGS+set}
3373 ac_save_CFLAGS=$CFLAGS
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3375 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3376 if test "${ac_cv_prog_cc_g+set}" = set; then :
3377 $as_echo_n "(cached) " >&6
3379 ac_save_c_werror_flag=$ac_c_werror_flag
3380 ac_c_werror_flag=yes
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3394 if ac_fn_c_try_compile "$LINENO"; then :
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3409 if ac_fn_c_try_compile "$LINENO"; then :
3412 ac_c_werror_flag=$ac_save_c_werror_flag
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3425 if ac_fn_c_try_compile "$LINENO"; then :
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 ac_c_werror_flag=$ac_save_c_werror_flag
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3436 $as_echo "$ac_cv_prog_cc_g" >&6; }
3437 if test "$ac_test_CFLAGS" = set; then
3438 CFLAGS=$ac_save_CFLAGS
3439 elif test $ac_cv_prog_cc_g = yes; then
3440 if test "$GCC" = yes; then
3446 if test "$GCC" = yes; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3453 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3454 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3455 $as_echo_n "(cached) " >&6
3457 ac_cv_prog_cc_c89=no
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3463 #include <sys/types.h>
3464 #include <sys/stat.h>
3465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3466 struct buf { int x; };
3467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3468 static char *e (p, i)
3474 static char *f (char * (*g) (char **, int), char **p, ...)
3479 s = g (p, va_arg (v,int));
3484 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3485 function prototypes and stuff, but not '\xHH' hex character constants.
3486 These don't provoke an error unfortunately, instead are silently treated
3487 as 'x'. The following induces an error, until -std is added to get
3488 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3489 array size at least. It's necessary to write '\x00'==0 to get something
3490 that's true only with -std. */
3491 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3493 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3494 inside strings and character constants. */
3496 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3498 int test (int i, double x);
3499 struct s1 {int (*f) (int a);};
3500 struct s2 {int (*f) (double a);};
3501 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3507 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3512 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3513 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3515 CC="$ac_save_CC $ac_arg"
3516 if ac_fn_c_try_compile "$LINENO"; then :
3517 ac_cv_prog_cc_c89=$ac_arg
3519 rm -f core conftest.err conftest.$ac_objext
3520 test "x$ac_cv_prog_cc_c89" != "xno" && break
3522 rm -f conftest.$ac_ext
3527 case "x$ac_cv_prog_cc_c89" in
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3530 $as_echo "none needed" >&6; } ;;
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3533 $as_echo "unsupported" >&6; } ;;
3535 CC="$CC $ac_cv_prog_cc_c89"
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3537 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3539 if test "x$ac_cv_prog_cc_c89" != xno; then :
3544 ac_cpp='$CPP $CPPFLAGS'
3545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 ac_cpp='$CXXCPP $CPPFLAGS'
3551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3554 if test -z "$CXX"; then
3555 if test -n "$CCC"; then
3558 if test -n "$ac_tool_prefix"; then
3559 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if test "${ac_cv_prog_CXX+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
3568 if test -n "$CXX"; then
3569 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3578 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 if test -n "$CXX"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3591 $as_echo "$CXX" >&6; }
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3598 test -n "$CXX" && break
3601 if test -z "$CXX"; then
3603 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3605 # Extract the first word of "$ac_prog", so it can be a program name with args.
3606 set dummy $ac_prog; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3612 if test -n "$ac_ct_CXX"; then
3613 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622 ac_cv_prog_ac_ct_CXX="$ac_prog"
3623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3633 if test -n "$ac_ct_CXX"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3635 $as_echo "$ac_ct_CXX" >&6; }
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3642 test -n "$ac_ct_CXX" && break
3645 if test "x$ac_ct_CXX" = x; then
3648 case $cross_compiling:$ac_tool_warned in
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3652 ac_tool_warned=yes ;;
3660 # Provide some information about the compiler.
3661 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3664 for ac_option in --version -v -V -qversion; do
3665 { { ac_try="$ac_compiler $ac_option >&5"
3667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3668 *) ac_try_echo
=$ac_try;;
3670 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3674 if test -s conftest.err
; then
3676 ... rest of stderr output deleted ...
3677 10q' conftest.err
>conftest.er1
3678 cat conftest.er1
>&5
3679 rm -f conftest.er1 conftest.err
3681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682 test $ac_status = 0; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3686 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3687 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3688 $as_echo_n "(cached) " >&6
3690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3704 if ac_fn_cxx_try_compile
"$LINENO"; then :
3709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3710 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3714 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3715 if test $ac_compiler_gnu = yes; then
3720 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3721 ac_save_CXXFLAGS
=$CXXFLAGS
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3723 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3724 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3727 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3728 ac_cxx_werror_flag
=yes
3731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3742 if ac_fn_cxx_try_compile
"$LINENO"; then :
3743 ac_cv_prog_cxx_g
=yes
3746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3757 if ac_fn_cxx_try_compile
"$LINENO"; then :
3760 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3773 if ac_fn_cxx_try_compile
"$LINENO"; then :
3774 ac_cv_prog_cxx_g
=yes
3776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3781 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3784 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3785 if test "$ac_test_CXXFLAGS" = set; then
3786 CXXFLAGS
=$ac_save_CXXFLAGS
3787 elif test $ac_cv_prog_cxx_g = yes; then
3788 if test "$GXX" = yes; then
3794 if test "$GXX" = yes; then
3801 ac_cpp
='$CPP $CPPFLAGS'
3802 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3803 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3804 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3809 ac_cpp
='$CPP $CPPFLAGS'
3810 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3814 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3815 # On Suns, sometimes $CPP names a directory.
3816 if test -n "$CPP" && test -d "$CPP"; then
3819 if test -z "$CPP"; then
3820 if test "${ac_cv_prog_CPP+set}" = set; then :
3821 $as_echo_n "(cached) " >&6
3823 # Double quotes because CPP needs to be expanded
3824 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3827 for ac_c_preproc_warn_flag
in '' yes
3829 # Use a header file that comes with gcc, so configuring glibc
3830 # with a fresh cross-compiler works.
3831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3832 # <limits.h> exists even on freestanding compilers.
3833 # On the NeXT, cc -E runs the code through the compiler's parser,
3834 # not just through cpp. "Syntax error" is here to catch this case.
3835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3838 # include <limits.h>
3840 # include <assert.h>
3844 if ac_fn_c_try_cpp
"$LINENO"; then :
3847 # Broken: fails on valid input.
3850 rm -f conftest.err conftest.
$ac_ext
3852 # OK, works on sane cases. Now check whether nonexistent headers
3853 # can be detected and how.
3854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #include <ac_nonexistent.h>
3858 if ac_fn_c_try_cpp
"$LINENO"; then :
3859 # Broken: success on invalid input.
3862 # Passes both tests.
3866 rm -f conftest.err conftest.
$ac_ext
3869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3870 rm -f conftest.err conftest.
$ac_ext
3871 if $ac_preproc_ok; then :
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3884 $as_echo "$CPP" >&6; }
3886 for ac_c_preproc_warn_flag
in '' yes
3888 # Use a header file that comes with gcc, so configuring glibc
3889 # with a fresh cross-compiler works.
3890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3891 # <limits.h> exists even on freestanding compilers.
3892 # On the NeXT, cc -E runs the code through the compiler's parser,
3893 # not just through cpp. "Syntax error" is here to catch this case.
3894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3897 # include <limits.h>
3899 # include <assert.h>
3903 if ac_fn_c_try_cpp
"$LINENO"; then :
3906 # Broken: fails on valid input.
3909 rm -f conftest.err conftest.
$ac_ext
3911 # OK, works on sane cases. Now check whether nonexistent headers
3912 # can be detected and how.
3913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915 #include <ac_nonexistent.h>
3917 if ac_fn_c_try_cpp
"$LINENO"; then :
3918 # Broken: success on invalid input.
3921 # Passes both tests.
3925 rm -f conftest.err conftest.
$ac_ext
3928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3929 rm -f conftest.err conftest.
$ac_ext
3930 if $ac_preproc_ok; then :
3933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3935 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3936 See \`config.log' for more details." "$LINENO" 5; }
3940 ac_cpp
='$CPP $CPPFLAGS'
3941 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3947 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3948 if test "${ac_cv_path_GREP+set}" = set; then :
3949 $as_echo_n "(cached) " >&6
3951 if test -z "$GREP"; then
3952 ac_path_GREP_found
=false
3953 # Loop through the user's path and test for each of PROGNAME-LIST
3954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3955 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3958 test -z "$as_dir" && as_dir
=.
3959 for ac_prog
in grep ggrep
; do
3960 for ac_exec_ext
in '' $ac_executable_extensions; do
3961 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3962 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3963 # Check for GNU ac_path_GREP and select it if it is found.
3964 # Check for GNU $ac_path_GREP
3965 case `"$ac_path_GREP" --version 2>&1` in
3967 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3970 $as_echo_n 0123456789 >"conftest.in"
3973 cat "conftest.in" "conftest.in" >"conftest.tmp"
3974 mv "conftest.tmp" "conftest.in"
3975 cp "conftest.in" "conftest.nl"
3976 $as_echo 'GREP' >> "conftest.nl"
3977 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3978 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3979 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3980 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3981 # Best one so far, save it but keep looking for a better one
3982 ac_cv_path_GREP
="$ac_path_GREP"
3983 ac_path_GREP_max
=$ac_count
3985 # 10*(2^10) chars as input seems more than enough
3986 test $ac_count -gt 10 && break
3988 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3991 $ac_path_GREP_found && break 3
3996 if test -z "$ac_cv_path_GREP"; then
3997 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4000 ac_cv_path_GREP
=$GREP
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4005 $as_echo "$ac_cv_path_GREP" >&6; }
4006 GREP
="$ac_cv_path_GREP"
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4010 $as_echo_n "checking for egrep... " >&6; }
4011 if test "${ac_cv_path_EGREP+set}" = set; then :
4012 $as_echo_n "(cached) " >&6
4014 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4015 then ac_cv_path_EGREP
="$GREP -E"
4017 if test -z "$EGREP"; then
4018 ac_path_EGREP_found
=false
4019 # Loop through the user's path and test for each of PROGNAME-LIST
4020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4021 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4024 test -z "$as_dir" && as_dir
=.
4025 for ac_prog
in egrep; do
4026 for ac_exec_ext
in '' $ac_executable_extensions; do
4027 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4028 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4029 # Check for GNU ac_path_EGREP and select it if it is found.
4030 # Check for GNU $ac_path_EGREP
4031 case `"$ac_path_EGREP" --version 2>&1` in
4033 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4036 $as_echo_n 0123456789 >"conftest.in"
4039 cat "conftest.in" "conftest.in" >"conftest.tmp"
4040 mv "conftest.tmp" "conftest.in"
4041 cp "conftest.in" "conftest.nl"
4042 $as_echo 'EGREP' >> "conftest.nl"
4043 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4044 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4045 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4046 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4047 # Best one so far, save it but keep looking for a better one
4048 ac_cv_path_EGREP
="$ac_path_EGREP"
4049 ac_path_EGREP_max
=$ac_count
4051 # 10*(2^10) chars as input seems more than enough
4052 test $ac_count -gt 10 && break
4054 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4057 $ac_path_EGREP_found && break 3
4062 if test -z "$ac_cv_path_EGREP"; then
4063 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4066 ac_cv_path_EGREP
=$EGREP
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4072 $as_echo "$ac_cv_path_EGREP" >&6; }
4073 EGREP
="$ac_cv_path_EGREP"
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4077 $as_echo_n "checking for ANSI C header files... " >&6; }
4078 if test "${ac_cv_header_stdc+set}" = set; then :
4079 $as_echo_n "(cached) " >&6
4081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4096 if ac_fn_c_try_compile
"$LINENO"; then :
4097 ac_cv_header_stdc
=yes
4099 ac_cv_header_stdc
=no
4101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4103 if test $ac_cv_header_stdc = yes; then
4104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4111 $EGREP "memchr" >/dev
/null
2>&1; then :
4114 ac_cv_header_stdc
=no
4120 if test $ac_cv_header_stdc = yes; then
4121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4128 $EGREP "free" >/dev
/null
2>&1; then :
4131 ac_cv_header_stdc
=no
4137 if test $ac_cv_header_stdc = yes; then
4138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4139 if test "$cross_compiling" = yes; then :
4142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4146 #if ((' ' & 0x0FF) == 0x020)
4147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4150 # define ISLOWER(c) \
4151 (('a' <= (c) && (c) <= 'i') \
4152 || ('j' <= (c) && (c) <= 'r') \
4153 || ('s' <= (c) && (c) <= 'z'))
4154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4162 for (i = 0; i < 256; i++)
4163 if (XOR (islower (i), ISLOWER (i))
4164 || toupper (i) != TOUPPER (i))
4169 if ac_fn_c_try_run
"$LINENO"; then :
4172 ac_cv_header_stdc
=no
4174 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4175 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4181 $as_echo "$ac_cv_header_stdc" >&6; }
4182 if test $ac_cv_header_stdc = yes; then
4184 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4188 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4189 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4190 inttypes.h stdint.h unistd.h
4192 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4193 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4195 eval as_val
=\$
$as_ac_Header
4196 if test "x$as_val" = x
""yes; then :
4197 cat >>confdefs.h
<<_ACEOF
4198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4207 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4208 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4215 if test "$MINIX" = yes; then
4217 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4220 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4223 $as_echo "#define _MINIX 1" >>confdefs.h
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4229 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4230 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4231 $as_echo_n "(cached) " >&6
4233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4236 # define __EXTENSIONS__ 1
4237 $ac_includes_default
4246 if ac_fn_c_try_compile
"$LINENO"; then :
4247 ac_cv_safe_to_define___extensions__
=yes
4249 ac_cv_safe_to_define___extensions__
=no
4251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4254 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4255 test $ac_cv_safe_to_define___extensions__ = yes &&
4256 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4258 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4260 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4262 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4264 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4268 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4269 for ac_t
in install-sh
install.sh shtool
; do
4270 if test -f "$ac_dir/$ac_t"; then
4272 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4277 if test -z "$ac_aux_dir"; then
4278 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4281 # These three variables are undocumented and unsupported,
4282 # and are intended to be withdrawn in a future Autoconf release.
4283 # They can cause serious problems if a builder's source tree is in a directory
4284 # whose full name contains unusual characters.
4285 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4286 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4287 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4290 # Make sure we can run config.sub.
4291 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4292 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4295 $as_echo_n "checking build system type... " >&6; }
4296 if test "${ac_cv_build+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4299 ac_build_alias
=$build_alias
4300 test "x$ac_build_alias" = x
&&
4301 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4302 test "x$ac_build_alias" = x
&&
4303 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4304 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4305 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4309 $as_echo "$ac_cv_build" >&6; }
4310 case $ac_cv_build in
4312 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4315 ac_save_IFS
=$IFS; IFS
='-'
4321 # Remember, the first character of IFS is used to create $*,
4322 # except with old shells:
4325 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4329 $as_echo_n "checking host system type... " >&6; }
4330 if test "${ac_cv_host+set}" = set; then :
4331 $as_echo_n "(cached) " >&6
4333 if test "x$host_alias" = x
; then
4334 ac_cv_host
=$ac_cv_build
4336 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4337 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4342 $as_echo "$ac_cv_host" >&6; }
4345 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4348 ac_save_IFS
=$IFS; IFS
='-'
4354 # Remember, the first character of IFS is used to create $*,
4355 # except with old shells:
4358 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4362 $as_echo_n "checking target system type... " >&6; }
4363 if test "${ac_cv_target+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4366 if test "x$target_alias" = x
; then
4367 ac_cv_target
=$ac_cv_host
4369 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4370 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4375 $as_echo "$ac_cv_target" >&6; }
4376 case $ac_cv_target in
4378 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4380 target
=$ac_cv_target
4381 ac_save_IFS
=$IFS; IFS
='-'
4387 # Remember, the first character of IFS is used to create $*,
4388 # except with old shells:
4391 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4394 # The aliases save the names the user supplied, while $host etc.
4395 # will get canonicalized.
4396 test -n "$target_alias" &&
4397 test "$program_prefix$program_suffix$program_transform_name" = \
4399 program_prefix
=${target_alias}-
4401 # The tests for host and target for $enable_largefile require
4406 # As the $enable_largefile decision depends on --enable-plugins we must set it
4407 # even in directories otherwise not depending on the $plugins option.
4411 for ac_header
in dlfcn.h
4413 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4415 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
4416 cat >>confdefs.h
<<_ACEOF
4417 #define HAVE_DLFCN_H 1
4424 for ac_header
in windows.h
4426 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4428 if test "x$ac_cv_header_windows_h" = x
""yes; then :
4429 cat >>confdefs.h
<<_ACEOF
4430 #define HAVE_WINDOWS_H 1
4438 # Check whether --enable-plugins was given.
4439 if test "${enable_plugins+set}" = set; then :
4440 enableval
=$enable_plugins; case "${enableval}" in
4443 if test "$maybe_plugins" != "yes" ; then
4444 as_fn_error
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4448 plugins
=$maybe_plugins
4452 if test "$plugins" = "yes"; then
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4454 $as_echo_n "checking for library containing dlopen... " >&6; }
4455 if test "${ac_cv_search_dlopen+set}" = set; then :
4456 $as_echo_n "(cached) " >&6
4458 ac_func_search_save_LIBS
=$LIBS
4459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4462 /* Override any GCC internal prototype to avoid an error.
4463 Use char because int might match the return type of a GCC
4464 builtin and then its argument prototype would still apply. */
4477 for ac_lib
in '' dl
; do
4478 if test -z "$ac_lib"; then
4479 ac_res
="none required"
4482 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4484 if ac_fn_c_try_link
"$LINENO"; then :
4485 ac_cv_search_dlopen
=$ac_res
4487 rm -f core conftest.err conftest.
$ac_objext \
4489 if test "${ac_cv_search_dlopen+set}" = set; then :
4493 if test "${ac_cv_search_dlopen+set}" = set; then :
4496 ac_cv_search_dlopen
=no
4499 LIBS
=$ac_func_search_save_LIBS
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4502 $as_echo "$ac_cv_search_dlopen" >&6; }
4503 ac_res
=$ac_cv_search_dlopen
4504 if test "$ac_res" != no
; then :
4505 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4513 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4514 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4515 # are mutually exclusive; and without procfs support, the bfd/ elf module
4516 # cannot provide certain routines such as elfcore_write_prpsinfo
4517 # or elfcore_write_prstatus. So unless the user explicitly requested
4518 # large-file support through the --enable-largefile switch, disable
4519 # large-file support in favor of procfs support.
4520 test "${target}" = "${host}" -a "x$plugins" = xno \
4521 && : ${enable_largefile="no"}
4525 # Check whether --enable-largefile was given.
4526 if test "${enable_largefile+set}" = set; then :
4527 enableval
=$enable_largefile;
4530 if test "$enable_largefile" != no
; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4533 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4534 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4537 ac_cv_sys_largefile_CC
=no
4538 if test "$GCC" != yes; then
4541 # IRIX 6.2 and later do not support large files by default,
4542 # so use the C compiler's -n32 option if that helps.
4543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545 #include <sys/types.h>
4546 /* Check that off_t can represent 2**63 - 1 correctly.
4547 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4548 since some C++ compilers masquerading as C compilers
4549 incorrectly reject 9223372036854775807. */
4550 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4551 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4552 && LARGE_OFF_T % 2147483647 == 1)
4562 if ac_fn_c_try_compile
"$LINENO"; then :
4565 rm -f core conftest.err conftest.
$ac_objext
4567 if ac_fn_c_try_compile
"$LINENO"; then :
4568 ac_cv_sys_largefile_CC
=' -n32'; break
4570 rm -f core conftest.err conftest.
$ac_objext
4574 rm -f conftest.
$ac_ext
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4578 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4579 if test "$ac_cv_sys_largefile_CC" != no
; then
4580 CC
=$CC$ac_cv_sys_largefile_CC
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4584 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4585 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
4589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591 #include <sys/types.h>
4592 /* Check that off_t can represent 2**63 - 1 correctly.
4593 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4594 since some C++ compilers masquerading as C compilers
4595 incorrectly reject 9223372036854775807. */
4596 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4597 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4598 && LARGE_OFF_T % 2147483647 == 1)
4608 if ac_fn_c_try_compile
"$LINENO"; then :
4609 ac_cv_sys_file_offset_bits
=no
; break
4611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614 #define _FILE_OFFSET_BITS 64
4615 #include <sys/types.h>
4616 /* Check that off_t can represent 2**63 - 1 correctly.
4617 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4618 since some C++ compilers masquerading as C compilers
4619 incorrectly reject 9223372036854775807. */
4620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4621 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4622 && LARGE_OFF_T % 2147483647 == 1)
4632 if ac_fn_c_try_compile
"$LINENO"; then :
4633 ac_cv_sys_file_offset_bits
=64; break
4635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4636 ac_cv_sys_file_offset_bits
=unknown
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4641 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4642 case $ac_cv_sys_file_offset_bits in #(
4645 cat >>confdefs.h
<<_ACEOF
4646 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4651 if test $ac_cv_sys_file_offset_bits = unknown
; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4653 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4654 if test "${ac_cv_sys_large_files+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660 #include <sys/types.h>
4661 /* Check that off_t can represent 2**63 - 1 correctly.
4662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4663 since some C++ compilers masquerading as C compilers
4664 incorrectly reject 9223372036854775807. */
4665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4667 && LARGE_OFF_T % 2147483647 == 1)
4677 if ac_fn_c_try_compile
"$LINENO"; then :
4678 ac_cv_sys_large_files
=no
; break
4680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683 #define _LARGE_FILES 1
4684 #include <sys/types.h>
4685 /* Check that off_t can represent 2**63 - 1 correctly.
4686 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4687 since some C++ compilers masquerading as C compilers
4688 incorrectly reject 9223372036854775807. */
4689 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4690 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4691 && LARGE_OFF_T % 2147483647 == 1)
4701 if ac_fn_c_try_compile
"$LINENO"; then :
4702 ac_cv_sys_large_files
=1; break
4704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4705 ac_cv_sys_large_files
=unknown
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4710 $as_echo "$ac_cv_sys_large_files" >&6; }
4711 case $ac_cv_sys_large_files in #(
4714 cat >>confdefs.h
<<_ACEOF
4715 #define _LARGE_FILES $ac_cv_sys_large_files
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4728 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4729 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4732 am_cv_prog_cc_stdc
=no
4734 # Don't try gcc -ansi; that turns off useful extensions and
4735 # breaks some systems' header files.
4736 # AIX -qlanglvl=ansi
4737 # Ultrix and OSF/1 -std1
4738 # HP-UX 10.20 and later -Ae
4739 # HP-UX older versions -Aa -D_HPUX_SOURCE
4740 # SVR4 -Xc -D__EXTENSIONS__
4741 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4743 CC
="$ac_save_CC $ac_arg"
4744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4748 #include <sys/types.h>
4749 #include <sys/stat.h>
4750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4751 struct buf { int x; };
4752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4753 static char *e (p, i)
4759 static char *f (char * (*g) (char **, int), char **p, ...)
4764 s = g (p, va_arg (v,int));
4768 int test (int i, double x);
4769 struct s1 {int (*f) (int a);};
4770 struct s2 {int (*f) (double a);};
4771 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4779 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4785 if ac_fn_c_try_compile
"$LINENO"; then :
4786 am_cv_prog_cc_stdc
="$ac_arg"; break
4788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4794 if test -z "$am_cv_prog_cc_stdc"; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4796 $as_echo "none needed" >&6; }
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4799 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4801 case "x$am_cv_prog_cc_stdc" in
4803 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4806 # expand $ac_aux_dir to an absolute path
4807 am_aux_dir
=`cd $ac_aux_dir && pwd`
4809 if test x
"${install_sh}" != xset
; then
4812 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4814 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4818 # Installed binaries are usually stripped using `strip' when the user
4819 # run `make install-strip'. However `strip' might not be the right
4820 # tool to use in cross-compilation environments, therefore Automake
4821 # will honor the `STRIP' environment variable to overrule this program.
4822 if test "$cross_compiling" != no
; then
4823 if test -n "$ac_tool_prefix"; then
4824 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4825 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if test "${ac_cv_prog_STRIP+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4831 if test -n "$STRIP"; then
4832 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4838 test -z "$as_dir" && as_dir
=.
4839 for ac_exec_ext
in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 STRIP
=$ac_cv_prog_STRIP
4852 if test -n "$STRIP"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4854 $as_echo "$STRIP" >&6; }
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4862 if test -z "$ac_cv_prog_STRIP"; then
4864 # Extract the first word of "strip", so it can be a program name with args.
4865 set dummy strip
; ac_word
=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
4871 if test -n "$ac_ct_STRIP"; then
4872 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4878 test -z "$as_dir" && as_dir
=.
4879 for ac_exec_ext
in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_ac_ct_STRIP
="strip"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4892 if test -n "$ac_ct_STRIP"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4894 $as_echo "$ac_ct_STRIP" >&6; }
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4900 if test "x$ac_ct_STRIP" = x
; then
4903 case $cross_compiling:$ac_tool_warned in
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907 ac_tool_warned
=yes ;;
4912 STRIP
="$ac_cv_prog_STRIP"
4916 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4920 for ac_dir
in ..
"$srcdir"/..
; do
4921 for ac_t
in install-sh
install.sh shtool
; do
4922 if test -f "$ac_dir/$ac_t"; then
4924 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4929 if test -z "$ac_aux_dir"; then
4930 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4933 # These three variables are undocumented and unsupported,
4934 # and are intended to be withdrawn in a future Autoconf release.
4935 # They can cause serious problems if a builder's source tree is in a directory
4936 # whose full name contains unusual characters.
4937 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4938 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4939 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4943 test "$program_prefix" != NONE
&&
4944 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4945 # Use a double $ so make ignores it.
4946 test "$program_suffix" != NONE
&&
4947 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4948 # Double any \ or $.
4949 # By default was `s,x,x', remove it if useless.
4950 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4951 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4954 # See if we are building with C++, and substitute COMPILER.
4956 # Check whether --enable-build-with-cxx was given.
4957 if test "${enable_build_with_cxx+set}" = set; then :
4958 enableval
=$enable_build_with_cxx; case $enableval in
4962 as_fn_error
"bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4965 enable_build_with_cxx
=no
4969 if test "$enable_build_with_cxx" = "yes"; then
4970 # We're using -fpermissive as shortcut for now.
4971 COMPILER
='$(CXX) -fpermissive'
4978 # Dependency checking.
4979 rm -rf .tst
2>/dev
/null
4980 mkdir .tst
2>/dev
/null
4981 if test -d .tst
; then
4986 rmdir .tst
2>/dev
/null
4988 DEPDIR
="${am__leading_dot}deps"
4990 ac_config_commands
="$ac_config_commands depdir"
4993 depcc
="$CC" am_compiler_list
=
4995 am_depcomp
=$ac_aux_dir/depcomp
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4997 $as_echo_n "checking dependency style of $depcc... " >&6; }
4998 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4999 $as_echo_n "(cached) " >&6
5001 if test -f "$am_depcomp"; then
5002 # We make a subdir and do the tests there. Otherwise we can end up
5003 # making bogus files that we don't know about and never remove. For
5004 # instance it was reported that on HP-UX the gcc test will end up
5005 # making a dummy file named `D' -- because `-MD' means `put the output
5008 # Copy depcomp to subdir because otherwise we won't find it if we're
5009 # using a relative directory.
5010 cp "$am_depcomp" conftest.dir
5012 # We will build objects and dependencies in a subdirectory because
5013 # it helps to detect inapplicable dependency modes. For instance
5014 # both Tru64's cc and ICC support -MD to output dependencies as a
5015 # side effect of compilation, but ICC will put the dependencies in
5016 # the current directory while Tru64 will put them in the object
5020 am_cv_CC_dependencies_compiler_type
=none
5021 if test "$am_compiler_list" = ""; then
5022 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5024 for depmode
in $am_compiler_list; do
5025 if test $depmode = none
; then break; fi
5027 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5028 # Setup a source with many dependencies, because some compilers
5029 # like to wrap large dependency lists on column 80 (with \), and
5030 # we should not choose a depcomp mode which is confused by this.
5032 # We need to recreate these files for each test, as the compiler may
5033 # overwrite some of them when testing with obscure command lines.
5034 # This happens at least with the AIX C compiler.
5036 for i
in 1 2 3 4 5 6; do
5037 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5038 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5039 # Solaris 8's {/usr,}/bin/sh.
5040 touch sub
/conftst
$i.h
5042 echo "include sub/conftest.Po" > confmf
5044 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5045 # mode. It turns out that the SunPro C++ compiler does not properly
5046 # handle `-M -o', and we need to detect this.
5047 depcmd
="depmode=$depmode \
5048 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5049 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5050 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5051 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5052 if env
$depcmd > conftest.err
2>&1 &&
5053 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5054 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5055 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5056 # icc doesn't choke on unknown options, it will just issue warnings
5057 # or remarks (even with -Werror). So we grep stderr for any message
5058 # that says an option was ignored or not supported.
5059 # When given -MP, icc 7.0 and 7.1 complain thusly:
5060 # icc: Command line warning: ignoring option '-M'; no argument required
5061 # The diagnosis changed in icc 8.0:
5062 # icc: Command line remark: option '-MP' not supported
5063 if (grep 'ignoring option' conftest.err ||
5064 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5065 am_cv_CC_dependencies_compiler_type
=$depmode
5066 $as_echo "$as_me:$LINENO: success" >&5
5070 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5071 sed -e 's/^/| /' < conftest.err
>&5
5077 am_cv_CC_dependencies_compiler_type
=none
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5082 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5083 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
5084 then as_fn_error
"no usable dependency style found" "$LINENO" 5
5085 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5090 # Check for the 'make' the user wants to use.
5093 # Extract the first word of "$ac_prog", so it can be a program name with args.
5094 set dummy
$ac_prog; ac_word
=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if test "${ac_cv_prog_MAKE+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5100 if test -n "$MAKE"; then
5101 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
5103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir
=.
5108 for ac_exec_ext
in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_MAKE
="$ac_prog"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 MAKE
=$ac_cv_prog_MAKE
5121 if test -n "$MAKE"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5123 $as_echo "$MAKE" >&6; }
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5130 test -n "$MAKE" && break
5134 case "`$MAKE --version 2>&1 | sed 1q`" in
5139 if test "$MAKE_IS_GNU" = yes; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5148 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5150 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5151 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5152 $as_echo_n "(cached) " >&6
5154 cat >conftest.
make <<\_ACEOF
5157 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5159 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5160 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5162 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5164 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5168 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5170 $as_echo "yes" >&6; }
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5175 SET_MAKE
="MAKE=${MAKE-make}"
5179 gnulib_extra_configure_args
=
5180 # If large-file support is disabled, make sure gnulib does the same.
5181 if test "$enable_largefile" = no
; then
5182 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
5185 # Configure gnulib. We need to build gnulib under some other
5186 # directory not "gnulib", to avoid the problem of both GDB and
5187 # GDBserver wanting to build it in the same directory, when building
5188 # in the source dir.
5191 in_build
="build-gnulib"
5192 in_extra_args
="$gnulib_extra_configure_args"
5194 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5195 # so they do not pile up.
5196 ac_sub_configure_args
=
5198 eval "set x $ac_configure_args"
5202 if test -n "$ac_prev"; then
5207 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5208 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5209 ac_prev
=cache_file
;;
5210 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5211 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5214 --config-cache |
-C)
5216 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5218 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5220 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5222 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5224 --disable-option-checking)
5228 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5230 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5234 # Always prepend --prefix to ensure using the same prefix
5235 # in subdir configurations.
5236 ac_arg
="--prefix=$prefix"
5238 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5240 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5243 if test "$silent" = yes; then
5244 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5247 # Always prepend --disable-option-checking to silence warnings, since
5248 # different subdirs can have different --enable and --with options.
5249 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5254 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5255 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5256 $as_echo "$ac_msg" >&6
5257 as_dir
="$ac_dir"; as_fn_mkdir_p
5261 ac_srcdir
=$srcdir/$in_src ;;
5263 ac_srcdir
=..
/$srcdir/$in_src ;;
5268 ac_sub_configure
=$ac_srcdir/configure
5270 # Make the cache file name correct relative to the subdirectory.
5272 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5274 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5277 if test -n "$in_extra_args"; then
5278 # Add the extra args at the end.
5279 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5282 { $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
5283 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5284 # The eval makes quoting arguments work.
5285 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5286 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5287 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5303 # If we haven't got the data from the intl directory,
5304 # assume NLS is disabled.
5313 if test -f ..
/intl
/config.intl
; then
5314 . ..
/intl
/config.intl
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5317 $as_echo_n "checking whether NLS is requested... " >&6; }
5318 if test x
"$USE_NLS" != xyes
; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5323 $as_echo "yes" >&6; }
5325 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5329 $as_echo_n "checking for catalogs to be installed... " >&6; }
5330 # Look for .po and .gmo files in the source directory.
5333 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
5334 # If there aren't any .gmo files the shell will give us the
5335 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5337 case "$cat" in *\
**)
5340 # The quadruple backslash is collapsed to a double backslash
5341 # by the backticks, then collapsed again by the double quotes,
5342 # leaving us with one backslash in the sed expression (right
5343 # before the dot that mustn't act as a wildcard).
5344 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5345 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
5346 # The user is allowed to set LINGUAS to a list of languages to
5347 # install catalogs for. If it's empty that means "all of them."
5348 if test "x$LINGUAS" = x
; then
5349 CATALOGS
="$CATALOGS $cat"
5350 XLINGUAS
="$XLINGUAS $lang"
5352 case "$LINGUAS" in *$lang*)
5353 CATALOGS
="$CATALOGS $cat"
5354 XLINGUAS
="$XLINGUAS $lang"
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5361 $as_echo "$LINGUAS" >&6; }
5374 localedir
='${datadir}/locale'
5377 if test x
"$USE_NLS" = xyes
; then
5378 CONFIG_ALL
="$CONFIG_ALL all-po"
5379 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
5380 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
5381 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
5384 GNULIB
=build-gnulib
/import
5386 # For Makefile dependencies.
5388 if test x
"$STDINT_H" != x
; then
5389 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
5395 cat >>confdefs.h
<<_ACEOF
5396 #define PACKAGE "$PACKAGE"
5401 # We never need to detect it in this sub-configure.
5402 # But preserve it for config.status --recheck.
5406 MAKEINFO_EXTRA_FLAGS
=""
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
5408 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
5409 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
5410 $as_echo_n "(cached) " >&6
5412 echo '@clicksequence{a @click{} b}' >conftest.texinfo
5413 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
5414 gdb_cv_have_makeinfo_click
=yes
5416 gdb_cv_have_makeinfo_click
=no
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
5420 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
5421 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
5422 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
5428 # Check whether --with-separate-debug-dir was given.
5429 if test "${with_separate_debug_dir+set}" = set; then :
5430 withval
=$with_separate_debug_dir;
5433 DEBUGDIR
=${libdir}/debug
5437 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5438 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5439 ac_define_dir
=`eval echo $DEBUGDIR`
5440 ac_define_dir
=`eval echo $ac_define_dir`
5442 cat >>confdefs.h
<<_ACEOF
5443 #define DEBUGDIR "$ac_define_dir"
5449 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5450 if test "x$prefix" = xNONE
; then
5451 test_prefix
=/usr
/local
5456 test_prefix
=$exec_prefix
5459 case ${ac_define_dir} in
5460 "${test_prefix}"|
"${test_prefix}/"*|\
5461 '${exec_prefix}'|
'${exec_prefix}/'*)
5466 cat >>confdefs.h
<<_ACEOF
5467 #define DEBUGDIR_RELOCATABLE $value
5473 # We can't pass paths as command line arguments.
5474 # Mingw32 tries to be clever and will convert the paths for us.
5475 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5476 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5477 # This breaks GDB's relocatable path conversions since paths passed in
5478 # config.h would not get so translated, the path prefixes no longer match.
5480 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5481 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5482 ac_define_dir
=`eval echo $bindir`
5483 ac_define_dir
=`eval echo $ac_define_dir`
5485 cat >>confdefs.h
<<_ACEOF
5486 #define BINDIR "$ac_define_dir"
5491 # GDB's datadir relocation
5495 # Check whether --with-gdb-datadir was given.
5496 if test "${with_gdb_datadir+set}" = set; then :
5497 withval
=$with_gdb_datadir;
5498 GDB_DATADIR
=$withval
5500 GDB_DATADIR
=${datadir}/gdb
5504 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5505 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5506 ac_define_dir
=`eval echo $GDB_DATADIR`
5507 ac_define_dir
=`eval echo $ac_define_dir`
5509 cat >>confdefs.h
<<_ACEOF
5510 #define GDB_DATADIR "$ac_define_dir"
5516 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5517 if test "x$prefix" = xNONE
; then
5518 test_prefix
=/usr
/local
5523 test_prefix
=$exec_prefix
5526 case ${ac_define_dir} in
5527 "${test_prefix}"|
"${test_prefix}/"*|\
5528 '${exec_prefix}'|
'${exec_prefix}/'*)
5533 cat >>confdefs.h
<<_ACEOF
5534 #define GDB_DATADIR_RELOCATABLE $value
5541 # Check whether --with-relocated-sources was given.
5542 if test "${with_relocated_sources+set}" = set; then :
5543 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
5545 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5546 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5547 ac_define_dir
=`eval echo $reloc_srcdir`
5548 ac_define_dir
=`eval echo $ac_define_dir`
5550 cat >>confdefs.h
<<_ACEOF
5551 #define RELOC_SRCDIR "$ac_define_dir"
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5560 $as_echo_n "checking for default auto-load directory... " >&6; }
5562 # Check whether --with-auto-load-dir was given.
5563 if test "${with_auto_load_dir+set}" = set; then :
5564 withval
=$with_auto_load_dir;
5566 with_auto_load_dir
='$debugdir:$datadir/auto-load'
5569 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5571 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5572 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5573 ac_define_dir
=`eval echo $escape_dir`
5574 ac_define_dir
=`eval echo $ac_define_dir`
5576 cat >>confdefs.h
<<_ACEOF
5577 #define AUTO_LOAD_DIR "$ac_define_dir"
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5582 $as_echo "$with_auto_load_dir" >&6; }
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5585 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5587 # Check whether --with-auto-load-safe-path was given.
5588 if test "${with_auto_load_safe_path+set}" = set; then :
5589 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5590 with_auto_load_safe_path
="/"
5593 with_auto_load_safe_path
="$with_auto_load_dir"
5596 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5598 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5599 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5600 ac_define_dir
=`eval echo $escape_dir`
5601 ac_define_dir
=`eval echo $ac_define_dir`
5603 cat >>confdefs.h
<<_ACEOF
5604 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5609 $as_echo "$with_auto_load_safe_path" >&6; }
5613 subdirs
="$subdirs testsuite"
5616 # Check whether to support alternative target configurations
5617 # Check whether --enable-targets was given.
5618 if test "${enable_targets+set}" = set; then :
5619 enableval
=$enable_targets; case "${enableval}" in
5620 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
5622 no
) enable_targets
= ;;
5623 *) enable_targets
=$enableval ;;
5628 # Check whether to enable 64-bit support on 32-bit hosts
5629 # Check whether --enable-64-bit-bfd was given.
5630 if test "${enable_64_bit_bfd+set}" = set; then :
5631 enableval
=$enable_64_bit_bfd; case "${enableval}" in
5634 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5640 # Provide defaults for some variables set by the per-host and per-target
5642 gdb_host_obs
=posix-hdep.o
5644 if test "${target}" = "${host}"; then
5650 .
$srcdir/configure.
host
5652 # Add in the common host objects.
5653 .
$srcdir/common
/common.
host
5654 gdb_host_obs
="$gdb_host_obs $common_host_obs"
5656 # Accumulate some settings from configure.tgt over all enabled targets
5660 HAVE_NATIVE_GCORE_TARGET
=
5662 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5664 if test "$targ_alias" = "all"; then
5667 # Canonicalize the secondary target names.
5668 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5669 if test -n "$result"; then
5675 .
${srcdir}/configure.tgt
5677 if test -z "${gdb_target_obs}"; then :
5678 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
5681 # Target-specific object files
5682 for i
in ${gdb_target_obs}; do
5683 case " $TARGET_OBS " in
5686 TARGET_OBS
="$TARGET_OBS ${i}"
5691 # Check whether this target needs 64-bit CORE_ADDR
5692 if test x
${want64} = xfalse
; then
5693 .
${srcdir}/..
/bfd
/config.bfd
5696 # Check whether this target is native and supports gcore.
5697 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5698 && $gdb_have_gcore; then
5699 HAVE_NATIVE_GCORE_TARGET
=1
5704 if test x
${all_targets} = xtrue
; then
5706 # We want all 64-bit targets if we either:
5707 # - run on a 64-bit host or
5708 # - already require 64-bit support for some other target or
5709 # - the --enable-64-bit-bfd option was supplied
5710 # Otherwise we only support all 32-bit targets.
5712 # NOTE: This test must be in sync with the corresponding
5715 if test x
${want64} = xfalse
; then
5716 # The cast to long int works around a bug in the HP C Compiler
5717 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5718 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5719 # This bug is HP SR number 8606223364.
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5721 $as_echo_n "checking size of long... " >&6; }
5722 if test "${ac_cv_sizeof_long+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5725 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5728 if test "$ac_cv_type_long" = yes; then
5729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5731 { as_fn_set_status
77
5732 as_fn_error
"cannot compute sizeof (long)
5733 See \`config.log' for more details." "$LINENO" 5; }; }
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5741 $as_echo "$ac_cv_sizeof_long" >&6; }
5745 cat >>confdefs.h
<<_ACEOF
5746 #define SIZEOF_LONG $ac_cv_sizeof_long
5750 if test "x${ac_cv_sizeof_long}" = "x8"; then
5754 if test x
${want64} = xtrue
; then
5755 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5757 TARGET_OBS
='$(ALL_TARGET_OBS)'
5764 # For other settings, only the main target counts.
5768 targ
=$target; .
${srcdir}/configure.tgt
5770 # Fetch the default architecture and default target vector from BFD.
5771 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
5773 # We only want the first architecture, so strip off the others if
5774 # there is more than one.
5775 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
5777 if test "x$targ_archs" != x
; then
5779 cat >>confdefs.h
<<_ACEOF
5780 #define DEFAULT_BFD_ARCH $targ_archs
5784 if test "x$targ_defvec" != x
; then
5786 cat >>confdefs.h
<<_ACEOF
5787 #define DEFAULT_BFD_VEC $targ_defvec
5792 # The CLI cannot be disabled yet, but may be in the future.
5795 # Check whether --enable-gdbcli was given.
5796 if test "${enable_gdbcli+set}" = set; then :
5797 enableval
=$enable_gdbcli; case $enableval in
5801 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5803 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5809 if test x
"$enable_gdbcli" = xyes
; then
5810 if test -d $srcdir/cli
; then
5811 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5812 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5813 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5814 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5819 # Check whether --enable-gdbmi was given.
5820 if test "${enable_gdbmi+set}" = set; then :
5821 enableval
=$enable_gdbmi; case $enableval in
5825 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5831 if test x
"$enable_gdbmi" = xyes
; then
5832 if test -d $srcdir/mi
; then
5833 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5834 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5835 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5836 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5841 # Check whether --enable-tui was given.
5842 if test "${enable_tui+set}" = set; then :
5843 enableval
=$enable_tui; case $enableval in
5847 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5855 # Check whether --enable-gdbtk was given.
5856 if test "${enable_gdbtk+set}" = set; then :
5857 enableval
=$enable_gdbtk; case $enableval in
5861 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5864 if test -d $srcdir/gdbtk
; then
5871 # We unconditionally disable gdbtk tests on selected platforms.
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5875 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5879 # Libunwind support for ia64.
5882 # Check whether --with-libunwind-ia64 was given.
5883 if test "${with_libunwind_ia64+set}" = set; then :
5884 withval
=$with_libunwind_ia64;
5886 with_libunwind_ia64
=auto
5890 # Backward compatibility option.
5891 if test "${with_libunwind+set}" = set; then
5892 if test x
"$with_libunwind_ia64" != xauto
; then
5893 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5896 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5897 with_libunwind_ia64
="$with_libunwind"
5900 case "$with_libunwind_ia64" in
5904 for ac_header
in libunwind-ia64.h
5906 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5907 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5908 cat >>confdefs.h
<<_ACEOF
5909 #define HAVE_LIBUNWIND_IA64_H 1
5916 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
5919 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5923 if test x
"$with_libunwind_ia64" = xyes
; then
5924 for ac_header
in libunwind-ia64.h
5926 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5927 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5928 cat >>confdefs.h
<<_ACEOF
5929 #define HAVE_LIBUNWIND_IA64_H 1
5936 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
5937 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5939 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
5940 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
5941 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
5946 # Check whether --with-curses was given.
5947 if test "${with_curses+set}" = set; then :
5948 withval
=$with_curses; opt_curses
=$withval
5953 if test "$opt_curses" = "yes"; then
5957 # Profiling support.
5958 # Check whether --enable-profiling was given.
5959 if test "${enable_profiling+set}" = set; then :
5960 enableval
=$enable_profiling; case $enableval in
5964 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5971 for ac_func
in monstartup _mcleanup
5973 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5974 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5975 eval as_val
=\$
$as_ac_var
5976 if test "x$as_val" = x
""yes; then :
5977 cat >>confdefs.h
<<_ACEOF
5978 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5985 $as_echo_n "checking for _etext... " >&6; }
5986 if test "${ac_cv_var__etext+set}" = set; then :
5987 $as_echo_n "(cached) " >&6
5989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
6002 if ac_fn_c_try_link
"$LINENO"; then :
6003 ac_cv_var__etext
=yes
6007 rm -f core conftest.err conftest.
$ac_objext \
6008 conftest
$ac_exeext conftest.
$ac_ext
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6011 $as_echo "$ac_cv_var__etext" >&6; }
6012 if test $ac_cv_var__etext = yes; then
6014 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6018 $as_echo_n "checking for etext... " >&6; }
6019 if test "${ac_cv_var_etext+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6035 if ac_fn_c_try_link
"$LINENO"; then :
6040 rm -f core conftest.err conftest.
$ac_objext \
6041 conftest
$ac_exeext conftest.
$ac_ext
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6044 $as_echo "$ac_cv_var_etext" >&6; }
6045 if test $ac_cv_var_etext = yes; then
6047 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6050 if test "$enable_profiling" = yes ; then
6051 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
6052 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6055 OLD_CFLAGS
="$CFLAGS"
6056 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6059 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6060 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
6063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6074 if ac_fn_c_try_compile
"$LINENO"; then :
6075 ac_cv_cc_supports_pg
=yes
6077 ac_cv_cc_supports_pg
=no
6079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6082 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6084 if test $ac_cv_cc_supports_pg = no
; then
6085 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6088 CFLAGS
="$OLD_CFLAGS"
6093 # Check whether --with-pkgversion was given.
6094 if test "${with_pkgversion+set}" = set; then :
6095 withval
=$with_pkgversion; case "$withval" in
6096 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6098 *) PKGVERSION
="($withval) " ;;
6109 # Check whether --with-bugurl was given.
6110 if test "${with_bugurl+set}" = set; then :
6111 withval
=$with_bugurl; case "$withval" in
6112 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6115 *) BUGURL
="$withval"
6119 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
6129 REPORT_BUGS_TO
="<$BUGURL>"
6130 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6137 cat >>confdefs.h
<<_ACEOF
6138 #define PKGVERSION "$PKGVERSION"
6142 cat >>confdefs.h
<<_ACEOF
6143 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6147 # --------------------- #
6148 # Checks for programs. #
6149 # --------------------- #
6151 for ac_prog
in gawk mawk nawk
awk
6153 # Extract the first word of "$ac_prog", so it can be a program name with args.
6154 set dummy
$ac_prog; ac_word
=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if test "${ac_cv_prog_AWK+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6160 if test -n "$AWK"; then
6161 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6167 test -z "$as_dir" && as_dir
=.
6168 for ac_exec_ext
in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_prog_AWK
="$ac_prog"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 if test -n "$AWK"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6183 $as_echo "$AWK" >&6; }
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6190 test -n "$AWK" && break
6193 # Find a good install program. We prefer a C program (faster),
6194 # so one script is as good as another. But avoid the broken or
6195 # incompatible versions:
6196 # SysV /etc/install, /usr/sbin/install
6197 # SunOS /usr/etc/install
6198 # IRIX /sbin/install
6200 # AmigaOS /C/install, which installs bootblocks on floppy discs
6201 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6202 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6203 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6204 # OS/2's system install, which has a completely different semantic
6205 # ./install, which can be erroneously created by make from ./install.sh.
6206 # Reject install programs that cannot install multiple files.
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6208 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6209 if test -z "$INSTALL"; then
6210 if test "${ac_cv_path_install+set}" = set; then :
6211 $as_echo_n "(cached) " >&6
6213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6217 test -z "$as_dir" && as_dir
=.
6218 # Account for people who put trailing slashes in PATH elements.
6219 case $as_dir/ in #((
6220 .
/ | .
// |
/[cC
]/* | \
6221 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6222 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
6225 # OSF1 and SCO ODT 3.0 have their own names for install.
6226 # Don't use installbsd from OSF since it installs stuff as root
6228 for ac_prog
in ginstall scoinst
install; do
6229 for ac_exec_ext
in '' $ac_executable_extensions; do
6230 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6231 if test $ac_prog = install &&
6232 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6233 # AIX install. It has an incompatible calling convention.
6235 elif test $ac_prog = install &&
6236 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6237 # program-specific install script used by HP pwplus--don't use.
6240 rm -rf conftest.one conftest.two conftest.dir
6241 echo one
> conftest.one
6242 echo two
> conftest.two
6244 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
6245 test -s conftest.one
&& test -s conftest.two
&&
6246 test -s conftest.dir
/conftest.one
&&
6247 test -s conftest.dir
/conftest.two
6249 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6262 rm -rf conftest.one conftest.two conftest.dir
6265 if test "${ac_cv_path_install+set}" = set; then
6266 INSTALL
=$ac_cv_path_install
6268 # As a last resort, use the slow shell script. Don't cache a
6269 # value for INSTALL within a source directory, because that will
6270 # break other packages using the cache if that directory is
6271 # removed, or if the value is a relative name.
6272 INSTALL
=$ac_install_sh
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6276 $as_echo "$INSTALL" >&6; }
6278 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6279 # It thinks the first close brace ends the variable substitution.
6280 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6282 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6284 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6287 $as_echo_n "checking whether ln -s works... " >&6; }
6289 if test "$LN_S" = "ln -s"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6291 $as_echo "yes" >&6; }
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6294 $as_echo "no, using $LN_S" >&6; }
6297 if test -n "$ac_tool_prefix"; then
6298 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6299 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301 $as_echo_n "checking for $ac_word... " >&6; }
6302 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6303 $as_echo_n "(cached) " >&6
6305 if test -n "$RANLIB"; then
6306 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6312 test -z "$as_dir" && as_dir
=.
6313 for ac_exec_ext
in '' $ac_executable_extensions; do
6314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 RANLIB
=$ac_cv_prog_RANLIB
6326 if test -n "$RANLIB"; then
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6328 $as_echo "$RANLIB" >&6; }
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 $as_echo "no" >&6; }
6336 if test -z "$ac_cv_prog_RANLIB"; then
6337 ac_ct_RANLIB
=$RANLIB
6338 # Extract the first word of "ranlib", so it can be a program name with args.
6339 set dummy ranlib
; ac_word
=$2
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6343 $as_echo_n "(cached) " >&6
6345 if test -n "$ac_ct_RANLIB"; then
6346 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6352 test -z "$as_dir" && as_dir
=.
6353 for ac_exec_ext
in '' $ac_executable_extensions; do
6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6366 if test -n "$ac_ct_RANLIB"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6368 $as_echo "$ac_ct_RANLIB" >&6; }
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371 $as_echo "no" >&6; }
6374 if test "x$ac_ct_RANLIB" = x
; then
6377 case $cross_compiling:$ac_tool_warned in
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6381 ac_tool_warned
=yes ;;
6383 RANLIB
=$ac_ct_RANLIB
6386 RANLIB
="$ac_cv_prog_RANLIB"
6389 for ac_prog
in 'bison -y' byacc
6391 # Extract the first word of "$ac_prog", so it can be a program name with args.
6392 set dummy
$ac_prog; ac_word
=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if test "${ac_cv_prog_YACC+set}" = set; then :
6396 $as_echo_n "(cached) " >&6
6398 if test -n "$YACC"; then
6399 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
6401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir
=.
6406 for ac_exec_ext
in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_YACC
="$ac_prog"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 YACC
=$ac_cv_prog_YACC
6419 if test -n "$YACC"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6421 $as_echo "$YACC" >&6; }
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6428 test -n "$YACC" && break
6430 test -n "$YACC" || YACC
="yacc"
6433 if test -n "$ac_tool_prefix"; then
6434 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6435 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if test "${ac_cv_prog_AR+set}" = set; then :
6439 $as_echo_n "(cached) " >&6
6441 if test -n "$AR"; then
6442 ac_cv_prog_AR
="$AR" # Let the user override the test.
6444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6448 test -z "$as_dir" && as_dir
=.
6449 for ac_exec_ext
in '' $ac_executable_extensions; do
6450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 if test -n "$AR"; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6464 $as_echo "$AR" >&6; }
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6472 if test -z "$ac_cv_prog_AR"; then
6474 # Extract the first word of "ar", so it can be a program name with args.
6475 set dummy
ar; ac_word
=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6479 $as_echo_n "(cached) " >&6
6481 if test -n "$ac_ct_AR"; then
6482 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir
=.
6489 for ac_exec_ext
in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_ac_ct_AR
="ar"
6492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6502 if test -n "$ac_ct_AR"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6504 $as_echo "$ac_ct_AR" >&6; }
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6510 if test "x$ac_ct_AR" = x
; then
6513 case $cross_compiling:$ac_tool_warned in
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6517 ac_tool_warned
=yes ;;
6525 if test -n "$ac_tool_prefix"; then
6526 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6527 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6531 $as_echo_n "(cached) " >&6
6533 if test -n "$DLLTOOL"; then
6534 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
6536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6540 test -z "$as_dir" && as_dir
=.
6541 for ac_exec_ext
in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 DLLTOOL
=$ac_cv_prog_DLLTOOL
6554 if test -n "$DLLTOOL"; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6556 $as_echo "$DLLTOOL" >&6; }
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6564 if test -z "$ac_cv_prog_DLLTOOL"; then
6565 ac_ct_DLLTOOL
=$DLLTOOL
6566 # Extract the first word of "dlltool", so it can be a program name with args.
6567 set dummy dlltool
; ac_word
=$2
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569 $as_echo_n "checking for $ac_word... " >&6; }
6570 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6571 $as_echo_n "(cached) " >&6
6573 if test -n "$ac_ct_DLLTOOL"; then
6574 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
6576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6580 test -z "$as_dir" && as_dir
=.
6581 for ac_exec_ext
in '' $ac_executable_extensions; do
6582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6583 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
6584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
6594 if test -n "$ac_ct_DLLTOOL"; then
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6596 $as_echo "$ac_ct_DLLTOOL" >&6; }
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599 $as_echo "no" >&6; }
6602 if test "x$ac_ct_DLLTOOL" = x
; then
6605 case $cross_compiling:$ac_tool_warned in
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6609 ac_tool_warned
=yes ;;
6611 DLLTOOL
=$ac_ct_DLLTOOL
6614 DLLTOOL
="$ac_cv_prog_DLLTOOL"
6617 if test -n "$ac_tool_prefix"; then
6618 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6619 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6623 $as_echo_n "(cached) " >&6
6625 if test -n "$WINDRES"; then
6626 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
6628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6632 test -z "$as_dir" && as_dir
=.
6633 for ac_exec_ext
in '' $ac_executable_extensions; do
6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6635 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 WINDRES
=$ac_cv_prog_WINDRES
6646 if test -n "$WINDRES"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6648 $as_echo "$WINDRES" >&6; }
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6656 if test -z "$ac_cv_prog_WINDRES"; then
6657 ac_ct_WINDRES
=$WINDRES
6658 # Extract the first word of "windres", so it can be a program name with args.
6659 set dummy windres
; ac_word
=$2
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661 $as_echo_n "checking for $ac_word... " >&6; }
6662 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6663 $as_echo_n "(cached) " >&6
6665 if test -n "$ac_ct_WINDRES"; then
6666 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
6668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6672 test -z "$as_dir" && as_dir
=.
6673 for ac_exec_ext
in '' $ac_executable_extensions; do
6674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6675 ac_cv_prog_ac_ct_WINDRES
="windres"
6676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
6686 if test -n "$ac_ct_WINDRES"; then
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6688 $as_echo "$ac_ct_WINDRES" >&6; }
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691 $as_echo "no" >&6; }
6694 if test "x$ac_ct_WINDRES" = x
; then
6697 case $cross_compiling:$ac_tool_warned in
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6701 ac_tool_warned
=yes ;;
6703 WINDRES
=$ac_ct_WINDRES
6706 WINDRES
="$ac_cv_prog_WINDRES"
6712 # Needed for GNU Hurd hosts.
6713 if test -n "$ac_tool_prefix"; then
6714 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6715 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if test "${ac_cv_prog_MIG+set}" = set; then :
6719 $as_echo_n "(cached) " >&6
6721 if test -n "$MIG"; then
6722 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
6724 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6728 test -z "$as_dir" && as_dir
=.
6729 for ac_exec_ext
in '' $ac_executable_extensions; do
6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 if test -n "$MIG"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6744 $as_echo "$MIG" >&6; }
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6752 if test -z "$ac_cv_prog_MIG"; then
6754 # Extract the first word of "mig", so it can be a program name with args.
6755 set dummy mig
; ac_word
=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6759 $as_echo_n "(cached) " >&6
6761 if test -n "$ac_ct_MIG"; then
6762 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
6764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6768 test -z "$as_dir" && as_dir
=.
6769 for ac_exec_ext
in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_prog_ac_ct_MIG
="mig"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
6782 if test -n "$ac_ct_MIG"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6784 $as_echo "$ac_ct_MIG" >&6; }
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6790 if test "x$ac_ct_MIG" = x
; then
6793 case $cross_compiling:$ac_tool_warned in
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797 ac_tool_warned
=yes ;;
6802 MIG
="$ac_cv_prog_MIG"
6805 if test x
"$MIG" = x
; then
6806 as_fn_error
"MIG not found but required for $host hosts" "$LINENO" 5
6811 # ---------------------- #
6812 # Checks for libraries. #
6813 # ---------------------- #
6815 # We might need to link with -lm; most simulators need it.
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6817 $as_echo_n "checking for main in -lm... " >&6; }
6818 if test "${ac_cv_lib_m_main+set}" = set; then :
6819 $as_echo_n "(cached) " >&6
6821 ac_check_lib_save_LIBS
=$LIBS
6823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6835 if ac_fn_c_try_link
"$LINENO"; then :
6836 ac_cv_lib_m_main
=yes
6840 rm -f core conftest.err conftest.
$ac_objext \
6841 conftest
$ac_exeext conftest.
$ac_ext
6842 LIBS
=$ac_check_lib_save_LIBS
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6845 $as_echo "$ac_cv_lib_m_main" >&6; }
6846 if test "x$ac_cv_lib_m_main" = x
""yes; then :
6847 cat >>confdefs.h
<<_ACEOF
6856 # We need to link with -lw to get `wctype' on Solaris before Solaris
6857 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6858 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6859 # is known to have this problem). Therefore we avoid libw if we can.
6860 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6861 if test "x$ac_cv_func_wctype" = x
""yes; then :
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6865 $as_echo_n "checking for wctype in -lw... " >&6; }
6866 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6867 $as_echo_n "(cached) " >&6
6869 ac_check_lib_save_LIBS
=$LIBS
6871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6874 /* Override any GCC internal prototype to avoid an error.
6875 Use char because int might match the return type of a GCC
6876 builtin and then its argument prototype would still apply. */
6889 if ac_fn_c_try_link
"$LINENO"; then :
6890 ac_cv_lib_w_wctype
=yes
6892 ac_cv_lib_w_wctype
=no
6894 rm -f core conftest.err conftest.
$ac_objext \
6895 conftest
$ac_exeext conftest.
$ac_ext
6896 LIBS
=$ac_check_lib_save_LIBS
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6899 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6900 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
6901 cat >>confdefs.h
<<_ACEOF
6912 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6914 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6915 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6916 $as_echo_n "(cached) " >&6
6918 ac_func_search_save_LIBS
=$LIBS
6919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6922 /* Override any GCC internal prototype to avoid an error.
6923 Use char because int might match the return type of a GCC
6924 builtin and then its argument prototype would still apply. */
6928 char gethostbyname ();
6932 return gethostbyname ();
6937 for ac_lib
in '' nsl
; do
6938 if test -z "$ac_lib"; then
6939 ac_res
="none required"
6942 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6944 if ac_fn_c_try_link
"$LINENO"; then :
6945 ac_cv_search_gethostbyname
=$ac_res
6947 rm -f core conftest.err conftest.
$ac_objext \
6949 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6953 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6956 ac_cv_search_gethostbyname
=no
6959 LIBS
=$ac_func_search_save_LIBS
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6962 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6963 ac_res
=$ac_cv_search_gethostbyname
6964 if test "$ac_res" != no
; then :
6965 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6970 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6972 $as_echo_n "checking for library containing socketpair... " >&6; }
6973 if test "${ac_cv_search_socketpair+set}" = set; then :
6974 $as_echo_n "(cached) " >&6
6976 ac_func_search_save_LIBS
=$LIBS
6977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6980 /* Override any GCC internal prototype to avoid an error.
6981 Use char because int might match the return type of a GCC
6982 builtin and then its argument prototype would still apply. */
6990 return socketpair ();
6995 for ac_lib
in '' socket
; do
6996 if test -z "$ac_lib"; then
6997 ac_res
="none required"
7000 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7002 if ac_fn_c_try_link
"$LINENO"; then :
7003 ac_cv_search_socketpair
=$ac_res
7005 rm -f core conftest.err conftest.
$ac_objext \
7007 if test "${ac_cv_search_socketpair+set}" = set; then :
7011 if test "${ac_cv_search_socketpair+set}" = set; then :
7014 ac_cv_search_socketpair
=no
7017 LIBS
=$ac_func_search_save_LIBS
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7020 $as_echo "$ac_cv_search_socketpair" >&6; }
7021 ac_res
=$ac_cv_search_socketpair
7022 if test "$ac_res" != no
; then :
7023 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7028 # Link in zlib if we can. This allows us to read compressed debug sections.
7030 # Use the system's zlib library.
7031 zlibdir
="-L\$(top_builddir)/../zlib"
7032 zlibinc
="-I\$(top_srcdir)/../zlib"
7034 # Check whether --with-system-zlib was given.
7035 if test "${with_system_zlib+set}" = set; then :
7036 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7047 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7049 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7050 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7051 $as_echo_n "(cached) " >&6
7053 ac_func_search_save_LIBS
=$LIBS
7054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7057 /* Override any GCC internal prototype to avoid an error.
7058 Use char because int might match the return type of a GCC
7059 builtin and then its argument prototype would still apply. */
7063 char kinfo_getvmmap ();
7067 return kinfo_getvmmap ();
7072 for ac_lib
in '' util
; do
7073 if test -z "$ac_lib"; then
7074 ac_res
="none required"
7077 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7079 if ac_fn_c_try_link
"$LINENO"; then :
7080 ac_cv_search_kinfo_getvmmap
=$ac_res
7082 rm -f core conftest.err conftest.
$ac_objext \
7084 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7088 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7091 ac_cv_search_kinfo_getvmmap
=no
7094 LIBS
=$ac_func_search_save_LIBS
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7097 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7098 ac_res
=$ac_cv_search_kinfo_getvmmap
7099 if test "$ac_res" != no
; then :
7100 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7102 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7110 # Check whether --with-libiconv-prefix was given.
7111 if test "${with_libiconv_prefix+set}" = set; then :
7112 withval
=$with_libiconv_prefix;
7113 for dir
in `echo "$withval" | tr : ' '`; do
7114 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
7115 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
7121 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
7122 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7125 $as_echo_n "checking for iconv... " >&6; }
7126 if test "${am_cv_func_iconv+set}" = set; then :
7127 $as_echo_n "(cached) " >&6
7130 am_cv_func_iconv
="no, consider installing GNU libiconv"
7132 am_cv_use_build_libiconv
=no
7133 am_cv_build_libiconv_path
=
7135 # If libiconv is part of the build tree, then try using it over
7137 if test -d ..
/libiconv
; then
7138 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
7139 am_save_LIBS
="$LIBS"
7140 am_save_CPPFLAGS
="$CPPFLAGS"
7141 LIBS
="$LIBS $lib_dir/libiconv.a"
7142 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
7143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7150 iconv_t cd = iconv_open("","");
7151 iconv(cd,NULL,NULL,NULL,NULL);
7157 if ac_fn_c_try_link
"$LINENO"; then :
7158 am_cv_use_build_libiconv
=yes
7159 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
7161 am_cv_func_iconv
=yes
7163 rm -f core conftest.err conftest.
$ac_objext \
7164 conftest
$ac_exeext conftest.
$ac_ext
7165 LIBS
="$am_save_LIBS"
7166 CPPFLAGS
="$am_save_CPPFLAGS"
7167 if test "$am_cv_use_build_libiconv" = "yes"; then
7173 # Next, try to find iconv in libc.
7174 if test "$am_cv_func_iconv" != yes; then
7175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7182 iconv_t cd = iconv_open("","");
7183 iconv(cd,NULL,NULL,NULL,NULL);
7189 if ac_fn_c_try_link
"$LINENO"; then :
7190 am_cv_func_iconv
=yes
7192 rm -f core conftest.err conftest.
$ac_objext \
7193 conftest
$ac_exeext conftest.
$ac_ext
7196 # If iconv was not in libc, try -liconv. In this case, arrange to
7197 # look in the libiconv prefix, if it was specified by the user.
7198 if test "$am_cv_func_iconv" != yes; then
7199 am_save_CPPFLAGS
="$CPPFLAGS"
7200 am_save_LIBS
="$LIBS"
7201 if test -n "$LIBICONV_INCLUDE"; then
7202 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
7203 LIBS
="$LIBS $LIBICONV_LIBDIR"
7205 LIBS
="$LIBS -liconv"
7206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7213 iconv_t cd = iconv_open("","");
7214 iconv(cd,NULL,NULL,NULL,NULL);
7220 if ac_fn_c_try_link
"$LINENO"; then :
7222 am_cv_func_iconv
=yes
7224 rm -f core conftest.err conftest.
$ac_objext \
7225 conftest
$ac_exeext conftest.
$ac_ext
7226 LIBS
="$am_save_LIBS"
7227 CPPFLAGS
="$am_save_CPPFLAGS"
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7232 $as_echo "$am_cv_func_iconv" >&6; }
7234 # Set the various flags based on the cache variables. We can't rely
7235 # on the flags to remain set from the above code, due to caching.
7237 if test "$am_cv_lib_iconv" = yes; then
7243 if test "$am_cv_use_build_libiconv" = yes; then
7244 LIBICONV
="$am_cv_build_libiconv_path"
7246 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
7248 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
7249 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
7251 if test "$am_cv_func_iconv" = yes; then
7253 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7256 $as_echo_n "checking for iconv declaration... " >&6; }
7257 if test "${am_cv_proto_iconv+set}" = set; then :
7258 $as_echo_n "(cached) " >&6
7261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7262 /* end confdefs.h. */
7270 #if defined(__STDC__) || defined(__cplusplus)
7271 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7284 if ac_fn_c_try_compile
"$LINENO"; then :
7285 am_cv_proto_iconv_arg1
=""
7287 am_cv_proto_iconv_arg1
="const"
7289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7290 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);"
7293 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7295 }$am_cv_proto_iconv" >&5
7297 }$am_cv_proto_iconv" >&6; }
7299 cat >>confdefs.h
<<_ACEOF
7300 #define ICONV_CONST $am_cv_proto_iconv_arg1
7306 # GDB may fork/exec the iconv program to get the list of supported character
7307 # sets. Allow the user to specify where to find it.
7308 # There are several factors affecting the choice of option name:
7309 # - There is already --with-libiconv-prefix but we can't use it, it specifies
7310 # the build-time location of libiconv files.
7311 # - The program we need to find is iconv, which comes with glibc. The user
7312 # doesn't necessarily have libiconv installed. Therefore naming this
7313 # --with-libiconv-foo feels wrong.
7314 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
7315 # defined to work on directories not files (though it really doesn't know
7317 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
7318 # with --with-libiconv-prefix.
7319 # Putting these together is why the option name is --with-iconv-bin.
7322 # Check whether --with-iconv-bin was given.
7323 if test "${with_iconv_bin+set}" = set; then :
7324 withval
=$with_iconv_bin; iconv_bin
="${withval}"
7326 cat >>confdefs.h
<<_ACEOF
7327 #define ICONV_BIN "${iconv_bin}"
7331 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7332 if test "x$prefix" = xNONE
; then
7333 test_prefix
=/usr
/local
7338 test_prefix
=$exec_prefix
7341 case ${iconv_bin} in
7342 "${test_prefix}"|
"${test_prefix}/"*|\
7343 '${exec_prefix}'|
'${exec_prefix}/'*)
7348 cat >>confdefs.h
<<_ACEOF
7349 #define ICONV_BIN_RELOCATABLE $value
7357 # For the TUI, we need enhanced curses functionality.
7358 if test x
"$enable_tui" != xno
; then
7363 if test x
"$prefer_curses" = xyes
; then
7364 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7365 # curses library because the latter might not provide all the
7366 # functionality we need. However, this leads to problems on systems
7367 # where the linker searches /usr/local/lib, but the compiler doesn't
7368 # search /usr/local/include, if ncurses is installed in /usr/local. A
7369 # default installation of ncurses on alpha*-dec-osf* will lead to such
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7372 $as_echo_n "checking for library containing waddstr... " >&6; }
7373 if test "${ac_cv_search_waddstr+set}" = set; then :
7374 $as_echo_n "(cached) " >&6
7376 ac_func_search_save_LIBS
=$LIBS
7377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7380 /* Override any GCC internal prototype to avoid an error.
7381 Use char because int might match the return type of a GCC
7382 builtin and then its argument prototype would still apply. */
7395 for ac_lib
in '' ncurses cursesX curses
; do
7396 if test -z "$ac_lib"; then
7397 ac_res
="none required"
7400 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7402 if ac_fn_c_try_link
"$LINENO"; then :
7403 ac_cv_search_waddstr
=$ac_res
7405 rm -f core conftest.err conftest.
$ac_objext \
7407 if test "${ac_cv_search_waddstr+set}" = set; then :
7411 if test "${ac_cv_search_waddstr+set}" = set; then :
7414 ac_cv_search_waddstr
=no
7417 LIBS
=$ac_func_search_save_LIBS
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7420 $as_echo "$ac_cv_search_waddstr" >&6; }
7421 ac_res
=$ac_cv_search_waddstr
7422 if test "$ac_res" != no
; then :
7423 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7428 if test "$ac_cv_search_waddstr" != no
; then
7433 # Check whether we should enable the TUI, but only do so if we really
7435 if test x
"$enable_tui" != xno
; then
7436 if test -d $srcdir/tui
; then
7437 if test "$curses_found" != no
; then
7438 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7439 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7440 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7441 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7443 if test x
"$enable_tui" = xyes
; then
7444 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7447 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
7453 # Since GDB uses Readline, we need termcap functionality. In many
7454 # cases this will be provided by the curses library, but some systems
7455 # have a seperate termcap library, or no curses library at all.
7459 if test -d $srcdir/libtermcap
; then
7460 LIBS
="../libtermcap/libtermcap.a $LIBS"
7461 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
7464 ac_cv_search_tgetent
="none required"
7468 # These are the libraries checked by Readline.
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
7470 $as_echo_n "checking for library containing tgetent... " >&6; }
7471 if test "${ac_cv_search_tgetent+set}" = set; then :
7472 $as_echo_n "(cached) " >&6
7474 ac_func_search_save_LIBS
=$LIBS
7475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7478 /* Override any GCC internal prototype to avoid an error.
7479 Use char because int might match the return type of a GCC
7480 builtin and then its argument prototype would still apply. */
7493 for ac_lib
in '' termcap tinfo curses ncurses
; do
7494 if test -z "$ac_lib"; then
7495 ac_res
="none required"
7498 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7500 if ac_fn_c_try_link
"$LINENO"; then :
7501 ac_cv_search_tgetent
=$ac_res
7503 rm -f core conftest.err conftest.
$ac_objext \
7505 if test "${ac_cv_search_tgetent+set}" = set; then :
7509 if test "${ac_cv_search_tgetent+set}" = set; then :
7512 ac_cv_search_tgetent
=no
7515 LIBS
=$ac_func_search_save_LIBS
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7518 $as_echo "$ac_cv_search_tgetent" >&6; }
7519 ac_res
=$ac_cv_search_tgetent
7520 if test "$ac_res" != no
; then :
7521 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7526 if test "$ac_cv_search_tgetent" = no
; then
7527 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
7531 # Check whether --with-system-readline was given.
7532 if test "${with_system_readline+set}" = set; then :
7533 withval
=$with_system_readline;
7537 if test "$with_system_readline" = yes; then
7541 READLINE_TEXI_INCFLAG
=
7543 READLINE
='$(READLINE_DIR)/libreadline.a'
7544 READLINE_DEPS
='$(READLINE)'
7545 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
7546 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
7553 # Generate jit-reader.h
7555 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7558 # The cast to long int works around a bug in the HP C Compiler
7559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7561 # This bug is HP SR number 8606223364.
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7563 $as_echo_n "checking size of unsigned long long... " >&6; }
7564 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7565 $as_echo_n "(cached) " >&6
7567 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7570 if test "$ac_cv_type_unsigned_long_long" = yes; then
7571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7573 { as_fn_set_status
77
7574 as_fn_error
"cannot compute sizeof (unsigned long long)
7575 See \`config.log' for more details." "$LINENO" 5; }; }
7577 ac_cv_sizeof_unsigned_long_long
=0
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7583 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7587 cat >>confdefs.h
<<_ACEOF
7588 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7592 # The cast to long int works around a bug in the HP C Compiler
7593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7595 # This bug is HP SR number 8606223364.
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7597 $as_echo_n "checking size of unsigned long... " >&6; }
7598 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
7601 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7604 if test "$ac_cv_type_unsigned_long" = yes; then
7605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7607 { as_fn_set_status
77
7608 as_fn_error
"cannot compute sizeof (unsigned long)
7609 See \`config.log' for more details." "$LINENO" 5; }; }
7611 ac_cv_sizeof_unsigned_long
=0
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7617 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7621 cat >>confdefs.h
<<_ACEOF
7622 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7626 # The cast to long int works around a bug in the HP C Compiler
7627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7629 # This bug is HP SR number 8606223364.
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7631 $as_echo_n "checking size of unsigned __int128... " >&6; }
7632 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7633 $as_echo_n "(cached) " >&6
7635 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7638 if test "$ac_cv_type_unsigned___int128" = yes; then
7639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7641 { as_fn_set_status
77
7642 as_fn_error
"cannot compute sizeof (unsigned __int128)
7643 See \`config.log' for more details." "$LINENO" 5; }; }
7645 ac_cv_sizeof_unsigned___int128
=0
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7651 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7655 cat >>confdefs.h
<<_ACEOF
7656 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7661 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7662 TARGET_PTR
="unsigned long"
7663 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7664 TARGET_PTR
="unsigned long long"
7665 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7666 TARGET_PTR
="unsigned __int128"
7668 TARGET_PTR
="unsigned long"
7672 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7676 $as_echo_n "checking for library containing dlopen... " >&6; }
7677 if test "${ac_cv_search_dlopen+set}" = set; then :
7678 $as_echo_n "(cached) " >&6
7680 ac_func_search_save_LIBS
=$LIBS
7681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7684 /* Override any GCC internal prototype to avoid an error.
7685 Use char because int might match the return type of a GCC
7686 builtin and then its argument prototype would still apply. */
7699 for ac_lib
in '' dl
; do
7700 if test -z "$ac_lib"; then
7701 ac_res
="none required"
7704 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7706 if ac_fn_c_try_link
"$LINENO"; then :
7707 ac_cv_search_dlopen
=$ac_res
7709 rm -f core conftest.err conftest.
$ac_objext \
7711 if test "${ac_cv_search_dlopen+set}" = set; then :
7715 if test "${ac_cv_search_dlopen+set}" = set; then :
7718 ac_cv_search_dlopen
=no
7721 LIBS
=$ac_func_search_save_LIBS
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7724 $as_echo "$ac_cv_search_dlopen" >&6; }
7725 ac_res
=$ac_cv_search_dlopen
7726 if test "$ac_res" != no
; then :
7727 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7734 # Check whether --with-jit-reader-dir was given.
7735 if test "${with_jit_reader_dir+set}" = set; then :
7736 withval
=$with_jit_reader_dir;
7737 JIT_READER_DIR
=$withval
7739 JIT_READER_DIR
=${libdir}/gdb
7743 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7744 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7745 ac_define_dir
=`eval echo $JIT_READER_DIR`
7746 ac_define_dir
=`eval echo $ac_define_dir`
7748 cat >>confdefs.h
<<_ACEOF
7749 #define JIT_READER_DIR "$ac_define_dir"
7755 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7756 if test "x$prefix" = xNONE
; then
7757 test_prefix
=/usr
/local
7762 test_prefix
=$exec_prefix
7765 case ${ac_define_dir} in
7766 "${test_prefix}"|
"${test_prefix}/"*|\
7767 '${exec_prefix}'|
'${exec_prefix}/'*)
7772 cat >>confdefs.h
<<_ACEOF
7773 #define JIT_READER_DIR_RELOCATABLE $value
7780 # Check whether --with-expat was given.
7781 if test "${with_expat+set}" = set; then :
7782 withval
=$with_expat;
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7788 $as_echo_n "checking whether to use expat... " >&6; }
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7790 $as_echo "$with_expat" >&6; }
7792 if test "${with_expat}" = no
; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7794 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7798 if test "X$prefix" = "XNONE"; then
7799 acl_final_prefix
="$ac_default_prefix"
7801 acl_final_prefix
="$prefix"
7803 if test "X$exec_prefix" = "XNONE"; then
7804 acl_final_exec_prefix
='${prefix}'
7806 acl_final_exec_prefix
="$exec_prefix"
7808 acl_save_prefix
="$prefix"
7809 prefix
="$acl_final_prefix"
7810 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7811 prefix
="$acl_save_prefix"
7814 # Check whether --with-gnu-ld was given.
7815 if test "${with_gnu_ld+set}" = set; then :
7816 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7821 # Prepare PATH_SEPARATOR.
7822 # The user is always right.
7823 if test "${PATH_SEPARATOR+set}" != set; then
7824 echo "#! /bin/sh" >conf$$.sh
7825 echo "exit 0" >>conf$$.sh
7827 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7835 if test "$GCC" = yes; then
7836 # Check if gcc -print-prog-name=ld gives a path.
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7838 $as_echo_n "checking for ld used by GCC... " >&6; }
7841 # gcc leaves a trailing carriage return which upsets mingw
7842 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7844 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7847 # Accept absolute paths.
7848 [\\/]* |
[A-Za-z
]:[\\/]*)
7849 re_direlt
='/[^/][^/]*/\.\./'
7850 # Canonicalize the path of ld
7851 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7852 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7853 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7855 test -z "$LD" && LD
="$ac_prog"
7858 # If it fails, then pretend we aren't using GCC.
7862 # If it is relative, then search for the first ld in PATH.
7866 elif test "$with_gnu_ld" = yes; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7868 $as_echo_n "checking for GNU ld... " >&6; }
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7871 $as_echo_n "checking for non-GNU ld... " >&6; }
7873 if test "${acl_cv_path_LD+set}" = set; then :
7874 $as_echo_n "(cached) " >&6
7876 if test -z "$LD"; then
7877 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7878 for ac_dir
in $PATH; do
7879 test -z "$ac_dir" && ac_dir
=.
7880 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7881 acl_cv_path_LD
="$ac_dir/$ac_prog"
7882 # Check to see if the program is GNU ld. I'd rather use --version,
7883 # but apparently some GNU ld's only accept -v.
7884 # Break only if it was the GNU/non-GNU ld that we prefer.
7885 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7886 test "$with_gnu_ld" != no
&& break
7888 test "$with_gnu_ld" != yes && break
7894 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7898 LD
="$acl_cv_path_LD"
7899 if test -n "$LD"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7901 $as_echo "$LD" >&6; }
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7906 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7908 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7909 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7910 $as_echo_n "(cached) " >&6
7912 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7913 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7914 acl_cv_prog_gnu_ld
=yes
7916 acl_cv_prog_gnu_ld
=no
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7920 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7921 with_gnu_ld
=$acl_cv_prog_gnu_ld
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7926 $as_echo_n "checking for shared library run path origin... " >&6; }
7927 if test "${acl_cv_rpath+set}" = set; then :
7928 $as_echo_n "(cached) " >&6
7931 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7932 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7939 $as_echo "$acl_cv_rpath" >&6; }
7941 libext
="$acl_cv_libext"
7942 shlibext
="$acl_cv_shlibext"
7943 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7944 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7945 hardcode_direct
="$acl_cv_hardcode_direct"
7946 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7947 # Check whether --enable-rpath was given.
7948 if test "${enable_rpath+set}" = set; then :
7949 enableval
=$enable_rpath; :
7965 acl_save_prefix
="$prefix"
7966 prefix
="$acl_final_prefix"
7967 acl_save_exec_prefix
="$exec_prefix"
7968 exec_prefix
="$acl_final_exec_prefix"
7970 eval additional_includedir
=\"$includedir\"
7971 eval additional_libdir
=\"$libdir\"
7973 exec_prefix
="$acl_save_exec_prefix"
7974 prefix
="$acl_save_prefix"
7977 # Check whether --with-libexpat-prefix was given.
7978 if test "${with_libexpat_prefix+set}" = set; then :
7979 withval
=$with_libexpat_prefix;
7980 if test "X$withval" = "Xno"; then
7983 if test "X$withval" = "X"; then
7985 acl_save_prefix
="$prefix"
7986 prefix
="$acl_final_prefix"
7987 acl_save_exec_prefix
="$exec_prefix"
7988 exec_prefix
="$acl_final_exec_prefix"
7990 eval additional_includedir
=\"$includedir\"
7991 eval additional_libdir
=\"$libdir\"
7993 exec_prefix
="$acl_save_exec_prefix"
7994 prefix
="$acl_save_prefix"
7997 additional_includedir
="$withval/include"
7998 additional_libdir
="$withval/lib"
8009 names_already_handled
=
8010 names_next_round
='expat '
8011 while test -n "$names_next_round"; do
8012 names_this_round
="$names_next_round"
8014 for name
in $names_this_round; do
8016 for n
in $names_already_handled; do
8017 if test "$n" = "$name"; then
8022 if test -z "$already_handled"; then
8023 names_already_handled
="$names_already_handled $name"
8024 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8025 eval value
=\"\
$HAVE_LIB$uppername\"
8026 if test -n "$value"; then
8027 if test "$value" = yes; then
8028 eval value
=\"\
$LIB$uppername\"
8029 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
8030 eval value
=\"\
$LTLIB$uppername\"
8031 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8040 if test $use_additional = yes; then
8041 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8042 found_dir
="$additional_libdir"
8043 found_so
="$additional_libdir/lib$name.$shlibext"
8044 if test -f "$additional_libdir/lib$name.la"; then
8045 found_la
="$additional_libdir/lib$name.la"
8048 if test -f "$additional_libdir/lib$name.$libext"; then
8049 found_dir
="$additional_libdir"
8050 found_a
="$additional_libdir/lib$name.$libext"
8051 if test -f "$additional_libdir/lib$name.la"; then
8052 found_la
="$additional_libdir/lib$name.la"
8057 if test "X$found_dir" = "X"; then
8058 for x
in $LDFLAGS $LTLIBEXPAT; do
8060 acl_save_prefix
="$prefix"
8061 prefix
="$acl_final_prefix"
8062 acl_save_exec_prefix
="$exec_prefix"
8063 exec_prefix
="$acl_final_exec_prefix"
8065 exec_prefix
="$acl_save_exec_prefix"
8066 prefix
="$acl_save_prefix"
8070 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8071 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8073 found_so
="$dir/lib$name.$shlibext"
8074 if test -f "$dir/lib$name.la"; then
8075 found_la
="$dir/lib$name.la"
8078 if test -f "$dir/lib$name.$libext"; then
8080 found_a
="$dir/lib$name.$libext"
8081 if test -f "$dir/lib$name.la"; then
8082 found_la
="$dir/lib$name.la"
8088 if test "X$found_dir" != "X"; then
8093 if test "X$found_dir" != "X"; then
8094 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8095 if test "X$found_so" != "X"; then
8096 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8097 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8100 for x
in $ltrpathdirs; do
8101 if test "X$x" = "X$found_dir"; then
8106 if test -z "$haveit"; then
8107 ltrpathdirs
="$ltrpathdirs $found_dir"
8109 if test "$hardcode_direct" = yes; then
8110 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8112 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8113 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8115 for x
in $rpathdirs; do
8116 if test "X$x" = "X$found_dir"; then
8121 if test -z "$haveit"; then
8122 rpathdirs
="$rpathdirs $found_dir"
8126 for x
in $LDFLAGS $LIBEXPAT; do
8128 acl_save_prefix
="$prefix"
8129 prefix
="$acl_final_prefix"
8130 acl_save_exec_prefix
="$exec_prefix"
8131 exec_prefix
="$acl_final_exec_prefix"
8133 exec_prefix
="$acl_save_exec_prefix"
8134 prefix
="$acl_save_prefix"
8136 if test "X$x" = "X-L$found_dir"; then
8141 if test -z "$haveit"; then
8142 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8144 if test "$hardcode_minus_L" != no
; then
8145 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8147 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8153 if test "X$found_a" != "X"; then
8154 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8156 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8159 additional_includedir
=
8160 case "$found_dir" in
8162 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8163 additional_includedir
="$basedir/include"
8166 if test "X$additional_includedir" != "X"; then
8167 if test "X$additional_includedir" != "X/usr/include"; then
8169 if test "X$additional_includedir" = "X/usr/local/include"; then
8170 if test -n "$GCC"; then
8172 linux
*) haveit
=yes;;
8176 if test -z "$haveit"; then
8177 for x
in $CPPFLAGS $INCEXPAT; do
8179 acl_save_prefix
="$prefix"
8180 prefix
="$acl_final_prefix"
8181 acl_save_exec_prefix
="$exec_prefix"
8182 exec_prefix
="$acl_final_exec_prefix"
8184 exec_prefix
="$acl_save_exec_prefix"
8185 prefix
="$acl_save_prefix"
8187 if test "X$x" = "X-I$additional_includedir"; then
8192 if test -z "$haveit"; then
8193 if test -d "$additional_includedir"; then
8194 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8200 if test -n "$found_la"; then
8201 save_libdir
="$libdir"
8203 */* |
*\\*) .
"$found_la" ;;
8204 *) .
"./$found_la" ;;
8206 libdir
="$save_libdir"
8207 for dep
in $dependency_libs; do
8210 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8211 if test "X$additional_libdir" != "X/usr/lib"; then
8213 if test "X$additional_libdir" = "X/usr/local/lib"; then
8214 if test -n "$GCC"; then
8216 linux
*) haveit
=yes;;
8220 if test -z "$haveit"; then
8222 for x
in $LDFLAGS $LIBEXPAT; do
8224 acl_save_prefix
="$prefix"
8225 prefix
="$acl_final_prefix"
8226 acl_save_exec_prefix
="$exec_prefix"
8227 exec_prefix
="$acl_final_exec_prefix"
8229 exec_prefix
="$acl_save_exec_prefix"
8230 prefix
="$acl_save_prefix"
8232 if test "X$x" = "X-L$additional_libdir"; then
8237 if test -z "$haveit"; then
8238 if test -d "$additional_libdir"; then
8239 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8243 for x
in $LDFLAGS $LTLIBEXPAT; do
8245 acl_save_prefix
="$prefix"
8246 prefix
="$acl_final_prefix"
8247 acl_save_exec_prefix
="$exec_prefix"
8248 exec_prefix
="$acl_final_exec_prefix"
8250 exec_prefix
="$acl_save_exec_prefix"
8251 prefix
="$acl_save_prefix"
8253 if test "X$x" = "X-L$additional_libdir"; then
8258 if test -z "$haveit"; then
8259 if test -d "$additional_libdir"; then
8260 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8267 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8268 if test "$enable_rpath" != no
; then
8270 for x
in $rpathdirs; do
8271 if test "X$x" = "X$dir"; then
8276 if test -z "$haveit"; then
8277 rpathdirs
="$rpathdirs $dir"
8280 for x
in $ltrpathdirs; do
8281 if test "X$x" = "X$dir"; then
8286 if test -z "$haveit"; then
8287 ltrpathdirs
="$ltrpathdirs $dir"
8292 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8295 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8298 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8299 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8305 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8306 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8312 if test "X$rpathdirs" != "X"; then
8313 if test -n "$hardcode_libdir_separator"; then
8315 for found_dir
in $rpathdirs; do
8316 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8318 acl_save_libdir
="$libdir"
8320 eval flag
=\"$hardcode_libdir_flag_spec\"
8321 libdir
="$acl_save_libdir"
8322 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8324 for found_dir
in $rpathdirs; do
8325 acl_save_libdir
="$libdir"
8327 eval flag
=\"$hardcode_libdir_flag_spec\"
8328 libdir
="$acl_save_libdir"
8329 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8333 if test "X$ltrpathdirs" != "X"; then
8334 for found_dir
in $ltrpathdirs; do
8335 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
8340 ac_save_CPPFLAGS
="$CPPFLAGS"
8342 for element
in $INCEXPAT; do
8344 for x
in $CPPFLAGS; do
8346 acl_save_prefix
="$prefix"
8347 prefix
="$acl_final_prefix"
8348 acl_save_exec_prefix
="$exec_prefix"
8349 exec_prefix
="$acl_final_exec_prefix"
8351 exec_prefix
="$acl_save_exec_prefix"
8352 prefix
="$acl_save_prefix"
8354 if test "X$x" = "X$element"; then
8359 if test -z "$haveit"; then
8360 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8366 $as_echo_n "checking for libexpat... " >&6; }
8367 if test "${ac_cv_libexpat+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
8371 ac_save_LIBS
="$LIBS"
8372 LIBS
="$LIBS $LIBEXPAT"
8373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8379 XML_Parser p = XML_ParserCreate (0);
8384 if ac_fn_c_try_link
"$LINENO"; then :
8389 rm -f core conftest.err conftest.
$ac_objext \
8390 conftest
$ac_exeext conftest.
$ac_ext
8391 LIBS
="$ac_save_LIBS"
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8395 $as_echo "$ac_cv_libexpat" >&6; }
8396 if test "$ac_cv_libexpat" = yes; then
8399 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8402 $as_echo_n "checking how to link with libexpat... " >&6; }
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8404 $as_echo "$LIBEXPAT" >&6; }
8407 CPPFLAGS
="$ac_save_CPPFLAGS"
8417 if test "$HAVE_LIBEXPAT" != yes; then
8418 if test "$with_expat" = yes; then
8419 as_fn_error
"expat is missing or unusable" "$LINENO" 5
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8422 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8426 LIBS
="$LIBS $LIBEXPAT"
8427 for ac_func
in XML_StopParser
8429 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8430 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
8431 cat >>confdefs.h
<<_ACEOF
8432 #define HAVE_XML_STOPPARSER 1
8442 # --------------------- #
8443 # Check for libpython. #
8444 # --------------------- #
8451 # Check whether --with-python was given.
8452 if test "${with_python+set}" = set; then :
8453 withval
=$with_python;
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8459 $as_echo_n "checking whether to use python... " >&6; }
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8461 $as_echo "$with_python" >&6; }
8463 if test "${with_python}" = no
; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8465 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8468 case "${with_python}" in
8470 if test -d ${with_python}; then
8471 # Assume the python binary is ${with_python}/bin/python.
8472 python_prog
="${with_python}/bin/python"
8474 # If python does not exit ${with_python}/bin, then try in
8475 # ${with_python}. On Windows/MinGW, this is where the Python
8477 if test ! -x "${python_prog}"; then
8478 python_prog
="${with_python}/python"
8481 if test ! -x "${python_prog}"; then
8482 # Fall back to gdb 7.0/7.1 behaviour.
8484 python_prefix
=${with_python}
8486 elif test -x "${with_python}"; then
8487 # While we can't run python compiled for $host (unless host == build),
8488 # the user could write a script that provides the needed information,
8489 # so we support that.
8490 python_prog
=${with_python}
8493 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8497 # Disallow --with-python=foo/bar.
8498 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8501 # The user has either specified auto, yes, or the name of the python
8502 # program assumed to be in $PATH.
8504 case "${with_python}" in
8506 if test ${build} = ${host}; then
8507 # Extract the first word of "python", so it can be a program name with args.
8508 set dummy python
; ac_word
=$2
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8512 $as_echo_n "(cached) " >&6
8514 case $python_prog_path in
8516 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8523 test -z "$as_dir" && as_dir
=.
8524 for ac_exec_ext
in '' $ac_executable_extensions; do
8525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8526 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8538 python_prog_path
=$ac_cv_path_python_prog_path
8539 if test -n "$python_prog_path"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8541 $as_echo "$python_prog_path" >&6; }
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8548 if test "${python_prog_path}" = missing
; then
8551 python_prog
=${python_prog_path}
8554 # Not much we can do except assume the cross-compiler will find the
8560 # While we can't run python compiled for $host (unless host == build),
8561 # the user could write a script that provides the needed information,
8562 # so we support that.
8563 python_prog
="${with_python}"
8564 # Extract the first word of "${python_prog}", so it can be a program name with args.
8565 set dummy
${python_prog}; ac_word
=$2
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567 $as_echo_n "checking for $ac_word... " >&6; }
8568 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8569 $as_echo_n "(cached) " >&6
8571 case $python_prog_path in
8573 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8580 test -z "$as_dir" && as_dir
=.
8581 for ac_exec_ext
in '' $ac_executable_extensions; do
8582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8583 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8591 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8595 python_prog_path
=$ac_cv_path_python_prog_path
8596 if test -n "$python_prog_path"; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8598 $as_echo "$python_prog_path" >&6; }
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601 $as_echo "no" >&6; }
8605 if test "${python_prog_path}" = missing
; then
8606 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
8612 if test "${python_prog}" != missing
; then
8613 # We have a python program to use, but it may be too old.
8614 # Don't flag an error for --with-python=auto (the default).
8615 have_python_config
=yes
8616 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
8617 if test $?
!= 0; then
8618 have_python_config
=failed
8619 if test "${with_python}" != auto
; then
8620 as_fn_error
"failure running python-config --includes" "$LINENO" 5
8623 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8624 if test $?
!= 0; then
8625 have_python_config
=failed
8626 if test "${with_python}" != auto
; then
8627 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
8630 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8631 if test $?
!= 0; then
8632 have_python_config
=failed
8633 if test "${with_python}" != auto
; then
8634 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
8638 # We do not have a python executable we can use to determine where
8639 # to find the Python headers and libs. We cannot guess the include
8640 # path from the python_prefix either, because that include path
8641 # depends on the Python version. So, there is nothing much we can
8642 # do except assume that the compiler will be able to find those files.
8645 have_python_config
=no
8648 # If we have python-config, only try the configuration it provides.
8649 # Otherwise fallback on the old way of trying different versions of
8653 if test "${have_python_config}" = yes; then
8654 # Determine the Python version by extracting "-lpython<version>"
8655 # part of the python_libs. <version> is usually X.Y with X and Y
8656 # being decimal numbers, but can also be XY (seen on Windows).
8658 # The extraction is performed using sed with a regular expression.
8659 # Initially, the regexp used was using the '?' quantifier to make
8660 # the dot in the version number optional. Unfortunately, this
8661 # does not work with non-GNU versions of sed because, because of
8662 # what looks like a limitation (the '?' quantifier does not work
8663 # with back-references). We work around this limitation by using
8664 # the '*' quantifier instead. It means that, in theory, we might
8665 # match unexpected version strings such as "-lpython2..7", but
8666 # this seems unlikely in practice. And even if that happens,
8667 # an error will be triggered later on, when checking that version
8669 python_version
=`echo " ${python_libs} " \
8670 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8671 case "${python_version}" in
8674 version
=${python_version}
8676 new_CPPFLAGS
=${python_includes}
8677 new_LIBS
=${python_libs}
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8679 $as_echo_n "checking for ${version}... " >&6; }
8680 save_CPPFLAGS
=$CPPFLAGS
8682 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8683 LIBS
="$LIBS $new_LIBS"
8684 found_usable_python
=no
8685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8696 if ac_fn_c_try_link
"$LINENO"; then :
8697 have_libpython
=${version}
8698 found_usable_python
=yes
8699 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8700 PYTHON_LIBS
=$new_LIBS
8702 rm -f core conftest.err conftest.
$ac_objext \
8703 conftest
$ac_exeext conftest.
$ac_ext
8704 CPPFLAGS
=$save_CPPFLAGS
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8707 $as_echo "${found_usable_python}" >&6; }
8711 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
8714 elif test "${have_python_config}" != failed
; then
8715 if test "${have_libpython}" = no
; then
8719 new_CPPFLAGS
=${python_includes}
8720 new_LIBS
="${python_libs} -lpython2.7"
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8722 $as_echo_n "checking for ${version}... " >&6; }
8723 save_CPPFLAGS
=$CPPFLAGS
8725 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8726 LIBS
="$LIBS $new_LIBS"
8727 found_usable_python
=no
8728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8739 if ac_fn_c_try_link
"$LINENO"; then :
8740 have_libpython
=${version}
8741 found_usable_python
=yes
8742 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8743 PYTHON_LIBS
=$new_LIBS
8745 rm -f core conftest.err conftest.
$ac_objext \
8746 conftest
$ac_exeext conftest.
$ac_ext
8747 CPPFLAGS
=$save_CPPFLAGS
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8750 $as_echo "${found_usable_python}" >&6; }
8753 if test "${have_libpython}" = no
; then
8757 new_CPPFLAGS
=${python_includes}
8758 new_LIBS
="${python_libs} -lpython2.6"
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8760 $as_echo_n "checking for ${version}... " >&6; }
8761 save_CPPFLAGS
=$CPPFLAGS
8763 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8764 LIBS
="$LIBS $new_LIBS"
8765 found_usable_python
=no
8766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h. */
8777 if ac_fn_c_try_link
"$LINENO"; then :
8778 have_libpython
=${version}
8779 found_usable_python
=yes
8780 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8781 PYTHON_LIBS
=$new_LIBS
8783 rm -f core conftest.err conftest.
$ac_objext \
8784 conftest
$ac_exeext conftest.
$ac_ext
8785 CPPFLAGS
=$save_CPPFLAGS
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8788 $as_echo "${found_usable_python}" >&6; }
8791 if test ${have_libpython} = no
; then
8795 new_CPPFLAGS
=${python_includes}
8796 new_LIBS
="${python_libs} -lpython2.5"
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8798 $as_echo_n "checking for ${version}... " >&6; }
8799 save_CPPFLAGS
=$CPPFLAGS
8801 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8802 LIBS
="$LIBS $new_LIBS"
8803 found_usable_python
=no
8804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8815 if ac_fn_c_try_link
"$LINENO"; then :
8816 have_libpython
=${version}
8817 found_usable_python
=yes
8818 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8819 PYTHON_LIBS
=$new_LIBS
8821 rm -f core conftest.err conftest.
$ac_objext \
8822 conftest
$ac_exeext conftest.
$ac_ext
8823 CPPFLAGS
=$save_CPPFLAGS
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8826 $as_echo "${found_usable_python}" >&6; }
8829 if test ${have_libpython} = no
; then
8833 new_CPPFLAGS
=${python_includes}
8834 new_LIBS
="${python_libs} -lpython2.4"
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8836 $as_echo_n "checking for ${version}... " >&6; }
8837 save_CPPFLAGS
=$CPPFLAGS
8839 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8840 LIBS
="$LIBS $new_LIBS"
8841 found_usable_python
=no
8842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h. */
8853 if ac_fn_c_try_link
"$LINENO"; then :
8854 have_libpython
=${version}
8855 found_usable_python
=yes
8856 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8857 PYTHON_LIBS
=$new_LIBS
8859 rm -f core conftest.err conftest.
$ac_objext \
8860 conftest
$ac_exeext conftest.
$ac_ext
8861 CPPFLAGS
=$save_CPPFLAGS
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8864 $as_echo "${found_usable_python}" >&6; }
8868 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
8870 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8872 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
8874 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8876 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
8878 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8880 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
8882 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8886 if test "${have_libpython}" = no
; then
8887 case "${with_python}" in
8889 as_fn_error
"python is missing or unusable" "$LINENO" 5
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8893 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8896 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
8900 if test -n "${python_prefix}"; then
8902 cat >>confdefs.h
<<_ACEOF
8903 #define WITH_PYTHON_PATH "${python_prefix}"
8907 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8908 if test "x$prefix" = xNONE
; then
8909 test_prefix
=/usr
/local
8914 test_prefix
=$exec_prefix
8917 case ${python_prefix} in
8918 "${test_prefix}"|
"${test_prefix}/"*|\
8919 '${exec_prefix}'|
'${exec_prefix}/'*)
8924 cat >>confdefs.h
<<_ACEOF
8925 #define PYTHON_PATH_RELOCATABLE $value
8933 if test "${have_libpython}" != no
; then
8935 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8937 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8938 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8939 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8940 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
8941 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8943 # Flags needed to compile Python code (taken from python-config --cflags).
8944 # We cannot call python-config directly because it will output whatever was
8945 # used when compiling the Python interpreter itself, including flags which
8946 # would make the python-related objects be compiled differently from the
8947 # rest of GDB (e.g., -O2 and -fPIC).
8948 if test "${GCC}" = yes; then
8949 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
8952 if test "x${tentative_python_cflags}" != x
; then
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8954 $as_echo_n "checking compiler flags for python code... " >&6; }
8955 for flag
in ${tentative_python_cflags}; do
8956 # Check that the compiler accepts it
8957 saved_CFLAGS
="$CFLAGS"
8958 CFLAGS
="$CFLAGS $flag"
8959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h. */
8970 if ac_fn_c_try_compile
"$LINENO"; then :
8971 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
8973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8974 CFLAGS
="$saved_CFLAGS"
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8977 $as_echo "${PYTHON_CFLAGS}" >&6; }
8980 # On x64 Windows, Python's include headers, and pyconfig.h in
8981 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
8982 # version of Windows. Unfortunately, MS_WIN64 is only defined if
8983 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
8984 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
8985 # The issue was reported to the Python community, but still isn't
8986 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
8990 if test "${GCC}" = yes; then
8991 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
8996 # Note that "python -m threading" cannot be used to check for
8997 # threading support due to a bug in Python 2.7.3
8998 # (http://bugs.python.org/issue15567).
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
9000 $as_echo_n "checking whether python supports threads... " >&6; }
9001 saved_CPPFLAGS
="${CPPFLAGS}"
9002 CPPFLAGS
="${PYTHON_CPPFLAGS}"
9003 # Note that the test is reversed so that python_has_threads=yes on
9004 # unexpected failures.
9005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9014 if ac_fn_c_try_cpp
"$LINENO"; then :
9015 python_has_threads
=no
9017 python_has_threads
=yes
9019 rm -f conftest.err conftest.
$ac_ext
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
9021 $as_echo "${python_has_threads}" >&6; }
9022 CPPFLAGS
="${saved_CPPFLAGS}"
9024 # Even if Python support is not compiled in, we need to have this file
9025 # included so that the "python" command, et.al., still exists.
9026 CONFIG_OBS
="$CONFIG_OBS python.o"
9027 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
9032 if test "${have_libpython}" != no
; then
9034 HAVE_PYTHON_FALSE
='#'
9036 HAVE_PYTHON_TRUE
='#'
9041 # -------------------- #
9042 # Check for libguile. #
9043 # -------------------- #
9050 # Check whether --with-guile was given.
9051 if test "${with_guile+set}" = set; then :
9052 withval
=$with_guile;
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
9058 $as_echo_n "checking whether to use guile... " >&6; }
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
9060 $as_echo "$with_guile" >&6; }
9062 # Extract the first word of "pkg-config", so it can be a program name with args.
9063 set dummy pkg-config
; ac_word
=$2
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065 $as_echo_n "checking for $ac_word... " >&6; }
9066 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9069 case $pkg_config_prog_path in
9071 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
9074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9078 test -z "$as_dir" && as_dir
=.
9079 for ac_exec_ext
in '' $ac_executable_extensions; do
9080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9081 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
9082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9089 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
9093 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
9094 if test -n "$pkg_config_prog_path"; then
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
9096 $as_echo "$pkg_config_prog_path" >&6; }
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099 $as_echo "no" >&6; }
9104 try_guile_versions
="guile-2.2 guile-2.0"
9106 case "${with_guile}" in
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
9109 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
9112 if test "${pkg_config_prog_path}" = "missing"; then
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
9114 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
9117 pkg_config
=${pkg_config_prog_path}
9118 guile_version_list
=${try_guile_versions}
9121 found_usable_guile
=checking
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9123 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9124 for guile_version
in ${guile_version_list}; do
9125 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9126 if test $?
!= 0; then
9129 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9130 if test $?
!= 0; then
9131 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9133 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9134 if test $?
!= 0; then
9135 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9137 found_usable_guile
=${guile_version}
9140 if test "${found_usable_guile}" = "checking"; then
9141 if test "${flag_errors}" = "yes"; then
9142 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9144 found_usable_guile
=no
9147 if test "${found_usable_guile}" != no
; then
9148 save_CPPFLAGS
=$CPPFLAGS
9150 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9151 LIBS
="$LIBS $new_LIBS"
9152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9154 #include "libguile.h"
9163 if ac_fn_c_try_link
"$LINENO"; then :
9165 GUILE_CPPFLAGS
=$new_CPPFLAGS
9166 GUILE_LIBS
=$new_LIBS
9168 found_usable_guile
=no
9170 rm -f core conftest.err conftest.
$ac_objext \
9171 conftest
$ac_exeext conftest.
$ac_ext
9172 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9173 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9175 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9180 CPPFLAGS
=$save_CPPFLAGS
9182 if test "${found_usable_guile}" = no
; then
9183 if test "${flag_errors}" = yes; then
9184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9186 as_fn_error
"linking guile version ${guile_version} test program failed
9187 See \`config.log' for more details." "$LINENO" 5; }
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9192 $as_echo "${found_usable_guile}" >&6; }
9197 if test "${pkg_config_prog_path}" = "missing"; then
9198 as_fn_error
"pkg-config not found" "$LINENO" 5
9201 pkg_config
=${pkg_config_prog_path}
9202 guile_version_list
=${try_guile_versions}
9205 found_usable_guile
=checking
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9207 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9208 for guile_version
in ${guile_version_list}; do
9209 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9210 if test $?
!= 0; then
9213 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9214 if test $?
!= 0; then
9215 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9217 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9218 if test $?
!= 0; then
9219 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9221 found_usable_guile
=${guile_version}
9224 if test "${found_usable_guile}" = "checking"; then
9225 if test "${flag_errors}" = "yes"; then
9226 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9228 found_usable_guile
=no
9231 if test "${found_usable_guile}" != no
; then
9232 save_CPPFLAGS
=$CPPFLAGS
9234 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9235 LIBS
="$LIBS $new_LIBS"
9236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9238 #include "libguile.h"
9247 if ac_fn_c_try_link
"$LINENO"; then :
9249 GUILE_CPPFLAGS
=$new_CPPFLAGS
9250 GUILE_LIBS
=$new_LIBS
9252 found_usable_guile
=no
9254 rm -f core conftest.err conftest.
$ac_objext \
9255 conftest
$ac_exeext conftest.
$ac_ext
9256 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9257 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9259 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9264 CPPFLAGS
=$save_CPPFLAGS
9266 if test "${found_usable_guile}" = no
; then
9267 if test "${flag_errors}" = yes; then
9268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9270 as_fn_error
"linking guile version ${guile_version} test program failed
9271 See \`config.log' for more details." "$LINENO" 5; }
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9276 $as_echo "${found_usable_guile}" >&6; }
9280 if test -x "${with_guile}"; then
9282 pkg_config
=${with_guile}
9283 guile_version_list
=${try_guile_versions}
9286 found_usable_guile
=checking
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9288 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9289 for guile_version
in ${guile_version_list}; do
9290 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9291 if test $?
!= 0; then
9294 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9295 if test $?
!= 0; then
9296 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9298 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9299 if test $?
!= 0; then
9300 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9302 found_usable_guile
=${guile_version}
9305 if test "${found_usable_guile}" = "checking"; then
9306 if test "${flag_errors}" = "yes"; then
9307 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9309 found_usable_guile
=no
9312 if test "${found_usable_guile}" != no
; then
9313 save_CPPFLAGS
=$CPPFLAGS
9315 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9316 LIBS
="$LIBS $new_LIBS"
9317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9319 #include "libguile.h"
9328 if ac_fn_c_try_link
"$LINENO"; then :
9330 GUILE_CPPFLAGS
=$new_CPPFLAGS
9331 GUILE_LIBS
=$new_LIBS
9333 found_usable_guile
=no
9335 rm -f core conftest.err conftest.
$ac_objext \
9336 conftest
$ac_exeext conftest.
$ac_ext
9337 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9338 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9340 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9345 CPPFLAGS
=$save_CPPFLAGS
9347 if test "${found_usable_guile}" = no
; then
9348 if test "${flag_errors}" = yes; then
9349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9351 as_fn_error
"linking guile version ${guile_version} test program failed
9352 See \`config.log' for more details." "$LINENO" 5; }
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9357 $as_echo "${found_usable_guile}" >&6; }
9360 as_fn_error
"Guile config program not executable: ${with_guile}" "$LINENO" 5
9364 # Disallow --with=guile="" and --with-guile=foo/bar.
9365 as_fn_error
"invalid value for --with-guile" "$LINENO" 5
9368 # A space separate list of guile versions to try, in order.
9369 if test "${pkg_config_prog_path}" = "missing"; then
9370 as_fn_error
"pkg-config not found" "$LINENO" 5
9373 pkg_config
=${pkg_config_prog_path}
9374 guile_version_list
=${with_guile}
9377 found_usable_guile
=checking
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9379 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9380 for guile_version
in ${guile_version_list}; do
9381 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9382 if test $?
!= 0; then
9385 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9386 if test $?
!= 0; then
9387 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9389 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9390 if test $?
!= 0; then
9391 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9393 found_usable_guile
=${guile_version}
9396 if test "${found_usable_guile}" = "checking"; then
9397 if test "${flag_errors}" = "yes"; then
9398 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9400 found_usable_guile
=no
9403 if test "${found_usable_guile}" != no
; then
9404 save_CPPFLAGS
=$CPPFLAGS
9406 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9407 LIBS
="$LIBS $new_LIBS"
9408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410 #include "libguile.h"
9419 if ac_fn_c_try_link
"$LINENO"; then :
9421 GUILE_CPPFLAGS
=$new_CPPFLAGS
9422 GUILE_LIBS
=$new_LIBS
9424 found_usable_guile
=no
9426 rm -f core conftest.err conftest.
$ac_objext \
9427 conftest
$ac_exeext conftest.
$ac_ext
9428 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9429 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9431 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9436 CPPFLAGS
=$save_CPPFLAGS
9438 if test "${found_usable_guile}" = no
; then
9439 if test "${flag_errors}" = yes; then
9440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9442 as_fn_error
"linking guile version ${guile_version} test program failed
9443 See \`config.log' for more details." "$LINENO" 5; }
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9448 $as_echo "${found_usable_guile}" >&6; }
9453 if test "${have_libguile}" != no
; then
9454 case "${with_guile}" in
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9458 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9459 if test "${ac_cv_guild_program_name+set}" = set; then :
9460 $as_echo_n "(cached) " >&6
9462 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
9464 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9465 # the 'guild' and 'bindir' variables. In that case, try to guess
9466 # what the program name is, at the risk of getting it wrong if
9467 # Guile was configured with '--program-suffix' or similar.
9468 if test "x$ac_cv_guild_program_name" = "x"; then
9469 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
9470 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9475 $as_echo "$ac_cv_guild_program_name" >&6; }
9477 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9478 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9481 GUILD
="$ac_cv_guild_program_name"
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9488 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9489 if test "${ac_cv_guild_program_name+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9492 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
9494 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9495 # the 'guild' and 'bindir' variables. In that case, try to guess
9496 # what the program name is, at the risk of getting it wrong if
9497 # Guile was configured with '--program-suffix' or similar.
9498 if test "x$ac_cv_guild_program_name" = "x"; then
9499 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
9500 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9505 $as_echo "$ac_cv_guild_program_name" >&6; }
9507 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9508 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9511 GUILD
="$ac_cv_guild_program_name"
9518 if test "$cross_compiling" = no
; then
9521 GUILD_TARGET_FLAG
="--target=$host"
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
9528 $as_echo_n "checking whether guild supports this host... " >&6; }
9529 if test "${ac_cv_guild_ok+set}" = set; then :
9530 $as_echo_n "(cached) " >&6
9532 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
9533 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
9540 $as_echo "$ac_cv_guild_ok" >&6; }
9542 if test "$ac_cv_guild_ok" = no
; then
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
9545 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
9549 if test "${have_libguile}" != no
; then
9551 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9553 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9554 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9555 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9556 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
9557 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9560 save_CPPFLAGS
="$CPPFLAGS"
9562 CPPFLAGS
="$GUILE_CPPFLAGS"
9563 for ac_func
in scm_new_smob
9565 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9566 if test "x$ac_cv_func_scm_new_smob" = x
""yes; then :
9567 cat >>confdefs.h
<<_ACEOF
9568 #define HAVE_SCM_NEW_SMOB 1
9575 CPPFLAGS
="$save_CPPFLAGS"
9577 # Even if Guile support is not compiled in, we need to have these files
9579 CONFIG_OBS
="$CONFIG_OBS guile.o"
9580 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
9584 if test "${have_libguile}" != no
; then
9586 HAVE_GUILE_FALSE
='#'
9593 # --------------------- #
9594 # Check for libmcheck. #
9595 # --------------------- #
9597 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
9598 # but turn it off if Python is enabled with threads, since -lmcheck is
9599 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
9601 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
9602 && $development; then
9603 libmcheck_default
=yes
9605 libmcheck_default
=no
9608 # Check whether --enable-libmcheck was given.
9609 if test "${enable_libmcheck+set}" = set; then :
9610 enableval
=$enable_libmcheck; case "${enableval}" in
9611 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
9612 no | n
) ENABLE_LIBMCHECK
="no" ;;
9613 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
9618 if test -z "${ENABLE_LIBMCHECK}"; then
9619 ENABLE_LIBMCHECK
=${libmcheck_default}
9622 if test "$ENABLE_LIBMCHECK" = "yes" ; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
9624 $as_echo_n "checking for main in -lmcheck... " >&6; }
9625 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
9626 $as_echo_n "(cached) " >&6
9628 ac_check_lib_save_LIBS
=$LIBS
9629 LIBS
="-lmcheck $LIBS"
9630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9642 if ac_fn_c_try_link
"$LINENO"; then :
9643 ac_cv_lib_mcheck_main
=yes
9645 ac_cv_lib_mcheck_main
=no
9647 rm -f core conftest.err conftest.
$ac_objext \
9648 conftest
$ac_exeext conftest.
$ac_ext
9649 LIBS
=$ac_check_lib_save_LIBS
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
9652 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
9653 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
9654 cat >>confdefs.h
<<_ACEOF
9655 #define HAVE_LIBMCHECK 1
9658 LIBS
="-lmcheck $LIBS"
9665 if test "$ENABLE_LIBMCHECK" = "yes" \
9666 -a "${have_libpython}" != "no" \
9667 -a "${python_has_threads}" = "yes" ; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
9669 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
9673 # Check whether --with-intel_pt was given.
9674 if test "${with_intel_pt+set}" = set; then :
9675 withval
=$with_intel_pt;
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
9681 $as_echo_n "checking whether to use intel pt... " >&6; }
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
9683 $as_echo "$with_intel_pt" >&6; }
9685 if test "${with_intel_pt}" = no
; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel(R) Processor Trace support disabled; some features may be unavailable." >&5
9687 $as_echo "$as_me: WARNING: Intel(R) Processor Trace support disabled; some features may be unavailable." >&2;}
9700 acl_save_prefix
="$prefix"
9701 prefix
="$acl_final_prefix"
9702 acl_save_exec_prefix
="$exec_prefix"
9703 exec_prefix
="$acl_final_exec_prefix"
9705 eval additional_includedir
=\"$includedir\"
9706 eval additional_libdir
=\"$libdir\"
9708 exec_prefix
="$acl_save_exec_prefix"
9709 prefix
="$acl_save_prefix"
9712 # Check whether --with-libipt-prefix was given.
9713 if test "${with_libipt_prefix+set}" = set; then :
9714 withval
=$with_libipt_prefix;
9715 if test "X$withval" = "Xno"; then
9718 if test "X$withval" = "X"; then
9720 acl_save_prefix
="$prefix"
9721 prefix
="$acl_final_prefix"
9722 acl_save_exec_prefix
="$exec_prefix"
9723 exec_prefix
="$acl_final_exec_prefix"
9725 eval additional_includedir
=\"$includedir\"
9726 eval additional_libdir
=\"$libdir\"
9728 exec_prefix
="$acl_save_exec_prefix"
9729 prefix
="$acl_save_prefix"
9732 additional_includedir
="$withval/include"
9733 additional_libdir
="$withval/lib"
9744 names_already_handled
=
9745 names_next_round
='ipt '
9746 while test -n "$names_next_round"; do
9747 names_this_round
="$names_next_round"
9749 for name
in $names_this_round; do
9751 for n
in $names_already_handled; do
9752 if test "$n" = "$name"; then
9757 if test -z "$already_handled"; then
9758 names_already_handled
="$names_already_handled $name"
9759 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9760 eval value
=\"\
$HAVE_LIB$uppername\"
9761 if test -n "$value"; then
9762 if test "$value" = yes; then
9763 eval value
=\"\
$LIB$uppername\"
9764 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
9765 eval value
=\"\
$LTLIB$uppername\"
9766 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
9775 if test $use_additional = yes; then
9776 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9777 found_dir
="$additional_libdir"
9778 found_so
="$additional_libdir/lib$name.$shlibext"
9779 if test -f "$additional_libdir/lib$name.la"; then
9780 found_la
="$additional_libdir/lib$name.la"
9783 if test -f "$additional_libdir/lib$name.$libext"; then
9784 found_dir
="$additional_libdir"
9785 found_a
="$additional_libdir/lib$name.$libext"
9786 if test -f "$additional_libdir/lib$name.la"; then
9787 found_la
="$additional_libdir/lib$name.la"
9792 if test "X$found_dir" = "X"; then
9793 for x
in $LDFLAGS $LTLIBIPT; do
9795 acl_save_prefix
="$prefix"
9796 prefix
="$acl_final_prefix"
9797 acl_save_exec_prefix
="$exec_prefix"
9798 exec_prefix
="$acl_final_exec_prefix"
9800 exec_prefix
="$acl_save_exec_prefix"
9801 prefix
="$acl_save_prefix"
9805 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9806 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9808 found_so
="$dir/lib$name.$shlibext"
9809 if test -f "$dir/lib$name.la"; then
9810 found_la
="$dir/lib$name.la"
9813 if test -f "$dir/lib$name.$libext"; then
9815 found_a
="$dir/lib$name.$libext"
9816 if test -f "$dir/lib$name.la"; then
9817 found_la
="$dir/lib$name.la"
9823 if test "X$found_dir" != "X"; then
9828 if test "X$found_dir" != "X"; then
9829 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9830 if test "X$found_so" != "X"; then
9831 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9832 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9835 for x
in $ltrpathdirs; do
9836 if test "X$x" = "X$found_dir"; then
9841 if test -z "$haveit"; then
9842 ltrpathdirs
="$ltrpathdirs $found_dir"
9844 if test "$hardcode_direct" = yes; then
9845 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9847 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9848 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9850 for x
in $rpathdirs; do
9851 if test "X$x" = "X$found_dir"; then
9856 if test -z "$haveit"; then
9857 rpathdirs
="$rpathdirs $found_dir"
9861 for x
in $LDFLAGS $LIBIPT; do
9863 acl_save_prefix
="$prefix"
9864 prefix
="$acl_final_prefix"
9865 acl_save_exec_prefix
="$exec_prefix"
9866 exec_prefix
="$acl_final_exec_prefix"
9868 exec_prefix
="$acl_save_exec_prefix"
9869 prefix
="$acl_save_prefix"
9871 if test "X$x" = "X-L$found_dir"; then
9876 if test -z "$haveit"; then
9877 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
9879 if test "$hardcode_minus_L" != no
; then
9880 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
9882 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
9888 if test "X$found_a" != "X"; then
9889 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
9891 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
9894 additional_includedir
=
9895 case "$found_dir" in
9897 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9898 additional_includedir
="$basedir/include"
9901 if test "X$additional_includedir" != "X"; then
9902 if test "X$additional_includedir" != "X/usr/include"; then
9904 if test "X$additional_includedir" = "X/usr/local/include"; then
9905 if test -n "$GCC"; then
9907 linux
*) haveit
=yes;;
9911 if test -z "$haveit"; then
9912 for x
in $CPPFLAGS $INCIPT; do
9914 acl_save_prefix
="$prefix"
9915 prefix
="$acl_final_prefix"
9916 acl_save_exec_prefix
="$exec_prefix"
9917 exec_prefix
="$acl_final_exec_prefix"
9919 exec_prefix
="$acl_save_exec_prefix"
9920 prefix
="$acl_save_prefix"
9922 if test "X$x" = "X-I$additional_includedir"; then
9927 if test -z "$haveit"; then
9928 if test -d "$additional_includedir"; then
9929 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
9935 if test -n "$found_la"; then
9936 save_libdir
="$libdir"
9938 */* |
*\\*) .
"$found_la" ;;
9939 *) .
"./$found_la" ;;
9941 libdir
="$save_libdir"
9942 for dep
in $dependency_libs; do
9945 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9946 if test "X$additional_libdir" != "X/usr/lib"; then
9948 if test "X$additional_libdir" = "X/usr/local/lib"; then
9949 if test -n "$GCC"; then
9951 linux
*) haveit
=yes;;
9955 if test -z "$haveit"; then
9957 for x
in $LDFLAGS $LIBIPT; do
9959 acl_save_prefix
="$prefix"
9960 prefix
="$acl_final_prefix"
9961 acl_save_exec_prefix
="$exec_prefix"
9962 exec_prefix
="$acl_final_exec_prefix"
9964 exec_prefix
="$acl_save_exec_prefix"
9965 prefix
="$acl_save_prefix"
9967 if test "X$x" = "X-L$additional_libdir"; then
9972 if test -z "$haveit"; then
9973 if test -d "$additional_libdir"; then
9974 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
9978 for x
in $LDFLAGS $LTLIBIPT; do
9980 acl_save_prefix
="$prefix"
9981 prefix
="$acl_final_prefix"
9982 acl_save_exec_prefix
="$exec_prefix"
9983 exec_prefix
="$acl_final_exec_prefix"
9985 exec_prefix
="$acl_save_exec_prefix"
9986 prefix
="$acl_save_prefix"
9988 if test "X$x" = "X-L$additional_libdir"; then
9993 if test -z "$haveit"; then
9994 if test -d "$additional_libdir"; then
9995 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10002 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10003 if test "$enable_rpath" != no
; then
10005 for x
in $rpathdirs; do
10006 if test "X$x" = "X$dir"; then
10011 if test -z "$haveit"; then
10012 rpathdirs
="$rpathdirs $dir"
10015 for x
in $ltrpathdirs; do
10016 if test "X$x" = "X$dir"; then
10021 if test -z "$haveit"; then
10022 ltrpathdirs
="$ltrpathdirs $dir"
10027 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10030 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10033 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
10034 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10040 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
10041 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10047 if test "X$rpathdirs" != "X"; then
10048 if test -n "$hardcode_libdir_separator"; then
10050 for found_dir
in $rpathdirs; do
10051 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10053 acl_save_libdir
="$libdir"
10055 eval flag
=\"$hardcode_libdir_flag_spec\"
10056 libdir
="$acl_save_libdir"
10057 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10059 for found_dir
in $rpathdirs; do
10060 acl_save_libdir
="$libdir"
10061 libdir
="$found_dir"
10062 eval flag
=\"$hardcode_libdir_flag_spec\"
10063 libdir
="$acl_save_libdir"
10064 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10068 if test "X$ltrpathdirs" != "X"; then
10069 for found_dir
in $ltrpathdirs; do
10070 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10075 ac_save_CPPFLAGS
="$CPPFLAGS"
10077 for element
in $INCIPT; do
10079 for x
in $CPPFLAGS; do
10081 acl_save_prefix
="$prefix"
10082 prefix
="$acl_final_prefix"
10083 acl_save_exec_prefix
="$exec_prefix"
10084 exec_prefix
="$acl_final_exec_prefix"
10086 exec_prefix
="$acl_save_exec_prefix"
10087 prefix
="$acl_save_prefix"
10089 if test "X$x" = "X$element"; then
10094 if test -z "$haveit"; then
10095 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10101 $as_echo_n "checking for libipt... " >&6; }
10102 if test "${ac_cv_libipt+set}" = set; then :
10103 $as_echo_n "(cached) " >&6
10106 ac_save_LIBS
="$LIBS"
10107 LIBS
="$LIBS $LIBIPT"
10108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10110 #include "intel-pt.h"
10114 pt_insn_alloc_decoder (0);
10119 if ac_fn_c_try_link
"$LINENO"; then :
10124 rm -f core conftest.err conftest.
$ac_objext \
10125 conftest
$ac_exeext conftest.
$ac_ext
10126 LIBS
="$ac_save_LIBS"
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10130 $as_echo "$ac_cv_libipt" >&6; }
10131 if test "$ac_cv_libipt" = yes; then
10134 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10137 $as_echo_n "checking how to link with libipt... " >&6; }
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10139 $as_echo "$LIBIPT" >&6; }
10142 CPPFLAGS
="$ac_save_CPPFLAGS"
10152 if test "$HAVE_LIBIPT" != yes; then
10153 if test "$with_intel_pt" = yes; then
10154 as_fn_error
"libipt is missing or unusable" "$LINENO" 5
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10157 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10162 # ------------------------- #
10163 # Checks for header files. #
10164 # ------------------------- #
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10167 $as_echo_n "checking for ANSI C header files... " >&6; }
10168 if test "${ac_cv_header_stdc+set}" = set; then :
10169 $as_echo_n "(cached) " >&6
10171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10172 /* end confdefs.h. */
10173 #include <stdlib.h>
10174 #include <stdarg.h>
10175 #include <string.h>
10186 if ac_fn_c_try_compile
"$LINENO"; then :
10187 ac_cv_header_stdc
=yes
10189 ac_cv_header_stdc
=no
10191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10193 if test $ac_cv_header_stdc = yes; then
10194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10197 #include <string.h>
10200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10201 $EGREP "memchr" >/dev
/null
2>&1; then :
10204 ac_cv_header_stdc
=no
10210 if test $ac_cv_header_stdc = yes; then
10211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10214 #include <stdlib.h>
10217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10218 $EGREP "free" >/dev
/null
2>&1; then :
10221 ac_cv_header_stdc
=no
10227 if test $ac_cv_header_stdc = yes; then
10228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10229 if test "$cross_compiling" = yes; then :
10232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10235 #include <stdlib.h>
10236 #if ((' ' & 0x0FF) == 0x020)
10237 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10238 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10240 # define ISLOWER(c) \
10241 (('a' <= (c) && (c) <= 'i') \
10242 || ('j' <= (c) && (c) <= 'r') \
10243 || ('s' <= (c) && (c) <= 'z'))
10244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10252 for (i = 0; i < 256; i++)
10253 if (XOR (islower (i), ISLOWER (i))
10254 || toupper (i) != TOUPPER (i))
10259 if ac_fn_c_try_run
"$LINENO"; then :
10262 ac_cv_header_stdc
=no
10264 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10265 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10271 $as_echo "$ac_cv_header_stdc" >&6; }
10272 if test $ac_cv_header_stdc = yes; then
10274 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10278 # elf_hp.h is for HP/UX 64-bit shared library support.
10279 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
10282 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
10283 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
10284 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
10285 termios.h termio.h \
10289 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10290 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10291 eval as_val
=\$
$as_ac_Header
10292 if test "x$as_val" = x
""yes; then :
10293 cat >>confdefs.h
<<_ACEOF
10294 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10301 for ac_header
in sys
/proc.h
10303 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
10304 # include <sys/param.h>
10308 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
10309 cat >>confdefs.h
<<_ACEOF
10310 #define HAVE_SYS_PROC_H 1
10317 for ac_header
in sys
/user.h
10319 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
10320 # include <sys/param.h>
10324 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
10325 cat >>confdefs.h
<<_ACEOF
10326 #define HAVE_SYS_USER_H 1
10334 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10335 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10336 # think that we don't have <curses.h> if we're using GCC.
10339 if test "$GCC" = yes; then
10341 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
10345 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
10347 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10348 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10349 eval as_val
=\$
$as_ac_Header
10350 if test "x$as_val" = x
""yes; then :
10351 cat >>confdefs.h
<<_ACEOF
10352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10359 for ac_header
in term.h
10361 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
10362 # include <curses.h>
10366 if test "x$ac_cv_header_term_h" = x
""yes; then :
10367 cat >>confdefs.h
<<_ACEOF
10368 #define HAVE_TERM_H 1
10376 # ------------------------- #
10377 # Checks for declarations. #
10378 # ------------------------- #
10381 # Check for presence and size of long long.
10382 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
10383 if test "x$ac_cv_type_long_long" = x
""yes; then :
10385 cat >>confdefs.h
<<_ACEOF
10386 #define HAVE_LONG_LONG 1
10389 # The cast to long int works around a bug in the HP C Compiler
10390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10392 # This bug is HP SR number 8606223364.
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10394 $as_echo_n "checking size of long long... " >&6; }
10395 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
10398 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10401 if test "$ac_cv_type_long_long" = yes; then
10402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10404 { as_fn_set_status
77
10405 as_fn_error
"cannot compute sizeof (long long)
10406 See \`config.log' for more details." "$LINENO" 5; }; }
10408 ac_cv_sizeof_long_long
=0
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10414 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10418 cat >>confdefs.h
<<_ACEOF
10419 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10426 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
10427 if test "x$ac_cv_have_decl_basename_char_p_" = x
""yes; then :
10433 cat >>confdefs.h
<<_ACEOF
10434 #define HAVE_DECL_BASENAME $ac_have_decl
10436 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10437 if test "x$ac_cv_have_decl_ffs" = x
""yes; then :
10443 cat >>confdefs.h
<<_ACEOF
10444 #define HAVE_DECL_FFS $ac_have_decl
10446 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10447 if test "x$ac_cv_have_decl_asprintf" = x
""yes; then :
10453 cat >>confdefs.h
<<_ACEOF
10454 #define HAVE_DECL_ASPRINTF $ac_have_decl
10456 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10457 if test "x$ac_cv_have_decl_vasprintf" = x
""yes; then :
10463 cat >>confdefs.h
<<_ACEOF
10464 #define HAVE_DECL_VASPRINTF $ac_have_decl
10466 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10467 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
10473 cat >>confdefs.h
<<_ACEOF
10474 #define HAVE_DECL_SNPRINTF $ac_have_decl
10476 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10477 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
10483 cat >>confdefs.h
<<_ACEOF
10484 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10487 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
10488 if test "x$ac_cv_have_decl_strtol" = x
""yes; then :
10494 cat >>confdefs.h
<<_ACEOF
10495 #define HAVE_DECL_STRTOL $ac_have_decl
10497 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
10498 if test "x$ac_cv_have_decl_strtoul" = x
""yes; then :
10504 cat >>confdefs.h
<<_ACEOF
10505 #define HAVE_DECL_STRTOUL $ac_have_decl
10507 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
10508 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
10514 cat >>confdefs.h
<<_ACEOF
10515 #define HAVE_DECL_STRTOLL $ac_have_decl
10517 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
10518 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
10524 cat >>confdefs.h
<<_ACEOF
10525 #define HAVE_DECL_STRTOULL $ac_have_decl
10528 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10529 if test "x$ac_cv_have_decl_strverscmp" = x
""yes; then :
10535 cat >>confdefs.h
<<_ACEOF
10536 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10541 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10542 if test "x$ac_cv_have_decl_free" = x
""yes; then :
10548 cat >>confdefs.h
<<_ACEOF
10549 #define HAVE_DECL_FREE $ac_have_decl
10551 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
10552 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
10558 cat >>confdefs.h
<<_ACEOF
10559 #define HAVE_DECL_MALLOC $ac_have_decl
10561 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
10562 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
10568 cat >>confdefs.h
<<_ACEOF
10569 #define HAVE_DECL_REALLOC $ac_have_decl
10571 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10572 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
10578 cat >>confdefs.h
<<_ACEOF
10579 #define HAVE_DECL_SNPRINTF $ac_have_decl
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10584 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10585 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10586 $as_echo_n "(cached) " >&6
10588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h. */
10590 #include <locale.h>
10599 if ac_fn_c_try_link
"$LINENO"; then :
10600 am_cv_val_LC_MESSAGES
=yes
10602 am_cv_val_LC_MESSAGES
=no
10604 rm -f core conftest.err conftest.
$ac_objext \
10605 conftest
$ac_exeext conftest.
$ac_ext
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10608 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10609 if test $am_cv_val_LC_MESSAGES = yes; then
10611 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10616 # ----------------------- #
10617 # Checks for structures. #
10618 # ----------------------- #
10620 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
10621 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
10623 cat >>confdefs.h
<<_ACEOF
10624 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10629 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10630 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
10632 cat >>confdefs.h
<<_ACEOF
10633 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10640 # ------------------ #
10641 # Checks for types. #
10642 # ------------------ #
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10645 $as_echo_n "checking return type of signal handlers... " >&6; }
10646 if test "${ac_cv_type_signal+set}" = set; then :
10647 $as_echo_n "(cached) " >&6
10649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h. */
10651 #include <sys/types.h>
10652 #include <signal.h>
10657 return *(signal (0, 0)) (0) == 1;
10662 if ac_fn_c_try_compile
"$LINENO"; then :
10663 ac_cv_type_signal
=int
10665 ac_cv_type_signal
=void
10667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10670 $as_echo "$ac_cv_type_signal" >&6; }
10672 cat >>confdefs.h
<<_ACEOF
10673 #define RETSIGTYPE $ac_cv_type_signal
10677 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
10678 #include <sys/socket.h>
10681 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
10683 cat >>confdefs.h
<<_ACEOF
10684 #define HAVE_SOCKLEN_T 1
10691 # ------------------------------------- #
10692 # Checks for compiler characteristics. #
10693 # ------------------------------------- #
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10696 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10697 if test "${ac_cv_c_const+set}" = set; then :
10698 $as_echo_n "(cached) " >&6
10700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10706 /* FIXME: Include the comments suggested by Paul. */
10707 #ifndef __cplusplus
10708 /* Ultrix mips cc rejects this. */
10709 typedef int charset[2];
10711 /* SunOS 4.1.1 cc rejects this. */
10712 char const *const *pcpcc;
10714 /* NEC SVR4.0.2 mips cc rejects this. */
10715 struct point {int x, y;};
10716 static struct point const zero = {0,0};
10717 /* AIX XL C 1.02.0.0 rejects this.
10718 It does not let you subtract one const X* pointer from another in
10719 an arm of an if-expression whose if-part is not a constant
10721 const char *g = "string";
10722 pcpcc = &g + (g ? g-g : 0);
10723 /* HPUX 7.0 cc rejects these. */
10725 ppc = (char**) pcpcc;
10726 pcpcc = (char const *const *) ppc;
10727 { /* SCO 3.2v4 cc rejects this. */
10729 char const *s = 0 ? (char *) 0 : (char const *) 0;
10734 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10735 int x[] = {25, 17};
10736 const int *foo = &x[0];
10739 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10740 typedef const int *iptr;
10744 { /* AIX XL C 1.02.0.0 rejects this saying
10745 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10746 struct s { int j; const int *ap[3]; };
10747 struct s *b; b->j = 5;
10749 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10750 const int foo = 10;
10751 if (!foo) return 0;
10753 return !cs[0] && !zero.x;
10760 if ac_fn_c_try_compile
"$LINENO"; then :
10765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10768 $as_echo "$ac_cv_c_const" >&6; }
10769 if test $ac_cv_c_const = no
; then
10771 $as_echo "#define const /**/" >>confdefs.h
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10776 $as_echo_n "checking for inline... " >&6; }
10777 if test "${ac_cv_c_inline+set}" = set; then :
10778 $as_echo_n "(cached) " >&6
10781 for ac_kw
in inline __inline__ __inline
; do
10782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 #ifndef __cplusplus
10786 static $ac_kw foo_t static_foo () {return 0; }
10787 $ac_kw foo_t foo () {return 0; }
10791 if ac_fn_c_try_compile
"$LINENO"; then :
10792 ac_cv_c_inline
=$ac_kw
10794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10795 test "$ac_cv_c_inline" != no
&& break
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10800 $as_echo "$ac_cv_c_inline" >&6; }
10802 case $ac_cv_c_inline in
10805 case $ac_cv_c_inline in
10807 *) ac_val
=$ac_cv_c_inline;;
10809 cat >>confdefs.h
<<_ACEOF
10810 #ifndef __cplusplus
10811 #define inline $ac_val
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10818 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10819 if test "${ac_cv_c_bigendian+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
10822 ac_cv_c_bigendian
=unknown
10823 # See if we're dealing with a universal compiler.
10824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10826 #ifndef __APPLE_CC__
10827 not a universal capable compiler
10832 if ac_fn_c_try_compile
"$LINENO"; then :
10834 # Check for potential -arch flags. It is not universal unless
10835 # there are at least two -arch flags with different values.
10838 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10839 if test -n "$ac_prev"; then
10841 i?
86 | x86_64 | ppc | ppc64
)
10842 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10845 ac_cv_c_bigendian
=universal
10851 elif test "x$ac_word" = "x-arch"; then
10856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10857 if test $ac_cv_c_bigendian = unknown
; then
10858 # See if sys/param.h defines the BYTE_ORDER macro.
10859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h. */
10861 #include <sys/types.h>
10862 #include <sys/param.h>
10867 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10868 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10870 bogus endian macros
10877 if ac_fn_c_try_compile
"$LINENO"; then :
10878 # It does; now see whether it defined to BIG_ENDIAN or not.
10879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h. */
10881 #include <sys/types.h>
10882 #include <sys/param.h>
10887 #if BYTE_ORDER != BIG_ENDIAN
10895 if ac_fn_c_try_compile
"$LINENO"; then :
10896 ac_cv_c_bigendian
=yes
10898 ac_cv_c_bigendian
=no
10900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10904 if test $ac_cv_c_bigendian = unknown
; then
10905 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10908 #include <limits.h>
10913 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10914 bogus endian macros
10921 if ac_fn_c_try_compile
"$LINENO"; then :
10922 # It does; now see whether it defined to _BIG_ENDIAN or not.
10923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10924 /* end confdefs.h. */
10925 #include <limits.h>
10930 #ifndef _BIG_ENDIAN
10938 if ac_fn_c_try_compile
"$LINENO"; then :
10939 ac_cv_c_bigendian
=yes
10941 ac_cv_c_bigendian
=no
10943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10947 if test $ac_cv_c_bigendian = unknown
; then
10948 # Compile a test program.
10949 if test "$cross_compiling" = yes; then :
10950 # Try to guess by grepping values from an object file.
10951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10953 short int ascii_mm[] =
10954 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10955 short int ascii_ii[] =
10956 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10957 int use_ascii (int i) {
10958 return ascii_mm[i] + ascii_ii[i];
10960 short int ebcdic_ii[] =
10961 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10962 short int ebcdic_mm[] =
10963 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10964 int use_ebcdic (int i) {
10965 return ebcdic_mm[i] + ebcdic_ii[i];
10972 return use_ascii (foo) == use_ebcdic (foo);
10977 if ac_fn_c_try_compile
"$LINENO"; then :
10978 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10979 ac_cv_c_bigendian
=yes
10981 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10982 if test "$ac_cv_c_bigendian" = unknown
; then
10983 ac_cv_c_bigendian
=no
10985 # finding both strings is unlikely to happen, but who knows?
10986 ac_cv_c_bigendian
=unknown
10990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h. */
10994 $ac_includes_default
10999 /* Are we little or big endian? From Harbison&Steele. */
11003 char c[sizeof (long int)];
11006 return u.c[sizeof (long int) - 1] == 1;
11012 if ac_fn_c_try_run
"$LINENO"; then :
11013 ac_cv_c_bigendian
=no
11015 ac_cv_c_bigendian
=yes
11017 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11018 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11024 $as_echo "$ac_cv_c_bigendian" >&6; }
11025 case $ac_cv_c_bigendian in #(
11027 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11033 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11037 as_fn_error
"unknown endianness
11038 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11042 # ------------------------------ #
11043 # Checks for library functions. #
11044 # ------------------------------ #
11046 for ac_header
in stdlib.h unistd.h
11048 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11049 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11050 eval as_val
=\$
$as_ac_Header
11051 if test "x$as_val" = x
""yes; then :
11052 cat >>confdefs.h
<<_ACEOF
11053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11060 for ac_func
in getpagesize
11062 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11063 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
11064 cat >>confdefs.h
<<_ACEOF
11065 #define HAVE_GETPAGESIZE 1
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11072 $as_echo_n "checking for working mmap... " >&6; }
11073 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11074 $as_echo_n "(cached) " >&6
11076 if test "$cross_compiling" = yes; then :
11077 ac_cv_func_mmap_fixed_mapped
=no
11079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11081 $ac_includes_default
11082 /* malloc might have been renamed as rpl_malloc. */
11085 /* Thanks to Mike Haertel and Jim Avera for this test.
11086 Here is a matrix of mmap possibilities:
11087 mmap private not fixed
11088 mmap private fixed at somewhere currently unmapped
11089 mmap private fixed at somewhere already mapped
11090 mmap shared not fixed
11091 mmap shared fixed at somewhere currently unmapped
11092 mmap shared fixed at somewhere already mapped
11093 For private mappings, we should verify that changes cannot be read()
11094 back from the file, nor mmap's back from the file at a different
11095 address. (There have been systems where private was not correctly
11096 implemented like the infamous i386 svr4.0, and systems where the
11097 VM page cache was not coherent with the file system buffer cache
11098 like early versions of FreeBSD and possibly contemporary NetBSD.)
11099 For shared mappings, we should conversely verify that changes get
11100 propagated back to all the places they're supposed to be.
11102 Grep wants private fixed already mapped.
11103 The main things grep needs to know about mmap are:
11104 * does it exist and is it safe to write into the mmap'd area
11105 * how to use it (BSD variants) */
11108 #include <sys/mman.h>
11110 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11114 /* This mess was copied from the GNU getpagesize.h. */
11115 #ifndef HAVE_GETPAGESIZE
11116 /* Assume that all systems that can run configure have sys/param.h. */
11117 # ifndef HAVE_SYS_PARAM_H
11118 # define HAVE_SYS_PARAM_H 1
11121 # ifdef _SC_PAGESIZE
11122 # define getpagesize() sysconf(_SC_PAGESIZE)
11123 # else /* no _SC_PAGESIZE */
11124 # ifdef HAVE_SYS_PARAM_H
11125 # include <sys/param.h>
11126 # ifdef EXEC_PAGESIZE
11127 # define getpagesize() EXEC_PAGESIZE
11128 # else /* no EXEC_PAGESIZE */
11130 # define getpagesize() NBPG * CLSIZE
11133 # endif /* no CLSIZE */
11134 # else /* no NBPG */
11136 # define getpagesize() NBPC
11137 # else /* no NBPC */
11139 # define getpagesize() PAGESIZE
11140 # endif /* PAGESIZE */
11141 # endif /* no NBPC */
11142 # endif /* no NBPG */
11143 # endif /* no EXEC_PAGESIZE */
11144 # else /* no HAVE_SYS_PARAM_H */
11145 # define getpagesize() 8192 /* punt totally */
11146 # endif /* no HAVE_SYS_PARAM_H */
11147 # endif /* no _SC_PAGESIZE */
11149 #endif /* no HAVE_GETPAGESIZE */
11154 char *data, *data2, *data3;
11158 pagesize = getpagesize ();
11160 /* First, make a file with some known garbage in it. */
11161 data = (char *) malloc (pagesize);
11164 for (i = 0; i < pagesize; ++i)
11165 *(data + i) = rand ();
11167 fd = creat ("conftest.mmap", 0600);
11170 if (write (fd, data, pagesize) != pagesize)
11174 /* Next, try to mmap the file at a fixed address which already has
11175 something else allocated at it. If we can, also make sure that
11176 we see the same garbage. */
11177 fd = open ("conftest.mmap", O_RDWR);
11180 data2 = (char *) malloc (2 * pagesize);
11183 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11184 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11185 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11187 for (i = 0; i < pagesize; ++i)
11188 if (*(data + i) != *(data2 + i))
11191 /* Finally, make sure that changes to the mapped area do not
11192 percolate back to the file as seen by read(). (This is a bug on
11193 some variants of i386 svr4.0.) */
11194 for (i = 0; i < pagesize; ++i)
11195 *(data2 + i) = *(data2 + i) + 1;
11196 data3 = (char *) malloc (pagesize);
11199 if (read (fd, data3, pagesize) != pagesize)
11201 for (i = 0; i < pagesize; ++i)
11202 if (*(data + i) != *(data3 + i))
11208 if ac_fn_c_try_run
"$LINENO"; then :
11209 ac_cv_func_mmap_fixed_mapped
=yes
11211 ac_cv_func_mmap_fixed_mapped
=no
11213 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11214 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11219 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11220 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11222 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11225 rm -f conftest.mmap
11227 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11228 if test "x$ac_cv_type_pid_t" = x
""yes; then :
11232 cat >>confdefs.h
<<_ACEOF
11238 for ac_header
in vfork.h
11240 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11241 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
11242 cat >>confdefs.h
<<_ACEOF
11243 #define HAVE_VFORK_H 1
11250 for ac_func
in fork vfork
11252 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11253 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11254 eval as_val
=\$
$as_ac_var
11255 if test "x$as_val" = x
""yes; then :
11256 cat >>confdefs.h
<<_ACEOF
11257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11263 if test "x$ac_cv_func_fork" = xyes
; then
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11265 $as_echo_n "checking for working fork... " >&6; }
11266 if test "${ac_cv_func_fork_works+set}" = set; then :
11267 $as_echo_n "(cached) " >&6
11269 if test "$cross_compiling" = yes; then :
11270 ac_cv_func_fork_works
=cross
11272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11273 /* end confdefs.h. */
11274 $ac_includes_default
11279 /* By Ruediger Kuhlmann. */
11280 return fork () < 0;
11286 if ac_fn_c_try_run
"$LINENO"; then :
11287 ac_cv_func_fork_works
=yes
11289 ac_cv_func_fork_works
=no
11291 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11292 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11297 $as_echo "$ac_cv_func_fork_works" >&6; }
11300 ac_cv_func_fork_works
=$ac_cv_func_fork
11302 if test "x$ac_cv_func_fork_works" = xcross
; then
11304 *-*-amigaos* |
*-*-msdosdjgpp*)
11305 # Override, as these systems have only a dummy fork() stub
11306 ac_cv_func_fork_works
=no
11309 ac_cv_func_fork_works
=yes
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11313 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11315 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11316 if test "x$ac_cv_func_vfork" = xyes
; then
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11318 $as_echo_n "checking for working vfork... " >&6; }
11319 if test "${ac_cv_func_vfork_works+set}" = set; then :
11320 $as_echo_n "(cached) " >&6
11322 if test "$cross_compiling" = yes; then :
11323 ac_cv_func_vfork_works
=cross
11325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11326 /* end confdefs.h. */
11327 /* Thanks to Paul Eggert for this test. */
11328 $ac_includes_default
11329 #include <sys/wait.h>
11330 #ifdef HAVE_VFORK_H
11331 # include <vfork.h>
11333 /* On some sparc systems, changes by the child to local and incoming
11334 argument registers are propagated back to the parent. The compiler
11335 is told about this with #include <vfork.h>, but some compilers
11336 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11337 static variable whose address is put into a register that is
11338 clobbered by the vfork. */
11341 sparc_address_test (int arg)
11343 sparc_address_test (arg) int arg;
11346 static pid_t child;
11364 pid_t parent = getpid ();
11367 sparc_address_test (0);
11372 /* Here is another test for sparc vfork register problems. This
11373 test uses lots of local variables, at least as many local
11374 variables as main has allocated so far including compiler
11375 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11376 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11377 reuse the register of parent for one of the local variables,
11378 since it will think that parent can't possibly be used any more
11379 in this routine. Assigning to the local variable will thus
11380 munge parent in the parent process. */
11382 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11383 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11384 /* Convince the compiler that p..p7 are live; otherwise, it might
11385 use the same hardware register for all 8 local variables. */
11386 if (p != p1 || p != p2 || p != p3 || p != p4
11387 || p != p5 || p != p6 || p != p7)
11390 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11391 from child file descriptors. If the child closes a descriptor
11392 before it execs or exits, this munges the parent's descriptor
11393 as well. Test for this by closing stdout in the child. */
11394 _exit(close(fileno(stdout)) != 0);
11399 while (wait(&status) != child)
11402 /* Was there some problem with vforking? */
11405 /* Did the child fail? (This shouldn't happen.) */
11408 /* Did the vfork/compiler bug occur? */
11409 || parent != getpid()
11411 /* Did the file descriptor bug occur? */
11412 || fstat(fileno(stdout), &st) != 0
11417 if ac_fn_c_try_run
"$LINENO"; then :
11418 ac_cv_func_vfork_works
=yes
11420 ac_cv_func_vfork_works
=no
11422 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11423 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11428 $as_echo "$ac_cv_func_vfork_works" >&6; }
11431 if test "x$ac_cv_func_fork_works" = xcross
; then
11432 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11434 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11437 if test "x$ac_cv_func_vfork_works" = xyes
; then
11439 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11443 $as_echo "#define vfork fork" >>confdefs.h
11446 if test "x$ac_cv_func_fork_works" = xyes
; then
11448 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11452 for ac_func
in getauxval getrusage getuid getgid \
11453 pipe poll pread pread64 pwrite resize_term \
11454 sbrk setpgid setpgrp setsid \
11455 sigaction sigprocmask sigsetmask socketpair \
11456 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
11457 setrlimit getrlimit posix_madvise waitpid \
11458 ptrace64 sigaltstack mkdtemp setns
11460 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11461 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11462 eval as_val
=\$
$as_ac_var
11463 if test "x$as_val" = x
""yes; then :
11464 cat >>confdefs.h
<<_ACEOF
11465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11473 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11474 if test "${am_cv_langinfo_codeset+set}" = set; then :
11475 $as_echo_n "(cached) " >&6
11477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11479 #include <langinfo.h>
11483 char* cs = nl_langinfo(CODESET);
11488 if ac_fn_c_try_link
"$LINENO"; then :
11489 am_cv_langinfo_codeset
=yes
11491 am_cv_langinfo_codeset
=no
11493 rm -f core conftest.err conftest.
$ac_objext \
11494 conftest
$ac_exeext conftest.
$ac_ext
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11498 $as_echo "$am_cv_langinfo_codeset" >&6; }
11499 if test $am_cv_langinfo_codeset = yes; then
11501 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11507 $as_echo_n "checking for ANSI C header files... " >&6; }
11508 if test "${ac_cv_header_stdc+set}" = set; then :
11509 $as_echo_n "(cached) " >&6
11511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11513 #include <stdlib.h>
11514 #include <stdarg.h>
11515 #include <string.h>
11526 if ac_fn_c_try_compile
"$LINENO"; then :
11527 ac_cv_header_stdc
=yes
11529 ac_cv_header_stdc
=no
11531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11533 if test $ac_cv_header_stdc = yes; then
11534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h. */
11537 #include <string.h>
11540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11541 $EGREP "memchr" >/dev
/null
2>&1; then :
11544 ac_cv_header_stdc
=no
11550 if test $ac_cv_header_stdc = yes; then
11551 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11553 /* end confdefs.h. */
11554 #include <stdlib.h>
11557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11558 $EGREP "free" >/dev
/null
2>&1; then :
11561 ac_cv_header_stdc
=no
11567 if test $ac_cv_header_stdc = yes; then
11568 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11569 if test "$cross_compiling" = yes; then :
11572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11575 #include <stdlib.h>
11576 #if ((' ' & 0x0FF) == 0x020)
11577 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11578 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11580 # define ISLOWER(c) \
11581 (('a' <= (c) && (c) <= 'i') \
11582 || ('j' <= (c) && (c) <= 'r') \
11583 || ('s' <= (c) && (c) <= 'z'))
11584 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11592 for (i = 0; i < 256; i++)
11593 if (XOR (islower (i), ISLOWER (i))
11594 || toupper (i) != TOUPPER (i))
11599 if ac_fn_c_try_run
"$LINENO"; then :
11602 ac_cv_header_stdc
=no
11604 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11605 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11611 $as_echo "$ac_cv_header_stdc" >&6; }
11612 if test $ac_cv_header_stdc = yes; then
11614 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11618 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11619 # for constant arguments. Useless!
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11621 $as_echo_n "checking for working alloca.h... " >&6; }
11622 if test "${ac_cv_working_alloca_h+set}" = set; then :
11623 $as_echo_n "(cached) " >&6
11625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h. */
11627 #include <alloca.h>
11631 char *p = (char *) alloca (2 * sizeof (int));
11637 if ac_fn_c_try_link
"$LINENO"; then :
11638 ac_cv_working_alloca_h
=yes
11640 ac_cv_working_alloca_h
=no
11642 rm -f core conftest.err conftest.
$ac_objext \
11643 conftest
$ac_exeext conftest.
$ac_ext
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11646 $as_echo "$ac_cv_working_alloca_h" >&6; }
11647 if test $ac_cv_working_alloca_h = yes; then
11649 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11654 $as_echo_n "checking for alloca... " >&6; }
11655 if test "${ac_cv_func_alloca_works+set}" = set; then :
11656 $as_echo_n "(cached) " >&6
11658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11661 # define alloca __builtin_alloca
11664 # include <malloc.h>
11665 # define alloca _alloca
11667 # ifdef HAVE_ALLOCA_H
11668 # include <alloca.h>
11673 # ifndef alloca /* predefined by HP cc +Olibcalls */
11684 char *p = (char *) alloca (1);
11690 if ac_fn_c_try_link
"$LINENO"; then :
11691 ac_cv_func_alloca_works
=yes
11693 ac_cv_func_alloca_works
=no
11695 rm -f core conftest.err conftest.
$ac_objext \
11696 conftest
$ac_exeext conftest.
$ac_ext
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11699 $as_echo "$ac_cv_func_alloca_works" >&6; }
11701 if test $ac_cv_func_alloca_works = yes; then
11703 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11706 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11707 # that cause trouble. Some versions do not even contain alloca or
11708 # contain a buggy version. If you still want to use their alloca,
11709 # use ar to extract alloca.o from them instead of compiling alloca.c.
11711 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
11713 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11717 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11718 if test "${ac_cv_os_cray+set}" = set; then :
11719 $as_echo_n "(cached) " >&6
11721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h. */
11723 #if defined CRAY && ! defined CRAY2
11730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11731 $EGREP "webecray" >/dev
/null
2>&1; then :
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11740 $as_echo "$ac_cv_os_cray" >&6; }
11741 if test $ac_cv_os_cray = yes; then
11742 for ac_func
in _getb67 GETB67 getb67
; do
11743 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11744 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11745 eval as_val
=\$
$as_ac_var
11746 if test "x$as_val" = x
""yes; then :
11748 cat >>confdefs.h
<<_ACEOF
11749 #define CRAY_STACKSEG_END $ac_func
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11759 $as_echo_n "checking stack direction for C alloca... " >&6; }
11760 if test "${ac_cv_c_stack_direction+set}" = set; then :
11761 $as_echo_n "(cached) " >&6
11763 if test "$cross_compiling" = yes; then :
11764 ac_cv_c_stack_direction
=0
11766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11767 /* end confdefs.h. */
11768 $ac_includes_default
11770 find_stack_direction ()
11772 static char *addr = 0;
11777 return find_stack_direction ();
11780 return (&dummy > addr) ? 1 : -1;
11786 return find_stack_direction () < 0;
11789 if ac_fn_c_try_run
"$LINENO"; then :
11790 ac_cv_c_stack_direction
=1
11792 ac_cv_c_stack_direction
=-1
11794 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11795 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11800 $as_echo "$ac_cv_c_stack_direction" >&6; }
11801 cat >>confdefs.h
<<_ACEOF
11802 #define STACK_DIRECTION $ac_cv_c_stack_direction
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11811 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11812 if test "${am_cv_langinfo_codeset+set}" = set; then :
11813 $as_echo_n "(cached) " >&6
11815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h. */
11817 #include <langinfo.h>
11821 char* cs = nl_langinfo(CODESET);
11826 if ac_fn_c_try_link
"$LINENO"; then :
11827 am_cv_langinfo_codeset
=yes
11829 am_cv_langinfo_codeset
=no
11831 rm -f core conftest.err conftest.
$ac_objext \
11832 conftest
$ac_exeext conftest.
$ac_ext
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11836 $as_echo "$am_cv_langinfo_codeset" >&6; }
11837 if test $am_cv_langinfo_codeset = yes; then
11839 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11844 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/syscall.h sys
/un.h sys
/wait.h thread_db.h
wait.h
11846 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11847 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11848 eval as_val
=\$
$as_ac_Header
11849 if test "x$as_val" = x
""yes; then :
11850 cat >>confdefs.h
<<_ACEOF
11851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11859 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair
11861 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11862 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11863 eval as_val
=\$
$as_ac_var
11864 if test "x$as_val" = x
""yes; then :
11865 cat >>confdefs.h
<<_ACEOF
11866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11873 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11874 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
11880 cat >>confdefs.h
<<_ACEOF
11881 #define HAVE_DECL_STRERROR $ac_have_decl
11883 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11884 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
11890 cat >>confdefs.h
<<_ACEOF
11891 #define HAVE_DECL_STRSTR $ac_have_decl
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11896 $as_echo_n "checking for sigsetjmp... " >&6; }
11897 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
11900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h. */
11903 #include <setjmp.h>
11908 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11913 if ac_fn_c_try_compile
"$LINENO"; then :
11914 gdb_cv_func_sigsetjmp
=yes
11916 gdb_cv_func_sigsetjmp
=no
11918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11921 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11922 if test $gdb_cv_func_sigsetjmp = yes; then
11924 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11929 # Check the return and argument types of ptrace. No canned test for
11930 # this, so roll our own.
11931 gdb_ptrace_headers
='
11932 #include <sys/types.h>
11933 #if HAVE_SYS_PTRACE_H
11934 # include <sys/ptrace.h>
11937 # include <unistd.h>
11940 # There is no point in checking if we don't have a prototype.
11941 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
11943 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
11949 cat >>confdefs.h
<<_ACEOF
11950 #define HAVE_DECL_PTRACE $ac_have_decl
11952 if test $ac_have_decl = 1; then :
11956 : ${gdb_cv_func_ptrace_ret='int'}
11957 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11961 # Check return type. Varargs (used on GNU/Linux) conflict with the
11962 # empty argument list, so check for that explicitly.
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
11964 $as_echo_n "checking return type of ptrace... " >&6; }
11965 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11966 $as_echo_n "(cached) " >&6
11968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11969 /* end confdefs.h. */
11970 $gdb_ptrace_headers
11974 extern long ptrace (enum __ptrace_request, ...);
11979 if ac_fn_c_try_compile
"$LINENO"; then :
11980 gdb_cv_func_ptrace_ret
='long'
11982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11984 $gdb_ptrace_headers
11988 extern int ptrace ();
11993 if ac_fn_c_try_compile
"$LINENO"; then :
11994 gdb_cv_func_ptrace_ret
='int'
11996 gdb_cv_func_ptrace_ret
='long'
11998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12003 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12005 cat >>confdefs.h
<<_ACEOF
12006 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12009 # Check argument types.
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12011 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12012 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12013 $as_echo_n "(cached) " >&6
12016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12018 $gdb_ptrace_headers
12022 extern long ptrace (enum __ptrace_request, ...);
12027 if ac_fn_c_try_compile
"$LINENO"; then :
12028 gdb_cv_func_ptrace_args
='int,int,long,long'
12031 for gdb_arg1
in 'int' 'long'; do
12032 for gdb_arg2
in 'pid_t' 'int' 'long'; do
12033 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12034 for gdb_arg4
in 'int' 'long' 'void *'; do
12035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12037 $gdb_ptrace_headers
12042 extern $gdb_cv_func_ptrace_ret
12043 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12049 if ac_fn_c_try_compile
"$LINENO"; then :
12050 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12054 for gdb_arg5
in 'int *' 'int' 'long'; do
12055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12057 $gdb_ptrace_headers
12062 extern $gdb_cv_func_ptrace_ret
12063 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12069 if ac_fn_c_try_compile
"$LINENO"; then :
12071 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12080 # Provide a safe default value.
12081 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12087 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12088 ac_save_IFS
=$IFS; IFS
=','
12089 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12093 cat >>confdefs.h
<<_ACEOF
12094 #define PTRACE_TYPE_ARG3 $3
12098 cat >>confdefs.h
<<_ACEOF
12099 #define PTRACE_TYPE_ARG4 $4
12102 if test -n "$5"; then
12104 cat >>confdefs.h
<<_ACEOF
12105 #define PTRACE_TYPE_ARG5 $5
12110 if test "$cross_compiling" = no
; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12112 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12113 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12114 $as_echo_n "(cached) " >&6
12116 if test "$cross_compiling" = yes; then :
12117 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
12119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12121 $ac_includes_default
12125 /* If this system has a BSD-style setpgrp which takes arguments,
12126 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12127 exit successfully. */
12128 return setpgrp (1,1) != -1;
12133 if ac_fn_c_try_run
"$LINENO"; then :
12134 ac_cv_func_setpgrp_void
=no
12136 ac_cv_func_setpgrp_void
=yes
12138 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12139 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12144 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12145 if test $ac_cv_func_setpgrp_void = yes; then
12147 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12153 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12154 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12155 $as_echo_n "(cached) " >&6
12157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12160 #include <unistd.h>
12166 if (setpgrp(1,1) == -1)
12175 if ac_fn_c_try_compile
"$LINENO"; then :
12176 ac_cv_func_setpgrp_void
=no
12178 ac_cv_func_setpgrp_void
=yes
12180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12183 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12184 if test $ac_cv_func_setpgrp_void = yes; then
12185 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12190 # Assume we'll default to using the included libiberty regex.
12191 gdb_use_included_regex
=yes
12193 # However, if the system regex is GNU regex, then default to *not*
12194 # using the included regex.
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12196 $as_echo_n "checking for GNU regex... " >&6; }
12197 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12198 $as_echo_n "(cached) " >&6
12200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12202 #include <gnu-versions.h>
12206 #define REGEX_INTERFACE_VERSION 1
12207 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12208 # error "Version mismatch"
12214 if ac_fn_c_try_compile
"$LINENO"; then :
12215 gdb_cv_have_gnu_regex
=yes
12217 gdb_cv_have_gnu_regex
=no
12219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12222 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12223 if test $gdb_cv_have_gnu_regex = yes; then
12224 gdb_use_included_regex
=no
12228 # Check whether --with-included-regex was given.
12229 if test "${with_included_regex+set}" = set; then :
12230 withval
=$with_included_regex; gdb_with_regex
=$withval
12232 gdb_with_regex
=$gdb_use_included_regex
12235 if test "$gdb_with_regex" = yes; then
12237 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12241 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12242 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12243 #include <sys/proc.h>
12246 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
12248 cat >>confdefs.h
<<_ACEOF
12249 #define HAVE_STRUCT_THREAD_TD_PCB 1
12256 # See if <sys/lwp.h> defines `struct lwp`.
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12258 $as_echo_n "checking for struct lwp... " >&6; }
12259 if test "${gdb_cv_struct_lwp+set}" = set; then :
12260 $as_echo_n "(cached) " >&6
12262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12264 #include <sys/param.h>
12265 #include <sys/lwp.h>
12274 if ac_fn_c_try_compile
"$LINENO"; then :
12275 gdb_cv_struct_lwp
=yes
12277 gdb_cv_struct_lwp
=no
12279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12282 $as_echo "$gdb_cv_struct_lwp" >&6; }
12283 if test $gdb_cv_struct_lwp = yes; then
12285 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12289 # See if <machine/reg.h> degines `struct reg'.
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12291 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12292 if test "${gdb_cv_struct_reg+set}" = set; then :
12293 $as_echo_n "(cached) " >&6
12295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12297 #include <sys/types.h>
12298 #include <machine/reg.h>
12307 if ac_fn_c_try_compile
"$LINENO"; then :
12308 gdb_cv_struct_reg
=yes
12310 gdb_cv_struct_reg
=no
12312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12315 $as_echo "$gdb_cv_struct_reg" >&6; }
12316 if test $gdb_cv_struct_reg = yes; then
12318 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12322 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12323 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12324 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
12326 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
12328 cat >>confdefs.h
<<_ACEOF
12329 #define HAVE_STRUCT_REG_R_FS 1
12334 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
12336 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
12338 cat >>confdefs.h
<<_ACEOF
12339 #define HAVE_STRUCT_REG_R_GS 1
12346 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
12347 # Older amd64 Linux's don't have the fs_base and gs_base members of
12348 # `struct user_regs_struct'.
12349 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/user.h>
12351 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x
""yes; then :
12353 cat >>confdefs.h
<<_ACEOF
12354 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
12359 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/user.h>
12361 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x
""yes; then :
12363 cat >>confdefs.h
<<_ACEOF
12364 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
12371 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
12373 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
12374 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
12375 $as_echo_n "(cached) " >&6
12377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h. */
12379 #include <sys/ptrace.h>
12388 if ac_fn_c_try_compile
"$LINENO"; then :
12389 gdb_cv_have_ptrace_getregs
=yes
12391 gdb_cv_have_ptrace_getregs
=no
12393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
12397 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
12398 if test $gdb_cv_have_ptrace_getregs = yes; then
12400 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
12404 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
12406 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
12407 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
12408 $as_echo_n "(cached) " >&6
12410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12412 #include <sys/ptrace.h>
12421 if ac_fn_c_try_compile
"$LINENO"; then :
12422 gdb_cv_have_ptrace_getfpxregs
=yes
12424 gdb_cv_have_ptrace_getfpxregs
=no
12426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
12430 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
12431 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
12433 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
12437 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
12439 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
12440 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
12441 $as_echo_n "(cached) " >&6
12443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12445 #include <sys/types.h>
12446 #include <sys/ptrace.h>
12455 if ac_fn_c_try_compile
"$LINENO"; then :
12456 gdb_cv_have_pt_getdbregs
=yes
12458 gdb_cv_have_pt_getdbregs
=no
12460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
12464 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
12465 if test $gdb_cv_have_pt_getdbregs = yes; then
12467 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
12471 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
12473 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
12474 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
12477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12479 #include <sys/types.h>
12480 #include <sys/ptrace.h>
12489 if ac_fn_c_try_compile
"$LINENO"; then :
12490 gdb_cv_have_pt_getxmmregs
=yes
12492 gdb_cv_have_pt_getxmmregs
=no
12494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
12498 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
12499 if test $gdb_cv_have_pt_getxmmregs = yes; then
12501 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
12505 # Detect which type of /proc is in use, such as for Solaris.
12507 if test "${target}" = "${host}"; then
12509 *-*-sysv4.2
* |
*-*-sysv5* )
12511 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12514 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
12516 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12520 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
12522 $as_echo "#define _KMEMUSER 1" >>confdefs.h
12528 if test "$ac_cv_header_sys_procfs_h" = yes; then
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
12530 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
12531 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
12532 $as_echo_n "(cached) " >&6
12534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12535 /* end confdefs.h. */
12538 /* Needed for new procfs interface on sparc-solaris. */
12539 #define _STRUCTURED_PROC 1
12540 #include <sys/procfs.h>
12549 if ac_fn_c_try_compile
"$LINENO"; then :
12550 bfd_cv_have_sys_procfs_type_gregset_t
=yes
12552 bfd_cv_have_sys_procfs_type_gregset_t
=no
12555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12558 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
12560 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
12564 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
12567 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
12568 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
12569 $as_echo_n "(cached) " >&6
12571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12575 /* Needed for new procfs interface on sparc-solaris. */
12576 #define _STRUCTURED_PROC 1
12577 #include <sys/procfs.h>
12586 if ac_fn_c_try_compile
"$LINENO"; then :
12587 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
12589 bfd_cv_have_sys_procfs_type_fpregset_t
=no
12592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12595 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
12597 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
12601 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
12604 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
12605 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
12606 $as_echo_n "(cached) " >&6
12608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12612 /* Needed for new procfs interface on sparc-solaris. */
12613 #define _STRUCTURED_PROC 1
12614 #include <sys/procfs.h>
12623 if ac_fn_c_try_compile
"$LINENO"; then :
12624 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
12626 bfd_cv_have_sys_procfs_type_prgregset_t
=no
12629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12632 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
12634 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
12638 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
12641 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
12642 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
12643 $as_echo_n "(cached) " >&6
12645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12649 /* Needed for new procfs interface on sparc-solaris. */
12650 #define _STRUCTURED_PROC 1
12651 #include <sys/procfs.h>
12660 if ac_fn_c_try_compile
"$LINENO"; then :
12661 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
12663 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
12666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12669 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12671 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
12675 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
12678 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
12679 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h. */
12686 /* Needed for new procfs interface on sparc-solaris. */
12687 #define _STRUCTURED_PROC 1
12688 #include <sys/procfs.h>
12697 if ac_fn_c_try_compile
"$LINENO"; then :
12698 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
12700 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
12703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12706 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
12708 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
12712 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
12715 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
12716 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
12717 $as_echo_n "(cached) " >&6
12719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12723 /* Needed for new procfs interface on sparc-solaris. */
12724 #define _STRUCTURED_PROC 1
12725 #include <sys/procfs.h>
12734 if ac_fn_c_try_compile
"$LINENO"; then :
12735 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
12737 bfd_cv_have_sys_procfs_type_lwpid_t
=no
12740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12743 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
12745 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
12749 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
12752 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
12753 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
12754 $as_echo_n "(cached) " >&6
12756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12760 /* Needed for new procfs interface on sparc-solaris. */
12761 #define _STRUCTURED_PROC 1
12762 #include <sys/procfs.h>
12771 if ac_fn_c_try_compile
"$LINENO"; then :
12772 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
12774 bfd_cv_have_sys_procfs_type_psaddr_t
=no
12777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12780 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
12782 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
12786 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
12789 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
12790 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
12791 $as_echo_n "(cached) " >&6
12793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12797 /* Needed for new procfs interface on sparc-solaris. */
12798 #define _STRUCTURED_PROC 1
12799 #include <sys/procfs.h>
12808 if ac_fn_c_try_compile
"$LINENO"; then :
12809 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
12811 bfd_cv_have_sys_procfs_type_prsysent_t
=no
12814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12817 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
12819 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
12823 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
12826 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
12827 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
12828 $as_echo_n "(cached) " >&6
12830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h. */
12834 /* Needed for new procfs interface on sparc-solaris. */
12835 #define _STRUCTURED_PROC 1
12836 #include <sys/procfs.h>
12845 if ac_fn_c_try_compile
"$LINENO"; then :
12846 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
12848 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
12851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12854 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
12856 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
12860 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
12863 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
12864 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
12865 $as_echo_n "(cached) " >&6
12867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12871 /* Needed for new procfs interface on sparc-solaris. */
12872 #define _STRUCTURED_PROC 1
12873 #include <sys/procfs.h>
12877 pr_sigaction64_t avar
12882 if ac_fn_c_try_compile
"$LINENO"; then :
12883 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
12885 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
12888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12891 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
12893 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
12897 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12900 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12901 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
12904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h. */
12908 /* Needed for new procfs interface on sparc-solaris. */
12909 #define _STRUCTURED_PROC 1
12910 #include <sys/procfs.h>
12914 pr_siginfo64_t avar
12919 if ac_fn_c_try_compile
"$LINENO"; then :
12920 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
12922 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
12925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12928 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12930 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12934 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12940 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12942 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12943 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12944 $as_echo_n "(cached) " >&6
12946 if test "$cross_compiling" = yes; then :
12947 gdb_cv_prfpregset_t_broken
=yes
12949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12951 #include <sys/procfs.h>
12954 if (sizeof (prfpregset_t) == sizeof (void *))
12959 if ac_fn_c_try_run
"$LINENO"; then :
12960 gdb_cv_prfpregset_t_broken
=no
12962 gdb_cv_prfpregset_t_broken
=yes
12964 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12965 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12971 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12972 if test $gdb_cv_prfpregset_t_broken = yes; then
12974 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12980 # Check if the compiler supports the `long long' type.
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12983 $as_echo_n "checking for long long support in compiler... " >&6; }
12984 if test "${gdb_cv_c_long_long+set}" = set; then :
12985 $as_echo_n "(cached) " >&6
12987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12989 extern long long foo;
12993 switch (foo & 2) { case 0: return 1; }
12998 if ac_fn_c_try_compile
"$LINENO"; then :
12999 gdb_cv_c_long_long
=yes
13001 gdb_cv_c_long_long
=no
13003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13006 $as_echo "$gdb_cv_c_long_long" >&6; }
13007 if test $gdb_cv_c_long_long != yes; then
13008 # libdecnumber requires long long.
13009 as_fn_error
"Compiler must support long long for GDB." "$LINENO" 5
13012 # Check if the compiler and runtime support printing long longs.
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13015 $as_echo_n "checking for long long support in printf... " >&6; }
13016 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13017 $as_echo_n "(cached) " >&6
13019 if test "$cross_compiling" = yes; then :
13020 gdb_cv_printf_has_long_long
=no
13022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h. */
13024 $ac_includes_default
13030 l = (l << 16) + 0x0123;
13031 l = (l << 16) + 0x4567;
13032 l = (l << 16) + 0x89ab;
13033 l = (l << 16) + 0xcdef;
13034 sprintf (buf, "0x%016llx", l);
13035 return (strcmp ("0x0123456789abcdef", buf));
13040 if ac_fn_c_try_run
"$LINENO"; then :
13041 gdb_cv_printf_has_long_long
=yes
13043 gdb_cv_printf_has_long_long
=no
13045 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13046 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13051 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13052 if test $gdb_cv_printf_has_long_long = yes; then
13054 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13058 # Check if the compiler and runtime support printing decfloats.
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13061 $as_echo_n "checking for decfloat support in printf... " >&6; }
13062 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13063 $as_echo_n "(cached) " >&6
13065 if test "$cross_compiling" = yes; then :
13066 gdb_cv_printf_has_decfloat
=no
13068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h. */
13070 $ac_includes_default
13075 _Decimal32 d32 = 1.2345df;
13076 _Decimal64 d64 = 1.2345dd;
13077 _Decimal128 d128 = 1.2345dl;
13078 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
13079 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
13084 if ac_fn_c_try_run
"$LINENO"; then :
13085 gdb_cv_printf_has_decfloat
=yes
13087 gdb_cv_printf_has_decfloat
=no
13089 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13090 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
13095 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
13096 if test $gdb_cv_printf_has_decfloat = yes; then
13098 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
13102 # Check if the compiler supports the `long double' type. We can't use
13103 # AC_C_LONG_DOUBLE because that one does additional checks on the
13104 # constants defined in <float.h> that fail on some systems,
13105 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
13108 $as_echo_n "checking for long double support in compiler... " >&6; }
13109 if test "${gdb_cv_c_long_double+set}" = set; then :
13110 $as_echo_n "(cached) " >&6
13112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13116 if ac_fn_c_try_compile
"$LINENO"; then :
13117 gdb_cv_c_long_double
=yes
13119 gdb_cv_c_long_double
=no
13121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
13124 $as_echo "$gdb_cv_c_long_double" >&6; }
13125 if test $gdb_cv_c_long_double = yes; then
13127 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13131 # Check if the compiler and runtime support printing long doubles.
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
13134 $as_echo_n "checking for long double support in printf... " >&6; }
13135 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
13136 $as_echo_n "(cached) " >&6
13138 if test "$cross_compiling" = yes; then :
13139 gdb_cv_printf_has_long_double
=no
13141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h. */
13143 $ac_includes_default
13148 long double f = 3.141592653;
13149 sprintf (buf, "%Lg", f);
13150 return (strncmp ("3.14159", buf, 7));
13155 if ac_fn_c_try_run
"$LINENO"; then :
13156 gdb_cv_printf_has_long_double
=yes
13158 gdb_cv_printf_has_long_double
=no
13160 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13161 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
13166 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
13167 if test $gdb_cv_printf_has_long_double = yes; then
13169 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
13173 # Check if the compiler and runtime support scanning long doubles.
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
13176 $as_echo_n "checking for long double support in scanf... " >&6; }
13177 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
13178 $as_echo_n "(cached) " >&6
13180 if test "$cross_compiling" = yes; then :
13181 gdb_cv_scanf_has_long_double
=no
13183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13189 char *buf = "3.141592653";
13191 sscanf (buf, "%Lg", &f);
13192 return !(f > 3.14159 && f < 3.14160);
13197 if ac_fn_c_try_run
"$LINENO"; then :
13198 gdb_cv_scanf_has_long_double
=yes
13200 gdb_cv_scanf_has_long_double
=no
13202 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13203 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
13208 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
13209 if test $gdb_cv_scanf_has_long_double = yes; then
13211 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
13218 $as_echo_n "checking for -bbigtoc option... " >&6; }
13219 if test "${gdb_cv_bigtoc+set}" = set; then :
13220 $as_echo_n "(cached) " >&6
13223 SAVE_LDFLAGS
=$LDFLAGS
13226 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
13227 *) gdb_cv_bigtoc
=-bbigtoc ;;
13230 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
13231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h. */
13242 if ac_fn_c_try_link
"$LINENO"; then :
13247 rm -f core conftest.err conftest.
$ac_objext \
13248 conftest
$ac_exeext conftest.
$ac_ext
13249 LDFLAGS
="${SAVE_LDFLAGS}"
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
13253 $as_echo "$gdb_cv_bigtoc" >&6; }
13254 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
13259 $as_echo_n "checking for the dynamic export flag... " >&6; }
13261 if test "${gdb_native}" = yes; then
13262 # The dynamically loaded libthread_db needs access to symbols in the gdb
13263 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
13264 # may not be supported there.
13265 old_LDFLAGS
="$LDFLAGS"
13266 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
13267 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
13268 LDFLAGS
="$LDFLAGS $RDYNAMIC"
13269 if test "${have_libpython}" = no
; then
13270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13281 if ac_fn_c_try_link
"$LINENO"; then :
13284 rm -f core conftest.err conftest.
$ac_objext \
13285 conftest
$ac_exeext conftest.
$ac_ext
13287 # Workaround http://bugs.python.org/issue4434 where static
13288 # libpythonX.Y.a would get its symbols required for
13289 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
13290 # Problem does not happen for the recommended libpythonX.Y.so linkage.
13291 old_CFLAGS
="$CFLAGS"
13292 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
13294 LIBS
="$LIBS $PYTHON_LIBS"
13295 if test "$cross_compiling" = yes; then :
13298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300 #include "${have_libpython}/Python.h"
13306 err = PyRun_SimpleString ("import itertools\n");
13308 return err == 0 ? 0 : 1;
13313 if ac_fn_c_try_run
"$LINENO"; then :
13316 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13317 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13321 CFLAGS
="$old_CFLAGS"
13323 LDFLAGS
="$old_LDFLAGS"
13325 if $dynamic_list; then
13326 found
="-Wl,--dynamic-list"
13327 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
13330 RDYNAMIC
="-rdynamic"
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
13334 $as_echo "$found" >&6; }
13337 if test ${build} = ${host} -a ${host} = ${target} ; then
13340 # See if thread_db library is around for Solaris thread debugging.
13341 # Note that we must explicitly test for version 1 of the library
13342 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
13345 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
13346 if test -f /usr
/lib
/libthread_db.so
.1 ; then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13348 $as_echo "yes" >&6; }
13350 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
13352 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
13353 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13355 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13356 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13357 $as_echo_n "(cached) " >&6
13359 ac_check_lib_save_LIBS
=$LIBS
13361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13364 /* Override any GCC internal prototype to avoid an error.
13365 Use char because int might match the return type of a GCC
13366 builtin and then its argument prototype would still apply. */
13379 if ac_fn_c_try_link
"$LINENO"; then :
13380 ac_cv_lib_dl_dlopen
=yes
13382 ac_cv_lib_dl_dlopen
=no
13384 rm -f core conftest.err conftest.
$ac_objext \
13385 conftest
$ac_exeext conftest.
$ac_ext
13386 LIBS
=$ac_check_lib_save_LIBS
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13389 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13390 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
13391 cat >>confdefs.h
<<_ACEOF
13392 #define HAVE_LIBDL 1
13399 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
13400 # Sun randomly tweaked the prototypes in <proc_service.h>
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
13403 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
13404 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13411 #include <proc_service.h>
13412 ps_err_e ps_pdwrite
13413 (struct ps_prochandle*, psaddr_t, const void*, size_t);
13423 if ac_fn_c_try_compile
"$LINENO"; then :
13424 gdb_cv_proc_service_is_old
=no
13426 gdb_cv_proc_service_is_old
=yes
13428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
13433 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
13434 if test $gdb_cv_proc_service_is_old = yes; then
13436 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441 $as_echo "no" >&6; }
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
13446 $as_echo_n "checking for AiX thread debugging library... " >&6; }
13447 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
13448 $as_echo_n "(cached) " >&6
13450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h. */
13452 #include <sys/pthdebug.h>
13456 #ifndef PTHDB_VERSION_3
13463 if ac_fn_c_try_compile
"$LINENO"; then :
13464 gdb_cv_have_aix_thread_debug
=yes
13466 gdb_cv_have_aix_thread_debug
=no
13468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13472 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13473 if test $gdb_cv_have_aix_thread_debug = yes; then
13474 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
13475 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
13476 LIBS
="$LIBS -lpthdebug"
13478 # Older versions of AIX do not provide the declaration for
13479 # the getthrds function (it appears that it was introduced
13481 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
13483 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
13489 cat >>confdefs.h
<<_ACEOF
13490 #define HAVE_DECL_GETTHRDS $ac_have_decl
13499 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13501 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13502 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13503 $as_echo_n "(cached) " >&6
13505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13506 /* end confdefs.h. */
13507 #include <thread_db.h>
13511 int i = TD_NOTALLOC;
13516 if ac_fn_c_try_compile
"$LINENO"; then :
13517 gdb_cv_thread_db_h_has_td_notalloc
=yes
13519 gdb_cv_thread_db_h_has_td_notalloc
=no
13522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13526 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
13528 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
13529 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13530 $as_echo_n "(cached) " >&6
13532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13534 #include <thread_db.h>
13538 int i = TD_VERSION;
13543 if ac_fn_c_try_compile
"$LINENO"; then :
13544 gdb_cv_thread_db_h_has_td_version
=yes
13546 gdb_cv_thread_db_h_has_td_version
=no
13549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
13553 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
13555 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
13556 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
13557 $as_echo_n "(cached) " >&6
13559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h. */
13561 #include <thread_db.h>
13570 if ac_fn_c_try_compile
"$LINENO"; then :
13571 gdb_cv_thread_db_h_has_td_notls
=yes
13573 gdb_cv_thread_db_h_has_td_notls
=no
13576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
13580 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
13582 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
13584 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
13587 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
13589 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
13592 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
13594 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
13598 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
13600 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
13601 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
13602 $as_echo_n "(cached) " >&6
13604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606 #include <sys/syscall.h>
13610 int i = __NR_tkill;
13615 if ac_fn_c_try_compile
"$LINENO"; then :
13616 gdb_cv_sys_syscall_h_has_tkill
=yes
13618 gdb_cv_sys_syscall_h_has_tkill
=no
13621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
13625 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
13627 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
13628 ac_fn_c_check_func
"$LINENO" "syscall" "ac_cv_func_syscall"
13629 if test "x$ac_cv_func_syscall" = x
""yes; then :
13631 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
13638 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13640 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
13646 cat >>confdefs.h
<<_ACEOF
13647 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13651 if test "$cross_compiling" = yes; then :
13652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13654 #include <sys/personality.h>
13659 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13660 # define ADDR_NO_RANDOMIZE 0x0040000
13662 /* Test the flag could be set and stays set. */
13663 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13664 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13670 if ac_fn_c_try_link
"$LINENO"; then :
13671 have_personality
=true
13673 have_personality
=false
13675 rm -f core conftest.err conftest.
$ac_objext \
13676 conftest
$ac_exeext conftest.
$ac_ext
13678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h. */
13680 #include <sys/personality.h>
13685 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13686 # define ADDR_NO_RANDOMIZE 0x0040000
13688 /* Test the flag could be set and stays set. */
13689 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13690 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13696 if ac_fn_c_try_run
"$LINENO"; then :
13697 have_personality
=true
13699 have_personality
=false
13701 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13702 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13705 if $have_personality
13708 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13721 cat >>confdefs.h
<<_ACEOF
13722 #define GDBINIT "$gdbinit"
13727 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
13728 # except that the argument to --with-sysroot is optional.
13729 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
13730 if test "x$with_sysroot" = xyes
; then
13731 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
13734 # Check whether --with-sysroot was given.
13735 if test "${with_sysroot+set}" = set; then :
13736 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
13738 TARGET_SYSTEM_ROOT
=
13742 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
13743 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13744 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
13745 ac_define_dir
=`eval echo $ac_define_dir`
13747 cat >>confdefs.h
<<_ACEOF
13748 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
13754 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
13755 if test "x$prefix" = xNONE
; then
13756 test_prefix
=/usr
/local
13758 test_prefix
=$prefix
13761 test_prefix
=$exec_prefix
13764 case ${ac_define_dir} in
13765 "${test_prefix}"|
"${test_prefix}/"*|\
13766 '${exec_prefix}'|
'${exec_prefix}/'*)
13771 cat >>confdefs.h
<<_ACEOF
13772 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
13779 # Check whether --with-system-gdbinit was given.
13780 if test "${with_system_gdbinit+set}" = set; then :
13781 withval
=$with_system_gdbinit;
13782 SYSTEM_GDBINIT
=$withval
13788 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
13789 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13790 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
13791 ac_define_dir
=`eval echo $ac_define_dir`
13793 cat >>confdefs.h
<<_ACEOF
13794 #define SYSTEM_GDBINIT "$ac_define_dir"
13800 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
13801 if test "x$prefix" = xNONE
; then
13802 test_prefix
=/usr
/local
13804 test_prefix
=$prefix
13807 test_prefix
=$exec_prefix
13810 case ${ac_define_dir} in
13811 "${test_prefix}"|
"${test_prefix}/"*|\
13812 '${exec_prefix}'|
'${exec_prefix}/'*)
13817 cat >>confdefs.h
<<_ACEOF
13818 #define SYSTEM_GDBINIT_RELOCATABLE $value
13824 # Check whether --enable-werror was given.
13825 if test "${enable_werror+set}" = set; then :
13826 enableval
=$enable_werror; case "${enableval}" in
13827 yes | y
) ERROR_ON_WARNING
="yes" ;;
13828 no | n
) ERROR_ON_WARNING
="no" ;;
13829 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13834 # Enable -Werror by default when using gcc in C mode. Leave it off
13835 # for C++ until we're warning clean. Turn it off for releases.
13836 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" \
13837 && test x
"$enable_build_with_cxx" != x
"yes" \
13838 && $development; then
13839 ERROR_ON_WARNING
=yes
13843 if test "${ERROR_ON_WARNING}" = yes ; then
13844 WERROR_CFLAGS
="-Werror"
13847 # These options work in either C or C++ modes.
13848 build_warnings
="-Wall -Wpointer-arith \
13849 -Wno-unused -Wunused-value -Wunused-function \
13850 -Wno-switch -Wno-char-subscripts \
13853 # Now add in C and C++ specific options, depending on mode.
13854 if test "$enable_build_with_cxx" = "yes"; then
13855 build_warnings
="$build_warnings -Wno-sign-compare -Wno-write-strings \
13858 build_warnings
="$build_warnings -Wpointer-sign -Wmissing-prototypes \
13859 -Wdeclaration-after-statement -Wmissing-parameter-type \
13860 -Wold-style-declaration -Wold-style-definition"
13863 # Enable -Wno-format by default when using gcc on mingw since many
13864 # GCC versions complain about %I64.
13866 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
13867 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
13870 # Check whether --enable-build-warnings was given.
13871 if test "${enable_build_warnings+set}" = set; then :
13872 enableval
=$enable_build_warnings; case "${enableval}" in
13874 no
) build_warnings
="-w";;
13875 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13876 build_warnings
="${build_warnings} ${t}";;
13877 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13878 build_warnings
="${t} ${build_warnings}";;
13879 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13881 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13882 echo "Setting compiler warning flags = $build_warnings" 6>&1
13885 # Check whether --enable-gdb-build-warnings was given.
13886 if test "${enable_gdb_build_warnings+set}" = set; then :
13887 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
13889 no
) build_warnings
="-w";;
13890 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13891 build_warnings
="${build_warnings} ${t}";;
13892 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13893 build_warnings
="${t} ${build_warnings}";;
13894 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13896 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13897 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13901 # The set of warnings supported by a C++ compiler is not the same as
13902 # of the C compiler.
13903 if test "$enable_build_with_cxx" = "yes"; then
13905 ac_cpp
='$CXXCPP $CPPFLAGS'
13906 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13907 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13908 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13913 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13916 $as_echo_n "checking compiler warning flags... " >&6; }
13917 # Separate out the -Werror flag as some files just cannot be
13918 # compiled with it enabled.
13919 for w
in ${build_warnings}; do
13921 -Werr*) WERROR_CFLAGS
=-Werror ;;
13923 # Check whether GCC accepts it.
13924 saved_CFLAGS
="$CFLAGS"
13925 CFLAGS
="$CFLAGS $w"
13926 saved_CXXFLAGS
="$CXXFLAGS"
13927 CXXFLAGS
="$CXXFLAGS $w"
13929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h. */
13940 if ac_fn_cxx_try_compile
"$LINENO"; then :
13941 WARN_CFLAGS
="${WARN_CFLAGS} $w"
13943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13944 CFLAGS
="$saved_CFLAGS"
13945 CXXFLAGS
="$saved_CXXFLAGS"
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13949 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13954 if test "$enable_build_with_cxx" = "yes"; then
13956 ac_cpp='$CPP $CPPFLAGS'
13957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13963 # In the Cygwin environment, we need some additional flags.
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
13965 $as_echo_n "checking
for cygwin...
" >&6; }
13966 if test "${gdb_cv_os_cygwin+set}" = set; then :
13967 $as_echo_n "(cached
) " >&6
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13972 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
13976 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13977 $EGREP "^lose$
" >/dev/null 2>&1; then :
13978 gdb_cv_os_cygwin=yes
13980 gdb_cv_os_cygwin=no
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
13986 $as_echo "$gdb_cv_os_cygwin" >&6; }
13989 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
13991 *go32* ) SER_HARDWIRE=ser-go32.o ;;
13992 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13993 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
13997 # libreadline needs libuser32.a in a cygwin environment
13999 if test x$gdb_cv_os_cygwin = xyes; then
14000 WIN32LIBS="-luser32"
14001 case "${target}" in
14002 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14007 # The ser-tcp.c module requires sockets.
14011 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14013 WIN32LIBS
="$WIN32LIBS -lws2_32"
14018 # Add ELF support to GDB, but only if BFD includes ELF support.
14021 OLD_LDFLAGS
=$LDFLAGS
14023 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14024 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14025 # always want our bfd.
14026 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14027 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14028 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14029 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14030 LIBS
="-lbfd -liberty -lz $intl $LIBS"
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14032 $as_echo_n "checking for ELF support in BFD... " >&6; }
14033 if test "${gdb_cv_var_elf+set}" = set; then :
14034 $as_echo_n "(cached) " >&6
14036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14037 /* end confdefs.h. */
14038 #include <stdlib.h>
14040 #include "elf-bfd.h"
14045 return bfd_get_elf_phdr_upper_bound (NULL);
14050 if ac_fn_c_try_link
"$LINENO"; then :
14055 rm -f core conftest.err conftest.
$ac_objext \
14056 conftest
$ac_exeext conftest.
$ac_ext
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14059 $as_echo "$gdb_cv_var_elf" >&6; }
14061 LDFLAGS
=$OLD_LDFLAGS
14063 if test $gdb_cv_var_elf = yes; then
14064 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
14066 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14068 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14069 if test "$plugins" = "yes"; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14071 $as_echo_n "checking for library containing dlopen... " >&6; }
14072 if test "${ac_cv_search_dlopen+set}" = set; then :
14073 $as_echo_n "(cached) " >&6
14075 ac_func_search_save_LIBS
=$LIBS
14076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14077 /* end confdefs.h. */
14079 /* Override any GCC internal prototype to avoid an error.
14080 Use char because int might match the return type of a GCC
14081 builtin and then its argument prototype would still apply. */
14094 for ac_lib
in '' dl
; do
14095 if test -z "$ac_lib"; then
14096 ac_res
="none required"
14099 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14101 if ac_fn_c_try_link
"$LINENO"; then :
14102 ac_cv_search_dlopen
=$ac_res
14104 rm -f core conftest.err conftest.
$ac_objext \
14106 if test "${ac_cv_search_dlopen+set}" = set; then :
14110 if test "${ac_cv_search_dlopen+set}" = set; then :
14113 ac_cv_search_dlopen
=no
14115 rm conftest.
$ac_ext
14116 LIBS
=$ac_func_search_save_LIBS
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14119 $as_echo "$ac_cv_search_dlopen" >&6; }
14120 ac_res
=$ac_cv_search_dlopen
14121 if test "$ac_res" != no
; then :
14122 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14129 # Add macho support to GDB, but only if BFD includes it.
14132 OLD_LDFLAGS
=$LDFLAGS
14134 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14135 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14136 # always want our bfd.
14137 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14138 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14139 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14140 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14141 LIBS
="-lbfd -liberty -lz $intl $LIBS"
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
14143 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
14144 if test "${gdb_cv_var_macho+set}" = set; then :
14145 $as_echo_n "(cached) " >&6
14147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h. */
14149 #include <stdlib.h>
14151 #include "mach-o.h"
14156 return bfd_mach_o_lookup_command (NULL, 0, NULL);
14161 if ac_fn_c_try_link
"$LINENO"; then :
14162 gdb_cv_var_macho
=yes
14164 gdb_cv_var_macho
=no
14166 rm -f core conftest.err conftest.
$ac_objext \
14167 conftest
$ac_exeext conftest.
$ac_ext
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
14170 $as_echo "$gdb_cv_var_macho" >&6; }
14172 LDFLAGS
=$OLD_LDFLAGS
14174 if test $gdb_cv_var_macho = yes; then
14175 CONFIG_OBS
="$CONFIG_OBS machoread.o"
14178 # Add any host-specific objects to GDB.
14179 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
14181 # If building on ELF, look for lzma support for embedded compressed debug info.
14182 if test $gdb_cv_var_elf = yes; then
14184 # Check whether --with-lzma was given.
14185 if test "${with_lzma+set}" = set; then :
14186 withval
=$with_lzma;
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
14192 $as_echo_n "checking whether to use lzma... " >&6; }
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
14194 $as_echo "$with_lzma" >&6; }
14196 if test "${with_lzma}" != no
; then
14207 acl_save_prefix
="$prefix"
14208 prefix
="$acl_final_prefix"
14209 acl_save_exec_prefix
="$exec_prefix"
14210 exec_prefix
="$acl_final_exec_prefix"
14212 eval additional_includedir
=\"$includedir\"
14213 eval additional_libdir
=\"$libdir\"
14215 exec_prefix
="$acl_save_exec_prefix"
14216 prefix
="$acl_save_prefix"
14219 # Check whether --with-liblzma-prefix was given.
14220 if test "${with_liblzma_prefix+set}" = set; then :
14221 withval
=$with_liblzma_prefix;
14222 if test "X$withval" = "Xno"; then
14225 if test "X$withval" = "X"; then
14227 acl_save_prefix
="$prefix"
14228 prefix
="$acl_final_prefix"
14229 acl_save_exec_prefix
="$exec_prefix"
14230 exec_prefix
="$acl_final_exec_prefix"
14232 eval additional_includedir
=\"$includedir\"
14233 eval additional_libdir
=\"$libdir\"
14235 exec_prefix
="$acl_save_exec_prefix"
14236 prefix
="$acl_save_prefix"
14239 additional_includedir
="$withval/include"
14240 additional_libdir
="$withval/lib"
14251 names_already_handled
=
14252 names_next_round
='lzma '
14253 while test -n "$names_next_round"; do
14254 names_this_round
="$names_next_round"
14256 for name
in $names_this_round; do
14258 for n
in $names_already_handled; do
14259 if test "$n" = "$name"; then
14260 already_handled
=yes
14264 if test -z "$already_handled"; then
14265 names_already_handled
="$names_already_handled $name"
14266 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14267 eval value
=\"\
$HAVE_LIB$uppername\"
14268 if test -n "$value"; then
14269 if test "$value" = yes; then
14270 eval value
=\"\
$LIB$uppername\"
14271 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
14272 eval value
=\"\
$LTLIB$uppername\"
14273 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
14282 if test $use_additional = yes; then
14283 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14284 found_dir
="$additional_libdir"
14285 found_so
="$additional_libdir/lib$name.$shlibext"
14286 if test -f "$additional_libdir/lib$name.la"; then
14287 found_la
="$additional_libdir/lib$name.la"
14290 if test -f "$additional_libdir/lib$name.$libext"; then
14291 found_dir
="$additional_libdir"
14292 found_a
="$additional_libdir/lib$name.$libext"
14293 if test -f "$additional_libdir/lib$name.la"; then
14294 found_la
="$additional_libdir/lib$name.la"
14299 if test "X$found_dir" = "X"; then
14300 for x
in $LDFLAGS $LTLIBLZMA; do
14302 acl_save_prefix
="$prefix"
14303 prefix
="$acl_final_prefix"
14304 acl_save_exec_prefix
="$exec_prefix"
14305 exec_prefix
="$acl_final_exec_prefix"
14307 exec_prefix
="$acl_save_exec_prefix"
14308 prefix
="$acl_save_prefix"
14312 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14313 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14315 found_so
="$dir/lib$name.$shlibext"
14316 if test -f "$dir/lib$name.la"; then
14317 found_la
="$dir/lib$name.la"
14320 if test -f "$dir/lib$name.$libext"; then
14322 found_a
="$dir/lib$name.$libext"
14323 if test -f "$dir/lib$name.la"; then
14324 found_la
="$dir/lib$name.la"
14330 if test "X$found_dir" != "X"; then
14335 if test "X$found_dir" != "X"; then
14336 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
14337 if test "X$found_so" != "X"; then
14338 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14339 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14342 for x
in $ltrpathdirs; do
14343 if test "X$x" = "X$found_dir"; then
14348 if test -z "$haveit"; then
14349 ltrpathdirs
="$ltrpathdirs $found_dir"
14351 if test "$hardcode_direct" = yes; then
14352 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14354 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14355 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14357 for x
in $rpathdirs; do
14358 if test "X$x" = "X$found_dir"; then
14363 if test -z "$haveit"; then
14364 rpathdirs
="$rpathdirs $found_dir"
14368 for x
in $LDFLAGS $LIBLZMA; do
14370 acl_save_prefix
="$prefix"
14371 prefix
="$acl_final_prefix"
14372 acl_save_exec_prefix
="$exec_prefix"
14373 exec_prefix
="$acl_final_exec_prefix"
14375 exec_prefix
="$acl_save_exec_prefix"
14376 prefix
="$acl_save_prefix"
14378 if test "X$x" = "X-L$found_dir"; then
14383 if test -z "$haveit"; then
14384 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
14386 if test "$hardcode_minus_L" != no
; then
14387 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14389 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
14395 if test "X$found_a" != "X"; then
14396 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
14398 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
14401 additional_includedir
=
14402 case "$found_dir" in
14404 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14405 additional_includedir
="$basedir/include"
14408 if test "X$additional_includedir" != "X"; then
14409 if test "X$additional_includedir" != "X/usr/include"; then
14411 if test "X$additional_includedir" = "X/usr/local/include"; then
14412 if test -n "$GCC"; then
14414 linux
*) haveit
=yes;;
14418 if test -z "$haveit"; then
14419 for x
in $CPPFLAGS $INCLZMA; do
14421 acl_save_prefix
="$prefix"
14422 prefix
="$acl_final_prefix"
14423 acl_save_exec_prefix
="$exec_prefix"
14424 exec_prefix
="$acl_final_exec_prefix"
14426 exec_prefix
="$acl_save_exec_prefix"
14427 prefix
="$acl_save_prefix"
14429 if test "X$x" = "X-I$additional_includedir"; then
14434 if test -z "$haveit"; then
14435 if test -d "$additional_includedir"; then
14436 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
14442 if test -n "$found_la"; then
14443 save_libdir
="$libdir"
14444 case "$found_la" in
14445 */* |
*\\*) .
"$found_la" ;;
14446 *) .
"./$found_la" ;;
14448 libdir
="$save_libdir"
14449 for dep
in $dependency_libs; do
14452 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14453 if test "X$additional_libdir" != "X/usr/lib"; then
14455 if test "X$additional_libdir" = "X/usr/local/lib"; then
14456 if test -n "$GCC"; then
14458 linux
*) haveit
=yes;;
14462 if test -z "$haveit"; then
14464 for x
in $LDFLAGS $LIBLZMA; do
14466 acl_save_prefix
="$prefix"
14467 prefix
="$acl_final_prefix"
14468 acl_save_exec_prefix
="$exec_prefix"
14469 exec_prefix
="$acl_final_exec_prefix"
14471 exec_prefix
="$acl_save_exec_prefix"
14472 prefix
="$acl_save_prefix"
14474 if test "X$x" = "X-L$additional_libdir"; then
14479 if test -z "$haveit"; then
14480 if test -d "$additional_libdir"; then
14481 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
14485 for x
in $LDFLAGS $LTLIBLZMA; do
14487 acl_save_prefix
="$prefix"
14488 prefix
="$acl_final_prefix"
14489 acl_save_exec_prefix
="$exec_prefix"
14490 exec_prefix
="$acl_final_exec_prefix"
14492 exec_prefix
="$acl_save_exec_prefix"
14493 prefix
="$acl_save_prefix"
14495 if test "X$x" = "X-L$additional_libdir"; then
14500 if test -z "$haveit"; then
14501 if test -d "$additional_libdir"; then
14502 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
14509 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14510 if test "$enable_rpath" != no
; then
14512 for x
in $rpathdirs; do
14513 if test "X$x" = "X$dir"; then
14518 if test -z "$haveit"; then
14519 rpathdirs
="$rpathdirs $dir"
14522 for x
in $ltrpathdirs; do
14523 if test "X$x" = "X$dir"; then
14528 if test -z "$haveit"; then
14529 ltrpathdirs
="$ltrpathdirs $dir"
14534 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14537 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14540 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
14541 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
14547 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
14548 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
14554 if test "X$rpathdirs" != "X"; then
14555 if test -n "$hardcode_libdir_separator"; then
14557 for found_dir
in $rpathdirs; do
14558 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14560 acl_save_libdir
="$libdir"
14562 eval flag
=\"$hardcode_libdir_flag_spec\"
14563 libdir
="$acl_save_libdir"
14564 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
14566 for found_dir
in $rpathdirs; do
14567 acl_save_libdir
="$libdir"
14568 libdir
="$found_dir"
14569 eval flag
=\"$hardcode_libdir_flag_spec\"
14570 libdir
="$acl_save_libdir"
14571 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
14575 if test "X$ltrpathdirs" != "X"; then
14576 for found_dir
in $ltrpathdirs; do
14577 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
14582 ac_save_CPPFLAGS
="$CPPFLAGS"
14584 for element
in $INCLZMA; do
14586 for x
in $CPPFLAGS; do
14588 acl_save_prefix
="$prefix"
14589 prefix
="$acl_final_prefix"
14590 acl_save_exec_prefix
="$exec_prefix"
14591 exec_prefix
="$acl_final_exec_prefix"
14593 exec_prefix
="$acl_save_exec_prefix"
14594 prefix
="$acl_save_prefix"
14596 if test "X$x" = "X$element"; then
14601 if test -z "$haveit"; then
14602 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
14608 $as_echo_n "checking for liblzma... " >&6; }
14609 if test "${ac_cv_liblzma+set}" = set; then :
14610 $as_echo_n "(cached) " >&6
14613 ac_save_LIBS
="$LIBS"
14614 LIBS
="$LIBS $LIBLZMA"
14615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14616 /* end confdefs.h. */
14621 lzma_index_iter iter;
14622 lzma_index_iter_init (&iter, 0);
14623 lzma_mf_is_supported (LZMA_MF_HC3);
14628 if ac_fn_c_try_link
"$LINENO"; then :
14633 rm -f core conftest.err conftest.
$ac_objext \
14634 conftest
$ac_exeext conftest.
$ac_ext
14635 LIBS
="$ac_save_LIBS"
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
14639 $as_echo "$ac_cv_liblzma" >&6; }
14640 if test "$ac_cv_liblzma" = yes; then
14643 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
14646 $as_echo_n "checking how to link with liblzma... " >&6; }
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
14648 $as_echo "$LIBLZMA" >&6; }
14651 CPPFLAGS
="$ac_save_CPPFLAGS"
14661 if test "$HAVE_LIBLZMA" != yes; then
14662 if test "$with_lzma" = yes; then
14663 as_fn_error
"missing liblzma for --with-lzma" "$LINENO" 5
14669 LIBGUI
="../libgui/src/libgui.a"
14670 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
14679 *-*-cygwin* |
*-*-mingw* )
14688 if test "${enable_gdbtk}" = "yes"; then
14690 # Gdbtk must have an absolute path to srcdir in order to run
14691 # properly when not installed.
14694 GDBTK_SRC_DIR
=`pwd`
14699 # Ok, lets find the tcl configuration
14700 # First, look for one uninstalled.
14701 # the alternative search directory is invoked by --with-tcl
14704 if test x
"${no_tcl}" = x
; then
14705 # we reset no_tcl in case something fails here
14708 # Check whether --with-tcl was given.
14709 if test "${with_tcl+set}" = set; then :
14710 withval
=$with_tcl; with_tclconfig
=${withval}
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
14714 $as_echo_n "checking for Tcl configuration... " >&6; }
14715 if test "${ac_cv_c_tclconfig+set}" = set; then :
14716 $as_echo_n "(cached) " >&6
14720 # First check to see if --with-tcl was specified.
14722 *-*-cygwin*) platDir
="win" ;;
14723 *) platDir
="unix" ;;
14725 if test x
"${with_tclconfig}" != x
; then
14726 if test -f "${with_tclconfig}/tclConfig.sh" ; then
14727 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
14729 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
14733 # then check for a private Tcl installation
14734 if test x
"${ac_cv_c_tclconfig}" = x
; then
14737 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14738 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
14739 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
14741 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14742 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
14743 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
14745 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14746 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
14747 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
14748 if test -f "$i/$platDir/tclConfig.sh" ; then
14749 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
14755 # on Darwin, check in Framework installation locations
14756 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
14757 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
14758 `ls -d /Library/Frameworks 2>/dev/null` \
14759 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14760 `ls -d /System/Library/Frameworks 2>/dev/null` \
14762 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
14763 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
14769 # check in a few common install locations
14770 if test x
"${ac_cv_c_tclconfig}" = x
; then
14771 for i
in `ls -d ${libdir} 2>/dev/null` \
14772 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14773 `ls -d ${prefix}/lib 2>/dev/null` \
14774 `ls -d /usr/local/lib 2>/dev/null` \
14775 `ls -d /usr/contrib/lib 2>/dev/null` \
14776 `ls -d /usr/lib 2>/dev/null` \
14778 if test -f "$i/tclConfig.sh" ; then
14779 ac_cv_c_tclconfig
=`(cd $i; pwd)`
14785 # check in a few other private locations
14786 if test x
"${ac_cv_c_tclconfig}" = x
; then
14789 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14790 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
14791 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
14792 if test -f "$i/$platDir/tclConfig.sh" ; then
14793 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
14802 if test x
"${ac_cv_c_tclconfig}" = x
; then
14803 TCL_BIN_DIR
="# no Tcl configs found"
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
14805 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
14808 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
14810 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14815 # If $no_tk is nonempty, then we can't do Tk, and there is no
14816 # point to doing Tcl.
14819 # Ok, lets find the tk configuration
14820 # First, look for one uninstalled.
14821 # the alternative search directory is invoked by --with-tk
14824 if test x
"${no_tk}" = x
; then
14825 # we reset no_tk in case something fails here
14828 # Check whether --with-tk was given.
14829 if test "${with_tk+set}" = set; then :
14830 withval
=$with_tk; with_tkconfig
=${withval}
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
14834 $as_echo_n "checking for Tk configuration... " >&6; }
14835 if test "${ac_cv_c_tkconfig+set}" = set; then :
14836 $as_echo_n "(cached) " >&6
14840 # First check to see if --with-tkconfig was specified.
14841 if test x
"${with_tkconfig}" != x
; then
14842 if test -f "${with_tkconfig}/tkConfig.sh" ; then
14843 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
14845 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
14849 # then check for a private Tk library
14851 *-*-cygwin*) platDir
="win" ;;
14852 *) platDir
="unix" ;;
14854 if test x
"${ac_cv_c_tkconfig}" = x
; then
14857 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14858 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
14859 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
14861 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14862 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
14863 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
14865 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14866 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
14867 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
14868 if test -f "$i/$platDir/tkConfig.sh" ; then
14869 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
14875 # on Darwin, check in Framework installation locations
14876 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
14877 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
14878 `ls -d /Library/Frameworks 2>/dev/null` \
14879 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14880 `ls -d /System/Library/Frameworks 2>/dev/null` \
14882 if test -f "$i/Tk.framework/tkConfig.sh" ; then
14883 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
14889 # check in a few common install locations
14890 if test x
"${ac_cv_c_tkconfig}" = x
; then
14891 for i
in `ls -d ${libdir} 2>/dev/null` \
14892 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14893 `ls -d ${prefix}/lib 2>/dev/null` \
14894 `ls -d /usr/local/lib 2>/dev/null` \
14895 `ls -d /usr/contrib/lib 2>/dev/null` \
14896 `ls -d /usr/lib 2>/dev/null` \
14898 if test -f "$i/tkConfig.sh" ; then
14899 ac_cv_c_tkconfig
=`(cd $i; pwd)`
14904 # check in a few other private locations
14905 if test x
"${ac_cv_c_tkconfig}" = x
; then
14908 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14909 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
14910 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
14911 if test -f "$i/$platDir/tkConfig.sh" ; then
14912 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
14921 if test x
"${ac_cv_c_tkconfig}" = x
; then
14922 TK_BIN_DIR
="# no Tk configs found"
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
14924 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
14927 TK_BIN_DIR
=${ac_cv_c_tkconfig}
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
14929 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14934 if test -z "${no_tcl}" -a -z "${no_tk}"; then
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
14937 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
14939 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14941 $as_echo "loading" >&6; }
14942 .
${TCL_BIN_DIR}/tclConfig.sh
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
14945 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14948 # eval is required to do the TCL_DBGX substitution
14949 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
14950 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
14952 # If the TCL_BIN_DIR is the build directory (not the install directory),
14953 # then set the common variable name to the value of the build variables.
14954 # For example, the variable TCL_LIB_SPEC will be set to the value
14955 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
14956 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
14957 # installed and uninstalled version of Tcl.
14958 if test -f "${TCL_BIN_DIR}/Makefile" ; then
14959 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
14960 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
14961 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
14962 elif test "`uname -s`" = "Darwin"; then
14963 # If Tcl was built as a framework, attempt to use the libraries
14964 # from the framework at the given location so that linking works
14965 # against Tcl.framework installed in an arbitrary location.
14966 case ${TCL_DEFS} in
14968 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
14969 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
14970 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
14971 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
14972 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
14977 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
14978 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
14979 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
14985 # eval is required to do the TCL_DBGX substitution
14986 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
14987 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
14988 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
14989 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15005 # Check for in-tree tcl
15012 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15016 # Find Tcl private headers
15017 if test x
"${intree}" = xno
; then
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15020 $as_echo_n "checking for Tcl private headers... " >&6; }
15022 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15023 if test -f ${dir}/tclInt.h
; then
15027 if test x
"${private_dir}" = x
; then
15028 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
15030 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15032 $as_echo "${private_dir}" >&6; }
15035 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15036 TCL_LIBRARY
="${TCL_LIB_SPEC}"
15039 # If building tcl in the same src tree, private headers
15040 # are not needed, but we need to be sure to use the right
15042 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
15043 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
15044 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15052 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15054 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15056 $as_echo "loading" >&6; }
15057 .
${TK_BIN_DIR}/tkConfig.sh
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15060 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15063 # eval is required to do the TK_DBGX substitution
15064 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15065 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15067 # If the TK_BIN_DIR is the build directory (not the install directory),
15068 # then set the common variable name to the value of the build variables.
15069 # For example, the variable TK_LIB_SPEC will be set to the value
15070 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15071 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15072 # installed and uninstalled version of Tcl.
15073 if test -f "${TK_BIN_DIR}/Makefile" ; then
15074 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
15075 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
15076 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
15077 elif test "`uname -s`" = "Darwin"; then
15078 # If Tk was built as a framework, attempt to use the libraries
15079 # from the framework at the given location so that linking works
15080 # against Tk.framework installed in an arbitrary location.
15083 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15084 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
15085 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15086 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15087 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15092 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15093 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15094 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15100 # eval is required to do the TK_DBGX substitution
15101 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15102 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15103 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15104 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15119 # Check for in-tree Tk
15121 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15125 # Find Tk private headers
15126 if test x
"${intree}" = xno
; then
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15129 $as_echo_n "checking for Tk private headers... " >&6; }
15131 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15132 if test -f ${dir}/tkInt.h
; then
15136 if test x
"${private_dir}" = x
; then
15137 as_fn_error
"could not find Tk private headers" "$LINENO" 5
15139 TK_PRIVATE_INCLUDE
="-I${private_dir}"
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15141 $as_echo "${private_dir}" >&6; }
15144 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15145 TK_LIBRARY
=${TK_LIB_SPEC}
15148 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
15149 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
15150 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
15157 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15159 # Include some libraries that Tcl and Tk want.
15160 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15161 # Yes, the ordering seems wrong here. But it isn't.
15162 # TK_LIBS is the list of libraries that need to be linked
15163 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15164 # were in LIBS then any link tests after this point would
15165 # try to include things like `$(LIBGUI)', which wouldn't work.
15166 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
15168 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15169 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15170 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15171 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
15172 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
15173 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
15174 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
15176 if test x
$gdb_cv_os_cygwin = xyes
; then
15177 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15178 WIN32LDAPP
="-Wl,--subsystem,console"
15179 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
15182 subdirs
="$subdirs gdbtk"
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15195 $as_echo_n "checking for X... " >&6; }
15198 # Check whether --with-x was given.
15199 if test "${with_x+set}" = set; then :
15203 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15204 if test "x$with_x" = xno
; then
15205 # The user explicitly disabled X.
15208 case $x_includes,$x_libraries in #(
15209 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
15210 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
15211 $as_echo_n "(cached) " >&6
15213 # One or both of the vars are not set, and there is no cached value.
15214 ac_x_includes
=no ac_x_libraries
=no
15215 rm -f -r conftest.dir
15216 if mkdir conftest.dir
; then
15218 cat >Imakefile
<<'_ACEOF'
15220 @echo incroot='${INCROOT}'
15222 @echo usrlibdir='${USRLIBDIR}'
15224 @echo libdir='${LIBDIR}'
15226 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
15227 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15228 for ac_var
in incroot usrlibdir libdir
; do
15229 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15231 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15232 for ac_extension
in a so sl dylib la dll
; do
15233 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15234 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15235 ac_im_usrlibdir
=$ac_im_libdir; break
15238 # Screen out bogus values from the imake configuration. They are
15239 # bogus both because they are the default anyway, and because
15240 # using them would break gcc on systems where it needs fixed includes.
15241 case $ac_im_incroot in
15242 /usr
/include
) ac_x_includes
= ;;
15243 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
15245 case $ac_im_usrlibdir in
15246 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
15247 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
15251 rm -f -r conftest.dir
15254 # Standard set of common directories for X headers.
15255 # Check X11 before X11Rn because it is often a symlink to the current release.
15269 /usr/local/X11/include
15270 /usr/local/X11R7/include
15271 /usr/local/X11R6/include
15272 /usr/local/X11R5/include
15273 /usr/local/X11R4/include
15275 /usr/local/include/X11
15276 /usr/local/include/X11R7
15277 /usr/local/include/X11R6
15278 /usr/local/include/X11R5
15279 /usr/local/include/X11R4
15283 /usr/XFree86/include/X11
15287 /usr/unsupported/include
15288 /usr/athena/include
15289 /usr/local/x11r5/include
15290 /usr/lpp/Xamples/include
15292 /usr/openwin/include
15293 /usr/openwin/share/include'
15295 if test "$ac_x_includes" = no
; then
15296 # Guess where to find include files, by looking for Xlib.h.
15297 # First, try using that file with no special directory specified.
15298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h. */
15300 #include <X11/Xlib.h>
15302 if ac_fn_c_try_cpp
"$LINENO"; then :
15303 # We can compile using X headers with no special include directory.
15306 for ac_dir
in $ac_x_header_dirs; do
15307 if test -r "$ac_dir/X11/Xlib.h"; then
15308 ac_x_includes
=$ac_dir
15313 rm -f conftest.err conftest.
$ac_ext
15314 fi # $ac_x_includes = no
15316 if test "$ac_x_libraries" = no
; then
15317 # Check for the libraries.
15318 # See if we find them without any special options.
15319 # Don't add to $LIBS permanently.
15322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15323 /* end confdefs.h. */
15324 #include <X11/Xlib.h>
15333 if ac_fn_c_try_link
"$LINENO"; then :
15335 # We can link X programs with no special library path.
15339 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15341 # Don't even attempt the hair of trying to link an X program!
15342 for ac_extension
in a so sl dylib la dll
; do
15343 if test -r "$ac_dir/libX11.$ac_extension"; then
15344 ac_x_libraries
=$ac_dir
15350 rm -f core conftest.err conftest.
$ac_objext \
15351 conftest
$ac_exeext conftest.
$ac_ext
15352 fi # $ac_x_libraries = no
15354 case $ac_x_includes,$ac_x_libraries in #(
15355 no
,* |
*,no |
*\'*)
15356 # Didn't find X, or a directory has "'" in its name.
15357 ac_cv_have_x
="have_x=no";; #(
15359 # Record where we found X for the cache.
15360 ac_cv_have_x
="have_x=yes\
15361 ac_x_includes='$ac_x_includes'\
15362 ac_x_libraries='$ac_x_libraries'"
15368 eval "$ac_cv_have_x"
15371 if test "$have_x" != yes; then
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15373 $as_echo "$have_x" >&6; }
15376 # If each of the values was on the command line, it overrides each guess.
15377 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
15378 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
15379 # Update the cache value to reflect the command line values.
15380 ac_cv_have_x
="have_x=yes\
15381 ac_x_includes='$x_includes'\
15382 ac_x_libraries='$x_libraries'"
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15384 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15388 # Unlike the sim directory, whether a simulator is linked is controlled by
15389 # presence of a gdb_sim definition in the target configure.tgt entry.
15390 # This code just checks for a few cases where we'd like to ignore those
15391 # definitions, even when they're present in the '.mt' file. These cases
15392 # are when --disable-sim is specified, or if the simulator directory is
15393 # not part of the source tree.
15395 # Check whether --enable-sim was given.
15396 if test "${enable_sim+set}" = set; then :
15397 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
15398 echo "enableval = ${enableval}";
15399 case "${enableval}" in
15400 yes) ignore_sim
=false
;;
15401 no
) ignore_sim
=true
;;
15402 *) ignore_sim
=false
;;
15409 if test ! -d "${srcdir}/../sim"; then
15415 if test "${ignore_sim}" = "false"; then
15416 if test x
"${gdb_sim}" != x
; then
15418 SIM_OBS
="remote-sim.o"
15420 $as_echo "#define WITH_SIM 1" >>confdefs.h
15438 # List of host floatformats.
15440 cat >>confdefs.h
<<_ACEOF
15441 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15445 cat >>confdefs.h
<<_ACEOF
15446 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15450 cat >>confdefs.h
<<_ACEOF
15451 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15455 # target_subdir is used by the testsuite to find the target libraries.
15457 if test "${host}" != "${target}"; then
15458 target_subdir
="${target_alias}/"
15463 if test "${gdb_native}" = "yes"; then
15464 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15465 if test ! -f ${host_makefile_frag}; then
15466 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15468 frags
="$frags $host_makefile_frag"
15470 host_makefile_frag
=/dev
/null
15476 if test "${gdb_native}" = "yes"; then
15477 # We pick this up from the host configuration file (.mh) because we
15478 # do not have a native configuration Makefile fragment.
15479 nativefile
=`sed -n '
15480 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15481 ' ${host_makefile_frag}`
15485 if test x
"${gdb_osabi}" != x
; then
15487 cat >>confdefs.h
<<_ACEOF
15488 #define GDB_OSABI_DEFAULT $gdb_osabi
15493 # Enable multi-ice-gdb-server.
15494 # Check whether --enable-multi-ice was given.
15495 if test "${enable_multi_ice+set}" = set; then :
15496 enableval
=$enable_multi_ice; case $enableval in
15499 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15503 if test "x$enable_multi_ice" = xyes
; then
15504 subdirs
="$subdirs multi-ice"
15508 # Check whether --enable-gdbserver was given.
15509 if test "${enable_gdbserver+set}" = set; then :
15510 enableval
=$enable_gdbserver; case "${enableval}" in
15512 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15515 enable_gdbserver
=auto
15519 # We only build gdbserver automatically in a native configuration, and
15520 # only if the user did not explicitly disable its build.
15521 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15523 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15524 if test "x$build_gdbserver" = xyes
; then
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15526 $as_echo "yes" >&6; }
15527 subdirs
="$subdirs gdbserver"
15529 gdbserver_build_enabled
=yes
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15532 $as_echo "no" >&6; }
15536 # If the user explicitly request the gdbserver to be built, verify that
15537 # we were in fact able to enable it.
15538 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15539 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15542 # Check for babeltrace and babeltrace-ctf
15544 # Check whether --with-babeltrace was given.
15545 if test "${with_babeltrace+set}" = set; then :
15546 withval
=$with_babeltrace;
15548 with_babeltrace
=auto
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
15552 $as_echo_n "checking whether to use babeltrace... " >&6; }
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
15554 $as_echo "$with_babeltrace" >&6; }
15556 if test "x$with_babeltrace" = "xno"; then
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
15558 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
15560 # Append -Werror to CFLAGS so that configure can catch the warning
15561 # "assignment from incompatible pointer type", which is related to
15562 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
15563 # in GDB, while babeltrace 1.0.3 is broken.
15564 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
15565 # safe to save and restore CFLAGS here.
15566 saved_CFLAGS
=$CFLAGS
15567 CFLAGS
="$CFLAGS -Werror"
15578 acl_save_prefix
="$prefix"
15579 prefix
="$acl_final_prefix"
15580 acl_save_exec_prefix
="$exec_prefix"
15581 exec_prefix
="$acl_final_exec_prefix"
15583 eval additional_includedir
=\"$includedir\"
15584 eval additional_libdir
=\"$libdir\"
15586 exec_prefix
="$acl_save_exec_prefix"
15587 prefix
="$acl_save_prefix"
15590 # Check whether --with-libbabeltrace-prefix was given.
15591 if test "${with_libbabeltrace_prefix+set}" = set; then :
15592 withval
=$with_libbabeltrace_prefix;
15593 if test "X$withval" = "Xno"; then
15596 if test "X$withval" = "X"; then
15598 acl_save_prefix
="$prefix"
15599 prefix
="$acl_final_prefix"
15600 acl_save_exec_prefix
="$exec_prefix"
15601 exec_prefix
="$acl_final_exec_prefix"
15603 eval additional_includedir
=\"$includedir\"
15604 eval additional_libdir
=\"$libdir\"
15606 exec_prefix
="$acl_save_exec_prefix"
15607 prefix
="$acl_save_prefix"
15610 additional_includedir
="$withval/include"
15611 additional_libdir
="$withval/lib"
15622 names_already_handled
=
15623 names_next_round
='babeltrace babeltrace-ctf'
15624 while test -n "$names_next_round"; do
15625 names_this_round
="$names_next_round"
15627 for name
in $names_this_round; do
15629 for n
in $names_already_handled; do
15630 if test "$n" = "$name"; then
15631 already_handled
=yes
15635 if test -z "$already_handled"; then
15636 names_already_handled
="$names_already_handled $name"
15637 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15638 eval value
=\"\
$HAVE_LIB$uppername\"
15639 if test -n "$value"; then
15640 if test "$value" = yes; then
15641 eval value
=\"\
$LIB$uppername\"
15642 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
15643 eval value
=\"\
$LTLIB$uppername\"
15644 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
15653 if test $use_additional = yes; then
15654 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15655 found_dir
="$additional_libdir"
15656 found_so
="$additional_libdir/lib$name.$shlibext"
15657 if test -f "$additional_libdir/lib$name.la"; then
15658 found_la
="$additional_libdir/lib$name.la"
15661 if test -f "$additional_libdir/lib$name.$libext"; then
15662 found_dir
="$additional_libdir"
15663 found_a
="$additional_libdir/lib$name.$libext"
15664 if test -f "$additional_libdir/lib$name.la"; then
15665 found_la
="$additional_libdir/lib$name.la"
15670 if test "X$found_dir" = "X"; then
15671 for x
in $LDFLAGS $LTLIBBABELTRACE; do
15673 acl_save_prefix
="$prefix"
15674 prefix
="$acl_final_prefix"
15675 acl_save_exec_prefix
="$exec_prefix"
15676 exec_prefix
="$acl_final_exec_prefix"
15678 exec_prefix
="$acl_save_exec_prefix"
15679 prefix
="$acl_save_prefix"
15683 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15684 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15686 found_so
="$dir/lib$name.$shlibext"
15687 if test -f "$dir/lib$name.la"; then
15688 found_la
="$dir/lib$name.la"
15691 if test -f "$dir/lib$name.$libext"; then
15693 found_a
="$dir/lib$name.$libext"
15694 if test -f "$dir/lib$name.la"; then
15695 found_la
="$dir/lib$name.la"
15701 if test "X$found_dir" != "X"; then
15706 if test "X$found_dir" != "X"; then
15707 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
15708 if test "X$found_so" != "X"; then
15709 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
15710 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15713 for x
in $ltrpathdirs; do
15714 if test "X$x" = "X$found_dir"; then
15719 if test -z "$haveit"; then
15720 ltrpathdirs
="$ltrpathdirs $found_dir"
15722 if test "$hardcode_direct" = yes; then
15723 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15725 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
15726 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15728 for x
in $rpathdirs; do
15729 if test "X$x" = "X$found_dir"; then
15734 if test -z "$haveit"; then
15735 rpathdirs
="$rpathdirs $found_dir"
15739 for x
in $LDFLAGS $LIBBABELTRACE; do
15741 acl_save_prefix
="$prefix"
15742 prefix
="$acl_final_prefix"
15743 acl_save_exec_prefix
="$exec_prefix"
15744 exec_prefix
="$acl_final_exec_prefix"
15746 exec_prefix
="$acl_save_exec_prefix"
15747 prefix
="$acl_save_prefix"
15749 if test "X$x" = "X-L$found_dir"; then
15754 if test -z "$haveit"; then
15755 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
15757 if test "$hardcode_minus_L" != no
; then
15758 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15760 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15766 if test "X$found_a" != "X"; then
15767 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
15769 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
15772 additional_includedir
=
15773 case "$found_dir" in
15775 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15776 additional_includedir
="$basedir/include"
15779 if test "X$additional_includedir" != "X"; then
15780 if test "X$additional_includedir" != "X/usr/include"; then
15782 if test "X$additional_includedir" = "X/usr/local/include"; then
15783 if test -n "$GCC"; then
15785 linux
*) haveit
=yes;;
15789 if test -z "$haveit"; then
15790 for x
in $CPPFLAGS $INCBABELTRACE; do
15792 acl_save_prefix
="$prefix"
15793 prefix
="$acl_final_prefix"
15794 acl_save_exec_prefix
="$exec_prefix"
15795 exec_prefix
="$acl_final_exec_prefix"
15797 exec_prefix
="$acl_save_exec_prefix"
15798 prefix
="$acl_save_prefix"
15800 if test "X$x" = "X-I$additional_includedir"; then
15805 if test -z "$haveit"; then
15806 if test -d "$additional_includedir"; then
15807 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
15813 if test -n "$found_la"; then
15814 save_libdir
="$libdir"
15815 case "$found_la" in
15816 */* |
*\\*) .
"$found_la" ;;
15817 *) .
"./$found_la" ;;
15819 libdir
="$save_libdir"
15820 for dep
in $dependency_libs; do
15823 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15824 if test "X$additional_libdir" != "X/usr/lib"; then
15826 if test "X$additional_libdir" = "X/usr/local/lib"; then
15827 if test -n "$GCC"; then
15829 linux
*) haveit
=yes;;
15833 if test -z "$haveit"; then
15835 for x
in $LDFLAGS $LIBBABELTRACE; do
15837 acl_save_prefix
="$prefix"
15838 prefix
="$acl_final_prefix"
15839 acl_save_exec_prefix
="$exec_prefix"
15840 exec_prefix
="$acl_final_exec_prefix"
15842 exec_prefix
="$acl_save_exec_prefix"
15843 prefix
="$acl_save_prefix"
15845 if test "X$x" = "X-L$additional_libdir"; then
15850 if test -z "$haveit"; then
15851 if test -d "$additional_libdir"; then
15852 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
15856 for x
in $LDFLAGS $LTLIBBABELTRACE; do
15858 acl_save_prefix
="$prefix"
15859 prefix
="$acl_final_prefix"
15860 acl_save_exec_prefix
="$exec_prefix"
15861 exec_prefix
="$acl_final_exec_prefix"
15863 exec_prefix
="$acl_save_exec_prefix"
15864 prefix
="$acl_save_prefix"
15866 if test "X$x" = "X-L$additional_libdir"; then
15871 if test -z "$haveit"; then
15872 if test -d "$additional_libdir"; then
15873 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
15880 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15881 if test "$enable_rpath" != no
; then
15883 for x
in $rpathdirs; do
15884 if test "X$x" = "X$dir"; then
15889 if test -z "$haveit"; then
15890 rpathdirs
="$rpathdirs $dir"
15893 for x
in $ltrpathdirs; do
15894 if test "X$x" = "X$dir"; then
15899 if test -z "$haveit"; then
15900 ltrpathdirs
="$ltrpathdirs $dir"
15905 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15908 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15911 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
15912 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
15918 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15919 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
15925 if test "X$rpathdirs" != "X"; then
15926 if test -n "$hardcode_libdir_separator"; then
15928 for found_dir
in $rpathdirs; do
15929 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15931 acl_save_libdir
="$libdir"
15933 eval flag
=\"$hardcode_libdir_flag_spec\"
15934 libdir
="$acl_save_libdir"
15935 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15937 for found_dir
in $rpathdirs; do
15938 acl_save_libdir
="$libdir"
15939 libdir
="$found_dir"
15940 eval flag
=\"$hardcode_libdir_flag_spec\"
15941 libdir
="$acl_save_libdir"
15942 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15946 if test "X$ltrpathdirs" != "X"; then
15947 for found_dir
in $ltrpathdirs; do
15948 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
15953 ac_save_CPPFLAGS
="$CPPFLAGS"
15955 for element
in $INCBABELTRACE; do
15957 for x
in $CPPFLAGS; do
15959 acl_save_prefix
="$prefix"
15960 prefix
="$acl_final_prefix"
15961 acl_save_exec_prefix
="$exec_prefix"
15962 exec_prefix
="$acl_final_exec_prefix"
15964 exec_prefix
="$acl_save_exec_prefix"
15965 prefix
="$acl_save_prefix"
15967 if test "X$x" = "X$element"; then
15972 if test -z "$haveit"; then
15973 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
15979 $as_echo_n "checking for libbabeltrace... " >&6; }
15980 if test "${ac_cv_libbabeltrace+set}" = set; then :
15981 $as_echo_n "(cached) " >&6
15984 ac_save_LIBS
="$LIBS"
15985 LIBS
="$LIBS $LIBBABELTRACE"
15986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15987 /* end confdefs.h. */
15988 #include <babeltrace/babeltrace.h>
15989 #include <babeltrace/ctf/events.h>
15990 #include <babeltrace/ctf/iterator.h>
15994 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
15995 struct bt_ctf_event *event = NULL;
15996 const struct bt_definition *scope;
15998 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
15999 scope = bt_ctf_get_top_level_scope (event,
16000 BT_STREAM_EVENT_HEADER);
16001 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
16007 if ac_fn_c_try_link
"$LINENO"; then :
16008 ac_cv_libbabeltrace
=yes
16010 ac_cv_libbabeltrace
=no
16012 rm -f core conftest.err conftest.
$ac_objext \
16013 conftest
$ac_exeext conftest.
$ac_ext
16014 LIBS
="$ac_save_LIBS"
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
16018 $as_echo "$ac_cv_libbabeltrace" >&6; }
16019 if test "$ac_cv_libbabeltrace" = yes; then
16020 HAVE_LIBBABELTRACE
=yes
16022 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
16025 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
16027 $as_echo "$LIBBABELTRACE" >&6; }
16029 HAVE_LIBBABELTRACE
=no
16030 CPPFLAGS
="$ac_save_CPPFLAGS"
16040 CFLAGS
=$saved_CFLAGS
16042 if test "$HAVE_LIBBABELTRACE" != yes; then
16043 if test "$with_babeltrace" = yes; then
16044 as_fn_error
"babeltrace is missing or unusable" "$LINENO" 5
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
16047 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
16052 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
16053 # to an empty version.
16059 if test "${nativefile}" != ""; then
16060 case "${nativefile}" in
16061 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
16062 * ) GDB_NM_FILE
="${nativefile}"
16064 files
="${files} ${GDB_NM_FILE}"
16065 links
="${links} nm.h"
16067 cat >>confdefs.h
<<_ACEOF
16068 #define GDB_NM_FILE "${GDB_NM_FILE}"
16074 ac_sources
="$files"
16076 while test -n "$ac_sources"; do
16077 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
16078 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
16079 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
16081 ac_config_links
="$ac_config_links $ac_config_links_1"
16087 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16091 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16092 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
16093 if test "x$GDB_TRANSFORM_NAME" = x
; then
16094 GDB_TRANSFORM_NAME
=gdb
16099 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16100 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
16101 if test "x$GCORE_TRANSFORM_NAME" = x
; then
16102 GCORE_TRANSFORM_NAME
=gcore
16106 ac_config_files
="$ac_config_files gcore"
16109 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
16111 ac_config_commands
="$ac_config_commands default"
16113 cat >confcache
<<\_ACEOF
16114 # This file is a shell script that caches the results of configure
16115 # tests run on this system so they can be shared between configure
16116 # scripts and configure runs, see configure's option --config-cache.
16117 # It is not useful on other systems. If it contains results you don't
16118 # want to keep, you may remove or edit it.
16120 # config.status only pays attention to the cache file if you give it
16121 # the --recheck option to rerun configure.
16123 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16124 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16125 # following values.
16129 # The following way of writing the cache mishandles newlines in values,
16130 # but we know of no workaround that is simple, portable, and efficient.
16131 # So, we kill variables containing newlines.
16132 # Ultrix sh set writes to stderr and can't be redirected directly,
16133 # and sets the high bit in the cache file unless we assign to the vars.
16135 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16136 eval ac_val
=\$
$ac_var
16140 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16141 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16144 _ | IFS | as_nl
) ;; #(
16145 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16146 *) { eval $ac_var=; unset $ac_var;} ;;
16152 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16153 *${as_nl}ac_space
=\
*)
16154 # `set' does not quote correctly, so add quotes: double-quote
16155 # substitution turns \\\\ into \\, and sed turns \\ into \.
16158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16161 # `set' quotes correctly as required by POSIX, so do not add quotes.
16162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16173 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16175 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16176 if test -w "$cache_file"; then
16177 test "x$cache_file" != "x/dev/null" &&
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16179 $as_echo "$as_me: updating cache $cache_file" >&6;}
16180 cat confcache
>$cache_file
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16183 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16188 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16189 # Let make expand exec_prefix.
16190 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16192 DEFS
=-DHAVE_CONFIG_H
16196 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16197 # 1. Remove the extension, and $U if already installed.
16198 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16199 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16200 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16201 # will be set to the directory where LIBOBJS objects are built.
16202 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16203 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16205 LIBOBJS
=$ac_libobjs
16207 LTLIBOBJS
=$ac_ltlibobjs
16210 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16211 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16214 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16215 as_fn_error
"conditional \"GMAKE\" was never defined.
16216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16218 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16219 as_fn_error
"conditional \"HAVE_PYTHON\" was never defined.
16220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16222 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
16223 as_fn_error
"conditional \"HAVE_GUILE\" was never defined.
16224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16228 : ${CONFIG_STATUS=./config.status}
16230 ac_clean_files_save
=$ac_clean_files
16231 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16233 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16235 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16237 # Generated by $as_me.
16238 # Run this file to recreate the current configuration.
16239 # Compiler output produced by configure, useful for debugging
16240 # configure, is in config.log if it exists.
16243 ac_cs_recheck=false
16246 SHELL=\${CONFIG_SHELL-$SHELL}
16249 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16250 ## -------------------- ##
16251 ## M4sh Initialization. ##
16252 ## -------------------- ##
16254 # Be more Bourne compatible
16255 DUALCASE
=1; export DUALCASE
# for MKS sh
16256 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16259 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16260 # is contrary to our usage. Disable this feature.
16261 alias -g '${1+"$@"}'='"$@"'
16262 setopt NO_GLOB_SUBST
16264 case `(set -o) 2>/dev/null` in #(
16276 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16277 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16278 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16279 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16280 # Prefer a ksh shell builtin over an external printf program on Solaris,
16281 # but without wasting forks for bash or zsh.
16282 if test -z "$BASH_VERSION$ZSH_VERSION" \
16283 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16284 as_echo='print
-r --'
16285 as_echo_n='print
-rn --'
16286 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16287 as_echo='printf %s
\n'
16288 as_echo_n='printf %s
'
16290 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16291 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16292 as_echo_n='/usr
/ucb
/echo -n'
16294 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16295 as_echo_n_body='eval
16299 expr "X$arg" : "X\\(.*\\)$as_nl";
16300 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16302 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16304 export as_echo_n_body
16305 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16307 export as_echo_body
16308 as_echo='sh
-c $as_echo_body as_echo
'
16311 # The user is always right.
16312 if test "${PATH_SEPARATOR+set}" != set; then
16314 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16315 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16322 # We need space, tab and new line, in precisely that order. Quoting is
16323 # there to prevent editors from complaining about space-tab.
16324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16325 # splitting by setting IFS to empty value.)
16328 # Find who we are. Look in the path if we contain no directory separator.
16330 *[\\/]* ) as_myself=$0 ;;
16331 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16332 for as_dir in $PATH
16335 test -z "$as_dir" && as_dir=.
16336 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16342 # We did not find ourselves, most probably we were run as `sh COMMAND'
16343 # in which case we are not to be found in the path.
16344 if test "x$as_myself" = x
; then
16347 if test ! -f "$as_myself"; then
16348 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16352 # Unset variables that we do not need and which cause bugs (e.g. in
16353 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16354 # suppresses any "Segmentation fault" message there. '((' could
16355 # trigger a bug in pdksh 5.2.14.
16356 for as_var
in BASH_ENV ENV MAIL MAILPATH
16357 do eval test x\
${$as_var+set} = xset \
16358 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16371 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16374 # as_fn_error ERROR [LINENO LOG_FD]
16375 # ---------------------------------
16376 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16377 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16378 # script with status $?, using 1 if that was 0.
16381 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16383 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16384 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16386 $as_echo "$as_me: error: $1" >&2
16387 as_fn_exit
$as_status
16391 # as_fn_set_status STATUS
16392 # -----------------------
16393 # Set $? to STATUS, without forking.
16394 as_fn_set_status
()
16397 } # as_fn_set_status
16399 # as_fn_exit STATUS
16400 # -----------------
16401 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16405 as_fn_set_status
$1
16411 # Portably unset VAR.
16414 { eval $1=; unset $1;}
16416 as_unset
=as_fn_unset
16417 # as_fn_append VAR VALUE
16418 # ----------------------
16419 # Append the text in VALUE to the end of the definition contained in VAR. Take
16420 # advantage of any shell optimizations that allow amortized linear growth over
16421 # repeated appends, instead of the typical quadratic growth present in naive
16423 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16424 eval 'as_fn_append ()
16435 # as_fn_arith ARG...
16436 # ------------------
16437 # Perform arithmetic evaluation on the ARGs, and store the result in the
16438 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16439 # must be portable across $(()) and expr.
16440 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16441 eval 'as_fn_arith ()
16448 as_val
=`expr "$@" || test $? -eq 1`
16453 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16454 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16460 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16461 as_basename
=basename
16466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16472 as_me
=`$as_basename -- "$0" ||
16473 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16474 X"$0" : 'X\(//\)$' \| \
16475 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16477 sed '/^.*\/\([^/][^/]*\)\/*$/{
16491 # Avoid depending upon Character Ranges.
16492 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16493 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16494 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16495 as_cr_digits
='0123456789'
16496 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16498 ECHO_C
= ECHO_N
= ECHO_T
=
16499 case `echo -n x` in #(((((
16501 case `echo 'xy\c'` in
16502 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16504 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16511 rm -f conf$$ conf$$.exe conf$$.
file
16512 if test -d conf$$.dir
; then
16513 rm -f conf$$.dir
/conf$$.
file
16516 mkdir conf$$.dir
2>/dev
/null
16518 if (echo >conf$$.
file) 2>/dev
/null
; then
16519 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16521 # ... but there are two gotchas:
16522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16524 # In both cases, we have to default to `cp -p'.
16525 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16527 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16535 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16536 rmdir conf$$.dir
2>/dev
/null
16541 # Create "$as_dir" as a directory, including parents if necessary.
16546 -*) as_dir
=.
/$as_dir;;
16548 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16552 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16553 *) as_qdir
=$as_dir;;
16555 as_dirs
="'$as_qdir' $as_dirs"
16556 as_dir
=`$as_dirname -- "$as_dir" ||
16557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16558 X"$as_dir" : 'X\(//\)[^/]' \| \
16559 X"$as_dir" : 'X\(//\)$' \| \
16560 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16561 $as_echo X"$as_dir" |
16562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16566 /^X\(\/\/\)[^/].*/{
16579 test -d "$as_dir" && break
16581 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16582 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16586 if mkdir
-p .
2>/dev
/null
; then
16587 as_mkdir_p
='mkdir -p "$as_dir"'
16589 test -d .
/-p && rmdir .
/-p
16593 if test -x / >/dev
/null
2>&1; then
16594 as_test_x
='test -x'
16596 if ls -dL / >/dev
/null
2>&1; then
16603 if test -d "$1"; then
16609 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16610 ???[sx]*):;;*)false;;esac;fi
16614 as_executable_p
=$as_test_x
16616 # Sed expression to map a string onto a valid CPP name.
16617 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16619 # Sed expression to map a string onto a valid variable name.
16620 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16624 ## ----------------------------------- ##
16625 ## Main body of $CONFIG_STATUS script. ##
16626 ## ----------------------------------- ##
16628 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16631 # Save the log message, to keep $0 and so on meaningful, and to
16632 # report actual input values of CONFIG_FILES etc. instead of their
16633 # values after options handling.
16635 This file was extended by $as_me, which was
16636 generated by GNU Autoconf 2.64. Invocation command line was
16638 CONFIG_FILES = $CONFIG_FILES
16639 CONFIG_HEADERS = $CONFIG_HEADERS
16640 CONFIG_LINKS = $CONFIG_LINKS
16641 CONFIG_COMMANDS = $CONFIG_COMMANDS
16644 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16649 case $ac_config_files in *"
16650 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16653 case $ac_config_headers in *"
16654 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16659 # Files that config.status was made for.
16660 config_files="$ac_config_files"
16661 config_headers="$ac_config_headers"
16662 config_links="$ac_config_links"
16663 config_commands="$ac_config_commands"
16667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16669 \`$as_me' instantiates files and other configuration actions
16670 from templates according to the current configuration. Unless the files
16671 and actions are specified as TAGs, all are instantiated by default.
16673 Usage: $0 [OPTION]... [TAG]...
16675 -h, --help print this help, then exit
16676 -V, --version print version number and configuration settings, then exit
16677 -q, --quiet, --silent
16678 do not print progress messages
16679 -d, --debug don't remove temporary files
16680 --recheck update $as_me by reconfiguring in the same conditions
16681 --file=FILE[:TEMPLATE]
16682 instantiate the configuration file FILE
16683 --header=FILE[:TEMPLATE]
16684 instantiate the configuration header FILE
16686 Configuration files:
16689 Configuration headers:
16692 Configuration links:
16695 Configuration commands:
16698 Report bugs to the package provider."
16701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16704 configured by $0, generated by GNU Autoconf 2.64,
16705 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16707 Copyright (C) 2009 Free Software Foundation, Inc.
16708 This config.status script is free software; the Free Software Foundation
16709 gives unlimited permission to copy, distribute and modify it."
16715 test -n "\$AWK" || AWK=awk
16718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16719 # The default lists apply if the user does not specify any file.
16725 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16726 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16737 # Handling of the options.
16738 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16740 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16741 $as_echo "$ac_cs_version"; exit ;;
16742 --debug |
--debu |
--deb |
--de |
--d |
-d )
16744 --file |
--fil |
--fi |
--f )
16747 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16749 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16750 ac_need_defaults
=false
;;
16751 --header |
--heade |
--head |
--hea )
16754 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16756 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16757 ac_need_defaults
=false
;;
16759 # Conflict between --help and --header
16760 as_fn_error
"ambiguous option: \`$1'
16761 Try \`$0 --help' for more information.";;
16762 --help |
--hel |
-h )
16763 $as_echo "$ac_cs_usage"; exit ;;
16764 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16765 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16768 # This is an error.
16769 -*) as_fn_error
"unrecognized option: \`$1'
16770 Try \`$0 --help' for more information." ;;
16772 *) as_fn_append ac_config_targets
" $1"
16773 ac_need_defaults
=false
;;
16779 ac_configure_extra_args
=
16781 if $ac_cs_silent; then
16783 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16788 if \$ac_cs_recheck; then
16789 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16791 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16792 CONFIG_SHELL='$SHELL'
16793 export CONFIG_SHELL
16798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16802 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16803 ## Running $as_me. ##
16809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16813 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16819 # Handling of arguments.
16820 for ac_config_target
in $ac_config_targets
16822 case $ac_config_target in
16823 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
16824 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
16825 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
16826 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
16827 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
16828 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16829 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
16830 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
16831 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
16832 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16834 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16839 # If the user did not use the arguments to specify the items to instantiate,
16840 # then the envvar interface is used. Set only those that are not.
16841 # We use the long form for the default assignment because of an extremely
16842 # bizarre bug on SunOS 4.1.3.
16843 if $ac_need_defaults; then
16844 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16845 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16846 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
16847 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16850 # Have a temporary directory for convenience. Make it in the build tree
16851 # simply because there is no reason against having it here, and in addition,
16852 # creating and moving files from /tmp can sometimes cause problems.
16853 # Hook for its removal unless debugging.
16854 # Note that there is a small window in which the directory will not be cleaned:
16855 # after its creation but before its name has been assigned to `$tmp'.
16859 trap 'exit_status=$?
16860 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16862 trap 'as_fn_exit 1' 1 2 13 15
16864 # Create a (secure) tmp directory for tmp files.
16867 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16868 test -n "$tmp" && test -d "$tmp"
16871 tmp
=.
/conf$$
-$RANDOM
16872 (umask 077 && mkdir
"$tmp")
16873 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16875 # Set up the scripts for CONFIG_FILES section.
16876 # No need to generate them if there are no CONFIG_FILES.
16877 # This happens for instance with `./config.status config.h'.
16878 if test -n "$CONFIG_FILES"; then
16880 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16881 ac_cs_awk_getline
=:
16882 ac_cs_awk_pipe_init
=
16883 ac_cs_awk_read_file
='
16884 while ((getline aline < (F[key])) > 0)
16887 ac_cs_awk_pipe_fini
=
16889 ac_cs_awk_getline
=false
16890 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16891 ac_cs_awk_read_file
='
16893 print "cat " F[key] " &&"
16894 '$ac_cs_awk_pipe_init
16895 # The final `:' finishes the AND list.
16896 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16898 ac_cr
=`echo X | tr X '\015'`
16899 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16900 # But we know of no other shell where ac_cr would be empty at this
16901 # point, so we can use a bashism as a fallback.
16902 if test "x$ac_cr" = x
; then
16903 eval ac_cr
=\$
\'\\r
\'
16905 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16906 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16909 ac_cs_awk_cr
=$ac_cr
16912 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16915 # Create commands to substitute file output variables.
16917 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16918 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16919 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16922 } >conf$
$files.sh
&&
16923 . .
/conf$
$files.sh ||
16924 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
16925 rm -f conf$
$files.sh
16928 echo "cat >conf$$subs.awk <<_ACEOF" &&
16929 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16931 } >conf$$subs.sh ||
16932 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16933 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16935 for ac_last_try in false false false false false :; do
16936 . ./conf$$subs.sh ||
16937 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16939 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16940 if test $ac_delim_n = $ac_delim_num; then
16942 elif $ac_last_try; then
16943 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16945 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16948 rm -f conf$$subs.sh
16950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16951 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16955 s/^/S["/; s
/!.
*/"]=/
16965 s/\(.\{148\}\).*/\1/
16967 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16972 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16979 s/\(.\{148\}\).*/\1/
16981 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16985 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16990 ' <conf$$subs.awk | sed '
16995 ' >>$CONFIG_STATUS || ac_write_fail=1
16996 rm -f conf$$subs.awk
16997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16999 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17000 for (key in S) S_is_set[key] = 1
17002 \$ac_cs_awk_pipe_init
17006 nfields = split(line, field, "@
")
17008 len = length(field[1])
17009 for (i = 2; i < nfields; i++) {
17011 keylen = length(key)
17012 if (S_is_set[key]) {
17014 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17015 len += length(value) + length(field[++i])
17020 if (nfields == 3 && !substed) {
17022 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17023 \$ac_cs_awk_read_file
17029 \$ac_cs_awk_pipe_fini
17032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17033 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17034 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17037 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17038 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
17041 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17042 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17043 # trailing colons and then remove the whole line if VPATH becomes empty
17044 # (actually we leave an empty line to preserve line numbers).
17045 if test "x
$srcdir" = x.; then
17046 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17047 s/:*\$(srcdir):*/:/
17048 s/:*\${srcdir}:*/:/
17050 s/^\([^=]*=[ ]*\):*/\1/
17056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17057 fi # test -n "$CONFIG_FILES"
17059 # Set up the scripts for CONFIG_HEADERS section.
17060 # No need to generate them if there are no CONFIG_HEADERS.
17061 # This happens for instance with `./config.status Makefile'.
17062 if test -n "$CONFIG_HEADERS"; then
17063 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17067 # Transform confdefs.h into an awk script `defines.awk', embedded as
17068 # here-document in config.status, that substitutes the proper values into
17069 # config.h.in to produce config.h.
17071 # Create a delimiter string that does not exist in confdefs.h, to ease
17072 # handling of long lines.
17074 for ac_last_try in false false :; do
17075 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17076 if test -z "$ac_t"; then
17078 elif $ac_last_try; then
17079 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
17081 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17085 # For the awk script, D is an array of macro values keyed by name,
17086 # likewise P contains macro parameters if any. Preserve backslash
17087 # newline sequences.
17089 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17091 s/.\{148\}/&'"$ac_delim"'/g
17094 s/^[ ]*#[ ]*define[ ][ ]*/ /
17101 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17103 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17108 D["\
1"]=" \
3\\\\\\n
"\\/p
17110 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17115 s/.\{148\}/&'"$ac_delim"'/g
17120 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17123 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17125 ' <confdefs.h | sed '
17126 s/'"$ac_delim"'/"\\\
17127 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17130 for (key in D) D_is_set[key] = 1
17133 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17135 split(line, arg, " ")
17136 if (arg[1] == "#") {
17140 defundef
= substr
(arg
[1], 2)
17143 split(mac1
, mac2
, "(") #)
17145 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17146 if (D_is_set
[macro
]) {
17147 # Preserve the white space surrounding the "#".
17148 print prefix
"define", macro P
[macro
] D
[macro
]
17151 # Replace #undef with comments. This is necessary, for example,
17152 # in the case of _POSIX_SOURCE, which is predefined and required
17153 # on some systems where configure will not decide to define it.
17154 if (defundef
== "undef") {
17155 print
"/*", prefix defundef
, macro
, "*/"
17163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17164 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17165 fi # test -n "$CONFIG_HEADERS"
17168 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17173 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17175 case $ac_mode$ac_tag in
17177 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17178 :[FH
]-) ac_tag
=-:-;;
17179 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17196 -) ac_f
="$tmp/stdin";;
17197 *) # Look for the file first in the build tree, then in the source tree
17198 # (if the path is not absolute). The absolute path cannot be DOS-style,
17199 # because $ac_f cannot contain `:'.
17203 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17205 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17207 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17208 as_fn_append ac_file_inputs
" '$ac_f'"
17211 # Let's still pretend it is `configure' which instantiates (i.e., don't
17212 # use $as_me), people would be surprised to read:
17213 # /* config.h. Generated by config.status. */
17214 configure_input
='Generated from '`
17215 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17217 if test x
"$ac_file" != x-
; then
17218 configure_input
="$ac_file. $configure_input"
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17220 $as_echo "$as_me: creating $ac_file" >&6;}
17222 # Neutralize special characters interpreted by sed in replacement strings.
17223 case $configure_input in #(
17224 *\
&* |
*\|
* |
*\\* )
17225 ac_sed_conf_input
=`$as_echo "$configure_input" |
17226 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17227 *) ac_sed_conf_input
=$configure_input;;
17231 *:-:* |
*:-) cat >"$tmp/stdin" \
17232 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17237 ac_dir
=`$as_dirname -- "$ac_file" ||
17238 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17239 X"$ac_file" : 'X\(//\)[^/]' \| \
17240 X"$ac_file" : 'X\(//\)$' \| \
17241 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17242 $as_echo X"$ac_file" |
17243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17247 /^X\(\/\/\)[^/].*/{
17260 as_dir
="$ac_dir"; as_fn_mkdir_p
17264 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17266 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17267 # A ".." for each directory in $ac_dir_suffix.
17268 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17269 case $ac_top_builddir_sub in
17270 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17271 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17274 ac_abs_top_builddir
=$ac_pwd
17275 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17276 # for backward compatibility:
17277 ac_top_builddir
=$ac_top_build_prefix
17280 .
) # We are building in place.
17282 ac_top_srcdir
=$ac_top_builddir_sub
17283 ac_abs_top_srcdir
=$ac_pwd ;;
17284 [\\/]* | ?
:[\\/]* ) # Absolute name.
17285 ac_srcdir
=$srcdir$ac_dir_suffix;
17286 ac_top_srcdir
=$srcdir
17287 ac_abs_top_srcdir
=$srcdir ;;
17288 *) # Relative name.
17289 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17290 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17291 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17293 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17303 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17304 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17309 # If the template does not know about datarootdir, expand it.
17310 # FIXME: This hack should be removed a few years after 2.60.
17311 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17322 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17323 *datarootdir
*) ac_datarootdir_seen
=yes;;
17324 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17326 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17329 ac_datarootdir_hack='
17330 s&@datadir@&$datadir&g
17331 s&@docdir@&$docdir&g
17332 s&@infodir@&$infodir&g
17333 s&@localedir@&$localedir&g
17334 s&@mandir@&$mandir&g
17335 s&\\\${datarootdir}&$datarootdir&g' ;;
17339 # Neutralize VPATH when `$srcdir' = `.'.
17340 # Shell code in configure.ac might set extrasub.
17341 # FIXME: do we really want to maintain this feature?
17342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17343 ac_sed_extra="$ac_vpsub
17346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17348 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17349 s|@configure_input@|
$ac_sed_conf_input|
;t t
17350 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17351 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17352 s
&@srcdir@
&$ac_srcdir&;t t
17353 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17354 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17355 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17356 s
&@builddir@
&$ac_builddir&;t t
17357 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17358 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17359 s
&@INSTALL@
&$ac_INSTALL&;t t
17360 $ac_datarootdir_hack
17362 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17363 if $ac_cs_awk_getline; then
17364 $AWK -f "$tmp/subs.
awk"
17366 $AWK -f "$tmp/subs.
awk" | $SHELL
17368 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17370 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17371 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17372 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17374 which seems to be undefined. Please make sure it is defined." >&5
17375 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17376 which seems to be undefined. Please make sure it is defined." >&2;}
17380 -) cat "$tmp/out" && rm -f "$tmp/out";;
17381 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17383 || as_fn_error "could not create $ac_file" "$LINENO" 5
17389 if test x"$ac_file" != x-; then
17391 $as_echo "/* $configure_input */" \
17392 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17393 } >"$tmp/config.h" \
17394 || as_fn_error "could not create $ac_file" "$LINENO" 5
17395 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17397 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17400 mv "$tmp/config.h" "$ac_file" \
17401 || as_fn_error "could not create $ac_file" "$LINENO" 5
17404 $as_echo "/* $configure_input */" \
17405 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17406 || as_fn_error "could not create -" "$LINENO" 5
17414 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
17417 # Prefer the file from the source tree if names are identical.
17418 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17419 ac_source=$srcdir/$ac_source
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17423 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17425 if test ! -r "$ac_source"; then
17426 as_fn_error "$ac_source: file not found" "$LINENO" 5
17430 # Try a relative symlink, then a hard link, then a copy.
17432 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17433 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17435 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17436 ln "$ac_source" "$ac_file" 2>/dev/null ||
17437 cp -p "$ac_source" "$ac_file" ||
17438 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17441 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17442 $as_echo "$as_me: executing $ac_file commands" >&6;}
17447 case $ac_file$ac_mode in
17448 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17449 "gcore":F) chmod +x gcore ;;
17451 case x$CONFIG_HEADERS in
17452 xconfig.h:config.in)
17463 ac_clean_files=$ac_clean_files_save
17465 test $ac_write_fail = 0 ||
17466 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17469 # configure is writing to config.log, and then calls config.status.
17470 # config.status does its own redirection, appending to config.log.
17471 # Unfortunately, on DOS this fails, as config.log is still kept open
17472 # by configure, so config.status won't be able to
write to it
; its
17473 # output is simply discarded. So we exec the FD to /dev/null,
17474 # effectively closing config.log, so it can be properly (re)opened and
17475 # appended to by config.status. When coming back to configure, we
17476 # need to make the FD available again.
17477 if test "$no_create" != yes; then
17479 ac_config_status_args
=
17480 test "$silent" = yes &&
17481 ac_config_status_args
="$ac_config_status_args --quiet"
17483 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17485 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17486 # would make configure fail if this is the last instruction.
17487 $ac_cs_success || as_fn_exit $?
17491 # CONFIG_SUBDIRS section.
17493 if test "$no_recursion" != yes; then
17495 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17496 # so they do not pile up.
17497 ac_sub_configure_args
=
17499 eval "set x $ac_configure_args"
17503 if test -n "$ac_prev"; then
17508 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
17509 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
17510 ac_prev
=cache_file
;;
17511 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
17512 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
17515 --config-cache |
-C)
17517 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
17519 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
17521 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
17523 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
17525 --disable-option-checking)
17529 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17531 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
17535 # Always prepend --prefix to ensure using the same prefix
17536 # in subdir configurations.
17537 ac_arg
="--prefix=$prefix"
17539 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17541 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
17544 if test "$silent" = yes; then
17545 ac_sub_configure_args
="--silent $ac_sub_configure_args"
17548 # Always prepend --disable-option-checking to silence warnings, since
17549 # different subdirs can have different --enable and --with options.
17550 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
17553 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
17555 # Do not complain, so a configure script can configure whichever
17556 # parts of a large source tree are present.
17557 test -d "$srcdir/$ac_dir" ||
continue
17559 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17560 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17561 $as_echo "$ac_msg" >&6
17562 as_dir
="$ac_dir"; as_fn_mkdir_p
17566 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17568 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17569 # A ".." for each directory in $ac_dir_suffix.
17570 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17571 case $ac_top_builddir_sub in
17572 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17573 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17576 ac_abs_top_builddir
=$ac_pwd
17577 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17578 # for backward compatibility:
17579 ac_top_builddir
=$ac_top_build_prefix
17582 .
) # We are building in place.
17584 ac_top_srcdir
=$ac_top_builddir_sub
17585 ac_abs_top_srcdir
=$ac_pwd ;;
17586 [\\/]* | ?
:[\\/]* ) # Absolute name.
17587 ac_srcdir
=$srcdir$ac_dir_suffix;
17588 ac_top_srcdir
=$srcdir
17589 ac_abs_top_srcdir
=$srcdir ;;
17590 *) # Relative name.
17591 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17592 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17593 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17595 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17600 # Check for guested configure; otherwise get Cygnus style configure.
17601 if test -f "$ac_srcdir/configure.gnu"; then
17602 ac_sub_configure
=$ac_srcdir/configure.gnu
17603 elif test -f "$ac_srcdir/configure"; then
17604 ac_sub_configure
=$ac_srcdir/configure
17605 elif test -f "$ac_srcdir/configure.in"; then
17606 # This should be Cygnus configure.
17607 ac_sub_configure
=$ac_aux_dir/configure
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17610 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17614 # The recursion is here.
17615 if test -n "$ac_sub_configure"; then
17616 # Make the cache file name correct relative to the subdirectory.
17617 case $cache_file in
17618 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
17619 *) # Relative name.
17620 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
17623 { $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
17624 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17625 # The eval makes quoting arguments work.
17626 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17627 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17628 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17634 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17636 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}