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
705 HAVE_NATIVE_GCORE_TARGET
736 INSTALL_STRIP_PROGRAM
765 MAINTAINER_MODE_FALSE
794 program_transform_name
805 ac_subst_files
='host_makefile_frag'
807 enable_option_checking
808 enable_maintainer_mode
811 enable_build_with_cxx
812 with_separate_debug_dir
814 with_relocated_sources
816 with_auto_load_safe_path
846 enable_build_warnings
847 enable_gdb_build_warnings
857 with_libbabeltrace_prefix
859 ac_precious_vars
='build_alias
876 ac_subdirs_all
='testsuite
881 # Initialize some variables set by options.
883 ac_init_version
=false
884 ac_unrecognized_opts
=
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
895 program_transform_name
=s
,x
,x
,
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir
='${exec_prefix}/bin'
910 sbindir
='${exec_prefix}/sbin'
911 libexecdir
='${exec_prefix}/libexec'
912 datarootdir
='${prefix}/share'
913 datadir
='${datarootdir}'
914 sysconfdir
='${prefix}/etc'
915 sharedstatedir
='${prefix}/com'
916 localstatedir
='${prefix}/var'
917 includedir
='${prefix}/include'
918 oldincludedir
='/usr/include'
919 docdir
='${datarootdir}/doc/${PACKAGE}'
920 infodir
='${datarootdir}/info'
925 libdir
='${exec_prefix}/lib'
926 localedir
='${datarootdir}/locale'
927 mandir
='${datarootdir}/man'
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\
$ac_option
941 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 # Accept the important Cygnus configure options, so we can diagnose typos.
947 case $ac_dashdash$ac_option in
951 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
953 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
956 -build |
--build |
--buil |
--bui |
--bu)
957 ac_prev
=build_alias
;;
958 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
959 build_alias
=$ac_optarg ;;
961 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
962 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
963 ac_prev
=cache_file
;;
964 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
965 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
966 cache_file
=$ac_optarg ;;
969 cache_file
=config.cache
;;
971 -datadir |
--datadir |
--datadi |
--datad)
973 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
974 datadir
=$ac_optarg ;;
976 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
977 |
--dataroo |
--dataro |
--datar)
978 ac_prev
=datarootdir
;;
979 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
980 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
981 datarootdir
=$ac_optarg ;;
983 -disable-* |
--disable-*)
984 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
987 as_fn_error
"invalid feature name: $ac_useropt"
988 ac_useropt_orig
=$ac_useropt
989 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
994 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep
=', ';;
997 eval enable_
$ac_useropt=no
;;
999 -docdir |
--docdir |
--docdi |
--doc |
--do)
1001 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1002 docdir
=$ac_optarg ;;
1004 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1006 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1007 dvidir
=$ac_optarg ;;
1009 -enable-* |
--enable-*)
1010 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1013 as_fn_error
"invalid feature name: $ac_useropt"
1014 ac_useropt_orig
=$ac_useropt
1015 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1018 "enable_
$ac_useropt"
1020 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep
=', ';;
1023 eval enable_
$ac_useropt=\
$ac_optarg ;;
1025 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1026 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1027 |
--exec |
--exe |
--ex)
1028 ac_prev
=exec_prefix
;;
1029 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1030 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1031 |
--exec=* |
--exe=* |
--ex=*)
1032 exec_prefix
=$ac_optarg ;;
1034 -gas |
--gas |
--ga |
--g)
1035 # Obsolete; use --with-gas.
1038 -help |
--help |
--hel |
--he |
-h)
1039 ac_init_help
=long
;;
1040 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1041 ac_init_help
=recursive
;;
1042 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1043 ac_init_help
=short
;;
1045 -host |
--host |
--hos |
--ho)
1046 ac_prev
=host_alias
;;
1047 -host=* |
--host=* |
--hos=* |
--ho=*)
1048 host_alias
=$ac_optarg ;;
1050 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1052 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1054 htmldir
=$ac_optarg ;;
1056 -includedir |
--includedir |
--includedi |
--included |
--include \
1057 |
--includ |
--inclu |
--incl |
--inc)
1058 ac_prev
=includedir
;;
1059 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1060 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1061 includedir
=$ac_optarg ;;
1063 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1065 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1066 infodir
=$ac_optarg ;;
1068 -libdir |
--libdir |
--libdi |
--libd)
1070 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1071 libdir
=$ac_optarg ;;
1073 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1074 |
--libexe |
--libex |
--libe)
1075 ac_prev
=libexecdir
;;
1076 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1077 |
--libexe=* |
--libex=* |
--libe=*)
1078 libexecdir
=$ac_optarg ;;
1080 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1081 ac_prev
=localedir
;;
1082 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1083 localedir
=$ac_optarg ;;
1085 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1086 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1087 ac_prev
=localstatedir
;;
1088 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1089 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1090 localstatedir
=$ac_optarg ;;
1092 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1094 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1095 mandir
=$ac_optarg ;;
1097 -nfp |
--nfp |
--nf)
1098 # Obsolete; use --without-fp.
1101 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1102 |
--no-cr |
--no-c |
-n)
1105 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1106 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1109 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1110 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1111 |
--oldin |
--oldi |
--old |
--ol |
--o)
1112 ac_prev
=oldincludedir
;;
1113 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1114 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1115 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1116 oldincludedir
=$ac_optarg ;;
1118 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1120 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1121 prefix
=$ac_optarg ;;
1123 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1124 |
--program-pre |
--program-pr |
--program-p)
1125 ac_prev
=program_prefix
;;
1126 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1127 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1128 program_prefix
=$ac_optarg ;;
1130 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1131 |
--program-suf |
--program-su |
--program-s)
1132 ac_prev
=program_suffix
;;
1133 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1134 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1135 program_suffix
=$ac_optarg ;;
1137 -program-transform-name |
--program-transform-name \
1138 |
--program-transform-nam |
--program-transform-na \
1139 |
--program-transform-n |
--program-transform- \
1140 |
--program-transform |
--program-transfor \
1141 |
--program-transfo |
--program-transf \
1142 |
--program-trans |
--program-tran \
1143 |
--progr-tra |
--program-tr |
--program-t)
1144 ac_prev
=program_transform_name
;;
1145 -program-transform-name=* |
--program-transform-name=* \
1146 |
--program-transform-nam=* |
--program-transform-na=* \
1147 |
--program-transform-n=* |
--program-transform-=* \
1148 |
--program-transform=* |
--program-transfor=* \
1149 |
--program-transfo=* |
--program-transf=* \
1150 |
--program-trans=* |
--program-tran=* \
1151 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1152 program_transform_name
=$ac_optarg ;;
1154 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1156 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1157 pdfdir
=$ac_optarg ;;
1159 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1161 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1164 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1165 |
-silent |
--silent |
--silen |
--sile |
--sil)
1168 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1170 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1172 sbindir
=$ac_optarg ;;
1174 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1175 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1176 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1178 ac_prev
=sharedstatedir
;;
1179 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1180 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1181 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1183 sharedstatedir
=$ac_optarg ;;
1185 -site |
--site |
--sit)
1187 -site=* |
--site=* |
--sit=*)
1190 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1192 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1193 srcdir
=$ac_optarg ;;
1195 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1196 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1197 ac_prev
=sysconfdir
;;
1198 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1199 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1200 sysconfdir
=$ac_optarg ;;
1202 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1203 ac_prev
=target_alias
;;
1204 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1205 target_alias
=$ac_optarg ;;
1207 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1210 -version |
--version |
--versio |
--versi |
--vers |
-V)
1211 ac_init_version
=: ;;
1214 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1217 as_fn_error
"invalid package name: $ac_useropt"
1218 ac_useropt_orig
=$ac_useropt
1219 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1224 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep
=', ';;
1227 eval with_
$ac_useropt=\
$ac_optarg ;;
1229 -without-* |
--without-*)
1230 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1233 as_fn_error
"invalid package name: $ac_useropt"
1234 ac_useropt_orig
=$ac_useropt
1235 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1240 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep
=', ';;
1243 eval with_
$ac_useropt=no
;;
1246 # Obsolete; use --with-x.
1249 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1250 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1251 ac_prev
=x_includes
;;
1252 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1253 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1254 x_includes
=$ac_optarg ;;
1256 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1257 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1258 ac_prev
=x_libraries
;;
1259 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1260 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1261 x_libraries
=$ac_optarg ;;
1263 -*) as_fn_error
"unrecognized option: \`$ac_option'
1264 Try \`$0 --help' for more information."
1268 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 case $ac_envvar in #(
1271 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1272 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1274 eval $ac_envvar=\
$ac_optarg
1275 export $ac_envvar ;;
1278 # FIXME: should be removed in autoconf 3.0.
1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288 if test -n "$ac_prev"; then
1289 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1290 as_fn_error
"missing argument to $ac_option"
1293 if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1296 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 # Check all directory arguments for consistency.
1302 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1307 eval ac_val
=\$
$ac_var
1308 # Remove trailing slashes.
1311 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\
$ac_val;;
1314 # Be sure to have absolute directory names.
1316 [\\/$
]* | ?
:[\\/]* ) continue;;
1317 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1319 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1327 target
=$target_alias
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x
; then
1331 if test "x$build_alias" = x
; then
1332 cross_compiling
=maybe
1333 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1334 If a cross compiler is detected then cross compile mode will be used." >&2
1335 elif test "x$build_alias" != "x$host_alias"; then
1341 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1343 test "$silent" = yes && exec 6>/dev
/null
1346 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di
=`ls -di .` &&
1348 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1349 as_fn_error
"working directory cannot be determined"
1350 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351 as_fn_error
"pwd does not report name of working directory"
1354 # Find the source files, if location was not specified.
1355 if test -z "$srcdir"; then
1356 ac_srcdir_defaulted
=yes
1357 # Try the directory containing this script, then the parent directory.
1358 ac_confdir
=`$as_dirname -- "$as_myself" ||
1359 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$as_myself" : 'X\(//\)[^/]' \| \
1361 X"$as_myself" : 'X\(//\)$' \| \
1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363 $as_echo X"$as_myself" |
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1386 ac_srcdir_defaulted
=no
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1390 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1392 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1396 # When building in place, set srcdir=.
1397 if test "$ac_abs_confdir" = "$ac_pwd"; then
1400 # Remove unnecessary trailing slashes from srcdir.
1401 # Double slashes in file names in object file debugging info
1402 # mess up M-x gdb in Emacs.
1404 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406 for ac_var
in $ac_precious_vars; do
1407 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1408 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1409 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1410 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1414 # Report the --help message.
1416 if test "$ac_init_help" = "long"; then
1417 # Omit some internal or obsolete options to make the list less imposing.
1418 # This message is too long to be a string in the A/UX 3.1 sh.
1420 \`configure' configures this package to adapt to many kinds of systems.
1422 Usage: $0 [OPTION]... [VAR=VALUE]...
1424 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1425 VAR=VALUE. See below for descriptions of some of the useful variables.
1427 Defaults for the options are specified in brackets.
1430 -h, --help display this help and exit
1431 --help=short display options specific to this package
1432 --help=recursive display the short help of all the included packages
1433 -V, --version display version information and exit
1434 -q, --quiet, --silent do not print \`checking...' messages
1435 --cache-file=FILE cache test results in FILE [disabled]
1436 -C, --config-cache alias for \`--cache-file=config.cache'
1437 -n, --no-create do not create output files
1438 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1440 Installation directories:
1441 --prefix=PREFIX install architecture-independent files in PREFIX
1442 [$ac_default_prefix]
1443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1446 By default, \`make install' will install all the files in
1447 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1448 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1449 for instance \`--prefix=\$HOME'.
1451 For better control, use the options below.
1453 Fine tuning of the installation directories:
1454 --bindir=DIR user executables [EPREFIX/bin]
1455 --sbindir=DIR system admin executables [EPREFIX/sbin]
1456 --libexecdir=DIR program executables [EPREFIX/libexec]
1457 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1458 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1459 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1460 --libdir=DIR object code libraries [EPREFIX/lib]
1461 --includedir=DIR C header files [PREFIX/include]
1462 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1465 --infodir=DIR info documentation [DATAROOTDIR/info]
1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1467 --mandir=DIR man documentation [DATAROOTDIR/man]
1468 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1469 --htmldir=DIR html documentation [DOCDIR]
1470 --dvidir=DIR dvi documentation [DOCDIR]
1471 --pdfdir=DIR pdf documentation [DOCDIR]
1472 --psdir=DIR ps documentation [DOCDIR]
1478 --program-prefix=PREFIX prepend PREFIX to installed program names
1479 --program-suffix=SUFFIX append SUFFIX to installed program names
1480 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1483 --x-includes=DIR X include files are
in DIR
1484 --x-libraries=DIR X library files are
in DIR
1487 --build=BUILD configure
for building on BUILD
[guessed
]
1488 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1489 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1493 if test -n "$ac_init_help"; then
1498 --disable-option-checking ignore unrecognized
--enable/--with options
1499 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1500 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1501 --enable-maintainer-mode enable make rules and dependencies not useful
1502 (and sometimes confusing
) to the casual installer
1503 --enable-plugins Enable support
for plugins
1504 --disable-largefile omit support
for large files
1505 --enable-build-with-cxx build with C
++ compiler instead of C compiler
1506 --enable-targets=TARGETS
1507 alternative target configurations
1508 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1509 --disable-gdbcli disable command-line interface
(CLI
)
1510 --disable-gdbmi disable machine-interface
(MI
)
1511 --enable-tui enable full-screen terminal user interface
(TUI
)
1512 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1513 --enable-profiling enable profiling of GDB
1514 --disable-rpath do not hardcode runtime library paths
1515 --enable-libmcheck Try linking with
-lmcheck if available
1516 --enable-werror treat compile warnings as errors
1517 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1518 --enable-gdb-build-warnings
1519 enable GDB specific build-time compiler warnings
if
1521 --enable-sim link gdb with simulator
1522 --enable-multi-ice build the multi-ice-gdb-server
1523 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1527 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1528 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1529 --with-separate-debug-dir=PATH
1530 look for global separate debug info
in this path
1532 --with-gdb-datadir=PATH
look for global separate data files
in this path
1534 --with-relocated-sources=PATH
1535 automatically relocate this path
for source files
1536 --with-auto-load-dir=PATH
1537 directories from
which to load auto-loaded scripts
1538 [$debugdir:$datadir/auto-load
]
1539 --with-auto-load-safe-path=PATH
1540 directories safe to hold auto-loaded files
1541 [--with-auto-load-dir]
1542 --without-auto-load-safe-path
1543 do not restrict auto-loaded files locations
1544 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1545 --with-curses use the curses library instead of the termcap
1547 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1548 --with-bugurl=URL Direct users to URL to report a bug
1549 --with-system-zlib use installed libz
1550 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1551 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1552 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1553 --with-iconv-bin=PATH specify where to find the iconv program
1554 --with-system-readline use installed readline library
1555 --with-jit-reader-dir=PATH
1556 directory to load the JIT readers from
1557 --with-expat include expat support (auto/yes/no)
1558 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1559 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1560 --with-python[=PYTHON
] include python support
1561 (auto
/yes
/no
/<python-program
>)
1562 --with-guile[=GUILE
] include guile support
1563 (auto
/yes
/no
/<guile-version
>/<pkg-config-program
>)
1564 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1565 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1566 --without-libipt-prefix don
't search for libipt in includedir and libdir
1567 --without-included-regex
1568 don't use included regex
; this is the default on
1569 systems with version
2 of the GNU C library
(use
1570 with caution on other system
)
1571 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1572 --with-system-gdbinit=PATH
1573 automatically load a system-wide gdbinit
file
1574 --with-lzma support lzma compression
(auto
/yes
/no
)
1575 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1576 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1577 --with-tcl directory containing tcl configuration (tclConfig.sh)
1578 --with-tk directory containing tk configuration (tkConfig.sh)
1579 --with-x use the X Window System
1580 --with-babeltrace include babeltrace support (auto/yes/no)
1581 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1582 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1584 Some influential environment variables
:
1585 CC C compiler
command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1588 nonstandard directory
<lib dir
>
1589 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1590 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1591 you have headers
in a nonstandard directory
<include dir
>
1592 CXX C
++ compiler
command
1593 CXXFLAGS C
++ compiler flags
1595 MAKEINFO Parent configure detects
if it is of sufficient version.
1597 Parameters
for MAKEINFO.
1598 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1599 the first program found out of: `bison
-y', `byacc', `yacc'.
1600 YFLAGS The list of arguments that will be passed by default to $YACC.
1601 This script will default YFLAGS to the empty string to avoid a
1602 default value of `-d' given by some make applications.
1603 XMKMF Path to xmkmf, Makefile generator for X Window System
1605 Use these variables to override the choices made by `configure' or to
help
1606 it to
find libraries and programs with nonstandard names
/locations.
1608 Report bugs to the package provider.
1613 if test "$ac_init_help" = "recursive"; then
1614 # If there are subdirs, report their specific --help.
1615 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1616 test -d "$ac_dir" ||
1617 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1622 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1624 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1625 # A ".." for each directory in $ac_dir_suffix.
1626 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627 case $ac_top_builddir_sub in
1628 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1629 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1632 ac_abs_top_builddir
=$ac_pwd
1633 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir
=$ac_top_build_prefix
1638 .
) # We are building in place.
1640 ac_top_srcdir
=$ac_top_builddir_sub
1641 ac_abs_top_srcdir
=$ac_pwd ;;
1642 [\\/]* | ?
:[\\/]* ) # Absolute name.
1643 ac_srcdir
=$srcdir$ac_dir_suffix;
1644 ac_top_srcdir
=$srcdir
1645 ac_abs_top_srcdir
=$srcdir ;;
1647 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1649 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1651 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1653 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1654 # Check for guested configure.
1655 if test -f "$ac_srcdir/configure.gnu"; then
1657 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658 elif test -f "$ac_srcdir/configure"; then
1660 $SHELL "$ac_srcdir/configure" --help=recursive
1662 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1668 test -n "$ac_init_help" && exit $ac_status
1669 if $ac_init_version; then
1672 generated by GNU Autoconf
2.64
1674 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1675 This configure
script is free software
; the Free Software Foundation
1676 gives unlimited permission to copy
, distribute and modify it.
1681 ## ------------------------ ##
1682 ## Autoconf initialization. ##
1683 ## ------------------------ ##
1685 # ac_fn_c_try_compile LINENO
1686 # --------------------------
1687 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_compile
()
1690 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1691 rm -f conftest.
$ac_objext
1692 if { { ac_try
="$ac_compile"
1694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_compile") 2>conftest.err
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest.$ac_objext; then :
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 } # ac_fn_c_try_compile
1723 # ac_fn_cxx_try_compile LINENO
1724 # ----------------------------
1725 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_cxx_try_compile ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext
1730 if { { ac_try="$ac_compile"
1732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1733 *) ac_try_echo
=$ac_try;;
1735 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_compile") 2>conftest.err
1739 if test -s conftest.err
; then
1740 grep -v '^ *+' conftest.err
>conftest.er1
1741 cat conftest.er1
>&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_cxx_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest.
$ac_objext; then :
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.
$ac_ext >&5
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1759 } # ac_fn_cxx_try_compile
1761 # ac_fn_c_try_cpp LINENO
1762 # ----------------------
1763 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1767 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } >/dev/null && {
1783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1799 # -------------------------------------------------------
1800 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1801 # the include files in INCLUDES and setting the cache variable VAR
1803 ac_fn_c_check_header_mongrel ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1810 $as_echo_n "(cached) " >&6
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1816 # Is the header compilable?
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1818 $as_echo_n "checking $2 usability... " >&6; }
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825 ac_header_compiler=yes
1827 ac_header_compiler=no
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1831 $as_echo "$ac_header_compiler" >&6; }
1833 # Is the header present?
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1835 $as_echo_n "checking $2 presence... " >&6; }
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1840 if ac_fn_c_try_cpp "$LINENO"; then :
1841 ac_header_preproc=yes
1843 ac_header_preproc=no
1845 rm -f conftest.err conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1847 $as_echo "$ac_header_preproc" >&6; }
1849 # So? What about this header?
1850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1853 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1855 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1859 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1861 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1863 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1865 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873 $as_echo_n "(cached) " >&6
1875 eval "$3=\$ac_header_compiler"
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 } # ac_fn_c_check_header_mongrel
1885 # ac_fn_c_try_run LINENO
1886 # ----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1888 # that executables *can* be run.
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 if { { ac_try="$ac_link"
1894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1895 *) ac_try_echo
=$ac_try;;
1897 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>&5
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1903 { { case "(($ac_try" in
1904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_try") 2>&5
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; }; }; then :
1915 $as_echo "$as_me: program exited with status $ac_status" >&5
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1919 ac_retval=$ac_status
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1928 # -------------------------------------------------------
1929 # Tests whether HEADER exists and can be compiled using the include files in
1930 # INCLUDES, setting the cache variable VAR accordingly.
1931 ac_fn_c_check_header_compile ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937 $as_echo_n "(cached) " >&6
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1944 if ac_fn_c_try_compile "$LINENO"; then :
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956 } # ac_fn_c_check_header_compile
1958 # ac_fn_c_try_link LINENO
1959 # -----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded.
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext conftest$ac_exeext
1965 if { { ac_try="$ac_link"
1967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1968 *) ac_try_echo
=$ac_try;;
1970 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>conftest.err
1974 if test -s conftest.err
; then
1975 grep -v '^ *+' conftest.err
>conftest.er1
1976 cat conftest.er1
>&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest
$ac_exeext && {
1984 test "$cross_compiling" = yes ||
1985 $as_test_x conftest
$ac_exeext
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.
$ac_ext >&5
1994 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996 # interfere with the next link command; also delete a directory that is
1997 # left behind by Apple's compiler. We do this before executing the actions.
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2002 } # ac_fn_c_try_link
2004 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2005 # --------------------------------------------
2006 # Tries to find the compile-time value of EXPR in a program that includes
2007 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2009 ac_fn_c_compute_int
()
2011 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2012 if test "$cross_compiling" = yes; then
2013 # Depending upon the size, compute the lo and hi bounds.
2014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2020 static int test_array [1 - 2 * !(($2) >= 0)];
2027 if ac_fn_c_try_compile
"$LINENO"; then :
2030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2036 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2043 if ac_fn_c_try_compile
"$LINENO"; then :
2044 ac_hi
=$ac_mid; break
2046 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2047 if test $ac_lo -le $ac_mid; then
2051 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2062 static int test_array [1 - 2 * !(($2) < 0)];
2069 if ac_fn_c_try_compile
"$LINENO"; then :
2072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2078 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2085 if ac_fn_c_try_compile
"$LINENO"; then :
2086 ac_lo
=$ac_mid; break
2088 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2089 if test $ac_mid -le $ac_hi; then
2093 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2103 # Binary search between lo and hi bounds.
2104 while test "x$ac_lo" != "x$ac_hi"; do
2105 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2112 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2119 if ac_fn_c_try_compile
"$LINENO"; then :
2122 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2127 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2134 static long int longval () { return $2; }
2135 static unsigned long int ulongval () { return $2; }
2142 FILE *f = fopen ("conftest.val", "w");
2147 long int i = longval ();
2150 fprintf (f, "%ld", i);
2154 unsigned long int i = ulongval ();
2157 fprintf (f, "%lu", i);
2159 /* Do not output a trailing newline, as this causes \r\n confusion
2160 on some platforms. */
2161 return ferror (f) || fclose (f) != 0;
2167 if ac_fn_c_try_run
"$LINENO"; then :
2168 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2172 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2173 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2177 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2180 } # ac_fn_c_compute_int
2182 # ac_fn_c_check_func LINENO FUNC VAR
2183 # ----------------------------------
2184 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2185 ac_fn_c_check_func
()
2187 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2191 $as_echo_n "(cached) " >&6
2193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2195 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2197 #define $2 innocuous_$2
2199 /* System header to define __stub macros and hopefully few prototypes,
2200 which can conflict with char $2 (); below.
2201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2202 <limits.h> exists even on freestanding compilers. */
2205 # include <limits.h>
2207 # include <assert.h>
2212 /* Override any GCC internal prototype to avoid an error.
2213 Use char because int might match the return type of a GCC
2214 builtin and then its argument prototype would still apply. */
2219 /* The GNU C library defines this for functions which it implements
2220 to always fail with ENOSYS. Some functions are actually named
2221 something starting with __ and the normal name is an alias. */
2222 #if defined __stub_$2 || defined __stub___$2
2234 if ac_fn_c_try_link
"$LINENO"; then :
2239 rm -f core conftest.err conftest.
$ac_objext \
2240 conftest
$ac_exeext conftest.
$ac_ext
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244 $as_echo "$ac_res" >&6; }
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2247 } # ac_fn_c_check_func
2249 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2250 # -------------------------------------------
2251 # Tests whether TYPE exists after having included INCLUDES, setting cache
2252 # variable VAR accordingly.
2253 ac_fn_c_check_type
()
2255 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2257 $as_echo_n "checking for $2... " >&6; }
2258 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2259 $as_echo_n "(cached) " >&6
2262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2274 if ac_fn_c_try_compile
"$LINENO"; then :
2275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2287 if ac_fn_c_try_compile
"$LINENO"; then :
2292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298 $as_echo "$ac_res" >&6; }
2299 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2301 } # ac_fn_c_check_type
2303 # ac_fn_c_check_decl LINENO SYMBOL VAR
2304 # ------------------------------------
2305 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2306 ac_fn_c_check_decl
()
2308 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2309 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2310 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2312 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2313 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2314 $as_echo_n "(cached) " >&6
2316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2322 #ifndef $as_decl_name
2324 (void) $as_decl_use;
2326 (void) $as_decl_name;
2334 if ac_fn_c_try_compile
"$LINENO"; then :
2339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2346 } # ac_fn_c_check_decl
2348 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2349 # ----------------------------------------------------
2350 # Tries to find if the field MEMBER exists in type AGGR, after including
2351 # INCLUDES, setting cache variable VAR accordingly.
2352 ac_fn_c_check_member
()
2354 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2356 $as_echo_n "checking for $2.$3... " >&6; }
2357 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2358 $as_echo_n "(cached) " >&6
2360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2373 if ac_fn_c_try_compile
"$LINENO"; then :
2376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2383 if (sizeof ac_aggr.$3)
2389 if ac_fn_c_try_compile
"$LINENO"; then :
2394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2400 $as_echo "$ac_res" >&6; }
2401 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2403 } # ac_fn_c_check_member
2405 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2406 # --------------------------------------
2407 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2408 ac_fn_cxx_check_decl
()
2410 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2411 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2412 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2414 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2415 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2416 $as_echo_n "(cached) " >&6
2418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2424 #ifndef $as_decl_name
2426 (void) $as_decl_use;
2428 (void) $as_decl_name;
2436 if ac_fn_cxx_try_compile
"$LINENO"; then :
2441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2446 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2448 } # ac_fn_cxx_check_decl
2449 cat >config.log
<<_ACEOF
2450 This file contains any messages produced by compilers while
2451 running configure, to aid debugging if configure makes a mistake.
2453 It was created by $as_me, which was
2454 generated by GNU Autoconf 2.64. Invocation command line was
2466 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2467 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2468 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2469 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2470 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2472 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2473 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2475 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2476 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2477 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2478 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2479 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2480 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2481 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir
=.
2490 $as_echo "PATH: $as_dir"
2506 # Keep a trace of the command line.
2507 # Strip out --no-create and --no-recursion so they do not pile up.
2508 # Strip out --silent because we don't want to record it for future runs.
2509 # Also quote any args containing shell meta-characters.
2510 # Make two passes to allow for proper duplicate-argument suppression.
2514 ac_must_keep_next
=false
2520 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2521 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2522 |
-silent |
--silent |
--silen |
--sile |
--sil)
2525 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2528 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2530 as_fn_append ac_configure_args1
" '$ac_arg'"
2531 if test $ac_must_keep_next = true
; then
2532 ac_must_keep_next
=false
# Got value, back to normal.
2535 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2536 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2537 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2538 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2539 case "$ac_configure_args0 " in
2540 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2543 -* ) ac_must_keep_next
=true
;;
2546 as_fn_append ac_configure_args
" '$ac_arg'"
2551 { ac_configure_args0
=; unset ac_configure_args0
;}
2552 { ac_configure_args1
=; unset ac_configure_args1
;}
2554 # When interrupted or exit'd, cleanup temporary files, and complete
2555 # config.log. We remove comments because anyway the quotes in there
2556 # would cause problems or look ugly.
2557 # WARNING: Use '\'' to represent an apostrophe within the trap.
2558 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2559 trap 'exit_status=$?
2560 # Save into config.log some information that might help in debugging.
2565 ## ---------------- ##
2566 ## Cache variables. ##
2567 ## ---------------- ##
2570 # The following way of writing the cache mishandles newlines in values,
2572 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2573 eval ac_val=\$$ac_var
2577 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2578 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2581 _ | IFS | as_nl) ;; #(
2582 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2583 *) { eval $ac_var=; unset $ac_var;} ;;
2588 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2589 *${as_nl}ac_space=\ *)
2591 "s/'\''/'\''\\\\'\'''\''/g;
2592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2603 ## ----------------- ##
2604 ## Output variables. ##
2605 ## ----------------- ##
2608 for ac_var in $ac_subst_vars
2610 eval ac_val=\$$ac_var
2612 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2614 $as_echo "$ac_var='\''$ac_val'\''"
2618 if test -n "$ac_subst_files"; then
2620 ## ------------------- ##
2621 ## File substitutions. ##
2622 ## ------------------- ##
2625 for ac_var
in $ac_subst_files
2627 eval ac_val
=\$
$ac_var
2629 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2631 $as_echo "$ac_var='\''$ac_val'\''"
2636 if test -s confdefs.h; then
2646 test "$ac_signal" != 0 &&
2647 $as_echo "$as_me: caught signal $ac_signal"
2648 $as_echo "$as_me: exit $exit_status"
2650 rm -f core *.core core.conftest.* &&
2651 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2654 for ac_signal
in 1 2 13 15; do
2655 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2659 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2660 rm -f -r conftest
* confdefs.h
2662 $as_echo "/* confdefs.h */" > confdefs.h
2664 # Predefined preprocessor variables.
2666 cat >>confdefs.h
<<_ACEOF
2667 #define PACKAGE_NAME "$PACKAGE_NAME"
2670 cat >>confdefs.h
<<_ACEOF
2671 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2674 cat >>confdefs.h
<<_ACEOF
2675 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2678 cat >>confdefs.h
<<_ACEOF
2679 #define PACKAGE_STRING "$PACKAGE_STRING"
2682 cat >>confdefs.h
<<_ACEOF
2683 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2686 cat >>confdefs.h
<<_ACEOF
2687 #define PACKAGE_URL "$PACKAGE_URL"
2691 # Let the site file select an alternate cache file if it wants to.
2692 # Prefer an explicitly selected file to automatically selected ones.
2695 if test -n "$CONFIG_SITE"; then
2696 ac_site_file1
=$CONFIG_SITE
2697 elif test "x$prefix" != xNONE
; then
2698 ac_site_file1
=$prefix/share
/config.site
2699 ac_site_file2
=$prefix/etc
/config.site
2701 ac_site_file1
=$ac_default_prefix/share
/config.site
2702 ac_site_file2
=$ac_default_prefix/etc
/config.site
2704 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2706 test "x$ac_site_file" = xNONE
&& continue
2707 if test -r "$ac_site_file"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2709 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2710 sed 's/^/| /' "$ac_site_file" >&5
2715 if test -r "$cache_file"; then
2716 # Some versions of bash will fail to source /dev/null (special
2717 # files actually), so we avoid doing that.
2718 if test -f "$cache_file"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2720 $as_echo "$as_me: loading cache $cache_file" >&6;}
2722 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2723 *) .
"./$cache_file";;
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2728 $as_echo "$as_me: creating cache $cache_file" >&6;}
2732 # Check that the precious variables saved in the cache have kept the same
2734 ac_cache_corrupted
=false
2735 for ac_var
in $ac_precious_vars; do
2736 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2737 eval ac_new_set
=\
$ac_env_${ac_var}_set
2738 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2739 eval ac_new_val
=\
$ac_env_${ac_var}_value
2740 case $ac_old_set,$ac_new_set in
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2743 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2744 ac_cache_corrupted
=: ;;
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2747 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2748 ac_cache_corrupted
=: ;;
2751 if test "x$ac_old_val" != "x$ac_new_val"; then
2752 # differences in whitespace do not lead to failure.
2753 ac_old_val_w
=`echo x $ac_old_val`
2754 ac_new_val_w
=`echo x $ac_new_val`
2755 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2757 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2758 ac_cache_corrupted
=:
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2761 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2762 eval $ac_var=\
$ac_old_val
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2765 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2767 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2770 # Pass precious variables to config.status.
2771 if test "$ac_new_set" = set; then
2773 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2774 *) ac_arg
=$ac_var=$ac_new_val ;;
2776 case " $ac_configure_args " in
2777 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2778 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2782 if $ac_cache_corrupted; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2786 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2787 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2789 ## -------------------- ##
2790 ## Main body of script. ##
2791 ## -------------------- ##
2794 ac_cpp
='$CPP $CPPFLAGS'
2795 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2803 ac_config_headers
="$ac_config_headers config.h:config.in"
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2807 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2808 # Check whether --enable-maintainer-mode was given.
2809 if test "${enable_maintainer_mode+set}" = set; then :
2810 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2812 USE_MAINTAINER_MODE
=no
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2816 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2817 if test $USE_MAINTAINER_MODE = yes; then
2818 MAINTAINER_MODE_TRUE
=
2819 MAINTAINER_MODE_FALSE
='#'
2821 MAINTAINER_MODE_TRUE
='#'
2822 MAINTAINER_MODE_FALSE
=
2825 MAINT
=$MAINTAINER_MODE_TRUE
2829 # Set the 'development' global.
2830 .
$srcdir/..
/bfd
/development.sh
2833 ac_cpp
='$CPP $CPPFLAGS'
2834 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2837 if test -n "$ac_tool_prefix"; then
2838 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2839 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if test "${ac_cv_prog_CC+set}" = set; then :
2843 $as_echo_n "(cached) " >&6
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC
="$CC" # Let the user override the test.
2848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir
=.
2853 for ac_exec_ext
in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 if test -n "$CC"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868 $as_echo "$CC" >&6; }
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2876 if test -z "$ac_cv_prog_CC"; then
2878 # Extract the first word of "gcc", so it can be a program name with args.
2879 set dummy gcc
; ac_word
=$2
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2883 $as_echo_n "(cached) " >&6
2885 if test -n "$ac_ct_CC"; then
2886 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir
=.
2893 for ac_exec_ext
in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 ac_cv_prog_ac_ct_CC
="gcc"
2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2906 if test -n "$ac_ct_CC"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2908 $as_echo "$ac_ct_CC" >&6; }
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2914 if test "x$ac_ct_CC" = x
; then
2917 case $cross_compiling:$ac_tool_warned in
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921 ac_tool_warned
=yes ;;
2929 if test -z "$CC"; then
2930 if test -n "$ac_tool_prefix"; then
2931 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2932 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if test "${ac_cv_prog_CC+set}" = set; then :
2936 $as_echo_n "(cached) " >&6
2938 if test -n "$CC"; then
2939 ac_cv_prog_CC
="$CC" # Let the user override the test.
2941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2945 test -z "$as_dir" && as_dir
=.
2946 for ac_exec_ext
in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 if test -n "$CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2970 if test -z "$CC"; then
2971 # Extract the first word of "cc", so it can be a program name with args.
2972 set dummy cc
; ac_word
=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if test "${ac_cv_prog_CC+set}" = set; then :
2976 $as_echo_n "(cached) " >&6
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC
="$CC" # Let the user override the test.
2982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir
=.
2987 for ac_exec_ext
in '' $ac_executable_extensions; do
2988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2990 ac_prog_rejected
=yes
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 if test $ac_prog_rejected = yes; then
3002 # We found a bogon in the path, so make sure we never use it.
3003 set dummy
$ac_cv_prog_CC
3005 if test $# != 0; then
3006 # We chose a different compiler from the bogus one.
3007 # However, it has the same basename, so the bogon will be chosen
3008 # first if we set CC to just the basename; use the full file name.
3010 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3016 if test -n "$CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018 $as_echo "$CC" >&6; }
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3026 if test -z "$CC"; then
3027 if test -n "$ac_tool_prefix"; then
3028 for ac_prog
in cl.exe
3030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3031 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_CC+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC
="$CC" # Let the user override the test.
3040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir
=.
3045 for ac_exec_ext
in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3067 test -n "$CC" && break
3070 if test -z "$CC"; then
3072 for ac_prog
in cl.exe
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy
$ac_prog; ac_word
=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3081 if test -n "$ac_ct_CC"; then
3082 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir
=.
3089 for ac_exec_ext
in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_ac_ct_CC
="$ac_prog"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3102 if test -n "$ac_ct_CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3104 $as_echo "$ac_ct_CC" >&6; }
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3111 test -n "$ac_ct_CC" && break
3114 if test "x$ac_ct_CC" = x
; then
3117 case $cross_compiling:$ac_tool_warned in
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3121 ac_tool_warned
=yes ;;
3130 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132 as_fn_error
"no acceptable C compiler found in \$PATH
3133 See \`config.log' for more details." "$LINENO" 5; }
3135 # Provide some information about the compiler.
3136 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3139 for ac_option
in --version -v -V -qversion; do
3140 { { ac_try
="$ac_compiler $ac_option >&5"
3142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3146 $as_echo "$ac_try_echo"; } >&5
3147 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3149 if test -s conftest.err; then
3151 ... rest of stderr output deleted ...
3152 10q' conftest.err >conftest.er1
3153 cat conftest.er1 >&5
3154 rm -f conftest.er1 conftest.err
3156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3157 test $ac_status = 0; }
3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161 /* end confdefs.h. */
3171 ac_clean_files_save=$ac_clean_files
3172 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3173 # Try to create an executable without -o first, disregard a.out.
3174 # It will help us diagnose broken compilers, and finding out an intuition
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3177 $as_echo_n "checking for C compiler default output file name... " >&6; }
3178 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3180 # The possible output files:
3181 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3184 for ac_file in $ac_files
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3188 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3193 if { { ac_try="$ac_link_default"
3195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3196 *) ac_try_echo
=$ac_try;;
3198 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 $as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_link_default") 2>&5
3202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }; then :
3204 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3205 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3206 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3207 # so that the user can short-circuit this test for compilers unknown to
3209 for ac_file
in $ac_files ''
3211 test -f "$ac_file" ||
continue
3213 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3216 # We found the default executable, but exeext='' is most
3220 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3222 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224 # We set ac_cv_exeext here because the later test for it is not
3225 # safe: cross compilers may not add the suffix if given an `-o'
3226 # argument, so we may need to know it at that point already.
3227 # Even if this section looks crufty: it has the advantage of
3234 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3240 $as_echo "$ac_file" >&6; }
3241 if test -z "$ac_file"; then :
3242 $as_echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.
$ac_ext >&5
3245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247 { as_fn_set_status
77
3248 as_fn_error
"C compiler cannot create executables
3249 See \`config.log' for more details." "$LINENO" 5; }; }
3251 ac_exeext
=$ac_cv_exeext
3253 # Check that the compiler produces executables we can run. If not, either
3254 # the compiler is broken, or we cross compile.
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3256 $as_echo_n "checking whether the C compiler works... " >&6; }
3257 # If not cross compiling, check that we can run a simple program.
3258 if test "$cross_compiling" != yes; then
3259 if { ac_try
='./$ac_file'
3260 { { case "(($ac_try" in
3261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_try") 2>&5
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; }; then
3272 if test "$cross_compiling" = maybe; then
3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error "cannot run C compiled programs.
3278 If you meant to cross compile
, use \
`--host'.
3279 See \`config.log
' for more details." "$LINENO" 5; }
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284 $as_echo "yes" >&6; }
3286 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3287 ac_clean_files=$ac_clean_files_save
3288 # Check that the compiler produces executables we can run. If not, either
3289 # the compiler is broken, or we cross compile.
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3291 $as_echo_n "checking whether we are cross compiling... " >&6; }
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3293 $as_echo "$cross_compiling" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3296 $as_echo_n "checking for suffix of executables... " >&6; }
3297 if { { ac_try="$ac_link"
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 $as_echo "$ac_try_echo"; } >&5
3304 (eval "$ac_link") 2>&5
3306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307 test $ac_status = 0; }; then :
3308 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3309 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3310 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3312 for ac_file
in conftest.exe conftest conftest.
*; do
3313 test -f "$ac_file" ||
continue
3315 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3316 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3325 See \`config.log' for more details." "$LINENO" 5; }
3327 rm -f conftest
$ac_cv_exeext
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3329 $as_echo "$ac_cv_exeext" >&6; }
3331 rm -f conftest.
$ac_ext
3332 EXEEXT
=$ac_cv_exeext
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3335 $as_echo_n "checking for suffix of object files... " >&6; }
3336 if test "${ac_cv_objext+set}" = set; then :
3337 $as_echo_n "(cached) " >&6
3339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3350 rm -f conftest.o conftest.obj
3351 if { { ac_try
="$ac_compile"
3353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_compile") 2>&5
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }; then :
3362 for ac_file in conftest.o conftest.obj conftest.*; do
3363 test -f "$ac_file" || continue;
3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3366 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3371 $as_echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 as_fn_error "cannot compute suffix of object files
: cannot compile
3377 See \
`config.log' for more details." "$LINENO" 5; }
3379 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3382 $as_echo "$ac_cv_objext" >&6; }
3383 OBJEXT=$ac_cv_objext
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3386 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3387 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3388 $as_echo_n "(cached) " >&6
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3404 if ac_fn_c_try_compile "$LINENO"; then :
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3414 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3415 if test $ac_compiler_gnu = yes; then
3420 ac_test_CFLAGS=${CFLAGS+set}
3421 ac_save_CFLAGS=$CFLAGS
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3423 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3424 if test "${ac_cv_prog_cc_g+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3427 ac_save_c_werror_flag=$ac_c_werror_flag
3428 ac_c_werror_flag=yes
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3442 if ac_fn_c_try_compile "$LINENO"; then :
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3457 if ac_fn_c_try_compile "$LINENO"; then :
3460 ac_c_werror_flag=$ac_save_c_werror_flag
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3473 if ac_fn_c_try_compile "$LINENO"; then :
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 ac_c_werror_flag=$ac_save_c_werror_flag
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3484 $as_echo "$ac_cv_prog_cc_g" >&6; }
3485 if test "$ac_test_CFLAGS" = set; then
3486 CFLAGS=$ac_save_CFLAGS
3487 elif test $ac_cv_prog_cc_g = yes; then
3488 if test "$GCC" = yes; then
3494 if test "$GCC" = yes; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3501 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3502 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3505 ac_cv_prog_cc_c89=no
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3511 #include <sys/types.h>
3512 #include <sys/stat.h>
3513 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3514 struct buf { int x; };
3515 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3516 static char *e (p, i)
3522 static char *f (char * (*g) (char **, int), char **p, ...)
3527 s = g (p, va_arg (v,int));
3532 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3533 function prototypes and stuff, but not '\xHH' hex character constants.
3534 These don't provoke an error unfortunately, instead are silently treated
3535 as 'x'. The following induces an error, until -std is added to get
3536 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3537 array size at least. It's necessary to write '\x00'==0 to get something
3538 that's true only with -std. */
3539 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3541 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3542 inside strings and character constants. */
3544 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3546 int test (int i, double x);
3547 struct s1 {int (*f) (int a);};
3548 struct s2 {int (*f) (double a);};
3549 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3555 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3560 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3561 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3563 CC="$ac_save_CC $ac_arg"
3564 if ac_fn_c_try_compile "$LINENO"; then :
3565 ac_cv_prog_cc_c89=$ac_arg
3567 rm -f core conftest.err conftest.$ac_objext
3568 test "x$ac_cv_prog_cc_c89" != "xno" && break
3570 rm -f conftest.$ac_ext
3575 case "x$ac_cv_prog_cc_c89" in
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3578 $as_echo "none needed" >&6; } ;;
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3581 $as_echo "unsupported" >&6; } ;;
3583 CC="$CC $ac_cv_prog_cc_c89"
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3585 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3587 if test "x$ac_cv_prog_cc_c89" != xno; then :
3592 ac_cpp='$CPP $CPPFLAGS'
3593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598 ac_cpp='$CXXCPP $CPPFLAGS'
3599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3602 if test -z "$CXX"; then
3603 if test -n "$CCC"; then
3606 if test -n "$ac_tool_prefix"; then
3607 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3610 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612 $as_echo_n "checking for $ac_word... " >&6; }
3613 if test "${ac_cv_prog_CXX+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3616 if test -n "$CXX"; then
3617 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 test -z "$as_dir" && as_dir=.
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3626 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 if test -n "$CXX"; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3639 $as_echo "$CXX" >&6; }
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3646 test -n "$CXX" && break
3649 if test -z "$CXX"; then
3651 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3653 # Extract the first word of "$ac_prog", so it can be a program name with args.
3654 set dummy $ac_prog; ac_word=$2
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656 $as_echo_n "checking for $ac_word... " >&6; }
3657 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3658 $as_echo_n "(cached) " >&6
3660 if test -n "$ac_ct_CXX"; then
3661 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3670 ac_cv_prog_ac_ct_CXX="$ac_prog"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3681 if test -n "$ac_ct_CXX"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3683 $as_echo "$ac_ct_CXX" >&6; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3690 test -n "$ac_ct_CXX" && break
3693 if test "x$ac_ct_CXX" = x; then
3696 case $cross_compiling:$ac_tool_warned in
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3700 ac_tool_warned=yes ;;
3708 # Provide some information about the compiler.
3709 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3712 for ac_option in --version -v -V -qversion; do
3713 { { ac_try="$ac_compiler $ac_option >&5"
3715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3716 *) ac_try_echo
=$ac_try;;
3718 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3719 $as_echo "$ac_try_echo"; } >&5
3720 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3722 if test -s conftest.err
; then
3724 ... rest of stderr output deleted ...
3725 10q' conftest.err
>conftest.er1
3726 cat conftest.er1
>&5
3727 rm -f conftest.er1 conftest.err
3729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730 test $ac_status = 0; }
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3734 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3735 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3752 if ac_fn_cxx_try_compile
"$LINENO"; then :
3757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3758 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3762 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3763 if test $ac_compiler_gnu = yes; then
3768 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3769 ac_save_CXXFLAGS
=$CXXFLAGS
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3771 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3772 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3773 $as_echo_n "(cached) " >&6
3775 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3776 ac_cxx_werror_flag
=yes
3779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3790 if ac_fn_cxx_try_compile
"$LINENO"; then :
3791 ac_cv_prog_cxx_g
=yes
3794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3805 if ac_fn_cxx_try_compile
"$LINENO"; then :
3808 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3821 if ac_fn_cxx_try_compile
"$LINENO"; then :
3822 ac_cv_prog_cxx_g
=yes
3824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3829 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3832 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3833 if test "$ac_test_CXXFLAGS" = set; then
3834 CXXFLAGS
=$ac_save_CXXFLAGS
3835 elif test $ac_cv_prog_cxx_g = yes; then
3836 if test "$GXX" = yes; then
3842 if test "$GXX" = yes; then
3849 ac_cpp
='$CPP $CPPFLAGS'
3850 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3857 ac_cpp
='$CPP $CPPFLAGS'
3858 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3862 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3863 # On Suns, sometimes $CPP names a directory.
3864 if test -n "$CPP" && test -d "$CPP"; then
3867 if test -z "$CPP"; then
3868 if test "${ac_cv_prog_CPP+set}" = set; then :
3869 $as_echo_n "(cached) " >&6
3871 # Double quotes because CPP needs to be expanded
3872 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3875 for ac_c_preproc_warn_flag
in '' yes
3877 # Use a header file that comes with gcc, so configuring glibc
3878 # with a fresh cross-compiler works.
3879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3880 # <limits.h> exists even on freestanding compilers.
3881 # On the NeXT, cc -E runs the code through the compiler's parser,
3882 # not just through cpp. "Syntax error" is here to catch this case.
3883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3886 # include <limits.h>
3888 # include <assert.h>
3892 if ac_fn_c_try_cpp
"$LINENO"; then :
3895 # Broken: fails on valid input.
3898 rm -f conftest.err conftest.
$ac_ext
3900 # OK, works on sane cases. Now check whether nonexistent headers
3901 # can be detected and how.
3902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3904 #include <ac_nonexistent.h>
3906 if ac_fn_c_try_cpp
"$LINENO"; then :
3907 # Broken: success on invalid input.
3910 # Passes both tests.
3914 rm -f conftest.err conftest.
$ac_ext
3917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3918 rm -f conftest.err conftest.
$ac_ext
3919 if $ac_preproc_ok; then :
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3932 $as_echo "$CPP" >&6; }
3934 for ac_c_preproc_warn_flag
in '' yes
3936 # Use a header file that comes with gcc, so configuring glibc
3937 # with a fresh cross-compiler works.
3938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3939 # <limits.h> exists even on freestanding compilers.
3940 # On the NeXT, cc -E runs the code through the compiler's parser,
3941 # not just through cpp. "Syntax error" is here to catch this case.
3942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3945 # include <limits.h>
3947 # include <assert.h>
3951 if ac_fn_c_try_cpp
"$LINENO"; then :
3954 # Broken: fails on valid input.
3957 rm -f conftest.err conftest.
$ac_ext
3959 # OK, works on sane cases. Now check whether nonexistent headers
3960 # can be detected and how.
3961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963 #include <ac_nonexistent.h>
3965 if ac_fn_c_try_cpp
"$LINENO"; then :
3966 # Broken: success on invalid input.
3969 # Passes both tests.
3973 rm -f conftest.err conftest.
$ac_ext
3976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3977 rm -f conftest.err conftest.
$ac_ext
3978 if $ac_preproc_ok; then :
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3984 See \`config.log' for more details." "$LINENO" 5; }
3988 ac_cpp
='$CPP $CPPFLAGS'
3989 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3995 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3996 if test "${ac_cv_path_GREP+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3999 if test -z "$GREP"; then
4000 ac_path_GREP_found
=false
4001 # Loop through the user's path and test for each of PROGNAME-LIST
4002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4003 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4006 test -z "$as_dir" && as_dir
=.
4007 for ac_prog
in grep ggrep
; do
4008 for ac_exec_ext
in '' $ac_executable_extensions; do
4009 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4010 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4011 # Check for GNU ac_path_GREP and select it if it is found.
4012 # Check for GNU $ac_path_GREP
4013 case `"$ac_path_GREP" --version 2>&1` in
4015 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4018 $as_echo_n 0123456789 >"conftest.in"
4021 cat "conftest.in" "conftest.in" >"conftest.tmp"
4022 mv "conftest.tmp" "conftest.in"
4023 cp "conftest.in" "conftest.nl"
4024 $as_echo 'GREP' >> "conftest.nl"
4025 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4026 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4027 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4028 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4029 # Best one so far, save it but keep looking for a better one
4030 ac_cv_path_GREP
="$ac_path_GREP"
4031 ac_path_GREP_max
=$ac_count
4033 # 10*(2^10) chars as input seems more than enough
4034 test $ac_count -gt 10 && break
4036 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4039 $ac_path_GREP_found && break 3
4044 if test -z "$ac_cv_path_GREP"; then
4045 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4048 ac_cv_path_GREP
=$GREP
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4053 $as_echo "$ac_cv_path_GREP" >&6; }
4054 GREP
="$ac_cv_path_GREP"
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4058 $as_echo_n "checking for egrep... " >&6; }
4059 if test "${ac_cv_path_EGREP+set}" = set; then :
4060 $as_echo_n "(cached) " >&6
4062 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4063 then ac_cv_path_EGREP
="$GREP -E"
4065 if test -z "$EGREP"; then
4066 ac_path_EGREP_found
=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4069 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4072 test -z "$as_dir" && as_dir
=.
4073 for ac_prog
in egrep; do
4074 for ac_exec_ext
in '' $ac_executable_extensions; do
4075 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4076 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4077 # Check for GNU ac_path_EGREP and select it if it is found.
4078 # Check for GNU $ac_path_EGREP
4079 case `"$ac_path_EGREP" --version 2>&1` in
4081 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4084 $as_echo_n 0123456789 >"conftest.in"
4087 cat "conftest.in" "conftest.in" >"conftest.tmp"
4088 mv "conftest.tmp" "conftest.in"
4089 cp "conftest.in" "conftest.nl"
4090 $as_echo 'EGREP' >> "conftest.nl"
4091 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4092 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4093 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4094 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4095 # Best one so far, save it but keep looking for a better one
4096 ac_cv_path_EGREP
="$ac_path_EGREP"
4097 ac_path_EGREP_max
=$ac_count
4099 # 10*(2^10) chars as input seems more than enough
4100 test $ac_count -gt 10 && break
4102 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4105 $ac_path_EGREP_found && break 3
4110 if test -z "$ac_cv_path_EGREP"; then
4111 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4114 ac_cv_path_EGREP
=$EGREP
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4120 $as_echo "$ac_cv_path_EGREP" >&6; }
4121 EGREP
="$ac_cv_path_EGREP"
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4125 $as_echo_n "checking for ANSI C header files... " >&6; }
4126 if test "${ac_cv_header_stdc+set}" = set; then :
4127 $as_echo_n "(cached) " >&6
4129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4144 if ac_fn_c_try_compile
"$LINENO"; then :
4145 ac_cv_header_stdc
=yes
4147 ac_cv_header_stdc
=no
4149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4151 if test $ac_cv_header_stdc = yes; then
4152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159 $EGREP "memchr" >/dev
/null
2>&1; then :
4162 ac_cv_header_stdc
=no
4168 if test $ac_cv_header_stdc = yes; then
4169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176 $EGREP "free" >/dev
/null
2>&1; then :
4179 ac_cv_header_stdc
=no
4185 if test $ac_cv_header_stdc = yes; then
4186 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4187 if test "$cross_compiling" = yes; then :
4190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4194 #if ((' ' & 0x0FF) == 0x020)
4195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4198 # define ISLOWER(c) \
4199 (('a' <= (c) && (c) <= 'i') \
4200 || ('j' <= (c) && (c) <= 'r') \
4201 || ('s' <= (c) && (c) <= 'z'))
4202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4210 for (i = 0; i < 256; i++)
4211 if (XOR (islower (i), ISLOWER (i))
4212 || toupper (i) != TOUPPER (i))
4217 if ac_fn_c_try_run
"$LINENO"; then :
4220 ac_cv_header_stdc
=no
4222 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4223 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4229 $as_echo "$ac_cv_header_stdc" >&6; }
4230 if test $ac_cv_header_stdc = yes; then
4232 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4236 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4237 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4238 inttypes.h stdint.h unistd.h
4240 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4243 eval as_val
=\$
$as_ac_Header
4244 if test "x$as_val" = x
""yes; then :
4245 cat >>confdefs.h
<<_ACEOF
4246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4255 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4256 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4263 if test "$MINIX" = yes; then
4265 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4268 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4271 $as_echo "#define _MINIX 1" >>confdefs.h
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4277 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4278 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4279 $as_echo_n "(cached) " >&6
4281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4284 # define __EXTENSIONS__ 1
4285 $ac_includes_default
4294 if ac_fn_c_try_compile
"$LINENO"; then :
4295 ac_cv_safe_to_define___extensions__
=yes
4297 ac_cv_safe_to_define___extensions__
=no
4299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4302 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4303 test $ac_cv_safe_to_define___extensions__ = yes &&
4304 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4306 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4308 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4310 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4312 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4316 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4317 for ac_t
in install-sh
install.sh shtool
; do
4318 if test -f "$ac_dir/$ac_t"; then
4320 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4325 if test -z "$ac_aux_dir"; then
4326 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4329 # These three variables are undocumented and unsupported,
4330 # and are intended to be withdrawn in a future Autoconf release.
4331 # They can cause serious problems if a builder's source tree is in a directory
4332 # whose full name contains unusual characters.
4333 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4334 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4335 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4338 # Make sure we can run config.sub.
4339 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4340 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4343 $as_echo_n "checking build system type... " >&6; }
4344 if test "${ac_cv_build+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4347 ac_build_alias
=$build_alias
4348 test "x$ac_build_alias" = x
&&
4349 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4350 test "x$ac_build_alias" = x
&&
4351 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4352 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4353 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4357 $as_echo "$ac_cv_build" >&6; }
4358 case $ac_cv_build in
4360 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4363 ac_save_IFS
=$IFS; IFS
='-'
4369 # Remember, the first character of IFS is used to create $*,
4370 # except with old shells:
4373 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4377 $as_echo_n "checking host system type... " >&6; }
4378 if test "${ac_cv_host+set}" = set; then :
4379 $as_echo_n "(cached) " >&6
4381 if test "x$host_alias" = x
; then
4382 ac_cv_host
=$ac_cv_build
4384 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4385 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4390 $as_echo "$ac_cv_host" >&6; }
4393 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4396 ac_save_IFS
=$IFS; IFS
='-'
4402 # Remember, the first character of IFS is used to create $*,
4403 # except with old shells:
4406 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4410 $as_echo_n "checking target system type... " >&6; }
4411 if test "${ac_cv_target+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4414 if test "x$target_alias" = x
; then
4415 ac_cv_target
=$ac_cv_host
4417 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4418 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4423 $as_echo "$ac_cv_target" >&6; }
4424 case $ac_cv_target in
4426 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4428 target
=$ac_cv_target
4429 ac_save_IFS
=$IFS; IFS
='-'
4435 # Remember, the first character of IFS is used to create $*,
4436 # except with old shells:
4439 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4442 # The aliases save the names the user supplied, while $host etc.
4443 # will get canonicalized.
4444 test -n "$target_alias" &&
4445 test "$program_prefix$program_suffix$program_transform_name" = \
4447 program_prefix
=${target_alias}-
4449 # The tests for host and target for $enable_largefile require
4454 # As the $enable_largefile decision depends on --enable-plugins we must set it
4455 # even in directories otherwise not depending on the $plugins option.
4459 for ac_header
in dlfcn.h
4461 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4463 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
4464 cat >>confdefs.h
<<_ACEOF
4465 #define HAVE_DLFCN_H 1
4472 for ac_header
in windows.h
4474 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4476 if test "x$ac_cv_header_windows_h" = x
""yes; then :
4477 cat >>confdefs.h
<<_ACEOF
4478 #define HAVE_WINDOWS_H 1
4486 # Check whether --enable-plugins was given.
4487 if test "${enable_plugins+set}" = set; then :
4488 enableval
=$enable_plugins; case "${enableval}" in
4491 if test "$maybe_plugins" != "yes" ; then
4492 as_fn_error
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4496 plugins
=$maybe_plugins
4500 if test "$plugins" = "yes"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4502 $as_echo_n "checking for library containing dlopen... " >&6; }
4503 if test "${ac_cv_search_dlopen+set}" = set; then :
4504 $as_echo_n "(cached) " >&6
4506 ac_func_search_save_LIBS
=$LIBS
4507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4510 /* Override any GCC internal prototype to avoid an error.
4511 Use char because int might match the return type of a GCC
4512 builtin and then its argument prototype would still apply. */
4525 for ac_lib
in '' dl
; do
4526 if test -z "$ac_lib"; then
4527 ac_res
="none required"
4530 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4532 if ac_fn_c_try_link
"$LINENO"; then :
4533 ac_cv_search_dlopen
=$ac_res
4535 rm -f core conftest.err conftest.
$ac_objext \
4537 if test "${ac_cv_search_dlopen+set}" = set; then :
4541 if test "${ac_cv_search_dlopen+set}" = set; then :
4544 ac_cv_search_dlopen
=no
4547 LIBS
=$ac_func_search_save_LIBS
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4550 $as_echo "$ac_cv_search_dlopen" >&6; }
4551 ac_res
=$ac_cv_search_dlopen
4552 if test "$ac_res" != no
; then :
4553 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4561 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4562 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4563 # are mutually exclusive; and without procfs support, the bfd/ elf module
4564 # cannot provide certain routines such as elfcore_write_prpsinfo
4565 # or elfcore_write_prstatus. So unless the user explicitly requested
4566 # large-file support through the --enable-largefile switch, disable
4567 # large-file support in favor of procfs support.
4568 test "${target}" = "${host}" -a "x$plugins" = xno \
4569 && : ${enable_largefile="no"}
4573 # Check whether --enable-largefile was given.
4574 if test "${enable_largefile+set}" = set; then :
4575 enableval
=$enable_largefile;
4578 if test "$enable_largefile" != no
; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4581 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4582 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4585 ac_cv_sys_largefile_CC
=no
4586 if test "$GCC" != yes; then
4589 # IRIX 6.2 and later do not support large files by default,
4590 # so use the C compiler's -n32 option if that helps.
4591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <sys/types.h>
4594 /* Check that off_t can represent 2**63 - 1 correctly.
4595 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4596 since some C++ compilers masquerading as C compilers
4597 incorrectly reject 9223372036854775807. */
4598 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4599 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4600 && LARGE_OFF_T % 2147483647 == 1)
4610 if ac_fn_c_try_compile
"$LINENO"; then :
4613 rm -f core conftest.err conftest.
$ac_objext
4615 if ac_fn_c_try_compile
"$LINENO"; then :
4616 ac_cv_sys_largefile_CC
=' -n32'; break
4618 rm -f core conftest.err conftest.
$ac_objext
4622 rm -f conftest.
$ac_ext
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4626 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4627 if test "$ac_cv_sys_largefile_CC" != no
; then
4628 CC
=$CC$ac_cv_sys_largefile_CC
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4632 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4633 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4634 $as_echo_n "(cached) " >&6
4637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639 #include <sys/types.h>
4640 /* Check that off_t can represent 2**63 - 1 correctly.
4641 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4642 since some C++ compilers masquerading as C compilers
4643 incorrectly reject 9223372036854775807. */
4644 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4645 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4646 && LARGE_OFF_T % 2147483647 == 1)
4656 if ac_fn_c_try_compile
"$LINENO"; then :
4657 ac_cv_sys_file_offset_bits
=no
; break
4659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662 #define _FILE_OFFSET_BITS 64
4663 #include <sys/types.h>
4664 /* Check that off_t can represent 2**63 - 1 correctly.
4665 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4666 since some C++ compilers masquerading as C compilers
4667 incorrectly reject 9223372036854775807. */
4668 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4669 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4670 && LARGE_OFF_T % 2147483647 == 1)
4680 if ac_fn_c_try_compile
"$LINENO"; then :
4681 ac_cv_sys_file_offset_bits
=64; break
4683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4684 ac_cv_sys_file_offset_bits
=unknown
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4689 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4690 case $ac_cv_sys_file_offset_bits in #(
4693 cat >>confdefs.h
<<_ACEOF
4694 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4699 if test $ac_cv_sys_file_offset_bits = unknown
; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4701 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4702 if test "${ac_cv_sys_large_files+set}" = set; then :
4703 $as_echo_n "(cached) " >&6
4706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4708 #include <sys/types.h>
4709 /* Check that off_t can represent 2**63 - 1 correctly.
4710 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4711 since some C++ compilers masquerading as C compilers
4712 incorrectly reject 9223372036854775807. */
4713 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4714 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4715 && LARGE_OFF_T % 2147483647 == 1)
4725 if ac_fn_c_try_compile
"$LINENO"; then :
4726 ac_cv_sys_large_files
=no
; break
4728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4731 #define _LARGE_FILES 1
4732 #include <sys/types.h>
4733 /* Check that off_t can represent 2**63 - 1 correctly.
4734 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4735 since some C++ compilers masquerading as C compilers
4736 incorrectly reject 9223372036854775807. */
4737 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4738 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4739 && LARGE_OFF_T % 2147483647 == 1)
4749 if ac_fn_c_try_compile
"$LINENO"; then :
4750 ac_cv_sys_large_files
=1; break
4752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4753 ac_cv_sys_large_files
=unknown
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4758 $as_echo "$ac_cv_sys_large_files" >&6; }
4759 case $ac_cv_sys_large_files in #(
4762 cat >>confdefs.h
<<_ACEOF
4763 #define _LARGE_FILES $ac_cv_sys_large_files
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4776 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4777 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4780 am_cv_prog_cc_stdc
=no
4782 # Don't try gcc -ansi; that turns off useful extensions and
4783 # breaks some systems' header files.
4784 # AIX -qlanglvl=ansi
4785 # Ultrix and OSF/1 -std1
4786 # HP-UX 10.20 and later -Ae
4787 # HP-UX older versions -Aa -D_HPUX_SOURCE
4788 # SVR4 -Xc -D__EXTENSIONS__
4789 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4791 CC
="$ac_save_CC $ac_arg"
4792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4796 #include <sys/types.h>
4797 #include <sys/stat.h>
4798 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4799 struct buf { int x; };
4800 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4801 static char *e (p, i)
4807 static char *f (char * (*g) (char **, int), char **p, ...)
4812 s = g (p, va_arg (v,int));
4816 int test (int i, double x);
4817 struct s1 {int (*f) (int a);};
4818 struct s2 {int (*f) (double a);};
4819 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4827 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4833 if ac_fn_c_try_compile
"$LINENO"; then :
4834 am_cv_prog_cc_stdc
="$ac_arg"; break
4836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4842 if test -z "$am_cv_prog_cc_stdc"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4844 $as_echo "none needed" >&6; }
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4847 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4849 case "x$am_cv_prog_cc_stdc" in
4851 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4854 # expand $ac_aux_dir to an absolute path
4855 am_aux_dir
=`cd $ac_aux_dir && pwd`
4857 if test x
"${install_sh}" != xset
; then
4860 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4862 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4866 # Installed binaries are usually stripped using `strip' when the user
4867 # run `make install-strip'. However `strip' might not be the right
4868 # tool to use in cross-compilation environments, therefore Automake
4869 # will honor the `STRIP' environment variable to overrule this program.
4870 if test "$cross_compiling" != no
; then
4871 if test -n "$ac_tool_prefix"; then
4872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4873 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875 $as_echo_n "checking for $ac_word... " >&6; }
4876 if test "${ac_cv_prog_STRIP+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4879 if test -n "$STRIP"; then
4880 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4886 test -z "$as_dir" && as_dir
=.
4887 for ac_exec_ext
in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 STRIP
=$ac_cv_prog_STRIP
4900 if test -n "$STRIP"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4902 $as_echo "$STRIP" >&6; }
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4910 if test -z "$ac_cv_prog_STRIP"; then
4912 # Extract the first word of "strip", so it can be a program name with args.
4913 set dummy strip
; ac_word
=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4919 if test -n "$ac_ct_STRIP"; then
4920 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4926 test -z "$as_dir" && as_dir
=.
4927 for ac_exec_ext
in '' $ac_executable_extensions; do
4928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4929 ac_cv_prog_ac_ct_STRIP
="strip"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4940 if test -n "$ac_ct_STRIP"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4942 $as_echo "$ac_ct_STRIP" >&6; }
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4948 if test "x$ac_ct_STRIP" = x
; then
4951 case $cross_compiling:$ac_tool_warned in
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4955 ac_tool_warned
=yes ;;
4960 STRIP
="$ac_cv_prog_STRIP"
4964 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4968 for ac_dir
in ..
"$srcdir"/..
; do
4969 for ac_t
in install-sh
install.sh shtool
; do
4970 if test -f "$ac_dir/$ac_t"; then
4972 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4977 if test -z "$ac_aux_dir"; then
4978 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4981 # These three variables are undocumented and unsupported,
4982 # and are intended to be withdrawn in a future Autoconf release.
4983 # They can cause serious problems if a builder's source tree is in a directory
4984 # whose full name contains unusual characters.
4985 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4986 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4987 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4991 test "$program_prefix" != NONE
&&
4992 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4993 # Use a double $ so make ignores it.
4994 test "$program_suffix" != NONE
&&
4995 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4996 # Double any \ or $.
4997 # By default was `s,x,x', remove it if useless.
4998 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4999 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5002 # See if we are building with C++, and substitute COMPILER.
5004 # Check whether --enable-build-with-cxx was given.
5005 if test "${enable_build_with_cxx+set}" = set; then :
5006 enableval
=$enable_build_with_cxx; case $enableval in
5010 as_fn_error
"bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
5013 enable_build_with_cxx
=no
5017 if test "$enable_build_with_cxx" = "yes"; then
5019 COMPILER_CFLAGS
='$(CXXFLAGS)'
5022 COMPILER_CFLAGS
='$(CFLAGS)'
5028 # Dependency checking.
5029 rm -rf .tst
2>/dev
/null
5030 mkdir .tst
2>/dev
/null
5031 if test -d .tst
; then
5036 rmdir .tst
2>/dev
/null
5038 DEPDIR
="${am__leading_dot}deps"
5040 ac_config_commands
="$ac_config_commands depdir"
5043 depcc
="$CC" am_compiler_list
=
5045 am_depcomp
=$ac_aux_dir/depcomp
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5047 $as_echo_n "checking dependency style of $depcc... " >&6; }
5048 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5051 if test -f "$am_depcomp"; then
5052 # We make a subdir and do the tests there. Otherwise we can end up
5053 # making bogus files that we don't know about and never remove. For
5054 # instance it was reported that on HP-UX the gcc test will end up
5055 # making a dummy file named `D' -- because `-MD' means `put the output
5058 # Copy depcomp to subdir because otherwise we won't find it if we're
5059 # using a relative directory.
5060 cp "$am_depcomp" conftest.dir
5062 # We will build objects and dependencies in a subdirectory because
5063 # it helps to detect inapplicable dependency modes. For instance
5064 # both Tru64's cc and ICC support -MD to output dependencies as a
5065 # side effect of compilation, but ICC will put the dependencies in
5066 # the current directory while Tru64 will put them in the object
5070 am_cv_CC_dependencies_compiler_type
=none
5071 if test "$am_compiler_list" = ""; then
5072 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5074 for depmode
in $am_compiler_list; do
5075 if test $depmode = none
; then break; fi
5077 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5078 # Setup a source with many dependencies, because some compilers
5079 # like to wrap large dependency lists on column 80 (with \), and
5080 # we should not choose a depcomp mode which is confused by this.
5082 # We need to recreate these files for each test, as the compiler may
5083 # overwrite some of them when testing with obscure command lines.
5084 # This happens at least with the AIX C compiler.
5086 for i
in 1 2 3 4 5 6; do
5087 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5089 # Solaris 8's {/usr,}/bin/sh.
5090 touch sub
/conftst
$i.h
5092 echo "include sub/conftest.Po" > confmf
5094 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5095 # mode. It turns out that the SunPro C++ compiler does not properly
5096 # handle `-M -o', and we need to detect this.
5097 depcmd
="depmode=$depmode \
5098 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5099 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5100 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5101 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5102 if env
$depcmd > conftest.err
2>&1 &&
5103 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5104 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5105 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5106 # icc doesn't choke on unknown options, it will just issue warnings
5107 # or remarks (even with -Werror). So we grep stderr for any message
5108 # that says an option was ignored or not supported.
5109 # When given -MP, icc 7.0 and 7.1 complain thusly:
5110 # icc: Command line warning: ignoring option '-M'; no argument required
5111 # The diagnosis changed in icc 8.0:
5112 # icc: Command line remark: option '-MP' not supported
5113 if (grep 'ignoring option' conftest.err ||
5114 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5115 am_cv_CC_dependencies_compiler_type
=$depmode
5116 $as_echo "$as_me:$LINENO: success" >&5
5120 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5121 sed -e 's/^/| /' < conftest.err
>&5
5127 am_cv_CC_dependencies_compiler_type
=none
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5132 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5133 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
5134 then as_fn_error
"no usable dependency style found" "$LINENO" 5
5135 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5140 # Check for the 'make' the user wants to use.
5143 # Extract the first word of "$ac_prog", so it can be a program name with args.
5144 set dummy
$ac_prog; ac_word
=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if test "${ac_cv_prog_MAKE+set}" = set; then :
5148 $as_echo_n "(cached) " >&6
5150 if test -n "$MAKE"; then
5151 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
5153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5157 test -z "$as_dir" && as_dir
=.
5158 for ac_exec_ext
in '' $ac_executable_extensions; do
5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5160 ac_cv_prog_MAKE
="$ac_prog"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 MAKE
=$ac_cv_prog_MAKE
5171 if test -n "$MAKE"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5173 $as_echo "$MAKE" >&6; }
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5180 test -n "$MAKE" && break
5184 case "`$MAKE --version 2>&1 | sed 1q`" in
5189 if test "$MAKE_IS_GNU" = yes; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5198 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5200 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5201 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5202 $as_echo_n "(cached) " >&6
5204 cat >conftest.
make <<\_ACEOF
5207 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5209 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5210 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5212 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5214 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5218 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5220 $as_echo "yes" >&6; }
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 SET_MAKE
="MAKE=${MAKE-make}"
5229 gnulib_extra_configure_args
=
5230 # If large-file support is disabled, make sure gnulib does the same.
5231 if test "$enable_largefile" = no
; then
5232 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
5235 # Configure gnulib. We need to build gnulib under some other
5236 # directory not "gnulib", to avoid the problem of both GDB and
5237 # GDBserver wanting to build it in the same directory, when building
5238 # in the source dir.
5241 in_build
="build-gnulib"
5242 in_extra_args
="$gnulib_extra_configure_args"
5244 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5245 # so they do not pile up.
5246 ac_sub_configure_args
=
5248 eval "set x $ac_configure_args"
5252 if test -n "$ac_prev"; then
5257 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5258 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5259 ac_prev
=cache_file
;;
5260 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5261 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5264 --config-cache |
-C)
5266 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5268 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5270 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5272 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5274 --disable-option-checking)
5278 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5280 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5284 # Always prepend --prefix to ensure using the same prefix
5285 # in subdir configurations.
5286 ac_arg
="--prefix=$prefix"
5288 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5290 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5293 if test "$silent" = yes; then
5294 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5297 # Always prepend --disable-option-checking to silence warnings, since
5298 # different subdirs can have different --enable and --with options.
5299 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5304 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5306 $as_echo "$ac_msg" >&6
5307 as_dir
="$ac_dir"; as_fn_mkdir_p
5311 ac_srcdir
=$srcdir/$in_src ;;
5313 ac_srcdir
=..
/$srcdir/$in_src ;;
5318 ac_sub_configure
=$ac_srcdir/configure
5320 # Make the cache file name correct relative to the subdirectory.
5322 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5324 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5327 if test -n "$in_extra_args"; then
5328 # Add the extra args at the end.
5329 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5332 { $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
5333 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5334 # The eval makes quoting arguments work.
5335 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5336 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5337 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5353 # If we haven't got the data from the intl directory,
5354 # assume NLS is disabled.
5363 if test -f ..
/intl
/config.intl
; then
5364 . ..
/intl
/config.intl
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5367 $as_echo_n "checking whether NLS is requested... " >&6; }
5368 if test x
"$USE_NLS" != xyes
; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5373 $as_echo "yes" >&6; }
5375 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5379 $as_echo_n "checking for catalogs to be installed... " >&6; }
5380 # Look for .po and .gmo files in the source directory.
5383 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
5384 # If there aren't any .gmo files the shell will give us the
5385 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5387 case "$cat" in *\
**)
5390 # The quadruple backslash is collapsed to a double backslash
5391 # by the backticks, then collapsed again by the double quotes,
5392 # leaving us with one backslash in the sed expression (right
5393 # before the dot that mustn't act as a wildcard).
5394 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5395 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
5396 # The user is allowed to set LINGUAS to a list of languages to
5397 # install catalogs for. If it's empty that means "all of them."
5398 if test "x$LINGUAS" = x
; then
5399 CATALOGS
="$CATALOGS $cat"
5400 XLINGUAS
="$XLINGUAS $lang"
5402 case "$LINGUAS" in *$lang*)
5403 CATALOGS
="$CATALOGS $cat"
5404 XLINGUAS
="$XLINGUAS $lang"
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5411 $as_echo "$LINGUAS" >&6; }
5424 localedir
='${datadir}/locale'
5427 if test x
"$USE_NLS" = xyes
; then
5428 CONFIG_ALL
="$CONFIG_ALL all-po"
5429 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
5430 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
5431 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
5434 GNULIB
=build-gnulib
/import
5436 # For Makefile dependencies.
5438 if test x
"$STDINT_H" != x
; then
5439 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
5445 cat >>confdefs.h
<<_ACEOF
5446 #define PACKAGE "$PACKAGE"
5451 # We never need to detect it in this sub-configure.
5452 # But preserve it for config.status --recheck.
5456 MAKEINFO_EXTRA_FLAGS
=""
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
5458 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
5459 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5462 echo '@clicksequence{a @click{} b}' >conftest.texinfo
5463 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
5464 gdb_cv_have_makeinfo_click
=yes
5466 gdb_cv_have_makeinfo_click
=no
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
5470 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
5471 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
5472 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
5478 # Check whether --with-separate-debug-dir was given.
5479 if test "${with_separate_debug_dir+set}" = set; then :
5480 withval
=$with_separate_debug_dir;
5483 DEBUGDIR
=${libdir}/debug
5487 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5488 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5489 ac_define_dir
=`eval echo $DEBUGDIR`
5490 ac_define_dir
=`eval echo $ac_define_dir`
5492 cat >>confdefs.h
<<_ACEOF
5493 #define DEBUGDIR "$ac_define_dir"
5499 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5500 if test "x$prefix" = xNONE
; then
5501 test_prefix
=/usr
/local
5506 test_prefix
=$exec_prefix
5509 case ${ac_define_dir} in
5510 "${test_prefix}"|
"${test_prefix}/"*|\
5511 '${exec_prefix}'|
'${exec_prefix}/'*)
5516 cat >>confdefs.h
<<_ACEOF
5517 #define DEBUGDIR_RELOCATABLE $value
5523 # We can't pass paths as command line arguments.
5524 # Mingw32 tries to be clever and will convert the paths for us.
5525 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5526 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5527 # This breaks GDB's relocatable path conversions since paths passed in
5528 # config.h would not get so translated, the path prefixes no longer match.
5530 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5531 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5532 ac_define_dir
=`eval echo $bindir`
5533 ac_define_dir
=`eval echo $ac_define_dir`
5535 cat >>confdefs.h
<<_ACEOF
5536 #define BINDIR "$ac_define_dir"
5541 # GDB's datadir relocation
5545 # Check whether --with-gdb-datadir was given.
5546 if test "${with_gdb_datadir+set}" = set; then :
5547 withval
=$with_gdb_datadir;
5548 GDB_DATADIR
=$withval
5550 GDB_DATADIR
=${datadir}/gdb
5554 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5555 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5556 ac_define_dir
=`eval echo $GDB_DATADIR`
5557 ac_define_dir
=`eval echo $ac_define_dir`
5559 cat >>confdefs.h
<<_ACEOF
5560 #define GDB_DATADIR "$ac_define_dir"
5566 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5567 if test "x$prefix" = xNONE
; then
5568 test_prefix
=/usr
/local
5573 test_prefix
=$exec_prefix
5576 case ${ac_define_dir} in
5577 "${test_prefix}"|
"${test_prefix}/"*|\
5578 '${exec_prefix}'|
'${exec_prefix}/'*)
5583 cat >>confdefs.h
<<_ACEOF
5584 #define GDB_DATADIR_RELOCATABLE $value
5591 # Check whether --with-relocated-sources was given.
5592 if test "${with_relocated_sources+set}" = set; then :
5593 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
5595 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5596 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5597 ac_define_dir
=`eval echo $reloc_srcdir`
5598 ac_define_dir
=`eval echo $ac_define_dir`
5600 cat >>confdefs.h
<<_ACEOF
5601 #define RELOC_SRCDIR "$ac_define_dir"
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5610 $as_echo_n "checking for default auto-load directory... " >&6; }
5612 # Check whether --with-auto-load-dir was given.
5613 if test "${with_auto_load_dir+set}" = set; then :
5614 withval
=$with_auto_load_dir;
5616 with_auto_load_dir
='$debugdir:$datadir/auto-load'
5619 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5621 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5622 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5623 ac_define_dir
=`eval echo $escape_dir`
5624 ac_define_dir
=`eval echo $ac_define_dir`
5626 cat >>confdefs.h
<<_ACEOF
5627 #define AUTO_LOAD_DIR "$ac_define_dir"
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5632 $as_echo "$with_auto_load_dir" >&6; }
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5635 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5637 # Check whether --with-auto-load-safe-path was given.
5638 if test "${with_auto_load_safe_path+set}" = set; then :
5639 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5640 with_auto_load_safe_path
="/"
5643 with_auto_load_safe_path
="$with_auto_load_dir"
5646 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5648 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5649 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5650 ac_define_dir
=`eval echo $escape_dir`
5651 ac_define_dir
=`eval echo $ac_define_dir`
5653 cat >>confdefs.h
<<_ACEOF
5654 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5659 $as_echo "$with_auto_load_safe_path" >&6; }
5663 subdirs
="$subdirs testsuite"
5666 # Check whether to support alternative target configurations
5667 # Check whether --enable-targets was given.
5668 if test "${enable_targets+set}" = set; then :
5669 enableval
=$enable_targets; case "${enableval}" in
5670 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
5672 no
) enable_targets
= ;;
5673 *) enable_targets
=$enableval ;;
5678 # Check whether to enable 64-bit support on 32-bit hosts
5679 # Check whether --enable-64-bit-bfd was given.
5680 if test "${enable_64_bit_bfd+set}" = set; then :
5681 enableval
=$enable_64_bit_bfd; case "${enableval}" in
5684 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5690 # Provide defaults for some variables set by the per-host and per-target
5692 gdb_host_obs
=posix-hdep.o
5694 if test "${target}" = "${host}"; then
5700 .
$srcdir/configure.
host
5702 # Add in the common host objects.
5703 .
$srcdir/common
/common.
host
5704 gdb_host_obs
="$gdb_host_obs $common_host_obs"
5706 # Accumulate some settings from configure.tgt over all enabled targets
5710 HAVE_NATIVE_GCORE_TARGET
=
5712 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5714 if test "$targ_alias" = "all"; then
5717 # Canonicalize the secondary target names.
5718 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5719 if test -n "$result"; then
5725 .
${srcdir}/configure.tgt
5727 if test -z "${gdb_target_obs}"; then :
5728 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
5731 # Target-specific object files
5732 for i
in ${gdb_target_obs}; do
5733 case " $TARGET_OBS " in
5736 TARGET_OBS
="$TARGET_OBS ${i}"
5741 # Check whether this target needs 64-bit CORE_ADDR
5742 if test x
${want64} = xfalse
; then
5743 .
${srcdir}/..
/bfd
/config.bfd
5746 # Check whether this target is native and supports gcore.
5747 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5748 && $gdb_have_gcore; then
5749 HAVE_NATIVE_GCORE_TARGET
=1
5754 if test x
${all_targets} = xtrue
; then
5756 # We want all 64-bit targets if we either:
5757 # - run on a 64-bit host or
5758 # - already require 64-bit support for some other target or
5759 # - the --enable-64-bit-bfd option was supplied
5760 # Otherwise we only support all 32-bit targets.
5762 # NOTE: This test must be in sync with the corresponding
5765 if test x
${want64} = xfalse
; then
5766 # The cast to long int works around a bug in the HP C Compiler
5767 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5768 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5769 # This bug is HP SR number 8606223364.
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5771 $as_echo_n "checking size of long... " >&6; }
5772 if test "${ac_cv_sizeof_long+set}" = set; then :
5773 $as_echo_n "(cached) " >&6
5775 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5778 if test "$ac_cv_type_long" = yes; then
5779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5781 { as_fn_set_status
77
5782 as_fn_error
"cannot compute sizeof (long)
5783 See \`config.log' for more details." "$LINENO" 5; }; }
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5791 $as_echo "$ac_cv_sizeof_long" >&6; }
5795 cat >>confdefs.h
<<_ACEOF
5796 #define SIZEOF_LONG $ac_cv_sizeof_long
5800 if test "x${ac_cv_sizeof_long}" = "x8"; then
5804 if test x
${want64} = xtrue
; then
5805 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5807 TARGET_OBS
='$(ALL_TARGET_OBS)'
5814 # For other settings, only the main target counts.
5818 targ
=$target; .
${srcdir}/configure.tgt
5820 # Fetch the default architecture and default target vector from BFD.
5821 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
5823 # We only want the first architecture, so strip off the others if
5824 # there is more than one.
5825 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
5827 if test "x$targ_archs" != x
; then
5829 cat >>confdefs.h
<<_ACEOF
5830 #define DEFAULT_BFD_ARCH $targ_archs
5834 if test "x$targ_defvec" != x
; then
5836 cat >>confdefs.h
<<_ACEOF
5837 #define DEFAULT_BFD_VEC $targ_defvec
5842 # The CLI cannot be disabled yet, but may be in the future.
5845 # Check whether --enable-gdbcli was given.
5846 if test "${enable_gdbcli+set}" = set; then :
5847 enableval
=$enable_gdbcli; case $enableval in
5851 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5853 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5859 if test x
"$enable_gdbcli" = xyes
; then
5860 if test -d $srcdir/cli
; then
5861 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5862 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5863 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5864 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5869 # Check whether --enable-gdbmi was given.
5870 if test "${enable_gdbmi+set}" = set; then :
5871 enableval
=$enable_gdbmi; case $enableval in
5875 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5881 if test x
"$enable_gdbmi" = xyes
; then
5882 if test -d $srcdir/mi
; then
5883 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5884 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5885 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5886 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5891 # Check whether --enable-tui was given.
5892 if test "${enable_tui+set}" = set; then :
5893 enableval
=$enable_tui; case $enableval in
5897 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5905 # Check whether --enable-gdbtk was given.
5906 if test "${enable_gdbtk+set}" = set; then :
5907 enableval
=$enable_gdbtk; case $enableval in
5911 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5914 if test -d $srcdir/gdbtk
; then
5921 # We unconditionally disable gdbtk tests on selected platforms.
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5925 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5929 # Libunwind support for ia64.
5932 # Check whether --with-libunwind-ia64 was given.
5933 if test "${with_libunwind_ia64+set}" = set; then :
5934 withval
=$with_libunwind_ia64;
5936 with_libunwind_ia64
=auto
5940 # Backward compatibility option.
5941 if test "${with_libunwind+set}" = set; then
5942 if test x
"$with_libunwind_ia64" != xauto
; then
5943 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5946 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5947 with_libunwind_ia64
="$with_libunwind"
5950 case "$with_libunwind_ia64" in
5954 for ac_header
in libunwind-ia64.h
5956 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5957 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5958 cat >>confdefs.h
<<_ACEOF
5959 #define HAVE_LIBUNWIND_IA64_H 1
5966 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
5969 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5973 if test x
"$with_libunwind_ia64" = xyes
; then
5974 for ac_header
in libunwind-ia64.h
5976 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5977 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5978 cat >>confdefs.h
<<_ACEOF
5979 #define HAVE_LIBUNWIND_IA64_H 1
5986 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
5987 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5989 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
5990 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
5991 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
5996 # Check whether --with-curses was given.
5997 if test "${with_curses+set}" = set; then :
5998 withval
=$with_curses; opt_curses
=$withval
6003 if test "$opt_curses" = "yes"; then
6007 # Profiling support.
6008 # Check whether --enable-profiling was given.
6009 if test "${enable_profiling+set}" = set; then :
6010 enableval
=$enable_profiling; case $enableval in
6014 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6021 for ac_func
in monstartup _mcleanup
6023 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6024 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6025 eval as_val
=\$
$as_ac_var
6026 if test "x$as_val" = x
""yes; then :
6027 cat >>confdefs.h
<<_ACEOF
6028 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6035 $as_echo_n "checking for _etext... " >&6; }
6036 if test "${ac_cv_var__etext+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6052 if ac_fn_c_try_link
"$LINENO"; then :
6053 ac_cv_var__etext
=yes
6057 rm -f core conftest.err conftest.
$ac_objext \
6058 conftest
$ac_exeext conftest.
$ac_ext
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6061 $as_echo "$ac_cv_var__etext" >&6; }
6062 if test $ac_cv_var__etext = yes; then
6064 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6068 $as_echo_n "checking for etext... " >&6; }
6069 if test "${ac_cv_var_etext+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6085 if ac_fn_c_try_link
"$LINENO"; then :
6090 rm -f core conftest.err conftest.
$ac_objext \
6091 conftest
$ac_exeext conftest.
$ac_ext
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6094 $as_echo "$ac_cv_var_etext" >&6; }
6095 if test $ac_cv_var_etext = yes; then
6097 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6100 if test "$enable_profiling" = yes ; then
6101 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
6102 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6105 OLD_CFLAGS
="$CFLAGS"
6106 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6109 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6110 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6111 $as_echo_n "(cached) " >&6
6113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6124 if ac_fn_c_try_compile
"$LINENO"; then :
6125 ac_cv_cc_supports_pg
=yes
6127 ac_cv_cc_supports_pg
=no
6129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6132 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6134 if test $ac_cv_cc_supports_pg = no
; then
6135 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6138 CFLAGS
="$OLD_CFLAGS"
6143 # Check whether --with-pkgversion was given.
6144 if test "${with_pkgversion+set}" = set; then :
6145 withval
=$with_pkgversion; case "$withval" in
6146 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6148 *) PKGVERSION
="($withval) " ;;
6159 # Check whether --with-bugurl was given.
6160 if test "${with_bugurl+set}" = set; then :
6161 withval
=$with_bugurl; case "$withval" in
6162 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6165 *) BUGURL
="$withval"
6169 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
6179 REPORT_BUGS_TO
="<$BUGURL>"
6180 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6187 cat >>confdefs.h
<<_ACEOF
6188 #define PKGVERSION "$PKGVERSION"
6192 cat >>confdefs.h
<<_ACEOF
6193 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6197 # --------------------- #
6198 # Checks for programs. #
6199 # --------------------- #
6201 for ac_prog
in gawk mawk nawk
awk
6203 # Extract the first word of "$ac_prog", so it can be a program name with args.
6204 set dummy
$ac_prog; ac_word
=$2
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206 $as_echo_n "checking for $ac_word... " >&6; }
6207 if test "${ac_cv_prog_AWK+set}" = set; then :
6208 $as_echo_n "(cached) " >&6
6210 if test -n "$AWK"; then
6211 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6217 test -z "$as_dir" && as_dir
=.
6218 for ac_exec_ext
in '' $ac_executable_extensions; do
6219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6220 ac_cv_prog_AWK
="$ac_prog"
6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 if test -n "$AWK"; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6233 $as_echo "$AWK" >&6; }
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236 $as_echo "no" >&6; }
6240 test -n "$AWK" && break
6243 # Find a good install program. We prefer a C program (faster),
6244 # so one script is as good as another. But avoid the broken or
6245 # incompatible versions:
6246 # SysV /etc/install, /usr/sbin/install
6247 # SunOS /usr/etc/install
6248 # IRIX /sbin/install
6250 # AmigaOS /C/install, which installs bootblocks on floppy discs
6251 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6252 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6253 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6254 # OS/2's system install, which has a completely different semantic
6255 # ./install, which can be erroneously created by make from ./install.sh.
6256 # Reject install programs that cannot install multiple files.
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6258 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6259 if test -z "$INSTALL"; then
6260 if test "${ac_cv_path_install+set}" = set; then :
6261 $as_echo_n "(cached) " >&6
6263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6267 test -z "$as_dir" && as_dir
=.
6268 # Account for people who put trailing slashes in PATH elements.
6269 case $as_dir/ in #((
6270 .
/ | .
// |
/[cC
]/* | \
6271 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6272 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
6275 # OSF1 and SCO ODT 3.0 have their own names for install.
6276 # Don't use installbsd from OSF since it installs stuff as root
6278 for ac_prog
in ginstall scoinst
install; do
6279 for ac_exec_ext
in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6281 if test $ac_prog = install &&
6282 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6283 # AIX install. It has an incompatible calling convention.
6285 elif test $ac_prog = install &&
6286 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6287 # program-specific install script used by HP pwplus--don't use.
6290 rm -rf conftest.one conftest.two conftest.dir
6291 echo one
> conftest.one
6292 echo two
> conftest.two
6294 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
6295 test -s conftest.one
&& test -s conftest.two
&&
6296 test -s conftest.dir
/conftest.one
&&
6297 test -s conftest.dir
/conftest.two
6299 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6312 rm -rf conftest.one conftest.two conftest.dir
6315 if test "${ac_cv_path_install+set}" = set; then
6316 INSTALL
=$ac_cv_path_install
6318 # As a last resort, use the slow shell script. Don't cache a
6319 # value for INSTALL within a source directory, because that will
6320 # break other packages using the cache if that directory is
6321 # removed, or if the value is a relative name.
6322 INSTALL
=$ac_install_sh
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6326 $as_echo "$INSTALL" >&6; }
6328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6329 # It thinks the first close brace ends the variable substitution.
6330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6334 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6337 $as_echo_n "checking whether ln -s works... " >&6; }
6339 if test "$LN_S" = "ln -s"; then
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6341 $as_echo "yes" >&6; }
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6344 $as_echo "no, using $LN_S" >&6; }
6347 if test -n "$ac_tool_prefix"; then
6348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6349 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6353 $as_echo_n "(cached) " >&6
6355 if test -n "$RANLIB"; then
6356 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6362 test -z "$as_dir" && as_dir
=.
6363 for ac_exec_ext
in '' $ac_executable_extensions; do
6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6365 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 RANLIB
=$ac_cv_prog_RANLIB
6376 if test -n "$RANLIB"; then
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6378 $as_echo "$RANLIB" >&6; }
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6386 if test -z "$ac_cv_prog_RANLIB"; then
6387 ac_ct_RANLIB
=$RANLIB
6388 # Extract the first word of "ranlib", so it can be a program name with args.
6389 set dummy ranlib
; ac_word
=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6393 $as_echo_n "(cached) " >&6
6395 if test -n "$ac_ct_RANLIB"; then
6396 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6402 test -z "$as_dir" && as_dir
=.
6403 for ac_exec_ext
in '' $ac_executable_extensions; do
6404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6405 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6416 if test -n "$ac_ct_RANLIB"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6418 $as_echo "$ac_ct_RANLIB" >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6424 if test "x$ac_ct_RANLIB" = x
; then
6427 case $cross_compiling:$ac_tool_warned in
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6431 ac_tool_warned
=yes ;;
6433 RANLIB
=$ac_ct_RANLIB
6436 RANLIB
="$ac_cv_prog_RANLIB"
6439 for ac_prog
in 'bison -y' byacc
6441 # Extract the first word of "$ac_prog", so it can be a program name with args.
6442 set dummy
$ac_prog; ac_word
=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_prog_YACC+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6448 if test -n "$YACC"; then
6449 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
6451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6455 test -z "$as_dir" && as_dir
=.
6456 for ac_exec_ext
in '' $ac_executable_extensions; do
6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458 ac_cv_prog_YACC
="$ac_prog"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 YACC
=$ac_cv_prog_YACC
6469 if test -n "$YACC"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6471 $as_echo "$YACC" >&6; }
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6478 test -n "$YACC" && break
6480 test -n "$YACC" || YACC
="yacc"
6483 if test -n "$ac_tool_prefix"; then
6484 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6485 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487 $as_echo_n "checking for $ac_word... " >&6; }
6488 if test "${ac_cv_prog_AR+set}" = set; then :
6489 $as_echo_n "(cached) " >&6
6491 if test -n "$AR"; then
6492 ac_cv_prog_AR
="$AR" # Let the user override the test.
6494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6498 test -z "$as_dir" && as_dir
=.
6499 for ac_exec_ext
in '' $ac_executable_extensions; do
6500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6501 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 if test -n "$AR"; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6514 $as_echo "$AR" >&6; }
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517 $as_echo "no" >&6; }
6522 if test -z "$ac_cv_prog_AR"; then
6524 # Extract the first word of "ar", so it can be a program name with args.
6525 set dummy
ar; ac_word
=$2
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527 $as_echo_n "checking for $ac_word... " >&6; }
6528 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6529 $as_echo_n "(cached) " >&6
6531 if test -n "$ac_ct_AR"; then
6532 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6538 test -z "$as_dir" && as_dir
=.
6539 for ac_exec_ext
in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_prog_ac_ct_AR
="ar"
6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6552 if test -n "$ac_ct_AR"; then
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6554 $as_echo "$ac_ct_AR" >&6; }
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; }
6560 if test "x$ac_ct_AR" = x
; then
6563 case $cross_compiling:$ac_tool_warned in
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6567 ac_tool_warned
=yes ;;
6575 if test -n "$ac_tool_prefix"; then
6576 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6577 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579 $as_echo_n "checking for $ac_word... " >&6; }
6580 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6583 if test -n "$DLLTOOL"; then
6584 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
6586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6590 test -z "$as_dir" && as_dir
=.
6591 for ac_exec_ext
in '' $ac_executable_extensions; do
6592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6593 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
6594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 DLLTOOL
=$ac_cv_prog_DLLTOOL
6604 if test -n "$DLLTOOL"; then
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6606 $as_echo "$DLLTOOL" >&6; }
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609 $as_echo "no" >&6; }
6614 if test -z "$ac_cv_prog_DLLTOOL"; then
6615 ac_ct_DLLTOOL
=$DLLTOOL
6616 # Extract the first word of "dlltool", so it can be a program name with args.
6617 set dummy dlltool
; ac_word
=$2
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 $as_echo_n "checking for $ac_word... " >&6; }
6620 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6621 $as_echo_n "(cached) " >&6
6623 if test -n "$ac_ct_DLLTOOL"; then
6624 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
6626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6630 test -z "$as_dir" && as_dir
=.
6631 for ac_exec_ext
in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
6644 if test -n "$ac_ct_DLLTOOL"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6646 $as_echo "$ac_ct_DLLTOOL" >&6; }
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649 $as_echo "no" >&6; }
6652 if test "x$ac_ct_DLLTOOL" = x
; then
6655 case $cross_compiling:$ac_tool_warned in
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6659 ac_tool_warned
=yes ;;
6661 DLLTOOL
=$ac_ct_DLLTOOL
6664 DLLTOOL
="$ac_cv_prog_DLLTOOL"
6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6669 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6673 $as_echo_n "(cached) " >&6
6675 if test -n "$WINDRES"; then
6676 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
6678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6682 test -z "$as_dir" && as_dir
=.
6683 for ac_exec_ext
in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 WINDRES
=$ac_cv_prog_WINDRES
6696 if test -n "$WINDRES"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6698 $as_echo "$WINDRES" >&6; }
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6706 if test -z "$ac_cv_prog_WINDRES"; then
6707 ac_ct_WINDRES
=$WINDRES
6708 # Extract the first word of "windres", so it can be a program name with args.
6709 set dummy windres
; ac_word
=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6713 $as_echo_n "(cached) " >&6
6715 if test -n "$ac_ct_WINDRES"; then
6716 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
6718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir
=.
6723 for ac_exec_ext
in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_ac_ct_WINDRES
="windres"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
6736 if test -n "$ac_ct_WINDRES"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6738 $as_echo "$ac_ct_WINDRES" >&6; }
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6744 if test "x$ac_ct_WINDRES" = x
; then
6747 case $cross_compiling:$ac_tool_warned in
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751 ac_tool_warned
=yes ;;
6753 WINDRES
=$ac_ct_WINDRES
6756 WINDRES
="$ac_cv_prog_WINDRES"
6762 # Needed for GNU Hurd hosts.
6763 if test -n "$ac_tool_prefix"; then
6764 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6765 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if test "${ac_cv_prog_MIG+set}" = set; then :
6769 $as_echo_n "(cached) " >&6
6771 if test -n "$MIG"; then
6772 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
6774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir
=.
6779 for ac_exec_ext
in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 if test -n "$MIG"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6794 $as_echo "$MIG" >&6; }
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6802 if test -z "$ac_cv_prog_MIG"; then
6804 # Extract the first word of "mig", so it can be a program name with args.
6805 set dummy mig
; ac_word
=$2
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807 $as_echo_n "checking for $ac_word... " >&6; }
6808 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6809 $as_echo_n "(cached) " >&6
6811 if test -n "$ac_ct_MIG"; then
6812 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
6814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6818 test -z "$as_dir" && as_dir
=.
6819 for ac_exec_ext
in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_prog_ac_ct_MIG
="mig"
6822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
6832 if test -n "$ac_ct_MIG"; then
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6834 $as_echo "$ac_ct_MIG" >&6; }
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837 $as_echo "no" >&6; }
6840 if test "x$ac_ct_MIG" = x
; then
6843 case $cross_compiling:$ac_tool_warned in
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6847 ac_tool_warned
=yes ;;
6852 MIG
="$ac_cv_prog_MIG"
6855 if test x
"$MIG" = x
; then
6856 as_fn_error
"MIG not found but required for $host hosts" "$LINENO" 5
6861 # ---------------------- #
6862 # Checks for libraries. #
6863 # ---------------------- #
6865 # We might need to link with -lm; most simulators need it.
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6867 $as_echo_n "checking for main in -lm... " >&6; }
6868 if test "${ac_cv_lib_m_main+set}" = set; then :
6869 $as_echo_n "(cached) " >&6
6871 ac_check_lib_save_LIBS
=$LIBS
6873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6885 if ac_fn_c_try_link
"$LINENO"; then :
6886 ac_cv_lib_m_main
=yes
6890 rm -f core conftest.err conftest.
$ac_objext \
6891 conftest
$ac_exeext conftest.
$ac_ext
6892 LIBS
=$ac_check_lib_save_LIBS
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6895 $as_echo "$ac_cv_lib_m_main" >&6; }
6896 if test "x$ac_cv_lib_m_main" = x
""yes; then :
6897 cat >>confdefs.h
<<_ACEOF
6906 # We need to link with -lw to get `wctype' on Solaris before Solaris
6907 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6908 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6909 # is known to have this problem). Therefore we avoid libw if we can.
6910 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6911 if test "x$ac_cv_func_wctype" = x
""yes; then :
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6915 $as_echo_n "checking for wctype in -lw... " >&6; }
6916 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6917 $as_echo_n "(cached) " >&6
6919 ac_check_lib_save_LIBS
=$LIBS
6921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6924 /* Override any GCC internal prototype to avoid an error.
6925 Use char because int might match the return type of a GCC
6926 builtin and then its argument prototype would still apply. */
6939 if ac_fn_c_try_link
"$LINENO"; then :
6940 ac_cv_lib_w_wctype
=yes
6942 ac_cv_lib_w_wctype
=no
6944 rm -f core conftest.err conftest.
$ac_objext \
6945 conftest
$ac_exeext conftest.
$ac_ext
6946 LIBS
=$ac_check_lib_save_LIBS
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6949 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6950 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
6951 cat >>confdefs.h
<<_ACEOF
6962 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6964 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6965 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6968 ac_func_search_save_LIBS
=$LIBS
6969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6972 /* Override any GCC internal prototype to avoid an error.
6973 Use char because int might match the return type of a GCC
6974 builtin and then its argument prototype would still apply. */
6978 char gethostbyname ();
6982 return gethostbyname ();
6987 for ac_lib
in '' nsl
; do
6988 if test -z "$ac_lib"; then
6989 ac_res
="none required"
6992 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6994 if ac_fn_c_try_link
"$LINENO"; then :
6995 ac_cv_search_gethostbyname
=$ac_res
6997 rm -f core conftest.err conftest.
$ac_objext \
6999 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7003 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7006 ac_cv_search_gethostbyname
=no
7009 LIBS
=$ac_func_search_save_LIBS
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7012 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7013 ac_res
=$ac_cv_search_gethostbyname
7014 if test "$ac_res" != no
; then :
7015 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7020 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7022 $as_echo_n "checking for library containing socketpair... " >&6; }
7023 if test "${ac_cv_search_socketpair+set}" = set; then :
7024 $as_echo_n "(cached) " >&6
7026 ac_func_search_save_LIBS
=$LIBS
7027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7030 /* Override any GCC internal prototype to avoid an error.
7031 Use char because int might match the return type of a GCC
7032 builtin and then its argument prototype would still apply. */
7040 return socketpair ();
7045 for ac_lib
in '' socket
; do
7046 if test -z "$ac_lib"; then
7047 ac_res
="none required"
7050 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7052 if ac_fn_c_try_link
"$LINENO"; then :
7053 ac_cv_search_socketpair
=$ac_res
7055 rm -f core conftest.err conftest.
$ac_objext \
7057 if test "${ac_cv_search_socketpair+set}" = set; then :
7061 if test "${ac_cv_search_socketpair+set}" = set; then :
7064 ac_cv_search_socketpair
=no
7067 LIBS
=$ac_func_search_save_LIBS
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7070 $as_echo "$ac_cv_search_socketpair" >&6; }
7071 ac_res
=$ac_cv_search_socketpair
7072 if test "$ac_res" != no
; then :
7073 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7078 # Link in zlib if we can. This allows us to read compressed debug sections.
7080 # Use the system's zlib library.
7081 zlibdir
="-L\$(top_builddir)/../zlib"
7082 zlibinc
="-I\$(top_srcdir)/../zlib"
7084 # Check whether --with-system-zlib was given.
7085 if test "${with_system_zlib+set}" = set; then :
7086 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7097 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7099 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7100 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7101 $as_echo_n "(cached) " >&6
7103 ac_func_search_save_LIBS
=$LIBS
7104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7107 /* Override any GCC internal prototype to avoid an error.
7108 Use char because int might match the return type of a GCC
7109 builtin and then its argument prototype would still apply. */
7113 char kinfo_getvmmap ();
7117 return kinfo_getvmmap ();
7122 for ac_lib
in '' util
; do
7123 if test -z "$ac_lib"; then
7124 ac_res
="none required"
7127 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7129 if ac_fn_c_try_link
"$LINENO"; then :
7130 ac_cv_search_kinfo_getvmmap
=$ac_res
7132 rm -f core conftest.err conftest.
$ac_objext \
7134 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7138 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7141 ac_cv_search_kinfo_getvmmap
=no
7144 LIBS
=$ac_func_search_save_LIBS
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7147 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7148 ac_res
=$ac_cv_search_kinfo_getvmmap
7149 if test "$ac_res" != no
; then :
7150 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7152 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7158 if test "X$prefix" = "XNONE"; then
7159 acl_final_prefix
="$ac_default_prefix"
7161 acl_final_prefix
="$prefix"
7163 if test "X$exec_prefix" = "XNONE"; then
7164 acl_final_exec_prefix
='${prefix}'
7166 acl_final_exec_prefix
="$exec_prefix"
7168 acl_save_prefix
="$prefix"
7169 prefix
="$acl_final_prefix"
7170 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7171 prefix
="$acl_save_prefix"
7174 # Check whether --with-gnu-ld was given.
7175 if test "${with_gnu_ld+set}" = set; then :
7176 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7181 # Prepare PATH_SEPARATOR.
7182 # The user is always right.
7183 if test "${PATH_SEPARATOR+set}" != set; then
7184 echo "#! /bin/sh" >conf$$.sh
7185 echo "exit 0" >>conf$$.sh
7187 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7195 if test "$GCC" = yes; then
7196 # Check if gcc -print-prog-name=ld gives a path.
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7198 $as_echo_n "checking for ld used by GCC... " >&6; }
7201 # gcc leaves a trailing carriage return which upsets mingw
7202 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7204 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7207 # Accept absolute paths.
7208 [\\/]* |
[A-Za-z
]:[\\/]*)
7209 re_direlt
='/[^/][^/]*/\.\./'
7210 # Canonicalize the path of ld
7211 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7212 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7213 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7215 test -z "$LD" && LD
="$ac_prog"
7218 # If it fails, then pretend we aren't using GCC.
7222 # If it is relative, then search for the first ld in PATH.
7226 elif test "$with_gnu_ld" = yes; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7228 $as_echo_n "checking for GNU ld... " >&6; }
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7231 $as_echo_n "checking for non-GNU ld... " >&6; }
7233 if test "${acl_cv_path_LD+set}" = set; then :
7234 $as_echo_n "(cached) " >&6
7236 if test -z "$LD"; then
7237 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7238 for ac_dir
in $PATH; do
7239 test -z "$ac_dir" && ac_dir
=.
7240 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7241 acl_cv_path_LD
="$ac_dir/$ac_prog"
7242 # Check to see if the program is GNU ld. I'd rather use --version,
7243 # but apparently some GNU ld's only accept -v.
7244 # Break only if it was the GNU/non-GNU ld that we prefer.
7245 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7246 test "$with_gnu_ld" != no
&& break
7248 test "$with_gnu_ld" != yes && break
7254 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7258 LD
="$acl_cv_path_LD"
7259 if test -n "$LD"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7261 $as_echo "$LD" >&6; }
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7266 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7268 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7269 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7270 $as_echo_n "(cached) " >&6
7272 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7273 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7274 acl_cv_prog_gnu_ld
=yes
7276 acl_cv_prog_gnu_ld
=no
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7280 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7281 with_gnu_ld
=$acl_cv_prog_gnu_ld
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7286 $as_echo_n "checking for shared library run path origin... " >&6; }
7287 if test "${acl_cv_rpath+set}" = set; then :
7288 $as_echo_n "(cached) " >&6
7291 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7292 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7299 $as_echo "$acl_cv_rpath" >&6; }
7301 libext
="$acl_cv_libext"
7302 shlibext
="$acl_cv_shlibext"
7303 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7304 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7305 hardcode_direct
="$acl_cv_hardcode_direct"
7306 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7307 # Check whether --enable-rpath was given.
7308 if test "${enable_rpath+set}" = set; then :
7309 enableval
=$enable_rpath; :
7323 acl_save_prefix
="$prefix"
7324 prefix
="$acl_final_prefix"
7325 acl_save_exec_prefix
="$exec_prefix"
7326 exec_prefix
="$acl_final_exec_prefix"
7328 eval additional_includedir
=\"$includedir\"
7329 eval additional_libdir
=\"$libdir\"
7331 exec_prefix
="$acl_save_exec_prefix"
7332 prefix
="$acl_save_prefix"
7335 # Check whether --with-libiconv-prefix was given.
7336 if test "${with_libiconv_prefix+set}" = set; then :
7337 withval
=$with_libiconv_prefix;
7338 if test "X$withval" = "Xno"; then
7341 if test "X$withval" = "X"; then
7343 acl_save_prefix
="$prefix"
7344 prefix
="$acl_final_prefix"
7345 acl_save_exec_prefix
="$exec_prefix"
7346 exec_prefix
="$acl_final_exec_prefix"
7348 eval additional_includedir
=\"$includedir\"
7349 eval additional_libdir
=\"$libdir\"
7351 exec_prefix
="$acl_save_exec_prefix"
7352 prefix
="$acl_save_prefix"
7355 additional_includedir
="$withval/include"
7356 additional_libdir
="$withval/lib"
7367 names_already_handled
=
7368 names_next_round
='iconv '
7369 while test -n "$names_next_round"; do
7370 names_this_round
="$names_next_round"
7372 for name
in $names_this_round; do
7374 for n
in $names_already_handled; do
7375 if test "$n" = "$name"; then
7380 if test -z "$already_handled"; then
7381 names_already_handled
="$names_already_handled $name"
7382 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7383 eval value
=\"\
$HAVE_LIB$uppername\"
7384 if test -n "$value"; then
7385 if test "$value" = yes; then
7386 eval value
=\"\
$LIB$uppername\"
7387 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
7388 eval value
=\"\
$LTLIB$uppername\"
7389 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
7398 if test $use_additional = yes; then
7399 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7400 found_dir
="$additional_libdir"
7401 found_so
="$additional_libdir/lib$name.$shlibext"
7402 if test -f "$additional_libdir/lib$name.la"; then
7403 found_la
="$additional_libdir/lib$name.la"
7406 if test -f "$additional_libdir/lib$name.$libext"; then
7407 found_dir
="$additional_libdir"
7408 found_a
="$additional_libdir/lib$name.$libext"
7409 if test -f "$additional_libdir/lib$name.la"; then
7410 found_la
="$additional_libdir/lib$name.la"
7415 if test "X$found_dir" = "X"; then
7416 for x
in $LDFLAGS $LTLIBICONV; do
7418 acl_save_prefix
="$prefix"
7419 prefix
="$acl_final_prefix"
7420 acl_save_exec_prefix
="$exec_prefix"
7421 exec_prefix
="$acl_final_exec_prefix"
7423 exec_prefix
="$acl_save_exec_prefix"
7424 prefix
="$acl_save_prefix"
7428 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7429 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7431 found_so
="$dir/lib$name.$shlibext"
7432 if test -f "$dir/lib$name.la"; then
7433 found_la
="$dir/lib$name.la"
7436 if test -f "$dir/lib$name.$libext"; then
7438 found_a
="$dir/lib$name.$libext"
7439 if test -f "$dir/lib$name.la"; then
7440 found_la
="$dir/lib$name.la"
7446 if test "X$found_dir" != "X"; then
7451 if test "X$found_dir" != "X"; then
7452 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7453 if test "X$found_so" != "X"; then
7454 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
7455 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7458 for x
in $ltrpathdirs; do
7459 if test "X$x" = "X$found_dir"; then
7464 if test -z "$haveit"; then
7465 ltrpathdirs
="$ltrpathdirs $found_dir"
7467 if test "$hardcode_direct" = yes; then
7468 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7470 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
7471 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7473 for x
in $rpathdirs; do
7474 if test "X$x" = "X$found_dir"; then
7479 if test -z "$haveit"; then
7480 rpathdirs
="$rpathdirs $found_dir"
7484 for x
in $LDFLAGS $LIBICONV; do
7486 acl_save_prefix
="$prefix"
7487 prefix
="$acl_final_prefix"
7488 acl_save_exec_prefix
="$exec_prefix"
7489 exec_prefix
="$acl_final_exec_prefix"
7491 exec_prefix
="$acl_save_exec_prefix"
7492 prefix
="$acl_save_prefix"
7494 if test "X$x" = "X-L$found_dir"; then
7499 if test -z "$haveit"; then
7500 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7502 if test "$hardcode_minus_L" != no
; then
7503 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7505 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7511 if test "X$found_a" != "X"; then
7512 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
7514 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7517 additional_includedir
=
7518 case "$found_dir" in
7520 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7521 additional_includedir
="$basedir/include"
7524 if test "X$additional_includedir" != "X"; then
7525 if test "X$additional_includedir" != "X/usr/include"; then
7527 if test "X$additional_includedir" = "X/usr/local/include"; then
7528 if test -n "$GCC"; then
7530 linux
*) haveit
=yes;;
7534 if test -z "$haveit"; then
7535 for x
in $CPPFLAGS $INCICONV; do
7537 acl_save_prefix
="$prefix"
7538 prefix
="$acl_final_prefix"
7539 acl_save_exec_prefix
="$exec_prefix"
7540 exec_prefix
="$acl_final_exec_prefix"
7542 exec_prefix
="$acl_save_exec_prefix"
7543 prefix
="$acl_save_prefix"
7545 if test "X$x" = "X-I$additional_includedir"; then
7550 if test -z "$haveit"; then
7551 if test -d "$additional_includedir"; then
7552 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7558 if test -n "$found_la"; then
7559 save_libdir
="$libdir"
7561 */* |
*\\*) .
"$found_la" ;;
7562 *) .
"./$found_la" ;;
7564 libdir
="$save_libdir"
7565 for dep
in $dependency_libs; do
7568 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7569 if test "X$additional_libdir" != "X/usr/lib"; then
7571 if test "X$additional_libdir" = "X/usr/local/lib"; then
7572 if test -n "$GCC"; then
7574 linux
*) haveit
=yes;;
7578 if test -z "$haveit"; then
7580 for x
in $LDFLAGS $LIBICONV; do
7582 acl_save_prefix
="$prefix"
7583 prefix
="$acl_final_prefix"
7584 acl_save_exec_prefix
="$exec_prefix"
7585 exec_prefix
="$acl_final_exec_prefix"
7587 exec_prefix
="$acl_save_exec_prefix"
7588 prefix
="$acl_save_prefix"
7590 if test "X$x" = "X-L$additional_libdir"; then
7595 if test -z "$haveit"; then
7596 if test -d "$additional_libdir"; then
7597 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7601 for x
in $LDFLAGS $LTLIBICONV; do
7603 acl_save_prefix
="$prefix"
7604 prefix
="$acl_final_prefix"
7605 acl_save_exec_prefix
="$exec_prefix"
7606 exec_prefix
="$acl_final_exec_prefix"
7608 exec_prefix
="$acl_save_exec_prefix"
7609 prefix
="$acl_save_prefix"
7611 if test "X$x" = "X-L$additional_libdir"; then
7616 if test -z "$haveit"; then
7617 if test -d "$additional_libdir"; then
7618 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7625 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7626 if test "$enable_rpath" != no
; then
7628 for x
in $rpathdirs; do
7629 if test "X$x" = "X$dir"; then
7634 if test -z "$haveit"; then
7635 rpathdirs
="$rpathdirs $dir"
7638 for x
in $ltrpathdirs; do
7639 if test "X$x" = "X$dir"; then
7644 if test -z "$haveit"; then
7645 ltrpathdirs
="$ltrpathdirs $dir"
7650 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7653 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7656 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
7657 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7663 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7664 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7670 if test "X$rpathdirs" != "X"; then
7671 if test -n "$hardcode_libdir_separator"; then
7673 for found_dir
in $rpathdirs; do
7674 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7676 acl_save_libdir
="$libdir"
7678 eval flag
=\"$hardcode_libdir_flag_spec\"
7679 libdir
="$acl_save_libdir"
7680 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7682 for found_dir
in $rpathdirs; do
7683 acl_save_libdir
="$libdir"
7685 eval flag
=\"$hardcode_libdir_flag_spec\"
7686 libdir
="$acl_save_libdir"
7687 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7691 if test "X$ltrpathdirs" != "X"; then
7692 for found_dir
in $ltrpathdirs; do
7693 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7704 $as_echo_n "checking for iconv... " >&6; }
7705 if test "${am_cv_func_iconv+set}" = set; then :
7706 $as_echo_n "(cached) " >&6
7709 am_cv_func_iconv
="no, consider installing GNU libiconv"
7711 am_save_CPPFLAGS
="$CPPFLAGS"
7712 CPPFLAGS
="$CPPFLAGS $INCICONV"
7713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7720 iconv_t cd = iconv_open("","");
7721 iconv(cd,NULL,NULL,NULL,NULL);
7727 if ac_fn_c_try_link
"$LINENO"; then :
7728 am_cv_func_iconv
=yes
7730 rm -f core conftest.err conftest.
$ac_objext \
7731 conftest
$ac_exeext conftest.
$ac_ext
7732 CPPFLAGS
="$am_save_CPPFLAGS"
7734 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
7735 for _libs
in .libs _libs
; do
7736 am_save_CPPFLAGS
="$CPPFLAGS"
7737 am_save_LIBS
="$LIBS"
7738 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
7739 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7741 /* end confdefs.h. */
7747 iconv_t cd = iconv_open("","");
7748 iconv(cd,NULL,NULL,NULL,NULL);
7754 if ac_fn_c_try_link
"$LINENO"; then :
7755 INCICONV
="-I../libiconv/include"
7756 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
7757 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
7759 am_cv_func_iconv
=yes
7761 rm -f core conftest.err conftest.
$ac_objext \
7762 conftest
$ac_exeext conftest.
$ac_ext
7763 CPPFLAGS
="$am_save_CPPFLAGS"
7764 LIBS
="$am_save_LIBS"
7765 if test "$am_cv_func_iconv" = "yes"; then
7771 if test "$am_cv_func_iconv" != yes; then
7772 am_save_CPPFLAGS
="$CPPFLAGS"
7773 am_save_LIBS
="$LIBS"
7774 CPPFLAGS
="$LIBS $INCICONV"
7775 LIBS
="$LIBS $LIBICONV"
7776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7783 iconv_t cd = iconv_open("","");
7784 iconv(cd,NULL,NULL,NULL,NULL);
7790 if ac_fn_c_try_link
"$LINENO"; then :
7792 am_cv_func_iconv
=yes
7794 rm -f core conftest.err conftest.
$ac_objext \
7795 conftest
$ac_exeext conftest.
$ac_ext
7796 CPPFLAGS
="$am_save_CPPFLAGS"
7797 LIBS
="$am_save_LIBS"
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7802 $as_echo "$am_cv_func_iconv" >&6; }
7803 if test "$am_cv_func_iconv" = yes; then
7805 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7808 if test "$am_cv_lib_iconv" = yes; then
7810 for element
in $INCICONV; do
7812 for x
in $CPPFLAGS; do
7814 acl_save_prefix
="$prefix"
7815 prefix
="$acl_final_prefix"
7816 acl_save_exec_prefix
="$exec_prefix"
7817 exec_prefix
="$acl_final_exec_prefix"
7819 exec_prefix
="$acl_save_exec_prefix"
7820 prefix
="$acl_save_prefix"
7822 if test "X$x" = "X$element"; then
7827 if test -z "$haveit"; then
7828 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7833 $as_echo_n "checking how to link with libiconv... " >&6; }
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7835 $as_echo "$LIBICONV" >&6; }
7843 if test "$am_cv_func_iconv" = yes; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7845 $as_echo_n "checking for iconv declaration... " >&6; }
7846 if test "${am_cv_proto_iconv+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7859 #if defined(__STDC__) || defined(__cplusplus)
7860 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7873 if ac_fn_c_try_compile
"$LINENO"; then :
7874 am_cv_proto_iconv_arg1
=""
7876 am_cv_proto_iconv_arg1
="const"
7878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7879 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);"
7882 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7884 }$am_cv_proto_iconv" >&5
7886 }$am_cv_proto_iconv" >&6; }
7888 cat >>confdefs.h
<<_ACEOF
7889 #define ICONV_CONST $am_cv_proto_iconv_arg1
7895 # GDB may fork/exec the iconv program to get the list of supported character
7896 # sets. Allow the user to specify where to find it.
7897 # There are several factors affecting the choice of option name:
7898 # - There is already --with-libiconv-prefix but we can't use it, it specifies
7899 # the build-time location of libiconv files.
7900 # - The program we need to find is iconv, which comes with glibc. The user
7901 # doesn't necessarily have libiconv installed. Therefore naming this
7902 # --with-libiconv-foo feels wrong.
7903 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
7904 # defined to work on directories not files (though it really doesn't know
7906 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
7907 # with --with-libiconv-prefix.
7908 # Putting these together is why the option name is --with-iconv-bin.
7911 # Check whether --with-iconv-bin was given.
7912 if test "${with_iconv_bin+set}" = set; then :
7913 withval
=$with_iconv_bin; iconv_bin
="${withval}"
7915 cat >>confdefs.h
<<_ACEOF
7916 #define ICONV_BIN "${iconv_bin}"
7920 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7921 if test "x$prefix" = xNONE
; then
7922 test_prefix
=/usr
/local
7927 test_prefix
=$exec_prefix
7930 case ${iconv_bin} in
7931 "${test_prefix}"|
"${test_prefix}/"*|\
7932 '${exec_prefix}'|
'${exec_prefix}/'*)
7937 cat >>confdefs.h
<<_ACEOF
7938 #define ICONV_BIN_RELOCATABLE $value
7946 # For the TUI, we need enhanced curses functionality.
7947 if test x
"$enable_tui" != xno
; then
7952 if test x
"$prefer_curses" = xyes
; then
7953 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7954 # curses library because the latter might not provide all the
7955 # functionality we need. However, this leads to problems on systems
7956 # where the linker searches /usr/local/lib, but the compiler doesn't
7957 # search /usr/local/include, if ncurses is installed in /usr/local. A
7958 # default installation of ncurses on alpha*-dec-osf* will lead to such
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7961 $as_echo_n "checking for library containing waddstr... " >&6; }
7962 if test "${ac_cv_search_waddstr+set}" = set; then :
7963 $as_echo_n "(cached) " >&6
7965 ac_func_search_save_LIBS
=$LIBS
7966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7969 /* Override any GCC internal prototype to avoid an error.
7970 Use char because int might match the return type of a GCC
7971 builtin and then its argument prototype would still apply. */
7984 for ac_lib
in '' ncurses cursesX curses
; do
7985 if test -z "$ac_lib"; then
7986 ac_res
="none required"
7989 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7991 if ac_fn_c_try_link
"$LINENO"; then :
7992 ac_cv_search_waddstr
=$ac_res
7994 rm -f core conftest.err conftest.
$ac_objext \
7996 if test "${ac_cv_search_waddstr+set}" = set; then :
8000 if test "${ac_cv_search_waddstr+set}" = set; then :
8003 ac_cv_search_waddstr
=no
8006 LIBS
=$ac_func_search_save_LIBS
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8009 $as_echo "$ac_cv_search_waddstr" >&6; }
8010 ac_res
=$ac_cv_search_waddstr
8011 if test "$ac_res" != no
; then :
8012 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8017 if test "$ac_cv_search_waddstr" != no
; then
8022 # Check whether we should enable the TUI, but only do so if we really
8024 if test x
"$enable_tui" != xno
; then
8025 if test -d $srcdir/tui
; then
8026 if test "$curses_found" != no
; then
8027 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8028 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8029 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8030 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8032 if test x
"$enable_tui" = xyes
; then
8033 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8036 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8042 # Since GDB uses Readline, we need termcap functionality. In many
8043 # cases this will be provided by the curses library, but some systems
8044 # have a seperate termcap library, or no curses library at all.
8048 if test -d $srcdir/libtermcap
; then
8049 LIBS
="../libtermcap/libtermcap.a $LIBS"
8050 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8053 ac_cv_search_tgetent
="none required"
8057 # These are the libraries checked by Readline.
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8059 $as_echo_n "checking for library containing tgetent... " >&6; }
8060 if test "${ac_cv_search_tgetent+set}" = set; then :
8061 $as_echo_n "(cached) " >&6
8063 ac_func_search_save_LIBS
=$LIBS
8064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8067 /* Override any GCC internal prototype to avoid an error.
8068 Use char because int might match the return type of a GCC
8069 builtin and then its argument prototype would still apply. */
8082 for ac_lib
in '' termcap tinfo curses ncurses
; do
8083 if test -z "$ac_lib"; then
8084 ac_res
="none required"
8087 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8089 if ac_fn_c_try_link
"$LINENO"; then :
8090 ac_cv_search_tgetent
=$ac_res
8092 rm -f core conftest.err conftest.
$ac_objext \
8094 if test "${ac_cv_search_tgetent+set}" = set; then :
8098 if test "${ac_cv_search_tgetent+set}" = set; then :
8101 ac_cv_search_tgetent
=no
8104 LIBS
=$ac_func_search_save_LIBS
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8107 $as_echo "$ac_cv_search_tgetent" >&6; }
8108 ac_res
=$ac_cv_search_tgetent
8109 if test "$ac_res" != no
; then :
8110 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8115 if test "$ac_cv_search_tgetent" = no
; then
8116 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
8120 # Check whether --with-system-readline was given.
8121 if test "${with_system_readline+set}" = set; then :
8122 withval
=$with_system_readline;
8126 if test "$with_system_readline" = yes; then
8130 READLINE_TEXI_INCFLAG
=
8132 READLINE
='$(READLINE_DIR)/libreadline.a'
8133 READLINE_DEPS
='$(READLINE)'
8134 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
8135 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
8142 # Generate jit-reader.h
8144 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
8147 # The cast to long int works around a bug in the HP C Compiler
8148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8150 # This bug is HP SR number 8606223364.
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
8152 $as_echo_n "checking size of unsigned long long... " >&6; }
8153 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
8154 $as_echo_n "(cached) " >&6
8156 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
8159 if test "$ac_cv_type_unsigned_long_long" = yes; then
8160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8162 { as_fn_set_status
77
8163 as_fn_error
"cannot compute sizeof (unsigned long long)
8164 See \`config.log' for more details." "$LINENO" 5; }; }
8166 ac_cv_sizeof_unsigned_long_long
=0
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
8172 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
8176 cat >>confdefs.h
<<_ACEOF
8177 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8181 # The cast to long int works around a bug in the HP C Compiler
8182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8184 # This bug is HP SR number 8606223364.
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
8186 $as_echo_n "checking size of unsigned long... " >&6; }
8187 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
8188 $as_echo_n "(cached) " >&6
8190 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
8193 if test "$ac_cv_type_unsigned_long" = yes; then
8194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8196 { as_fn_set_status
77
8197 as_fn_error
"cannot compute sizeof (unsigned long)
8198 See \`config.log' for more details." "$LINENO" 5; }; }
8200 ac_cv_sizeof_unsigned_long
=0
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
8206 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8210 cat >>confdefs.h
<<_ACEOF
8211 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8215 # The cast to long int works around a bug in the HP C Compiler
8216 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8217 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8218 # This bug is HP SR number 8606223364.
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
8220 $as_echo_n "checking size of unsigned __int128... " >&6; }
8221 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
8222 $as_echo_n "(cached) " >&6
8224 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
8227 if test "$ac_cv_type_unsigned___int128" = yes; then
8228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8230 { as_fn_set_status
77
8231 as_fn_error
"cannot compute sizeof (unsigned __int128)
8232 See \`config.log' for more details." "$LINENO" 5; }; }
8234 ac_cv_sizeof_unsigned___int128
=0
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
8240 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
8244 cat >>confdefs.h
<<_ACEOF
8245 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
8250 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
8251 TARGET_PTR
="unsigned long"
8252 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
8253 TARGET_PTR
="unsigned long long"
8254 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
8255 TARGET_PTR
="unsigned __int128"
8257 TARGET_PTR
="unsigned long"
8261 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8265 $as_echo_n "checking for library containing dlopen... " >&6; }
8266 if test "${ac_cv_search_dlopen+set}" = set; then :
8267 $as_echo_n "(cached) " >&6
8269 ac_func_search_save_LIBS
=$LIBS
8270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8273 /* Override any GCC internal prototype to avoid an error.
8274 Use char because int might match the return type of a GCC
8275 builtin and then its argument prototype would still apply. */
8288 for ac_lib
in '' dl
; do
8289 if test -z "$ac_lib"; then
8290 ac_res
="none required"
8293 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8295 if ac_fn_c_try_link
"$LINENO"; then :
8296 ac_cv_search_dlopen
=$ac_res
8298 rm -f core conftest.err conftest.
$ac_objext \
8300 if test "${ac_cv_search_dlopen+set}" = set; then :
8304 if test "${ac_cv_search_dlopen+set}" = set; then :
8307 ac_cv_search_dlopen
=no
8310 LIBS
=$ac_func_search_save_LIBS
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8313 $as_echo "$ac_cv_search_dlopen" >&6; }
8314 ac_res
=$ac_cv_search_dlopen
8315 if test "$ac_res" != no
; then :
8316 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8323 # Check whether --with-jit-reader-dir was given.
8324 if test "${with_jit_reader_dir+set}" = set; then :
8325 withval
=$with_jit_reader_dir;
8326 JIT_READER_DIR
=$withval
8328 JIT_READER_DIR
=${libdir}/gdb
8332 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
8333 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8334 ac_define_dir
=`eval echo $JIT_READER_DIR`
8335 ac_define_dir
=`eval echo $ac_define_dir`
8337 cat >>confdefs.h
<<_ACEOF
8338 #define JIT_READER_DIR "$ac_define_dir"
8344 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8345 if test "x$prefix" = xNONE
; then
8346 test_prefix
=/usr
/local
8351 test_prefix
=$exec_prefix
8354 case ${ac_define_dir} in
8355 "${test_prefix}"|
"${test_prefix}/"*|\
8356 '${exec_prefix}'|
'${exec_prefix}/'*)
8361 cat >>confdefs.h
<<_ACEOF
8362 #define JIT_READER_DIR_RELOCATABLE $value
8369 # Check whether --with-expat was given.
8370 if test "${with_expat+set}" = set; then :
8371 withval
=$with_expat;
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
8377 $as_echo_n "checking whether to use expat... " >&6; }
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
8379 $as_echo "$with_expat" >&6; }
8381 if test "${with_expat}" = no
; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
8383 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
8396 acl_save_prefix
="$prefix"
8397 prefix
="$acl_final_prefix"
8398 acl_save_exec_prefix
="$exec_prefix"
8399 exec_prefix
="$acl_final_exec_prefix"
8401 eval additional_includedir
=\"$includedir\"
8402 eval additional_libdir
=\"$libdir\"
8404 exec_prefix
="$acl_save_exec_prefix"
8405 prefix
="$acl_save_prefix"
8408 # Check whether --with-libexpat-prefix was given.
8409 if test "${with_libexpat_prefix+set}" = set; then :
8410 withval
=$with_libexpat_prefix;
8411 if test "X$withval" = "Xno"; then
8414 if test "X$withval" = "X"; then
8416 acl_save_prefix
="$prefix"
8417 prefix
="$acl_final_prefix"
8418 acl_save_exec_prefix
="$exec_prefix"
8419 exec_prefix
="$acl_final_exec_prefix"
8421 eval additional_includedir
=\"$includedir\"
8422 eval additional_libdir
=\"$libdir\"
8424 exec_prefix
="$acl_save_exec_prefix"
8425 prefix
="$acl_save_prefix"
8428 additional_includedir
="$withval/include"
8429 additional_libdir
="$withval/lib"
8440 names_already_handled
=
8441 names_next_round
='expat '
8442 while test -n "$names_next_round"; do
8443 names_this_round
="$names_next_round"
8445 for name
in $names_this_round; do
8447 for n
in $names_already_handled; do
8448 if test "$n" = "$name"; then
8453 if test -z "$already_handled"; then
8454 names_already_handled
="$names_already_handled $name"
8455 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8456 eval value
=\"\
$HAVE_LIB$uppername\"
8457 if test -n "$value"; then
8458 if test "$value" = yes; then
8459 eval value
=\"\
$LIB$uppername\"
8460 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
8461 eval value
=\"\
$LTLIB$uppername\"
8462 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8471 if test $use_additional = yes; then
8472 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8473 found_dir
="$additional_libdir"
8474 found_so
="$additional_libdir/lib$name.$shlibext"
8475 if test -f "$additional_libdir/lib$name.la"; then
8476 found_la
="$additional_libdir/lib$name.la"
8479 if test -f "$additional_libdir/lib$name.$libext"; then
8480 found_dir
="$additional_libdir"
8481 found_a
="$additional_libdir/lib$name.$libext"
8482 if test -f "$additional_libdir/lib$name.la"; then
8483 found_la
="$additional_libdir/lib$name.la"
8488 if test "X$found_dir" = "X"; then
8489 for x
in $LDFLAGS $LTLIBEXPAT; do
8491 acl_save_prefix
="$prefix"
8492 prefix
="$acl_final_prefix"
8493 acl_save_exec_prefix
="$exec_prefix"
8494 exec_prefix
="$acl_final_exec_prefix"
8496 exec_prefix
="$acl_save_exec_prefix"
8497 prefix
="$acl_save_prefix"
8501 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8502 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8504 found_so
="$dir/lib$name.$shlibext"
8505 if test -f "$dir/lib$name.la"; then
8506 found_la
="$dir/lib$name.la"
8509 if test -f "$dir/lib$name.$libext"; then
8511 found_a
="$dir/lib$name.$libext"
8512 if test -f "$dir/lib$name.la"; then
8513 found_la
="$dir/lib$name.la"
8519 if test "X$found_dir" != "X"; then
8524 if test "X$found_dir" != "X"; then
8525 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8526 if test "X$found_so" != "X"; then
8527 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8528 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8531 for x
in $ltrpathdirs; do
8532 if test "X$x" = "X$found_dir"; then
8537 if test -z "$haveit"; then
8538 ltrpathdirs
="$ltrpathdirs $found_dir"
8540 if test "$hardcode_direct" = yes; then
8541 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8543 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8544 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8546 for x
in $rpathdirs; do
8547 if test "X$x" = "X$found_dir"; then
8552 if test -z "$haveit"; then
8553 rpathdirs
="$rpathdirs $found_dir"
8557 for x
in $LDFLAGS $LIBEXPAT; do
8559 acl_save_prefix
="$prefix"
8560 prefix
="$acl_final_prefix"
8561 acl_save_exec_prefix
="$exec_prefix"
8562 exec_prefix
="$acl_final_exec_prefix"
8564 exec_prefix
="$acl_save_exec_prefix"
8565 prefix
="$acl_save_prefix"
8567 if test "X$x" = "X-L$found_dir"; then
8572 if test -z "$haveit"; then
8573 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8575 if test "$hardcode_minus_L" != no
; then
8576 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8578 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8584 if test "X$found_a" != "X"; then
8585 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8587 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8590 additional_includedir
=
8591 case "$found_dir" in
8593 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8594 additional_includedir
="$basedir/include"
8597 if test "X$additional_includedir" != "X"; then
8598 if test "X$additional_includedir" != "X/usr/include"; then
8600 if test "X$additional_includedir" = "X/usr/local/include"; then
8601 if test -n "$GCC"; then
8603 linux
*) haveit
=yes;;
8607 if test -z "$haveit"; then
8608 for x
in $CPPFLAGS $INCEXPAT; do
8610 acl_save_prefix
="$prefix"
8611 prefix
="$acl_final_prefix"
8612 acl_save_exec_prefix
="$exec_prefix"
8613 exec_prefix
="$acl_final_exec_prefix"
8615 exec_prefix
="$acl_save_exec_prefix"
8616 prefix
="$acl_save_prefix"
8618 if test "X$x" = "X-I$additional_includedir"; then
8623 if test -z "$haveit"; then
8624 if test -d "$additional_includedir"; then
8625 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8631 if test -n "$found_la"; then
8632 save_libdir
="$libdir"
8634 */* |
*\\*) .
"$found_la" ;;
8635 *) .
"./$found_la" ;;
8637 libdir
="$save_libdir"
8638 for dep
in $dependency_libs; do
8641 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8642 if test "X$additional_libdir" != "X/usr/lib"; then
8644 if test "X$additional_libdir" = "X/usr/local/lib"; then
8645 if test -n "$GCC"; then
8647 linux
*) haveit
=yes;;
8651 if test -z "$haveit"; then
8653 for x
in $LDFLAGS $LIBEXPAT; do
8655 acl_save_prefix
="$prefix"
8656 prefix
="$acl_final_prefix"
8657 acl_save_exec_prefix
="$exec_prefix"
8658 exec_prefix
="$acl_final_exec_prefix"
8660 exec_prefix
="$acl_save_exec_prefix"
8661 prefix
="$acl_save_prefix"
8663 if test "X$x" = "X-L$additional_libdir"; then
8668 if test -z "$haveit"; then
8669 if test -d "$additional_libdir"; then
8670 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8674 for x
in $LDFLAGS $LTLIBEXPAT; do
8676 acl_save_prefix
="$prefix"
8677 prefix
="$acl_final_prefix"
8678 acl_save_exec_prefix
="$exec_prefix"
8679 exec_prefix
="$acl_final_exec_prefix"
8681 exec_prefix
="$acl_save_exec_prefix"
8682 prefix
="$acl_save_prefix"
8684 if test "X$x" = "X-L$additional_libdir"; then
8689 if test -z "$haveit"; then
8690 if test -d "$additional_libdir"; then
8691 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8698 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8699 if test "$enable_rpath" != no
; then
8701 for x
in $rpathdirs; do
8702 if test "X$x" = "X$dir"; then
8707 if test -z "$haveit"; then
8708 rpathdirs
="$rpathdirs $dir"
8711 for x
in $ltrpathdirs; do
8712 if test "X$x" = "X$dir"; then
8717 if test -z "$haveit"; then
8718 ltrpathdirs
="$ltrpathdirs $dir"
8723 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8726 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8729 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8730 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8736 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8737 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8743 if test "X$rpathdirs" != "X"; then
8744 if test -n "$hardcode_libdir_separator"; then
8746 for found_dir
in $rpathdirs; do
8747 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8749 acl_save_libdir
="$libdir"
8751 eval flag
=\"$hardcode_libdir_flag_spec\"
8752 libdir
="$acl_save_libdir"
8753 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8755 for found_dir
in $rpathdirs; do
8756 acl_save_libdir
="$libdir"
8758 eval flag
=\"$hardcode_libdir_flag_spec\"
8759 libdir
="$acl_save_libdir"
8760 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8764 if test "X$ltrpathdirs" != "X"; then
8765 for found_dir
in $ltrpathdirs; do
8766 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
8771 ac_save_CPPFLAGS
="$CPPFLAGS"
8773 for element
in $INCEXPAT; do
8775 for x
in $CPPFLAGS; do
8777 acl_save_prefix
="$prefix"
8778 prefix
="$acl_final_prefix"
8779 acl_save_exec_prefix
="$exec_prefix"
8780 exec_prefix
="$acl_final_exec_prefix"
8782 exec_prefix
="$acl_save_exec_prefix"
8783 prefix
="$acl_save_prefix"
8785 if test "X$x" = "X$element"; then
8790 if test -z "$haveit"; then
8791 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8797 $as_echo_n "checking for libexpat... " >&6; }
8798 if test "${ac_cv_libexpat+set}" = set; then :
8799 $as_echo_n "(cached) " >&6
8802 ac_save_LIBS
="$LIBS"
8803 LIBS
="$LIBS $LIBEXPAT"
8804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8810 XML_Parser p = XML_ParserCreate (0);
8815 if ac_fn_c_try_link
"$LINENO"; then :
8820 rm -f core conftest.err conftest.
$ac_objext \
8821 conftest
$ac_exeext conftest.
$ac_ext
8822 LIBS
="$ac_save_LIBS"
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8826 $as_echo "$ac_cv_libexpat" >&6; }
8827 if test "$ac_cv_libexpat" = yes; then
8830 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8833 $as_echo_n "checking how to link with libexpat... " >&6; }
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8835 $as_echo "$LIBEXPAT" >&6; }
8838 CPPFLAGS
="$ac_save_CPPFLAGS"
8848 if test "$HAVE_LIBEXPAT" != yes; then
8849 if test "$with_expat" = yes; then
8850 as_fn_error
"expat is missing or unusable" "$LINENO" 5
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8853 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8857 LIBS
="$LIBS $LIBEXPAT"
8858 for ac_func
in XML_StopParser
8860 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8861 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
8862 cat >>confdefs.h
<<_ACEOF
8863 #define HAVE_XML_STOPPARSER 1
8873 # --------------------- #
8874 # Check for libpython. #
8875 # --------------------- #
8882 # Check whether --with-python was given.
8883 if test "${with_python+set}" = set; then :
8884 withval
=$with_python;
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8890 $as_echo_n "checking whether to use python... " >&6; }
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8892 $as_echo "$with_python" >&6; }
8894 if test "${with_python}" = no
; then
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8896 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8899 case "${with_python}" in
8901 if test -d ${with_python}; then
8902 # Assume the python binary is ${with_python}/bin/python.
8903 python_prog
="${with_python}/bin/python"
8905 # If python does not exit ${with_python}/bin, then try in
8906 # ${with_python}. On Windows/MinGW, this is where the Python
8908 if test ! -x "${python_prog}"; then
8909 python_prog
="${with_python}/python"
8912 if test ! -x "${python_prog}"; then
8913 # Fall back to gdb 7.0/7.1 behaviour.
8915 python_prefix
=${with_python}
8917 elif test -x "${with_python}"; then
8918 # While we can't run python compiled for $host (unless host == build),
8919 # the user could write a script that provides the needed information,
8920 # so we support that.
8921 python_prog
=${with_python}
8924 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8928 # Disallow --with-python=foo/bar.
8929 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8932 # The user has either specified auto, yes, or the name of the python
8933 # program assumed to be in $PATH.
8935 case "${with_python}" in
8937 if test ${build} = ${host}; then
8938 # Extract the first word of "python", so it can be a program name with args.
8939 set dummy python
; ac_word
=$2
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8943 $as_echo_n "(cached) " >&6
8945 case $python_prog_path in
8947 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8954 test -z "$as_dir" && as_dir
=.
8955 for ac_exec_ext
in '' $ac_executable_extensions; do
8956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8957 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8965 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8969 python_prog_path
=$ac_cv_path_python_prog_path
8970 if test -n "$python_prog_path"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8972 $as_echo "$python_prog_path" >&6; }
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975 $as_echo "no" >&6; }
8979 if test "${python_prog_path}" = missing
; then
8982 python_prog
=${python_prog_path}
8985 # Not much we can do except assume the cross-compiler will find the
8991 # While we can't run python compiled for $host (unless host == build),
8992 # the user could write a script that provides the needed information,
8993 # so we support that.
8994 python_prog
="${with_python}"
8995 # Extract the first word of "${python_prog}", so it can be a program name with args.
8996 set dummy
${python_prog}; ac_word
=$2
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8998 $as_echo_n "checking for $ac_word... " >&6; }
8999 if test "${ac_cv_path_python_prog_path+set}" = set; then :
9000 $as_echo_n "(cached) " >&6
9002 case $python_prog_path in
9004 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
9007 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9011 test -z "$as_dir" && as_dir
=.
9012 for ac_exec_ext
in '' $ac_executable_extensions; do
9013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9014 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
9015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9022 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
9026 python_prog_path
=$ac_cv_path_python_prog_path
9027 if test -n "$python_prog_path"; then
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
9029 $as_echo "$python_prog_path" >&6; }
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032 $as_echo "no" >&6; }
9036 if test "${python_prog_path}" = missing
; then
9037 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
9043 if test "${python_prog}" != missing
; then
9044 # We have a python program to use, but it may be too old.
9045 # Don't flag an error for --with-python=auto (the default).
9046 have_python_config
=yes
9047 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
9048 if test $?
!= 0; then
9049 have_python_config
=failed
9050 if test "${with_python}" != auto
; then
9051 as_fn_error
"failure running python-config --includes" "$LINENO" 5
9054 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
9055 if test $?
!= 0; then
9056 have_python_config
=failed
9057 if test "${with_python}" != auto
; then
9058 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
9061 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
9062 if test $?
!= 0; then
9063 have_python_config
=failed
9064 if test "${with_python}" != auto
; then
9065 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
9069 # We do not have a python executable we can use to determine where
9070 # to find the Python headers and libs. We cannot guess the include
9071 # path from the python_prefix either, because that include path
9072 # depends on the Python version. So, there is nothing much we can
9073 # do except assume that the compiler will be able to find those files.
9076 have_python_config
=no
9079 # If we have python-config, only try the configuration it provides.
9080 # Otherwise fallback on the old way of trying different versions of
9084 if test "${have_python_config}" = yes; then
9085 # Determine the Python version by extracting "-lpython<version>"
9086 # part of the python_libs. <version> is usually X.Y with X and Y
9087 # being decimal numbers, but can also be XY (seen on Windows).
9089 # The extraction is performed using sed with a regular expression.
9090 # Initially, the regexp used was using the '?' quantifier to make
9091 # the dot in the version number optional. Unfortunately, this
9092 # does not work with non-GNU versions of sed because, because of
9093 # what looks like a limitation (the '?' quantifier does not work
9094 # with back-references). We work around this limitation by using
9095 # the '*' quantifier instead. It means that, in theory, we might
9096 # match unexpected version strings such as "-lpython2..7", but
9097 # this seems unlikely in practice. And even if that happens,
9098 # an error will be triggered later on, when checking that version
9100 python_version
=`echo " ${python_libs} " \
9101 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
9102 case "${python_version}" in
9105 version
=${python_version}
9107 new_CPPFLAGS
=${python_includes}
9108 new_LIBS
=${python_libs}
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9110 $as_echo_n "checking for ${version}... " >&6; }
9111 save_CPPFLAGS
=$CPPFLAGS
9113 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9114 LIBS
="$LIBS $new_LIBS"
9115 found_usable_python
=no
9116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9127 if ac_fn_c_try_link
"$LINENO"; then :
9128 have_libpython
=${version}
9129 found_usable_python
=yes
9130 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9131 PYTHON_LIBS
=$new_LIBS
9133 rm -f core conftest.err conftest.
$ac_objext \
9134 conftest
$ac_exeext conftest.
$ac_ext
9135 CPPFLAGS
=$save_CPPFLAGS
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9138 $as_echo "${found_usable_python}" >&6; }
9142 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
9145 elif test "${have_python_config}" != failed
; then
9146 if test "${have_libpython}" = no
; then
9150 new_CPPFLAGS
=${python_includes}
9151 new_LIBS
="${python_libs} -lpython2.7"
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9153 $as_echo_n "checking for ${version}... " >&6; }
9154 save_CPPFLAGS
=$CPPFLAGS
9156 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9157 LIBS
="$LIBS $new_LIBS"
9158 found_usable_python
=no
9159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9170 if ac_fn_c_try_link
"$LINENO"; then :
9171 have_libpython
=${version}
9172 found_usable_python
=yes
9173 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9174 PYTHON_LIBS
=$new_LIBS
9176 rm -f core conftest.err conftest.
$ac_objext \
9177 conftest
$ac_exeext conftest.
$ac_ext
9178 CPPFLAGS
=$save_CPPFLAGS
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9181 $as_echo "${found_usable_python}" >&6; }
9184 if test "${have_libpython}" = no
; then
9188 new_CPPFLAGS
=${python_includes}
9189 new_LIBS
="${python_libs} -lpython2.6"
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9191 $as_echo_n "checking for ${version}... " >&6; }
9192 save_CPPFLAGS
=$CPPFLAGS
9194 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9195 LIBS
="$LIBS $new_LIBS"
9196 found_usable_python
=no
9197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h. */
9208 if ac_fn_c_try_link
"$LINENO"; then :
9209 have_libpython
=${version}
9210 found_usable_python
=yes
9211 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9212 PYTHON_LIBS
=$new_LIBS
9214 rm -f core conftest.err conftest.
$ac_objext \
9215 conftest
$ac_exeext conftest.
$ac_ext
9216 CPPFLAGS
=$save_CPPFLAGS
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9219 $as_echo "${found_usable_python}" >&6; }
9222 if test ${have_libpython} = no
; then
9226 new_CPPFLAGS
=${python_includes}
9227 new_LIBS
="${python_libs} -lpython2.5"
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9229 $as_echo_n "checking for ${version}... " >&6; }
9230 save_CPPFLAGS
=$CPPFLAGS
9232 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9233 LIBS
="$LIBS $new_LIBS"
9234 found_usable_python
=no
9235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9246 if ac_fn_c_try_link
"$LINENO"; then :
9247 have_libpython
=${version}
9248 found_usable_python
=yes
9249 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9250 PYTHON_LIBS
=$new_LIBS
9252 rm -f core conftest.err conftest.
$ac_objext \
9253 conftest
$ac_exeext conftest.
$ac_ext
9254 CPPFLAGS
=$save_CPPFLAGS
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9257 $as_echo "${found_usable_python}" >&6; }
9260 if test ${have_libpython} = no
; then
9264 new_CPPFLAGS
=${python_includes}
9265 new_LIBS
="${python_libs} -lpython2.4"
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9267 $as_echo_n "checking for ${version}... " >&6; }
9268 save_CPPFLAGS
=$CPPFLAGS
9270 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9271 LIBS
="$LIBS $new_LIBS"
9272 found_usable_python
=no
9273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9284 if ac_fn_c_try_link
"$LINENO"; then :
9285 have_libpython
=${version}
9286 found_usable_python
=yes
9287 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9288 PYTHON_LIBS
=$new_LIBS
9290 rm -f core conftest.err conftest.
$ac_objext \
9291 conftest
$ac_exeext conftest.
$ac_ext
9292 CPPFLAGS
=$save_CPPFLAGS
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9295 $as_echo "${found_usable_python}" >&6; }
9299 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
9301 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
9303 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
9305 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
9307 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
9309 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
9311 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
9313 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
9317 if test "${have_libpython}" = no
; then
9318 case "${with_python}" in
9320 as_fn_error
"python is missing or unusable" "$LINENO" 5
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
9324 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
9327 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
9331 if test -n "${python_prefix}"; then
9333 cat >>confdefs.h
<<_ACEOF
9334 #define WITH_PYTHON_PATH "${python_prefix}"
9338 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9339 if test "x$prefix" = xNONE
; then
9340 test_prefix
=/usr
/local
9345 test_prefix
=$exec_prefix
9348 case ${python_prefix} in
9349 "${test_prefix}"|
"${test_prefix}/"*|\
9350 '${exec_prefix}'|
'${exec_prefix}/'*)
9355 cat >>confdefs.h
<<_ACEOF
9356 #define PYTHON_PATH_RELOCATABLE $value
9364 if test "${have_libpython}" != no
; then
9366 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
9368 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
9369 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
9370 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9371 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
9372 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9374 # Flags needed to compile Python code (taken from python-config --cflags).
9375 # We cannot call python-config directly because it will output whatever was
9376 # used when compiling the Python interpreter itself, including flags which
9377 # would make the python-related objects be compiled differently from the
9378 # rest of GDB (e.g., -O2 and -fPIC).
9379 if test "${GCC}" = yes; then
9380 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
9383 if test "x${tentative_python_cflags}" != x
; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9385 $as_echo_n "checking compiler flags for python code... " >&6; }
9386 for flag
in ${tentative_python_cflags}; do
9387 # Check that the compiler accepts it
9388 saved_CFLAGS
="$CFLAGS"
9389 CFLAGS
="$CFLAGS $flag"
9390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h. */
9401 if ac_fn_c_try_compile
"$LINENO"; then :
9402 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
9404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9405 CFLAGS
="$saved_CFLAGS"
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9408 $as_echo "${PYTHON_CFLAGS}" >&6; }
9411 # On x64 Windows, Python's include headers, and pyconfig.h in
9412 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
9413 # version of Windows. Unfortunately, MS_WIN64 is only defined if
9414 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
9415 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
9416 # The issue was reported to the Python community, but still isn't
9417 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
9421 if test "${GCC}" = yes; then
9422 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
9427 # Note that "python -m threading" cannot be used to check for
9428 # threading support due to a bug in Python 2.7.3
9429 # (http://bugs.python.org/issue15567).
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
9431 $as_echo_n "checking whether python supports threads... " >&6; }
9432 saved_CPPFLAGS
="${CPPFLAGS}"
9433 CPPFLAGS
="${PYTHON_CPPFLAGS}"
9434 # Note that the test is reversed so that python_has_threads=yes on
9435 # unexpected failures.
9436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9445 if ac_fn_c_try_cpp
"$LINENO"; then :
9446 python_has_threads
=no
9448 python_has_threads
=yes
9450 rm -f conftest.err conftest.
$ac_ext
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
9452 $as_echo "${python_has_threads}" >&6; }
9453 CPPFLAGS
="${saved_CPPFLAGS}"
9455 # Even if Python support is not compiled in, we need to have this file
9456 # included so that the "python" command, et.al., still exists.
9457 CONFIG_OBS
="$CONFIG_OBS python.o"
9458 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
9463 if test "${have_libpython}" != no
; then
9465 HAVE_PYTHON_FALSE
='#'
9467 HAVE_PYTHON_TRUE
='#'
9472 # -------------------- #
9473 # Check for libguile. #
9474 # -------------------- #
9481 # Check whether --with-guile was given.
9482 if test "${with_guile+set}" = set; then :
9483 withval
=$with_guile;
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
9489 $as_echo_n "checking whether to use guile... " >&6; }
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
9491 $as_echo "$with_guile" >&6; }
9493 # Extract the first word of "pkg-config", so it can be a program name with args.
9494 set dummy pkg-config
; ac_word
=$2
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9496 $as_echo_n "checking for $ac_word... " >&6; }
9497 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
9500 case $pkg_config_prog_path in
9502 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
9505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9509 test -z "$as_dir" && as_dir
=.
9510 for ac_exec_ext
in '' $ac_executable_extensions; do
9511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9512 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
9513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9520 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
9524 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
9525 if test -n "$pkg_config_prog_path"; then
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
9527 $as_echo "$pkg_config_prog_path" >&6; }
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530 $as_echo "no" >&6; }
9535 try_guile_versions
="guile-2.2 guile-2.0"
9537 case "${with_guile}" in
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
9540 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
9543 if test "${pkg_config_prog_path}" = "missing"; then
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
9545 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
9548 pkg_config
=${pkg_config_prog_path}
9549 guile_version_list
=${try_guile_versions}
9552 found_usable_guile
=checking
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9554 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9555 for guile_version
in ${guile_version_list}; do
9556 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9557 if test $?
!= 0; then
9560 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9561 if test $?
!= 0; then
9562 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9564 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9565 if test $?
!= 0; then
9566 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9568 found_usable_guile
=${guile_version}
9571 if test "${found_usable_guile}" = "checking"; then
9572 if test "${flag_errors}" = "yes"; then
9573 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9575 found_usable_guile
=no
9578 if test "${found_usable_guile}" != no
; then
9579 save_CPPFLAGS
=$CPPFLAGS
9581 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9582 LIBS
="$LIBS $new_LIBS"
9583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9585 #include "libguile.h"
9594 if ac_fn_c_try_link
"$LINENO"; then :
9596 GUILE_CPPFLAGS
=$new_CPPFLAGS
9597 GUILE_LIBS
=$new_LIBS
9599 found_usable_guile
=no
9601 rm -f core conftest.err conftest.
$ac_objext \
9602 conftest
$ac_exeext conftest.
$ac_ext
9603 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9604 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9606 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9611 CPPFLAGS
=$save_CPPFLAGS
9613 if test "${found_usable_guile}" = no
; then
9614 if test "${flag_errors}" = yes; then
9615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9617 as_fn_error
"linking guile version ${guile_version} test program failed
9618 See \`config.log' for more details." "$LINENO" 5; }
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9623 $as_echo "${found_usable_guile}" >&6; }
9628 if test "${pkg_config_prog_path}" = "missing"; then
9629 as_fn_error
"pkg-config not found" "$LINENO" 5
9632 pkg_config
=${pkg_config_prog_path}
9633 guile_version_list
=${try_guile_versions}
9636 found_usable_guile
=checking
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9638 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9639 for guile_version
in ${guile_version_list}; do
9640 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9641 if test $?
!= 0; then
9644 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9645 if test $?
!= 0; then
9646 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9648 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9649 if test $?
!= 0; then
9650 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9652 found_usable_guile
=${guile_version}
9655 if test "${found_usable_guile}" = "checking"; then
9656 if test "${flag_errors}" = "yes"; then
9657 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9659 found_usable_guile
=no
9662 if test "${found_usable_guile}" != no
; then
9663 save_CPPFLAGS
=$CPPFLAGS
9665 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9666 LIBS
="$LIBS $new_LIBS"
9667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9669 #include "libguile.h"
9678 if ac_fn_c_try_link
"$LINENO"; then :
9680 GUILE_CPPFLAGS
=$new_CPPFLAGS
9681 GUILE_LIBS
=$new_LIBS
9683 found_usable_guile
=no
9685 rm -f core conftest.err conftest.
$ac_objext \
9686 conftest
$ac_exeext conftest.
$ac_ext
9687 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9688 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9690 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9695 CPPFLAGS
=$save_CPPFLAGS
9697 if test "${found_usable_guile}" = no
; then
9698 if test "${flag_errors}" = yes; then
9699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9701 as_fn_error
"linking guile version ${guile_version} test program failed
9702 See \`config.log' for more details." "$LINENO" 5; }
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9707 $as_echo "${found_usable_guile}" >&6; }
9711 if test -x "${with_guile}"; then
9713 pkg_config
=${with_guile}
9714 guile_version_list
=${try_guile_versions}
9717 found_usable_guile
=checking
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9719 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9720 for guile_version
in ${guile_version_list}; do
9721 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9722 if test $?
!= 0; then
9725 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9726 if test $?
!= 0; then
9727 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9729 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9730 if test $?
!= 0; then
9731 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9733 found_usable_guile
=${guile_version}
9736 if test "${found_usable_guile}" = "checking"; then
9737 if test "${flag_errors}" = "yes"; then
9738 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9740 found_usable_guile
=no
9743 if test "${found_usable_guile}" != no
; then
9744 save_CPPFLAGS
=$CPPFLAGS
9746 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9747 LIBS
="$LIBS $new_LIBS"
9748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h. */
9750 #include "libguile.h"
9759 if ac_fn_c_try_link
"$LINENO"; then :
9761 GUILE_CPPFLAGS
=$new_CPPFLAGS
9762 GUILE_LIBS
=$new_LIBS
9764 found_usable_guile
=no
9766 rm -f core conftest.err conftest.
$ac_objext \
9767 conftest
$ac_exeext conftest.
$ac_ext
9768 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9769 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9771 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9776 CPPFLAGS
=$save_CPPFLAGS
9778 if test "${found_usable_guile}" = no
; then
9779 if test "${flag_errors}" = yes; then
9780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9782 as_fn_error
"linking guile version ${guile_version} test program failed
9783 See \`config.log' for more details." "$LINENO" 5; }
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9788 $as_echo "${found_usable_guile}" >&6; }
9791 as_fn_error
"Guile config program not executable: ${with_guile}" "$LINENO" 5
9795 # Disallow --with=guile="" and --with-guile=foo/bar.
9796 as_fn_error
"invalid value for --with-guile" "$LINENO" 5
9799 # A space separate list of guile versions to try, in order.
9800 if test "${pkg_config_prog_path}" = "missing"; then
9801 as_fn_error
"pkg-config not found" "$LINENO" 5
9804 pkg_config
=${pkg_config_prog_path}
9805 guile_version_list
=${with_guile}
9808 found_usable_guile
=checking
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9810 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9811 for guile_version
in ${guile_version_list}; do
9812 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9813 if test $?
!= 0; then
9816 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9817 if test $?
!= 0; then
9818 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9820 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9821 if test $?
!= 0; then
9822 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9824 found_usable_guile
=${guile_version}
9827 if test "${found_usable_guile}" = "checking"; then
9828 if test "${flag_errors}" = "yes"; then
9829 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9831 found_usable_guile
=no
9834 if test "${found_usable_guile}" != no
; then
9835 save_CPPFLAGS
=$CPPFLAGS
9837 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9838 LIBS
="$LIBS $new_LIBS"
9839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9841 #include "libguile.h"
9850 if ac_fn_c_try_link
"$LINENO"; then :
9852 GUILE_CPPFLAGS
=$new_CPPFLAGS
9853 GUILE_LIBS
=$new_LIBS
9855 found_usable_guile
=no
9857 rm -f core conftest.err conftest.
$ac_objext \
9858 conftest
$ac_exeext conftest.
$ac_ext
9859 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9860 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9862 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9867 CPPFLAGS
=$save_CPPFLAGS
9869 if test "${found_usable_guile}" = no
; then
9870 if test "${flag_errors}" = yes; then
9871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9873 as_fn_error
"linking guile version ${guile_version} test program failed
9874 See \`config.log' for more details." "$LINENO" 5; }
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9879 $as_echo "${found_usable_guile}" >&6; }
9884 if test "${have_libguile}" != no
; then
9885 case "${with_guile}" in
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9889 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9890 if test "${ac_cv_guild_program_name+set}" = set; then :
9891 $as_echo_n "(cached) " >&6
9893 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
9895 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9896 # the 'guild' and 'bindir' variables. In that case, try to guess
9897 # what the program name is, at the risk of getting it wrong if
9898 # Guile was configured with '--program-suffix' or similar.
9899 if test "x$ac_cv_guild_program_name" = "x"; then
9900 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
9901 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9906 $as_echo "$ac_cv_guild_program_name" >&6; }
9908 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9909 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9912 GUILD
="$ac_cv_guild_program_name"
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9919 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9920 if test "${ac_cv_guild_program_name+set}" = set; then :
9921 $as_echo_n "(cached) " >&6
9923 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
9925 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9926 # the 'guild' and 'bindir' variables. In that case, try to guess
9927 # what the program name is, at the risk of getting it wrong if
9928 # Guile was configured with '--program-suffix' or similar.
9929 if test "x$ac_cv_guild_program_name" = "x"; then
9930 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
9931 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9936 $as_echo "$ac_cv_guild_program_name" >&6; }
9938 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9939 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9942 GUILD
="$ac_cv_guild_program_name"
9949 if test "$cross_compiling" = no
; then
9952 GUILD_TARGET_FLAG
="--target=$host"
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
9959 $as_echo_n "checking whether guild supports this host... " >&6; }
9960 if test "${ac_cv_guild_ok+set}" = set; then :
9961 $as_echo_n "(cached) " >&6
9963 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
9964 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
9971 $as_echo "$ac_cv_guild_ok" >&6; }
9973 if test "$ac_cv_guild_ok" = no
; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
9976 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
9980 if test "${have_libguile}" != no
; then
9982 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9984 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9985 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9986 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9987 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
9988 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9991 save_CPPFLAGS
="$CPPFLAGS"
9993 CPPFLAGS
="$GUILE_CPPFLAGS"
9994 for ac_func
in scm_new_smob
9996 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9997 if test "x$ac_cv_func_scm_new_smob" = x
""yes; then :
9998 cat >>confdefs.h
<<_ACEOF
9999 #define HAVE_SCM_NEW_SMOB 1
10006 CPPFLAGS
="$save_CPPFLAGS"
10008 # Even if Guile support is not compiled in, we need to have these files
10010 CONFIG_OBS
="$CONFIG_OBS guile.o"
10011 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
10015 if test "${have_libguile}" != no
; then
10017 HAVE_GUILE_FALSE
='#'
10019 HAVE_GUILE_TRUE
='#'
10024 # --------------------- #
10025 # Check for libmcheck. #
10026 # --------------------- #
10028 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
10029 # but turn it off if Python is enabled with threads, since -lmcheck is
10030 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
10031 # and for releases.
10032 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
10033 && $development; then
10034 libmcheck_default
=yes
10036 libmcheck_default
=no
10039 # Check whether --enable-libmcheck was given.
10040 if test "${enable_libmcheck+set}" = set; then :
10041 enableval
=$enable_libmcheck; case "${enableval}" in
10042 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
10043 no | n
) ENABLE_LIBMCHECK
="no" ;;
10044 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
10049 if test -z "${ENABLE_LIBMCHECK}"; then
10050 ENABLE_LIBMCHECK
=${libmcheck_default}
10053 if test "$ENABLE_LIBMCHECK" = "yes" ; then
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
10055 $as_echo_n "checking for main in -lmcheck... " >&6; }
10056 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
10057 $as_echo_n "(cached) " >&6
10059 ac_check_lib_save_LIBS
=$LIBS
10060 LIBS
="-lmcheck $LIBS"
10061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10073 if ac_fn_c_try_link
"$LINENO"; then :
10074 ac_cv_lib_mcheck_main
=yes
10076 ac_cv_lib_mcheck_main
=no
10078 rm -f core conftest.err conftest.
$ac_objext \
10079 conftest
$ac_exeext conftest.
$ac_ext
10080 LIBS
=$ac_check_lib_save_LIBS
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
10083 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
10084 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
10085 cat >>confdefs.h
<<_ACEOF
10086 #define HAVE_LIBMCHECK 1
10089 LIBS
="-lmcheck $LIBS"
10096 if test "$ENABLE_LIBMCHECK" = "yes" \
10097 -a "${have_libpython}" != "no" \
10098 -a "${python_has_threads}" = "yes" ; then
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
10100 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
10104 # Check whether --with-intel_pt was given.
10105 if test "${with_intel_pt+set}" = set; then :
10106 withval
=$with_intel_pt;
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
10112 $as_echo_n "checking whether to use intel pt... " >&6; }
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
10114 $as_echo "$with_intel_pt" >&6; }
10116 if test "${with_intel_pt}" = no
; then
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
10118 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
10121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10124 #include <linux/perf_event.h>
10125 #ifndef PERF_ATTR_SIZE_VER5
10130 if ac_fn_c_try_cpp
"$LINENO"; then :
10135 rm -f conftest.err conftest.
$ac_ext
10136 if test "$perf_event" != yes; then
10137 if test "$with_intel_pt" = yes; then
10138 as_fn_error
"linux/perf_event.h missing or too old" "$LINENO" 5
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
10141 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
10155 acl_save_prefix
="$prefix"
10156 prefix
="$acl_final_prefix"
10157 acl_save_exec_prefix
="$exec_prefix"
10158 exec_prefix
="$acl_final_exec_prefix"
10160 eval additional_includedir
=\"$includedir\"
10161 eval additional_libdir
=\"$libdir\"
10163 exec_prefix
="$acl_save_exec_prefix"
10164 prefix
="$acl_save_prefix"
10167 # Check whether --with-libipt-prefix was given.
10168 if test "${with_libipt_prefix+set}" = set; then :
10169 withval
=$with_libipt_prefix;
10170 if test "X$withval" = "Xno"; then
10173 if test "X$withval" = "X"; then
10175 acl_save_prefix
="$prefix"
10176 prefix
="$acl_final_prefix"
10177 acl_save_exec_prefix
="$exec_prefix"
10178 exec_prefix
="$acl_final_exec_prefix"
10180 eval additional_includedir
=\"$includedir\"
10181 eval additional_libdir
=\"$libdir\"
10183 exec_prefix
="$acl_save_exec_prefix"
10184 prefix
="$acl_save_prefix"
10187 additional_includedir
="$withval/include"
10188 additional_libdir
="$withval/lib"
10199 names_already_handled
=
10200 names_next_round
='ipt '
10201 while test -n "$names_next_round"; do
10202 names_this_round
="$names_next_round"
10204 for name
in $names_this_round; do
10206 for n
in $names_already_handled; do
10207 if test "$n" = "$name"; then
10208 already_handled
=yes
10212 if test -z "$already_handled"; then
10213 names_already_handled
="$names_already_handled $name"
10214 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10215 eval value
=\"\
$HAVE_LIB$uppername\"
10216 if test -n "$value"; then
10217 if test "$value" = yes; then
10218 eval value
=\"\
$LIB$uppername\"
10219 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
10220 eval value
=\"\
$LTLIB$uppername\"
10221 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
10230 if test $use_additional = yes; then
10231 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10232 found_dir
="$additional_libdir"
10233 found_so
="$additional_libdir/lib$name.$shlibext"
10234 if test -f "$additional_libdir/lib$name.la"; then
10235 found_la
="$additional_libdir/lib$name.la"
10238 if test -f "$additional_libdir/lib$name.$libext"; then
10239 found_dir
="$additional_libdir"
10240 found_a
="$additional_libdir/lib$name.$libext"
10241 if test -f "$additional_libdir/lib$name.la"; then
10242 found_la
="$additional_libdir/lib$name.la"
10247 if test "X$found_dir" = "X"; then
10248 for x
in $LDFLAGS $LTLIBIPT; do
10250 acl_save_prefix
="$prefix"
10251 prefix
="$acl_final_prefix"
10252 acl_save_exec_prefix
="$exec_prefix"
10253 exec_prefix
="$acl_final_exec_prefix"
10255 exec_prefix
="$acl_save_exec_prefix"
10256 prefix
="$acl_save_prefix"
10260 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10261 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10263 found_so
="$dir/lib$name.$shlibext"
10264 if test -f "$dir/lib$name.la"; then
10265 found_la
="$dir/lib$name.la"
10268 if test -f "$dir/lib$name.$libext"; then
10270 found_a
="$dir/lib$name.$libext"
10271 if test -f "$dir/lib$name.la"; then
10272 found_la
="$dir/lib$name.la"
10278 if test "X$found_dir" != "X"; then
10283 if test "X$found_dir" != "X"; then
10284 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
10285 if test "X$found_so" != "X"; then
10286 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10287 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10290 for x
in $ltrpathdirs; do
10291 if test "X$x" = "X$found_dir"; then
10296 if test -z "$haveit"; then
10297 ltrpathdirs
="$ltrpathdirs $found_dir"
10299 if test "$hardcode_direct" = yes; then
10300 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10302 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10303 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10305 for x
in $rpathdirs; do
10306 if test "X$x" = "X$found_dir"; then
10311 if test -z "$haveit"; then
10312 rpathdirs
="$rpathdirs $found_dir"
10316 for x
in $LDFLAGS $LIBIPT; do
10318 acl_save_prefix
="$prefix"
10319 prefix
="$acl_final_prefix"
10320 acl_save_exec_prefix
="$exec_prefix"
10321 exec_prefix
="$acl_final_exec_prefix"
10323 exec_prefix
="$acl_save_exec_prefix"
10324 prefix
="$acl_save_prefix"
10326 if test "X$x" = "X-L$found_dir"; then
10331 if test -z "$haveit"; then
10332 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
10334 if test "$hardcode_minus_L" != no
; then
10335 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10337 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
10343 if test "X$found_a" != "X"; then
10344 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
10346 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
10349 additional_includedir
=
10350 case "$found_dir" in
10352 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10353 additional_includedir
="$basedir/include"
10356 if test "X$additional_includedir" != "X"; then
10357 if test "X$additional_includedir" != "X/usr/include"; then
10359 if test "X$additional_includedir" = "X/usr/local/include"; then
10360 if test -n "$GCC"; then
10362 linux
*) haveit
=yes;;
10366 if test -z "$haveit"; then
10367 for x
in $CPPFLAGS $INCIPT; do
10369 acl_save_prefix
="$prefix"
10370 prefix
="$acl_final_prefix"
10371 acl_save_exec_prefix
="$exec_prefix"
10372 exec_prefix
="$acl_final_exec_prefix"
10374 exec_prefix
="$acl_save_exec_prefix"
10375 prefix
="$acl_save_prefix"
10377 if test "X$x" = "X-I$additional_includedir"; then
10382 if test -z "$haveit"; then
10383 if test -d "$additional_includedir"; then
10384 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10390 if test -n "$found_la"; then
10391 save_libdir
="$libdir"
10392 case "$found_la" in
10393 */* |
*\\*) .
"$found_la" ;;
10394 *) .
"./$found_la" ;;
10396 libdir
="$save_libdir"
10397 for dep
in $dependency_libs; do
10400 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10401 if test "X$additional_libdir" != "X/usr/lib"; then
10403 if test "X$additional_libdir" = "X/usr/local/lib"; then
10404 if test -n "$GCC"; then
10406 linux
*) haveit
=yes;;
10410 if test -z "$haveit"; then
10412 for x
in $LDFLAGS $LIBIPT; do
10414 acl_save_prefix
="$prefix"
10415 prefix
="$acl_final_prefix"
10416 acl_save_exec_prefix
="$exec_prefix"
10417 exec_prefix
="$acl_final_exec_prefix"
10419 exec_prefix
="$acl_save_exec_prefix"
10420 prefix
="$acl_save_prefix"
10422 if test "X$x" = "X-L$additional_libdir"; then
10427 if test -z "$haveit"; then
10428 if test -d "$additional_libdir"; then
10429 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10433 for x
in $LDFLAGS $LTLIBIPT; do
10435 acl_save_prefix
="$prefix"
10436 prefix
="$acl_final_prefix"
10437 acl_save_exec_prefix
="$exec_prefix"
10438 exec_prefix
="$acl_final_exec_prefix"
10440 exec_prefix
="$acl_save_exec_prefix"
10441 prefix
="$acl_save_prefix"
10443 if test "X$x" = "X-L$additional_libdir"; then
10448 if test -z "$haveit"; then
10449 if test -d "$additional_libdir"; then
10450 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10457 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10458 if test "$enable_rpath" != no
; then
10460 for x
in $rpathdirs; do
10461 if test "X$x" = "X$dir"; then
10466 if test -z "$haveit"; then
10467 rpathdirs
="$rpathdirs $dir"
10470 for x
in $ltrpathdirs; do
10471 if test "X$x" = "X$dir"; then
10476 if test -z "$haveit"; then
10477 ltrpathdirs
="$ltrpathdirs $dir"
10482 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10485 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10488 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
10489 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10495 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
10496 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10502 if test "X$rpathdirs" != "X"; then
10503 if test -n "$hardcode_libdir_separator"; then
10505 for found_dir
in $rpathdirs; do
10506 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10508 acl_save_libdir
="$libdir"
10510 eval flag
=\"$hardcode_libdir_flag_spec\"
10511 libdir
="$acl_save_libdir"
10512 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10514 for found_dir
in $rpathdirs; do
10515 acl_save_libdir
="$libdir"
10516 libdir
="$found_dir"
10517 eval flag
=\"$hardcode_libdir_flag_spec\"
10518 libdir
="$acl_save_libdir"
10519 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10523 if test "X$ltrpathdirs" != "X"; then
10524 for found_dir
in $ltrpathdirs; do
10525 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10530 ac_save_CPPFLAGS
="$CPPFLAGS"
10532 for element
in $INCIPT; do
10534 for x
in $CPPFLAGS; do
10536 acl_save_prefix
="$prefix"
10537 prefix
="$acl_final_prefix"
10538 acl_save_exec_prefix
="$exec_prefix"
10539 exec_prefix
="$acl_final_exec_prefix"
10541 exec_prefix
="$acl_save_exec_prefix"
10542 prefix
="$acl_save_prefix"
10544 if test "X$x" = "X$element"; then
10549 if test -z "$haveit"; then
10550 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10556 $as_echo_n "checking for libipt... " >&6; }
10557 if test "${ac_cv_libipt+set}" = set; then :
10558 $as_echo_n "(cached) " >&6
10561 ac_save_LIBS
="$LIBS"
10562 LIBS
="$LIBS $LIBIPT"
10563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10565 #include "intel-pt.h"
10569 pt_insn_alloc_decoder (0);
10574 if ac_fn_c_try_link
"$LINENO"; then :
10579 rm -f core conftest.err conftest.
$ac_objext \
10580 conftest
$ac_exeext conftest.
$ac_ext
10581 LIBS
="$ac_save_LIBS"
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10585 $as_echo "$ac_cv_libipt" >&6; }
10586 if test "$ac_cv_libipt" = yes; then
10589 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10592 $as_echo_n "checking how to link with libipt... " >&6; }
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10594 $as_echo "$LIBIPT" >&6; }
10597 CPPFLAGS
="$ac_save_CPPFLAGS"
10607 if test "$HAVE_LIBIPT" != yes; then
10608 if test "$with_intel_pt" = yes; then
10609 as_fn_error
"libipt is missing or unusable" "$LINENO" 5
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10612 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10617 # ------------------------- #
10618 # Checks for header files. #
10619 # ------------------------- #
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10622 $as_echo_n "checking for ANSI C header files... " >&6; }
10623 if test "${ac_cv_header_stdc+set}" = set; then :
10624 $as_echo_n "(cached) " >&6
10626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628 #include <stdlib.h>
10629 #include <stdarg.h>
10630 #include <string.h>
10641 if ac_fn_c_try_compile
"$LINENO"; then :
10642 ac_cv_header_stdc
=yes
10644 ac_cv_header_stdc
=no
10646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10648 if test $ac_cv_header_stdc = yes; then
10649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10652 #include <string.h>
10655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10656 $EGREP "memchr" >/dev
/null
2>&1; then :
10659 ac_cv_header_stdc
=no
10665 if test $ac_cv_header_stdc = yes; then
10666 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669 #include <stdlib.h>
10672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10673 $EGREP "free" >/dev
/null
2>&1; then :
10676 ac_cv_header_stdc
=no
10682 if test $ac_cv_header_stdc = yes; then
10683 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10684 if test "$cross_compiling" = yes; then :
10687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h. */
10690 #include <stdlib.h>
10691 #if ((' ' & 0x0FF) == 0x020)
10692 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10693 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10695 # define ISLOWER(c) \
10696 (('a' <= (c) && (c) <= 'i') \
10697 || ('j' <= (c) && (c) <= 'r') \
10698 || ('s' <= (c) && (c) <= 'z'))
10699 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10702 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10707 for (i = 0; i < 256; i++)
10708 if (XOR (islower (i), ISLOWER (i))
10709 || toupper (i) != TOUPPER (i))
10714 if ac_fn_c_try_run
"$LINENO"; then :
10717 ac_cv_header_stdc
=no
10719 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10720 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10726 $as_echo "$ac_cv_header_stdc" >&6; }
10727 if test $ac_cv_header_stdc = yes; then
10729 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10733 # elf_hp.h is for HP/UX 64-bit shared library support.
10734 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
10737 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
10738 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
10739 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
10740 termios.h termio.h \
10744 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10745 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10746 eval as_val
=\$
$as_ac_Header
10747 if test "x$as_val" = x
""yes; then :
10748 cat >>confdefs.h
<<_ACEOF
10749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10756 for ac_header
in sys
/proc.h
10758 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
10759 # include <sys/param.h>
10763 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
10764 cat >>confdefs.h
<<_ACEOF
10765 #define HAVE_SYS_PROC_H 1
10772 for ac_header
in sys
/user.h
10774 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
10775 # include <sys/param.h>
10779 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
10780 cat >>confdefs.h
<<_ACEOF
10781 #define HAVE_SYS_USER_H 1
10789 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10790 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10791 # think that we don't have <curses.h> if we're using GCC.
10794 if test "$GCC" = yes; then
10796 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
10800 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
10802 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10803 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10804 eval as_val
=\$
$as_ac_Header
10805 if test "x$as_val" = x
""yes; then :
10806 cat >>confdefs.h
<<_ACEOF
10807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10814 for ac_header
in term.h
10816 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
10817 # include <curses.h>
10821 if test "x$ac_cv_header_term_h" = x
""yes; then :
10822 cat >>confdefs.h
<<_ACEOF
10823 #define HAVE_TERM_H 1
10831 # ------------------------- #
10832 # Checks for declarations. #
10833 # ------------------------- #
10836 # Check for presence and size of long long.
10837 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
10838 if test "x$ac_cv_type_long_long" = x
""yes; then :
10840 cat >>confdefs.h
<<_ACEOF
10841 #define HAVE_LONG_LONG 1
10844 # The cast to long int works around a bug in the HP C Compiler
10845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10847 # This bug is HP SR number 8606223364.
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10849 $as_echo_n "checking size of long long... " >&6; }
10850 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10851 $as_echo_n "(cached) " >&6
10853 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10856 if test "$ac_cv_type_long_long" = yes; then
10857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10859 { as_fn_set_status
77
10860 as_fn_error
"cannot compute sizeof (long long)
10861 See \`config.log' for more details." "$LINENO" 5; }; }
10863 ac_cv_sizeof_long_long
=0
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10869 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10873 cat >>confdefs.h
<<_ACEOF
10874 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10881 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
10882 if test "x$ac_cv_have_decl_basename_char_p_" = x
""yes; then :
10888 cat >>confdefs.h
<<_ACEOF
10889 #define HAVE_DECL_BASENAME $ac_have_decl
10891 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10892 if test "x$ac_cv_have_decl_ffs" = x
""yes; then :
10898 cat >>confdefs.h
<<_ACEOF
10899 #define HAVE_DECL_FFS $ac_have_decl
10901 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10902 if test "x$ac_cv_have_decl_asprintf" = x
""yes; then :
10908 cat >>confdefs.h
<<_ACEOF
10909 #define HAVE_DECL_ASPRINTF $ac_have_decl
10911 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10912 if test "x$ac_cv_have_decl_vasprintf" = x
""yes; then :
10918 cat >>confdefs.h
<<_ACEOF
10919 #define HAVE_DECL_VASPRINTF $ac_have_decl
10921 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10922 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
10928 cat >>confdefs.h
<<_ACEOF
10929 #define HAVE_DECL_SNPRINTF $ac_have_decl
10931 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10932 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
10938 cat >>confdefs.h
<<_ACEOF
10939 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10942 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
10943 if test "x$ac_cv_have_decl_strtol" = x
""yes; then :
10949 cat >>confdefs.h
<<_ACEOF
10950 #define HAVE_DECL_STRTOL $ac_have_decl
10952 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
10953 if test "x$ac_cv_have_decl_strtoul" = x
""yes; then :
10959 cat >>confdefs.h
<<_ACEOF
10960 #define HAVE_DECL_STRTOUL $ac_have_decl
10962 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
10963 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
10969 cat >>confdefs.h
<<_ACEOF
10970 #define HAVE_DECL_STRTOLL $ac_have_decl
10972 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
10973 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
10979 cat >>confdefs.h
<<_ACEOF
10980 #define HAVE_DECL_STRTOULL $ac_have_decl
10983 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10984 if test "x$ac_cv_have_decl_strverscmp" = x
""yes; then :
10990 cat >>confdefs.h
<<_ACEOF
10991 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10996 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10997 if test "x$ac_cv_have_decl_free" = x
""yes; then :
11003 cat >>confdefs.h
<<_ACEOF
11004 #define HAVE_DECL_FREE $ac_have_decl
11006 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11007 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
11013 cat >>confdefs.h
<<_ACEOF
11014 #define HAVE_DECL_MALLOC $ac_have_decl
11016 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11017 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
11023 cat >>confdefs.h
<<_ACEOF
11024 #define HAVE_DECL_REALLOC $ac_have_decl
11026 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11027 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
11033 cat >>confdefs.h
<<_ACEOF
11034 #define HAVE_DECL_SNPRINTF $ac_have_decl
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11039 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11040 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11041 $as_echo_n "(cached) " >&6
11043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11045 #include <locale.h>
11054 if ac_fn_c_try_link
"$LINENO"; then :
11055 am_cv_val_LC_MESSAGES
=yes
11057 am_cv_val_LC_MESSAGES
=no
11059 rm -f core conftest.err conftest.
$ac_objext \
11060 conftest
$ac_exeext conftest.
$ac_ext
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11063 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11064 if test $am_cv_val_LC_MESSAGES = yes; then
11066 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11071 # ----------------------- #
11072 # Checks for structures. #
11073 # ----------------------- #
11075 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11076 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
11078 cat >>confdefs.h
<<_ACEOF
11079 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11084 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11085 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
11087 cat >>confdefs.h
<<_ACEOF
11088 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11095 # ------------------ #
11096 # Checks for types. #
11097 # ------------------ #
11099 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11100 #include <sys/socket.h>
11103 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
11105 cat >>confdefs.h
<<_ACEOF
11106 #define HAVE_SOCKLEN_T 1
11113 # ------------------------------------- #
11114 # Checks for compiler characteristics. #
11115 # ------------------------------------- #
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11118 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11119 if test "${ac_cv_c_const+set}" = set; then :
11120 $as_echo_n "(cached) " >&6
11122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11123 /* end confdefs.h. */
11128 /* FIXME: Include the comments suggested by Paul. */
11129 #ifndef __cplusplus
11130 /* Ultrix mips cc rejects this. */
11131 typedef int charset[2];
11133 /* SunOS 4.1.1 cc rejects this. */
11134 char const *const *pcpcc;
11136 /* NEC SVR4.0.2 mips cc rejects this. */
11137 struct point {int x, y;};
11138 static struct point const zero = {0,0};
11139 /* AIX XL C 1.02.0.0 rejects this.
11140 It does not let you subtract one const X* pointer from another in
11141 an arm of an if-expression whose if-part is not a constant
11143 const char *g = "string";
11144 pcpcc = &g + (g ? g-g : 0);
11145 /* HPUX 7.0 cc rejects these. */
11147 ppc = (char**) pcpcc;
11148 pcpcc = (char const *const *) ppc;
11149 { /* SCO 3.2v4 cc rejects this. */
11151 char const *s = 0 ? (char *) 0 : (char const *) 0;
11156 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11157 int x[] = {25, 17};
11158 const int *foo = &x[0];
11161 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11162 typedef const int *iptr;
11166 { /* AIX XL C 1.02.0.0 rejects this saying
11167 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11168 struct s { int j; const int *ap[3]; };
11169 struct s *b; b->j = 5;
11171 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11172 const int foo = 10;
11173 if (!foo) return 0;
11175 return !cs[0] && !zero.x;
11182 if ac_fn_c_try_compile
"$LINENO"; then :
11187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11190 $as_echo "$ac_cv_c_const" >&6; }
11191 if test $ac_cv_c_const = no
; then
11193 $as_echo "#define const /**/" >>confdefs.h
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11198 $as_echo_n "checking for inline... " >&6; }
11199 if test "${ac_cv_c_inline+set}" = set; then :
11200 $as_echo_n "(cached) " >&6
11203 for ac_kw
in inline __inline__ __inline
; do
11204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11205 /* end confdefs.h. */
11206 #ifndef __cplusplus
11208 static $ac_kw foo_t static_foo () {return 0; }
11209 $ac_kw foo_t foo () {return 0; }
11213 if ac_fn_c_try_compile
"$LINENO"; then :
11214 ac_cv_c_inline
=$ac_kw
11216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11217 test "$ac_cv_c_inline" != no
&& break
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11222 $as_echo "$ac_cv_c_inline" >&6; }
11224 case $ac_cv_c_inline in
11227 case $ac_cv_c_inline in
11229 *) ac_val
=$ac_cv_c_inline;;
11231 cat >>confdefs.h
<<_ACEOF
11232 #ifndef __cplusplus
11233 #define inline $ac_val
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11240 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11241 if test "${ac_cv_c_bigendian+set}" = set; then :
11242 $as_echo_n "(cached) " >&6
11244 ac_cv_c_bigendian
=unknown
11245 # See if we're dealing with a universal compiler.
11246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11248 #ifndef __APPLE_CC__
11249 not a universal capable compiler
11254 if ac_fn_c_try_compile
"$LINENO"; then :
11256 # Check for potential -arch flags. It is not universal unless
11257 # there are at least two -arch flags with different values.
11260 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11261 if test -n "$ac_prev"; then
11263 i?
86 | x86_64 | ppc | ppc64
)
11264 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11267 ac_cv_c_bigendian
=universal
11273 elif test "x$ac_word" = "x-arch"; then
11278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11279 if test $ac_cv_c_bigendian = unknown
; then
11280 # See if sys/param.h defines the BYTE_ORDER macro.
11281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11282 /* end confdefs.h. */
11283 #include <sys/types.h>
11284 #include <sys/param.h>
11289 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11290 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11292 bogus endian macros
11299 if ac_fn_c_try_compile
"$LINENO"; then :
11300 # It does; now see whether it defined to BIG_ENDIAN or not.
11301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h. */
11303 #include <sys/types.h>
11304 #include <sys/param.h>
11309 #if BYTE_ORDER != BIG_ENDIAN
11317 if ac_fn_c_try_compile
"$LINENO"; then :
11318 ac_cv_c_bigendian
=yes
11320 ac_cv_c_bigendian
=no
11322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11326 if test $ac_cv_c_bigendian = unknown
; then
11327 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11330 #include <limits.h>
11335 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11336 bogus endian macros
11343 if ac_fn_c_try_compile
"$LINENO"; then :
11344 # It does; now see whether it defined to _BIG_ENDIAN or not.
11345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11346 /* end confdefs.h. */
11347 #include <limits.h>
11352 #ifndef _BIG_ENDIAN
11360 if ac_fn_c_try_compile
"$LINENO"; then :
11361 ac_cv_c_bigendian
=yes
11363 ac_cv_c_bigendian
=no
11365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11369 if test $ac_cv_c_bigendian = unknown
; then
11370 # Compile a test program.
11371 if test "$cross_compiling" = yes; then :
11372 # Try to guess by grepping values from an object file.
11373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11375 short int ascii_mm[] =
11376 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11377 short int ascii_ii[] =
11378 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11379 int use_ascii (int i) {
11380 return ascii_mm[i] + ascii_ii[i];
11382 short int ebcdic_ii[] =
11383 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11384 short int ebcdic_mm[] =
11385 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11386 int use_ebcdic (int i) {
11387 return ebcdic_mm[i] + ebcdic_ii[i];
11394 return use_ascii (foo) == use_ebcdic (foo);
11399 if ac_fn_c_try_compile
"$LINENO"; then :
11400 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
11401 ac_cv_c_bigendian
=yes
11403 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
11404 if test "$ac_cv_c_bigendian" = unknown
; then
11405 ac_cv_c_bigendian
=no
11407 # finding both strings is unlikely to happen, but who knows?
11408 ac_cv_c_bigendian
=unknown
11412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11415 /* end confdefs.h. */
11416 $ac_includes_default
11421 /* Are we little or big endian? From Harbison&Steele. */
11425 char c[sizeof (long int)];
11428 return u.c[sizeof (long int) - 1] == 1;
11434 if ac_fn_c_try_run
"$LINENO"; then :
11435 ac_cv_c_bigendian
=no
11437 ac_cv_c_bigendian
=yes
11439 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11440 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11446 $as_echo "$ac_cv_c_bigendian" >&6; }
11447 case $ac_cv_c_bigendian in #(
11449 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11455 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11459 as_fn_error
"unknown endianness
11460 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11464 # ------------------------------ #
11465 # Checks for library functions. #
11466 # ------------------------------ #
11468 for ac_header
in stdlib.h unistd.h
11470 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11471 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11472 eval as_val
=\$
$as_ac_Header
11473 if test "x$as_val" = x
""yes; then :
11474 cat >>confdefs.h
<<_ACEOF
11475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11482 for ac_func
in getpagesize
11484 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11485 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
11486 cat >>confdefs.h
<<_ACEOF
11487 #define HAVE_GETPAGESIZE 1
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11494 $as_echo_n "checking for working mmap... " >&6; }
11495 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11496 $as_echo_n "(cached) " >&6
11498 if test "$cross_compiling" = yes; then :
11499 ac_cv_func_mmap_fixed_mapped
=no
11501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11503 $ac_includes_default
11504 /* malloc might have been renamed as rpl_malloc. */
11507 /* Thanks to Mike Haertel and Jim Avera for this test.
11508 Here is a matrix of mmap possibilities:
11509 mmap private not fixed
11510 mmap private fixed at somewhere currently unmapped
11511 mmap private fixed at somewhere already mapped
11512 mmap shared not fixed
11513 mmap shared fixed at somewhere currently unmapped
11514 mmap shared fixed at somewhere already mapped
11515 For private mappings, we should verify that changes cannot be read()
11516 back from the file, nor mmap's back from the file at a different
11517 address. (There have been systems where private was not correctly
11518 implemented like the infamous i386 svr4.0, and systems where the
11519 VM page cache was not coherent with the file system buffer cache
11520 like early versions of FreeBSD and possibly contemporary NetBSD.)
11521 For shared mappings, we should conversely verify that changes get
11522 propagated back to all the places they're supposed to be.
11524 Grep wants private fixed already mapped.
11525 The main things grep needs to know about mmap are:
11526 * does it exist and is it safe to write into the mmap'd area
11527 * how to use it (BSD variants) */
11530 #include <sys/mman.h>
11532 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11536 /* This mess was copied from the GNU getpagesize.h. */
11537 #ifndef HAVE_GETPAGESIZE
11538 /* Assume that all systems that can run configure have sys/param.h. */
11539 # ifndef HAVE_SYS_PARAM_H
11540 # define HAVE_SYS_PARAM_H 1
11543 # ifdef _SC_PAGESIZE
11544 # define getpagesize() sysconf(_SC_PAGESIZE)
11545 # else /* no _SC_PAGESIZE */
11546 # ifdef HAVE_SYS_PARAM_H
11547 # include <sys/param.h>
11548 # ifdef EXEC_PAGESIZE
11549 # define getpagesize() EXEC_PAGESIZE
11550 # else /* no EXEC_PAGESIZE */
11552 # define getpagesize() NBPG * CLSIZE
11555 # endif /* no CLSIZE */
11556 # else /* no NBPG */
11558 # define getpagesize() NBPC
11559 # else /* no NBPC */
11561 # define getpagesize() PAGESIZE
11562 # endif /* PAGESIZE */
11563 # endif /* no NBPC */
11564 # endif /* no NBPG */
11565 # endif /* no EXEC_PAGESIZE */
11566 # else /* no HAVE_SYS_PARAM_H */
11567 # define getpagesize() 8192 /* punt totally */
11568 # endif /* no HAVE_SYS_PARAM_H */
11569 # endif /* no _SC_PAGESIZE */
11571 #endif /* no HAVE_GETPAGESIZE */
11576 char *data, *data2, *data3;
11580 pagesize = getpagesize ();
11582 /* First, make a file with some known garbage in it. */
11583 data = (char *) malloc (pagesize);
11586 for (i = 0; i < pagesize; ++i)
11587 *(data + i) = rand ();
11589 fd = creat ("conftest.mmap", 0600);
11592 if (write (fd, data, pagesize) != pagesize)
11596 /* Next, try to mmap the file at a fixed address which already has
11597 something else allocated at it. If we can, also make sure that
11598 we see the same garbage. */
11599 fd = open ("conftest.mmap", O_RDWR);
11602 data2 = (char *) malloc (2 * pagesize);
11605 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11606 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11607 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11609 for (i = 0; i < pagesize; ++i)
11610 if (*(data + i) != *(data2 + i))
11613 /* Finally, make sure that changes to the mapped area do not
11614 percolate back to the file as seen by read(). (This is a bug on
11615 some variants of i386 svr4.0.) */
11616 for (i = 0; i < pagesize; ++i)
11617 *(data2 + i) = *(data2 + i) + 1;
11618 data3 = (char *) malloc (pagesize);
11621 if (read (fd, data3, pagesize) != pagesize)
11623 for (i = 0; i < pagesize; ++i)
11624 if (*(data + i) != *(data3 + i))
11630 if ac_fn_c_try_run
"$LINENO"; then :
11631 ac_cv_func_mmap_fixed_mapped
=yes
11633 ac_cv_func_mmap_fixed_mapped
=no
11635 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11636 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11641 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11642 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11644 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11647 rm -f conftest.mmap
11649 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11650 if test "x$ac_cv_type_pid_t" = x
""yes; then :
11654 cat >>confdefs.h
<<_ACEOF
11660 for ac_header
in vfork.h
11662 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11663 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
11664 cat >>confdefs.h
<<_ACEOF
11665 #define HAVE_VFORK_H 1
11672 for ac_func
in fork vfork
11674 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11675 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11676 eval as_val
=\$
$as_ac_var
11677 if test "x$as_val" = x
""yes; then :
11678 cat >>confdefs.h
<<_ACEOF
11679 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11685 if test "x$ac_cv_func_fork" = xyes
; then
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11687 $as_echo_n "checking for working fork... " >&6; }
11688 if test "${ac_cv_func_fork_works+set}" = set; then :
11689 $as_echo_n "(cached) " >&6
11691 if test "$cross_compiling" = yes; then :
11692 ac_cv_func_fork_works
=cross
11694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11695 /* end confdefs.h. */
11696 $ac_includes_default
11701 /* By Ruediger Kuhlmann. */
11702 return fork () < 0;
11708 if ac_fn_c_try_run
"$LINENO"; then :
11709 ac_cv_func_fork_works
=yes
11711 ac_cv_func_fork_works
=no
11713 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11714 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11719 $as_echo "$ac_cv_func_fork_works" >&6; }
11722 ac_cv_func_fork_works
=$ac_cv_func_fork
11724 if test "x$ac_cv_func_fork_works" = xcross
; then
11726 *-*-amigaos* |
*-*-msdosdjgpp*)
11727 # Override, as these systems have only a dummy fork() stub
11728 ac_cv_func_fork_works
=no
11731 ac_cv_func_fork_works
=yes
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11735 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11737 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11738 if test "x$ac_cv_func_vfork" = xyes
; then
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11740 $as_echo_n "checking for working vfork... " >&6; }
11741 if test "${ac_cv_func_vfork_works+set}" = set; then :
11742 $as_echo_n "(cached) " >&6
11744 if test "$cross_compiling" = yes; then :
11745 ac_cv_func_vfork_works
=cross
11747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11749 /* Thanks to Paul Eggert for this test. */
11750 $ac_includes_default
11751 #include <sys/wait.h>
11752 #ifdef HAVE_VFORK_H
11753 # include <vfork.h>
11755 /* On some sparc systems, changes by the child to local and incoming
11756 argument registers are propagated back to the parent. The compiler
11757 is told about this with #include <vfork.h>, but some compilers
11758 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11759 static variable whose address is put into a register that is
11760 clobbered by the vfork. */
11763 sparc_address_test (int arg)
11765 sparc_address_test (arg) int arg;
11768 static pid_t child;
11786 pid_t parent = getpid ();
11789 sparc_address_test (0);
11794 /* Here is another test for sparc vfork register problems. This
11795 test uses lots of local variables, at least as many local
11796 variables as main has allocated so far including compiler
11797 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11798 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11799 reuse the register of parent for one of the local variables,
11800 since it will think that parent can't possibly be used any more
11801 in this routine. Assigning to the local variable will thus
11802 munge parent in the parent process. */
11804 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11805 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11806 /* Convince the compiler that p..p7 are live; otherwise, it might
11807 use the same hardware register for all 8 local variables. */
11808 if (p != p1 || p != p2 || p != p3 || p != p4
11809 || p != p5 || p != p6 || p != p7)
11812 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11813 from child file descriptors. If the child closes a descriptor
11814 before it execs or exits, this munges the parent's descriptor
11815 as well. Test for this by closing stdout in the child. */
11816 _exit(close(fileno(stdout)) != 0);
11821 while (wait(&status) != child)
11824 /* Was there some problem with vforking? */
11827 /* Did the child fail? (This shouldn't happen.) */
11830 /* Did the vfork/compiler bug occur? */
11831 || parent != getpid()
11833 /* Did the file descriptor bug occur? */
11834 || fstat(fileno(stdout), &st) != 0
11839 if ac_fn_c_try_run
"$LINENO"; then :
11840 ac_cv_func_vfork_works
=yes
11842 ac_cv_func_vfork_works
=no
11844 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11845 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11850 $as_echo "$ac_cv_func_vfork_works" >&6; }
11853 if test "x$ac_cv_func_fork_works" = xcross
; then
11854 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11856 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11859 if test "x$ac_cv_func_vfork_works" = xyes
; then
11861 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11865 $as_echo "#define vfork fork" >>confdefs.h
11868 if test "x$ac_cv_func_fork_works" = xyes
; then
11870 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11874 for ac_func
in getauxval getrusage getuid getgid \
11875 pipe poll pread pread64 pwrite resize_term \
11876 sbrk setpgid setpgrp setsid \
11877 sigaction sigprocmask sigsetmask socketpair \
11878 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
11879 setrlimit getrlimit posix_madvise waitpid \
11880 ptrace64 sigaltstack mkdtemp setns
11882 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11883 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11884 eval as_val
=\$
$as_ac_var
11885 if test "x$as_val" = x
""yes; then :
11886 cat >>confdefs.h
<<_ACEOF
11887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11895 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11896 if test "${am_cv_langinfo_codeset+set}" = set; then :
11897 $as_echo_n "(cached) " >&6
11899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11900 /* end confdefs.h. */
11901 #include <langinfo.h>
11905 char* cs = nl_langinfo(CODESET);
11910 if ac_fn_c_try_link
"$LINENO"; then :
11911 am_cv_langinfo_codeset
=yes
11913 am_cv_langinfo_codeset
=no
11915 rm -f core conftest.err conftest.
$ac_objext \
11916 conftest
$ac_exeext conftest.
$ac_ext
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11920 $as_echo "$am_cv_langinfo_codeset" >&6; }
11921 if test $am_cv_langinfo_codeset = yes; then
11923 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11929 $as_echo_n "checking for ANSI C header files... " >&6; }
11930 if test "${ac_cv_header_stdc+set}" = set; then :
11931 $as_echo_n "(cached) " >&6
11933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11935 #include <stdlib.h>
11936 #include <stdarg.h>
11937 #include <string.h>
11948 if ac_fn_c_try_compile
"$LINENO"; then :
11949 ac_cv_header_stdc
=yes
11951 ac_cv_header_stdc
=no
11953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11955 if test $ac_cv_header_stdc = yes; then
11956 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11958 /* end confdefs.h. */
11959 #include <string.h>
11962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11963 $EGREP "memchr" >/dev
/null
2>&1; then :
11966 ac_cv_header_stdc
=no
11972 if test $ac_cv_header_stdc = yes; then
11973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11975 /* end confdefs.h. */
11976 #include <stdlib.h>
11979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11980 $EGREP "free" >/dev
/null
2>&1; then :
11983 ac_cv_header_stdc
=no
11989 if test $ac_cv_header_stdc = yes; then
11990 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11991 if test "$cross_compiling" = yes; then :
11994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11997 #include <stdlib.h>
11998 #if ((' ' & 0x0FF) == 0x020)
11999 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12000 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12002 # define ISLOWER(c) \
12003 (('a' <= (c) && (c) <= 'i') \
12004 || ('j' <= (c) && (c) <= 'r') \
12005 || ('s' <= (c) && (c) <= 'z'))
12006 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12009 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12014 for (i = 0; i < 256; i++)
12015 if (XOR (islower (i), ISLOWER (i))
12016 || toupper (i) != TOUPPER (i))
12021 if ac_fn_c_try_run
"$LINENO"; then :
12024 ac_cv_header_stdc
=no
12026 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12027 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12033 $as_echo "$ac_cv_header_stdc" >&6; }
12034 if test $ac_cv_header_stdc = yes; then
12036 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12040 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12041 # for constant arguments. Useless!
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12043 $as_echo_n "checking for working alloca.h... " >&6; }
12044 if test "${ac_cv_working_alloca_h+set}" = set; then :
12045 $as_echo_n "(cached) " >&6
12047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12048 /* end confdefs.h. */
12049 #include <alloca.h>
12053 char *p = (char *) alloca (2 * sizeof (int));
12059 if ac_fn_c_try_link
"$LINENO"; then :
12060 ac_cv_working_alloca_h
=yes
12062 ac_cv_working_alloca_h
=no
12064 rm -f core conftest.err conftest.
$ac_objext \
12065 conftest
$ac_exeext conftest.
$ac_ext
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12068 $as_echo "$ac_cv_working_alloca_h" >&6; }
12069 if test $ac_cv_working_alloca_h = yes; then
12071 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12076 $as_echo_n "checking for alloca... " >&6; }
12077 if test "${ac_cv_func_alloca_works+set}" = set; then :
12078 $as_echo_n "(cached) " >&6
12080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12083 # define alloca __builtin_alloca
12086 # include <malloc.h>
12087 # define alloca _alloca
12089 # ifdef HAVE_ALLOCA_H
12090 # include <alloca.h>
12095 # ifndef alloca /* predefined by HP cc +Olibcalls */
12106 char *p = (char *) alloca (1);
12112 if ac_fn_c_try_link
"$LINENO"; then :
12113 ac_cv_func_alloca_works
=yes
12115 ac_cv_func_alloca_works
=no
12117 rm -f core conftest.err conftest.
$ac_objext \
12118 conftest
$ac_exeext conftest.
$ac_ext
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12121 $as_echo "$ac_cv_func_alloca_works" >&6; }
12123 if test $ac_cv_func_alloca_works = yes; then
12125 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12128 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12129 # that cause trouble. Some versions do not even contain alloca or
12130 # contain a buggy version. If you still want to use their alloca,
12131 # use ar to extract alloca.o from them instead of compiling alloca.c.
12133 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12135 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12139 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12140 if test "${ac_cv_os_cray+set}" = set; then :
12141 $as_echo_n "(cached) " >&6
12143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12145 #if defined CRAY && ! defined CRAY2
12152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12153 $EGREP "webecray" >/dev
/null
2>&1; then :
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12162 $as_echo "$ac_cv_os_cray" >&6; }
12163 if test $ac_cv_os_cray = yes; then
12164 for ac_func
in _getb67 GETB67 getb67
; do
12165 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12166 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12167 eval as_val
=\$
$as_ac_var
12168 if test "x$as_val" = x
""yes; then :
12170 cat >>confdefs.h
<<_ACEOF
12171 #define CRAY_STACKSEG_END $ac_func
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12181 $as_echo_n "checking stack direction for C alloca... " >&6; }
12182 if test "${ac_cv_c_stack_direction+set}" = set; then :
12183 $as_echo_n "(cached) " >&6
12185 if test "$cross_compiling" = yes; then :
12186 ac_cv_c_stack_direction
=0
12188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h. */
12190 $ac_includes_default
12192 find_stack_direction ()
12194 static char *addr = 0;
12199 return find_stack_direction ();
12202 return (&dummy > addr) ? 1 : -1;
12208 return find_stack_direction () < 0;
12211 if ac_fn_c_try_run
"$LINENO"; then :
12212 ac_cv_c_stack_direction
=1
12214 ac_cv_c_stack_direction
=-1
12216 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12217 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12222 $as_echo "$ac_cv_c_stack_direction" >&6; }
12223 cat >>confdefs.h
<<_ACEOF
12224 #define STACK_DIRECTION $ac_cv_c_stack_direction
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12233 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12234 if test "${am_cv_langinfo_codeset+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12239 #include <langinfo.h>
12243 char* cs = nl_langinfo(CODESET);
12248 if ac_fn_c_try_link
"$LINENO"; then :
12249 am_cv_langinfo_codeset
=yes
12251 am_cv_langinfo_codeset
=no
12253 rm -f core conftest.err conftest.
$ac_objext \
12254 conftest
$ac_exeext conftest.
$ac_ext
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12258 $as_echo "$am_cv_langinfo_codeset" >&6; }
12259 if test $am_cv_langinfo_codeset = yes; then
12261 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12266 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
12268 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12269 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12270 eval as_val
=\$
$as_ac_Header
12271 if test "x$as_val" = x
""yes; then :
12272 cat >>confdefs.h
<<_ACEOF
12273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12281 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair
12283 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12284 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12285 eval as_val
=\$
$as_ac_var
12286 if test "x$as_val" = x
""yes; then :
12287 cat >>confdefs.h
<<_ACEOF
12288 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12295 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
12296 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
12302 cat >>confdefs.h
<<_ACEOF
12303 #define HAVE_DECL_STRERROR $ac_have_decl
12305 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12306 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
12312 cat >>confdefs.h
<<_ACEOF
12313 #define HAVE_DECL_STRSTR $ac_have_decl
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12318 $as_echo_n "checking for sigsetjmp... " >&6; }
12319 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12320 $as_echo_n "(cached) " >&6
12322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h. */
12325 #include <setjmp.h>
12330 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12335 if ac_fn_c_try_compile
"$LINENO"; then :
12336 gdb_cv_func_sigsetjmp
=yes
12338 gdb_cv_func_sigsetjmp
=no
12340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12343 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12344 if test $gdb_cv_func_sigsetjmp = yes; then
12346 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12351 # Check the return and argument types of ptrace.
12355 for ac_header
in sys
/ptrace.h ptrace.h
12357 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12358 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12359 eval as_val
=\$
$as_ac_Header
12360 if test "x$as_val" = x
""yes; then :
12361 cat >>confdefs.h
<<_ACEOF
12362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12370 # Needs to be tested in C++ mode, to detect whether we need to cast
12371 # the first argument to enum __ptrace_request.
12372 if test "$enable_build_with_cxx" = "yes"; then
12374 ac_cpp
='$CXXCPP $CPPFLAGS'
12375 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12376 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12377 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12381 gdb_ptrace_headers
='
12382 #include <sys/types.h>
12383 #if HAVE_SYS_PTRACE_H
12384 # include <sys/ptrace.h>
12387 # include <unistd.h>
12390 # There is no point in checking if we don't have a prototype.
12391 ac_fn_cxx_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12393 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
12399 cat >>confdefs.h
<<_ACEOF
12400 #define HAVE_DECL_PTRACE $ac_have_decl
12402 if test $ac_have_decl = 1; then :
12406 : ${gdb_cv_func_ptrace_ret='int'}
12407 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12411 # Check return type. Varargs (used on GNU/Linux) conflict with the
12412 # empty argument list, so check for that explicitly.
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12414 $as_echo_n "checking return type of ptrace... " >&6; }
12415 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12419 /* end confdefs.h. */
12420 $gdb_ptrace_headers
12424 extern long ptrace (enum __ptrace_request, ...);
12429 if ac_fn_cxx_try_compile
"$LINENO"; then :
12430 gdb_cv_func_ptrace_ret
='long'
12432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12434 $gdb_ptrace_headers
12438 extern int ptrace ();
12443 if ac_fn_cxx_try_compile
"$LINENO"; then :
12444 gdb_cv_func_ptrace_ret
='int'
12446 gdb_cv_func_ptrace_ret
='long'
12448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12453 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12455 cat >>confdefs.h
<<_ACEOF
12456 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12459 # Check argument types.
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12461 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12462 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12463 $as_echo_n "(cached) " >&6
12466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12468 $gdb_ptrace_headers
12472 extern long ptrace (enum __ptrace_request, ...);
12477 if ac_fn_cxx_try_compile
"$LINENO"; then :
12478 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
12481 for gdb_arg1
in 'int' 'long'; do
12482 for gdb_arg2
in 'pid_t' 'int' 'long'; do
12483 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12484 for gdb_arg4
in 'int' 'long' 'void *'; do
12485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12487 $gdb_ptrace_headers
12492 extern $gdb_cv_func_ptrace_ret
12493 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12499 if ac_fn_cxx_try_compile
"$LINENO"; then :
12500 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12504 for gdb_arg5
in 'int *' 'int' 'long'; do
12505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12507 $gdb_ptrace_headers
12512 extern $gdb_cv_func_ptrace_ret
12513 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12519 if ac_fn_cxx_try_compile
"$LINENO"; then :
12521 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12530 # Provide a safe default value.
12531 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12537 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12538 ac_save_IFS
=$IFS; IFS
=','
12539 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12543 cat >>confdefs.h
<<_ACEOF
12544 #define PTRACE_TYPE_ARG1 $1
12548 cat >>confdefs.h
<<_ACEOF
12549 #define PTRACE_TYPE_ARG3 $3
12553 cat >>confdefs.h
<<_ACEOF
12554 #define PTRACE_TYPE_ARG4 $4
12557 if test -n "$5"; then
12559 cat >>confdefs.h
<<_ACEOF
12560 #define PTRACE_TYPE_ARG5 $5
12565 if test "$enable_build_with_cxx" = "yes"; then
12567 ac_cpp
='$CPP $CPPFLAGS'
12568 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12569 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12570 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12575 if test "$cross_compiling" = no
; then
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12577 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12578 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
12581 if test "$cross_compiling" = yes; then :
12582 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
12584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12586 $ac_includes_default
12590 /* If this system has a BSD-style setpgrp which takes arguments,
12591 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12592 exit successfully. */
12593 return setpgrp (1,1) != -1;
12598 if ac_fn_c_try_run
"$LINENO"; then :
12599 ac_cv_func_setpgrp_void
=no
12601 ac_cv_func_setpgrp_void
=yes
12603 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12604 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12609 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12610 if test $ac_cv_func_setpgrp_void = yes; then
12612 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12618 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12619 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12620 $as_echo_n "(cached) " >&6
12622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h. */
12625 #include <unistd.h>
12631 if (setpgrp(1,1) == -1)
12640 if ac_fn_c_try_compile
"$LINENO"; then :
12641 ac_cv_func_setpgrp_void
=no
12643 ac_cv_func_setpgrp_void
=yes
12645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12648 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12649 if test $ac_cv_func_setpgrp_void = yes; then
12650 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12655 # Assume we'll default to using the included libiberty regex.
12656 gdb_use_included_regex
=yes
12658 # However, if the system regex is GNU regex, then default to *not*
12659 # using the included regex.
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12661 $as_echo_n "checking for GNU regex... " >&6; }
12662 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12663 $as_echo_n "(cached) " >&6
12665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12667 #include <gnu-versions.h>
12671 #define REGEX_INTERFACE_VERSION 1
12672 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12673 # error "Version mismatch"
12679 if ac_fn_c_try_compile
"$LINENO"; then :
12680 gdb_cv_have_gnu_regex
=yes
12682 gdb_cv_have_gnu_regex
=no
12684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12687 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12688 if test $gdb_cv_have_gnu_regex = yes; then
12689 gdb_use_included_regex
=no
12693 # Check whether --with-included-regex was given.
12694 if test "${with_included_regex+set}" = set; then :
12695 withval
=$with_included_regex; gdb_with_regex
=$withval
12697 gdb_with_regex
=$gdb_use_included_regex
12700 if test "$gdb_with_regex" = yes; then
12702 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12706 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12707 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12708 #include <sys/proc.h>
12711 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
12713 cat >>confdefs.h
<<_ACEOF
12714 #define HAVE_STRUCT_THREAD_TD_PCB 1
12721 # See if <sys/lwp.h> defines `struct lwp`.
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12723 $as_echo_n "checking for struct lwp... " >&6; }
12724 if test "${gdb_cv_struct_lwp+set}" = set; then :
12725 $as_echo_n "(cached) " >&6
12727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12728 /* end confdefs.h. */
12729 #include <sys/param.h>
12730 #include <sys/lwp.h>
12739 if ac_fn_c_try_compile
"$LINENO"; then :
12740 gdb_cv_struct_lwp
=yes
12742 gdb_cv_struct_lwp
=no
12744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12747 $as_echo "$gdb_cv_struct_lwp" >&6; }
12748 if test $gdb_cv_struct_lwp = yes; then
12750 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12754 # See if <machine/reg.h> degines `struct reg'.
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12756 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12757 if test "${gdb_cv_struct_reg+set}" = set; then :
12758 $as_echo_n "(cached) " >&6
12760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12761 /* end confdefs.h. */
12762 #include <sys/types.h>
12763 #include <machine/reg.h>
12772 if ac_fn_c_try_compile
"$LINENO"; then :
12773 gdb_cv_struct_reg
=yes
12775 gdb_cv_struct_reg
=no
12777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12780 $as_echo "$gdb_cv_struct_reg" >&6; }
12781 if test $gdb_cv_struct_reg = yes; then
12783 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12787 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12788 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12789 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
12790 #include <machine/reg.h>
12792 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
12794 cat >>confdefs.h
<<_ACEOF
12795 #define HAVE_STRUCT_REG_R_FS 1
12800 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
12801 #include <machine/reg.h>
12803 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
12805 cat >>confdefs.h
<<_ACEOF
12806 #define HAVE_STRUCT_REG_R_GS 1
12813 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
12814 # Older amd64 Linux's don't have the fs_base and gs_base members of
12815 # `struct user_regs_struct'.
12816 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>
12818 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x
""yes; then :
12820 cat >>confdefs.h
<<_ACEOF
12821 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
12826 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>
12828 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x
""yes; then :
12830 cat >>confdefs.h
<<_ACEOF
12831 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
12838 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
12840 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
12841 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
12842 $as_echo_n "(cached) " >&6
12844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12846 #include <sys/ptrace.h>
12855 if ac_fn_c_try_compile
"$LINENO"; then :
12856 gdb_cv_have_ptrace_getregs
=yes
12858 gdb_cv_have_ptrace_getregs
=no
12860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
12864 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
12865 if test $gdb_cv_have_ptrace_getregs = yes; then
12867 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
12871 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
12873 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
12874 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
12875 $as_echo_n "(cached) " >&6
12877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h. */
12879 #include <sys/ptrace.h>
12888 if ac_fn_c_try_compile
"$LINENO"; then :
12889 gdb_cv_have_ptrace_getfpxregs
=yes
12891 gdb_cv_have_ptrace_getfpxregs
=no
12893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
12897 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
12898 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
12900 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
12904 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
12906 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
12907 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
12908 $as_echo_n "(cached) " >&6
12910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h. */
12912 #include <sys/types.h>
12913 #include <sys/ptrace.h>
12922 if ac_fn_c_try_compile
"$LINENO"; then :
12923 gdb_cv_have_pt_getdbregs
=yes
12925 gdb_cv_have_pt_getdbregs
=no
12927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
12931 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
12932 if test $gdb_cv_have_pt_getdbregs = yes; then
12934 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
12938 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
12940 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
12941 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
12942 $as_echo_n "(cached) " >&6
12944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12946 #include <sys/types.h>
12947 #include <sys/ptrace.h>
12956 if ac_fn_c_try_compile
"$LINENO"; then :
12957 gdb_cv_have_pt_getxmmregs
=yes
12959 gdb_cv_have_pt_getxmmregs
=no
12961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
12965 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
12966 if test $gdb_cv_have_pt_getxmmregs = yes; then
12968 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
12972 # See if <sys/ptrace.h> supports LWP names on FreeBSD
12973 # Older FreeBSD versions don't have the pl_tdname member of
12974 # `struct ptrace_lwpinfo'.
12975 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
12977 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = x
""yes; then :
12979 cat >>confdefs.h
<<_ACEOF
12980 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
12988 # Detect which type of /proc is in use, such as for Solaris.
12990 if test "${target}" = "${host}"; then
12992 *-*-sysv4.2
* |
*-*-sysv5* )
12994 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12997 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
12999 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13003 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13005 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13011 if test "$ac_cv_header_sys_procfs_h" = yes; then
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13013 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13014 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13015 $as_echo_n "(cached) " >&6
13017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13018 /* end confdefs.h. */
13021 /* Needed for new procfs interface on sparc-solaris. */
13022 #define _STRUCTURED_PROC 1
13023 #include <sys/procfs.h>
13032 if ac_fn_c_try_compile
"$LINENO"; then :
13033 bfd_cv_have_sys_procfs_type_gregset_t
=yes
13035 bfd_cv_have_sys_procfs_type_gregset_t
=no
13038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13041 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13043 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13047 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13050 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13051 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13052 $as_echo_n "(cached) " >&6
13054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13058 /* Needed for new procfs interface on sparc-solaris. */
13059 #define _STRUCTURED_PROC 1
13060 #include <sys/procfs.h>
13069 if ac_fn_c_try_compile
"$LINENO"; then :
13070 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
13072 bfd_cv_have_sys_procfs_type_fpregset_t
=no
13075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13078 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13080 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13084 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13087 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13088 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
13091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13095 /* Needed for new procfs interface on sparc-solaris. */
13096 #define _STRUCTURED_PROC 1
13097 #include <sys/procfs.h>
13106 if ac_fn_c_try_compile
"$LINENO"; then :
13107 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
13109 bfd_cv_have_sys_procfs_type_prgregset_t
=no
13112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13115 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13117 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13121 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13124 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13125 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13126 $as_echo_n "(cached) " >&6
13128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13132 /* Needed for new procfs interface on sparc-solaris. */
13133 #define _STRUCTURED_PROC 1
13134 #include <sys/procfs.h>
13143 if ac_fn_c_try_compile
"$LINENO"; then :
13144 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
13146 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
13149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13152 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13154 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13158 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13161 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13162 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13163 $as_echo_n "(cached) " >&6
13165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h. */
13169 /* Needed for new procfs interface on sparc-solaris. */
13170 #define _STRUCTURED_PROC 1
13171 #include <sys/procfs.h>
13180 if ac_fn_c_try_compile
"$LINENO"; then :
13181 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
13183 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
13186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13189 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13191 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13195 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13198 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13199 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13200 $as_echo_n "(cached) " >&6
13202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h. */
13206 /* Needed for new procfs interface on sparc-solaris. */
13207 #define _STRUCTURED_PROC 1
13208 #include <sys/procfs.h>
13217 if ac_fn_c_try_compile
"$LINENO"; then :
13218 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
13220 bfd_cv_have_sys_procfs_type_lwpid_t
=no
13223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13226 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13228 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13232 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13235 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13236 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13237 $as_echo_n "(cached) " >&6
13239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13243 /* Needed for new procfs interface on sparc-solaris. */
13244 #define _STRUCTURED_PROC 1
13245 #include <sys/procfs.h>
13254 if ac_fn_c_try_compile
"$LINENO"; then :
13255 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
13257 bfd_cv_have_sys_procfs_type_psaddr_t
=no
13260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13263 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13265 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13269 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13272 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13273 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13274 $as_echo_n "(cached) " >&6
13276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13280 /* Needed for new procfs interface on sparc-solaris. */
13281 #define _STRUCTURED_PROC 1
13282 #include <sys/procfs.h>
13291 if ac_fn_c_try_compile
"$LINENO"; then :
13292 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
13294 bfd_cv_have_sys_procfs_type_prsysent_t
=no
13297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13300 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13302 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13306 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13309 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13310 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13311 $as_echo_n "(cached) " >&6
13313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13317 /* Needed for new procfs interface on sparc-solaris. */
13318 #define _STRUCTURED_PROC 1
13319 #include <sys/procfs.h>
13328 if ac_fn_c_try_compile
"$LINENO"; then :
13329 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
13331 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
13334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13337 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13339 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13343 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13346 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13347 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13348 $as_echo_n "(cached) " >&6
13350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13354 /* Needed for new procfs interface on sparc-solaris. */
13355 #define _STRUCTURED_PROC 1
13356 #include <sys/procfs.h>
13360 pr_sigaction64_t avar
13365 if ac_fn_c_try_compile
"$LINENO"; then :
13366 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
13368 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
13371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13374 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13376 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13380 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13383 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13384 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13385 $as_echo_n "(cached) " >&6
13387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13388 /* end confdefs.h. */
13391 /* Needed for new procfs interface on sparc-solaris. */
13392 #define _STRUCTURED_PROC 1
13393 #include <sys/procfs.h>
13397 pr_siginfo64_t avar
13402 if ac_fn_c_try_compile
"$LINENO"; then :
13403 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
13405 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
13408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13411 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13413 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13417 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13423 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13425 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13426 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13427 $as_echo_n "(cached) " >&6
13429 if test "$cross_compiling" = yes; then :
13430 gdb_cv_prfpregset_t_broken
=yes
13432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13434 #include <sys/procfs.h>
13437 if (sizeof (prfpregset_t) == sizeof (void *))
13442 if ac_fn_c_try_run
"$LINENO"; then :
13443 gdb_cv_prfpregset_t_broken
=no
13445 gdb_cv_prfpregset_t_broken
=yes
13447 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13448 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13454 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13455 if test $gdb_cv_prfpregset_t_broken = yes; then
13457 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13463 # Check if the compiler supports the `long long' type.
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13466 $as_echo_n "checking for long long support in compiler... " >&6; }
13467 if test "${gdb_cv_c_long_long+set}" = set; then :
13468 $as_echo_n "(cached) " >&6
13470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13471 /* end confdefs.h. */
13472 extern long long foo;
13476 switch (foo & 2) { case 0: return 1; }
13481 if ac_fn_c_try_compile
"$LINENO"; then :
13482 gdb_cv_c_long_long
=yes
13484 gdb_cv_c_long_long
=no
13486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13489 $as_echo "$gdb_cv_c_long_long" >&6; }
13490 if test $gdb_cv_c_long_long != yes; then
13491 # libdecnumber requires long long.
13492 as_fn_error
"Compiler must support long long for GDB." "$LINENO" 5
13495 # Check if the compiler and runtime support printing long longs.
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13498 $as_echo_n "checking for long long support in printf... " >&6; }
13499 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13500 $as_echo_n "(cached) " >&6
13502 if test "$cross_compiling" = yes; then :
13503 gdb_cv_printf_has_long_long
=no
13505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13506 /* end confdefs.h. */
13507 $ac_includes_default
13513 l = (l << 16) + 0x0123;
13514 l = (l << 16) + 0x4567;
13515 l = (l << 16) + 0x89ab;
13516 l = (l << 16) + 0xcdef;
13517 sprintf (buf, "0x%016llx", l);
13518 return (strcmp ("0x0123456789abcdef", buf));
13523 if ac_fn_c_try_run
"$LINENO"; then :
13524 gdb_cv_printf_has_long_long
=yes
13526 gdb_cv_printf_has_long_long
=no
13528 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13529 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13534 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13535 if test $gdb_cv_printf_has_long_long = yes; then
13537 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13541 # Check if the compiler and runtime support printing decfloats.
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13544 $as_echo_n "checking for decfloat support in printf... " >&6; }
13545 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13546 $as_echo_n "(cached) " >&6
13548 if test "$cross_compiling" = yes; then :
13549 gdb_cv_printf_has_decfloat
=no
13551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553 $ac_includes_default
13558 _Decimal32 d32 = 1.2345df;
13559 _Decimal64 d64 = 1.2345dd;
13560 _Decimal128 d128 = 1.2345dl;
13561 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
13562 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
13567 if ac_fn_c_try_run
"$LINENO"; then :
13568 gdb_cv_printf_has_decfloat
=yes
13570 gdb_cv_printf_has_decfloat
=no
13572 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13573 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
13578 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
13579 if test $gdb_cv_printf_has_decfloat = yes; then
13581 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
13585 # Check if the compiler supports the `long double' type. We can't use
13586 # AC_C_LONG_DOUBLE because that one does additional checks on the
13587 # constants defined in <float.h> that fail on some systems,
13588 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
13591 $as_echo_n "checking for long double support in compiler... " >&6; }
13592 if test "${gdb_cv_c_long_double+set}" = set; then :
13593 $as_echo_n "(cached) " >&6
13595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h. */
13599 if ac_fn_c_try_compile
"$LINENO"; then :
13600 gdb_cv_c_long_double
=yes
13602 gdb_cv_c_long_double
=no
13604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
13607 $as_echo "$gdb_cv_c_long_double" >&6; }
13608 if test $gdb_cv_c_long_double = yes; then
13610 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13614 # Check if the compiler and runtime support printing long doubles.
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
13617 $as_echo_n "checking for long double support in printf... " >&6; }
13618 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
13619 $as_echo_n "(cached) " >&6
13621 if test "$cross_compiling" = yes; then :
13622 gdb_cv_printf_has_long_double
=no
13624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13625 /* end confdefs.h. */
13626 $ac_includes_default
13631 long double f = 3.141592653;
13632 sprintf (buf, "%Lg", f);
13633 return (strncmp ("3.14159", buf, 7));
13638 if ac_fn_c_try_run
"$LINENO"; then :
13639 gdb_cv_printf_has_long_double
=yes
13641 gdb_cv_printf_has_long_double
=no
13643 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13644 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
13649 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
13650 if test $gdb_cv_printf_has_long_double = yes; then
13652 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
13656 # Check if the compiler and runtime support scanning long doubles.
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
13659 $as_echo_n "checking for long double support in scanf... " >&6; }
13660 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
13661 $as_echo_n "(cached) " >&6
13663 if test "$cross_compiling" = yes; then :
13664 gdb_cv_scanf_has_long_double
=no
13666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13667 /* end confdefs.h. */
13672 char *buf = "3.141592653";
13674 sscanf (buf, "%Lg", &f);
13675 return !(f > 3.14159 && f < 3.14160);
13680 if ac_fn_c_try_run
"$LINENO"; then :
13681 gdb_cv_scanf_has_long_double
=yes
13683 gdb_cv_scanf_has_long_double
=no
13685 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13686 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
13691 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
13692 if test $gdb_cv_scanf_has_long_double = yes; then
13694 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
13701 $as_echo_n "checking for -bbigtoc option... " >&6; }
13702 if test "${gdb_cv_bigtoc+set}" = set; then :
13703 $as_echo_n "(cached) " >&6
13706 SAVE_LDFLAGS
=$LDFLAGS
13709 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
13710 *) gdb_cv_bigtoc
=-bbigtoc ;;
13713 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
13714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h. */
13725 if ac_fn_c_try_link
"$LINENO"; then :
13730 rm -f core conftest.err conftest.
$ac_objext \
13731 conftest
$ac_exeext conftest.
$ac_ext
13732 LDFLAGS
="${SAVE_LDFLAGS}"
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
13736 $as_echo "$gdb_cv_bigtoc" >&6; }
13737 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
13742 $as_echo_n "checking for the dynamic export flag... " >&6; }
13744 if test "${gdb_native}" = yes; then
13745 # The dynamically loaded libthread_db needs access to symbols in the gdb
13746 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
13747 # may not be supported there.
13748 old_LDFLAGS
="$LDFLAGS"
13749 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
13750 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
13751 LDFLAGS
="$LDFLAGS $RDYNAMIC"
13752 if test "${have_libpython}" = no
; then
13753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13764 if ac_fn_c_try_link
"$LINENO"; then :
13767 rm -f core conftest.err conftest.
$ac_objext \
13768 conftest
$ac_exeext conftest.
$ac_ext
13770 # Workaround http://bugs.python.org/issue4434 where static
13771 # libpythonX.Y.a would get its symbols required for
13772 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
13773 # Problem does not happen for the recommended libpythonX.Y.so linkage.
13774 old_CFLAGS
="$CFLAGS"
13775 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
13777 LIBS
="$LIBS $PYTHON_LIBS"
13778 if test "$cross_compiling" = yes; then :
13781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h. */
13783 #include "${have_libpython}/Python.h"
13789 err = PyRun_SimpleString ("import itertools\n");
13791 return err == 0 ? 0 : 1;
13796 if ac_fn_c_try_run
"$LINENO"; then :
13799 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13800 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13804 CFLAGS
="$old_CFLAGS"
13806 LDFLAGS
="$old_LDFLAGS"
13808 if $dynamic_list; then
13809 found
="-Wl,--dynamic-list"
13810 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
13813 RDYNAMIC
="-rdynamic"
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
13817 $as_echo "$found" >&6; }
13820 if test ${build} = ${host} -a ${host} = ${target} ; then
13823 # See if thread_db library is around for Solaris thread debugging.
13824 # Note that we must explicitly test for version 1 of the library
13825 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
13828 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
13829 if test -f /usr
/lib
/libthread_db.so
.1 ; then
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13831 $as_echo "yes" >&6; }
13833 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
13835 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
13836 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13838 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13839 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13840 $as_echo_n "(cached) " >&6
13842 ac_check_lib_save_LIBS
=$LIBS
13844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13847 /* Override any GCC internal prototype to avoid an error.
13848 Use char because int might match the return type of a GCC
13849 builtin and then its argument prototype would still apply. */
13862 if ac_fn_c_try_link
"$LINENO"; then :
13863 ac_cv_lib_dl_dlopen
=yes
13865 ac_cv_lib_dl_dlopen
=no
13867 rm -f core conftest.err conftest.
$ac_objext \
13868 conftest
$ac_exeext conftest.
$ac_ext
13869 LIBS
=$ac_check_lib_save_LIBS
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13872 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13873 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
13874 cat >>confdefs.h
<<_ACEOF
13875 #define HAVE_LIBDL 1
13882 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
13883 # Sun randomly tweaked the prototypes in <proc_service.h>
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
13886 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
13887 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
13888 $as_echo_n "(cached) " >&6
13891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h. */
13894 #include <proc_service.h>
13895 ps_err_e ps_pdwrite
13896 (struct ps_prochandle*, psaddr_t, const void*, size_t);
13906 if ac_fn_c_try_compile
"$LINENO"; then :
13907 gdb_cv_proc_service_is_old
=no
13909 gdb_cv_proc_service_is_old
=yes
13911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
13916 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
13917 if test $gdb_cv_proc_service_is_old = yes; then
13919 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13924 $as_echo "no" >&6; }
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
13929 $as_echo_n "checking for AiX thread debugging library... " >&6; }
13930 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
13931 $as_echo_n "(cached) " >&6
13933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13935 #include <sys/pthdebug.h>
13939 #ifndef PTHDB_VERSION_3
13946 if ac_fn_c_try_compile
"$LINENO"; then :
13947 gdb_cv_have_aix_thread_debug
=yes
13949 gdb_cv_have_aix_thread_debug
=no
13951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13955 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13956 if test $gdb_cv_have_aix_thread_debug = yes; then
13957 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
13958 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
13959 LIBS
="$LIBS -lpthdebug"
13961 # Older versions of AIX do not provide the declaration for
13962 # the getthrds function (it appears that it was introduced
13964 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
13966 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
13972 cat >>confdefs.h
<<_ACEOF
13973 #define HAVE_DECL_GETTHRDS $ac_have_decl
13982 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13984 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13985 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13986 $as_echo_n "(cached) " >&6
13988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13990 #include <thread_db.h>
13994 int i = TD_NOTALLOC;
13999 if ac_fn_c_try_compile
"$LINENO"; then :
14000 gdb_cv_thread_db_h_has_td_notalloc
=yes
14002 gdb_cv_thread_db_h_has_td_notalloc
=no
14005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14009 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14011 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14012 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14013 $as_echo_n "(cached) " >&6
14015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h. */
14017 #include <thread_db.h>
14021 int i = TD_VERSION;
14026 if ac_fn_c_try_compile
"$LINENO"; then :
14027 gdb_cv_thread_db_h_has_td_version
=yes
14029 gdb_cv_thread_db_h_has_td_version
=no
14032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14036 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14038 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14039 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14040 $as_echo_n "(cached) " >&6
14042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14044 #include <thread_db.h>
14053 if ac_fn_c_try_compile
"$LINENO"; then :
14054 gdb_cv_thread_db_h_has_td_notls
=yes
14056 gdb_cv_thread_db_h_has_td_notls
=no
14059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14063 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14065 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14067 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14070 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14072 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14075 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14077 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14081 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14083 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
14089 cat >>confdefs.h
<<_ACEOF
14090 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14094 if test "$cross_compiling" = yes; then :
14095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h. */
14097 #include <sys/personality.h>
14102 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14103 # define ADDR_NO_RANDOMIZE 0x0040000
14105 /* Test the flag could be set and stays set. */
14106 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14107 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14113 if ac_fn_c_try_link
"$LINENO"; then :
14114 have_personality
=true
14116 have_personality
=false
14118 rm -f core conftest.err conftest.
$ac_objext \
14119 conftest
$ac_exeext conftest.
$ac_ext
14121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14122 /* end confdefs.h. */
14123 #include <sys/personality.h>
14128 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14129 # define ADDR_NO_RANDOMIZE 0x0040000
14131 /* Test the flag could be set and stays set. */
14132 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14133 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14139 if ac_fn_c_try_run
"$LINENO"; then :
14140 have_personality
=true
14142 have_personality
=false
14144 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14145 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14148 if $have_personality
14151 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14164 cat >>confdefs.h
<<_ACEOF
14165 #define GDBINIT "$gdbinit"
14170 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
14171 # except that the argument to --with-sysroot is optional.
14172 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
14173 if test "x$with_sysroot" = xyes
; then
14174 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
14177 # Check whether --with-sysroot was given.
14178 if test "${with_sysroot+set}" = set; then :
14179 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
14181 TARGET_SYSTEM_ROOT
=
14185 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
14186 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14187 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
14188 ac_define_dir
=`eval echo $ac_define_dir`
14190 cat >>confdefs.h
<<_ACEOF
14191 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
14197 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14198 if test "x$prefix" = xNONE
; then
14199 test_prefix
=/usr
/local
14201 test_prefix
=$prefix
14204 test_prefix
=$exec_prefix
14207 case ${ac_define_dir} in
14208 "${test_prefix}"|
"${test_prefix}/"*|\
14209 '${exec_prefix}'|
'${exec_prefix}/'*)
14214 cat >>confdefs.h
<<_ACEOF
14215 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
14222 # Check whether --with-system-gdbinit was given.
14223 if test "${with_system_gdbinit+set}" = set; then :
14224 withval
=$with_system_gdbinit;
14225 SYSTEM_GDBINIT
=$withval
14231 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
14232 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14233 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
14234 ac_define_dir
=`eval echo $ac_define_dir`
14236 cat >>confdefs.h
<<_ACEOF
14237 #define SYSTEM_GDBINIT "$ac_define_dir"
14243 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14244 if test "x$prefix" = xNONE
; then
14245 test_prefix
=/usr
/local
14247 test_prefix
=$prefix
14250 test_prefix
=$exec_prefix
14253 case ${ac_define_dir} in
14254 "${test_prefix}"|
"${test_prefix}/"*|\
14255 '${exec_prefix}'|
'${exec_prefix}/'*)
14260 cat >>confdefs.h
<<_ACEOF
14261 #define SYSTEM_GDBINIT_RELOCATABLE $value
14268 # Check whether --enable-werror was given.
14269 if test "${enable_werror+set}" = set; then :
14270 enableval
=$enable_werror; case "${enableval}" in
14271 yes | y
) ERROR_ON_WARNING
="yes" ;;
14272 no | n
) ERROR_ON_WARNING
="no" ;;
14273 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14278 # Enable -Werror by default when using gcc. Turn it off for releases.
14279 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
14280 ERROR_ON_WARNING
=yes
14284 if test "${ERROR_ON_WARNING}" = yes ; then
14285 WERROR_CFLAGS
="-Werror"
14288 # These options work in either C or C++ modes.
14289 build_warnings
="-Wall -Wpointer-arith \
14290 -Wno-unused -Wunused-value -Wunused-function \
14291 -Wno-switch -Wno-char-subscripts \
14294 # Now add in C and C++ specific options, depending on mode.
14295 if test "$enable_build_with_cxx" = "yes"; then
14296 build_warnings
="$build_warnings -Wno-sign-compare -Wno-write-strings \
14299 build_warnings
="$build_warnings -Wpointer-sign -Wmissing-prototypes \
14300 -Wdeclaration-after-statement -Wmissing-parameter-type \
14301 -Wold-style-declaration -Wold-style-definition"
14304 # Enable -Wno-format by default when using gcc on mingw since many
14305 # GCC versions complain about %I64.
14307 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
14308 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
14311 # Check whether --enable-build-warnings was given.
14312 if test "${enable_build_warnings+set}" = set; then :
14313 enableval
=$enable_build_warnings; case "${enableval}" in
14315 no
) build_warnings
="-w";;
14316 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14317 build_warnings
="${build_warnings} ${t}";;
14318 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14319 build_warnings
="${t} ${build_warnings}";;
14320 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14322 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14323 echo "Setting compiler warning flags = $build_warnings" 6>&1
14326 # Check whether --enable-gdb-build-warnings was given.
14327 if test "${enable_gdb_build_warnings+set}" = set; then :
14328 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
14330 no
) build_warnings
="-w";;
14331 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14332 build_warnings
="${build_warnings} ${t}";;
14333 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14334 build_warnings
="${t} ${build_warnings}";;
14335 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14337 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14338 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14342 # The set of warnings supported by a C++ compiler is not the same as
14343 # of the C compiler.
14344 if test "$enable_build_with_cxx" = "yes"; then
14346 ac_cpp
='$CXXCPP $CPPFLAGS'
14347 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14348 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14349 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14354 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14357 $as_echo_n "checking compiler warning flags... " >&6; }
14358 # Separate out the -Werror flag as some files just cannot be
14359 # compiled with it enabled.
14360 for w
in ${build_warnings}; do
14361 # GCC does not complain about -Wno-unknown-warning. Invert
14362 # and test -Wunknown-warning instead.
14365 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
14371 -Werr*) WERROR_CFLAGS
=-Werror ;;
14373 # Check whether GCC accepts it.
14374 saved_CFLAGS
="$CFLAGS"
14375 CFLAGS
="$CFLAGS $wtest"
14376 saved_CXXFLAGS
="$CXXFLAGS"
14377 CXXFLAGS
="$CXXFLAGS $wtest"
14378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h. */
14389 if ac_fn_cxx_try_compile
"$LINENO"; then :
14390 WARN_CFLAGS
="${WARN_CFLAGS} $w"
14392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14393 CFLAGS
="$saved_CFLAGS"
14394 CXXFLAGS
="$saved_CXXFLAGS"
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14398 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14403 if test "$enable_build_with_cxx" = "yes"; then
14405 ac_cpp='$CPP $CPPFLAGS'
14406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14413 # In the Cygwin environment, we need some additional flags.
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
14415 $as_echo_n "checking
for cygwin...
" >&6; }
14416 if test "${gdb_cv_os_cygwin+set}" = set; then :
14417 $as_echo_n "(cached
) " >&6
14419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420 /* end confdefs.h. */
14422 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14426 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14427 $EGREP "^lose$
" >/dev/null 2>&1; then :
14428 gdb_cv_os_cygwin=yes
14430 gdb_cv_os_cygwin=no
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
14436 $as_echo "$gdb_cv_os_cygwin" >&6; }
14439 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
14441 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14442 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14443 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
14447 # libreadline needs libuser32.a in a cygwin environment
14449 if test x$gdb_cv_os_cygwin = xyes; then
14450 WIN32LIBS="-luser32"
14451 case "${target}" in
14452 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14457 # The ser-tcp.c module requires sockets.
14461 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14463 WIN32LIBS
="$WIN32LIBS -lws2_32"
14468 # Add ELF support to GDB, but only if BFD includes ELF support.
14471 OLD_LDFLAGS
=$LDFLAGS
14473 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14474 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14475 # always want our bfd.
14476 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14477 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14478 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14479 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14480 LIBS
="-lbfd -liberty -lz $intl $LIBS"
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14482 $as_echo_n "checking for ELF support in BFD... " >&6; }
14483 if test "${gdb_cv_var_elf+set}" = set; then :
14484 $as_echo_n "(cached) " >&6
14486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h. */
14488 #include <stdlib.h>
14490 #include "elf-bfd.h"
14495 return bfd_get_elf_phdr_upper_bound (NULL);
14500 if ac_fn_c_try_link
"$LINENO"; then :
14505 rm -f core conftest.err conftest.
$ac_objext \
14506 conftest
$ac_exeext conftest.
$ac_ext
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14509 $as_echo "$gdb_cv_var_elf" >&6; }
14511 LDFLAGS
=$OLD_LDFLAGS
14513 if test $gdb_cv_var_elf = yes; then
14514 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
14516 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14518 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14519 if test "$plugins" = "yes"; then
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14521 $as_echo_n "checking for library containing dlopen... " >&6; }
14522 if test "${ac_cv_search_dlopen+set}" = set; then :
14523 $as_echo_n "(cached) " >&6
14525 ac_func_search_save_LIBS
=$LIBS
14526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14527 /* end confdefs.h. */
14529 /* Override any GCC internal prototype to avoid an error.
14530 Use char because int might match the return type of a GCC
14531 builtin and then its argument prototype would still apply. */
14544 for ac_lib
in '' dl
; do
14545 if test -z "$ac_lib"; then
14546 ac_res
="none required"
14549 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14551 if ac_fn_c_try_link
"$LINENO"; then :
14552 ac_cv_search_dlopen
=$ac_res
14554 rm -f core conftest.err conftest.
$ac_objext \
14556 if test "${ac_cv_search_dlopen+set}" = set; then :
14560 if test "${ac_cv_search_dlopen+set}" = set; then :
14563 ac_cv_search_dlopen
=no
14565 rm conftest.
$ac_ext
14566 LIBS
=$ac_func_search_save_LIBS
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14569 $as_echo "$ac_cv_search_dlopen" >&6; }
14570 ac_res
=$ac_cv_search_dlopen
14571 if test "$ac_res" != no
; then :
14572 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14579 # Add macho support to GDB, but only if BFD includes it.
14582 OLD_LDFLAGS
=$LDFLAGS
14584 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14585 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14586 # always want our bfd.
14587 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14588 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14589 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14590 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14591 LIBS
="-lbfd -liberty -lz $intl $LIBS"
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
14593 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
14594 if test "${gdb_cv_var_macho+set}" = set; then :
14595 $as_echo_n "(cached) " >&6
14597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h. */
14599 #include <stdlib.h>
14601 #include "mach-o.h"
14606 return bfd_mach_o_lookup_command (NULL, 0, NULL);
14611 if ac_fn_c_try_link
"$LINENO"; then :
14612 gdb_cv_var_macho
=yes
14614 gdb_cv_var_macho
=no
14616 rm -f core conftest.err conftest.
$ac_objext \
14617 conftest
$ac_exeext conftest.
$ac_ext
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
14620 $as_echo "$gdb_cv_var_macho" >&6; }
14622 LDFLAGS
=$OLD_LDFLAGS
14624 if test $gdb_cv_var_macho = yes; then
14625 CONFIG_OBS
="$CONFIG_OBS machoread.o"
14628 # Add any host-specific objects to GDB.
14629 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
14631 # If building on ELF, look for lzma support for embedded compressed debug info.
14632 if test $gdb_cv_var_elf = yes; then
14634 # Check whether --with-lzma was given.
14635 if test "${with_lzma+set}" = set; then :
14636 withval
=$with_lzma;
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
14642 $as_echo_n "checking whether to use lzma... " >&6; }
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
14644 $as_echo "$with_lzma" >&6; }
14646 if test "${with_lzma}" != no
; then
14657 acl_save_prefix
="$prefix"
14658 prefix
="$acl_final_prefix"
14659 acl_save_exec_prefix
="$exec_prefix"
14660 exec_prefix
="$acl_final_exec_prefix"
14662 eval additional_includedir
=\"$includedir\"
14663 eval additional_libdir
=\"$libdir\"
14665 exec_prefix
="$acl_save_exec_prefix"
14666 prefix
="$acl_save_prefix"
14669 # Check whether --with-liblzma-prefix was given.
14670 if test "${with_liblzma_prefix+set}" = set; then :
14671 withval
=$with_liblzma_prefix;
14672 if test "X$withval" = "Xno"; then
14675 if test "X$withval" = "X"; then
14677 acl_save_prefix
="$prefix"
14678 prefix
="$acl_final_prefix"
14679 acl_save_exec_prefix
="$exec_prefix"
14680 exec_prefix
="$acl_final_exec_prefix"
14682 eval additional_includedir
=\"$includedir\"
14683 eval additional_libdir
=\"$libdir\"
14685 exec_prefix
="$acl_save_exec_prefix"
14686 prefix
="$acl_save_prefix"
14689 additional_includedir
="$withval/include"
14690 additional_libdir
="$withval/lib"
14701 names_already_handled
=
14702 names_next_round
='lzma '
14703 while test -n "$names_next_round"; do
14704 names_this_round
="$names_next_round"
14706 for name
in $names_this_round; do
14708 for n
in $names_already_handled; do
14709 if test "$n" = "$name"; then
14710 already_handled
=yes
14714 if test -z "$already_handled"; then
14715 names_already_handled
="$names_already_handled $name"
14716 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14717 eval value
=\"\
$HAVE_LIB$uppername\"
14718 if test -n "$value"; then
14719 if test "$value" = yes; then
14720 eval value
=\"\
$LIB$uppername\"
14721 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
14722 eval value
=\"\
$LTLIB$uppername\"
14723 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
14732 if test $use_additional = yes; then
14733 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14734 found_dir
="$additional_libdir"
14735 found_so
="$additional_libdir/lib$name.$shlibext"
14736 if test -f "$additional_libdir/lib$name.la"; then
14737 found_la
="$additional_libdir/lib$name.la"
14740 if test -f "$additional_libdir/lib$name.$libext"; then
14741 found_dir
="$additional_libdir"
14742 found_a
="$additional_libdir/lib$name.$libext"
14743 if test -f "$additional_libdir/lib$name.la"; then
14744 found_la
="$additional_libdir/lib$name.la"
14749 if test "X$found_dir" = "X"; then
14750 for x
in $LDFLAGS $LTLIBLZMA; do
14752 acl_save_prefix
="$prefix"
14753 prefix
="$acl_final_prefix"
14754 acl_save_exec_prefix
="$exec_prefix"
14755 exec_prefix
="$acl_final_exec_prefix"
14757 exec_prefix
="$acl_save_exec_prefix"
14758 prefix
="$acl_save_prefix"
14762 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14763 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14765 found_so
="$dir/lib$name.$shlibext"
14766 if test -f "$dir/lib$name.la"; then
14767 found_la
="$dir/lib$name.la"
14770 if test -f "$dir/lib$name.$libext"; then
14772 found_a
="$dir/lib$name.$libext"
14773 if test -f "$dir/lib$name.la"; then
14774 found_la
="$dir/lib$name.la"
14780 if test "X$found_dir" != "X"; then
14785 if test "X$found_dir" != "X"; then
14786 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
14787 if test "X$found_so" != "X"; then
14788 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14789 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14792 for x
in $ltrpathdirs; do
14793 if test "X$x" = "X$found_dir"; then
14798 if test -z "$haveit"; then
14799 ltrpathdirs
="$ltrpathdirs $found_dir"
14801 if test "$hardcode_direct" = yes; then
14802 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14804 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14805 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14807 for x
in $rpathdirs; do
14808 if test "X$x" = "X$found_dir"; then
14813 if test -z "$haveit"; then
14814 rpathdirs
="$rpathdirs $found_dir"
14818 for x
in $LDFLAGS $LIBLZMA; do
14820 acl_save_prefix
="$prefix"
14821 prefix
="$acl_final_prefix"
14822 acl_save_exec_prefix
="$exec_prefix"
14823 exec_prefix
="$acl_final_exec_prefix"
14825 exec_prefix
="$acl_save_exec_prefix"
14826 prefix
="$acl_save_prefix"
14828 if test "X$x" = "X-L$found_dir"; then
14833 if test -z "$haveit"; then
14834 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
14836 if test "$hardcode_minus_L" != no
; then
14837 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14839 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
14845 if test "X$found_a" != "X"; then
14846 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
14848 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
14851 additional_includedir
=
14852 case "$found_dir" in
14854 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14855 additional_includedir
="$basedir/include"
14858 if test "X$additional_includedir" != "X"; then
14859 if test "X$additional_includedir" != "X/usr/include"; then
14861 if test "X$additional_includedir" = "X/usr/local/include"; then
14862 if test -n "$GCC"; then
14864 linux
*) haveit
=yes;;
14868 if test -z "$haveit"; then
14869 for x
in $CPPFLAGS $INCLZMA; do
14871 acl_save_prefix
="$prefix"
14872 prefix
="$acl_final_prefix"
14873 acl_save_exec_prefix
="$exec_prefix"
14874 exec_prefix
="$acl_final_exec_prefix"
14876 exec_prefix
="$acl_save_exec_prefix"
14877 prefix
="$acl_save_prefix"
14879 if test "X$x" = "X-I$additional_includedir"; then
14884 if test -z "$haveit"; then
14885 if test -d "$additional_includedir"; then
14886 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
14892 if test -n "$found_la"; then
14893 save_libdir
="$libdir"
14894 case "$found_la" in
14895 */* |
*\\*) .
"$found_la" ;;
14896 *) .
"./$found_la" ;;
14898 libdir
="$save_libdir"
14899 for dep
in $dependency_libs; do
14902 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14903 if test "X$additional_libdir" != "X/usr/lib"; then
14905 if test "X$additional_libdir" = "X/usr/local/lib"; then
14906 if test -n "$GCC"; then
14908 linux
*) haveit
=yes;;
14912 if test -z "$haveit"; then
14914 for x
in $LDFLAGS $LIBLZMA; do
14916 acl_save_prefix
="$prefix"
14917 prefix
="$acl_final_prefix"
14918 acl_save_exec_prefix
="$exec_prefix"
14919 exec_prefix
="$acl_final_exec_prefix"
14921 exec_prefix
="$acl_save_exec_prefix"
14922 prefix
="$acl_save_prefix"
14924 if test "X$x" = "X-L$additional_libdir"; then
14929 if test -z "$haveit"; then
14930 if test -d "$additional_libdir"; then
14931 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
14935 for x
in $LDFLAGS $LTLIBLZMA; do
14937 acl_save_prefix
="$prefix"
14938 prefix
="$acl_final_prefix"
14939 acl_save_exec_prefix
="$exec_prefix"
14940 exec_prefix
="$acl_final_exec_prefix"
14942 exec_prefix
="$acl_save_exec_prefix"
14943 prefix
="$acl_save_prefix"
14945 if test "X$x" = "X-L$additional_libdir"; then
14950 if test -z "$haveit"; then
14951 if test -d "$additional_libdir"; then
14952 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
14959 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14960 if test "$enable_rpath" != no
; then
14962 for x
in $rpathdirs; do
14963 if test "X$x" = "X$dir"; then
14968 if test -z "$haveit"; then
14969 rpathdirs
="$rpathdirs $dir"
14972 for x
in $ltrpathdirs; do
14973 if test "X$x" = "X$dir"; then
14978 if test -z "$haveit"; then
14979 ltrpathdirs
="$ltrpathdirs $dir"
14984 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14987 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14990 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
14991 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
14997 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
14998 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
15004 if test "X$rpathdirs" != "X"; then
15005 if test -n "$hardcode_libdir_separator"; then
15007 for found_dir
in $rpathdirs; do
15008 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15010 acl_save_libdir
="$libdir"
15012 eval flag
=\"$hardcode_libdir_flag_spec\"
15013 libdir
="$acl_save_libdir"
15014 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
15016 for found_dir
in $rpathdirs; do
15017 acl_save_libdir
="$libdir"
15018 libdir
="$found_dir"
15019 eval flag
=\"$hardcode_libdir_flag_spec\"
15020 libdir
="$acl_save_libdir"
15021 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
15025 if test "X$ltrpathdirs" != "X"; then
15026 for found_dir
in $ltrpathdirs; do
15027 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
15032 ac_save_CPPFLAGS
="$CPPFLAGS"
15034 for element
in $INCLZMA; do
15036 for x
in $CPPFLAGS; do
15038 acl_save_prefix
="$prefix"
15039 prefix
="$acl_final_prefix"
15040 acl_save_exec_prefix
="$exec_prefix"
15041 exec_prefix
="$acl_final_exec_prefix"
15043 exec_prefix
="$acl_save_exec_prefix"
15044 prefix
="$acl_save_prefix"
15046 if test "X$x" = "X$element"; then
15051 if test -z "$haveit"; then
15052 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
15058 $as_echo_n "checking for liblzma... " >&6; }
15059 if test "${ac_cv_liblzma+set}" = set; then :
15060 $as_echo_n "(cached) " >&6
15063 ac_save_LIBS
="$LIBS"
15064 LIBS
="$LIBS $LIBLZMA"
15065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h. */
15071 lzma_index_iter iter;
15072 lzma_index_iter_init (&iter, 0);
15073 lzma_mf_is_supported (LZMA_MF_HC3);
15078 if ac_fn_c_try_link
"$LINENO"; then :
15083 rm -f core conftest.err conftest.
$ac_objext \
15084 conftest
$ac_exeext conftest.
$ac_ext
15085 LIBS
="$ac_save_LIBS"
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
15089 $as_echo "$ac_cv_liblzma" >&6; }
15090 if test "$ac_cv_liblzma" = yes; then
15093 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
15096 $as_echo_n "checking how to link with liblzma... " >&6; }
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
15098 $as_echo "$LIBLZMA" >&6; }
15101 CPPFLAGS
="$ac_save_CPPFLAGS"
15111 if test "$HAVE_LIBLZMA" != yes; then
15112 if test "$with_lzma" = yes; then
15113 as_fn_error
"missing liblzma for --with-lzma" "$LINENO" 5
15119 LIBGUI
="../libgui/src/libgui.a"
15120 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
15129 *-*-cygwin* |
*-*-mingw* )
15138 if test "${enable_gdbtk}" = "yes"; then
15140 # Gdbtk must have an absolute path to srcdir in order to run
15141 # properly when not installed.
15144 GDBTK_SRC_DIR
=`pwd`
15149 # Ok, lets find the tcl configuration
15150 # First, look for one uninstalled.
15151 # the alternative search directory is invoked by --with-tcl
15154 if test x
"${no_tcl}" = x
; then
15155 # we reset no_tcl in case something fails here
15158 # Check whether --with-tcl was given.
15159 if test "${with_tcl+set}" = set; then :
15160 withval
=$with_tcl; with_tclconfig
=${withval}
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15164 $as_echo_n "checking for Tcl configuration... " >&6; }
15165 if test "${ac_cv_c_tclconfig+set}" = set; then :
15166 $as_echo_n "(cached) " >&6
15170 # First check to see if --with-tcl was specified.
15172 *-*-cygwin*) platDir
="win" ;;
15173 *) platDir
="unix" ;;
15175 if test x
"${with_tclconfig}" != x
; then
15176 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15177 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
15179 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15183 # then check for a private Tcl installation
15184 if test x
"${ac_cv_c_tclconfig}" = x
; then
15187 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15188 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15189 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15191 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15192 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15193 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15195 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15196 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15197 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15198 if test -f "$i/$platDir/tclConfig.sh" ; then
15199 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15205 # on Darwin, check in Framework installation locations
15206 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
15207 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15208 `ls -d /Library/Frameworks 2>/dev/null` \
15209 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15210 `ls -d /System/Library/Frameworks 2>/dev/null` \
15212 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15213 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
15219 # check in a few common install locations
15220 if test x
"${ac_cv_c_tclconfig}" = x
; then
15221 for i
in `ls -d ${libdir} 2>/dev/null` \
15222 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15223 `ls -d ${prefix}/lib 2>/dev/null` \
15224 `ls -d /usr/local/lib 2>/dev/null` \
15225 `ls -d /usr/contrib/lib 2>/dev/null` \
15226 `ls -d /usr/lib 2>/dev/null` \
15228 if test -f "$i/tclConfig.sh" ; then
15229 ac_cv_c_tclconfig
=`(cd $i; pwd)`
15235 # check in a few other private locations
15236 if test x
"${ac_cv_c_tclconfig}" = x
; then
15239 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15240 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15241 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15242 if test -f "$i/$platDir/tclConfig.sh" ; then
15243 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15252 if test x
"${ac_cv_c_tclconfig}" = x
; then
15253 TCL_BIN_DIR
="# no Tcl configs found"
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15255 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15258 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15260 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15265 # If $no_tk is nonempty, then we can't do Tk, and there is no
15266 # point to doing Tcl.
15269 # Ok, lets find the tk configuration
15270 # First, look for one uninstalled.
15271 # the alternative search directory is invoked by --with-tk
15274 if test x
"${no_tk}" = x
; then
15275 # we reset no_tk in case something fails here
15278 # Check whether --with-tk was given.
15279 if test "${with_tk+set}" = set; then :
15280 withval
=$with_tk; with_tkconfig
=${withval}
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15284 $as_echo_n "checking for Tk configuration... " >&6; }
15285 if test "${ac_cv_c_tkconfig+set}" = set; then :
15286 $as_echo_n "(cached) " >&6
15290 # First check to see if --with-tkconfig was specified.
15291 if test x
"${with_tkconfig}" != x
; then
15292 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15293 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
15295 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15299 # then check for a private Tk library
15301 *-*-cygwin*) platDir
="win" ;;
15302 *) platDir
="unix" ;;
15304 if test x
"${ac_cv_c_tkconfig}" = x
; then
15307 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15308 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15309 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15311 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15312 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15313 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15315 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15316 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15317 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15318 if test -f "$i/$platDir/tkConfig.sh" ; then
15319 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15325 # on Darwin, check in Framework installation locations
15326 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
15327 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15328 `ls -d /Library/Frameworks 2>/dev/null` \
15329 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15330 `ls -d /System/Library/Frameworks 2>/dev/null` \
15332 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15333 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
15339 # check in a few common install locations
15340 if test x
"${ac_cv_c_tkconfig}" = x
; then
15341 for i
in `ls -d ${libdir} 2>/dev/null` \
15342 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15343 `ls -d ${prefix}/lib 2>/dev/null` \
15344 `ls -d /usr/local/lib 2>/dev/null` \
15345 `ls -d /usr/contrib/lib 2>/dev/null` \
15346 `ls -d /usr/lib 2>/dev/null` \
15348 if test -f "$i/tkConfig.sh" ; then
15349 ac_cv_c_tkconfig
=`(cd $i; pwd)`
15354 # check in a few other private locations
15355 if test x
"${ac_cv_c_tkconfig}" = x
; then
15358 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15359 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15360 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15361 if test -f "$i/$platDir/tkConfig.sh" ; then
15362 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15371 if test x
"${ac_cv_c_tkconfig}" = x
; then
15372 TK_BIN_DIR
="# no Tk configs found"
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15374 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15377 TK_BIN_DIR
=${ac_cv_c_tkconfig}
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15379 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15384 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15387 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15389 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15391 $as_echo "loading" >&6; }
15392 .
${TCL_BIN_DIR}/tclConfig.sh
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15395 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15398 # eval is required to do the TCL_DBGX substitution
15399 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15400 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15402 # If the TCL_BIN_DIR is the build directory (not the install directory),
15403 # then set the common variable name to the value of the build variables.
15404 # For example, the variable TCL_LIB_SPEC will be set to the value
15405 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15406 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15407 # installed and uninstalled version of Tcl.
15408 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15409 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
15410 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
15411 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
15412 elif test "`uname -s`" = "Darwin"; then
15413 # If Tcl was built as a framework, attempt to use the libraries
15414 # from the framework at the given location so that linking works
15415 # against Tcl.framework installed in an arbitrary location.
15416 case ${TCL_DEFS} in
15418 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15419 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
15420 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15421 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15422 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15427 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15428 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15429 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15435 # eval is required to do the TCL_DBGX substitution
15436 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15437 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15438 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15439 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15455 # Check for in-tree tcl
15462 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15466 # Find Tcl private headers
15467 if test x
"${intree}" = xno
; then
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15470 $as_echo_n "checking for Tcl private headers... " >&6; }
15472 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15473 if test -f ${dir}/tclInt.h
; then
15477 if test x
"${private_dir}" = x
; then
15478 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
15480 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15482 $as_echo "${private_dir}" >&6; }
15485 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15486 TCL_LIBRARY
="${TCL_LIB_SPEC}"
15489 # If building tcl in the same src tree, private headers
15490 # are not needed, but we need to be sure to use the right
15492 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
15493 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
15494 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15502 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15504 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15506 $as_echo "loading" >&6; }
15507 .
${TK_BIN_DIR}/tkConfig.sh
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15510 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15513 # eval is required to do the TK_DBGX substitution
15514 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15515 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15517 # If the TK_BIN_DIR is the build directory (not the install directory),
15518 # then set the common variable name to the value of the build variables.
15519 # For example, the variable TK_LIB_SPEC will be set to the value
15520 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15521 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15522 # installed and uninstalled version of Tcl.
15523 if test -f "${TK_BIN_DIR}/Makefile" ; then
15524 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
15525 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
15526 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
15527 elif test "`uname -s`" = "Darwin"; then
15528 # If Tk was built as a framework, attempt to use the libraries
15529 # from the framework at the given location so that linking works
15530 # against Tk.framework installed in an arbitrary location.
15533 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15534 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
15535 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15536 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15537 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15542 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15543 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15544 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15550 # eval is required to do the TK_DBGX substitution
15551 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15552 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15553 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15554 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15569 # Check for in-tree Tk
15571 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15575 # Find Tk private headers
15576 if test x
"${intree}" = xno
; then
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15579 $as_echo_n "checking for Tk private headers... " >&6; }
15581 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15582 if test -f ${dir}/tkInt.h
; then
15586 if test x
"${private_dir}" = x
; then
15587 as_fn_error
"could not find Tk private headers" "$LINENO" 5
15589 TK_PRIVATE_INCLUDE
="-I${private_dir}"
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15591 $as_echo "${private_dir}" >&6; }
15594 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15595 TK_LIBRARY
=${TK_LIB_SPEC}
15598 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
15599 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
15600 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
15607 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15609 # Include some libraries that Tcl and Tk want.
15610 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15611 # Yes, the ordering seems wrong here. But it isn't.
15612 # TK_LIBS is the list of libraries that need to be linked
15613 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15614 # were in LIBS then any link tests after this point would
15615 # try to include things like `$(LIBGUI)', which wouldn't work.
15616 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
15618 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15619 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15620 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15621 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
15622 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
15623 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
15624 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
15626 if test x
$gdb_cv_os_cygwin = xyes
; then
15627 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15628 WIN32LDAPP
="-Wl,--subsystem,console"
15629 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
15632 subdirs
="$subdirs gdbtk"
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15645 $as_echo_n "checking for X... " >&6; }
15648 # Check whether --with-x was given.
15649 if test "${with_x+set}" = set; then :
15653 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15654 if test "x$with_x" = xno
; then
15655 # The user explicitly disabled X.
15658 case $x_includes,$x_libraries in #(
15659 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
15660 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
15661 $as_echo_n "(cached) " >&6
15663 # One or both of the vars are not set, and there is no cached value.
15664 ac_x_includes
=no ac_x_libraries
=no
15665 rm -f -r conftest.dir
15666 if mkdir conftest.dir
; then
15668 cat >Imakefile
<<'_ACEOF'
15670 @echo incroot='${INCROOT}'
15672 @echo usrlibdir='${USRLIBDIR}'
15674 @echo libdir='${LIBDIR}'
15676 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
15677 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15678 for ac_var
in incroot usrlibdir libdir
; do
15679 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15681 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15682 for ac_extension
in a so sl dylib la dll
; do
15683 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15684 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15685 ac_im_usrlibdir
=$ac_im_libdir; break
15688 # Screen out bogus values from the imake configuration. They are
15689 # bogus both because they are the default anyway, and because
15690 # using them would break gcc on systems where it needs fixed includes.
15691 case $ac_im_incroot in
15692 /usr
/include
) ac_x_includes
= ;;
15693 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
15695 case $ac_im_usrlibdir in
15696 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
15697 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
15701 rm -f -r conftest.dir
15704 # Standard set of common directories for X headers.
15705 # Check X11 before X11Rn because it is often a symlink to the current release.
15719 /usr/local/X11/include
15720 /usr/local/X11R7/include
15721 /usr/local/X11R6/include
15722 /usr/local/X11R5/include
15723 /usr/local/X11R4/include
15725 /usr/local/include/X11
15726 /usr/local/include/X11R7
15727 /usr/local/include/X11R6
15728 /usr/local/include/X11R5
15729 /usr/local/include/X11R4
15733 /usr/XFree86/include/X11
15737 /usr/unsupported/include
15738 /usr/athena/include
15739 /usr/local/x11r5/include
15740 /usr/lpp/Xamples/include
15742 /usr/openwin/include
15743 /usr/openwin/share/include'
15745 if test "$ac_x_includes" = no
; then
15746 # Guess where to find include files, by looking for Xlib.h.
15747 # First, try using that file with no special directory specified.
15748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h. */
15750 #include <X11/Xlib.h>
15752 if ac_fn_c_try_cpp
"$LINENO"; then :
15753 # We can compile using X headers with no special include directory.
15756 for ac_dir
in $ac_x_header_dirs; do
15757 if test -r "$ac_dir/X11/Xlib.h"; then
15758 ac_x_includes
=$ac_dir
15763 rm -f conftest.err conftest.
$ac_ext
15764 fi # $ac_x_includes = no
15766 if test "$ac_x_libraries" = no
; then
15767 # Check for the libraries.
15768 # See if we find them without any special options.
15769 # Don't add to $LIBS permanently.
15772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15773 /* end confdefs.h. */
15774 #include <X11/Xlib.h>
15783 if ac_fn_c_try_link
"$LINENO"; then :
15785 # We can link X programs with no special library path.
15789 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15791 # Don't even attempt the hair of trying to link an X program!
15792 for ac_extension
in a so sl dylib la dll
; do
15793 if test -r "$ac_dir/libX11.$ac_extension"; then
15794 ac_x_libraries
=$ac_dir
15800 rm -f core conftest.err conftest.
$ac_objext \
15801 conftest
$ac_exeext conftest.
$ac_ext
15802 fi # $ac_x_libraries = no
15804 case $ac_x_includes,$ac_x_libraries in #(
15805 no
,* |
*,no |
*\'*)
15806 # Didn't find X, or a directory has "'" in its name.
15807 ac_cv_have_x
="have_x=no";; #(
15809 # Record where we found X for the cache.
15810 ac_cv_have_x
="have_x=yes\
15811 ac_x_includes='$ac_x_includes'\
15812 ac_x_libraries='$ac_x_libraries'"
15818 eval "$ac_cv_have_x"
15821 if test "$have_x" != yes; then
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15823 $as_echo "$have_x" >&6; }
15826 # If each of the values was on the command line, it overrides each guess.
15827 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
15828 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
15829 # Update the cache value to reflect the command line values.
15830 ac_cv_have_x
="have_x=yes\
15831 ac_x_includes='$x_includes'\
15832 ac_x_libraries='$x_libraries'"
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15834 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15838 # Unlike the sim directory, whether a simulator is linked is controlled by
15839 # presence of a gdb_sim definition in the target configure.tgt entry.
15840 # This code just checks for a few cases where we'd like to ignore those
15841 # definitions, even when they're present in the '.mt' file. These cases
15842 # are when --disable-sim is specified, or if the simulator directory is
15843 # not part of the source tree.
15845 # Check whether --enable-sim was given.
15846 if test "${enable_sim+set}" = set; then :
15847 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
15848 echo "enableval = ${enableval}";
15849 case "${enableval}" in
15850 yes) ignore_sim
=false
;;
15851 no
) ignore_sim
=true
;;
15852 *) ignore_sim
=false
;;
15859 if test ! -d "${srcdir}/../sim"; then
15865 if test "${ignore_sim}" = "false"; then
15866 if test x
"${gdb_sim}" != x
; then
15868 SIM_OBS
="remote-sim.o"
15870 $as_echo "#define WITH_SIM 1" >>confdefs.h
15873 # Some tdep code should only be compiled in when the ppc sim is
15874 # built. PR sim/13418.
15878 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
15898 # List of host floatformats.
15900 cat >>confdefs.h
<<_ACEOF
15901 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15905 cat >>confdefs.h
<<_ACEOF
15906 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15910 cat >>confdefs.h
<<_ACEOF
15911 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15915 # target_subdir is used by the testsuite to find the target libraries.
15917 if test "${host}" != "${target}"; then
15918 target_subdir
="${target_alias}/"
15923 if test "${gdb_native}" = "yes"; then
15924 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15925 if test ! -f ${host_makefile_frag}; then
15926 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15928 frags
="$frags $host_makefile_frag"
15930 host_makefile_frag
=/dev
/null
15936 if test "${gdb_native}" = "yes"; then
15937 # We pick this up from the host configuration file (.mh) because we
15938 # do not have a native configuration Makefile fragment.
15939 nativefile
=`sed -n '
15940 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15941 ' ${host_makefile_frag}`
15945 if test x
"${gdb_osabi}" != x
; then
15947 cat >>confdefs.h
<<_ACEOF
15948 #define GDB_OSABI_DEFAULT $gdb_osabi
15953 # Enable multi-ice-gdb-server.
15954 # Check whether --enable-multi-ice was given.
15955 if test "${enable_multi_ice+set}" = set; then :
15956 enableval
=$enable_multi_ice; case $enableval in
15959 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15963 if test "x$enable_multi_ice" = xyes
; then
15964 subdirs
="$subdirs multi-ice"
15968 # Check whether --enable-gdbserver was given.
15969 if test "${enable_gdbserver+set}" = set; then :
15970 enableval
=$enable_gdbserver; case "${enableval}" in
15972 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15975 enable_gdbserver
=auto
15979 # We only build gdbserver automatically in a native configuration, and
15980 # only if the user did not explicitly disable its build.
15981 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15983 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15984 if test "x$build_gdbserver" = xyes
; then
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15986 $as_echo "yes" >&6; }
15987 subdirs
="$subdirs gdbserver"
15989 gdbserver_build_enabled
=yes
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15992 $as_echo "no" >&6; }
15996 # If the user explicitly request the gdbserver to be built, verify that
15997 # we were in fact able to enable it.
15998 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15999 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
16002 # Check for babeltrace and babeltrace-ctf
16004 # Check whether --with-babeltrace was given.
16005 if test "${with_babeltrace+set}" = set; then :
16006 withval
=$with_babeltrace;
16008 with_babeltrace
=auto
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
16012 $as_echo_n "checking whether to use babeltrace... " >&6; }
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
16014 $as_echo "$with_babeltrace" >&6; }
16016 if test "x$with_babeltrace" = "xno"; then
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
16018 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
16020 # Append -Werror to CFLAGS so that configure can catch the warning
16021 # "assignment from incompatible pointer type", which is related to
16022 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
16023 # in GDB, while babeltrace 1.0.3 is broken.
16024 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
16025 # safe to save and restore CFLAGS here.
16026 saved_CFLAGS
=$CFLAGS
16027 CFLAGS
="$CFLAGS -Werror"
16038 acl_save_prefix
="$prefix"
16039 prefix
="$acl_final_prefix"
16040 acl_save_exec_prefix
="$exec_prefix"
16041 exec_prefix
="$acl_final_exec_prefix"
16043 eval additional_includedir
=\"$includedir\"
16044 eval additional_libdir
=\"$libdir\"
16046 exec_prefix
="$acl_save_exec_prefix"
16047 prefix
="$acl_save_prefix"
16050 # Check whether --with-libbabeltrace-prefix was given.
16051 if test "${with_libbabeltrace_prefix+set}" = set; then :
16052 withval
=$with_libbabeltrace_prefix;
16053 if test "X$withval" = "Xno"; then
16056 if test "X$withval" = "X"; then
16058 acl_save_prefix
="$prefix"
16059 prefix
="$acl_final_prefix"
16060 acl_save_exec_prefix
="$exec_prefix"
16061 exec_prefix
="$acl_final_exec_prefix"
16063 eval additional_includedir
=\"$includedir\"
16064 eval additional_libdir
=\"$libdir\"
16066 exec_prefix
="$acl_save_exec_prefix"
16067 prefix
="$acl_save_prefix"
16070 additional_includedir
="$withval/include"
16071 additional_libdir
="$withval/lib"
16082 names_already_handled
=
16083 names_next_round
='babeltrace babeltrace-ctf'
16084 while test -n "$names_next_round"; do
16085 names_this_round
="$names_next_round"
16087 for name
in $names_this_round; do
16089 for n
in $names_already_handled; do
16090 if test "$n" = "$name"; then
16091 already_handled
=yes
16095 if test -z "$already_handled"; then
16096 names_already_handled
="$names_already_handled $name"
16097 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16098 eval value
=\"\
$HAVE_LIB$uppername\"
16099 if test -n "$value"; then
16100 if test "$value" = yes; then
16101 eval value
=\"\
$LIB$uppername\"
16102 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
16103 eval value
=\"\
$LTLIB$uppername\"
16104 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
16113 if test $use_additional = yes; then
16114 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16115 found_dir
="$additional_libdir"
16116 found_so
="$additional_libdir/lib$name.$shlibext"
16117 if test -f "$additional_libdir/lib$name.la"; then
16118 found_la
="$additional_libdir/lib$name.la"
16121 if test -f "$additional_libdir/lib$name.$libext"; then
16122 found_dir
="$additional_libdir"
16123 found_a
="$additional_libdir/lib$name.$libext"
16124 if test -f "$additional_libdir/lib$name.la"; then
16125 found_la
="$additional_libdir/lib$name.la"
16130 if test "X$found_dir" = "X"; then
16131 for x
in $LDFLAGS $LTLIBBABELTRACE; do
16133 acl_save_prefix
="$prefix"
16134 prefix
="$acl_final_prefix"
16135 acl_save_exec_prefix
="$exec_prefix"
16136 exec_prefix
="$acl_final_exec_prefix"
16138 exec_prefix
="$acl_save_exec_prefix"
16139 prefix
="$acl_save_prefix"
16143 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16144 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16146 found_so
="$dir/lib$name.$shlibext"
16147 if test -f "$dir/lib$name.la"; then
16148 found_la
="$dir/lib$name.la"
16151 if test -f "$dir/lib$name.$libext"; then
16153 found_a
="$dir/lib$name.$libext"
16154 if test -f "$dir/lib$name.la"; then
16155 found_la
="$dir/lib$name.la"
16161 if test "X$found_dir" != "X"; then
16166 if test "X$found_dir" != "X"; then
16167 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
16168 if test "X$found_so" != "X"; then
16169 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16170 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16173 for x
in $ltrpathdirs; do
16174 if test "X$x" = "X$found_dir"; then
16179 if test -z "$haveit"; then
16180 ltrpathdirs
="$ltrpathdirs $found_dir"
16182 if test "$hardcode_direct" = yes; then
16183 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16185 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16186 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16188 for x
in $rpathdirs; do
16189 if test "X$x" = "X$found_dir"; then
16194 if test -z "$haveit"; then
16195 rpathdirs
="$rpathdirs $found_dir"
16199 for x
in $LDFLAGS $LIBBABELTRACE; do
16201 acl_save_prefix
="$prefix"
16202 prefix
="$acl_final_prefix"
16203 acl_save_exec_prefix
="$exec_prefix"
16204 exec_prefix
="$acl_final_exec_prefix"
16206 exec_prefix
="$acl_save_exec_prefix"
16207 prefix
="$acl_save_prefix"
16209 if test "X$x" = "X-L$found_dir"; then
16214 if test -z "$haveit"; then
16215 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
16217 if test "$hardcode_minus_L" != no
; then
16218 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16220 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16226 if test "X$found_a" != "X"; then
16227 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
16229 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
16232 additional_includedir
=
16233 case "$found_dir" in
16235 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16236 additional_includedir
="$basedir/include"
16239 if test "X$additional_includedir" != "X"; then
16240 if test "X$additional_includedir" != "X/usr/include"; then
16242 if test "X$additional_includedir" = "X/usr/local/include"; then
16243 if test -n "$GCC"; then
16245 linux
*) haveit
=yes;;
16249 if test -z "$haveit"; then
16250 for x
in $CPPFLAGS $INCBABELTRACE; do
16252 acl_save_prefix
="$prefix"
16253 prefix
="$acl_final_prefix"
16254 acl_save_exec_prefix
="$exec_prefix"
16255 exec_prefix
="$acl_final_exec_prefix"
16257 exec_prefix
="$acl_save_exec_prefix"
16258 prefix
="$acl_save_prefix"
16260 if test "X$x" = "X-I$additional_includedir"; then
16265 if test -z "$haveit"; then
16266 if test -d "$additional_includedir"; then
16267 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
16273 if test -n "$found_la"; then
16274 save_libdir
="$libdir"
16275 case "$found_la" in
16276 */* |
*\\*) .
"$found_la" ;;
16277 *) .
"./$found_la" ;;
16279 libdir
="$save_libdir"
16280 for dep
in $dependency_libs; do
16283 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16284 if test "X$additional_libdir" != "X/usr/lib"; then
16286 if test "X$additional_libdir" = "X/usr/local/lib"; then
16287 if test -n "$GCC"; then
16289 linux
*) haveit
=yes;;
16293 if test -z "$haveit"; then
16295 for x
in $LDFLAGS $LIBBABELTRACE; do
16297 acl_save_prefix
="$prefix"
16298 prefix
="$acl_final_prefix"
16299 acl_save_exec_prefix
="$exec_prefix"
16300 exec_prefix
="$acl_final_exec_prefix"
16302 exec_prefix
="$acl_save_exec_prefix"
16303 prefix
="$acl_save_prefix"
16305 if test "X$x" = "X-L$additional_libdir"; then
16310 if test -z "$haveit"; then
16311 if test -d "$additional_libdir"; then
16312 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
16316 for x
in $LDFLAGS $LTLIBBABELTRACE; do
16318 acl_save_prefix
="$prefix"
16319 prefix
="$acl_final_prefix"
16320 acl_save_exec_prefix
="$exec_prefix"
16321 exec_prefix
="$acl_final_exec_prefix"
16323 exec_prefix
="$acl_save_exec_prefix"
16324 prefix
="$acl_save_prefix"
16326 if test "X$x" = "X-L$additional_libdir"; then
16331 if test -z "$haveit"; then
16332 if test -d "$additional_libdir"; then
16333 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
16340 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16341 if test "$enable_rpath" != no
; then
16343 for x
in $rpathdirs; do
16344 if test "X$x" = "X$dir"; then
16349 if test -z "$haveit"; then
16350 rpathdirs
="$rpathdirs $dir"
16353 for x
in $ltrpathdirs; do
16354 if test "X$x" = "X$dir"; then
16359 if test -z "$haveit"; then
16360 ltrpathdirs
="$ltrpathdirs $dir"
16365 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16368 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16371 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
16372 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
16378 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16379 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
16385 if test "X$rpathdirs" != "X"; then
16386 if test -n "$hardcode_libdir_separator"; then
16388 for found_dir
in $rpathdirs; do
16389 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16391 acl_save_libdir
="$libdir"
16393 eval flag
=\"$hardcode_libdir_flag_spec\"
16394 libdir
="$acl_save_libdir"
16395 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16397 for found_dir
in $rpathdirs; do
16398 acl_save_libdir
="$libdir"
16399 libdir
="$found_dir"
16400 eval flag
=\"$hardcode_libdir_flag_spec\"
16401 libdir
="$acl_save_libdir"
16402 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16406 if test "X$ltrpathdirs" != "X"; then
16407 for found_dir
in $ltrpathdirs; do
16408 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
16413 ac_save_CPPFLAGS
="$CPPFLAGS"
16415 for element
in $INCBABELTRACE; do
16417 for x
in $CPPFLAGS; do
16419 acl_save_prefix
="$prefix"
16420 prefix
="$acl_final_prefix"
16421 acl_save_exec_prefix
="$exec_prefix"
16422 exec_prefix
="$acl_final_exec_prefix"
16424 exec_prefix
="$acl_save_exec_prefix"
16425 prefix
="$acl_save_prefix"
16427 if test "X$x" = "X$element"; then
16432 if test -z "$haveit"; then
16433 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
16439 $as_echo_n "checking for libbabeltrace... " >&6; }
16440 if test "${ac_cv_libbabeltrace+set}" = set; then :
16441 $as_echo_n "(cached) " >&6
16444 ac_save_LIBS
="$LIBS"
16445 LIBS
="$LIBS $LIBBABELTRACE"
16446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16447 /* end confdefs.h. */
16448 #include <babeltrace/babeltrace.h>
16449 #include <babeltrace/ctf/events.h>
16450 #include <babeltrace/ctf/iterator.h>
16454 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
16455 struct bt_ctf_event *event = NULL;
16456 const struct bt_definition *scope;
16458 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
16459 scope = bt_ctf_get_top_level_scope (event,
16460 BT_STREAM_EVENT_HEADER);
16461 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
16467 if ac_fn_c_try_link
"$LINENO"; then :
16468 ac_cv_libbabeltrace
=yes
16470 ac_cv_libbabeltrace
=no
16472 rm -f core conftest.err conftest.
$ac_objext \
16473 conftest
$ac_exeext conftest.
$ac_ext
16474 LIBS
="$ac_save_LIBS"
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
16478 $as_echo "$ac_cv_libbabeltrace" >&6; }
16479 if test "$ac_cv_libbabeltrace" = yes; then
16480 HAVE_LIBBABELTRACE
=yes
16482 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
16485 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
16487 $as_echo "$LIBBABELTRACE" >&6; }
16489 HAVE_LIBBABELTRACE
=no
16490 CPPFLAGS
="$ac_save_CPPFLAGS"
16500 CFLAGS
=$saved_CFLAGS
16502 if test "$HAVE_LIBBABELTRACE" != yes; then
16503 if test "$with_babeltrace" = yes; then
16504 as_fn_error
"babeltrace is missing or unusable" "$LINENO" 5
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
16507 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
16512 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
16513 # to an empty version.
16519 if test "${nativefile}" != ""; then
16520 case "${nativefile}" in
16521 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
16522 * ) GDB_NM_FILE
="${nativefile}"
16524 files
="${files} ${GDB_NM_FILE}"
16525 links
="${links} nm.h"
16527 cat >>confdefs.h
<<_ACEOF
16528 #define GDB_NM_FILE "${GDB_NM_FILE}"
16534 ac_sources
="$files"
16536 while test -n "$ac_sources"; do
16537 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
16538 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
16539 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
16541 ac_config_links
="$ac_config_links $ac_config_links_1"
16547 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16551 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16552 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
16553 if test "x$GDB_TRANSFORM_NAME" = x
; then
16554 GDB_TRANSFORM_NAME
=gdb
16559 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16560 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
16561 if test "x$GCORE_TRANSFORM_NAME" = x
; then
16562 GCORE_TRANSFORM_NAME
=gcore
16566 ac_config_files
="$ac_config_files gcore"
16569 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
16571 ac_config_commands
="$ac_config_commands default"
16573 cat >confcache
<<\_ACEOF
16574 # This file is a shell script that caches the results of configure
16575 # tests run on this system so they can be shared between configure
16576 # scripts and configure runs, see configure's option --config-cache.
16577 # It is not useful on other systems. If it contains results you don't
16578 # want to keep, you may remove or edit it.
16580 # config.status only pays attention to the cache file if you give it
16581 # the --recheck option to rerun configure.
16583 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16584 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16585 # following values.
16589 # The following way of writing the cache mishandles newlines in values,
16590 # but we know of no workaround that is simple, portable, and efficient.
16591 # So, we kill variables containing newlines.
16592 # Ultrix sh set writes to stderr and can't be redirected directly,
16593 # and sets the high bit in the cache file unless we assign to the vars.
16595 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16596 eval ac_val
=\$
$ac_var
16600 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16601 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16604 _ | IFS | as_nl
) ;; #(
16605 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16606 *) { eval $ac_var=; unset $ac_var;} ;;
16612 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16613 *${as_nl}ac_space
=\
*)
16614 # `set' does not quote correctly, so add quotes: double-quote
16615 # substitution turns \\\\ into \\, and sed turns \\ into \.
16618 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16621 # `set' quotes correctly as required by POSIX, so do not add quotes.
16622 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16631 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16633 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16635 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16636 if test -w "$cache_file"; then
16637 test "x$cache_file" != "x/dev/null" &&
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16639 $as_echo "$as_me: updating cache $cache_file" >&6;}
16640 cat confcache
>$cache_file
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16643 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16648 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16649 # Let make expand exec_prefix.
16650 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16652 DEFS
=-DHAVE_CONFIG_H
16656 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16657 # 1. Remove the extension, and $U if already installed.
16658 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16659 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16660 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16661 # will be set to the directory where LIBOBJS objects are built.
16662 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16663 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16665 LIBOBJS
=$ac_libobjs
16667 LTLIBOBJS
=$ac_ltlibobjs
16670 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16671 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16674 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16675 as_fn_error
"conditional \"GMAKE\" was never defined.
16676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16678 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16679 as_fn_error
"conditional \"HAVE_PYTHON\" was never defined.
16680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16682 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
16683 as_fn_error
"conditional \"HAVE_GUILE\" was never defined.
16684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16688 : ${CONFIG_STATUS=./config.status}
16690 ac_clean_files_save
=$ac_clean_files
16691 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16693 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16695 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16697 # Generated by $as_me.
16698 # Run this file to recreate the current configuration.
16699 # Compiler output produced by configure, useful for debugging
16700 # configure, is in config.log if it exists.
16703 ac_cs_recheck=false
16706 SHELL=\${CONFIG_SHELL-$SHELL}
16709 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16710 ## -------------------- ##
16711 ## M4sh Initialization. ##
16712 ## -------------------- ##
16714 # Be more Bourne compatible
16715 DUALCASE
=1; export DUALCASE
# for MKS sh
16716 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16719 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16720 # is contrary to our usage. Disable this feature.
16721 alias -g '${1+"$@"}'='"$@"'
16722 setopt NO_GLOB_SUBST
16724 case `(set -o) 2>/dev/null` in #(
16736 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16737 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16738 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16739 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16740 # Prefer a ksh shell builtin over an external printf program on Solaris,
16741 # but without wasting forks for bash or zsh.
16742 if test -z "$BASH_VERSION$ZSH_VERSION" \
16743 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16744 as_echo='print
-r --'
16745 as_echo_n='print
-rn --'
16746 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16747 as_echo='printf %s
\n'
16748 as_echo_n='printf %s
'
16750 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16751 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16752 as_echo_n='/usr
/ucb
/echo -n'
16754 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16755 as_echo_n_body='eval
16759 expr "X$arg" : "X\\(.*\\)$as_nl";
16760 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16762 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16764 export as_echo_n_body
16765 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16767 export as_echo_body
16768 as_echo='sh
-c $as_echo_body as_echo
'
16771 # The user is always right.
16772 if test "${PATH_SEPARATOR+set}" != set; then
16774 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16775 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16782 # We need space, tab and new line, in precisely that order. Quoting is
16783 # there to prevent editors from complaining about space-tab.
16784 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16785 # splitting by setting IFS to empty value.)
16788 # Find who we are. Look in the path if we contain no directory separator.
16790 *[\\/]* ) as_myself=$0 ;;
16791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16792 for as_dir in $PATH
16795 test -z "$as_dir" && as_dir=.
16796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16802 # We did not find ourselves, most probably we were run as `sh COMMAND'
16803 # in which case we are not to be found in the path.
16804 if test "x$as_myself" = x
; then
16807 if test ! -f "$as_myself"; then
16808 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16812 # Unset variables that we do not need and which cause bugs (e.g. in
16813 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16814 # suppresses any "Segmentation fault" message there. '((' could
16815 # trigger a bug in pdksh 5.2.14.
16816 for as_var
in BASH_ENV ENV MAIL MAILPATH
16817 do eval test x\
${$as_var+set} = xset \
16818 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16831 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16834 # as_fn_error ERROR [LINENO LOG_FD]
16835 # ---------------------------------
16836 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16837 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16838 # script with status $?, using 1 if that was 0.
16841 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16843 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16844 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16846 $as_echo "$as_me: error: $1" >&2
16847 as_fn_exit
$as_status
16851 # as_fn_set_status STATUS
16852 # -----------------------
16853 # Set $? to STATUS, without forking.
16854 as_fn_set_status
()
16857 } # as_fn_set_status
16859 # as_fn_exit STATUS
16860 # -----------------
16861 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16865 as_fn_set_status
$1
16871 # Portably unset VAR.
16874 { eval $1=; unset $1;}
16876 as_unset
=as_fn_unset
16877 # as_fn_append VAR VALUE
16878 # ----------------------
16879 # Append the text in VALUE to the end of the definition contained in VAR. Take
16880 # advantage of any shell optimizations that allow amortized linear growth over
16881 # repeated appends, instead of the typical quadratic growth present in naive
16883 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16884 eval 'as_fn_append ()
16895 # as_fn_arith ARG...
16896 # ------------------
16897 # Perform arithmetic evaluation on the ARGs, and store the result in the
16898 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16899 # must be portable across $(()) and expr.
16900 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16901 eval 'as_fn_arith ()
16908 as_val
=`expr "$@" || test $? -eq 1`
16913 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16914 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16920 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16921 as_basename
=basename
16926 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16932 as_me
=`$as_basename -- "$0" ||
16933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16934 X"$0" : 'X\(//\)$' \| \
16935 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16937 sed '/^.*\/\([^/][^/]*\)\/*$/{
16951 # Avoid depending upon Character Ranges.
16952 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16953 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16954 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16955 as_cr_digits
='0123456789'
16956 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16958 ECHO_C
= ECHO_N
= ECHO_T
=
16959 case `echo -n x` in #(((((
16961 case `echo 'xy\c'` in
16962 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16964 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16971 rm -f conf$$ conf$$.exe conf$$.
file
16972 if test -d conf$$.dir
; then
16973 rm -f conf$$.dir
/conf$$.
file
16976 mkdir conf$$.dir
2>/dev
/null
16978 if (echo >conf$$.
file) 2>/dev
/null
; then
16979 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16981 # ... but there are two gotchas:
16982 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16983 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16984 # In both cases, we have to default to `cp -p'.
16985 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16987 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16995 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16996 rmdir conf$$.dir
2>/dev
/null
17001 # Create "$as_dir" as a directory, including parents if necessary.
17006 -*) as_dir
=.
/$as_dir;;
17008 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17012 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17013 *) as_qdir
=$as_dir;;
17015 as_dirs
="'$as_qdir' $as_dirs"
17016 as_dir
=`$as_dirname -- "$as_dir" ||
17017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17018 X"$as_dir" : 'X\(//\)[^/]' \| \
17019 X"$as_dir" : 'X\(//\)$' \| \
17020 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17021 $as_echo X"$as_dir" |
17022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17026 /^X\(\/\/\)[^/].*/{
17039 test -d "$as_dir" && break
17041 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17042 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
17046 if mkdir
-p .
2>/dev
/null
; then
17047 as_mkdir_p
='mkdir -p "$as_dir"'
17049 test -d .
/-p && rmdir .
/-p
17053 if test -x / >/dev
/null
2>&1; then
17054 as_test_x
='test -x'
17056 if ls -dL / >/dev
/null
2>&1; then
17063 if test -d "$1"; then
17069 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17070 ???[sx]*):;;*)false;;esac;fi
17074 as_executable_p
=$as_test_x
17076 # Sed expression to map a string onto a valid CPP name.
17077 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17079 # Sed expression to map a string onto a valid variable name.
17080 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17084 ## ----------------------------------- ##
17085 ## Main body of $CONFIG_STATUS script. ##
17086 ## ----------------------------------- ##
17088 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17091 # Save the log message, to keep $0 and so on meaningful, and to
17092 # report actual input values of CONFIG_FILES etc. instead of their
17093 # values after options handling.
17095 This file was extended by $as_me, which was
17096 generated by GNU Autoconf 2.64. Invocation command line was
17098 CONFIG_FILES = $CONFIG_FILES
17099 CONFIG_HEADERS = $CONFIG_HEADERS
17100 CONFIG_LINKS = $CONFIG_LINKS
17101 CONFIG_COMMANDS = $CONFIG_COMMANDS
17104 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17109 case $ac_config_files in *"
17110 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17113 case $ac_config_headers in *"
17114 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17119 # Files that config.status was made for.
17120 config_files="$ac_config_files"
17121 config_headers="$ac_config_headers"
17122 config_links="$ac_config_links"
17123 config_commands="$ac_config_commands"
17127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17129 \`$as_me' instantiates files and other configuration actions
17130 from templates according to the current configuration. Unless the files
17131 and actions are specified as TAGs, all are instantiated by default.
17133 Usage: $0 [OPTION]... [TAG]...
17135 -h, --help print this help, then exit
17136 -V, --version print version number and configuration settings, then exit
17137 -q, --quiet, --silent
17138 do not print progress messages
17139 -d, --debug don't remove temporary files
17140 --recheck update $as_me by reconfiguring in the same conditions
17141 --file=FILE[:TEMPLATE]
17142 instantiate the configuration file FILE
17143 --header=FILE[:TEMPLATE]
17144 instantiate the configuration header FILE
17146 Configuration files:
17149 Configuration headers:
17152 Configuration links:
17155 Configuration commands:
17158 Report bugs to the package provider."
17161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17164 configured by $0, generated by GNU Autoconf 2.64,
17165 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17167 Copyright (C) 2009 Free Software Foundation, Inc.
17168 This config.status script is free software; the Free Software Foundation
17169 gives unlimited permission to copy, distribute and modify it."
17175 test -n "\$AWK" || AWK=awk
17178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17179 # The default lists apply if the user does not specify any file.
17185 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17186 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17197 # Handling of the options.
17198 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17200 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17201 $as_echo "$ac_cs_version"; exit ;;
17202 --debug |
--debu |
--deb |
--de |
--d |
-d )
17204 --file |
--fil |
--fi |
--f )
17207 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17209 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17210 ac_need_defaults
=false
;;
17211 --header |
--heade |
--head |
--hea )
17214 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17216 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17217 ac_need_defaults
=false
;;
17219 # Conflict between --help and --header
17220 as_fn_error
"ambiguous option: \`$1'
17221 Try \`$0 --help' for more information.";;
17222 --help |
--hel |
-h )
17223 $as_echo "$ac_cs_usage"; exit ;;
17224 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17225 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17228 # This is an error.
17229 -*) as_fn_error
"unrecognized option: \`$1'
17230 Try \`$0 --help' for more information." ;;
17232 *) as_fn_append ac_config_targets
" $1"
17233 ac_need_defaults
=false
;;
17239 ac_configure_extra_args
=
17241 if $ac_cs_silent; then
17243 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17248 if \$ac_cs_recheck; then
17249 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17251 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17252 CONFIG_SHELL='$SHELL'
17253 export CONFIG_SHELL
17258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17262 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17263 ## Running $as_me. ##
17269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17273 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17279 # Handling of arguments.
17280 for ac_config_target
in $ac_config_targets
17282 case $ac_config_target in
17283 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
17284 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
17285 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
17286 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
17287 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
17288 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17289 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
17290 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
17291 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
17292 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17294 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17299 # If the user did not use the arguments to specify the items to instantiate,
17300 # then the envvar interface is used. Set only those that are not.
17301 # We use the long form for the default assignment because of an extremely
17302 # bizarre bug on SunOS 4.1.3.
17303 if $ac_need_defaults; then
17304 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17305 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17306 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
17307 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17310 # Have a temporary directory for convenience. Make it in the build tree
17311 # simply because there is no reason against having it here, and in addition,
17312 # creating and moving files from /tmp can sometimes cause problems.
17313 # Hook for its removal unless debugging.
17314 # Note that there is a small window in which the directory will not be cleaned:
17315 # after its creation but before its name has been assigned to `$tmp'.
17319 trap 'exit_status=$?
17320 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17322 trap 'as_fn_exit 1' 1 2 13 15
17324 # Create a (secure) tmp directory for tmp files.
17327 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17328 test -n "$tmp" && test -d "$tmp"
17331 tmp
=.
/conf$$
-$RANDOM
17332 (umask 077 && mkdir
"$tmp")
17333 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
17335 # Set up the scripts for CONFIG_FILES section.
17336 # No need to generate them if there are no CONFIG_FILES.
17337 # This happens for instance with `./config.status config.h'.
17338 if test -n "$CONFIG_FILES"; then
17340 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
17341 ac_cs_awk_getline
=:
17342 ac_cs_awk_pipe_init
=
17343 ac_cs_awk_read_file
='
17344 while ((getline aline < (F[key])) > 0)
17347 ac_cs_awk_pipe_fini
=
17349 ac_cs_awk_getline
=false
17350 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
17351 ac_cs_awk_read_file
='
17353 print "cat " F[key] " &&"
17354 '$ac_cs_awk_pipe_init
17355 # The final `:' finishes the AND list.
17356 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
17358 ac_cr
=`echo X | tr X '\015'`
17359 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17360 # But we know of no other shell where ac_cr would be empty at this
17361 # point, so we can use a bashism as a fallback.
17362 if test "x$ac_cr" = x
; then
17363 eval ac_cr
=\$
\'\\r
\'
17365 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17366 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17369 ac_cs_awk_cr
=$ac_cr
17372 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17375 # Create commands to substitute file output variables.
17377 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17378 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17379 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
17382 } >conf$
$files.sh
&&
17383 . .
/conf$
$files.sh ||
17384 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
17385 rm -f conf$
$files.sh
17388 echo "cat >conf$$subs.awk <<_ACEOF" &&
17389 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17391 } >conf$$subs.sh ||
17392 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17393 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17395 for ac_last_try in false false false false false :; do
17396 . ./conf$$subs.sh ||
17397 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17399 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17400 if test $ac_delim_n = $ac_delim_num; then
17402 elif $ac_last_try; then
17403 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17405 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17408 rm -f conf$$subs.sh
17410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17411 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17415 s/^/S["/; s
/!.
*/"]=/
17425 s/\(.\{148\}\).*/\1/
17427 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17432 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17439 s/\(.\{148\}\).*/\1/
17441 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17445 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17450 ' <conf$$subs.awk | sed '
17455 ' >>$CONFIG_STATUS || ac_write_fail=1
17456 rm -f conf$$subs.awk
17457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17459 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17460 for (key in S) S_is_set[key] = 1
17462 \$ac_cs_awk_pipe_init
17466 nfields = split(line, field, "@
")
17468 len = length(field[1])
17469 for (i = 2; i < nfields; i++) {
17471 keylen = length(key)
17472 if (S_is_set[key]) {
17474 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17475 len += length(value) + length(field[++i])
17480 if (nfields == 3 && !substed) {
17482 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17483 \$ac_cs_awk_read_file
17489 \$ac_cs_awk_pipe_fini
17492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17493 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17494 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17497 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17498 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
17501 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17502 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17503 # trailing colons and then remove the whole line if VPATH becomes empty
17504 # (actually we leave an empty line to preserve line numbers).
17505 if test "x
$srcdir" = x.; then
17506 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17507 s/:*\$(srcdir):*/:/
17508 s/:*\${srcdir}:*/:/
17510 s/^\([^=]*=[ ]*\):*/\1/
17516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17517 fi # test -n "$CONFIG_FILES"
17519 # Set up the scripts for CONFIG_HEADERS section.
17520 # No need to generate them if there are no CONFIG_HEADERS.
17521 # This happens for instance with `./config.status Makefile'.
17522 if test -n "$CONFIG_HEADERS"; then
17523 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17527 # Transform confdefs.h into an awk script `defines.awk', embedded as
17528 # here-document in config.status, that substitutes the proper values into
17529 # config.h.in to produce config.h.
17531 # Create a delimiter string that does not exist in confdefs.h, to ease
17532 # handling of long lines.
17534 for ac_last_try in false false :; do
17535 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17536 if test -z "$ac_t"; then
17538 elif $ac_last_try; then
17539 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
17541 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17545 # For the awk script, D is an array of macro values keyed by name,
17546 # likewise P contains macro parameters if any. Preserve backslash
17547 # newline sequences.
17549 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17551 s/.\{148\}/&'"$ac_delim"'/g
17554 s/^[ ]*#[ ]*define[ ][ ]*/ /
17561 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17563 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17567 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17568 D["\
1"]=" \
3\\\\\\n
"\\/p
17570 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17575 s/.\{148\}/&'"$ac_delim"'/g
17580 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17583 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17585 ' <confdefs.h | sed '
17586 s/'"$ac_delim"'/"\\\
17587 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17590 for (key in D) D_is_set[key] = 1
17593 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17595 split(line, arg, " ")
17596 if (arg[1] == "#") {
17600 defundef
= substr
(arg
[1], 2)
17603 split(mac1
, mac2
, "(") #)
17605 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17606 if (D_is_set
[macro
]) {
17607 # Preserve the white space surrounding the "#".
17608 print prefix
"define", macro P
[macro
] D
[macro
]
17611 # Replace #undef with comments. This is necessary, for example,
17612 # in the case of _POSIX_SOURCE, which is predefined and required
17613 # on some systems where configure will not decide to define it.
17614 if (defundef
== "undef") {
17615 print
"/*", prefix defundef
, macro
, "*/"
17623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17624 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17625 fi # test -n "$CONFIG_HEADERS"
17628 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17633 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17635 case $ac_mode$ac_tag in
17637 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17638 :[FH
]-) ac_tag
=-:-;;
17639 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17656 -) ac_f
="$tmp/stdin";;
17657 *) # Look for the file first in the build tree, then in the source tree
17658 # (if the path is not absolute). The absolute path cannot be DOS-style,
17659 # because $ac_f cannot contain `:'.
17663 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17665 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17667 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17668 as_fn_append ac_file_inputs
" '$ac_f'"
17671 # Let's still pretend it is `configure' which instantiates (i.e., don't
17672 # use $as_me), people would be surprised to read:
17673 # /* config.h. Generated by config.status. */
17674 configure_input
='Generated from '`
17675 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17677 if test x
"$ac_file" != x-
; then
17678 configure_input
="$ac_file. $configure_input"
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17680 $as_echo "$as_me: creating $ac_file" >&6;}
17682 # Neutralize special characters interpreted by sed in replacement strings.
17683 case $configure_input in #(
17684 *\
&* |
*\|
* |
*\\* )
17685 ac_sed_conf_input
=`$as_echo "$configure_input" |
17686 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17687 *) ac_sed_conf_input
=$configure_input;;
17691 *:-:* |
*:-) cat >"$tmp/stdin" \
17692 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17697 ac_dir
=`$as_dirname -- "$ac_file" ||
17698 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17699 X"$ac_file" : 'X\(//\)[^/]' \| \
17700 X"$ac_file" : 'X\(//\)$' \| \
17701 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17702 $as_echo X"$ac_file" |
17703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17707 /^X\(\/\/\)[^/].*/{
17720 as_dir
="$ac_dir"; as_fn_mkdir_p
17724 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17726 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17727 # A ".." for each directory in $ac_dir_suffix.
17728 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17729 case $ac_top_builddir_sub in
17730 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17731 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17734 ac_abs_top_builddir
=$ac_pwd
17735 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17736 # for backward compatibility:
17737 ac_top_builddir
=$ac_top_build_prefix
17740 .
) # We are building in place.
17742 ac_top_srcdir
=$ac_top_builddir_sub
17743 ac_abs_top_srcdir
=$ac_pwd ;;
17744 [\\/]* | ?
:[\\/]* ) # Absolute name.
17745 ac_srcdir
=$srcdir$ac_dir_suffix;
17746 ac_top_srcdir
=$srcdir
17747 ac_abs_top_srcdir
=$srcdir ;;
17748 *) # Relative name.
17749 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17750 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17751 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17753 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17763 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17764 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17769 # If the template does not know about datarootdir, expand it.
17770 # FIXME: This hack should be removed a few years after 2.60.
17771 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17782 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17783 *datarootdir
*) ac_datarootdir_seen
=yes;;
17784 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17786 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17789 ac_datarootdir_hack='
17790 s&@datadir@&$datadir&g
17791 s&@docdir@&$docdir&g
17792 s&@infodir@&$infodir&g
17793 s&@localedir@&$localedir&g
17794 s&@mandir@&$mandir&g
17795 s&\\\${datarootdir}&$datarootdir&g' ;;
17799 # Neutralize VPATH when `$srcdir' = `.'.
17800 # Shell code in configure.ac might set extrasub.
17801 # FIXME: do we really want to maintain this feature?
17802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17803 ac_sed_extra="$ac_vpsub
17806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17808 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17809 s|@configure_input@|
$ac_sed_conf_input|
;t t
17810 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17811 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17812 s
&@srcdir@
&$ac_srcdir&;t t
17813 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17814 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17815 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17816 s
&@builddir@
&$ac_builddir&;t t
17817 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17818 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17819 s
&@INSTALL@
&$ac_INSTALL&;t t
17820 $ac_datarootdir_hack
17822 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17823 if $ac_cs_awk_getline; then
17824 $AWK -f "$tmp/subs.
awk"
17826 $AWK -f "$tmp/subs.
awk" | $SHELL
17828 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17830 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17831 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17832 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17834 which seems to be undefined. Please make sure it is defined." >&5
17835 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17836 which seems to be undefined. Please make sure it is defined." >&2;}
17840 -) cat "$tmp/out" && rm -f "$tmp/out";;
17841 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17843 || as_fn_error "could not create $ac_file" "$LINENO" 5
17849 if test x"$ac_file" != x-; then
17851 $as_echo "/* $configure_input */" \
17852 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17853 } >"$tmp/config.h" \
17854 || as_fn_error "could not create $ac_file" "$LINENO" 5
17855 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17857 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17860 mv "$tmp/config.h" "$ac_file" \
17861 || as_fn_error "could not create $ac_file" "$LINENO" 5
17864 $as_echo "/* $configure_input */" \
17865 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17866 || as_fn_error "could not create -" "$LINENO" 5
17874 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
17877 # Prefer the file from the source tree if names are identical.
17878 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17879 ac_source=$srcdir/$ac_source
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17883 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17885 if test ! -r "$ac_source"; then
17886 as_fn_error "$ac_source: file not found" "$LINENO" 5
17890 # Try a relative symlink, then a hard link, then a copy.
17892 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17893 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17895 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17896 ln "$ac_source" "$ac_file" 2>/dev/null ||
17897 cp -p "$ac_source" "$ac_file" ||
17898 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17901 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17902 $as_echo "$as_me: executing $ac_file commands" >&6;}
17907 case $ac_file$ac_mode in
17908 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17909 "gcore":F) chmod +x gcore ;;
17911 case x$CONFIG_HEADERS in
17912 xconfig.h:config.in)
17923 ac_clean_files=$ac_clean_files_save
17925 test $ac_write_fail = 0 ||
17926 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17929 # configure is writing to config.log, and then calls config.status.
17930 # config.status does its own redirection, appending to config.log.
17931 # Unfortunately, on DOS this fails, as config.log is still kept open
17932 # by configure, so config.status won't be able to
write to it
; its
17933 # output is simply discarded. So we exec the FD to /dev/null,
17934 # effectively closing config.log, so it can be properly (re)opened and
17935 # appended to by config.status. When coming back to configure, we
17936 # need to make the FD available again.
17937 if test "$no_create" != yes; then
17939 ac_config_status_args
=
17940 test "$silent" = yes &&
17941 ac_config_status_args
="$ac_config_status_args --quiet"
17943 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17945 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17946 # would make configure fail if this is the last instruction.
17947 $ac_cs_success || as_fn_exit $?
17951 # CONFIG_SUBDIRS section.
17953 if test "$no_recursion" != yes; then
17955 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17956 # so they do not pile up.
17957 ac_sub_configure_args
=
17959 eval "set x $ac_configure_args"
17963 if test -n "$ac_prev"; then
17968 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
17969 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
17970 ac_prev
=cache_file
;;
17971 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
17972 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
17975 --config-cache |
-C)
17977 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
17979 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
17981 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
17983 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
17985 --disable-option-checking)
17989 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17991 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
17995 # Always prepend --prefix to ensure using the same prefix
17996 # in subdir configurations.
17997 ac_arg
="--prefix=$prefix"
17999 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18001 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
18004 if test "$silent" = yes; then
18005 ac_sub_configure_args
="--silent $ac_sub_configure_args"
18008 # Always prepend --disable-option-checking to silence warnings, since
18009 # different subdirs can have different --enable and --with options.
18010 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
18013 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
18015 # Do not complain, so a configure script can configure whichever
18016 # parts of a large source tree are present.
18017 test -d "$srcdir/$ac_dir" ||
continue
18019 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18020 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18021 $as_echo "$ac_msg" >&6
18022 as_dir
="$ac_dir"; as_fn_mkdir_p
18026 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18028 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18029 # A ".." for each directory in $ac_dir_suffix.
18030 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18031 case $ac_top_builddir_sub in
18032 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18033 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18036 ac_abs_top_builddir
=$ac_pwd
18037 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18038 # for backward compatibility:
18039 ac_top_builddir
=$ac_top_build_prefix
18042 .
) # We are building in place.
18044 ac_top_srcdir
=$ac_top_builddir_sub
18045 ac_abs_top_srcdir
=$ac_pwd ;;
18046 [\\/]* | ?
:[\\/]* ) # Absolute name.
18047 ac_srcdir
=$srcdir$ac_dir_suffix;
18048 ac_top_srcdir
=$srcdir
18049 ac_abs_top_srcdir
=$srcdir ;;
18050 *) # Relative name.
18051 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18052 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18053 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18055 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18060 # Check for guested configure; otherwise get Cygnus style configure.
18061 if test -f "$ac_srcdir/configure.gnu"; then
18062 ac_sub_configure
=$ac_srcdir/configure.gnu
18063 elif test -f "$ac_srcdir/configure"; then
18064 ac_sub_configure
=$ac_srcdir/configure
18065 elif test -f "$ac_srcdir/configure.in"; then
18066 # This should be Cygnus configure.
18067 ac_sub_configure
=$ac_aux_dir/configure
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18070 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18074 # The recursion is here.
18075 if test -n "$ac_sub_configure"; then
18076 # Make the cache file name correct relative to the subdirectory.
18077 case $cache_file in
18078 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
18079 *) # Relative name.
18080 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
18083 { $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
18084 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18085 # The eval makes quoting arguments work.
18086 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18087 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18088 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18094 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18096 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}