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
677 READLINE_TEXI_INCFLAG
696 HAVE_NATIVE_GCORE_TARGET
725 INSTALL_STRIP_PROGRAM
751 MAINTAINER_MODE_FALSE
780 program_transform_name
791 ac_subst_files
='host_makefile_frag'
793 enable_option_checking
794 enable_maintainer_mode
797 with_separate_debug_dir
799 with_relocated_sources
801 with_auto_load_safe_path
829 enable_build_warnings
830 enable_gdb_build_warnings
840 with_libbabeltrace_prefix
842 ac_precious_vars
='build_alias
856 ac_subdirs_all
='testsuite
861 # Initialize some variables set by options.
863 ac_init_version
=false
864 ac_unrecognized_opts
=
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
875 program_transform_name
=s
,x
,x
,
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir
='${exec_prefix}/bin'
890 sbindir
='${exec_prefix}/sbin'
891 libexecdir
='${exec_prefix}/libexec'
892 datarootdir
='${prefix}/share'
893 datadir
='${datarootdir}'
894 sysconfdir
='${prefix}/etc'
895 sharedstatedir
='${prefix}/com'
896 localstatedir
='${prefix}/var'
897 includedir
='${prefix}/include'
898 oldincludedir
='/usr/include'
899 docdir
='${datarootdir}/doc/${PACKAGE}'
900 infodir
='${datarootdir}/info'
905 libdir
='${exec_prefix}/lib'
906 localedir
='${datarootdir}/locale'
907 mandir
='${datarootdir}/man'
913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
915 eval $ac_prev=\
$ac_option
921 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
931 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
933 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
936 -build |
--build |
--buil |
--bui |
--bu)
937 ac_prev
=build_alias
;;
938 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
939 build_alias
=$ac_optarg ;;
941 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
942 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
943 ac_prev
=cache_file
;;
944 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
945 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
946 cache_file
=$ac_optarg ;;
949 cache_file
=config.cache
;;
951 -datadir |
--datadir |
--datadi |
--datad)
953 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
954 datadir
=$ac_optarg ;;
956 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
957 |
--dataroo |
--dataro |
--datar)
958 ac_prev
=datarootdir
;;
959 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
960 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
961 datarootdir
=$ac_optarg ;;
963 -disable-* |
--disable-*)
964 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
967 as_fn_error
"invalid feature name: $ac_useropt"
968 ac_useropt_orig
=$ac_useropt
969 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
974 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep
=', ';;
977 eval enable_
$ac_useropt=no
;;
979 -docdir |
--docdir |
--docdi |
--doc |
--do)
981 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
984 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
986 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
989 -enable-* |
--enable-*)
990 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
993 as_fn_error
"invalid feature name: $ac_useropt"
994 ac_useropt_orig
=$ac_useropt
995 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
1000 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep
=', ';;
1003 eval enable_
$ac_useropt=\
$ac_optarg ;;
1005 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1006 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1007 |
--exec |
--exe |
--ex)
1008 ac_prev
=exec_prefix
;;
1009 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1010 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1011 |
--exec=* |
--exe=* |
--ex=*)
1012 exec_prefix
=$ac_optarg ;;
1014 -gas |
--gas |
--ga |
--g)
1015 # Obsolete; use --with-gas.
1018 -help |
--help |
--hel |
--he |
-h)
1019 ac_init_help
=long
;;
1020 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1021 ac_init_help
=recursive
;;
1022 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1023 ac_init_help
=short
;;
1025 -host |
--host |
--hos |
--ho)
1026 ac_prev
=host_alias
;;
1027 -host=* |
--host=* |
--hos=* |
--ho=*)
1028 host_alias
=$ac_optarg ;;
1030 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1032 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1034 htmldir
=$ac_optarg ;;
1036 -includedir |
--includedir |
--includedi |
--included |
--include \
1037 |
--includ |
--inclu |
--incl |
--inc)
1038 ac_prev
=includedir
;;
1039 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1040 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1041 includedir
=$ac_optarg ;;
1043 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1045 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1046 infodir
=$ac_optarg ;;
1048 -libdir |
--libdir |
--libdi |
--libd)
1050 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1051 libdir
=$ac_optarg ;;
1053 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1054 |
--libexe |
--libex |
--libe)
1055 ac_prev
=libexecdir
;;
1056 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1057 |
--libexe=* |
--libex=* |
--libe=*)
1058 libexecdir
=$ac_optarg ;;
1060 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1061 ac_prev
=localedir
;;
1062 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1063 localedir
=$ac_optarg ;;
1065 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1066 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1067 ac_prev
=localstatedir
;;
1068 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1069 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1070 localstatedir
=$ac_optarg ;;
1072 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1074 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1075 mandir
=$ac_optarg ;;
1077 -nfp |
--nfp |
--nf)
1078 # Obsolete; use --without-fp.
1081 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1082 |
--no-cr |
--no-c |
-n)
1085 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1086 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1089 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1090 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1091 |
--oldin |
--oldi |
--old |
--ol |
--o)
1092 ac_prev
=oldincludedir
;;
1093 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1094 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1095 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1096 oldincludedir
=$ac_optarg ;;
1098 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1100 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1101 prefix
=$ac_optarg ;;
1103 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1104 |
--program-pre |
--program-pr |
--program-p)
1105 ac_prev
=program_prefix
;;
1106 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1107 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1108 program_prefix
=$ac_optarg ;;
1110 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1111 |
--program-suf |
--program-su |
--program-s)
1112 ac_prev
=program_suffix
;;
1113 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1114 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1115 program_suffix
=$ac_optarg ;;
1117 -program-transform-name |
--program-transform-name \
1118 |
--program-transform-nam |
--program-transform-na \
1119 |
--program-transform-n |
--program-transform- \
1120 |
--program-transform |
--program-transfor \
1121 |
--program-transfo |
--program-transf \
1122 |
--program-trans |
--program-tran \
1123 |
--progr-tra |
--program-tr |
--program-t)
1124 ac_prev
=program_transform_name
;;
1125 -program-transform-name=* |
--program-transform-name=* \
1126 |
--program-transform-nam=* |
--program-transform-na=* \
1127 |
--program-transform-n=* |
--program-transform-=* \
1128 |
--program-transform=* |
--program-transfor=* \
1129 |
--program-transfo=* |
--program-transf=* \
1130 |
--program-trans=* |
--program-tran=* \
1131 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1132 program_transform_name
=$ac_optarg ;;
1134 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1136 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1137 pdfdir
=$ac_optarg ;;
1139 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1141 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1144 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1145 |
-silent |
--silent |
--silen |
--sile |
--sil)
1148 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1150 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1152 sbindir
=$ac_optarg ;;
1154 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1155 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1156 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1158 ac_prev
=sharedstatedir
;;
1159 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1160 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1161 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1163 sharedstatedir
=$ac_optarg ;;
1165 -site |
--site |
--sit)
1167 -site=* |
--site=* |
--sit=*)
1170 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1172 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1173 srcdir
=$ac_optarg ;;
1175 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1176 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1177 ac_prev
=sysconfdir
;;
1178 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1179 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1180 sysconfdir
=$ac_optarg ;;
1182 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1183 ac_prev
=target_alias
;;
1184 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1185 target_alias
=$ac_optarg ;;
1187 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1190 -version |
--version |
--versio |
--versi |
--vers |
-V)
1191 ac_init_version
=: ;;
1194 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1197 as_fn_error
"invalid package name: $ac_useropt"
1198 ac_useropt_orig
=$ac_useropt
1199 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep
=', ';;
1207 eval with_
$ac_useropt=\
$ac_optarg ;;
1209 -without-* |
--without-*)
1210 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1213 as_fn_error
"invalid package name: $ac_useropt"
1214 ac_useropt_orig
=$ac_useropt
1215 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep
=', ';;
1223 eval with_
$ac_useropt=no
;;
1226 # Obsolete; use --with-x.
1229 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1230 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1231 ac_prev
=x_includes
;;
1232 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1233 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1234 x_includes
=$ac_optarg ;;
1236 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1237 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1238 ac_prev
=x_libraries
;;
1239 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1240 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1241 x_libraries
=$ac_optarg ;;
1243 -*) as_fn_error
"unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information."
1248 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1252 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1254 eval $ac_envvar=\
$ac_optarg
1255 export $ac_envvar ;;
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268 if test -n "$ac_prev"; then
1269 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error
"missing argument to $ac_option"
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1276 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 # Check all directory arguments for consistency.
1282 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1287 eval ac_val
=\$
$ac_var
1288 # Remove trailing slashes.
1291 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\
$ac_val;;
1294 # Be sure to have absolute directory names.
1296 [\\/$
]* | ?
:[\\/]* ) continue;;
1297 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1299 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1307 target
=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x
; then
1311 if test "x$build_alias" = x
; then
1312 cross_compiling
=maybe
1313 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1314 If a cross compiler is detected then cross compile mode will be used." >&2
1315 elif test "x$build_alias" != "x$host_alias"; then
1321 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1323 test "$silent" = yes && exec 6>/dev
/null
1326 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di
=`ls -di .` &&
1328 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1329 as_fn_error
"working directory cannot be determined"
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 as_fn_error
"pwd does not report name of working directory"
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted
=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir
=`$as_dirname -- "$as_myself" ||
1339 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$as_myself" : 'X\(//\)[^/]' \| \
1341 X"$as_myself" : 'X\(//\)$' \| \
1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343 $as_echo X"$as_myself" |
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1366 ac_srcdir_defaulted
=no
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1370 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1372 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1384 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 for ac_var
in $ac_precious_vars; do
1387 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1389 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1394 # Report the --help message.
1396 if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1400 \`configure' configures this package to adapt to many kinds of systems.
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE. See below for descriptions of some of the useful variables.
1407 Defaults for the options are specified in brackets.
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
1414 -q, --quiet, --silent do not print \`checking...' messages
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1420 Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1431 For better control, use the options below.
1433 Fine tuning of the installation directories:
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1463 --x-includes=DIR X include files are
in DIR
1464 --x-libraries=DIR X library files are
in DIR
1467 --build=BUILD configure
for building on BUILD
[guessed
]
1468 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1469 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1473 if test -n "$ac_init_help"; then
1478 --disable-option-checking ignore unrecognized
--enable/--with options
1479 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1480 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1481 --enable-maintainer-mode enable make rules and dependencies not useful
1482 (and sometimes confusing
) to the casual installer
1483 --enable-plugins Enable support
for plugins
(defaults no
)
1484 --disable-largefile omit support
for large files
1485 --enable-targets=TARGETS
1486 alternative target configurations
1487 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1488 --disable-gdbcli disable command-line interface
(CLI
)
1489 --disable-gdbmi disable machine-interface
(MI
)
1490 --enable-tui enable full-screen terminal user interface
(TUI
)
1491 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1492 --enable-profiling enable profiling of GDB
1493 --disable-rpath do not hardcode runtime library paths
1494 --enable-libmcheck Try linking with
-lmcheck if available
1495 --enable-werror treat compile warnings as errors
1496 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1497 --enable-gdb-build-warnings
1498 enable GDB specific build-time compiler warnings
if
1500 --enable-sim link gdb with simulator
1501 --enable-multi-ice build the multi-ice-gdb-server
1502 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1506 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1507 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1508 --with-separate-debug-dir=PATH
1509 look for global separate debug info
in this path
1511 --with-gdb-datadir=PATH
look for global separate data files
in this path
1513 --with-relocated-sources=PATH
1514 automatically relocate this path
for source files
1515 --with-auto-load-dir=PATH
1516 directories from
which to load auto-loaded scripts
1517 [$debugdir:$datadir/auto-load
]
1518 --with-auto-load-safe-path=PATH
1519 directories safe to hold auto-loaded files
1520 [--with-auto-load-dir]
1521 --without-auto-load-safe-path
1522 do not restrict auto-loaded files locations
1523 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1524 --with-curses use the curses library instead of the termcap
1526 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1527 --with-bugurl=URL Direct users to URL to report a bug
1528 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1529 --with-libiconv-prefix=DIR
1530 search
for libiconv
in DIR
/include and DIR
/lib
1531 --with-iconv-bin=PATH specify where to
find the
iconv program
1532 --with-system-readline use installed readline library
1533 --with-jit-reader-dir=PATH
1534 directory to load the JIT readers from
1535 --with-expat include expat support
(auto
/yes
/no
)
1536 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1537 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1538 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1539 --with-python[=PYTHON] include python support
1540 (auto/yes/no/<python-program>)
1541 --with-guile[=GUILE] include guile support
1542 (auto/yes/no/<guile-version>/<pkg-config-program>)
1543 --without-included-regex
1544 don't use included regex
; this is the default on
1545 systems with version
2 of the GNU C library
(use
1546 with caution on other system
)
1547 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1548 --with-system-gdbinit=PATH
1549 automatically load a system-wide gdbinit
file
1550 --with-lzma support lzma compression
(auto
/yes
/no
)
1551 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1552 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1553 --with-tcl directory containing tcl configuration (tclConfig.sh)
1554 --with-tk directory containing tk configuration (tkConfig.sh)
1555 --with-x use the X Window System
1556 --with-babeltrace include babeltrace support (auto/yes/no)
1557 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1558 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1560 Some influential environment variables
:
1561 CC C compiler
command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1564 nonstandard directory
<lib dir
>
1565 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1566 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1567 you have headers
in a nonstandard directory
<include dir
>
1569 MAKEINFO Parent configure detects
if it is of sufficient version.
1571 Parameters
for MAKEINFO.
1572 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1573 the first program found out of: `bison
-y', `byacc', `yacc'.
1574 YFLAGS The list of arguments that will be passed by default to $YACC.
1575 This script will default YFLAGS to the empty string to avoid a
1576 default value of `-d' given by some make applications.
1577 XMKMF Path to xmkmf, Makefile generator for X Window System
1579 Use these variables to override the choices made by `configure' or to
help
1580 it to
find libraries and programs with nonstandard names
/locations.
1582 Report bugs to the package provider.
1587 if test "$ac_init_help" = "recursive"; then
1588 # If there are subdirs, report their specific --help.
1589 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1590 test -d "$ac_dir" ||
1591 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1596 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1598 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1599 # A ".." for each directory in $ac_dir_suffix.
1600 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1601 case $ac_top_builddir_sub in
1602 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1603 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1606 ac_abs_top_builddir
=$ac_pwd
1607 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1608 # for backward compatibility:
1609 ac_top_builddir
=$ac_top_build_prefix
1612 .
) # We are building in place.
1614 ac_top_srcdir
=$ac_top_builddir_sub
1615 ac_abs_top_srcdir
=$ac_pwd ;;
1616 [\\/]* | ?
:[\\/]* ) # Absolute name.
1617 ac_srcdir
=$srcdir$ac_dir_suffix;
1618 ac_top_srcdir
=$srcdir
1619 ac_abs_top_srcdir
=$srcdir ;;
1621 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1622 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1623 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1625 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1627 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1628 # Check for guested configure.
1629 if test -f "$ac_srcdir/configure.gnu"; then
1631 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1632 elif test -f "$ac_srcdir/configure"; then
1634 $SHELL "$ac_srcdir/configure" --help=recursive
1636 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1642 test -n "$ac_init_help" && exit $ac_status
1643 if $ac_init_version; then
1646 generated by GNU Autoconf
2.64
1648 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1649 This configure
script is free software
; the Free Software Foundation
1650 gives unlimited permission to copy
, distribute and modify it.
1655 ## ------------------------ ##
1656 ## Autoconf initialization. ##
1657 ## ------------------------ ##
1659 # ac_fn_c_try_compile LINENO
1660 # --------------------------
1661 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_compile
()
1664 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1665 rm -f conftest.
$ac_objext
1666 if { { ac_try
="$ac_compile"
1668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_compile") 2>conftest.err
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest.$ac_objext; then :
1687 $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695 } # ac_fn_c_try_compile
1697 # ac_fn_c_try_cpp LINENO
1698 # ----------------------
1699 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { { ac_try="$ac_cpp conftest.$ac_ext"
1705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1706 *) ac_try_echo
=$ac_try;;
1708 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1712 if test -s conftest.err
; then
1713 grep -v '^ *+' conftest.err
>conftest.er1
1714 cat conftest.er1
>&5
1715 mv -f conftest.er1 conftest.err
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } >/dev
/null
&& {
1719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1720 test ! -s conftest.err
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.
$ac_ext >&5
1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1734 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1735 # -------------------------------------------------------
1736 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1737 # the include files in INCLUDES and setting the cache variable VAR
1739 ac_fn_c_check_header_mongrel
()
1741 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1742 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750 $as_echo "$ac_res" >&6; }
1752 # Is the header compilable?
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1754 $as_echo_n "checking $2 usability... " >&6; }
1755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1760 if ac_fn_c_try_compile
"$LINENO"; then :
1761 ac_header_compiler
=yes
1763 ac_header_compiler
=no
1765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1767 $as_echo "$ac_header_compiler" >&6; }
1769 # Is the header present?
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1771 $as_echo_n "checking $2 presence... " >&6; }
1772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1776 if ac_fn_c_try_cpp
"$LINENO"; then :
1777 ac_header_preproc
=yes
1779 ac_header_preproc
=no
1781 rm -f conftest.err conftest.
$ac_ext
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1783 $as_echo "$ac_header_preproc" >&6; }
1785 # So? What about this header?
1786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1789 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1795 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1797 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1799 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1801 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1803 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 $as_echo_n "(cached) " >&6
1811 eval "$3=\$ac_header_compiler"
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1819 } # ac_fn_c_check_header_mongrel
1821 # ac_fn_c_try_run LINENO
1822 # ----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824 # that executables *can* be run.
1827 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1828 if { { ac_try
="$ac_link"
1830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>&5
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839 { { case "(($ac_try" in
1840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1841 *) ac_try_echo
=$ac_try;;
1843 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_try") 2>&5
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; }; }; then :
1851 $as_echo "$as_me: program exited with status $ac_status" >&5
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.
$ac_ext >&5
1855 ac_retval
=$ac_status
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1863 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1864 # -------------------------------------------------------
1865 # Tests whether HEADER exists and can be compiled using the include files in
1866 # INCLUDES, setting the cache variable VAR accordingly.
1867 ac_fn_c_check_header_compile
()
1869 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
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 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1880 if ac_fn_c_try_compile
"$LINENO"; then :
1885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1892 } # ac_fn_c_check_header_compile
1894 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1895 # --------------------------------------------
1896 # Tries to find the compile-time value of EXPR in a program that includes
1897 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1899 ac_fn_c_compute_int
()
1901 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1902 if test "$cross_compiling" = yes; then
1903 # Depending upon the size, compute the lo and hi bounds.
1904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1910 static int test_array [1 - 2 * !(($2) >= 0)];
1917 if ac_fn_c_try_compile
"$LINENO"; then :
1920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1926 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1933 if ac_fn_c_try_compile
"$LINENO"; then :
1934 ac_hi
=$ac_mid; break
1936 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1937 if test $ac_lo -le $ac_mid; then
1941 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1952 static int test_array [1 - 2 * !(($2) < 0)];
1959 if ac_fn_c_try_compile
"$LINENO"; then :
1962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1968 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1975 if ac_fn_c_try_compile
"$LINENO"; then :
1976 ac_lo
=$ac_mid; break
1978 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1979 if test $ac_mid -le $ac_hi; then
1983 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
1985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1993 # Binary search between lo and hi bounds.
1994 while test "x$ac_lo" != "x$ac_hi"; do
1995 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
1996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2002 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2009 if ac_fn_c_try_compile
"$LINENO"; then :
2012 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2017 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2024 static long int longval () { return $2; }
2025 static unsigned long int ulongval () { return $2; }
2032 FILE *f = fopen ("conftest.val", "w");
2037 long int i = longval ();
2040 fprintf (f, "%ld", i);
2044 unsigned long int i = ulongval ();
2047 fprintf (f, "%lu", i);
2049 /* Do not output a trailing newline, as this causes \r\n confusion
2050 on some platforms. */
2051 return ferror (f) || fclose (f) != 0;
2057 if ac_fn_c_try_run
"$LINENO"; then :
2058 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2062 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2063 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2067 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2070 } # ac_fn_c_compute_int
2072 # ac_fn_c_try_link LINENO
2073 # -----------------------
2074 # Try to link conftest.$ac_ext, and return whether this succeeded.
2077 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2078 rm -f conftest.
$ac_objext conftest
$ac_exeext
2079 if { { ac_try
="$ac_link"
2081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_link") 2>conftest.err
2088 if test -s conftest.err; then
2089 grep -v '^ *+' conftest.err >conftest.er1
2090 cat conftest.er1 >&5
2091 mv -f conftest.er1 conftest.err
2093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2094 test $ac_status = 0; } && {
2095 test -z "$ac_c_werror_flag" ||
2096 test ! -s conftest.err
2097 } && test -s conftest$ac_exeext && {
2098 test "$cross_compiling" = yes ||
2099 $as_test_x conftest$ac_exeext
2103 $as_echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2108 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2109 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2110 # interfere with the next link command; also delete a directory that is
2111 # left behind by Apple's compiler. We do this before executing the actions.
2112 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2113 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2116 } # ac_fn_c_try_link
2118 # ac_fn_c_check_func LINENO FUNC VAR
2119 # ----------------------------------
2120 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2121 ac_fn_c_check_func ()
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2125 $as_echo_n "checking for $2... " >&6; }
2126 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2127 $as_echo_n "(cached) " >&6
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2131 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2133 #define $2 innocuous_$2
2135 /* System header to define __stub macros and hopefully few prototypes,
2136 which can conflict with char $2 (); below.
2137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2138 <limits.h> exists even on freestanding compilers. */
2141 # include <limits.h>
2143 # include <assert.h>
2148 /* Override any GCC internal prototype to avoid an error.
2149 Use char because int might match the return type of a GCC
2150 builtin and then its argument prototype would still apply. */
2155 /* The GNU C library defines this for functions which it implements
2156 to always fail with ENOSYS. Some functions are actually named
2157 something starting with __ and the normal name is an alias. */
2158 #if defined __stub_$2 || defined __stub___$2
2170 if ac_fn_c_try_link "$LINENO"; then :
2175 rm -f core conftest.err conftest.$ac_objext \
2176 conftest$ac_exeext conftest.$ac_ext
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180 $as_echo "$ac_res" >&6; }
2181 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2183 } # ac_fn_c_check_func
2185 # ac_fn_c_check_decl LINENO SYMBOL VAR
2186 # ------------------------------------
2187 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2188 ac_fn_c_check_decl ()
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2192 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2194 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2195 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2196 $as_echo_n "(cached) " >&6
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2204 #ifndef $as_decl_name
2206 (void) $as_decl_use;
2208 (void) $as_decl_name;
2216 if ac_fn_c_try_compile "$LINENO"; then :
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2228 } # ac_fn_c_check_decl
2230 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2231 # ----------------------------------------------------
2232 # Tries to find if the field MEMBER exists in type AGGR, after including
2233 # INCLUDES, setting cache variable VAR accordingly.
2234 ac_fn_c_check_member ()
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2238 $as_echo_n "checking for $2.$3... " >&6; }
2239 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2240 $as_echo_n "(cached) " >&6
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2255 if ac_fn_c_try_compile "$LINENO"; then :
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2265 if (sizeof ac_aggr.$3)
2271 if ac_fn_c_try_compile "$LINENO"; then :
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2285 } # ac_fn_c_check_member
2287 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2288 # -------------------------------------------
2289 # Tests whether TYPE exists after having included INCLUDES, setting cache
2290 # variable VAR accordingly.
2291 ac_fn_c_check_type ()
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2295 $as_echo_n "checking for $2... " >&6; }
2296 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2297 $as_echo_n "(cached) " >&6
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2312 if ac_fn_c_try_compile "$LINENO"; then :
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2325 if ac_fn_c_try_compile "$LINENO"; then :
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2336 $as_echo "$ac_res" >&6; }
2337 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2339 } # ac_fn_c_check_type
2340 cat >config.log <<_ACEOF
2341 This file contains any messages produced by compilers while
2342 running configure, to aid debugging if configure makes a mistake.
2344 It was created by $as_me, which was
2345 generated by GNU Autoconf 2.64. Invocation command line was
2357 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2358 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2359 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2360 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2361 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2363 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2364 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2366 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2367 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2368 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2369 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2370 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2371 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2372 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 test -z "$as_dir" && as_dir=.
2381 $as_echo "PATH: $as_dir"
2397 # Keep a trace of the command line.
2398 # Strip out --no-create and --no-recursion so they do not pile up.
2399 # Strip out --silent because we don't want to record it for future runs.
2400 # Also quote any args containing shell meta-characters.
2401 # Make two passes to allow for proper duplicate-argument suppression.
2405 ac_must_keep_next=false
2411 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2412 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2413 | -silent | --silent | --silen | --sile | --sil)
2416 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2419 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2421 as_fn_append ac_configure_args1 " '$ac_arg'"
2422 if test $ac_must_keep_next = true; then
2423 ac_must_keep_next=false # Got value, back to normal.
2426 *=* | --config-cache | -C | -disable-* | --disable-* \
2427 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2428 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2429 | -with-* | --with-* | -without-* | --without-* | --x)
2430 case "$ac_configure_args0 " in
2431 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2434 -* ) ac_must_keep_next=true ;;
2437 as_fn_append ac_configure_args " '$ac_arg'"
2442 { ac_configure_args0=; unset ac_configure_args0;}
2443 { ac_configure_args1=; unset ac_configure_args1;}
2445 # When interrupted or exit'd, cleanup temporary files, and complete
2446 # config.log. We remove comments because anyway the quotes in there
2447 # would cause problems or look ugly.
2448 # WARNING: Use '\'' to represent an apostrophe within the trap.
2449 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2450 trap 'exit_status=$?
2451 # Save into config.log some information that might help in debugging.
2456 ## ---------------- ##
2457 ## Cache variables. ##
2458 ## ---------------- ##
2461 # The following way of writing the cache mishandles newlines in values,
2463 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2464 eval ac_val=\$$ac_var
2468 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2469 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2472 _ | IFS | as_nl) ;; #(
2473 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2474 *) { eval $ac_var=; unset $ac_var;} ;;
2479 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2480 *${as_nl}ac_space=\ *)
2482 "s/'\''/'\''\\\\'\'''\''/g;
2483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2486 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2494 ## ----------------- ##
2495 ## Output variables. ##
2496 ## ----------------- ##
2499 for ac_var in $ac_subst_vars
2501 eval ac_val=\$$ac_var
2503 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2505 $as_echo "$ac_var='\''$ac_val'\''"
2509 if test -n "$ac_subst_files"; then
2511 ## ------------------- ##
2512 ## File substitutions. ##
2513 ## ------------------- ##
2516 for ac_var in $ac_subst_files
2518 eval ac_val=\$$ac_var
2520 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2522 $as_echo "$ac_var='\''$ac_val'\''"
2527 if test -s confdefs.h; then
2537 test "$ac_signal" != 0 &&
2538 $as_echo "$as_me: caught signal $ac_signal"
2539 $as_echo "$as_me: exit $exit_status"
2541 rm -f core *.core core.conftest.* &&
2542 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2545 for ac_signal in 1 2 13 15; do
2546 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2550 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2551 rm -f -r conftest* confdefs.h
2553 $as_echo "/* confdefs.h */" > confdefs.h
2555 # Predefined preprocessor variables.
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_NAME "$PACKAGE_NAME"
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_STRING "$PACKAGE_STRING"
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2577 cat >>confdefs.h <<_ACEOF
2578 #define PACKAGE_URL "$PACKAGE_URL"
2582 # Let the site file select an alternate cache file if it wants to.
2583 # Prefer an explicitly selected file to automatically selected ones.
2586 if test -n "$CONFIG_SITE"; then
2587 ac_site_file1=$CONFIG_SITE
2588 elif test "x$prefix" != xNONE; then
2589 ac_site_file1=$prefix/share/config.site
2590 ac_site_file2=$prefix/etc/config.site
2592 ac_site_file1=$ac_default_prefix/share/config.site
2593 ac_site_file2=$ac_default_prefix/etc/config.site
2595 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2597 test "x$ac_site_file" = xNONE && continue
2598 if test -r "$ac_site_file"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2600 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2601 sed 's/^/| /' "$ac_site_file" >&5
2606 if test -r "$cache_file"; then
2607 # Some versions of bash will fail to source /dev/null (special
2608 # files actually), so we avoid doing that.
2609 if test -f "$cache_file"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2611 $as_echo "$as_me: loading cache $cache_file" >&6;}
2613 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2614 *) . "./$cache_file";;
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2619 $as_echo "$as_me: creating cache $cache_file" >&6;}
2623 # Check that the precious variables saved in the cache have kept the same
2625 ac_cache_corrupted=false
2626 for ac_var in $ac_precious_vars; do
2627 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2628 eval ac_new_set=\$ac_env_${ac_var}_set
2629 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2630 eval ac_new_val=\$ac_env_${ac_var}_value
2631 case $ac_old_set,$ac_new_set in
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2634 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2635 ac_cache_corrupted=: ;;
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2638 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2639 ac_cache_corrupted=: ;;
2642 if test "x$ac_old_val" != "x$ac_new_val"; then
2643 # differences in whitespace do not lead to failure.
2644 ac_old_val_w=`echo x
$ac_old_val`
2645 ac_new_val_w=`echo x
$ac_new_val`
2646 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2648 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2649 ac_cache_corrupted=:
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2652 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2653 eval $ac_var=\$ac_old_val
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2656 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2658 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2661 # Pass precious variables to config.status.
2662 if test "$ac_new_set" = set; then
2664 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2665 *) ac_arg=$ac_var=$ac_new_val ;;
2667 case " $ac_configure_args " in
2668 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2669 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2673 if $ac_cache_corrupted; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2677 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2678 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2680 ## -------------------- ##
2681 ## Main body of script. ##
2682 ## -------------------- ##
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694 ac_config_headers="$ac_config_headers config.h:config.in"
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2698 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2699 # Check whether --enable-maintainer-mode was given.
2700 if test "${enable_maintainer_mode+set}" = set; then :
2701 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2703 USE_MAINTAINER_MODE=no
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2707 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2708 if test $USE_MAINTAINER_MODE = yes; then
2709 MAINTAINER_MODE_TRUE=
2710 MAINTAINER_MODE_FALSE='#'
2712 MAINTAINER_MODE_TRUE='#'
2713 MAINTAINER_MODE_FALSE=
2716 MAINT=$MAINTAINER_MODE_TRUE
2720 # Set the 'development' global.
2721 . $srcdir/../bfd/development.sh
2724 ac_cpp='$CPP $CPPFLAGS'
2725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728 if test -n "$ac_tool_prefix"; then
2729 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2730 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if test "${ac_cv_prog_CC+set}" = set; then :
2734 $as_echo_n "(cached) " >&6
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 if test -n "$CC"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2759 $as_echo "$CC" >&6; }
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2767 if test -z "$ac_cv_prog_CC"; then
2769 # Extract the first word of "gcc", so it can be a program name with args.
2770 set dummy gcc; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2774 $as_echo_n "(cached) " >&6
2776 if test -n "$ac_ct_CC"; then
2777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786 ac_cv_prog_ac_ct_CC="gcc"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797 if test -n "$ac_ct_CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2799 $as_echo "$ac_ct_CC" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2805 if test "x$ac_ct_CC" = x; then
2808 case $cross_compiling:$ac_tool_warned in
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2812 ac_tool_warned=yes ;;
2820 if test -z "$CC"; then
2821 if test -n "$ac_tool_prefix"; then
2822 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2823 set dummy ${ac_tool_prefix}cc; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_CC+set}" = set; then :
2827 $as_echo_n "(cached) " >&6
2829 if test -n "$CC"; then
2830 ac_cv_prog_CC="$CC" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_CC="${ac_tool_prefix}cc"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 if test -n "$CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 $as_echo "$CC" >&6; }
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2861 if test -z "$CC"; then
2862 # Extract the first word of "cc", so it can be a program name with args.
2863 set dummy cc; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_CC+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2869 if test -n "$CC"; then
2870 ac_cv_prog_CC="$CC" # Let the user override the test.
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2881 ac_prog_rejected=yes
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 if test $ac_prog_rejected = yes; then
2893 # We found a bogon in the path, so make sure we never use it.
2894 set dummy $ac_cv_prog_CC
2896 if test $# != 0; then
2897 # We chose a different compiler from the bogus one.
2898 # However, it has the same basename, so the bogon will be chosen
2899 # first if we set CC to just the basename; use the full file name.
2901 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2907 if test -n "$CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2909 $as_echo "$CC" >&6; }
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2917 if test -z "$CC"; then
2918 if test -n "$ac_tool_prefix"; then
2919 for ac_prog in cl.exe
2921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if test "${ac_cv_prog_CC+set}" = set; then :
2926 $as_echo_n "(cached) " >&6
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 if test -n "$CC"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951 $as_echo "$CC" >&6; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2958 test -n "$CC" && break
2961 if test -z "$CC"; then
2963 for ac_prog in cl.exe
2965 # Extract the first word of "$ac_prog", so it can be a program name with args.
2966 set dummy $ac_prog; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
2972 if test -n "$ac_ct_CC"; then
2973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 ac_cv_prog_ac_ct_CC="$ac_prog"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2993 if test -n "$ac_ct_CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2995 $as_echo "$ac_ct_CC" >&6; }
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
3002 test -n "$ac_ct_CC" && break
3005 if test "x$ac_ct_CC" = x; then
3008 case $cross_compiling:$ac_tool_warned in
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012 ac_tool_warned=yes ;;
3021 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023 as_fn_error "no acceptable C compiler found
in \
$PATH
3024 See \
`config.log' for more details." "$LINENO" 5; }
3026 # Provide some information about the compiler.
3027 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3030 for ac_option in --version -v -V -qversion; do
3031 { { ac_try="$ac_compiler $ac_option >&5"
3033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3034 *) ac_try_echo
=$ac_try;;
3036 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037 $as_echo "$ac_try_echo"; } >&5
3038 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3040 if test -s conftest.err
; then
3042 ... rest of stderr output deleted ...
3043 10q' conftest.err
>conftest.er1
3044 cat conftest.er1
>&5
3045 rm -f conftest.er1 conftest.err
3047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048 test $ac_status = 0; }
3051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3052 /* end confdefs.h. */
3062 ac_clean_files_save
=$ac_clean_files
3063 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3064 # Try to create an executable without -o first, disregard a.out.
3065 # It will help us diagnose broken compilers, and finding out an intuition
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3068 $as_echo_n "checking for C compiler default output file name... " >&6; }
3069 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3071 # The possible output files:
3072 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3075 for ac_file
in $ac_files
3078 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3079 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3084 if { { ac_try
="$ac_link_default"
3086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_link_default") 2>&5
3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }; then :
3095 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3096 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3097 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3098 # so that the user can short-circuit this test for compilers unknown to
3100 for ac_file in $ac_files ''
3102 test -f "$ac_file" || continue
3104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3107 # We found the default executable, but exeext='' is most
3111 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3113 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3115 # We set ac_cv_exeext here because the later test for it is not
3116 # safe: cross compilers may not add the suffix if given an `-o'
3117 # argument, so we may need to know it at that point already.
3118 # Even if this section looks crufty: it has the advantage of
3125 test "$ac_cv_exeext" = no && ac_cv_exeext=
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3131 $as_echo "$ac_file" >&6; }
3132 if test -z "$ac_file"; then :
3133 $as_echo "$as_me: failed program was:" >&5
3134 sed 's
/^
/|
/' conftest.$ac_ext >&5
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3138 { as_fn_set_status 77
3139 as_fn_error "C compiler cannot create executables
3140 See \`config.log
' for more details." "$LINENO" 5; }; }
3142 ac_exeext=$ac_cv_exeext
3144 # Check that the compiler produces executables we can run. If not, either
3145 # the compiler is broken, or we cross compile.
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3147 $as_echo_n "checking whether the C compiler works... " >&6; }
3148 # If not cross compiling, check that we can run a simple program.
3149 if test "$cross_compiling" != yes; then
3150 if { ac_try='.
/$ac_file'
3151 { { case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157 (eval "$ac_try") 2>&5
3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160 test $ac_status = 0; }; }; then
3163 if test "$cross_compiling" = maybe; then
3166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3168 as_fn_error "cannot run C compiled programs.
3169 If you meant to cross compile, use \`--host'.
3170 See \`config.log' for more details.
" "$LINENO" 5; }
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3175 $as_echo "yes" >&6; }
3177 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3178 ac_clean_files=$ac_clean_files_save
3179 # Check that the compiler produces executables we can run. If not, either
3180 # the compiler is broken, or we cross compile.
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3182 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3184 $as_echo "$cross_compiling" >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3187 $as_echo_n "checking
for suffix of executables...
" >&6; }
3188 if { { ac_try="$ac_link"
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195 (eval "$ac_link") 2>&5
3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3198 test $ac_status = 0; }; then :
3199 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3200 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3201 # work properly (i.e., refer to `conftest.exe'), while it won't with
3203 for ac_file in conftest.exe conftest conftest.*; do
3204 test -f "$ac_file" || continue
3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3207 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215 as_fn_error "cannot compute suffix of executables: cannot compile and link
3216 See \`config.log' for more details.
" "$LINENO" 5; }
3218 rm -f conftest$ac_cv_exeext
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3220 $as_echo "$ac_cv_exeext" >&6; }
3222 rm -f conftest.$ac_ext
3223 EXEEXT=$ac_cv_exeext
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3226 $as_echo_n "checking
for suffix of object files...
" >&6; }
3227 if test "${ac_cv_objext+set}" = set; then :
3228 $as_echo_n "(cached
) " >&6
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3241 rm -f conftest.o conftest.obj
3242 if { { ac_try="$ac_compile"
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249 (eval "$ac_compile") 2>&5
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3252 test $ac_status = 0; }; then :
3253 for ac_file in conftest.o conftest.obj conftest.*; do
3254 test -f "$ac_file" || continue;
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3257 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3262 $as_echo "$as_me: failed program was
:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267 as_fn_error "cannot compute suffix of object files: cannot compile
3268 See \`config.log' for more details.
" "$LINENO" 5; }
3270 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3273 $as_echo "$ac_cv_objext" >&6; }
3274 OBJEXT=$ac_cv_objext
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3277 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3278 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3279 $as_echo_n "(cached
) " >&6
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3295 if ac_fn_c_try_compile "$LINENO"; then :
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3305 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3306 if test $ac_compiler_gnu = yes; then
3311 ac_test_CFLAGS=${CFLAGS+set}
3312 ac_save_CFLAGS=$CFLAGS
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3314 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3315 if test "${ac_cv_prog_cc_g+set}" = set; then :
3316 $as_echo_n "(cached
) " >&6
3318 ac_save_c_werror_flag=$ac_c_werror_flag
3319 ac_c_werror_flag=yes
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3333 if ac_fn_c_try_compile "$LINENO"; then :
3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h. */
3348 if ac_fn_c_try_compile "$LINENO"; then :
3351 ac_c_werror_flag=$ac_save_c_werror_flag
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3364 if ac_fn_c_try_compile "$LINENO"; then :
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372 ac_c_werror_flag=$ac_save_c_werror_flag
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3375 $as_echo "$ac_cv_prog_cc_g" >&6; }
3376 if test "$ac_test_CFLAGS" = set; then
3377 CFLAGS=$ac_save_CFLAGS
3378 elif test $ac_cv_prog_cc_g = yes; then
3379 if test "$GCC" = yes; then
3385 if test "$GCC" = yes; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3392 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3393 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3394 $as_echo_n "(cached
) " >&6
3396 ac_cv_prog_cc_c89=no
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3402 #include <sys/types.h>
3403 #include <sys/stat.h>
3404 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3405 struct buf { int x; };
3406 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3407 static char *e (p, i)
3413 static char *f (char * (*g) (char **, int), char **p, ...)
3418 s = g (p, va_arg (v,int));
3423 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3424 function prototypes and stuff, but not '\xHH' hex character constants.
3425 These don't provoke an error unfortunately, instead are silently treated
3426 as 'x'. The following induces an error, until -std is added to get
3427 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3428 array size at least. It's necessary to write '\x00'==0 to get something
3429 that's true only with -std. */
3430 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3432 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3433 inside strings and character constants. */
3435 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3437 int test (int i, double x);
3438 struct s1 {int (*f) (int a);};
3439 struct s2 {int (*f) (double a);};
3440 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3446 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3451 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3452 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3454 CC="$ac_save_CC $ac_arg"
3455 if ac_fn_c_try_compile "$LINENO"; then :
3456 ac_cv_prog_cc_c89=$ac_arg
3458 rm -f core conftest.err conftest.$ac_objext
3459 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3461 rm -f conftest.$ac_ext
3466 case "x
$ac_cv_prog_cc_c89" in
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3469 $as_echo "none needed
" >&6; } ;;
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3472 $as_echo "unsupported
" >&6; } ;;
3474 CC="$CC $ac_cv_prog_cc_c89"
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3476 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3478 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3495 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3496 # On Suns, sometimes $CPP names a directory.
3497 if test -n "$CPP" && test -d "$CPP"; then
3500 if test -z "$CPP"; then
3501 if test "${ac_cv_prog_CPP+set}" = set; then :
3502 $as_echo_n "(cached
) " >&6
3504 # Double quotes because CPP needs to be expanded
3505 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3508 for ac_c_preproc_warn_flag in '' yes
3510 # Use a header file that comes with gcc, so configuring glibc
3511 # with a fresh cross-compiler works.
3512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3513 # <limits.h> exists even on freestanding compilers.
3514 # On the NeXT, cc -E runs the code through the compiler's parser,
3515 # not just through cpp. "Syntax error
" is here to catch this case.
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3519 # include <limits.h>
3521 # include <assert.h>
3525 if ac_fn_c_try_cpp "$LINENO"; then :
3528 # Broken: fails on valid input.
3531 rm -f conftest.err conftest.$ac_ext
3533 # OK, works on sane cases. Now check whether nonexistent headers
3534 # can be detected and how.
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3537 #include <ac_nonexistent.h>
3539 if ac_fn_c_try_cpp "$LINENO"; then :
3540 # Broken: success on invalid input.
3543 # Passes both tests.
3547 rm -f conftest.err conftest.$ac_ext
3550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3551 rm -f conftest.err conftest.$ac_ext
3552 if $ac_preproc_ok; then :
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3565 $as_echo "$CPP" >&6; }
3567 for ac_c_preproc_warn_flag in '' yes
3569 # Use a header file that comes with gcc, so configuring glibc
3570 # with a fresh cross-compiler works.
3571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3572 # <limits.h> exists even on freestanding compilers.
3573 # On the NeXT, cc -E runs the code through the compiler's parser,
3574 # not just through cpp. "Syntax error
" is here to catch this case.
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3578 # include <limits.h>
3580 # include <assert.h>
3584 if ac_fn_c_try_cpp "$LINENO"; then :
3587 # Broken: fails on valid input.
3590 rm -f conftest.err conftest.$ac_ext
3592 # OK, works on sane cases. Now check whether nonexistent headers
3593 # can be detected and how.
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3596 #include <ac_nonexistent.h>
3598 if ac_fn_c_try_cpp "$LINENO"; then :
3599 # Broken: success on invalid input.
3602 # Passes both tests.
3606 rm -f conftest.err conftest.$ac_ext
3609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3610 rm -f conftest.err conftest.$ac_ext
3611 if $ac_preproc_ok; then :
3614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3617 See \`config.log' for more details.
" "$LINENO" 5; }
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3628 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3629 if test "${ac_cv_path_GREP+set}" = set; then :
3630 $as_echo_n "(cached
) " >&6
3632 if test -z "$GREP"; then
3633 ac_path_GREP_found=false
3634 # Loop through the user's path and test for each of PROGNAME-LIST
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3639 test -z "$as_dir" && as_dir=.
3640 for ac_prog in grep ggrep; do
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3643 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3644 # Check for GNU ac_path_GREP and select it if it is found.
3645 # Check for GNU $ac_path_GREP
3646 case `"$ac_path_GREP" --version 2>&1` in
3648 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3651 $as_echo_n 0123456789 >"conftest.
in"
3654 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3655 mv "conftest.tmp
" "conftest.
in"
3656 cp "conftest.
in" "conftest.
nl"
3657 $as_echo 'GREP' >> "conftest.
nl"
3658 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3659 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3660 as_fn_arith $ac_count + 1 && ac_count=$as_val
3661 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3662 # Best one so far, save it but keep looking for a better one
3663 ac_cv_path_GREP="$ac_path_GREP"
3664 ac_path_GREP_max=$ac_count
3666 # 10*(2^10) chars as input seems more than enough
3667 test $ac_count -gt 10 && break
3669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3672 $ac_path_GREP_found && break 3
3677 if test -z "$ac_cv_path_GREP"; then
3678 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3681 ac_cv_path_GREP=$GREP
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3686 $as_echo "$ac_cv_path_GREP" >&6; }
3687 GREP="$ac_cv_path_GREP"
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3691 $as_echo_n "checking
for egrep...
" >&6; }
3692 if test "${ac_cv_path_EGREP+set}" = set; then :
3693 $as_echo_n "(cached
) " >&6
3695 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3696 then ac_cv_path_EGREP="$GREP -E"
3698 if test -z "$EGREP"; then
3699 ac_path_EGREP_found=false
3700 # Loop through the user's path and test for each of PROGNAME-LIST
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3705 test -z "$as_dir" && as_dir=.
3706 for ac_prog in egrep; do
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3709 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3710 # Check for GNU ac_path_EGREP and select it if it is found.
3711 # Check for GNU $ac_path_EGREP
3712 case `"$ac_path_EGREP" --version 2>&1` in
3714 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3717 $as_echo_n 0123456789 >"conftest.
in"
3720 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3721 mv "conftest.tmp
" "conftest.
in"
3722 cp "conftest.
in" "conftest.
nl"
3723 $as_echo 'EGREP' >> "conftest.
nl"
3724 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3725 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3726 as_fn_arith $ac_count + 1 && ac_count=$as_val
3727 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3728 # Best one so far, save it but keep looking for a better one
3729 ac_cv_path_EGREP="$ac_path_EGREP"
3730 ac_path_EGREP_max=$ac_count
3732 # 10*(2^10) chars as input seems more than enough
3733 test $ac_count -gt 10 && break
3735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3738 $ac_path_EGREP_found && break 3
3743 if test -z "$ac_cv_path_EGREP"; then
3744 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3747 ac_cv_path_EGREP=$EGREP
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3753 $as_echo "$ac_cv_path_EGREP" >&6; }
3754 EGREP="$ac_cv_path_EGREP"
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3758 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3759 if test "${ac_cv_header_stdc+set}" = set; then :
3760 $as_echo_n "(cached
) " >&6
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3777 if ac_fn_c_try_compile "$LINENO"; then :
3778 ac_cv_header_stdc=yes
3780 ac_cv_header_stdc=no
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 if test $ac_cv_header_stdc = yes; then
3785 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3791 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3792 $EGREP "memchr
" >/dev/null 2>&1; then :
3795 ac_cv_header_stdc=no
3801 if test $ac_cv_header_stdc = yes; then
3802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3808 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3809 $EGREP "free
" >/dev/null 2>&1; then :
3812 ac_cv_header_stdc=no
3818 if test $ac_cv_header_stdc = yes; then
3819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3820 if test "$cross_compiling" = yes; then :
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3827 #if ((' ' & 0x0FF) == 0x020)
3828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3831 # define ISLOWER(c) \
3832 (('a' <= (c) && (c) <= 'i') \
3833 || ('j' <= (c) && (c) <= 'r') \
3834 || ('s' <= (c) && (c) <= 'z'))
3835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3843 for (i = 0; i < 256; i++)
3844 if (XOR (islower (i), ISLOWER (i))
3845 || toupper (i) != TOUPPER (i))
3850 if ac_fn_c_try_run "$LINENO"; then :
3853 ac_cv_header_stdc=no
3855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3856 conftest.$ac_objext conftest.beam conftest.$ac_ext
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3862 $as_echo "$ac_cv_header_stdc" >&6; }
3863 if test $ac_cv_header_stdc = yes; then
3865 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3869 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3870 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3871 inttypes.h stdint.h unistd.h
3873 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3874 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3876 eval as_val
=\$
$as_ac_Header
3877 if test "x$as_val" = x
""yes; then :
3878 cat >>confdefs.h
<<_ACEOF
3879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3888 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3889 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3896 if test "$MINIX" = yes; then
3898 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3901 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3904 $as_echo "#define _MINIX 1" >>confdefs.h
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3910 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3911 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3912 $as_echo_n "(cached) " >&6
3914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3917 # define __EXTENSIONS__ 1
3918 $ac_includes_default
3927 if ac_fn_c_try_compile
"$LINENO"; then :
3928 ac_cv_safe_to_define___extensions__
=yes
3930 ac_cv_safe_to_define___extensions__
=no
3932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3935 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3936 test $ac_cv_safe_to_define___extensions__ = yes &&
3937 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3939 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3941 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3943 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3945 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3949 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3950 for ac_t
in install-sh
install.sh shtool
; do
3951 if test -f "$ac_dir/$ac_t"; then
3953 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3958 if test -z "$ac_aux_dir"; then
3959 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3962 # These three variables are undocumented and unsupported,
3963 # and are intended to be withdrawn in a future Autoconf release.
3964 # They can cause serious problems if a builder's source tree is in a directory
3965 # whose full name contains unusual characters.
3966 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3967 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3968 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3971 # Make sure we can run config.sub.
3972 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3973 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3976 $as_echo_n "checking build system type... " >&6; }
3977 if test "${ac_cv_build+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3980 ac_build_alias
=$build_alias
3981 test "x$ac_build_alias" = x
&&
3982 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3983 test "x$ac_build_alias" = x
&&
3984 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3985 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3986 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3990 $as_echo "$ac_cv_build" >&6; }
3991 case $ac_cv_build in
3993 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3996 ac_save_IFS
=$IFS; IFS
='-'
4002 # Remember, the first character of IFS is used to create $*,
4003 # except with old shells:
4006 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4010 $as_echo_n "checking host system type... " >&6; }
4011 if test "${ac_cv_host+set}" = set; then :
4012 $as_echo_n "(cached) " >&6
4014 if test "x$host_alias" = x
; then
4015 ac_cv_host
=$ac_cv_build
4017 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4018 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4023 $as_echo "$ac_cv_host" >&6; }
4026 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4029 ac_save_IFS
=$IFS; IFS
='-'
4035 # Remember, the first character of IFS is used to create $*,
4036 # except with old shells:
4039 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4043 $as_echo_n "checking target system type... " >&6; }
4044 if test "${ac_cv_target+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4047 if test "x$target_alias" = x
; then
4048 ac_cv_target
=$ac_cv_host
4050 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4051 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4056 $as_echo "$ac_cv_target" >&6; }
4057 case $ac_cv_target in
4059 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4061 target
=$ac_cv_target
4062 ac_save_IFS
=$IFS; IFS
='-'
4068 # Remember, the first character of IFS is used to create $*,
4069 # except with old shells:
4072 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4075 # The aliases save the names the user supplied, while $host etc.
4076 # will get canonicalized.
4077 test -n "$target_alias" &&
4078 test "$program_prefix$program_suffix$program_transform_name" = \
4080 program_prefix
=${target_alias}-
4082 # The tests for host and target for $enable_largefile require
4087 # As the $enable_largefile decision depends on --enable-plugins we must set it
4088 # even in directories otherwise not depending on the $plugins option.
4091 # Check whether --enable-plugins was given.
4092 if test "${enable_plugins+set}" = set; then :
4093 enableval
=$enable_plugins; case "${enableval}" in
4094 yes |
"") plugins
=yes ;;
4105 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4106 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4107 # are mutually exclusive; and without procfs support, the bfd/ elf module
4108 # cannot provide certain routines such as elfcore_write_prpsinfo
4109 # or elfcore_write_prstatus. So unless the user explicitly requested
4110 # large-file support through the --enable-largefile switch, disable
4111 # large-file support in favor of procfs support.
4112 test "${target}" = "${host}" -a "x$plugins" = xno \
4113 && : ${enable_largefile="no"}
4117 # Check whether --enable-largefile was given.
4118 if test "${enable_largefile+set}" = set; then :
4119 enableval
=$enable_largefile;
4122 if test "$enable_largefile" != no
; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4125 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4126 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4127 $as_echo_n "(cached) " >&6
4129 ac_cv_sys_largefile_CC
=no
4130 if test "$GCC" != yes; then
4133 # IRIX 6.2 and later do not support large files by default,
4134 # so use the C compiler's -n32 option if that helps.
4135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137 #include <sys/types.h>
4138 /* Check that off_t can represent 2**63 - 1 correctly.
4139 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4140 since some C++ compilers masquerading as C compilers
4141 incorrectly reject 9223372036854775807. */
4142 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4143 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4144 && LARGE_OFF_T % 2147483647 == 1)
4154 if ac_fn_c_try_compile
"$LINENO"; then :
4157 rm -f core conftest.err conftest.
$ac_objext
4159 if ac_fn_c_try_compile
"$LINENO"; then :
4160 ac_cv_sys_largefile_CC
=' -n32'; break
4162 rm -f core conftest.err conftest.
$ac_objext
4166 rm -f conftest.
$ac_ext
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4170 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4171 if test "$ac_cv_sys_largefile_CC" != no
; then
4172 CC
=$CC$ac_cv_sys_largefile_CC
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4176 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4177 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4178 $as_echo_n "(cached) " >&6
4181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4183 #include <sys/types.h>
4184 /* Check that off_t can represent 2**63 - 1 correctly.
4185 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4186 since some C++ compilers masquerading as C compilers
4187 incorrectly reject 9223372036854775807. */
4188 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4189 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4190 && LARGE_OFF_T % 2147483647 == 1)
4200 if ac_fn_c_try_compile
"$LINENO"; then :
4201 ac_cv_sys_file_offset_bits
=no
; break
4203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206 #define _FILE_OFFSET_BITS 64
4207 #include <sys/types.h>
4208 /* Check that off_t can represent 2**63 - 1 correctly.
4209 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4210 since some C++ compilers masquerading as C compilers
4211 incorrectly reject 9223372036854775807. */
4212 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4213 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4214 && LARGE_OFF_T % 2147483647 == 1)
4224 if ac_fn_c_try_compile
"$LINENO"; then :
4225 ac_cv_sys_file_offset_bits
=64; break
4227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4228 ac_cv_sys_file_offset_bits
=unknown
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4233 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4234 case $ac_cv_sys_file_offset_bits in #(
4237 cat >>confdefs.h
<<_ACEOF
4238 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4243 if test $ac_cv_sys_file_offset_bits = unknown
; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4245 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4246 if test "${ac_cv_sys_large_files+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252 #include <sys/types.h>
4253 /* Check that off_t can represent 2**63 - 1 correctly.
4254 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4255 since some C++ compilers masquerading as C compilers
4256 incorrectly reject 9223372036854775807. */
4257 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4258 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4259 && LARGE_OFF_T % 2147483647 == 1)
4269 if ac_fn_c_try_compile
"$LINENO"; then :
4270 ac_cv_sys_large_files
=no
; break
4272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275 #define _LARGE_FILES 1
4276 #include <sys/types.h>
4277 /* Check that off_t can represent 2**63 - 1 correctly.
4278 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4279 since some C++ compilers masquerading as C compilers
4280 incorrectly reject 9223372036854775807. */
4281 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4282 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4283 && LARGE_OFF_T % 2147483647 == 1)
4293 if ac_fn_c_try_compile
"$LINENO"; then :
4294 ac_cv_sys_large_files
=1; break
4296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4297 ac_cv_sys_large_files
=unknown
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4302 $as_echo "$ac_cv_sys_large_files" >&6; }
4303 case $ac_cv_sys_large_files in #(
4306 cat >>confdefs.h
<<_ACEOF
4307 #define _LARGE_FILES $ac_cv_sys_large_files
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4320 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4321 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4322 $as_echo_n "(cached) " >&6
4324 am_cv_prog_cc_stdc
=no
4326 # Don't try gcc -ansi; that turns off useful extensions and
4327 # breaks some systems' header files.
4328 # AIX -qlanglvl=ansi
4329 # Ultrix and OSF/1 -std1
4330 # HP-UX 10.20 and later -Ae
4331 # HP-UX older versions -Aa -D_HPUX_SOURCE
4332 # SVR4 -Xc -D__EXTENSIONS__
4333 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4335 CC
="$ac_save_CC $ac_arg"
4336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4340 #include <sys/types.h>
4341 #include <sys/stat.h>
4342 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4343 struct buf { int x; };
4344 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4345 static char *e (p, i)
4351 static char *f (char * (*g) (char **, int), char **p, ...)
4356 s = g (p, va_arg (v,int));
4360 int test (int i, double x);
4361 struct s1 {int (*f) (int a);};
4362 struct s2 {int (*f) (double a);};
4363 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4371 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4377 if ac_fn_c_try_compile
"$LINENO"; then :
4378 am_cv_prog_cc_stdc
="$ac_arg"; break
4380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4386 if test -z "$am_cv_prog_cc_stdc"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4388 $as_echo "none needed" >&6; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4391 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4393 case "x$am_cv_prog_cc_stdc" in
4395 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4398 # expand $ac_aux_dir to an absolute path
4399 am_aux_dir
=`cd $ac_aux_dir && pwd`
4401 if test x
"${install_sh}" != xset
; then
4404 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4406 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4410 # Installed binaries are usually stripped using `strip' when the user
4411 # run `make install-strip'. However `strip' might not be the right
4412 # tool to use in cross-compilation environments, therefore Automake
4413 # will honor the `STRIP' environment variable to overrule this program.
4414 if test "$cross_compiling" != no
; then
4415 if test -n "$ac_tool_prefix"; then
4416 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4417 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if test "${ac_cv_prog_STRIP+set}" = set; then :
4421 $as_echo_n "(cached) " >&6
4423 if test -n "$STRIP"; then
4424 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4430 test -z "$as_dir" && as_dir
=.
4431 for ac_exec_ext
in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 STRIP
=$ac_cv_prog_STRIP
4444 if test -n "$STRIP"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4446 $as_echo "$STRIP" >&6; }
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4454 if test -z "$ac_cv_prog_STRIP"; then
4456 # Extract the first word of "strip", so it can be a program name with args.
4457 set dummy strip
; ac_word
=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
4463 if test -n "$ac_ct_STRIP"; then
4464 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4470 test -z "$as_dir" && as_dir
=.
4471 for ac_exec_ext
in '' $ac_executable_extensions; do
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 ac_cv_prog_ac_ct_STRIP
="strip"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4484 if test -n "$ac_ct_STRIP"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4486 $as_echo "$ac_ct_STRIP" >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4492 if test "x$ac_ct_STRIP" = x
; then
4495 case $cross_compiling:$ac_tool_warned in
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4499 ac_tool_warned
=yes ;;
4504 STRIP
="$ac_cv_prog_STRIP"
4508 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4512 for ac_dir
in ..
"$srcdir"/..
; do
4513 for ac_t
in install-sh
install.sh shtool
; do
4514 if test -f "$ac_dir/$ac_t"; then
4516 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4521 if test -z "$ac_aux_dir"; then
4522 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4525 # These three variables are undocumented and unsupported,
4526 # and are intended to be withdrawn in a future Autoconf release.
4527 # They can cause serious problems if a builder's source tree is in a directory
4528 # whose full name contains unusual characters.
4529 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4530 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4531 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4535 test "$program_prefix" != NONE
&&
4536 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4537 # Use a double $ so make ignores it.
4538 test "$program_suffix" != NONE
&&
4539 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4540 # Double any \ or $.
4541 # By default was `s,x,x', remove it if useless.
4542 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4543 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4546 # Dependency checking.
4547 rm -rf .tst
2>/dev
/null
4548 mkdir .tst
2>/dev
/null
4549 if test -d .tst
; then
4554 rmdir .tst
2>/dev
/null
4556 DEPDIR
="${am__leading_dot}deps"
4558 ac_config_commands
="$ac_config_commands depdir"
4561 depcc
="$CC" am_compiler_list
=
4563 am_depcomp
=$ac_aux_dir/depcomp
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4565 $as_echo_n "checking dependency style of $depcc... " >&6; }
4566 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4569 if test -f "$am_depcomp"; then
4570 # We make a subdir and do the tests there. Otherwise we can end up
4571 # making bogus files that we don't know about and never remove. For
4572 # instance it was reported that on HP-UX the gcc test will end up
4573 # making a dummy file named `D' -- because `-MD' means `put the output
4576 # Copy depcomp to subdir because otherwise we won't find it if we're
4577 # using a relative directory.
4578 cp "$am_depcomp" conftest.dir
4580 # We will build objects and dependencies in a subdirectory because
4581 # it helps to detect inapplicable dependency modes. For instance
4582 # both Tru64's cc and ICC support -MD to output dependencies as a
4583 # side effect of compilation, but ICC will put the dependencies in
4584 # the current directory while Tru64 will put them in the object
4588 am_cv_CC_dependencies_compiler_type
=none
4589 if test "$am_compiler_list" = ""; then
4590 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4592 for depmode
in $am_compiler_list; do
4593 if test $depmode = none
; then break; fi
4595 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4596 # Setup a source with many dependencies, because some compilers
4597 # like to wrap large dependency lists on column 80 (with \), and
4598 # we should not choose a depcomp mode which is confused by this.
4600 # We need to recreate these files for each test, as the compiler may
4601 # overwrite some of them when testing with obscure command lines.
4602 # This happens at least with the AIX C compiler.
4604 for i
in 1 2 3 4 5 6; do
4605 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4606 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4607 # Solaris 8's {/usr,}/bin/sh.
4608 touch sub
/conftst
$i.h
4610 echo "include sub/conftest.Po" > confmf
4612 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4613 # mode. It turns out that the SunPro C++ compiler does not properly
4614 # handle `-M -o', and we need to detect this.
4615 depcmd
="depmode=$depmode \
4616 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4617 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4618 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4619 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4620 if env
$depcmd > conftest.err
2>&1 &&
4621 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4622 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4623 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4624 # icc doesn't choke on unknown options, it will just issue warnings
4625 # or remarks (even with -Werror). So we grep stderr for any message
4626 # that says an option was ignored or not supported.
4627 # When given -MP, icc 7.0 and 7.1 complain thusly:
4628 # icc: Command line warning: ignoring option '-M'; no argument required
4629 # The diagnosis changed in icc 8.0:
4630 # icc: Command line remark: option '-MP' not supported
4631 if (grep 'ignoring option' conftest.err ||
4632 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4633 am_cv_CC_dependencies_compiler_type
=$depmode
4634 $as_echo "$as_me:$LINENO: success" >&5
4638 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4639 sed -e 's/^/| /' < conftest.err
>&5
4645 am_cv_CC_dependencies_compiler_type
=none
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4650 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4651 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4652 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4653 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4658 # Check for the 'make' the user wants to use.
4661 # Extract the first word of "$ac_prog", so it can be a program name with args.
4662 set dummy
$ac_prog; ac_word
=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if test "${ac_cv_prog_MAKE+set}" = set; then :
4666 $as_echo_n "(cached) " >&6
4668 if test -n "$MAKE"; then
4669 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir
=.
4676 for ac_exec_ext
in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_MAKE
="$ac_prog"
4679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 MAKE
=$ac_cv_prog_MAKE
4689 if test -n "$MAKE"; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4691 $as_echo "$MAKE" >&6; }
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4698 test -n "$MAKE" && break
4702 case "`$MAKE --version 2>&1 | sed 1q`" in
4707 if test "$MAKE_IS_GNU" = yes; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4716 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4718 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4719 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4720 $as_echo_n "(cached) " >&6
4722 cat >conftest.
make <<\_ACEOF
4725 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4728 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4730 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4732 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4736 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4738 $as_echo "yes" >&6; }
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4743 SET_MAKE
="MAKE=${MAKE-make}"
4747 # Configure gnulib. We need to build gnulib under some other
4748 # directory not "gnulib", to avoid the problem of both GDB and
4749 # GDBserver wanting to build it in the same directory, when building
4750 # in the source dir.
4753 in_build
="build-gnulib"
4755 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4756 # so they do not pile up.
4757 ac_sub_configure_args
=
4759 eval "set x $ac_configure_args"
4763 if test -n "$ac_prev"; then
4768 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
4769 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
4770 ac_prev
=cache_file
;;
4771 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
4772 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
4775 --config-cache |
-C)
4777 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
4779 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
4781 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
4783 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
4785 --disable-option-checking)
4789 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4791 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
4795 # Always prepend --prefix to ensure using the same prefix
4796 # in subdir configurations.
4797 ac_arg
="--prefix=$prefix"
4799 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4801 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
4804 if test "$silent" = yes; then
4805 ac_sub_configure_args
="--silent $ac_sub_configure_args"
4808 # Always prepend --disable-option-checking to silence warnings, since
4809 # different subdirs can have different --enable and --with options.
4810 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
4815 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4816 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4817 $as_echo "$ac_msg" >&6
4818 as_dir
="$ac_dir"; as_fn_mkdir_p
4822 ac_srcdir
=$srcdir/$in_src ;;
4824 ac_srcdir
=..
/$srcdir/$in_src ;;
4829 ac_sub_configure
=$ac_srcdir/configure
4831 # Make the cache file name correct relative to the subdirectory.
4833 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
4835 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
4838 { $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
4839 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4840 # The eval makes quoting arguments work.
4841 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4842 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4843 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4859 # If we haven't got the data from the intl directory,
4860 # assume NLS is disabled.
4869 if test -f ..
/intl
/config.intl
; then
4870 . ..
/intl
/config.intl
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4873 $as_echo_n "checking whether NLS is requested... " >&6; }
4874 if test x
"$USE_NLS" != xyes
; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4879 $as_echo "yes" >&6; }
4881 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4885 $as_echo_n "checking for catalogs to be installed... " >&6; }
4886 # Look for .po and .gmo files in the source directory.
4889 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4890 # If there aren't any .gmo files the shell will give us the
4891 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4893 case "$cat" in *\
**)
4896 # The quadruple backslash is collapsed to a double backslash
4897 # by the backticks, then collapsed again by the double quotes,
4898 # leaving us with one backslash in the sed expression (right
4899 # before the dot that mustn't act as a wildcard).
4900 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4901 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4902 # The user is allowed to set LINGUAS to a list of languages to
4903 # install catalogs for. If it's empty that means "all of them."
4904 if test "x$LINGUAS" = x
; then
4905 CATALOGS
="$CATALOGS $cat"
4906 XLINGUAS
="$XLINGUAS $lang"
4908 case "$LINGUAS" in *$lang*)
4909 CATALOGS
="$CATALOGS $cat"
4910 XLINGUAS
="$XLINGUAS $lang"
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4917 $as_echo "$LINGUAS" >&6; }
4930 localedir
='${datadir}/locale'
4933 if test x
"$USE_NLS" = xyes
; then
4934 CONFIG_ALL
="$CONFIG_ALL all-po"
4935 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4936 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4937 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4940 GNULIB
=build-gnulib
/import
4942 # For Makefile dependencies.
4944 if test x
"$STDINT_H" != x
; then
4945 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
4951 cat >>confdefs.h
<<_ACEOF
4952 #define PACKAGE "$PACKAGE"
4957 # We never need to detect it in this sub-configure.
4958 # But preserve it for config.status --recheck.
4962 MAKEINFO_EXTRA_FLAGS
=""
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
4964 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
4965 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
4966 $as_echo_n "(cached) " >&6
4968 echo '@clicksequence{a @click{} b}' >conftest.texinfo
4969 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
4970 gdb_cv_have_makeinfo_click
=yes
4972 gdb_cv_have_makeinfo_click
=no
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
4976 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
4977 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
4978 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
4984 # Check whether --with-separate-debug-dir was given.
4985 if test "${with_separate_debug_dir+set}" = set; then :
4986 withval
=$with_separate_debug_dir;
4989 DEBUGDIR
=${libdir}/debug
4993 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
4994 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4995 ac_define_dir
=`eval echo $DEBUGDIR`
4996 ac_define_dir
=`eval echo $ac_define_dir`
4998 cat >>confdefs.h
<<_ACEOF
4999 #define DEBUGDIR "$ac_define_dir"
5005 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5006 if test "x$prefix" = xNONE
; then
5007 test_prefix
=/usr
/local
5012 test_prefix
=$exec_prefix
5015 case ${ac_define_dir} in
5016 "${test_prefix}"|
"${test_prefix}/"*|\
5017 '${exec_prefix}'|
'${exec_prefix}/'*)
5022 cat >>confdefs.h
<<_ACEOF
5023 #define DEBUGDIR_RELOCATABLE $value
5029 # We can't pass paths as command line arguments.
5030 # Mingw32 tries to be clever and will convert the paths for us.
5031 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5032 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5033 # This breaks GDB's relocatable path conversions since paths passed in
5034 # config.h would not get so translated, the path prefixes no longer match.
5036 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5037 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5038 ac_define_dir
=`eval echo $bindir`
5039 ac_define_dir
=`eval echo $ac_define_dir`
5041 cat >>confdefs.h
<<_ACEOF
5042 #define BINDIR "$ac_define_dir"
5047 # GDB's datadir relocation
5051 # Check whether --with-gdb-datadir was given.
5052 if test "${with_gdb_datadir+set}" = set; then :
5053 withval
=$with_gdb_datadir;
5054 GDB_DATADIR
=$withval
5056 GDB_DATADIR
=${datadir}/gdb
5060 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5061 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5062 ac_define_dir
=`eval echo $GDB_DATADIR`
5063 ac_define_dir
=`eval echo $ac_define_dir`
5065 cat >>confdefs.h
<<_ACEOF
5066 #define GDB_DATADIR "$ac_define_dir"
5072 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5073 if test "x$prefix" = xNONE
; then
5074 test_prefix
=/usr
/local
5079 test_prefix
=$exec_prefix
5082 case ${ac_define_dir} in
5083 "${test_prefix}"|
"${test_prefix}/"*|\
5084 '${exec_prefix}'|
'${exec_prefix}/'*)
5089 cat >>confdefs.h
<<_ACEOF
5090 #define GDB_DATADIR_RELOCATABLE $value
5097 # Check whether --with-relocated-sources was given.
5098 if test "${with_relocated_sources+set}" = set; then :
5099 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
5101 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5102 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5103 ac_define_dir
=`eval echo $reloc_srcdir`
5104 ac_define_dir
=`eval echo $ac_define_dir`
5106 cat >>confdefs.h
<<_ACEOF
5107 #define RELOC_SRCDIR "$ac_define_dir"
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5116 $as_echo_n "checking for default auto-load directory... " >&6; }
5118 # Check whether --with-auto-load-dir was given.
5119 if test "${with_auto_load_dir+set}" = set; then :
5120 withval
=$with_auto_load_dir;
5122 with_auto_load_dir
='$debugdir:$datadir/auto-load'
5125 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5127 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5128 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5129 ac_define_dir
=`eval echo $escape_dir`
5130 ac_define_dir
=`eval echo $ac_define_dir`
5132 cat >>confdefs.h
<<_ACEOF
5133 #define AUTO_LOAD_DIR "$ac_define_dir"
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5138 $as_echo "$with_auto_load_dir" >&6; }
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5141 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5143 # Check whether --with-auto-load-safe-path was given.
5144 if test "${with_auto_load_safe_path+set}" = set; then :
5145 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5146 with_auto_load_safe_path
="/"
5149 with_auto_load_safe_path
="$with_auto_load_dir"
5152 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5154 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5155 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5156 ac_define_dir
=`eval echo $escape_dir`
5157 ac_define_dir
=`eval echo $ac_define_dir`
5159 cat >>confdefs.h
<<_ACEOF
5160 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5165 $as_echo "$with_auto_load_safe_path" >&6; }
5169 subdirs
="$subdirs testsuite"
5172 # Check whether to support alternative target configurations
5173 # Check whether --enable-targets was given.
5174 if test "${enable_targets+set}" = set; then :
5175 enableval
=$enable_targets; case "${enableval}" in
5176 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
5178 no
) enable_targets
= ;;
5179 *) enable_targets
=$enableval ;;
5184 # Check whether to enable 64-bit support on 32-bit hosts
5185 # Check whether --enable-64-bit-bfd was given.
5186 if test "${enable_64_bit_bfd+set}" = set; then :
5187 enableval
=$enable_64_bit_bfd; case "${enableval}" in
5190 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5196 # Provide defaults for some variables set by the per-host and per-target
5198 gdb_host_obs
=posix-hdep.o
5200 if test "${target}" = "${host}"; then
5206 .
$srcdir/configure.
host
5208 # Accumulate some settings from configure.tgt over all enabled targets
5212 HAVE_NATIVE_GCORE_TARGET
=
5214 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5216 if test "$targ_alias" = "all"; then
5219 # Canonicalize the secondary target names.
5220 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5221 if test -n "$result"; then
5227 .
${srcdir}/configure.tgt
5229 if test -z "${gdb_target_obs}"; then :
5230 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
5233 # Target-specific object files
5234 for i
in ${gdb_target_obs}; do
5235 case " $TARGET_OBS " in
5238 TARGET_OBS
="$TARGET_OBS ${i}"
5243 # Check whether this target needs 64-bit CORE_ADDR
5244 if test x
${want64} = xfalse
; then
5245 .
${srcdir}/..
/bfd
/config.bfd
5248 # Check whether this target is native and supports gcore.
5249 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5250 && $gdb_have_gcore; then
5251 HAVE_NATIVE_GCORE_TARGET
=1
5256 if test x
${all_targets} = xtrue
; then
5258 # We want all 64-bit targets if we either:
5259 # - run on a 64-bit host or
5260 # - already require 64-bit support for some other target or
5261 # - the --enable-64-bit-bfd option was supplied
5262 # Otherwise we only support all 32-bit targets.
5264 # NOTE: This test must be in sync with the corresponding
5267 if test x
${want64} = xfalse
; then
5268 # The cast to long int works around a bug in the HP C Compiler
5269 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5270 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5271 # This bug is HP SR number 8606223364.
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5273 $as_echo_n "checking size of long... " >&6; }
5274 if test "${ac_cv_sizeof_long+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5277 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5280 if test "$ac_cv_type_long" = yes; then
5281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5283 { as_fn_set_status
77
5284 as_fn_error
"cannot compute sizeof (long)
5285 See \`config.log' for more details." "$LINENO" 5; }; }
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5293 $as_echo "$ac_cv_sizeof_long" >&6; }
5297 cat >>confdefs.h
<<_ACEOF
5298 #define SIZEOF_LONG $ac_cv_sizeof_long
5302 if test "x${ac_cv_sizeof_long}" = "x8"; then
5306 if test x
${want64} = xtrue
; then
5307 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5309 TARGET_OBS
='$(ALL_TARGET_OBS)'
5316 # For other settings, only the main target counts.
5320 targ
=$target; .
${srcdir}/configure.tgt
5322 # Fetch the default architecture and default target vector from BFD.
5323 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
5325 # We only want the first architecture, so strip off the others if
5326 # there is more than one.
5327 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
5329 if test "x$targ_archs" != x
; then
5331 cat >>confdefs.h
<<_ACEOF
5332 #define DEFAULT_BFD_ARCH $targ_archs
5336 if test "x$targ_defvec" != x
; then
5338 cat >>confdefs.h
<<_ACEOF
5339 #define DEFAULT_BFD_VEC $targ_defvec
5344 # The CLI cannot be disabled yet, but may be in the future.
5347 # Check whether --enable-gdbcli was given.
5348 if test "${enable_gdbcli+set}" = set; then :
5349 enableval
=$enable_gdbcli; case $enableval in
5353 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5355 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5361 if test x
"$enable_gdbcli" = xyes
; then
5362 if test -d $srcdir/cli
; then
5363 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5364 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5365 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5366 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5371 # Check whether --enable-gdbmi was given.
5372 if test "${enable_gdbmi+set}" = set; then :
5373 enableval
=$enable_gdbmi; case $enableval in
5377 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5383 if test x
"$enable_gdbmi" = xyes
; then
5384 if test -d $srcdir/mi
; then
5385 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5386 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5387 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5388 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5393 # Check whether --enable-tui was given.
5394 if test "${enable_tui+set}" = set; then :
5395 enableval
=$enable_tui; case $enableval in
5399 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5407 # Check whether --enable-gdbtk was given.
5408 if test "${enable_gdbtk+set}" = set; then :
5409 enableval
=$enable_gdbtk; case $enableval in
5413 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5416 if test -d $srcdir/gdbtk
; then
5423 # We unconditionally disable gdbtk tests on selected platforms.
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5427 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5431 # Libunwind support for ia64.
5434 # Check whether --with-libunwind-ia64 was given.
5435 if test "${with_libunwind_ia64+set}" = set; then :
5436 withval
=$with_libunwind_ia64;
5438 with_libunwind_ia64
=auto
5442 # Backward compatibility option.
5443 if test "${with_libunwind+set}" = set; then
5444 if test x
"$with_libunwind_ia64" != xauto
; then
5445 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5448 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5449 with_libunwind_ia64
="$with_libunwind"
5452 case "$with_libunwind_ia64" in
5456 for ac_header
in libunwind-ia64.h
5458 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5459 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5460 cat >>confdefs.h
<<_ACEOF
5461 #define HAVE_LIBUNWIND_IA64_H 1
5468 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
5471 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5475 if test x
"$with_libunwind_ia64" = xyes
; then
5476 for ac_header
in libunwind-ia64.h
5478 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5479 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5480 cat >>confdefs.h
<<_ACEOF
5481 #define HAVE_LIBUNWIND_IA64_H 1
5488 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
5489 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5491 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
5492 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
5493 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
5498 # Check whether --with-curses was given.
5499 if test "${with_curses+set}" = set; then :
5500 withval
=$with_curses; opt_curses
=$withval
5505 if test "$opt_curses" = "yes"; then
5509 # Profiling support.
5510 # Check whether --enable-profiling was given.
5511 if test "${enable_profiling+set}" = set; then :
5512 enableval
=$enable_profiling; case $enableval in
5516 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5523 for ac_func
in monstartup _mcleanup
5525 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5526 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5527 eval as_val
=\$
$as_ac_var
5528 if test "x$as_val" = x
""yes; then :
5529 cat >>confdefs.h
<<_ACEOF
5530 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5537 $as_echo_n "checking for _etext... " >&6; }
5538 if test "${ac_cv_var__etext+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5554 if ac_fn_c_try_link
"$LINENO"; then :
5555 ac_cv_var__etext
=yes
5559 rm -f core conftest.err conftest.
$ac_objext \
5560 conftest
$ac_exeext conftest.
$ac_ext
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5563 $as_echo "$ac_cv_var__etext" >&6; }
5564 if test $ac_cv_var__etext = yes; then
5566 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5570 $as_echo_n "checking for etext... " >&6; }
5571 if test "${ac_cv_var_etext+set}" = set; then :
5572 $as_echo_n "(cached) " >&6
5574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5587 if ac_fn_c_try_link
"$LINENO"; then :
5592 rm -f core conftest.err conftest.
$ac_objext \
5593 conftest
$ac_exeext conftest.
$ac_ext
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5596 $as_echo "$ac_cv_var_etext" >&6; }
5597 if test $ac_cv_var_etext = yes; then
5599 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5602 if test "$enable_profiling" = yes ; then
5603 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
5604 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5607 OLD_CFLAGS
="$CFLAGS"
5608 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5611 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5612 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5626 if ac_fn_c_try_compile
"$LINENO"; then :
5627 ac_cv_cc_supports_pg
=yes
5629 ac_cv_cc_supports_pg
=no
5631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5634 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5636 if test $ac_cv_cc_supports_pg = no
; then
5637 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5640 CFLAGS
="$OLD_CFLAGS"
5645 # Check whether --with-pkgversion was given.
5646 if test "${with_pkgversion+set}" = set; then :
5647 withval
=$with_pkgversion; case "$withval" in
5648 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
5650 *) PKGVERSION
="($withval) " ;;
5661 # Check whether --with-bugurl was given.
5662 if test "${with_bugurl+set}" = set; then :
5663 withval
=$with_bugurl; case "$withval" in
5664 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
5667 *) BUGURL
="$withval"
5671 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
5681 REPORT_BUGS_TO
="<$BUGURL>"
5682 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
5689 cat >>confdefs.h
<<_ACEOF
5690 #define PKGVERSION "$PKGVERSION"
5694 cat >>confdefs.h
<<_ACEOF
5695 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5699 # --------------------- #
5700 # Checks for programs. #
5701 # --------------------- #
5703 for ac_prog
in gawk mawk nawk
awk
5705 # Extract the first word of "$ac_prog", so it can be a program name with args.
5706 set dummy
$ac_prog; ac_word
=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if test "${ac_cv_prog_AWK+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5712 if test -n "$AWK"; then
5713 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5719 test -z "$as_dir" && as_dir
=.
5720 for ac_exec_ext
in '' $ac_executable_extensions; do
5721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722 ac_cv_prog_AWK
="$ac_prog"
5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 if test -n "$AWK"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5735 $as_echo "$AWK" >&6; }
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5742 test -n "$AWK" && break
5745 # Find a good install program. We prefer a C program (faster),
5746 # so one script is as good as another. But avoid the broken or
5747 # incompatible versions:
5748 # SysV /etc/install, /usr/sbin/install
5749 # SunOS /usr/etc/install
5750 # IRIX /sbin/install
5752 # AmigaOS /C/install, which installs bootblocks on floppy discs
5753 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5754 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5755 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5756 # OS/2's system install, which has a completely different semantic
5757 # ./install, which can be erroneously created by make from ./install.sh.
5758 # Reject install programs that cannot install multiple files.
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5760 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5761 if test -z "$INSTALL"; then
5762 if test "${ac_cv_path_install+set}" = set; then :
5763 $as_echo_n "(cached) " >&6
5765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5769 test -z "$as_dir" && as_dir
=.
5770 # Account for people who put trailing slashes in PATH elements.
5771 case $as_dir/ in #((
5772 .
/ | .
// |
/[cC
]/* | \
5773 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5774 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5777 # OSF1 and SCO ODT 3.0 have their own names for install.
5778 # Don't use installbsd from OSF since it installs stuff as root
5780 for ac_prog
in ginstall scoinst
install; do
5781 for ac_exec_ext
in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5783 if test $ac_prog = install &&
5784 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5785 # AIX install. It has an incompatible calling convention.
5787 elif test $ac_prog = install &&
5788 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5789 # program-specific install script used by HP pwplus--don't use.
5792 rm -rf conftest.one conftest.two conftest.dir
5793 echo one
> conftest.one
5794 echo two
> conftest.two
5796 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5797 test -s conftest.one
&& test -s conftest.two
&&
5798 test -s conftest.dir
/conftest.one
&&
5799 test -s conftest.dir
/conftest.two
5801 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5814 rm -rf conftest.one conftest.two conftest.dir
5817 if test "${ac_cv_path_install+set}" = set; then
5818 INSTALL
=$ac_cv_path_install
5820 # As a last resort, use the slow shell script. Don't cache a
5821 # value for INSTALL within a source directory, because that will
5822 # break other packages using the cache if that directory is
5823 # removed, or if the value is a relative name.
5824 INSTALL
=$ac_install_sh
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5828 $as_echo "$INSTALL" >&6; }
5830 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5831 # It thinks the first close brace ends the variable substitution.
5832 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5834 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5836 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5839 $as_echo_n "checking whether ln -s works... " >&6; }
5841 if test "$LN_S" = "ln -s"; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5843 $as_echo "yes" >&6; }
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5846 $as_echo "no, using $LN_S" >&6; }
5849 if test -n "$ac_tool_prefix"; then
5850 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5851 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853 $as_echo_n "checking for $ac_word... " >&6; }
5854 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5857 if test -n "$RANLIB"; then
5858 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5864 test -z "$as_dir" && as_dir
=.
5865 for ac_exec_ext
in '' $ac_executable_extensions; do
5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 RANLIB
=$ac_cv_prog_RANLIB
5878 if test -n "$RANLIB"; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5880 $as_echo "$RANLIB" >&6; }
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 $as_echo "no" >&6; }
5888 if test -z "$ac_cv_prog_RANLIB"; then
5889 ac_ct_RANLIB
=$RANLIB
5890 # Extract the first word of "ranlib", so it can be a program name with args.
5891 set dummy ranlib
; ac_word
=$2
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893 $as_echo_n "checking for $ac_word... " >&6; }
5894 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5895 $as_echo_n "(cached) " >&6
5897 if test -n "$ac_ct_RANLIB"; then
5898 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5904 test -z "$as_dir" && as_dir
=.
5905 for ac_exec_ext
in '' $ac_executable_extensions; do
5906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5907 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5918 if test -n "$ac_ct_RANLIB"; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5920 $as_echo "$ac_ct_RANLIB" >&6; }
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 $as_echo "no" >&6; }
5926 if test "x$ac_ct_RANLIB" = x
; then
5929 case $cross_compiling:$ac_tool_warned in
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5933 ac_tool_warned
=yes ;;
5935 RANLIB
=$ac_ct_RANLIB
5938 RANLIB
="$ac_cv_prog_RANLIB"
5941 for ac_prog
in 'bison -y' byacc
5943 # Extract the first word of "$ac_prog", so it can be a program name with args.
5944 set dummy
$ac_prog; ac_word
=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if test "${ac_cv_prog_YACC+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
5950 if test -n "$YACC"; then
5951 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5957 test -z "$as_dir" && as_dir
=.
5958 for ac_exec_ext
in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_prog_YACC
="$ac_prog"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 YACC
=$ac_cv_prog_YACC
5971 if test -n "$YACC"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5973 $as_echo "$YACC" >&6; }
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5980 test -n "$YACC" && break
5982 test -n "$YACC" || YACC
="yacc"
5985 if test -n "$ac_tool_prefix"; then
5986 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5987 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5989 $as_echo_n "checking for $ac_word... " >&6; }
5990 if test "${ac_cv_prog_AR+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
5993 if test -n "$AR"; then
5994 ac_cv_prog_AR
="$AR" # Let the user override the test.
5996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6000 test -z "$as_dir" && as_dir
=.
6001 for ac_exec_ext
in '' $ac_executable_extensions; do
6002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6003 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 if test -n "$AR"; then
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6016 $as_echo "$AR" >&6; }
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019 $as_echo "no" >&6; }
6024 if test -z "$ac_cv_prog_AR"; then
6026 # Extract the first word of "ar", so it can be a program name with args.
6027 set dummy
ar; ac_word
=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6031 $as_echo_n "(cached) " >&6
6033 if test -n "$ac_ct_AR"; then
6034 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6040 test -z "$as_dir" && as_dir
=.
6041 for ac_exec_ext
in '' $ac_executable_extensions; do
6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6043 ac_cv_prog_ac_ct_AR
="ar"
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6054 if test -n "$ac_ct_AR"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6056 $as_echo "$ac_ct_AR" >&6; }
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6062 if test "x$ac_ct_AR" = x
; then
6065 case $cross_compiling:$ac_tool_warned in
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6069 ac_tool_warned
=yes ;;
6077 if test -n "$ac_tool_prefix"; then
6078 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6079 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6085 if test -n "$DLLTOOL"; then
6086 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
6088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6092 test -z "$as_dir" && as_dir
=.
6093 for ac_exec_ext
in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 DLLTOOL
=$ac_cv_prog_DLLTOOL
6106 if test -n "$DLLTOOL"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6108 $as_echo "$DLLTOOL" >&6; }
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6116 if test -z "$ac_cv_prog_DLLTOOL"; then
6117 ac_ct_DLLTOOL
=$DLLTOOL
6118 # Extract the first word of "dlltool", so it can be a program name with args.
6119 set dummy dlltool
; ac_word
=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6123 $as_echo_n "(cached) " >&6
6125 if test -n "$ac_ct_DLLTOOL"; then
6126 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
6128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6132 test -z "$as_dir" && as_dir
=.
6133 for ac_exec_ext
in '' $ac_executable_extensions; do
6134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6135 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
6146 if test -n "$ac_ct_DLLTOOL"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6148 $as_echo "$ac_ct_DLLTOOL" >&6; }
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6154 if test "x$ac_ct_DLLTOOL" = x
; then
6157 case $cross_compiling:$ac_tool_warned in
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6161 ac_tool_warned
=yes ;;
6163 DLLTOOL
=$ac_ct_DLLTOOL
6166 DLLTOOL
="$ac_cv_prog_DLLTOOL"
6169 if test -n "$ac_tool_prefix"; then
6170 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6171 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173 $as_echo_n "checking for $ac_word... " >&6; }
6174 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6175 $as_echo_n "(cached) " >&6
6177 if test -n "$WINDRES"; then
6178 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
6180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6184 test -z "$as_dir" && as_dir
=.
6185 for ac_exec_ext
in '' $ac_executable_extensions; do
6186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6187 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
6188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 WINDRES
=$ac_cv_prog_WINDRES
6198 if test -n "$WINDRES"; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6200 $as_echo "$WINDRES" >&6; }
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 $as_echo "no" >&6; }
6208 if test -z "$ac_cv_prog_WINDRES"; then
6209 ac_ct_WINDRES
=$WINDRES
6210 # Extract the first word of "windres", so it can be a program name with args.
6211 set dummy windres
; ac_word
=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6215 $as_echo_n "(cached) " >&6
6217 if test -n "$ac_ct_WINDRES"; then
6218 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
6220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir
=.
6225 for ac_exec_ext
in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_ac_ct_WINDRES
="windres"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
6238 if test -n "$ac_ct_WINDRES"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6240 $as_echo "$ac_ct_WINDRES" >&6; }
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6246 if test "x$ac_ct_WINDRES" = x
; then
6249 case $cross_compiling:$ac_tool_warned in
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6253 ac_tool_warned
=yes ;;
6255 WINDRES
=$ac_ct_WINDRES
6258 WINDRES
="$ac_cv_prog_WINDRES"
6264 # Needed for GNU Hurd hosts.
6265 if test -n "$ac_tool_prefix"; then
6266 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6267 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269 $as_echo_n "checking for $ac_word... " >&6; }
6270 if test "${ac_cv_prog_MIG+set}" = set; then :
6271 $as_echo_n "(cached) " >&6
6273 if test -n "$MIG"; then
6274 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
6276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6280 test -z "$as_dir" && as_dir
=.
6281 for ac_exec_ext
in '' $ac_executable_extensions; do
6282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6283 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
6284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 if test -n "$MIG"; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6296 $as_echo "$MIG" >&6; }
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299 $as_echo "no" >&6; }
6304 if test -z "$ac_cv_prog_MIG"; then
6306 # Extract the first word of "mig", so it can be a program name with args.
6307 set dummy mig
; ac_word
=$2
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309 $as_echo_n "checking for $ac_word... " >&6; }
6310 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6311 $as_echo_n "(cached) " >&6
6313 if test -n "$ac_ct_MIG"; then
6314 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
6316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6320 test -z "$as_dir" && as_dir
=.
6321 for ac_exec_ext
in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6323 ac_cv_prog_ac_ct_MIG
="mig"
6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
6334 if test -n "$ac_ct_MIG"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6336 $as_echo "$ac_ct_MIG" >&6; }
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6342 if test "x$ac_ct_MIG" = x
; then
6345 case $cross_compiling:$ac_tool_warned in
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6349 ac_tool_warned
=yes ;;
6354 MIG
="$ac_cv_prog_MIG"
6357 if test x
"$MIG" = x
; then
6358 as_fn_error
"MIG not found but required for $host hosts" "$LINENO" 5
6363 # ---------------------- #
6364 # Checks for libraries. #
6365 # ---------------------- #
6367 # We might need to link with -lm; most simulators need it.
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6369 $as_echo_n "checking for main in -lm... " >&6; }
6370 if test "${ac_cv_lib_m_main+set}" = set; then :
6371 $as_echo_n "(cached) " >&6
6373 ac_check_lib_save_LIBS
=$LIBS
6375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6387 if ac_fn_c_try_link
"$LINENO"; then :
6388 ac_cv_lib_m_main
=yes
6392 rm -f core conftest.err conftest.
$ac_objext \
6393 conftest
$ac_exeext conftest.
$ac_ext
6394 LIBS
=$ac_check_lib_save_LIBS
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6397 $as_echo "$ac_cv_lib_m_main" >&6; }
6398 if test "x$ac_cv_lib_m_main" = x
""yes; then :
6399 cat >>confdefs.h
<<_ACEOF
6408 # We need to link with -lw to get `wctype' on Solaris before Solaris
6409 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6410 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6411 # is known to have this problem). Therefore we avoid libw if we can.
6412 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6413 if test "x$ac_cv_func_wctype" = x
""yes; then :
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6417 $as_echo_n "checking for wctype in -lw... " >&6; }
6418 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6419 $as_echo_n "(cached) " >&6
6421 ac_check_lib_save_LIBS
=$LIBS
6423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6426 /* Override any GCC internal prototype to avoid an error.
6427 Use char because int might match the return type of a GCC
6428 builtin and then its argument prototype would still apply. */
6441 if ac_fn_c_try_link
"$LINENO"; then :
6442 ac_cv_lib_w_wctype
=yes
6444 ac_cv_lib_w_wctype
=no
6446 rm -f core conftest.err conftest.
$ac_objext \
6447 conftest
$ac_exeext conftest.
$ac_ext
6448 LIBS
=$ac_check_lib_save_LIBS
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6451 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6452 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
6453 cat >>confdefs.h
<<_ACEOF
6464 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6466 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6467 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6468 $as_echo_n "(cached) " >&6
6470 ac_func_search_save_LIBS
=$LIBS
6471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6474 /* Override any GCC internal prototype to avoid an error.
6475 Use char because int might match the return type of a GCC
6476 builtin and then its argument prototype would still apply. */
6480 char gethostbyname ();
6484 return gethostbyname ();
6489 for ac_lib
in '' nsl
; do
6490 if test -z "$ac_lib"; then
6491 ac_res
="none required"
6494 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6496 if ac_fn_c_try_link
"$LINENO"; then :
6497 ac_cv_search_gethostbyname
=$ac_res
6499 rm -f core conftest.err conftest.
$ac_objext \
6501 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6505 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6508 ac_cv_search_gethostbyname
=no
6511 LIBS
=$ac_func_search_save_LIBS
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6514 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6515 ac_res
=$ac_cv_search_gethostbyname
6516 if test "$ac_res" != no
; then :
6517 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6522 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6524 $as_echo_n "checking for library containing socketpair... " >&6; }
6525 if test "${ac_cv_search_socketpair+set}" = set; then :
6526 $as_echo_n "(cached) " >&6
6528 ac_func_search_save_LIBS
=$LIBS
6529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6532 /* Override any GCC internal prototype to avoid an error.
6533 Use char because int might match the return type of a GCC
6534 builtin and then its argument prototype would still apply. */
6542 return socketpair ();
6547 for ac_lib
in '' socket
; do
6548 if test -z "$ac_lib"; then
6549 ac_res
="none required"
6552 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6554 if ac_fn_c_try_link
"$LINENO"; then :
6555 ac_cv_search_socketpair
=$ac_res
6557 rm -f core conftest.err conftest.
$ac_objext \
6559 if test "${ac_cv_search_socketpair+set}" = set; then :
6563 if test "${ac_cv_search_socketpair+set}" = set; then :
6566 ac_cv_search_socketpair
=no
6569 LIBS
=$ac_func_search_save_LIBS
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6572 $as_echo "$ac_cv_search_socketpair" >&6; }
6573 ac_res
=$ac_cv_search_socketpair
6574 if test "$ac_res" != no
; then :
6575 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6580 # Link in zlib if we can. This allows us to read compressed debug sections.
6582 # See if the user specified whether he wants zlib support or not.
6584 # Check whether --with-zlib was given.
6585 if test "${with_zlib+set}" = set; then :
6592 if test "$with_zlib" != "no"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6594 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6595 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6596 $as_echo_n "(cached) " >&6
6598 ac_func_search_save_LIBS
=$LIBS
6599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6602 /* Override any GCC internal prototype to avoid an error.
6603 Use char because int might match the return type of a GCC
6604 builtin and then its argument prototype would still apply. */
6608 char zlibVersion ();
6612 return zlibVersion ();
6617 for ac_lib
in '' z
; do
6618 if test -z "$ac_lib"; then
6619 ac_res
="none required"
6622 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6624 if ac_fn_c_try_link
"$LINENO"; then :
6625 ac_cv_search_zlibVersion
=$ac_res
6627 rm -f core conftest.err conftest.
$ac_objext \
6629 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6633 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6636 ac_cv_search_zlibVersion
=no
6639 LIBS
=$ac_func_search_save_LIBS
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6642 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6643 ac_res
=$ac_cv_search_zlibVersion
6644 if test "$ac_res" != no
; then :
6645 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6646 for ac_header
in zlib.h
6648 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6649 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
6650 cat >>confdefs.h
<<_ACEOF
6651 #define HAVE_ZLIB_H 1
6660 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6661 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6666 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6668 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6669 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6672 ac_func_search_save_LIBS
=$LIBS
6673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6676 /* Override any GCC internal prototype to avoid an error.
6677 Use char because int might match the return type of a GCC
6678 builtin and then its argument prototype would still apply. */
6682 char dlgetmodinfo ();
6686 return dlgetmodinfo ();
6691 for ac_lib
in '' dl xpdl
; do
6692 if test -z "$ac_lib"; then
6693 ac_res
="none required"
6696 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6698 if ac_fn_c_try_link
"$LINENO"; then :
6699 ac_cv_search_dlgetmodinfo
=$ac_res
6701 rm -f core conftest.err conftest.
$ac_objext \
6703 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6707 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6710 ac_cv_search_dlgetmodinfo
=no
6713 LIBS
=$ac_func_search_save_LIBS
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6716 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6717 ac_res
=$ac_cv_search_dlgetmodinfo
6718 if test "$ac_res" != no
; then :
6719 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6727 # Check whether --with-libiconv-prefix was given.
6728 if test "${with_libiconv_prefix+set}" = set; then :
6729 withval
=$with_libiconv_prefix;
6730 for dir
in `echo "$withval" | tr : ' '`; do
6731 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
6732 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
6738 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
6739 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6742 $as_echo_n "checking for iconv... " >&6; }
6743 if test "${am_cv_func_iconv+set}" = set; then :
6744 $as_echo_n "(cached) " >&6
6747 am_cv_func_iconv
="no, consider installing GNU libiconv"
6749 am_cv_use_build_libiconv
=no
6750 am_cv_build_libiconv_path
=
6752 # If libiconv is part of the build tree, then try using it over
6754 if test -d ..
/libiconv
; then
6755 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
6756 am_save_LIBS
="$LIBS"
6757 am_save_CPPFLAGS
="$CPPFLAGS"
6758 LIBS
="$LIBS $lib_dir/libiconv.a"
6759 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6767 iconv_t cd = iconv_open("","");
6768 iconv(cd,NULL,NULL,NULL,NULL);
6774 if ac_fn_c_try_link
"$LINENO"; then :
6775 am_cv_use_build_libiconv
=yes
6776 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
6778 am_cv_func_iconv
=yes
6780 rm -f core conftest.err conftest.
$ac_objext \
6781 conftest
$ac_exeext conftest.
$ac_ext
6782 LIBS
="$am_save_LIBS"
6783 CPPFLAGS
="$am_save_CPPFLAGS"
6784 if test "$am_cv_use_build_libiconv" = "yes"; then
6790 # Next, try to find iconv in libc.
6791 if test "$am_cv_func_iconv" != yes; then
6792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h. */
6799 iconv_t cd = iconv_open("","");
6800 iconv(cd,NULL,NULL,NULL,NULL);
6806 if ac_fn_c_try_link
"$LINENO"; then :
6807 am_cv_func_iconv
=yes
6809 rm -f core conftest.err conftest.
$ac_objext \
6810 conftest
$ac_exeext conftest.
$ac_ext
6813 # If iconv was not in libc, try -liconv. In this case, arrange to
6814 # look in the libiconv prefix, if it was specified by the user.
6815 if test "$am_cv_func_iconv" != yes; then
6816 am_save_CPPFLAGS
="$CPPFLAGS"
6817 am_save_LIBS
="$LIBS"
6818 if test -n "$LIBICONV_INCLUDE"; then
6819 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
6820 LIBS
="$LIBS $LIBICONV_LIBDIR"
6822 LIBS
="$LIBS -liconv"
6823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6830 iconv_t cd = iconv_open("","");
6831 iconv(cd,NULL,NULL,NULL,NULL);
6837 if ac_fn_c_try_link
"$LINENO"; then :
6839 am_cv_func_iconv
=yes
6841 rm -f core conftest.err conftest.
$ac_objext \
6842 conftest
$ac_exeext conftest.
$ac_ext
6843 LIBS
="$am_save_LIBS"
6844 CPPFLAGS
="$am_save_CPPFLAGS"
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6849 $as_echo "$am_cv_func_iconv" >&6; }
6851 # Set the various flags based on the cache variables. We can't rely
6852 # on the flags to remain set from the above code, due to caching.
6854 if test "$am_cv_lib_iconv" = yes; then
6860 if test "$am_cv_use_build_libiconv" = yes; then
6861 LIBICONV
="$am_cv_build_libiconv_path"
6863 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
6865 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
6866 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6868 if test "$am_cv_func_iconv" = yes; then
6870 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6873 $as_echo_n "checking for iconv declaration... " >&6; }
6874 if test "${am_cv_proto_iconv+set}" = set; then :
6875 $as_echo_n "(cached) " >&6
6878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6887 #if defined(__STDC__) || defined(__cplusplus)
6888 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6901 if ac_fn_c_try_compile
"$LINENO"; then :
6902 am_cv_proto_iconv_arg1
=""
6904 am_cv_proto_iconv_arg1
="const"
6906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6907 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);"
6910 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6912 }$am_cv_proto_iconv" >&5
6914 }$am_cv_proto_iconv" >&6; }
6916 cat >>confdefs.h
<<_ACEOF
6917 #define ICONV_CONST $am_cv_proto_iconv_arg1
6923 # GDB may fork/exec the iconv program to get the list of supported character
6924 # sets. Allow the user to specify where to find it.
6925 # There are several factors affecting the choice of option name:
6926 # - There is already --with-libiconv-prefix but we can't use it, it specifies
6927 # the build-time location of libiconv files.
6928 # - The program we need to find is iconv, which comes with glibc. The user
6929 # doesn't necessarily have libiconv installed. Therefore naming this
6930 # --with-libiconv-foo feels wrong.
6931 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
6932 # defined to work on directories not files (though it really doesn't know
6934 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
6935 # with --with-libiconv-prefix.
6936 # Putting these together is why the option name is --with-iconv-bin.
6939 # Check whether --with-iconv-bin was given.
6940 if test "${with_iconv_bin+set}" = set; then :
6941 withval
=$with_iconv_bin; iconv_bin
="${withval}"
6943 cat >>confdefs.h
<<_ACEOF
6944 #define ICONV_BIN "${iconv_bin}"
6948 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6949 if test "x$prefix" = xNONE
; then
6950 test_prefix
=/usr
/local
6955 test_prefix
=$exec_prefix
6958 case ${iconv_bin} in
6959 "${test_prefix}"|
"${test_prefix}/"*|\
6960 '${exec_prefix}'|
'${exec_prefix}/'*)
6965 cat >>confdefs.h
<<_ACEOF
6966 #define ICONV_BIN_RELOCATABLE $value
6974 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
6975 # There is a very specific comment in /usr/include/curses.h explaining that
6976 # termcap routines built into libcurses must not be used.
6978 # The symptoms we observed so far is GDB unexpectedly changing
6979 # the terminal settings when tgetent is called - this is particularly
6980 # visible as the output is missing carriage returns, and so rapidly
6981 # becomes very hard to read.
6983 # The readline configure script has already decided that libtermcap
6984 # was enough for its purposes, and so decided to build readline using
6985 # libtermcap. Since the TUI mode requires curses, building GDB with
6986 # TUI enabled results in both libraries to be used at the same time,
6987 # which is not allowed. This basically means that GDB with TUI is
6988 # broken on alpha-osf.
6992 if test x
"$enable_tui" = xyes
; then
6993 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6995 if test x
"$enable_tui" = xauto
; then
7001 # For the TUI, we need enhanced curses functionality.
7002 if test x
"$enable_tui" != xno
; then
7007 if test x
"$prefer_curses" = xyes
; then
7008 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7009 # curses library because the latter might not provide all the
7010 # functionality we need. However, this leads to problems on systems
7011 # where the linker searches /usr/local/lib, but the compiler doesn't
7012 # search /usr/local/include, if ncurses is installed in /usr/local. A
7013 # default installation of ncurses on alpha*-dec-osf* will lead to such
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7016 $as_echo_n "checking for library containing waddstr... " >&6; }
7017 if test "${ac_cv_search_waddstr+set}" = set; then :
7018 $as_echo_n "(cached) " >&6
7020 ac_func_search_save_LIBS
=$LIBS
7021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7024 /* Override any GCC internal prototype to avoid an error.
7025 Use char because int might match the return type of a GCC
7026 builtin and then its argument prototype would still apply. */
7039 for ac_lib
in '' ncurses cursesX curses
; do
7040 if test -z "$ac_lib"; then
7041 ac_res
="none required"
7044 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7046 if ac_fn_c_try_link
"$LINENO"; then :
7047 ac_cv_search_waddstr
=$ac_res
7049 rm -f core conftest.err conftest.
$ac_objext \
7051 if test "${ac_cv_search_waddstr+set}" = set; then :
7055 if test "${ac_cv_search_waddstr+set}" = set; then :
7058 ac_cv_search_waddstr
=no
7061 LIBS
=$ac_func_search_save_LIBS
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7064 $as_echo "$ac_cv_search_waddstr" >&6; }
7065 ac_res
=$ac_cv_search_waddstr
7066 if test "$ac_res" != no
; then :
7067 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7072 if test "$ac_cv_search_waddstr" != no
; then
7077 # Check whether we should enable the TUI, but only do so if we really
7079 if test x
"$enable_tui" != xno
; then
7080 if test -d $srcdir/tui
; then
7081 if test "$curses_found" != no
; then
7082 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7083 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7084 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7085 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7087 if test x
"$enable_tui" = xyes
; then
7088 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7091 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
7097 # Since GDB uses Readline, we need termcap functionality. In many
7098 # cases this will be provided by the curses library, but some systems
7099 # have a seperate termcap library, or no curses library at all.
7103 if test -d $srcdir/libtermcap
; then
7104 LIBS
="../libtermcap/libtermcap.a $LIBS"
7105 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
7108 ac_cv_search_tgetent
="none required"
7111 ac_cv_search_tgetent
="none required"
7112 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
7116 # These are the libraries checked by Readline.
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
7118 $as_echo_n "checking for library containing tgetent... " >&6; }
7119 if test "${ac_cv_search_tgetent+set}" = set; then :
7120 $as_echo_n "(cached) " >&6
7122 ac_func_search_save_LIBS
=$LIBS
7123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7126 /* Override any GCC internal prototype to avoid an error.
7127 Use char because int might match the return type of a GCC
7128 builtin and then its argument prototype would still apply. */
7141 for ac_lib
in '' termcap tinfo curses ncurses
; do
7142 if test -z "$ac_lib"; then
7143 ac_res
="none required"
7146 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7148 if ac_fn_c_try_link
"$LINENO"; then :
7149 ac_cv_search_tgetent
=$ac_res
7151 rm -f core conftest.err conftest.
$ac_objext \
7153 if test "${ac_cv_search_tgetent+set}" = set; then :
7157 if test "${ac_cv_search_tgetent+set}" = set; then :
7160 ac_cv_search_tgetent
=no
7163 LIBS
=$ac_func_search_save_LIBS
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7166 $as_echo "$ac_cv_search_tgetent" >&6; }
7167 ac_res
=$ac_cv_search_tgetent
7168 if test "$ac_res" != no
; then :
7169 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7174 if test "$ac_cv_search_tgetent" = no
; then
7175 as_fn_error
"no termcap library found" "$LINENO" 5
7179 # Check whether --with-system-readline was given.
7180 if test "${with_system_readline+set}" = set; then :
7181 withval
=$with_system_readline;
7185 if test "$with_system_readline" = yes; then
7189 READLINE_TEXI_INCFLAG
=
7191 READLINE
='$(READLINE_DIR)/libreadline.a'
7192 READLINE_DEPS
='$(READLINE)'
7193 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
7194 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
7201 # Generate jit-reader.h
7203 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7206 # The cast to long int works around a bug in the HP C Compiler
7207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7209 # This bug is HP SR number 8606223364.
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7211 $as_echo_n "checking size of unsigned long long... " >&6; }
7212 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7213 $as_echo_n "(cached) " >&6
7215 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7218 if test "$ac_cv_type_unsigned_long_long" = yes; then
7219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7221 { as_fn_set_status
77
7222 as_fn_error
"cannot compute sizeof (unsigned long long)
7223 See \`config.log' for more details." "$LINENO" 5; }; }
7225 ac_cv_sizeof_unsigned_long_long
=0
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7231 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7235 cat >>confdefs.h
<<_ACEOF
7236 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7240 # The cast to long int works around a bug in the HP C Compiler
7241 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7242 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7243 # This bug is HP SR number 8606223364.
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7245 $as_echo_n "checking size of unsigned long... " >&6; }
7246 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7247 $as_echo_n "(cached) " >&6
7249 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7252 if test "$ac_cv_type_unsigned_long" = yes; then
7253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7255 { as_fn_set_status
77
7256 as_fn_error
"cannot compute sizeof (unsigned long)
7257 See \`config.log' for more details." "$LINENO" 5; }; }
7259 ac_cv_sizeof_unsigned_long
=0
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7265 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7269 cat >>confdefs.h
<<_ACEOF
7270 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7274 # The cast to long int works around a bug in the HP C Compiler
7275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7277 # This bug is HP SR number 8606223364.
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7279 $as_echo_n "checking size of unsigned __int128... " >&6; }
7280 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7281 $as_echo_n "(cached) " >&6
7283 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7286 if test "$ac_cv_type_unsigned___int128" = yes; then
7287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7289 { as_fn_set_status
77
7290 as_fn_error
"cannot compute sizeof (unsigned __int128)
7291 See \`config.log' for more details." "$LINENO" 5; }; }
7293 ac_cv_sizeof_unsigned___int128
=0
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7299 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7303 cat >>confdefs.h
<<_ACEOF
7304 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7309 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7310 TARGET_PTR
="unsigned long"
7311 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7312 TARGET_PTR
="unsigned long long"
7313 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7314 TARGET_PTR
="unsigned __int128"
7316 TARGET_PTR
="unsigned long"
7320 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7324 $as_echo_n "checking for library containing dlopen... " >&6; }
7325 if test "${ac_cv_search_dlopen+set}" = set; then :
7326 $as_echo_n "(cached) " >&6
7328 ac_func_search_save_LIBS
=$LIBS
7329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7332 /* Override any GCC internal prototype to avoid an error.
7333 Use char because int might match the return type of a GCC
7334 builtin and then its argument prototype would still apply. */
7347 for ac_lib
in '' dl
; do
7348 if test -z "$ac_lib"; then
7349 ac_res
="none required"
7352 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7354 if ac_fn_c_try_link
"$LINENO"; then :
7355 ac_cv_search_dlopen
=$ac_res
7357 rm -f core conftest.err conftest.
$ac_objext \
7359 if test "${ac_cv_search_dlopen+set}" = set; then :
7363 if test "${ac_cv_search_dlopen+set}" = set; then :
7366 ac_cv_search_dlopen
=no
7369 LIBS
=$ac_func_search_save_LIBS
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7372 $as_echo "$ac_cv_search_dlopen" >&6; }
7373 ac_res
=$ac_cv_search_dlopen
7374 if test "$ac_res" != no
; then :
7375 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7382 # Check whether --with-jit-reader-dir was given.
7383 if test "${with_jit_reader_dir+set}" = set; then :
7384 withval
=$with_jit_reader_dir;
7385 JIT_READER_DIR
=$withval
7387 JIT_READER_DIR
=${libdir}/gdb
7391 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7392 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7393 ac_define_dir
=`eval echo $JIT_READER_DIR`
7394 ac_define_dir
=`eval echo $ac_define_dir`
7396 cat >>confdefs.h
<<_ACEOF
7397 #define JIT_READER_DIR "$ac_define_dir"
7403 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7404 if test "x$prefix" = xNONE
; then
7405 test_prefix
=/usr
/local
7410 test_prefix
=$exec_prefix
7413 case ${ac_define_dir} in
7414 "${test_prefix}"|
"${test_prefix}/"*|\
7415 '${exec_prefix}'|
'${exec_prefix}/'*)
7420 cat >>confdefs.h
<<_ACEOF
7421 #define JIT_READER_DIR_RELOCATABLE $value
7428 # Check whether --with-expat was given.
7429 if test "${with_expat+set}" = set; then :
7430 withval
=$with_expat;
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7436 $as_echo_n "checking whether to use expat... " >&6; }
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7438 $as_echo "$with_expat" >&6; }
7440 if test "${with_expat}" = no
; then
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7442 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7446 if test "X$prefix" = "XNONE"; then
7447 acl_final_prefix
="$ac_default_prefix"
7449 acl_final_prefix
="$prefix"
7451 if test "X$exec_prefix" = "XNONE"; then
7452 acl_final_exec_prefix
='${prefix}'
7454 acl_final_exec_prefix
="$exec_prefix"
7456 acl_save_prefix
="$prefix"
7457 prefix
="$acl_final_prefix"
7458 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7459 prefix
="$acl_save_prefix"
7462 # Check whether --with-gnu-ld was given.
7463 if test "${with_gnu_ld+set}" = set; then :
7464 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7469 # Prepare PATH_SEPARATOR.
7470 # The user is always right.
7471 if test "${PATH_SEPARATOR+set}" != set; then
7472 echo "#! /bin/sh" >conf$$.sh
7473 echo "exit 0" >>conf$$.sh
7475 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7483 if test "$GCC" = yes; then
7484 # Check if gcc -print-prog-name=ld gives a path.
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7486 $as_echo_n "checking for ld used by GCC... " >&6; }
7489 # gcc leaves a trailing carriage return which upsets mingw
7490 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7492 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7495 # Accept absolute paths.
7496 [\\/]* |
[A-Za-z
]:[\\/]*)
7497 re_direlt
='/[^/][^/]*/\.\./'
7498 # Canonicalize the path of ld
7499 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7500 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7501 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7503 test -z "$LD" && LD
="$ac_prog"
7506 # If it fails, then pretend we aren't using GCC.
7510 # If it is relative, then search for the first ld in PATH.
7514 elif test "$with_gnu_ld" = yes; then
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7516 $as_echo_n "checking for GNU ld... " >&6; }
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7519 $as_echo_n "checking for non-GNU ld... " >&6; }
7521 if test "${acl_cv_path_LD+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
7524 if test -z "$LD"; then
7525 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7526 for ac_dir
in $PATH; do
7527 test -z "$ac_dir" && ac_dir
=.
7528 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7529 acl_cv_path_LD
="$ac_dir/$ac_prog"
7530 # Check to see if the program is GNU ld. I'd rather use --version,
7531 # but apparently some GNU ld's only accept -v.
7532 # Break only if it was the GNU/non-GNU ld that we prefer.
7533 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7534 test "$with_gnu_ld" != no
&& break
7536 test "$with_gnu_ld" != yes && break
7542 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7546 LD
="$acl_cv_path_LD"
7547 if test -n "$LD"; then
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7549 $as_echo "$LD" >&6; }
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7552 $as_echo "no" >&6; }
7554 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7556 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7557 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7558 $as_echo_n "(cached) " >&6
7560 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7561 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7562 acl_cv_prog_gnu_ld
=yes
7564 acl_cv_prog_gnu_ld
=no
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7568 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7569 with_gnu_ld
=$acl_cv_prog_gnu_ld
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7574 $as_echo_n "checking for shared library run path origin... " >&6; }
7575 if test "${acl_cv_rpath+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7579 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7580 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7587 $as_echo "$acl_cv_rpath" >&6; }
7589 libext
="$acl_cv_libext"
7590 shlibext
="$acl_cv_shlibext"
7591 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7592 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7593 hardcode_direct
="$acl_cv_hardcode_direct"
7594 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7595 # Check whether --enable-rpath was given.
7596 if test "${enable_rpath+set}" = set; then :
7597 enableval
=$enable_rpath; :
7613 acl_save_prefix
="$prefix"
7614 prefix
="$acl_final_prefix"
7615 acl_save_exec_prefix
="$exec_prefix"
7616 exec_prefix
="$acl_final_exec_prefix"
7618 eval additional_includedir
=\"$includedir\"
7619 eval additional_libdir
=\"$libdir\"
7621 exec_prefix
="$acl_save_exec_prefix"
7622 prefix
="$acl_save_prefix"
7625 # Check whether --with-libexpat-prefix was given.
7626 if test "${with_libexpat_prefix+set}" = set; then :
7627 withval
=$with_libexpat_prefix;
7628 if test "X$withval" = "Xno"; then
7631 if test "X$withval" = "X"; then
7633 acl_save_prefix
="$prefix"
7634 prefix
="$acl_final_prefix"
7635 acl_save_exec_prefix
="$exec_prefix"
7636 exec_prefix
="$acl_final_exec_prefix"
7638 eval additional_includedir
=\"$includedir\"
7639 eval additional_libdir
=\"$libdir\"
7641 exec_prefix
="$acl_save_exec_prefix"
7642 prefix
="$acl_save_prefix"
7645 additional_includedir
="$withval/include"
7646 additional_libdir
="$withval/lib"
7657 names_already_handled
=
7658 names_next_round
='expat '
7659 while test -n "$names_next_round"; do
7660 names_this_round
="$names_next_round"
7662 for name
in $names_this_round; do
7664 for n
in $names_already_handled; do
7665 if test "$n" = "$name"; then
7670 if test -z "$already_handled"; then
7671 names_already_handled
="$names_already_handled $name"
7672 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7673 eval value
=\"\
$HAVE_LIB$uppername\"
7674 if test -n "$value"; then
7675 if test "$value" = yes; then
7676 eval value
=\"\
$LIB$uppername\"
7677 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
7678 eval value
=\"\
$LTLIB$uppername\"
7679 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7688 if test $use_additional = yes; then
7689 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7690 found_dir
="$additional_libdir"
7691 found_so
="$additional_libdir/lib$name.$shlibext"
7692 if test -f "$additional_libdir/lib$name.la"; then
7693 found_la
="$additional_libdir/lib$name.la"
7696 if test -f "$additional_libdir/lib$name.$libext"; then
7697 found_dir
="$additional_libdir"
7698 found_a
="$additional_libdir/lib$name.$libext"
7699 if test -f "$additional_libdir/lib$name.la"; then
7700 found_la
="$additional_libdir/lib$name.la"
7705 if test "X$found_dir" = "X"; then
7706 for x
in $LDFLAGS $LTLIBEXPAT; do
7708 acl_save_prefix
="$prefix"
7709 prefix
="$acl_final_prefix"
7710 acl_save_exec_prefix
="$exec_prefix"
7711 exec_prefix
="$acl_final_exec_prefix"
7713 exec_prefix
="$acl_save_exec_prefix"
7714 prefix
="$acl_save_prefix"
7718 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7719 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7721 found_so
="$dir/lib$name.$shlibext"
7722 if test -f "$dir/lib$name.la"; then
7723 found_la
="$dir/lib$name.la"
7726 if test -f "$dir/lib$name.$libext"; then
7728 found_a
="$dir/lib$name.$libext"
7729 if test -f "$dir/lib$name.la"; then
7730 found_la
="$dir/lib$name.la"
7736 if test "X$found_dir" != "X"; then
7741 if test "X$found_dir" != "X"; then
7742 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7743 if test "X$found_so" != "X"; then
7744 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
7745 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7748 for x
in $ltrpathdirs; do
7749 if test "X$x" = "X$found_dir"; then
7754 if test -z "$haveit"; then
7755 ltrpathdirs
="$ltrpathdirs $found_dir"
7757 if test "$hardcode_direct" = yes; then
7758 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7760 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
7761 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7763 for x
in $rpathdirs; do
7764 if test "X$x" = "X$found_dir"; then
7769 if test -z "$haveit"; then
7770 rpathdirs
="$rpathdirs $found_dir"
7774 for x
in $LDFLAGS $LIBEXPAT; do
7776 acl_save_prefix
="$prefix"
7777 prefix
="$acl_final_prefix"
7778 acl_save_exec_prefix
="$exec_prefix"
7779 exec_prefix
="$acl_final_exec_prefix"
7781 exec_prefix
="$acl_save_exec_prefix"
7782 prefix
="$acl_save_prefix"
7784 if test "X$x" = "X-L$found_dir"; then
7789 if test -z "$haveit"; then
7790 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7792 if test "$hardcode_minus_L" != no
; then
7793 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7795 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7801 if test "X$found_a" != "X"; then
7802 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7804 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7807 additional_includedir
=
7808 case "$found_dir" in
7810 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7811 additional_includedir
="$basedir/include"
7814 if test "X$additional_includedir" != "X"; then
7815 if test "X$additional_includedir" != "X/usr/include"; then
7817 if test "X$additional_includedir" = "X/usr/local/include"; then
7818 if test -n "$GCC"; then
7820 linux
*) haveit
=yes;;
7824 if test -z "$haveit"; then
7825 for x
in $CPPFLAGS $INCEXPAT; do
7827 acl_save_prefix
="$prefix"
7828 prefix
="$acl_final_prefix"
7829 acl_save_exec_prefix
="$exec_prefix"
7830 exec_prefix
="$acl_final_exec_prefix"
7832 exec_prefix
="$acl_save_exec_prefix"
7833 prefix
="$acl_save_prefix"
7835 if test "X$x" = "X-I$additional_includedir"; then
7840 if test -z "$haveit"; then
7841 if test -d "$additional_includedir"; then
7842 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7848 if test -n "$found_la"; then
7849 save_libdir
="$libdir"
7851 */* |
*\\*) .
"$found_la" ;;
7852 *) .
"./$found_la" ;;
7854 libdir
="$save_libdir"
7855 for dep
in $dependency_libs; do
7858 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7859 if test "X$additional_libdir" != "X/usr/lib"; then
7861 if test "X$additional_libdir" = "X/usr/local/lib"; then
7862 if test -n "$GCC"; then
7864 linux
*) haveit
=yes;;
7868 if test -z "$haveit"; then
7870 for x
in $LDFLAGS $LIBEXPAT; do
7872 acl_save_prefix
="$prefix"
7873 prefix
="$acl_final_prefix"
7874 acl_save_exec_prefix
="$exec_prefix"
7875 exec_prefix
="$acl_final_exec_prefix"
7877 exec_prefix
="$acl_save_exec_prefix"
7878 prefix
="$acl_save_prefix"
7880 if test "X$x" = "X-L$additional_libdir"; then
7885 if test -z "$haveit"; then
7886 if test -d "$additional_libdir"; then
7887 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7891 for x
in $LDFLAGS $LTLIBEXPAT; do
7893 acl_save_prefix
="$prefix"
7894 prefix
="$acl_final_prefix"
7895 acl_save_exec_prefix
="$exec_prefix"
7896 exec_prefix
="$acl_final_exec_prefix"
7898 exec_prefix
="$acl_save_exec_prefix"
7899 prefix
="$acl_save_prefix"
7901 if test "X$x" = "X-L$additional_libdir"; then
7906 if test -z "$haveit"; then
7907 if test -d "$additional_libdir"; then
7908 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7915 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7916 if test "$enable_rpath" != no
; then
7918 for x
in $rpathdirs; do
7919 if test "X$x" = "X$dir"; then
7924 if test -z "$haveit"; then
7925 rpathdirs
="$rpathdirs $dir"
7928 for x
in $ltrpathdirs; do
7929 if test "X$x" = "X$dir"; then
7934 if test -z "$haveit"; then
7935 ltrpathdirs
="$ltrpathdirs $dir"
7940 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7943 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7946 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7947 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7953 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7954 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7960 if test "X$rpathdirs" != "X"; then
7961 if test -n "$hardcode_libdir_separator"; then
7963 for found_dir
in $rpathdirs; do
7964 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7966 acl_save_libdir
="$libdir"
7968 eval flag
=\"$hardcode_libdir_flag_spec\"
7969 libdir
="$acl_save_libdir"
7970 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7972 for found_dir
in $rpathdirs; do
7973 acl_save_libdir
="$libdir"
7975 eval flag
=\"$hardcode_libdir_flag_spec\"
7976 libdir
="$acl_save_libdir"
7977 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7981 if test "X$ltrpathdirs" != "X"; then
7982 for found_dir
in $ltrpathdirs; do
7983 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7988 ac_save_CPPFLAGS
="$CPPFLAGS"
7990 for element
in $INCEXPAT; do
7992 for x
in $CPPFLAGS; do
7994 acl_save_prefix
="$prefix"
7995 prefix
="$acl_final_prefix"
7996 acl_save_exec_prefix
="$exec_prefix"
7997 exec_prefix
="$acl_final_exec_prefix"
7999 exec_prefix
="$acl_save_exec_prefix"
8000 prefix
="$acl_save_prefix"
8002 if test "X$x" = "X$element"; then
8007 if test -z "$haveit"; then
8008 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8014 $as_echo_n "checking for libexpat... " >&6; }
8015 if test "${ac_cv_libexpat+set}" = set; then :
8016 $as_echo_n "(cached) " >&6
8019 ac_save_LIBS
="$LIBS"
8020 LIBS
="$LIBS $LIBEXPAT"
8021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8027 XML_Parser p = XML_ParserCreate (0);
8032 if ac_fn_c_try_link
"$LINENO"; then :
8037 rm -f core conftest.err conftest.
$ac_objext \
8038 conftest
$ac_exeext conftest.
$ac_ext
8039 LIBS
="$ac_save_LIBS"
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8043 $as_echo "$ac_cv_libexpat" >&6; }
8044 if test "$ac_cv_libexpat" = yes; then
8047 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8050 $as_echo_n "checking how to link with libexpat... " >&6; }
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8052 $as_echo "$LIBEXPAT" >&6; }
8055 CPPFLAGS
="$ac_save_CPPFLAGS"
8065 if test "$HAVE_LIBEXPAT" != yes; then
8066 if test "$with_expat" = yes; then
8067 as_fn_error
"expat is missing or unusable" "$LINENO" 5
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8070 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8074 LIBS
="$LIBS $LIBEXPAT"
8075 for ac_func
in XML_StopParser
8077 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8078 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
8079 cat >>confdefs.h
<<_ACEOF
8080 #define HAVE_XML_STOPPARSER 1
8090 # --------------------- #
8091 # Check for libpython. #
8092 # --------------------- #
8099 # Check whether --with-python was given.
8100 if test "${with_python+set}" = set; then :
8101 withval
=$with_python;
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8107 $as_echo_n "checking whether to use python... " >&6; }
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8109 $as_echo "$with_python" >&6; }
8111 if test "${with_python}" = no
; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8113 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8116 case "${with_python}" in
8118 if test -d ${with_python}; then
8119 # Assume the python binary is ${with_python}/bin/python.
8120 python_prog
="${with_python}/bin/python"
8122 # If python does not exit ${with_python}/bin, then try in
8123 # ${with_python}. On Windows/MinGW, this is where the Python
8125 if test ! -x "${python_prog}"; then
8126 python_prog
="${with_python}/python"
8129 if test ! -x "${python_prog}"; then
8130 # Fall back to gdb 7.0/7.1 behaviour.
8132 python_prefix
=${with_python}
8134 elif test -x "${with_python}"; then
8135 # While we can't run python compiled for $host (unless host == build),
8136 # the user could write a script that provides the needed information,
8137 # so we support that.
8138 python_prog
=${with_python}
8141 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8145 # Disallow --with-python=foo/bar.
8146 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8149 # The user has either specified auto, yes, or the name of the python
8150 # program assumed to be in $PATH.
8152 case "${with_python}" in
8154 if test ${build} = ${host}; then
8155 # Extract the first word of "python", so it can be a program name with args.
8156 set dummy python
; ac_word
=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8162 case $python_prog_path in
8164 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8171 test -z "$as_dir" && as_dir
=.
8172 for ac_exec_ext
in '' $ac_executable_extensions; do
8173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8174 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8186 python_prog_path
=$ac_cv_path_python_prog_path
8187 if test -n "$python_prog_path"; then
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8189 $as_echo "$python_prog_path" >&6; }
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8196 if test "${python_prog_path}" = missing
; then
8199 python_prog
=${python_prog_path}
8202 # Not much we can do except assume the cross-compiler will find the
8208 # While we can't run python compiled for $host (unless host == build),
8209 # the user could write a script that provides the needed information,
8210 # so we support that.
8211 python_prog
="${with_python}"
8212 # Extract the first word of "${python_prog}", so it can be a program name with args.
8213 set dummy
${python_prog}; ac_word
=$2
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8215 $as_echo_n "checking for $ac_word... " >&6; }
8216 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8219 case $python_prog_path in
8221 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8228 test -z "$as_dir" && as_dir
=.
8229 for ac_exec_ext
in '' $ac_executable_extensions; do
8230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8231 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8239 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8243 python_prog_path
=$ac_cv_path_python_prog_path
8244 if test -n "$python_prog_path"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8246 $as_echo "$python_prog_path" >&6; }
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8253 if test "${python_prog_path}" = missing
; then
8254 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
8260 if test "${python_prog}" != missing
; then
8261 # We have a python program to use, but it may be too old.
8262 # Don't flag an error for --with-python=auto (the default).
8263 have_python_config
=yes
8264 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
8265 if test $?
!= 0; then
8266 have_python_config
=failed
8267 if test "${with_python}" != auto
; then
8268 as_fn_error
"failure running python-config --includes" "$LINENO" 5
8271 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8272 if test $?
!= 0; then
8273 have_python_config
=failed
8274 if test "${with_python}" != auto
; then
8275 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
8278 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8279 if test $?
!= 0; then
8280 have_python_config
=failed
8281 if test "${with_python}" != auto
; then
8282 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
8286 # We do not have a python executable we can use to determine where
8287 # to find the Python headers and libs. We cannot guess the include
8288 # path from the python_prefix either, because that include path
8289 # depends on the Python version. So, there is nothing much we can
8290 # do except assume that the compiler will be able to find those files.
8293 have_python_config
=no
8296 # If we have python-config, only try the configuration it provides.
8297 # Otherwise fallback on the old way of trying different versions of
8301 if test "${have_python_config}" = yes; then
8302 # Determine the Python version by extracting "-lpython<version>"
8303 # part of the python_libs. <version> is usually X.Y with X and Y
8304 # being decimal numbers, but can also be XY (seen on Windows).
8306 # The extraction is performed using sed with a regular expression.
8307 # Initially, the regexp used was using the '?' quantifier to make
8308 # the dot in the version number optional. Unfortunately, this
8309 # does not work with non-GNU versions of sed because, because of
8310 # what looks like a limitation (the '?' quantifier does not work
8311 # with back-references). We work around this limitation by using
8312 # the '*' quantifier instead. It means that, in theory, we might
8313 # match unexpected version strings such as "-lpython2..7", but
8314 # this seems unlikely in practice. And even if that happens,
8315 # an error will be triggered later on, when checking that version
8317 python_version
=`echo " ${python_libs} " \
8318 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8319 case "${python_version}" in
8322 version
=${python_version}
8324 new_CPPFLAGS
=${python_includes}
8325 new_LIBS
=${python_libs}
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8327 $as_echo_n "checking for ${version}... " >&6; }
8328 save_CPPFLAGS
=$CPPFLAGS
8330 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8331 LIBS
="$LIBS $new_LIBS"
8332 found_usable_python
=no
8333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8344 if ac_fn_c_try_link
"$LINENO"; then :
8345 have_libpython
=${version}
8346 found_usable_python
=yes
8347 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8348 PYTHON_LIBS
=$new_LIBS
8350 rm -f core conftest.err conftest.
$ac_objext \
8351 conftest
$ac_exeext conftest.
$ac_ext
8352 CPPFLAGS
=$save_CPPFLAGS
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8355 $as_echo "${found_usable_python}" >&6; }
8359 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
8362 elif test "${have_python_config}" != failed
; then
8363 if test "${have_libpython}" = no
; then
8367 new_CPPFLAGS
=${python_includes}
8368 new_LIBS
="${python_libs} -lpython2.7"
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8370 $as_echo_n "checking for ${version}... " >&6; }
8371 save_CPPFLAGS
=$CPPFLAGS
8373 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8374 LIBS
="$LIBS $new_LIBS"
8375 found_usable_python
=no
8376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8387 if ac_fn_c_try_link
"$LINENO"; then :
8388 have_libpython
=${version}
8389 found_usable_python
=yes
8390 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8391 PYTHON_LIBS
=$new_LIBS
8393 rm -f core conftest.err conftest.
$ac_objext \
8394 conftest
$ac_exeext conftest.
$ac_ext
8395 CPPFLAGS
=$save_CPPFLAGS
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8398 $as_echo "${found_usable_python}" >&6; }
8401 if test "${have_libpython}" = no
; then
8405 new_CPPFLAGS
=${python_includes}
8406 new_LIBS
="${python_libs} -lpython2.6"
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8408 $as_echo_n "checking for ${version}... " >&6; }
8409 save_CPPFLAGS
=$CPPFLAGS
8411 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8412 LIBS
="$LIBS $new_LIBS"
8413 found_usable_python
=no
8414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8425 if ac_fn_c_try_link
"$LINENO"; then :
8426 have_libpython
=${version}
8427 found_usable_python
=yes
8428 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8429 PYTHON_LIBS
=$new_LIBS
8431 rm -f core conftest.err conftest.
$ac_objext \
8432 conftest
$ac_exeext conftest.
$ac_ext
8433 CPPFLAGS
=$save_CPPFLAGS
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8436 $as_echo "${found_usable_python}" >&6; }
8439 if test ${have_libpython} = no
; then
8443 new_CPPFLAGS
=${python_includes}
8444 new_LIBS
="${python_libs} -lpython2.5"
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8446 $as_echo_n "checking for ${version}... " >&6; }
8447 save_CPPFLAGS
=$CPPFLAGS
8449 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8450 LIBS
="$LIBS $new_LIBS"
8451 found_usable_python
=no
8452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8463 if ac_fn_c_try_link
"$LINENO"; then :
8464 have_libpython
=${version}
8465 found_usable_python
=yes
8466 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8467 PYTHON_LIBS
=$new_LIBS
8469 rm -f core conftest.err conftest.
$ac_objext \
8470 conftest
$ac_exeext conftest.
$ac_ext
8471 CPPFLAGS
=$save_CPPFLAGS
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8474 $as_echo "${found_usable_python}" >&6; }
8477 if test ${have_libpython} = no
; then
8481 new_CPPFLAGS
=${python_includes}
8482 new_LIBS
="${python_libs} -lpython2.4"
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8484 $as_echo_n "checking for ${version}... " >&6; }
8485 save_CPPFLAGS
=$CPPFLAGS
8487 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8488 LIBS
="$LIBS $new_LIBS"
8489 found_usable_python
=no
8490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8501 if ac_fn_c_try_link
"$LINENO"; then :
8502 have_libpython
=${version}
8503 found_usable_python
=yes
8504 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8505 PYTHON_LIBS
=$new_LIBS
8507 rm -f core conftest.err conftest.
$ac_objext \
8508 conftest
$ac_exeext conftest.
$ac_ext
8509 CPPFLAGS
=$save_CPPFLAGS
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8512 $as_echo "${found_usable_python}" >&6; }
8516 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
8518 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8520 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
8522 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8524 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
8526 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8528 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
8530 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8534 if test "${have_libpython}" = no
; then
8535 case "${with_python}" in
8537 as_fn_error
"python is missing or unusable" "$LINENO" 5
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8541 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8544 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
8548 if test -n "${python_prefix}"; then
8550 cat >>confdefs.h
<<_ACEOF
8551 #define WITH_PYTHON_PATH "${python_prefix}"
8555 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8556 if test "x$prefix" = xNONE
; then
8557 test_prefix
=/usr
/local
8562 test_prefix
=$exec_prefix
8565 case ${python_prefix} in
8566 "${test_prefix}"|
"${test_prefix}/"*|\
8567 '${exec_prefix}'|
'${exec_prefix}/'*)
8572 cat >>confdefs.h
<<_ACEOF
8573 #define PYTHON_PATH_RELOCATABLE $value
8581 if test "${have_libpython}" != no
; then
8583 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8585 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8586 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8587 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8588 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
8589 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8591 # Flags needed to compile Python code (taken from python-config --cflags).
8592 # We cannot call python-config directly because it will output whatever was
8593 # used when compiling the Python interpreter itself, including flags which
8594 # would make the python-related objects be compiled differently from the
8595 # rest of GDB (e.g., -O2 and -fPIC).
8596 if test "${GCC}" = yes; then
8597 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
8600 if test "x${tentative_python_cflags}" != x
; then
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8602 $as_echo_n "checking compiler flags for python code... " >&6; }
8603 for flag
in ${tentative_python_cflags}; do
8604 # Check that the compiler accepts it
8605 saved_CFLAGS
="$CFLAGS"
8606 CFLAGS
="$CFLAGS $flag"
8607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8618 if ac_fn_c_try_compile
"$LINENO"; then :
8619 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
8621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8622 CFLAGS
="$saved_CFLAGS"
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8625 $as_echo "${PYTHON_CFLAGS}" >&6; }
8628 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
8630 # #define siginfo __siginfo
8632 # The problem is that including Python causes some XOPEN macros to be
8633 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
8634 # to false. So, we work around this issue by defining siginfo ourself
8635 # though the command-line.
8637 # On x64 Windows, Python's include headers, and pyconfig.h in
8638 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
8639 # version of Windows. Unfortunately, MS_WIN64 is only defined if
8640 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
8641 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
8642 # The issue was reported to the Python community, but still isn't
8643 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
8646 irix
*) if test "${GCC}" = yes; then
8647 CPPFLAGS
="$CPPFLAGS -Dsiginfo=__siginfo"
8651 if test "${GCC}" = yes; then
8652 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
8657 # Note that "python -m threading" cannot be used to check for
8658 # threading support due to a bug in Python 2.7.3
8659 # (http://bugs.python.org/issue15567).
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
8661 $as_echo_n "checking whether python supports threads... " >&6; }
8662 saved_CPPFLAGS
="${CPPFLAGS}"
8663 CPPFLAGS
="${PYTHON_CPPFLAGS}"
8664 # Note that the test is reversed so that python_has_threads=yes on
8665 # unexpected failures.
8666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8675 if ac_fn_c_try_cpp
"$LINENO"; then :
8676 python_has_threads
=no
8678 python_has_threads
=yes
8680 rm -f conftest.err conftest.
$ac_ext
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
8682 $as_echo "${python_has_threads}" >&6; }
8683 CPPFLAGS
="${saved_CPPFLAGS}"
8685 # Even if Python support is not compiled in, we need to have this file
8686 # included so that the "python" command, et.al., still exists.
8687 CONFIG_OBS
="$CONFIG_OBS python.o"
8688 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
8693 if test "${have_libpython}" != no
; then
8695 HAVE_PYTHON_FALSE
='#'
8697 HAVE_PYTHON_TRUE
='#'
8702 # -------------------- #
8703 # Check for libguile. #
8704 # -------------------- #
8711 # Check whether --with-guile was given.
8712 if test "${with_guile+set}" = set; then :
8713 withval
=$with_guile;
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
8719 $as_echo_n "checking whether to use guile... " >&6; }
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
8721 $as_echo "$with_guile" >&6; }
8723 # Extract the first word of "pkg-config", so it can be a program name with args.
8724 set dummy pkg-config
; ac_word
=$2
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726 $as_echo_n "checking for $ac_word... " >&6; }
8727 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
8728 $as_echo_n "(cached) " >&6
8730 case $pkg_config_prog_path in
8732 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
8735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8739 test -z "$as_dir" && as_dir
=.
8740 for ac_exec_ext
in '' $ac_executable_extensions; do
8741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8742 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8750 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
8754 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
8755 if test -n "$pkg_config_prog_path"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
8757 $as_echo "$pkg_config_prog_path" >&6; }
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8765 try_guile_versions
="guile-2.2 guile-2.0"
8767 case "${with_guile}" in
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
8770 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
8773 if test "${pkg_config_prog_path}" = "missing"; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
8775 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
8778 pkg_config
=${pkg_config_prog_path}
8779 guile_version_list
=${try_guile_versions}
8782 found_usable_guile
=checking
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
8784 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
8785 for guile_version
in ${guile_version_list}; do
8786 ${pkg_config} --exists ${guile_version} 2>/dev
/null
8787 if test $?
!= 0; then
8790 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
8791 if test $?
!= 0; then
8792 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
8794 new_LIBS
=`${pkg_config} --libs ${guile_version}`
8795 if test $?
!= 0; then
8796 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
8798 found_usable_guile
=${guile_version}
8801 if test "${found_usable_guile}" = "checking"; then
8802 if test "${flag_errors}" = "yes"; then
8803 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
8805 found_usable_guile
=no
8808 if test "${found_usable_guile}" != no
; then
8809 save_CPPFLAGS
=$CPPFLAGS
8811 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8812 LIBS
="$LIBS $new_LIBS"
8813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8815 #include "libguile.h"
8824 if ac_fn_c_try_link
"$LINENO"; then :
8826 GUILE_CPPFLAGS
=$new_CPPFLAGS
8827 GUILE_LIBS
=$new_LIBS
8829 found_usable_guile
=no
8831 rm -f core conftest.err conftest.
$ac_objext \
8832 conftest
$ac_exeext conftest.
$ac_ext
8833 CPPFLAGS
=$save_CPPFLAGS
8835 if test "${found_usable_guile}" = no
; then
8836 if test "${flag_errors}" = yes; then
8837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8839 as_fn_error
"linking guile version ${guile_version} test program failed
8840 See \`config.log' for more details." "$LINENO" 5; }
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
8845 $as_echo "${found_usable_guile}" >&6; }
8850 if test "${pkg_config_prog_path}" = "missing"; then
8851 as_fn_error
"pkg-config not found" "$LINENO" 5
8854 pkg_config
=${pkg_config_prog_path}
8855 guile_version_list
=${try_guile_versions}
8858 found_usable_guile
=checking
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
8860 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
8861 for guile_version
in ${guile_version_list}; do
8862 ${pkg_config} --exists ${guile_version} 2>/dev
/null
8863 if test $?
!= 0; then
8866 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
8867 if test $?
!= 0; then
8868 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
8870 new_LIBS
=`${pkg_config} --libs ${guile_version}`
8871 if test $?
!= 0; then
8872 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
8874 found_usable_guile
=${guile_version}
8877 if test "${found_usable_guile}" = "checking"; then
8878 if test "${flag_errors}" = "yes"; then
8879 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
8881 found_usable_guile
=no
8884 if test "${found_usable_guile}" != no
; then
8885 save_CPPFLAGS
=$CPPFLAGS
8887 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8888 LIBS
="$LIBS $new_LIBS"
8889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8891 #include "libguile.h"
8900 if ac_fn_c_try_link
"$LINENO"; then :
8902 GUILE_CPPFLAGS
=$new_CPPFLAGS
8903 GUILE_LIBS
=$new_LIBS
8905 found_usable_guile
=no
8907 rm -f core conftest.err conftest.
$ac_objext \
8908 conftest
$ac_exeext conftest.
$ac_ext
8909 CPPFLAGS
=$save_CPPFLAGS
8911 if test "${found_usable_guile}" = no
; then
8912 if test "${flag_errors}" = yes; then
8913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8915 as_fn_error
"linking guile version ${guile_version} test program failed
8916 See \`config.log' for more details." "$LINENO" 5; }
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
8921 $as_echo "${found_usable_guile}" >&6; }
8925 if test -x "${with_guile}"; then
8927 pkg_config
=${with_guile}
8928 guile_version_list
=${try_guile_versions}
8931 found_usable_guile
=checking
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
8933 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
8934 for guile_version
in ${guile_version_list}; do
8935 ${pkg_config} --exists ${guile_version} 2>/dev
/null
8936 if test $?
!= 0; then
8939 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
8940 if test $?
!= 0; then
8941 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
8943 new_LIBS
=`${pkg_config} --libs ${guile_version}`
8944 if test $?
!= 0; then
8945 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
8947 found_usable_guile
=${guile_version}
8950 if test "${found_usable_guile}" = "checking"; then
8951 if test "${flag_errors}" = "yes"; then
8952 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
8954 found_usable_guile
=no
8957 if test "${found_usable_guile}" != no
; then
8958 save_CPPFLAGS
=$CPPFLAGS
8960 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8961 LIBS
="$LIBS $new_LIBS"
8962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8964 #include "libguile.h"
8973 if ac_fn_c_try_link
"$LINENO"; then :
8975 GUILE_CPPFLAGS
=$new_CPPFLAGS
8976 GUILE_LIBS
=$new_LIBS
8978 found_usable_guile
=no
8980 rm -f core conftest.err conftest.
$ac_objext \
8981 conftest
$ac_exeext conftest.
$ac_ext
8982 CPPFLAGS
=$save_CPPFLAGS
8984 if test "${found_usable_guile}" = no
; then
8985 if test "${flag_errors}" = yes; then
8986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8988 as_fn_error
"linking guile version ${guile_version} test program failed
8989 See \`config.log' for more details." "$LINENO" 5; }
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
8994 $as_echo "${found_usable_guile}" >&6; }
8997 as_fn_error
"Guile config program not executable: ${with_guile}" "$LINENO" 5
9001 # Disallow --with=guile="" and --with-guile=foo/bar.
9002 as_fn_error
"invalid value for --with-guile" "$LINENO" 5
9005 # A space separate list of guile versions to try, in order.
9006 if test "${pkg_config_prog_path}" = "missing"; then
9007 as_fn_error
"pkg-config not found" "$LINENO" 5
9010 pkg_config
=${pkg_config_prog_path}
9011 guile_version_list
=${with_guile}
9014 found_usable_guile
=checking
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9016 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9017 for guile_version
in ${guile_version_list}; do
9018 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9019 if test $?
!= 0; then
9022 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9023 if test $?
!= 0; then
9024 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9026 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9027 if test $?
!= 0; then
9028 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9030 found_usable_guile
=${guile_version}
9033 if test "${found_usable_guile}" = "checking"; then
9034 if test "${flag_errors}" = "yes"; then
9035 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9037 found_usable_guile
=no
9040 if test "${found_usable_guile}" != no
; then
9041 save_CPPFLAGS
=$CPPFLAGS
9043 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9044 LIBS
="$LIBS $new_LIBS"
9045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9047 #include "libguile.h"
9056 if ac_fn_c_try_link
"$LINENO"; then :
9058 GUILE_CPPFLAGS
=$new_CPPFLAGS
9059 GUILE_LIBS
=$new_LIBS
9061 found_usable_guile
=no
9063 rm -f core conftest.err conftest.
$ac_objext \
9064 conftest
$ac_exeext conftest.
$ac_ext
9065 CPPFLAGS
=$save_CPPFLAGS
9067 if test "${found_usable_guile}" = no
; then
9068 if test "${flag_errors}" = yes; then
9069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9071 as_fn_error
"linking guile version ${guile_version} test program failed
9072 See \`config.log' for more details." "$LINENO" 5; }
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9077 $as_echo "${found_usable_guile}" >&6; }
9082 if test "${have_libguile}" != no
; then
9084 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9086 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9087 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9088 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9089 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
9090 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9093 save_CPPFLAGS
="$CPPFLAGS"
9095 CPPFLAGS
="$GUILE_CPPFLAGS"
9096 for ac_func
in scm_new_smob
9098 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9099 if test "x$ac_cv_func_scm_new_smob" = x
""yes; then :
9100 cat >>confdefs.h
<<_ACEOF
9101 #define HAVE_SCM_NEW_SMOB 1
9108 CPPFLAGS
="$save_CPPFLAGS"
9110 # Even if Guile support is not compiled in, we need to have these files
9112 CONFIG_OBS
="$CONFIG_OBS guile.o"
9113 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
9117 if test "${have_libguile}" != no
; then
9119 HAVE_GUILE_FALSE
='#'
9126 # PR 17185, see if we can get the libgc version to see if we need
9127 # to apply the workaround.
9128 for ac_header
in gc
/gc.h
9130 ac_fn_c_check_header_mongrel
"$LINENO" "gc/gc.h" "ac_cv_header_gc_gc_h" "$ac_includes_default"
9131 if test "x$ac_cv_header_gc_gc_h" = x
""yes; then :
9132 cat >>confdefs.h
<<_ACEOF
9133 #define HAVE_GC_GC_H 1
9140 for ac_func
in setenv
9142 ac_fn_c_check_func
"$LINENO" "setenv" "ac_cv_func_setenv"
9143 if test "x$ac_cv_func_setenv" = x
""yes; then :
9144 cat >>confdefs.h
<<_ACEOF
9145 #define HAVE_SETENV 1
9152 # --------------------- #
9153 # Check for libmcheck. #
9154 # --------------------- #
9156 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
9157 # but turn it off if Python is enabled with threads, since -lmcheck is
9158 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
9160 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
9161 && $development; then
9162 libmcheck_default
=yes
9164 libmcheck_default
=no
9167 # Check whether --enable-libmcheck was given.
9168 if test "${enable_libmcheck+set}" = set; then :
9169 enableval
=$enable_libmcheck; case "${enableval}" in
9170 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
9171 no | n
) ENABLE_LIBMCHECK
="no" ;;
9172 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
9177 if test -z "${ENABLE_LIBMCHECK}"; then
9178 ENABLE_LIBMCHECK
=${libmcheck_default}
9181 if test "$ENABLE_LIBMCHECK" = "yes" ; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
9183 $as_echo_n "checking for main in -lmcheck... " >&6; }
9184 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
9185 $as_echo_n "(cached) " >&6
9187 ac_check_lib_save_LIBS
=$LIBS
9188 LIBS
="-lmcheck $LIBS"
9189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9201 if ac_fn_c_try_link
"$LINENO"; then :
9202 ac_cv_lib_mcheck_main
=yes
9204 ac_cv_lib_mcheck_main
=no
9206 rm -f core conftest.err conftest.
$ac_objext \
9207 conftest
$ac_exeext conftest.
$ac_ext
9208 LIBS
=$ac_check_lib_save_LIBS
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
9211 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
9212 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
9213 cat >>confdefs.h
<<_ACEOF
9214 #define HAVE_LIBMCHECK 1
9217 LIBS
="-lmcheck $LIBS"
9224 if test "$ENABLE_LIBMCHECK" = "yes" \
9225 -a "${have_libpython}" != "no" \
9226 -a "${python_has_threads}" = "yes" ; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
9228 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
9231 # ------------------------- #
9232 # Checks for header files. #
9233 # ------------------------- #
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9236 $as_echo_n "checking for ANSI C header files... " >&6; }
9237 if test "${ac_cv_header_stdc+set}" = set; then :
9238 $as_echo_n "(cached) " >&6
9240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9255 if ac_fn_c_try_compile
"$LINENO"; then :
9256 ac_cv_header_stdc
=yes
9258 ac_cv_header_stdc
=no
9260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9262 if test $ac_cv_header_stdc = yes; then
9263 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9265 /* end confdefs.h. */
9269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9270 $EGREP "memchr" >/dev
/null
2>&1; then :
9273 ac_cv_header_stdc
=no
9279 if test $ac_cv_header_stdc = yes; then
9280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9287 $EGREP "free" >/dev
/null
2>&1; then :
9290 ac_cv_header_stdc
=no
9296 if test $ac_cv_header_stdc = yes; then
9297 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9298 if test "$cross_compiling" = yes; then :
9301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9305 #if ((' ' & 0x0FF) == 0x020)
9306 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9307 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9309 # define ISLOWER(c) \
9310 (('a' <= (c) && (c) <= 'i') \
9311 || ('j' <= (c) && (c) <= 'r') \
9312 || ('s' <= (c) && (c) <= 'z'))
9313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9321 for (i = 0; i < 256; i++)
9322 if (XOR (islower (i), ISLOWER (i))
9323 || toupper (i) != TOUPPER (i))
9328 if ac_fn_c_try_run
"$LINENO"; then :
9331 ac_cv_header_stdc
=no
9333 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9334 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9340 $as_echo "$ac_cv_header_stdc" >&6; }
9341 if test $ac_cv_header_stdc = yes; then
9343 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9347 # elf_hp.h is for HP/UX 64-bit shared library support.
9348 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
9351 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
9352 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
9353 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
9354 termios.h termio.h \
9358 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9359 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9360 eval as_val
=\$
$as_ac_Header
9361 if test "x$as_val" = x
""yes; then :
9362 cat >>confdefs.h
<<_ACEOF
9363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9370 for ac_header
in sys
/proc.h
9372 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
9373 # include <sys/param.h>
9377 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
9378 cat >>confdefs.h
<<_ACEOF
9379 #define HAVE_SYS_PROC_H 1
9386 for ac_header
in sys
/user.h
9388 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
9389 # include <sys/param.h>
9393 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
9394 cat >>confdefs.h
<<_ACEOF
9395 #define HAVE_SYS_USER_H 1
9403 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
9404 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
9405 # think that we don't have <curses.h> if we're using GCC.
9408 if test "$GCC" = yes; then
9410 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
9414 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
9416 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9417 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9418 eval as_val
=\$
$as_ac_Header
9419 if test "x$as_val" = x
""yes; then :
9420 cat >>confdefs.h
<<_ACEOF
9421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9428 for ac_header
in term.h
9430 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
9431 # include <curses.h>
9435 if test "x$ac_cv_header_term_h" = x
""yes; then :
9436 cat >>confdefs.h
<<_ACEOF
9437 #define HAVE_TERM_H 1
9445 # ------------------------- #
9446 # Checks for declarations. #
9447 # ------------------------- #
9449 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
9450 if test "x$ac_cv_have_decl_free" = x
""yes; then :
9456 cat >>confdefs.h
<<_ACEOF
9457 #define HAVE_DECL_FREE $ac_have_decl
9459 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
9460 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
9466 cat >>confdefs.h
<<_ACEOF
9467 #define HAVE_DECL_MALLOC $ac_have_decl
9469 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
9470 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
9476 cat >>confdefs.h
<<_ACEOF
9477 #define HAVE_DECL_REALLOC $ac_have_decl
9479 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9480 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
9486 cat >>confdefs.h
<<_ACEOF
9487 #define HAVE_DECL_SNPRINTF $ac_have_decl
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9492 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9493 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9494 $as_echo_n "(cached) " >&6
9496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9507 if ac_fn_c_try_link
"$LINENO"; then :
9508 am_cv_val_LC_MESSAGES
=yes
9510 am_cv_val_LC_MESSAGES
=no
9512 rm -f core conftest.err conftest.
$ac_objext \
9513 conftest
$ac_exeext conftest.
$ac_ext
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9516 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9517 if test $am_cv_val_LC_MESSAGES = yes; then
9519 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9524 # ----------------------- #
9525 # Checks for structures. #
9526 # ----------------------- #
9528 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9529 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
9531 cat >>confdefs.h
<<_ACEOF
9532 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9537 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9538 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
9540 cat >>confdefs.h
<<_ACEOF
9541 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9548 # ------------------ #
9549 # Checks for types. #
9550 # ------------------ #
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9553 $as_echo_n "checking return type of signal handlers... " >&6; }
9554 if test "${ac_cv_type_signal+set}" = set; then :
9555 $as_echo_n "(cached) " >&6
9557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9559 #include <sys/types.h>
9565 return *(signal (0, 0)) (0) == 1;
9570 if ac_fn_c_try_compile
"$LINENO"; then :
9571 ac_cv_type_signal
=int
9573 ac_cv_type_signal
=void
9575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9578 $as_echo "$ac_cv_type_signal" >&6; }
9580 cat >>confdefs.h
<<_ACEOF
9581 #define RETSIGTYPE $ac_cv_type_signal
9585 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9586 #include <sys/socket.h>
9589 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
9591 cat >>confdefs.h
<<_ACEOF
9592 #define HAVE_SOCKLEN_T 1
9599 # ------------------------------------- #
9600 # Checks for compiler characteristics. #
9601 # ------------------------------------- #
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9604 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9605 if test "${ac_cv_c_const+set}" = set; then :
9606 $as_echo_n "(cached) " >&6
9608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h. */
9614 /* FIXME: Include the comments suggested by Paul. */
9616 /* Ultrix mips cc rejects this. */
9617 typedef int charset[2];
9619 /* SunOS 4.1.1 cc rejects this. */
9620 char const *const *pcpcc;
9622 /* NEC SVR4.0.2 mips cc rejects this. */
9623 struct point {int x, y;};
9624 static struct point const zero = {0,0};
9625 /* AIX XL C 1.02.0.0 rejects this.
9626 It does not let you subtract one const X* pointer from another in
9627 an arm of an if-expression whose if-part is not a constant
9629 const char *g = "string";
9630 pcpcc = &g + (g ? g-g : 0);
9631 /* HPUX 7.0 cc rejects these. */
9633 ppc = (char**) pcpcc;
9634 pcpcc = (char const *const *) ppc;
9635 { /* SCO 3.2v4 cc rejects this. */
9637 char const *s = 0 ? (char *) 0 : (char const *) 0;
9642 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9644 const int *foo = &x[0];
9647 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9648 typedef const int *iptr;
9652 { /* AIX XL C 1.02.0.0 rejects this saying
9653 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9654 struct s { int j; const int *ap[3]; };
9655 struct s *b; b->j = 5;
9657 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9661 return !cs[0] && !zero.x;
9668 if ac_fn_c_try_compile
"$LINENO"; then :
9673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9676 $as_echo "$ac_cv_c_const" >&6; }
9677 if test $ac_cv_c_const = no
; then
9679 $as_echo "#define const /**/" >>confdefs.h
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9684 $as_echo_n "checking for inline... " >&6; }
9685 if test "${ac_cv_c_inline+set}" = set; then :
9686 $as_echo_n "(cached) " >&6
9689 for ac_kw
in inline __inline__ __inline
; do
9690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9694 static $ac_kw foo_t static_foo () {return 0; }
9695 $ac_kw foo_t foo () {return 0; }
9699 if ac_fn_c_try_compile
"$LINENO"; then :
9700 ac_cv_c_inline
=$ac_kw
9702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9703 test "$ac_cv_c_inline" != no
&& break
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9708 $as_echo "$ac_cv_c_inline" >&6; }
9710 case $ac_cv_c_inline in
9713 case $ac_cv_c_inline in
9715 *) ac_val
=$ac_cv_c_inline;;
9717 cat >>confdefs.h
<<_ACEOF
9719 #define inline $ac_val
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9726 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9727 if test "${ac_cv_c_bigendian+set}" = set; then :
9728 $as_echo_n "(cached) " >&6
9730 ac_cv_c_bigendian
=unknown
9731 # See if we're dealing with a universal compiler.
9732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9734 #ifndef __APPLE_CC__
9735 not a universal capable compiler
9740 if ac_fn_c_try_compile
"$LINENO"; then :
9742 # Check for potential -arch flags. It is not universal unless
9743 # there are at least two -arch flags with different values.
9746 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9747 if test -n "$ac_prev"; then
9749 i?
86 | x86_64 | ppc | ppc64
)
9750 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9753 ac_cv_c_bigendian
=universal
9759 elif test "x$ac_word" = "x-arch"; then
9764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9765 if test $ac_cv_c_bigendian = unknown
; then
9766 # See if sys/param.h defines the BYTE_ORDER macro.
9767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 #include <sys/types.h>
9770 #include <sys/param.h>
9775 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9776 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9785 if ac_fn_c_try_compile
"$LINENO"; then :
9786 # It does; now see whether it defined to BIG_ENDIAN or not.
9787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9788 /* end confdefs.h. */
9789 #include <sys/types.h>
9790 #include <sys/param.h>
9795 #if BYTE_ORDER != BIG_ENDIAN
9803 if ac_fn_c_try_compile
"$LINENO"; then :
9804 ac_cv_c_bigendian
=yes
9806 ac_cv_c_bigendian
=no
9808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9812 if test $ac_cv_c_bigendian = unknown
; then
9813 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9821 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9829 if ac_fn_c_try_compile
"$LINENO"; then :
9830 # It does; now see whether it defined to _BIG_ENDIAN or not.
9831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9832 /* end confdefs.h. */
9846 if ac_fn_c_try_compile
"$LINENO"; then :
9847 ac_cv_c_bigendian
=yes
9849 ac_cv_c_bigendian
=no
9851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9855 if test $ac_cv_c_bigendian = unknown
; then
9856 # Compile a test program.
9857 if test "$cross_compiling" = yes; then :
9858 # Try to guess by grepping values from an object file.
9859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9860 /* end confdefs.h. */
9861 short int ascii_mm[] =
9862 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9863 short int ascii_ii[] =
9864 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9865 int use_ascii (int i) {
9866 return ascii_mm[i] + ascii_ii[i];
9868 short int ebcdic_ii[] =
9869 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9870 short int ebcdic_mm[] =
9871 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9872 int use_ebcdic (int i) {
9873 return ebcdic_mm[i] + ebcdic_ii[i];
9880 return use_ascii (foo) == use_ebcdic (foo);
9885 if ac_fn_c_try_compile
"$LINENO"; then :
9886 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9887 ac_cv_c_bigendian
=yes
9889 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9890 if test "$ac_cv_c_bigendian" = unknown
; then
9891 ac_cv_c_bigendian
=no
9893 # finding both strings is unlikely to happen, but who knows?
9894 ac_cv_c_bigendian
=unknown
9898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9902 $ac_includes_default
9907 /* Are we little or big endian? From Harbison&Steele. */
9911 char c[sizeof (long int)];
9914 return u.c[sizeof (long int) - 1] == 1;
9920 if ac_fn_c_try_run
"$LINENO"; then :
9921 ac_cv_c_bigendian
=no
9923 ac_cv_c_bigendian
=yes
9925 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9926 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9932 $as_echo "$ac_cv_c_bigendian" >&6; }
9933 case $ac_cv_c_bigendian in #(
9935 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9941 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9945 as_fn_error
"unknown endianness
9946 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9950 # ------------------------------ #
9951 # Checks for library functions. #
9952 # ------------------------------ #
9954 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9955 # for constant arguments. Useless!
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9957 $as_echo_n "checking for working alloca.h... " >&6; }
9958 if test "${ac_cv_working_alloca_h+set}" = set; then :
9959 $as_echo_n "(cached) " >&6
9961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9967 char *p = (char *) alloca (2 * sizeof (int));
9973 if ac_fn_c_try_link
"$LINENO"; then :
9974 ac_cv_working_alloca_h
=yes
9976 ac_cv_working_alloca_h
=no
9978 rm -f core conftest.err conftest.
$ac_objext \
9979 conftest
$ac_exeext conftest.
$ac_ext
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9982 $as_echo "$ac_cv_working_alloca_h" >&6; }
9983 if test $ac_cv_working_alloca_h = yes; then
9985 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9990 $as_echo_n "checking for alloca... " >&6; }
9991 if test "${ac_cv_func_alloca_works+set}" = set; then :
9992 $as_echo_n "(cached) " >&6
9994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9995 /* end confdefs.h. */
9997 # define alloca __builtin_alloca
10000 # include <malloc.h>
10001 # define alloca _alloca
10003 # ifdef HAVE_ALLOCA_H
10004 # include <alloca.h>
10009 # ifndef alloca /* predefined by HP cc +Olibcalls */
10020 char *p = (char *) alloca (1);
10026 if ac_fn_c_try_link
"$LINENO"; then :
10027 ac_cv_func_alloca_works
=yes
10029 ac_cv_func_alloca_works
=no
10031 rm -f core conftest.err conftest.
$ac_objext \
10032 conftest
$ac_exeext conftest.
$ac_ext
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10035 $as_echo "$ac_cv_func_alloca_works" >&6; }
10037 if test $ac_cv_func_alloca_works = yes; then
10039 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10042 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10043 # that cause trouble. Some versions do not even contain alloca or
10044 # contain a buggy version. If you still want to use their alloca,
10045 # use ar to extract alloca.o from them instead of compiling alloca.c.
10047 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10049 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10053 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10054 if test "${ac_cv_os_cray+set}" = set; then :
10055 $as_echo_n "(cached) " >&6
10057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10058 /* end confdefs.h. */
10059 #if defined CRAY && ! defined CRAY2
10066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10067 $EGREP "webecray" >/dev
/null
2>&1; then :
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10076 $as_echo "$ac_cv_os_cray" >&6; }
10077 if test $ac_cv_os_cray = yes; then
10078 for ac_func
in _getb67 GETB67 getb67
; do
10079 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10080 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10081 eval as_val
=\$
$as_ac_var
10082 if test "x$as_val" = x
""yes; then :
10084 cat >>confdefs.h
<<_ACEOF
10085 #define CRAY_STACKSEG_END $ac_func
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10095 $as_echo_n "checking stack direction for C alloca... " >&6; }
10096 if test "${ac_cv_c_stack_direction+set}" = set; then :
10097 $as_echo_n "(cached) " >&6
10099 if test "$cross_compiling" = yes; then :
10100 ac_cv_c_stack_direction
=0
10102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h. */
10104 $ac_includes_default
10106 find_stack_direction ()
10108 static char *addr = 0;
10113 return find_stack_direction ();
10116 return (&dummy > addr) ? 1 : -1;
10122 return find_stack_direction () < 0;
10125 if ac_fn_c_try_run
"$LINENO"; then :
10126 ac_cv_c_stack_direction
=1
10128 ac_cv_c_stack_direction
=-1
10130 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10131 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10136 $as_echo "$ac_cv_c_stack_direction" >&6; }
10137 cat >>confdefs.h
<<_ACEOF
10138 #define STACK_DIRECTION $ac_cv_c_stack_direction
10144 for ac_header
in stdlib.h unistd.h
10146 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10147 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10148 eval as_val
=\$
$as_ac_Header
10149 if test "x$as_val" = x
""yes; then :
10150 cat >>confdefs.h
<<_ACEOF
10151 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10158 for ac_func
in getpagesize
10160 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10161 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10162 cat >>confdefs.h
<<_ACEOF
10163 #define HAVE_GETPAGESIZE 1
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10170 $as_echo_n "checking for working mmap... " >&6; }
10171 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10172 $as_echo_n "(cached) " >&6
10174 if test "$cross_compiling" = yes; then :
10175 ac_cv_func_mmap_fixed_mapped
=no
10177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10179 $ac_includes_default
10180 /* malloc might have been renamed as rpl_malloc. */
10183 /* Thanks to Mike Haertel and Jim Avera for this test.
10184 Here is a matrix of mmap possibilities:
10185 mmap private not fixed
10186 mmap private fixed at somewhere currently unmapped
10187 mmap private fixed at somewhere already mapped
10188 mmap shared not fixed
10189 mmap shared fixed at somewhere currently unmapped
10190 mmap shared fixed at somewhere already mapped
10191 For private mappings, we should verify that changes cannot be read()
10192 back from the file, nor mmap's back from the file at a different
10193 address. (There have been systems where private was not correctly
10194 implemented like the infamous i386 svr4.0, and systems where the
10195 VM page cache was not coherent with the file system buffer cache
10196 like early versions of FreeBSD and possibly contemporary NetBSD.)
10197 For shared mappings, we should conversely verify that changes get
10198 propagated back to all the places they're supposed to be.
10200 Grep wants private fixed already mapped.
10201 The main things grep needs to know about mmap are:
10202 * does it exist and is it safe to write into the mmap'd area
10203 * how to use it (BSD variants) */
10206 #include <sys/mman.h>
10208 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10212 /* This mess was copied from the GNU getpagesize.h. */
10213 #ifndef HAVE_GETPAGESIZE
10214 /* Assume that all systems that can run configure have sys/param.h. */
10215 # ifndef HAVE_SYS_PARAM_H
10216 # define HAVE_SYS_PARAM_H 1
10219 # ifdef _SC_PAGESIZE
10220 # define getpagesize() sysconf(_SC_PAGESIZE)
10221 # else /* no _SC_PAGESIZE */
10222 # ifdef HAVE_SYS_PARAM_H
10223 # include <sys/param.h>
10224 # ifdef EXEC_PAGESIZE
10225 # define getpagesize() EXEC_PAGESIZE
10226 # else /* no EXEC_PAGESIZE */
10228 # define getpagesize() NBPG * CLSIZE
10231 # endif /* no CLSIZE */
10232 # else /* no NBPG */
10234 # define getpagesize() NBPC
10235 # else /* no NBPC */
10237 # define getpagesize() PAGESIZE
10238 # endif /* PAGESIZE */
10239 # endif /* no NBPC */
10240 # endif /* no NBPG */
10241 # endif /* no EXEC_PAGESIZE */
10242 # else /* no HAVE_SYS_PARAM_H */
10243 # define getpagesize() 8192 /* punt totally */
10244 # endif /* no HAVE_SYS_PARAM_H */
10245 # endif /* no _SC_PAGESIZE */
10247 #endif /* no HAVE_GETPAGESIZE */
10252 char *data, *data2, *data3;
10256 pagesize = getpagesize ();
10258 /* First, make a file with some known garbage in it. */
10259 data = (char *) malloc (pagesize);
10262 for (i = 0; i < pagesize; ++i)
10263 *(data + i) = rand ();
10265 fd = creat ("conftest.mmap", 0600);
10268 if (write (fd, data, pagesize) != pagesize)
10272 /* Next, try to mmap the file at a fixed address which already has
10273 something else allocated at it. If we can, also make sure that
10274 we see the same garbage. */
10275 fd = open ("conftest.mmap", O_RDWR);
10278 data2 = (char *) malloc (2 * pagesize);
10281 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10282 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10283 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10285 for (i = 0; i < pagesize; ++i)
10286 if (*(data + i) != *(data2 + i))
10289 /* Finally, make sure that changes to the mapped area do not
10290 percolate back to the file as seen by read(). (This is a bug on
10291 some variants of i386 svr4.0.) */
10292 for (i = 0; i < pagesize; ++i)
10293 *(data2 + i) = *(data2 + i) + 1;
10294 data3 = (char *) malloc (pagesize);
10297 if (read (fd, data3, pagesize) != pagesize)
10299 for (i = 0; i < pagesize; ++i)
10300 if (*(data + i) != *(data3 + i))
10306 if ac_fn_c_try_run
"$LINENO"; then :
10307 ac_cv_func_mmap_fixed_mapped
=yes
10309 ac_cv_func_mmap_fixed_mapped
=no
10311 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10312 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10317 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10318 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10320 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10323 rm -f conftest.mmap
10325 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10326 if test "x$ac_cv_type_pid_t" = x
""yes; then :
10330 cat >>confdefs.h
<<_ACEOF
10336 for ac_header
in vfork.h
10338 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10339 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
10340 cat >>confdefs.h
<<_ACEOF
10341 #define HAVE_VFORK_H 1
10348 for ac_func
in fork vfork
10350 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10351 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10352 eval as_val
=\$
$as_ac_var
10353 if test "x$as_val" = x
""yes; then :
10354 cat >>confdefs.h
<<_ACEOF
10355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10361 if test "x$ac_cv_func_fork" = xyes
; then
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10363 $as_echo_n "checking for working fork... " >&6; }
10364 if test "${ac_cv_func_fork_works+set}" = set; then :
10365 $as_echo_n "(cached) " >&6
10367 if test "$cross_compiling" = yes; then :
10368 ac_cv_func_fork_works
=cross
10370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10372 $ac_includes_default
10377 /* By Ruediger Kuhlmann. */
10378 return fork () < 0;
10384 if ac_fn_c_try_run
"$LINENO"; then :
10385 ac_cv_func_fork_works
=yes
10387 ac_cv_func_fork_works
=no
10389 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10390 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10395 $as_echo "$ac_cv_func_fork_works" >&6; }
10398 ac_cv_func_fork_works
=$ac_cv_func_fork
10400 if test "x$ac_cv_func_fork_works" = xcross
; then
10402 *-*-amigaos* |
*-*-msdosdjgpp*)
10403 # Override, as these systems have only a dummy fork() stub
10404 ac_cv_func_fork_works
=no
10407 ac_cv_func_fork_works
=yes
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10411 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10413 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10414 if test "x$ac_cv_func_vfork" = xyes
; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10416 $as_echo_n "checking for working vfork... " >&6; }
10417 if test "${ac_cv_func_vfork_works+set}" = set; then :
10418 $as_echo_n "(cached) " >&6
10420 if test "$cross_compiling" = yes; then :
10421 ac_cv_func_vfork_works
=cross
10423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10425 /* Thanks to Paul Eggert for this test. */
10426 $ac_includes_default
10427 #include <sys/wait.h>
10428 #ifdef HAVE_VFORK_H
10429 # include <vfork.h>
10431 /* On some sparc systems, changes by the child to local and incoming
10432 argument registers are propagated back to the parent. The compiler
10433 is told about this with #include <vfork.h>, but some compilers
10434 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10435 static variable whose address is put into a register that is
10436 clobbered by the vfork. */
10439 sparc_address_test (int arg)
10441 sparc_address_test (arg) int arg;
10444 static pid_t child;
10462 pid_t parent = getpid ();
10465 sparc_address_test (0);
10470 /* Here is another test for sparc vfork register problems. This
10471 test uses lots of local variables, at least as many local
10472 variables as main has allocated so far including compiler
10473 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10474 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10475 reuse the register of parent for one of the local variables,
10476 since it will think that parent can't possibly be used any more
10477 in this routine. Assigning to the local variable will thus
10478 munge parent in the parent process. */
10480 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10481 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10482 /* Convince the compiler that p..p7 are live; otherwise, it might
10483 use the same hardware register for all 8 local variables. */
10484 if (p != p1 || p != p2 || p != p3 || p != p4
10485 || p != p5 || p != p6 || p != p7)
10488 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10489 from child file descriptors. If the child closes a descriptor
10490 before it execs or exits, this munges the parent's descriptor
10491 as well. Test for this by closing stdout in the child. */
10492 _exit(close(fileno(stdout)) != 0);
10497 while (wait(&status) != child)
10500 /* Was there some problem with vforking? */
10503 /* Did the child fail? (This shouldn't happen.) */
10506 /* Did the vfork/compiler bug occur? */
10507 || parent != getpid()
10509 /* Did the file descriptor bug occur? */
10510 || fstat(fileno(stdout), &st) != 0
10515 if ac_fn_c_try_run
"$LINENO"; then :
10516 ac_cv_func_vfork_works
=yes
10518 ac_cv_func_vfork_works
=no
10520 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10521 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10526 $as_echo "$ac_cv_func_vfork_works" >&6; }
10529 if test "x$ac_cv_func_fork_works" = xcross
; then
10530 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10532 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10535 if test "x$ac_cv_func_vfork_works" = xyes
; then
10537 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10541 $as_echo "#define vfork fork" >>confdefs.h
10544 if test "x$ac_cv_func_fork_works" = xyes
; then
10546 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10550 for ac_func
in canonicalize_file_name realpath getrusage getuid getgid \
10551 pipe poll pread pread64 pwrite readlink resize_term \
10552 sbrk setpgid setpgrp setsid \
10553 sigaction sigprocmask sigsetmask socketpair \
10554 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10555 setrlimit getrlimit posix_madvise waitpid lstat \
10556 ptrace64 sigaltstack
10558 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10559 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10560 eval as_val
=\$
$as_ac_var
10561 if test "x$as_val" = x
""yes; then :
10562 cat >>confdefs.h
<<_ACEOF
10563 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10571 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10572 if test "${am_cv_langinfo_codeset+set}" = set; then :
10573 $as_echo_n "(cached) " >&6
10575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h. */
10577 #include <langinfo.h>
10581 char* cs = nl_langinfo(CODESET);
10586 if ac_fn_c_try_link
"$LINENO"; then :
10587 am_cv_langinfo_codeset
=yes
10589 am_cv_langinfo_codeset
=no
10591 rm -f core conftest.err conftest.
$ac_objext \
10592 conftest
$ac_exeext conftest.
$ac_ext
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10596 $as_echo "$am_cv_langinfo_codeset" >&6; }
10597 if test $am_cv_langinfo_codeset = yes; then
10599 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10605 $as_echo_n "checking for ANSI C header files... " >&6; }
10606 if test "${ac_cv_header_stdc+set}" = set; then :
10607 $as_echo_n "(cached) " >&6
10609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611 #include <stdlib.h>
10612 #include <stdarg.h>
10613 #include <string.h>
10624 if ac_fn_c_try_compile
"$LINENO"; then :
10625 ac_cv_header_stdc
=yes
10627 ac_cv_header_stdc
=no
10629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10631 if test $ac_cv_header_stdc = yes; then
10632 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10635 #include <string.h>
10638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10639 $EGREP "memchr" >/dev
/null
2>&1; then :
10642 ac_cv_header_stdc
=no
10648 if test $ac_cv_header_stdc = yes; then
10649 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10652 #include <stdlib.h>
10655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10656 $EGREP "free" >/dev
/null
2>&1; then :
10659 ac_cv_header_stdc
=no
10665 if test $ac_cv_header_stdc = yes; then
10666 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10667 if test "$cross_compiling" = yes; then :
10670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10673 #include <stdlib.h>
10674 #if ((' ' & 0x0FF) == 0x020)
10675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10678 # define ISLOWER(c) \
10679 (('a' <= (c) && (c) <= 'i') \
10680 || ('j' <= (c) && (c) <= 'r') \
10681 || ('s' <= (c) && (c) <= 'z'))
10682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10690 for (i = 0; i < 256; i++)
10691 if (XOR (islower (i), ISLOWER (i))
10692 || toupper (i) != TOUPPER (i))
10697 if ac_fn_c_try_run
"$LINENO"; then :
10700 ac_cv_header_stdc
=no
10702 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10703 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10709 $as_echo "$ac_cv_header_stdc" >&6; }
10710 if test $ac_cv_header_stdc = yes; then
10712 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10716 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10717 # for constant arguments. Useless!
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10719 $as_echo_n "checking for working alloca.h... " >&6; }
10720 if test "${ac_cv_working_alloca_h+set}" = set; then :
10721 $as_echo_n "(cached) " >&6
10723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10725 #include <alloca.h>
10729 char *p = (char *) alloca (2 * sizeof (int));
10735 if ac_fn_c_try_link
"$LINENO"; then :
10736 ac_cv_working_alloca_h
=yes
10738 ac_cv_working_alloca_h
=no
10740 rm -f core conftest.err conftest.
$ac_objext \
10741 conftest
$ac_exeext conftest.
$ac_ext
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10744 $as_echo "$ac_cv_working_alloca_h" >&6; }
10745 if test $ac_cv_working_alloca_h = yes; then
10747 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10752 $as_echo_n "checking for alloca... " >&6; }
10753 if test "${ac_cv_func_alloca_works+set}" = set; then :
10754 $as_echo_n "(cached) " >&6
10756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10759 # define alloca __builtin_alloca
10762 # include <malloc.h>
10763 # define alloca _alloca
10765 # ifdef HAVE_ALLOCA_H
10766 # include <alloca.h>
10771 # ifndef alloca /* predefined by HP cc +Olibcalls */
10782 char *p = (char *) alloca (1);
10788 if ac_fn_c_try_link
"$LINENO"; then :
10789 ac_cv_func_alloca_works
=yes
10791 ac_cv_func_alloca_works
=no
10793 rm -f core conftest.err conftest.
$ac_objext \
10794 conftest
$ac_exeext conftest.
$ac_ext
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10797 $as_echo "$ac_cv_func_alloca_works" >&6; }
10799 if test $ac_cv_func_alloca_works = yes; then
10801 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10804 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10805 # that cause trouble. Some versions do not even contain alloca or
10806 # contain a buggy version. If you still want to use their alloca,
10807 # use ar to extract alloca.o from them instead of compiling alloca.c.
10809 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10811 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10815 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10816 if test "${ac_cv_os_cray+set}" = set; then :
10817 $as_echo_n "(cached) " >&6
10819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10820 /* end confdefs.h. */
10821 #if defined CRAY && ! defined CRAY2
10828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10829 $EGREP "webecray" >/dev
/null
2>&1; then :
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10838 $as_echo "$ac_cv_os_cray" >&6; }
10839 if test $ac_cv_os_cray = yes; then
10840 for ac_func
in _getb67 GETB67 getb67
; do
10841 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10842 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10843 eval as_val
=\$
$as_ac_var
10844 if test "x$as_val" = x
""yes; then :
10846 cat >>confdefs.h
<<_ACEOF
10847 #define CRAY_STACKSEG_END $ac_func
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10857 $as_echo_n "checking stack direction for C alloca... " >&6; }
10858 if test "${ac_cv_c_stack_direction+set}" = set; then :
10859 $as_echo_n "(cached) " >&6
10861 if test "$cross_compiling" = yes; then :
10862 ac_cv_c_stack_direction
=0
10864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10866 $ac_includes_default
10868 find_stack_direction ()
10870 static char *addr = 0;
10875 return find_stack_direction ();
10878 return (&dummy > addr) ? 1 : -1;
10884 return find_stack_direction () < 0;
10887 if ac_fn_c_try_run
"$LINENO"; then :
10888 ac_cv_c_stack_direction
=1
10890 ac_cv_c_stack_direction
=-1
10892 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10893 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10898 $as_echo "$ac_cv_c_stack_direction" >&6; }
10899 cat >>confdefs.h
<<_ACEOF
10900 #define STACK_DIRECTION $ac_cv_c_stack_direction
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10909 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10910 if test "${am_cv_langinfo_codeset+set}" = set; then :
10911 $as_echo_n "(cached) " >&6
10913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10914 /* end confdefs.h. */
10915 #include <langinfo.h>
10919 char* cs = nl_langinfo(CODESET);
10924 if ac_fn_c_try_link
"$LINENO"; then :
10925 am_cv_langinfo_codeset
=yes
10927 am_cv_langinfo_codeset
=no
10929 rm -f core conftest.err conftest.
$ac_objext \
10930 conftest
$ac_exeext conftest.
$ac_ext
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10934 $as_echo "$am_cv_langinfo_codeset" >&6; }
10935 if test $am_cv_langinfo_codeset = yes; then
10937 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10942 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
10944 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10945 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10946 eval as_val
=\$
$as_ac_Header
10947 if test "x$as_val" = x
""yes; then :
10948 cat >>confdefs.h
<<_ACEOF
10949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10957 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair
10959 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10960 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10961 eval as_val
=\$
$as_ac_var
10962 if test "x$as_val" = x
""yes; then :
10963 cat >>confdefs.h
<<_ACEOF
10964 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10971 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
10972 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
10978 cat >>confdefs.h
<<_ACEOF
10979 #define HAVE_DECL_STRERROR $ac_have_decl
10981 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
10982 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
10988 cat >>confdefs.h
<<_ACEOF
10989 #define HAVE_DECL_STRSTR $ac_have_decl
10994 # Check the return and argument types of ptrace. No canned test for
10995 # this, so roll our own.
10996 gdb_ptrace_headers
='
10997 #include <sys/types.h>
10998 #if HAVE_SYS_PTRACE_H
10999 # include <sys/ptrace.h>
11002 # include <unistd.h>
11005 # There is no point in checking if we don't have a prototype.
11006 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
11008 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
11014 cat >>confdefs.h
<<_ACEOF
11015 #define HAVE_DECL_PTRACE $ac_have_decl
11017 if test $ac_have_decl = 1; then :
11021 : ${gdb_cv_func_ptrace_ret='int'}
11022 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11026 # Check return type. Varargs (used on GNU/Linux) conflict with the
11027 # empty argument list, so check for that explicitly.
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
11029 $as_echo_n "checking return type of ptrace... " >&6; }
11030 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11035 $gdb_ptrace_headers
11039 extern long ptrace (enum __ptrace_request, ...);
11044 if ac_fn_c_try_compile
"$LINENO"; then :
11045 gdb_cv_func_ptrace_ret
='long'
11047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h. */
11049 $gdb_ptrace_headers
11053 extern int ptrace ();
11058 if ac_fn_c_try_compile
"$LINENO"; then :
11059 gdb_cv_func_ptrace_ret
='int'
11061 gdb_cv_func_ptrace_ret
='long'
11063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
11068 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
11070 cat >>confdefs.h
<<_ACEOF
11071 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
11074 # Check argument types.
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
11076 $as_echo_n "checking types of arguments for ptrace... " >&6; }
11077 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
11078 $as_echo_n "(cached) " >&6
11081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h. */
11083 $gdb_ptrace_headers
11087 extern long ptrace (enum __ptrace_request, ...);
11092 if ac_fn_c_try_compile
"$LINENO"; then :
11093 gdb_cv_func_ptrace_args
='int,int,long,long'
11096 for gdb_arg1
in 'int' 'long'; do
11097 for gdb_arg2
in 'pid_t' 'int' 'long'; do
11098 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
11099 for gdb_arg4
in 'int' 'long' 'void *'; do
11100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h. */
11102 $gdb_ptrace_headers
11107 extern $gdb_cv_func_ptrace_ret
11108 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
11114 if ac_fn_c_try_compile
"$LINENO"; then :
11115 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
11118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11119 for gdb_arg5
in 'int *' 'int' 'long'; do
11120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11122 $gdb_ptrace_headers
11127 extern $gdb_cv_func_ptrace_ret
11128 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
11134 if ac_fn_c_try_compile
"$LINENO"; then :
11136 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
11139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11145 # Provide a safe default value.
11146 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
11152 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
11153 ac_save_IFS
=$IFS; IFS
=','
11154 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
11158 cat >>confdefs.h
<<_ACEOF
11159 #define PTRACE_TYPE_ARG3 $3
11163 cat >>confdefs.h
<<_ACEOF
11164 #define PTRACE_TYPE_ARG4 $4
11167 if test -n "$5"; then
11169 cat >>confdefs.h
<<_ACEOF
11170 #define PTRACE_TYPE_ARG5 $5
11175 if test "$cross_compiling" = no
; then
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11177 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11178 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11179 $as_echo_n "(cached) " >&6
11181 if test "$cross_compiling" = yes; then :
11182 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
11184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11186 $ac_includes_default
11190 /* If this system has a BSD-style setpgrp which takes arguments,
11191 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11192 exit successfully. */
11193 return setpgrp (1,1) != -1;
11198 if ac_fn_c_try_run
"$LINENO"; then :
11199 ac_cv_func_setpgrp_void
=no
11201 ac_cv_func_setpgrp_void
=yes
11203 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11204 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11209 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11210 if test $ac_cv_func_setpgrp_void = yes; then
11212 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11218 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11219 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11220 $as_echo_n "(cached) " >&6
11222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h. */
11225 #include <unistd.h>
11231 if (setpgrp(1,1) == -1)
11240 if ac_fn_c_try_compile
"$LINENO"; then :
11241 ac_cv_func_setpgrp_void
=no
11243 ac_cv_func_setpgrp_void
=yes
11245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11248 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11249 if test $ac_cv_func_setpgrp_void = yes; then
11250 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11255 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
11256 # since sigsetjmp might only be defined as a macro.
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11258 $as_echo_n "checking for sigsetjmp... " >&6; }
11259 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11260 $as_echo_n "(cached) " >&6
11262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11263 /* end confdefs.h. */
11265 #include <setjmp.h>
11270 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11275 if ac_fn_c_try_compile
"$LINENO"; then :
11276 gdb_cv_func_sigsetjmp
=yes
11278 gdb_cv_func_sigsetjmp
=no
11280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11283 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11284 if test $gdb_cv_func_sigsetjmp = yes; then
11286 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11290 # Assume we'll default to using the included libiberty regex.
11291 gdb_use_included_regex
=yes
11293 # However, if the system regex is GNU regex, then default to *not*
11294 # using the included regex.
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11296 $as_echo_n "checking for GNU regex... " >&6; }
11297 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11298 $as_echo_n "(cached) " >&6
11300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h. */
11302 #include <gnu-versions.h>
11306 #define REGEX_INTERFACE_VERSION 1
11307 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11308 # error "Version mismatch"
11314 if ac_fn_c_try_compile
"$LINENO"; then :
11315 gdb_cv_have_gnu_regex
=yes
11317 gdb_cv_have_gnu_regex
=no
11319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11322 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
11323 if test $gdb_cv_have_gnu_regex = yes; then
11324 gdb_use_included_regex
=no
11328 # Check whether --with-included-regex was given.
11329 if test "${with_included_regex+set}" = set; then :
11330 withval
=$with_included_regex; gdb_with_regex
=$withval
11332 gdb_with_regex
=$gdb_use_included_regex
11335 if test "$gdb_with_regex" = yes; then
11337 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11341 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
11342 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
11343 #include <sys/proc.h>
11346 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
11348 cat >>confdefs.h
<<_ACEOF
11349 #define HAVE_STRUCT_THREAD_TD_PCB 1
11356 # See if <sys/lwp.h> defines `struct lwp`.
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11358 $as_echo_n "checking for struct lwp... " >&6; }
11359 if test "${gdb_cv_struct_lwp+set}" = set; then :
11360 $as_echo_n "(cached) " >&6
11362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11363 /* end confdefs.h. */
11364 #include <sys/param.h>
11365 #include <sys/lwp.h>
11374 if ac_fn_c_try_compile
"$LINENO"; then :
11375 gdb_cv_struct_lwp
=yes
11377 gdb_cv_struct_lwp
=no
11379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11382 $as_echo "$gdb_cv_struct_lwp" >&6; }
11383 if test $gdb_cv_struct_lwp = yes; then
11385 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11389 # See if <machine/reg.h> degines `struct reg'.
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11391 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11392 if test "${gdb_cv_struct_reg+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
11395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11397 #include <sys/types.h>
11398 #include <machine/reg.h>
11407 if ac_fn_c_try_compile
"$LINENO"; then :
11408 gdb_cv_struct_reg
=yes
11410 gdb_cv_struct_reg
=no
11412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11415 $as_echo "$gdb_cv_struct_reg" >&6; }
11416 if test $gdb_cv_struct_reg = yes; then
11418 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11422 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
11423 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11424 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
11426 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
11428 cat >>confdefs.h
<<_ACEOF
11429 #define HAVE_STRUCT_REG_R_FS 1
11434 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
11436 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
11438 cat >>confdefs.h
<<_ACEOF
11439 #define HAVE_STRUCT_REG_R_GS 1
11446 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
11447 # Older amd64 Linux's don't have the fs_base and gs_base members of
11448 # `struct user_regs_struct'.
11449 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>
11451 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x
""yes; then :
11453 cat >>confdefs.h
<<_ACEOF
11454 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
11459 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>
11461 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x
""yes; then :
11463 cat >>confdefs.h
<<_ACEOF
11464 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
11471 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11473 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11474 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11475 $as_echo_n "(cached) " >&6
11477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11479 #include <sys/ptrace.h>
11488 if ac_fn_c_try_compile
"$LINENO"; then :
11489 gdb_cv_have_ptrace_getregs
=yes
11491 gdb_cv_have_ptrace_getregs
=no
11493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11497 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11498 if test $gdb_cv_have_ptrace_getregs = yes; then
11500 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11504 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11506 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11507 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11508 $as_echo_n "(cached) " >&6
11510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11511 /* end confdefs.h. */
11512 #include <sys/ptrace.h>
11521 if ac_fn_c_try_compile
"$LINENO"; then :
11522 gdb_cv_have_ptrace_getfpxregs
=yes
11524 gdb_cv_have_ptrace_getfpxregs
=no
11526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
11530 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
11531 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
11533 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
11537 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
11539 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
11540 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
11541 $as_echo_n "(cached) " >&6
11543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h. */
11545 #include <sys/types.h>
11546 #include <sys/ptrace.h>
11555 if ac_fn_c_try_compile
"$LINENO"; then :
11556 gdb_cv_have_pt_getdbregs
=yes
11558 gdb_cv_have_pt_getdbregs
=no
11560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
11564 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
11565 if test $gdb_cv_have_pt_getdbregs = yes; then
11567 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
11571 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
11573 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
11574 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
11575 $as_echo_n "(cached) " >&6
11577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11579 #include <sys/types.h>
11580 #include <sys/ptrace.h>
11589 if ac_fn_c_try_compile
"$LINENO"; then :
11590 gdb_cv_have_pt_getxmmregs
=yes
11592 gdb_cv_have_pt_getxmmregs
=no
11594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
11598 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
11599 if test $gdb_cv_have_pt_getxmmregs = yes; then
11601 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
11605 # Detect which type of /proc is in use, such as for Solaris.
11607 if test "${target}" = "${host}"; then
11609 *-*-sysv4.2
* |
*-*-sysv5* )
11611 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11614 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
11616 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11620 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
11622 $as_echo "#define _KMEMUSER 1" >>confdefs.h
11628 if test "$ac_cv_header_sys_procfs_h" = yes; then
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
11630 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
11631 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
11632 $as_echo_n "(cached) " >&6
11634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11635 /* end confdefs.h. */
11638 /* Needed for new procfs interface on sparc-solaris. */
11639 #define _STRUCTURED_PROC 1
11640 #include <sys/procfs.h>
11649 if ac_fn_c_try_compile
"$LINENO"; then :
11650 bfd_cv_have_sys_procfs_type_gregset_t
=yes
11652 bfd_cv_have_sys_procfs_type_gregset_t
=no
11655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11658 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
11660 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
11664 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
11667 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
11668 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
11669 $as_echo_n "(cached) " >&6
11671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11675 /* Needed for new procfs interface on sparc-solaris. */
11676 #define _STRUCTURED_PROC 1
11677 #include <sys/procfs.h>
11686 if ac_fn_c_try_compile
"$LINENO"; then :
11687 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
11689 bfd_cv_have_sys_procfs_type_fpregset_t
=no
11692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11695 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
11697 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
11701 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
11704 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
11705 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
11706 $as_echo_n "(cached) " >&6
11708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11712 /* Needed for new procfs interface on sparc-solaris. */
11713 #define _STRUCTURED_PROC 1
11714 #include <sys/procfs.h>
11723 if ac_fn_c_try_compile
"$LINENO"; then :
11724 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
11726 bfd_cv_have_sys_procfs_type_prgregset_t
=no
11729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11732 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
11734 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
11738 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
11741 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
11742 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
11743 $as_echo_n "(cached) " >&6
11745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h. */
11749 /* Needed for new procfs interface on sparc-solaris. */
11750 #define _STRUCTURED_PROC 1
11751 #include <sys/procfs.h>
11760 if ac_fn_c_try_compile
"$LINENO"; then :
11761 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
11763 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
11766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11769 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11771 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
11775 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
11778 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
11779 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
11780 $as_echo_n "(cached) " >&6
11782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11786 /* Needed for new procfs interface on sparc-solaris. */
11787 #define _STRUCTURED_PROC 1
11788 #include <sys/procfs.h>
11797 if ac_fn_c_try_compile
"$LINENO"; then :
11798 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
11800 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
11803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11806 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
11808 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
11812 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11815 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11816 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
11817 $as_echo_n "(cached) " >&6
11819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11823 /* Needed for new procfs interface on sparc-solaris. */
11824 #define _STRUCTURED_PROC 1
11825 #include <sys/procfs.h>
11834 if ac_fn_c_try_compile
"$LINENO"; then :
11835 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
11837 bfd_cv_have_sys_procfs_type_lwpid_t
=no
11840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11843 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11845 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11849 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11852 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11853 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11854 $as_echo_n "(cached) " >&6
11856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11857 /* end confdefs.h. */
11860 /* Needed for new procfs interface on sparc-solaris. */
11861 #define _STRUCTURED_PROC 1
11862 #include <sys/procfs.h>
11871 if ac_fn_c_try_compile
"$LINENO"; then :
11872 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
11874 bfd_cv_have_sys_procfs_type_psaddr_t
=no
11877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11880 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11882 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11886 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11889 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11890 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11891 $as_echo_n "(cached) " >&6
11893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11894 /* end confdefs.h. */
11897 /* Needed for new procfs interface on sparc-solaris. */
11898 #define _STRUCTURED_PROC 1
11899 #include <sys/procfs.h>
11908 if ac_fn_c_try_compile
"$LINENO"; then :
11909 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
11911 bfd_cv_have_sys_procfs_type_prsysent_t
=no
11914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11917 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11919 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11923 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11926 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11927 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11934 /* Needed for new procfs interface on sparc-solaris. */
11935 #define _STRUCTURED_PROC 1
11936 #include <sys/procfs.h>
11945 if ac_fn_c_try_compile
"$LINENO"; then :
11946 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
11948 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
11951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11954 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11956 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11960 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11963 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11964 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
11965 $as_echo_n "(cached) " >&6
11967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11971 /* Needed for new procfs interface on sparc-solaris. */
11972 #define _STRUCTURED_PROC 1
11973 #include <sys/procfs.h>
11977 pr_sigaction64_t avar
11982 if ac_fn_c_try_compile
"$LINENO"; then :
11983 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
11985 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
11988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11991 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
11993 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
11997 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12000 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12001 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12002 $as_echo_n "(cached) " >&6
12004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h. */
12008 /* Needed for new procfs interface on sparc-solaris. */
12009 #define _STRUCTURED_PROC 1
12010 #include <sys/procfs.h>
12014 pr_siginfo64_t avar
12019 if ac_fn_c_try_compile
"$LINENO"; then :
12020 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
12022 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
12025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12028 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12030 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12034 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12040 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12042 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12043 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
12046 if test "$cross_compiling" = yes; then :
12047 gdb_cv_prfpregset_t_broken
=yes
12049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12051 #include <sys/procfs.h>
12054 if (sizeof (prfpregset_t) == sizeof (void *))
12059 if ac_fn_c_try_run
"$LINENO"; then :
12060 gdb_cv_prfpregset_t_broken
=no
12062 gdb_cv_prfpregset_t_broken
=yes
12064 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12065 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12071 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12072 if test $gdb_cv_prfpregset_t_broken = yes; then
12074 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12080 # Check if the compiler supports the `long long' type.
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12083 $as_echo_n "checking for long long support in compiler... " >&6; }
12084 if test "${gdb_cv_c_long_long+set}" = set; then :
12085 $as_echo_n "(cached) " >&6
12087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12089 extern long long foo;
12093 switch (foo & 2) { case 0: return 1; }
12098 if ac_fn_c_try_compile
"$LINENO"; then :
12099 gdb_cv_c_long_long
=yes
12101 gdb_cv_c_long_long
=no
12103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12106 $as_echo "$gdb_cv_c_long_long" >&6; }
12107 if test $gdb_cv_c_long_long != yes; then
12108 # libdecnumber requires long long.
12109 as_fn_error
"Compiler must support long long for GDB." "$LINENO" 5
12112 # Check if the compiler and runtime support printing long longs.
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12115 $as_echo_n "checking for long long support in printf... " >&6; }
12116 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12117 $as_echo_n "(cached) " >&6
12119 if test "$cross_compiling" = yes; then :
12120 gdb_cv_printf_has_long_long
=no
12122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12124 $ac_includes_default
12130 l = (l << 16) + 0x0123;
12131 l = (l << 16) + 0x4567;
12132 l = (l << 16) + 0x89ab;
12133 l = (l << 16) + 0xcdef;
12134 sprintf (buf, "0x%016llx", l);
12135 return (strcmp ("0x0123456789abcdef", buf));
12140 if ac_fn_c_try_run
"$LINENO"; then :
12141 gdb_cv_printf_has_long_long
=yes
12143 gdb_cv_printf_has_long_long
=no
12145 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12146 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12151 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
12152 if test $gdb_cv_printf_has_long_long = yes; then
12154 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12158 # Check if the compiler and runtime support printing decfloats.
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12161 $as_echo_n "checking for decfloat support in printf... " >&6; }
12162 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
12165 if test "$cross_compiling" = yes; then :
12166 gdb_cv_printf_has_decfloat
=no
12168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h. */
12170 $ac_includes_default
12175 _Decimal32 d32 = 1.2345df;
12176 _Decimal64 d64 = 1.2345dd;
12177 _Decimal128 d128 = 1.2345dl;
12178 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12179 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12184 if ac_fn_c_try_run
"$LINENO"; then :
12185 gdb_cv_printf_has_decfloat
=yes
12187 gdb_cv_printf_has_decfloat
=no
12189 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12190 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12195 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12196 if test $gdb_cv_printf_has_decfloat = yes; then
12198 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12202 # Check if the compiler supports the `long double' type. We can't use
12203 # AC_C_LONG_DOUBLE because that one does additional checks on the
12204 # constants defined in <float.h> that fail on some systems,
12205 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12208 $as_echo_n "checking for long double support in compiler... " >&6; }
12209 if test "${gdb_cv_c_long_double+set}" = set; then :
12210 $as_echo_n "(cached) " >&6
12212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12216 if ac_fn_c_try_compile
"$LINENO"; then :
12217 gdb_cv_c_long_double
=yes
12219 gdb_cv_c_long_double
=no
12221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12224 $as_echo "$gdb_cv_c_long_double" >&6; }
12225 if test $gdb_cv_c_long_double = yes; then
12227 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12231 # Check if the compiler and runtime support printing long doubles.
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12234 $as_echo_n "checking for long double support in printf... " >&6; }
12235 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12238 if test "$cross_compiling" = yes; then :
12239 gdb_cv_printf_has_long_double
=no
12241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12243 $ac_includes_default
12248 long double f = 3.141592653;
12249 sprintf (buf, "%Lg", f);
12250 return (strncmp ("3.14159", buf, 7));
12255 if ac_fn_c_try_run
"$LINENO"; then :
12256 gdb_cv_printf_has_long_double
=yes
12258 gdb_cv_printf_has_long_double
=no
12260 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12261 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12266 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
12267 if test $gdb_cv_printf_has_long_double = yes; then
12269 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12273 # Check if the compiler and runtime support scanning long doubles.
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12276 $as_echo_n "checking for long double support in scanf... " >&6; }
12277 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12278 $as_echo_n "(cached) " >&6
12280 if test "$cross_compiling" = yes; then :
12281 gdb_cv_scanf_has_long_double
=no
12283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h. */
12289 char *buf = "3.141592653";
12291 sscanf (buf, "%Lg", &f);
12292 return !(f > 3.14159 && f < 3.14160);
12297 if ac_fn_c_try_run
"$LINENO"; then :
12298 gdb_cv_scanf_has_long_double
=yes
12300 gdb_cv_scanf_has_long_double
=no
12302 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12303 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12308 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12309 if test $gdb_cv_scanf_has_long_double = yes; then
12311 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12318 $as_echo_n "checking for -bbigtoc option... " >&6; }
12319 if test "${gdb_cv_bigtoc+set}" = set; then :
12320 $as_echo_n "(cached) " >&6
12323 SAVE_LDFLAGS
=$LDFLAGS
12326 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
12327 *) gdb_cv_bigtoc
=-bbigtoc ;;
12330 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
12331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12342 if ac_fn_c_try_link
"$LINENO"; then :
12347 rm -f core conftest.err conftest.
$ac_objext \
12348 conftest
$ac_exeext conftest.
$ac_ext
12349 LDFLAGS
="${SAVE_LDFLAGS}"
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12353 $as_echo "$gdb_cv_bigtoc" >&6; }
12354 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
12359 $as_echo_n "checking for the dynamic export flag... " >&6; }
12361 if test "${gdb_native}" = yes; then
12362 # The dynamically loaded libthread_db needs access to symbols in the gdb
12363 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
12364 # may not be supported there.
12365 old_LDFLAGS
="$LDFLAGS"
12366 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
12367 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
12368 LDFLAGS
="$LDFLAGS $RDYNAMIC"
12369 if test "${have_libpython}" = no
; then
12370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h. */
12381 if ac_fn_c_try_link
"$LINENO"; then :
12384 rm -f core conftest.err conftest.
$ac_objext \
12385 conftest
$ac_exeext conftest.
$ac_ext
12387 # Workaround http://bugs.python.org/issue4434 where static
12388 # libpythonX.Y.a would get its symbols required for
12389 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
12390 # Problem does not happen for the recommended libpythonX.Y.so linkage.
12391 old_CFLAGS
="$CFLAGS"
12392 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
12394 LIBS
="$LIBS $PYTHON_LIBS"
12395 if test "$cross_compiling" = yes; then :
12398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12400 #include "${have_libpython}/Python.h"
12406 err = PyRun_SimpleString ("import itertools\n");
12408 return err == 0 ? 0 : 1;
12413 if ac_fn_c_try_run
"$LINENO"; then :
12416 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12417 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12421 CFLAGS
="$old_CFLAGS"
12423 LDFLAGS
="$old_LDFLAGS"
12425 if $dynamic_list; then
12426 found
="-Wl,--dynamic-list"
12427 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
12430 RDYNAMIC
="-rdynamic"
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
12434 $as_echo "$found" >&6; }
12437 if test ${build} = ${host} -a ${host} = ${target} ; then
12440 # See if thread_db library is around for Solaris thread debugging.
12441 # Note that we must explicitly test for version 1 of the library
12442 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12445 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
12446 if test -f /usr
/lib
/libthread_db.so
.1 ; then
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12448 $as_echo "yes" >&6; }
12450 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12452 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
12453 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12455 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12456 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12457 $as_echo_n "(cached) " >&6
12459 ac_check_lib_save_LIBS
=$LIBS
12461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h. */
12464 /* Override any GCC internal prototype to avoid an error.
12465 Use char because int might match the return type of a GCC
12466 builtin and then its argument prototype would still apply. */
12479 if ac_fn_c_try_link
"$LINENO"; then :
12480 ac_cv_lib_dl_dlopen
=yes
12482 ac_cv_lib_dl_dlopen
=no
12484 rm -f core conftest.err conftest.
$ac_objext \
12485 conftest
$ac_exeext conftest.
$ac_ext
12486 LIBS
=$ac_check_lib_save_LIBS
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12489 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12490 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
12491 cat >>confdefs.h
<<_ACEOF
12492 #define HAVE_LIBDL 1
12499 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
12500 # Sun randomly tweaked the prototypes in <proc_service.h>
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12503 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12504 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12505 $as_echo_n "(cached) " >&6
12508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12511 #include <proc_service.h>
12512 ps_err_e ps_pdwrite
12513 (struct ps_prochandle*, psaddr_t, const void*, size_t);
12523 if ac_fn_c_try_compile
"$LINENO"; then :
12524 gdb_cv_proc_service_is_old
=no
12526 gdb_cv_proc_service_is_old
=yes
12528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12533 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12534 if test $gdb_cv_proc_service_is_old = yes; then
12536 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541 $as_echo "no" >&6; }
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12546 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12547 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12548 $as_echo_n "(cached) " >&6
12550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h. */
12552 #include <sys/pthdebug.h>
12556 #ifndef PTHDB_VERSION_3
12563 if ac_fn_c_try_compile
"$LINENO"; then :
12564 gdb_cv_have_aix_thread_debug
=yes
12566 gdb_cv_have_aix_thread_debug
=no
12568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12572 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12573 if test $gdb_cv_have_aix_thread_debug = yes; then
12574 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
12575 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
12576 LIBS
="$LIBS -lpthdebug"
12578 # Older versions of AIX do not provide the declaration for
12579 # the getthrds function (it appears that it was introduced
12581 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
12583 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
12589 cat >>confdefs.h
<<_ACEOF
12590 #define HAVE_DECL_GETTHRDS $ac_have_decl
12599 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
12601 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
12602 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
12603 $as_echo_n "(cached) " >&6
12605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12607 #include <thread_db.h>
12611 int i = TD_NOTALLOC;
12616 if ac_fn_c_try_compile
"$LINENO"; then :
12617 gdb_cv_thread_db_h_has_td_notalloc
=yes
12619 gdb_cv_thread_db_h_has_td_notalloc
=no
12622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
12626 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
12628 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
12629 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
12630 $as_echo_n "(cached) " >&6
12632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634 #include <thread_db.h>
12638 int i = TD_VERSION;
12643 if ac_fn_c_try_compile
"$LINENO"; then :
12644 gdb_cv_thread_db_h_has_td_version
=yes
12646 gdb_cv_thread_db_h_has_td_version
=no
12649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12653 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12655 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12656 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12657 $as_echo_n "(cached) " >&6
12659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12661 #include <thread_db.h>
12670 if ac_fn_c_try_compile
"$LINENO"; then :
12671 gdb_cv_thread_db_h_has_td_notls
=yes
12673 gdb_cv_thread_db_h_has_td_notls
=no
12676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12680 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12682 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12684 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12687 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12689 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12692 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12694 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12698 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12700 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12701 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12702 $as_echo_n "(cached) " >&6
12704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12706 #include <sys/syscall.h>
12710 int i = __NR_tkill;
12715 if ac_fn_c_try_compile
"$LINENO"; then :
12716 gdb_cv_sys_syscall_h_has_tkill
=yes
12718 gdb_cv_sys_syscall_h_has_tkill
=no
12721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12725 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12727 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
12728 ac_fn_c_check_func
"$LINENO" "syscall" "ac_cv_func_syscall"
12729 if test "x$ac_cv_func_syscall" = x
""yes; then :
12731 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12738 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12740 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
12746 cat >>confdefs.h
<<_ACEOF
12747 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12751 if test "$cross_compiling" = yes; then :
12752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12753 /* end confdefs.h. */
12754 #include <sys/personality.h>
12759 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12760 # define ADDR_NO_RANDOMIZE 0x0040000
12762 /* Test the flag could be set and stays set. */
12763 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12764 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12770 if ac_fn_c_try_link
"$LINENO"; then :
12771 have_personality
=true
12773 have_personality
=false
12775 rm -f core conftest.err conftest.
$ac_objext \
12776 conftest
$ac_exeext conftest.
$ac_ext
12778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12780 #include <sys/personality.h>
12785 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12786 # define ADDR_NO_RANDOMIZE 0x0040000
12788 /* Test the flag could be set and stays set. */
12789 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12790 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12796 if ac_fn_c_try_run
"$LINENO"; then :
12797 have_personality
=true
12799 have_personality
=false
12801 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12802 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12805 if $have_personality
12808 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12821 cat >>confdefs.h
<<_ACEOF
12822 #define GDBINIT "$gdbinit"
12827 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12828 # except that the argument to --with-sysroot is optional.
12829 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12830 if test "x$with_sysroot" = xyes
; then
12831 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
12834 # Check whether --with-sysroot was given.
12835 if test "${with_sysroot+set}" = set; then :
12836 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
12838 TARGET_SYSTEM_ROOT
=
12842 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
12843 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12844 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
12845 ac_define_dir
=`eval echo $ac_define_dir`
12847 cat >>confdefs.h
<<_ACEOF
12848 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12854 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
12855 if test "x$prefix" = xNONE
; then
12856 test_prefix
=/usr
/local
12858 test_prefix
=$prefix
12861 test_prefix
=$exec_prefix
12864 case ${ac_define_dir} in
12865 "${test_prefix}"|
"${test_prefix}/"*|\
12866 '${exec_prefix}'|
'${exec_prefix}/'*)
12871 cat >>confdefs.h
<<_ACEOF
12872 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12879 # Check whether --with-system-gdbinit was given.
12880 if test "${with_system_gdbinit+set}" = set; then :
12881 withval
=$with_system_gdbinit;
12882 SYSTEM_GDBINIT
=$withval
12888 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
12889 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12890 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
12891 ac_define_dir
=`eval echo $ac_define_dir`
12893 cat >>confdefs.h
<<_ACEOF
12894 #define SYSTEM_GDBINIT "$ac_define_dir"
12900 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
12901 if test "x$prefix" = xNONE
; then
12902 test_prefix
=/usr
/local
12904 test_prefix
=$prefix
12907 test_prefix
=$exec_prefix
12910 case ${ac_define_dir} in
12911 "${test_prefix}"|
"${test_prefix}/"*|\
12912 '${exec_prefix}'|
'${exec_prefix}/'*)
12917 cat >>confdefs.h
<<_ACEOF
12918 #define SYSTEM_GDBINIT_RELOCATABLE $value
12924 # Check whether --enable-werror was given.
12925 if test "${enable_werror+set}" = set; then :
12926 enableval
=$enable_werror; case "${enableval}" in
12927 yes | y
) ERROR_ON_WARNING
="yes" ;;
12928 no | n
) ERROR_ON_WARNING
="no" ;;
12929 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12934 # Enable -Werror by default when using gcc. Turn it off for releases.
12935 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
12936 ERROR_ON_WARNING
=yes
12940 if test "${ERROR_ON_WARNING}" = yes ; then
12941 WERROR_CFLAGS
="-Werror"
12944 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
12946 -Wno-unused -Wunused-value -Wunused-function \
12947 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes \
12948 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
12949 -Wold-style-declaration -Wold-style-definition"
12951 # Enable -Wno-format by default when using gcc on mingw since many
12952 # GCC versions complain about %I64.
12954 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
12955 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
12958 # Check whether --enable-build-warnings was given.
12959 if test "${enable_build_warnings+set}" = set; then :
12960 enableval
=$enable_build_warnings; case "${enableval}" in
12962 no
) build_warnings
="-w";;
12963 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12964 build_warnings
="${build_warnings} ${t}";;
12965 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12966 build_warnings
="${t} ${build_warnings}";;
12967 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12969 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
12970 echo "Setting compiler warning flags = $build_warnings" 6>&1
12973 # Check whether --enable-gdb-build-warnings was given.
12974 if test "${enable_gdb_build_warnings+set}" = set; then :
12975 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
12977 no
) build_warnings
="-w";;
12978 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12979 build_warnings
="${build_warnings} ${t}";;
12980 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12981 build_warnings
="${t} ${build_warnings}";;
12982 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12984 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
12985 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12989 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12992 $as_echo_n "checking compiler warning flags... " >&6; }
12993 # Separate out the -Werror flag as some files just cannot be
12994 # compiled with it enabled.
12995 for w
in ${build_warnings}; do
12997 -Werr*) WERROR_CFLAGS
=-Werror ;;
12998 *) # Check that GCC accepts it
12999 saved_CFLAGS
="$CFLAGS"
13000 CFLAGS
="$CFLAGS $w"
13001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13012 if ac_fn_c_try_compile
"$LINENO"; then :
13013 WARN_CFLAGS
="${WARN_CFLAGS} $w"
13015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13016 CFLAGS
="$saved_CFLAGS"
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13020 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13025 # In the Cygwin environment, we need some additional flags.
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
13027 $as_echo_n "checking
for cygwin...
" >&6; }
13028 if test "${gdb_cv_os_cygwin+set}" = set; then :
13029 $as_echo_n "(cached
) " >&6
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13034 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
13038 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13039 $EGREP "^lose$
" >/dev/null 2>&1; then :
13040 gdb_cv_os_cygwin=yes
13042 gdb_cv_os_cygwin=no
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
13048 $as_echo "$gdb_cv_os_cygwin" >&6; }
13051 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
13053 *go32* ) SER_HARDWIRE=ser-go32.o ;;
13054 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13055 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
13059 # libreadline needs libuser32.a in a cygwin environment
13061 if test x$gdb_cv_os_cygwin = xyes; then
13062 WIN32LIBS="-luser32"
13063 case "${target}" in
13064 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
13069 # The ser-tcp.c module requires sockets.
13073 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13075 WIN32LIBS
="$WIN32LIBS -lws2_32"
13080 # Add ELF support to GDB, but only if BFD includes ELF support.
13083 OLD_LDFLAGS
=$LDFLAGS
13085 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13086 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13087 # always want our bfd.
13088 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13089 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
13090 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13091 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13092 if test "$plugins" = "yes"; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13094 $as_echo_n "checking for library containing dlopen... " >&6; }
13095 if test "${ac_cv_search_dlopen+set}" = set; then :
13096 $as_echo_n "(cached) " >&6
13098 ac_func_search_save_LIBS
=$LIBS
13099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13102 /* Override any GCC internal prototype to avoid an error.
13103 Use char because int might match the return type of a GCC
13104 builtin and then its argument prototype would still apply. */
13117 for ac_lib
in '' dl
; do
13118 if test -z "$ac_lib"; then
13119 ac_res
="none required"
13122 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13124 if ac_fn_c_try_link
"$LINENO"; then :
13125 ac_cv_search_dlopen
=$ac_res
13127 rm -f core conftest.err conftest.
$ac_objext \
13129 if test "${ac_cv_search_dlopen+set}" = set; then :
13133 if test "${ac_cv_search_dlopen+set}" = set; then :
13136 ac_cv_search_dlopen
=no
13138 rm conftest.
$ac_ext
13139 LIBS
=$ac_func_search_save_LIBS
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13142 $as_echo "$ac_cv_search_dlopen" >&6; }
13143 ac_res
=$ac_cv_search_dlopen
13144 if test "$ac_res" != no
; then :
13145 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13150 LIBS
="-lbfd -liberty $intl $LIBS"
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13152 $as_echo_n "checking for ELF support in BFD... " >&6; }
13153 if test "${gdb_cv_var_elf+set}" = set; then :
13154 $as_echo_n "(cached) " >&6
13156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h. */
13158 #include <stdlib.h>
13160 #include "elf-bfd.h"
13165 return bfd_get_elf_phdr_upper_bound (NULL);
13170 if ac_fn_c_try_link
"$LINENO"; then :
13175 rm -f core conftest.err conftest.
$ac_objext \
13176 conftest
$ac_exeext conftest.
$ac_ext
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13179 $as_echo "$gdb_cv_var_elf" >&6; }
13181 LDFLAGS
=$OLD_LDFLAGS
13183 if test $gdb_cv_var_elf = yes; then
13184 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o"
13186 $as_echo "#define HAVE_ELF 1" >>confdefs.h
13188 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13189 if test "$plugins" = "yes"; then
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13191 $as_echo_n "checking for library containing dlopen... " >&6; }
13192 if test "${ac_cv_search_dlopen+set}" = set; then :
13193 $as_echo_n "(cached) " >&6
13195 ac_func_search_save_LIBS
=$LIBS
13196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13197 /* end confdefs.h. */
13199 /* Override any GCC internal prototype to avoid an error.
13200 Use char because int might match the return type of a GCC
13201 builtin and then its argument prototype would still apply. */
13214 for ac_lib
in '' dl
; do
13215 if test -z "$ac_lib"; then
13216 ac_res
="none required"
13219 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13221 if ac_fn_c_try_link
"$LINENO"; then :
13222 ac_cv_search_dlopen
=$ac_res
13224 rm -f core conftest.err conftest.
$ac_objext \
13226 if test "${ac_cv_search_dlopen+set}" = set; then :
13230 if test "${ac_cv_search_dlopen+set}" = set; then :
13233 ac_cv_search_dlopen
=no
13235 rm conftest.
$ac_ext
13236 LIBS
=$ac_func_search_save_LIBS
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13239 $as_echo "$ac_cv_search_dlopen" >&6; }
13240 ac_res
=$ac_cv_search_dlopen
13241 if test "$ac_res" != no
; then :
13242 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13249 # Add macho support to GDB, but only if BFD includes it.
13252 OLD_LDFLAGS
=$LDFLAGS
13254 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13255 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13256 # always want our bfd.
13257 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13258 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
13259 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13260 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13261 if test "$plugins" = "yes"; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13263 $as_echo_n "checking for library containing dlopen... " >&6; }
13264 if test "${ac_cv_search_dlopen+set}" = set; then :
13265 $as_echo_n "(cached) " >&6
13267 ac_func_search_save_LIBS
=$LIBS
13268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h. */
13271 /* Override any GCC internal prototype to avoid an error.
13272 Use char because int might match the return type of a GCC
13273 builtin and then its argument prototype would still apply. */
13286 for ac_lib
in '' dl
; do
13287 if test -z "$ac_lib"; then
13288 ac_res
="none required"
13291 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13293 if ac_fn_c_try_link
"$LINENO"; then :
13294 ac_cv_search_dlopen
=$ac_res
13296 rm -f core conftest.err conftest.
$ac_objext \
13298 if test "${ac_cv_search_dlopen+set}" = set; then :
13302 if test "${ac_cv_search_dlopen+set}" = set; then :
13305 ac_cv_search_dlopen
=no
13307 rm conftest.
$ac_ext
13308 LIBS
=$ac_func_search_save_LIBS
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13311 $as_echo "$ac_cv_search_dlopen" >&6; }
13312 ac_res
=$ac_cv_search_dlopen
13313 if test "$ac_res" != no
; then :
13314 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13319 LIBS
="-lbfd -liberty $intl $LIBS"
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
13321 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
13322 if test "${gdb_cv_var_macho+set}" = set; then :
13323 $as_echo_n "(cached) " >&6
13325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13327 #include <stdlib.h>
13329 #include "mach-o.h"
13334 return bfd_mach_o_lookup_command (NULL, 0, NULL);
13339 if ac_fn_c_try_link
"$LINENO"; then :
13340 gdb_cv_var_macho
=yes
13342 gdb_cv_var_macho
=no
13344 rm -f core conftest.err conftest.
$ac_objext \
13345 conftest
$ac_exeext conftest.
$ac_ext
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
13348 $as_echo "$gdb_cv_var_macho" >&6; }
13350 LDFLAGS
=$OLD_LDFLAGS
13352 if test $gdb_cv_var_macho = yes; then
13353 CONFIG_OBS
="$CONFIG_OBS machoread.o"
13356 # Add SOM support to GDB, but only if BFD includes it.
13359 OLD_LDFLAGS
=$LDFLAGS
13361 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13362 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13363 # always want our bfd.
13364 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13365 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
13366 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13367 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13368 if test "$plugins" = "yes"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13370 $as_echo_n "checking for library containing dlopen... " >&6; }
13371 if test "${ac_cv_search_dlopen+set}" = set; then :
13372 $as_echo_n "(cached) " >&6
13374 ac_func_search_save_LIBS
=$LIBS
13375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13376 /* end confdefs.h. */
13378 /* Override any GCC internal prototype to avoid an error.
13379 Use char because int might match the return type of a GCC
13380 builtin and then its argument prototype would still apply. */
13393 for ac_lib
in '' dl
; do
13394 if test -z "$ac_lib"; then
13395 ac_res
="none required"
13398 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13400 if ac_fn_c_try_link
"$LINENO"; then :
13401 ac_cv_search_dlopen
=$ac_res
13403 rm -f core conftest.err conftest.
$ac_objext \
13405 if test "${ac_cv_search_dlopen+set}" = set; then :
13409 if test "${ac_cv_search_dlopen+set}" = set; then :
13412 ac_cv_search_dlopen
=no
13414 rm conftest.
$ac_ext
13415 LIBS
=$ac_func_search_save_LIBS
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13418 $as_echo "$ac_cv_search_dlopen" >&6; }
13419 ac_res
=$ac_cv_search_dlopen
13420 if test "$ac_res" != no
; then :
13421 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13426 LIBS
="-lbfd -liberty $intl $LIBS"
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOM support in BFD" >&5
13428 $as_echo_n "checking for SOM support in BFD... " >&6; }
13429 if test "${gdb_cv_var_som+set}" = set; then :
13430 $as_echo_n "(cached) " >&6
13432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13434 #include <stdlib.h>
13441 return bfd_som_attach_aux_hdr (NULL, 0, NULL);
13446 if ac_fn_c_try_link
"$LINENO"; then :
13451 rm -f core conftest.err conftest.
$ac_objext \
13452 conftest
$ac_exeext conftest.
$ac_ext
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_som" >&5
13455 $as_echo "$gdb_cv_var_som" >&6; }
13457 LDFLAGS
=$OLD_LDFLAGS
13459 if test $gdb_cv_var_som = yes; then
13460 CONFIG_OBS
="$CONFIG_OBS somread.o"
13463 # Add any host-specific objects to GDB.
13464 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
13466 # If building on ELF, look for lzma support for embedded compressed debug info.
13467 if test $gdb_cv_var_elf = yes; then
13469 # Check whether --with-lzma was given.
13470 if test "${with_lzma+set}" = set; then :
13471 withval
=$with_lzma;
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
13477 $as_echo_n "checking whether to use lzma... " >&6; }
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
13479 $as_echo "$with_lzma" >&6; }
13481 if test "${with_lzma}" != no
; then
13492 acl_save_prefix
="$prefix"
13493 prefix
="$acl_final_prefix"
13494 acl_save_exec_prefix
="$exec_prefix"
13495 exec_prefix
="$acl_final_exec_prefix"
13497 eval additional_includedir
=\"$includedir\"
13498 eval additional_libdir
=\"$libdir\"
13500 exec_prefix
="$acl_save_exec_prefix"
13501 prefix
="$acl_save_prefix"
13504 # Check whether --with-liblzma-prefix was given.
13505 if test "${with_liblzma_prefix+set}" = set; then :
13506 withval
=$with_liblzma_prefix;
13507 if test "X$withval" = "Xno"; then
13510 if test "X$withval" = "X"; then
13512 acl_save_prefix
="$prefix"
13513 prefix
="$acl_final_prefix"
13514 acl_save_exec_prefix
="$exec_prefix"
13515 exec_prefix
="$acl_final_exec_prefix"
13517 eval additional_includedir
=\"$includedir\"
13518 eval additional_libdir
=\"$libdir\"
13520 exec_prefix
="$acl_save_exec_prefix"
13521 prefix
="$acl_save_prefix"
13524 additional_includedir
="$withval/include"
13525 additional_libdir
="$withval/lib"
13536 names_already_handled
=
13537 names_next_round
='lzma '
13538 while test -n "$names_next_round"; do
13539 names_this_round
="$names_next_round"
13541 for name
in $names_this_round; do
13543 for n
in $names_already_handled; do
13544 if test "$n" = "$name"; then
13545 already_handled
=yes
13549 if test -z "$already_handled"; then
13550 names_already_handled
="$names_already_handled $name"
13551 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13552 eval value
=\"\
$HAVE_LIB$uppername\"
13553 if test -n "$value"; then
13554 if test "$value" = yes; then
13555 eval value
=\"\
$LIB$uppername\"
13556 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
13557 eval value
=\"\
$LTLIB$uppername\"
13558 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
13567 if test $use_additional = yes; then
13568 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13569 found_dir
="$additional_libdir"
13570 found_so
="$additional_libdir/lib$name.$shlibext"
13571 if test -f "$additional_libdir/lib$name.la"; then
13572 found_la
="$additional_libdir/lib$name.la"
13575 if test -f "$additional_libdir/lib$name.$libext"; then
13576 found_dir
="$additional_libdir"
13577 found_a
="$additional_libdir/lib$name.$libext"
13578 if test -f "$additional_libdir/lib$name.la"; then
13579 found_la
="$additional_libdir/lib$name.la"
13584 if test "X$found_dir" = "X"; then
13585 for x
in $LDFLAGS $LTLIBLZMA; do
13587 acl_save_prefix
="$prefix"
13588 prefix
="$acl_final_prefix"
13589 acl_save_exec_prefix
="$exec_prefix"
13590 exec_prefix
="$acl_final_exec_prefix"
13592 exec_prefix
="$acl_save_exec_prefix"
13593 prefix
="$acl_save_prefix"
13597 dir
=`echo "X$x" | sed -e 's/^X-L//'`
13598 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13600 found_so
="$dir/lib$name.$shlibext"
13601 if test -f "$dir/lib$name.la"; then
13602 found_la
="$dir/lib$name.la"
13605 if test -f "$dir/lib$name.$libext"; then
13607 found_a
="$dir/lib$name.$libext"
13608 if test -f "$dir/lib$name.la"; then
13609 found_la
="$dir/lib$name.la"
13615 if test "X$found_dir" != "X"; then
13620 if test "X$found_dir" != "X"; then
13621 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
13622 if test "X$found_so" != "X"; then
13623 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
13624 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13627 for x
in $ltrpathdirs; do
13628 if test "X$x" = "X$found_dir"; then
13633 if test -z "$haveit"; then
13634 ltrpathdirs
="$ltrpathdirs $found_dir"
13636 if test "$hardcode_direct" = yes; then
13637 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13639 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
13640 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13642 for x
in $rpathdirs; do
13643 if test "X$x" = "X$found_dir"; then
13648 if test -z "$haveit"; then
13649 rpathdirs
="$rpathdirs $found_dir"
13653 for x
in $LDFLAGS $LIBLZMA; do
13655 acl_save_prefix
="$prefix"
13656 prefix
="$acl_final_prefix"
13657 acl_save_exec_prefix
="$exec_prefix"
13658 exec_prefix
="$acl_final_exec_prefix"
13660 exec_prefix
="$acl_save_exec_prefix"
13661 prefix
="$acl_save_prefix"
13663 if test "X$x" = "X-L$found_dir"; then
13668 if test -z "$haveit"; then
13669 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
13671 if test "$hardcode_minus_L" != no
; then
13672 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13674 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
13680 if test "X$found_a" != "X"; then
13681 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
13683 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
13686 additional_includedir
=
13687 case "$found_dir" in
13689 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13690 additional_includedir
="$basedir/include"
13693 if test "X$additional_includedir" != "X"; then
13694 if test "X$additional_includedir" != "X/usr/include"; then
13696 if test "X$additional_includedir" = "X/usr/local/include"; then
13697 if test -n "$GCC"; then
13699 linux
*) haveit
=yes;;
13703 if test -z "$haveit"; then
13704 for x
in $CPPFLAGS $INCLZMA; do
13706 acl_save_prefix
="$prefix"
13707 prefix
="$acl_final_prefix"
13708 acl_save_exec_prefix
="$exec_prefix"
13709 exec_prefix
="$acl_final_exec_prefix"
13711 exec_prefix
="$acl_save_exec_prefix"
13712 prefix
="$acl_save_prefix"
13714 if test "X$x" = "X-I$additional_includedir"; then
13719 if test -z "$haveit"; then
13720 if test -d "$additional_includedir"; then
13721 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
13727 if test -n "$found_la"; then
13728 save_libdir
="$libdir"
13729 case "$found_la" in
13730 */* |
*\\*) .
"$found_la" ;;
13731 *) .
"./$found_la" ;;
13733 libdir
="$save_libdir"
13734 for dep
in $dependency_libs; do
13737 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
13738 if test "X$additional_libdir" != "X/usr/lib"; then
13740 if test "X$additional_libdir" = "X/usr/local/lib"; then
13741 if test -n "$GCC"; then
13743 linux
*) haveit
=yes;;
13747 if test -z "$haveit"; then
13749 for x
in $LDFLAGS $LIBLZMA; do
13751 acl_save_prefix
="$prefix"
13752 prefix
="$acl_final_prefix"
13753 acl_save_exec_prefix
="$exec_prefix"
13754 exec_prefix
="$acl_final_exec_prefix"
13756 exec_prefix
="$acl_save_exec_prefix"
13757 prefix
="$acl_save_prefix"
13759 if test "X$x" = "X-L$additional_libdir"; then
13764 if test -z "$haveit"; then
13765 if test -d "$additional_libdir"; then
13766 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
13770 for x
in $LDFLAGS $LTLIBLZMA; do
13772 acl_save_prefix
="$prefix"
13773 prefix
="$acl_final_prefix"
13774 acl_save_exec_prefix
="$exec_prefix"
13775 exec_prefix
="$acl_final_exec_prefix"
13777 exec_prefix
="$acl_save_exec_prefix"
13778 prefix
="$acl_save_prefix"
13780 if test "X$x" = "X-L$additional_libdir"; then
13785 if test -z "$haveit"; then
13786 if test -d "$additional_libdir"; then
13787 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
13794 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
13795 if test "$enable_rpath" != no
; then
13797 for x
in $rpathdirs; do
13798 if test "X$x" = "X$dir"; then
13803 if test -z "$haveit"; then
13804 rpathdirs
="$rpathdirs $dir"
13807 for x
in $ltrpathdirs; do
13808 if test "X$x" = "X$dir"; then
13813 if test -z "$haveit"; then
13814 ltrpathdirs
="$ltrpathdirs $dir"
13819 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13822 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13825 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
13826 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
13832 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
13833 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
13839 if test "X$rpathdirs" != "X"; then
13840 if test -n "$hardcode_libdir_separator"; then
13842 for found_dir
in $rpathdirs; do
13843 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13845 acl_save_libdir
="$libdir"
13847 eval flag
=\"$hardcode_libdir_flag_spec\"
13848 libdir
="$acl_save_libdir"
13849 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
13851 for found_dir
in $rpathdirs; do
13852 acl_save_libdir
="$libdir"
13853 libdir
="$found_dir"
13854 eval flag
=\"$hardcode_libdir_flag_spec\"
13855 libdir
="$acl_save_libdir"
13856 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
13860 if test "X$ltrpathdirs" != "X"; then
13861 for found_dir
in $ltrpathdirs; do
13862 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
13867 ac_save_CPPFLAGS
="$CPPFLAGS"
13869 for element
in $INCLZMA; do
13871 for x
in $CPPFLAGS; do
13873 acl_save_prefix
="$prefix"
13874 prefix
="$acl_final_prefix"
13875 acl_save_exec_prefix
="$exec_prefix"
13876 exec_prefix
="$acl_final_exec_prefix"
13878 exec_prefix
="$acl_save_exec_prefix"
13879 prefix
="$acl_save_prefix"
13881 if test "X$x" = "X$element"; then
13886 if test -z "$haveit"; then
13887 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
13893 $as_echo_n "checking for liblzma... " >&6; }
13894 if test "${ac_cv_liblzma+set}" = set; then :
13895 $as_echo_n "(cached) " >&6
13898 ac_save_LIBS
="$LIBS"
13899 LIBS
="$LIBS $LIBLZMA"
13900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13906 lzma_index_iter iter;
13907 lzma_index_iter_init (&iter, 0);
13908 lzma_mf_is_supported (LZMA_MF_HC3);
13913 if ac_fn_c_try_link
"$LINENO"; then :
13918 rm -f core conftest.err conftest.
$ac_objext \
13919 conftest
$ac_exeext conftest.
$ac_ext
13920 LIBS
="$ac_save_LIBS"
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
13924 $as_echo "$ac_cv_liblzma" >&6; }
13925 if test "$ac_cv_liblzma" = yes; then
13928 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
13931 $as_echo_n "checking how to link with liblzma... " >&6; }
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
13933 $as_echo "$LIBLZMA" >&6; }
13936 CPPFLAGS
="$ac_save_CPPFLAGS"
13946 if test "$HAVE_LIBLZMA" != yes; then
13947 if test "$with_lzma" = yes; then
13948 as_fn_error
"missing liblzma for --with-lzma" "$LINENO" 5
13954 LIBGUI
="../libgui/src/libgui.a"
13955 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
13964 *-*-cygwin* |
*-*-mingw* )
13973 if test "${enable_gdbtk}" = "yes"; then
13975 # Gdbtk must have an absolute path to srcdir in order to run
13976 # properly when not installed.
13979 GDBTK_SRC_DIR
=`pwd`
13984 # Ok, lets find the tcl configuration
13985 # First, look for one uninstalled.
13986 # the alternative search directory is invoked by --with-tcl
13989 if test x
"${no_tcl}" = x
; then
13990 # we reset no_tcl in case something fails here
13993 # Check whether --with-tcl was given.
13994 if test "${with_tcl+set}" = set; then :
13995 withval
=$with_tcl; with_tclconfig
=${withval}
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
13999 $as_echo_n "checking for Tcl configuration... " >&6; }
14000 if test "${ac_cv_c_tclconfig+set}" = set; then :
14001 $as_echo_n "(cached) " >&6
14005 # First check to see if --with-tcl was specified.
14007 *-*-cygwin*) platDir
="win" ;;
14008 *) platDir
="unix" ;;
14010 if test x
"${with_tclconfig}" != x
; then
14011 if test -f "${with_tclconfig}/tclConfig.sh" ; then
14012 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
14014 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
14018 # then check for a private Tcl installation
14019 if test x
"${ac_cv_c_tclconfig}" = x
; then
14022 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14023 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
14024 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
14026 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14027 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
14028 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
14030 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14031 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
14032 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
14033 if test -f "$i/$platDir/tclConfig.sh" ; then
14034 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
14040 # on Darwin, check in Framework installation locations
14041 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
14042 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
14043 `ls -d /Library/Frameworks 2>/dev/null` \
14044 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14045 `ls -d /System/Library/Frameworks 2>/dev/null` \
14047 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
14048 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
14054 # check in a few common install locations
14055 if test x
"${ac_cv_c_tclconfig}" = x
; then
14056 for i
in `ls -d ${libdir} 2>/dev/null` \
14057 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14058 `ls -d ${prefix}/lib 2>/dev/null` \
14059 `ls -d /usr/local/lib 2>/dev/null` \
14060 `ls -d /usr/contrib/lib 2>/dev/null` \
14061 `ls -d /usr/lib 2>/dev/null` \
14063 if test -f "$i/tclConfig.sh" ; then
14064 ac_cv_c_tclconfig
=`(cd $i; pwd)`
14070 # check in a few other private locations
14071 if test x
"${ac_cv_c_tclconfig}" = x
; then
14074 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14075 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
14076 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
14077 if test -f "$i/$platDir/tclConfig.sh" ; then
14078 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
14087 if test x
"${ac_cv_c_tclconfig}" = x
; then
14088 TCL_BIN_DIR
="# no Tcl configs found"
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
14090 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
14093 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
14095 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14100 # If $no_tk is nonempty, then we can't do Tk, and there is no
14101 # point to doing Tcl.
14104 # Ok, lets find the tk configuration
14105 # First, look for one uninstalled.
14106 # the alternative search directory is invoked by --with-tk
14109 if test x
"${no_tk}" = x
; then
14110 # we reset no_tk in case something fails here
14113 # Check whether --with-tk was given.
14114 if test "${with_tk+set}" = set; then :
14115 withval
=$with_tk; with_tkconfig
=${withval}
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
14119 $as_echo_n "checking for Tk configuration... " >&6; }
14120 if test "${ac_cv_c_tkconfig+set}" = set; then :
14121 $as_echo_n "(cached) " >&6
14125 # First check to see if --with-tkconfig was specified.
14126 if test x
"${with_tkconfig}" != x
; then
14127 if test -f "${with_tkconfig}/tkConfig.sh" ; then
14128 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
14130 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
14134 # then check for a private Tk library
14136 *-*-cygwin*) platDir
="win" ;;
14137 *) platDir
="unix" ;;
14139 if test x
"${ac_cv_c_tkconfig}" = x
; then
14142 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14143 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
14144 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
14146 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14147 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
14148 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
14150 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14151 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
14152 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
14153 if test -f "$i/$platDir/tkConfig.sh" ; then
14154 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
14160 # on Darwin, check in Framework installation locations
14161 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
14162 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
14163 `ls -d /Library/Frameworks 2>/dev/null` \
14164 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14165 `ls -d /System/Library/Frameworks 2>/dev/null` \
14167 if test -f "$i/Tk.framework/tkConfig.sh" ; then
14168 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
14174 # check in a few common install locations
14175 if test x
"${ac_cv_c_tkconfig}" = x
; then
14176 for i
in `ls -d ${libdir} 2>/dev/null` \
14177 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14178 `ls -d ${prefix}/lib 2>/dev/null` \
14179 `ls -d /usr/local/lib 2>/dev/null` \
14180 `ls -d /usr/contrib/lib 2>/dev/null` \
14181 `ls -d /usr/lib 2>/dev/null` \
14183 if test -f "$i/tkConfig.sh" ; then
14184 ac_cv_c_tkconfig
=`(cd $i; pwd)`
14189 # check in a few other private locations
14190 if test x
"${ac_cv_c_tkconfig}" = x
; then
14193 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14194 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
14195 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
14196 if test -f "$i/$platDir/tkConfig.sh" ; then
14197 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
14206 if test x
"${ac_cv_c_tkconfig}" = x
; then
14207 TK_BIN_DIR
="# no Tk configs found"
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
14209 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
14212 TK_BIN_DIR
=${ac_cv_c_tkconfig}
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
14214 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14219 if test -z "${no_tcl}" -a -z "${no_tk}"; then
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
14222 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
14224 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14226 $as_echo "loading" >&6; }
14227 .
${TCL_BIN_DIR}/tclConfig.sh
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
14230 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14233 # eval is required to do the TCL_DBGX substitution
14234 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
14235 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
14237 # If the TCL_BIN_DIR is the build directory (not the install directory),
14238 # then set the common variable name to the value of the build variables.
14239 # For example, the variable TCL_LIB_SPEC will be set to the value
14240 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
14241 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
14242 # installed and uninstalled version of Tcl.
14243 if test -f "${TCL_BIN_DIR}/Makefile" ; then
14244 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
14245 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
14246 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
14247 elif test "`uname -s`" = "Darwin"; then
14248 # If Tcl was built as a framework, attempt to use the libraries
14249 # from the framework at the given location so that linking works
14250 # against Tcl.framework installed in an arbitrary location.
14251 case ${TCL_DEFS} in
14253 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
14254 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
14255 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
14256 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
14257 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
14262 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
14263 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
14264 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
14270 # eval is required to do the TCL_DBGX substitution
14271 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
14272 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
14273 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
14274 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
14290 # Check for in-tree tcl
14297 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
14301 # Find Tcl private headers
14302 if test x
"${intree}" = xno
; then
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
14305 $as_echo_n "checking for Tcl private headers... " >&6; }
14307 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
14308 if test -f ${dir}/tclInt.h
; then
14312 if test x
"${private_dir}" = x
; then
14313 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
14315 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14317 $as_echo "${private_dir}" >&6; }
14320 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
14321 TCL_LIBRARY
="${TCL_LIB_SPEC}"
14324 # If building tcl in the same src tree, private headers
14325 # are not needed, but we need to be sure to use the right
14327 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
14328 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
14329 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
14337 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
14339 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14341 $as_echo "loading" >&6; }
14342 .
${TK_BIN_DIR}/tkConfig.sh
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
14345 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14348 # eval is required to do the TK_DBGX substitution
14349 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
14350 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
14352 # If the TK_BIN_DIR is the build directory (not the install directory),
14353 # then set the common variable name to the value of the build variables.
14354 # For example, the variable TK_LIB_SPEC will be set to the value
14355 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
14356 # instead of TK_BUILD_LIB_SPEC since it will work with both an
14357 # installed and uninstalled version of Tcl.
14358 if test -f "${TK_BIN_DIR}/Makefile" ; then
14359 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
14360 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
14361 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
14362 elif test "`uname -s`" = "Darwin"; then
14363 # If Tk was built as a framework, attempt to use the libraries
14364 # from the framework at the given location so that linking works
14365 # against Tk.framework installed in an arbitrary location.
14368 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
14369 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
14370 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
14371 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
14372 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
14377 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
14378 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
14379 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
14385 # eval is required to do the TK_DBGX substitution
14386 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
14387 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
14388 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
14389 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
14404 # Check for in-tree Tk
14406 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
14410 # Find Tk private headers
14411 if test x
"${intree}" = xno
; then
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
14414 $as_echo_n "checking for Tk private headers... " >&6; }
14416 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
14417 if test -f ${dir}/tkInt.h
; then
14421 if test x
"${private_dir}" = x
; then
14422 as_fn_error
"could not find Tk private headers" "$LINENO" 5
14424 TK_PRIVATE_INCLUDE
="-I${private_dir}"
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14426 $as_echo "${private_dir}" >&6; }
14429 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
14430 TK_LIBRARY
=${TK_LIB_SPEC}
14433 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
14434 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
14435 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
14442 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
14444 # Include some libraries that Tcl and Tk want.
14445 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
14446 # Yes, the ordering seems wrong here. But it isn't.
14447 # TK_LIBS is the list of libraries that need to be linked
14448 # after Tcl/Tk. Note that this isn't put into LIBS. If it
14449 # were in LIBS then any link tests after this point would
14450 # try to include things like `$(LIBGUI)', which wouldn't work.
14451 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
14453 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
14454 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
14455 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
14456 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
14457 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
14458 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
14459 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
14461 if test x
$gdb_cv_os_cygwin = xyes
; then
14462 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
14463 WIN32LDAPP
="-Wl,--subsystem,console"
14464 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
14467 subdirs
="$subdirs gdbtk"
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14480 $as_echo_n "checking for X... " >&6; }
14483 # Check whether --with-x was given.
14484 if test "${with_x+set}" = set; then :
14488 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14489 if test "x$with_x" = xno
; then
14490 # The user explicitly disabled X.
14493 case $x_includes,$x_libraries in #(
14494 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
14495 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
14496 $as_echo_n "(cached) " >&6
14498 # One or both of the vars are not set, and there is no cached value.
14499 ac_x_includes
=no ac_x_libraries
=no
14500 rm -f -r conftest.dir
14501 if mkdir conftest.dir
; then
14503 cat >Imakefile
<<'_ACEOF'
14505 @echo incroot='${INCROOT}'
14507 @echo usrlibdir='${USRLIBDIR}'
14509 @echo libdir='${LIBDIR}'
14511 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
14512 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14513 for ac_var
in incroot usrlibdir libdir
; do
14514 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14516 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14517 for ac_extension
in a so sl dylib la dll
; do
14518 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14519 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14520 ac_im_usrlibdir
=$ac_im_libdir; break
14523 # Screen out bogus values from the imake configuration. They are
14524 # bogus both because they are the default anyway, and because
14525 # using them would break gcc on systems where it needs fixed includes.
14526 case $ac_im_incroot in
14527 /usr
/include
) ac_x_includes
= ;;
14528 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
14530 case $ac_im_usrlibdir in
14531 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
14532 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
14536 rm -f -r conftest.dir
14539 # Standard set of common directories for X headers.
14540 # Check X11 before X11Rn because it is often a symlink to the current release.
14554 /usr/local/X11/include
14555 /usr/local/X11R7/include
14556 /usr/local/X11R6/include
14557 /usr/local/X11R5/include
14558 /usr/local/X11R4/include
14560 /usr/local/include/X11
14561 /usr/local/include/X11R7
14562 /usr/local/include/X11R6
14563 /usr/local/include/X11R5
14564 /usr/local/include/X11R4
14568 /usr/XFree86/include/X11
14572 /usr/unsupported/include
14573 /usr/athena/include
14574 /usr/local/x11r5/include
14575 /usr/lpp/Xamples/include
14577 /usr/openwin/include
14578 /usr/openwin/share/include'
14580 if test "$ac_x_includes" = no
; then
14581 # Guess where to find include files, by looking for Xlib.h.
14582 # First, try using that file with no special directory specified.
14583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h. */
14585 #include <X11/Xlib.h>
14587 if ac_fn_c_try_cpp
"$LINENO"; then :
14588 # We can compile using X headers with no special include directory.
14591 for ac_dir
in $ac_x_header_dirs; do
14592 if test -r "$ac_dir/X11/Xlib.h"; then
14593 ac_x_includes
=$ac_dir
14598 rm -f conftest.err conftest.
$ac_ext
14599 fi # $ac_x_includes = no
14601 if test "$ac_x_libraries" = no
; then
14602 # Check for the libraries.
14603 # See if we find them without any special options.
14604 # Don't add to $LIBS permanently.
14607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14608 /* end confdefs.h. */
14609 #include <X11/Xlib.h>
14618 if ac_fn_c_try_link
"$LINENO"; then :
14620 # We can link X programs with no special library path.
14624 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14626 # Don't even attempt the hair of trying to link an X program!
14627 for ac_extension
in a so sl dylib la dll
; do
14628 if test -r "$ac_dir/libX11.$ac_extension"; then
14629 ac_x_libraries
=$ac_dir
14635 rm -f core conftest.err conftest.
$ac_objext \
14636 conftest
$ac_exeext conftest.
$ac_ext
14637 fi # $ac_x_libraries = no
14639 case $ac_x_includes,$ac_x_libraries in #(
14640 no
,* |
*,no |
*\'*)
14641 # Didn't find X, or a directory has "'" in its name.
14642 ac_cv_have_x
="have_x=no";; #(
14644 # Record where we found X for the cache.
14645 ac_cv_have_x
="have_x=yes\
14646 ac_x_includes='$ac_x_includes'\
14647 ac_x_libraries='$ac_x_libraries'"
14653 eval "$ac_cv_have_x"
14656 if test "$have_x" != yes; then
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14658 $as_echo "$have_x" >&6; }
14661 # If each of the values was on the command line, it overrides each guess.
14662 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
14663 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
14664 # Update the cache value to reflect the command line values.
14665 ac_cv_have_x
="have_x=yes\
14666 ac_x_includes='$x_includes'\
14667 ac_x_libraries='$x_libraries'"
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14669 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14673 # Unlike the sim directory, whether a simulator is linked is controlled by
14674 # presence of a gdb_sim definition in the target configure.tgt entry.
14675 # This code just checks for a few cases where we'd like to ignore those
14676 # definitions, even when they're present in the '.mt' file. These cases
14677 # are when --disable-sim is specified, or if the simulator directory is
14678 # not part of the source tree.
14680 # Check whether --enable-sim was given.
14681 if test "${enable_sim+set}" = set; then :
14682 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
14683 echo "enableval = ${enableval}";
14684 case "${enableval}" in
14685 yes) ignore_sim
=false
;;
14686 no
) ignore_sim
=true
;;
14687 *) ignore_sim
=false
;;
14694 if test ! -d "${srcdir}/../sim"; then
14700 if test "${ignore_sim}" = "false"; then
14701 if test x
"${gdb_sim}" != x
; then
14703 SIM_OBS
="remote-sim.o"
14705 $as_echo "#define WITH_SIM 1" >>confdefs.h
14723 # List of host floatformats.
14725 cat >>confdefs.h
<<_ACEOF
14726 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14730 cat >>confdefs.h
<<_ACEOF
14731 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14735 cat >>confdefs.h
<<_ACEOF
14736 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14740 # target_subdir is used by the testsuite to find the target libraries.
14742 if test "${host}" != "${target}"; then
14743 target_subdir
="${target_alias}/"
14748 if test "${gdb_native}" = "yes"; then
14749 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14750 if test ! -f ${host_makefile_frag}; then
14751 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14753 frags
="$frags $host_makefile_frag"
14755 host_makefile_frag
=/dev
/null
14761 if test "${gdb_native}" = "yes"; then
14762 # We pick this up from the host configuration file (.mh) because we
14763 # do not have a native configuration Makefile fragment.
14764 nativefile
=`sed -n '
14765 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
14766 ' ${host_makefile_frag}`
14770 if test x
"${gdb_osabi}" != x
; then
14772 cat >>confdefs.h
<<_ACEOF
14773 #define GDB_OSABI_DEFAULT $gdb_osabi
14778 # Enable multi-ice-gdb-server.
14779 # Check whether --enable-multi-ice was given.
14780 if test "${enable_multi_ice+set}" = set; then :
14781 enableval
=$enable_multi_ice; case $enableval in
14784 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14788 if test "x$enable_multi_ice" = xyes
; then
14789 subdirs
="$subdirs multi-ice"
14793 # Check whether --enable-gdbserver was given.
14794 if test "${enable_gdbserver+set}" = set; then :
14795 enableval
=$enable_gdbserver; case "${enableval}" in
14797 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
14800 enable_gdbserver
=auto
14804 # We only build gdbserver automatically in a native configuration, and
14805 # only if the user did not explicitly disable its build.
14806 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14808 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14809 if test "x$build_gdbserver" = xyes
; then
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14811 $as_echo "yes" >&6; }
14812 subdirs
="$subdirs gdbserver"
14814 gdbserver_build_enabled
=yes
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14817 $as_echo "no" >&6; }
14821 # If the user explicitly request the gdbserver to be built, verify that
14822 # we were in fact able to enable it.
14823 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
14824 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
14827 # Check for babeltrace and babeltrace-ctf
14829 # Check whether --with-babeltrace was given.
14830 if test "${with_babeltrace+set}" = set; then :
14831 withval
=$with_babeltrace;
14833 with_babeltrace
=auto
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
14837 $as_echo_n "checking whether to use babeltrace... " >&6; }
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
14839 $as_echo "$with_babeltrace" >&6; }
14841 if test "x$with_babeltrace" = "xno"; then
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
14843 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
14845 # Append -Werror to CFLAGS so that configure can catch the warning
14846 # "assignment from incompatible pointer type", which is related to
14847 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
14848 # in GDB, while babeltrace 1.0.3 is broken.
14849 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
14850 # safe to save and restore CFLAGS here.
14851 saved_CFLAGS
=$CFLAGS
14852 CFLAGS
="$CFLAGS -Werror"
14863 acl_save_prefix
="$prefix"
14864 prefix
="$acl_final_prefix"
14865 acl_save_exec_prefix
="$exec_prefix"
14866 exec_prefix
="$acl_final_exec_prefix"
14868 eval additional_includedir
=\"$includedir\"
14869 eval additional_libdir
=\"$libdir\"
14871 exec_prefix
="$acl_save_exec_prefix"
14872 prefix
="$acl_save_prefix"
14875 # Check whether --with-libbabeltrace-prefix was given.
14876 if test "${with_libbabeltrace_prefix+set}" = set; then :
14877 withval
=$with_libbabeltrace_prefix;
14878 if test "X$withval" = "Xno"; then
14881 if test "X$withval" = "X"; then
14883 acl_save_prefix
="$prefix"
14884 prefix
="$acl_final_prefix"
14885 acl_save_exec_prefix
="$exec_prefix"
14886 exec_prefix
="$acl_final_exec_prefix"
14888 eval additional_includedir
=\"$includedir\"
14889 eval additional_libdir
=\"$libdir\"
14891 exec_prefix
="$acl_save_exec_prefix"
14892 prefix
="$acl_save_prefix"
14895 additional_includedir
="$withval/include"
14896 additional_libdir
="$withval/lib"
14907 names_already_handled
=
14908 names_next_round
='babeltrace babeltrace-ctf'
14909 while test -n "$names_next_round"; do
14910 names_this_round
="$names_next_round"
14912 for name
in $names_this_round; do
14914 for n
in $names_already_handled; do
14915 if test "$n" = "$name"; then
14916 already_handled
=yes
14920 if test -z "$already_handled"; then
14921 names_already_handled
="$names_already_handled $name"
14922 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14923 eval value
=\"\
$HAVE_LIB$uppername\"
14924 if test -n "$value"; then
14925 if test "$value" = yes; then
14926 eval value
=\"\
$LIB$uppername\"
14927 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
14928 eval value
=\"\
$LTLIB$uppername\"
14929 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
14938 if test $use_additional = yes; then
14939 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14940 found_dir
="$additional_libdir"
14941 found_so
="$additional_libdir/lib$name.$shlibext"
14942 if test -f "$additional_libdir/lib$name.la"; then
14943 found_la
="$additional_libdir/lib$name.la"
14946 if test -f "$additional_libdir/lib$name.$libext"; then
14947 found_dir
="$additional_libdir"
14948 found_a
="$additional_libdir/lib$name.$libext"
14949 if test -f "$additional_libdir/lib$name.la"; then
14950 found_la
="$additional_libdir/lib$name.la"
14955 if test "X$found_dir" = "X"; then
14956 for x
in $LDFLAGS $LTLIBBABELTRACE; do
14958 acl_save_prefix
="$prefix"
14959 prefix
="$acl_final_prefix"
14960 acl_save_exec_prefix
="$exec_prefix"
14961 exec_prefix
="$acl_final_exec_prefix"
14963 exec_prefix
="$acl_save_exec_prefix"
14964 prefix
="$acl_save_prefix"
14968 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14969 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14971 found_so
="$dir/lib$name.$shlibext"
14972 if test -f "$dir/lib$name.la"; then
14973 found_la
="$dir/lib$name.la"
14976 if test -f "$dir/lib$name.$libext"; then
14978 found_a
="$dir/lib$name.$libext"
14979 if test -f "$dir/lib$name.la"; then
14980 found_la
="$dir/lib$name.la"
14986 if test "X$found_dir" != "X"; then
14991 if test "X$found_dir" != "X"; then
14992 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
14993 if test "X$found_so" != "X"; then
14994 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14995 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14998 for x
in $ltrpathdirs; do
14999 if test "X$x" = "X$found_dir"; then
15004 if test -z "$haveit"; then
15005 ltrpathdirs
="$ltrpathdirs $found_dir"
15007 if test "$hardcode_direct" = yes; then
15008 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15010 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
15011 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15013 for x
in $rpathdirs; do
15014 if test "X$x" = "X$found_dir"; then
15019 if test -z "$haveit"; then
15020 rpathdirs
="$rpathdirs $found_dir"
15024 for x
in $LDFLAGS $LIBBABELTRACE; do
15026 acl_save_prefix
="$prefix"
15027 prefix
="$acl_final_prefix"
15028 acl_save_exec_prefix
="$exec_prefix"
15029 exec_prefix
="$acl_final_exec_prefix"
15031 exec_prefix
="$acl_save_exec_prefix"
15032 prefix
="$acl_save_prefix"
15034 if test "X$x" = "X-L$found_dir"; then
15039 if test -z "$haveit"; then
15040 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
15042 if test "$hardcode_minus_L" != no
; then
15043 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15045 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15051 if test "X$found_a" != "X"; then
15052 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
15054 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
15057 additional_includedir
=
15058 case "$found_dir" in
15060 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15061 additional_includedir
="$basedir/include"
15064 if test "X$additional_includedir" != "X"; then
15065 if test "X$additional_includedir" != "X/usr/include"; then
15067 if test "X$additional_includedir" = "X/usr/local/include"; then
15068 if test -n "$GCC"; then
15070 linux
*) haveit
=yes;;
15074 if test -z "$haveit"; then
15075 for x
in $CPPFLAGS $INCBABELTRACE; do
15077 acl_save_prefix
="$prefix"
15078 prefix
="$acl_final_prefix"
15079 acl_save_exec_prefix
="$exec_prefix"
15080 exec_prefix
="$acl_final_exec_prefix"
15082 exec_prefix
="$acl_save_exec_prefix"
15083 prefix
="$acl_save_prefix"
15085 if test "X$x" = "X-I$additional_includedir"; then
15090 if test -z "$haveit"; then
15091 if test -d "$additional_includedir"; then
15092 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
15098 if test -n "$found_la"; then
15099 save_libdir
="$libdir"
15100 case "$found_la" in
15101 */* |
*\\*) .
"$found_la" ;;
15102 *) .
"./$found_la" ;;
15104 libdir
="$save_libdir"
15105 for dep
in $dependency_libs; do
15108 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15109 if test "X$additional_libdir" != "X/usr/lib"; then
15111 if test "X$additional_libdir" = "X/usr/local/lib"; then
15112 if test -n "$GCC"; then
15114 linux
*) haveit
=yes;;
15118 if test -z "$haveit"; then
15120 for x
in $LDFLAGS $LIBBABELTRACE; do
15122 acl_save_prefix
="$prefix"
15123 prefix
="$acl_final_prefix"
15124 acl_save_exec_prefix
="$exec_prefix"
15125 exec_prefix
="$acl_final_exec_prefix"
15127 exec_prefix
="$acl_save_exec_prefix"
15128 prefix
="$acl_save_prefix"
15130 if test "X$x" = "X-L$additional_libdir"; then
15135 if test -z "$haveit"; then
15136 if test -d "$additional_libdir"; then
15137 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
15141 for x
in $LDFLAGS $LTLIBBABELTRACE; do
15143 acl_save_prefix
="$prefix"
15144 prefix
="$acl_final_prefix"
15145 acl_save_exec_prefix
="$exec_prefix"
15146 exec_prefix
="$acl_final_exec_prefix"
15148 exec_prefix
="$acl_save_exec_prefix"
15149 prefix
="$acl_save_prefix"
15151 if test "X$x" = "X-L$additional_libdir"; then
15156 if test -z "$haveit"; then
15157 if test -d "$additional_libdir"; then
15158 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
15165 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15166 if test "$enable_rpath" != no
; then
15168 for x
in $rpathdirs; do
15169 if test "X$x" = "X$dir"; then
15174 if test -z "$haveit"; then
15175 rpathdirs
="$rpathdirs $dir"
15178 for x
in $ltrpathdirs; do
15179 if test "X$x" = "X$dir"; then
15184 if test -z "$haveit"; then
15185 ltrpathdirs
="$ltrpathdirs $dir"
15190 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15193 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15196 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
15197 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
15203 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15204 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
15210 if test "X$rpathdirs" != "X"; then
15211 if test -n "$hardcode_libdir_separator"; then
15213 for found_dir
in $rpathdirs; do
15214 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15216 acl_save_libdir
="$libdir"
15218 eval flag
=\"$hardcode_libdir_flag_spec\"
15219 libdir
="$acl_save_libdir"
15220 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15222 for found_dir
in $rpathdirs; do
15223 acl_save_libdir
="$libdir"
15224 libdir
="$found_dir"
15225 eval flag
=\"$hardcode_libdir_flag_spec\"
15226 libdir
="$acl_save_libdir"
15227 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15231 if test "X$ltrpathdirs" != "X"; then
15232 for found_dir
in $ltrpathdirs; do
15233 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
15238 ac_save_CPPFLAGS
="$CPPFLAGS"
15240 for element
in $INCBABELTRACE; do
15242 for x
in $CPPFLAGS; do
15244 acl_save_prefix
="$prefix"
15245 prefix
="$acl_final_prefix"
15246 acl_save_exec_prefix
="$exec_prefix"
15247 exec_prefix
="$acl_final_exec_prefix"
15249 exec_prefix
="$acl_save_exec_prefix"
15250 prefix
="$acl_save_prefix"
15252 if test "X$x" = "X$element"; then
15257 if test -z "$haveit"; then
15258 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
15264 $as_echo_n "checking for libbabeltrace... " >&6; }
15265 if test "${ac_cv_libbabeltrace+set}" = set; then :
15266 $as_echo_n "(cached) " >&6
15269 ac_save_LIBS
="$LIBS"
15270 LIBS
="$LIBS $LIBBABELTRACE"
15271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h. */
15273 #include <babeltrace/babeltrace.h>
15274 #include <babeltrace/ctf/events.h>
15275 #include <babeltrace/ctf/iterator.h>
15279 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
15280 struct bt_ctf_event *event = NULL;
15281 const struct bt_definition *scope;
15283 scope = bt_ctf_get_top_level_scope (event,
15284 BT_STREAM_EVENT_HEADER);
15285 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
15291 if ac_fn_c_try_link
"$LINENO"; then :
15292 ac_cv_libbabeltrace
=yes
15294 ac_cv_libbabeltrace
=no
15296 rm -f core conftest.err conftest.
$ac_objext \
15297 conftest
$ac_exeext conftest.
$ac_ext
15298 LIBS
="$ac_save_LIBS"
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
15302 $as_echo "$ac_cv_libbabeltrace" >&6; }
15303 if test "$ac_cv_libbabeltrace" = yes; then
15304 HAVE_LIBBABELTRACE
=yes
15306 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
15309 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
15311 $as_echo "$LIBBABELTRACE" >&6; }
15313 HAVE_LIBBABELTRACE
=no
15314 CPPFLAGS
="$ac_save_CPPFLAGS"
15324 CFLAGS
=$saved_CFLAGS
15326 if test "$HAVE_LIBBABELTRACE" != yes; then
15327 if test "$with_babeltrace" = yes; then
15328 as_fn_error
"babeltrace is missing or unusable" "$LINENO" 5
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
15331 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
15336 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15337 # to an empty version.
15343 if test "${nativefile}" != ""; then
15344 case "${nativefile}" in
15345 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
15346 * ) GDB_NM_FILE
="${nativefile}"
15348 files
="${files} ${GDB_NM_FILE}"
15349 links
="${links} nm.h"
15351 cat >>confdefs.h
<<_ACEOF
15352 #define GDB_NM_FILE "${GDB_NM_FILE}"
15358 ac_sources
="$files"
15360 while test -n "$ac_sources"; do
15361 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
15362 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
15363 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
15365 ac_config_links
="$ac_config_links $ac_config_links_1"
15371 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15374 # Undo the $ec_script escaping suitable for Makefile.
15375 transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
15376 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$transform"`
15377 if test "x$GDB_TRANSFORM_NAME" = x
; then
15378 GDB_TRANSFORM_NAME
=gdb
15381 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$transform"`
15382 if test "x$GCORE_TRANSFORM_NAME" = x
; then
15383 GCORE_TRANSFORM_NAME
=gcore
15386 ac_config_files
="$ac_config_files gcore"
15389 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
15391 ac_config_commands
="$ac_config_commands default"
15393 cat >confcache
<<\_ACEOF
15394 # This file is a shell script that caches the results of configure
15395 # tests run on this system so they can be shared between configure
15396 # scripts and configure runs, see configure's option --config-cache.
15397 # It is not useful on other systems. If it contains results you don't
15398 # want to keep, you may remove or edit it.
15400 # config.status only pays attention to the cache file if you give it
15401 # the --recheck option to rerun configure.
15403 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15404 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15405 # following values.
15409 # The following way of writing the cache mishandles newlines in values,
15410 # but we know of no workaround that is simple, portable, and efficient.
15411 # So, we kill variables containing newlines.
15412 # Ultrix sh set writes to stderr and can't be redirected directly,
15413 # and sets the high bit in the cache file unless we assign to the vars.
15415 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15416 eval ac_val
=\$
$ac_var
15420 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15421 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15424 _ | IFS | as_nl
) ;; #(
15425 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15426 *) { eval $ac_var=; unset $ac_var;} ;;
15432 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15433 *${as_nl}ac_space
=\
*)
15434 # `set' does not quote correctly, so add quotes: double-quote
15435 # substitution turns \\\\ into \\, and sed turns \\ into \.
15438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15441 # `set' quotes correctly as required by POSIX, so do not add quotes.
15442 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15451 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15453 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15455 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15456 if test -w "$cache_file"; then
15457 test "x$cache_file" != "x/dev/null" &&
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15459 $as_echo "$as_me: updating cache $cache_file" >&6;}
15460 cat confcache
>$cache_file
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15463 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15468 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15469 # Let make expand exec_prefix.
15470 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15472 DEFS
=-DHAVE_CONFIG_H
15476 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15477 # 1. Remove the extension, and $U if already installed.
15478 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15479 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15480 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15481 # will be set to the directory where LIBOBJS objects are built.
15482 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15483 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15485 LIBOBJS
=$ac_libobjs
15487 LTLIBOBJS
=$ac_ltlibobjs
15490 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15491 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
15492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15494 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15495 as_fn_error
"conditional \"GMAKE\" was never defined.
15496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15498 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
15499 as_fn_error
"conditional \"HAVE_PYTHON\" was never defined.
15500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15502 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
15503 as_fn_error
"conditional \"HAVE_GUILE\" was never defined.
15504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15508 : ${CONFIG_STATUS=./config.status}
15510 ac_clean_files_save
=$ac_clean_files
15511 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15513 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15515 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15517 # Generated by $as_me.
15518 # Run this file to recreate the current configuration.
15519 # Compiler output produced by configure, useful for debugging
15520 # configure, is in config.log if it exists.
15523 ac_cs_recheck=false
15526 SHELL=\${CONFIG_SHELL-$SHELL}
15529 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15530 ## -------------------- ##
15531 ## M4sh Initialization. ##
15532 ## -------------------- ##
15534 # Be more Bourne compatible
15535 DUALCASE
=1; export DUALCASE
# for MKS sh
15536 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15539 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15540 # is contrary to our usage. Disable this feature.
15541 alias -g '${1+"$@"}'='"$@"'
15542 setopt NO_GLOB_SUBST
15544 case `(set -o) 2>/dev/null` in #(
15556 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15557 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15558 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15559 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15560 # Prefer a ksh shell builtin over an external printf program on Solaris,
15561 # but without wasting forks for bash or zsh.
15562 if test -z "$BASH_VERSION$ZSH_VERSION" \
15563 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15564 as_echo='print
-r --'
15565 as_echo_n='print
-rn --'
15566 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15567 as_echo='printf %s
\n'
15568 as_echo_n='printf %s
'
15570 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15571 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15572 as_echo_n='/usr
/ucb
/echo -n'
15574 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15575 as_echo_n_body='eval
15579 expr "X$arg" : "X\\(.*\\)$as_nl";
15580 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15582 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15584 export as_echo_n_body
15585 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15587 export as_echo_body
15588 as_echo='sh
-c $as_echo_body as_echo
'
15591 # The user is always right.
15592 if test "${PATH_SEPARATOR+set}" != set; then
15594 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15595 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15602 # We need space, tab and new line, in precisely that order. Quoting is
15603 # there to prevent editors from complaining about space-tab.
15604 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15605 # splitting by setting IFS to empty value.)
15608 # Find who we are. Look in the path if we contain no directory separator.
15610 *[\\/]* ) as_myself=$0 ;;
15611 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15612 for as_dir in $PATH
15615 test -z "$as_dir" && as_dir=.
15616 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15622 # We did not find ourselves, most probably we were run as `sh COMMAND'
15623 # in which case we are not to be found in the path.
15624 if test "x$as_myself" = x
; then
15627 if test ! -f "$as_myself"; then
15628 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15632 # Unset variables that we do not need and which cause bugs (e.g. in
15633 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15634 # suppresses any "Segmentation fault" message there. '((' could
15635 # trigger a bug in pdksh 5.2.14.
15636 for as_var
in BASH_ENV ENV MAIL MAILPATH
15637 do eval test x\
${$as_var+set} = xset \
15638 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15651 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15654 # as_fn_error ERROR [LINENO LOG_FD]
15655 # ---------------------------------
15656 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15657 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15658 # script with status $?, using 1 if that was 0.
15661 as_status
=$?
; test $as_status -eq 0 && as_status
=1
15663 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15664 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15666 $as_echo "$as_me: error: $1" >&2
15667 as_fn_exit
$as_status
15671 # as_fn_set_status STATUS
15672 # -----------------------
15673 # Set $? to STATUS, without forking.
15674 as_fn_set_status
()
15677 } # as_fn_set_status
15679 # as_fn_exit STATUS
15680 # -----------------
15681 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15685 as_fn_set_status
$1
15691 # Portably unset VAR.
15694 { eval $1=; unset $1;}
15696 as_unset
=as_fn_unset
15697 # as_fn_append VAR VALUE
15698 # ----------------------
15699 # Append the text in VALUE to the end of the definition contained in VAR. Take
15700 # advantage of any shell optimizations that allow amortized linear growth over
15701 # repeated appends, instead of the typical quadratic growth present in naive
15703 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15704 eval 'as_fn_append ()
15715 # as_fn_arith ARG...
15716 # ------------------
15717 # Perform arithmetic evaluation on the ARGs, and store the result in the
15718 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15719 # must be portable across $(()) and expr.
15720 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15721 eval 'as_fn_arith ()
15728 as_val
=`expr "$@" || test $? -eq 1`
15733 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15734 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15740 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15741 as_basename
=basename
15746 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15752 as_me
=`$as_basename -- "$0" ||
15753 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15754 X"$0" : 'X\(//\)$' \| \
15755 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15757 sed '/^.*\/\([^/][^/]*\)\/*$/{
15771 # Avoid depending upon Character Ranges.
15772 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15773 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15774 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15775 as_cr_digits
='0123456789'
15776 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15778 ECHO_C
= ECHO_N
= ECHO_T
=
15779 case `echo -n x` in #(((((
15781 case `echo 'xy\c'` in
15782 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15784 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15791 rm -f conf$$ conf$$.exe conf$$.
file
15792 if test -d conf$$.dir
; then
15793 rm -f conf$$.dir
/conf$$.
file
15796 mkdir conf$$.dir
2>/dev
/null
15798 if (echo >conf$$.
file) 2>/dev
/null
; then
15799 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15801 # ... but there are two gotchas:
15802 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15803 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15804 # In both cases, we have to default to `cp -p'.
15805 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15807 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15815 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15816 rmdir conf$$.dir
2>/dev
/null
15821 # Create "$as_dir" as a directory, including parents if necessary.
15826 -*) as_dir
=.
/$as_dir;;
15828 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15832 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15833 *) as_qdir
=$as_dir;;
15835 as_dirs
="'$as_qdir' $as_dirs"
15836 as_dir
=`$as_dirname -- "$as_dir" ||
15837 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15838 X"$as_dir" : 'X\(//\)[^/]' \| \
15839 X"$as_dir" : 'X\(//\)$' \| \
15840 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15841 $as_echo X"$as_dir" |
15842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15846 /^X\(\/\/\)[^/].*/{
15859 test -d "$as_dir" && break
15861 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15862 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
15866 if mkdir
-p .
2>/dev
/null
; then
15867 as_mkdir_p
='mkdir -p "$as_dir"'
15869 test -d .
/-p && rmdir .
/-p
15873 if test -x / >/dev
/null
2>&1; then
15874 as_test_x
='test -x'
15876 if ls -dL / >/dev
/null
2>&1; then
15883 if test -d "$1"; then
15889 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15890 ???[sx]*):;;*)false;;esac;fi
15894 as_executable_p
=$as_test_x
15896 # Sed expression to map a string onto a valid CPP name.
15897 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15899 # Sed expression to map a string onto a valid variable name.
15900 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15904 ## ----------------------------------- ##
15905 ## Main body of $CONFIG_STATUS script. ##
15906 ## ----------------------------------- ##
15908 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15911 # Save the log message, to keep $0 and so on meaningful, and to
15912 # report actual input values of CONFIG_FILES etc. instead of their
15913 # values after options handling.
15915 This file was extended by $as_me, which was
15916 generated by GNU Autoconf 2.64. Invocation command line was
15918 CONFIG_FILES = $CONFIG_FILES
15919 CONFIG_HEADERS = $CONFIG_HEADERS
15920 CONFIG_LINKS = $CONFIG_LINKS
15921 CONFIG_COMMANDS = $CONFIG_COMMANDS
15924 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15929 case $ac_config_files in *"
15930 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15933 case $ac_config_headers in *"
15934 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15939 # Files that config.status was made for.
15940 config_files="$ac_config_files"
15941 config_headers="$ac_config_headers"
15942 config_links="$ac_config_links"
15943 config_commands="$ac_config_commands"
15947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15949 \`$as_me' instantiates files and other configuration actions
15950 from templates according to the current configuration. Unless the files
15951 and actions are specified as TAGs, all are instantiated by default.
15953 Usage: $0 [OPTION]... [TAG]...
15955 -h, --help print this help, then exit
15956 -V, --version print version number and configuration settings, then exit
15957 -q, --quiet, --silent
15958 do not print progress messages
15959 -d, --debug don't remove temporary files
15960 --recheck update $as_me by reconfiguring in the same conditions
15961 --file=FILE[:TEMPLATE]
15962 instantiate the configuration file FILE
15963 --header=FILE[:TEMPLATE]
15964 instantiate the configuration header FILE
15966 Configuration files:
15969 Configuration headers:
15972 Configuration links:
15975 Configuration commands:
15978 Report bugs to the package provider."
15981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15984 configured by $0, generated by GNU Autoconf 2.64,
15985 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15987 Copyright (C) 2009 Free Software Foundation, Inc.
15988 This config.status script is free software; the Free Software Foundation
15989 gives unlimited permission to copy, distribute and modify it."
15995 test -n "\$AWK" || AWK=awk
15998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15999 # The default lists apply if the user does not specify any file.
16005 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16006 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16017 # Handling of the options.
16018 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16020 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16021 $as_echo "$ac_cs_version"; exit ;;
16022 --debug |
--debu |
--deb |
--de |
--d |
-d )
16024 --file |
--fil |
--fi |
--f )
16027 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16029 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16030 ac_need_defaults
=false
;;
16031 --header |
--heade |
--head |
--hea )
16034 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16036 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16037 ac_need_defaults
=false
;;
16039 # Conflict between --help and --header
16040 as_fn_error
"ambiguous option: \`$1'
16041 Try \`$0 --help' for more information.";;
16042 --help |
--hel |
-h )
16043 $as_echo "$ac_cs_usage"; exit ;;
16044 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16045 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16048 # This is an error.
16049 -*) as_fn_error
"unrecognized option: \`$1'
16050 Try \`$0 --help' for more information." ;;
16052 *) as_fn_append ac_config_targets
" $1"
16053 ac_need_defaults
=false
;;
16059 ac_configure_extra_args
=
16061 if $ac_cs_silent; then
16063 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16068 if \$ac_cs_recheck; then
16069 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16071 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16072 CONFIG_SHELL='$SHELL'
16073 export CONFIG_SHELL
16078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16082 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16083 ## Running $as_me. ##
16089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16093 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16099 # Handling of arguments.
16100 for ac_config_target
in $ac_config_targets
16102 case $ac_config_target in
16103 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
16104 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
16105 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
16106 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
16107 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
16108 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16109 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
16110 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
16111 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
16112 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16114 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16119 # If the user did not use the arguments to specify the items to instantiate,
16120 # then the envvar interface is used. Set only those that are not.
16121 # We use the long form for the default assignment because of an extremely
16122 # bizarre bug on SunOS 4.1.3.
16123 if $ac_need_defaults; then
16124 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16125 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16126 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
16127 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16130 # Have a temporary directory for convenience. Make it in the build tree
16131 # simply because there is no reason against having it here, and in addition,
16132 # creating and moving files from /tmp can sometimes cause problems.
16133 # Hook for its removal unless debugging.
16134 # Note that there is a small window in which the directory will not be cleaned:
16135 # after its creation but before its name has been assigned to `$tmp'.
16139 trap 'exit_status=$?
16140 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16142 trap 'as_fn_exit 1' 1 2 13 15
16144 # Create a (secure) tmp directory for tmp files.
16147 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16148 test -n "$tmp" && test -d "$tmp"
16151 tmp
=.
/conf$$
-$RANDOM
16152 (umask 077 && mkdir
"$tmp")
16153 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16155 # Set up the scripts for CONFIG_FILES section.
16156 # No need to generate them if there are no CONFIG_FILES.
16157 # This happens for instance with `./config.status config.h'.
16158 if test -n "$CONFIG_FILES"; then
16160 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16161 ac_cs_awk_getline
=:
16162 ac_cs_awk_pipe_init
=
16163 ac_cs_awk_read_file
='
16164 while ((getline aline < (F[key])) > 0)
16167 ac_cs_awk_pipe_fini
=
16169 ac_cs_awk_getline
=false
16170 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16171 ac_cs_awk_read_file
='
16173 print "cat " F[key] " &&"
16174 '$ac_cs_awk_pipe_init
16175 # The final `:' finishes the AND list.
16176 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16178 ac_cr
=`echo X | tr X '\015'`
16179 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16180 # But we know of no other shell where ac_cr would be empty at this
16181 # point, so we can use a bashism as a fallback.
16182 if test "x$ac_cr" = x
; then
16183 eval ac_cr
=\$
\'\\r
\'
16185 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16186 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16189 ac_cs_awk_cr
=$ac_cr
16192 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16195 # Create commands to substitute file output variables.
16197 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16198 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16199 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16202 } >conf$
$files.sh
&&
16203 . .
/conf$
$files.sh ||
16204 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
16205 rm -f conf$
$files.sh
16208 echo "cat >conf$$subs.awk <<_ACEOF" &&
16209 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16211 } >conf$$subs.sh ||
16212 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16213 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16215 for ac_last_try in false false false false false :; do
16216 . ./conf$$subs.sh ||
16217 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16219 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16220 if test $ac_delim_n = $ac_delim_num; then
16222 elif $ac_last_try; then
16223 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16225 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16228 rm -f conf$$subs.sh
16230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16231 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16235 s/^/S["/; s
/!.
*/"]=/
16245 s/\(.\{148\}\).*/\1/
16247 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16252 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16259 s/\(.\{148\}\).*/\1/
16261 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16265 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16270 ' <conf$$subs.awk | sed '
16275 ' >>$CONFIG_STATUS || ac_write_fail=1
16276 rm -f conf$$subs.awk
16277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16279 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16280 for (key in S) S_is_set[key] = 1
16282 \$ac_cs_awk_pipe_init
16286 nfields = split(line, field, "@
")
16288 len = length(field[1])
16289 for (i = 2; i < nfields; i++) {
16291 keylen = length(key)
16292 if (S_is_set[key]) {
16294 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16295 len += length(value) + length(field[++i])
16300 if (nfields == 3 && !substed) {
16302 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16303 \$ac_cs_awk_read_file
16309 \$ac_cs_awk_pipe_fini
16312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16313 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16314 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16317 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16318 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16321 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16322 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16323 # trailing colons and then remove the whole line if VPATH becomes empty
16324 # (actually we leave an empty line to preserve line numbers).
16325 if test "x
$srcdir" = x.; then
16326 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16327 s/:*\$(srcdir):*/:/
16328 s/:*\${srcdir}:*/:/
16330 s/^\([^=]*=[ ]*\):*/\1/
16336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16337 fi # test -n "$CONFIG_FILES"
16339 # Set up the scripts for CONFIG_HEADERS section.
16340 # No need to generate them if there are no CONFIG_HEADERS.
16341 # This happens for instance with `./config.status Makefile'.
16342 if test -n "$CONFIG_HEADERS"; then
16343 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16347 # Transform confdefs.h into an awk script `defines.awk', embedded as
16348 # here-document in config.status, that substitutes the proper values into
16349 # config.h.in to produce config.h.
16351 # Create a delimiter string that does not exist in confdefs.h, to ease
16352 # handling of long lines.
16354 for ac_last_try in false false :; do
16355 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16356 if test -z "$ac_t"; then
16358 elif $ac_last_try; then
16359 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
16361 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16365 # For the awk script, D is an array of macro values keyed by name,
16366 # likewise P contains macro parameters if any. Preserve backslash
16367 # newline sequences.
16369 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16371 s/.\{148\}/&'"$ac_delim"'/g
16374 s/^[ ]*#[ ]*define[ ][ ]*/ /
16381 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16383 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16387 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16388 D["\
1"]=" \
3\\\\\\n
"\\/p
16390 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16395 s/.\{148\}/&'"$ac_delim"'/g
16400 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16403 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16405 ' <confdefs.h | sed '
16406 s/'"$ac_delim"'/"\\\
16407 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16410 for (key in D) D_is_set[key] = 1
16413 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16415 split(line, arg, " ")
16416 if (arg[1] == "#") {
16420 defundef
= substr
(arg
[1], 2)
16423 split(mac1
, mac2
, "(") #)
16425 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16426 if (D_is_set
[macro
]) {
16427 # Preserve the white space surrounding the "#".
16428 print prefix
"define", macro P
[macro
] D
[macro
]
16431 # Replace #undef with comments. This is necessary, for example,
16432 # in the case of _POSIX_SOURCE, which is predefined and required
16433 # on some systems where configure will not decide to define it.
16434 if (defundef
== "undef") {
16435 print
"/*", prefix defundef
, macro
, "*/"
16443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16444 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
16445 fi # test -n "$CONFIG_HEADERS"
16448 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16453 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16455 case $ac_mode$ac_tag in
16457 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16458 :[FH
]-) ac_tag
=-:-;;
16459 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16476 -) ac_f
="$tmp/stdin";;
16477 *) # Look for the file first in the build tree, then in the source tree
16478 # (if the path is not absolute). The absolute path cannot be DOS-style,
16479 # because $ac_f cannot contain `:'.
16483 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16485 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
16487 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16488 as_fn_append ac_file_inputs
" '$ac_f'"
16491 # Let's still pretend it is `configure' which instantiates (i.e., don't
16492 # use $as_me), people would be surprised to read:
16493 # /* config.h. Generated by config.status. */
16494 configure_input
='Generated from '`
16495 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16497 if test x
"$ac_file" != x-
; then
16498 configure_input
="$ac_file. $configure_input"
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16500 $as_echo "$as_me: creating $ac_file" >&6;}
16502 # Neutralize special characters interpreted by sed in replacement strings.
16503 case $configure_input in #(
16504 *\
&* |
*\|
* |
*\\* )
16505 ac_sed_conf_input
=`$as_echo "$configure_input" |
16506 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16507 *) ac_sed_conf_input
=$configure_input;;
16511 *:-:* |
*:-) cat >"$tmp/stdin" \
16512 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
16517 ac_dir
=`$as_dirname -- "$ac_file" ||
16518 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16519 X"$ac_file" : 'X\(//\)[^/]' \| \
16520 X"$ac_file" : 'X\(//\)$' \| \
16521 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16522 $as_echo X"$ac_file" |
16523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16527 /^X\(\/\/\)[^/].*/{
16540 as_dir
="$ac_dir"; as_fn_mkdir_p
16544 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16546 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16547 # A ".." for each directory in $ac_dir_suffix.
16548 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16549 case $ac_top_builddir_sub in
16550 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16551 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16554 ac_abs_top_builddir
=$ac_pwd
16555 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16556 # for backward compatibility:
16557 ac_top_builddir
=$ac_top_build_prefix
16560 .
) # We are building in place.
16562 ac_top_srcdir
=$ac_top_builddir_sub
16563 ac_abs_top_srcdir
=$ac_pwd ;;
16564 [\\/]* | ?
:[\\/]* ) # Absolute name.
16565 ac_srcdir
=$srcdir$ac_dir_suffix;
16566 ac_top_srcdir
=$srcdir
16567 ac_abs_top_srcdir
=$srcdir ;;
16568 *) # Relative name.
16569 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16570 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16571 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16573 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16583 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16584 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16589 # If the template does not know about datarootdir, expand it.
16590 # FIXME: This hack should be removed a few years after 2.60.
16591 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16602 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16603 *datarootdir
*) ac_datarootdir_seen
=yes;;
16604 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16606 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16609 ac_datarootdir_hack='
16610 s&@datadir@&$datadir&g
16611 s&@docdir@&$docdir&g
16612 s&@infodir@&$infodir&g
16613 s&@localedir@&$localedir&g
16614 s&@mandir@&$mandir&g
16615 s&\\\${datarootdir}&$datarootdir&g' ;;
16619 # Neutralize VPATH when `$srcdir' = `.'.
16620 # Shell code in configure.ac might set extrasub.
16621 # FIXME: do we really want to maintain this feature?
16622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16623 ac_sed_extra="$ac_vpsub
16626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16628 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16629 s|@configure_input@|
$ac_sed_conf_input|
;t t
16630 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16631 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16632 s
&@srcdir@
&$ac_srcdir&;t t
16633 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16634 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16635 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16636 s
&@builddir@
&$ac_builddir&;t t
16637 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16638 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16639 s
&@INSTALL@
&$ac_INSTALL&;t t
16640 $ac_datarootdir_hack
16642 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16643 if $ac_cs_awk_getline; then
16644 $AWK -f "$tmp/subs.
awk"
16646 $AWK -f "$tmp/subs.
awk" | $SHELL
16648 || as_fn_error "could not create
$ac_file" "$LINENO" 5
16650 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16651 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
16652 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16654 which seems to be undefined. Please make sure it is defined." >&5
16655 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16656 which seems to be undefined. Please make sure it is defined." >&2;}
16660 -) cat "$tmp/out" && rm -f "$tmp/out";;
16661 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16663 || as_fn_error "could not create $ac_file" "$LINENO" 5
16669 if test x"$ac_file" != x-; then
16671 $as_echo "/* $configure_input */" \
16672 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16673 } >"$tmp/config.h" \
16674 || as_fn_error "could not create $ac_file" "$LINENO" 5
16675 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16677 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16680 mv "$tmp/config.h" "$ac_file" \
16681 || as_fn_error "could not create $ac_file" "$LINENO" 5
16684 $as_echo "/* $configure_input */" \
16685 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16686 || as_fn_error "could not create -" "$LINENO" 5
16694 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
16697 # Prefer the file from the source tree if names are identical.
16698 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16699 ac_source=$srcdir/$ac_source
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16703 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16705 if test ! -r "$ac_source"; then
16706 as_fn_error "$ac_source: file not found" "$LINENO" 5
16710 # Try a relative symlink, then a hard link, then a copy.
16712 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16713 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16715 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16716 ln "$ac_source" "$ac_file" 2>/dev/null ||
16717 cp -p "$ac_source" "$ac_file" ||
16718 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16721 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16722 $as_echo "$as_me: executing $ac_file commands" >&6;}
16727 case $ac_file$ac_mode in
16728 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
16729 "gcore":F) chmod +x gcore ;;
16731 case x$CONFIG_HEADERS in
16732 xconfig.h:config.in)
16743 ac_clean_files=$ac_clean_files_save
16745 test $ac_write_fail = 0 ||
16746 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16749 # configure is writing to config.log, and then calls config.status.
16750 # config.status does its own redirection, appending to config.log.
16751 # Unfortunately, on DOS this fails, as config.log is still kept open
16752 # by configure, so config.status won't be able to
write to it
; its
16753 # output is simply discarded. So we exec the FD to /dev/null,
16754 # effectively closing config.log, so it can be properly (re)opened and
16755 # appended to by config.status. When coming back to configure, we
16756 # need to make the FD available again.
16757 if test "$no_create" != yes; then
16759 ac_config_status_args
=
16760 test "$silent" = yes &&
16761 ac_config_status_args
="$ac_config_status_args --quiet"
16763 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16765 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16766 # would make configure fail if this is the last instruction.
16767 $ac_cs_success || as_fn_exit $?
16771 # CONFIG_SUBDIRS section.
16773 if test "$no_recursion" != yes; then
16775 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16776 # so they do not pile up.
16777 ac_sub_configure_args
=
16779 eval "set x $ac_configure_args"
16783 if test -n "$ac_prev"; then
16788 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
16789 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
16790 ac_prev
=cache_file
;;
16791 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
16792 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
16795 --config-cache |
-C)
16797 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
16799 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
16801 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
16803 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
16805 --disable-option-checking)
16809 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16811 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
16815 # Always prepend --prefix to ensure using the same prefix
16816 # in subdir configurations.
16817 ac_arg
="--prefix=$prefix"
16819 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16821 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
16824 if test "$silent" = yes; then
16825 ac_sub_configure_args
="--silent $ac_sub_configure_args"
16828 # Always prepend --disable-option-checking to silence warnings, since
16829 # different subdirs can have different --enable and --with options.
16830 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
16833 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
16835 # Do not complain, so a configure script can configure whichever
16836 # parts of a large source tree are present.
16837 test -d "$srcdir/$ac_dir" ||
continue
16839 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16840 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16841 $as_echo "$ac_msg" >&6
16842 as_dir
="$ac_dir"; as_fn_mkdir_p
16846 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16848 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16849 # A ".." for each directory in $ac_dir_suffix.
16850 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16851 case $ac_top_builddir_sub in
16852 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16853 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16856 ac_abs_top_builddir
=$ac_pwd
16857 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16858 # for backward compatibility:
16859 ac_top_builddir
=$ac_top_build_prefix
16862 .
) # We are building in place.
16864 ac_top_srcdir
=$ac_top_builddir_sub
16865 ac_abs_top_srcdir
=$ac_pwd ;;
16866 [\\/]* | ?
:[\\/]* ) # Absolute name.
16867 ac_srcdir
=$srcdir$ac_dir_suffix;
16868 ac_top_srcdir
=$srcdir
16869 ac_abs_top_srcdir
=$srcdir ;;
16870 *) # Relative name.
16871 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16872 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16873 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16875 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16880 # Check for guested configure; otherwise get Cygnus style configure.
16881 if test -f "$ac_srcdir/configure.gnu"; then
16882 ac_sub_configure
=$ac_srcdir/configure.gnu
16883 elif test -f "$ac_srcdir/configure"; then
16884 ac_sub_configure
=$ac_srcdir/configure
16885 elif test -f "$ac_srcdir/configure.in"; then
16886 # This should be Cygnus configure.
16887 ac_sub_configure
=$ac_aux_dir/configure
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16890 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16894 # The recursion is here.
16895 if test -n "$ac_sub_configure"; then
16896 # Make the cache file name correct relative to the subdirectory.
16897 case $cache_file in
16898 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
16899 *) # Relative name.
16900 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
16903 { $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
16904 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16905 # The eval makes quoting arguments work.
16906 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16907 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16908 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16914 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16916 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}